From 8c8187095ad9edca1bd03a6103d4dff5372a897a Mon Sep 17 00:00:00 2001 From: BIP Bot Date: Sun, 30 Jul 2023 15:59:57 +0200 Subject: [PATCH] Add Base Chain --- brownie/data/network-config.yaml | 21 ++++++++++++++++++++- brownie/network/contract.py | 3 ++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/brownie/data/network-config.yaml b/brownie/data/network-config.yaml index 53daf97ee..7ec278033 100644 --- a/brownie/data/network-config.yaml +++ b/brownie/data/network-config.yaml @@ -207,6 +207,13 @@ live: host: https://zkevm-rpc.com id: zkevm-main name: Polygon zkEVM mainnet + - name: Base + networks: + - chainid: 8453 + explorer: https://api.basescan.org/api + host: https://mainnet.base.org + id: base-main + name: Base mainnet @@ -361,4 +368,16 @@ development: accounts: 10 evm_version: istanbul mnemonic: brownie - fork: zkevm-main \ No newline at end of file + fork: zkevm-main + - name: Ganache-CLI Base-Mainnet Fork) + id: base-main-fork + cmd: ganache-cli + host: http://127.0.0.1 + timeout: 120 + cmd_settings: + port: 8545 + gas_limit: 20000000 + accounts: 10 + evm_version: istanbul + mnemonic: brownie + fork: base-main \ No newline at end of file diff --git a/brownie/network/contract.py b/brownie/network/contract.py index 17e2a1fda..4917e1295 100644 --- a/brownie/network/contract.py +++ b/brownie/network/contract.py @@ -85,7 +85,8 @@ "snowtrace": "SNOWTRACE_TOKEN", "aurorascan": "AURORASCAN_TOKEN", "moonscan": "MOONSCAN_TOKEN", - "gnosisscan": "GNOSISSCAN_TOKEN" + "gnosisscan": "GNOSISSCAN_TOKEN", + "base": "BASESCAN_TOKEN" }