-
Notifications
You must be signed in to change notification settings - Fork 1
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(eigen-client-m0-implementation): send blob id to l1 #332
feat(eigen-client-m0-implementation): send blob id to l1 #332
Conversation
get_all_blobs/src/main.rs
Outdated
let latest_block = provider.get_block_number().await?; | ||
let mut json_array = Vec::new(); | ||
|
||
for block_number in 0..=latest_block { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For holesky testing we should not start at 0 or it will take too long, maybe this could be a parameter
get_all_blobs/src/main.rs
Outdated
let validator_timelock_address = | ||
Address::from_str("0x95af79aAB990f9740c029013ef18f3D3d666B4e8")?; | ||
let commit_batches_selector = "6edd4f12"; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The validator_timelock_address
is different each init, so it should be a parameter, the function selector usually does not change, so it is fine.
We should also add the url as parameter, for testing on holesky
We should add steps on how to run the get all blobs on the Readme |
get_all_blobs/Cargo.toml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it needs all those workspaces? Specially the zksync one, since it makes the compile time longer
get_all_blobs/src/main.rs
Outdated
let pubdata_commitments = commit_batch_info.last().ok_or(anyhow::anyhow!( | ||
"pubdata_commitments not found in commitBatchesSharedBridge input" | ||
))?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of taking the last, we should loop it and for each one decode a blob info and push it to the json
get_all_blobs/src/main.rs
Outdated
|
||
let validator_timelock_address = Address::from_str(&args[1])?; | ||
|
||
let commit_batches_selector = "6edd4f12"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be a constant
get_all_blobs/src/main.rs
Outdated
} | ||
|
||
async fn decode_blob_data_input(input: &[u8]) -> anyhow::Result<Vec<BlobData>> { | ||
let path = "./abi/commitBatchesSharedBridge.json"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be a constant too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
5e3b125
into
eigen-client-m0-implementation
What ❔
Send Eigend DA blob id to L1, in order to persist it and be able to rebuild the chain from it.
Checklist
zkstack dev fmt
andzkstack dev lint
.