Skip to content

Commit

Permalink
updated logic to add networks
Browse files Browse the repository at this point in the history
  • Loading branch information
patagonudo committed Apr 25, 2022
1 parent f4c7221 commit 25bc6b2
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 32 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
__pycache__
scripts/__pycache__
.history
.hypothesis/
build/
Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,15 @@ SAFE_OWNER_2=<OWNER2_ADDRESS>

### 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
```
27 changes: 1 addition & 26 deletions brownie-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dependencies:
compiler:
solc:
remappings:
- '@safe-global=safe-global/[email protected]'
- "@safe-global=safe-global/[email protected]"

# gnosis safe v1.3 assets: https://github.com/gnosis/safe-deployments/tree/main/src/assets/v1.3.0
networks:
Expand All @@ -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
Binary file removed scripts/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file removed scripts/__pycache__/create_and_fund.cpython-39.pyc
Binary file not shown.

0 comments on commit 25bc6b2

Please sign in to comment.