[
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": false,
                "name": "base_pool",
                "type": "address"
            }
        ],
        "name": "BasePoolAdded",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": false,
                "name": "coins",
                "type": "address[4]"
            },
            {
                "indexed": false,
                "name": "A",
                "type": "uint256"
            },
            {
                "indexed": false,
                "name": "fee",
                "type": "uint256"
            },
            {
                "indexed": false,
                "name": "deployer",
                "type": "address"
            }
        ],
        "name": "PlainPoolDeployed",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": false,
                "name": "coin",
                "type": "address"
            },
            {
                "indexed": false,
                "name": "base_pool",
                "type": "address"
            },
            {
                "indexed": false,
                "name": "A",
                "type": "uint256"
            },
            {
                "indexed": false,
                "name": "fee",
                "type": "uint256"
            },
            {
                "indexed": false,
                "name": "deployer",
                "type": "address"
            }
        ],
        "name": "MetaPoolDeployed",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": false,
                "name": "pool",
                "type": "address"
            },
            {
                "indexed": false,
                "name": "gauge",
                "type": "address"
            }
        ],
        "name": "LiquidityGaugeDeployed",
        "type": "event"
    },
    {
        "inputs": [
            {
                "name": "_fee_receiver",
                "type": "address"
            }
        ],
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "constructor"
    },
    {
        "gas": 21716,
        "inputs": [
            {
                "name": "_base_pool",
                "type": "address"
            }
        ],
        "name": "metapool_implementations",
        "outputs": [
            {
                "name": "",
                "type": "address[10]"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "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": 2663,
        "inputs": [
            {
                "name": "_pool",
                "type": "address"
            }
        ],
        "name": "get_base_pool",
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 2699,
        "inputs": [
            {
                "name": "_pool",
                "type": "address"
            }
        ],
        "name": "get_n_coins",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 5201,
        "inputs": [
            {
                "name": "_pool",
                "type": "address"
            }
        ],
        "name": "get_meta_n_coins",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            },
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 9164,
        "inputs": [
            {
                "name": "_pool",
                "type": "address"
            }
        ],
        "name": "get_coins",
        "outputs": [
            {
                "name": "",
                "type": "address[4]"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 21345,
        "inputs": [
            {
                "name": "_pool",
                "type": "address"
            }
        ],
        "name": "get_underlying_coins",
        "outputs": [
            {
                "name": "",
                "type": "address[8]"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 20185,
        "inputs": [
            {
                "name": "_pool",
                "type": "address"
            }
        ],
        "name": "get_decimals",
        "outputs": [
            {
                "name": "",
                "type": "uint256[4]"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 19730,
        "inputs": [
            {
                "name": "_pool",
                "type": "address"
            }
        ],
        "name": "get_underlying_decimals",
        "outputs": [
            {
                "name": "",
                "type": "uint256[8]"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 5281,
        "inputs": [
            {
                "name": "_pool",
                "type": "address"
            }
        ],
        "name": "get_metapool_rates",
        "outputs": [
            {
                "name": "",
                "type": "uint256[2]"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 20435,
        "inputs": [
            {
                "name": "_pool",
                "type": "address"
            }
        ],
        "name": "get_balances",
        "outputs": [
            {
                "name": "",
                "type": "uint256[4]"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 39733,
        "inputs": [
            {
                "name": "_pool",
                "type": "address"
            }
        ],
        "name": "get_underlying_balances",
        "outputs": [
            {
                "name": "",
                "type": "uint256[8]"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 3135,
        "inputs": [
            {
                "name": "_pool",
                "type": "address"
            }
        ],
        "name": "get_A",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 5821,
        "inputs": [
            {
                "name": "_pool",
                "type": "address"
            }
        ],
        "name": "get_fees",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            },
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 13535,
        "inputs": [
            {
                "name": "_pool",
                "type": "address"
            }
        ],
        "name": "get_admin_balances",
        "outputs": [
            {
                "name": "",
                "type": "uint256[4]"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 33407,
        "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": 3089,
        "inputs": [
            {
                "name": "_pool",
                "type": "address"
            }
        ],
        "name": "get_gauge",
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 3119,
        "inputs": [
            {
                "name": "_pool",
                "type": "address"
            }
        ],
        "name": "get_implementation_address",
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 3152,
        "inputs": [
            {
                "name": "_pool",
                "type": "address"
            }
        ],
        "name": "is_meta",
        "outputs": [
            {
                "name": "",
                "type": "bool"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 5450,
        "inputs": [
            {
                "name": "_pool",
                "type": "address"
            }
        ],
        "name": "get_pool_asset_type",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 5480,
        "inputs": [
            {
                "name": "_pool",
                "type": "address"
            }
        ],
        "name": "get_fee_receiver",
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "name": "_name",
                "type": "string"
            },
            {
                "name": "_symbol",
                "type": "string"
            },
            {
                "name": "_coins",
                "type": "address[4]"
            },
            {
                "name": "_A",
                "type": "uint256"
            },
            {
                "name": "_fee",
                "type": "uint256"
            }
        ],
        "name": "deploy_plain_pool",
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "name": "_name",
                "type": "string"
            },
            {
                "name": "_symbol",
                "type": "string"
            },
            {
                "name": "_coins",
                "type": "address[4]"
            },
            {
                "name": "_A",
                "type": "uint256"
            },
            {
                "name": "_fee",
                "type": "uint256"
            },
            {
                "name": "_asset_type",
                "type": "uint256"
            }
        ],
        "name": "deploy_plain_pool",
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "name": "_name",
                "type": "string"
            },
            {
                "name": "_symbol",
                "type": "string"
            },
            {
                "name": "_coins",
                "type": "address[4]"
            },
            {
                "name": "_A",
                "type": "uint256"
            },
            {
                "name": "_fee",
                "type": "uint256"
            },
            {
                "name": "_asset_type",
                "type": "uint256"
            },
            {
                "name": "_implementation_idx",
                "type": "uint256"
            }
        ],
        "name": "deploy_plain_pool",
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "name": "_base_pool",
                "type": "address"
            },
            {
                "name": "_name",
                "type": "string"
            },
            {
                "name": "_symbol",
                "type": "string"
            },
            {
                "name": "_coin",
                "type": "address"
            },
            {
                "name": "`_A`",
                "type": "uint256"
            },
            {
                "name": "_fee",
                "type": "uint256"
            }
        ],
        "name": "deploy_metapool",
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "name": "_base_pool",
                "type": "address"
            },
            {
                "name": "_name",
                "type": "string"
            },
            {
                "name": "_symbol",
                "type": "string"
            },
            {
                "name": "_coin",
                "type": "address"
            },
            {
                "name": "_A",
                "type": "uint256"
            },
            {
                "name": "_fee",
                "type": "uint256"
            },
            {
                "name": "_implementation_idx",
                "type": "uint256"
            }
        ],
        "name": "deploy_metapool",
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 93079,
        "inputs": [
            {
                "name": "_pool",
                "type": "address"
            }
        ],
        "name": "deploy_gauge",
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 1206132,
        "inputs": [
            {
                "name": "_base_pool",
                "type": "address"
            },
            {
                "name": "_fee_receiver",
                "type": "address"
            },
            {
                "name": "_asset_type",
                "type": "uint256"
            },
            {
                "name": "_implementations",
                "type": "address[10]"
            }
        ],
        "name": "add_base_pool",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 382072,
        "inputs": [
            {
                "name": "_base_pool",
                "type": "address"
            },
            {
                "name": "_implementations",
                "type": "address[10]"
            }
        ],
        "name": "set_metapool_implementations",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 379687,
        "inputs": [
            {
                "name": "_n_coins",
                "type": "uint256"
            },
            {
                "name": "_implementations",
                "type": "address[10]"
            }
        ],
        "name": "set_plain_implementations",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 38355,
        "inputs": [
            {
                "name": "_gauge_implementation",
                "type": "address"
            }
        ],
        "name": "set_gauge_implementation",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 1139545,
        "inputs": [
            {
                "name": "_pools",
                "type": "address[32]"
            },
            {
                "name": "_asset_types",
                "type": "uint256[32]"
            }
        ],
        "name": "batch_set_pool_asset_type",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 38415,
        "inputs": [
            {
                "name": "_addr",
                "type": "address"
            }
        ],
        "name": "commit_transfer_ownership",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 58366,
        "inputs": [],
        "name": "accept_transfer_ownership",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 40996,
        "inputs": [
            {
                "name": "_manager",
                "type": "address"
            }
        ],
        "name": "set_manager",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 38770,
        "inputs": [
            {
                "name": "_base_pool",
                "type": "address"
            },
            {
                "name": "_fee_receiver",
                "type": "address"
            }
        ],
        "name": "set_fee_receiver",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 12880,
        "inputs": [],
        "name": "convert_metapool_fees",
        "outputs": [
            {
                "name": "",
                "type": "bool"
            }
        ],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 8610792,
        "inputs": [
            {
                "name": "_pools",
                "type": "address[10]"
            }
        ],
        "name": "add_existing_metapools",
        "outputs": [
            {
                "name": "",
                "type": "bool"
            }
        ],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "gas": 3438,
        "inputs": [],
        "name": "admin",
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 3468,
        "inputs": [],
        "name": "future_admin",
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 3498,
        "inputs": [],
        "name": "manager",
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 3573,
        "inputs": [
            {
                "name": "arg0",
                "type": "uint256"
            }
        ],
        "name": "pool_list",
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 3558,
        "inputs": [],
        "name": "pool_count",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 3633,
        "inputs": [
            {
                "name": "arg0",
                "type": "uint256"
            }
        ],
        "name": "base_pool_list",
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 3618,
        "inputs": [],
        "name": "base_pool_count",
        "outputs": [
            {
                "name": "",
                "type": "uint256"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 3863,
        "inputs": [
            {
                "name": "arg0",
                "type": "address"
            }
        ],
        "name": "base_pool_assets",
        "outputs": [
            {
                "name": "",
                "type": "bool"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 3838,
        "inputs": [
            {
                "name": "arg0",
                "type": "uint256"
            },
            {
                "name": "arg1",
                "type": "uint256"
            }
        ],
        "name": "plain_implementations",
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "gas": 3708,
        "inputs": [],
        "name": "gauge_implementation",
        "outputs": [
            {
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    }
]