Static
Readonly
abi
abi: readonly [{
inputs: readonly [{
internalType: "address";
name: "factory_";
type: "address";
}, {
internalType: "address";
name: "mathlib_";
type: "address";
}];
stateMutability: "nonpayable";
type: "constructor";
}, {
inputs: readonly [];
name: "EscrowAlreadyExists";
type: "error";
}, {
inputs: readonly [];
name: "ExceedsSecurityLimit";
type: "error";
}, {
inputs: readonly [{
internalType: "uint256";
name: "result";
type: "uint256";
}, {
internalType: "uint256";
name: "minimum";
type: "uint256";
}];
name: "ReturnInsufficient";
type: "error";
}, {
inputs: readonly [];
name: "ReturnInsufficientOnReceive";
type: "error";
}, {
inputs: readonly [{
internalType: "uint256";
name: "Units";
type: "uint256";
}];
name: "UnusedUnitsAfterWithdrawal";
type: "error";
}, {
inputs: readonly [];
name: "VaultNotConnected";
type: "error";
}, {
inputs: readonly [];
name: "WithdrawRatioNotZero";
type: "error";
}, {
anonymous: false;
inputs: readonly [{
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: readonly [];
name: "FinishSetup";
type: "event";
}, {
anonymous: false;
inputs: readonly [{
indexed: false;
internalType: "uint8";
name: "version";
type: "uint8";
}];
name: "Initialized";
type: "event";
}, {
anonymous: false;
inputs: readonly [{
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: readonly [{
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: readonly [{
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: readonly [{
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: readonly [{
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: readonly [{
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: readonly [{
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: readonly [{
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: readonly [{
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: readonly [{
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: readonly [{
indexed: false;
internalType: "uint256";
name: "targetTime";
type: "uint256";
}, {
indexed: false;
internalType: "uint256";
name: "targetAmplification";
type: "uint256";
}];
name: "SetAmplification";
type: "event";
}, {
anonymous: false;
inputs: readonly [{
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: readonly [{
indexed: false;
internalType: "address";
name: "administrator";
type: "address";
}];
name: "SetFeeAdministrator";
type: "event";
}, {
anonymous: false;
inputs: readonly [{
indexed: false;
internalType: "uint256";
name: "fee";
type: "uint256";
}];
name: "SetGovernanceFee";
type: "event";
}, {
anonymous: false;
inputs: readonly [{
indexed: false;
internalType: "uint256";
name: "fee";
type: "uint256";
}];
name: "SetVaultFee";
type: "event";
}, {
anonymous: false;
inputs: readonly [{
indexed: false;
internalType: "uint256";
name: "targetTime";
type: "uint256";
}, {
indexed: false;
internalType: "uint256[]";
name: "targetWeights";
type: "uint256[]";
}];
name: "SetWeights";
type: "event";
}, {
anonymous: false;
inputs: readonly [{
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: readonly [{
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: readonly [{
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: readonly [];
name: "DOMAIN_SEPARATOR";
outputs: readonly [{
internalType: "bytes32";
name: "";
type: "bytes32";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "FACTORY";
outputs: readonly [{
internalType: "address";
name: "";
type: "address";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "MATHLIB";
outputs: readonly [{
internalType: "address";
name: "";
type: "address";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "_adjustmentTarget";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "_chainInterface";
outputs: readonly [{
internalType: "address";
name: "";
type: "address";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes32";
name: "";
type: "bytes32";
}];
name: "_escrowLookup";
outputs: readonly [{
internalType: "address";
name: "";
type: "address";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "";
type: "address";
}];
name: "_escrowedTokens";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "_escrowedVaultTokens";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "_feeAdministrator";
outputs: readonly [{
internalType: "address";
name: "";
type: "address";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "_governanceFeeShare";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "_lastModificationTime";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "_maxUnitCapacity";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "_oneMinusAmp";
outputs: readonly [{
internalType: "int256";
name: "";
type: "int256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "_setupMaster";
outputs: readonly [{
internalType: "address";
name: "";
type: "address";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "_targetAmplification";
outputs: readonly [{
internalType: "int256";
name: "";
type: "int256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
name: "_tokenIndexing";
outputs: readonly [{
internalType: "address";
name: "";
type: "address";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "_unitTracker";
outputs: readonly [{
internalType: "int256";
name: "";
type: "int256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes32";
name: "";
type: "bytes32";
}, {
internalType: "bytes";
name: "";
type: "bytes";
}];
name: "_vaultConnection";
outputs: readonly [{
internalType: "bool";
name: "";
type: "bool";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "_vaultFee";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "";
type: "address";
}];
name: "_weight";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "";
type: "address";
}, {
internalType: "address";
name: "";
type: "address";
}];
name: "allowance";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "spender";
type: "address";
}, {
internalType: "uint256";
name: "amount";
type: "uint256";
}];
name: "approve";
outputs: readonly [{
internalType: "bool";
name: "";
type: "bool";
}];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "";
type: "address";
}];
name: "balanceOf";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "fromAsset";
type: "address";
}, {
internalType: "address";
name: "toAsset";
type: "address";
}, {
internalType: "uint256";
name: "amount";
type: "uint256";
}];
name: "calcLocalSwap";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "toAsset";
type: "address";
}, {
internalType: "uint256";
name: "U";
type: "uint256";
}];
name: "calcReceiveAsset";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "fromAsset";
type: "address";
}, {
internalType: "uint256";
name: "amount";
type: "uint256";
}];
name: "calcSendAsset";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "computeBalance0";
outputs: readonly [{
internalType: "uint256";
name: "walpha_0";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "decimals";
outputs: readonly [{
internalType: "uint8";
name: "";
type: "uint8";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes32";
name: "identifier";
type: "bytes32";
}, {
internalType: "uint256";
name: "escrowAmount";
type: "uint256";
}, {
internalType: "address";
name: "escrowToken";
type: "address";
}];
name: "deleteUnderwriteAsset";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "uint256[]";
name: "tokenAmounts";
type: "uint256[]";
}, {
internalType: "uint256";
name: "minOut";
type: "uint256";
}];
name: "depositMixed";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [];
name: "factoryOwner";
outputs: readonly [{
internalType: "address";
name: "";
type: "address";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "finishSetup";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [];
name: "getUnitCapacity";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "governanceFeeDestination";
outputs: readonly [{
internalType: "address";
name: "";
type: "address";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
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: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
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: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes[]";
name: "data";
type: "bytes[]";
}];
name: "multicall";
outputs: readonly [{
internalType: "bytes[]";
name: "results";
type: "bytes[]";
}];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [];
name: "name";
outputs: readonly [{
internalType: "string";
name: "";
type: "string";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "";
type: "address";
}];
name: "nonces";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
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: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
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: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
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: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
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: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
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: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [];
name: "ready";
outputs: readonly [{
internalType: "bool";
name: "";
type: "bool";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
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: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
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: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
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: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
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: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes32";
name: "identifier";
type: "bytes32";
}, {
internalType: "uint256";
name: "escrowAmount";
type: "uint256";
}, {
internalType: "address";
name: "escrowToken";
type: "address";
}];
name: "releaseUnderwriteAsset";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
components: readonly [{
internalType: "bytes32";
name: "chainIdentifier";
type: "bytes32";
}, {
internalType: "bytes";
name: "toVault";
type: "bytes";
}, {
internalType: "bytes";
name: "toAccount";
type: "bytes";
}, {
components: readonly [{
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: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "payable";
type: "function";
}, {
inputs: readonly [{
components: readonly [{
internalType: "bytes32";
name: "chainIdentifier";
type: "bytes32";
}, {
internalType: "bytes";
name: "toVault";
type: "bytes";
}, {
internalType: "bytes";
name: "toAccount";
type: "bytes";
}, {
components: readonly [{
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: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "payable";
type: "function";
}, {
inputs: readonly [{
components: readonly [{
internalType: "bytes32";
name: "chainIdentifier";
type: "bytes32";
}, {
internalType: "bytes";
name: "toVault";
type: "bytes";
}, {
internalType: "bytes";
name: "toAccount";
type: "bytes";
}, {
components: readonly [{
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: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "payable";
type: "function";
}, {
inputs: readonly [{
components: readonly [{
internalType: "bytes32";
name: "chainIdentifier";
type: "bytes32";
}, {
internalType: "bytes";
name: "toVault";
type: "bytes";
}, {
internalType: "bytes";
name: "toAccount";
type: "bytes";
}, {
components: readonly [{
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: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "payable";
type: "function";
}, {
inputs: readonly [{
internalType: "uint256";
name: "targetTime";
type: "uint256";
}, {
internalType: "uint256";
name: "targetAmplification";
type: "uint256";
}];
name: "setAmplification";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes32";
name: "channelId";
type: "bytes32";
}, {
internalType: "bytes";
name: "toVault";
type: "bytes";
}, {
internalType: "bool";
name: "state";
type: "bool";
}];
name: "setConnection";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "administrator";
type: "address";
}];
name: "setFeeAdministrator";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "uint256";
name: "fee";
type: "uint256";
}];
name: "setGovernanceFee";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "uint256";
name: "fee";
type: "uint256";
}];
name: "setVaultFee";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
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: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [];
name: "symbol";
outputs: readonly [{
internalType: "string";
name: "";
type: "string";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "totalSupply";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "to";
type: "address";
}, {
internalType: "uint256";
name: "amount";
type: "uint256";
}];
name: "transfer";
outputs: readonly [{
internalType: "bool";
name: "";
type: "bool";
}];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "from";
type: "address";
}, {
internalType: "address";
name: "to";
type: "address";
}, {
internalType: "uint256";
name: "amount";
type: "uint256";
}];
name: "transferFrom";
outputs: readonly [{
internalType: "bool";
name: "";
type: "bool";
}];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
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: readonly [{
internalType: "uint256";
name: "purchasedTokens";
type: "uint256";
}];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [];
name: "updateMaxUnitCapacity";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "uint256";
name: "vaultTokens";
type: "uint256";
}, {
internalType: "uint256[]";
name: "minOut";
type: "uint256[]";
}];
name: "withdrawAll";
outputs: readonly [{
internalType: "uint256[]";
name: "";
type: "uint256[]";
}];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "uint256";
name: "vaultTokens";
type: "uint256";
}, {
internalType: "uint256[]";
name: "withdrawRatio";
type: "uint256[]";
}, {
internalType: "uint256[]";
name: "minOut";
type: "uint256[]";
}];
name: "withdrawMixed";
outputs: readonly [{
internalType: "uint256[]";
name: "";
type: "uint256[]";
}];
stateMutability: "nonpayable";
type: "function";
}] = _abi