An open API service indexing awesome lists of open source software.

https://github.com/raid-guild/gitcoinco-ptoken-contracts

Personal Token contracts for Gitcoin
https://github.com/raid-guild/gitcoinco-ptoken-contracts

Last synced: 10 months ago
JSON representation

Personal Token contracts for Gitcoin

Awesome Lists containing this project

README

          

# Gitcoin Personal Tokens Contracts

Smart contracts for Gitcoin personal token functionality.

## Deployed Contracts

The personal token factory contract is deployed on mainnet and Rinkeby at [0x358bcf43fe7ec2659aD829F3604c72781fc93a9E](https://etherscan.io/address/0x358bcf43fe7ec2659aD829F3604c72781fc93a9E)

## Development

1. Install dependencies with `yarn`
2. Run tests with `yarn test`

## Deployment

To deploy a new factory contract:

1. Create a file called `.env` with the following contents:
```bash
INFURA_ID=yourInfuraId
PRIVATE_KEY=yourPrivateKeyForDeployments
ETHERSCAN_API_KEY=yourEtherscanApiKey
```
2. Open `hardhat.config.js` and configure the object for the network you want to deploy to
1. If you want to change the gas price, derivation path, or other paramters, see the [Hardhat docs](https://hardhat.org/config/#networks-configuration) for details
3. Run `yarn run deploy-dev` or `yarn run deploy-prod` to compile and deploy the contracts to the desired network
4. Once deployment is complete, be sure to update this README with the new deployment address, and verify the contract on Etherscan