Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/push-protocol/push-smart-contracts-genesis
$PUSH Token + Vesting Smart Contracts
https://github.com/push-protocol/push-smart-contracts-genesis
smart-contract token vesting
Last synced: 20 days ago
JSON representation
$PUSH Token + Vesting Smart Contracts
- Host: GitHub
- URL: https://github.com/push-protocol/push-smart-contracts-genesis
- Owner: push-protocol
- Created: 2020-09-13T18:04:59.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-27T15:17:34.000Z (8 months ago)
- Last Synced: 2024-04-27T16:28:38.059Z (8 months ago)
- Topics: smart-contract, token, vesting
- Language: JavaScript
- Homepage:
- Size: 6.92 MB
- Stars: 20
- Watchers: 8
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Audit: audit/EPNS-release-Audit.pdf
Awesome Lists containing this project
README
# Push Protocol (EPNS)
## PUSH Tokens and Time Vesting Smart Contracts[![Build Status](https://travis-ci.com/ethereum-push-notification-service/epns-smart-contracts-staging.svg?token=3pZwaXsWcsvpExABUhSW&branch=master)](https://travis-ci.com/ethereum-push-notification-service/epns-smart-contracts-staging)
The repo contains smart contracts that form the **$PUSH** token functionality and all the vesting contracts functionality including their test cases.
## Setup
- Clone repo
- Run **npm install**
- Run **npm start** first to setup **environment variables**
- Run **hardhat** functions
- Read more about Hardhat here: https://hardhat.org/### Initial Setup Example
```sh
npm install
npm start
npx hardhat [operations]
```## Compiling
For compiling the smart contracts placed under contracts
```sh
npx hardhat compile
```## Testing
The test folder contains various test cases in different test files.### Run Entire Testcases
```sh
npx hardhat test
```### Run Specific Testcases
```sh
npx hardhat test ./test/token/EPNS.NonERC20.test
npx hardhat test ./test/token/EPNS.StandardERC20.test
```## Deploy
To deploy smart contracts on a selected network### Deploy on the default network
```sh
npx hardhat run scripts/deploy.js
```### Deploy on different network
```sh
npx hardhat run scripts/deploy.js --network ropsten
```