@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
40 lines • 3.45 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 { AMM_V3_PROGRAM_ADDRESS } from '../programs';
export declare const TRANSFER_REWARD_OWNER_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getTransferRewardOwnerDiscriminatorBytes(): ReadonlyUint8Array;
export type TransferRewardOwnerInstruction<TProgram extends string = typeof AMM_V3_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountPoolState extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority, TAccountPoolState extends string ? WritableAccount<TAccountPoolState> : TAccountPoolState, ...TRemainingAccounts]>;
export type TransferRewardOwnerInstructionData = {
discriminator: ReadonlyUint8Array;
newOwner: Address;
};
export type TransferRewardOwnerInstructionDataArgs = {
newOwner: Address;
};
export declare function getTransferRewardOwnerInstructionDataEncoder(): FixedSizeEncoder<TransferRewardOwnerInstructionDataArgs>;
export declare function getTransferRewardOwnerInstructionDataDecoder(): FixedSizeDecoder<TransferRewardOwnerInstructionData>;
export declare function getTransferRewardOwnerInstructionDataCodec(): FixedSizeCodec<TransferRewardOwnerInstructionDataArgs, TransferRewardOwnerInstructionData>;
export type TransferRewardOwnerInput<TAccountAuthority extends string = string, TAccountPoolState extends string = string> = {
authority: TransactionSigner<TAccountAuthority>;
poolState: Address<TAccountPoolState>;
newOwner: TransferRewardOwnerInstructionDataArgs["newOwner"];
};
export declare function getTransferRewardOwnerInstruction<TAccountAuthority extends string, TAccountPoolState extends string, TProgramAddress extends Address = typeof AMM_V3_PROGRAM_ADDRESS>(input: TransferRewardOwnerInput<TAccountAuthority, TAccountPoolState>, config?: {
programAddress?: TProgramAddress;
}): TransferRewardOwnerInstruction<TProgramAddress, TAccountAuthority, TAccountPoolState>;
export type ParsedTransferRewardOwnerInstruction<TProgram extends string = typeof AMM_V3_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
programAddress: Address<TProgram>;
accounts: {
authority: TAccountMetas[0];
poolState: TAccountMetas[1];
};
data: TransferRewardOwnerInstructionData;
};
export declare function parseTransferRewardOwnerInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedTransferRewardOwnerInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=transferRewardOwner.d.ts.map