forked from foundry-rs/book
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-zksync-specifics-for-forge-init
- Loading branch information
Showing
10 changed files
with
1,091 additions
and
513 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
## Overview of Anvil-ZKsync | ||
|
||
Anvil-ZKsync is a local testnet node shipped with Foundry-ZKsync. You can use it for testing your contracts from frontends or for interacting over RPC. | ||
|
||
Anvil-ZKsync is part of the Foundry-ZKsync suite and is installed alongside `forge`, and `cast`. If you haven't installed Foundry-ZKsync yet, see [Foundry-ZKsync installation](../getting-started/installation.md). | ||
|
||
> Note: If you have an older version of Foundry-ZKsync installed, you'll need to re-install `foundryup-zksync` in order for Anvil-ZKsync to be downloaded. | ||
### How to use Anvil-ZKsync | ||
|
||
To use Anvil-ZKsync, simply type `anvil-zksync`. You should see a list of accounts and private keys available for use, as well as the address and port that the node is listening on. | ||
|
||
Anvil-ZKsync is highly configurable. You can run `anvil-zksync -h` to see all the configuration options. | ||
|
||
Some basic options are: | ||
|
||
```bash | ||
# Number of dev accounts to generate and configure. [default: 10] | ||
anvil-zksync -a, --accounts <ACCOUNTS> | ||
|
||
# Port number to listen on. [default: 8545] | ||
anvil-zksync -p, --port <PORT> | ||
``` | ||
|
||
> 📚 **Reference** | ||
> | ||
> See the [`anvil-zksync` Reference](../reference/anvil-zksync/) for in depth information on Anvil-ZKsync and its capabilities. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.