Skip to content

Instantly share code, notes, and snippets.

@ydm
Last active January 27, 2025 17:39
Show Gist options
  • Save ydm/e5fb47ba80308427e5ab1db1b661686e to your computer and use it in GitHub Desktop.
Save ydm/e5fb47ba80308427e5ab1db1b661686e to your computer and use it in GitHub Desktop.
| File                                 | Class                                 | Prefix                    | Base? |
|--------------------------------------+---------------------------------------+---------------------------+-------|
| src/ape/api/config.py                | ApeConfig(BaseSettings)               | APE_API_                  | no    |
| src/ape/api/config.py                | DeploymentConfig(PluginConfig)        | APE_API_                  | no    |
| src/ape/api/config.py                | PluginConfig(BaseSettings)            | APE_API_                  | yes   |
| src/ape_cache/config.py              | CacheConfig(PluginConfig)             | APE_CACHE_                | no    |
| src/ape_compile/config.py            | Config(PluginConfig)                  | APE_COMPILE_              | no    |
| src/ape_console/config.py            | ConsoleConfig(PluginConfig)           | APE_CONSOLE_              | no    |
| src/ape_ethereum/ecosystem.py        | BaseEthereumConfig(PluginConfig)      | APE_ETHEREUM_             | yes   |
| src/ape_ethereum/ecosystem.py        | ForkedNetworkConfig(NetworkConfig)    | APE_ETHEREUM_ (inherited) | no    |
| src/ape_ethereum/ecosystem.py        | NetworkConfig(PluginConfig)           | APE_ETHEREUM_             | yes   |
| src/ape_networks/config.py           | CustomNetwork(PluginConfig)           | APE_NETWORKS_             | no    |
| src/ape_networks/config.py           | NetworksConfig(PluginConfig)          | APE_NETWORKS_             | no    |
| src/ape_node/provider.py             | EthereumNetworkConfig(PluginConfig)   | APE_NODE_                 | no    |
| src/ape_node/provider.py             | EthereumNodeConfig(PluginConfig)      | APE_NODE_                 | no    |
| src/ape_test/config.py               | ApeTestConfig(PluginConfig)           | APE_TEST_                 | no    |
| src/ape_test/config.py               | CoverageConfig(PluginConfig)          | APE_TEST_                 | no    |
| src/ape_test/config.py               | CoverageReportsConfig(PluginConfig)   | APE_TEST_                 | no    |
| src/ape_test/config.py               | EthTesterProviderConfig(PluginConfig) | APE_TEST_                 | no    |
| src/ape_test/config.py               | GasConfig(PluginConfig)               | APE_TEST_                 | no    |
| src/ape_test/config.py               | GasExclusion(PluginConfig)            | APE_TEST_                 | no    |
| src/ape_test/config.py               | IsolationConfig(PluginConfig)         | APE_TEST_                 | no    |
| tests/functional/test_config.py      | CustomConfig(PluginConfig)            | APE_API_ (inherited)      | no    |
| tests/functional/test_config.py      | CustomConfig(PluginConfig)            | APE_API_ (inherited)      | no    |
| tests/functional/test_config.py      | MyConfig(PluginConfig)                | APE_API_ (inherited)      | no    |
| tests/functional/test_config.py      | MyConfig(PluginConfig)                | APE_API_ (inherited)      | no    |
| tests/functional/test_config.py      | MyConfig(PluginConfig)                | APE_API_ (inherited)      | no    |
| tests/functional/test_config.py      | MyConfig(PluginConfig)                | APE_API_ (inherited)      | no    |
| tests/functional/test_config.py      | SubConfig(PluginConfig)               | APE_API_ (inherited)      | no    |
| tests/functional/test_config.py      | SubConfig(PluginConfig)               | APE_API_ (inherited)      | no    |
| tests/functional/test_ecosystem.py   | L2NetworkConfig(BaseEthereumConfig)   | APE_ETHEREUM_ (inherited) | no    |
| tests/functional/test_network_api.py | MyConfig(BaseEthereumConfig)          | APE_ETHEREUM_ (inherited) | no    |

| Class               | Name                           | Environment variable                        |
|---------------------+--------------------------------+---------------------------------------------|
| ApeConfig           | contracts_folder               | APE_API_CONTRACTS_FOLDER                    |
| ApeConfig           | default_ecosystem              | APE_API_DEFAULT_ECOSYSTEM                   |
| ApeConfig           | dependencies                   | APE_API_DEPENDENCIES                        |
| ApeConfig           | deployment_data                | APE_API_DEPLOYMENT_DATA                     |
| ApeConfig           | interfaces_folder              | APE_API_INTERFACES_FOLDER                   |
| ApeConfig           | meta                           | APE_API_META                                |
| ApeConfig           | name                           | APE_API_NAME                                |
| ApeConfig           | base_path                      | APE_API_BASE_PATH                           |
| ApeConfig           | request_headers                | APE_API_REQUEST_HEADERS                     |
| ApeConfig           | version                        | APE_API_VERSION                             |
| DeploymentConfig    | address                        | APE_API_ADDRESS                             |
| DeploymentConfig    | contract_type                  | APE_API_CONTRACT_TYPE                       |
| NetworkConfig       | required_confirmations         | API_ETHEREUM_REQUIRED_CONFIRMATIONS         |
| NetworkConfig       | default_provider               | API_ETHEREUM_DEFAULT_PROVIDER               |
| NetworkConfig       | block_time                     | API_ETHEREUM_BLOCK_TIME                     |
| NetworkConfig       | transaction_acceptance_timeout | API_ETHEREUM_TRANSACTION_ACCEPTANCE_TIMEOUT |
| NetworkConfig       | default_transaction_type       | API_ETHEREUM_DEFAULT_TRANSACTION_TYPE       |
| NetworkConfig       | max_receipt_retries            | API_ETHEREUM_MAX_RECEIPT_RETRIES            |
| NetworkConfig       | gas_limit                      | API_ETHEREUM_GAS_LIMIT                      |
| NetworkConfig       | base_fee_multiplier            | API_ETHEREUM_BASE_FEE_MULTIPLIER            |
| NetworkConfig       | is_mainnet                     | API_ETHEREUM_IS_MAINNET                     |
| NetworkConfig       | request_headers                | API_ETHEREUM_REQUEST_HEADERS                |
| ForkedNetworkConfig | upstream_provider              |                                             |
| CustomNetwork       | name                           |                                             |
| CustomNetwork       | chain_id                       |                                             |
| CustomNetwork       | ecosystem                      |                                             |
| CustomNetwork       | base_ecosystem_plugin          |                                             |
| CustomNetwork       | default_provider               |                                             |
| CustomNetwork       | request_header                 |                                             |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment