@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
38 lines • 4.56 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 SET_REWARD_EMISSIONS_SUPER_AUTHORITY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getSetRewardEmissionsSuperAuthorityDiscriminatorBytes(): ReadonlyUint8Array;
export type SetRewardEmissionsSuperAuthorityInstruction<TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS, TAccountWhirlpoolsConfig extends string | AccountMeta<string> = string, TAccountRewardEmissionsSuperAuthority extends string | AccountMeta<string> = string, TAccountNewRewardEmissionsSuperAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountWhirlpoolsConfig extends string ? WritableAccount<TAccountWhirlpoolsConfig> : TAccountWhirlpoolsConfig, TAccountRewardEmissionsSuperAuthority extends string ? ReadonlySignerAccount<TAccountRewardEmissionsSuperAuthority> & AccountSignerMeta<TAccountRewardEmissionsSuperAuthority> : TAccountRewardEmissionsSuperAuthority, TAccountNewRewardEmissionsSuperAuthority extends string ? ReadonlyAccount<TAccountNewRewardEmissionsSuperAuthority> : TAccountNewRewardEmissionsSuperAuthority, ...TRemainingAccounts]>;
export type SetRewardEmissionsSuperAuthorityInstructionData = {
discriminator: ReadonlyUint8Array;
};
export type SetRewardEmissionsSuperAuthorityInstructionDataArgs = {};
export declare function getSetRewardEmissionsSuperAuthorityInstructionDataEncoder(): FixedSizeEncoder<SetRewardEmissionsSuperAuthorityInstructionDataArgs>;
export declare function getSetRewardEmissionsSuperAuthorityInstructionDataDecoder(): FixedSizeDecoder<SetRewardEmissionsSuperAuthorityInstructionData>;
export declare function getSetRewardEmissionsSuperAuthorityInstructionDataCodec(): FixedSizeCodec<SetRewardEmissionsSuperAuthorityInstructionDataArgs, SetRewardEmissionsSuperAuthorityInstructionData>;
export type SetRewardEmissionsSuperAuthorityInput<TAccountWhirlpoolsConfig extends string = string, TAccountRewardEmissionsSuperAuthority extends string = string, TAccountNewRewardEmissionsSuperAuthority extends string = string> = {
whirlpoolsConfig: Address<TAccountWhirlpoolsConfig>;
rewardEmissionsSuperAuthority: TransactionSigner<TAccountRewardEmissionsSuperAuthority>;
newRewardEmissionsSuperAuthority: Address<TAccountNewRewardEmissionsSuperAuthority>;
};
export declare function getSetRewardEmissionsSuperAuthorityInstruction<TAccountWhirlpoolsConfig extends string, TAccountRewardEmissionsSuperAuthority extends string, TAccountNewRewardEmissionsSuperAuthority extends string, TProgramAddress extends Address = typeof WHIRLPOOL_PROGRAM_ADDRESS>(input: SetRewardEmissionsSuperAuthorityInput<TAccountWhirlpoolsConfig, TAccountRewardEmissionsSuperAuthority, TAccountNewRewardEmissionsSuperAuthority>, config?: {
programAddress?: TProgramAddress;
}): SetRewardEmissionsSuperAuthorityInstruction<TProgramAddress, TAccountWhirlpoolsConfig, TAccountRewardEmissionsSuperAuthority, TAccountNewRewardEmissionsSuperAuthority>;
export type ParsedSetRewardEmissionsSuperAuthorityInstruction<TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
programAddress: Address<TProgram>;
accounts: {
whirlpoolsConfig: TAccountMetas[0];
rewardEmissionsSuperAuthority: TAccountMetas[1];
newRewardEmissionsSuperAuthority: TAccountMetas[2];
};
data: SetRewardEmissionsSuperAuthorityInstructionData;
};
export declare function parseSetRewardEmissionsSuperAuthorityInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetRewardEmissionsSuperAuthorityInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=setRewardEmissionsSuperAuthority.d.ts.map