/** * 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 ClientWithRpc, type ClientWithTransactionPlanning, type ClientWithTransactionSending, type ExtendedClient, type GetAccountInfoApi, type GetMultipleAccountsApi, type Instruction, type InstructionWithData, type ReadonlyUint8Array } from '@solana/kit'; import { type SelfFetchFunctions, type SelfPlanAndSendFunctions } from '@solana/program-client-core'; import { getChannelCodec, type Channel, type ChannelArgs } from '../accounts/index.js'; import { getDistributeInstructionAsync, getEmitEventInstructionAsync, getOpenInstructionAsync, getReclaimInstruction, getRequestCloseInstruction, getSealInstruction, getSettleAndSealInstruction, getSettleInstruction, getTopUpInstruction, getWithdrawPayerInstruction, type DistributeAsyncInput, type EmitEventAsyncInput, type OpenAsyncInput, type ParsedDistributeInstruction, type ParsedEmitEventInstruction, type ParsedOpenInstruction, type ParsedReclaimInstruction, type ParsedRequestCloseInstruction, type ParsedSealInstruction, type ParsedSettleAndSealInstruction, type ParsedSettleInstruction, type ParsedTopUpInstruction, type ParsedWithdrawPayerInstruction, type ReclaimInput, type RequestCloseInput, type SealInput, type SettleAndSealInput, type SettleInput, type TopUpInput, type WithdrawPayerInput } from '../instructions/index.js'; import { findEventAuthorityPda } from '../pdas/index.js'; export declare const PAYMENT_CHANNELS_PROGRAM_ADDRESS: Address<"CHNLxYvVA28MJP9PrFuDXccuoGXAx7jBacfLEkahyGsX">; export declare enum PaymentChannelsAccount { Channel = 0 } export declare enum PaymentChannelsInstruction { Open = 0, Settle = 1, TopUp = 2, SettleAndSeal = 3, RequestClose = 4, Seal = 5, Distribute = 6, WithdrawPayer = 7, Reclaim = 8, EmitEvent = 9 } export declare function identifyPaymentChannelsInstruction(instruction: { data: ReadonlyUint8Array; } | ReadonlyUint8Array): PaymentChannelsInstruction; export type ParsedPaymentChannelsInstruction = ({ instructionType: PaymentChannelsInstruction.Open; } & ParsedOpenInstruction) | ({ instructionType: PaymentChannelsInstruction.Settle; } & ParsedSettleInstruction) | ({ instructionType: PaymentChannelsInstruction.TopUp; } & ParsedTopUpInstruction) | ({ instructionType: PaymentChannelsInstruction.SettleAndSeal; } & ParsedSettleAndSealInstruction) | ({ instructionType: PaymentChannelsInstruction.RequestClose; } & ParsedRequestCloseInstruction) | ({ instructionType: PaymentChannelsInstruction.Seal; } & ParsedSealInstruction) | ({ instructionType: PaymentChannelsInstruction.Distribute; } & ParsedDistributeInstruction) | ({ instructionType: PaymentChannelsInstruction.WithdrawPayer; } & ParsedWithdrawPayerInstruction) | ({ instructionType: PaymentChannelsInstruction.Reclaim; } & ParsedReclaimInstruction) | ({ instructionType: PaymentChannelsInstruction.EmitEvent; } & ParsedEmitEventInstruction); export declare function parsePaymentChannelsInstruction(instruction: Instruction & InstructionWithData): ParsedPaymentChannelsInstruction; export type PaymentChannelsPlugin = { accounts: PaymentChannelsPluginAccounts; instructions: PaymentChannelsPluginInstructions; pdas: PaymentChannelsPluginPdas; identifyInstruction: typeof identifyPaymentChannelsInstruction; parseInstruction: typeof parsePaymentChannelsInstruction; }; export type PaymentChannelsPluginAccounts = { channel: ReturnType & SelfFetchFunctions; }; export type PaymentChannelsPluginInstructions = { open: (input: OpenAsyncInput) => ReturnType & SelfPlanAndSendFunctions; settle: (input: SettleInput) => ReturnType & SelfPlanAndSendFunctions; topUp: (input: TopUpInput) => ReturnType & SelfPlanAndSendFunctions; settleAndSeal: (input: SettleAndSealInput) => ReturnType & SelfPlanAndSendFunctions; requestClose: (input: RequestCloseInput) => ReturnType & SelfPlanAndSendFunctions; seal: (input: SealInput) => ReturnType & SelfPlanAndSendFunctions; distribute: (input: DistributeAsyncInput) => ReturnType & SelfPlanAndSendFunctions; withdrawPayer: (input: WithdrawPayerInput) => ReturnType & SelfPlanAndSendFunctions; reclaim: (input: ReclaimInput) => ReturnType & SelfPlanAndSendFunctions; emitEvent: (input: EmitEventAsyncInput) => ReturnType & SelfPlanAndSendFunctions; }; export type PaymentChannelsPluginPdas = { eventAuthority: typeof findEventAuthorityPda; }; export type PaymentChannelsPluginRequirements = ClientWithRpc & ClientWithTransactionPlanning & ClientWithTransactionSending; export declare function paymentChannelsProgram(): (client: T) => ExtendedClient; //# sourceMappingURL=paymentChannels.d.ts.map