[project]
dependencies = ["snekmate==0.1.1"]
src = "contracts"
out = "build"
save_abi_path = "abis"
cov_config = ".coveragerc"
dot_env = ".hello"
db_path = ".deployments.db"

[networks.pyevm]
is_zksync = false
save_to_db = false
contracts = { BuyMeACoffee = { force_deploy = false, deployer_script = "deploy_coffee.py", fixture = true } }

[networks.eravm]
is_zksync = true
save_to_db = false

[networks.contracts]
price_feed = { abi = "MockV3Aggregator", force_deploy = false, deployer_script = "mock_deployer/deploy_feed.py" }
other_price_feed = { abi = "MockV3Aggregator", force_deploy = false, deployer_script = "mock_deployer/deploy_feed.py" }
counter = { abi = "Counter", force_deploy = false, deployer_script = "deploy.py" }

[networks.optimism]
explorer_api_key = "${OPTIMISTIC_ETHERSCAN_API_KEY}"
chain_id = 10
save_to_db = false

[networks.zksync]
url = "http://hi"
contracts = {}
save_to_db = false

[networks.zksync.extra_data]
uniswap = "asfasfsaf"
compound = "asdfsf"

[networks.anvil]
url = "http://127.0.0.1:8545"
unsafe_password_file = "$ANVIL1_PASSWORD_FILE"
default_account_name = "anvil1"
prompt_live = false
save_to_db = true                              # The default is true for non-local networks
chain_id = 31337

[networks.anvil-fork]
url = "http://127.0.0.1:8546"
unsafe_password_file = "$ANVIL1_PASSWORD_FILE"
default_account_name = "anvil1"
prompt_live = false
save_to_db = false
chain_id = 31337

[networks.anvil-live]
url = "http://127.0.0.1:8545"
unsafe_password_file = "$ANVIL1_PASSWORD_FILE"
default_account_name = "anvil1"
save_to_db = false

[networks.anvil.contracts]
price_feed = { address = "0x5fbdb2315678afecb367f032d93f642f64180aa3", abi_from_explorer = false }

[networks.sepolia-zksync]
url = "$SEPOLIA_ZKSYNC_RPC_URL"
save_to_db = false
prompt_live = false
is_zksync = true
default_account_name = "smalltestnet"
unsafe_password_file = "~/.moccasin/unsafe-passwords/smalltestnet"
explorer_uri = 'https://explorer.sepolia.era.zksync.dev'
explorer_type = 'zksyncexplorer'

[networks.fake_chain]
url = "${FAKE_CHAIN_RPC_URL}"
fork = true
save_to_db = false

[networks.mainnet_fork]
url = "${MAINNET_RPC_URL}"
fork = true
explorer_uri = "https://api.etherscan.io/api"
block_identifier = 21000000

[networks.mainnet_fork.contracts]
usdc = { address = "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", abi_from_explorer = true }

[networks.mainnet_fork.extra_data]
usdc = "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
