UNPKG

@pod-protocol/sdk

Version:

TypeScript SDK for PoD Protocol - AI agent communication on Solana

81 lines 6.8 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 IAccountSignerMeta, type IInstruction, type IInstructionWithAccounts, type IInstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit'; import { POD_COM_PROGRAM_ADDRESS } from '../programs'; import { type ChannelVisibility, type ChannelVisibilityArgs } from '../types'; export declare const CREATE_CHANNEL_V2_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getCreateChannelV2DiscriminatorBytes(): ReadonlyUint8Array; export type CreateChannelV2Instruction<TProgram extends string = typeof POD_COM_PROGRAM_ADDRESS, TAccountAgentAccount extends string | IAccountMeta<string> = string, TAccountChannelAccount extends string | IAccountMeta<string> = string, TAccountParticipantAccount extends string | IAccountMeta<string> = string, TAccountCreator extends string | IAccountMeta<string> = string, TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[ TAccountAgentAccount extends string ? ReadonlyAccount<TAccountAgentAccount> : TAccountAgentAccount, TAccountChannelAccount extends string ? WritableAccount<TAccountChannelAccount> : TAccountChannelAccount, TAccountParticipantAccount extends string ? WritableAccount<TAccountParticipantAccount> : TAccountParticipantAccount, TAccountCreator extends string ? WritableSignerAccount<TAccountCreator> & IAccountSignerMeta<TAccountCreator> : TAccountCreator, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, ...TRemainingAccounts ]>; export type CreateChannelV2InstructionData = { discriminator: ReadonlyUint8Array; name: string; description: string; visibility: ChannelVisibility; maxParticipants: number; feePerMessage: bigint; }; export type CreateChannelV2InstructionDataArgs = { name: string; description: string; visibility: ChannelVisibilityArgs; maxParticipants: number; feePerMessage: number | bigint; }; export declare function getCreateChannelV2InstructionDataEncoder(): Encoder<CreateChannelV2InstructionDataArgs>; export declare function getCreateChannelV2InstructionDataDecoder(): Decoder<CreateChannelV2InstructionData>; export declare function getCreateChannelV2InstructionDataCodec(): Codec<CreateChannelV2InstructionDataArgs, CreateChannelV2InstructionData>; export type CreateChannelV2AsyncInput<TAccountAgentAccount extends string = string, TAccountChannelAccount extends string = string, TAccountParticipantAccount extends string = string, TAccountCreator extends string = string, TAccountSystemProgram extends string = string> = { agentAccount?: Address<TAccountAgentAccount>; channelAccount?: Address<TAccountChannelAccount>; participantAccount?: Address<TAccountParticipantAccount>; creator: TransactionSigner<TAccountCreator>; systemProgram?: Address<TAccountSystemProgram>; name: CreateChannelV2InstructionDataArgs['name']; description: CreateChannelV2InstructionDataArgs['description']; visibility: CreateChannelV2InstructionDataArgs['visibility']; maxParticipants: CreateChannelV2InstructionDataArgs['maxParticipants']; feePerMessage: CreateChannelV2InstructionDataArgs['feePerMessage']; }; export declare function getCreateChannelV2InstructionAsync<TAccountAgentAccount extends string, TAccountChannelAccount extends string, TAccountParticipantAccount extends string, TAccountCreator extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof POD_COM_PROGRAM_ADDRESS>(input: CreateChannelV2AsyncInput<TAccountAgentAccount, TAccountChannelAccount, TAccountParticipantAccount, TAccountCreator, TAccountSystemProgram>, config?: { programAddress?: TProgramAddress; }): Promise<CreateChannelV2Instruction<TProgramAddress, TAccountAgentAccount, TAccountChannelAccount, TAccountParticipantAccount, TAccountCreator, TAccountSystemProgram>>; export type CreateChannelV2Input<TAccountAgentAccount extends string = string, TAccountChannelAccount extends string = string, TAccountParticipantAccount extends string = string, TAccountCreator extends string = string, TAccountSystemProgram extends string = string> = { agentAccount: Address<TAccountAgentAccount>; channelAccount: Address<TAccountChannelAccount>; participantAccount: Address<TAccountParticipantAccount>; creator: TransactionSigner<TAccountCreator>; systemProgram?: Address<TAccountSystemProgram>; name: CreateChannelV2InstructionDataArgs['name']; description: CreateChannelV2InstructionDataArgs['description']; visibility: CreateChannelV2InstructionDataArgs['visibility']; maxParticipants: CreateChannelV2InstructionDataArgs['maxParticipants']; feePerMessage: CreateChannelV2InstructionDataArgs['feePerMessage']; }; export declare function getCreateChannelV2Instruction<TAccountAgentAccount extends string, TAccountChannelAccount extends string, TAccountParticipantAccount extends string, TAccountCreator extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof POD_COM_PROGRAM_ADDRESS>(input: CreateChannelV2Input<TAccountAgentAccount, TAccountChannelAccount, TAccountParticipantAccount, TAccountCreator, TAccountSystemProgram>, config?: { programAddress?: TProgramAddress; }): CreateChannelV2Instruction<TProgramAddress, TAccountAgentAccount, TAccountChannelAccount, TAccountParticipantAccount, TAccountCreator, TAccountSystemProgram>; export type ParsedCreateChannelV2Instruction<TProgram extends string = typeof POD_COM_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = { programAddress: Address<TProgram>; accounts: { agentAccount: TAccountMetas[0]; channelAccount: TAccountMetas[1]; participantAccount: TAccountMetas[2]; creator: TAccountMetas[3]; systemProgram: TAccountMetas[4]; }; data: CreateChannelV2InstructionData; }; export declare function parseCreateChannelV2Instruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedCreateChannelV2Instruction<TProgram, TAccountMetas>; //# sourceMappingURL=createChannelV2.d.ts.map