UNPKG

@kamino-finance/kliquidity-sdk

Version:

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

24 lines 1.42 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 RebalanceEffects = { __kind: "NewRange"; fields: readonly [number, number]; } | { __kind: "WithdrawAndFreeze"; }; export type RebalanceEffectsArgs = RebalanceEffects; export declare function getRebalanceEffectsEncoder(): Encoder<RebalanceEffectsArgs>; export declare function getRebalanceEffectsDecoder(): Decoder<RebalanceEffects>; export declare function getRebalanceEffectsCodec(): Codec<RebalanceEffectsArgs, RebalanceEffects>; export declare function rebalanceEffects(kind: 'NewRange', data: GetDiscriminatedUnionVariantContent<RebalanceEffectsArgs, '__kind', 'NewRange'>['fields']): GetDiscriminatedUnionVariant<RebalanceEffectsArgs, '__kind', 'NewRange'>; export declare function rebalanceEffects(kind: 'WithdrawAndFreeze'): GetDiscriminatedUnionVariant<RebalanceEffectsArgs, '__kind', 'WithdrawAndFreeze'>; export declare function isRebalanceEffects<K extends RebalanceEffects['__kind']>(kind: K, value: RebalanceEffects): value is RebalanceEffects & { __kind: K; }; //# sourceMappingURL=rebalanceEffects.d.ts.map