@nosana/kit
Version:
Nosana KIT
56 lines (55 loc) • 2.86 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 Address, type ReadonlyUint8Array } from '@solana/kit';
import { type ParsedCloseInstruction, type ParsedExtendInstruction, type ParsedInitInstruction, type ParsedRestakeInstruction, type ParsedSlashInstruction, type ParsedStakeInstruction, type ParsedTopupInstruction, type ParsedUnstakeInstruction, type ParsedUpdateSettingsInstruction, type ParsedWithdrawInstruction } from '../instructions/index.js';
export declare const NOSANA_STAKING_PROGRAM_ADDRESS: Address<"">;
export declare const NosanaStakingAccount: {
readonly SettingsAccount: "SettingsAccount";
readonly StakeAccount: "StakeAccount";
};
export type NosanaStakingAccount = (typeof NosanaStakingAccount)[keyof typeof NosanaStakingAccount];
export declare function identifyNosanaStakingAccount(account: {
data: ReadonlyUint8Array;
} | ReadonlyUint8Array): NosanaStakingAccount;
export declare const NosanaStakingInstruction: {
readonly Init: "Init";
readonly Stake: "Stake";
readonly Unstake: "Unstake";
readonly Restake: "Restake";
readonly Topup: "Topup";
readonly Extend: "Extend";
readonly Close: "Close";
readonly Withdraw: "Withdraw";
readonly Slash: "Slash";
readonly UpdateSettings: "UpdateSettings";
};
export type NosanaStakingInstruction = (typeof NosanaStakingInstruction)[keyof typeof NosanaStakingInstruction];
export declare function identifyNosanaStakingInstruction(instruction: {
data: ReadonlyUint8Array;
} | ReadonlyUint8Array): NosanaStakingInstruction;
export type ParsedNosanaStakingInstruction<TProgram extends string = ''> = ({
instructionType: typeof NosanaStakingInstruction.Init;
} & ParsedInitInstruction<TProgram>) | ({
instructionType: typeof NosanaStakingInstruction.Stake;
} & ParsedStakeInstruction<TProgram>) | ({
instructionType: typeof NosanaStakingInstruction.Unstake;
} & ParsedUnstakeInstruction<TProgram>) | ({
instructionType: typeof NosanaStakingInstruction.Restake;
} & ParsedRestakeInstruction<TProgram>) | ({
instructionType: typeof NosanaStakingInstruction.Topup;
} & ParsedTopupInstruction<TProgram>) | ({
instructionType: typeof NosanaStakingInstruction.Extend;
} & ParsedExtendInstruction<TProgram>) | ({
instructionType: typeof NosanaStakingInstruction.Close;
} & ParsedCloseInstruction<TProgram>) | ({
instructionType: typeof NosanaStakingInstruction.Withdraw;
} & ParsedWithdrawInstruction<TProgram>) | ({
instructionType: typeof NosanaStakingInstruction.Slash;
} & ParsedSlashInstruction<TProgram>) | ({
instructionType: typeof NosanaStakingInstruction.UpdateSettings;
} & ParsedUpdateSettingsInstruction<TProgram>);