- make sure you have latest Node LTS version and NPM installed in your system
- Install Truffle in your system by running
npm install -g truffle
- once truffle is installed clone this repository and run the command
npm install
in the root folder.
-
in the truffle config.js file look for the text
const MNEMONIC = "YOUR PRIVATE KEY"; replace "YOUR PRIVATE KEY" with private key of your wallet.
-
in the migrations/2_deploy_contract.js replace "SERVICE FEE COLLECTOR ADDRESS" with the wallet address where service fee will be sent.
-
run
npm run compile
to compile the contract -
run
npm run deploy-test
to deploy to bsc testnet -
run
npm run deploy-main
to deploy to bsc mainnet
- once the contract is deployed copy the contract address from the terminal
- go to bscscan.com or testnet.bscscan.com
- in the search box enter the contract address and search.
- go to the contract tab
- click on the verify and publish option
- on the verify page select compiler - solidity single file, compiler version - solidity 0.8.0 , license - MIT click next
- copy the contract source code and paste in the source code box and click on verify
- your contract will be verified
Email: singhshivam071093@gmail.com