@catalabs/catalyst-sdk
Version:
Catalyst AMM SDK
23 lines • 1.72 kB
TypeScript
import type { TransactionOptions } from '../types';
import { ExecutionInstructions, PriceQuote } from '@catalabs/catalyst-api-client';
import { DeployVaultOptions } from './deploy-vault-options.interface';
import { SdkResponse } from './sdk-response.interface';
import { SdkResult } from './sdk-result.interface';
import { SendAssetOptions } from './send-asset-options.interface';
export interface IVaultsModule {
deployVault(options: DeployVaultOptions): Promise<SdkResult<string>>;
setConnection(vault: string, toVault: string, channelId: string, isActive: boolean): Promise<SdkResponse>;
finishSetup(vault: string): Promise<SdkResponse>;
sendAsset(options: SendAssetOptions): Promise<SdkResponse>;
sendAssetWithRouter(instructions: ExecutionInstructions): Promise<SdkResponse>;
estimateGasForExecuteInstructions(instructions: ExecutionInstructions, gasAmount?: bigint, options?: TransactionOptions): Promise<bigint>;
sendAssetWithRouterFromQuote(quote: PriceQuote): Promise<SdkResponse>;
sendAssetFromQuote(quote: PriceQuote, toAccount: string, fallbackUser: string, callData?: string): Promise<SdkResponse>;
depositMixed(vault: string, tokenAmounts: bigint[], minOut: bigint): Promise<SdkResponse>;
withdrawAll(vault: string, poolTokens: bigint, minOut: bigint[]): Promise<SdkResponse>;
withdrawMixed(vault: string, poolTokens: bigint, withdrawRatio: bigint[], minOut: bigint[]): Promise<SdkResponse>;
calcSendAsset(vault: string, from: string, amount: bigint): Promise<bigint>;
calcReceiveAsset(vault: string, to: string, units: bigint): Promise<bigint>;
getUnitCapacity(vault: string): Promise<bigint>;
}
//# sourceMappingURL=vaults-module.interface.d.ts.map