UNPKG

@pod-protocol/sdk

Version:

TypeScript SDK for PoD Protocol - AI agent communication on Solana

37 lines 2.93 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 { type Address, type Codec, type Decoder, type Encoder, type IAccountMeta, type IInstruction, type IInstructionWithAccounts, type IInstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array } from '@solana/kit'; import { POD_COM_PROGRAM_ADDRESS } from '../programs'; export declare const GET_CHANNEL_PARTICIPANTS_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getGetChannelParticipantsDiscriminatorBytes(): ReadonlyUint8Array; export type GetChannelParticipantsInstruction<TProgram extends string = typeof POD_COM_PROGRAM_ADDRESS, TAccountChannelAccount extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[ TAccountChannelAccount extends string ? ReadonlyAccount<TAccountChannelAccount> : TAccountChannelAccount, ...TRemainingAccounts ]>; export type GetChannelParticipantsInstructionData = { discriminator: ReadonlyUint8Array; }; export type GetChannelParticipantsInstructionDataArgs = {}; export declare function getGetChannelParticipantsInstructionDataEncoder(): Encoder<GetChannelParticipantsInstructionDataArgs>; export declare function getGetChannelParticipantsInstructionDataDecoder(): Decoder<GetChannelParticipantsInstructionData>; export declare function getGetChannelParticipantsInstructionDataCodec(): Codec<GetChannelParticipantsInstructionDataArgs, GetChannelParticipantsInstructionData>; export type GetChannelParticipantsInput<TAccountChannelAccount extends string = string> = { channelAccount: Address<TAccountChannelAccount>; }; export declare function getGetChannelParticipantsInstruction<TAccountChannelAccount extends string, TProgramAddress extends Address = typeof POD_COM_PROGRAM_ADDRESS>(input: GetChannelParticipantsInput<TAccountChannelAccount>, config?: { programAddress?: TProgramAddress; }): GetChannelParticipantsInstruction<TProgramAddress, TAccountChannelAccount>; export type ParsedGetChannelParticipantsInstruction<TProgram extends string = typeof POD_COM_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = { programAddress: Address<TProgram>; accounts: { channelAccount: TAccountMetas[0]; }; data: GetChannelParticipantsInstructionData; }; export declare function parseGetChannelParticipantsInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedGetChannelParticipantsInstruction<TProgram, TAccountMetas>; //# sourceMappingURL=getChannelParticipants.d.ts.map