https://github.com/protofire/ve8020-launchpad
https://github.com/protofire/ve8020-launchpad
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/protofire/ve8020-launchpad
- Owner: protofire
- Created: 2023-09-05T15:16:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-02T12:58:32.000Z (over 1 year ago)
- Last Synced: 2024-05-03T00:42:15.833Z (over 1 year ago)
- Language: TypeScript
- Size: 453 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ve8020 Launchpad
Detailed instructions for each contract:
[Launchpad](./docs/1_Launchpad.md)
[VotingEscrow](./docs/2_VotingEscrow.md)
[RewardDistributor](./docs/3_RewardDistributor.md)
[RewardFaucet](./docs/4_RewardFaucet.md)
Additional modules:
[LensReward](./docs/misc_docs/LensReward.md)
[SmartWalletWhitelist](./docs/misc_docs/SmartWalletWhitelist.md)
In case of errors, visit this [troubleshooting section](./docs/misc_docs/Troubleshooting.md).
## Installation
Clone repo and run:
```sh
npm i
```
## Deploy contracts
Create `config.js` file like provided `config.example.js` before deployment. Update necessary variables.
To deploy VotingEscrow, RewardDistributor implementations and **Launchpad** contract run following command:
```sh
npx hardhat run ./scripts/deploy.ts --network networkName
```
Check list of available networks in the [hardhat.config.ts](./hardhat.config.ts) file.
### Testing
To run tests:
```sh
npx hardhat test
```