Skip to content

Commit 9f781be

Browse files
authored
v0.12.1 (#1534)
1 parent e3529c0 commit 9f781be

File tree

7 files changed

+89
-57
lines changed

7 files changed

+89
-57
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ OS := $(shell uname -s)
66
CONFIG_FILE?=config-files/config.yaml
77
AGG_CONFIG_FILE?=config-files/config-aggregator.yaml
88

9-
OPERATOR_VERSION=v0.12.0
9+
OPERATOR_VERSION=v0.12.1
1010

1111
ifeq ($(OS),Linux)
1212
BUILD_ALL_FFI = $(MAKE) build_all_ffi_linux

batcher/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

batcher/aligned-batcher/src/zk_utils/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,7 @@ fn verify_internal(verification_data: &VerificationData) -> bool {
3434

3535
let mut image_id = [0u8; 32];
3636
image_id.copy_from_slice(image_id_slice.as_slice());
37-
return verify_risc_zero_proof(
38-
verification_data.proof.as_slice(),
39-
&image_id,
40-
&pub_input,
41-
);
37+
verify_risc_zero_proof(verification_data.proof.as_slice(), &image_id, &pub_input)
4238
}
4339
ProvingSystemId::GnarkPlonkBls12_381
4440
| ProvingSystemId::GnarkPlonkBn254

batcher/aligned/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aligned"
3-
version = "0.12.0"
3+
version = "0.12.1"
44
edition = "2021"
55

66
[dependencies]
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Common variables for all the services
2+
# 'production' only prints info and above. 'development' also prints debug
3+
environment: 'production'
4+
aligned_layer_deployment_config_file_path: './contracts/script/output/mainnet/alignedlayer_deployment_output.json'
5+
eigen_layer_deployment_config_file_path: './contracts/script/output/mainnet/eigenlayer_deployment_output.json'
6+
eth_rpc_url: 'https://ethereum-rpc.publicnode.com' # DO NOT USE PUBLIC NODE IN PRODUCTION
7+
eth_rpc_url_fallback: 'https://ethereum-rpc.publicnode.com'
8+
eth_ws_url: 'wss://ethereum-rpc.publicnode.com' # DO NOT USE PUBLIC NODE IN PRODUCTION
9+
eth_ws_url_fallback: 'wss://ethereum-rpc.publicnode.com'
10+
eigen_metrics_ip_port_address: 'localhost:9090'
11+
12+
## ECDSA Configurations
13+
ecdsa:
14+
private_key_store_path: '<ecdsa_key_store_location_path>'
15+
private_key_store_password: '<ecdsa_key_store_password>'
16+
17+
## BLS Configurations
18+
bls:
19+
private_key_store_path: '<bls_key_store_location_path>'
20+
private_key_store_password: '<bls_key_store_password>'
21+
22+
## Operator Configurations
23+
operator:
24+
aggregator_rpc_server_ip_port_address: mainnet.aggregator.alignedlayer.com:8090
25+
operator_tracker_ip_port_address: https://mainnet.telemetry.alignedlayer.com
26+
address: '<operator_address>'
27+
earnings_receiver_address: '<earnings_receiver_address>' #Can be the same as the operator.
28+
delegation_approver_address: '0x0000000000000000000000000000000000000000'
29+
staker_opt_out_window_blocks: 0
30+
metadata_url: <metadata_url>
31+
enable_metrics: true
32+
metrics_ip_port_address: localhost:9092
33+
max_batch_size: 268435456 # 256 MiB
34+
last_processed_batch_filepath: 'config-files/operator.last_processed_batch.json'

docs/3_guides/1_SDK_how_to.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ To use this SDK in your Rust project, add the following to your `Cargo.toml`:
1212

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

1818
To find the latest release tag go to [releases](https://github.com/yetanotherco/aligned_layer/releases) and copy the

docs/operator_guides/0_running_an_operator.md

Lines changed: 50 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Register as an Aligned operator in testnet
22

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

2828
```bash
29-
git clone https://github.com/yetanotherco/aligned_layer.git --branch v0.12.0
29+
git clone https://github.com/yetanotherco/aligned_layer.git --branch v0.12.1
3030
cd aligned_layer
3131
```
3232

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

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

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

8585
- `"<operator_address>"`
8686
- `"<earnings_receiver_address>"`
@@ -125,53 +125,10 @@ eth_ws_url: "wss://<RPC_1>"
125125
eth_ws_url_fallback: "wss://<RPC_2>"
126126
```
127127
128-
## Step 4 - Deposit Strategy Tokens
129-
130-
We are using [WETH](https://holesky.eigenlayer.xyz/restake/WETH) as the strategy token.
131-
132-
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.
133-
134-
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.
135-
136-
### Option 1
137-
138-
EigenLayer's guide can be found [here](https://docs.eigenlayer.xyz/eigenlayer/restaking-guides/restaking-user-guide/liquid-restaking/restake-lsts).
139-
140-
### Option 2
141-
142-
If you have ETH and need to convert it to WETH you can use the following command, that will convert 1 ETH to WETH.
143-
Make sure to have [foundry](https://book.getfoundry.sh/getting-started/installation) already installed.
144-
Change the parameter in ```---value``` if you want to wrap a different amount:
145-
146-
```bash
147-
cast send 0x94373a4919B3240D86eA41593D5eBa789FEF3848 --rpc-url https://ethereum-holesky-rpc.publicnode.com --private-key <private_key> --value 1ether
148-
```
149-
150-
Here `<private_key>` is the placeholder for the ECDSA key specified in the output when generating your keys with the EigenLayer CLI.
151-
152-
Finally, to end the staking process, you need to deposit into the WETH strategy,
153-
as shown in the EigenLayer guide.
154-
155-
<details>
156-
<summary>An alternative using the CLI</summary>
157-
158-
Run the following command to deposit one WETH
159-
160-
```bash
161-
./operator/build/aligned-operator deposit-into-strategy --config ./config-files/config-operator.yaml --strategy-address 0x80528D6e9A2BAbFc766965E0E26d5aB08D9CFaF9 --amount 1000000000000000000
162-
```
163-
164-
</details>
165-
166-
If you don't have Holesky ETH, these are some useful faucets:
167-
168-
- [Google Cloud for Web3 Holesky Faucet](https://cloud.google.com/application/web3/faucet/ethereum/holesky)
169-
- [Holesky PoW Faucet](https://holesky-faucet.pk910.de/)
170-
171-
## Step 5 - Start the operator
128+
## Step 4 - Start the operator
172129
173130
```bash
174-
./operator/build/aligned-operator start --config ./config-files/config-operator.yaml
131+
./operator/build/aligned-operator start --config ./config-files/config-operator-mainnet.yaml
175132
```
176133

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

245202
`<private_key>` is the one specified in the output when generating your keys with the EigenLayer CLI.
203+
204+
205+
## Deposit Strategy Tokens in Testnet
206+
207+
We are using [WETH](https://holesky.eigenlayer.xyz/restake/WETH) as the strategy token.
208+
209+
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.
210+
211+
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.
212+
213+
### Option 1
214+
215+
EigenLayer's guide can be found [here](https://docs.eigenlayer.xyz/eigenlayer/restaking-guides/restaking-user-guide/liquid-restaking/restake-lsts).
216+
217+
### Option 2
218+
219+
If you have ETH and need to convert it to WETH you can use the following command, that will convert 1 ETH to WETH.
220+
Make sure to have [foundry](https://book.getfoundry.sh/getting-started/installation) already installed.
221+
Change the parameter in ```---value``` if you want to wrap a different amount:
222+
223+
```bash
224+
cast send 0x94373a4919B3240D86eA41593D5eBa789FEF3848 --rpc-url https://ethereum-holesky-rpc.publicnode.com --private-key <private_key> --value 1ether
225+
```
226+
227+
Here `<private_key>` is the placeholder for the ECDSA key specified in the output when generating your keys with the EigenLayer CLI.
228+
229+
Finally, to end the staking process, you need to deposit into the WETH strategy,
230+
as shown in the EigenLayer guide.
231+
232+
<details>
233+
<summary>An alternative using the CLI</summary>
234+
235+
Run the following command to deposit one WETH
236+
237+
```bash
238+
./operator/build/aligned-operator deposit-into-strategy --config ./config-files/config-operator.yaml --strategy-address 0x80528D6e9A2BAbFc766965E0E26d5aB08D9CFaF9 --amount 1000000000000000000
239+
```
240+
241+
</details>
242+
243+
If you don't have Holesky ETH, these are some useful faucets:
244+
245+
- [Google Cloud for Web3 Holesky Faucet](https://cloud.google.com/application/web3/faucet/ethereum/holesky)
246+
- [Holesky PoW Faucet](https://holesky-faucet.pk910.de/)
247+

0 commit comments

Comments
 (0)