1.0.2 • Published 5 years ago

rpg-wallet-bridge.js v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

rpg-wallet-bridge.js - Bridge between Rpgcoin application and wallet

About

Rpgcoin applications don't have to be castodial wallet anymore. With rpg-wallet-bridge.js, they can request flexible actions to their users' wallet.

Installation

yarn add rpg-wallet-bridge

Usage

import RPGWalletBridge from "rpg-wallet-bridge"
const injected = window.rpgcoin
if (!injected || !injected.wallet) {
  console.log("RPGWalletBridge wallet isn't injected!")
  return
}
const rpgWalletBridge = new RPGWalletBridge(injected.wallet)

What is Asset?

assets are anything you can possibly think of that have been digitally embedded in the rpgcoin blockchain forever.

Documentation

Documentation can be found at GitHub Pages.

Building

Requirements

  • Node.js
  • npm
  • yarn

Build (tsc)

  1. $ yarn
  2. $ yarn build