Skip to content

Commit a53e4c0

Browse files
authored
docs: update v0.2 changelog with examples (#318)
Fixes # ### What Changed? This PR adds some examples to the v0.2 section and cleans it up a bit. ### Reviewer Checklist - [ ] New features are tested and documented - [ ] PR updates the changelog with a description of changes - [ ] PR has one of the `changelog-X` labels (if applies) - [ ] Code deprecates any old functionality before removing it
1 parent aae9ff0 commit a53e4c0

File tree

1 file changed

+116
-33
lines changed

1 file changed

+116
-33
lines changed

CHANGELOG.md

Lines changed: 116 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,68 @@ Each version will have a separate `Breaking Changes` section as well. To describ
1212
Those changes in added, changed or breaking changes, should include usage examples to add clarity to the sdk user.
1313

1414
## [Unreleased]
15-
### Added
16-
### Changed
17-
### Breaking changes
18-
### Removed
15+
16+
### Security 🔒
17+
18+
### Added 🎉
19+
20+
### Breaking Changes 🛠
21+
22+
### Deprecated ⚠️
23+
24+
### Removed 🗑
25+
26+
### Documentation 📚
27+
28+
### Other Changes
1929

2030
## [0.2.0] - 2025-02-06
31+
32+
### Security 🔒
33+
34+
* chore(deps): bump openssl from 0.10.68 to 0.10.70 in the cargo group across 1 directory by @dependabot in <https://github.com/Layr-Labs/eigensdk-rs/pull/291>
35+
2136
### Added 🎉
37+
2238
* Added `eigen_common` dependency to the `eigensdk` crate when "full" feature is enabled in [#249](https://github.com/Layr-Labs/eigensdk-rs/pull/249).
39+
* Now when enabling the "full" feature:
40+
41+
```toml
42+
eigensdk = { version = "0.2", features = ["full"] }
43+
```
44+
45+
You can use access the `eigen-common` crate as a submodule of `eigensdk`:
46+
47+
```rust
48+
use eigensdk::common::*;
49+
```
50+
2351
* Added bindings for `ECDSAStakeRegistry` and `ECDSAServiceManagerBase` in [#269](https://github.com/Layr-Labs/eigensdk-rs/pull/269).
24-
* Added release-plz in ci in [#275](https://github.com/Layr-Labs/eigensdk-rs/pull/275).
25-
* Added custom configuration for release-plz in [#281](https://github.com/Layr-Labs/eigensdk-rs/pull/281).
52+
* These bindings can be accessed from:
2653

27-
### Changed
28-
* Changes in the way bindings are generated in [#243](https://github.com/Layr-Labs/eigensdk-rs/pull/243).
29-
* The `bindings` target now generates the bindings using Docker with Foundry v0.3.0.
30-
* The previous `bindings` target was renamed to `bindings_host`, as it runs without Docker. However the `bindings_host` target is for CI use only. To generate the bindings, please use the `bindings` target.
31-
* Fixed the rewardsv2 bindings version in readme to 0.5.4 in [#246](https://github.com/Layr-Labs/eigensdk-rs/pull/246).
32-
* Fixed typo in release-plz toml file in [#284](https://github.com/Layr-Labs/eigensdk-rs/pull/284).
33-
* Fixed incorrect package name in Cargo.toml for examples in [#285](https://github.com/Layr-Labs/eigensdk-rs/pull/285).
54+
```rust
55+
// From `eigensdk`
56+
use eigensdk::utils::middleware::ecdsaservicemanagerbase;
57+
use eigensdk::utils::middleware::ecdsastakeregistry;
58+
// From `eigen_utils`
59+
use eigen_utils::middleware::ecdsaservicemanagerbase;
60+
use eigen_utils::middleware::ecdsastakeregistry;
61+
```
62+
63+
* Starting on this release, we're using [`release-plz`](https://github.com/release-plz/release-plz) to streamline our release process.
64+
* Added release-plz in ci in [#275](https://github.com/Layr-Labs/eigensdk-rs/pull/275).
65+
* Added custom configuration for release-plz in [#281](https://github.com/Layr-Labs/eigensdk-rs/pull/281).
66+
* Fixed typo in release-plz toml file in [#284](https://github.com/Layr-Labs/eigensdk-rs/pull/284).
67+
68+
### Breaking Changes 🛠
69+
70+
* fix: use rewards coordinator on get operator avs/pi split methods by @maximopalopoli in <https://github.com/Layr-Labs/eigensdk-rs/pull/250>
71+
72+
* The parameters of `ChainReader::new` changed, and it now receives the address of the rewards coordinator.
3473

35-
### Breaking changes🛠
36-
* fix: use rewards coordinator on get operator avs/pi split methods by @maximopalopoli in https://github.com/Layr-Labs/eigensdk-rs/pull/250
37-
* The parameters of `ChainReader::new` changed, and it now receives the address of the rewards coordinator.
38-
3974
It was previously called this way:
40-
``` Rust
75+
76+
```rust
4177
let el_chain_reader = ELChainReader::new(
4278
logger,
4379
SLASHER_ADDRESS,
@@ -46,8 +82,10 @@ Those changes in added, changed or breaking changes, should include usage exampl
4682
provider_url,
4783
);
4884
```
85+
4986
Now, it's called this way:
50-
``` Rust
87+
88+
```rust
5189
let el_chain_reader = ELChainReader::new(
5290
logger,
5391
SLASHER_ADDRESS,
@@ -58,17 +96,47 @@ Those changes in added, changed or breaking changes, should include usage exampl
5896
);
5997
```
6098

61-
### Removed
99+
### Removed 🗑
100+
62101
* Removed homepage from testing-utils crate in [#266](https://github.com/Layr-Labs/eigensdk-rs/pull/266).
63102
* Removed changelog generation by release-plz in [#281](https://github.com/Layr-Labs/eigensdk-rs/pull/281).
64103
* Removed examples packages from workspace.dependencies in Cargo.toml in [#287](https://github.com/Layr-Labs/eigensdk-rs/pull/287).
65104
* Removed release-plz-pr workflow in release-plz in [#292](https://github.com/Layr-Labs/eigensdk-rs/pull/292).
66105

106+
### Documentation 📚
107+
108+
* Fixed the rewardsv2 bindings version in readme to 0.5.4 in [#246](https://github.com/Layr-Labs/eigensdk-rs/pull/246).
109+
* docs: improve changelog by adding examples by @maximopalopoli in <https://github.com/Layr-Labs/eigensdk-rs/pull/251>
110+
111+
### Other Changes
112+
113+
* Changes in the way bindings are generated in [#243](https://github.com/Layr-Labs/eigensdk-rs/pull/243).
114+
* The `bindings` target now generates the bindings using Docker with Foundry v0.3.0.
115+
* The previous `bindings` target was renamed to `bindings_host`, as it runs without Docker. However the `bindings_host` target is for CI use only. To generate the bindings, please use the `bindings` target.
116+
* Fixed incorrect package name in Cargo.toml for examples in [#285](https://github.com/Layr-Labs/eigensdk-rs/pull/285).
117+
* docs: add mention of updated bindings to changelog by @MegaRedHand in <https://github.com/Layr-Labs/eigensdk-rs/pull/233>
118+
* chore: format contracts by @ricomateo in <https://github.com/Layr-Labs/eigensdk-rs/pull/235>
119+
* ci: add foundry workflow by @ricomateo in <https://github.com/Layr-Labs/eigensdk-rs/pull/236>
120+
* ci: add CI job to check whether anvil state is up to date by @ricomateo in <https://github.com/Layr-Labs/eigensdk-rs/pull/237>
121+
* chore: remove existing bindings when generating new ones by @ricomateo in <https://github.com/Layr-Labs/eigensdk-rs/pull/242>
122+
* chore: remove alloy reexported crates from dependencies by @ricomateo in <https://github.com/Layr-Labs/eigensdk-rs/pull/244>
123+
* docs: sync root and `crates/eigensdk/` READMEs by @ricomateo in <https://github.com/Layr-Labs/eigensdk-rs/pull/245>
124+
* ci: add workflow to enforce updates to the changelog by @ricomateo in <https://github.com/Layr-Labs/eigensdk-rs/pull/239>
125+
* docs: add `RELEASE.md` by @MegaRedHand in <https://github.com/Layr-Labs/eigensdk-rs/pull/231>
126+
* ci: fix check bindings job by @pablodeymo in <https://github.com/Layr-Labs/eigensdk-rs/pull/247>
127+
* ci: fix job that checks anvil state is up-to-date by @ricomateo in <https://github.com/Layr-Labs/eigensdk-rs/pull/252>
128+
* refactor: move bindings generation to script by @MegaRedHand in <https://github.com/Layr-Labs/eigensdk-rs/pull/271>
129+
* fix: simplify Cargo.toml by @MegaRedHand in <https://github.com/Layr-Labs/eigensdk-rs/pull/282>
130+
* ci: split tests and coverage by @MegaRedHand in <https://github.com/Layr-Labs/eigensdk-rs/pull/286>
131+
67132
## [0.1.3] - 2025-01-17
133+
68134
### Added 🎉
69-
* feat: add rewards-v2 related functionality by @supernovahs in https://github.com/Layr-Labs/eigensdk-rs/pull/221
135+
136+
* feat: add rewards-v2 related functionality by @supernovahs in <https://github.com/Layr-Labs/eigensdk-rs/pull/221>
70137
* New methods in `ELChainReader`:
71138
* `get_operator_avs_split`
139+
72140
```rust
73141
// Given a chain_reader, an operator_address and an avs_address:
74142

@@ -77,8 +145,9 @@ Those changes in added, changed or breaking changes, should include usage exampl
77145
.await
78146
.unwrap();
79147
```
80-
148+
81149
* `get_operator_pi_split`
150+
82151
```rust
83152
// Given a chain_reader and an operator_address:
84153

@@ -91,6 +160,7 @@ Those changes in added, changed or breaking changes, should include usage exampl
91160

92161
* New methods in `ELChainWriter`:
93162
* `set_operator_avs_split`
163+
94164
```rust
95165
// Given a chain_writer, an operator_address, an avs_address and a split:
96166

@@ -100,7 +170,9 @@ Those changes in added, changed or breaking changes, should include usage exampl
100170
.unwrap();
101171
let receipt = wait_transaction(&http_endpoint, tx_hash).await.unwrap();
102172
```
173+
103174
* `set_operator_pi_split`
175+
104176
```rust
105177
// Given a chain_writer, an operator_address and a split:
106178

@@ -110,10 +182,12 @@ Those changes in added, changed or breaking changes, should include usage exampl
110182
.unwrap();
111183
let receipt = wait_transaction(&http_endpoint, tx_hash).await.unwrap();
112184
```
185+
113186
* Bindings updated for rewards-v2 core contracts release
114187

115188
### Breaking Changes 🛠
116-
* feat!: remove delegation manager from `ELChainWriter` by @supernovahs in https://github.com/Layr-Labs/eigensdk-rs/pull/214
189+
190+
* feat!: remove delegation manager from `ELChainWriter` by @supernovahs in <https://github.com/Layr-Labs/eigensdk-rs/pull/214>
117191
* `ELChainWriter::new` no longer receives the delegation manager address as first parameter.
118192
Before, a chainWriter was created this way:
119193

@@ -139,48 +213,57 @@ Those changes in added, changed or breaking changes, should include usage exampl
139213
"bead471191bea97fc3aeac36c9d74c895e8a6242602e144e43152f96219e96e8".to_string(),
140214
);
141215
```
142-
* feat!: change way bindings are generated by @MegaRedHand in https://github.com/Layr-Labs/eigensdk-rs/pull/204
216+
217+
* feat!: change way bindings are generated by @MegaRedHand in <https://github.com/Layr-Labs/eigensdk-rs/pull/204>
143218
* `eigen_utils::core` contains bindings related to core contracts
144219
* `eigen_utils::middleware` contains bindings related to middleware contracts
145220
* `eigen_utils::sdk` contains bindings related to the SDK (should only be used for testing)
146221

147222
Now, to update the bindings, run `make bindings`. This command will generate the bindings files in the folder: `crates/utils`.
148223

149224
### Documentation 📚
150-
* docs: add CHANGELOG.md by @lferrigno in https://github.com/Layr-Labs/eigensdk-rs/pull/220
225+
226+
* docs: add CHANGELOG.md by @lferrigno in <https://github.com/Layr-Labs/eigensdk-rs/pull/220>
227+
151228
### Other Changes
152-
* ci: change docker setup action for official one by @MegaRedHand in https://github.com/Layr-Labs/eigensdk-rs/pull/219
153-
* docs: add error message for `cargo test` on darwin by @MegaRedHand in https://github.com/Layr-Labs/eigensdk-rs/pull/215
154-
* test: fix `test_register_and_update_operator` by @ricomateo in https://github.com/Layr-Labs/eigensdk-rs/pull/223
155-
* chore: update way anvil state dump is generated by @ricomateo in https://github.com/Layr-Labs/eigensdk-rs/pull/222
156-
* fix: disable doctests on `eigen-utils` by @MegaRedHand in https://github.com/Layr-Labs/eigensdk-rs/pull/227
157-
* chore: bump version by @MegaRedHand in https://github.com/Layr-Labs/eigensdk-rs/pull/228
158-
* docs: add GitHub release changelog configuration by @MegaRedHand in https://github.com/Layr-Labs/eigensdk-rs/pull/229
229+
230+
* ci: change docker setup action for official one by @MegaRedHand in <https://github.com/Layr-Labs/eigensdk-rs/pull/219>
231+
* docs: add error message for `cargo test` on darwin by @MegaRedHand in <https://github.com/Layr-Labs/eigensdk-rs/pull/215>
232+
* test: fix `test_register_and_update_operator` by @ricomateo in <https://github.com/Layr-Labs/eigensdk-rs/pull/223>
233+
* chore: update way anvil state dump is generated by @ricomateo in <https://github.com/Layr-Labs/eigensdk-rs/pull/222>
234+
* fix: disable doctests on `eigen-utils` by @MegaRedHand in <https://github.com/Layr-Labs/eigensdk-rs/pull/227>
235+
* chore: bump version by @MegaRedHand in <https://github.com/Layr-Labs/eigensdk-rs/pull/228>
236+
* docs: add GitHub release changelog configuration by @MegaRedHand in <https://github.com/Layr-Labs/eigensdk-rs/pull/229>
159237

160238
## [0.1.2] - 2025-01-09
239+
161240
### Added
241+
162242
* Added retries with exponential backoff to send transactions in [#158](https://github.com/Layr-Labs/eigensdk-rs/pull/158)
163243
* Added `query_registration_detail` method in [#162](https://github.com/Layr-Labs/eigensdk-rs/pull/162)
164244
* Added clippy lints in `Cargo.toml` in [#159](https://github.com/Layr-Labs/eigensdk-rs/pull/159)
165245
* Added BLS aggregation logger in [#154](https://github.com/Layr-Labs/eigensdk-rs/pull/154)
166246
* Added `common` crate to `eigensdk` crate in [#213](https://github.com/Layr-Labs/eigensdk-rs/pull/213)
167247

168248
### Changed
249+
169250
* Updated `eigenlayer-middleware` to v0.4.3 (rewards release) in [#177](https://github.com/Layr-Labs/eigensdk-rs/pull/177)
170251
* Fixed Holesky RPC provider URL in [#184](https://github.com/Layr-Labs/eigensdk-rs/pull/184)
171252
* Fixed BLS signature logic in [#174](https://github.com/Layr-Labs/eigensdk-rs/pull/174)
172253

173254
### Removed
255+
174256
* Deleted `TxManager` in [#151](https://github.com/Layr-Labs/eigensdk-rs/pull/151)
175257
* Removed `TxManager` crate import in [#211](https://github.com/Layr-Labs/eigensdk-rs/pull/211)
176258
* Removed logs in `operatorsinfo` test in [#185](https://github.com/Layr-Labs/eigensdk-rs/pull/185)
177259

178260
### Documentation
261+
179262
* Added notes for running tests in [#194](https://github.com/Layr-Labs/eigensdk-rs/pull/194)
180263
* Added "Contract Bindings" section to the README in [#178](https://github.com/Layr-Labs/eigensdk-rs/pull/178)
181264
* Added "Branches" section to the README in [#200](https://github.com/Layr-Labs/eigensdk-rs/pull/200)
182265

183266
## Previous versions
184267

185268
This changelog was introduced in-between v0.1.2 and v0.1.3.
186-
For changes from previous releases, you can check on our GitHub repo's releases page: [github.com/Layr-Labs/eigensdk-rs/releases](https://github.com/Layr-Labs/eigensdk-rs/releases)
269+
For changes from previous releases, you can check on our GitHub repo's releases page: [github.com/Layr-Labs/eigensdk-rs/releases](https://github.com/Layr-Labs/eigensdk-rs/releases)

0 commit comments

Comments
 (0)