-
Notifications
You must be signed in to change notification settings - Fork 3.9k
op-node: ParseWithdrawalInitiated improvements #3605
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
83002ed
op-node: ParseWithdrawalInitiated improvements
mslipper 19439e3
add extension 1
mslipper 79e8a68
Update op-node/withdrawals/utils.go
mslipper f587495
Update op-node/withdrawals/utils.go
mslipper de1f173
Update op-node/withdrawals/utils.go
mslipper fbb84de
add docstring
mslipper 9dcf9cc
use shared lib
mslipper 855a669
Merge branch 'develop' into feat/parse-withdrawal-improvements
mslipper c4c8a67
Merge branch 'develop' into feat/parse-withdrawal-improvements
mergify[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| package testutils | ||
|
|
||
| import ( | ||
| "math/big" | ||
| "testing" | ||
| ) | ||
|
|
||
| func BigEqual(a, b *big.Int) bool { | ||
| if a == nil || b == nil { | ||
| return a == b | ||
| } else { | ||
| return a.Cmp(b) == 0 | ||
| } | ||
| } | ||
|
|
||
| func RequireBigEqual(t *testing.T, exp, actual *big.Int) { | ||
| if !BigEqual(exp, actual) { | ||
| t.Fatalf("expected %s to be equal to %s", exp.String(), actual.String()) | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,134 @@ | ||
| { | ||
| "type": "0x2", | ||
| "root": "0x", | ||
| "status": "0x1", | ||
| "cumulativeGasUsed": "0x28786", | ||
| "logsBloom": "0x0000000000004000001000000000000000000000000000100010000000100000000000000000808000000000020400800000000000000004000010000000000000002000000004004000000800000010040000000000000000000000000000000000000012000000000000000000080088080000000200000000001c000000000200000000000000000040000100000000800000000000000001000000201000000000000002004201008000000001000000200000400000000000000000100000000052000200000100000408020010000002100000000000040000200020000000000000000200000100400000000000000000000000000001100000000000", | ||
| "logs": [ | ||
| { | ||
| "address": "0x7c6b91d9be155a6db01f749217d76ff02a7227f2", | ||
| "topics": [ | ||
| "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", | ||
| "0x000000000000000000000000c20c5ec92fda6e611a08485123cdc0d5b84bd3a2", | ||
| "0x0000000000000000000000000000000000000000000000000000000000000000" | ||
| ], | ||
| "data": "0x00000000000000000000000000000000000000000000000000000000000001f4", | ||
| "blockNumber": "0x36", | ||
| "transactionHash": "0x9346381068b59d2098495baa72ed2f773c1e09458610a7a208984859dff73add", | ||
| "transactionIndex": "0x1", | ||
| "blockHash": "0xfdd4ad8a984b45687aca0463db491cbd0e85273d970019a3f8bf618b614938df", | ||
| "logIndex": "0x0", | ||
| "removed": false | ||
| }, | ||
| { | ||
| "address": "0x7c6b91d9be155a6db01f749217d76ff02a7227f2", | ||
| "topics": [ | ||
| "0xcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5", | ||
| "0x000000000000000000000000c20c5ec92fda6e611a08485123cdc0d5b84bd3a2" | ||
| ], | ||
| "data": "0x00000000000000000000000000000000000000000000000000000000000001f4", | ||
| "blockNumber": "0x36", | ||
| "transactionHash": "0x9346381068b59d2098495baa72ed2f773c1e09458610a7a208984859dff73add", | ||
| "transactionIndex": "0x1", | ||
| "blockHash": "0xfdd4ad8a984b45687aca0463db491cbd0e85273d970019a3f8bf618b614938df", | ||
| "logIndex": "0x1", | ||
| "removed": false | ||
| }, | ||
| { | ||
| "address": "0x4200000000000000000000000000000000000016", | ||
| "topics": [ | ||
| "0x87bf7b546c8de873abb0db5b579ec131f8d0cf5b14f39933551cf9ced23a6136", | ||
| "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
| "0x0000000000000000000000004200000000000000000000000000000000000007", | ||
| "0x0000000000000000000000006900000000000000000000000000000000000002" | ||
| ], | ||
| "data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000031b80000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001e4d764ad0b0001000000000000000000000000000000000000000000000000000000000000000000000000000000000000420000000000000000000000000000000000001000000000000000000000000069000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000e40166a07a00000000000000000000000089d51be807d98fc974a0f41b2e67a8228d7846ef0000000000000000000000007c6b91d9be155a6db01f749217d76ff02a7227f2000000000000000000000000c20c5ec92fda6e611a08485123cdc0d5b84bd3a2000000000000000000000000c20c5ec92fda6e611a08485123cdc0d5b84bd3a200000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", | ||
| "blockNumber": "0x36", | ||
| "transactionHash": "0x9346381068b59d2098495baa72ed2f773c1e09458610a7a208984859dff73add", | ||
| "transactionIndex": "0x1", | ||
| "blockHash": "0xfdd4ad8a984b45687aca0463db491cbd0e85273d970019a3f8bf618b614938df", | ||
| "logIndex": "0x2", | ||
| "removed": false | ||
| }, | ||
| { | ||
| "address": "0x4200000000000000000000000000000000000016", | ||
| "topics": [ | ||
| "0x2ef6ceb1668fdd882b1f89ddd53a666b0c1113d14cf90c0fbf97c7b1ad880fbb", | ||
| "0x0d827f8148288e3a2466018f71b968ece4ea9f9e2a81c30da9bd46cce2868285" | ||
| ], | ||
| "data": "0x", | ||
| "blockNumber": "0x36", | ||
| "transactionHash": "0x9346381068b59d2098495baa72ed2f773c1e09458610a7a208984859dff73add", | ||
| "transactionIndex": "0x1", | ||
| "blockHash": "0xfdd4ad8a984b45687aca0463db491cbd0e85273d970019a3f8bf618b614938df", | ||
| "logIndex": "0x3", | ||
| "removed": false | ||
| }, | ||
| { | ||
| "address": "0x4200000000000000000000000000000000000007", | ||
| "topics": [ | ||
| "0xcb0f7ffd78f9aee47a248fae8db181db6eee833039123e026dcbff529522e52a", | ||
| "0x0000000000000000000000006900000000000000000000000000000000000003" | ||
| ], | ||
| "data": "0x000000000000000000000000420000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000800001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e40166a07a00000000000000000000000089d51be807d98fc974a0f41b2e67a8228d7846ef0000000000000000000000007c6b91d9be155a6db01f749217d76ff02a7227f2000000000000000000000000c20c5ec92fda6e611a08485123cdc0d5b84bd3a2000000000000000000000000c20c5ec92fda6e611a08485123cdc0d5b84bd3a200000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", | ||
| "blockNumber": "0x36", | ||
| "transactionHash": "0x9346381068b59d2098495baa72ed2f773c1e09458610a7a208984859dff73add", | ||
| "transactionIndex": "0x1", | ||
| "blockHash": "0xfdd4ad8a984b45687aca0463db491cbd0e85273d970019a3f8bf618b614938df", | ||
| "logIndex": "0x4", | ||
| "removed": false | ||
| }, | ||
| { | ||
| "address": "0x4200000000000000000000000000000000000007", | ||
| "topics": [ | ||
| "0x8ebb2ec2465bdb2a06a66fc37a0963af8a2a6a1479d81d56fdb8cbb98096d546", | ||
| "0x0000000000000000000000004200000000000000000000000000000000000010" | ||
| ], | ||
| "data": "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
| "blockNumber": "0x36", | ||
| "transactionHash": "0x9346381068b59d2098495baa72ed2f773c1e09458610a7a208984859dff73add", | ||
| "transactionIndex": "0x1", | ||
| "blockHash": "0xfdd4ad8a984b45687aca0463db491cbd0e85273d970019a3f8bf618b614938df", | ||
| "logIndex": "0x5", | ||
| "removed": false | ||
| }, | ||
| { | ||
| "address": "0x4200000000000000000000000000000000000010", | ||
| "topics": [ | ||
| "0x7ff126db8024424bbfd9826e8ab82ff59136289ea440b04b39a0df1b03b9cabf", | ||
| "0x0000000000000000000000007c6b91d9be155a6db01f749217d76ff02a7227f2", | ||
| "0x00000000000000000000000089d51be807d98fc974a0f41b2e67a8228d7846ef", | ||
| "0x000000000000000000000000c20c5ec92fda6e611a08485123cdc0d5b84bd3a2" | ||
| ], | ||
| "data": "0x000000000000000000000000c20c5ec92fda6e611a08485123cdc0d5b84bd3a200000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000", | ||
| "blockNumber": "0x36", | ||
| "transactionHash": "0x9346381068b59d2098495baa72ed2f773c1e09458610a7a208984859dff73add", | ||
| "transactionIndex": "0x1", | ||
| "blockHash": "0xfdd4ad8a984b45687aca0463db491cbd0e85273d970019a3f8bf618b614938df", | ||
| "logIndex": "0x6", | ||
| "removed": false | ||
| }, | ||
| { | ||
| "address": "0x4200000000000000000000000000000000000010", | ||
| "topics": [ | ||
| "0x73d170910aba9e6d50b102db522b1dbcd796216f5128b445aa2135272886497e", | ||
| "0x00000000000000000000000089d51be807d98fc974a0f41b2e67a8228d7846ef", | ||
| "0x0000000000000000000000007c6b91d9be155a6db01f749217d76ff02a7227f2", | ||
| "0x000000000000000000000000c20c5ec92fda6e611a08485123cdc0d5b84bd3a2" | ||
| ], | ||
| "data": "0x000000000000000000000000c20c5ec92fda6e611a08485123cdc0d5b84bd3a200000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000", | ||
| "blockNumber": "0x36", | ||
| "transactionHash": "0x9346381068b59d2098495baa72ed2f773c1e09458610a7a208984859dff73add", | ||
| "transactionIndex": "0x1", | ||
| "blockHash": "0xfdd4ad8a984b45687aca0463db491cbd0e85273d970019a3f8bf618b614938df", | ||
| "logIndex": "0x7", | ||
| "removed": false | ||
| } | ||
| ], | ||
| "transactionHash": "0x9346381068b59d2098495baa72ed2f773c1e09458610a7a208984859dff73add", | ||
| "contractAddress": "0x0000000000000000000000000000000000000000", | ||
| "gasUsed": "0x28786", | ||
| "blockHash": "0xfdd4ad8a984b45687aca0463db491cbd0e85273d970019a3f8bf618b614938df", | ||
| "blockNumber": "0x36", | ||
| "transactionIndex": "0x1" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.