/** * 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 { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount } from '@solana/kit'; import { type SettlementWatermarks, type SettlementWatermarksArgs } from '../types/index.js'; export type Channel = { discriminator: number; version: number; bump: number; status: number; salt: bigint; deposit: bigint; settlement: SettlementWatermarks; closureStartedAt: bigint; payerWithdrawnAt: bigint; gracePeriod: number; distributionHash: Array; payer: Address; payee: Address; authorizedSigner: Address; mint: Address; rentPayer: Address; openSlot: bigint; }; export type ChannelArgs = { discriminator: number; version: number; bump: number; status: number; salt: number | bigint; deposit: number | bigint; settlement: SettlementWatermarksArgs; closureStartedAt: number | bigint; payerWithdrawnAt: number | bigint; gracePeriod: number; distributionHash: Array; payer: Address; payee: Address; authorizedSigner: Address; mint: Address; rentPayer: Address; openSlot: number | bigint; }; /** Gets the encoder for {@link ChannelArgs} account data. */ export declare function getChannelEncoder(): FixedSizeEncoder; /** Gets the decoder for {@link Channel} account data. */ export declare function getChannelDecoder(): FixedSizeDecoder; /** Gets the codec for {@link Channel} account data. */ export declare function getChannelCodec(): FixedSizeCodec; export declare function decodeChannel(encodedAccount: EncodedAccount): Account; export declare function decodeChannel(encodedAccount: MaybeEncodedAccount): MaybeAccount; export declare function fetchChannel(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchMaybeChannel(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchAllChannel(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; export declare function fetchAllMaybeChannel(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; //# sourceMappingURL=channel.d.ts.map