/** * @module plugin/magicblock/protocols * @description Protocol definitions + method registries for the * MagicBlock SynapsePlugin. * * Each protocol maps 1:1 to a MagicBlock API surface area. * Methods carry Zod-typed input/output + LLM-friendly descriptions. * * Follows the `SynapsePlugin.protocols` contract exactly — identical * structure to the SAP plugin's `protocols.ts`. * * Three protocol domains: * 1. mb-router — ER Router JSON-RPC (6 read-only tools) * 2. mb-payments — Private Payment API REST (12 tools) * 3. mb-vrf — Solana VRF (2 tools, SDK-based) * * @category Plugin * @since v0.1.0 */ import type { ProtocolMethod, PluginProtocol } from "../protocols"; export type { ProtocolMethod, PluginProtocol }; /** * MagicBlock ER Router protocol — 6 read-only JSON-RPC tools for * discovering ER nodes, checking delegation status, fetching account * info, getting blockhashes, and tracking signature statuses. * * @name mbRouterProtocol * @description Covers `getRoutes`, `getIdentity`, `getDelegationStatus`, * `getAccountInfo`, `getBlockhashForAccounts`, and `getSignatureStatuses`. * @category Plugin * @since v0.1.0 */ export declare const mbRouterProtocol: PluginProtocol; /** * MagicBlock Private Payment API protocol — 12 REST tools for * health checks, wallet challenge/login auth, balance queries * (base + ephemeral), SPL token deposits, transfers (public/private), * withdrawals, swap quotes, swap execution (public/private), and * mint initialization checks. * * Write tools (deposit, transfer, withdraw, swap, initializeMint) * return unsigned transactions — the caller signs and submits. * * @name mbPaymentsProtocol * @description Covers `health`, `challenge`, `login`, `balance`, * `privateBalance`, `deposit`, `transfer`, `withdraw`, `swapQuote`, * `swap`, `initializeMint`, and `isMintInitialized`. * @category Plugin * @since v0.1.0 */ export declare const mbPaymentsProtocol: PluginProtocol; /** * MagicBlock Solana VRF protocol — 2 tools for requesting provably * fair on-chain randomness and retrieving the verified result. * * @name mbVrfProtocol * @description Covers `requestRandomness` and `getRandomnessResult`. * @category Plugin * @since v0.1.0 */ export declare const mbVrfProtocol: PluginProtocol; /** * Ordered array of all 3 MagicBlock plugin protocols (20 tools total). * * @name MAGICBLOCK_PROTOCOLS * @description Contains router (6 tools), payments (12 tools), and * vrf (2 tools) protocols. * @category Plugin * @since v0.1.0 */ export declare const MAGICBLOCK_PROTOCOLS: readonly PluginProtocol[]; //# sourceMappingURL=protocols.d.ts.map