UNPKG

@pod-protocol/sdk

Version:

TypeScript SDK for PoD Protocol - AI agent communication on Solana

80 lines 4.1 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 ReadonlyUint8Array } from '@solana/kit'; import { type ParsedBatchSyncCompressedMessagesInstruction, type ParsedBroadcastMessageCompressedInstruction, type ParsedBroadcastMessageInstruction, type ParsedCreateChannelInstruction, type ParsedCreateChannelV2Instruction, type ParsedDepositEscrowInstruction, type ParsedGetChannelParticipantsInstruction, type ParsedInviteToChannelInstruction, type ParsedJoinChannelCompressedInstruction, type ParsedJoinChannelInstruction, type ParsedLeaveChannelInstruction, type ParsedRegisterAgentInstruction, type ParsedSendMessageInstruction, type ParsedUpdateAgentInstruction, type ParsedUpdateChannelInstruction, type ParsedUpdateMessageStatusInstruction, type ParsedWithdrawEscrowInstruction } from '../instructions'; export declare const POD_COM_PROGRAM_ADDRESS: Address<"HEpGLgYsE1kP8aoYKyLFc3JVVrofS7T4zEA6fWBJsZps">; export declare enum PodComAccount { AgentAccount = 0, ChannelAccount = 1, ChannelInvitation = 2, ChannelMessage = 3, ChannelParticipant = 4, EscrowAccount = 5, MessageAccount = 6 } export declare function identifyPodComAccount(account: { data: ReadonlyUint8Array; } | ReadonlyUint8Array): PodComAccount; export declare enum PodComInstruction { BatchSyncCompressedMessages = 0, BroadcastMessage = 1, BroadcastMessageCompressed = 2, CreateChannel = 3, CreateChannelV2 = 4, DepositEscrow = 5, GetChannelParticipants = 6, InviteToChannel = 7, JoinChannel = 8, JoinChannelCompressed = 9, LeaveChannel = 10, RegisterAgent = 11, SendMessage = 12, UpdateAgent = 13, UpdateChannel = 14, UpdateMessageStatus = 15, WithdrawEscrow = 16 } export declare function identifyPodComInstruction(instruction: { data: ReadonlyUint8Array; } | ReadonlyUint8Array): PodComInstruction; export type ParsedPodComInstruction<TProgram extends string = 'HEpGLgYsE1kP8aoYKyLFc3JVVrofS7T4zEA6fWBJsZps'> = ({ instructionType: PodComInstruction.BatchSyncCompressedMessages; } & ParsedBatchSyncCompressedMessagesInstruction<TProgram>) | ({ instructionType: PodComInstruction.BroadcastMessage; } & ParsedBroadcastMessageInstruction<TProgram>) | ({ instructionType: PodComInstruction.BroadcastMessageCompressed; } & ParsedBroadcastMessageCompressedInstruction<TProgram>) | ({ instructionType: PodComInstruction.CreateChannel; } & ParsedCreateChannelInstruction<TProgram>) | ({ instructionType: PodComInstruction.CreateChannelV2; } & ParsedCreateChannelV2Instruction<TProgram>) | ({ instructionType: PodComInstruction.DepositEscrow; } & ParsedDepositEscrowInstruction<TProgram>) | ({ instructionType: PodComInstruction.GetChannelParticipants; } & ParsedGetChannelParticipantsInstruction<TProgram>) | ({ instructionType: PodComInstruction.InviteToChannel; } & ParsedInviteToChannelInstruction<TProgram>) | ({ instructionType: PodComInstruction.JoinChannel; } & ParsedJoinChannelInstruction<TProgram>) | ({ instructionType: PodComInstruction.JoinChannelCompressed; } & ParsedJoinChannelCompressedInstruction<TProgram>) | ({ instructionType: PodComInstruction.LeaveChannel; } & ParsedLeaveChannelInstruction<TProgram>) | ({ instructionType: PodComInstruction.RegisterAgent; } & ParsedRegisterAgentInstruction<TProgram>) | ({ instructionType: PodComInstruction.SendMessage; } & ParsedSendMessageInstruction<TProgram>) | ({ instructionType: PodComInstruction.UpdateAgent; } & ParsedUpdateAgentInstruction<TProgram>) | ({ instructionType: PodComInstruction.UpdateChannel; } & ParsedUpdateChannelInstruction<TProgram>) | ({ instructionType: PodComInstruction.UpdateMessageStatus; } & ParsedUpdateMessageStatusInstruction<TProgram>) | ({ instructionType: PodComInstruction.WithdrawEscrow; } & ParsedWithdrawEscrowInstruction<TProgram>); //# sourceMappingURL=podCom.d.ts.map