Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/smoldot2/internals/local-instance.d.ts>Event

Lightweight client for Substrate-based chains, such as Polkadot and Kusama.
Latest
type alias Event
import { type Event } from "https://deno.land/x/smoldot2@light-js-deno-v2.0.31/internals/local-instance.d.ts";
definition:
| { ty: "add-chain-id-allocated"; chainId: number; }
| { ty: "add-chain-result"; chainId: number; success: true; }
| { ty: "add-chain-result"; chainId: number; success: false; error: string; }
| { ty: "log"; level: number; target: string; message: string; }
| { ty: "json-rpc-responses-non-empty"; chainId: number; }
| { ty: "wasm-panic"; message: string; currentTask: string | null; }
| { ty: "executor-shutdown"; }
| { ty: "new-connection"; connectionId: number; address: ParsedMultiaddr; }
| { ty: "connection-reset"; connectionId: number; }
| { ty: "connection-stream-open"; connectionId: number; }
| { ty: "connection-stream-reset"; connectionId: number; streamId: number; }
| { ty: "stream-send"; connectionId: number; streamId?: number; data: Array<Uint8Array>; }
| { ty: "stream-send-close"; connectionId: number; streamId?: number; }