Skip to content

Latest commit

 

History

History
57 lines (36 loc) · 836 Bytes

File metadata and controls

57 lines (36 loc) · 836 Bytes

MetaVersus Platform Smart Contracts

Project is set to Private until beta release

Development

Setup

Make sure these tools are installed

  • nodejs
  • npm

Build and Test

Install dependencies

cmd$> npm install

Run local network

cmd$> npx hardhat node

Compile contracts

cmd$> npx hardhat compile

Deploy contracts (default is local network hardhat)

cmd$> npx hardhat run scripts/deploy.js --network <your-network>

Run all javascript tests

cmd$> npx hardhat test

Run specified javascript test or specified network (default is local network hardhat)

cmd$> npx hardhat test <test-file-path> --network <your-network>

Run solhint

cmd$> npx solhint --formatter table 'contracts/**/*.sol'