@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
40 lines • 3.64 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 { LB_CLMM_PROGRAM_ADDRESS } from '../programs';
export declare const SET_PRE_ACTIVATION_SWAP_ADDRESS_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getSetPreActivationSwapAddressDiscriminatorBytes(): ReadonlyUint8Array;
export type SetPreActivationSwapAddressInstruction<TProgram extends string = typeof LB_CLMM_PROGRAM_ADDRESS, TAccountLbPair extends string | AccountMeta<string> = string, TAccountCreator extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountLbPair extends string ? WritableAccount<TAccountLbPair> : TAccountLbPair, TAccountCreator extends string ? ReadonlySignerAccount<TAccountCreator> & AccountSignerMeta<TAccountCreator> : TAccountCreator, ...TRemainingAccounts]>;
export type SetPreActivationSwapAddressInstructionData = {
discriminator: ReadonlyUint8Array;
preActivationSwapAddress: Address;
};
export type SetPreActivationSwapAddressInstructionDataArgs = {
preActivationSwapAddress: Address;
};
export declare function getSetPreActivationSwapAddressInstructionDataEncoder(): FixedSizeEncoder<SetPreActivationSwapAddressInstructionDataArgs>;
export declare function getSetPreActivationSwapAddressInstructionDataDecoder(): FixedSizeDecoder<SetPreActivationSwapAddressInstructionData>;
export declare function getSetPreActivationSwapAddressInstructionDataCodec(): FixedSizeCodec<SetPreActivationSwapAddressInstructionDataArgs, SetPreActivationSwapAddressInstructionData>;
export type SetPreActivationSwapAddressInput<TAccountLbPair extends string = string, TAccountCreator extends string = string> = {
lbPair: Address<TAccountLbPair>;
creator: TransactionSigner<TAccountCreator>;
preActivationSwapAddress: SetPreActivationSwapAddressInstructionDataArgs["preActivationSwapAddress"];
};
export declare function getSetPreActivationSwapAddressInstruction<TAccountLbPair extends string, TAccountCreator extends string, TProgramAddress extends Address = typeof LB_CLMM_PROGRAM_ADDRESS>(input: SetPreActivationSwapAddressInput<TAccountLbPair, TAccountCreator>, config?: {
programAddress?: TProgramAddress;
}): SetPreActivationSwapAddressInstruction<TProgramAddress, TAccountLbPair, TAccountCreator>;
export type ParsedSetPreActivationSwapAddressInstruction<TProgram extends string = typeof LB_CLMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
programAddress: Address<TProgram>;
accounts: {
lbPair: TAccountMetas[0];
creator: TAccountMetas[1];
};
data: SetPreActivationSwapAddressInstructionData;
};
export declare function parseSetPreActivationSwapAddressInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetPreActivationSwapAddressInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=setPreActivationSwapAddress.d.ts.map