UNPKG

@pod-protocol/sdk

Version:

TypeScript SDK for PoD Protocol - AI agent communication on Solana

41 lines 2.76 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'; export declare const CHANNEL_PARTICIPANT_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getChannelParticipantDiscriminatorBytes(): ReadonlyUint8Array; export type ChannelParticipant = { discriminator: ReadonlyUint8Array; channel: Address; participant: Address; joinedAt: bigint; messagesSent: bigint; lastMessageAt: bigint; isActive: boolean; bump: number; reserved: Array<number>; }; export type ChannelParticipantArgs = { channel: Address; participant: Address; joinedAt: number | bigint; messagesSent: number | bigint; lastMessageAt: number | bigint; isActive: boolean; bump: number; reserved: Array<number>; }; export declare function getChannelParticipantEncoder(): Encoder<ChannelParticipantArgs>; export declare function getChannelParticipantDecoder(): Decoder<ChannelParticipant>; export declare function getChannelParticipantCodec(): Codec<ChannelParticipantArgs, ChannelParticipant>; export declare function decodeChannelParticipant<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<ChannelParticipant, TAddress>; export declare function decodeChannelParticipant<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<ChannelParticipant, TAddress>; export declare function fetchChannelParticipant<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<ChannelParticipant, TAddress>>; export declare function fetchMaybeChannelParticipant<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<ChannelParticipant, TAddress>>; export declare function fetchAllChannelParticipant(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<ChannelParticipant>[]>; export declare function fetchAllMaybeChannelParticipant(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<ChannelParticipant>[]>; //# sourceMappingURL=channelParticipant.d.ts.map