@kamino-finance/farms-sdk
Version:
57 lines • 4.3 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 ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from "@solana/kit";
import { FARMS_PROGRAM_ADDRESS } from "../programs";
import { type FarmConfigOption, type FarmConfigOptionArgs, type GlobalConfigOption, type GlobalConfigOptionArgs, type LockingMode, type LockingModeArgs, type RewardType, type RewardTypeArgs, type TimeUnit, type TimeUnitArgs } from "../types";
export declare const IDL_MISSING_TYPES_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getIdlMissingTypesDiscriminatorBytes(): ReadonlyUint8Array;
export type IdlMissingTypesInstruction<TProgram extends string = typeof FARMS_PROGRAM_ADDRESS, TAccountGlobalAdmin extends string | AccountMeta<string> = string, TAccountGlobalConfig extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
TAccountGlobalAdmin extends string ? ReadonlySignerAccount<TAccountGlobalAdmin> & AccountSignerMeta<TAccountGlobalAdmin> : TAccountGlobalAdmin,
TAccountGlobalConfig extends string ? WritableAccount<TAccountGlobalConfig> : TAccountGlobalConfig,
...TRemainingAccounts
]>;
export type IdlMissingTypesInstructionData = {
discriminator: ReadonlyUint8Array;
globalConfigOptionKind: GlobalConfigOption;
farmConfigOptionKind: FarmConfigOption;
timeUnit: TimeUnit;
lockingMode: LockingMode;
rewardType: RewardType;
};
export type IdlMissingTypesInstructionDataArgs = {
globalConfigOptionKind: GlobalConfigOptionArgs;
farmConfigOptionKind: FarmConfigOptionArgs;
timeUnit: TimeUnitArgs;
lockingMode: LockingModeArgs;
rewardType: RewardTypeArgs;
};
export declare function getIdlMissingTypesInstructionDataEncoder(): FixedSizeEncoder<IdlMissingTypesInstructionDataArgs>;
export declare function getIdlMissingTypesInstructionDataDecoder(): FixedSizeDecoder<IdlMissingTypesInstructionData>;
export declare function getIdlMissingTypesInstructionDataCodec(): FixedSizeCodec<IdlMissingTypesInstructionDataArgs, IdlMissingTypesInstructionData>;
export type IdlMissingTypesInput<TAccountGlobalAdmin extends string = string, TAccountGlobalConfig extends string = string> = {
globalAdmin: TransactionSigner<TAccountGlobalAdmin>;
globalConfig: Address<TAccountGlobalConfig>;
globalConfigOptionKind: IdlMissingTypesInstructionDataArgs["globalConfigOptionKind"];
farmConfigOptionKind: IdlMissingTypesInstructionDataArgs["farmConfigOptionKind"];
timeUnit: IdlMissingTypesInstructionDataArgs["timeUnit"];
lockingMode: IdlMissingTypesInstructionDataArgs["lockingMode"];
rewardType: IdlMissingTypesInstructionDataArgs["rewardType"];
};
export declare function getIdlMissingTypesInstruction<TAccountGlobalAdmin extends string, TAccountGlobalConfig extends string, TProgramAddress extends Address = typeof FARMS_PROGRAM_ADDRESS>(input: IdlMissingTypesInput<TAccountGlobalAdmin, TAccountGlobalConfig>, config?: {
programAddress?: TProgramAddress;
}): IdlMissingTypesInstruction<TProgramAddress, TAccountGlobalAdmin, TAccountGlobalConfig>;
export type ParsedIdlMissingTypesInstruction<TProgram extends string = typeof FARMS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
programAddress: Address<TProgram>;
accounts: {
globalAdmin: TAccountMetas[0];
globalConfig: TAccountMetas[1];
};
data: IdlMissingTypesInstructionData;
};
export declare function parseIdlMissingTypesInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedIdlMissingTypesInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=idlMissingTypes.d.ts.map