https://github.com/planetarium/wncg-bridge-contract-bsc
https://github.com/planetarium/wncg-bridge-contract-bsc
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/planetarium/wncg-bridge-contract-bsc
- Owner: planetarium
- Created: 2024-03-08T06:31:32.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-28T11:23:24.000Z (about 1 year ago)
- Last Synced: 2025-01-21T03:11:17.926Z (3 months ago)
- Language: HTML
- Size: 297 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://codecov.io/gh/planetarium/wncg-bridge-contract-bsc)
How to setup dev environment
```
$ node --version
v20.4.0
```1. Create `.env` file with these keys
```shell
MNEMONIC=
ETHERSCAN_API_KEY=
BSCSCAN_API_KEY=TRANSFER_TOKEN=
OPERATOR=
```2. Clean Cache & Install npm packages
```shell
# Clean cache
rm -rf node_modules;
rm -f package-lock.json;
npm cache clean --force;# Install npm packages
npm i
```3. Compile contracts
```shell
# Compile
npx hardhat compile
```4. run unit test and coverage report
```shell
npx hardhat test
npx hardhat coverage
```5. deploy
```shell
npx hardhat run scripts/deploy_BridgeBSC.js --network bsc_testnet
```