Contains modified smart contract running on HashNet blockchain needed for interaction with DOME solution. Original unmodified smart contract can be found here.
Short overview of example:
- Prerequisites
- Install dependencies
- Build contract
- Build contract deployment application
- Deploy contract
- NodeJS (LTS/Iron)
- npm
- web3js 4.0 or higher
- solc
# Install
yarn installyarn build:contractyarn buildnode node dist/index.js --contractDir=./contract_bin --providerUrl=https://jsongw.testnet.tolar.io/jsonrpc --networkId=2 --privateKey=0x67f3c68cedd11ef77ed6b92ca9fd82c699ccfc5f1fd96fa485b0ffeb2cf60fdf