Skip to content

Commit

Permalink
fix: updated to anvil-zksync from era_test_node
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickAlphaC committed Dec 8, 2024
1 parent f966ab4 commit 291f06d
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ secrets/
secret/
.DS_Store
era_test_node.log
anvil-zksync.log
tests/data/complex_project/.deployments.db
# All deployments, except the one in the deployment test project
.deployments.db
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ You must have the following installed to proceed with contributing to this proje
### ZKync requirements
If you wish to run the ZKync tests, you'll need these as well (ran with `just test-z`)

- [era_test_node](https://github.com/matter-labs/era-test-node)
- You'll know you did it right if you can run `era_test_node --version` and you see a response like `era_test_node 0.1.0 (a178051e8 2024-09-07)`
- [anvil-zksync](https://github.com/matter-labs/anvil-zksync)
- You'll know you did it right if you can run `anvil-zksync --version` and you see a response like `anvil-zksync 0.2.1`
- [era-compiler-vyper](https://github.com/matter-labs/era-compiler-vyper)
- You'll know you did it right if you can run `zkvyper --version` and you see a response like `Vyper compiler for ZKync v1.5.4 (LLVM build f9f732c8ebdb88fb8cd4528482a00e4f65bcb8b7)`

Expand Down
4 changes: 2 additions & 2 deletions docs/source/tutorials/zksync-getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Installation

To get started with ZKsync on ``moccasin``, you'll need the following:

- `era_test_node <https://github.com/matter-labs/era-test-node>`_
- `anvil-zksync <https://github.com/matter-labs/anvil-zksync>`_

- You'll know you did it right if you can run ``era_test_node --version`` and you see a response like ``era_test_node 0.1.0 (a178051e8 2024-09-07)``
- You'll know you did it right if you can run ``anvil-zksync --version`` and you see a response like ``anvil-zksync 0.1.0 (a178051e8 2024-09-07)``

- `era-compiler-vyper <https://github.com/matter-labs/era-compiler-vyper>`_

Expand Down
2 changes: 1 addition & 1 deletion moccasin/_sys_path_and_config_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def _setup_network_and_account_from_config_and_cli(
else:
boa.env.add_account(mox_account, force_eoa=True)

# Once the era_test_node gets pranking support, we'll have to update this.
# Once the anvil-zksync gets pranking support, we'll have to update this.
if not mox_account and active_network.name is ERAVM:
boa.env.add_account(MoccasinAccount(private_key=ERA_DEFAULT_PRIVATE_KEY))

Expand Down
1 change: 1 addition & 0 deletions moccasin/constants/file_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@
.deployments*
.deployments.db
era_test_node.log
anvil-zksync.log
.DS_Store
"""

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "moccasin"
version = "0.3.5"
version = "0.3.6"
description = "Pythonic smart contract development framework using Titanoboa"
authors = [
{ name = "PatrickAlphac", email = "54278053+PatrickAlphaC@users.noreply.github.com" },
Expand All @@ -9,7 +9,7 @@ authors = [
dependencies = [
"titanoboa>=v0.2.5",
"python-dotenv>=1.0.1",
"titanoboa-zksync>=0.2.8",
"titanoboa-zksync>=0.2.9",
"tqdm>=4.66.5",
"tomlkit>=0.13.2",
# For preserving comments when writing to toml
Expand Down
1 change: 1 addition & 0 deletions tests/data/tests_project/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -178,3 +178,4 @@ lib/
.deployments*
.deployments.db
era_test_node.log
anvil-zksync.log
2 changes: 1 addition & 1 deletion tests/data/zksync_project/moccasin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ default_account_name = "anvil1"
unsafe_password_file = "$ANVIL1_PASSWORD_FILE"
save_to_db = false

[networks.era_test_node]
[networks.anvil-zksync]
url = "http://127.0.0.1:8011"
chain_id = 260
is_zksync = true
Expand Down
10 changes: 5 additions & 5 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 291f06d

Please sign in to comment.