A test script to test scroll proof verification
gh repo clone makoto/scrolltest
cd scrolltest
export L1_PROVIDER_URL="Add Sepolia JSON RPC endpoint"
yarn
yarn test
tmp/scrolltest - (master) > yarn test
yarn run v1.22.19
warning package.json: No license field
warning ../../package.json: No license field
warning ../../../../package.json: No license field
$ ts-node src/index.ts
2 {
account: '0x94fbce7ca1a0152cfc99f90f4421d31cf356c896',
storage: '0x0000000000000000000000000000000000000000000000000000000000000000'
}
21 { blockNo: 3146886 }
22 { batchIndex: 66076 }
3 {
"address": "0x94fbce7ca1a0152cfc99f90f4421d31cf356c896",
"accountProof": [
"0x092058627b68f472bea94f4fa28b7250fe3a070bce3963eae36847ef7cc160bc171e0801513d3210cf732fa843b75fb4a76a1c8bff49ddd42959c540317b44e8f8",
"0x0925bc1cd2860388e5818dffd7ba0e428ac6dae55e0c659f07bea2889c4516311214c1cd5eed21647a2b43efe3c37cde5162a2a8cf1b57b50e18605cc45f9001bc",
"0x091ad56276dcecb4f14ff4c9d0a24fa5e75f93bdaea724656bf839195ad637abbb172547b88b6ca8db67e8e381f7ad964b81d2d69acf76b28fa2e7b8e9cd3ca999",
"0x0906922736084bf2959df3f67cfafc07337eddc316d4159ad5a08b5800ac22c7d725335755a7797894495b34daed8294a06e3dabe27bc40af0c8309b91d8d3f4d6",
"0x0909efcd087cb0c225a8f902cbd887caf77d32caa9b8f4c53a0c6a5b6d69ee18631357ac3e077d789f40130e58c5f807f969277dfb9352672a59c79dfea67603b9",
"0x0907169760aaa623807107d1e9db7fe73e97d48500be9c89e27cfc1ec7e804d02518e529a1bf447ea9f700abe71f47c30908a19dc9829f65dcb6adb8ce4f6da5d0",
"0x0916ff7725d92b85827d3b49f8a483d1e4d67d62bd4e804ee7b445c9779a16ee5a11d2f00787208cfa67f3cbd5cfbbfc5222fffb16092eae98ca63d97c27bee077",
"0x0929a946dfbf941162047832327a9cedf9f33aedca1b557fb3043d8df5339bbbda2fe82a212045037cfde060 f9bce7198316ae943f8bd707d74533d697faf4b408",
"0x092634d13fec3480c6830ab2a6159526b28b6dd6797643884420eabea888c6904e13542df502c011d382c0327f530fd5d389565c55dbb2847c4f0a106d3593fe59",
"0x092605f142ab1b9c475e5c5bc38f50756a9d548827ac4095a8f6a5d7a52fafcbef1049dce442fe16b4fea5ffb06509f5940d4322361781f449f6d67eed3070064d",
"0x0919a452d198a7cf01577c3fa60773975d556ce169cc4ab5032d8c8500b7aec30e098468b64dd7967bda6b2fae62492e9238e1f1303a17dceb4a131e0e7e550ffa",
"0x0911f127db5b420f13d4af7d363582bd5f8669cc8694b57b2ae02caca700aaf53208a367000279d3cfef997a63a9bb12e42b23204109b853d899df7855d389f728",
"0x09002b2e069511ca13effac923e1d6d0ca8438008a9f9c313021172f18bd8c5d842738e7a9959589a86424d25a74767da156b87ec408999ca5a64342e7f8328596",
"0x091310d056c72fef2c670a892e937a0671cb31b14fc38fb8935cd8bcafec482aa709e82f3dfe078c353ab1d2315e155d8d0989e5b7309caeee431781e5295e064c",
"0x091e59496c06cb2cbd5a397a8361472a7ee79df018e06eff3f3db265552bc0aa8c20d5bb96e49949e6bb4675642d9aeaf4a1d310b04c18d3e472b921a66f822334",
"0x09106a1b2285a2e6873a1ce5460d933e945f270e467d7c9432fff7f299116d8b1e022a306f5c103de991c9d18722f87b20faec1868802941e9428e5565a71cf5f7",
"0x0928d416a671e12efff1045f7f1f30c57b74650b65578872e42e43892ae2c0d3780e18571870ba0a7b46755282519e59b08a2aeabb3382b9361c8a9aefebfa8237",
"0x0920395e1b736ab51ea38e9e5ad23fe87f87b1600f8caea1f1773fb0d165343e5116a94ade4d8ef3282c212fc04c0717494c861af75d1c8f4f0f0fe543632876df",
"0x0915305af7897da344ed2f36c553474c6ac774f0c7e23e8ef1327efa3e81a1d1ed241e21a0379436e5696000745d5b1d65079f638790573c8cdc9a3e6aee369bba",
"0x081aecf7306fa8a64e92703c1899ae54aba9e73e010f1dccfe8fb72c7a8bc6e7ee245d9b32b7d8c6d9b01015d65b8985b53bfd3086653d56f0e918442a3d72195c",
"0x09166f9c6bbb0712f48b97e72706182838ff58b370b4f5577abc63e9ac661c21bd11e49912865542c41e2cc7409d9716c16854cb4d74462167bacd92f5d10b1c6e",
"0x061258ccbcae0c2cfde2863d54d904a3c166af075bcbb8383e7bafce8f352dc51e2ea97a4adf035655950e487c6d875c153957fd11a9d022db262c164ba7bc06c7",
"0x041d83d7ed0ab2cb1a90a631a73432c9a0ca684964d6fe20ed7eebbb69ecf0379f05080000000000000000000000000000000000000000000000000143000000000000000100000000000000000000000000000000000000000000000000000000000000002d693681687fd7f9e4dee99b81e28ea9f76bc4a46cc2bd941f04d793f134bfc44065cdb3629aeff919178252ecc2e69fe38398f2c61163ec99e04bd79f99274c1945d7e22e6b7a012ed1f5444bd19b47be70c3060e106fccbb6332c70faa059b2094fbce7ca1a0152cfc99f90f4421d31cf356c896000000000000000000000000",
"0x5448495320495320534f4d45204d4147494320425954455320464f5220534d54206d3172525867503278704449"
],
"balance": "0x0",
"poseidonCodeHash": "0x1945d7e22e6b7a012ed1f5444bd19b47be70c3060e106fccbb6332c70faa059b",
"keccakCodeHash": "0x4065cdb3629aeff919178252ecc2e69fe38398f2c61163ec99e04bd79f99274c",
"codeSize": "0x143",
"nonce": "0x1",
"storageHash": "0x2d693681687fd7f9e4dee99b81e28ea9f76bc4a46cc2bd941f04d793f134bfc4",
"storageProof": [
{
"key": "0x0000000000000000000000000000000000000000000000000000000000000000",
"value": "0x3",
"proof": [
"0x0822bcd75fb5e1904e9670426e31b1be542ca0328f4c572280e7186c74b4a96d3f0000000000000000000000000000000000000000000000000000000000000000",
"0x060bc0881e0868b6e9c3c4f28c70932814e8f293460d797fcfe7f5d73080fd63410cebb333477db78ebb52bb709800a7809be35e14389a7ec346d662c040c726a1",
"0x041d3c5f8c36e5da873d45bfa1d2399a572ac77493ec089cbf88a37b9e94428422010100000000000000000000000000000000000000000000000000000000000000000003200000000000000000000000000000000000000000000000000000000000000000",
"0x5448495320495320534f4d45204d4147494320425954455320464f5220534d54206d3172525867503278704449"
]
}
]
}
4 {
accountProof: [
'0x092058627b68f472bea94f4fa28b7250fe3a070bce3963eae36847ef7cc160bc171e0801513d3210cf732fa843b75fb4a76a1c8bff49ddd42959c540317b44e8f8',
'0x0925bc1cd2860388e5818dffd7ba0e428ac6dae55e0c659f07bea2889c4516311214c1cd5eed21647a2b43efe3c37cde5162a2a8cf1b57b50e18605cc45f9001bc',
'0x091ad56276dcecb4f14ff4c9d0a24fa5e75f93bdaea724656bf839195ad637abbb172547b88b6ca8db67e8e381f7ad964b81d2d69acf76b28fa2e7b8e9cd3ca999',
'0x0906922736084bf2959df3f67cfafc07337eddc316d4159ad5a08b5800ac22c7d725335755a7797894495b34daed8294a06e3dabe27bc40af0c8309b91d8d3f4d6',
'0x0909efcd087cb0c225a8f902cbd887caf77d32caa9b8f4c53a0c6a5b6d69ee18631357ac3e077d789f40130e58c5f807f969277dfb9352672a59c79dfea67603b9',
'0x0907169760aaa623807107d1e9db7fe73e97d48500be9c89e27cfc1ec7e804d02518e529a1bf447ea9f700abe71f47c30908a19dc9829f65dcb6adb8ce4f6da5d0',
'0x0916ff7725d92b85827d3b49f8a483d1e4d67d62bd4e804ee7b445c9779a16ee5a11d2f00787208cfa67f3cbd5cfbbfc5222fffb16092eae98ca63d97c27bee077',
'0x0929a946dfbf941162047832327a9cedf9f33aedca1b557fb3043d8df5339bbbda2fe82a212045037cfde060f9bce7198316ae943f8bd707d74533d697faf4b408',
'0x092634d13fec3480c6830ab2a6159526b28b6dd6797643884420eabea888c6904e13542df502c011d382c0327f530fd5d389565c55dbb2847c4f0a106d3593fe59',
'0x092605f142ab1b9c475e5c5bc38f50756a9d548827ac4095a8f6a5d7a52fafcbef1049dce442fe16b4fea5ffb06509f5940d4322361781f449f6d67eed3070064d',
'0x0919a452d198a7cf01577c3fa60773975d556ce169cc4ab5032d8c8500b7aec30e098468b64dd7967bda6b2fae62492e9238e1f1303a17dceb4a131e0e7e550ffa',
'0x0911f127db5b420f13d4af7d363582bd5f8669cc8694b57b2ae02caca700aaf53208a367000279d3cfef997a63a9bb12e42b23204109b853d899df7855d389f728',
'0x09002b2e069511ca13effac923e1d6d0ca8438008a9f9c313021172f18bd8c5d842738e7a9959589a86424d25a74767da156b87ec408999ca5a64342e7f8328596',
'0x091310d056c72fef2c670a892e937a0671cb31b14fc38fb8935cd8bcafec482aa709e82f3dfe078c353ab1d2315e155d8d0989e5b7309caeee431781e5295e064c',
'0x091e59496c06cb2cbd5a397a8361472a7ee79df018e06eff3f3db265552bc0aa8c20d5bb96e49949e6bb4675642d9aeaf4a1d310b04c18d3e472b921a66f822334',
'0x09106a1b2285a2e6873a1ce5460d933e945f270e467d7c9432fff7f299116d8b1e022a306f5c103de991c9d18722f87b20faec1868802941e9428e5565a71cf5f7',
'0x0928d416a671e12efff1045f7f1f30c57b74650b65578872e42e43892ae2c0d3780e18571870ba0a7b46755282519e59b08a2aeabb3382b9361c8a9aefebfa8237',
'0x0920395e1b736ab51ea38e9e5ad23fe87f87b1600f8caea1f1773fb0d165343e5116a94ade4d8ef3282c212fc04c0717494c861af75d1c8f4f0f0fe543632876df',
'0x0915305af7897da344ed2f36c553474c6ac774f0c7e23e8ef1327efa3e81a1d1ed241e21a0379436e5696000745d5b1d65079f638790573c8cdc9a3e6aee369bba',
'0x081aecf7306fa8a64e92703c1899ae54aba9e73e010f1dccfe8fb72c7a8bc6e7ee245d9b32b7d8c6d9b01015d65b8985b53bfd3086653d56f0e918442a3d72195c',
'0x09166f9c6bbb0712f48b97e72706182838ff58b370b4f5577abc63e9ac661c21bd11e49912865542c41e2cc7409d9716c16854cb4d74462167bacd92f5d10b1c6e',
'0x061258ccbcae0c2cfde2863d54d904a3c166af075bcbb8383e7bafce8f352dc51e2ea97a4adf035655950e487c6d875c153957fd11a9d022db262c164ba7bc06c7',
'0x041d83d7ed0ab2cb1a90a631a73432c9a0ca684964d6fe20ed7eebbb69ecf0379f05080000000000000000000000000000000000000000000000000143000000000000000100000000000000000000000000000000000000000000000000000000000000002d693681687fd7f9e4dee99b81e28ea9f76bc4a46cc2bd941f04d793f134bfc44065cdb3629aeff919178252ecc2e69fe38398f2c61163ec99e04bd79f99274c1945d7e22e6b7a012ed1f5444bd19b47be70c3060e106fccbb6332c70faa059b2094fbce7ca1a0152cfc99f90f4421d31cf356c896000000000000000000000000',
'0x5448495320495320534f4d45204d4147494320425954455320464f5220534d54206d3172525867503278704449'
]
}
5 {
storageProof: [
'0x0822bcd75fb5e1904e9670426e31b1be542ca0328f4c572280e7186c74b4a96d3f0000000000000000000000000000000000000000000000000000000000000000',
'0x060bc0881e0868b6e9c3c4f28c70932814e8f293460d797fcfe7f5d73080fd63410cebb333477db78ebb52bb709800a7809be35e14389a7ec346d662c040c726a1',
'0x041d3c5f8c36e5da873d45bfa1d2399a572ac77493ec089cbf88a37b9e94428422010100000000000000000000000000000000000000000000000000000000000000000003200000000000000000000000000000000000000000000000000000000000000000',
'0x5448495320495320534f4d45204d4147494320425954455320464f5220534d54206d3172525867503278704449'
]
}
6 {
compressedProof: Uint8Array(1984) [
24, 9, 32, 88, 98, 123, 104, 244, 114, 190, 169, 79,
79, 162, 139, 114, 80, 254, 58, 7, 11, 206, 57, 99,
234, 227, 104, 71, 239, 124, 193, 96, 188, 23, 30, 8,
1, 81, 61, 50, 16, 207, 115, 47, 168, 67, 183, 95,
180, 167, 106, 28, 139, 255, 73, 221, 212, 41, 89, 197,
64, 49, 123, 68, 232, 248, 9, 37, 188, 28, 210, 134,
3, 136, 229, 129, 141, 255, 215, 186, 14, 66, 138, 198,
218, 229, 94, 12, 101, 159, 7, 190, 162, 136, 156, 69,
22, 49, 18, 20,
... 1884 more items
]
}
7 [
'0x2c1b2237d0c7b1fce11ac72503dd1d603107de81a1580e8acd618697f5a375af',
'0x0000000000000000000000000000000000000000000000000000000000000003',
stateRoot: '0x2c1b2237d0c7b1fce11ac72503dd1d603107de81a1580e8acd618697f5a375af',
storageValue: '0x0000000000000000000000000000000000000000000000000000000000000003'
]
8 0x0000000000000000000000000000000000000000000000000000000000000003
✨ Done in 3.68s.