1.0.1 • Published 4 years ago
metamask-wallet v1.0.1
Introduction
Dklp Wallet is a blockchain bridge help you to power your Dapp
How to use?
Install
npm install --save dklp-walletConfiguration
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 yetTool test
npm startThe 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
| # | Commands | Descriptions |
|---|---|---|
| 1 | npm install | Install module packages |
| 2 | npm run build | Build libraries in production |
| 3 | npm start | Run tool test |
1.0.1
4 years ago