Package Exports
- @cedelabs/providers
- @cedelabs/providers/dist/providers.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
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/providersUsage
import { detectCedeProvider } from '@cedelabs/providers';
// Await for the provider to be injected in the DOM
const provider = await detectCedeProvider();
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.