Skip to content

Commit 0633029

Browse files
chore: rebrand to anvil-zksync (#277)
<!-- Thank you for contributing to the ZKsync Docs! Before submitting the PR, please make sure you do the following: - Update your PR title to follow [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) - Read the [Contributing Guide](https://github.com/matter-labs/zksync-docs/blob/main/CONTRIBUTING.md). - Understand our [Code of Conduct](https://github.com/matter-labs/zksync-docs/blob/main/CODE_OF_CONDUCT.md) - Please delete any unused parts of the template when submitting your PR --> # Description - Rebrands era-test-node to anvil-zksync <!-- Please describe what are the changes and what they are solving for in this PR. --> ## Linked Issues <!-- If you have any issues this PR is related to, link them here. --> <!-- Check out https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue on how to automate linking a GitHub Issue to a PR. --> ## Additional context --------- Co-authored-by: romsters <[email protected]>
1 parent 586f20e commit 0633029

File tree

22 files changed

+150
-136
lines changed

22 files changed

+150
-136
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This CODEOWNERS file sets the individuals responsible for code in the era-test-node repository.
1+
# This CODEOWNERS file sets the individuals responsible for code in the zksync-docs repository.
22

33
# These users are the default owners for everything in the repo.
44
# They will be requested for review when someone opens a pull request.

content/00.zksync-era/10.guides/20.zksync-101/00.index.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ npm install -g zksync-cli
4040

4141
## Setup local node
4242

43-
This series of guides will use an in memory node which allows for quicker testing and debugging processes.
43+
This series of guides will use in memory anvil-zksync node which allows for quicker testing and debugging processes.
4444
A great benefit of using a local node is that you will avoid incurring any actual transaction costs.
4545
ZKsync Era node provides a set of rich wallets that come with more than enough ETH to use for development.
4646

47-
### Run a local in memory node
47+
### Run a local in memory anvil-zksync node
4848

49-
To run a local in memory node on your machine, you will need Docker running.
49+
To run a local in memory anvil-zksync node on your machine, you will need Docker running.
5050
The easiest way to start Docker is to run the Docker Desktop app.
5151

5252
We are going to use the "In memory node" module for our local node setup.
@@ -79,12 +79,13 @@ We are going to use the "In memory node" module for our local node setup.
7979
zksync-cli dev start
8080
```
8181

82-
The in memory node includes pre-configured rich wallets for use, see [in-memory-node rich wallets](/zksync-era/tooling/local-setup/in-memory-node#pre-configured-rich-wallets).
82+
anvil-zksync node includes pre-configured rich wallets for use, see [anvil-zksync rich wallets](/build/test-and-debug/in-memory-node#pre-configured-rich-wallets).
8383

84-
Your in memory node is accessible at **[http://127.0.0.1:8011](http://127.0.0.1:8011/)**, ready for deployment or testing purposes.
84+
Your anvil-zksync node is accessible at **[http://127.0.0.1:8011](http://127.0.0.1:8011/)**, ready for deployment or testing purposes.
8585
You can use the Docker Desktop app to view logs from the running ZKsync Era node or use the `zksync-cli dev logs` command.
86-
When you are done running your in memory node, you can stop it with `zksync-cli dev stop`.
87-
You can learn more about managing a local node with ZKsync CLI on [Running a node](/zksync-era/tooling/zksync-cli/running-a-node).
86+
87+
When you are done running your anvil-zksync node, you can stop it with `zksync-cli dev stop`.
88+
You can learn more about managing a local node with ZKsync CLI on [Running a node](/build/zksync-cli/running-a-node).
8889

8990
## Create the ZKsync 101 project
9091

@@ -98,7 +99,7 @@ zksync-cli create zksync-101 --template zksync-101
9899
After you run the `create` command, the CLI will download and install packages for the project.
99100
You should see a success message and instructions to get started with your project.
100101

101-
Since we are using a local in memory node for development, we can use one of the
102+
Since we are using a local in memory anvil-zksync node for development, we can use one of the
102103
rich wallets for transactions and deployments.
103104

104105
Rename the `.env.example` to `.env` which includes the private key for the first rich wallet.

content/00.zksync-era/10.guides/20.zksync-101/10.hello-zksync.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ In this section you will learn how to:
99

1010
:check-icon Craft a smart contract to fund Zeek's latest adventure.
1111

12-
:check-icon Deploy the contract onto your local in memory node.
12+
:check-icon Deploy the contract onto your local in memory anvil-zksync node.
1313

1414
:check-icon Interact with the contract with ZKsync CLI
1515

@@ -94,7 +94,7 @@ Estimated deployment cost: 0.0065057128 ETH
9494

9595
## Interact with the contract
9696

97-
Now that our contract is deployed to our local in memory node, let's interact with it!
97+
Now that our contract is deployed to our local in memory anvil-zksync node, let's interact with it!
9898
We initially set up the crowdfunding campaign with an amount of `.02 ETH` for the goal.
9999

100100
### Read from the contract using ZKsync CLI
@@ -191,7 +191,7 @@ to interact with the deployed contract using ZKsync CLI!
191191
- **EVM Compatibility:** ZKsync is EVM compatible and you can write smart contracts in Solidity or Vyper.
192192
- **Custom Compilation:** Contracts deployed to ZKsync are compiled using `zksolc` or `zkvyper` as
193193
they generate a special bytecode for ZKsync's ZKEVM.
194-
- **Development Tools:** In memory node is a quick and easy local node environment to deploy to,
194+
- **Development Tools:** In memory anvil-zksync node is a quick and easy local node environment to deploy to,
195195
saving costs on deployment while developing.
196196
- **ZKsync CLI:** A powerful command line tool to interact with contracts easily.
197197

content/00.zksync-era/10.guides/20.zksync-101/20.contract-factory.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ numerous similar contracts efficiently.
2626

2727
## Setup the project
2828

29-
Make sure to go through the setup provided in the initial [Getting started](/zksync-era/guides/zksync-101) section.
30-
You will have downloaded the 101 project through ZKsync CLI `create` and started up a local in memory node for development.
29+
Make sure to go through the setup provided in the initial [Getting started](/build/start-coding/zksync-101) section.
30+
You will have downloaded the 101 project through ZKsync CLI `create` and started up a local in memory anvil-zksync node for development.
3131

32-
If you haven't started up your local in memory node or you're not sure, run the following:
32+
If you haven't started up your local in memory anvil-zksync node or you're not sure, run the following:
3333

3434
```bash
3535
zksync-cli dev restart

content/00.zksync-era/10.guides/20.zksync-101/30.testing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ in the second, work flawlessly.
2020
Make sure to go through the setup provided in the initial [Getting started](/zksync-era/guides/zksync-101) section.
2121
You will have downloaded the 101 project through ZKsync CLI `create`.
2222
Since we are using `hardhat-zksync` for testing, you do not need to have the
23-
in memory node running for this section.
23+
in memory anvil-zksync node running for this section.
2424

25-
If your local in-memory node is running, stop it with the following command:
25+
If your local `anvil-zksync` node is running, stop it with the following command:
2626

2727
```bash
2828
zksync-cli dev stop

content/00.zksync-era/10.guides/20.zksync-101/40.upgrading.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ lead you through the strategies and practices for making the `CrowdfundingCampai
1515

1616
## Setup the project
1717

18-
Make sure to go through the setup provided in the initial [Getting started](/zksync-era/guides/zksync-101) section.
19-
You will have downloaded the 101 project through ZKsync CLI `create` and started up a local in-memory node for development.
18+
Make sure to go through the setup provided in the initial [Getting started](/build/start-coding/zksync-101) section.
19+
You will have downloaded the 101 project through ZKsync CLI `create` and started up a local anvil-zksync node for development.
2020

21-
If you haven't started up your local in-memory node or you're not sure, run the following:
21+
If you haven't started up your local `anvil-zksync` node or you're not sure, run the following:
2222

2323
```bash
2424
zksync-cli dev restart

content/00.zksync-era/10.guides/20.zksync-101/_upgrading/_beacon_proxy_contract_upgradability.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ V2_BeaconCrowdfundingCampaign initialized. Transaction Hash: 0x5f3131c77fcac1939
183183
## Verify upgradeable contracts
184184

185185
::callout{icon="i-heroicons-exclamation-triangle" color="amber"}
186-
Since we are using the in memory node for our smart contracts, we do not have the feature
186+
Since we are using the in memory anvil-zksync node for our smart contracts, we do not have the feature
187187
available to verify the smart contract.
188188

189189
The following explains how you can verify an upgraded smart contract on testnet or mainnet.

content/00.zksync-era/10.guides/20.zksync-101/_upgrading/_transparent_proxy_contract_upgradability.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ V2CrowdfundingCampaign initialized. Transaction Hash: 0x3a7cbf9d584457bc6b452964
182182
## Verify upgradable contracts
183183

184184
::callout{icon="i-heroicons-exclamation-triangle" color="amber"}
185-
Since we are using in memory node for our smart contracts, we do not have the feature
185+
Since we are using in memory anvil-zksync node for our smart contracts, we do not have the feature
186186
available to verify the smart contract.
187187

188188
The following explains how you can verify an upgraded smart contract on testnet or mainnet.

content/00.zksync-era/10.guides/20.zksync-101/_upgrading/_uups_contract_upgradability.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ V2_UUPSCrowdfundingCampaign initialized! Transaction Hash: 0xab959f588b64dc6dee1
187187
## Verify upgradable contracts
188188

189189
::callout{icon="i-heroicons-exclamation-triangle" color="amber"}
190-
Since we are using the in memory node for our smart contracts, we do not have the feature
190+
Since we are using the in memory anvil-zksync node for our smart contracts, we do not have the feature
191191
available to verify the smart contract.
192192

193193
The following explains how you can verify an upgraded smart contract on testnet or mainnet.

content/00.zksync-era/10.guides/30.testing/10.testing-with-hardhat.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
---
22
title: Hardhat
3-
description: Learn how to test on era-test-node with Hardhat.
3+
description: Learn how to test on anvil-zksync with Hardhat.
44
---
55

66
In the world of decentralized applications, the margin for error is remarkably narrow.
77
A single mistake in a contract can have catastrophic implications.
88
For those seeking an efficient method to test and refine their contracts,
9-
this guide showcases how to utilize Hardhat and `era_test_node` for all testing needs.
9+
this guide showcases how to utilize Hardhat and `anvil-zksync` for all testing needs.
1010

11-
To test our contract, we are going to use Hardhat and `era_test_node` for rapid local development.
11+
To test our contract, we are going to use Hardhat and `anvil-zksync` for rapid local development.
1212
In our tests we're going to use `zksync-ethers` to interact with the `Greeter` contract,
1313
and we'll use [Mocha](https://mochajs.org/) as our test runner.
1414

1515
### Prerequisites
1616

17-
- `zksync-cli` installed from the [zksync-cli section](/zksync-era/tooling/zksync-cli).
18-
- `era_test_node` installed and running. See [In-memory Node](/zksync-era/tooling/local-setup/in-memory-node).
17+
- `zksync-cli` installed from the [zksync-cli section](/build/zksync-cli).
18+
- `anvil-zksync` installed and running. See [anvil-zksync](/build/test-and-debug/in-memory-node).
1919

2020
---
2121
## Environment setup
@@ -73,10 +73,10 @@ and we'll use [Mocha](https://mochajs.org/) as our test runner.
7373
The `@nomicfoundation/hardhat-chai-matchers` plugin adds Ethereum specific capabilities
7474
to the [Chai](https://www.chaijs.com/) assertion library for testing smart contracts.
7575

76-
1. Start `era_test_node`:
76+
1. Start `anvil-zksync`:
7777

7878
```bash
79-
./target/release/era_test_node run
79+
./target/release/anvil-zksync run
8080
```
8181

8282
---
@@ -288,7 +288,7 @@ This section imports all necessary utilities and configurations needed to run ou
288288
- `expect` from Chai provides assertion functionalities for our tests.
289289
- `Wallet`, `Provider`, and `Contract` from `zksync-ethers` help us with ZKsync functionalities like creating wallets and interacting with contracts.
290290
- `hre` and `Deployer` give us hardhat specific functionalities for deploying and interacting with our contract.
291-
- `zkSyncTestnet` from our hardhat configuration provides network details of our running `era_test_node.`
291+
- `zkSyncTestnet` from our hardhat configuration provides network details of our running `anvil-zksync.`
292292
293293
#### Contract Deployment Utility
294294

0 commit comments

Comments
 (0)