UNPKG

@kamino-finance/kliquidity-sdk

Version:

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

40 lines 4.06 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 Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type WritableAccount } from '@solana/kit'; import { WHIRLPOOL_PROGRAM_ADDRESS } from '../programs'; export declare const UPDATE_FEES_AND_REWARDS_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getUpdateFeesAndRewardsDiscriminatorBytes(): ReadonlyUint8Array; export type UpdateFeesAndRewardsInstruction<TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS, TAccountWhirlpool extends string | AccountMeta<string> = string, TAccountPosition extends string | AccountMeta<string> = string, TAccountTickArrayLower extends string | AccountMeta<string> = string, TAccountTickArrayUpper extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountWhirlpool extends string ? WritableAccount<TAccountWhirlpool> : TAccountWhirlpool, TAccountPosition extends string ? WritableAccount<TAccountPosition> : TAccountPosition, TAccountTickArrayLower extends string ? ReadonlyAccount<TAccountTickArrayLower> : TAccountTickArrayLower, TAccountTickArrayUpper extends string ? ReadonlyAccount<TAccountTickArrayUpper> : TAccountTickArrayUpper, ...TRemainingAccounts]>; export type UpdateFeesAndRewardsInstructionData = { discriminator: ReadonlyUint8Array; }; export type UpdateFeesAndRewardsInstructionDataArgs = {}; export declare function getUpdateFeesAndRewardsInstructionDataEncoder(): FixedSizeEncoder<UpdateFeesAndRewardsInstructionDataArgs>; export declare function getUpdateFeesAndRewardsInstructionDataDecoder(): FixedSizeDecoder<UpdateFeesAndRewardsInstructionData>; export declare function getUpdateFeesAndRewardsInstructionDataCodec(): FixedSizeCodec<UpdateFeesAndRewardsInstructionDataArgs, UpdateFeesAndRewardsInstructionData>; export type UpdateFeesAndRewardsInput<TAccountWhirlpool extends string = string, TAccountPosition extends string = string, TAccountTickArrayLower extends string = string, TAccountTickArrayUpper extends string = string> = { whirlpool: Address<TAccountWhirlpool>; position: Address<TAccountPosition>; tickArrayLower: Address<TAccountTickArrayLower>; tickArrayUpper: Address<TAccountTickArrayUpper>; }; export declare function getUpdateFeesAndRewardsInstruction<TAccountWhirlpool extends string, TAccountPosition extends string, TAccountTickArrayLower extends string, TAccountTickArrayUpper extends string, TProgramAddress extends Address = typeof WHIRLPOOL_PROGRAM_ADDRESS>(input: UpdateFeesAndRewardsInput<TAccountWhirlpool, TAccountPosition, TAccountTickArrayLower, TAccountTickArrayUpper>, config?: { programAddress?: TProgramAddress; }): UpdateFeesAndRewardsInstruction<TProgramAddress, TAccountWhirlpool, TAccountPosition, TAccountTickArrayLower, TAccountTickArrayUpper>; export type ParsedUpdateFeesAndRewardsInstruction<TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = { programAddress: Address<TProgram>; accounts: { whirlpool: TAccountMetas[0]; position: TAccountMetas[1]; tickArrayLower: TAccountMetas[2]; tickArrayUpper: TAccountMetas[3]; }; data: UpdateFeesAndRewardsInstructionData; }; export declare function parseUpdateFeesAndRewardsInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedUpdateFeesAndRewardsInstruction<TProgram, TAccountMetas>; //# sourceMappingURL=updateFeesAndRewards.d.ts.map