UNPKG

@kamino-finance/kliquidity-sdk

Version:

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

49 lines 4.73 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 ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit'; import { WHIRLPOOL_PROGRAM_ADDRESS } from '../programs'; export declare const INITIALIZE_FEE_TIER_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getInitializeFeeTierDiscriminatorBytes(): ReadonlyUint8Array; export type InitializeFeeTierInstruction<TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS, TAccountConfig extends string | AccountMeta<string> = string, TAccountFeeTier extends string | AccountMeta<string> = string, TAccountFunder extends string | AccountMeta<string> = string, TAccountFeeAuthority extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountConfig extends string ? ReadonlyAccount<TAccountConfig> : TAccountConfig, TAccountFeeTier extends string ? WritableAccount<TAccountFeeTier> : TAccountFeeTier, TAccountFunder extends string ? WritableSignerAccount<TAccountFunder> & AccountSignerMeta<TAccountFunder> : TAccountFunder, TAccountFeeAuthority extends string ? ReadonlySignerAccount<TAccountFeeAuthority> & AccountSignerMeta<TAccountFeeAuthority> : TAccountFeeAuthority, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, ...TRemainingAccounts]>; export type InitializeFeeTierInstructionData = { discriminator: ReadonlyUint8Array; tickSpacing: number; defaultFeeRate: number; }; export type InitializeFeeTierInstructionDataArgs = { tickSpacing: number; defaultFeeRate: number; }; export declare function getInitializeFeeTierInstructionDataEncoder(): FixedSizeEncoder<InitializeFeeTierInstructionDataArgs>; export declare function getInitializeFeeTierInstructionDataDecoder(): FixedSizeDecoder<InitializeFeeTierInstructionData>; export declare function getInitializeFeeTierInstructionDataCodec(): FixedSizeCodec<InitializeFeeTierInstructionDataArgs, InitializeFeeTierInstructionData>; export type InitializeFeeTierInput<TAccountConfig extends string = string, TAccountFeeTier extends string = string, TAccountFunder extends string = string, TAccountFeeAuthority extends string = string, TAccountSystemProgram extends string = string> = { config: Address<TAccountConfig>; feeTier: Address<TAccountFeeTier>; funder: TransactionSigner<TAccountFunder>; feeAuthority: TransactionSigner<TAccountFeeAuthority>; systemProgram?: Address<TAccountSystemProgram>; tickSpacing: InitializeFeeTierInstructionDataArgs["tickSpacing"]; defaultFeeRate: InitializeFeeTierInstructionDataArgs["defaultFeeRate"]; }; export declare function getInitializeFeeTierInstruction<TAccountConfig extends string, TAccountFeeTier extends string, TAccountFunder extends string, TAccountFeeAuthority extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof WHIRLPOOL_PROGRAM_ADDRESS>(input: InitializeFeeTierInput<TAccountConfig, TAccountFeeTier, TAccountFunder, TAccountFeeAuthority, TAccountSystemProgram>, config?: { programAddress?: TProgramAddress; }): InitializeFeeTierInstruction<TProgramAddress, TAccountConfig, TAccountFeeTier, TAccountFunder, TAccountFeeAuthority, TAccountSystemProgram>; export type ParsedInitializeFeeTierInstruction<TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = { programAddress: Address<TProgram>; accounts: { config: TAccountMetas[0]; feeTier: TAccountMetas[1]; funder: TAccountMetas[2]; feeAuthority: TAccountMetas[3]; systemProgram: TAccountMetas[4]; }; data: InitializeFeeTierInstructionData; }; export declare function parseInitializeFeeTierInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeFeeTierInstruction<TProgram, TAccountMetas>; //# sourceMappingURL=initializeFeeTier.d.ts.map