You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
@@ -12,32 +12,68 @@ Each version will have a separate `Breaking Changes` section as well. To describ
12
12
Those changes in added, changed or breaking changes, should include usage examples to add clarity to the sdk user.
13
13
14
14
## [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
19
29
20
30
## [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
+
21
36
### Added 🎉
37
+
22
38
* 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
+
23
51
* 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:
26
53
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.
34
73
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
-
39
74
It was previously called this way:
40
-
```Rust
75
+
76
+
```rust
41
77
let el_chain_reader = ELChainReader::new(
42
78
logger,
43
79
SLASHER_ADDRESS,
@@ -46,8 +82,10 @@ Those changes in added, changed or breaking changes, should include usage exampl
46
82
provider_url,
47
83
);
48
84
```
85
+
49
86
Now, it's called this way:
50
-
``` Rust
87
+
88
+
```rust
51
89
let el_chain_reader = ELChainReader::new(
52
90
logger,
53
91
SLASHER_ADDRESS,
@@ -58,17 +96,47 @@ Those changes in added, changed or breaking changes, should include usage exampl
58
96
);
59
97
```
60
98
61
-
### Removed
99
+
### Removed 🗑
100
+
62
101
* Removed homepage from testing-utils crate in [#266](https://github.com/Layr-Labs/eigensdk-rs/pull/266).
63
102
* Removed changelog generation by release-plz in [#281](https://github.com/Layr-Labs/eigensdk-rs/pull/281).
64
103
* Removed examples packages from workspace.dependencies in Cargo.toml in [#287](https://github.com/Layr-Labs/eigensdk-rs/pull/287).
65
104
* Removed release-plz-pr workflow in release-plz in [#292](https://github.com/Layr-Labs/eigensdk-rs/pull/292).
66
105
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>
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