Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Slashing UAM #248

Merged
merged 97 commits into from
Feb 6, 2025
Merged
Changes from 1 commit
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
eacb771
optimizer = true, update rev for middleware
Jan 23, 2025
dc8e51d
fix:scripts
Jan 24, 2025
e952a24
fix dump state, bindings wip , register operator wip
Jan 26, 2025
98107cd
chore:update middleware rev
Jan 26, 2025
db82d62
fix:script and update bindings
Jan 26, 2025
000d6e9
fix register to operator sets wip
Jan 27, 2025
0e40ff0
fix: test_register_for_operator_sets
Jan 27, 2025
85af638
fix rpc url
Jan 27, 2025
7f114f5
fix:bls_agg_test import
Jan 27, 2025
9c32c7b
lint
Jan 27, 2025
f3c1af8
lint
Jan 27, 2025
13dac7d
lint
Jan 27, 2025
6c97f1c
remove usize
Jan 27, 2025
505791e
add separate middleware submodule for m2 quorum
Jan 28, 2025
96cff33
additional script m2 quorums wip
Jan 28, 2025
7e46922
m2 and slashing scripts fix wip
Jan 29, 2025
5284a39
fix m2 state
Jan 29, 2025
bc10726
separate state json files for m2 and operator sets
Jan 29, 2025
9896e9b
2 seperate contract dirs , delete submodules
Jan 30, 2025
ac269cf
forge install: forge-std
Jan 30, 2025
00df42c
add forge-std in m2
Jan 30, 2025
512e776
forge install: eigenlayer-middleware
Jan 30, 2025
8752b6b
forge install: forge-std
Jan 30, 2025
b082270
forge install: eigenlayer-middleware
Jan 30, 2025
e118cb7
middleware submodule in operator set contracts
Jan 30, 2025
33872a4
fix:m2 state and scripts
Jan 30, 2025
593f9ba
wip operator sets script fix
Jan 30, 2025
eb7a79f
delete submodule for now
Jan 30, 2025
eeb1fb7
forge install: eigenlayer-middleware
Jan 30, 2025
240fe98
fix:operator sets script and state
Jan 30, 2025
a93d6a5
modify elwriter to take allocation manager and permission controller …
Jan 30, 2025
8825d66
fix compile err
Jan 30, 2025
10051ec
remove unused container
Jan 30, 2025
078f5ee
fix:clippy
Jan 30, 2025
63ee4f0
fix anvil state path
Jan 30, 2025
212a113
ignore 2 test for now
Jan 30, 2025
09e9984
fix m2 state container initialization
Jan 30, 2025
88e305e
fix m2 state container
Jan 30, 2025
d9e0fad
fix anvil state port
Jan 30, 2025
19858c7
fix state json path
Jan 30, 2025
4e52d6b
fix anvil
Jan 30, 2025
35bb8e6
--port 8546
Jan 30, 2025
3394830
fix :allocation manager set to 0 in regisrtry, update state
Jan 31, 2025
058c2eb
remove ignore from tests ,lint
Jan 31, 2025
04528e7
lint
Jan 31, 2025
52fb82d
add blssignature checker in service manager in operator sets dir
Jan 31, 2025
1037092
different mine block function for operator sets
Jan 31, 2025
b85eabd
fix test_register_and_update_operator
Jan 31, 2025
27ee154
fix compile
Jan 31, 2025
22b4862
fix:test_set_allocation_delay
Jan 31, 2025
c84e366
fix compile
Jan 31, 2025
1bf47e1
fix:test_transaction_methods
Jan 31, 2025
a4ad403
ignore test_contract_call
Jan 31, 2025
3429ea0
fix : test_bls_agg , ignore other bls agg tests for now
Feb 3, 2025
461300b
fix:test_register_for_operator_sets
Feb 3, 2025
a18e887
add mine_anvil_blocks_operator_set in test_bls_agg
Feb 3, 2025
060060f
ignore 3 more tests for now
Feb 3, 2025
7afdbdc
add rewardsv2 and slashing binding
Feb 3, 2025
bd0ed05
fix bls_agg tests , pending readd container and cleanup
Feb 3, 2025
663bf5d
bls agg tests
Feb 4, 2025
4ff2b81
clippy
Feb 4, 2025
bc06e33
clippy
Feb 4, 2025
488f127
clippy
Feb 4, 2025
d7ae25b
clippy
Feb 4, 2025
73c633b
test_bls_m2 fix
Feb 4, 2025
945cb66
remove ignore from operatorsinfo tests , use m2 state
Feb 4, 2025
975617e
clippy
Feb 4, 2025
090a5e8
fix:operatorsinfo tests
Feb 4, 2025
1dbab59
Merge remote-tracking branch 'origin/dev' into nova/slashing_uam
supernovahs Feb 5, 2025
eacfba0
fix conflicts errors wip
supernovahs Feb 5, 2025
537d94f
fix: compile issues from merge conflict
supernovahs Feb 5, 2025
82db0b8
fix : bls_agg_test , typo
supernovahs Feb 6, 2025
39d891e
remove unwrap in allocation_manager
supernovahs Feb 6, 2025
4350cb7
use ok_or in error handling
supernovahs Feb 6, 2025
665dba8
use None in get_operator_info example
supernovahs Feb 6, 2025
f1aca2f
remove explicit type in set_allocation_delay
supernovahs Feb 6, 2025
7f43300
generating anvil state readme
supernovahs Feb 6, 2025
4c44a2d
fix:state file name
supernovahs Feb 6, 2025
e524213
bindings command fix wip
supernovahs Feb 6, 2025
1a84a3d
fix bindings
supernovahs Feb 6, 2025
535b9a6
fix: ci bindings_host
supernovahs Feb 6, 2025
299dec6
fix : anvil dump ci
supernovahs Feb 6, 2025
1391cca
fix: bindings.patch
supernovahs Feb 6, 2025
d8a99fa
fix dump state in ci
supernovahs Feb 6, 2025
d039419
wip patch
supernovahs Feb 6, 2025
29f5cab
regenerate bindings
supernovahs Feb 6, 2025
21cd926
patch
supernovahs Feb 6, 2025
52c0a4f
patch
supernovahs Feb 6, 2025
02ca2e2
fmt
supernovahs Feb 6, 2025
f6cb49a
copy-env in dump state
supernovahs Feb 6, 2025
633dbf7
add a small changelog for now
supernovahs Feb 6, 2025
0429b61
clippy
supernovahs Feb 6, 2025
1861bd9
remove commented script
supernovahs Feb 6, 2025
279959b
fix foundry project ci
supernovahs Feb 6, 2025
4379616
forge fmt
supernovahs Feb 6, 2025
1925f78
forge ci for both coontracts
supernovahs Feb 6, 2025
99ca3e7
update bindings
supernovahs Feb 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
lint
supernovahs committed Jan 27, 2025
commit 13dac7dd95a1b87fe5c29db1b17885cbcfefe2b0
19 changes: 3 additions & 16 deletions crates/chainio/clients/elcontracts/src/writer.rs
Original file line number Diff line number Diff line change
@@ -630,18 +630,6 @@ impl ELChainWriter {
DynSolValue::FixedArray(g2_point_y),
])
.abi_encode_params();
// let mut operator_kick_params = Vec::with_capacity(operator_set_ids.len());
// for (_i,operator_set_id) in operator_set_ids.iter().enumerate(){
// operator_kick_params[0] = OperatorKickParam{
// operator:operator_address,
// quorumNumber: u8::from_be_bytes(U8::from(*operator_set_id).to_be_bytes())
// }
// }
// let mut data: Bytes = (RegistrationType::NORMAL,socket, pub_key_reg_params).abi_encode().into();

// The encoder is prepending 32 bytes to the data as if it was used in a dynamic function parameter.
// This is not used when decoding the bytes directly, so we need to remove it.
// data = data.slice(32..);

let params = IAllocationManagerTypes::RegisterParams {
avs: avs_address,
@@ -1132,7 +1120,7 @@ mod tests {
assert!(receipt.status());
}

async fn create_operator_set(http_endpoint: &str, avs_address: Address, operator_set_id: u32) {
async fn create_operator_set(http_endpoint: &str, avs_address: Address) {
let allocation_manager_addr =
get_allocation_manager_address(http_endpoint.to_string()).await;
let default_signer = get_signer(ANVIL_FIRST_PRIVATE_KEY, http_endpoint);
@@ -1207,14 +1195,13 @@ mod tests {
let (_container, http_endpoint, _ws_endpoint) = start_anvil_container().await;
let avs_address = get_service_manager_address(http_endpoint.clone()).await;
let operator_set_id = 0;
create_operator_set(http_endpoint.as_str(), avs_address, operator_set_id).await;
create_operator_set(http_endpoint.as_str(), avs_address).await;

let operator_addr = OPERATOR_ADDRESS;
let operator_private_key = OPERATOR_PRIVATE_KEY;
let el_chain_writer =
new_test_writer(http_endpoint.clone(), operator_private_key.to_string()).await;
let bls_key = BlsKeyPair::new("1".to_string()).unwrap();
dbg!(operator_set_id);

let tx_hash = el_chain_writer
.register_for_operator_sets(
@@ -1284,7 +1271,7 @@ mod tests {

let avs_address = ANVIL_FIRST_ADDRESS;
let operator_set_id = 1;
create_operator_set(http_endpoint.as_str(), avs_address, operator_set_id).await;
create_operator_set(http_endpoint.as_str(), avs_address).await;

let new_allocation = 100;
let allocate_params = IAllocationManagerTypes::AllocateParams {