Interface AmplifiedVault

interface AmplifiedVault {
    DOMAIN_SEPARATOR: TypedContractMethod<[], [string], "view">;
    FACTORY: TypedContractMethod<[], [string], "view">;
    MATHLIB: TypedContractMethod<[], [string], "view">;
    [internal]: any;
    _adjustmentTarget: TypedContractMethod<[], [bigint], "view">;
    _chainInterface: TypedContractMethod<[], [string], "view">;
    _escrowLookup: TypedContractMethod<[arg0: BytesLike], [string], "view">;
    _escrowedTokens: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
    _escrowedVaultTokens: TypedContractMethod<[], [bigint], "view">;
    _feeAdministrator: TypedContractMethod<[], [string], "view">;
    _governanceFeeShare: TypedContractMethod<[], [bigint], "view">;
    _lastModificationTime: TypedContractMethod<[], [bigint], "view">;
    _maxUnitCapacity: TypedContractMethod<[], [bigint], "view">;
    _oneMinusAmp: TypedContractMethod<[], [bigint], "view">;
    _setupMaster: TypedContractMethod<[], [string], "view">;
    _targetAmplification: TypedContractMethod<[], [bigint], "view">;
    _tokenIndexing: TypedContractMethod<[arg0: BigNumberish], [string], "view">;
    _unitTracker: TypedContractMethod<[], [bigint], "view">;
    _vaultConnection: TypedContractMethod<[arg0: BytesLike, arg1: BytesLike], [boolean], "view">;
    _vaultFee: TypedContractMethod<[], [bigint], "view">;
    _weight: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
    allowance: TypedContractMethod<[arg0: AddressLike, arg1: AddressLike], [bigint], "view">;
    approve: TypedContractMethod<[spender: AddressLike, amount: BigNumberish], [boolean], "nonpayable">;
    balanceOf: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
    calcLocalSwap: TypedContractMethod<[fromAsset: AddressLike, toAsset: AddressLike, amount: BigNumberish], [bigint], "view">;
    calcReceiveAsset: TypedContractMethod<[toAsset: AddressLike, U: BigNumberish], [bigint], "view">;
    calcSendAsset: TypedContractMethod<[fromAsset: AddressLike, amount: BigNumberish], [bigint], "view">;
    computeBalance0: TypedContractMethod<[], [bigint], "view">;
    decimals: TypedContractMethod<[], [bigint], "view">;
    deleteUnderwriteAsset: TypedContractMethod<[identifier: BytesLike, escrowAmount: BigNumberish, escrowToken: AddressLike], [void], "nonpayable">;
    depositMixed: TypedContractMethod<[tokenAmounts: BigNumberish[], minOut: BigNumberish], [bigint], "nonpayable">;
    factoryOwner: TypedContractMethod<[], [string], "view">;
    fallback: null | WrappedFallback;
    filters: {
        Approval: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        Approval(address,address,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        FinishSetup: TypedContractEvent<[], [], OutputObject>;
        FinishSetup(): TypedContractEvent<[], [], OutputObject>;
        Initialized: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        Initialized(uint8): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        LocalSwap: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        LocalSwap(address,address,address,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        ReceiveAsset: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        ReceiveAsset(bytes32,bytes,address,address,uint256,uint256,uint256,bytes,uint32): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        ReceiveLiquidity: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        ReceiveLiquidity(bytes32,bytes,address,uint256,uint256,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        SendAsset: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        SendAsset(bytes32,bytes,bytes,address,uint8,uint256,uint256,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        SendAssetFailure: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        SendAssetFailure(bytes32,bytes,uint256,uint256,address,uint32): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        SendAssetSuccess: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        SendAssetSuccess(bytes32,bytes,uint256,uint256,address,uint32): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        SendAssetUnderwritable: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        SendAssetUnderwritable(bytes32,bytes,bytes,address,uint8,uint256,uint256,uint256,uint256,uint16): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        SendLiquidity: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        SendLiquidity(bytes32,bytes,bytes,uint256,uint256[2],uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        SendLiquidityFailure: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        SendLiquidityFailure(bytes32,bytes,uint256,uint256,uint32): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        SendLiquiditySuccess: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        SendLiquiditySuccess(bytes32,bytes,uint256,uint256,uint32): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        SetAmplification: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        SetAmplification(uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        SetConnection: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        SetConnection(bytes32,bytes,bool): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        SetFeeAdministrator: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        SetFeeAdministrator(address): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        SetGovernanceFee: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        SetGovernanceFee(uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        SetVaultFee: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        SetVaultFee(uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        SetWeights: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        SetWeights(uint256,uint256[]): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        Transfer: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        Transfer(address,address,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        VaultDeposit: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        VaultDeposit(address,uint256,uint256[]): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        VaultWithdraw: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
        VaultWithdraw(address,uint256,uint256[]): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    };
    finishSetup: TypedContractMethod<[], [void], "nonpayable">;
    getUnitCapacity: TypedContractMethod<[], [bigint], "view">;
    governanceFeeDestination: TypedContractMethod<[], [string], "view">;
    initializeSwapCurves: TypedContractMethod<[assets: AddressLike[], weights: BigNumberish[], amp: BigNumberish, depositor: AddressLike], [void], "nonpayable">;
    interface: AmplifiedVaultInterface;
    localSwap: TypedContractMethod<[fromAsset: AddressLike, toAsset: AddressLike, amount: BigNumberish, minOut: BigNumberish], [bigint], "nonpayable">;
    multicall: TypedContractMethod<[data: BytesLike[]], [string[]], "nonpayable">;
    name: TypedContractMethod<[], [string], "view">;
    nonces: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
    onSendAssetFailure: TypedContractMethod<[channelId: BytesLike, toAccount: BytesLike, U: BigNumberish, escrowAmount: BigNumberish, escrowToken: AddressLike, blockNumberMod: BigNumberish], [void], "nonpayable">;
    onSendAssetSuccess: TypedContractMethod<[channelId: BytesLike, toAccount: BytesLike, U: BigNumberish, escrowAmount: BigNumberish, escrowToken: AddressLike, blockNumberMod: BigNumberish], [void], "nonpayable">;
    onSendLiquidityFailure: TypedContractMethod<[channelId: BytesLike, toAccount: BytesLike, U: BigNumberish, escrowAmount: BigNumberish, blockNumberMod: BigNumberish], [void], "nonpayable">;
    onSendLiquiditySuccess: TypedContractMethod<[channelId: BytesLike, toAccount: BytesLike, U: BigNumberish, escrowAmount: BigNumberish, blockNumberMod: BigNumberish], [void], "nonpayable">;
    permit: TypedContractMethod<[owner: AddressLike, spender: AddressLike, value: BigNumberish, deadline: BigNumberish, v: BigNumberish, r: BytesLike, s: BytesLike], [void], "nonpayable">;
    ready: TypedContractMethod<[], [boolean], "view">;
    receiveAsset(bytes32,bytes,uint256,address,uint256,uint256,uint256,bytes,uint32): TypedContractMethod<[channelId: BytesLike, fromVault: BytesLike, toAssetIndex: BigNumberish, toAccount: AddressLike, U: BigNumberish, minOut: BigNumberish, fromAmount: BigNumberish, fromAsset: BytesLike, blockNumberMod: BigNumberish], [void], "nonpayable">;
    receiveAsset(bytes32,bytes,uint256,address,uint256,uint256,uint256,bytes,uint32,address,bytes): TypedContractMethod<[channelId: BytesLike, fromVault: BytesLike, toAssetIndex: BigNumberish, toAccount: AddressLike, U: BigNumberish, minOut: BigNumberish, fromAmount: BigNumberish, fromAsset: BytesLike, blockNumberMod: BigNumberish, dataTarget: AddressLike, data: BytesLike], [void], "nonpayable">;
    receiveLiquidity(bytes32,bytes,address,uint256,uint256,uint256,uint256,uint32): TypedContractMethod<[channelId: BytesLike, fromVault: BytesLike, toAccount: AddressLike, U: BigNumberish, minVaultTokens: BigNumberish, minReferenceAsset: BigNumberish, fromAmount: BigNumberish, blockNumberMod: BigNumberish], [void], "nonpayable">;
    receiveLiquidity(bytes32,bytes,address,uint256,uint256,uint256,uint256,uint32,address,bytes): TypedContractMethod<[channelId: BytesLike, fromVault: BytesLike, toAccount: AddressLike, U: BigNumberish, minVaultTokens: BigNumberish, minReferenceAsset: BigNumberish, fromAmount: BigNumberish, blockNumberMod: BigNumberish, dataTarget: AddressLike, data: BytesLike], [void], "nonpayable">;
    releaseUnderwriteAsset: TypedContractMethod<[identifier: BytesLike, escrowAmount: BigNumberish, escrowToken: AddressLike], [void], "nonpayable">;
    runner: null | ContractRunner;
    sendAsset: TypedContractMethod<[routeDescription: RouteDescriptionStruct, fromAsset: AddressLike, toAssetIndex: BigNumberish, amount: BigNumberish, minOut: BigNumberish, fallbackUser: AddressLike, calldata_: BytesLike], [bigint], "payable">;
    sendAssetUnderwrite: TypedContractMethod<[routeDescription: RouteDescriptionStruct, fromAsset: AddressLike, toAssetIndex: BigNumberish, amount: BigNumberish, minOut: BigNumberish, fallbackUser: AddressLike, underwritePercentageX16: BigNumberish, calldata_: BytesLike], [bigint], "payable">;
    sendAssetUnderwritePurpose: TypedContractMethod<[routeDescription: RouteDescriptionStruct, fromAsset: AddressLike, toAssetIndex: BigNumberish, amount: BigNumberish, minOut: BigNumberish, minU: BigNumberish, fallbackUser: AddressLike, calldata_: BytesLike], [bigint], "payable">;
    sendLiquidity: TypedContractMethod<[routeDescription: RouteDescriptionStruct, vaultTokens: BigNumberish, minOut: [BigNumberish, BigNumberish], fallbackUser: AddressLike, calldata_: BytesLike], [bigint], "payable">;
    setAmplification: TypedContractMethod<[targetTime: BigNumberish, targetAmplification: BigNumberish], [void], "nonpayable">;
    setConnection: TypedContractMethod<[channelId: BytesLike, toVault: BytesLike, state: boolean], [void], "nonpayable">;
    setFeeAdministrator: TypedContractMethod<[administrator: AddressLike], [void], "nonpayable">;
    setGovernanceFee: TypedContractMethod<[fee: BigNumberish], [void], "nonpayable">;
    setVaultFee: TypedContractMethod<[fee: BigNumberish], [void], "nonpayable">;
    setup: TypedContractMethod<[name_: string, symbol_: string, chainInterface: AddressLike, vaultFee: BigNumberish, governanceFee: BigNumberish, feeAdministrator: AddressLike, setupMaster: AddressLike], [void], "nonpayable">;
    symbol: TypedContractMethod<[], [string], "view">;
    target: string | Addressable;
    totalSupply: TypedContractMethod<[], [bigint], "view">;
    transfer: TypedContractMethod<[to: AddressLike, amount: BigNumberish], [boolean], "nonpayable">;
    transferFrom: TypedContractMethod<[from: AddressLike, to: AddressLike, amount: BigNumberish], [boolean], "nonpayable">;
    underwriteAsset: TypedContractMethod<[identifier: BytesLike, toAsset: AddressLike, U: BigNumberish, minOut: BigNumberish], [bigint], "nonpayable">;
    updateMaxUnitCapacity: TypedContractMethod<[], [void], "nonpayable">;
    withdrawAll: TypedContractMethod<[vaultTokens: BigNumberish, minOut: BigNumberish[]], [bigint[]], "nonpayable">;
    withdrawMixed: TypedContractMethod<[vaultTokens: BigNumberish, withdrawRatio: BigNumberish[], minOut: BigNumberish[]], [bigint[]], "nonpayable">;
    addListener(event, listener): Promise<AmplifiedVault>;
    attach(target): BaseContract;
    connect(runner?): AmplifiedVault;
    deploymentTransaction(): null | ContractTransactionResponse;
    emit(event, ...args): Promise<boolean>;
    getAddress(): Promise<string>;
    getDeployedCode(): Promise<null | string>;
    getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    getEvent(key): TypedContractEvent<[], [], OutputObject>;
    getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    getFunction<T>(key): T;
    getFunction(nameOrSignature): TypedContractMethod<[], [string], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [string], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [string], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [string], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[arg0: BytesLike], [string], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [string], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [string], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[arg0: BigNumberish], [string], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[arg0: BytesLike, arg1: BytesLike], [boolean], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[arg0: AddressLike, arg1: AddressLike], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[spender: AddressLike, amount: BigNumberish], [boolean], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[fromAsset: AddressLike, toAsset: AddressLike, amount: BigNumberish], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[toAsset: AddressLike, U: BigNumberish], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[fromAsset: AddressLike, amount: BigNumberish], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[identifier: BytesLike, escrowAmount: BigNumberish, escrowToken: AddressLike], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[tokenAmounts: BigNumberish[], minOut: BigNumberish], [bigint], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[], [string], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [string], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[assets: AddressLike[], weights: BigNumberish[], amp: BigNumberish, depositor: AddressLike], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[fromAsset: AddressLike, toAsset: AddressLike, amount: BigNumberish, minOut: BigNumberish], [bigint], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[data: BytesLike[]], [string[]], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[], [string], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[channelId: BytesLike, toAccount: BytesLike, U: BigNumberish, escrowAmount: BigNumberish, escrowToken: AddressLike, blockNumberMod: BigNumberish], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[channelId: BytesLike, toAccount: BytesLike, U: BigNumberish, escrowAmount: BigNumberish, escrowToken: AddressLike, blockNumberMod: BigNumberish], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[channelId: BytesLike, toAccount: BytesLike, U: BigNumberish, escrowAmount: BigNumberish, blockNumberMod: BigNumberish], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[channelId: BytesLike, toAccount: BytesLike, U: BigNumberish, escrowAmount: BigNumberish, blockNumberMod: BigNumberish], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[owner: AddressLike, spender: AddressLike, value: BigNumberish, deadline: BigNumberish, v: BigNumberish, r: BytesLike, s: BytesLike], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[], [boolean], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[channelId: BytesLike, fromVault: BytesLike, toAssetIndex: BigNumberish, toAccount: AddressLike, U: BigNumberish, minOut: BigNumberish, fromAmount: BigNumberish, fromAsset: BytesLike, blockNumberMod: BigNumberish], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[channelId: BytesLike, fromVault: BytesLike, toAssetIndex: BigNumberish, toAccount: AddressLike, U: BigNumberish, minOut: BigNumberish, fromAmount: BigNumberish, fromAsset: BytesLike, blockNumberMod: BigNumberish, dataTarget: AddressLike, data: BytesLike], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[channelId: BytesLike, fromVault: BytesLike, toAccount: AddressLike, U: BigNumberish, minVaultTokens: BigNumberish, minReferenceAsset: BigNumberish, fromAmount: BigNumberish, blockNumberMod: BigNumberish], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[channelId: BytesLike, fromVault: BytesLike, toAccount: AddressLike, U: BigNumberish, minVaultTokens: BigNumberish, minReferenceAsset: BigNumberish, fromAmount: BigNumberish, blockNumberMod: BigNumberish, dataTarget: AddressLike, data: BytesLike], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[identifier: BytesLike, escrowAmount: BigNumberish, escrowToken: AddressLike], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[routeDescription: RouteDescriptionStruct, fromAsset: AddressLike, toAssetIndex: BigNumberish, amount: BigNumberish, minOut: BigNumberish, fallbackUser: AddressLike, calldata_: BytesLike], [bigint], "payable">;
    getFunction(nameOrSignature): TypedContractMethod<[routeDescription: RouteDescriptionStruct, fromAsset: AddressLike, toAssetIndex: BigNumberish, amount: BigNumberish, minOut: BigNumberish, fallbackUser: AddressLike, underwritePercentageX16: BigNumberish, calldata_: BytesLike], [bigint], "payable">;
    getFunction(nameOrSignature): TypedContractMethod<[routeDescription: RouteDescriptionStruct, fromAsset: AddressLike, toAssetIndex: BigNumberish, amount: BigNumberish, minOut: BigNumberish, minU: BigNumberish, fallbackUser: AddressLike, calldata_: BytesLike], [bigint], "payable">;
    getFunction(nameOrSignature): TypedContractMethod<[routeDescription: RouteDescriptionStruct, vaultTokens: BigNumberish, minOut: [BigNumberish, BigNumberish], fallbackUser: AddressLike, calldata_: BytesLike], [bigint], "payable">;
    getFunction(nameOrSignature): TypedContractMethod<[targetTime: BigNumberish, targetAmplification: BigNumberish], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[channelId: BytesLike, toVault: BytesLike, state: boolean], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[administrator: AddressLike], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[fee: BigNumberish], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[fee: BigNumberish], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[name_: string, symbol_: string, chainInterface: AddressLike, vaultFee: BigNumberish, governanceFee: BigNumberish, feeAdministrator: AddressLike, setupMaster: AddressLike], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[], [string], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">;
    getFunction(nameOrSignature): TypedContractMethod<[to: AddressLike, amount: BigNumberish], [boolean], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[from: AddressLike, to: AddressLike, amount: BigNumberish], [boolean], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[identifier: BytesLike, toAsset: AddressLike, U: BigNumberish, minOut: BigNumberish], [bigint], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[], [void], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[vaultTokens: BigNumberish, minOut: BigNumberish[]], [bigint[]], "nonpayable">;
    getFunction(nameOrSignature): TypedContractMethod<[vaultTokens: BigNumberish, withdrawRatio: BigNumberish[], minOut: BigNumberish[]], [bigint[]], "nonpayable">;
    listenerCount(event?): Promise<number>;
    listeners<TCEvent>(event): Promise<TypedListener<TCEvent>[]>;
    listeners(eventName?): Promise<Listener[]>;
    off(event, listener?): Promise<AmplifiedVault>;
    on<TCEvent>(event, listener): Promise<AmplifiedVault>;
    on<TCEvent>(filter, listener): Promise<AmplifiedVault>;
    once<TCEvent>(event, listener): Promise<AmplifiedVault>;
    once<TCEvent>(filter, listener): Promise<AmplifiedVault>;
    queryFilter<TCEvent>(event, fromBlockOrBlockhash?, toBlock?): Promise<TypedEventLog<TCEvent>[]>;
    queryFilter<TCEvent>(filter, fromBlockOrBlockhash?, toBlock?): Promise<TypedEventLog<TCEvent>[]>;
    queryTransaction(hash): Promise<EventLog[]>;
    removeAllListeners<TCEvent>(event?): Promise<AmplifiedVault>;
    removeListener(event, listener): Promise<AmplifiedVault>;
    waitForDeployment(): Promise<AmplifiedVault>;
}

Hierarchy

  • BaseContract
    • AmplifiedVault

Properties

Methods

Properties

DOMAIN_SEPARATOR: TypedContractMethod<[], [string], "view">
FACTORY: TypedContractMethod<[], [string], "view">
MATHLIB: TypedContractMethod<[], [string], "view">
[internal]: any

@_ignore:

_adjustmentTarget: TypedContractMethod<[], [bigint], "view">
_chainInterface: TypedContractMethod<[], [string], "view">
_escrowLookup: TypedContractMethod<[arg0: BytesLike], [string], "view">
_escrowedTokens: TypedContractMethod<[arg0: AddressLike], [bigint], "view">
_escrowedVaultTokens: TypedContractMethod<[], [bigint], "view">
_feeAdministrator: TypedContractMethod<[], [string], "view">
_governanceFeeShare: TypedContractMethod<[], [bigint], "view">
_lastModificationTime: TypedContractMethod<[], [bigint], "view">
_maxUnitCapacity: TypedContractMethod<[], [bigint], "view">
_oneMinusAmp: TypedContractMethod<[], [bigint], "view">
_setupMaster: TypedContractMethod<[], [string], "view">
_targetAmplification: TypedContractMethod<[], [bigint], "view">
_tokenIndexing: TypedContractMethod<[arg0: BigNumberish], [string], "view">
_unitTracker: TypedContractMethod<[], [bigint], "view">
_vaultConnection: TypedContractMethod<[arg0: BytesLike, arg1: BytesLike], [boolean], "view">
_vaultFee: TypedContractMethod<[], [bigint], "view">
_weight: TypedContractMethod<[arg0: AddressLike], [bigint], "view">
allowance: TypedContractMethod<[arg0: AddressLike, arg1: AddressLike], [bigint], "view">
approve: TypedContractMethod<[spender: AddressLike, amount: BigNumberish], [boolean], "nonpayable">
balanceOf: TypedContractMethod<[arg0: AddressLike], [bigint], "view">
calcLocalSwap: TypedContractMethod<[fromAsset: AddressLike, toAsset: AddressLike, amount: BigNumberish], [bigint], "view">
calcReceiveAsset: TypedContractMethod<[toAsset: AddressLike, U: BigNumberish], [bigint], "view">
calcSendAsset: TypedContractMethod<[fromAsset: AddressLike, amount: BigNumberish], [bigint], "view">
computeBalance0: TypedContractMethod<[], [bigint], "view">
decimals: TypedContractMethod<[], [bigint], "view">
deleteUnderwriteAsset: TypedContractMethod<[identifier: BytesLike, escrowAmount: BigNumberish, escrowToken: AddressLike], [void], "nonpayable">
depositMixed: TypedContractMethod<[tokenAmounts: BigNumberish[], minOut: BigNumberish], [bigint], "nonpayable">
factoryOwner: TypedContractMethod<[], [string], "view">
fallback: null | WrappedFallback

The fallback or receive function if any.

filters: {
    Approval: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Approval(address,address,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    FinishSetup: TypedContractEvent<[], [], OutputObject>;
    FinishSetup(): TypedContractEvent<[], [], OutputObject>;
    Initialized: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Initialized(uint8): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    LocalSwap: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    LocalSwap(address,address,address,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    ReceiveAsset: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    ReceiveAsset(bytes32,bytes,address,address,uint256,uint256,uint256,bytes,uint32): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    ReceiveLiquidity: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    ReceiveLiquidity(bytes32,bytes,address,uint256,uint256,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SendAsset: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SendAsset(bytes32,bytes,bytes,address,uint8,uint256,uint256,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SendAssetFailure: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SendAssetFailure(bytes32,bytes,uint256,uint256,address,uint32): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SendAssetSuccess: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SendAssetSuccess(bytes32,bytes,uint256,uint256,address,uint32): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SendAssetUnderwritable: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SendAssetUnderwritable(bytes32,bytes,bytes,address,uint8,uint256,uint256,uint256,uint256,uint16): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SendLiquidity: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SendLiquidity(bytes32,bytes,bytes,uint256,uint256[2],uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SendLiquidityFailure: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SendLiquidityFailure(bytes32,bytes,uint256,uint256,uint32): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SendLiquiditySuccess: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SendLiquiditySuccess(bytes32,bytes,uint256,uint256,uint32): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SetAmplification: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SetAmplification(uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SetConnection: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SetConnection(bytes32,bytes,bool): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SetFeeAdministrator: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SetFeeAdministrator(address): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SetGovernanceFee: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SetGovernanceFee(uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SetVaultFee: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SetVaultFee(uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SetWeights: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SetWeights(uint256,uint256[]): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Transfer: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Transfer(address,address,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    VaultDeposit: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    VaultDeposit(address,uint256,uint256[]): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    VaultWithdraw: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    VaultWithdraw(address,uint256,uint256[]): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
}

Type declaration

finishSetup: TypedContractMethod<[], [void], "nonpayable">
getUnitCapacity: TypedContractMethod<[], [bigint], "view">
governanceFeeDestination: TypedContractMethod<[], [string], "view">
initializeSwapCurves: TypedContractMethod<[assets: AddressLike[], weights: BigNumberish[], amp: BigNumberish, depositor: AddressLike], [void], "nonpayable">
interface: AmplifiedVaultInterface
localSwap: TypedContractMethod<[fromAsset: AddressLike, toAsset: AddressLike, amount: BigNumberish, minOut: BigNumberish], [bigint], "nonpayable">
multicall: TypedContractMethod<[data: BytesLike[]], [string[]], "nonpayable">
name: TypedContractMethod<[], [string], "view">
nonces: TypedContractMethod<[arg0: AddressLike], [bigint], "view">
onSendAssetFailure: TypedContractMethod<[channelId: BytesLike, toAccount: BytesLike, U: BigNumberish, escrowAmount: BigNumberish, escrowToken: AddressLike, blockNumberMod: BigNumberish], [void], "nonpayable">
onSendAssetSuccess: TypedContractMethod<[channelId: BytesLike, toAccount: BytesLike, U: BigNumberish, escrowAmount: BigNumberish, escrowToken: AddressLike, blockNumberMod: BigNumberish], [void], "nonpayable">
onSendLiquidityFailure: TypedContractMethod<[channelId: BytesLike, toAccount: BytesLike, U: BigNumberish, escrowAmount: BigNumberish, blockNumberMod: BigNumberish], [void], "nonpayable">
onSendLiquiditySuccess: TypedContractMethod<[channelId: BytesLike, toAccount: BytesLike, U: BigNumberish, escrowAmount: BigNumberish, blockNumberMod: BigNumberish], [void], "nonpayable">
permit: TypedContractMethod<[owner: AddressLike, spender: AddressLike, value: BigNumberish, deadline: BigNumberish, v: BigNumberish, r: BytesLike, s: BytesLike], [void], "nonpayable">
ready: TypedContractMethod<[], [boolean], "view">
receiveAsset(bytes32,bytes,uint256,address,uint256,uint256,uint256,bytes,uint32): TypedContractMethod<[channelId: BytesLike, fromVault: BytesLike, toAssetIndex: BigNumberish, toAccount: AddressLike, U: BigNumberish, minOut: BigNumberish, fromAmount: BigNumberish, fromAsset: BytesLike, blockNumberMod: BigNumberish], [void], "nonpayable">
receiveAsset(bytes32,bytes,uint256,address,uint256,uint256,uint256,bytes,uint32,address,bytes): TypedContractMethod<[channelId: BytesLike, fromVault: BytesLike, toAssetIndex: BigNumberish, toAccount: AddressLike, U: BigNumberish, minOut: BigNumberish, fromAmount: BigNumberish, fromAsset: BytesLike, blockNumberMod: BigNumberish, dataTarget: AddressLike, data: BytesLike], [void], "nonpayable">
receiveLiquidity(bytes32,bytes,address,uint256,uint256,uint256,uint256,uint32): TypedContractMethod<[channelId: BytesLike, fromVault: BytesLike, toAccount: AddressLike, U: BigNumberish, minVaultTokens: BigNumberish, minReferenceAsset: BigNumberish, fromAmount: BigNumberish, blockNumberMod: BigNumberish], [void], "nonpayable">
receiveLiquidity(bytes32,bytes,address,uint256,uint256,uint256,uint256,uint32,address,bytes): TypedContractMethod<[channelId: BytesLike, fromVault: BytesLike, toAccount: AddressLike, U: BigNumberish, minVaultTokens: BigNumberish, minReferenceAsset: BigNumberish, fromAmount: BigNumberish, blockNumberMod: BigNumberish, dataTarget: AddressLike, data: BytesLike], [void], "nonpayable">
releaseUnderwriteAsset: TypedContractMethod<[identifier: BytesLike, escrowAmount: BigNumberish, escrowToken: AddressLike], [void], "nonpayable">
runner: null | ContractRunner

The connected runner. This is generally a [[Provider]] or a [[Signer]], which dictates what operations are supported.

For example, a Contract connected to a [[Provider]] may only execute read-only operations.

sendAsset: TypedContractMethod<[routeDescription: RouteDescriptionStruct, fromAsset: AddressLike, toAssetIndex: BigNumberish, amount: BigNumberish, minOut: BigNumberish, fallbackUser: AddressLike, calldata_: BytesLike], [bigint], "payable">
sendAssetUnderwrite: TypedContractMethod<[routeDescription: RouteDescriptionStruct, fromAsset: AddressLike, toAssetIndex: BigNumberish, amount: BigNumberish, minOut: BigNumberish, fallbackUser: AddressLike, underwritePercentageX16: BigNumberish, calldata_: BytesLike], [bigint], "payable">
sendAssetUnderwritePurpose: TypedContractMethod<[routeDescription: RouteDescriptionStruct, fromAsset: AddressLike, toAssetIndex: BigNumberish, amount: BigNumberish, minOut: BigNumberish, minU: BigNumberish, fallbackUser: AddressLike, calldata_: BytesLike], [bigint], "payable">
sendLiquidity: TypedContractMethod<[routeDescription: RouteDescriptionStruct, vaultTokens: BigNumberish, minOut: [BigNumberish, BigNumberish], fallbackUser: AddressLike, calldata_: BytesLike], [bigint], "payable">
setAmplification: TypedContractMethod<[targetTime: BigNumberish, targetAmplification: BigNumberish], [void], "nonpayable">
setConnection: TypedContractMethod<[channelId: BytesLike, toVault: BytesLike, state: boolean], [void], "nonpayable">
setFeeAdministrator: TypedContractMethod<[administrator: AddressLike], [void], "nonpayable">
setGovernanceFee: TypedContractMethod<[fee: BigNumberish], [void], "nonpayable">
setVaultFee: TypedContractMethod<[fee: BigNumberish], [void], "nonpayable">
setup: TypedContractMethod<[name_: string, symbol_: string, chainInterface: AddressLike, vaultFee: BigNumberish, governanceFee: BigNumberish, feeAdministrator: AddressLike, setupMaster: AddressLike], [void], "nonpayable">
symbol: TypedContractMethod<[], [string], "view">
target: string | Addressable

The target to connect to.

This can be an address, ENS name or any [[Addressable]], such as another contract. To get the resovled address, use the getAddress method.

totalSupply: TypedContractMethod<[], [bigint], "view">
transfer: TypedContractMethod<[to: AddressLike, amount: BigNumberish], [boolean], "nonpayable">
transferFrom: TypedContractMethod<[from: AddressLike, to: AddressLike, amount: BigNumberish], [boolean], "nonpayable">
underwriteAsset: TypedContractMethod<[identifier: BytesLike, toAsset: AddressLike, U: BigNumberish, minOut: BigNumberish], [bigint], "nonpayable">
updateMaxUnitCapacity: TypedContractMethod<[], [void], "nonpayable">
withdrawAll: TypedContractMethod<[vaultTokens: BigNumberish, minOut: BigNumberish[]], [bigint[]], "nonpayable">
withdrawMixed: TypedContractMethod<[vaultTokens: BigNumberish, withdrawRatio: BigNumberish[], minOut: BigNumberish[]], [bigint[]], "nonpayable">

Methods

  • Alias for [on].

    Parameters

    • event: ContractEventName
    • listener: Listener

    Returns Promise<AmplifiedVault>

  • Return a new Contract instance with the same ABI and runner, but a different %%target%%.

    Parameters

    • target: string | Addressable

    Returns BaseContract

  • Return the transaction used to deploy this contract.

    This is only available if this instance was returned from a [[ContractFactory]].

    Returns null | ContractTransactionResponse

  • Emit an %%event%% calling all listeners with %%args%%.

    Resolves to true if any listeners were called.

    Parameters

    • event: ContractEventName
    • Rest ...args: any[]

    Returns Promise<boolean>

  • Return the resolved address of this Contract.

    Returns Promise<string>

  • Return the deployed bytecode or null if no bytecode is found.

    Returns Promise<null | string>

  • Resolves to the number of listeners of %%event%% or the total number of listeners if unspecified.

    Parameters

    • Optional event: ContractEventName

    Returns Promise<number>

  • Remove the %%listener%% from the listeners for %%event%% or remove all listeners if unspecified.

    Parameters

    • event: ContractEventName
    • Optional listener: Listener

    Returns Promise<AmplifiedVault>

  • @_ignore:

    Parameters

    • hash: string

    Returns Promise<EventLog[]>

  • Alias for [off].

    Parameters

    • event: ContractEventName
    • listener: Listener

    Returns Promise<AmplifiedVault>