JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 305
  • Score
    100M100P100Q88630F
  • License MIT

Package Exports

  • @cedelabs/providers
  • @cedelabs/providers/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@cedelabs/providers) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

cede.store provider

WARNING : THIS PACKAGE IS IN DEVELOPMENT AND DOES NOT DESCRIBE THE ACTUAL CONDITION OF THE TOOL.

The BaseProvider implements the Ethereum JavaScript provider specification ([EIP-1193]), but must be modified by a sub-class in order to function. StreamProvider is such a sub-class, which synchronizes its state and marshals JSON-RPC messages via a duplex stream. CedeInpageProvider further extends StreamProvider to support legacy provider interfaces in addition to [EIP-1193], and is used to instantiate the object injected by cede.store into web pages as window.cede.

Documentation

For more details, check the documentation.

Installation

npm install @cedelabs/providers

Usage

import { detectCedeProvider } from '@cedelabs/providers';

// Await for the provider to be injected in the DOM
const provider = await detectCedeProvider();

provider.request({ method: "connect" });

Do Not Modify the Provider

The Provider object should not be mutated by consumers under any circumstances. The maintainers of this package will neither fix nor take responsbility for bugs caused by third parties mutating the provider object.