Skip to content

Commit

Permalink
docs: Adds documentation for zkSync deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
max-wickham authored Sep 6, 2024
1 parent fd0ad29 commit 200225a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ out/
# Ignore broadcast logs
broadcast/

# Ignore zkout
zkout/

# Forge auto-generated docs
docs_generated/

Expand Down
13 changes: 13 additions & 0 deletions docs/Deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ $ WAT_BYTES32=$(cast format-bytes32-string $WAT) && \
script/${SCRIBE_FLAVOUR}.s.sol:${SCRIBE_FLAVOUR}Script
```

In the case of zksync add this final flag:

```
--zksync
```

The deployment command will log the address of the newly deployed contract address. Store this address in the `$SCRIBE` environment variable and continue with the verification.

Verification:
Expand All @@ -69,3 +75,10 @@ $ WAT_BYTES32=$(cast format-bytes32-string $WAT) && \
--constructor-args $(cast abi-encode "constructor(address,bytes32)" "$INITIAL_AUTHED" "$WAT_BYTES32") \
src/${SCRIBE_FLAVOUR}.sol:${SCRIBE_FLAVOUR}_1
```


In the case of zksync add these final two flags:

```
--zksync --evm-version london
```
4 changes: 4 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@ runs = 100
runs = 100

# See more config options https://github.com/foundry-rs/foundry/tree/master/config


[profile.default.zksync]
zksolc = "1.5.1"

0 comments on commit 200225a

Please sign in to comment.