1.0.10 • Published 7 months ago

mto-contracts v1.0.10

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

MTO contracts

how to do a quick test

install hardhat prerequisites

Node version 16.*, then:

npm install 

set up env variables

create .env file from .env.sample

start unit tests

npx hardhat test

deploy all contracts on localhost network

  1. start hardhat node
npx hardhat node
  1. deploy contracts
 npx hardhat run --network localhost scripts/deploy_gateway.js
  1. verify contracts
 npx hardhat verify --network localhost <DEPLOYED_CONTRACT_ADDRESS> <TOKEN_ADDRESS>