1.13.0 • Published 5 months ago

@cedelabs/providers v1.13.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

cede.store provider

Cede.store exposes its API via a JavaScript object in the web page. This object is called "the Provider". The Provider object is asynchronously injected into the DOM and is accessible through the window.cede name space. It partially implements the Ethereum JavaScript provider specification (EIP-1193).

Provider API documentation is available here: https://docs.cede.store/.

What does this package?

  • Detects window.cede provider object
  • Wraps the Provider object to have a Stronly Typed interface.
  • It automatically selects the appropriate method versions (refer to cede.store documentation for more information)

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();

// If cede.store is not yet installed
if (!provider) {
  window.open('https://cede.store', '_blank'); // open cede.store page
}

const vaults = await 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.

1.13.0

5 months ago

1.12.0

5 months ago

1.11.0

6 months ago

1.10.0

6 months ago

1.9.1

8 months ago

1.9.0

8 months ago

1.9.2

8 months ago

1.8.0

8 months ago

1.7.0

8 months ago

1.6.0

9 months ago

1.5.1

11 months ago

1.2.0

1 year ago

1.1.0

1 year ago

1.5.0

12 months ago

1.4.0

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

1.0.0

2 years ago