UNPKG

@kamino-finance/kliquidity-sdk

Version:

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

38 lines 3.81 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_FEE_AUTHORITY_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getSetFeeAuthorityDiscriminatorBytes(): ReadonlyUint8Array; export type SetFeeAuthorityInstruction<TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS, TAccountWhirlpoolsConfig extends string | AccountMeta<string> = string, TAccountFeeAuthority extends string | AccountMeta<string> = string, TAccountNewFeeAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountWhirlpoolsConfig extends string ? WritableAccount<TAccountWhirlpoolsConfig> : TAccountWhirlpoolsConfig, TAccountFeeAuthority extends string ? ReadonlySignerAccount<TAccountFeeAuthority> & AccountSignerMeta<TAccountFeeAuthority> : TAccountFeeAuthority, TAccountNewFeeAuthority extends string ? ReadonlyAccount<TAccountNewFeeAuthority> : TAccountNewFeeAuthority, ...TRemainingAccounts]>; export type SetFeeAuthorityInstructionData = { discriminator: ReadonlyUint8Array; }; export type SetFeeAuthorityInstructionDataArgs = {}; export declare function getSetFeeAuthorityInstructionDataEncoder(): FixedSizeEncoder<SetFeeAuthorityInstructionDataArgs>; export declare function getSetFeeAuthorityInstructionDataDecoder(): FixedSizeDecoder<SetFeeAuthorityInstructionData>; export declare function getSetFeeAuthorityInstructionDataCodec(): FixedSizeCodec<SetFeeAuthorityInstructionDataArgs, SetFeeAuthorityInstructionData>; export type SetFeeAuthorityInput<TAccountWhirlpoolsConfig extends string = string, TAccountFeeAuthority extends string = string, TAccountNewFeeAuthority extends string = string> = { whirlpoolsConfig: Address<TAccountWhirlpoolsConfig>; feeAuthority: TransactionSigner<TAccountFeeAuthority>; newFeeAuthority: Address<TAccountNewFeeAuthority>; }; export declare function getSetFeeAuthorityInstruction<TAccountWhirlpoolsConfig extends string, TAccountFeeAuthority extends string, TAccountNewFeeAuthority extends string, TProgramAddress extends Address = typeof WHIRLPOOL_PROGRAM_ADDRESS>(input: SetFeeAuthorityInput<TAccountWhirlpoolsConfig, TAccountFeeAuthority, TAccountNewFeeAuthority>, config?: { programAddress?: TProgramAddress; }): SetFeeAuthorityInstruction<TProgramAddress, TAccountWhirlpoolsConfig, TAccountFeeAuthority, TAccountNewFeeAuthority>; export type ParsedSetFeeAuthorityInstruction<TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = { programAddress: Address<TProgram>; accounts: { whirlpoolsConfig: TAccountMetas[0]; feeAuthority: TAccountMetas[1]; newFeeAuthority: TAccountMetas[2]; }; data: SetFeeAuthorityInstructionData; }; export declare function parseSetFeeAuthorityInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetFeeAuthorityInstruction<TProgram, TAccountMetas>; //# sourceMappingURL=setFeeAuthority.d.ts.map