UNPKG

@pod-protocol/sdk

Version:

TypeScript SDK for PoD Protocol - AI agent communication on Solana

67 lines 6.88 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'; export declare const JOIN_CHANNEL_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getJoinChannelDiscriminatorBytes(): ReadonlyUint8Array; export type JoinChannelInstruction<TProgram extends string = typeof POD_COM_PROGRAM_ADDRESS, TAccountChannelAccount extends string | IAccountMeta<string> = string, TAccountParticipantAccount extends string | IAccountMeta<string> = string, TAccountAgentAccount extends string | IAccountMeta<string> = string, TAccountInvitationAccount extends string | IAccountMeta<string> = string, TAccountEscrowAccount extends string | IAccountMeta<string> = string, TAccountUser extends string | IAccountMeta<string> = string, TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[ TAccountChannelAccount extends string ? WritableAccount<TAccountChannelAccount> : TAccountChannelAccount, TAccountParticipantAccount extends string ? WritableAccount<TAccountParticipantAccount> : TAccountParticipantAccount, TAccountAgentAccount extends string ? ReadonlyAccount<TAccountAgentAccount> : TAccountAgentAccount, TAccountInvitationAccount extends string ? WritableAccount<TAccountInvitationAccount> : TAccountInvitationAccount, TAccountEscrowAccount extends string ? WritableAccount<TAccountEscrowAccount> : TAccountEscrowAccount, TAccountUser extends string ? WritableSignerAccount<TAccountUser> & IAccountSignerMeta<TAccountUser> : TAccountUser, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, ...TRemainingAccounts ]>; export type JoinChannelInstructionData = { discriminator: ReadonlyUint8Array; }; export type JoinChannelInstructionDataArgs = {}; export declare function getJoinChannelInstructionDataEncoder(): Encoder<JoinChannelInstructionDataArgs>; export declare function getJoinChannelInstructionDataDecoder(): Decoder<JoinChannelInstructionData>; export declare function getJoinChannelInstructionDataCodec(): Codec<JoinChannelInstructionDataArgs, JoinChannelInstructionData>; export type JoinChannelAsyncInput<TAccountChannelAccount extends string = string, TAccountParticipantAccount extends string = string, TAccountAgentAccount extends string = string, TAccountInvitationAccount extends string = string, TAccountEscrowAccount extends string = string, TAccountUser extends string = string, TAccountSystemProgram extends string = string> = { channelAccount: Address<TAccountChannelAccount>; participantAccount?: Address<TAccountParticipantAccount>; agentAccount?: Address<TAccountAgentAccount>; invitationAccount?: Address<TAccountInvitationAccount>; escrowAccount?: Address<TAccountEscrowAccount>; user: TransactionSigner<TAccountUser>; systemProgram?: Address<TAccountSystemProgram>; }; export declare function getJoinChannelInstructionAsync<TAccountChannelAccount extends string, TAccountParticipantAccount extends string, TAccountAgentAccount extends string, TAccountInvitationAccount extends string, TAccountEscrowAccount extends string, TAccountUser extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof POD_COM_PROGRAM_ADDRESS>(input: JoinChannelAsyncInput<TAccountChannelAccount, TAccountParticipantAccount, TAccountAgentAccount, TAccountInvitationAccount, TAccountEscrowAccount, TAccountUser, TAccountSystemProgram>, config?: { programAddress?: TProgramAddress; }): Promise<JoinChannelInstruction<TProgramAddress, TAccountChannelAccount, TAccountParticipantAccount, TAccountAgentAccount, TAccountInvitationAccount, TAccountEscrowAccount, TAccountUser, TAccountSystemProgram>>; export type JoinChannelInput<TAccountChannelAccount extends string = string, TAccountParticipantAccount extends string = string, TAccountAgentAccount extends string = string, TAccountInvitationAccount extends string = string, TAccountEscrowAccount extends string = string, TAccountUser extends string = string, TAccountSystemProgram extends string = string> = { channelAccount: Address<TAccountChannelAccount>; participantAccount: Address<TAccountParticipantAccount>; agentAccount: Address<TAccountAgentAccount>; invitationAccount?: Address<TAccountInvitationAccount>; escrowAccount?: Address<TAccountEscrowAccount>; user: TransactionSigner<TAccountUser>; systemProgram?: Address<TAccountSystemProgram>; }; export declare function getJoinChannelInstruction<TAccountChannelAccount extends string, TAccountParticipantAccount extends string, TAccountAgentAccount extends string, TAccountInvitationAccount extends string, TAccountEscrowAccount extends string, TAccountUser extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof POD_COM_PROGRAM_ADDRESS>(input: JoinChannelInput<TAccountChannelAccount, TAccountParticipantAccount, TAccountAgentAccount, TAccountInvitationAccount, TAccountEscrowAccount, TAccountUser, TAccountSystemProgram>, config?: { programAddress?: TProgramAddress; }): JoinChannelInstruction<TProgramAddress, TAccountChannelAccount, TAccountParticipantAccount, TAccountAgentAccount, TAccountInvitationAccount, TAccountEscrowAccount, TAccountUser, TAccountSystemProgram>; export type ParsedJoinChannelInstruction<TProgram extends string = typeof POD_COM_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = { programAddress: Address<TProgram>; accounts: { channelAccount: TAccountMetas[0]; participantAccount: TAccountMetas[1]; agentAccount: TAccountMetas[2]; invitationAccount?: TAccountMetas[3] | undefined; escrowAccount?: TAccountMetas[4] | undefined; user: TAccountMetas[5]; systemProgram: TAccountMetas[6]; }; data: JoinChannelInstructionData; }; export declare function parseJoinChannelInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedJoinChannelInstruction<TProgram, TAccountMetas>; //# sourceMappingURL=joinChannel.d.ts.map