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
We should probably have a get_block or GetBlock or w/e casing we’re using in go land.
The reason I ask is because I’m trying to understand how various stuff works, we emit Deposit events when a BridgeLock is sent to a bridge account, would be cool if I had the ability to:
create a bridge account
transfer to it
look at block
bridge lock to it
look at block
And observe that there is a Deposit event
The text was updated successfully, but these errors were encountered:
Where are the Deposit events stored in the SequencerBlock?
They are there they are in the transactions of the rollup_transactions those bytes are protobuf encoded RollupData. Which has a oneof of either Deposit or bytes of sequenced_data. They are bytes that need further decoded for merkle tree verification purposes.
The Sequencer API gives you a SequencerBlock which contains RollupTransactions which has a repeated transactions field which is implicitly the serialized bytes for RollupData.
Using the Sequencer API to retrieve a block will not give you the RollupData object, but this is protobuf encoded, so it should be able to do something like the pseudo code:
for (per_rollup_txs in rollup_transactions) {
for (txs in per_rollup_txs) {
for (tx in txs) {
RollupData data = tx.deserialize()
}
}
}
The text was updated successfully, but these errors were encountered: