@catalabs/catalyst-sdk
Version:
Catalyst AMM SDK
37 lines • 1.14 kB
TypeScript
import type { PermitData } from '../../evm/permit2/interfaces/permit-data.interface';
export type RouteParams = [string[], string[]];
export type RouteDetails = [VaultAddress[], TokenAddress[]];
export type VaultAddress = string;
export type TokenAddress = string;
export type RouterCallArguments = [string, string[]];
export type RoutingIncentive = {
maxGasDelivery: bigint;
maxGasAck: bigint;
refundGasTo: string;
priceOfDeliveryGas: bigint;
priceOfAckGas: bigint;
targetDelta: bigint;
messageVerifyGasCost: bigint;
};
export type RouteDescription = {
toAccount: string;
fromAsset: string;
toAsset: string;
channelId: string;
minOut: bigint;
amount: bigint;
route: RouteDetails;
toAssetIndex: number;
fromChainId: string;
toChainId: string;
messageVerifyGasCost: bigint;
priceOfDeliveryGas: bigint;
priceOfAckGas: bigint;
targetDelta: bigint;
refundGasTo: string;
underwritingIncentive: bigint | undefined;
};
export interface SwapByRouteParams extends RouteDescription {
permitData?: PermitData;
}
//# sourceMappingURL=route.types.d.ts.map