diff --git a/substreams/ethereum-curve/abi/crypto_swap_registry.json b/substreams/ethereum-curve/abi/crypto_swap_registry.json deleted file mode 100644 index 3ba9500..0000000 --- a/substreams/ethereum-curve/abi/crypto_swap_registry.json +++ /dev/null @@ -1,751 +0,0 @@ -[ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "pool", - "type": "address" - } - ], - "name": "PoolAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "basepool", - "type": "address" - } - ], - "name": "BasePoolAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "pool", - "type": "address" - } - ], - "name": "PoolRemoved", - "type": "event" - }, - { - "inputs": [ - { - "name": "_address_provider", - "type": "address" - }, - { - "name": "_base_pool_registry", - "type": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "name": "_from", - "type": "address" - }, - { - "name": "_to", - "type": "address" - } - ], - "name": "find_pool_for_coins", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "_from", - "type": "address" - }, - { - "name": "_to", - "type": "address" - }, - { - "name": "i", - "type": "uint256" - } - ], - "name": "find_pool_for_coins", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_n_coins", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_n_underlying_coins", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_coins", - "outputs": [ - { - "name": "", - "type": "address[8]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_underlying_coins", - "outputs": [ - { - "name": "", - "type": "address[8]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_decimals", - "outputs": [ - { - "name": "", - "type": "uint256[8]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_underlying_decimals", - "outputs": [ - { - "name": "", - "type": "uint256[8]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_gauges", - "outputs": [ - { - "name": "", - "type": "address[10]" - }, - { - "name": "", - "type": "int128[10]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_balances", - "outputs": [ - { - "name": "", - "type": "uint256[8]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_underlying_balances", - "outputs": [ - { - "name": "", - "type": "uint256[8]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "_token", - "type": "address" - } - ], - "name": "get_virtual_price_from_lp_token", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_A", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_D", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_gamma", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_fees", - "outputs": [ - { - "name": "", - "type": "uint256[4]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_admin_balances", - "outputs": [ - { - "name": "", - "type": "uint256[8]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "_pool", - "type": "address" - }, - { - "name": "_from", - "type": "address" - }, - { - "name": "_to", - "type": "address" - } - ], - "name": "get_coin_indices", - "outputs": [ - { - "name": "", - "type": "int128" - }, - { - "name": "", - "type": "int128" - }, - { - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "is_meta", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_base_pool", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_pool_name", - "outputs": [ - { - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "_pool", - "type": "address" - }, - { - "name": "_lp_token", - "type": "address" - }, - { - "name": "_gauge", - "type": "address" - }, - { - "name": "_zap", - "type": "address" - }, - { - "name": "_n_coins", - "type": "uint256" - }, - { - "name": "_name", - "type": "string" - } - ], - "name": "add_pool", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "name": "_pool", - "type": "address" - }, - { - "name": "_lp_token", - "type": "address" - }, - { - "name": "_gauge", - "type": "address" - }, - { - "name": "_zap", - "type": "address" - }, - { - "name": "_n_coins", - "type": "uint256" - }, - { - "name": "_name", - "type": "string" - }, - { - "name": "_base_pool", - "type": "address" - } - ], - "name": "add_pool", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "name": "_pool", - "type": "address" - }, - { - "name": "_lp_token", - "type": "address" - }, - { - "name": "_gauge", - "type": "address" - }, - { - "name": "_zap", - "type": "address" - }, - { - "name": "_n_coins", - "type": "uint256" - }, - { - "name": "_name", - "type": "string" - }, - { - "name": "_base_pool", - "type": "address" - }, - { - "name": "_has_positive_rebasing_tokens", - "type": "bool" - } - ], - "name": "add_pool", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "remove_pool", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "name": "_pool", - "type": "address" - }, - { - "name": "_liquidity_gauges", - "type": "address[10]" - } - ], - "name": "set_liquidity_gauges", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "name": "_pools", - "type": "address[10]" - }, - { - "name": "_liquidity_gauges", - "type": "address[10]" - } - ], - "name": "batch_set_liquidity_gauges", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "address_provider", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "base_pool_registry", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "arg0", - "type": "uint256" - } - ], - "name": "pool_list", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "pool_count", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "base_pool_count", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "arg0", - "type": "uint256" - } - ], - "name": "get_coin", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "coin_count", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "arg0", - "type": "address" - } - ], - "name": "get_pool_from_lp_token", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "arg0", - "type": "address" - } - ], - "name": "get_lp_token", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "arg0", - "type": "address" - } - ], - "name": "get_zap", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "last_updated", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - } -] \ No newline at end of file diff --git a/substreams/ethereum-curve/abi/main_registry.json b/substreams/ethereum-curve/abi/main_registry.json deleted file mode 100644 index 10bb96b..0000000 --- a/substreams/ethereum-curve/abi/main_registry.json +++ /dev/null @@ -1,940 +0,0 @@ -[ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "pool", - "type": "address" - }, - { - "indexed": false, - "name": "rate_method_id", - "type": "bytes" - } - ], - "name": "PoolAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "name": "pool", - "type": "address" - } - ], - "name": "PoolRemoved", - "type": "event" - }, - { - "inputs": [ - { - "name": "_address_provider", - "type": "address" - }, - { - "name": "_gauge_controller", - "type": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "name": "_from", - "type": "address" - }, - { - "name": "_to", - "type": "address" - } - ], - "name": "find_pool_for_coins", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "_from", - "type": "address" - }, - { - "name": "_to", - "type": "address" - }, - { - "name": "i", - "type": "uint256" - } - ], - "name": "find_pool_for_coins", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 1521, - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_n_coins", - "outputs": [ - { - "name": "", - "type": "uint256[2]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 12102, - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_coins", - "outputs": [ - { - "name": "", - "type": "address[8]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 12194, - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_underlying_coins", - "outputs": [ - { - "name": "", - "type": "address[8]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 7874, - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_decimals", - "outputs": [ - { - "name": "", - "type": "uint256[8]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 7966, - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_underlying_decimals", - "outputs": [ - { - "name": "", - "type": "uint256[8]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 36992, - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_rates", - "outputs": [ - { - "name": "", - "type": "uint256[8]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 20157, - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_gauges", - "outputs": [ - { - "name": "", - "type": "address[10]" - }, - { - "name": "", - "type": "int128[10]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 16583, - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_balances", - "outputs": [ - { - "name": "", - "type": "uint256[8]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 162842, - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_underlying_balances", - "outputs": [ - { - "name": "", - "type": "uint256[8]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 1927, - "inputs": [ - { - "name": "_token", - "type": "address" - } - ], - "name": "get_virtual_price_from_lp_token", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 1045, - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_A", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 6305, - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_parameters", - "outputs": [ - { - "name": "A", - "type": "uint256" - }, - { - "name": "future_A", - "type": "uint256" - }, - { - "name": "fee", - "type": "uint256" - }, - { - "name": "admin_fee", - "type": "uint256" - }, - { - "name": "future_fee", - "type": "uint256" - }, - { - "name": "future_admin_fee", - "type": "uint256" - }, - { - "name": "future_owner", - "type": "address" - }, - { - "name": "initial_A", - "type": "uint256" - }, - { - "name": "initial_A_time", - "type": "uint256" - }, - { - "name": "future_A_time", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 1450, - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_fees", - "outputs": [ - { - "name": "", - "type": "uint256[2]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 36454, - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_admin_balances", - "outputs": [ - { - "name": "", - "type": "uint256[8]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 27131, - "inputs": [ - { - "name": "_pool", - "type": "address" - }, - { - "name": "_from", - "type": "address" - }, - { - "name": "_to", - "type": "address" - } - ], - "name": "get_coin_indices", - "outputs": [ - { - "name": "", - "type": "int128" - }, - { - "name": "", - "type": "int128" - }, - { - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 32004, - "inputs": [ - { - "name": "_pool", - "type": "address" - }, - { - "name": "_from", - "type": "address" - }, - { - "name": "_to", - "type": "address" - } - ], - "name": "estimate_gas_used", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 1900, - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "is_meta", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 8323, - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_pool_name", - "outputs": [ - { - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 1951, - "inputs": [ - { - "name": "_coin", - "type": "address" - } - ], - "name": "get_coin_swap_count", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 2090, - "inputs": [ - { - "name": "_coin", - "type": "address" - }, - { - "name": "_index", - "type": "uint256" - } - ], - "name": "get_coin_swap_complement", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 2011, - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "get_pool_asset_type", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 61485845, - "inputs": [ - { - "name": "_pool", - "type": "address" - }, - { - "name": "_n_coins", - "type": "uint256" - }, - { - "name": "_lp_token", - "type": "address" - }, - { - "name": "_rate_info", - "type": "bytes32" - }, - { - "name": "_decimals", - "type": "uint256" - }, - { - "name": "_underlying_decimals", - "type": "uint256" - }, - { - "name": "_has_initial_A", - "type": "bool" - }, - { - "name": "_is_v1", - "type": "bool" - }, - { - "name": "_name", - "type": "string" - } - ], - "name": "add_pool", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "gas": 31306062, - "inputs": [ - { - "name": "_pool", - "type": "address" - }, - { - "name": "_n_coins", - "type": "uint256" - }, - { - "name": "_lp_token", - "type": "address" - }, - { - "name": "_rate_info", - "type": "bytes32" - }, - { - "name": "_decimals", - "type": "uint256" - }, - { - "name": "_use_rates", - "type": "uint256" - }, - { - "name": "_has_initial_A", - "type": "bool" - }, - { - "name": "_is_v1", - "type": "bool" - }, - { - "name": "_name", - "type": "string" - } - ], - "name": "add_pool_without_underlying", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "name": "_pool", - "type": "address" - }, - { - "name": "_n_coins", - "type": "uint256" - }, - { - "name": "_lp_token", - "type": "address" - }, - { - "name": "_decimals", - "type": "uint256" - }, - { - "name": "_name", - "type": "string" - } - ], - "name": "add_metapool", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "name": "_pool", - "type": "address" - }, - { - "name": "_n_coins", - "type": "uint256" - }, - { - "name": "_lp_token", - "type": "address" - }, - { - "name": "_decimals", - "type": "uint256" - }, - { - "name": "_name", - "type": "string" - }, - { - "name": "_base_pool", - "type": "address" - } - ], - "name": "add_metapool", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "gas": 779731418758, - "inputs": [ - { - "name": "_pool", - "type": "address" - } - ], - "name": "remove_pool", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "gas": 390460, - "inputs": [ - { - "name": "_addr", - "type": "address[5]" - }, - { - "name": "_amount", - "type": "uint256[2][5]" - } - ], - "name": "set_pool_gas_estimates", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "gas": 392047, - "inputs": [ - { - "name": "_addr", - "type": "address[10]" - }, - { - "name": "_amount", - "type": "uint256[10]" - } - ], - "name": "set_coin_gas_estimates", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "gas": 72629, - "inputs": [ - { - "name": "_pool", - "type": "address" - }, - { - "name": "_estimator", - "type": "address" - } - ], - "name": "set_gas_estimate_contract", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "gas": 400675, - "inputs": [ - { - "name": "_pool", - "type": "address" - }, - { - "name": "_liquidity_gauges", - "type": "address[10]" - } - ], - "name": "set_liquidity_gauges", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "gas": 72667, - "inputs": [ - { - "name": "_pool", - "type": "address" - }, - { - "name": "_asset_type", - "type": "uint256" - } - ], - "name": "set_pool_asset_type", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "gas": 1173447, - "inputs": [ - { - "name": "_pools", - "type": "address[32]" - }, - { - "name": "_asset_types", - "type": "uint256[32]" - } - ], - "name": "batch_set_pool_asset_type", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "gas": 2048, - "inputs": [], - "name": "address_provider", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 2078, - "inputs": [], - "name": "gauge_controller", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 2217, - "inputs": [ - { - "name": "arg0", - "type": "uint256" - } - ], - "name": "pool_list", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 2138, - "inputs": [], - "name": "pool_count", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 2168, - "inputs": [], - "name": "coin_count", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 2307, - "inputs": [ - { - "name": "arg0", - "type": "uint256" - } - ], - "name": "get_coin", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 2443, - "inputs": [ - { - "name": "arg0", - "type": "address" - } - ], - "name": "get_pool_from_lp_token", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 2473, - "inputs": [ - { - "name": "arg0", - "type": "address" - } - ], - "name": "get_lp_token", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "gas": 2288, - "inputs": [], - "name": "last_updated", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - } -] \ No newline at end of file diff --git a/substreams/ethereum-curve/abi/susd.json b/substreams/ethereum-curve/abi/susd.json deleted file mode 100644 index 9c301d8..0000000 --- a/substreams/ethereum-curve/abi/susd.json +++ /dev/null @@ -1,760 +0,0 @@ -[ - { - "name": "TokenExchange", - "inputs": [ - { - "type": "address", - "name": "buyer", - "indexed": true - }, - { - "type": "int128", - "name": "sold_id", - "indexed": false - }, - { - "type": "uint256", - "name": "tokens_sold", - "indexed": false - }, - { - "type": "int128", - "name": "bought_id", - "indexed": false - }, - { - "type": "uint256", - "name": "tokens_bought", - "indexed": false - } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "TokenExchangeUnderlying", - "inputs": [ - { - "type": "address", - "name": "buyer", - "indexed": true - }, - { - "type": "int128", - "name": "sold_id", - "indexed": false - }, - { - "type": "uint256", - "name": "tokens_sold", - "indexed": false - }, - { - "type": "int128", - "name": "bought_id", - "indexed": false - }, - { - "type": "uint256", - "name": "tokens_bought", - "indexed": false - } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "AddLiquidity", - "inputs": [ - { - "type": "address", - "name": "provider", - "indexed": true - }, - { - "type": "uint256[4]", - "name": "token_amounts", - "indexed": false - }, - { - "type": "uint256[4]", - "name": "fees", - "indexed": false - }, - { - "type": "uint256", - "name": "invariant", - "indexed": false - }, - { - "type": "uint256", - "name": "token_supply", - "indexed": false - } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "RemoveLiquidity", - "inputs": [ - { - "type": "address", - "name": "provider", - "indexed": true - }, - { - "type": "uint256[4]", - "name": "token_amounts", - "indexed": false - }, - { - "type": "uint256[4]", - "name": "fees", - "indexed": false - }, - { - "type": "uint256", - "name": "token_supply", - "indexed": false - } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "RemoveLiquidityImbalance", - "inputs": [ - { - "type": "address", - "name": "provider", - "indexed": true - }, - { - "type": "uint256[4]", - "name": "token_amounts", - "indexed": false - }, - { - "type": "uint256[4]", - "name": "fees", - "indexed": false - }, - { - "type": "uint256", - "name": "invariant", - "indexed": false - }, - { - "type": "uint256", - "name": "token_supply", - "indexed": false - } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "CommitNewAdmin", - "inputs": [ - { - "type": "uint256", - "name": "deadline", - "indexed": true, - "unit": "sec" - }, - { - "type": "address", - "name": "admin", - "indexed": true - } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "NewAdmin", - "inputs": [ - { - "type": "address", - "name": "admin", - "indexed": true - } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "CommitNewParameters", - "inputs": [ - { - "type": "uint256", - "name": "deadline", - "indexed": true, - "unit": "sec" - }, - { - "type": "uint256", - "name": "A", - "indexed": false - }, - { - "type": "uint256", - "name": "fee", - "indexed": false - }, - { - "type": "uint256", - "name": "admin_fee", - "indexed": false - } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "NewParameters", - "inputs": [ - { - "type": "uint256", - "name": "A", - "indexed": false - }, - { - "type": "uint256", - "name": "fee", - "indexed": false - }, - { - "type": "uint256", - "name": "admin_fee", - "indexed": false - } - ], - "anonymous": false, - "type": "event" - }, - { - "outputs": [], - "inputs": [ - { - "type": "address[4]", - "name": "_coins" - }, - { - "type": "address[4]", - "name": "_underlying_coins" - }, - { - "type": "address", - "name": "_pool_token" - }, - { - "type": "uint256", - "name": "_A" - }, - { - "type": "uint256", - "name": "_fee" - } - ], - "constant": false, - "payable": false, - "type": "constructor" - }, - { - "name": "get_virtual_price", - "outputs": [ - { - "type": "uint256", - "name": "" - } - ], - "inputs": [], - "constant": true, - "payable": false, - "type": "function", - "gas": 1570535 - }, - { - "name": "calc_token_amount", - "outputs": [ - { - "type": "uint256", - "name": "" - } - ], - "inputs": [ - { - "type": "uint256[4]", - "name": "amounts" - }, - { - "type": "bool", - "name": "deposit" - } - ], - "constant": true, - "payable": false, - "type": "function", - "gas": 6103471 - }, - { - "name": "add_liquidity", - "outputs": [], - "inputs": [ - { - "type": "uint256[4]", - "name": "amounts" - }, - { - "type": "uint256", - "name": "min_mint_amount" - } - ], - "constant": false, - "payable": false, - "type": "function", - "gas": 9331701 - }, - { - "name": "get_dy", - "outputs": [ - { - "type": "uint256", - "name": "" - } - ], - "inputs": [ - { - "type": "int128", - "name": "i" - }, - { - "type": "int128", - "name": "j" - }, - { - "type": "uint256", - "name": "dx" - } - ], - "constant": true, - "payable": false, - "type": "function", - "gas": 3489637 - }, - { - "name": "get_dy_underlying", - "outputs": [ - { - "type": "uint256", - "name": "" - } - ], - "inputs": [ - { - "type": "int128", - "name": "i" - }, - { - "type": "int128", - "name": "j" - }, - { - "type": "uint256", - "name": "dx" - } - ], - "constant": true, - "payable": false, - "type": "function", - "gas": 3489467 - }, - { - "name": "exchange", - "outputs": [], - "inputs": [ - { - "type": "int128", - "name": "i" - }, - { - "type": "int128", - "name": "j" - }, - { - "type": "uint256", - "name": "dx" - }, - { - "type": "uint256", - "name": "min_dy" - } - ], - "constant": false, - "payable": false, - "type": "function", - "gas": 7034253 - }, - { - "name": "exchange_underlying", - "outputs": [], - "inputs": [ - { - "type": "int128", - "name": "i" - }, - { - "type": "int128", - "name": "j" - }, - { - "type": "uint256", - "name": "dx" - }, - { - "type": "uint256", - "name": "min_dy" - } - ], - "constant": false, - "payable": false, - "type": "function", - "gas": 7050488 - }, - { - "name": "remove_liquidity", - "outputs": [], - "inputs": [ - { - "type": "uint256", - "name": "_amount" - }, - { - "type": "uint256[4]", - "name": "min_amounts" - } - ], - "constant": false, - "payable": false, - "type": "function", - "gas": 241191 - }, - { - "name": "remove_liquidity_imbalance", - "outputs": [], - "inputs": [ - { - "type": "uint256[4]", - "name": "amounts" - }, - { - "type": "uint256", - "name": "max_burn_amount" - } - ], - "constant": false, - "payable": false, - "type": "function", - "gas": 9330864 - }, - { - "name": "commit_new_parameters", - "outputs": [], - "inputs": [ - { - "type": "uint256", - "name": "amplification" - }, - { - "type": "uint256", - "name": "new_fee" - }, - { - "type": "uint256", - "name": "new_admin_fee" - } - ], - "constant": false, - "payable": false, - "type": "function", - "gas": 146045 - }, - { - "name": "apply_new_parameters", - "outputs": [], - "inputs": [], - "constant": false, - "payable": false, - "type": "function", - "gas": 133452 - }, - { - "name": "revert_new_parameters", - "outputs": [], - "inputs": [], - "constant": false, - "payable": false, - "type": "function", - "gas": 21775 - }, - { - "name": "commit_transfer_ownership", - "outputs": [], - "inputs": [ - { - "type": "address", - "name": "_owner" - } - ], - "constant": false, - "payable": false, - "type": "function", - "gas": 74452 - }, - { - "name": "apply_transfer_ownership", - "outputs": [], - "inputs": [], - "constant": false, - "payable": false, - "type": "function", - "gas": 60508 - }, - { - "name": "revert_transfer_ownership", - "outputs": [], - "inputs": [], - "constant": false, - "payable": false, - "type": "function", - "gas": 21865 - }, - { - "name": "withdraw_admin_fees", - "outputs": [], - "inputs": [], - "constant": false, - "payable": false, - "type": "function", - "gas": 23448 - }, - { - "name": "kill_me", - "outputs": [], - "inputs": [], - "constant": false, - "payable": false, - "type": "function", - "gas": 37818 - }, - { - "name": "unkill_me", - "outputs": [], - "inputs": [], - "constant": false, - "payable": false, - "type": "function", - "gas": 21955 - }, - { - "name": "coins", - "outputs": [ - { - "type": "address", - "name": "" - } - ], - "inputs": [ - { - "type": "int128", - "name": "arg0" - } - ], - "constant": true, - "payable": false, - "type": "function", - "gas": 2130 - }, - { - "name": "underlying_coins", - "outputs": [ - { - "type": "address", - "name": "" - } - ], - "inputs": [ - { - "type": "int128", - "name": "arg0" - } - ], - "constant": true, - "payable": false, - "type": "function", - "gas": 2160 - }, - { - "name": "balances", - "outputs": [ - { - "type": "uint256", - "name": "" - } - ], - "inputs": [ - { - "type": "int128", - "name": "arg0" - } - ], - "constant": true, - "payable": false, - "type": "function", - "gas": 2190 - }, - { - "name": "A", - "outputs": [ - { - "type": "uint256", - "name": "" - } - ], - "inputs": [], - "constant": true, - "payable": false, - "type": "function", - "gas": 2021 - }, - { - "name": "fee", - "outputs": [ - { - "type": "uint256", - "name": "" - } - ], - "inputs": [], - "constant": true, - "payable": false, - "type": "function", - "gas": 2051 - }, - { - "name": "admin_fee", - "outputs": [ - { - "type": "uint256", - "name": "" - } - ], - "inputs": [], - "constant": true, - "payable": false, - "type": "function", - "gas": 2081 - }, - { - "name": "owner", - "outputs": [ - { - "type": "address", - "name": "" - } - ], - "inputs": [], - "constant": true, - "payable": false, - "type": "function", - "gas": 2111 - }, - { - "name": "admin_actions_deadline", - "outputs": [ - { - "type": "uint256", - "unit": "sec", - "name": "" - } - ], - "inputs": [], - "constant": true, - "payable": false, - "type": "function", - "gas": 2141 - }, - { - "name": "transfer_ownership_deadline", - "outputs": [ - { - "type": "uint256", - "unit": "sec", - "name": "" - } - ], - "inputs": [], - "constant": true, - "payable": false, - "type": "function", - "gas": 2171 - }, - { - "name": "future_A", - "outputs": [ - { - "type": "uint256", - "name": "" - } - ], - "inputs": [], - "constant": true, - "payable": false, - "type": "function", - "gas": 2201 - }, - { - "name": "future_fee", - "outputs": [ - { - "type": "uint256", - "name": "" - } - ], - "inputs": [], - "constant": true, - "payable": false, - "type": "function", - "gas": 2231 - }, - { - "name": "future_admin_fee", - "outputs": [ - { - "type": "uint256", - "name": "" - } - ], - "inputs": [], - "constant": true, - "payable": false, - "type": "function", - "gas": 2261 - }, - { - "name": "future_owner", - "outputs": [ - { - "type": "address", - "name": "" - } - ], - "inputs": [], - "constant": true, - "payable": false, - "type": "function", - "gas": 2291 - } -] \ No newline at end of file diff --git a/substreams/ethereum-curve/src/abi/mod.rs b/substreams/ethereum-curve/src/abi/mod.rs index 13e7e2d..0223009 100644 --- a/substreams/ethereum-curve/src/abi/mod.rs +++ b/substreams/ethereum-curve/src/abi/mod.rs @@ -1,11 +1,9 @@ #![allow(clippy::all)] pub mod crypto_pool_factory; pub mod stableswap_factory; -pub mod susd; pub mod crypto_swap_ng_factory; pub mod meta_registry; pub mod tricrypto_factory; pub mod main_registry; pub mod erc20; pub mod meta_pool_factory; -pub mod crypto_swap_registry;