"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MaplePool__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        inputs: [
            {
                internalType: 'address',
                name: 'manager_',
                type: 'address',
            },
            {
                internalType: 'address',
                name: 'asset_',
                type: 'address',
            },
            {
                internalType: 'address',
                name: 'destination_',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'bootstrapMint_',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'initialSupply_',
                type: 'uint256',
            },
            {
                internalType: 'string',
                name: 'name_',
                type: 'string',
            },
            {
                internalType: 'string',
                name: 'symbol_',
                type: 'string',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'constructor',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'owner_',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'address',
                name: 'spender_',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'amount_',
                type: 'uint256',
            },
        ],
        name: 'Approval',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'caller_',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'address',
                name: 'receiver_',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'assets_',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'shares_',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'bootStrapMintAmount_',
                type: 'uint256',
            },
        ],
        name: 'BootstrapMintPerformed',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'caller_',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'address',
                name: 'owner_',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'assets_',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'shares_',
                type: 'uint256',
            },
        ],
        name: 'Deposit',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'previousOwner_',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'address',
                name: 'newOwner_',
                type: 'address',
            },
        ],
        name: 'OwnershipAccepted',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'owner_',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'address',
                name: 'pendingOwner_',
                type: 'address',
            },
        ],
        name: 'PendingOwnerSet',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'owner_',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'shares_',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'escrowedShares_',
                type: 'uint256',
            },
        ],
        name: 'RedemptionRequested',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'owner_',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'shares_',
                type: 'uint256',
            },
        ],
        name: 'SharesRemoved',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'owner_',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'address',
                name: 'recipient_',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'amount_',
                type: 'uint256',
            },
        ],
        name: 'Transfer',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'caller_',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'address',
                name: 'receiver_',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'address',
                name: 'owner_',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'assets_',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'shares_',
                type: 'uint256',
            },
        ],
        name: 'Withdraw',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'owner_',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'assets_',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'escrowedShares_',
                type: 'uint256',
            },
        ],
        name: 'WithdrawRequested',
        type: 'event',
    },
    {
        inputs: [],
        name: 'BOOTSTRAP_MINT',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'DOMAIN_SEPARATOR',
        outputs: [
            {
                internalType: 'bytes32',
                name: 'domainSeparator_',
                type: 'bytes32',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'PERMIT_TYPEHASH',
        outputs: [
            {
                internalType: 'bytes32',
                name: '',
                type: 'bytes32',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: '',
                type: 'address',
            },
            {
                internalType: 'address',
                name: '',
                type: 'address',
            },
        ],
        name: 'allowance',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'spender_',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'amount_',
                type: 'uint256',
            },
        ],
        name: 'approve',
        outputs: [
            {
                internalType: 'bool',
                name: 'success_',
                type: 'bool',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'asset',
        outputs: [
            {
                internalType: 'address',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: '',
                type: 'address',
            },
        ],
        name: 'balanceOf',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'account_',
                type: 'address',
            },
        ],
        name: 'balanceOfAssets',
        outputs: [
            {
                internalType: 'uint256',
                name: 'balanceOfAssets_',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'shares_',
                type: 'uint256',
            },
        ],
        name: 'convertToAssets',
        outputs: [
            {
                internalType: 'uint256',
                name: 'assets_',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'shares_',
                type: 'uint256',
            },
        ],
        name: 'convertToExitAssets',
        outputs: [
            {
                internalType: 'uint256',
                name: 'assets_',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'amount_',
                type: 'uint256',
            },
        ],
        name: 'convertToExitShares',
        outputs: [
            {
                internalType: 'uint256',
                name: 'shares_',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'assets_',
                type: 'uint256',
            },
        ],
        name: 'convertToShares',
        outputs: [
            {
                internalType: 'uint256',
                name: 'shares_',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'decimals',
        outputs: [
            {
                internalType: 'uint8',
                name: '',
                type: 'uint8',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'spender_',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'subtractedAmount_',
                type: 'uint256',
            },
        ],
        name: 'decreaseAllowance',
        outputs: [
            {
                internalType: 'bool',
                name: 'success_',
                type: 'bool',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'assets_',
                type: 'uint256',
            },
            {
                internalType: 'address',
                name: 'receiver_',
                type: 'address',
            },
        ],
        name: 'deposit',
        outputs: [
            {
                internalType: 'uint256',
                name: 'shares_',
                type: 'uint256',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'assets_',
                type: 'uint256',
            },
            {
                internalType: 'address',
                name: 'receiver_',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'deadline_',
                type: 'uint256',
            },
            {
                internalType: 'uint8',
                name: 'v_',
                type: 'uint8',
            },
            {
                internalType: 'bytes32',
                name: 'r_',
                type: 'bytes32',
            },
            {
                internalType: 'bytes32',
                name: 's_',
                type: 'bytes32',
            },
        ],
        name: 'depositWithPermit',
        outputs: [
            {
                internalType: 'uint256',
                name: 'shares_',
                type: 'uint256',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'spender_',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'addedAmount_',
                type: 'uint256',
            },
        ],
        name: 'increaseAllowance',
        outputs: [
            {
                internalType: 'bool',
                name: 'success_',
                type: 'bool',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'manager',
        outputs: [
            {
                internalType: 'address',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'receiver_',
                type: 'address',
            },
        ],
        name: 'maxDeposit',
        outputs: [
            {
                internalType: 'uint256',
                name: 'maxAssets_',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'receiver_',
                type: 'address',
            },
        ],
        name: 'maxMint',
        outputs: [
            {
                internalType: 'uint256',
                name: 'maxShares_',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'owner_',
                type: 'address',
            },
        ],
        name: 'maxRedeem',
        outputs: [
            {
                internalType: 'uint256',
                name: 'maxShares_',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'owner_',
                type: 'address',
            },
        ],
        name: 'maxWithdraw',
        outputs: [
            {
                internalType: 'uint256',
                name: 'maxAssets_',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'shares_',
                type: 'uint256',
            },
            {
                internalType: 'address',
                name: 'receiver_',
                type: 'address',
            },
        ],
        name: 'mint',
        outputs: [
            {
                internalType: 'uint256',
                name: 'assets_',
                type: 'uint256',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'shares_',
                type: 'uint256',
            },
            {
                internalType: 'address',
                name: 'receiver_',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'maxAssets_',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'deadline_',
                type: 'uint256',
            },
            {
                internalType: 'uint8',
                name: 'v_',
                type: 'uint8',
            },
            {
                internalType: 'bytes32',
                name: 'r_',
                type: 'bytes32',
            },
            {
                internalType: 'bytes32',
                name: 's_',
                type: 'bytes32',
            },
        ],
        name: 'mintWithPermit',
        outputs: [
            {
                internalType: 'uint256',
                name: 'assets_',
                type: 'uint256',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'name',
        outputs: [
            {
                internalType: 'string',
                name: '',
                type: 'string',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: '',
                type: 'address',
            },
        ],
        name: 'nonces',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'owner_',
                type: 'address',
            },
            {
                internalType: 'address',
                name: 'spender_',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'amount_',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'deadline_',
                type: 'uint256',
            },
            {
                internalType: 'uint8',
                name: 'v_',
                type: 'uint8',
            },
            {
                internalType: 'bytes32',
                name: 'r_',
                type: 'bytes32',
            },
            {
                internalType: 'bytes32',
                name: 's_',
                type: 'bytes32',
            },
        ],
        name: 'permit',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'assets_',
                type: 'uint256',
            },
        ],
        name: 'previewDeposit',
        outputs: [
            {
                internalType: 'uint256',
                name: 'shares_',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'shares_',
                type: 'uint256',
            },
        ],
        name: 'previewMint',
        outputs: [
            {
                internalType: 'uint256',
                name: 'assets_',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'shares_',
                type: 'uint256',
            },
        ],
        name: 'previewRedeem',
        outputs: [
            {
                internalType: 'uint256',
                name: 'assets_',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'assets_',
                type: 'uint256',
            },
        ],
        name: 'previewWithdraw',
        outputs: [
            {
                internalType: 'uint256',
                name: 'shares_',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'shares_',
                type: 'uint256',
            },
            {
                internalType: 'address',
                name: 'receiver_',
                type: 'address',
            },
            {
                internalType: 'address',
                name: 'owner_',
                type: 'address',
            },
        ],
        name: 'redeem',
        outputs: [
            {
                internalType: 'uint256',
                name: 'assets_',
                type: 'uint256',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'shares_',
                type: 'uint256',
            },
            {
                internalType: 'address',
                name: 'owner_',
                type: 'address',
            },
        ],
        name: 'removeShares',
        outputs: [
            {
                internalType: 'uint256',
                name: 'sharesReturned_',
                type: 'uint256',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'shares_',
                type: 'uint256',
            },
            {
                internalType: 'address',
                name: 'owner_',
                type: 'address',
            },
        ],
        name: 'requestRedeem',
        outputs: [
            {
                internalType: 'uint256',
                name: 'escrowedShares_',
                type: 'uint256',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'assets_',
                type: 'uint256',
            },
            {
                internalType: 'address',
                name: 'owner_',
                type: 'address',
            },
        ],
        name: 'requestWithdraw',
        outputs: [
            {
                internalType: 'uint256',
                name: 'escrowedShares_',
                type: 'uint256',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'symbol',
        outputs: [
            {
                internalType: 'string',
                name: '',
                type: 'string',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'totalAssets',
        outputs: [
            {
                internalType: 'uint256',
                name: 'totalAssets_',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'totalSupply',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'recipient_',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'amount_',
                type: 'uint256',
            },
        ],
        name: 'transfer',
        outputs: [
            {
                internalType: 'bool',
                name: 'success_',
                type: 'bool',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'owner_',
                type: 'address',
            },
            {
                internalType: 'address',
                name: 'recipient_',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'amount_',
                type: 'uint256',
            },
        ],
        name: 'transferFrom',
        outputs: [
            {
                internalType: 'bool',
                name: 'success_',
                type: 'bool',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'unrealizedLosses',
        outputs: [
            {
                internalType: 'uint256',
                name: 'unrealizedLosses_',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'assets_',
                type: 'uint256',
            },
            {
                internalType: 'address',
                name: 'receiver_',
                type: 'address',
            },
            {
                internalType: 'address',
                name: 'owner_',
                type: 'address',
            },
        ],
        name: 'withdraw',
        outputs: [
            {
                internalType: 'uint256',
                name: 'shares_',
                type: 'uint256',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
];
class MaplePool__factory {
    static createInterface() {
        return new ethers_1.utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    }
}
exports.MaplePool__factory = MaplePool__factory;
MaplePool__factory.abi = _abi;
//# sourceMappingURL=MaplePool__factory.js.map