File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,27 @@ A default implementation is included and this contract will be proxy upgradable
26
26
27
27
[ Source Code] ( https://github.com/0xPolygon/pol-token/tree/main/src/DefaultEmissionManager.sol )
28
28
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
+
29
50
---
30
51
31
52
Copyright (C) 2023 PT Services DMCC
You can’t perform that action at this time.
0 commit comments