0.0.2 • Published 5 years ago
dai-plugin-dcent-web v0.0.2
Usage
$ npm i dai-plugin-dcent-webimport DcentPlugin from 'dai-plugin-dcent-web'
//or
const DcentPlugin = require('dai-plugin-dcent-web')
maker.create('browser|http', {
plugins: [ DcentPlugin ]
...
})
maker.addAccount('name', {
type: 'dcent',
...
})For Contributor
Init project on ubuntu 19.10 server
Install node 11.10.x using nvm
# wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bashRunning either of the above commands downloads a script and runs it. The script clones the nvm repository to ~/.nvm, and adds the source lines from the snippet below to your profile (~/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc).
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvmVerify nvm Installation After Shell Restart
# command -v nvm
nvmInstall node 11.10.1
# nvm install 11.10.1Verify node, npm Installation
# node -v
v11.10.1
# npm -v
6.7.0Install Python
# sudo apt-get install pythonInstall yarn
# npm install -g yarnVerify Installation yarn
# yarn -v
1.19.1description
This project makes D.CENT Biometric Wallet available in Dai.js.
Get started developing with
yarnto install dependenciesyarn testchainwill launch a ganache testchain with all relevant Maker contracts deployedBuild the code for production with
yarn build