Socket
Book a DemoInstallSign in
Socket

@polkadot-api/logs-provider

Package Overview
Dependencies
Maintainers
2
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polkadot-api/logs-provider

This package exports a `JsonRpcProvider` enhancer to record logs of messages sent & received, and a provider that reads from these logs to replay existing sessions.

latest
Source
npmnpm
Version
0.0.6
Version published
Weekly downloads
4.8K
11.3%
Maintainers
2
Weekly downloads
 
Created
Source

@polkadot-api/logs-provider

This package exports a JsonRpcProvider enhancer to record logs of messages sent & received, and a provider that reads from these logs to replay existing sessions.

This can be useful to set up reproduction cases with a provider that behaves consistently.

withLogsRecorder

function withLogsRecorder(
  persistLog: (line: string) => void,
  provider: JsonRpcProvider,
): JsonRpcProvider

logsProvider

function logsProvider(logs: string[]): JsonRpcProvider

FAQs

Package last updated on 05 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts