Skip to content

Commit f621aa2

Browse files
authored
update middleware rev to track 1.4.0 (#396)
Fixes # ### What Changed? <!-- Describe the changes made in this pull request --> ### 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 02c68ef commit f621aa2

File tree

16 files changed

+2478
-382
lines changed

16 files changed

+2478
-382
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ Those changes in added, changed or breaking changes, should include usage exampl
5151

5252
* Bump middleware to [v1.3.0-rc.0](https://github.com/Layr-Labs/eigenlayer-middleware/releases/tag/v1.3.0-rc.0) [#395](https://github.com/Layr-Labs/eigensdk-rs/pull/395).
5353

54+
* Bump middleware to [v1.4.0-testnet-holesky](https://github.com/Layr-Labs/eigenlayer-middleware/releases/tag/v1.4.0-testnet-holesky) [#396](https://github.com/Layr-Labs/eigensdk-rs/pull/396).
55+
5456
### Breaking Changes 🛠
5557

5658
* Updated slashing bindings to [the v1.1.1 eigenlayer-middleware release](https://github.com/Layr-Labs/eigenlayer-middleware/releases/tag/v1.1.1-testnet-slashing) [#365](https://github.com/Layr-Labs/eigensdk-rs/pull/365)

crates/m2_contracts/anvil/m2_contracts_deployed_anvil_state/state.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

crates/operator_sets_contracts/anvil/operatorset_contracts_deployed_anvil_state/state.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"lastUpdate":{"timestamp":"3","block_number":"1"},"addresses":{"proxyAdmin":"0xe7f1725e7734ce288f8367e1bb143e90bb3f0512","delegation":"0xcf7ed3acca5a467e9e704c703e8d87f634fb0fc9","delegationManagerImpl":"0xa85233c63b9ee964add6f2cffe00fd84eb32338f","avsDirectory":"0xb7f8bc63bbcad18155201308c8f3540b07f84f5e","avsDirectoryImpl":"0x7a2088a1bfc9d81c55368ae168c2c02570cb814f","strategyManager":"0xa513e6e4b8f2a923d98304ec87f64353c4d5c853","strategyManagerImpl":"0x09635f643e140090a9a8dcd712ed6285858cebef","eigenPodManager":"0x59b670e9fa9d0a427751af201d676719a970857b","strategyFactory":"0x3aa5ebb10dc797cac828524e59a333d0a371443c","rewardsCoordinator":"0x0dcd1bf9a1b36ce34237eeafef220932846bcd82","strategyBeacon":"0x1613beb3b2c4f22ee086b2b38c1476a3ce7f78e8","pauserRegistry":"0x9a9f2ccfde556a7e9ff0848998aa4a0cfd8863ae","allocationManager":"0x8a791620dd6260079bf849dc5567adc3f2fdc318","permissionController":"0x322813fd9a801c5507c9de605d63cea4f2ce6c44"}}
1+
{"lastUpdate":{"timestamp":"2","block_number":"1"},"addresses":{"proxyAdmin":"0xe7f1725e7734ce288f8367e1bb143e90bb3f0512","delegation":"0xcf7ed3acca5a467e9e704c703e8d87f634fb0fc9","delegationManagerImpl":"0xa85233c63b9ee964add6f2cffe00fd84eb32338f","avsDirectory":"0xb7f8bc63bbcad18155201308c8f3540b07f84f5e","avsDirectoryImpl":"0x7a2088a1bfc9d81c55368ae168c2c02570cb814f","strategyManager":"0xa513e6e4b8f2a923d98304ec87f64353c4d5c853","strategyManagerImpl":"0x09635f643e140090a9a8dcd712ed6285858cebef","eigenPodManager":"0x59b670e9fa9d0a427751af201d676719a970857b","strategyFactory":"0x3aa5ebb10dc797cac828524e59a333d0a371443c","rewardsCoordinator":"0x0dcd1bf9a1b36ce34237eeafef220932846bcd82","strategyBeacon":"0x1613beb3b2c4f22ee086b2b38c1476a3ce7f78e8","pauserRegistry":"0x9a9f2ccfde556a7e9ff0848998aa4a0cfd8863ae","allocationManager":"0x8a791620dd6260079bf849dc5567adc3f2fdc318","permissionController":"0x322813fd9a801c5507c9de605d63cea4f2ce6c44"}}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"lastUpdate":{"timestamp":"20","block_number":"45"},"addresses":{"proxyAdmin":"0x5eb3bc0a489c5a8288765d2336659ebca68fcd00","MockAvsServiceManager":"0xb7278a61aa25c888815afc32ad3cc52ff24fe575","MockAvsServiceManagerImpl":"0x51a1ceb83b83f1985a81c295d1ff28afef186e02","registryCoordinator":"0x7969c5ed335650692bc04293b07f5bf2e7a673c0","blsapkRegistry":"0xc351628eb244ec633d5f21fbd6621e1a683b1181","indexRegistry":"0xcbeaf3bde82155f56486fb5a1072cb8baaf547cc","stakeRegistry":"0x82e01223d51eb87e16a03e24687edf0f294da6f1","operatorStateRetriever":"0x1429859428c0abc9c2c47c8ee9fbaf82cfa0f20f","strategy":"0xec4cfde48eadca2bc63e94bb437bbeace1371bf3","token":"0x36c02da8a0983159322a80ffe9f24b1acff8b570","tokenRewards":"0x809d550fca64d94bd9f66e60752a544199cfac3d"}}
1+
{"lastUpdate":{"timestamp":"19","block_number":"45"},"addresses":{"proxyAdmin":"0x5eb3bc0a489c5a8288765d2336659ebca68fcd00","MockAvsServiceManager":"0xb7278a61aa25c888815afc32ad3cc52ff24fe575","MockAvsServiceManagerImpl":"0x51a1ceb83b83f1985a81c295d1ff28afef186e02","registryCoordinator":"0x7969c5ed335650692bc04293b07f5bf2e7a673c0","blsapkRegistry":"0xc351628eb244ec633d5f21fbd6621e1a683b1181","indexRegistry":"0xcbeaf3bde82155f56486fb5a1072cb8baaf547cc","stakeRegistry":"0x82e01223d51eb87e16a03e24687edf0f294da6f1","operatorStateRetriever":"0x1429859428c0abc9c2c47c8ee9fbaf82cfa0f20f","strategy":"0xec4cfde48eadca2bc63e94bb437bbeace1371bf3","token":"0x36c02da8a0983159322a80ffe9f24b1acff8b570","tokenRewards":"0x809d550fca64d94bd9f66e60752a544199cfac3d"}}

crates/utils/src/slashing/core/delegationmanager.rs

Lines changed: 4 additions & 4 deletions
Large diffs are not rendered by default.

crates/utils/src/slashing/core/eigenpod.rs

Lines changed: 100 additions & 5 deletions
Large diffs are not rendered by default.

crates/utils/src/slashing/core/eigenpodmanager.rs

Lines changed: 1211 additions & 179 deletions
Large diffs are not rendered by default.

crates/utils/src/slashing/core/ieigenpod.rs

Lines changed: 96 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1811,6 +1811,7 @@ interface IEigenPod {
18111811
error CheckpointAlreadyActive();
18121812
error CredentialsAlreadyVerified();
18131813
error CurrentlyPaused();
1814+
error ForkTimestampZero();
18141815
error InputAddressZero();
18151816
error InputArrayLengthMismatch();
18161817
error InsufficientWithdrawableBalance();
@@ -2623,6 +2624,11 @@ interface IEigenPod {
26232624
"name": "CurrentlyPaused",
26242625
"inputs": []
26252626
},
2627+
{
2628+
"type": "error",
2629+
"name": "ForkTimestampZero",
2630+
"inputs": []
2631+
},
26262632
{
26272633
"type": "error",
26282634
"name": "InputAddressZero",
@@ -3040,6 +3046,66 @@ pub mod IEigenPod {
30403046
}
30413047
}
30423048
};
3049+
/**Custom error with signature `ForkTimestampZero()` and selector `0x41a02cc9`.
3050+
```solidity
3051+
error ForkTimestampZero();
3052+
```*/
3053+
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
3054+
#[derive(Clone)]
3055+
pub struct ForkTimestampZero {}
3056+
#[allow(
3057+
non_camel_case_types,
3058+
non_snake_case,
3059+
clippy::pub_underscore_fields,
3060+
clippy::style
3061+
)]
3062+
const _: () = {
3063+
use alloy::sol_types as alloy_sol_types;
3064+
#[doc(hidden)]
3065+
type UnderlyingSolTuple<'a> = ();
3066+
#[doc(hidden)]
3067+
type UnderlyingRustTuple<'a> = ();
3068+
#[cfg(test)]
3069+
#[allow(dead_code, unreachable_patterns)]
3070+
fn _type_assertion(_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>) {
3071+
match _t {
3072+
alloy_sol_types::private::AssertTypeEq::<
3073+
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
3074+
>(_) => {}
3075+
}
3076+
}
3077+
#[automatically_derived]
3078+
#[doc(hidden)]
3079+
impl ::core::convert::From<ForkTimestampZero> for UnderlyingRustTuple<'_> {
3080+
fn from(value: ForkTimestampZero) -> Self {
3081+
()
3082+
}
3083+
}
3084+
#[automatically_derived]
3085+
#[doc(hidden)]
3086+
impl ::core::convert::From<UnderlyingRustTuple<'_>> for ForkTimestampZero {
3087+
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
3088+
Self {}
3089+
}
3090+
}
3091+
#[automatically_derived]
3092+
impl alloy_sol_types::SolError for ForkTimestampZero {
3093+
type Parameters<'a> = UnderlyingSolTuple<'a>;
3094+
type Token<'a> = <Self::Parameters<'a> as alloy_sol_types::SolType>::Token<'a>;
3095+
const SIGNATURE: &'static str = "ForkTimestampZero()";
3096+
const SELECTOR: [u8; 4] = [65u8, 160u8, 44u8, 201u8];
3097+
#[inline]
3098+
fn new<'a>(
3099+
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
3100+
) -> Self {
3101+
tuple.into()
3102+
}
3103+
#[inline]
3104+
fn tokenize(&self) -> Self::Token<'_> {
3105+
()
3106+
}
3107+
}
3108+
};
30433109
/**Custom error with signature `InputAddressZero()` and selector `0x73632176`.
30443110
```solidity
30453111
error InputAddressZero();
@@ -8855,6 +8921,8 @@ pub mod IEigenPod {
88558921
#[allow(missing_docs)]
88568922
CurrentlyPaused(CurrentlyPaused),
88578923
#[allow(missing_docs)]
8924+
ForkTimestampZero(ForkTimestampZero),
8925+
#[allow(missing_docs)]
88588926
InputAddressZero(InputAddressZero),
88598927
#[allow(missing_docs)]
88608928
InputArrayLengthMismatch(InputArrayLengthMismatch),
@@ -8904,6 +8972,7 @@ pub mod IEigenPod {
89048972
[46u8, 173u8, 230u8, 55u8],
89058973
[53u8, 224u8, 158u8, 157u8],
89068974
[55u8, 224u8, 127u8, 253u8],
8975+
[65u8, 160u8, 44u8, 201u8],
89078976
[66u8, 122u8, 119u8, 121u8],
89088977
[67u8, 113u8, 74u8, 253u8],
89098978
[85u8, 138u8, 208u8, 163u8],
@@ -8926,7 +8995,7 @@ pub mod IEigenPod {
89268995
impl alloy_sol_types::SolInterface for IEigenPodErrors {
89278996
const NAME: &'static str = "IEigenPodErrors";
89288997
const MIN_DATA_LENGTH: usize = 0usize;
8929-
const COUNT: usize = 22usize;
8998+
const COUNT: usize = 23usize;
89308999
#[inline]
89319000
fn selector(&self) -> [u8; 4] {
89329001
match self {
@@ -8945,6 +9014,9 @@ pub mod IEigenPod {
89459014
Self::CurrentlyPaused(_) => {
89469015
<CurrentlyPaused as alloy_sol_types::SolError>::SELECTOR
89479016
}
9017+
Self::ForkTimestampZero(_) => {
9018+
<ForkTimestampZero as alloy_sol_types::SolError>::SELECTOR
9019+
}
89489020
Self::InputAddressZero(_) => {
89499021
<InputAddressZero as alloy_sol_types::SolError>::SELECTOR
89509022
}
@@ -9088,6 +9160,18 @@ pub mod IEigenPod {
90889160
}
90899161
BeaconTimestampTooFarInPast
90909162
},
9163+
{
9164+
fn ForkTimestampZero(
9165+
data: &[u8],
9166+
validate: bool,
9167+
) -> alloy_sol_types::Result<IEigenPodErrors> {
9168+
<ForkTimestampZero as alloy_sol_types::SolError>::abi_decode_raw(
9169+
data, validate,
9170+
)
9171+
.map(IEigenPodErrors::ForkTimestampZero)
9172+
}
9173+
ForkTimestampZero
9174+
},
90919175
{
90929176
fn OnlyEigenPodOwnerOrProofSubmitter(
90939177
data: &[u8],
@@ -9322,6 +9406,11 @@ pub mod IEigenPod {
93229406
inner,
93239407
)
93249408
}
9409+
Self::ForkTimestampZero(inner) => {
9410+
<ForkTimestampZero as alloy_sol_types::SolError>::abi_encoded_size(
9411+
inner,
9412+
)
9413+
}
93259414
Self::InputAddressZero(inner) => {
93269415
<InputAddressZero as alloy_sol_types::SolError>::abi_encoded_size(
93279416
inner,
@@ -9442,6 +9531,12 @@ pub mod IEigenPod {
94429531
out,
94439532
)
94449533
}
9534+
Self::ForkTimestampZero(inner) => {
9535+
<ForkTimestampZero as alloy_sol_types::SolError>::abi_encode_raw(
9536+
inner,
9537+
out,
9538+
)
9539+
}
94459540
Self::InputAddressZero(inner) => {
94469541
<InputAddressZero as alloy_sol_types::SolError>::abi_encode_raw(
94479542
inner,

0 commit comments

Comments
 (0)