From 25bc6b2d6a7c6fcaf4d5dd8b1e5867580396e71a Mon Sep 17 00:00:00 2001 From: patagonudo <> Date: Sun, 24 Apr 2022 20:09:08 -0400 Subject: [PATCH] updated logic to add networks --- .gitignore | 1 + README.md | 13 +++++---- brownie-config.yml | 27 +----------------- scripts/__pycache__/__init__.cpython-39.pyc | Bin 167 -> 0 bytes .../create_and_fund.cpython-39.pyc | Bin 1353 -> 0 bytes 5 files changed, 9 insertions(+), 32 deletions(-) delete mode 100644 scripts/__pycache__/__init__.cpython-39.pyc delete mode 100644 scripts/__pycache__/create_and_fund.cpython-39.pyc diff --git a/.gitignore b/.gitignore index f7e9f98..b50a154 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ __pycache__ +scripts/__pycache__ .history .hypothesis/ build/ diff --git a/README.md b/README.md index b167888..fe9351f 100644 --- a/README.md +++ b/README.md @@ -73,14 +73,15 @@ SAFE_OWNER_2= ### Updating your Brownie networks config -The following command updates your brownie networks config so that it includes -all the networks used by this project: +The following commands add the brownie network configurations needed: ```bash -# Networks used by this project that are not currently included by default by -# eth-brownie install. These are specified in `brownie-config.yml` -brownie networks import brownie-config.yml True +brownie networks add Arbitrum arbitrum-main name=Mainnet host=https://arb1.arbitrum.io/rpc chainid=42161 explorer=https://api.arbiscan.io/api multicall2=0x5B5CFE992AdAC0C9D48E05854B2d91C73a003858 -# Check that the networks were declared: +brownie networks add Arbitrum arbitrum-test name=Testnet host=https://rinkeby.arbitrum.io/rpc chainid=421611 explorer=https://testnet.arbiscan.io/api multicall2=0x5B5CFE992AdAC0C9D48E05854B2d91C73a003858 + +brownie networks add development arbitrum-main-fork name="Arbitrum Mainnet Fork" cmd=ganache-cli host=http://127.0.0.1 fork=arbitrum-main evm_version=istanbul mnemonic=brownie gas_limit=12000000 port=8545 accounts=10 + +# Check that the networks were succesfully declared: brownie networks list ``` \ No newline at end of file diff --git a/brownie-config.yml b/brownie-config.yml index 7696a85..a01500d 100644 --- a/brownie-config.yml +++ b/brownie-config.yml @@ -3,7 +3,7 @@ dependencies: compiler: solc: remappings: - - '@safe-global=safe-global/safe-contracts@1.3.0' + - "@safe-global=safe-global/safe-contracts@1.3.0" # gnosis safe v1.3 assets: https://github.com/gnosis/safe-deployments/tree/main/src/assets/v1.3.0 networks: @@ -27,28 +27,3 @@ dotenv: .env wallets: owner1: ${SAFE_OWNER_1} owner2: ${SAFE_OWNER_2} - -# The network settings below are not automatically recognized by Brownie. -# These are the networks used by this project. -development: - - cmd: ganache-cli - cmd_settings: - accounts: 10 - evm_version: istanbul - fork: arbitrum-main - gas_limit: 12000000 - mnemonic: brownie - port: 8545 - host: http://127.0.0.1 - id: arbitrum-main-fork - name: Ganache-CLI (Arbitrum Chain Fork) - -live: - - name: Arbitrum - networks: - - chainid: 421611 - explorer: https://testnet.arbiscan.io/api - host: https://rinkeby.arbitrum.io/rpc - id: arbitrum-test - multicall2: "0x5B5CFE992AdAC0C9D48E05854B2d91C73a003858" - name: Testnet diff --git a/scripts/__pycache__/__init__.cpython-39.pyc b/scripts/__pycache__/__init__.cpython-39.pyc deleted file mode 100644 index c23c06a8760f59b6c8f9ecebcf8f774f80883230..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 167 zcmYe~<>g`k0%O+XqzWMY7{oyaj6jY95Erumi4=xl22Do4l?+87VFdBZM?bVUwWwG> zBQ?1szbGTMs3Ote;erU!Iqls+(Mtnpl#mo1T|noLQ_}oS2rXUz}W& jSpZZLAD@|*SrQ+wS5SG2!zMRBr8Fni4rI$`AZ7pn*TE`B diff --git a/scripts/__pycache__/create_and_fund.cpython-39.pyc b/scripts/__pycache__/create_and_fund.cpython-39.pyc deleted file mode 100644 index 097e11c4c9af6acf9d8adfb70a282689098f48cb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1353 zcmZ8h&2Aev5GJ|YKWSwtj+$5~3M|?HfeP3<|H8DzHXEn3KnUCK$RMzRV5UjW3>Eum-(BIa% zzbH6g!J~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