UNPKG

@pod-protocol/sdk

Version:

TypeScript SDK for PoD Protocol - AI agent communication on Solana

47 lines 2.87 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_INVITATION_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getChannelInvitationDiscriminatorBytes(): ReadonlyUint8Array; export type ChannelInvitation = { discriminator: ReadonlyUint8Array; channel: Address; inviter: Address; invitee: Address; invitationHash: Array<number>; createdAt: bigint; expiresAt: bigint; nonce: bigint; isAccepted: boolean; isUsed: boolean; bump: number; reserved: Array<number>; }; export type ChannelInvitationArgs = { channel: Address; inviter: Address; invitee: Address; invitationHash: Array<number>; createdAt: number | bigint; expiresAt: number | bigint; nonce: number | bigint; isAccepted: boolean; isUsed: boolean; bump: number; reserved: Array<number>; }; export declare function getChannelInvitationEncoder(): Encoder<ChannelInvitationArgs>; export declare function getChannelInvitationDecoder(): Decoder<ChannelInvitation>; export declare function getChannelInvitationCodec(): Codec<ChannelInvitationArgs, ChannelInvitation>; export declare function decodeChannelInvitation<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<ChannelInvitation, TAddress>; export declare function decodeChannelInvitation<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<ChannelInvitation, TAddress>; export declare function fetchChannelInvitation<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<ChannelInvitation, TAddress>>; export declare function fetchMaybeChannelInvitation<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<ChannelInvitation, TAddress>>; export declare function fetchAllChannelInvitation(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<ChannelInvitation>[]>; export declare function fetchAllMaybeChannelInvitation(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<ChannelInvitation>[]>; //# sourceMappingURL=channelInvitation.d.ts.map