/** * 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 Address, type ReadonlyUint8Array } from '@solana/kit'; import { type ParsedClearPaymentInstruction, type ParsedClosePaymentInstruction, type ParsedCreateOperatorInstruction, type ParsedEmitEventInstruction, type ParsedInitializeMerchantInstruction, type ParsedInitializeMerchantOperatorConfigInstruction, type ParsedMakePaymentInstruction, type ParsedRefundPaymentInstruction, type ParsedUpdateMerchantAuthorityInstruction, type ParsedUpdateMerchantSettlementWalletInstruction, type ParsedUpdateOperatorAuthorityInstruction } from '../instructions'; export declare const COMMERCE_PROGRAM_PROGRAM_ADDRESS: Address<"commkU28d52cwo2Ma3Marxz4Qr9REtfJtuUfqnDnbhT">; export declare enum CommerceProgramAccount { Merchant = 0, MerchantOperatorConfig = 1, Operator = 2, Payment = 3 } export declare enum CommerceProgramInstruction { InitializeMerchant = 0, CreateOperator = 1, InitializeMerchantOperatorConfig = 2, MakePayment = 3, ClearPayment = 4, RefundPayment = 5, UpdateMerchantSettlementWallet = 6, UpdateMerchantAuthority = 7, UpdateOperatorAuthority = 8, ClosePayment = 9, EmitEvent = 10 } export declare function identifyCommerceProgramInstruction(instruction: { data: ReadonlyUint8Array; } | ReadonlyUint8Array): CommerceProgramInstruction; export type ParsedCommerceProgramInstruction = ({ instructionType: CommerceProgramInstruction.InitializeMerchant; } & ParsedInitializeMerchantInstruction) | ({ instructionType: CommerceProgramInstruction.CreateOperator; } & ParsedCreateOperatorInstruction) | ({ instructionType: CommerceProgramInstruction.InitializeMerchantOperatorConfig; } & ParsedInitializeMerchantOperatorConfigInstruction) | ({ instructionType: CommerceProgramInstruction.MakePayment; } & ParsedMakePaymentInstruction) | ({ instructionType: CommerceProgramInstruction.ClearPayment; } & ParsedClearPaymentInstruction) | ({ instructionType: CommerceProgramInstruction.RefundPayment; } & ParsedRefundPaymentInstruction) | ({ instructionType: CommerceProgramInstruction.UpdateMerchantSettlementWallet; } & ParsedUpdateMerchantSettlementWalletInstruction) | ({ instructionType: CommerceProgramInstruction.UpdateMerchantAuthority; } & ParsedUpdateMerchantAuthorityInstruction) | ({ instructionType: CommerceProgramInstruction.UpdateOperatorAuthority; } & ParsedUpdateOperatorAuthorityInstruction) | ({ instructionType: CommerceProgramInstruction.ClosePayment; } & ParsedClosePaymentInstruction) | ({ instructionType: CommerceProgramInstruction.EmitEvent; } & ParsedEmitEventInstruction); //# sourceMappingURL=commerceProgram.d.ts.map