Skip to content

Commit 71d4a3c

Browse files
committed
Added zksync rpc and readme
Signed-off-by: Faisal Usmani <[email protected]>
1 parent 4252fd4 commit 71d4a3c

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,24 @@ forge script script/001DeployHubPool.s.sol:DeployHubPool --rpc-url ethereum --br
7777

7878
```
7979

80+
#### Foundry (ZKSync)
81+
82+
To enable ZKSync support, the zksync fork of foundry must be installed (see [here](https://foundry-book.zksync.io/introduction/installation#using-foundryup-zksync) for instructions).
83+
84+
Also, the `FOUNDRY_PROFILE` environment variable must be set to `zksync`.
85+
86+
```shell
87+
export FOUNDRY_PROFILE=zksync
88+
89+
forge script script/016DeployZkSyncSpokePool.s.sol:DeployZkSyncSpokePool --rpc-url zksync --broadcast --verify -vvvv
90+
```
91+
92+
Alternatively, the `yarn forge-script-zksync` command can be used to deploy the contract.
93+
94+
```shell
95+
yarn forge-script-zksync script/016DeployZkSyncSpokePool.s.sol:DeployZkSyncSpokePool --rpc-url zksync --broadcast --verify -vvvv
96+
```
97+
8098
### SVM
8199

82100
Before deploying for the first time make sure all program IDs in `lib.rs` and `Anchor.toml` are the same as listed when running `anchor keys list`. If not, update them to match the deployment keypairs under `target/deploy/` and commit the changes.

foundry.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ scroll = "${NODE_URL_534352}"
5858
soneium = "${NODE_URL_1868}"
5959
unichain = "${NODE_URL_130}"
6060
world-chain = "${NODE_URL_480}"
61+
zksync = "${NODE_URL_324}"
6162

6263

6364
[etherscan]

0 commit comments

Comments
 (0)