"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CurveFactory__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        name: 'BasePoolAdded',
        inputs: [
            {
                type: 'address',
                name: 'base_pool',
                indexed: false,
            },
            {
                type: 'address',
                name: 'implementat',
                indexed: false,
            },
        ],
        anonymous: false,
        type: 'event',
    },
    {
        name: 'MetaPoolDeployed',
        inputs: [
            {
                type: 'address',
                name: 'coin',
                indexed: false,
            },
            {
                type: 'address',
                name: 'base_pool',
                indexed: false,
            },
            {
                type: 'uint256',
                name: 'A',
                indexed: false,
            },
            {
                type: 'uint256',
                name: 'fee',
                indexed: false,
            },
            {
                type: 'address',
                name: 'deployer',
                indexed: false,
            },
        ],
        anonymous: false,
        type: 'event',
    },
    {
        outputs: [],
        inputs: [],
        stateMutability: 'nonpayable',
        type: 'constructor',
    },
    {
        name: 'find_pool_for_coins',
        outputs: [
            {
                type: 'address',
                name: '',
            },
        ],
        inputs: [
            {
                type: 'address',
                name: '_from',
            },
            {
                type: 'address',
                name: '_to',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        name: 'find_pool_for_coins',
        outputs: [
            {
                type: 'address',
                name: '',
            },
        ],
        inputs: [
            {
                type: 'address',
                name: '_from',
            },
            {
                type: 'address',
                name: '_to',
            },
            {
                type: 'uint256',
                name: 'i',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        name: 'get_n_coins',
        outputs: [
            {
                type: 'uint256',
                name: '',
            },
            {
                type: 'uint256',
                name: '',
            },
        ],
        inputs: [
            {
                type: 'address',
                name: '_pool',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        name: 'get_coins',
        outputs: [
            {
                type: 'address[2]',
                name: '',
            },
        ],
        inputs: [
            {
                type: 'address',
                name: '_pool',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        name: 'get_underlying_coins',
        outputs: [
            {
                type: 'address[8]',
                name: '',
            },
        ],
        inputs: [
            {
                type: 'address',
                name: '_pool',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        name: 'get_decimals',
        outputs: [
            {
                type: 'uint256[2]',
                name: '',
            },
        ],
        inputs: [
            {
                type: 'address',
                name: '_pool',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        name: 'get_underlying_decimals',
        outputs: [
            {
                type: 'uint256[8]',
                name: '',
            },
        ],
        inputs: [
            {
                type: 'address',
                name: '_pool',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        name: 'get_rates',
        outputs: [
            {
                type: 'uint256[2]',
                name: '',
            },
        ],
        inputs: [
            {
                type: 'address',
                name: '_pool',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        name: 'get_balances',
        outputs: [
            {
                type: 'uint256[2]',
                name: '',
            },
        ],
        inputs: [
            {
                type: 'address',
                name: '_pool',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        name: 'get_underlying_balances',
        outputs: [
            {
                type: 'uint256[8]',
                name: '',
            },
        ],
        inputs: [
            {
                type: 'address',
                name: '_pool',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        name: 'get_A',
        outputs: [
            {
                type: 'uint256',
                name: '',
            },
        ],
        inputs: [
            {
                type: 'address',
                name: '_pool',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        name: 'get_fees',
        outputs: [
            {
                type: 'uint256',
                name: '',
            },
            {
                type: 'uint256',
                name: '',
            },
        ],
        inputs: [
            {
                type: 'address',
                name: '_pool',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        name: 'get_admin_balances',
        outputs: [
            {
                type: 'uint256[2]',
                name: '',
            },
        ],
        inputs: [
            {
                type: 'address',
                name: '_pool',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        name: 'get_coin_indices',
        outputs: [
            {
                type: 'int128',
                name: '',
            },
            {
                type: 'int128',
                name: '',
            },
            {
                type: 'bool',
                name: '',
            },
        ],
        inputs: [
            {
                type: 'address',
                name: '_pool',
            },
            {
                type: 'address',
                name: '_from',
            },
            {
                type: 'address',
                name: '_to',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        name: 'add_base_pool',
        outputs: [],
        inputs: [
            {
                type: 'address',
                name: '_base_pool',
            },
            {
                type: 'address',
                name: '_metapool_implementation',
            },
            {
                type: 'address',
                name: '_fee_receiver',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        name: 'deploy_metapool',
        outputs: [
            {
                type: 'address',
                name: '',
            },
        ],
        inputs: [
            {
                type: 'address',
                name: '_base_pool',
            },
            {
                type: 'string',
                name: '_name',
            },
            {
                type: 'string',
                name: '_symbol',
            },
            {
                type: 'address',
                name: '_coin',
            },
            {
                type: 'uint256',
                name: '_A',
            },
            {
                type: 'uint256',
                name: '_fee',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        name: 'commit_transfer_ownership',
        outputs: [],
        inputs: [
            {
                type: 'address',
                name: 'addr',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        name: 'accept_transfer_ownership',
        outputs: [],
        inputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        name: 'set_fee_receiver',
        outputs: [],
        inputs: [
            {
                type: 'address',
                name: '_base_pool',
            },
            {
                type: 'address',
                name: '_fee_receiver',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        name: 'convert_fees',
        outputs: [
            {
                type: 'bool',
                name: '',
            },
        ],
        inputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        name: 'admin',
        outputs: [
            {
                type: 'address',
                name: '',
            },
        ],
        inputs: [],
        stateMutability: 'view',
        type: 'function',
    },
    {
        name: 'future_admin',
        outputs: [
            {
                type: 'address',
                name: '',
            },
        ],
        inputs: [],
        stateMutability: 'view',
        type: 'function',
    },
    {
        name: 'pool_list',
        outputs: [
            {
                type: 'address',
                name: '',
            },
        ],
        inputs: [
            {
                type: 'uint256',
                name: 'arg0',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        name: 'pool_count',
        outputs: [
            {
                type: 'uint256',
                name: '',
            },
        ],
        inputs: [],
        stateMutability: 'view',
        type: 'function',
    },
    {
        name: 'base_pool_list',
        outputs: [
            {
                type: 'address',
                name: '',
            },
        ],
        inputs: [
            {
                type: 'uint256',
                name: 'arg0',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        name: 'base_pool_count',
        outputs: [
            {
                type: 'uint256',
                name: '',
            },
        ],
        inputs: [],
        stateMutability: 'view',
        type: 'function',
    },
    {
        name: 'fee_receiver',
        outputs: [
            {
                type: 'address',
                name: '',
            },
        ],
        inputs: [
            {
                type: 'address',
                name: 'arg0',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
];
class CurveFactory__factory {
    static createInterface() {
        return new ethers_1.utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    }
}
exports.CurveFactory__factory = CurveFactory__factory;
CurveFactory__factory.abi = _abi;
//# sourceMappingURL=CurveFactory__factory.js.map