/** * 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 Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type Option, type OptionOrNullable, type ReadonlyAccount, type ReadonlyUint8Array, type WritableAccount } from "@solana/kit"; import { type InstructionAccountInput, type InstructionAccountInputAddress, type ResolvedInstructionAccountMeta } from "@solana/kit/program-client-core"; import { PHYGITAL_TOKEN_PROGRAM_ADDRESS } from "../programs/index.js"; import { type Secp256r1VerifyArgs, type Secp256r1VerifyArgsArgs } from "../types/index.js"; export declare const VERIFY_DISCRIMINATOR: ReadonlyUint8Array; export declare function getVerifyDiscriminatorBytes(): ReadonlyUint8Array; export type VerifyInstruction = string, TAccountInstructionsSysvar extends string | AccountMeta = "Sysvar1nstructions1111111111111111111111111", TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPhygitalToken extends string ? WritableAccount : TAccountPhygitalToken, TAccountInstructionsSysvar extends string ? ReadonlyAccount : TAccountInstructionsSysvar, ...TRemainingAccounts ]>; export type VerifyInstructionData = { discriminator: ReadonlyUint8Array; secp256r1VerifyArgs: Secp256r1VerifyArgs; messageHash: ReadonlyUint8Array; expectedRpIdHash: Option; expectedOrigins: Option>; }; export type VerifyInstructionDataArgs = { secp256r1VerifyArgs: Secp256r1VerifyArgsArgs; messageHash: ReadonlyUint8Array; expectedRpIdHash: OptionOrNullable; expectedOrigins: OptionOrNullable>; }; export declare function getVerifyInstructionDataEncoder(): Encoder; export declare function getVerifyInstructionDataDecoder(): Decoder; export declare function getVerifyInstructionDataCodec(): Codec; export type VerifyInput = { phygitalToken: TAccountPhygitalToken; instructionsSysvar?: TAccountInstructionsSysvar; secp256r1VerifyArgs: VerifyInstructionDataArgs["secp256r1VerifyArgs"]; messageHash: VerifyInstructionDataArgs["messageHash"]; expectedRpIdHash: VerifyInstructionDataArgs["expectedRpIdHash"]; expectedOrigins: VerifyInstructionDataArgs["expectedOrigins"]; }; export declare function getVerifyInstruction(input: VerifyInput, config?: { programAddress?: TProgramAddress | { readonly address: TProgramAddress; }; }): VerifyInstruction>, ResolvedInstructionAccountMeta>>; export type ParsedVerifyInstruction = { programAddress: Address; accounts: { phygitalToken: TAccountMetas[0]; instructionsSysvar: TAccountMetas[1]; }; data: VerifyInstructionData; }; export declare function parseVerifyInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedVerifyInstruction; //# sourceMappingURL=verify.d.ts.map