openvasp-contracts
v2.0.0-rc
Published
OpenVASP smart contracts
Downloads
10
Maintainers
Readme
OpenVASP Contracts
This repository contains smart contracts for the reference implementation of the OpenVASP standard
Build
NB! Node v10 is required
- Execute
npm install
. - Execute
npm run build
.
Test
NB! Node v10 is required
- Execute
npm install
. - Execute
npm test
.
Deploy
NB! Node v10 is required
For local development
(It is expected, that ganache-cli
or similar development Ethereum server is up and running)
- Execute
npm install
. - Execute
npm run deploy -- --network development
.
To the Ethereum network
- Execute
npm install
- Create
.env
file. Specify (see.env.template
):
PRIVATE_KEY
private key to sign deployment transaction;NODE_URL
json rpc node url for Ethereum network.
- Execute
npm run deploy -- --network ethereum
. - Do not forget to remove
.env
file.