Skip to content

Commit

Permalink
v0.12.1 (#1534)
Browse files Browse the repository at this point in the history
  • Loading branch information
JuArce authored Nov 29, 2024
1 parent e3529c0 commit 9f781be
Show file tree
Hide file tree
Showing 7 changed files with 89 additions and 57 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ OS := $(shell uname -s)
CONFIG_FILE?=config-files/config.yaml
AGG_CONFIG_FILE?=config-files/config-aggregator.yaml

OPERATOR_VERSION=v0.12.0
OPERATOR_VERSION=v0.12.1

ifeq ($(OS),Linux)
BUILD_ALL_FFI = $(MAKE) build_all_ffi_linux
Expand Down
2 changes: 1 addition & 1 deletion batcher/Cargo.lock

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

6 changes: 1 addition & 5 deletions batcher/aligned-batcher/src/zk_utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ fn verify_internal(verification_data: &VerificationData) -> bool {

let mut image_id = [0u8; 32];
image_id.copy_from_slice(image_id_slice.as_slice());
return verify_risc_zero_proof(
verification_data.proof.as_slice(),
&image_id,
&pub_input,
);
verify_risc_zero_proof(verification_data.proof.as_slice(), &image_id, &pub_input)
}
ProvingSystemId::GnarkPlonkBls12_381
| ProvingSystemId::GnarkPlonkBn254
Expand Down
2 changes: 1 addition & 1 deletion batcher/aligned/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aligned"
version = "0.12.0"
version = "0.12.1"
edition = "2021"

[dependencies]
Expand Down
34 changes: 34 additions & 0 deletions config-files/config-operator-mainnet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Common variables for all the services
# 'production' only prints info and above. 'development' also prints debug
environment: 'production'
aligned_layer_deployment_config_file_path: './contracts/script/output/mainnet/alignedlayer_deployment_output.json'
eigen_layer_deployment_config_file_path: './contracts/script/output/mainnet/eigenlayer_deployment_output.json'
eth_rpc_url: 'https://ethereum-rpc.publicnode.com' # DO NOT USE PUBLIC NODE IN PRODUCTION
eth_rpc_url_fallback: 'https://ethereum-rpc.publicnode.com'
eth_ws_url: 'wss://ethereum-rpc.publicnode.com' # DO NOT USE PUBLIC NODE IN PRODUCTION
eth_ws_url_fallback: 'wss://ethereum-rpc.publicnode.com'
eigen_metrics_ip_port_address: 'localhost:9090'

## ECDSA Configurations
ecdsa:
private_key_store_path: '<ecdsa_key_store_location_path>'
private_key_store_password: '<ecdsa_key_store_password>'

## BLS Configurations
bls:
private_key_store_path: '<bls_key_store_location_path>'
private_key_store_password: '<bls_key_store_password>'

## Operator Configurations
operator:
aggregator_rpc_server_ip_port_address: mainnet.aggregator.alignedlayer.com:8090
operator_tracker_ip_port_address: https://mainnet.telemetry.alignedlayer.com
address: '<operator_address>'
earnings_receiver_address: '<earnings_receiver_address>' #Can be the same as the operator.
delegation_approver_address: '0x0000000000000000000000000000000000000000'
staker_opt_out_window_blocks: 0
metadata_url: <metadata_url>
enable_metrics: true
metrics_ip_port_address: localhost:9092
max_batch_size: 268435456 # 256 MiB
last_processed_batch_filepath: 'config-files/operator.last_processed_batch.json'
2 changes: 1 addition & 1 deletion docs/3_guides/1_SDK_how_to.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ To use this SDK in your Rust project, add the following to your `Cargo.toml`:

```toml
[dependencies]
aligned-sdk = { git = "https://github.com/yetanotherco/aligned_layer", tag="v0.12.0" }
aligned-sdk = { git = "https://github.com/yetanotherco/aligned_layer", tag="v0.12.1" }
```

To find the latest release tag go to [releases](https://github.com/yetanotherco/aligned_layer/releases) and copy the
Expand Down
98 changes: 50 additions & 48 deletions docs/operator_guides/0_running_an_operator.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Register as an Aligned operator in testnet

> **CURRENT VERSION:**
> Aligned Operator [v0.12.0](https://github.com/yetanotherco/aligned_layer/releases/tag/v0.12.0)
> Aligned Operator [v0.12.1](https://github.com/yetanotherco/aligned_layer/releases/tag/v0.12.1)
> **IMPORTANT:**
> You must be [whitelisted](https://docs.google.com/forms/d/e/1FAIpQLSdH9sgfTz4v33lAvwj6BvYJGAeIshQia3FXz36PFfF-WQAWEQ/viewform) to become an Aligned operator.
Expand All @@ -26,7 +26,7 @@ Minimum hardware requirements:
To start with, clone the Aligned repository and move inside it

```bash
git clone https://github.com/yetanotherco/aligned_layer.git --branch v0.12.0
git clone https://github.com/yetanotherco/aligned_layer.git --branch v0.12.1
cd aligned_layer
```

Expand Down Expand Up @@ -80,7 +80,7 @@ This will display the current version of the operator binary.

## Step 3 - Update the configuration for your specific Operator

Update the following placeholders in `./config-files/config-operator.yaml`:
Update the following placeholders in `./config-files/config-operator-mainnet.yaml`:

- `"<operator_address>"`
- `"<earnings_receiver_address>"`
Expand Down Expand Up @@ -125,53 +125,10 @@ eth_ws_url: "wss://<RPC_1>"
eth_ws_url_fallback: "wss://<RPC_2>"
```
## Step 4 - Deposit Strategy Tokens
We are using [WETH](https://holesky.eigenlayer.xyz/restake/WETH) as the strategy token.
To do so, there are two options, either doing it through EigenLayer's website, and following their guide, or running the commands specified by us below.
You will need to stake a minimum of 1000 WEI in WETH. We recommend to stake a maximum amount of 10 WETH. If you are staking more than 10 WETH please unstake any surplus over 10.
### Option 1
EigenLayer's guide can be found [here](https://docs.eigenlayer.xyz/eigenlayer/restaking-guides/restaking-user-guide/liquid-restaking/restake-lsts).
### Option 2
If you have ETH and need to convert it to WETH you can use the following command, that will convert 1 ETH to WETH.
Make sure to have [foundry](https://book.getfoundry.sh/getting-started/installation) already installed.
Change the parameter in ```---value``` if you want to wrap a different amount:

```bash
cast send 0x94373a4919B3240D86eA41593D5eBa789FEF3848 --rpc-url https://ethereum-holesky-rpc.publicnode.com --private-key <private_key> --value 1ether
```

Here `<private_key>` is the placeholder for the ECDSA key specified in the output when generating your keys with the EigenLayer CLI.

Finally, to end the staking process, you need to deposit into the WETH strategy,
as shown in the EigenLayer guide.

<details>
<summary>An alternative using the CLI</summary>

Run the following command to deposit one WETH

```bash
./operator/build/aligned-operator deposit-into-strategy --config ./config-files/config-operator.yaml --strategy-address 0x80528D6e9A2BAbFc766965E0E26d5aB08D9CFaF9 --amount 1000000000000000000
```

</details>

If you don't have Holesky ETH, these are some useful faucets:

- [Google Cloud for Web3 Holesky Faucet](https://cloud.google.com/application/web3/faucet/ethereum/holesky)
- [Holesky PoW Faucet](https://holesky-faucet.pk910.de/)

## Step 5 - Start the operator
## Step 4 - Start the operator
```bash
./operator/build/aligned-operator start --config ./config-files/config-operator.yaml
./operator/build/aligned-operator start --config ./config-files/config-operator-mainnet.yaml
```

### Run Operator using Systemd
Expand Down Expand Up @@ -243,3 +200,48 @@ cast send --rpc-url https://ethereum-holesky-rpc.publicnode.com --private-key <p
```

`<private_key>` is the one specified in the output when generating your keys with the EigenLayer CLI.


## Deposit Strategy Tokens in Testnet

We are using [WETH](https://holesky.eigenlayer.xyz/restake/WETH) as the strategy token.

To do so, there are two options, either doing it through EigenLayer's website, and following their guide, or running the commands specified by us below.

You will need to stake a minimum of 1000 WEI in WETH. We recommend to stake a maximum amount of 10 WETH. If you are staking more than 10 WETH please unstake any surplus over 10.

### Option 1

EigenLayer's guide can be found [here](https://docs.eigenlayer.xyz/eigenlayer/restaking-guides/restaking-user-guide/liquid-restaking/restake-lsts).

### Option 2

If you have ETH and need to convert it to WETH you can use the following command, that will convert 1 ETH to WETH.
Make sure to have [foundry](https://book.getfoundry.sh/getting-started/installation) already installed.
Change the parameter in ```---value``` if you want to wrap a different amount:

```bash
cast send 0x94373a4919B3240D86eA41593D5eBa789FEF3848 --rpc-url https://ethereum-holesky-rpc.publicnode.com --private-key <private_key> --value 1ether
```

Here `<private_key>` is the placeholder for the ECDSA key specified in the output when generating your keys with the EigenLayer CLI.

Finally, to end the staking process, you need to deposit into the WETH strategy,
as shown in the EigenLayer guide.

<details>
<summary>An alternative using the CLI</summary>

Run the following command to deposit one WETH

```bash
./operator/build/aligned-operator deposit-into-strategy --config ./config-files/config-operator.yaml --strategy-address 0x80528D6e9A2BAbFc766965E0E26d5aB08D9CFaF9 --amount 1000000000000000000
```

</details>

If you don't have Holesky ETH, these are some useful faucets:

- [Google Cloud for Web3 Holesky Faucet](https://cloud.google.com/application/web3/faucet/ethereum/holesky)
- [Holesky PoW Faucet](https://holesky-faucet.pk910.de/)

0 comments on commit 9f781be

Please sign in to comment.