UNPKG

@kamino-finance/kliquidity-sdk

Version:

Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol

43 lines 2.11 kB
/** * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ import { type Codec, type Decoder, type Encoder, type GetDiscriminatedUnionVariant, type GetDiscriminatedUnionVariantContent } from '@solana/kit'; export type BinAddLiquidityStrategy = { __kind: "Uniform"; currentBinIndex: number; lowerBinIndex: number; upperBinIndex: number; amountXToDeposit: bigint; amountYToDeposit: bigint; xCurrentBin: bigint; yCurrentBin: bigint; } | { __kind: "CurrentTick"; fields: readonly [number]; }; export type BinAddLiquidityStrategyArgs = { __kind: "Uniform"; currentBinIndex: number; lowerBinIndex: number; upperBinIndex: number; amountXToDeposit: number | bigint; amountYToDeposit: number | bigint; xCurrentBin: number | bigint; yCurrentBin: number | bigint; } | { __kind: "CurrentTick"; fields: readonly [number]; }; export declare function getBinAddLiquidityStrategyEncoder(): Encoder<BinAddLiquidityStrategyArgs>; export declare function getBinAddLiquidityStrategyDecoder(): Decoder<BinAddLiquidityStrategy>; export declare function getBinAddLiquidityStrategyCodec(): Codec<BinAddLiquidityStrategyArgs, BinAddLiquidityStrategy>; export declare function binAddLiquidityStrategy(kind: 'Uniform', data: GetDiscriminatedUnionVariantContent<BinAddLiquidityStrategyArgs, '__kind', 'Uniform'>): GetDiscriminatedUnionVariant<BinAddLiquidityStrategyArgs, '__kind', 'Uniform'>; export declare function binAddLiquidityStrategy(kind: 'CurrentTick', data: GetDiscriminatedUnionVariantContent<BinAddLiquidityStrategyArgs, '__kind', 'CurrentTick'>['fields']): GetDiscriminatedUnionVariant<BinAddLiquidityStrategyArgs, '__kind', 'CurrentTick'>; export declare function isBinAddLiquidityStrategy<K extends BinAddLiquidityStrategy['__kind']>(kind: K, value: BinAddLiquidityStrategy): value is BinAddLiquidityStrategy & { __kind: K; }; //# sourceMappingURL=binAddLiquidityStrategy.d.ts.map