@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
40 lines • 3.76 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 ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit';
import { WHIRLPOOL_PROGRAM_ADDRESS } from '../programs';
export declare const SET_DEFAULT_PROTOCOL_FEE_RATE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getSetDefaultProtocolFeeRateDiscriminatorBytes(): ReadonlyUint8Array;
export type SetDefaultProtocolFeeRateInstruction<TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS, TAccountWhirlpoolsConfig extends string | AccountMeta<string> = string, TAccountFeeAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountWhirlpoolsConfig extends string ? WritableAccount<TAccountWhirlpoolsConfig> : TAccountWhirlpoolsConfig, TAccountFeeAuthority extends string ? ReadonlySignerAccount<TAccountFeeAuthority> & AccountSignerMeta<TAccountFeeAuthority> : TAccountFeeAuthority, ...TRemainingAccounts]>;
export type SetDefaultProtocolFeeRateInstructionData = {
discriminator: ReadonlyUint8Array;
defaultProtocolFeeRate: number;
};
export type SetDefaultProtocolFeeRateInstructionDataArgs = {
defaultProtocolFeeRate: number;
};
export declare function getSetDefaultProtocolFeeRateInstructionDataEncoder(): FixedSizeEncoder<SetDefaultProtocolFeeRateInstructionDataArgs>;
export declare function getSetDefaultProtocolFeeRateInstructionDataDecoder(): FixedSizeDecoder<SetDefaultProtocolFeeRateInstructionData>;
export declare function getSetDefaultProtocolFeeRateInstructionDataCodec(): FixedSizeCodec<SetDefaultProtocolFeeRateInstructionDataArgs, SetDefaultProtocolFeeRateInstructionData>;
export type SetDefaultProtocolFeeRateInput<TAccountWhirlpoolsConfig extends string = string, TAccountFeeAuthority extends string = string> = {
whirlpoolsConfig: Address<TAccountWhirlpoolsConfig>;
feeAuthority: TransactionSigner<TAccountFeeAuthority>;
defaultProtocolFeeRate: SetDefaultProtocolFeeRateInstructionDataArgs["defaultProtocolFeeRate"];
};
export declare function getSetDefaultProtocolFeeRateInstruction<TAccountWhirlpoolsConfig extends string, TAccountFeeAuthority extends string, TProgramAddress extends Address = typeof WHIRLPOOL_PROGRAM_ADDRESS>(input: SetDefaultProtocolFeeRateInput<TAccountWhirlpoolsConfig, TAccountFeeAuthority>, config?: {
programAddress?: TProgramAddress;
}): SetDefaultProtocolFeeRateInstruction<TProgramAddress, TAccountWhirlpoolsConfig, TAccountFeeAuthority>;
export type ParsedSetDefaultProtocolFeeRateInstruction<TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
programAddress: Address<TProgram>;
accounts: {
whirlpoolsConfig: TAccountMetas[0];
feeAuthority: TAccountMetas[1];
};
data: SetDefaultProtocolFeeRateInstructionData;
};
export declare function parseSetDefaultProtocolFeeRateInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetDefaultProtocolFeeRateInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=setDefaultProtocolFeeRate.d.ts.map