@kamino-finance/farms-sdk
Version:
47 lines • 3.88 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";
export declare const SET_STAKE_DELEGATED_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getSetStakeDelegatedDiscriminatorBytes(): ReadonlyUint8Array;
export type SetStakeDelegatedInstruction<TProgram extends string = typeof FARMS_PROGRAM_ADDRESS, TAccountDelegateAuthority extends string | AccountMeta<string> = string, TAccountUserState extends string | AccountMeta<string> = string, TAccountFarmState extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
TAccountDelegateAuthority extends string ? ReadonlySignerAccount<TAccountDelegateAuthority> & AccountSignerMeta<TAccountDelegateAuthority> : TAccountDelegateAuthority,
TAccountUserState extends string ? WritableAccount<TAccountUserState> : TAccountUserState,
TAccountFarmState extends string ? WritableAccount<TAccountFarmState> : TAccountFarmState,
...TRemainingAccounts
]>;
export type SetStakeDelegatedInstructionData = {
discriminator: ReadonlyUint8Array;
newAmount: bigint;
};
export type SetStakeDelegatedInstructionDataArgs = {
newAmount: number | bigint;
};
export declare function getSetStakeDelegatedInstructionDataEncoder(): FixedSizeEncoder<SetStakeDelegatedInstructionDataArgs>;
export declare function getSetStakeDelegatedInstructionDataDecoder(): FixedSizeDecoder<SetStakeDelegatedInstructionData>;
export declare function getSetStakeDelegatedInstructionDataCodec(): FixedSizeCodec<SetStakeDelegatedInstructionDataArgs, SetStakeDelegatedInstructionData>;
export type SetStakeDelegatedInput<TAccountDelegateAuthority extends string = string, TAccountUserState extends string = string, TAccountFarmState extends string = string> = {
delegateAuthority: TransactionSigner<TAccountDelegateAuthority>;
userState: Address<TAccountUserState>;
farmState: Address<TAccountFarmState>;
newAmount: SetStakeDelegatedInstructionDataArgs["newAmount"];
};
export declare function getSetStakeDelegatedInstruction<TAccountDelegateAuthority extends string, TAccountUserState extends string, TAccountFarmState extends string, TProgramAddress extends Address = typeof FARMS_PROGRAM_ADDRESS>(input: SetStakeDelegatedInput<TAccountDelegateAuthority, TAccountUserState, TAccountFarmState>, config?: {
programAddress?: TProgramAddress;
}): SetStakeDelegatedInstruction<TProgramAddress, TAccountDelegateAuthority, TAccountUserState, TAccountFarmState>;
export type ParsedSetStakeDelegatedInstruction<TProgram extends string = typeof FARMS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
programAddress: Address<TProgram>;
accounts: {
delegateAuthority: TAccountMetas[0];
userState: TAccountMetas[1];
farmState: TAccountMetas[2];
};
data: SetStakeDelegatedInstructionData;
};
export declare function parseSetStakeDelegatedInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetStakeDelegatedInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=setStakeDelegated.d.ts.map