Skip to content

Commit

Permalink
Merge branch 'feat/QoL' of https://github.com/0xPolygon/pol-token int…
Browse files Browse the repository at this point in the history
…o feat/QoL
  • Loading branch information
gretzke committed Oct 4, 2023
2 parents e28f092 + a8814d6 commit d9990fb
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,27 @@ A default implementation is included and this contract will be proxy upgradable

[Source Code](https://github.com/0xPolygon/pol-token/tree/main/src/DefaultEmissionManager.sol)

## Development

# Setup

- Install foundry: https://book.getfoundry.sh/getting-started/installation
- Install Dependencies: `forge install`
- Build: `forge build`
- Test: `forge test`

# Deployment

1. Ensure .env file is set, `cp .env.example`
2. Populate Enviornment variables: `source .env`

3. We use a forge script to deploy the contracts, and have an additional extract.js script to store a JSON file with

- (mainnet): `forge script script/Deploy.s.sol --broadcast --verify --rpc-url $RPC_URL --private-key $PRIVATE_KEY --etherscan-api-key $ETHERSCAN_API_KEY`
- (testnet, goerli for example): `forge script script/Deploy.s.sol --broadcast --verify --rpc-url $RPC_URL --private-key $PRIVATE_KEY --verifier-url https://api-goerli.etherscan.io/api --chain-id 5`

4. Run `node script/util/extract.js` to extract deployment information from forge broadcast output (broadcast/latest-run.json specifically).

---

Copyright (C) 2023 PT Services DMCC

0 comments on commit d9990fb

Please sign in to comment.