/** * 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 Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from "@solana/kit"; import { SCOPE_PROGRAM_ADDRESS } from "../programs"; export declare const RESET_TWAP_DISCRIMINATOR: Uint8Array; export declare function getResetTwapDiscriminatorBytes(): ReadonlyUint8Array; export type ResetTwapInstruction = string, TAccountConfiguration extends string | AccountMeta = string, TAccountOracleTwaps extends string | AccountMeta = string, TAccountInstructionSysvarAccountInfo extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountAdmin extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAdmin, TAccountConfiguration extends string ? ReadonlyAccount : TAccountConfiguration, TAccountOracleTwaps extends string ? WritableAccount : TAccountOracleTwaps, TAccountInstructionSysvarAccountInfo extends string ? ReadonlyAccount : TAccountInstructionSysvarAccountInfo, ...TRemainingAccounts ]>; export type ResetTwapInstructionData = { discriminator: ReadonlyUint8Array; token: bigint; feedName: string; }; export type ResetTwapInstructionDataArgs = { token: number | bigint; feedName: string; }; export declare function getResetTwapInstructionDataEncoder(): Encoder; export declare function getResetTwapInstructionDataDecoder(): Decoder; export declare function getResetTwapInstructionDataCodec(): Codec; export type ResetTwapInput = { admin: TransactionSigner; configuration: Address; oracleTwaps: Address; instructionSysvarAccountInfo: Address; token: ResetTwapInstructionDataArgs["token"]; feedName: ResetTwapInstructionDataArgs["feedName"]; }; export declare function getResetTwapInstruction(input: ResetTwapInput, config?: { programAddress?: TProgramAddress; }): ResetTwapInstruction; export type ParsedResetTwapInstruction = { programAddress: Address; accounts: { admin: TAccountMetas[0]; configuration: TAccountMetas[1]; oracleTwaps: TAccountMetas[2]; instructionSysvarAccountInfo: TAccountMetas[3]; }; data: ResetTwapInstructionData; }; export declare function parseResetTwapInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedResetTwapInstruction; //# sourceMappingURL=resetTwap.d.ts.map