/** * 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 ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit'; import { PAYMENT_CHANNELS_PROGRAM_ADDRESS } from '../programs/index.js'; import { type TopUpArgs, type TopUpArgsArgs } from '../types/index.js'; export declare const TOP_UP_DISCRIMINATOR = 3; export declare function getTopUpDiscriminatorBytes(): ReadonlyUint8Array; export type TopUpInstruction = string, TAccountChannel extends string | AccountMeta = string, TAccountPayerTokenAccount extends string | AccountMeta = string, TAccountChannelTokenAccount extends string | AccountMeta = string, TAccountMint extends string | AccountMeta = string, TAccountTokenProgram extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountChannel extends string ? WritableAccount : TAccountChannel, TAccountPayerTokenAccount extends string ? WritableAccount : TAccountPayerTokenAccount, TAccountChannelTokenAccount extends string ? WritableAccount : TAccountChannelTokenAccount, TAccountMint extends string ? ReadonlyAccount : TAccountMint, TAccountTokenProgram extends string ? ReadonlyAccount : TAccountTokenProgram, ...TRemainingAccounts ]>; export type TopUpInstructionData = { discriminator: number; topUpArgs: TopUpArgs; }; export type TopUpInstructionDataArgs = { topUpArgs: TopUpArgsArgs; }; export declare function getTopUpInstructionDataEncoder(): FixedSizeEncoder; export declare function getTopUpInstructionDataDecoder(): FixedSizeDecoder; export declare function getTopUpInstructionDataCodec(): FixedSizeCodec; export type TopUpInput = { payer: TransactionSigner; channel: Address; payerTokenAccount: Address; channelTokenAccount: Address; mint: Address; tokenProgram: Address; topUpArgs: TopUpInstructionDataArgs['topUpArgs']; }; export declare function getTopUpInstruction(input: TopUpInput, config?: { programAddress?: TProgramAddress; }): TopUpInstruction; export type ParsedTopUpInstruction = { programAddress: Address; accounts: { payer: TAccountMetas[0]; channel: TAccountMetas[1]; payerTokenAccount: TAccountMetas[2]; channelTokenAccount: TAccountMetas[3]; mint: TAccountMetas[4]; tokenProgram: TAccountMetas[5]; }; data: TopUpInstructionData; }; export declare function parseTopUpInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedTopUpInstruction; //# sourceMappingURL=topUp.d.ts.map