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

Repo Cleanup #10

Merged
merged 2 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
636 changes: 379 additions & 257 deletions README.md

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ solc = "0.8.24"
optimizer = true
optimizer_runs = 100000
evm_version = "shanghai"
fs_permissions = [{ access = "read", path = "proofs"}]

[profile.default.fuzz]
runs = 10000

[fmt]
bracket_spacing = true
Expand Down
55 changes: 55 additions & 0 deletions contracts/proofs/Current.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"ssz_proof": {
"type": "CurrentBlock",
"block_number_proof": {
"branch": [
"0x80c3c90100000000000000000000000000000000000000000000000000000000",
"0x7e73391c60fc1ad89a3568b6d68f9939ca75f2334a39a4f28ebd0d1d1236b155",
"0x2f65b0c0f58db6220cc7320e1342646521938e325dcee4f24ac86a2c2a36dc30",
"0xca1b5a8f66b22cb83983328a4f2ad01237a11eefe006bbd774898b57cdfe8ee0",
"0xb9ce8de979e8b7148e3950f9e8cb273220e04e309a598125d05b7d7f85544378"
],
"generalized_index": 38,
"leaf": "0x8fb0360100000000000000000000000000000000000000000000000000000000",
"local_index": 6,
"root": "0x8fb9b7f0da7bf188eace48eae9570ab5bf71b7799e3af991fbffd6f921f322e3"
},
"blockhash_proof": {
"branch": [
"0x98907ff2db2d8d736b264c942acfa577abe1fade84ba5aa0452ada7c92724c10",
"0x01518d7ada184505cac9b357524a82ff896d010980c97206cd0428825cecc378",
"0x352afee35170f2a33c1a77219c35e651c54b389fed8c4246bf20d01efaf57bd8",
"0x8d81d69fd3e4479b64c973aabec7ce7018e1fc0473ce187b60ebaef821cdc769",
"0xb9ce8de979e8b7148e3950f9e8cb273220e04e309a598125d05b7d7f85544378"
],
"generalized_index": 44,
"leaf": "0x1dfaf76d5bcf603cfa38b9fdd791e1a14c3701d0468b84f4bf6b7cf4c260525e",
"local_index": 12,
"root": "0x8fb9b7f0da7bf188eace48eae9570ab5bf71b7799e3af991fbffd6f921f322e3"
},
"curr_state_root_proof": {
"branch": [
"0x1d0e66c14b2df6a592e348ff1a785f6a1da4d3bff3f03b1c37706adf4b9c60d2",
"0x63927d5d06977fc159fb1a023208e97ae3b11ef4d9049209ba2dd1fdf6df5553",
"0xe50667bec9fe6f0f2c93e55ec51f1e42e427f6894ce13ff3f2bb5a783c59ae7a"
],
"generalized_index": 11,
"leaf": "0x5b5b58c88c8bca6a8c3901892e2dfded3ead0a67602cecb9dc0fa2fc4cc7984e",
"local_index": 3,
"root": "0x1eb75a280a75f6f05cafefa43ea93daf78857398c626be53692290f8a71a03a2"
},
"execution_payload_proof": {
"branch": [
"0xeb1b2c0300000000000000000000000000000000000000000000000000000000",
"0x7a635f6b5c96574d4a4eda40e63602947682cc7584271d26eab500b62f4e54bf",
"0xdb56114e00fdd4c1f85c892bf35ac9a89289aaecb1ebd0a96cde606a748b5d71",
"0x7529dfe4f3504264983ceb4c11cd3869c52a6384491d3f09315a5404656f534b",
"0x026a4f79435a63b7e343a74608d99a553dea104cb3027a9645f3eed567aedd8e"
],
"generalized_index": 56,
"leaf": "0x623b517ad4253af9b2681ce3463b4fbbef1c3bde741574f92eaa1e219fe361a8",
"local_index": 24,
"root": "0x712394bfa792683f38e6b167e14806cbc80b7a9c6ad95ffb21e9bf800a734002"
}
}
}
115 changes: 115 additions & 0 deletions contracts/proofs/Historical.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
{
"ssz_proof": {
"block_number_proof": {
"branch": [
"0x80c3c90100000000000000000000000000000000000000000000000000000000",
"0xdeab16349db41db0719e5e959c47663b89fe78b82265251e1cfbf8a05936dd71",
"0x923f26a890146f0774bb9686d25819fb898c44b63fdd0c83dc3ab2e2b035d095",
"0xdc7b9eeacbcd6e82918ecc8939fc718858aec6e822bc0356a123605455a6cf7b",
"0x2a36e25ced18cdb69e1560a10f42aec4acd87e7661ff35501380e212b10e0e62"
],
"generalized_index": 38,
"leaf": "0x9b90360100000000000000000000000000000000000000000000000000000000",
"local_index": 6,
"root": "0x106830a56464d2157bf4641f743fdc3be332e24e31061a5c553ab25c75f94a95"
},
"blockhash_proof": {
"branch": [
"0x20d6f4e6356bc159b368341627ac77e06d831f4a86d0691cb15ac6512eeef662",
"0x31ff5fb7f6606c72dd7f8db7f47af00edaff95cf829adcbb93b7e263a9f517de",
"0x178fb3a7402845508c4c141bacec3bfd7961f7206f7588448c7d07b3956b9214",
"0x2bdb838c7a4806dfd1fe2b2769cec1c79e4bf7d3833f06e952536ffcd056cfaf",
"0x2a36e25ced18cdb69e1560a10f42aec4acd87e7661ff35501380e212b10e0e62"
],
"generalized_index": 44,
"leaf": "0x4e64288844f3ecd1994862146b90c0dda41822eaf845a5f4501ec1da028383a8",
"local_index": 12,
"root": "0x106830a56464d2157bf4641f743fdc3be332e24e31061a5c553ab25c75f94a95"
},
"curr_state_root_proof": {
"branch": [
"0x1d0e66c14b2df6a592e348ff1a785f6a1da4d3bff3f03b1c37706adf4b9c60d2",
"0x63927d5d06977fc159fb1a023208e97ae3b11ef4d9049209ba2dd1fdf6df5553",
"0xe50667bec9fe6f0f2c93e55ec51f1e42e427f6894ce13ff3f2bb5a783c59ae7a"
],
"generalized_index": 11,
"leaf": "0x5b5b58c88c8bca6a8c3901892e2dfded3ead0a67602cecb9dc0fa2fc4cc7984e",
"local_index": 3,
"root": "0xba2c7b3b35f8eff254a0e30300feed6a2885bdc299fd1eb8823a73b922b23b59"
},
"execution_payload_proof": {
"branch": [
"0xab1c2a0300000000000000000000000000000000000000000000000000000000",
"0x744f502e6194c14330052d704bfafa60925bf00d8a2f1568e14e365f6ca63be1",
"0xdb56114e00fdd4c1f85c892bf35ac9a89289aaecb1ebd0a96cde606a748b5d71",
"0xb9116d75914722f1c89cf2bd51b11bd3167615abc265408e00822166d158b5c9",
"0x51b7c46c28d41aa08cb77b8514cc413f37105d6e325095b8e06003721775da11"
],
"generalized_index": 56,
"leaf": "0x106830a56464d2157bf4641f743fdc3be332e24e31061a5c553ab25c75f94a95",
"local_index": 24,
"root": "0xfd22b356591114ba21745e976f81a97bfefbfe9839d17e01adae77cc02c7268f"
},
"hist_state_root_proof": {
"branch": [
"0x4882fd44f01d5f75de72a93b33648a8528005fb0e409e1c012757e34a2ef69cc",
"0xe4f64a168fe1aa3ea666d7401bfa20527b08aee6ceb4ede2852348e4ec19a80a",
"0x10e8b9f45d0cc2fcc622068d65c53f310e94443cb7450931b6792df3cfd1c30a",
"0xb9ed6ef91a14dd0b7aadae3d390b70065eb637e17d474267a264973d53f572d9",
"0x8df886ba0f4c4a4c937b7c289cc09a98453f7078a883f406c26b2d355d2aed41",
"0x51a3f2586eabcc4c829aa474b5c0c4a19ffd10ded9f1c106bfd533580a2a218c",
"0xc0f65e5e76b634ef47860b40916b2ec9dacd755ef62d1ccfbb7ace2f887150ea",
"0x49091602a3fb08061dd97bf4ff89f33a0569c69db8abcb569f7e0a5418dd5a83",
"0xa4658debd96bd00d6625c8ca1c5672607dd3543f007416a8ae33de79fa3e03a2",
"0xc6e52045b5925e7e09ecef2d6d3f15b5d8bf59b324c7fb666f74dee4accd435b",
"0x4f745be73399d9752df8954e5afe30c80f1860df6218705e0b4b251d018e93f4",
"0x1f7325ec65a54c6e6b413845ea38dbda1974d8966eda7de95dcc4ad8d4b676d1",
"0xc8ce7af253f68b9cadea80165571ec410d17a366281bacd052972d99fc0c5fcb"
],
"generalized_index": 16320,
"leaf": "0xfd22b356591114ba21745e976f81a97bfefbfe9839d17e01adae77cc02c7268f",
"local_index": 8128,
"root": "0xf4d009882fd5e34e2b235bb8e1727ef3a16a0797244ee209b14a7402db5cf0fc"
},
"summary_root_proof": {
"branch": [
"0xd30b7ab14521d9a3ff9873a052a3da7778c9362317c4a9f73e3ca8ce9154789c",
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0xf5a5fd42d16a20302798ef6ed309979b43003d2320d9f0e8ea9831a92759fb4b",
"0xdb56114e00fdd4c1f85c892bf35ac9a89289aaecb1ebd0a96cde606a748b5d71",
"0x5a0d881fa31f37c1ce162a4ddc54cbd9ac6e8d115c86f3a242eb131e071512e9",
"0x782cf737bc50eccde614a3d336a2ee6295c89dabe6887f78b8d345eea3dc1a48",
"0x9efde052aa15429fae05bad4d0b1d7c64da64d03d7a1854a588c2cb8430c0d30",
"0xd88ddfeed400a8755596b21942c1497e114c302e6118290f91e6772976041fa1",
"0x824dfe0e3b5770995756d697ad340379726df273846bd11b4c2cfba106823f65",
"0x460485af574848585860d57ea2bd50835e0b5a2a296e0dcb014483c82debb54f",
"0x506d86582d252405b840018792cad2bf1259f1ef5aa5f887e13cb2f0094f51e1",
"0xffff0ad7e659772f9534c195c815efc4014ef1e1daed4404c06385d11192e92b",
"0x6cf04127db05441cd833107a52be852868890e4317e6a02ab47683aa75964220",
"0xb7d05f875f140027ef5118a2247bbb84ce8f2f0f1123623085daf7960c329f5f",
"0xdf6af5f5bbdb6be9ef8aa618e4bf8073960867171e29676f8b284dea6a08a85e",
"0xb58d900f5e182e3c50ef74969ea16c7726c549757cc23523c369587da7293784",
"0xd49a7502ffcfb0340b1d7885688500ca308161a7f96b62df9d083b71fcc8f2bb",
"0x8fe6b1689256c0d385f42f5bbe2027a22c1996e110ba97c171d3e5948de92beb",
"0x8d0d63c39ebade8509e0ae3c9c3876fb5fa112be18f905ecacfecb92057603ab",
"0x95eec8b2e541cad4e91de38385f2e046619f54496c2382cb6cacd5b98c26f5a4",
"0xf893e908917775b62bff23294dbbe3a1cd8e6cc1c35b4801887b646a6f81f17f",
"0xcddba7b592e3133393c16194fac7431abf2f5485ed711db282183c819e08ebaa",
"0x8a8d7fe3af8caa085a7639a832001457dfb9128a8061142ad0335629ff23ff9c",
"0xfeb3c337d7a51a6fbf00b9e34c52e1c9195c969bd4e7a0bfd51d5c5bed9c1167",
"0xe71f0aa83cc32edfbefa9f4d3e0174ca85182eec9f3a09f6a6c0df6377a510d7",
"0x9901000000000000000000000000000000000000000000000000000000000000",
"0xcb9a130000000000000000000000000000000000000000000000000000000000",
"0xd25bc7f07250c3bcbbce5b1e4e23d20715982d1e4cc0e38bd8d2da5d18cba654",
"0xdb56114e00fdd4c1f85c892bf35ac9a89289aaecb1ebd0a96cde606a748b5d71",
"0x7529dfe4f3504264983ceb4c11cd3869c52a6384491d3f09315a5404656f534b",
"0x026a4f79435a63b7e343a74608d99a553dea104cb3027a9645f3eed567aedd8e"
],
"generalized_index": 3959423793,
"leaf": "0xf4d009882fd5e34e2b235bb8e1727ef3a16a0797244ee209b14a7402db5cf0fc",
"local_index": 1811940145,
"root": "0x5b5b58c88c8bca6a8c3901892e2dfded3ead0a67602cecb9dc0fa2fc4cc7984e"
},
"type": "HistoricalBlock"
}
}
81 changes: 81 additions & 0 deletions contracts/proofs/RecentHistorical.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"ssz_proof": {
"block_number_proof": {
"branch": [
"0x80c3c90100000000000000000000000000000000000000000000000000000000",
"0x91931c7d2514f5b67fa88c8b538f8d7c6c6b17663060af683c3b03b95de2d98b",
"0x274dde287f04ddc191edd140343a7f103f1e86b43859eafee5ee5e143a71cd43",
"0x805abf3bd28553a83e88e09c275ff45d19c192538bcb6f99c1ebe6a6ebd47426",
"0x0c0b3c320c5dbeb31f092c54aaab8e0d280a5252d351416466804c51d843cbc5"
],
"generalized_index": 38,
"leaf": "0xb0af360100000000000000000000000000000000000000000000000000000000",
"local_index": 6,
"root": "0x25b7befd7a1d050dba63e995eb0ba207f1a93b3b15b77838d5179570e34065d1"
},
"blockhash_proof": {
"branch": [
"0xd40f7f334f2f0cfac3fcfe4cbd9ef399f4550d70a3864024c884886a15ef26e2",
"0x59d1cd533253cd8879842dcd842b097cab2060750a88f50714bc541cf00edfb8",
"0x866af279d44595cab607a1332426fcb127326102c795b0e3f281027c8bef8978",
"0x4d444478b8416a735bfcd11f0c4fdbc9ce8ea8f5284b43d7603a6d51a6f04178",
"0x0c0b3c320c5dbeb31f092c54aaab8e0d280a5252d351416466804c51d843cbc5"
],
"generalized_index": 44,
"leaf": "0x41b7ee50ec947f08156d9bddbaf5e5b21de9998e6dc2a53ec7f5a82bf4c9878c",
"local_index": 12,
"root": "0x25b7befd7a1d050dba63e995eb0ba207f1a93b3b15b77838d5179570e34065d1"
},
"curr_state_root_proof": {
"branch": [
"0x1d0e66c14b2df6a592e348ff1a785f6a1da4d3bff3f03b1c37706adf4b9c60d2",
"0x63927d5d06977fc159fb1a023208e97ae3b11ef4d9049209ba2dd1fdf6df5553",
"0xe50667bec9fe6f0f2c93e55ec51f1e42e427f6894ce13ff3f2bb5a783c59ae7a"
],
"generalized_index": 11,
"leaf": "0x5b5b58c88c8bca6a8c3901892e2dfded3ead0a67602cecb9dc0fa2fc4cc7984e",
"local_index": 3,
"root": "0xba2c7b3b35f8eff254a0e30300feed6a2885bdc299fd1eb8823a73b922b23b59"
},
"execution_payload_proof": {
"branch": [
"0xfb0d2c0300000000000000000000000000000000000000000000000000000000",
"0x109f1ebb3754a553f8372252bf6d7c962ef7a537bf5134530bb60593bca1eddf",
"0xdb56114e00fdd4c1f85c892bf35ac9a89289aaecb1ebd0a96cde606a748b5d71",
"0xa3a11facbf1d484b0ea149f901d9e563d512e15093c4b00231af68eb1e06e9db",
"0x81587d91af22f2bee1f7840d06d5403c3132674c9ea3e9dceb8fc49384490369"
],
"generalized_index": 56,
"leaf": "0x25b7befd7a1d050dba63e995eb0ba207f1a93b3b15b77838d5179570e34065d1",
"local_index": 24,
"root": "0x7688551bb6747dc6a456a7254af5a96b6d6b1f0e6dcb1b73a9f5fd7bceaaa704"
},
"hist_state_root_proof": {
"branch": [
"0xf3b26bb5fa9309addbd2189a6cb12327c9f6f0b1790642e1f0a3bc3c2ffb50f5",
"0x5f1e9374170f164e17faf8f1e47f13ee9c3133ad82b7efcfbdb09cf3c2452f05",
"0xb79dbb601d18a23e78c2319f77e3de9dcc423497f93a3ee225cfcc2ffdb44576",
"0x1f34c60f224c82fdcd4343dafc705abc3b897f1f4fb2cbb90c0cac52217bf231",
"0x77a723f00b215d6624aaa003143273d42544b390d37f140a13ed736d99f3e9ef",
"0xc4975e6f003f538bb3fea57ac716dba98b3dcae3859f59516598d8d6d1387b5d",
"0xd83d8d459c2ff1d8392ecb1b31c04dd77ff0b962621de122943d71c40b6e0b1d",
"0xa23eba85b51c844fde72c2ddba605c0f8ef26f4ea6899d0756a9b58a251c7699",
"0xd578cc8bbaba433cd7e0ff846e30ce6576c0f1309c9b88b6d3849cc479fae612",
"0x117e9e9557939b396f3b01b0131360d5f45604ff030d721b9c493d5d520149c1",
"0x9a2839467f7685b8b95fa66d792a4719a69926857a245e3acacf07dd37d53db5",
"0xcf1adf5c6f922870a89fe4abea4dddee2134f07a07367cc65b74c9bd4d5f83ca",
"0x7f95247c564a48f1a2b6f321e5a80ae7655b1c4e76caf843a00b04b6f7675511",
"0x4df6b89755125d4f6c5575039a04e22301a5a49ee893c1d27e559e3eeab73da7",
"0x7a8d34f693bf69ef45732cd264c84b56b4f64175103dec8a5b7c94bc0eab9308",
"0x1d89457667c3810985cc35772d3bfe901c648918c36bbff3ca5c26f0196e10a2",
"0xee3387c6aca70e9bbb7cd7baefb22b21ccacbe053fa003c079abfaf9bc7383b7",
"0x7c8caa41654e3a73f0f4c5a1ad7410dadd02f83b0a24da90a18cec3c5bbf37e8"
],
"generalized_index": 319232,
"leaf": "0x7688551bb6747dc6a456a7254af5a96b6d6b1f0e6dcb1b73a9f5fd7bceaaa704",
"local_index": 57088,
"root": "0x5b5b58c88c8bca6a8c3901892e2dfded3ead0a67602cecb9dc0fa2fc4cc7984e"
},
"type": "RecentHistoricalBlock"
}
}
Loading