/** * 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_ATTESTATION_DISCRIMINATOR = 6; export declare function getCreateAttestationDiscriminatorBytes(): ReadonlyUint8Array; export type CreateAttestationInstruction = string, TAccountAuthority extends string | AccountMeta = string, TAccountCredential extends string | AccountMeta = string, TAccountSchema extends string | AccountMeta = string, TAccountAttestation 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 ? ReadonlyAccount : TAccountSchema, TAccountAttestation extends string ? WritableAccount : TAccountAttestation, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; export type CreateAttestationInstructionData = { discriminator: number; nonce: Address; data: ReadonlyUint8Array; expiry: bigint; }; export type CreateAttestationInstructionDataArgs = { nonce: Address; data: ReadonlyUint8Array; expiry: number | bigint; }; export declare function getCreateAttestationInstructionDataEncoder(): Encoder; export declare function getCreateAttestationInstructionDataDecoder(): Decoder; export declare function getCreateAttestationInstructionDataCodec(): Codec; export type CreateAttestationInput = { payer: TransactionSigner; /** Authorized signer of the Schema's Credential */ authority: TransactionSigner; /** Credential the Schema is associated with */ credential: Address; /** Schema the Attestation is associated with */ schema: Address; attestation: Address; systemProgram?: Address; nonce: CreateAttestationInstructionDataArgs['nonce']; data: CreateAttestationInstructionDataArgs['data']; expiry: CreateAttestationInstructionDataArgs['expiry']; }; export declare function getCreateAttestationInstruction(input: CreateAttestationInput, config?: { programAddress?: TProgramAddress; }): CreateAttestationInstruction; export type ParsedCreateAttestationInstruction = { programAddress: Address; accounts: { payer: TAccountMetas[0]; /** Authorized signer of the Schema's Credential */ authority: TAccountMetas[1]; /** Credential the Schema is associated with */ credential: TAccountMetas[2]; /** Schema the Attestation is associated with */ schema: TAccountMetas[3]; attestation: TAccountMetas[4]; systemProgram: TAccountMetas[5]; }; data: CreateAttestationInstructionData; }; export declare function parseCreateAttestationInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedCreateAttestationInstruction;