@oasisprotocol/client-ext-utils
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Utilities related to browser extensions

This package contains a library for both building a browser extension and interacting with it from web content.

Developers, see this getting started guide.

Philosophy

A browser extension is a convenient place to implement a wallet so that it can be used with dApps. Prefer to have more responsibilities in the dApp, such as connecting to a node, estimating or configuring gas, setting nonces, and submitting transactions.

An extension that works by altering the JavaScript environment for all sites is a lot to trust. Prefer to have a dApp request to interact with an extension.

Inventory of what's here

  1. A messaging protocol for web content to connect to a browser extension.
  2. For use in web content, a ContextSigner implementation that forwards requests to a browser extension over the messaging protocol.
  3. For use in browser extensions, a library that understands the messaging protocol and calls given callbacks.

/@oasisprotocol/client-ext-utils/

    Package Sidebar

    Install

    npm i @oasisprotocol/client-ext-utils

    Weekly Downloads

    1

    Version

    1.0.0

    License

    Apache-2.0

    Unpacked Size

    28.2 kB

    Total Files

    20

    Last publish

    Collaborators

    • cedarmist
    • tjanez
    • luka_oasisprotocol
    • kostko
    • oasisprotocol-bot
    • pro-wh