@passive-income/launchpad-contracts
v1.0.2
Published
Smart contracts for the PSI Launchpad
Downloads
6
Readme
Launchpad contracts
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.
Contracts
Binance Chain
Binance Test Chain
- PSI : 0x066Bd99080eC62FE0E28bA687A53aC00794c17b6
- PSIPadCampaignFactory : 0xB390E793a90ADDD68eE92F6AC6c3BAcba06DfF78
- PSIPadTokenDeployer : 0x69892baba78adda6b55a9008c36c56c8ccb3f3e9
- Default Token : 0x0dA67cC8f76142797CaAbC37e9D1f950f40167A9
- Default Token AnySwap : 0x8f8a02E84BFBD6d8606f366549BF9217F6b52d16
- PSIPadTokenLockFactory : 0x964c5cA7Abb66f53e912f0E0d8F17eD0FBbB9042
Compiling
Introduction to compiling these contracts
Install needed packages
npm install or yarn install
Compile code
npx hardhat compile
Test code
npx hardhat test
Run a local development node
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
Scripts
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>
Flatten contracts
npx hardhat flatten contracts/DPexRouter.sol > contracts-flattened/DPexRouter.sol