Skip to content

Commit b8a3710

Browse files
glpecileuri-99entropidelicMauroToscanoNicolasRampoldi
authored
refactor(explorer): update mvp to new aligned architecture (#196)
Co-authored-by: Urix <43704209+uri-99@users.noreply.github.com> Co-authored-by: Mariano Nicolini <mariano.nicolini.91@gmail.com> Co-authored-by: Mauro Toscano <12560266+MauroToscano@users.noreply.github.com> Co-authored-by: MauroFab <maurotoscano2@gmail.com> Co-authored-by: Nicolas Rampoldi <58613770+NicolasRampoldi@users.noreply.github.com>
1 parent 7a83d1a commit b8a3710

27 files changed

Lines changed: 1122 additions & 590 deletions

Makefile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,4 +472,16 @@ generate_halo2_ipa_proof:
472472
rm params.bin proof.bin pub_input.bin && \
473473
RUST_LOG=info cargo run --release && \
474474
echo "Generating halo2 plonk proof..." && \
475-
echo "Generated halo2 plonk proof!"
475+
echo "Generated halo2 plonk proof!"
476+
477+
__EXPLORER__:
478+
run_devnet_explorer:
479+
@cd explorer/ && \
480+
mix setup && \
481+
cp .env.dev .env && \
482+
./start.sh
483+
484+
run_explorer:
485+
@cd explorer/ && \
486+
mix setup && \
487+
./start.sh

README.md

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@
1313
- [Deploying Aligned Contracts to Holesky or Testnet](#deploying-aligned-contracts-to-holesky-or-testnet)
1414
- [Metrics](#metrics)
1515
- [Notes on project creation / devnet deployment](#notes-on-project-creation--devnet-deployment)
16+
- [Explorer](#explorer)
1617
- [Tests](#tests)
1718
- [FAQ](#faq)
1819

1920
## The Project
2021

2122
Aligned works with EigenLayer to leverage ethereum consensus mechanism for ZK proof verification. Working outside the EVM, this allows for cheap verification of any proving system. This enables the usage of cutting edge algorithms, that may use new techniques to prove even faster. Even more, proving systems that reduce the proving overhead and add verifier overhead, now become economically feasable to verify thanks to Aligned.
2223

23-
24-
2524
## How to use the testnet
2625

2726
### Requirements
@@ -192,6 +191,8 @@ If you need to start again the operator, and it's already registered, use:
192191
make operator_start
193192
```
194193

194+
If you want to start the explorer for the devnet, see how to run it using it's [documentation](#explorer) below.
195+
195196
### Send test proofs to batcher for testing
196197

197198
All these proofs are for testing purposes
@@ -727,6 +728,43 @@ The state is backuped on ```contracts/scripts/anvil/state```.
727728
Eigenlayer contract deployment is almost the same as the EigenLayer contract deployment on mainnet. Changes are described on the file.
728729

729730

731+
## Explorer
732+
### Requirements
733+
734+
- [Erlang 26](https://github.com/asdf-vm/asdf-erlang)
735+
- [Elixir 1.16.2](https://elixir-ko.github.io/install.html), compiled with OTP 26
736+
- [Phoenix 1.7.12](https://hexdocs.pm/phoenix/installation.html)
737+
- [Ecto 3.11.2](https://hexdocs.pm/ecto/getting-started.html)
738+
739+
### Running for local devnet
740+
741+
```make run_devnet_explorer```
742+
743+
Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.
744+
You can access to a tasks information by visiting `localhost:4000/batches/:merkle_root`.
745+
746+
### Run with custom env / other devnets
747+
748+
Create a `.env` file in the `/explorer` directory of the project. The `.env` file needs to contain the following variables:
749+
750+
| Variable | Description |
751+
| -------- | ----------- |
752+
| `RPC_URL` | The RPC URL of the network you want to connect to. |
753+
| `ENVIRONMENT` | The environment you want to run the application in. It can be `devnet`, `holesky` or `mainnet`. |
754+
755+
```make run_explorer```
756+
757+
758+
### Send example data
759+
760+
If you want to have some data to see on it, you can start our infinite task sender, which will constantly send new proofs to the batcher.
761+
762+
```sh
763+
make batcher_send_burst_groth16
764+
```
765+
766+
</details>
767+
730768
## Tests
731769

732770
To run the go tests
@@ -735,7 +773,6 @@ To run the go tests
735773
make test
736774
```
737775

738-
739776
## FAQ
740777

741778
### What is the objective of Aligned?

explorer/.env.dev

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
RPC_URL=http://localhost:8545
2+
ENVIRONMENT=devnet

explorer/Makefile

Lines changed: 0 additions & 19 deletions
This file was deleted.

explorer/README.md

Lines changed: 0 additions & 112 deletions
This file was deleted.

0 commit comments

Comments
 (0)