@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
38 lines • 4.52 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_COLLECT_PROTOCOL_FEES_AUTHORITY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getSetCollectProtocolFeesAuthorityDiscriminatorBytes(): ReadonlyUint8Array;
export type SetCollectProtocolFeesAuthorityInstruction<TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS, TAccountWhirlpoolsConfig extends string | AccountMeta<string> = string, TAccountCollectProtocolFeesAuthority extends string | AccountMeta<string> = string, TAccountNewCollectProtocolFeesAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountWhirlpoolsConfig extends string ? WritableAccount<TAccountWhirlpoolsConfig> : TAccountWhirlpoolsConfig, TAccountCollectProtocolFeesAuthority extends string ? ReadonlySignerAccount<TAccountCollectProtocolFeesAuthority> & AccountSignerMeta<TAccountCollectProtocolFeesAuthority> : TAccountCollectProtocolFeesAuthority, TAccountNewCollectProtocolFeesAuthority extends string ? ReadonlyAccount<TAccountNewCollectProtocolFeesAuthority> : TAccountNewCollectProtocolFeesAuthority, ...TRemainingAccounts]>;
export type SetCollectProtocolFeesAuthorityInstructionData = {
discriminator: ReadonlyUint8Array;
};
export type SetCollectProtocolFeesAuthorityInstructionDataArgs = {};
export declare function getSetCollectProtocolFeesAuthorityInstructionDataEncoder(): FixedSizeEncoder<SetCollectProtocolFeesAuthorityInstructionDataArgs>;
export declare function getSetCollectProtocolFeesAuthorityInstructionDataDecoder(): FixedSizeDecoder<SetCollectProtocolFeesAuthorityInstructionData>;
export declare function getSetCollectProtocolFeesAuthorityInstructionDataCodec(): FixedSizeCodec<SetCollectProtocolFeesAuthorityInstructionDataArgs, SetCollectProtocolFeesAuthorityInstructionData>;
export type SetCollectProtocolFeesAuthorityInput<TAccountWhirlpoolsConfig extends string = string, TAccountCollectProtocolFeesAuthority extends string = string, TAccountNewCollectProtocolFeesAuthority extends string = string> = {
whirlpoolsConfig: Address<TAccountWhirlpoolsConfig>;
collectProtocolFeesAuthority: TransactionSigner<TAccountCollectProtocolFeesAuthority>;
newCollectProtocolFeesAuthority: Address<TAccountNewCollectProtocolFeesAuthority>;
};
export declare function getSetCollectProtocolFeesAuthorityInstruction<TAccountWhirlpoolsConfig extends string, TAccountCollectProtocolFeesAuthority extends string, TAccountNewCollectProtocolFeesAuthority extends string, TProgramAddress extends Address = typeof WHIRLPOOL_PROGRAM_ADDRESS>(input: SetCollectProtocolFeesAuthorityInput<TAccountWhirlpoolsConfig, TAccountCollectProtocolFeesAuthority, TAccountNewCollectProtocolFeesAuthority>, config?: {
programAddress?: TProgramAddress;
}): SetCollectProtocolFeesAuthorityInstruction<TProgramAddress, TAccountWhirlpoolsConfig, TAccountCollectProtocolFeesAuthority, TAccountNewCollectProtocolFeesAuthority>;
export type ParsedSetCollectProtocolFeesAuthorityInstruction<TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
programAddress: Address<TProgram>;
accounts: {
whirlpoolsConfig: TAccountMetas[0];
collectProtocolFeesAuthority: TAccountMetas[1];
newCollectProtocolFeesAuthority: TAccountMetas[2];
};
data: SetCollectProtocolFeesAuthorityInstructionData;
};
export declare function parseSetCollectProtocolFeesAuthorityInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetCollectProtocolFeesAuthorityInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=setCollectProtocolFeesAuthority.d.ts.map