|
| 1 | +// Brownie configuration file |
| 2 | +// https://eth-brownie.readthedocs.io/en/latest/config.html |
1 | 3 | { |
2 | | - "network_defaults": { |
3 | | - "name": "development", |
4 | | - "persist": false, |
5 | | - "gas_limit": 8000000, |
6 | | - "gas_price": false |
7 | | - }, |
8 | | - "networks": { |
9 | | - "development": { |
10 | | - "test-rpc": "ganache-cli -a 25 -m wallets --allowUnlimitedContractSize --gasLimit 8000000", |
11 | | - "host": "http://127.0.0.1:8545", |
12 | | - "broadcast_reverting_tx": true |
| 4 | + "network": { |
| 5 | + "default": "development", // the default network that brownie connects to |
| 6 | + "settings": { |
| 7 | + "broadcast_reverting_tx": false, |
| 8 | + "gas_limit": false, |
| 9 | + "gas_price": false |
13 | 10 | }, |
14 | | - "ropsten": { |
15 | | - "host": "https://ropsten.infura.io/", |
16 | | - "persist": true |
| 11 | + "networks": { // any settings given here will replace the defaults |
| 12 | + "development": { |
| 13 | + "test_rpc": { |
| 14 | + "cmd": "ganache-cli", |
| 15 | + "port": 8545, |
| 16 | + "gas_limit": 6721975, |
| 17 | + "accounts": 10, |
| 18 | + "evm_version": "petersburg", |
| 19 | + "mnemonic": "brownie" |
| 20 | + }, |
| 21 | + "host": "http://127.0.0.1", |
| 22 | + "broadcast_reverting_tx": true |
| 23 | + }, |
| 24 | + // replace INFURA_PROJECT_ID with your personal API token |
| 25 | + "goerli": { |
| 26 | + "host": "https://goerli.infura.io/v3/INFURA_PROJECT_ID" |
| 27 | + }, |
| 28 | + "kovan": { |
| 29 | + "host": "https://kovan.infura.io/v3/INFURA_PROJECT_ID" |
| 30 | + }, |
| 31 | + "rinkeby": { |
| 32 | + "host": "https://rinkeby.infura.io/v3/INFURA_PROJECT_ID" |
| 33 | + }, |
| 34 | + "ropsten": { |
| 35 | + "host": "https://ropsten.infura.io/v3/INFURA_PROJECT_ID" |
| 36 | + } |
17 | 37 | } |
18 | 38 | }, |
19 | | - "test": { |
20 | | - "broadcast_reverting_tx": true, |
21 | | - "gas_limit": 8000000, |
| 39 | + "pytest": { // these settings replace the defaults when running pytest |
| 40 | + "gas_limit": 6721975, |
22 | 41 | "default_contract_owner": false, |
| 42 | + "broadcast_reverting_tx": true, |
23 | 43 | "revert_traceback": false |
24 | 44 | }, |
25 | | - "solc": { |
26 | | - "optimize": true, |
27 | | - "runs": 200, |
28 | | - "version": "0.4.25", |
29 | | - "minify_source": false |
| 45 | + "compiler": { |
| 46 | + "solc": { |
| 47 | + "version": null, |
| 48 | + "evm_version": null, |
| 49 | + "optimize": true, |
| 50 | + "runs": 200, |
| 51 | + "minify_source": false |
| 52 | + } |
30 | 53 | }, |
31 | 54 | "colors": { |
32 | 55 | "key": "", |
|
0 commit comments