Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

Alternative client for Substrate-based chains.
Go to Latest
type alias Event
import { type Event } from "https://deno.land/x/smoldot2@light-js-deno-v1.0.6/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: "current-task"; taskName: string | null; }
| { ty: "wasm-panic"; message: string; }
| { 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; }