1.0.1 • Published 2 years ago

metamask-wallet v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Introduction

Dklp Wallet is a blockchain bridge help you to power your Dapp

How to use?

Install

npm install --save dklp-wallet

Configuration

import Wallet from 'dklp-wallet';

// ... Something React here

render() {
  <Wallet visible={visible} options={options} done={callback} />
}

Returned provider will be assigned in window.capsuleWallet.provider as a global variable for your Dapp can access it anywhere.

How to test?

Unit test

Not yet

Tool test

npm start

The app will be run on port 3000 with https and support hot-loading. (If the browser asks something, please trust it and process straight forward)

Appendix

Version of important dependencies

"web3": "^0.20.7"

Cheatsheet

#CommandsDescriptions
1npm installInstall module packages
2npm run buildBuild libraries in production
3npm startRun tool test