@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
40 lines • 4.72 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_TOKEN_BADGE_AUTHORITY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getSetTokenBadgeAuthorityDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
export type SetTokenBadgeAuthorityInstruction<TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS, TAccountWhirlpoolsConfig extends string | AccountMeta<string> = string, TAccountWhirlpoolsConfigExtension extends string | AccountMeta<string> = string, TAccountConfigExtensionAuthority extends string | AccountMeta<string> = string, TAccountNewTokenBadgeAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountWhirlpoolsConfig extends string ? ReadonlyAccount<TAccountWhirlpoolsConfig> : TAccountWhirlpoolsConfig, TAccountWhirlpoolsConfigExtension extends string ? WritableAccount<TAccountWhirlpoolsConfigExtension> : TAccountWhirlpoolsConfigExtension, TAccountConfigExtensionAuthority extends string ? ReadonlySignerAccount<TAccountConfigExtensionAuthority> & AccountSignerMeta<TAccountConfigExtensionAuthority> : TAccountConfigExtensionAuthority, TAccountNewTokenBadgeAuthority extends string ? ReadonlyAccount<TAccountNewTokenBadgeAuthority> : TAccountNewTokenBadgeAuthority, ...TRemainingAccounts]>;
export type SetTokenBadgeAuthorityInstructionData = {
discriminator: ReadonlyUint8Array;
};
export type SetTokenBadgeAuthorityInstructionDataArgs = {};
export declare function getSetTokenBadgeAuthorityInstructionDataEncoder(): FixedSizeEncoder<SetTokenBadgeAuthorityInstructionDataArgs>;
export declare function getSetTokenBadgeAuthorityInstructionDataDecoder(): FixedSizeDecoder<SetTokenBadgeAuthorityInstructionData>;
export declare function getSetTokenBadgeAuthorityInstructionDataCodec(): FixedSizeCodec<SetTokenBadgeAuthorityInstructionDataArgs, SetTokenBadgeAuthorityInstructionData>;
export type SetTokenBadgeAuthorityInput<TAccountWhirlpoolsConfig extends string = string, TAccountWhirlpoolsConfigExtension extends string = string, TAccountConfigExtensionAuthority extends string = string, TAccountNewTokenBadgeAuthority extends string = string> = {
whirlpoolsConfig: Address<TAccountWhirlpoolsConfig>;
whirlpoolsConfigExtension: Address<TAccountWhirlpoolsConfigExtension>;
configExtensionAuthority: TransactionSigner<TAccountConfigExtensionAuthority>;
newTokenBadgeAuthority: Address<TAccountNewTokenBadgeAuthority>;
};
export declare function getSetTokenBadgeAuthorityInstruction<TAccountWhirlpoolsConfig extends string, TAccountWhirlpoolsConfigExtension extends string, TAccountConfigExtensionAuthority extends string, TAccountNewTokenBadgeAuthority extends string, TProgramAddress extends Address = typeof WHIRLPOOL_PROGRAM_ADDRESS>(input: SetTokenBadgeAuthorityInput<TAccountWhirlpoolsConfig, TAccountWhirlpoolsConfigExtension, TAccountConfigExtensionAuthority, TAccountNewTokenBadgeAuthority>, config?: {
programAddress?: TProgramAddress;
}): SetTokenBadgeAuthorityInstruction<TProgramAddress, TAccountWhirlpoolsConfig, TAccountWhirlpoolsConfigExtension, TAccountConfigExtensionAuthority, TAccountNewTokenBadgeAuthority>;
export type ParsedSetTokenBadgeAuthorityInstruction<TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
programAddress: Address<TProgram>;
accounts: {
whirlpoolsConfig: TAccountMetas[0];
whirlpoolsConfigExtension: TAccountMetas[1];
configExtensionAuthority: TAccountMetas[2];
newTokenBadgeAuthority: TAccountMetas[3];
};
data: SetTokenBadgeAuthorityInstructionData;
};
export declare function parseSetTokenBadgeAuthorityInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetTokenBadgeAuthorityInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=setTokenBadgeAuthority.d.ts.map