/** * 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_CREDENTIAL_DISCRIMINATOR = 0; export declare function getCreateCredentialDiscriminatorBytes(): ReadonlyUint8Array; export type CreateCredentialInstruction = string, TAccountCredential extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountCredential extends string ? WritableAccount : TAccountCredential, TAccountAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAuthority, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; export type CreateCredentialInstructionData = { discriminator: number; name: string; signers: Array
; }; export type CreateCredentialInstructionDataArgs = { name: string; signers: Array
; }; export declare function getCreateCredentialInstructionDataEncoder(): Encoder; export declare function getCreateCredentialInstructionDataDecoder(): Decoder; export declare function getCreateCredentialInstructionDataCodec(): Codec; export type CreateCredentialInput = { payer: TransactionSigner; credential: Address; authority: TransactionSigner; systemProgram?: Address; name: CreateCredentialInstructionDataArgs['name']; signers: CreateCredentialInstructionDataArgs['signers']; }; export declare function getCreateCredentialInstruction(input: CreateCredentialInput, config?: { programAddress?: TProgramAddress; }): CreateCredentialInstruction; export type ParsedCreateCredentialInstruction = { programAddress: Address; accounts: { payer: TAccountMetas[0]; credential: TAccountMetas[1]; authority: TAccountMetas[2]; systemProgram: TAccountMetas[3]; }; data: CreateCredentialInstructionData; }; export declare function parseCreateCredentialInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedCreateCredentialInstruction;