UNPKG

@kamino-finance/kliquidity-sdk

Version:

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

44 lines 4.94 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 { WHIRLPOOL_PROGRAM_ADDRESS } from '../programs'; export declare const SET_REWARD_AUTHORITY_BY_SUPER_AUTHORITY_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getSetRewardAuthorityBySuperAuthorityDiscriminatorBytes(): ReadonlyUint8Array; export type SetRewardAuthorityBySuperAuthorityInstruction<TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS, TAccountWhirlpoolsConfig extends string | AccountMeta<string> = string, TAccountWhirlpool extends string | AccountMeta<string> = string, TAccountRewardEmissionsSuperAuthority extends string | AccountMeta<string> = string, TAccountNewRewardAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountWhirlpoolsConfig extends string ? ReadonlyAccount<TAccountWhirlpoolsConfig> : TAccountWhirlpoolsConfig, TAccountWhirlpool extends string ? WritableAccount<TAccountWhirlpool> : TAccountWhirlpool, TAccountRewardEmissionsSuperAuthority extends string ? ReadonlySignerAccount<TAccountRewardEmissionsSuperAuthority> & AccountSignerMeta<TAccountRewardEmissionsSuperAuthority> : TAccountRewardEmissionsSuperAuthority, TAccountNewRewardAuthority extends string ? ReadonlyAccount<TAccountNewRewardAuthority> : TAccountNewRewardAuthority, ...TRemainingAccounts]>; export type SetRewardAuthorityBySuperAuthorityInstructionData = { discriminator: ReadonlyUint8Array; rewardIndex: number; }; export type SetRewardAuthorityBySuperAuthorityInstructionDataArgs = { rewardIndex: number; }; export declare function getSetRewardAuthorityBySuperAuthorityInstructionDataEncoder(): FixedSizeEncoder<SetRewardAuthorityBySuperAuthorityInstructionDataArgs>; export declare function getSetRewardAuthorityBySuperAuthorityInstructionDataDecoder(): FixedSizeDecoder<SetRewardAuthorityBySuperAuthorityInstructionData>; export declare function getSetRewardAuthorityBySuperAuthorityInstructionDataCodec(): FixedSizeCodec<SetRewardAuthorityBySuperAuthorityInstructionDataArgs, SetRewardAuthorityBySuperAuthorityInstructionData>; export type SetRewardAuthorityBySuperAuthorityInput<TAccountWhirlpoolsConfig extends string = string, TAccountWhirlpool extends string = string, TAccountRewardEmissionsSuperAuthority extends string = string, TAccountNewRewardAuthority extends string = string> = { whirlpoolsConfig: Address<TAccountWhirlpoolsConfig>; whirlpool: Address<TAccountWhirlpool>; rewardEmissionsSuperAuthority: TransactionSigner<TAccountRewardEmissionsSuperAuthority>; newRewardAuthority: Address<TAccountNewRewardAuthority>; rewardIndex: SetRewardAuthorityBySuperAuthorityInstructionDataArgs["rewardIndex"]; }; export declare function getSetRewardAuthorityBySuperAuthorityInstruction<TAccountWhirlpoolsConfig extends string, TAccountWhirlpool extends string, TAccountRewardEmissionsSuperAuthority extends string, TAccountNewRewardAuthority extends string, TProgramAddress extends Address = typeof WHIRLPOOL_PROGRAM_ADDRESS>(input: SetRewardAuthorityBySuperAuthorityInput<TAccountWhirlpoolsConfig, TAccountWhirlpool, TAccountRewardEmissionsSuperAuthority, TAccountNewRewardAuthority>, config?: { programAddress?: TProgramAddress; }): SetRewardAuthorityBySuperAuthorityInstruction<TProgramAddress, TAccountWhirlpoolsConfig, TAccountWhirlpool, TAccountRewardEmissionsSuperAuthority, TAccountNewRewardAuthority>; export type ParsedSetRewardAuthorityBySuperAuthorityInstruction<TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = { programAddress: Address<TProgram>; accounts: { whirlpoolsConfig: TAccountMetas[0]; whirlpool: TAccountMetas[1]; rewardEmissionsSuperAuthority: TAccountMetas[2]; newRewardAuthority: TAccountMetas[3]; }; data: SetRewardAuthorityBySuperAuthorityInstructionData; }; export declare function parseSetRewardAuthorityBySuperAuthorityInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetRewardAuthorityBySuperAuthorityInstruction<TProgram, TAccountMetas>; //# sourceMappingURL=setRewardAuthorityBySuperAuthority.d.ts.map