diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e166cc..09dcb6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,5 +10,5 @@ Use more exceptions # 0.4.1 Support Sepolia -TODO: -move constant maps to jsons so they fresh versions can be pulled from main without a version upgrade \ No newline at end of file +TODO: +move constant maps to jsons so they fresh versions can be pulled from main without a version upgrade diff --git a/Makefile b/Makefile index 088944a..4dd849d 100644 --- a/Makefile +++ b/Makefile @@ -4,4 +4,4 @@ init: pip install -r bal_addresses/requirements.txt pip install -r bal_addresses/requirements-dev.txt ci: - pytest + pytest diff --git a/README.md b/README.md index 14e52f0..ee98caa 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ This repo is setup to make it easy to find up to date addresses at balancer. ## Outputs - structured data The [outputs](./outputs) directory has a number of different address books that you can use in code or with your eyeballs. -### [chain].json Files +### [chain].json Files Have keys of deployment/contract as well as some other extra stuff all with / notation. It includes multisigs and signers known to the maxis as well as other addresses we have touched sorted by protocol. ### addressbook.json @@ -27,7 +27,7 @@ Then you can do this with the flatbook: '0xfADa0f4547AB2de89D1304A668C39B3E09Aa7c76' >>> a.flatbook["multisigs/lm"] '0xc38c5f97B34E175FFd35407fc91a937300E33860' ->>> +>>> ``` This with the reversebook: @@ -79,10 +79,10 @@ There is also search and lookup commands '0xBA12222222228d8Ba445958a75a0704d566BF2C8' >>> a.reversebook[a.latest_contract("ComposableStablePoolFactory")] '20230320-composable-stable-pool-v4/ComposableStablePoolFactory' ->>> +>>> ``` -Most of the other functions are used by a github action which regenerates files read in by those 2 functions on a weekly basis. You can explore them if you would like. +Most of the other functions are used by a github action which regenerates files read in by those 2 functions on a weekly basis. You can explore them if you would like. ## Using deployments: `.deployments` attribute is an object that is lazy loaded on first access. diff --git a/bal_addresses/.gitignore b/bal_addresses/.gitignore index 478a0d6..f6f9a9d 100644 --- a/bal_addresses/.gitignore +++ b/bal_addresses/.gitignore @@ -1,3 +1,3 @@ .idea/ venv/ -__pycache__/ \ No newline at end of file +__pycache__/ diff --git a/bal_addresses/errors.py b/bal_addresses/errors.py index f391043..6c84a28 100644 --- a/bal_addresses/errors.py +++ b/bal_addresses/errors.py @@ -1,15 +1,18 @@ - class MultipleMatchesError(Exception): pass + class NoResultError(Exception): pass + class ChecksumError(Exception): pass + class GraphQLRequestError(Exception): pass + class UnexpectedListLengthError(Exception): - pass \ No newline at end of file + pass diff --git a/bal_addresses/graphql/core/last_join_exit.gql b/bal_addresses/graphql/core/last_join_exit.gql index bfe0315..8c82474 100644 --- a/bal_addresses/graphql/core/last_join_exit.gql +++ b/bal_addresses/graphql/core/last_join_exit.gql @@ -12,4 +12,4 @@ query LastJoinExit($poolId: String!) { tokensList } } -} \ No newline at end of file +} diff --git a/bal_addresses/permissions.py b/bal_addresses/permissions.py index 0550f32..da581cb 100644 --- a/bal_addresses/permissions.py +++ b/bal_addresses/permissions.py @@ -9,8 +9,12 @@ class BalPermissions: def __init__(self, chain): self.chain = chain - self.active_permissions_by_action_id = requests.get(f"{GITHUB_RAW_OUTPUTS}/permissions/active/{chain}.json").json() - self.action_ids_by_contract_by_deployment = requests.get(f"{GITHUB_DEPLOYMENTS_RAW}/action-ids/{chain}/action-ids.json").json() + self.active_permissions_by_action_id = requests.get( + f"{GITHUB_RAW_OUTPUTS}/permissions/active/{chain}.json" + ).json() + self.action_ids_by_contract_by_deployment = requests.get( + f"{GITHUB_DEPLOYMENTS_RAW}/action-ids/{chain}/action-ids.json" + ).json() # Define self.paths_by_action_id = defaultdict(set) @@ -23,7 +27,9 @@ def __init__(self, chain): for contract, contract_data in contracts.items(): for fx, action_id in contract_data["actionIds"].items(): path = f"{deployment}/{contract}/{fx}" - assert path not in self.action_id_by_path.values(), f"{path} shows up twice?" + assert ( + path not in self.action_id_by_path.values() + ), f"{path} shows up twice?" self.action_id_by_path[path] = action_id self.deployments_by_fx[fx].add(deployment) self.contracts_by_fx[fx].add(contract) @@ -35,22 +41,25 @@ def search_path(self, substr) -> list[str]: results = [path for path in search if path in self.action_id_by_path] return results - def search_many_paths_by_unique_deployment(self, deployment_substr, fx_substr) -> list[dict[str, str]]: + def search_many_paths_by_unique_deployment( + self, deployment_substr, fx_substr + ) -> list[dict[str, str]]: a = AddrBook(self.chain) results = [] deployment = a.search_unique_deployment(deployment_substr) deployment_fxs = self.search_path(deployment.deployment) search = [s for s in deployment_fxs if fx_substr in s] for r in search: - result = Munch.fromDict({ - "path": r, - "action_id": self.action_id_by_path[r] - }) + result = Munch.fromDict({"path": r, "action_id": self.action_id_by_path[r]}) results.append(result) return Munch.fromDict(results) - def search_unique_path_by_unique_deployment(self, deployment_substr, fx_substr) -> dict[str, str]: - results = self.search_many_paths_by_unique_deployment(deployment_substr, fx_substr) + def search_unique_path_by_unique_deployment( + self, deployment_substr, fx_substr + ) -> dict[str, str]: + results = self.search_many_paths_by_unique_deployment( + deployment_substr, fx_substr + ) if len(results) > 1: raise MultipleMatchesError(f"{fx_substr} Multiple matches found: {results}") if len(results) < 1: @@ -58,7 +67,9 @@ def search_unique_path_by_unique_deployment(self, deployment_substr, fx_substr) return results[0] def needs_authorizer(self, contract, deployment) -> bool: - return self.action_ids_by_contract_by_deployment[deployment][contract]["useAdaptor"] + return self.action_ids_by_contract_by_deployment[deployment][contract][ + "useAdaptor" + ] def allowed_addresses(self, action_id) -> list[str]: try: @@ -72,8 +83,5 @@ def allowed_caller_names(self, action_id) -> list[str]: addresslist = self.active_permissions_by_action_id[action_id] except KeyError: raise NoResultError(f"{action_id} has no authorized callers") - names = [a.flatbook.get(item, 'undef') for item in addresslist] + names = [a.flatbook.get(item, "undef") for item in addresslist] return names - - - diff --git a/bal_addresses/requirements.txt b/bal_addresses/requirements.txt index f126efe..9e0b7a1 100644 --- a/bal_addresses/requirements.txt +++ b/bal_addresses/requirements.txt @@ -4,4 +4,4 @@ pandas web3 dotmap munch==4.0.0 -gql[requests] \ No newline at end of file +gql[requests] diff --git a/bal_addresses/subgraph.py b/bal_addresses/subgraph.py index 10b7770..0f13892 100644 --- a/bal_addresses/subgraph.py +++ b/bal_addresses/subgraph.py @@ -4,11 +4,12 @@ from gql.transport.requests import RequestsHTTPTransport graphql_base_path = f"{os.path.dirname(os.path.abspath(__file__))}/graphql" + + class Subgraph: def __init__(self, chain): self.chain = chain - def get_subgraph_url(self, subgraph="core") -> str: """ perform some soup magic to determine the latest subgraph url used in the official frontend diff --git a/bal_addresses/utils.py b/bal_addresses/utils.py index 0836789..2a108f4 100644 --- a/bal_addresses/utils.py +++ b/bal_addresses/utils.py @@ -3,12 +3,14 @@ ### These functions are to deal with differing web3 versions and the need to use 5.x for legacy brownie code def to_checksum_address(address: str): - if hasattr(Web3, 'toChecksumAddress'): + if hasattr(Web3, "toChecksumAddress"): return Web3.toChecksumAddress(address) if hasattr(Web3, "to_checksum_address"): return Web3.to_checksum_address(address) + + def is_address(address: str): if hasattr(Web3, "isAddress"): return Web3.isAddress(address) if hasattr(Web3, "is_address"): - return Web3.isAddress(address) \ No newline at end of file + return Web3.isAddress(address) diff --git a/config/core_pools_blacklist.json b/config/core_pools_blacklist.json index 86fc6bc..5202d95 100644 --- a/config/core_pools_blacklist.json +++ b/config/core_pools_blacklist.json @@ -1,5 +1,7 @@ { - "mainnet": { "0xxxx": "BLACKLIST-ME" }, + "mainnet": { + "0xxxx": "BLACKLIST-ME" + }, "polygon": {}, "zkevm": {}, "arbitrum": { diff --git a/config/core_pools_whitelist.json b/config/core_pools_whitelist.json index 846f2ab..4a9180f 100644 --- a/config/core_pools_whitelist.json +++ b/config/core_pools_whitelist.json @@ -5,8 +5,6 @@ "0x3ff3a210e57cfe679d9ad1e9ba6453a716c56a2e0002000000000000000005d5": "STG/USDC", "0xcf7b51ce5755513d4be016b0e28d6edeffa1d52a000200000000000000000617": "80RDNT-20wETH" }, - "polygon": { - }, "polygon": {}, "zkevm": {}, "arbitrum": { diff --git a/extras/arbitrum.json b/extras/arbitrum.json index 22fa2a6..e8ef283 100644 --- a/extras/arbitrum.json +++ b/extras/arbitrum.json @@ -1,63 +1,63 @@ { - "zero": { - "zero": "0x0000000000000000000000000000000000000000" - }, - "tokens": { - "BADGER": "0xBfa641051Ba0a0Ad1b0AcF549a89536A0D76472E", - "WBTC": "0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f", - "USDC": "0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8", - "CRV": "0x11cdb42b0eb46d95f990bedd4695a6e3fa034978", - "SUSHI": "0xd4d42f0b6def4ce0383636770ef773390d85c61a", - "renBTC": "0xdbf31df14b66535af65aac99c32e9ea844e14501", - "WETH": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1", - "USDT": "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9", - "LDO": "0x13Ad51ed4F1B7e9Dc168d8a00cB3f4dDD85EfA60" - }, - "across": { - "spoke_pool": "0xB88690461dDbaB6f04Dfad7df66B7725942FEb9C" - }, - "chainlink": { - "keeper_registry": "0x75c0530885F385721fddA23C539AF3701d6183D4", - "keeper_registrar": "0x4F3AF332A30973106Fe146Af0B4220bBBeA748eC" - }, - "sushi": { - "router": "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506" - }, - "swapr": { - "router": "0x530476d5583724A89c8841eB6Da76E7Af4C0F17E" - }, - "arbitrum": { - "node": "0x00000000000000000000000000000000000000C8", - "gateway_router": "0x5288c571Fd7aD117beA99bF60FE0846C4E84F933" - }, - "maxiKeepers": { - "gaugeRewardsInjectors": { - "arb_rewards_injector": "0xF23d8342881eDECcED51EA694AC21C2B68440929", - "fox_rewards_injector": "0xc085bD4cEd17015eAe366a6d1Cd095a2F6fD0B6D" - }, - "one_inch": { - "settlement": "0xad3b67bca8935cb510c8d18bd45f0b94f54a968f" - }, - "mimic": { - "smartvault": "0x94Dd9C6152a2A0BBcB52d3297b723A6F01D5F9f7", - "smartVaultV3": "0x9e5D6427D2cdaDC68870197b099C2Df535Ec3c97", - "claimer": "0xdF818E63341767d5F5A9827088f1892e9C604A2D", - "bptSwapper": "0x6030331C9225Ee5ae3F3D08FBD19e8bF053dF498", - "oneinchSwapper": "0xd712A863766dE7e7cA13289A97997E01832A6571", - "paraswapSwapper": "0x95676AaEcD59B19C5B79008F86d3A291628b0947" - } - }, - "maxiVestingContracts": { - "factory": "0x7BBAc709a9535464690A435ca7361256496f13Ce", - "Tritium": "0x2b03b15E4A26D858DD594649988255eCEb832787", - "shak": "0x3e7EC248fd5BE044C0efcE9fAA778AC374350efc", - "Xeonus": "0xCE49aeFDDdDBa966cd69e6A4670f4F795F577264", - "zekraken": "0x5C8260f4eB66eC847018BBC5f68694864eF094Fe", - "Zen Dragon": "0x2466f62D52005AaB7A8F637CC3152361D4CC210c", - "Mike B": "0x81DE849AdB5883d089cdFd66bB399b4Af74a16bb", - "Danko": "0x2304488F0eddF15227C21b021739448B51E791C0", - "Dubstard": "0x01B894622C7aa890d758C8a0E8156480F0Fa5f6C", - "gosuto": "0xd411b886e96291b089273a5835D2BE4406700352", - "lipman": "0xB209a59A9F3CC7FA5A25dF152a01f9dF8B969A3a" + "zero": { + "zero": "0x0000000000000000000000000000000000000000" + }, + "tokens": { + "BADGER": "0xBfa641051Ba0a0Ad1b0AcF549a89536A0D76472E", + "WBTC": "0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f", + "USDC": "0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8", + "CRV": "0x11cdb42b0eb46d95f990bedd4695a6e3fa034978", + "SUSHI": "0xd4d42f0b6def4ce0383636770ef773390d85c61a", + "renBTC": "0xdbf31df14b66535af65aac99c32e9ea844e14501", + "WETH": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1", + "USDT": "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9", + "LDO": "0x13Ad51ed4F1B7e9Dc168d8a00cB3f4dDD85EfA60" + }, + "across": { + "spoke_pool": "0xB88690461dDbaB6f04Dfad7df66B7725942FEb9C" + }, + "chainlink": { + "keeper_registry": "0x75c0530885F385721fddA23C539AF3701d6183D4", + "keeper_registrar": "0x4F3AF332A30973106Fe146Af0B4220bBBeA748eC" + }, + "sushi": { + "router": "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506" + }, + "swapr": { + "router": "0x530476d5583724A89c8841eB6Da76E7Af4C0F17E" + }, + "arbitrum": { + "node": "0x00000000000000000000000000000000000000C8", + "gateway_router": "0x5288c571Fd7aD117beA99bF60FE0846C4E84F933" + }, + "maxiKeepers": { + "gaugeRewardsInjectors": { + "arb_rewards_injector": "0xF23d8342881eDECcED51EA694AC21C2B68440929", + "fox_rewards_injector": "0xc085bD4cEd17015eAe366a6d1Cd095a2F6fD0B6D" + }, + "one_inch": { + "settlement": "0xad3b67bca8935cb510c8d18bd45f0b94f54a968f" + }, + "mimic": { + "smartvault": "0x94Dd9C6152a2A0BBcB52d3297b723A6F01D5F9f7", + "smartVaultV3": "0x9e5D6427D2cdaDC68870197b099C2Df535Ec3c97", + "claimer": "0xdF818E63341767d5F5A9827088f1892e9C604A2D", + "bptSwapper": "0x6030331C9225Ee5ae3F3D08FBD19e8bF053dF498", + "oneinchSwapper": "0xd712A863766dE7e7cA13289A97997E01832A6571", + "paraswapSwapper": "0x95676AaEcD59B19C5B79008F86d3A291628b0947" } + }, + "maxiVestingContracts": { + "factory": "0x7BBAc709a9535464690A435ca7361256496f13Ce", + "Tritium": "0x2b03b15E4A26D858DD594649988255eCEb832787", + "shak": "0x3e7EC248fd5BE044C0efcE9fAA778AC374350efc", + "Xeonus": "0xCE49aeFDDdDBa966cd69e6A4670f4F795F577264", + "zekraken": "0x5C8260f4eB66eC847018BBC5f68694864eF094Fe", + "Zen Dragon": "0x2466f62D52005AaB7A8F637CC3152361D4CC210c", + "Mike B": "0x81DE849AdB5883d089cdFd66bB399b4Af74a16bb", + "Danko": "0x2304488F0eddF15227C21b021739448B51E791C0", + "Dubstard": "0x01B894622C7aa890d758C8a0E8156480F0Fa5f6C", + "gosuto": "0xd411b886e96291b089273a5835D2BE4406700352", + "lipman": "0xB209a59A9F3CC7FA5A25dF152a01f9dF8B969A3a" + } } diff --git a/extras/avalanche.json b/extras/avalanche.json index 5fc20b5..b353cf0 100644 --- a/extras/avalanche.json +++ b/extras/avalanche.json @@ -15,8 +15,7 @@ "ankr": "0x10087761Ebd0Da939d2123A0B18D69F11f5Ea67f" } }, - "mimic": { - "smartVaultV3": "0x9e5D6427D2cdaDC68870197b099C2Df535Ec3c97" + "mimic": { + "smartVaultV3": "0x9e5D6427D2cdaDC68870197b099C2Df535Ec3c97" } - } diff --git a/extras/base.json b/extras/base.json index 547b654..b3989cb 100644 --- a/extras/base.json +++ b/extras/base.json @@ -6,12 +6,11 @@ "maxiKeepers": { "gasStation": "0x34a265e1EBCb31586293eb2D2f94c6ff2f920340", "gaugeRewardsInjectors": { - "usdc": "0xA6E7840Fc8193cFeBDdf177fa410038E5DD08f7A", - "gold": "0x79D0F97D4D8c1Dd30b1Ea09746dB8847036AD92d" + "usdc": "0xA6E7840Fc8193cFeBDdf177fa410038E5DD08f7A", + "gold": "0x79D0F97D4D8c1Dd30b1Ea09746dB8847036AD92d" } }, - "mimic": { - "smartVaultV3": "0x9e5D6427D2cdaDC68870197b099C2Df535Ec3c97" + "mimic": { + "smartVaultV3": "0x9e5D6427D2cdaDC68870197b099C2Df535Ec3c97" } - } diff --git a/extras/func_desc_by_name.json b/extras/func_desc_by_name.json index 0f08627..adf8343 100644 --- a/extras/func_desc_by_name.json +++ b/extras/func_desc_by_name.json @@ -39,7 +39,7 @@ "add_gauge(address,int128)": "Add a gauge to veBAL, allowing it to be voted on to receive BAL emissions.", "mint(address,uint256)": "Mint BAL tokens up to the current max supply as defined by the [emissions schedule.](https://docs.balancer.fi/concepts/governance/bal-token.html#supply-inflation-schedule)", "addZKSyncGauge(address)": "Adds a gauge to veBAL so it can be voted on to receive BAL emissions.", - "addGnosisGauge(address)":"Adds a gauge to veBAL so it can be voted on to receive BAL emissions.", + "addGnosisGauge(address)": "Adds a gauge to veBAL so it can be voted on to receive BAL emissions.", "add_reward(address,address)": "Enables a reward token for direct incentives on a gauge.", "renameProtocolId(uint256,string)": "Rename a protocolId in the linear pool protocol registry.", "registerProtocolId(uint256,string)": "Registers a protocol in the linear pool protocol registry." diff --git a/extras/gnosis.json b/extras/gnosis.json index 3f4dca6..1c47c09 100644 --- a/extras/gnosis.json +++ b/extras/gnosis.json @@ -1,19 +1,19 @@ { - "zero": { - "zero": "0x0000000000000000000000000000000000000000" - }, - "tokens": {}, - "mimic": { - "smartvault": "0x94Dd9C6152a2A0BBcB52d3297b723A6F01D5F9f7", - "smartVaultV3": "0x9e5D6427D2cdaDC68870197b099C2Df535Ec3c97", - "claimer": "0xdF818E63341767d5F5A9827088f1892e9C604A2D", - "bptSwapper": "0x6030331C9225Ee5ae3F3D08FBD19e8bF053dF498", - "oneinchSwapper": "0xd712A863766dE7e7cA13289A97997E01832A6571", - "paraswapSwapper": "0x95676AaEcD59B19C5B79008F86d3A291628b0947" - }, - "maxiKeepers": { - "gaugeRewardsInjectors": { - "usdc_rewards_injector": "0x87c921be1fd8ee7E5eda4394aDB849DB72847aE9" - } + "zero": { + "zero": "0x0000000000000000000000000000000000000000" + }, + "tokens": {}, + "mimic": { + "smartvault": "0x94Dd9C6152a2A0BBcB52d3297b723A6F01D5F9f7", + "smartVaultV3": "0x9e5D6427D2cdaDC68870197b099C2Df535Ec3c97", + "claimer": "0xdF818E63341767d5F5A9827088f1892e9C604A2D", + "bptSwapper": "0x6030331C9225Ee5ae3F3D08FBD19e8bF053dF498", + "oneinchSwapper": "0xd712A863766dE7e7cA13289A97997E01832A6571", + "paraswapSwapper": "0x95676AaEcD59B19C5B79008F86d3A291628b0947" + }, + "maxiKeepers": { + "gaugeRewardsInjectors": { + "usdc_rewards_injector": "0x87c921be1fd8ee7E5eda4394aDB849DB72847aE9" } + } } diff --git a/extras/goerli.json b/extras/goerli.json index 52ecf02..04d89b1 100644 --- a/extras/goerli.json +++ b/extras/goerli.json @@ -1,4 +1,6 @@ { - "zero": {"zero": "0x0000000000000000000000000000000000000000"}, - "tokens": {} + "zero": { + "zero": "0x0000000000000000000000000000000000000000" + }, + "tokens": {} } diff --git a/extras/mainnet.json b/extras/mainnet.json index b54d852..64522fc 100644 --- a/extras/mainnet.json +++ b/extras/mainnet.json @@ -1,149 +1,150 @@ { - "zero": {"zero": "0x0000000000000000000000000000000000000000"}, - "balancer": { - "veBALDeploymentCoordinator": "0xeb151668006CD04DAdD098AFd0a82e78F77076c3" - }, - "tokens": { - "bb_a_usd": "0xa13a9247ea42d743238089903570127dda72fe44", - "FARM": "0xa0246c9032bC3A600820415aE600c6388619A14D", - "BADGER": "0x3472A5A71965499acd81997a54BBA8D852C6E53d", - "DIGG": "0x798D1bE841a82a273720CE31c822C61a67a601C3", - "USDT": "0xdAC17F958D2ee523a2206206994597C13D831ec7", - "USDC": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", - "aUSDC": "0xBcca60bB61934080951369a648Fb03DF4F96263C", - "aUSDT": "0x3Ed3B47Dd13EC9a98b44e6204A523E766B225811", - "aFEI": "0x683923dB55Fead99A79Fa01A27EeC3cB19679cC3", - "cUSDC": "0x39aa39c021dfbae8fac545936693ac917d5e7563", - "cDAI": "0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643", - "cETH": "0x4Ddc2D193948926D02f9B1fE9e1daa0718270ED5", - "DUSD": "0x5BC25f649fc4e26069dDF4cF4010F9f706c23831", - "alUSD": "0xBC6DA0FE9aD5f3b0d58160288917AA56653660E9", - "DAI": "0x6B175474E89094C44Da98b954EedeAC495271d0F", - "MIM": "0x99D8a9C45b2ecA8864373A26D1459e3Dff1e17F3", - "FRAX": "0x853d955aCEf822Db058eb8505911ED77F175b99e", - "aFRAX": "0xd4937682df3C8aEF4FE912A96A74121C0829E664", - "FEI": "0x956F47F50A910163D8BF957Cf5846D573E7f87CA", - "CRV": "0xD533a949740bb3306d119CC777fa900bA034cd52", - "WBTC": "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599", - "aWBTC": "0x9ff58f4fFB29fA2266Ab25e75e2A8b3503311656", - "renBTC": "0xEB4C2781e4ebA804CE9a9803C67d0893436bB27D", - "sBTC": "0xfE18be6b3Bd88A2D2A7f928d00292E7a9963CfC6", - "WETH": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", - "SUSHI": "0x6b3595068778dd592e39a122f4f5a5cf09c90fe2", - "GTC": "0xDe30da39c46104798bB5aA3fe8B9e0e1F348163F", - "xSUSHI": "0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272", - "COMP": "0xc00e94Cb662C3520282E6f5717214004A7f26888", - "AAVE": "0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9", - "stkAAVE": "0x4da27a545c0c5B758a6BA100e3a049001de870f5", - "SPELL": "0x090185f2135308bad17527004364ebcc2d37e5f6", - "ALCX": "0xdbdb4d16eda451d0503b854cf79d55697f90c8df", - "FXS": "0x3432b6a60d23ca0dfca7761b7ab56459d9c964d0", - "CVX": "0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B", - "cvxCRV": "0x62B9c7356A2Dc64a1969e19C23e4f579F9810Aa7", - "EURS": "0xdB25f211AB05b1c97D595516F45794528a807ad8", - "FTM": "0x4E15361FD6b4BB609Fa63C81A2be19d873717870", - "BAL": "0xba100000625a3754423978a60c9317c58a424e3D", - "LINK": "0x514910771AF9Ca656af840dff83E8264EcF986CA", - "AURA": "0xC0c293ce456fF0ED870ADd98a0828Dd4d2903DBF", - "AURABAL": "0x616e8BfA43F920657B3497DBf40D6b1A02D4608d", - "BalWeth8020": "0x5c6Ee304399DBdB9C8Ef030aB642B10820DB8F56", - "ANGLE": "0x31429d1856aD1377A8A0079410B297e1a9e214c2", - "ENS": "0xC18360217D8F7Ab5e7c516566761Ea12Ce7F9D72", - "RETH": "0xae78736Cd615f374D3085123A210448E74Fc6393", - "GEAR": "0xBa3335588D9403515223F109EdC4eB7269a9Ab5D" - }, - "helpers": { - "balance_checker": "0xe92261c2D64C363109c36a754A87107142e61b72", - "rebalancerForPool": "0x3FBbB48ad78051982688a5a2Bc45eB6E2046a136" - }, - "layerzero": { - "OmniVotingEscrow": "0xe241c6e48ca045c7f631600a0f1403b2bfea05ad" - }, - "across": { - "spoke_pool": "0x4D9079Bb4165aeb4084c526a32695dCfd2F77381" - }, - "cow": { - "vault_relayer": "0xC92E8bdf79f0507f65a392b0ab4667716BFE0110", - "settlement": "0x9008D19f58AAbD9eD0D60971565AA8510560ab41" - }, - "one_inch":{ - "settlement": "0xad3b67bca8935cb510c8d18bd45f0b94f54a968f" - }, - "uniswap": { - "factoryV3": "0x1F98431c8aD98523631AE4a59f267346ea31F984", - "NonfungiblePositionManager": "0xC36442b4a4522E871399CD717aBDD847Ab11FE88", - "routerV2": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D", - "routerV3": "0xE592427A0AEce92De3Edee1F18E0157C05861564", - "factoryV2": "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f", - "quoter": "0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6" - }, - "hidden_hand_OLD": { - "bribe_vault": "0x9DDb2da7Dd76612e0df237B89AF2CF4413733212", - "tokenmak_briber": "0x7816b3D0935D668bCfc9A4aaB5a84EBc7fF320cf", - "balancer_briber": "0x7Cdf753b45AB0729bcFe33DC12401E55d28308A9", - "rewards_distributor": "0x0b139682D5C9Df3e735063f46Fb98c689540Cf3A", - "aura_briber": "0x642c59937A62cf7dc92F70Fd78A13cEe0aa2Bd9c", - "frax_briber": "0x123683885310851Ca29e83AE3FF3e2490D4420Cd" - }, - "hidden_hand2": { - "bribe_vault": "0xE00fe722e5bE7ad45b1A16066E431E47Df476CeC", - "balancer_briber": "0x45Bc37b18E73A42A4a826357a8348cDC042cCBBc", - "aura_briber": "0xcBf242F20D183B4116C22Dd5e441b9aE15b0d35A" - }, - "chainlink": { - "feed_registry": "0x47Fb2585D2C56Fe188D0E6ec628a38b74fCeeeDf", - "keeper_registry": "0x02777053d6764996e594c3E88AF1D58D5363a2e6", - "keeper_registrar": "0xDb8e8e2ccb5C033938736aa89Fe4fa1eDfD15a1d" - }, - "gnosis": { - "sign_message_lib": "0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2" - }, - "aura": { - "wrapper": "0x68655AD9852a99C87C0934c7290BB62CFa5D4123", - "depositor": "0xeAd792B55340Aa20181A80d6a16db6A0ECd1b827", - "aurabal_staking": "0xC47162863a12227E5c3B0860715F9cF721651C0c", - "aurabal_rewards": "0x5e5ea2048475854a5702F5B8468A51Ba1296EFcC", - "vlAURA": "0x3Fa73f1E5d8A792C80F426fc8F84FBF7Ce9bBCAC", - "merkle_drop": "0x45EB1A004373b1D8457134A2C04a42d69D287724", - "booster": "0x7818A1DA7BD1E64c199029E86Ba244a9798eEE10", - "claim_zap": "0x623B83755a39B12161A63748f3f595A530917Ab2", - "extra_rewards_distributor": "0xa3739b206097317c72ef416f0e75bb8f58fbd308", - "gauge_migrator": "0x7954bcDce86e86BeE7b1dEff48c3a0b9BCCe578B" - }, - "ens": { - "registry": "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e", - "public_resolver": "0x4976fb03C32e5B8cfe2b6cCB31c09Ba78EBaBa41" - }, - "euler": { - "euler": "0x27182842E098f60e3D576794A5bFFb0777E025d3", - "euler_markets": "0x3520d5a913427E6F0D6A83E07ccD4A4da316e4d3" - }, - "gauntlet": { - "GauntletFeeSetter": "0xE4a8ed6c1D8d048bD29A00946BFcf2DB10E7923B" - }, - "maxiKeepers": { - "gasStation": "0x7fb8f5D04b521B6880158819E69538655AABD5c4", - "oldGasStation": "0x2F1901f2A82fcC3Ee9010b809938816B3b06FA6A", - "veBalFeeInjector": "0x8AD2512819A7eae1dd398973EFfaE48dafBe8255", - "LZRateProviderPoker": "0xdDd5FF0E581f097573B13f247F6BE736f602F839" - }, - "gelatoW3f": { - "gearboxAutoBriberV1": "0xe1deE84FD9A90723548b46AC23E8532BC31f9225" - }, - "tokenLogic": { - "aaveDelegate": "0x2cc1ADE245020FC5AAE66Ad443e1F66e01c54Df1" - }, - "payees": { - "karpatkey_payments": "0x58e6c7ab55Aa9012eAccA16d1ED4c15795669E1C", - "hypernative_payments": "0x5CA24e2A586834A7B96216D68b26A82405e3DC15" - }, - "mimic": { - "smartvault": "0x94Dd9C6152a2A0BBcB52d3297b723A6F01D5F9f7", - "smartVaultV3": "0x9e5D6427D2cdaDC68870197b099C2Df535Ec3c97", - "claimer": "0xdF818E63341767d5F5A9827088f1892e9C604A2D", - "bptSwapper": "0x6030331C9225Ee5ae3F3D08FBD19e8bF053dF498", - "oneinchSwapper": "0xd712A863766dE7e7cA13289A97997E01832A6571", - "paraswapSwapper": "0x95676AaEcD59B19C5B79008F86d3A291628b0947" - - } + "zero": { + "zero": "0x0000000000000000000000000000000000000000" + }, + "balancer": { + "veBALDeploymentCoordinator": "0xeb151668006CD04DAdD098AFd0a82e78F77076c3" + }, + "tokens": { + "bb_a_usd": "0xa13a9247ea42d743238089903570127dda72fe44", + "FARM": "0xa0246c9032bC3A600820415aE600c6388619A14D", + "BADGER": "0x3472A5A71965499acd81997a54BBA8D852C6E53d", + "DIGG": "0x798D1bE841a82a273720CE31c822C61a67a601C3", + "USDT": "0xdAC17F958D2ee523a2206206994597C13D831ec7", + "USDC": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", + "aUSDC": "0xBcca60bB61934080951369a648Fb03DF4F96263C", + "aUSDT": "0x3Ed3B47Dd13EC9a98b44e6204A523E766B225811", + "aFEI": "0x683923dB55Fead99A79Fa01A27EeC3cB19679cC3", + "cUSDC": "0x39aa39c021dfbae8fac545936693ac917d5e7563", + "cDAI": "0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643", + "cETH": "0x4Ddc2D193948926D02f9B1fE9e1daa0718270ED5", + "DUSD": "0x5BC25f649fc4e26069dDF4cF4010F9f706c23831", + "alUSD": "0xBC6DA0FE9aD5f3b0d58160288917AA56653660E9", + "DAI": "0x6B175474E89094C44Da98b954EedeAC495271d0F", + "MIM": "0x99D8a9C45b2ecA8864373A26D1459e3Dff1e17F3", + "FRAX": "0x853d955aCEf822Db058eb8505911ED77F175b99e", + "aFRAX": "0xd4937682df3C8aEF4FE912A96A74121C0829E664", + "FEI": "0x956F47F50A910163D8BF957Cf5846D573E7f87CA", + "CRV": "0xD533a949740bb3306d119CC777fa900bA034cd52", + "WBTC": "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599", + "aWBTC": "0x9ff58f4fFB29fA2266Ab25e75e2A8b3503311656", + "renBTC": "0xEB4C2781e4ebA804CE9a9803C67d0893436bB27D", + "sBTC": "0xfE18be6b3Bd88A2D2A7f928d00292E7a9963CfC6", + "WETH": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", + "SUSHI": "0x6b3595068778dd592e39a122f4f5a5cf09c90fe2", + "GTC": "0xDe30da39c46104798bB5aA3fe8B9e0e1F348163F", + "xSUSHI": "0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272", + "COMP": "0xc00e94Cb662C3520282E6f5717214004A7f26888", + "AAVE": "0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9", + "stkAAVE": "0x4da27a545c0c5B758a6BA100e3a049001de870f5", + "SPELL": "0x090185f2135308bad17527004364ebcc2d37e5f6", + "ALCX": "0xdbdb4d16eda451d0503b854cf79d55697f90c8df", + "FXS": "0x3432b6a60d23ca0dfca7761b7ab56459d9c964d0", + "CVX": "0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B", + "cvxCRV": "0x62B9c7356A2Dc64a1969e19C23e4f579F9810Aa7", + "EURS": "0xdB25f211AB05b1c97D595516F45794528a807ad8", + "FTM": "0x4E15361FD6b4BB609Fa63C81A2be19d873717870", + "BAL": "0xba100000625a3754423978a60c9317c58a424e3D", + "LINK": "0x514910771AF9Ca656af840dff83E8264EcF986CA", + "AURA": "0xC0c293ce456fF0ED870ADd98a0828Dd4d2903DBF", + "AURABAL": "0x616e8BfA43F920657B3497DBf40D6b1A02D4608d", + "BalWeth8020": "0x5c6Ee304399DBdB9C8Ef030aB642B10820DB8F56", + "ANGLE": "0x31429d1856aD1377A8A0079410B297e1a9e214c2", + "ENS": "0xC18360217D8F7Ab5e7c516566761Ea12Ce7F9D72", + "RETH": "0xae78736Cd615f374D3085123A210448E74Fc6393", + "GEAR": "0xBa3335588D9403515223F109EdC4eB7269a9Ab5D" + }, + "helpers": { + "balance_checker": "0xe92261c2D64C363109c36a754A87107142e61b72", + "rebalancerForPool": "0x3FBbB48ad78051982688a5a2Bc45eB6E2046a136" + }, + "layerzero": { + "OmniVotingEscrow": "0xe241c6e48ca045c7f631600a0f1403b2bfea05ad" + }, + "across": { + "spoke_pool": "0x4D9079Bb4165aeb4084c526a32695dCfd2F77381" + }, + "cow": { + "vault_relayer": "0xC92E8bdf79f0507f65a392b0ab4667716BFE0110", + "settlement": "0x9008D19f58AAbD9eD0D60971565AA8510560ab41" + }, + "one_inch": { + "settlement": "0xad3b67bca8935cb510c8d18bd45f0b94f54a968f" + }, + "uniswap": { + "factoryV3": "0x1F98431c8aD98523631AE4a59f267346ea31F984", + "NonfungiblePositionManager": "0xC36442b4a4522E871399CD717aBDD847Ab11FE88", + "routerV2": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D", + "routerV3": "0xE592427A0AEce92De3Edee1F18E0157C05861564", + "factoryV2": "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f", + "quoter": "0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6" + }, + "hidden_hand_OLD": { + "bribe_vault": "0x9DDb2da7Dd76612e0df237B89AF2CF4413733212", + "tokenmak_briber": "0x7816b3D0935D668bCfc9A4aaB5a84EBc7fF320cf", + "balancer_briber": "0x7Cdf753b45AB0729bcFe33DC12401E55d28308A9", + "rewards_distributor": "0x0b139682D5C9Df3e735063f46Fb98c689540Cf3A", + "aura_briber": "0x642c59937A62cf7dc92F70Fd78A13cEe0aa2Bd9c", + "frax_briber": "0x123683885310851Ca29e83AE3FF3e2490D4420Cd" + }, + "hidden_hand2": { + "bribe_vault": "0xE00fe722e5bE7ad45b1A16066E431E47Df476CeC", + "balancer_briber": "0x45Bc37b18E73A42A4a826357a8348cDC042cCBBc", + "aura_briber": "0xcBf242F20D183B4116C22Dd5e441b9aE15b0d35A" + }, + "chainlink": { + "feed_registry": "0x47Fb2585D2C56Fe188D0E6ec628a38b74fCeeeDf", + "keeper_registry": "0x02777053d6764996e594c3E88AF1D58D5363a2e6", + "keeper_registrar": "0xDb8e8e2ccb5C033938736aa89Fe4fa1eDfD15a1d" + }, + "gnosis": { + "sign_message_lib": "0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2" + }, + "aura": { + "wrapper": "0x68655AD9852a99C87C0934c7290BB62CFa5D4123", + "depositor": "0xeAd792B55340Aa20181A80d6a16db6A0ECd1b827", + "aurabal_staking": "0xC47162863a12227E5c3B0860715F9cF721651C0c", + "aurabal_rewards": "0x5e5ea2048475854a5702F5B8468A51Ba1296EFcC", + "vlAURA": "0x3Fa73f1E5d8A792C80F426fc8F84FBF7Ce9bBCAC", + "merkle_drop": "0x45EB1A004373b1D8457134A2C04a42d69D287724", + "booster": "0x7818A1DA7BD1E64c199029E86Ba244a9798eEE10", + "claim_zap": "0x623B83755a39B12161A63748f3f595A530917Ab2", + "extra_rewards_distributor": "0xa3739b206097317c72ef416f0e75bb8f58fbd308", + "gauge_migrator": "0x7954bcDce86e86BeE7b1dEff48c3a0b9BCCe578B" + }, + "ens": { + "registry": "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e", + "public_resolver": "0x4976fb03C32e5B8cfe2b6cCB31c09Ba78EBaBa41" + }, + "euler": { + "euler": "0x27182842E098f60e3D576794A5bFFb0777E025d3", + "euler_markets": "0x3520d5a913427E6F0D6A83E07ccD4A4da316e4d3" + }, + "gauntlet": { + "GauntletFeeSetter": "0xE4a8ed6c1D8d048bD29A00946BFcf2DB10E7923B" + }, + "maxiKeepers": { + "gasStation": "0x7fb8f5D04b521B6880158819E69538655AABD5c4", + "oldGasStation": "0x2F1901f2A82fcC3Ee9010b809938816B3b06FA6A", + "veBalFeeInjector": "0x8AD2512819A7eae1dd398973EFfaE48dafBe8255", + "LZRateProviderPoker": "0xdDd5FF0E581f097573B13f247F6BE736f602F839" + }, + "gelatoW3f": { + "gearboxAutoBriberV1": "0xe1deE84FD9A90723548b46AC23E8532BC31f9225" + }, + "tokenLogic": { + "aaveDelegate": "0x2cc1ADE245020FC5AAE66Ad443e1F66e01c54Df1" + }, + "payees": { + "karpatkey_payments": "0x58e6c7ab55Aa9012eAccA16d1ED4c15795669E1C", + "hypernative_payments": "0x5CA24e2A586834A7B96216D68b26A82405e3DC15" + }, + "mimic": { + "smartvault": "0x94Dd9C6152a2A0BBcB52d3297b723A6F01D5F9f7", + "smartVaultV3": "0x9e5D6427D2cdaDC68870197b099C2Df535Ec3c97", + "claimer": "0xdF818E63341767d5F5A9827088f1892e9C604A2D", + "bptSwapper": "0x6030331C9225Ee5ae3F3D08FBD19e8bF053dF498", + "oneinchSwapper": "0xd712A863766dE7e7cA13289A97997E01832A6571", + "paraswapSwapper": "0x95676AaEcD59B19C5B79008F86d3A291628b0947" + } } diff --git a/extras/optimism.json b/extras/optimism.json index a15a20e..5b3ba97 100644 --- a/extras/optimism.json +++ b/extras/optimism.json @@ -1,15 +1,16 @@ { - "zero": {"zero": "0x0000000000000000000000000000000000000000"}, - "tokens": {}, - "chainlink": { - "keeper_registry": "0x75c0530885F385721fddA23C539AF3701d6183D4" - }, - "mimic": { - "smartvault": "0x94Dd9C6152a2A0BBcB52d3297b723A6F01D5F9f7", - "claimer": "0xdF818E63341767d5F5A9827088f1892e9C604A2D", - "bptSwapper": "0x6030331C9225Ee5ae3F3D08FBD19e8bF053dF498", - "oneinchSwapper": "0xd712A863766dE7e7cA13289A97997E01832A6571", - "paraswapSwapper": "0x95676AaEcD59B19C5B79008F86d3A291628b0947" - - } -} \ No newline at end of file + "zero": { + "zero": "0x0000000000000000000000000000000000000000" + }, + "tokens": {}, + "chainlink": { + "keeper_registry": "0x75c0530885F385721fddA23C539AF3701d6183D4" + }, + "mimic": { + "smartvault": "0x94Dd9C6152a2A0BBcB52d3297b723A6F01D5F9f7", + "claimer": "0xdF818E63341767d5F5A9827088f1892e9C604A2D", + "bptSwapper": "0x6030331C9225Ee5ae3F3D08FBD19e8bF053dF498", + "oneinchSwapper": "0xd712A863766dE7e7cA13289A97997E01832A6571", + "paraswapSwapper": "0x95676AaEcD59B19C5B79008F86d3A291628b0947" + } +} diff --git a/extras/polygon.json b/extras/polygon.json index 82aea59..9d17bd4 100644 --- a/extras/polygon.json +++ b/extras/polygon.json @@ -1,32 +1,32 @@ { - "zero": {"zero": "0x0000000000000000000000000000000000000000"}, - "tokens": { - "USDC": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174", - "WMATIC": "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270", - "WETH": "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619", - "BAL": "0x9a71012B13CA4d3D0Cdc72A177DF3ef03b0E76A3", - "WBTC": "0x1bfd67037b42cf73acf2047067bd4f2c47d9bfd6" - - }, - "across": { - "spoke_pool": "0x69B5c72837769eF1e7C164Abc6515DcFf217F920" - }, - "chainlink": { - "keeper_registry": "0x02777053d6764996e594c3E88AF1D58D5363a2e6" - }, - "maxiKeepers": { - "gasStation": "0xD692B454255d072B1ACe1b624e6Ee2bFd939D80F" - }, - "one_inch":{ - "settlement": "0xad3b67bca8935cb510c8d18bd45f0b94f54a968f" - }, - "mimic": { - "smartvault": "0x94Dd9C6152a2A0BBcB52d3297b723A6F01D5F9f7", - "smartVaultV3": "0x9e5D6427D2cdaDC68870197b099C2Df535Ec3c97", - "claimer": "0xdF818E63341767d5F5A9827088f1892e9C604A2D", - "bptSwapper": "0x6030331C9225Ee5ae3F3D08FBD19e8bF053dF498", - "oneinchSwapper": "0xd712A863766dE7e7cA13289A97997E01832A6571", - "paraswapSwapper": "0x95676AaEcD59B19C5B79008F86d3A291628b0947" - - } + "zero": { + "zero": "0x0000000000000000000000000000000000000000" + }, + "tokens": { + "USDC": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174", + "WMATIC": "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270", + "WETH": "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619", + "BAL": "0x9a71012B13CA4d3D0Cdc72A177DF3ef03b0E76A3", + "WBTC": "0x1bfd67037b42cf73acf2047067bd4f2c47d9bfd6" + }, + "across": { + "spoke_pool": "0x69B5c72837769eF1e7C164Abc6515DcFf217F920" + }, + "chainlink": { + "keeper_registry": "0x02777053d6764996e594c3E88AF1D58D5363a2e6" + }, + "maxiKeepers": { + "gasStation": "0xD692B454255d072B1ACe1b624e6Ee2bFd939D80F" + }, + "one_inch": { + "settlement": "0xad3b67bca8935cb510c8d18bd45f0b94f54a968f" + }, + "mimic": { + "smartvault": "0x94Dd9C6152a2A0BBcB52d3297b723A6F01D5F9f7", + "smartVaultV3": "0x9e5D6427D2cdaDC68870197b099C2Df535Ec3c97", + "claimer": "0xdF818E63341767d5F5A9827088f1892e9C604A2D", + "bptSwapper": "0x6030331C9225Ee5ae3F3D08FBD19e8bF053dF498", + "oneinchSwapper": "0xd712A863766dE7e7cA13289A97997E01832A6571", + "paraswapSwapper": "0x95676AaEcD59B19C5B79008F86d3A291628b0947" + } } diff --git a/extras/sepolia.json b/extras/sepolia.json index 52ecf02..04d89b1 100644 --- a/extras/sepolia.json +++ b/extras/sepolia.json @@ -1,4 +1,6 @@ { - "zero": {"zero": "0x0000000000000000000000000000000000000000"}, - "tokens": {} + "zero": { + "zero": "0x0000000000000000000000000000000000000000" + }, + "tokens": {} } diff --git a/extras/zkevm.json b/extras/zkevm.json index e1cbf1f..0b7d439 100644 --- a/extras/zkevm.json +++ b/extras/zkevm.json @@ -1,12 +1,12 @@ { - "zero": { - "zero": "0x0000000000000000000000000000000000000000" - }, - "tokens": {}, - "maxiKeepers": { - "gaugeRewardsInjectors": { - "usdc_rewards_injector": "0x2F1901f2A82fcC3Ee9010b809938816B3b06FA6A", - "matic_rewards_injector": "0x3fb4ee715987eD98EDbeEb144F9b6b034C4c9F02" - } + "zero": { + "zero": "0x0000000000000000000000000000000000000000" + }, + "tokens": {}, + "maxiKeepers": { + "gaugeRewardsInjectors": { + "usdc_rewards_injector": "0x2F1901f2A82fcC3Ee9010b809938816B3b06FA6A", + "matic_rewards_injector": "0x3fb4ee715987eD98EDbeEb144F9b6b034C4c9F02" } + } } diff --git a/gen_mono_addressbook.py b/gen_mono_addressbook.py index 6e1d09c..b7d1c6a 100644 --- a/gen_mono_addressbook.py +++ b/gen_mono_addressbook.py @@ -103,4 +103,4 @@ def process_deployments(deployments, old=False): if __name__ == "__main__": - main() \ No newline at end of file + main() diff --git a/manifest.in b/manifest.in index d2dd4ca..5b863ad 100644 --- a/manifest.in +++ b/manifest.in @@ -1,3 +1,3 @@ include *.py include *.json -include *.txt \ No newline at end of file +include *.txt diff --git a/outputs/addressbook.json b/outputs/addressbook.json index 5670ab0..f9f7b46 100644 --- a/outputs/addressbook.json +++ b/outputs/addressbook.json @@ -12547,4 +12547,4 @@ } } } -} \ No newline at end of file +} diff --git a/outputs/arbitrum.json b/outputs/arbitrum.json index 510e7b6..f68bb20 100644 --- a/outputs/arbitrum.json +++ b/outputs/arbitrum.json @@ -1510,4 +1510,4 @@ "tokens/WETH": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1", "tokens/renBTC": "0xDBf31dF14B66535aF65AaC99C32e9eA844e14501", "zero/zero": "0x0000000000000000000000000000000000000000" -} \ No newline at end of file +} diff --git a/outputs/arbitrum_reverse.json b/outputs/arbitrum_reverse.json index 07d085e..e1403ca 100644 --- a/outputs/arbitrum_reverse.json +++ b/outputs/arbitrum_reverse.json @@ -1486,4 +1486,4 @@ "0xfc6bd3E7ef50F0Ac5624A1f905e5ea6574BFFbb6": "pools/30RDNT-1050WSTETH-50USDC-60GMD-fc6b", "0xfe7896784fCa7aa8CD106C963BF94B18D6d3B186": "pools/50VSTA-50USDT-fe78", "0xff7c044EEEE53092346A6661b476e4d8dEaf9E5e": "pools/50BAL-50wstETH-ff7c" -} \ No newline at end of file +} diff --git a/outputs/avalanche.json b/outputs/avalanche.json index 5f09cdf..528604a 100644 --- a/outputs/avalanche.json +++ b/outputs/avalanche.json @@ -202,4 +202,4 @@ "pools/sAVAX/ggAVAX/yyAVAX-8783": "0x8783E0156cd747D0Cc012087d3D3AFC897F2328C", "pools/yyAVAX-WAVAX-BPT-9fa6": "0x9fA6aB3d78984A69e712730A2227F20bCC8b5aD9", "zero/zero": "0x0000000000000000000000000000000000000000" -} \ No newline at end of file +} diff --git a/outputs/avalanche_reverse.json b/outputs/avalanche_reverse.json index 6743d0d..201a5b8 100644 --- a/outputs/avalanche_reverse.json +++ b/outputs/avalanche_reverse.json @@ -184,4 +184,4 @@ "0xf23b4DB826DbA14c0e857029dfF076b1c0264843": "20230316-child-chain-gauge-factory-v2/ChildChainGaugeFactory", "0xf9aE6D2D56f02304f72dcC61694eAD0dC8DB51f7": "gauges/sAVAX-WAVAX-BPT-gauge-f9ae", "0xfD2620C9cfceC7D152467633B3B0Ca338D3d78cc": "pools/sAVAX-WAVAX-BPT-fd26" -} \ No newline at end of file +} diff --git a/outputs/base.json b/outputs/base.json index efdf998..98fffa5 100644 --- a/outputs/base.json +++ b/outputs/base.json @@ -390,4 +390,4 @@ "pools/rETH-WETH-BPT-c771": "0xC771c1a5905420DAEc317b154EB13e4198BA97D0", "pools/veOGRE-0be4": "0x0bE4DC963db6ca066fF147069B9C437da683608b", "zero/zero": "0x0000000000000000000000000000000000000000" -} \ No newline at end of file +} diff --git a/outputs/base_reverse.json b/outputs/base_reverse.json index fadac3c..12e52ac 100644 --- a/outputs/base_reverse.json +++ b/outputs/base_reverse.json @@ -377,4 +377,4 @@ "0xfAB10dd71e11d0ad403cc31418B45D816f2F9882": "pools/20WETH-80WELL-fab1", "0xfB7c21F274139011Dab38898bA66401D11114435": "pools/50DAI-50USDC-fb7c", "0xfa3C16D8a8c7A956a5C17d8f1daF7Bf6aBCAaa39": "pools/50USDC-50USDbC-fa3c" -} \ No newline at end of file +} diff --git a/outputs/core_pools.json b/outputs/core_pools.json index 19cd6f9..0d2cd6a 100644 --- a/outputs/core_pools.json +++ b/outputs/core_pools.json @@ -80,4 +80,4 @@ "0xc771c1a5905420daec317b154eb13e4198ba97d0000000000000000000000023": "rETH-WETH-BPT", "0x0c659734f1eef9c63b7ebdf78a164cdd745586db000000000000000000000046": "USDC/USDbC/axlUSDC" } -} \ No newline at end of file +} diff --git a/outputs/deployments.json b/outputs/deployments.json index 1d62476..2f2c529 100644 --- a/outputs/deployments.json +++ b/outputs/deployments.json @@ -2451,4 +2451,4 @@ } } } -} \ No newline at end of file +} diff --git a/outputs/gauges.json b/outputs/gauges.json index 9a0fcc7..1b4d608 100644 --- a/outputs/gauges.json +++ b/outputs/gauges.json @@ -501,4 +501,4 @@ "50WETH-50GOLD-gauge-e2f2": "0xe2f2aed19fa245aff66342c2b849be6f411fb28f", " 50tBTC-50USD-gauge-ef97": "0xef97b54f69060f4d5304f79734d01c2da12114d8" } -} \ No newline at end of file +} diff --git a/outputs/gnosis.json b/outputs/gnosis.json index f9639bc..057af95 100644 --- a/outputs/gnosis.json +++ b/outputs/gnosis.json @@ -289,4 +289,4 @@ "pools/wxdaiusdcweighted-a94a": "0xa94A92fC2cA0601481d5DE357489ceaEBa1C1Dc6", "pools/xdaiusdtusdc-1188": "0x11884dA90FB4221b3aa288a7741C51eC4Fc43B2f", "zero/zero": "0x0000000000000000000000000000000000000000" -} \ No newline at end of file +} diff --git a/outputs/gnosis_reverse.json b/outputs/gnosis_reverse.json index 355214e..f76376c 100644 --- a/outputs/gnosis_reverse.json +++ b/outputs/gnosis_reverse.json @@ -268,4 +268,4 @@ "0xfC79073963F97Ff72C5Ef8EF7A92F71cE5f5b91E": "pools/50agEUR-50USDC-fc79", "0xfa0017abd72BB87443c3F39b9434d357Cc1EeC27": "pools/40FRACTION-40MIVA-20GNO-fa00", "0xfbc3112172bA256454047D7436d1E08B3cdc5031": "pools/80MIVA-20WXDAI-fbc3" -} \ No newline at end of file +} diff --git a/outputs/goerli.json b/outputs/goerli.json index eb60b96..66db82f 100644 --- a/outputs/goerli.json +++ b/outputs/goerli.json @@ -1598,4 +1598,4 @@ "pools/yyc_LBP-c376": "0xc376835eFF9c876a1E70fcC73B3F8fe7173CC60F", "pools/\ud83e\udd13-7bae": "0x7bae60458df0fc6455B2F24f6A3D031BCbe88946", "zero/zero": "0x0000000000000000000000000000000000000000" -} \ No newline at end of file +} diff --git a/outputs/goerli_reverse.json b/outputs/goerli_reverse.json index 4ee2607..f621f93 100644 --- a/outputs/goerli_reverse.json +++ b/outputs/goerli_reverse.json @@ -1576,4 +1576,4 @@ "0xfd9d0aBd560d3E5dA2caf4Fc33fDC60D533DE19b": "pools/ASCEND06-fd9d", "0xfee6Da6ce300197B7D613dE22Cb00e86a8537F06": "pools/PUCE-fee6", "0xff79b51ec2934Dd1810a8e0325e3B08708720B26": "20230411-managed-pool-v2/MockManagedPool" -} \ No newline at end of file +} diff --git a/outputs/mainnet.json b/outputs/mainnet.json index 49a167a..d833a4a 100644 --- a/outputs/mainnet.json +++ b/outputs/mainnet.json @@ -1862,4 +1862,4 @@ "uniswap/routerV2": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D", "uniswap/routerV3": "0xE592427A0AEce92De3Edee1F18E0157C05861564", "zero/zero": "0x0000000000000000000000000000000000000000" -} \ No newline at end of file +} diff --git a/outputs/mainnet_reverse.json b/outputs/mainnet_reverse.json index 130a36c..49af587 100644 --- a/outputs/mainnet_reverse.json +++ b/outputs/mainnet_reverse.json @@ -1832,4 +1832,4 @@ "0xfeF969638C52899f91781f1Be594aF6f40B99BAd": "20230206-erc4626-linear-pool-v3/MockERC4626LinearPool", "0xfeb1A24C2752E53576133cdb718F25bC64eBDD52": "20220823-polygon-root-gauge-factory-v2/PolygonRootGauge", "0xfee6Da6ce300197B7D613dE22Cb00e86a8537F06": "pools/50fUSDC-50USDC-fee6" -} \ No newline at end of file +} diff --git a/outputs/optimism.json b/outputs/optimism.json index f07f61e..20bdf6d 100644 --- a/outputs/optimism.json +++ b/outputs/optimism.json @@ -505,4 +505,4 @@ "pools/test-bb-WETH-62de": "0x62DE5ca16A618E22F6dfE5315EbD31aCB10c44b6", "pools/test-bb-rf-a-USD-9964": "0x9964b1bD3CC530E5c58BA564e45d45290F677BE2", "zero/zero": "0x0000000000000000000000000000000000000000" -} \ No newline at end of file +} diff --git a/outputs/optimism_reverse.json b/outputs/optimism_reverse.json index 1952d62..cb0bf59 100644 --- a/outputs/optimism_reverse.json +++ b/outputs/optimism_reverse.json @@ -481,4 +481,4 @@ "0xf6D037883cc52cAD1A8238064B3041c754a0Baa9": "pools/BPT-LINK-f6d0", "0xf984eb2B8a7eF780245a797A2fCcd82f346409ca": "20230206-erc4626-linear-pool-v3/MockERC4626LinearPool", "0xfE1538a8eFB7adcFc4EE0621F38e319D9e1cb302": "gauges/bb-rf-SOTRI-gauge-fe15" -} \ No newline at end of file +} diff --git a/outputs/permissions/active/arbitrum.json b/outputs/permissions/active/arbitrum.json index f41828d..fe39764 100644 --- a/outputs/permissions/active/arbitrum.json +++ b/outputs/permissions/active/arbitrum.json @@ -437,4 +437,4 @@ "0x9d2042bf873d984ff8ce2661c7f5854078b8bbf1d618d0509ec379533d3ba9af": [ "0xc38c5f97B34E175FFd35407fc91a937300E33860" ] -} \ No newline at end of file +} diff --git a/outputs/permissions/active/avalanche.json b/outputs/permissions/active/avalanche.json index 9deed6d..bc89689 100644 --- a/outputs/permissions/active/avalanche.json +++ b/outputs/permissions/active/avalanche.json @@ -141,4 +141,4 @@ "0x28dcd620872aaaed93f0363c5b4b038f3b1fcaba6944fb976d670390e56accd0": [ "0x326A7778DB9B741Cb2acA0DE07b9402C7685dAc6" ] -} \ No newline at end of file +} diff --git a/outputs/permissions/active/base.json b/outputs/permissions/active/base.json index 99323b7..133bbc9 100644 --- a/outputs/permissions/active/base.json +++ b/outputs/permissions/active/base.json @@ -166,4 +166,4 @@ "0xf88b0410ed2535c2978ede956e8b17ef2738d8d5f57956886f4e9b7b0d9fd157": [ "0x65226673F3D202E0f897C862590d7e1A992B2048" ] -} \ No newline at end of file +} diff --git a/outputs/permissions/active/gnosis.json b/outputs/permissions/active/gnosis.json index 2031d8f..807c69d 100644 --- a/outputs/permissions/active/gnosis.json +++ b/outputs/permissions/active/gnosis.json @@ -264,4 +264,4 @@ "0x0c055dc6cd1d6558914ef49c536f751680f8c413a3563007992801443bcca7a5": [ "0x14969B55a675d13a1700F71A37511bc22D90155a" ] -} \ No newline at end of file +} diff --git a/outputs/permissions/active/goerli.json b/outputs/permissions/active/goerli.json index ae8c1b5..3e51957 100644 --- a/outputs/permissions/active/goerli.json +++ b/outputs/permissions/active/goerli.json @@ -102,4 +102,4 @@ "0x10A19e7eE7d7F8a52822f6817de8ea18204F2e4f", "0x3bAbEBfD684506A5B47701ee231A53427Ad413Ef" ] -} \ No newline at end of file +} diff --git a/outputs/permissions/active/mainnet.json b/outputs/permissions/active/mainnet.json index 61fd220..f8d2831 100644 --- a/outputs/permissions/active/mainnet.json +++ b/outputs/permissions/active/mainnet.json @@ -626,4 +626,4 @@ "0x54f43cdb53a74c7bd91359b21ad8cd82a6a41b6ff8718aea74f1d2b9292c6b41": [ "0xc38c5f97B34E175FFd35407fc91a937300E33860" ] -} \ No newline at end of file +} diff --git a/outputs/permissions/active/optimism.json b/outputs/permissions/active/optimism.json index e9dfa36..da92142 100644 --- a/outputs/permissions/active/optimism.json +++ b/outputs/permissions/active/optimism.json @@ -395,4 +395,4 @@ "0xdbfdeb1d2ce00232fda29f8069f731deb70f0e1438aa8a1e35e89eac02403c23": [ "0x09Df1626110803C7b3b07085Ef1E053494155089" ] -} \ No newline at end of file +} diff --git a/outputs/permissions/active/polygon.json b/outputs/permissions/active/polygon.json index 3a50e7d..ef5fec6 100644 --- a/outputs/permissions/active/polygon.json +++ b/outputs/permissions/active/polygon.json @@ -444,4 +444,4 @@ "0xbb90aa662dea36fc9db5c97eafcf6a4379941e6e2675d8c1bc1416a42b77db25": [ "0xc38c5f97B34E175FFd35407fc91a937300E33860" ] -} \ No newline at end of file +} diff --git a/outputs/permissions/active/sepolia.json b/outputs/permissions/active/sepolia.json index 2e23415..37ddde5 100644 --- a/outputs/permissions/active/sepolia.json +++ b/outputs/permissions/active/sepolia.json @@ -14,4 +14,4 @@ "0x504baaf96c678c93b68ca6c03922803f5a23101336eea2d6ea27b8b86059f257": [ "0x9098b50ee2d9E4c3C69928A691DA3b192b4C9673" ] -} \ No newline at end of file +} diff --git a/outputs/permissions/active/zkevm.json b/outputs/permissions/active/zkevm.json index 1835c55..215cd89 100644 --- a/outputs/permissions/active/zkevm.json +++ b/outputs/permissions/active/zkevm.json @@ -217,4 +217,4 @@ "0xbd408e756684e5ea83089ee33aa05ce9410b392967bffc71c11fb394026e7a09": [ "0xB59Ab49CA8d064E645Bf2c546d9FE6d1d4147a09" ] -} \ No newline at end of file +} diff --git a/outputs/polygon.json b/outputs/polygon.json index a6b4a28..139daa4 100644 --- a/outputs/polygon.json +++ b/outputs/polygon.json @@ -3660,4 +3660,4 @@ "tokens/WETH": "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619", "tokens/WMATIC": "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270", "zero/zero": "0x0000000000000000000000000000000000000000" -} \ No newline at end of file +} diff --git a/outputs/polygon_reverse.json b/outputs/polygon_reverse.json index 3455c80..1914138 100644 --- a/outputs/polygon_reverse.json +++ b/outputs/polygon_reverse.json @@ -3636,4 +3636,4 @@ "0xffF3A0C1a7D3d3D4531C2C455954deA79FA94CbF": "pools/20RBW-80UNIM-fff3", "0xffFc1aFFD8CC1596da88A24b274866D59c7d80B0": "gauges/B-POLYDEFI-gauge-fffc", "0xffd74DEF337c53aC0580BA9f0A0092C6c24e13D2": "pools/NUGZ_TLA-ffd7" -} \ No newline at end of file +} diff --git a/outputs/pools.json b/outputs/pools.json index d947356..e78881b 100644 --- a/outputs/pools.json +++ b/outputs/pools.json @@ -8153,4 +8153,4 @@ "cbETH/WETH-fb4c": "0xfb4c2e6e6e27b5b4a07a36360c89ede29bb3c9b6", "50DAI-50USDC-fb7c": "0xfb7c21f274139011dab38898ba66401d11114435" } -} \ No newline at end of file +} diff --git a/outputs/root_gauges.json b/outputs/root_gauges.json index 4681b17..92ee4d3 100644 --- a/outputs/root_gauges.json +++ b/outputs/root_gauges.json @@ -156,4 +156,4 @@ "rETH/wETH BPT-arbitrum-root-f8a9": "0xf8a95653cc7ee59afa2304dcc518c431a15c292c", "bb-WETH-wstETH-gnosis-root-f8c8": "0xf8c85bd74fee26831336b51a90587145391a27ba" } -} \ No newline at end of file +} diff --git a/outputs/sepolia.json b/outputs/sepolia.json index 4bdfe11..f51d4b8 100644 --- a/outputs/sepolia.json +++ b/outputs/sepolia.json @@ -238,4 +238,4 @@ "pools/univ4-a-dai-027a": "0x027A946Ac5a861B66a50cca0E8fB8766718b4851", "pools/weighted-no-prov-8d1a": "0x8D1aCc804cBce52ADdB01F1076bB3723C516f27b", "zero/zero": "0x0000000000000000000000000000000000000000" -} \ No newline at end of file +} diff --git a/outputs/sepolia_reverse.json b/outputs/sepolia_reverse.json index fc5013e..8fba7d5 100644 --- a/outputs/sepolia_reverse.json +++ b/outputs/sepolia_reverse.json @@ -219,4 +219,4 @@ "0xf7D5DcE55E6D47852F054697BAB6A1B48A00ddbd": "20220725-protocol-fee-percentages-provider/ProtocolFeePercentagesProvider", "0xf7a7E1F48FA43cb7919Ff4Eb362c5bE78092dF4A": "20230320-weighted-pool-v4/MockWeightedPool", "0xf99df032566BEA02D68E02AB98dafFE96BB834C5": "pools/Weighted-Dred-f99d" -} \ No newline at end of file +} diff --git a/outputs/zkevm.json b/outputs/zkevm.json index cf067bd..5a96b1d 100644 --- a/outputs/zkevm.json +++ b/outputs/zkevm.json @@ -229,4 +229,4 @@ "pools/wstETH/ankrETH -65da": "0x65dA876A95CD5b6A5880710628C436409B1B29fa", "pools/wsteth/ankrETH -4e40": "0x4E406fa1676FC1DE63bbdb241dCCF3c10B55c65A", "zero/zero": "0x0000000000000000000000000000000000000000" -} \ No newline at end of file +} diff --git a/outputs/zkevm_reverse.json b/outputs/zkevm_reverse.json index 6c5f149..c9cd83c 100644 --- a/outputs/zkevm_reverse.json +++ b/outputs/zkevm_reverse.json @@ -207,4 +207,4 @@ "0xfDf0cd40380ff5B667152893dB259802235Cc07e": "pools/60USDT-40USDC-fdf0", "0xfFC865fCb34e754Fad4B0144139b9c28c81C3eFF": "pools/rsETH/wETH-ffc8", "0xff9B1278EBA8046007bf9C30b3D93F68F9323451": "pools/50MATIC-50USDC-ff9b" -} \ No newline at end of file +} diff --git a/setup.py b/setup.py index c3da3c7..fb97a9d 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,8 @@ from setuptools import setup, find_packages -VERSION = '0.9.1' -DESCRIPTION = 'Balancer Maxi Addressbook' -LONG_DESCRIPTION = 'Balancer Maxi Addressbook and Balancer Permissions helper' +VERSION = "0.9.1" +DESCRIPTION = "Balancer Maxi Addressbook" +LONG_DESCRIPTION = "Balancer Maxi Addressbook and Balancer Permissions helper" # Setting up setup( @@ -14,15 +14,22 @@ long_description=LONG_DESCRIPTION, packages=find_packages(), include_package_data=True, # Automatically include non-Python files - package_data={'': ['graphql/**/*.gql', 'abis/*.json']}, + package_data={"": ["graphql/**/*.gql", "abis/*.json"]}, url="https://github.com/BalancerMaxis/bal_addresses", - install_requires=["setuptools>=42", "wheel", "munch==4.0.0", "web3", "gql[requests]", "requests"], - keywords=['python', 'first package'], + install_requires=[ + "setuptools>=42", + "wheel", + "munch==4.0.0", + "web3", + "gql[requests]", + "requests", + ], + keywords=["python", "first package"], classifiers=[ "Development Status :: 4 - Beta", "Programming Language :: Python :: 3.9", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: Linux", - ] + ], ) diff --git a/tests/test_addresses.py b/tests/test_addresses.py index 375baf2..eb097d9 100644 --- a/tests/test_addresses.py +++ b/tests/test_addresses.py @@ -12,7 +12,7 @@ def test_deployments_populated(): "/bal_addresses/main/outputs/deployments.json", json={ "BFactory": "0x9424B1412450D0f8Fc2255FAf6046b98213B76Bd", - } + }, ) responses.add( responses.GET, @@ -23,32 +23,29 @@ def test_deployments_populated(): "contracts": [ { "name": "Vault", - "address": "0xBA12222222228d8Ba445958a75a0704d566BF2C8" + "address": "0xBA12222222228d8Ba445958a75a0704d566BF2C8", }, { "name": "BalancerHelpers", - "address": "0x5aDDCCa35b7A0D07C74063c48700C8590E87864E" + "address": "0x5aDDCCa35b7A0D07C74063c48700C8590E87864E", }, { "name": "ProtocolFeesCollector", - "address": "0xce88686553686DA562CE7Cea497CE749DA109f9F" - } + "address": "0xce88686553686DA562CE7Cea497CE749DA109f9F", + }, ], - "status": "ACTIVE" + "status": "ACTIVE", } - } + }, ) responses.add( responses.GET, "https://raw.githubusercontent.com/BalancerMaxis" "/bal_addresses/main/extras/mainnet.json", json={ - "zero": { - "zero": "0x0000000000000000000000000000000000000000" - }, - "balancer": {} - - } + "zero": {"zero": "0x0000000000000000000000000000000000000000"}, + "balancer": {}, + }, ) responses.add( responses.GET, @@ -58,7 +55,7 @@ def test_deployments_populated(): "mainnet": { "dao": "0x10A19e7eE7d7F8a52822f6817de8ea18204F2e4f", } - } + }, ) a = AddrBook("mainnet") @@ -66,7 +63,8 @@ def test_deployments_populated(): assert a.deployments.vault.status == "ACTIVE" assert a.deployments.vault.contracts.Vault.name == "Vault" assert ( - a.deployments.vault.contracts.Vault.address == "0xBA12222222228d8Ba445958a75a0704d566BF2C8" + a.deployments.vault.contracts.Vault.address + == "0xBA12222222228d8Ba445958a75a0704d566BF2C8" ) assert a.deployments.vault.contracts.BalancerHelpers.name == "BalancerHelpers" # Make sure that when we try to access a non-existing attribute, we get an error @@ -81,6 +79,7 @@ def test_deployments_populated(): print(a.multisigs) assert a.multisigs.dao == "0x10A19e7eE7d7F8a52822f6817de8ea18204F2e4f" + @responses.activate def test_deployments_invalid_format(): """ @@ -92,40 +91,25 @@ def test_deployments_invalid_format(): "/bal_addresses/main/outputs/deployments.json", json={ "BFactory": "0x9424B1412450D0f8Fc2255FAf6046b98213B76Bd", - } + }, ) responses.add( responses.GET, "https://raw.githubusercontent.com/balancer" "/balancer-deployments/master/addresses/mainnet.json", - json={ - "20210418-vault": { - "contracts": {'name': 'Vault'}, - "status": "ACTIVE" - } - } + json={"20210418-vault": {"contracts": {"name": "Vault"}, "status": "ACTIVE"}}, ) responses.add( responses.GET, "https://raw.githubusercontent.com/BalancerMaxis" "/bal_addresses/main/extras/mainnet.json", - json={ - "vault": { - "contracts": {'name': 'Vault'}, - "status": "ACTIVE" - } - } + json={"vault": {"contracts": {"name": "Vault"}, "status": "ACTIVE"}}, ) responses.add( responses.GET, "https://raw.githubusercontent.com/BalancerMaxis" "/bal_addresses/main/extras/multisigs.json", - json={ - "mainnet": { - "contracts": {'name': 'Vault'}, - "status": "ACTIVE" - } - } + json={"mainnet": {"contracts": {"name": "Vault"}, "status": "ACTIVE"}}, ) a = AddrBook("mainnet") @@ -146,28 +130,28 @@ def test_deployments_not_populated(): "/bal_addresses/main/outputs/deployments.json", json={ "BFactory": "0x9424B1412450D0f8Fc2255FAf6046b98213B76Bd", - } + }, ) responses.add( responses.GET, "https://raw.githubusercontent.com/balancer" "/balancer-deployments/master/addresses/mainnet.json", json={}, - status=404 + status=404, ) responses.add( responses.GET, "https://raw.githubusercontent.com/BalancerMaxis" "/bal_addresses/main/extras/mainnet.json", json={}, - status=404 + status=404, ) responses.add( responses.GET, "https://raw.githubusercontent.com/BalancerMaxis" "/bal_addresses/main/extras/multisigs.json", json={}, - status=404 + status=404, ) a = AddrBook("mainnet") assert a.deployments is None @@ -178,4 +162,4 @@ def test_deployments_not_populated(): assert a.extras.non_existing_attribute assert a.multisigs == {} with pytest.raises(AttributeError): - assert a.multisigs.non_existing_attribute \ No newline at end of file + assert a.multisigs.non_existing_attribute