/** * 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, type WritableSignerAccount } from '@solana/kit'; import { SOLANA_ATTESTATION_SERVICE_PROGRAM_ADDRESS } from '../programs'; export declare const CREATE_SCHEMA_DISCRIMINATOR = 1; export declare function getCreateSchemaDiscriminatorBytes(): ReadonlyUint8Array; export type CreateSchemaInstruction = string, TAccountAuthority extends string | AccountMeta = string, TAccountCredential extends string | AccountMeta = string, TAccountSchema extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAuthority, TAccountCredential extends string ? ReadonlyAccount : TAccountCredential, TAccountSchema extends string ? WritableAccount : TAccountSchema, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; export type CreateSchemaInstructionData = { discriminator: number; name: string; description: string; layout: ReadonlyUint8Array; fieldNames: Array; }; export type CreateSchemaInstructionDataArgs = { name: string; description: string; layout: ReadonlyUint8Array; fieldNames: Array; }; export declare function getCreateSchemaInstructionDataEncoder(): Encoder; export declare function getCreateSchemaInstructionDataDecoder(): Decoder; export declare function getCreateSchemaInstructionDataCodec(): Codec; export type CreateSchemaInput = { payer: TransactionSigner; authority: TransactionSigner; /** Credential the Schema is associated with */ credential: Address; schema: Address; systemProgram?: Address; name: CreateSchemaInstructionDataArgs['name']; description: CreateSchemaInstructionDataArgs['description']; layout: CreateSchemaInstructionDataArgs['layout']; fieldNames: CreateSchemaInstructionDataArgs['fieldNames']; }; export declare function getCreateSchemaInstruction(input: CreateSchemaInput, config?: { programAddress?: TProgramAddress; }): CreateSchemaInstruction; export type ParsedCreateSchemaInstruction = { programAddress: Address; accounts: { payer: TAccountMetas[0]; authority: TAccountMetas[1]; /** Credential the Schema is associated with */ credential: TAccountMetas[2]; schema: TAccountMetas[3]; systemProgram: TAccountMetas[4]; }; data: CreateSchemaInstructionData; }; export declare function parseCreateSchemaInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedCreateSchemaInstruction;