This project is using Hardhat for development, compiling, testing and deploying. The development tool used for development is Visual Studio Code which has great plugins for solidity development and mocha testing.
-
Binance Chain
- TetherMoon : 0x7EBc08B3D43c3989F2CdfB6aEFADAf28bC148665
- TetherMoonDividendTracker : 0xe9600b7a2dff8a806c88ec8a9aa0f5823d083309
-
Binance Test Chain
- TetherMoon : 0x6E6182bca02448494F725A5fd726985a87EDEef5
- TetherMoonDividendTracker : 0xbD8B4f7F2141714ae1C02a3f924030A72Cb304eD
Introduction to compiling these contracts
npm install or yarn install
npx hardhat compile
npx hardhat test
This is needed before a truffle migrate to the development network. You can also use this for local development with for example metamask. Hardhat node guide
npx hardhat node
Use the scripts in the "scripts" folder. Each script has the command to start it on top.
Make sure you have set the right settings in your '.env' file. You have to create this file with the following contents yourself:
BSC_PRIVATE_KEY=<private_key>
BSC_TEST_PRIVATE_KEY=<private_key>
BSC_API_TOKEN=<bscscan_api_token>