The system of Smart-Contracts for bonds digitization
- nodeJS v10.15.0 or later
- npm 6.4.1 or later
- Truffle v5.1.48 (core: 5.1.48) or later
npm i
- install all dependencies
npm run build
- build all contracts
npm run test
- start all testsnpm run test +fast
- start tests without rebuild contractsnpm run test test/<filename>.js
- run tests for only one filenpm run test +fast test/<filename>.js
- run tests for only one file without rebuild contracts
npm run coverage
- to check the percentage of code covered by tests
npm run flatten
- make Flattened.sol file with all contractsnpm run flatten contracts/<filename>.sol
- make Flattened.sol file for same contract
- create
.secret
file in the project directory and push there seed phrase belonging to your Ethereum account - create
.env
file with next variables:
INFURA_ID=<your_infura_project_id>
ETHERSCAN_API_KEY=<your_etherscan_api_key>
DEPLOYER_ACCOUNT=<your_ethereum_account>
TEAM_ACCOUNT=<team_ethereum_account>
START_TIME=<unix_timestamp>
npm run deploy
- deploy and configure all contracts in rinkeby testnetnpm run deploy <network>
- deploy and configure all contracts for some network [NOT IMPLEMENTED]
npm run verify
- verify all contracts in rinkeby testnetnpm run verify <contract>
- verify only one contract in rinkeby testnetnpm run verify all <network>
- verify all contracts in networknpm run verify <contract> <network>
- verify only one contract in network