UNPKG

@kamino-finance/kliquidity-sdk

Version:

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

51 lines 4.64 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 } from '@solana/kit'; import { LB_CLMM_PROGRAM_ADDRESS } from '../programs'; export declare const UPDATE_FEE_PARAMETERS_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getUpdateFeeParametersDiscriminatorBytes(): ReadonlyUint8Array; export type UpdateFeeParametersInstruction<TProgram extends string = typeof LB_CLMM_PROGRAM_ADDRESS, TAccountLbPair extends string | AccountMeta<string> = string, TAccountAdmin extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountLbPair extends string ? WritableAccount<TAccountLbPair> : TAccountLbPair, TAccountAdmin extends string ? ReadonlySignerAccount<TAccountAdmin> & AccountSignerMeta<TAccountAdmin> : TAccountAdmin, TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, ...TRemainingAccounts]>; export type UpdateFeeParametersInstructionData = { discriminator: ReadonlyUint8Array; /** Portion of swap fees retained by the protocol by controlling protocol_share parameter. protocol_swap_fee = protocol_share * total_swap_fee */ protocolShare: number; /** Base factor for base fee rate */ baseFactor: number; }; export type UpdateFeeParametersInstructionDataArgs = { /** Portion of swap fees retained by the protocol by controlling protocol_share parameter. protocol_swap_fee = protocol_share * total_swap_fee */ protocolShare: number; /** Base factor for base fee rate */ baseFactor: number; }; export declare function getUpdateFeeParametersInstructionDataEncoder(): FixedSizeEncoder<UpdateFeeParametersInstructionDataArgs>; export declare function getUpdateFeeParametersInstructionDataDecoder(): FixedSizeDecoder<UpdateFeeParametersInstructionData>; export declare function getUpdateFeeParametersInstructionDataCodec(): FixedSizeCodec<UpdateFeeParametersInstructionDataArgs, UpdateFeeParametersInstructionData>; export type UpdateFeeParametersInput<TAccountLbPair extends string = string, TAccountAdmin extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = { lbPair: Address<TAccountLbPair>; admin: TransactionSigner<TAccountAdmin>; eventAuthority: Address<TAccountEventAuthority>; program: Address<TAccountProgram>; protocolShare: UpdateFeeParametersInstructionDataArgs["protocolShare"]; baseFactor: UpdateFeeParametersInstructionDataArgs["baseFactor"]; }; export declare function getUpdateFeeParametersInstruction<TAccountLbPair extends string, TAccountAdmin extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof LB_CLMM_PROGRAM_ADDRESS>(input: UpdateFeeParametersInput<TAccountLbPair, TAccountAdmin, TAccountEventAuthority, TAccountProgram>, config?: { programAddress?: TProgramAddress; }): UpdateFeeParametersInstruction<TProgramAddress, TAccountLbPair, TAccountAdmin, TAccountEventAuthority, TAccountProgram>; export type ParsedUpdateFeeParametersInstruction<TProgram extends string = typeof LB_CLMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = { programAddress: Address<TProgram>; accounts: { lbPair: TAccountMetas[0]; admin: TAccountMetas[1]; eventAuthority: TAccountMetas[2]; program: TAccountMetas[3]; }; data: UpdateFeeParametersInstructionData; }; export declare function parseUpdateFeeParametersInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedUpdateFeeParametersInstruction<TProgram, TAccountMetas>; //# sourceMappingURL=updateFeeParameters.d.ts.map