@catalabs/catalyst-sdk
Version:
Catalyst AMM SDK
1,920 lines • 55.8 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Vault__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
{
inputs: [],
name: 'EscrowAlreadyExists',
type: 'error',
},
{
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',
},
{
indexed: false,
internalType: 'uint16',
name: 'underwriteIncentiveX16',
type: 'uint16',
},
],
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: '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: '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: '_setupMaster',
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
name: '_tokenIndexing',
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
],
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: 'from',
type: 'address',
},
{
internalType: 'address',
name: 'to',
type: 'address',
},
{
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
],
name: 'calcLocalSwap',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'to',
type: 'address',
},
{
internalType: 'uint256',
name: 'U',
type: 'uint256',
},
],
name: 'calcReceiveAsset',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'from',
type: 'address',
},
{
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
],
name: 'calcSendAsset',
outputs: [
{
internalType: 'uint256',
name: '',
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: 'U',
type: 'uint256',
},
{
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: [
{
internalType: 'uint256',
name: 'purchasedTokens',
type: 'uint256',
},
],
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: [
{
internalType: 'uint256',
name: 'purchasedVaultTokens',
type: 'uint256',
},
],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'refundTo',
type: 'address',
},
{
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: 'uint16',
name: 'underwriteIncentiveX16',
type: 'uint16',
},
{
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: 'uint256',
name: 'minU',
type: 'uint256',
},
{
internalType: 'address',
name: 'fallbackUser',
type: 'address',
},
{
internalType: 'uint16',
name: 'underwriteIncentiveX16',
type: 'uint16',
},
{
internalType: 'bytes',
name: 'calldata_',
type: 'bytes',
},
],
name: 'sendAssetFixedUnit',
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: '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: 'setGover