Abstract
Optional
addressReadonly
addressesStatic
Readonly
CATALYST_Abstract
describerAbstract
registryAbstract
tokensAbstract
vaultsAbstract
calcAbstract
calcAbstract
checkCheck the amount of tokens a given account has permitted another account to transfer.
token address to check for allowance
holder of tokens
mover of tokens
the amount of tokens the spender may transfer
Abstract
checkAbstract
checkAbstract
checkCheck the amount of tokens that a given account has permitted another account to spend using permit2.
token address to check for allowance
holder of tokens
mover of tokens
the max amount of tokens the spender can transfer
Abstract
deployDeploy a vault with given parameters into the Catalyst liquidity network.
transaction hash for the initiated vault deployment
Abstract
depositDeposit mixed tokens into a given vault. Provided tokens amounts must match the input length and ordinal position of the desired deposit tokens.
target vault address
array of index correlated deposit values
minimum number of liquidity tokens received from deposit
transaction hash of the initiated deposit
Abstract
ensureCheck if an account has permission to spend a given amount of tokens, and if not, attempt to increase the allowance for the spender.
The address of the token contract.
The address of the token owner (account that holds the tokens).
The address of the account that needs to be approved to spend the tokens.
The amount of tokens that the spender needs to be allowed to spend.
Optional
options: TransactionOptionsOptional. Transaction options for the allowance approval operation.
A Promise that resolves to either:
- An SdkResponse
object representing the transaction for ensuring the allowance, or
- undefined
if the allowance was already sufficient or the operation failed.
Abstract
ensureEnsures that the Permit2 address has the required allowance for the given token.
The address of the token for which the allowance should be checked.
Optional
options: TransactionOptionsOptional. Transaction options for the allowance approval operation.
A Promise that resolves to either:
- An SdkResponse
object representing the transaction for ensuring the Permit2 allowance, or
- undefined
if the allowance was already sufficient or the operation failed.
Abstract
estimateEstimates the gas limit required to execute the given instructions on the Catalyst router.
Execution instructions encoded for the router
Optional
gasAmount: bigintOptional parameter, required to send native tokens with a transaction
Optional
options: TransactionOptionsOptional transaction options
Estimated gas limit (a bigint) required for executing the instructions
Error if the estimation fails, which can happen when the source chain is experiencing high traffic
Abstract
finishFinish the setup of the requested vault.
target vault address
transaction hash for the finish setup request
Abstract
generateIncrease the amount of tokens a given account has permitted another account to spend using permit2 for multiple tokens.
An array of objects containing the token address, the amount by which the permit should be increased. Amount is optional and defaults to uint160 max value.
The address of the account that is permitted to spend the tokens.
A Promise that resolves to the batch permit data for the increased permit amounts request.
Abstract
generateGenerate the Permit2 signature and permit data for increasing the token transfer amount for a given account for a single token.
The address of the token for which the permit amount is to be increased.
The address of the account that is permitted to spend the tokens.
Optional
amount: bigintOptional. The amount by which the permit should be increased. Defaults to uint160 max value.
A Promise that resolves to the permit data for the increased permit amount request.
Abstract
getAbstract
getAbstract
getAbstract
increaseIncrease the amount of tokens a given account has approved another account to transfer.
token address for which allowance is being increased
mover of tokens
amount of tokens to approve
Optional
options: TransactionOptionssdk response for the increase allowance request
Abstract
revokeSet the amount of tokens a given account has permitted another account to transfer to zero.
token address to check for allowance
mover of tokens
sdk response for the revoke request
Abstract
sendInitiate a cross chain swap
input parameters, see SendAssetOptions
transaction hash of the initiated send
Abstract
sendInitiate a cross chain swap
account to swap funds to
account to return funds to in case of swap failure
Optional
callData: stringoptional call data for post swap integrations
transaction hash of the initiated send
Abstract
sendSend assets with instructions to the Catalyst router.
execution instructions encoded for the router
Optional
gasAmount: bigintoptional parameter, required to send native tokens with a transaction
Optional
options: TransactionOptionstransaction hash of the initiated send
Abstract
sendSend assets with instructions to the Catalyst router from a provided quote.
price quote provided from api
transaction hash of the initiated send
Abstract
setSet a connection to a given vault via a channel ID in the requested state.
target catalyst vault
target destination vault
requested channel id to establish connection
parameter to activate or deactive the given channel
transaction hash for the initiation set connection
Abstract
signAbstract
signSign typed data according to the EIP-712 specification.
The domain separator data for the typed data.
The type definitions for the typed data.
The value of the typed data to be signed.
A promise that resolves to the signed typed value.
Abstract
withdrawWithdraw mixed tokens in proportion from a given vault.
target vault address
number of pool tokens to redeem for underlying assets
array of index correlated withdraw values specifying minimum acceptable withdraw amounts
transaction hash of the intiated mixed withdraw
Abstract
withdrawWithdraw mixed tokens in specified ratios from a given vault.
target vault address
number of pool tokens to redeem for underlying assets
array of index correlated ratios specifying the weights for withdraw of the specific vault
array of index correlated ratios specifying minimum acceptable withdraw amounts
array of index correlated withdraw values
Catalyst SDK class definition