@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
42 lines • 3.92 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 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 { WHIRLPOOL_PROGRAM_ADDRESS } from '../programs';
export declare const SET_DEFAULT_FEE_RATE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getSetDefaultFeeRateDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
export type SetDefaultFeeRateInstruction<TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS, TAccountWhirlpoolsConfig extends string | AccountMeta<string> = string, TAccountFeeTier extends string | AccountMeta<string> = string, TAccountFeeAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountWhirlpoolsConfig extends string ? ReadonlyAccount<TAccountWhirlpoolsConfig> : TAccountWhirlpoolsConfig, TAccountFeeTier extends string ? WritableAccount<TAccountFeeTier> : TAccountFeeTier, TAccountFeeAuthority extends string ? ReadonlySignerAccount<TAccountFeeAuthority> & AccountSignerMeta<TAccountFeeAuthority> : TAccountFeeAuthority, ...TRemainingAccounts]>;
export type SetDefaultFeeRateInstructionData = {
discriminator: ReadonlyUint8Array;
defaultFeeRate: number;
};
export type SetDefaultFeeRateInstructionDataArgs = {
defaultFeeRate: number;
};
export declare function getSetDefaultFeeRateInstructionDataEncoder(): FixedSizeEncoder<SetDefaultFeeRateInstructionDataArgs>;
export declare function getSetDefaultFeeRateInstructionDataDecoder(): FixedSizeDecoder<SetDefaultFeeRateInstructionData>;
export declare function getSetDefaultFeeRateInstructionDataCodec(): FixedSizeCodec<SetDefaultFeeRateInstructionDataArgs, SetDefaultFeeRateInstructionData>;
export type SetDefaultFeeRateInput<TAccountWhirlpoolsConfig extends string = string, TAccountFeeTier extends string = string, TAccountFeeAuthority extends string = string> = {
whirlpoolsConfig: Address<TAccountWhirlpoolsConfig>;
feeTier: Address<TAccountFeeTier>;
feeAuthority: TransactionSigner<TAccountFeeAuthority>;
defaultFeeRate: SetDefaultFeeRateInstructionDataArgs["defaultFeeRate"];
};
export declare function getSetDefaultFeeRateInstruction<TAccountWhirlpoolsConfig extends string, TAccountFeeTier extends string, TAccountFeeAuthority extends string, TProgramAddress extends Address = typeof WHIRLPOOL_PROGRAM_ADDRESS>(input: SetDefaultFeeRateInput<TAccountWhirlpoolsConfig, TAccountFeeTier, TAccountFeeAuthority>, config?: {
programAddress?: TProgramAddress;
}): SetDefaultFeeRateInstruction<TProgramAddress, TAccountWhirlpoolsConfig, TAccountFeeTier, TAccountFeeAuthority>;
export type ParsedSetDefaultFeeRateInstruction<TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
programAddress: Address<TProgram>;
accounts: {
whirlpoolsConfig: TAccountMetas[0];
feeTier: TAccountMetas[1];
feeAuthority: TAccountMetas[2];
};
data: SetDefaultFeeRateInstructionData;
};
export declare function parseSetDefaultFeeRateInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetDefaultFeeRateInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=setDefaultFeeRate.d.ts.map