/** * 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 FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, 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 CLOSE_ATTESTATION_DISCRIMINATOR = 7; export declare function getCloseAttestationDiscriminatorBytes(): ReadonlyUint8Array; export type CloseAttestationInstruction = string, TAccountAuthority extends string | AccountMeta = string, TAccountCredential extends string | AccountMeta = string, TAccountAttestation extends string | AccountMeta = string, TAccountEventAuthority extends string | AccountMeta = 'DzSpKpST2TSyrxokMXchFz3G2yn5WEGoxzpGEUDjCX4g', TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TAccountAttestationProgram extends string | AccountMeta = '22zoJMtdu4tQc2PzL74ZUT7FrwgB1Udec8DdW4yw4BdG', TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAuthority, TAccountCredential extends string ? ReadonlyAccount : TAccountCredential, TAccountAttestation extends string ? WritableAccount : TAccountAttestation, TAccountEventAuthority extends string ? ReadonlyAccount : TAccountEventAuthority, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountAttestationProgram extends string ? ReadonlyAccount : TAccountAttestationProgram, ...TRemainingAccounts ]>; export type CloseAttestationInstructionData = { discriminator: number; }; export type CloseAttestationInstructionDataArgs = {}; export declare function getCloseAttestationInstructionDataEncoder(): FixedSizeEncoder; export declare function getCloseAttestationInstructionDataDecoder(): FixedSizeDecoder; export declare function getCloseAttestationInstructionDataCodec(): FixedSizeCodec; export type CloseAttestationInput = { payer: TransactionSigner; /** Authorized signer of the Schema's Credential */ authority: TransactionSigner; credential: Address; attestation: Address; eventAuthority?: Address; systemProgram?: Address; attestationProgram?: Address; }; export declare function getCloseAttestationInstruction(input: CloseAttestationInput, config?: { programAddress?: TProgramAddress; }): CloseAttestationInstruction; export type ParsedCloseAttestationInstruction = { programAddress: Address; accounts: { payer: TAccountMetas[0]; /** Authorized signer of the Schema's Credential */ authority: TAccountMetas[1]; credential: TAccountMetas[2]; attestation: TAccountMetas[3]; eventAuthority: TAccountMetas[4]; systemProgram: TAccountMetas[5]; attestationProgram: TAccountMetas[6]; }; data: CloseAttestationInstructionData; }; export declare function parseCloseAttestationInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedCloseAttestationInstruction;