Skip to content

Commit d9990fb

Browse files
committed
Merge branch 'feat/QoL' of https://github.com/0xPolygon/pol-token into feat/QoL
2 parents e28f092 + a8814d6 commit d9990fb

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,27 @@ A default implementation is included and this contract will be proxy upgradable
2626

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

29+
## Development
30+
31+
# Setup
32+
33+
- Install foundry: https://book.getfoundry.sh/getting-started/installation
34+
- Install Dependencies: `forge install`
35+
- Build: `forge build`
36+
- Test: `forge test`
37+
38+
# Deployment
39+
40+
1. Ensure .env file is set, `cp .env.example`
41+
2. Populate Enviornment variables: `source .env`
42+
43+
3. We use a forge script to deploy the contracts, and have an additional extract.js script to store a JSON file with
44+
45+
- (mainnet): `forge script script/Deploy.s.sol --broadcast --verify --rpc-url $RPC_URL --private-key $PRIVATE_KEY --etherscan-api-key $ETHERSCAN_API_KEY`
46+
- (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`
47+
48+
4. Run `node script/util/extract.js` to extract deployment information from forge broadcast output (broadcast/latest-run.json specifically).
49+
2950
---
3051

3152
Copyright (C) 2023 PT Services DMCC

0 commit comments

Comments
 (0)