UNPKG

@kamino-finance/kliquidity-sdk

Version:

Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol

57 lines 5.41 kB
/** * 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 { AMM_V3_PROGRAM_ADDRESS } from '../programs'; export declare const SET_REWARD_PARAMS_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getSetRewardParamsDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>; export type SetRewardParamsInstruction<TProgram extends string = typeof AMM_V3_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountAmmConfig extends string | AccountMeta<string> = string, TAccountPoolState extends string | AccountMeta<string> = string, TAccountOperationState extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountTokenProgram2022 extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority, TAccountAmmConfig extends string ? ReadonlyAccount<TAccountAmmConfig> : TAccountAmmConfig, TAccountPoolState extends string ? WritableAccount<TAccountPoolState> : TAccountPoolState, TAccountOperationState extends string ? ReadonlyAccount<TAccountOperationState> : TAccountOperationState, TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram, TAccountTokenProgram2022 extends string ? ReadonlyAccount<TAccountTokenProgram2022> : TAccountTokenProgram2022, ...TRemainingAccounts]>; export type SetRewardParamsInstructionData = { discriminator: ReadonlyUint8Array; rewardIndex: number; emissionsPerSecondX64: bigint; openTime: bigint; endTime: bigint; }; export type SetRewardParamsInstructionDataArgs = { rewardIndex: number; emissionsPerSecondX64: number | bigint; openTime: number | bigint; endTime: number | bigint; }; export declare function getSetRewardParamsInstructionDataEncoder(): FixedSizeEncoder<SetRewardParamsInstructionDataArgs>; export declare function getSetRewardParamsInstructionDataDecoder(): FixedSizeDecoder<SetRewardParamsInstructionData>; export declare function getSetRewardParamsInstructionDataCodec(): FixedSizeCodec<SetRewardParamsInstructionDataArgs, SetRewardParamsInstructionData>; export type SetRewardParamsInput<TAccountAuthority extends string = string, TAccountAmmConfig extends string = string, TAccountPoolState extends string = string, TAccountOperationState extends string = string, TAccountTokenProgram extends string = string, TAccountTokenProgram2022 extends string = string> = { authority: TransactionSigner<TAccountAuthority>; ammConfig: Address<TAccountAmmConfig>; poolState: Address<TAccountPoolState>; operationState: Address<TAccountOperationState>; tokenProgram?: Address<TAccountTokenProgram>; tokenProgram2022: Address<TAccountTokenProgram2022>; rewardIndex: SetRewardParamsInstructionDataArgs["rewardIndex"]; emissionsPerSecondX64: SetRewardParamsInstructionDataArgs["emissionsPerSecondX64"]; openTime: SetRewardParamsInstructionDataArgs["openTime"]; endTime: SetRewardParamsInstructionDataArgs["endTime"]; }; export declare function getSetRewardParamsInstruction<TAccountAuthority extends string, TAccountAmmConfig extends string, TAccountPoolState extends string, TAccountOperationState extends string, TAccountTokenProgram extends string, TAccountTokenProgram2022 extends string, TProgramAddress extends Address = typeof AMM_V3_PROGRAM_ADDRESS>(input: SetRewardParamsInput<TAccountAuthority, TAccountAmmConfig, TAccountPoolState, TAccountOperationState, TAccountTokenProgram, TAccountTokenProgram2022>, config?: { programAddress?: TProgramAddress; }): SetRewardParamsInstruction<TProgramAddress, TAccountAuthority, TAccountAmmConfig, TAccountPoolState, TAccountOperationState, TAccountTokenProgram, TAccountTokenProgram2022>; export type ParsedSetRewardParamsInstruction<TProgram extends string = typeof AMM_V3_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = { programAddress: Address<TProgram>; accounts: { authority: TAccountMetas[0]; ammConfig: TAccountMetas[1]; poolState: TAccountMetas[2]; operationState: TAccountMetas[3]; tokenProgram: TAccountMetas[4]; tokenProgram2022: TAccountMetas[5]; }; data: SetRewardParamsInstructionData; }; export declare function parseSetRewardParamsInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetRewardParamsInstruction<TProgram, TAccountMetas>; //# sourceMappingURL=setRewardParams.d.ts.map