@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
24 lines • 1.33 kB
TypeScript
/**
* 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 ExpanderStep = {
__kind: "ExpandOrContract";
fields: readonly [number];
} | {
__kind: "Recenter";
};
export type ExpanderStepArgs = ExpanderStep;
export declare function getExpanderStepEncoder(): Encoder<ExpanderStepArgs>;
export declare function getExpanderStepDecoder(): Decoder<ExpanderStep>;
export declare function getExpanderStepCodec(): Codec<ExpanderStepArgs, ExpanderStep>;
export declare function expanderStep(kind: 'ExpandOrContract', data: GetDiscriminatedUnionVariantContent<ExpanderStepArgs, '__kind', 'ExpandOrContract'>['fields']): GetDiscriminatedUnionVariant<ExpanderStepArgs, '__kind', 'ExpandOrContract'>;
export declare function expanderStep(kind: 'Recenter'): GetDiscriminatedUnionVariant<ExpanderStepArgs, '__kind', 'Recenter'>;
export declare function isExpanderStep<K extends ExpanderStep['__kind']>(kind: K, value: ExpanderStep): value is ExpanderStep & {
__kind: K;
};
//# sourceMappingURL=expanderStep.d.ts.map