-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feat/communication
- Loading branch information
Showing
112 changed files
with
3,586 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Use the structure from this file in the .env of the package that is using solidity-devops | ||
|
||
# Wallets | ||
# Define as many wallets as needed. For every wallet following env vars are needed: | ||
# - WALLET_ADDR: the address of the account to use for signing | ||
# - WALLET_TYPE: the wallet type: "keystore", "ledger","trezor" or "pk". | ||
# Any other value triggers the interactive prompt to enter the private key. | ||
# - keystore: use the encrypted keystore file. | ||
# - WALLET_JSON: the keystore file path | ||
# - ledger, trezor: use HW wallet for signing | ||
# TODO: find out if ledger/trezor specific options are needed | ||
# - pk: use the plaintext private key. STRONGLY DISCOURAGED for production usage, meant for local devnet purposes. | ||
# - WALLET_PK: the private key to the wallet in 0x format. | ||
|
||
# This will make wallet with name "deployer" available to run the scripts: | ||
DEPLOYER_ADDR=0x1234567890123456789012345678901234567890 | ||
DEPLOYER_TYPE=keystore | ||
DEPLOYER_JSON=path/to/keystore.json | ||
|
||
# Chains | ||
# For every chain following env vars are needed: | ||
# - CHAIN_RPC: the RPC endpoint | ||
# - CHAIN_VERIFIER: verifier for the smart contracts. Possible values are: etherscan, blockscout, sourcify | ||
# - CHAIN_VERIFIER_URL: the Verifier API endpoint (required if verifier is not sourcify) | ||
# - CHAIN_VERIFIER_KEY: the Verifier API key (required if verifier is not sourcify) | ||
# NOTE: Blockcout URL needs to end with "api?" for the verification to work | ||
# NOTE: Use any non-empty string for Blockscout API key: it is not required per se, but foundry will complain if it's empty | ||
|
||
# MAINNET CHAINS | ||
# Arbitrum | ||
ARBITRUM_RPC=https://arb1.arbitrum.io/rpc | ||
ARBITRUM_VERIFIER=etherscan | ||
ARBITRUM_VERIFIER_URL=https://api.arbiscan.io/api | ||
ARBITRUM_VERIFIER_KEY=PasteYourOwnKeyPlease | ||
# Aurora | ||
AURORA_RPC=https://mainnet.aurora.dev | ||
AURORA_VERIFIER=blockscout | ||
AURORA_VERIFIER_URL=https://explorer.aurora.dev/api? | ||
AURORA_VERIFIER_KEY=NoKeyRequired | ||
# DFK | ||
DFK_RPC=https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc | ||
DFK_VERIFIER=sourcify | ||
# And the list goes on | ||
|
||
# TESTNET CHAINS | ||
# TODO: add testnet chains |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
extends: '../../.eslintrc.js', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.deployments | ||
broadcast |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
...require('../../.prettierrc.js'), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Change Log | ||
|
||
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## [0.1.3](https://github.com/synapsecns/sanguine/compare/@synapsecns/solidity-devops@0.1.2...@synapsecns/solidity-devops@0.1.3) (2024-03-01) | ||
|
||
**Note:** Version bump only for package @synapsecns/solidity-devops | ||
|
||
|
||
|
||
|
||
|
||
## [0.1.2](https://github.com/synapsecns/sanguine/compare/@synapsecns/solidity-devops@0.1.1...@synapsecns/solidity-devops@0.1.2) (2024-02-29) | ||
|
||
**Note:** Version bump only for package @synapsecns/solidity-devops | ||
|
||
|
||
|
||
|
||
|
||
## 0.1.1 (2024-02-29) | ||
|
||
**Note:** Version bump only for package @synapsecns/solidity-devops |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Solidity Development Operations | ||
|
||
This package provides a set of tools and scripts to help with the development of Solidity smart contracts: | ||
|
||
- Utilities to simplify the testing of smart contracts using Foundry. | ||
- Utilities to simplify the deployment of smart contracts using Foundry. | ||
- Utilities to manage the existing deployments of smart contracts. | ||
|
||
## Disclaimer | ||
|
||
This package is still under development and should be used with caution. It is not recommended to use it in a production environment. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
42161 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1313161554 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
53935 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"chains": { | ||
"arbitrum": "--with-gas-price 100000000", | ||
"aurora": "--legacy --slow", | ||
"base": "--with-gas-price 100000000", | ||
"boba": "--legacy --skip-simulation --slow", | ||
"canto": "--legacy --slow", | ||
"cronos": "--slow", | ||
"dfk": "--slow", | ||
"dogechain": "--legacy --slow", | ||
"harmony": "--legacy --slow", | ||
"klaytn": "--skip-simulation", | ||
"metis": "--legacy", | ||
"moonbeam": "--skip-simulation --slow", | ||
"moonriver": "--skip-simulation --slow", | ||
"optimism": "--with-gas-price 100000000", | ||
"polygon": "--slow" | ||
}, | ||
"deployConfigs": "configs", | ||
"deployments": "deployments", | ||
"forgeArtifacts": "artifacts", | ||
"freshDeployments": ".deployments" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[profile.default] | ||
auto_detect_solc = true | ||
# 2024-01-01 | ||
block_timestamp = 1_704_067_200 | ||
evm_version = "paris" | ||
# No need for optimizer as nothing from this package is deployed | ||
optimizer = false | ||
out = "artifacts" | ||
src = "src" | ||
ffi = true | ||
fs_permissions = [ | ||
{ access = "read", path = "./" }, | ||
{ access = "read-write", path = "./.deployments" } | ||
] | ||
|
||
[fmt] | ||
line_length = 120 | ||
multiline_func_header = 'all' | ||
number_underscore = 'thousands' | ||
|
||
# Use this structure in foundry.toml of the package that is using solidity-devops | ||
[rpc_endpoints] | ||
arbitrum = "${ARBITRUM_RPC}" | ||
aurora = "${AURORA_RPC}" | ||
dfk = "${DFK_RPC}" | ||
|
||
# And the list goes on | ||
[etherscan] | ||
arbitrum = { key = "${ARBITRUM_VERIFIER_KEY}", url = "${ARBITRUM_VERIFIER_URL}" } | ||
aurora = { key = "${AURORA_VERIFIER_KEY}", url = "${AURORA_VERIFIER_URL}" } | ||
# DFK is using Sourcify for verification |
Oops, something went wrong.