UNPKG

@kamino-finance/kliquidity-sdk

Version:

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

40 lines 3.38 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 AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit'; import { AMM_V3_PROGRAM_ADDRESS } from '../programs'; export declare const UPDATE_POOL_STATUS_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getUpdatePoolStatusDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>; export type UpdatePoolStatusInstruction<TProgram extends string = typeof AMM_V3_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountPoolState extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority, TAccountPoolState extends string ? WritableAccount<TAccountPoolState> : TAccountPoolState, ...TRemainingAccounts]>; export type UpdatePoolStatusInstructionData = { discriminator: ReadonlyUint8Array; status: number; }; export type UpdatePoolStatusInstructionDataArgs = { status: number; }; export declare function getUpdatePoolStatusInstructionDataEncoder(): FixedSizeEncoder<UpdatePoolStatusInstructionDataArgs>; export declare function getUpdatePoolStatusInstructionDataDecoder(): FixedSizeDecoder<UpdatePoolStatusInstructionData>; export declare function getUpdatePoolStatusInstructionDataCodec(): FixedSizeCodec<UpdatePoolStatusInstructionDataArgs, UpdatePoolStatusInstructionData>; export type UpdatePoolStatusInput<TAccountAuthority extends string = string, TAccountPoolState extends string = string> = { authority: TransactionSigner<TAccountAuthority>; poolState: Address<TAccountPoolState>; status: UpdatePoolStatusInstructionDataArgs["status"]; }; export declare function getUpdatePoolStatusInstruction<TAccountAuthority extends string, TAccountPoolState extends string, TProgramAddress extends Address = typeof AMM_V3_PROGRAM_ADDRESS>(input: UpdatePoolStatusInput<TAccountAuthority, TAccountPoolState>, config?: { programAddress?: TProgramAddress; }): UpdatePoolStatusInstruction<TProgramAddress, TAccountAuthority, TAccountPoolState>; export type ParsedUpdatePoolStatusInstruction<TProgram extends string = typeof AMM_V3_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = { programAddress: Address<TProgram>; accounts: { authority: TAccountMetas[0]; poolState: TAccountMetas[1]; }; data: UpdatePoolStatusInstructionData; }; export declare function parseUpdatePoolStatusInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedUpdatePoolStatusInstruction<TProgram, TAccountMetas>; //# sourceMappingURL=updatePoolStatus.d.ts.map