/** * 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 { COMMERCE_PROGRAM_PROGRAM_ADDRESS } from '../programs'; export declare const CREATE_OPERATOR_DISCRIMINATOR = 1; export declare function getCreateOperatorDiscriminatorBytes(): ReadonlyUint8Array; export type CreateOperatorInstruction = string, TAccountOperator 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, TAccountOperator extends string ? WritableAccount : TAccountOperator, TAccountAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAuthority, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; export type CreateOperatorInstructionData = { discriminator: number; bump: number; }; export type CreateOperatorInstructionDataArgs = { bump: number; }; export declare function getCreateOperatorInstructionDataEncoder(): FixedSizeEncoder; export declare function getCreateOperatorInstructionDataDecoder(): FixedSizeDecoder; export declare function getCreateOperatorInstructionDataCodec(): FixedSizeCodec; export type CreateOperatorAsyncInput = { payer: TransactionSigner; operator?: Address; authority: TransactionSigner; systemProgram?: Address; bump: CreateOperatorInstructionDataArgs['bump']; }; export declare function getCreateOperatorInstructionAsync(input: CreateOperatorAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; export type CreateOperatorInput = { payer: TransactionSigner; operator: Address; authority: TransactionSigner; systemProgram?: Address; bump: CreateOperatorInstructionDataArgs['bump']; }; export declare function getCreateOperatorInstruction(input: CreateOperatorInput, config?: { programAddress?: TProgramAddress; }): CreateOperatorInstruction; export type ParsedCreateOperatorInstruction = { programAddress: Address; accounts: { payer: TAccountMetas[0]; operator: TAccountMetas[1]; authority: TAccountMetas[2]; systemProgram: TAccountMetas[3]; }; data: CreateOperatorInstructionData; }; export declare function parseCreateOperatorInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedCreateOperatorInstruction; //# sourceMappingURL=createOperator.d.ts.map