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.
Go to Latest
type alias Event
import { type Event } from "https://deno.land/x/smoldot2@light-js-deno-v2.0.4/internals/local-instance.d.ts";
definition:
| { ty: "add-chain-result"; success: true; chainId: number; }
| { ty: "add-chain-result"; 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: Uint8Array; }
| { ty: "stream-send-close"; connectionId: number; streamId?: number; }