UNPKG

@catalabs/catalyst-sdk

Version:
2,606 lines 67.8 kB
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AmplifiedVault__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        inputs: [
            {
                internalType: 'address',
                name: 'factory_',
                type: 'address',
            },
            {
                internalType: 'address',
                name: 'mathlib_',
                type: 'address',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'constructor',
    },
    {
        inputs: [],
        name: 'EscrowAlreadyExists',
        type: 'error',
    },
    {
        inputs: [],
        name: 'ExceedsSecurityLimit',
        type: 'error',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'result',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'minimum',
                type: 'uint256',
            },
        ],
        name: 'ReturnInsufficient',
        type: 'error',
    },
    {
        inputs: [],
        name: 'ReturnInsufficientOnReceive',
        type: 'error',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'Units',
                type: 'uint256',
            },
        ],
        name: 'UnusedUnitsAfterWithdrawal',
        type: 'error',
    },
    {
        inputs: [],
        name: 'VaultNotConnected',
        type: 'error',
    },
    {
        inputs: [],
        name: 'WithdrawRatioNotZero',
        type: 'error',
    },
    {
        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: [],
        name: 'FinishSetup',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'uint8',
                name: 'version',
                type: 'uint8',
            },
        ],
        name: 'Initialized',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'account',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'address',
                name: 'fromAsset',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'address',
                name: 'toAsset',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'fromAmount',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'toAmount',
                type: 'uint256',
            },
        ],
        name: 'LocalSwap',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'bytes32',
                name: 'channelId',
                type: 'bytes32',
            },
            {
                indexed: false,
                internalType: 'bytes',
                name: 'fromVault',
                type: 'bytes',
            },
            {
                indexed: false,
                internalType: 'address',
                name: 'toAccount',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'address',
                name: 'toAsset',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'units',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'toAmount',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'fromAmount',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'bytes',
                name: 'fromAsset',
                type: 'bytes',
            },
            {
                indexed: false,
                internalType: 'uint32',
                name: 'sourceBlockNumberMod',
                type: 'uint32',
            },
        ],
        name: 'ReceiveAsset',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'bytes32',
                name: 'channelId',
                type: 'bytes32',
            },
            {
                indexed: false,
                internalType: 'bytes',
                name: 'fromVault',
                type: 'bytes',
            },
            {
                indexed: false,
                internalType: 'address',
                name: 'toAccount',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'units',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'toAmount',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'fromAmount',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'sourceBlockNumberMod',
                type: 'uint256',
            },
        ],
        name: 'ReceiveLiquidity',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'bytes32',
                name: 'channelId',
                type: 'bytes32',
            },
            {
                indexed: false,
                internalType: 'bytes',
                name: 'toVault',
                type: 'bytes',
            },
            {
                indexed: false,
                internalType: 'bytes',
                name: 'toAccount',
                type: 'bytes',
            },
            {
                indexed: false,
                internalType: 'address',
                name: 'fromAsset',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint8',
                name: 'toAssetIndex',
                type: 'uint8',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'fromAmount',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'minOut',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'units',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'fee',
                type: 'uint256',
            },
        ],
        name: 'SendAsset',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'bytes32',
                name: 'channelId',
                type: 'bytes32',
            },
            {
                indexed: false,
                internalType: 'bytes',
                name: 'toAccount',
                type: 'bytes',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'units',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'escrowAmount',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'address',
                name: 'escrowToken',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint32',
                name: 'blockNumberMod',
                type: 'uint32',
            },
        ],
        name: 'SendAssetFailure',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'bytes32',
                name: 'channelId',
                type: 'bytes32',
            },
            {
                indexed: false,
                internalType: 'bytes',
                name: 'toAccount',
                type: 'bytes',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'units',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'escrowAmount',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'address',
                name: 'escrowToken',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint32',
                name: 'blockNumberMod',
                type: 'uint32',
            },
        ],
        name: 'SendAssetSuccess',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'bytes32',
                name: 'channelId',
                type: 'bytes32',
            },
            {
                indexed: false,
                internalType: 'bytes',
                name: 'toVault',
                type: 'bytes',
            },
            {
                indexed: false,
                internalType: 'bytes',
                name: 'toAccount',
                type: 'bytes',
            },
            {
                indexed: false,
                internalType: 'address',
                name: 'fromAsset',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint8',
                name: 'toAssetIndex',
                type: 'uint8',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'fromAmount',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'minOut',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'units',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'fee',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint16',
                name: 'underwritePercentageX16',
                type: 'uint16',
            },
        ],
        name: 'SendAssetUnderwritable',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'bytes32',
                name: 'channelId',
                type: 'bytes32',
            },
            {
                indexed: false,
                internalType: 'bytes',
                name: 'toVault',
                type: 'bytes',
            },
            {
                indexed: false,
                internalType: 'bytes',
                name: 'toAccount',
                type: 'bytes',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'fromAmount',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256[2]',
                name: 'minOut',
                type: 'uint256[2]',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'units',
                type: 'uint256',
            },
        ],
        name: 'SendLiquidity',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'bytes32',
                name: 'channelId',
                type: 'bytes32',
            },
            {
                indexed: false,
                internalType: 'bytes',
                name: 'toAccount',
                type: 'bytes',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'units',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'escrowAmount',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint32',
                name: 'blockNumberMod',
                type: 'uint32',
            },
        ],
        name: 'SendLiquidityFailure',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'bytes32',
                name: 'channelId',
                type: 'bytes32',
            },
            {
                indexed: false,
                internalType: 'bytes',
                name: 'toAccount',
                type: 'bytes',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'units',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'escrowAmount',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint32',
                name: 'blockNumberMod',
                type: 'uint32',
            },
        ],
        name: 'SendLiquiditySuccess',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'uint256',
                name: 'targetTime',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'targetAmplification',
                type: 'uint256',
            },
        ],
        name: 'SetAmplification',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'bytes32',
                name: 'channelId',
                type: 'bytes32',
            },
            {
                indexed: false,
                internalType: 'bytes',
                name: 'toVault',
                type: 'bytes',
            },
            {
                indexed: false,
                internalType: 'bool',
                name: 'newState',
                type: 'bool',
            },
        ],
        name: 'SetConnection',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'address',
                name: 'administrator',
                type: 'address',
            },
        ],
        name: 'SetFeeAdministrator',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'uint256',
                name: 'fee',
                type: 'uint256',
            },
        ],
        name: 'SetGovernanceFee',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'uint256',
                name: 'fee',
                type: 'uint256',
            },
        ],
        name: 'SetVaultFee',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: 'uint256',
                name: 'targetTime',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256[]',
                name: 'targetWeights',
                type: 'uint256[]',
            },
        ],
        name: 'SetWeights',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'from',
                type: 'address',
            },
            {
                indexed: true,
                internalType: 'address',
                name: 'to',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'amount',
                type: 'uint256',
            },
        ],
        name: 'Transfer',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'toAccount',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'mint',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256[]',
                name: 'assets',
                type: 'uint256[]',
            },
        ],
        name: 'VaultDeposit',
        type: 'event',
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: 'address',
                name: 'toAccount',
                type: 'address',
            },
            {
                indexed: false,
                internalType: 'uint256',
                name: 'burn',
                type: 'uint256',
            },
            {
                indexed: false,
                internalType: 'uint256[]',
                name: 'assets',
                type: 'uint256[]',
            },
        ],
        name: 'VaultWithdraw',
        type: 'event',
    },
    {
        inputs: [],
        name: 'DOMAIN_SEPARATOR',
        outputs: [
            {
                internalType: 'bytes32',
                name: '',
                type: 'bytes32',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'FACTORY',
        outputs: [
            {
                internalType: 'address',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'MATHLIB',
        outputs: [
            {
                internalType: 'address',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: '_adjustmentTarget',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: '_chainInterface',
        outputs: [
            {
                internalType: 'address',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'bytes32',
                name: '',
                type: 'bytes32',
            },
        ],
        name: '_escrowLookup',
        outputs: [
            {
                internalType: 'address',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: '',
                type: 'address',
            },
        ],
        name: '_escrowedTokens',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: '_escrowedVaultTokens',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: '_feeAdministrator',
        outputs: [
            {
                internalType: 'address',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: '_governanceFeeShare',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: '_lastModificationTime',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: '_maxUnitCapacity',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: '_oneMinusAmp',
        outputs: [
            {
                internalType: 'int256',
                name: '',
                type: 'int256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: '_setupMaster',
        outputs: [
            {
                internalType: 'address',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: '_targetAmplification',
        outputs: [
            {
                internalType: 'int256',
                name: '',
                type: 'int256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        name: '_tokenIndexing',
        outputs: [
            {
                internalType: 'address',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: '_unitTracker',
        outputs: [
            {
                internalType: 'int256',
                name: '',
                type: 'int256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'bytes32',
                name: '',
                type: 'bytes32',
            },
            {
                internalType: 'bytes',
                name: '',
                type: 'bytes',
            },
        ],
        name: '_vaultConnection',
        outputs: [
            {
                internalType: 'bool',
                name: '',
                type: 'bool',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: '_vaultFee',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: '',
                type: 'address',
            },
        ],
        name: '_weight',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        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: '',
                type: 'bool',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: '',
                type: 'address',
            },
        ],
        name: 'balanceOf',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'fromAsset',
                type: 'address',
            },
            {
                internalType: 'address',
                name: 'toAsset',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'amount',
                type: 'uint256',
            },
        ],
        name: 'calcLocalSwap',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'toAsset',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'U',
                type: 'uint256',
            },
        ],
        name: 'calcReceiveAsset',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'fromAsset',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'amount',
                type: 'uint256',
            },
        ],
        name: 'calcSendAsset',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'computeBalance0',
        outputs: [
            {
                internalType: 'uint256',
                name: 'walpha_0',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'decimals',
        outputs: [
            {
                internalType: 'uint8',
                name: '',
                type: 'uint8',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'bytes32',
                name: 'identifier',
                type: 'bytes32',
            },
            {
                internalType: 'uint256',
                name: 'escrowAmount',
                type: 'uint256',
            },
            {
                internalType: 'address',
                name: 'escrowToken',
                type: 'address',
            },
        ],
        name: 'deleteUnderwriteAsset',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256[]',
                name: 'tokenAmounts',
                type: 'uint256[]',
            },
            {
                internalType: 'uint256',
                name: 'minOut',
                type: 'uint256',
            },
        ],
        name: 'depositMixed',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'factoryOwner',
        outputs: [
            {
                internalType: 'address',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'finishSetup',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'getUnitCapacity',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'governanceFeeDestination',
        outputs: [
            {
                internalType: 'address',
                name: '',
                type: 'address',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address[]',
                name: 'assets',
                type: 'address[]',
            },
            {
                internalType: 'uint256[]',
                name: 'weights',
                type: 'uint256[]',
            },
            {
                internalType: 'uint256',
                name: 'amp',
                type: 'uint256',
            },
            {
                internalType: 'address',
                name: 'depositor',
                type: 'address',
            },
        ],
        name: 'initializeSwapCurves',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'fromAsset',
                type: 'address',
            },
            {
                internalType: 'address',
                name: 'toAsset',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'amount',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'minOut',
                type: 'uint256',
            },
        ],
        name: 'localSwap',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'bytes[]',
                name: 'data',
                type: 'bytes[]',
            },
        ],
        name: 'multicall',
        outputs: [
            {
                internalType: 'bytes[]',
                name: 'results',
                type: 'bytes[]',
            },
        ],
        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: 'bytes32',
                name: 'channelId',
                type: 'bytes32',
            },
            {
                internalType: 'bytes',
                name: 'toAccount',
                type: 'bytes',
            },
            {
                internalType: 'uint256',
                name: 'U',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'escrowAmount',
                type: 'uint256',
            },
            {
                internalType: 'address',
                name: 'escrowToken',
                type: 'address',
            },
            {
                internalType: 'uint32',
                name: 'blockNumberMod',
                type: 'uint32',
            },
        ],
        name: 'onSendAssetFailure',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'bytes32',
                name: 'channelId',
                type: 'bytes32',
            },
            {
                internalType: 'bytes',
                name: 'toAccount',
                type: 'bytes',
            },
            {
                internalType: 'uint256',
                name: 'U',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'escrowAmount',
                type: 'uint256',
            },
            {
                internalType: 'address',
                name: 'escrowToken',
                type: 'address',
            },
            {
                internalType: 'uint32',
                name: 'blockNumberMod',
                type: 'uint32',
            },
        ],
        name: 'onSendAssetSuccess',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'bytes32',
                name: 'channelId',
                type: 'bytes32',
            },
            {
                internalType: 'bytes',
                name: 'toAccount',
                type: 'bytes',
            },
            {
                internalType: 'uint256',
                name: 'U',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'escrowAmount',
                type: 'uint256',
            },
            {
                internalType: 'uint32',
                name: 'blockNumberMod',
                type: 'uint32',
            },
        ],
        name: 'onSendLiquidityFailure',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'bytes32',
                name: 'channelId',
                type: 'bytes32',
            },
            {
                internalType: 'bytes',
                name: 'toAccount',
                type: 'bytes',
            },
            {
                internalType: 'uint256',
                name: 'U',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'escrowAmount',
                type: 'uint256',
            },
            {
                internalType: 'uint32',
                name: 'blockNumberMod',
                type: 'uint32',
            },
        ],
        name: 'onSendLiquiditySuccess',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'owner',
                type: 'address',
            },
            {
                internalType: 'address',
                name: 'spender',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'value',
                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: [],
        name: 'ready',
        outputs: [
            {
                internalType: 'bool',
                name: '',
                type: 'bool',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'bytes32',
                name: 'channelId',
                type: 'bytes32',
            },
            {
                internalType: 'bytes',
                name: 'fromVault',
                type: 'bytes',
            },
            {
                internalType: 'uint256',
                name: 'toAssetIndex',
                type: 'uint256',
            },
            {
                internalType: 'address',
                name: 'toAccount',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'U',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'minOut',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'fromAmount',
                type: 'uint256',
            },
            {
                internalType: 'bytes',
                name: 'fromAsset',
                type: 'bytes',
            },
            {
                internalType: 'uint32',
                name: 'blockNumberMod',
                type: 'uint32',
            },
        ],
        name: 'receiveAsset',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'bytes32',
                name: 'channelId',
                type: 'bytes32',
            },
            {
                internalType: 'bytes',
                name: 'fromVault',
                type: 'bytes',
            },
            {
                internalType: 'uint256',
                name: 'toAssetIndex',
                type: 'uint256',
            },
            {
                internalType: 'address',
                name: 'toAccount',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'U',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'minOut',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'fromAmount',
                type: 'uint256',
            },
            {
                internalType: 'bytes',
                name: 'fromAsset',
                type: 'bytes',
            },
            {
                internalType: 'uint32',
                name: 'blockNumberMod',
                type: 'uint32',
            },
            {
                internalType: 'address',
                name: 'dataTarget',
                type: 'address',
            },
            {
                internalType: 'bytes',
                name: 'data',
                type: 'bytes',
            },
        ],
        name: 'receiveAsset',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'bytes32',
                name: 'channelId',
                type: 'bytes32',
            },
            {
                internalType: 'bytes',
                name: 'fromVault',
                type: 'bytes',
            },
            {
                internalType: 'address',
                name: 'toAccount',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'U',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'minVaultTokens',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'minReferenceAsset',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'fromAmount',
                type: 'uint256',
            },
            {
                internalType: 'uint32',
                name: 'blockNumberMod',
                type: 'uint32',
            },
        ],
        name: 'receiveLiquidity',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'bytes32',
                name: 'channelId',
                type: 'bytes32',
            },
            {
                internalType: 'bytes',
                name: 'fromVault',
                type: 'bytes',
            },
            {
                internalType: 'address',
                name: 'toAccount',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'U',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'minVaultTokens',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'minReferenceAsset',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'fromAmount',
                type: 'uint256',
            },
            {
                internalType: 'uint32',
                name: 'blockNumberMod',
                type: 'uint32',
            },
            {
                internalType: 'address',
                name: 'dataTarget',
                type: 'address',
            },
            {
                internalType: 'bytes',
                name: 'data',
                type: 'bytes',
            },
        ],
        name: 'receiveLiquidity',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'bytes32',
                name: 'identifier',
                type: 'bytes32',
            },
            {
                internalType: 'uint256',
                name: 'escrowAmount',
                type: 'uint256',
            },
            {
                internalType: 'address',
                name: 'escrowToken',
                type: 'address',
            },
        ],
        name: 'releaseUnderwriteAsset',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: 'bytes32',
                        name: 'chainIdentifier',
                        type: 'bytes32',
                    },
                    {
                        internalType: 'bytes',
                        name: 'toVault',
                        type: 'bytes',
                    },
                    {
                        internalType: 'bytes',
                        name: 'toAccount',
                        type: 'bytes',
                    },
                    {
                        components: [
                            {
                                internalType: 'uint48',
                                name: 'maxGasDelivery',
                                type: 'uint48',
                            },
                            {
                                internalType: 'uint48',
                                name: 'maxGasAck',
                                type: 'uint48',
                            },
                            {
                                internalType: 'address',
                                name: 'refundGasTo',
                                type: 'address',
                            },
                            {
                                internalType: 'uint96',
                                name: 'priceOfDeliveryGas',
                                type: 'uint96',
                            },
                            {
                                internalType: 'uint96',
                                name: 'priceOfAckGas',
                                type: 'uint96',
                            },
                            {
                                internalType: 'uint64',
                                name: 'targetDelta',
                                type: 'uint64',
                            },
                        ],
                        internalType: 'struct IMessageEscrowStructs.IncentiveDescription',
                        name: 'incentive',
                        type: 'tuple',
                    },
                ],
                internalType: 'struct ICatalystV1Structs.RouteDescription',
                name: 'routeDescription',
                type: 'tuple',
            },
            {
                internalType: 'address',
                name: 'fromAsset',
                type: 'address',
            },
            {
                internalType: 'uint8',
                name: 'toAssetIndex',
                type: 'uint8',
            },
            {
                internalType: 'uint256',
                name: 'amount',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'minOut',
                type: 'uint256',
            },
            {
                internalType: 'address',
                name: 'fallbackUser',
                type: 'address',
            },
            {
                internalType: 'bytes',
                name: 'calldata_',
                type: 'bytes',
            },
        ],
        name: 'sendAsset',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'payable',
        type: 'function',
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: 'bytes32',
                        name: 'chainIdentifier',
                        type: 'bytes32',
                    },
                    {
                        internalType: 'bytes',
                        name: 'toVault',
                        type: 'bytes',
                    },
                    {
                        internalType: 'bytes',
                        name: 'toAccount',
                        type: 'bytes',
                    },
                    {
                        components: [
                            {
                                internalType: 'uint48',
                                name: 'maxGasDelivery',
                                type: 'uint48',
                            },
                            {
                                internalType: 'uint48',
                                name: 'maxGasAck',
                                type: 'uint48',
                            },
                            {
                                internalType: 'address',
                                name: 'refundGasTo',
                                type: 'address',
                            },
                            {
                                internalType: 'uint96',
                                name: 'priceOfDeliveryGas',
                                type: 'uint96',
                            },
                            {
                                internalType: 'uint96',
                                name: 'priceOfAckGas',
                                type: 'uint96',
                            },
                            {
                                internalType: 'uint64',
                                name: 'targetDelta',
                                type: 'uint64',
                            },
                        ],
                        internalType: 'struct IMessageEscrowStructs.IncentiveDescription',
                        name: 'incentive',
                        type: 'tuple',
                    },
                ],
                internalType: 'struct ICatalystV1Structs.RouteDescription',
                name: 'routeDescription',
                type: 'tuple',
            },
            {
                internalType: 'address',
                name: 'fromAsset',
                type: 'address',
            },
            {
                internalType: 'uint8',
                name: 'toAssetIndex',
                type: 'uint8',
            },
            {
                internalType: 'uint256',
                name: 'amount',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'minOut',
                type: 'uint256',
            },
            {
                internalType: 'address',
                name: 'fallbackUser',
                type: 'address',
            },
            {
                internalType: 'uint16',
                name: 'underwritePercentageX16',
                type: 'uint16',
            },
            {
                internalType: 'bytes',
                name: 'calldata_',
                type: 'bytes',
            },
        ],
        name: 'sendAssetUnderwrite',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'payable',
        type: 'function',
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: 'bytes32',
                        name: 'chainIdentifier',
                        type: 'bytes32',
                    },
                    {
                        internalType: 'bytes',
                        name: 'toVault',
                        type: 'bytes',
                    },
                    {
                        internalType: 'bytes',
                        name: 'toAccount',
                        type: 'bytes',
                    },
                    {
                        components: [
                            {
                                internalType: 'uint48',
                                name: 'maxGasDelivery',
                                type: 'uint48',
                            },
                            {
                                internalType: 'uint48',
                                name: 'maxGasAck',
                                type: 'uint48',
                            },
                            {
                                internalType: 'address',
                                name: 'refundGasTo',
                                type: 'address',
                            },
                            {
                                internalType: 'uint96',
                                name: 'priceOfDeliveryGas',
                                type: 'uint96',
                            },
                            {
                                internalType: 'uint96',
                                name: 'priceOfAckGas',
                                type: 'uint96',
                            },
                            {
                                internalType: 'uint64',
                                name: 'targetDelta',
                                type: 'uint64',
                            },
                        ],
                        internalType: 'struct IMessageEscrowStructs.IncentiveDescription',
                        name: 'incentive',
                        type: 'tuple',
                    },
                ],
                internalType: 'struct ICatalystV1Structs.RouteDescription',
                name: 'routeDescription',
                type: 'tuple',
            },
            {
                internalType: 'address',
                name: 'fromAsset',
                type: 'address',
            },
            {
                internalType: 'uint8',
                name: 'toAssetIndex',
                type: 'uint8',
            },
            {
                internalType: 'uint256',
                name: 'amount',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'minOut',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'minU',
                type: 'uint256',
            },
            {
                internalType: 'address',
                name: 'fallbackUser',
                type: 'address',
            },
            {
                internalType: 'bytes',
                name: 'calldata_',
                type: 'bytes',
            },
        ],
        name: 'sendAssetUnderwritePurpose',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'payable',
        type: 'function',
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: 'bytes32',
                        name: 'chainIdentifier',
                        type: 'bytes32',
                    },
                    {
                        internalType: 'bytes',
                        name: 'toVault',
                        type: 'bytes',
                    },
                    {
                        internalType: 'bytes',
                        name: 'toAccount',
                        type: 'bytes',
                    },
                    {
                        components: [
                            {
                                internalType: 'uint48',
                                name: 'maxGasDelivery',
                                type: 'uint48',
                            },
                            {
                                internalType: 'uint48',
                                name: 'maxGasAck',
                                type: 'uint48',
                            },
                            {
                                internalType: 'address',
                                name: 'refundGasTo',
                                type: 'address',
                            },
                            {
                                internalType: 'uint96',
                                name: 'priceOfDeliveryGas',
                                type: 'uint96',
                            },
                            {
                                internalType: 'uint96',
                                name: 'priceOfAckGas',
                                type: 'uint96',
                            },
                            {
                                internalType: 'uint64',
                                name: 'targetDelta',
                                type: 'uint64',
                            },
                        ],
                        internalType: 'struct IMessageEscrowStructs.IncentiveDescription',
                        name: 'incentive',
                        type: 'tuple',
                    },
                ],
                internalType: 'struct ICatalystV1Structs.RouteDescription',
                name: 'routeDescription',
                type: 'tuple',
            },
            {
                internalType: 'uint256',
                name: 'vaultTokens',
                type: 'uint256',
            },
            {
                internalType: 'uint256[2]',
                name: 'minOut',
                type: 'uint256[2]',
            },
            {
                internalType: 'address',
                name: 'fallbackUser',
                type: 'address',
            },
            {
                internalType: 'bytes',
                name: 'calldata_',
                type: 'bytes',
            },
        ],
        name: 'sendLiquidity',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'payable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'targetTime',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'targetAmplification',
                type: 'uint256',
            },
        ],
        name: 'setAmplification',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'bytes32',
                name: 'channelId',
                type: 'bytes32',
            },
            {
                internalType: 'bytes',
                name: 'toVault',
                type: 'bytes',
            },
            {
                internalType: 'bool',
                name: 'state',
                type: 'bool',
            },
        ],
        name: 'setConnection',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'administrator',
                type: 'address',
            },
        ],
        name: 'setFeeAdministrator',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'fee',
                type: 'uint256',
            },
        ],
        name: 'setGovernanceFee',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'fee',
                type: 'uint256',
            },
        ],
        name: 'setVaultFee',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'string',
                name: 'name_',
                type: 'string',
            },
            {
                internalType: 'string',
                name: 'symbol_',
                type: 'string',
            },
            {
                internalType: 'address',
                name: 'chainInterface',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'vaultFee',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'governanceFee',
                type: 'uint256',
            },
            {
                internalType: 'address',
                name: 'feeAdministrator',
                type: 'address',
            },
            {
                internalType: 'address',
                name: 'setupMaster',
                type: 'address',
            },
        ],
        name: 'setup',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'symbol',
        outputs: [
            {
                internalType: 'string',
                name: '',
                type: 'string',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [],
        name: 'totalSupply',
        outputs: [
            {
                internalType: 'uint256',
                name: '',
                type: 'uint256',
            },
        ],
        stateMutability: 'view',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'to',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'amount',
                type: 'uint256',
            },
        ],
        name: 'transfer',
        outputs: [
            {
                internalType: 'bool',
                name: '',
                type: 'bool',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'address',
                name: 'from',
                type: 'address',
            },
            {
                internalType: 'address',
                name: 'to',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'amount',
                type: 'uint256',
            },
        ],
        name: 'transferFrom',
        outputs: [
            {
                internalType: 'bool',
                name: '',
                type: 'bool',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'bytes32',
                name: 'identifier',
                type: 'bytes32',
            },
            {
                internalType: 'address',
                name: 'toAsset',
                type: 'address',
            },
            {
                internalType: 'uint256',
                name: 'U',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: 'minOut',
                type: 'uint256',
            },
        ],
        name: 'underwriteAsset',
        outputs: [
            {
                internalType: 'uint256',
                name: 'purchasedTokens',
                type: 'uint256',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [],
        name: 'updateMaxUnitCapacity',
        outputs: [],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'vaultTokens',
                type: 'uint256',
            },
            {
                internalType: 'uint256[]',
                name: 'minOut',
                type: 'uint256[]',
            },
        ],
        name: 'withdrawAll',
        outputs: [
            {
                internalType: 'uint256[]',
                name: '',
                type: 'uint256[]',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        inputs: [
            {
                internalType: 'uint256',
                name: 'vaultTokens',
                type: 'uint256',
            },
            {
                internalType: 'uint256[]',
                name: 'withdrawRatio',
                type: 'uint256[]',
            },
            {
                internalType: 'uint256[]',
                name: 'minOut',
                type: 'uint256[]',
            },
        ],
        name: 'withdrawMixed',
        outputs: [
            {
                internalType: 'uint256[]',
                name: '',
                type: 'uint256[]',
            },
        ],
        stateMutability: 'nonpayable',
        type: 'function',
    },
];
class AmplifiedVault__factory {
    static abi = _abi;
    static createInterface() {
        return new ethers_1.Interface(_abi);
    }
    static connect(address, runner) {
        return new ethers_1.Contract(address, _abi, runner);
    }
}
exports.AmplifiedVault__factory = AmplifiedVault__factory;
//# sourceMappingURL=AmplifiedVault__factory.js.map