/** * 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 CHANGE_SCHEMA_VERSION_DISCRIMINATOR = 5; export declare function getChangeSchemaVersionDiscriminatorBytes(): ReadonlyUint8Array; export type ChangeSchemaVersionInstruction = string, TAccountAuthority extends string | AccountMeta = string, TAccountCredential extends string | AccountMeta = string, TAccountExistingSchema extends string | AccountMeta = string, TAccountNewSchema 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, TAccountExistingSchema extends string ? ReadonlyAccount : TAccountExistingSchema, TAccountNewSchema extends string ? WritableAccount : TAccountNewSchema, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; export type ChangeSchemaVersionInstructionData = { discriminator: number; layout: ReadonlyUint8Array; fieldNames: Array; }; export type ChangeSchemaVersionInstructionDataArgs = { layout: ReadonlyUint8Array; fieldNames: Array; }; export declare function getChangeSchemaVersionInstructionDataEncoder(): Encoder; export declare function getChangeSchemaVersionInstructionDataDecoder(): Decoder; export declare function getChangeSchemaVersionInstructionDataCodec(): Codec; export type ChangeSchemaVersionInput = { payer: TransactionSigner; authority: TransactionSigner; /** Credential the Schema is associated with */ credential: Address; existingSchema: Address; newSchema: Address; systemProgram?: Address; layout: ChangeSchemaVersionInstructionDataArgs['layout']; fieldNames: ChangeSchemaVersionInstructionDataArgs['fieldNames']; }; export declare function getChangeSchemaVersionInstruction(input: ChangeSchemaVersionInput, config?: { programAddress?: TProgramAddress; }): ChangeSchemaVersionInstruction; export type ParsedChangeSchemaVersionInstruction = { programAddress: Address; accounts: { payer: TAccountMetas[0]; authority: TAccountMetas[1]; /** Credential the Schema is associated with */ credential: TAccountMetas[2]; existingSchema: TAccountMetas[3]; newSchema: TAccountMetas[4]; systemProgram: TAccountMetas[5]; }; data: ChangeSchemaVersionInstructionData; }; export declare function parseChangeSchemaVersionInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedChangeSchemaVersionInstruction;