From 0230e7d8d6adad847d5eb239fff46fdfc36cb6bb Mon Sep 17 00:00:00 2001 From: Marcos Nicolau Date: Wed, 5 Nov 2025 19:03:04 -0300 Subject: [PATCH 1/2] docs: update setup aligned locally commands --- README.md | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 715384e9..f7654422 100644 --- a/README.md +++ b/README.md @@ -88,13 +88,18 @@ Alternatively, you can try with Mina public nodes: ### Setup Aligned Devnet infrastructure locally -1. Start Docker 1. Setup the `.env` file of the Bridge. A template is available in `.env.template`. 1. Set `ETH_CHAIN` to `devnet`. 1. Set `MINA_RPC_URL` to the URL of the Mina node GraphQL API (See [Mina node section](#mina-node)). -1. Clone the [forked Aligned repo](https://github.com/lambdaclass/aligned_layer). Checkout to the `mina` branch. +0. Clone the [Aligned repo](https://github.com/yetanotherco/aligned_layer). And checkout to the `staging` branch: + +```sh +git clone https://github.com/yetanotherco/aligned_layer +cd aligned_layer +git checkout staging +``` 1. Run: @@ -105,25 +110,25 @@ Alternatively, you can try with Mina public nodes: 1. Start anvil: ```sh - make anvil_start_with_block_time + make anvil_start ``` -1. Start the aggregator: +2. Start the aggregator: ```sh make aggregator_start ENVIRONMENT=devnet ``` -1. Start the batcher: +3. Start the batcher: ```sh - make batcher_start_local ENVIRONMENT=devnet + make batcher_start_local ``` -1. Start an operator: +4. Start an operator: ```sh - make operator_register_and_start ENVIRONMENT=devnet + make operator_full_registration_and_start ENVIRONMENT=devnet CONFIG_FILE=config-files/config-operator-1.yaml ``` ### Bridge a Mina account From e2313356dc41b66b8d31107ed1ab6605a5ecd29e Mon Sep 17 00:00:00 2001 From: Marcos Nicolau Date: Wed, 5 Nov 2025 19:05:34 -0300 Subject: [PATCH 2/2] improve aligned setup docs --- README.md | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index f7654422..b24e0478 100644 --- a/README.md +++ b/README.md @@ -88,12 +88,7 @@ Alternatively, you can try with Mina public nodes: ### Setup Aligned Devnet infrastructure locally - -1. Setup the `.env` file of the Bridge. A template is available in `.env.template`. - 1. Set `ETH_CHAIN` to `devnet`. - 1. Set `MINA_RPC_URL` to the URL of the Mina node GraphQL API (See [Mina node section](#mina-node)). - -0. Clone the [Aligned repo](https://github.com/yetanotherco/aligned_layer). And checkout to the `staging` branch: +1. Clone the [Aligned repo](https://github.com/yetanotherco/aligned_layer). And checkout to the `staging` branch: ```sh git clone https://github.com/yetanotherco/aligned_layer @@ -101,31 +96,31 @@ cd aligned_layer git checkout staging ``` -1. Run: +2. Run: ```sh make deps ``` -1. Start anvil: +3. Start anvil: ```sh make anvil_start ``` -2. Start the aggregator: +4. Start the aggregator: ```sh make aggregator_start ENVIRONMENT=devnet ``` -3. Start the batcher: +5. Start the batcher (needs to have docker running): ```sh make batcher_start_local ``` -4. Start an operator: +6. Start an operator: ```sh make operator_full_registration_and_start ENVIRONMENT=devnet CONFIG_FILE=config-files/config-operator-1.yaml @@ -133,7 +128,11 @@ git checkout staging ### Bridge a Mina account -1. In the root folder, deploy the example Bridge's contracts with: +1. Setup the `.env` file of the Bridge. A template is available in `.env.template`. + 1. Set `ETH_CHAIN` to `devnet`. + 1. Set `MINA_RPC_URL` to the URL of the Mina node GraphQL API (See [Mina node section](#mina-node)). + +2. In the root folder, deploy the example Bridge's contracts with: ```sh make deploy_example_bridge_contracts @@ -141,11 +140,11 @@ git checkout staging In the `.env` file, set `STATE_SETTLEMENT_ETH_ADDR` and `ACCOUNT_VALIDATION_ETH_ADDR` to the corresponding deployed contract addresses. -1. Submit a Mina state proof to verify (**NOTE:** Because of the Aligned minimum batch size, you may need to submit two proofs to make Aligned Devnet verify them): +3. Submit a Mina state proof to verify (**NOTE:** Because of the Aligned minimum batch size, you may need to submit two proofs to make Aligned Devnet verify them): - Run `make submit_devnet_state` if you are using Mina Devnet or `make submit_mainnet_state` if you are using Mina Mainnet. -1. Submit an account to verify (**NOTE:** Because of the Aligned minimum batch size, you may need to submit two proofs to make Aligned Devnet verify them): +4. Submit an account to verify (**NOTE:** Because of the Aligned minimum batch size, you may need to submit two proofs to make Aligned Devnet verify them): ```sh make submit_account PUBLIC_KEY= STATE_HASH=