-
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 Blob ID in L1 #275
Conversation
get_all_blobs/getallblobs.js
Outdated
|
||
async function getTransactions() { | ||
const latestBlock = await web3.eth.getBlockNumber(); | ||
const validatorTimelockAddress = "0xeacf0411de906bdd8f2576692486383797d06004"; |
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.
please parameterize the validatorTimelockAddress
and the commitBatchesSharedBridge_functionSelector
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.
Done!
get_all_blobs/getallblobs.js
Outdated
|
||
getTransactions(); | ||
|
||
//0x4ed3cbf1cf6e8738118f87e5060aee0817c6f18b Chain Admin |
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.
what is the purpose of these comments?
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.
They are all the contracts that are called on L1, I think it is nice to leave them somewhere is case we need them in the future. That could go somewhere else tough
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.
Please address the comments. Also can you add some docs about how to run it?
Done! |
get_all_blobs/getallblobs.js
Outdated
input.slice(10) // Remove the function selector (first 10 characters of the calldata) | ||
); | ||
commitment = hexToUtf8(decodedParams._newBatchesData[0].pubdataCommitments.slice(4)); | ||
console.log(`Decoded Commitment:`, commitment); |
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.
please save/print the blobs too.
Had some issues running the mentioned procedure
I would recommend applying the second change. |
Yeah, typo, its npm |
What ❔
This PR adds the blob id to be stored on L1 when a batch is committed
It also adds a script for retrieving them directly from L1.
To run it:
This generates a
blob_data.json
file, where blobs and commitments are stored.Check
validatorTimelockAddress
when runningzk init
commitBatchesSharedBridge_functionSelector
is usually0x6edd4f12
Why ❔
Checklist
zk fmt
andzk lint
.