UNPKG

@pod-protocol/sdk

Version:

TypeScript SDK for PoD Protocol - AI agent communication on Solana

56 lines 3.2 kB
/** * 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 Codec, type Decoder, type EncodedAccount, type Encoder, type FetchAccountConfig, type FetchAccountsConfig, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit'; import { type ChannelVisibility, type ChannelVisibilityArgs } from '../types'; export declare const CHANNEL_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getChannelAccountDiscriminatorBytes(): ReadonlyUint8Array; export type ChannelAccount = { discriminator: ReadonlyUint8Array; creator: Address; feePerMessage: bigint; escrowBalance: bigint; createdAt: bigint; maxParticipants: number; currentParticipants: number; name: string; description: string; visibility: ChannelVisibility; isActive: boolean; lastSyncTimestamp: bigint; totalCompressedMessages: bigint; compressedDataSize: bigint; bump: number; reserved: Array<number>; }; export type ChannelAccountArgs = { creator: Address; feePerMessage: number | bigint; escrowBalance: number | bigint; createdAt: number | bigint; maxParticipants: number; currentParticipants: number; name: string; description: string; visibility: ChannelVisibilityArgs; isActive: boolean; lastSyncTimestamp: number | bigint; totalCompressedMessages: number | bigint; compressedDataSize: number | bigint; bump: number; reserved: Array<number>; }; export declare function getChannelAccountEncoder(): Encoder<ChannelAccountArgs>; export declare function getChannelAccountDecoder(): Decoder<ChannelAccount>; export declare function getChannelAccountCodec(): Codec<ChannelAccountArgs, ChannelAccount>; export declare function decodeChannelAccount<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<ChannelAccount, TAddress>; export declare function decodeChannelAccount<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<ChannelAccount, TAddress>; export declare function fetchChannelAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<ChannelAccount, TAddress>>; export declare function fetchMaybeChannelAccount<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<ChannelAccount, TAddress>>; export declare function fetchAllChannelAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<ChannelAccount>[]>; export declare function fetchAllMaybeChannelAccount(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<ChannelAccount>[]>; //# sourceMappingURL=channelAccount.d.ts.map