From b9e7b536e7a4e25fa9b1a8b58049885d0432dcba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Est=C3=A9fano=20Bargas?= Date: Thu, 3 Oct 2024 14:09:16 -0300 Subject: [PATCH] Remove duplicated section on README --- README.md | 114 ------------------------------------------------------ 1 file changed, 114 deletions(-) diff --git a/README.md b/README.md index b9562265..dfd214cc 100644 --- a/README.md +++ b/README.md @@ -353,120 +353,6 @@ In the Mina Bridge repo, setup the `.env` file. A template is available in `.env ### Bridge a Mina account -1. In the root folder, deploy the Bridge's contracts with: - - ```sh - make deploy_contract - ``` - - 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): - - - 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): - - ```sh - make submit_account PUBLIC_KEY= STATE_HASH= - ``` - - Where: - - `PUBLIC_KEY` is the public key of the Mina account you want to verify - - `STATE_HASH` is the hash of a Mina state that was verified in Ethereum - -1. Open a new terminal and register the operator: - - ```sh - eigenlayer operator register config-files/holesky/config.yaml - ``` - -1. Whitelist the registered operator: - - ```sh - make operator_whitelist OPERATOR_ADDRESS= - ``` - -1. Deposit Strategy tokens for the operator. Follow [this section from the AlignedLayer docs](https://docs.alignedlayer.com/operators/0_running_an_operator#step-4-deposit-strategy-tokens). - -1. Start operator: - - ```sh - make operator_start CONFIG_FILE=config-files/holesky/config.yaml - ``` - -1. Set `contracts/script/deploy/config/holesky/batcher-payment-service.holesky.config.json` to: - - ```json - { - "address": { - "batcherWallet": "", - "alignedLayerServiceManager": "" - }, - "amounts": { - "gasForAggregator": "300000", - "gasPerProof": "21000" - }, - "permissions": { - "owner": "" - }, - "eip712": { - "noncedVerificationDataTypeHash": "41817b5c5b0c3dcda70ccb43ba175fdcd7e586f9e0484422a2c6bba678fdf4a3" - } - } - ``` - -1. Deploy Batcher payment contract: - - ```sh - make deploy_batcher_payment_service - ``` - - The file `contracts/script/output/holesky/alignedlayer_deployment_output.json` will have two new fields: `addresses.batcherPaymentService` and `addresses.batcherPaymentServiceImplementation`. - -1. Pay the batcher: - - ```sh - cast send --rpc-url --private-key --value 1ether - ``` - -1. Deposit to batcher in the Aligned Service Manager Contract: - - ```sh - cast send --rpc-url --private-key --value 1ether "depositToBatcher(address)" - ``` - -1. Setup local storage for the batcher: - - ```sh - make run_storage - ``` - -1. Start the batcher: - - ```sh - cargo run --manifest-path ./batcher/aligned-batcher/Cargo.toml --release -- --config ./config-files/holesky/config-batcher.yaml --env-file ./batcher/aligned-batcher/.env.dev - ``` - -#### Bridge environment setup - -In the Mina Bridge repo, setup the `.env` file. A template is available in `.env.template`. - -1. Set `ETH_CHAIN` to `holesky`. -1. Set `MINA_RPC_URL` to the URL of the Mina node GraphQL API (See [Mina node section](#mina-node)). -1. Set the rest of the env vars to: - - ```sh - BATCHER_ADDR="ws://localhost:8080" - BATCHER_ETH_ADDR= - ETH_RPC_URL= - PROOF_GENERATOR_ADDR=0x66f9664f97F2b50F62D13eA064982f936dE76657 - PRIVATE_KEY= - ALIGNED_SM_HOLESKY_ETH_ADDR= - ``` - -### Bridge a Mina account - 1. In the root folder, deploy the Bridge's contracts with: ```sh