UNPKG

@kamino-finance/farms-sdk

Version:
43 lines 3.56 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 Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type WritableAccount } from "@solana/kit"; import { FARMS_PROGRAM_ADDRESS } from "../programs"; export declare const REFRESH_USER_STATE_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getRefreshUserStateDiscriminatorBytes(): ReadonlyUint8Array; export type RefreshUserStateInstruction<TProgram extends string = typeof FARMS_PROGRAM_ADDRESS, TAccountUserState extends string | AccountMeta<string> = string, TAccountFarmState extends string | AccountMeta<string> = string, TAccountScopePrices extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[ TAccountUserState extends string ? WritableAccount<TAccountUserState> : TAccountUserState, TAccountFarmState extends string ? WritableAccount<TAccountFarmState> : TAccountFarmState, TAccountScopePrices extends string ? ReadonlyAccount<TAccountScopePrices> : TAccountScopePrices, ...TRemainingAccounts ]>; export type RefreshUserStateInstructionData = { discriminator: ReadonlyUint8Array; }; export type RefreshUserStateInstructionDataArgs = {}; export declare function getRefreshUserStateInstructionDataEncoder(): FixedSizeEncoder<RefreshUserStateInstructionDataArgs>; export declare function getRefreshUserStateInstructionDataDecoder(): FixedSizeDecoder<RefreshUserStateInstructionData>; export declare function getRefreshUserStateInstructionDataCodec(): FixedSizeCodec<RefreshUserStateInstructionDataArgs, RefreshUserStateInstructionData>; export type RefreshUserStateInput<TAccountUserState extends string = string, TAccountFarmState extends string = string, TAccountScopePrices extends string = string> = { userState: Address<TAccountUserState>; farmState: Address<TAccountFarmState>; scopePrices?: Address<TAccountScopePrices>; }; export declare function getRefreshUserStateInstruction<TAccountUserState extends string, TAccountFarmState extends string, TAccountScopePrices extends string, TProgramAddress extends Address = typeof FARMS_PROGRAM_ADDRESS>(input: RefreshUserStateInput<TAccountUserState, TAccountFarmState, TAccountScopePrices>, config?: { programAddress?: TProgramAddress; }): RefreshUserStateInstruction<TProgramAddress, TAccountUserState, TAccountFarmState, TAccountScopePrices>; export type ParsedRefreshUserStateInstruction<TProgram extends string = typeof FARMS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = { programAddress: Address<TProgram>; accounts: { userState: TAccountMetas[0]; farmState: TAccountMetas[1]; scopePrices?: TAccountMetas[2] | undefined; }; data: RefreshUserStateInstructionData; }; export declare function parseRefreshUserStateInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRefreshUserStateInstruction<TProgram, TAccountMetas>; //# sourceMappingURL=refreshUserState.d.ts.map