@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
48 lines • 6.07 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 COLLECT_PROTOCOL_FEES_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getCollectProtocolFeesDiscriminatorBytes(): ReadonlyUint8Array;
export type CollectProtocolFeesInstruction<TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS, TAccountWhirlpoolsConfig extends string | AccountMeta<string> = string, TAccountWhirlpool extends string | AccountMeta<string> = string, TAccountCollectProtocolFeesAuthority extends string | AccountMeta<string> = string, TAccountTokenVaultA extends string | AccountMeta<string> = string, TAccountTokenVaultB extends string | AccountMeta<string> = string, TAccountTokenDestinationA extends string | AccountMeta<string> = string, TAccountTokenDestinationB extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountWhirlpoolsConfig extends string ? ReadonlyAccount<TAccountWhirlpoolsConfig> : TAccountWhirlpoolsConfig, TAccountWhirlpool extends string ? WritableAccount<TAccountWhirlpool> : TAccountWhirlpool, TAccountCollectProtocolFeesAuthority extends string ? ReadonlySignerAccount<TAccountCollectProtocolFeesAuthority> & AccountSignerMeta<TAccountCollectProtocolFeesAuthority> : TAccountCollectProtocolFeesAuthority, TAccountTokenVaultA extends string ? WritableAccount<TAccountTokenVaultA> : TAccountTokenVaultA, TAccountTokenVaultB extends string ? WritableAccount<TAccountTokenVaultB> : TAccountTokenVaultB, TAccountTokenDestinationA extends string ? WritableAccount<TAccountTokenDestinationA> : TAccountTokenDestinationA, TAccountTokenDestinationB extends string ? WritableAccount<TAccountTokenDestinationB> : TAccountTokenDestinationB, TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram, ...TRemainingAccounts]>;
export type CollectProtocolFeesInstructionData = {
discriminator: ReadonlyUint8Array;
};
export type CollectProtocolFeesInstructionDataArgs = {};
export declare function getCollectProtocolFeesInstructionDataEncoder(): FixedSizeEncoder<CollectProtocolFeesInstructionDataArgs>;
export declare function getCollectProtocolFeesInstructionDataDecoder(): FixedSizeDecoder<CollectProtocolFeesInstructionData>;
export declare function getCollectProtocolFeesInstructionDataCodec(): FixedSizeCodec<CollectProtocolFeesInstructionDataArgs, CollectProtocolFeesInstructionData>;
export type CollectProtocolFeesInput<TAccountWhirlpoolsConfig extends string = string, TAccountWhirlpool extends string = string, TAccountCollectProtocolFeesAuthority extends string = string, TAccountTokenVaultA extends string = string, TAccountTokenVaultB extends string = string, TAccountTokenDestinationA extends string = string, TAccountTokenDestinationB extends string = string, TAccountTokenProgram extends string = string> = {
whirlpoolsConfig: Address<TAccountWhirlpoolsConfig>;
whirlpool: Address<TAccountWhirlpool>;
collectProtocolFeesAuthority: TransactionSigner<TAccountCollectProtocolFeesAuthority>;
tokenVaultA: Address<TAccountTokenVaultA>;
tokenVaultB: Address<TAccountTokenVaultB>;
tokenDestinationA: Address<TAccountTokenDestinationA>;
tokenDestinationB: Address<TAccountTokenDestinationB>;
tokenProgram?: Address<TAccountTokenProgram>;
};
export declare function getCollectProtocolFeesInstruction<TAccountWhirlpoolsConfig extends string, TAccountWhirlpool extends string, TAccountCollectProtocolFeesAuthority extends string, TAccountTokenVaultA extends string, TAccountTokenVaultB extends string, TAccountTokenDestinationA extends string, TAccountTokenDestinationB extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof WHIRLPOOL_PROGRAM_ADDRESS>(input: CollectProtocolFeesInput<TAccountWhirlpoolsConfig, TAccountWhirlpool, TAccountCollectProtocolFeesAuthority, TAccountTokenVaultA, TAccountTokenVaultB, TAccountTokenDestinationA, TAccountTokenDestinationB, TAccountTokenProgram>, config?: {
programAddress?: TProgramAddress;
}): CollectProtocolFeesInstruction<TProgramAddress, TAccountWhirlpoolsConfig, TAccountWhirlpool, TAccountCollectProtocolFeesAuthority, TAccountTokenVaultA, TAccountTokenVaultB, TAccountTokenDestinationA, TAccountTokenDestinationB, TAccountTokenProgram>;
export type ParsedCollectProtocolFeesInstruction<TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
programAddress: Address<TProgram>;
accounts: {
whirlpoolsConfig: TAccountMetas[0];
whirlpool: TAccountMetas[1];
collectProtocolFeesAuthority: TAccountMetas[2];
tokenVaultA: TAccountMetas[3];
tokenVaultB: TAccountMetas[4];
tokenDestinationA: TAccountMetas[5];
tokenDestinationB: TAccountMetas[6];
tokenProgram: TAccountMetas[7];
};
data: CollectProtocolFeesInstructionData;
};
export declare function parseCollectProtocolFeesInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCollectProtocolFeesInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=collectProtocolFees.d.ts.map