Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cedelabs/providers

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cedelabs/providers

[Cede.store](https://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 partiall

  • 1.5.1
  • npm
  • Socket score

Version published
Weekly downloads
255
decreased by-4.85%
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 17 Dec 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc