Skip to content

Commit

Permalink
wip: updating naming from etn to anvil-zksync
Browse files Browse the repository at this point in the history
  • Loading branch information
dutterbutter committed Nov 27, 2024
1 parent e5cd460 commit accf077
Show file tree
Hide file tree
Showing 39 changed files with 1,014 additions and 1,078 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This CODEOWNERS file sets the individuals responsible for code in the era-test-node repository.
# This CODEOWNERS file sets the individuals responsible for code in the anvil-zksync repository.

# These users are the default owners for everything in the repo.
# They will be requested for review when someone opens a pull request.
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ jobs:
- name: Create artifact
run: |
cd ./target/release
tar -czf era_test_node-${{ matrix.os }}.tar.gz ./era_test_node*
tar -czf anvil-zksync-${{ matrix.os }}.tar.gz ./anvil-zksync*
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: era_test_node-${{ matrix.os }}.tar.gz
path: ./target/release/era_test_node-${{ matrix.os }}.tar.gz
name: anvil-zksync-${{ matrix.os }}.tar.gz
path: ./target/release/anvil-zksync-${{ matrix.os }}.tar.gz
e2e:
needs: build
uses: ./.github/workflows/e2e.yml
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ jobs:
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=./era_test_node/index.html">
<meta http-equiv="refresh" content="0; url=./anvil-zksync/index.html">
<script type="text/javascript">
window.location.href = "./era_test_node/index.html"
window.location.href = "./anvil-zksync/index.html"
</script>
<title>Page Redirection</title>
</head>
<body>
If you are not redirected automatically, follow this <a href='./era_test_node/index.html'>link to example</a>.
If you are not redirected automatically, follow this <a href='./anvil-zksync/index.html'>link to example</a>.
</body>
</html>' > ./target/doc/index.html
- name: Generate rustbook
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/e2e-rust.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Testing era_test_node using e2e (Rust version)
name: Testing anvil-zksync using e2e (Rust version)
on:
workflow_call:

Expand All @@ -18,18 +18,18 @@ jobs:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: era_test_node-${{ matrix.os }}.tar.gz
name: anvil-zksync-${{ matrix.os }}.tar.gz

- name: Extract era_test_node
- name: Extract anvil-zksync
id: extract_node
run: |
echo "Extracting era_test_node binary"
tar -xzf era_test_node-${{ matrix.os }}.tar.gz
chmod +x era_test_node
echo "Extracting anvil-zksync binary"
tar -xzf anvil-zksync-${{ matrix.os }}.tar.gz
chmod +x anvil-zksync
- name: Launch tests
id: launch
working-directory: ./e2e-tests-rust
run: cargo test
env:
ERA_TEST_NODE_BINARY_PATH: ../era_test_node
ANVIL_ZKSYNC_BINARY_PATH: ../anvil-zksync
18 changes: 9 additions & 9 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Testing era_test_node using e2e
name: Testing anvil-zksync using e2e
on:
workflow_call:

Expand All @@ -24,16 +24,16 @@ jobs:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: era_test_node-${{ matrix.os }}.tar.gz
name: anvil-zksync-${{ matrix.os }}.tar.gz

- name: Start the era_test_node
- name: Start the anvil-zksync
id: start_node
run: |
echo "Extracting era_test_node binary"
tar -xzf era_test_node-${{ matrix.os }}.tar.gz
chmod +x era_test_node
echo "Extracting anvil-zksync binary"
tar -xzf anvil-zksync-${{ matrix.os }}.tar.gz
chmod +x anvil-zksync
echo "Starting node in background"
./era_test_node 2>&1 | tee era_test_node_output.log &
./anvil-zksync 2>&1 | tee anvil-zksync-output.log &
echo "PID=$!" >> $GITHUB_ENV
- name: Launch tests
Expand All @@ -42,9 +42,9 @@ jobs:
echo "Run tests"
make test-e2e
- name: Stop the era_test_node and print output logs
- name: Stop the anvil-zksync and print output logs
id: stop_node
if: always()
run: |
cat era_test_node_output.log
cat anvil-zksync-output.log
kill $PID
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ jobs:
- name: Rename and move binary
run: |
mkdir artifacts
mv target/${{ matrix.arch }}/release/era_test_node ./artifacts
mv target/${{ matrix.arch }}/release/anvil-zksync ./artifacts
- name: Create artifacts
run: |
cd artifacts
tar -czf era_test_node-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz era_test_node*
tar -czf anvil-zksync-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz anvil-zksync*
mv *tar.gz* ..
# =======================================================================
Expand All @@ -88,8 +88,8 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: era_test_node-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz
path: era_test_node-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz
name: anvil-zksync-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz
path: anvil-zksync-${{ needs.extract-version.outputs.VERSION }}-${{ matrix.arch }}.tar.gz

draft-release:
name: draft release
Expand Down Expand Up @@ -164,15 +164,15 @@ jobs:
| System | Architecture | Binary |
|:---:|:---:|:---:|
| <img src="https://simpleicons.org/icons/linux.svg" style="width: 32px;"/> | x86_64 | [era-test-node-${{ env.VERSION }}-x86_64-unknown-linux-gnu.tar.gz](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/era_test_node-${{ env.VERSION }}-x86_64-unknown-linux-gnu.tar.gz) |
| <img src="https://simpleicons.org/icons/linux.svg" style="width: 32px;"/> | aarch64 | [era-test-node-${{ env.VERSION }}-aarch64-unknown-linux-gnu.tar.gz](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/era_test_node-${{ env.VERSION }}-aarch64-unknown-linux-gnu.tar.gz) |
| <img src="https://simpleicons.org/icons/apple.svg" style="width: 32px;"/> | x86_64 | [era-test-node-${{ env.VERSION }}-x86_64-apple-darwin.tar.gz](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/era_test_node-${{ env.VERSION }}-x86_64-apple-darwin.tar.gz) |
| <img src="https://simpleicons.org/icons/apple.svg" style="width: 32px;"/> | aarch64 | [era-test-node-${{ env.VERSION }}-aarch64-apple-darwin.tar.gz](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/era_test_node-${{ env.VERSION }}-aarch64-apple-darwin.tar.gz) |
| <img src="https://simpleicons.org/icons/linux.svg" style="width: 32px;"/> | x86_64 | [anvil-zksync-${{ env.VERSION }}-x86_64-unknown-linux-gnu.tar.gz](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/anvil-zksync-${{ env.VERSION }}-x86_64-unknown-linux-gnu.tar.gz) |
| <img src="https://simpleicons.org/icons/linux.svg" style="width: 32px;"/> | aarch64 | [anvil-zksync-${{ env.VERSION }}-aarch64-unknown-linux-gnu.tar.gz](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/anvil-zksync-${{ env.VERSION }}-aarch64-unknown-linux-gnu.tar.gz) |
| <img src="https://simpleicons.org/icons/apple.svg" style="width: 32px;"/> | x86_64 | [anvil-zksync-${{ env.VERSION }}-x86_64-apple-darwin.tar.gz](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/anvil-zksync-${{ env.VERSION }}-x86_64-apple-darwin.tar.gz) |
| <img src="https://simpleicons.org/icons/apple.svg" style="width: 32px;"/> | aarch64 | [anvil-zksync-${{ env.VERSION }}-aarch64-apple-darwin.tar.gz](https://github.com/${{ env.REPO_NAME }}/releases/download/${{ env.VERSION }}/anvil-zksync-${{ env.VERSION }}-aarch64-apple-darwin.tar.gz) |
| | | |
ENDBODY
)
assets=()
for asset in ./era_test_node-*.tar.gz*; do
for asset in ./anvil-zksync-*.tar.gz*; do
assets+=("$asset/$asset")
done
tag_name="${{ env.VERSION }}"
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/spec.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Testing era_test_node against ETH spec
name: Testing anvil-zksync against ETH spec
on:
workflow_call:

Expand All @@ -14,14 +14,14 @@ jobs:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: era_test_node-ubuntu-latest.tar.gz
name: anvil-zksync-ubuntu-latest.tar.gz

- name: Extract era_test_node
- name: Extract anvil-zksync
id: extract_node
run: |
echo "Extracting era_test_node binary"
tar -xzf era_test_node-ubuntu-latest.tar.gz
chmod +x era_test_node
echo "Extracting anvil-zksync binary"
tar -xzf anvil-zksync-ubuntu-latest.tar.gz
chmod +x anvil-zksync
- name: Build ETH spec
id: build_eth_spec
Expand All @@ -33,4 +33,4 @@ jobs:
working-directory: ./spec-tests
run: cargo test
env:
ERA_TEST_NODE_BINARY_PATH: ../era_test_node
ANVIL_ZKSYNC_BINARY_PATH: ../anvil-zksync
16 changes: 8 additions & 8 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
{
"type": "lldb",
"request": "launch",
"name": "Debug era_test_node",
"name": "Debug anvil-zksync",
"cargo": {
"args": [
"build",
"--bin=era_test_node",
"--package=era_test_node"
"--bin=anvil-zksync",
"--package=anvil-zksync"
],
"filter": {
"name": "era_test_node",
"name": "anvil-zksync",
"kind": "bin"
}
},
Expand All @@ -30,15 +30,15 @@
{
"type": "lldb",
"request": "launch",
"name": "Debug era_test_node w/ system-contracts",
"name": "Debug anvil-zksync w/ system-contracts",
"cargo": {
"args": [
"build",
"--bin=era_test_node",
"--package=era_test_node"
"--bin=anvil-zksync",
"--package=anvil-zksync"
],
"filter": {
"name": "era_test_node",
"name": "anvil-zksync",
"kind": "bin"
}
},
Expand Down
Loading

0 comments on commit accf077

Please sign in to comment.