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
- ORT : 0x1d64327C74d6519afeF54E58730aD6fc797f05Ba
- StakingPool : 0x6f40A3d0c89cFfdC8A1af212A019C220A295E9bB
-
Binance Test Chain
- ORT : 0x5Ed78a73d29696f8B591ea30Ce73E93CcE9514eE
- StakingPool : 0xb369c518dAe2388C264Ee14d704A96934F49a27F
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>
npx hardhat flatten contracts/DPexRouter.sol > contracts-flattened/DPexRouter.sol