Skip to content

Commit

Permalink
update readme deploy commands (Uniswap#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
snreynolds authored Nov 17, 2022
1 parent 616fb7c commit df1338f
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,23 +180,41 @@ forge test
```

### To Deploy
Fill out parameters in `scripts/deployParameters/<network>.json`

Fill out parameters in `script/deployParameters/<network>.json`

```console
forge script --broadcast \
--rpc-url <RPC-URL> \
--private-key <PRIVATE_KEY> \
--sig 'run(string)' \
scripts/DeployUniversalRouter.s.sol:DeployUniversalRouter \
script/DeployUniversalRouter.s.sol:DeployUniversalRouter \
<pathToJSON>
```

### To Deploy and Verify

```console
forge script --broadcast \
--rpc-url <RPC-URL> \
--private-key <PRIVATE-KEY> \
--sig 'run(string)' \
script/DeployUniversalRouter.s.sol:DeployUniversalRouter \
<pathToJSON> \
--chain-id <CHAIN-ID>
--etherscan-api-key <ETHERSCAN-API-KEY> \
--verify
```

#### To Deploy Permit2 Alongside UniversalRouter

Fill out parameters in `scripts/deployParameters/<network>.json`

```console
forge script --broadcast \
--rpc-url <RPC-URL> \
--private-key <PRIVATE_KEY> \
--sig 'runAndDeployPermit2(string)' \
scripts/DeployUniversalRouter.s.sol:DeployUniversalRouter \
script/DeployUniversalRouter.s.sol:DeployUniversalRouter \
<pathToJSON>
```

0 comments on commit df1338f

Please sign in to comment.