UNPKG

@pod-protocol/sdk

Version:

TypeScript SDK for PoD Protocol - AI agent communication on Solana

55 lines 5.03 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 LEAVE_CHANNEL_DISCRIMINATOR: Uint8Array<ArrayBuffer>; export declare function getLeaveChannelDiscriminatorBytes(): ReadonlyUint8Array; export type LeaveChannelInstruction<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, TAccountUser extends string | IAccountMeta<string> = string, 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, TAccountUser extends string ? WritableSignerAccount<TAccountUser> & IAccountSignerMeta<TAccountUser> : TAccountUser, ...TRemainingAccounts ]>; export type LeaveChannelInstructionData = { discriminator: ReadonlyUint8Array; }; export type LeaveChannelInstructionDataArgs = {}; export declare function getLeaveChannelInstructionDataEncoder(): Encoder<LeaveChannelInstructionDataArgs>; export declare function getLeaveChannelInstructionDataDecoder(): Decoder<LeaveChannelInstructionData>; export declare function getLeaveChannelInstructionDataCodec(): Codec<LeaveChannelInstructionDataArgs, LeaveChannelInstructionData>; export type LeaveChannelAsyncInput<TAccountChannelAccount extends string = string, TAccountParticipantAccount extends string = string, TAccountAgentAccount extends string = string, TAccountUser extends string = string> = { channelAccount: Address<TAccountChannelAccount>; participantAccount?: Address<TAccountParticipantAccount>; agentAccount?: Address<TAccountAgentAccount>; user: TransactionSigner<TAccountUser>; }; export declare function getLeaveChannelInstructionAsync<TAccountChannelAccount extends string, TAccountParticipantAccount extends string, TAccountAgentAccount extends string, TAccountUser extends string, TProgramAddress extends Address = typeof POD_COM_PROGRAM_ADDRESS>(input: LeaveChannelAsyncInput<TAccountChannelAccount, TAccountParticipantAccount, TAccountAgentAccount, TAccountUser>, config?: { programAddress?: TProgramAddress; }): Promise<LeaveChannelInstruction<TProgramAddress, TAccountChannelAccount, TAccountParticipantAccount, TAccountAgentAccount, TAccountUser>>; export type LeaveChannelInput<TAccountChannelAccount extends string = string, TAccountParticipantAccount extends string = string, TAccountAgentAccount extends string = string, TAccountUser extends string = string> = { channelAccount: Address<TAccountChannelAccount>; participantAccount: Address<TAccountParticipantAccount>; agentAccount: Address<TAccountAgentAccount>; user: TransactionSigner<TAccountUser>; }; export declare function getLeaveChannelInstruction<TAccountChannelAccount extends string, TAccountParticipantAccount extends string, TAccountAgentAccount extends string, TAccountUser extends string, TProgramAddress extends Address = typeof POD_COM_PROGRAM_ADDRESS>(input: LeaveChannelInput<TAccountChannelAccount, TAccountParticipantAccount, TAccountAgentAccount, TAccountUser>, config?: { programAddress?: TProgramAddress; }): LeaveChannelInstruction<TProgramAddress, TAccountChannelAccount, TAccountParticipantAccount, TAccountAgentAccount, TAccountUser>; export type ParsedLeaveChannelInstruction<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]; user: TAccountMetas[3]; }; data: LeaveChannelInstructionData; }; export declare function parseLeaveChannelInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedLeaveChannelInstruction<TProgram, TAccountMetas>; //# sourceMappingURL=leaveChannel.d.ts.map