@kamino-finance/farms-sdk
Version:
40 lines • 3.34 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 ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from "@solana/kit";
import { FARMS_PROGRAM_ADDRESS } from "../programs";
export declare const UPDATE_FARM_ADMIN_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getUpdateFarmAdminDiscriminatorBytes(): ReadonlyUint8Array;
export type UpdateFarmAdminInstruction<TProgram extends string = typeof FARMS_PROGRAM_ADDRESS, TAccountPendingFarmAdmin extends string | AccountMeta<string> = string, TAccountFarmState extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
TAccountPendingFarmAdmin extends string ? WritableSignerAccount<TAccountPendingFarmAdmin> & AccountSignerMeta<TAccountPendingFarmAdmin> : TAccountPendingFarmAdmin,
TAccountFarmState extends string ? WritableAccount<TAccountFarmState> : TAccountFarmState,
...TRemainingAccounts
]>;
export type UpdateFarmAdminInstructionData = {
discriminator: ReadonlyUint8Array;
};
export type UpdateFarmAdminInstructionDataArgs = {};
export declare function getUpdateFarmAdminInstructionDataEncoder(): FixedSizeEncoder<UpdateFarmAdminInstructionDataArgs>;
export declare function getUpdateFarmAdminInstructionDataDecoder(): FixedSizeDecoder<UpdateFarmAdminInstructionData>;
export declare function getUpdateFarmAdminInstructionDataCodec(): FixedSizeCodec<UpdateFarmAdminInstructionDataArgs, UpdateFarmAdminInstructionData>;
export type UpdateFarmAdminInput<TAccountPendingFarmAdmin extends string = string, TAccountFarmState extends string = string> = {
pendingFarmAdmin: TransactionSigner<TAccountPendingFarmAdmin>;
farmState: Address<TAccountFarmState>;
};
export declare function getUpdateFarmAdminInstruction<TAccountPendingFarmAdmin extends string, TAccountFarmState extends string, TProgramAddress extends Address = typeof FARMS_PROGRAM_ADDRESS>(input: UpdateFarmAdminInput<TAccountPendingFarmAdmin, TAccountFarmState>, config?: {
programAddress?: TProgramAddress;
}): UpdateFarmAdminInstruction<TProgramAddress, TAccountPendingFarmAdmin, TAccountFarmState>;
export type ParsedUpdateFarmAdminInstruction<TProgram extends string = typeof FARMS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
programAddress: Address<TProgram>;
accounts: {
pendingFarmAdmin: TAccountMetas[0];
farmState: TAccountMetas[1];
};
data: UpdateFarmAdminInstructionData;
};
export declare function parseUpdateFarmAdminInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedUpdateFarmAdminInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=updateFarmAdmin.d.ts.map