From 84bcfd07498a5d5f1d8bb9d1d59699e46464fe05 Mon Sep 17 00:00:00 2001 From: rian Date: Mon, 4 Nov 2024 14:36:13 +0200 Subject: [PATCH] add Sepolia test - theres a bug in mshHash --- .../feeder/testdata/sepolia/block/284801.json | 1670 +++++++++++++++++ .../testdata/sepolia/signature/284801.json | 1 + ...e3aaba3d4c709e338f316b0b6f3b1f74176d4.json | 24 + rpc/l1.go | 5 +- rpc/l1_test.go | 49 +- starknetdata/feeder/feeder.go | 1 - 6 files changed, 1731 insertions(+), 19 deletions(-) create mode 100644 clients/feeder/testdata/sepolia/block/284801.json create mode 100644 clients/feeder/testdata/sepolia/signature/284801.json create mode 100644 clients/feeder/testdata/sepolia/transaction/0x1b886bc9a147d3f31aa9071c72e3aaba3d4c709e338f316b0b6f3b1f74176d4.json diff --git a/clients/feeder/testdata/sepolia/block/284801.json b/clients/feeder/testdata/sepolia/block/284801.json new file mode 100644 index 0000000000..89ce805084 --- /dev/null +++ b/clients/feeder/testdata/sepolia/block/284801.json @@ -0,0 +1,1670 @@ +{ + "block_hash": "0x59eb2294577a17273d18bbc81317f299b46a04771aef84e0e8287d4ec32ad66", + "parent_block_hash": "0xe8d707b5e5737cc191eed08244a116a69e03e15edd11423d8798d1b514de1d", + "block_number": 284801, + "state_root": "0x68463f9c060a05a3fb6e81f8b32c0029e3197d4966f58eb454fdc5b5aee8a86", + "transaction_commitment": "0x5161193c240aa2eb3b14af84830d87625eb0d4f9cdd541b11f76627b6a318", + "event_commitment": "0x3d2898fd8da2966648a052b9cee1871bb7aaa7a026f11806c05f5489894cf13", + "receipt_commitment": "0x6822e950a906ccfcd05efec3a5bd448c048a905bae03b4f44ab5fbbec51f882", + "state_diff_commitment": "0x3e773b51b4c23757da952ba1b5307595b6d4b94d60e27f5094583d8fcbe4ca9", + "state_diff_length": 53, + "status": "ACCEPTED_ON_L2", + "l1_da_mode": "BLOB", + "l1_gas_price": { + "price_in_wei": "0x267f84a4c", + "price_in_fri": "0x435d2f2a547e" + }, + "l1_data_gas_price": { + "price_in_wei": "0x133114c", + "price_in_fri": "0x2194e89588" + }, + "transactions": [ + { + "transaction_hash": "0x2f41d98f1ce81220d59da9fffa1d3e29309ef60eabb8fae75344dc22f7923b6", + "version": "0x1", + "max_fee": "0x5c82ba25c3", + "signature": [ + "0x4ef9ca183eef4880e0308d29de751f692b374eb5d7f8adf934cbdcff4614232", + "0x6f2d9ed19a669573a4f88974bdd3a71b9361954316b89a32a36deea30ccf845" + ], + "nonce": "0x280", + "sender_address": "0x64a870739f53f72833a305e9612f139eb779c06615e03252a4d12fb73e4525", + "calldata": [ + "0x1", + "0x41a78e741e5af2fec34b695679bc6891742439f7afb8484ecd7766661ad02bf", + "0x1987cbd17808b9a23693d4de7e246a443cfe37e6e7fbaeabd7d7e6532b07c3d", + "0x5", + "0x2bace82af26b175490401d270b12d43ea725aa7cfc6352259dcbb9b861267f9", + "0x21296883765d30f5704f297bf90c45b6c82a4d4c8bfb2d25946ac9a47193857", + "0x0", + "0x1", + "0x21296883765d30f5704f297bf90c45b6c82a4d4c8bfb2d25946ac9a47193857" + ], + "type": "INVOKE_FUNCTION" + }, + { + "transaction_hash": "0x27e64969936eba5de73b49e60a522e0dbc54e69647eff707b9cffac915f5f3f", + "version": "0x3", + "signature": [ + "0x1", + "0x0", + "0x4f8e3e9d4309f7828706d15515b5877e64d1fca5d4349c12ce9474587353e40", + "0x199b692d182aff0029f0a487fdb18bca8b2b50f3c1836d22666d12585806ada", + "0x6f827ac17e12392daa27298e40c1b847cfdb428649635f5961b4b2b95761366" + ], + "nonce": "0x4", + "nonce_data_availability_mode": 0, + "fee_data_availability_mode": 0, + "resource_bounds": { + "L1_GAS": { + "max_amount": "0x77", + "max_price_per_unit": "0x649f7e32c4a7" + }, + "L2_GAS": { + "max_amount": "0x0", + "max_price_per_unit": "0x0" + } + }, + "tip": "0x0", + "paymaster_data": [], + "sender_address": "0x2b57af31031d6a0415992d0b38e46f27b3d666216dd100db2eba618cb0b837e", + "calldata": [ + "0x1", + "0x35960be28f2e6b7dc51f89ac7bc1d17322e4db9012c1f89fe95f74ccb4c559c", + "0x3d50ff8d0185c4c17d57ca6873541c5dd0405a413bdcf78c0a9e29d6214c348", + "0x5", + "0x2b57af31031d6a0415992d0b38e46f27b3d666216dd100db2eba618cb0b837e", + "0x1", + "0x516d65586951694831724e5a7552676f48763955717654574a63734b617a73", + "0x37486447386f4b386a6d7a6639514c", + "0xf" + ], + "account_deployment_data": [], + "type": "INVOKE_FUNCTION" + }, + { + "transaction_hash": "0x6cd3ac4db42ba059fe2fb98b24c809302ad9bcb3ac5b144b26073def7c4b55b", + "version": "0x1", + "max_fee": "0x16345785d8a0000", + "signature": [ + "0x2b7144d0394ef9afe0030dcb3cf37ee2886273d44425afabc01eaee1afd30a5", + "0x4346b55b50d2da4044a354d1fe25271a291b99f08697a464dfd7ce05da624bb" + ], + "nonce": "0x590c1", + "sender_address": "0x4c1d9da136846ab084ae18cf6ce7a652df7793b666a16ce46b1bf5850cc739d", + "calldata": [ + "0x1", + "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "0x3d0bcca55c118f88a08e0fcc06f43906c0c174feb52ebc83f0fa28a1f59ed67", + "0x63", + "0xe", + "0x0", + "0x672885ef", + "0x4745434b4f5445524d494e414c", + "0x505241474d41", + "0x4a8015", + "0x4c4f5244532f555344", + "0x127b", + "0x0", + "0x67288609", + "0x454b55424f", + "0x505241474d41", + "0x4a31ae", + "0x4c4f5244532f555344", + "0x0", + "0x0", + "0x67288608", + "0x44455853435245454e4552", + "0x505241474d41", + "0x4ce780", + "0x4c4f5244532f555344", + "0x0", + "0x0", + "0x67288608", + "0x4b55434f494e", + "0x505241474d41", + "0xd0e0a8", + "0x5a454e442f555344", + "0x0", + "0x0", + "0x67288609", + "0x4259424954", + "0x505241474d41", + "0xd23125", + "0x5a454e442f555344", + "0x0", + "0x0", + "0x67288609", + "0x454b55424f", + "0x505241474d41", + "0xc45fc8", + "0x5a454e442f555344", + "0x0", + "0x0", + "0x67288608", + "0x44455853435245454e4552", + "0x505241474d41", + "0xc301e0", + "0x5a454e442f555344", + "0x0", + "0x0", + "0x672885ef", + "0x4745434b4f5445524d494e414c", + "0x505241474d41", + "0xc667fc9", + "0x454b55424f2f555344", + "0x1580f", + "0x0", + "0x67288609", + "0x454b55424f", + "0x505241474d41", + "0xc6e8767", + "0x454b55424f2f555344", + "0x0", + "0x0", + "0x67288609", + "0x44455853435245454e4552", + "0x505241474d41", + "0xbf33c10", + "0x454b55424f2f555344", + "0x0", + "0x0", + "0x67288609", + "0x454b55424f", + "0x505241474d41", + "0x6a1853", + "0x4e5354522f555344", + "0x0", + "0x0", + "0x67288609", + "0x454b55424f", + "0x505241474d41", + "0x60ca006", + "0x4c5553442f555344", + "0x0", + "0x0", + "0x67288608", + "0x44455853435245454e4552", + "0x505241474d41", + "0x5fb1120", + "0x4c5553442f555344", + "0x0", + "0x0", + "0x67288608", + "0x4745434b4f5445524d494e414c", + "0x505241474d41", + "0x5ef0dc1", + "0x4c5553442f555344", + "0xa2c18" + ], + "type": "INVOKE_FUNCTION" + }, + { + "transaction_hash": "0x66fbf1a7fd2cce32839769d9f21097d8ecd234fa3d2209137ed813389e381a2", + "version": "0x3", + "signature": [ + "0x4156c816364d566380b4c2d07b67b96954b9041d09274f76b32f6de3342cfea", + "0x3e4f17ce739ec2d8f4ee83ed94f16fcbb8f521322e093146c5f6f8fb390a8e7" + ], + "nonce": "0x11f36", + "nonce_data_availability_mode": 0, + "fee_data_availability_mode": 0, + "resource_bounds": { + "L1_GAS": { + "max_amount": "0xc3500", + "max_price_per_unit": "0x71afd498d0000" + }, + "L2_GAS": { + "max_amount": "0x0", + "max_price_per_unit": "0x0" + } + }, + "tip": "0x0", + "paymaster_data": [], + "sender_address": "0x2bb8a1f5a1241c1ebe8e10ff93b38ab097b1a20f77517997f8799829e096535", + "calldata": [ + "0x2", + "0xdaf7c17ae6ecc0379a2a1a5a19d7fa2db03dd7ae98d15f2c5ae22b877c84c9", + "0x27c3334165536f239cfd400ed956eabff55fc60de4fb56728b6a4f6b87db01c", + "0x7", + "0xdaf7c17ae6ecc0379a2a1a5a19d7fa2db03dd7ae98d15f2c5ae22b877c84c9", + "0x2d7cf5d5a324a320f9f37804b1615a533fde487400b41af80f13f7ac5581325", + "0x4", + "0x4fde1c5b5cc0827b1bd2dc64ffbbd3da3fe1ab4f", + "0x2", + "0x7fca54ce308507a93db669fc3df778b49342c4052cad54fee5b038b907fadfd", + "0x517ba13eaf544ec41a14fd8c660f66c76cc3c67151cbbf13f0c2e96949dd5f3", + "0xdaf7c17ae6ecc0379a2a1a5a19d7fa2db03dd7ae98d15f2c5ae22b877c84c9", + "0x27a4a7332e590dd789019a6d125ff2aacd358e453090978cbf81f0d85e4c045", + "0x2", + "0x1f70bbf04527ac66b7a6cfa92d941245d0a3d639d85850d283ea1b5f523d956", + "0x7cd338d1b758afe3b1f1fc0c39dd5bf1dfc8619015fc8d1a3523959151b8395" + ], + "account_deployment_data": [], + "type": "INVOKE_FUNCTION" + }, + { + "transaction_hash": "0x5ac900f0765fe78a88432fc5f010a73ebd5b8174a28952a1ca671e0b3eb175d", + "version": "0x1", + "max_fee": "0x3efccc25ef74253", + "signature": [ + "0x1b726fa99f00ac18f9054f007ac1ee01687e7a0b22d3e3bc3d8e13a2949d947", + "0x52b72369652af448cd6cf9a5fd9df1be6b42638b5935165903b23e3e8a7d505" + ], + "nonce": "0xde1", + "sender_address": "0x5e5a9efc076bad92061124207e9176b36740c2539c40089fde11e4d07cc90d0", + "calldata": [ + "0x1", + "0x4e96600616e94aa048f1db130619e4570b2a2bcbbd024a87e6957932601902d", + "0x7ec457cd7ed1630225a8328f826a29a327b19486f6b2882b4176545ebdbe3d", + "0x13", + "0x5e5a9efc076bad92061124207e9176b36740c2539c40089fde11e4d07cc90d0", + "0x0", + "0x0", + "0xffffffff", + "0x1", + "0x1d2e513630d8120666fc6e7d52ad0c01479fd99c183baac79fff9135f46e359", + "0x7099f594eb65e00576e1b940a8a735f80bf7604ac401c48627045c4cc286f0", + "0x0", + "0x3", + "0x3", + "0x32", + "0x2f087034550b76e406534010182d8ec94e7f1725e7734ce288f8367e1bb14", + "0x3e90bb3f0512867f544a44c00084d0e30db0c0", + "0x5", + "0x527c8c84d6b3310ddbf26bcb18782e7d", + "0xf22c27567fdda76dd73ff9af5a4ab327", + "0x904ed6cc9823b53779ada322cc29cd86", + "0x3cd9abe74e47e33cbfc9ae119b90b075", + "0x0" + ], + "type": "INVOKE_FUNCTION" + }, + { + "transaction_hash": "0x5877705ccf06595a88aa252b12277643612701d52ab4debdbfc4b9d8d48c661", + "version": "0x1", + "max_fee": "0x16345785d8a0000", + "signature": [ + "0x26dfbfc7cb3be6baf8f478d76057f117803a25113ed2af5a591d0704f85e510", + "0x7d584c7cc47bbcd89057f1b43c3cfbb74d96934320b8c1b56536211cd608925" + ], + "nonce": "0x590c2", + "sender_address": "0x4c1d9da136846ab084ae18cf6ce7a652df7793b666a16ce46b1bf5850cc739d", + "calldata": [ + "0x1", + "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "0x3d0bcca55c118f88a08e0fcc06f43906c0c174feb52ebc83f0fa28a1f59ed67", + "0x63", + "0xe", + "0x0", + "0x67288624", + "0x454b55424f", + "0x505241474d41", + "0x4a2f93", + "0x4c4f5244532f555344", + "0x0", + "0x0", + "0x67288623", + "0x44455853435245454e4552", + "0x505241474d41", + "0x4ce780", + "0x4c4f5244532f555344", + "0x0", + "0x0", + "0x67288623", + "0x4745434b4f5445524d494e414c", + "0x505241474d41", + "0x4a8015", + "0x4c4f5244532f555344", + "0x127b", + "0x0", + "0x67288623", + "0x4b55434f494e", + "0x505241474d41", + "0xd0e0a8", + "0x5a454e442f555344", + "0x0", + "0x0", + "0x67288624", + "0x4259424954", + "0x505241474d41", + "0xd2b038", + "0x5a454e442f555344", + "0x0", + "0x0", + "0x67288624", + "0x454b55424f", + "0x505241474d41", + "0xc478b9", + "0x5a454e442f555344", + "0x0", + "0x0", + "0x67288623", + "0x44455853435245454e4552", + "0x505241474d41", + "0xc301e0", + "0x5a454e442f555344", + "0x0", + "0x0", + "0x67288624", + "0x454b55424f", + "0x505241474d41", + "0xc6e2cf9", + "0x454b55424f2f555344", + "0x0", + "0x0", + "0x67288623", + "0x44455853435245454e4552", + "0x505241474d41", + "0xbf33c10", + "0x454b55424f2f555344", + "0x0", + "0x0", + "0x67288623", + "0x4745434b4f5445524d494e414c", + "0x505241474d41", + "0xc667fc9", + "0x454b55424f2f555344", + "0x1580f", + "0x0", + "0x67288624", + "0x454b55424f", + "0x505241474d41", + "0x6a154f", + "0x4e5354522f555344", + "0x0", + "0x0", + "0x67288624", + "0x454b55424f", + "0x505241474d41", + "0x60c7405", + "0x4c5553442f555344", + "0x0", + "0x0", + "0x67288623", + "0x44455853435245454e4552", + "0x505241474d41", + "0x5fb1120", + "0x4c5553442f555344", + "0x0", + "0x0", + "0x67288623", + "0x4745434b4f5445524d494e414c", + "0x505241474d41", + "0x5ef0dc1", + "0x4c5553442f555344", + "0xa2c18" + ], + "type": "INVOKE_FUNCTION" + }, + { + "transaction_hash": "0x52f8efb3b510350dcd8fc639556d00cbcc47bb8432e054f6c6b75f8e3e00cc7", + "version": "0x1", + "max_fee": "0x5da69049d2", + "signature": [ + "0x4aa45e1424a9e9faa6a161c3bc6a38cee3857c66c99d9c2072b604b29edb028", + "0x3e5ba660778f02beae0599b0514d4bb157eea2ea24786df310d222d5206bc41" + ], + "nonce": "0xc231", + "sender_address": "0x324b04e5a4270605007334372ce455c47581e51cdd091559df2739d1c4e2677", + "calldata": [ + "0x1", + "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", + "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", + "0x3", + "0x4a2c8d7e070779c9bc8a49d9d3b909d597990e03aff7f0de3e52e92915bdbc9", + "0x1158e460913d00000", + "0x0" + ], + "type": "INVOKE_FUNCTION" + }, + { + "transaction_hash": "0x45b5e735db2d4f3a7f737b0cbfda75dca8d4afe6a3c5a67fe843df9eacef0a3", + "version": "0x1", + "max_fee": "0x16345785d8a0000", + "signature": [ + "0x2749dd332d42090ec7f01bd7563ea57f37756aff10e653bd57040b582e6a66c", + "0x8357d28100ed875391becb91974c8d0e2e54c5abda6d74bc148702676633cb" + ], + "nonce": "0x590c3", + "sender_address": "0x4c1d9da136846ab084ae18cf6ce7a652df7793b666a16ce46b1bf5850cc739d", + "calldata": [ + "0x1", + "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "0x3d0bcca55c118f88a08e0fcc06f43906c0c174feb52ebc83f0fa28a1f59ed67", + "0x55", + "0xc", + "0x0", + "0x6728862d", + "0x454b55424f", + "0x505241474d41", + "0x4a2f93", + "0x4c4f5244532f555344", + "0x0", + "0x0", + "0x6728862c", + "0x44455853435245454e4552", + "0x505241474d41", + "0x4ce780", + "0x4c4f5244532f555344", + "0x0", + "0x0", + "0x6728862c", + "0x4b55434f494e", + "0x505241474d41", + "0xd0e0a8", + "0x5a454e442f555344", + "0x0", + "0x0", + "0x6728862d", + "0x4259424954", + "0x505241474d41", + "0xd26bcb", + "0x5a454e442f555344", + "0x0", + "0x0", + "0x6728862d", + "0x454b55424f", + "0x505241474d41", + "0xc478b9", + "0x5a454e442f555344", + "0x0", + "0x0", + "0x6728862c", + "0x44455853435245454e4552", + "0x505241474d41", + "0xc301e0", + "0x5a454e442f555344", + "0x0", + "0x0", + "0x6728862d", + "0x454b55424f", + "0x505241474d41", + "0xc6e2cf9", + "0x454b55424f2f555344", + "0x0", + "0x0", + "0x6728862d", + "0x44455853435245454e4552", + "0x505241474d41", + "0xbf33c10", + "0x454b55424f2f555344", + "0x0", + "0x0", + "0x6728862d", + "0x454b55424f", + "0x505241474d41", + "0x6a154f", + "0x4e5354522f555344", + "0x0", + "0x0", + "0x6728862c", + "0x4745434b4f5445524d494e414c", + "0x505241474d41", + "0x5ef0dc1", + "0x4c5553442f555344", + "0xa2c18", + "0x0", + "0x6728862d", + "0x454b55424f", + "0x505241474d41", + "0x60c7405", + "0x4c5553442f555344", + "0x0", + "0x0", + "0x6728862c", + "0x44455853435245454e4552", + "0x505241474d41", + "0x5fb1120", + "0x4c5553442f555344", + "0x0" + ], + "type": "INVOKE_FUNCTION" + }, + { + "transaction_hash": "0x1b886bc9a147d3f31aa9071c72e3aaba3d4c709e338f316b0b6f3b1f74176d4", + "version": "0x0", + "contract_address": "0x4c5772d1914fe6ce891b64eb35bf3522aeae1315647314aac58b01137607f3f", + "entry_point_selector": "0x1b64b1b3b690b43b9b514fb81377518f4039cd3e4f4914d8a6bdf01d679fb19", + "nonce": "0x26e9", + "calldata": [ + "0x8453fc6cd1bcfe8d4dfc069c400b433054d47bdc", + "0x455448", + "0xd1a4ef529b9d6682da7b6dcd8cb2cfe0a856928d", + "0x5affe94e35ad8a526cd41ebfc0246f40f4693900bc1f6f44a1291f88f74634a", + "0x2c68af0bb140000", + "0x0" + ], + "type": "L1_HANDLER" + } + ], + "timestamp": 1730709017, + "sequencer_address": "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", + "transaction_receipts": [ + { + "execution_status": "SUCCEEDED", + "transaction_index": 0, + "transaction_hash": "0x2f41d98f1ce81220d59da9fffa1d3e29309ef60eabb8fae75344dc22f7923b6", + "l2_to_l1_messages": [], + "events": [ + { + "from_address": "0x41a78e741e5af2fec34b695679bc6891742439f7afb8484ecd7766661ad02bf", + "keys": [ + "0x26b160f10156dea0639bec90696772c640b9706a47f5b8c52ea1abe5858b34d" + ], + "data": [ + "0x76f48a3346035894f832b51b6e399174792e5f4d640475f9d3adbfea2aa12a3", + "0x64a870739f53f72833a305e9612f139eb779c06615e03252a4d12fb73e4525", + "0x0", + "0x2bace82af26b175490401d270b12d43ea725aa7cfc6352259dcbb9b861267f9", + "0x1", + "0x21296883765d30f5704f297bf90c45b6c82a4d4c8bfb2d25946ac9a47193857", + "0x21296883765d30f5704f297bf90c45b6c82a4d4c8bfb2d25946ac9a47193857" + ] + }, + { + "from_address": "0x64a870739f53f72833a305e9612f139eb779c06615e03252a4d12fb73e4525", + "keys": [ + "0x1dcde06aabdbca2f80aa51392b345d7549d7757aa855f7e37f5d335ac8243b1", + "0x2f41d98f1ce81220d59da9fffa1d3e29309ef60eabb8fae75344dc22f7923b6" + ], + "data": [ + "0x1", + "0x1", + "0x76f48a3346035894f832b51b6e399174792e5f4d640475f9d3adbfea2aa12a3" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x64a870739f53f72833a305e9612f139eb779c06615e03252a4d12fb73e4525", + "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", + "0x45055fe8d0", + "0x0" + ] + } + ], + "execution_resources": { + "n_steps": 9724, + "builtin_instance_counter": { + "pedersen_builtin": 32, + "ec_op_builtin": 3, + "poseidon_builtin": 6, + "range_check_builtin": 356 + }, + "n_memory_holes": 0, + "data_availability": { + "l1_gas": 0, + "l1_data_gas": 352 + }, + "total_gas_consumed": { + "l1_gas": 28, + "l1_data_gas": 352 + } + }, + "actual_fee": "0x45055fe8d0" + }, + { + "execution_status": "SUCCEEDED", + "transaction_index": 1, + "transaction_hash": "0x27e64969936eba5de73b49e60a522e0dbc54e69647eff707b9cffac915f5f3f", + "l2_to_l1_messages": [], + "events": [ + { + "from_address": "0x35960be28f2e6b7dc51f89ac7bc1d17322e4db9012c1f89fe95f74ccb4c559c", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9", + "0x0", + "0x2b57af31031d6a0415992d0b38e46f27b3d666216dd100db2eba618cb0b837e", + "0x2", + "0x0" + ], + "data": [] + }, + { + "from_address": "0x2b57af31031d6a0415992d0b38e46f27b3d666216dd100db2eba618cb0b837e", + "keys": [ + "0x1dcde06aabdbca2f80aa51392b345d7549d7757aa855f7e37f5d335ac8243b1", + "0x27e64969936eba5de73b49e60a522e0dbc54e69647eff707b9cffac915f5f3f" + ], + "data": [ + "0x1", + "0x2", + "0x2", + "0x0" + ] + }, + { + "from_address": "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x2b57af31031d6a0415992d0b38e46f27b3d666216dd100db2eba618cb0b837e", + "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", + "0xb3f75bbd2e42e", + "0x0" + ] + } + ], + "execution_resources": { + "n_steps": 15158, + "builtin_instance_counter": { + "poseidon_builtin": 16, + "pedersen_builtin": 43, + "ec_op_builtin": 3, + "range_check_builtin": 738 + }, + "n_memory_holes": 0, + "data_availability": { + "l1_gas": 0, + "l1_data_gas": 896 + }, + "total_gas_consumed": { + "l1_gas": 41, + "l1_data_gas": 896 + } + }, + "actual_fee": "0xb3f75bbd2e42e" + }, + { + "execution_status": "SUCCEEDED", + "transaction_index": 2, + "transaction_hash": "0x6cd3ac4db42ba059fe2fb98b24c809302ad9bcb3ac5b144b26073def7c4b55b", + "l2_to_l1_messages": [], + "events": [ + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x672885ef", + "0x4745434b4f5445524d494e414c", + "0x505241474d41", + "0x4a8015", + "0x4c4f5244532f555344", + "0x127b" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x67288609", + "0x454b55424f", + "0x505241474d41", + "0x4a31ae", + "0x4c4f5244532f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x67288608", + "0x44455853435245454e4552", + "0x505241474d41", + "0x4ce780", + "0x4c4f5244532f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x67288608", + "0x4b55434f494e", + "0x505241474d41", + "0xd0e0a8", + "0x5a454e442f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x67288609", + "0x4259424954", + "0x505241474d41", + "0xd23125", + "0x5a454e442f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x67288609", + "0x454b55424f", + "0x505241474d41", + "0xc45fc8", + "0x5a454e442f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x67288608", + "0x44455853435245454e4552", + "0x505241474d41", + "0xc301e0", + "0x5a454e442f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x672885ef", + "0x4745434b4f5445524d494e414c", + "0x505241474d41", + "0xc667fc9", + "0x454b55424f2f555344", + "0x1580f" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x67288609", + "0x454b55424f", + "0x505241474d41", + "0xc6e8767", + "0x454b55424f2f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x67288609", + "0x44455853435245454e4552", + "0x505241474d41", + "0xbf33c10", + "0x454b55424f2f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x67288609", + "0x454b55424f", + "0x505241474d41", + "0x6a1853", + "0x4e5354522f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x67288609", + "0x454b55424f", + "0x505241474d41", + "0x60ca006", + "0x4c5553442f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x67288608", + "0x44455853435245454e4552", + "0x505241474d41", + "0x5fb1120", + "0x4c5553442f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x67288608", + "0x4745434b4f5445524d494e414c", + "0x505241474d41", + "0x5ef0dc1", + "0x4c5553442f555344", + "0xa2c18" + ] + }, + { + "from_address": "0x4c1d9da136846ab084ae18cf6ce7a652df7793b666a16ce46b1bf5850cc739d", + "keys": [ + "0x1dcde06aabdbca2f80aa51392b345d7549d7757aa855f7e37f5d335ac8243b1", + "0x6cd3ac4db42ba059fe2fb98b24c809302ad9bcb3ac5b144b26073def7c4b55b" + ], + "data": [ + "0x1", + "0x0" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x4c1d9da136846ab084ae18cf6ce7a652df7793b666a16ce46b1bf5850cc739d", + "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", + "0x47262da34d4", + "0x0" + ] + } + ], + "execution_resources": { + "n_steps": 177004, + "builtin_instance_counter": { + "range_check_builtin": 5592, + "bitwise_builtin": 42, + "ec_op_builtin": 3, + "poseidon_builtin": 18, + "pedersen_builtin": 957 + }, + "n_memory_holes": 0, + "data_availability": { + "l1_gas": 0, + "l1_data_gas": 1088 + }, + "total_gas_consumed": { + "l1_gas": 471, + "l1_data_gas": 1088 + } + }, + "actual_fee": "0x47262da34d4" + }, + { + "execution_status": "SUCCEEDED", + "transaction_index": 3, + "transaction_hash": "0x66fbf1a7fd2cce32839769d9f21097d8ecd234fa3d2209137ed813389e381a2", + "l2_to_l1_messages": [ + { + "from_address": "0xdaf7c17ae6ecc0379a2a1a5a19d7fa2db03dd7ae98d15f2c5ae22b877c84c9", + "to_address": "0x4fde1C5B5cC0827B1BD2dc64fFBbD3Da3fe1aB4F", + "payload": [ + "0x7fca54ce308507a93db669fc3df778b49342c4052cad54fee5b038b907fadfd", + "0x517ba13eaf544ec41a14fd8c660f66c76cc3c67151cbbf13f0c2e96949dd5f3" + ] + } + ], + "events": [ + { + "from_address": "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x2bb8a1f5a1241c1ebe8e10ff93b38ab097b1a20f77517997f8799829e096535", + "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", + "0x1cf4cd7cf08af8ec", + "0x0" + ] + } + ], + "execution_resources": { + "n_steps": 9332, + "builtin_instance_counter": { + "pedersen_builtin": 30, + "ec_op_builtin": 3, + "range_check_builtin": 334, + "poseidon_builtin": 5 + }, + "n_memory_holes": 0, + "data_availability": { + "l1_gas": 0, + "l1_data_gas": 256 + }, + "total_gas_consumed": { + "l1_gas": 28170, + "l1_data_gas": 256 + } + }, + "actual_fee": "0x1cf4cd7cf08af8ec" + }, + { + "execution_status": "SUCCEEDED", + "transaction_index": 4, + "transaction_hash": "0x5ac900f0765fe78a88432fc5f010a73ebd5b8174a28952a1ca671e0b3eb175d", + "l2_to_l1_messages": [], + "events": [ + { + "from_address": "0x1d2e513630d8120666fc6e7d52ad0c01479fd99c183baac79fff9135f46e359", + "keys": [ + "0xe7f1725e7734ce288f8367e1bb143e90bb3f0512", + "0x4eb5b0d3c460751c2402c5c5cc9109c", + "0xe1fffcc4923d04b559f4d29a8bfc6cda", + "0x34abef17718615d7cb3fc0808a60fa87", + "0xe3d416a4" + ], + "data": [ + "0x0", + "0x0", + "0x0", + "0x0", + "0x0", + "0x0", + "0x0", + "0x0", + "0x0", + "0x0", + "0x0", + "0x0", + "0x0", + "0x0", + "0x0", + "0x0", + "0x0", + "0x0", + "0x0", + "0x0", + "0x0", + "0x0", + "0x0", + "0x0", + "0x0", + "0x0", + "0x7f", + "0x54", + "0x4a", + "0x44", + "0xc0", + "0x0" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x4e96600616e94aa048f1db130619e4570b2a2bcbbd024a87e6957932601902d", + "0x50ebf948c87f34b5b491ca0f07c9a0a912fe3a11e1f0a73eff9aa5bea86304a", + "0x7f544a44c000", + "0x0" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x4e96600616e94aa048f1db130619e4570b2a2bcbbd024a87e6957932601902d", + "0x152c78b2d1229464d461bc323801739bf7a439d049685f59c506b356d0da1bb", + "0x6c76", + "0x0" + ] + }, + { + "from_address": "0x4e96600616e94aa048f1db130619e4570b2a2bcbbd024a87e6957932601902d", + "keys": [ + "0x5ad857f66a5b55f1301ff1ed7e098ac6d4433148f0b72ebc4a2945ab85ad53" + ], + "data": [ + "0x0", + "0x1", + "0x6c76" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x5e5a9efc076bad92061124207e9176b36740c2539c40089fde11e4d07cc90d0", + "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", + "0xbc4c539fc64", + "0x0" + ] + } + ], + "execution_resources": { + "n_steps": 496314, + "builtin_instance_counter": { + "bitwise_builtin": 58, + "pedersen_builtin": 179, + "range_check_builtin": 29381, + "keccak_builtin": 3, + "poseidon_builtin": 10, + "ec_op_builtin": 3 + }, + "n_memory_holes": 0, + "data_availability": { + "l1_gas": 0, + "l1_data_gas": 576 + }, + "total_gas_consumed": { + "l1_gas": 1251, + "l1_data_gas": 576 + } + }, + "actual_fee": "0xbc4c539fc64" + }, + { + "execution_status": "SUCCEEDED", + "transaction_index": 5, + "transaction_hash": "0x5877705ccf06595a88aa252b12277643612701d52ab4debdbfc4b9d8d48c661", + "l2_to_l1_messages": [], + "events": [ + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x67288624", + "0x454b55424f", + "0x505241474d41", + "0x4a2f93", + "0x4c4f5244532f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x67288623", + "0x44455853435245454e4552", + "0x505241474d41", + "0x4ce780", + "0x4c4f5244532f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x67288623", + "0x4745434b4f5445524d494e414c", + "0x505241474d41", + "0x4a8015", + "0x4c4f5244532f555344", + "0x127b" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x67288623", + "0x4b55434f494e", + "0x505241474d41", + "0xd0e0a8", + "0x5a454e442f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x67288624", + "0x4259424954", + "0x505241474d41", + "0xd2b038", + "0x5a454e442f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x67288624", + "0x454b55424f", + "0x505241474d41", + "0xc478b9", + "0x5a454e442f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x67288623", + "0x44455853435245454e4552", + "0x505241474d41", + "0xc301e0", + "0x5a454e442f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x67288624", + "0x454b55424f", + "0x505241474d41", + "0xc6e2cf9", + "0x454b55424f2f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x67288623", + "0x44455853435245454e4552", + "0x505241474d41", + "0xbf33c10", + "0x454b55424f2f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x67288623", + "0x4745434b4f5445524d494e414c", + "0x505241474d41", + "0xc667fc9", + "0x454b55424f2f555344", + "0x1580f" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x67288624", + "0x454b55424f", + "0x505241474d41", + "0x6a154f", + "0x4e5354522f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x67288624", + "0x454b55424f", + "0x505241474d41", + "0x60c7405", + "0x4c5553442f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x67288623", + "0x44455853435245454e4552", + "0x505241474d41", + "0x5fb1120", + "0x4c5553442f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x67288623", + "0x4745434b4f5445524d494e414c", + "0x505241474d41", + "0x5ef0dc1", + "0x4c5553442f555344", + "0xa2c18" + ] + }, + { + "from_address": "0x4c1d9da136846ab084ae18cf6ce7a652df7793b666a16ce46b1bf5850cc739d", + "keys": [ + "0x1dcde06aabdbca2f80aa51392b345d7549d7757aa855f7e37f5d335ac8243b1", + "0x5877705ccf06595a88aa252b12277643612701d52ab4debdbfc4b9d8d48c661" + ], + "data": [ + "0x1", + "0x0" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x4c1d9da136846ab084ae18cf6ce7a652df7793b666a16ce46b1bf5850cc739d", + "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", + "0x47262da34d4", + "0x0" + ] + } + ], + "execution_resources": { + "n_steps": 177004, + "builtin_instance_counter": { + "pedersen_builtin": 957, + "ec_op_builtin": 3, + "range_check_builtin": 5592, + "bitwise_builtin": 42, + "poseidon_builtin": 18 + }, + "n_memory_holes": 0, + "data_availability": { + "l1_gas": 0, + "l1_data_gas": 1088 + }, + "total_gas_consumed": { + "l1_gas": 471, + "l1_data_gas": 1088 + } + }, + "actual_fee": "0x47262da34d4" + }, + { + "execution_status": "SUCCEEDED", + "transaction_index": 6, + "transaction_hash": "0x52f8efb3b510350dcd8fc639556d00cbcc47bb8432e054f6c6b75f8e3e00cc7", + "l2_to_l1_messages": [], + "events": [ + { + "from_address": "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x324b04e5a4270605007334372ce455c47581e51cdd091559df2739d1c4e2677", + "0x4a2c8d7e070779c9bc8a49d9d3b909d597990e03aff7f0de3e52e92915bdbc9", + "0x1158e460913d00000", + "0x0" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x324b04e5a4270605007334372ce455c47581e51cdd091559df2739d1c4e2677", + "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", + "0x4e7edee880", + "0x0" + ] + } + ], + "execution_resources": { + "n_steps": 12358, + "builtin_instance_counter": { + "range_check_builtin": 364, + "poseidon_builtin": 6, + "ec_op_builtin": 3, + "pedersen_builtin": 25 + }, + "n_memory_holes": 0, + "data_availability": { + "l1_gas": 0, + "l1_data_gas": 320 + }, + "total_gas_consumed": { + "l1_gas": 32, + "l1_data_gas": 320 + } + }, + "actual_fee": "0x4e7edee880" + }, + { + "execution_status": "SUCCEEDED", + "transaction_index": 7, + "transaction_hash": "0x45b5e735db2d4f3a7f737b0cbfda75dca8d4afe6a3c5a67fe843df9eacef0a3", + "l2_to_l1_messages": [], + "events": [ + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x6728862d", + "0x454b55424f", + "0x505241474d41", + "0x4a2f93", + "0x4c4f5244532f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x6728862c", + "0x44455853435245454e4552", + "0x505241474d41", + "0x4ce780", + "0x4c4f5244532f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x6728862c", + "0x4b55434f494e", + "0x505241474d41", + "0xd0e0a8", + "0x5a454e442f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x6728862d", + "0x4259424954", + "0x505241474d41", + "0xd26bcb", + "0x5a454e442f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x6728862d", + "0x454b55424f", + "0x505241474d41", + "0xc478b9", + "0x5a454e442f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x6728862c", + "0x44455853435245454e4552", + "0x505241474d41", + "0xc301e0", + "0x5a454e442f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x6728862d", + "0x454b55424f", + "0x505241474d41", + "0xc6e2cf9", + "0x454b55424f2f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x6728862d", + "0x44455853435245454e4552", + "0x505241474d41", + "0xbf33c10", + "0x454b55424f2f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x6728862d", + "0x454b55424f", + "0x505241474d41", + "0x6a154f", + "0x4e5354522f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x6728862c", + "0x4745434b4f5445524d494e414c", + "0x505241474d41", + "0x5ef0dc1", + "0x4c5553442f555344", + "0xa2c18" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x6728862d", + "0x454b55424f", + "0x505241474d41", + "0x60c7405", + "0x4c5553442f555344", + "0x0" + ] + }, + { + "from_address": "0x36031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a", + "keys": [ + "0x280bb2099800026f90c334a3a23888ffe718a2920ffbbf4f44c6d3d5efb613c" + ], + "data": [ + "0x6728862c", + "0x44455853435245454e4552", + "0x505241474d41", + "0x5fb1120", + "0x4c5553442f555344", + "0x0" + ] + }, + { + "from_address": "0x4c1d9da136846ab084ae18cf6ce7a652df7793b666a16ce46b1bf5850cc739d", + "keys": [ + "0x1dcde06aabdbca2f80aa51392b345d7549d7757aa855f7e37f5d335ac8243b1", + "0x45b5e735db2d4f3a7f737b0cbfda75dca8d4afe6a3c5a67fe843df9eacef0a3" + ], + "data": [ + "0x1", + "0x0" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x4c1d9da136846ab084ae18cf6ce7a652df7793b666a16ce46b1bf5850cc739d", + "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", + "0x3dc9b2f906c", + "0x0" + ] + } + ], + "execution_resources": { + "n_steps": 153888, + "builtin_instance_counter": { + "range_check_builtin": 4860, + "ec_op_builtin": 3, + "bitwise_builtin": 36, + "pedersen_builtin": 823, + "poseidon_builtin": 16 + }, + "n_memory_holes": 0, + "data_availability": { + "l1_gas": 0, + "l1_data_gas": 960 + }, + "total_gas_consumed": { + "l1_gas": 409, + "l1_data_gas": 960 + } + }, + "actual_fee": "0x3dc9b2f906c" + }, + { + "execution_status": "SUCCEEDED", + "transaction_index": 8, + "transaction_hash": "0x1b886bc9a147d3f31aa9071c72e3aaba3d4c709e338f316b0b6f3b1f74176d4", + "l1_to_l2_consumed_message": { + "from_address": "0x8453FC6Cd1bCfE8D4dFC069C400B433054d47bDc", + "to_address": "0x4c5772d1914fe6ce891b64eb35bf3522aeae1315647314aac58b01137607f3f", + "selector": "0x1b64b1b3b690b43b9b514fb81377518f4039cd3e4f4914d8a6bdf01d679fb19", + "payload": [ + "0x455448", + "0xd1a4ef529b9d6682da7b6dcd8cb2cfe0a856928d", + "0x5affe94e35ad8a526cd41ebfc0246f40f4693900bc1f6f44a1291f88f74634a", + "0x2c68af0bb140000", + "0x0" + ], + "nonce": "0x26e9" + }, + "l2_to_l1_messages": [], + "events": [ + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x0", + "0x5affe94e35ad8a526cd41ebfc0246f40f4693900bc1f6f44a1291f88f74634a", + "0x2c68af0bb140000", + "0x0" + ] + }, + { + "from_address": "0x4c5772d1914fe6ce891b64eb35bf3522aeae1315647314aac58b01137607f3f", + "keys": [ + "0x374396cb322ab5ffd35ddb8627514609289d22c07d039ead5327782f61bb833", + "0x455448", + "0x5affe94e35ad8a526cd41ebfc0246f40f4693900bc1f6f44a1291f88f74634a" + ], + "data": [ + "0x2c68af0bb140000", + "0x0" + ] + } + ], + "execution_resources": { + "n_steps": 4893, + "builtin_instance_counter": { + "pedersen_builtin": 19, + "range_check_builtin": 156, + "poseidon_builtin": 3 + }, + "n_memory_holes": 0, + "data_availability": { + "l1_gas": 0, + "l1_data_gas": 128 + }, + "total_gas_consumed": { + "l1_gas": 20177, + "l1_data_gas": 128 + } + }, + "actual_fee": "0x0" + } + ], + "starknet_version": "0.13.2.1" +} \ No newline at end of file diff --git a/clients/feeder/testdata/sepolia/signature/284801.json b/clients/feeder/testdata/sepolia/signature/284801.json new file mode 100644 index 0000000000..72d3cc0401 --- /dev/null +++ b/clients/feeder/testdata/sepolia/signature/284801.json @@ -0,0 +1 @@ +{"block_hash": "0x59eb2294577a17273d18bbc81317f299b46a04771aef84e0e8287d4ec32ad66", "signature": ["0x4940dc498c4616750e28165986f35855c804c6c3bc605f2cc51850bdb1c85c8", "0x39d57a54e53364f07b9a420476f691ff47f2d1b332ee6f6be1489105c9f2745"]} \ No newline at end of file diff --git a/clients/feeder/testdata/sepolia/transaction/0x1b886bc9a147d3f31aa9071c72e3aaba3d4c709e338f316b0b6f3b1f74176d4.json b/clients/feeder/testdata/sepolia/transaction/0x1b886bc9a147d3f31aa9071c72e3aaba3d4c709e338f316b0b6f3b1f74176d4.json new file mode 100644 index 0000000000..dc6bf43e7e --- /dev/null +++ b/clients/feeder/testdata/sepolia/transaction/0x1b886bc9a147d3f31aa9071c72e3aaba3d4c709e338f316b0b6f3b1f74176d4.json @@ -0,0 +1,24 @@ +{ + "execution_status": "SUCCEEDED", + "finality_status": "ACCEPTED_ON_L2", + "status": "ACCEPTED_ON_L2", + "block_hash": "0x59eb2294577a17273d18bbc81317f299b46a04771aef84e0e8287d4ec32ad66", + "block_number": 284801, + "transaction_index": 8, + "transaction": { + "transaction_hash": "0x1b886bc9a147d3f31aa9071c72e3aaba3d4c709e338f316b0b6f3b1f74176d4", + "version": "0x0", + "contract_address": "0x4c5772d1914fe6ce891b64eb35bf3522aeae1315647314aac58b01137607f3f", + "entry_point_selector": "0x1b64b1b3b690b43b9b514fb81377518f4039cd3e4f4914d8a6bdf01d679fb19", + "nonce": "0x26e9", + "calldata": [ + "0x8453fc6cd1bcfe8d4dfc069c400b433054d47bdc", + "0x455448", + "0xd1a4ef529b9d6682da7b6dcd8cb2cfe0a856928d", + "0x5affe94e35ad8a526cd41ebfc0246f40f4693900bc1f6f44a1291f88f74634a", + "0x2c68af0bb140000", + "0x0" + ], + "type": "L1_HANDLER" + } +} \ No newline at end of file diff --git a/rpc/l1.go b/rpc/l1.go index 7d354e60af..c2adc0018f 100644 --- a/rpc/l1.go +++ b/rpc/l1.go @@ -18,7 +18,7 @@ var ( type LogMessageToL2 struct { FromAddress *common.Address - ToAddress *common.Address + ToAddress *big.Int Nonce *big.Int Selector *big.Int Payload []*big.Int @@ -103,10 +103,9 @@ func (h *Handler) messageToL2Logs(ctx context.Context, txHash *common.Hash) ([]* } // Extract indexed fields from topics fromAddress := common.HexToAddress(vLog.Topics[1].Hex()) - toAddress := common.HexToAddress(vLog.Topics[2].Hex()) + event.ToAddress = new(big.Int).SetBytes(vLog.Topics[2].Bytes()) selector := new(big.Int).SetBytes(vLog.Topics[3].Bytes()) event.FromAddress = &fromAddress - event.ToAddress = &toAddress event.Selector = selector messageHashes = append(messageHashes, event.HashMessage()) } diff --git a/rpc/l1_test.go b/rpc/l1_test.go index b9029ae1ac..6a762b7bd2 100644 --- a/rpc/l1_test.go +++ b/rpc/l1_test.go @@ -24,34 +24,53 @@ func TestGetMessageStatus(t *testing.T) { mockReader := mocks.NewMockReader(mockCtrl) ethClient := mocks.NewMockEthClient(mockCtrl) handler := rpc.New(mockReader, nil, nil, "", nil).WithETHClient(ethClient) - client := feeder.NewTestClient(t, &utils.Mainnet) - gw := adaptfeeder.New(client) l1Receipt := `{"blockHash":"0x42b045a05a24a1585aa3f2102e238e782e4ec3220a25358c74a29fe5f5a52f47","blockNumber":"0x13e6075","contractAddress":null,"cumulativeGasUsed":"0x83cba1","effectiveGasPrice":"0x42dba7811","from":"0xc3b49b03a6d9d71f8d3fa6582437374e650f3c46","gasUsed":"0x15070","logs":[{"address":"0xc662c410c0ecf747543f5ba90660f6abebd9c8c4","blockHash":"0x42b045a05a24a1585aa3f2102e238e782e4ec3220a25358c74a29fe5f5a52f47","blockNumber":"0x13e6075","data":"0x00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000195c3c0000000000000000000000000000000000000000000000000000048c273950000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000c3b49b03a6d9d71f8d3fa6582437374e650f3c4603a1bf949fa7424b4bd48661a62ded82bc6f6e3c5f5c6d5904c07e6143187d1b0000000000000000000000000000000000000000000000000000000000000061","logIndex":"0x11e","removed":false,"topics":["0xdb80dd488acf86d17c747445b0eabb5d57c541d3bd7b6b87af987858e5066b2b","0x0000000000000000000000007ad94e71308bb65c6bc9df35cc69cc9f953d69e5","0x038862e1b15526eda31ed6fd26805c40748458db8e420cb3be3bc65c332c023b","0x03593216f3a8b22f4cf375e5486e3d13bfde9d0f26976d20ac6f653c73f7e507"],"transactionHash":"0x5780c6fe46f958a7ebf9308e6db16d819ff9e06b1e88f9e718c50cde10898f38","transactionIndex":"0x42"},{"address":"0x7ad94e71308bb65c6bc9df35cc69cc9f953d69e5","blockHash":"0x42b045a05a24a1585aa3f2102e238e782e4ec3220a25358c74a29fe5f5a52f47","blockNumber":"0x13e6075","data":"0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000003000000000000000000000000c3b49b03a6d9d71f8d3fa6582437374e650f3c4603a1bf949fa7424b4bd48661a62ded82bc6f6e3c5f5c6d5904c07e6143187d1b0000000000000000000000000000000000000000000000000000000000000061","logIndex":"0x11f","removed":false,"topics":["0x6956d5f0b9182eedf6e4d4cde0f4c961c33d12daa74e00ed363bf9ab1123bb0a","0x000000000000000000000000c3b49b03a6d9d71f8d3fa6582437374e650f3c46","0x03a1bf949fa7424b4bd48661a62ded82bc6f6e3c5f5c6d5904c07e6143187d1b"],"transactionHash":"0x5780c6fe46f958a7ebf9308e6db16d819ff9e06b1e88f9e718c50cde10898f38","transactionIndex":"0x42"}],"logsBloom":"0x00000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000010000000180000000000000000000002000000000000000000000001000000000000000000000100000000000100000000080001000000020008000000000000000000000020000000010000001000000000000000100000000000000000000000000000000000000000000000020000000000000100000000000000000002000000000000000000000000000000000000100000000000000000000040000000000000000000000000100000000000000000000000100010000000000000100000000","status":"0x1","to":"0x7ad94e71308bb65c6bc9df35cc69cc9f953d69e5","transactionHash":"0x5780c6fe46f958a7ebf9308e6db16d819ff9e06b1e88f9e718c50cde10898f38","transactionIndex":"0x42","type":"0x2"}` var l1TxnReceipt types.Receipt - err := json.Unmarshal([]byte(l1Receipt), &l1TxnReceipt) - require.NoError(t, err) + require.NoError(t, json.Unmarshal([]byte(l1Receipt), &l1TxnReceipt)) + + l1ReceiptSepolia := `{"blockHash":"0xf7512a945f9f289eeaf4d473977379f0c1cddaab1f095654ba8b671a02b45822","blockNumber":"0x6af309","contractAddress":null,"cumulativeGasUsed":"0x4a1e7d","effectiveGasPrice":"0x368b9414c","from":"0xd1a4ef529b9d6682da7b6dcd8cb2cfe0a856928d","gasUsed":"0x16adb","logs":[{"address":"0xe2bb56ee936fd6433dc0f6e7e3b8365c906aa057","blockHash":"0xf7512a945f9f289eeaf4d473977379f0c1cddaab1f095654ba8b671a02b45822","blockNumber":"0x6af309","data":"0x000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000026e90000000000000000000000000000000000000000000000000000bbc470e72e5500000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000455448000000000000000000000000d1a4ef529b9d6682da7b6dcd8cb2cfe0a856928d05affe94e35ad8a526cd41ebfc0246f40f4693900bc1f6f44a1291f88f74634a00000000000000000000000000000000000000000000000002c68af0bb1400000000000000000000000000000000000000000000000000000000000000000000","logIndex":"0x2c","removed":false,"topics":["0xdb80dd488acf86d17c747445b0eabb5d57c541d3bd7b6b87af987858e5066b2b","0x0000000000000000000000008453fc6cd1bcfe8d4dfc069c400b433054d47bdc","0x04c5772d1914fe6ce891b64eb35bf3522aeae1315647314aac58b01137607f3f","0x01b64b1b3b690b43b9b514fb81377518f4039cd3e4f4914d8a6bdf01d679fb19"],"transactionHash":"0x1dbeb9ff738382669c2d27d572f02e8b04c455c25f71d086e8d07570e0d41f20","transactionIndex":"0xe"},{"address":"0x8453fc6cd1bcfe8d4dfc069c400b433054d47bdc","blockHash":"0xf7512a945f9f289eeaf4d473977379f0c1cddaab1f095654ba8b671a02b45822","blockNumber":"0x6af309","data":"0x00000000000000000000000000000000000000000000000002c68af0bb14000000000000000000000000000000000000000000000000000000000000000026e90000000000000000000000000000000000000000000000000000bbc470e72e55","logIndex":"0x2d","removed":false,"topics":["0x5f971bd00bf3ffbca8a6d72cdd4fd92cfd4f62636161921d1e5a64f0b64ccb6d","0x000000000000000000000000d1a4ef529b9d6682da7b6dcd8cb2cfe0a856928d","0x0000000000000000000000000000000000000000000000000000000000455448","0x05affe94e35ad8a526cd41ebfc0246f40f4693900bc1f6f44a1291f88f74634a"],"transactionHash":"0x1dbeb9ff738382669c2d27d572f02e8b04c455c25f71d086e8d07570e0d41f20","transactionIndex":"0xe"}],"logsBloom":"0x00000000000000000200000000020000000000000000000000000400000000400000000000000000000000000000000000400000000000200001000008000000000000000000000000000200000000040000000000000040101000010000000000000000100000000000000000000000000000000080000000000000000000000000000000000000000000000400000000000000000000000000020000000030000000000000000000000020000000000200000000000020000000000000000000000000000000002000800002000000000000000000000000000000100000002000000000000000000000000080000000000000000000000000000200000000","status":"0x1","to":"0x8453fc6cd1bcfe8d4dfc069c400b433054d47bdc","transactionHash":"0x1dbeb9ff738382669c2d27d572f02e8b04c455c25f71d086e8d07570e0d41f20","transactionIndex":"0xe","type":"0x2"}` + var l1TxnReceiptSepolia types.Receipt + require.NoError(t, json.Unmarshal([]byte(l1ReceiptSepolia), &l1TxnReceiptSepolia)) tests := map[string]struct { + network utils.Network l1TxnHash common.Hash msgs []rpc.MsgStatus msgHashes []common.Hash l1TxnReceipt types.Receipt blockNum uint - }{"mainnet 0.13.2.1": { - l1TxnHash: common.HexToHash("0x5780c6fe46f958a7ebf9308e6db16d819ff9e06b1e88f9e718c50cde10898f38"), - msgs: []rpc.MsgStatus{{ - L1HandlerHash: utils.HexToFelt(t, "0xc470e30f97f64255a62215633e35a7c6ae10332a9011776dde1143ab0202c3"), - FinalityStatus: rpc.TxnStatusAcceptedOnL1, - FailureReason: "", - }}, - msgHashes: []common.Hash{common.HexToHash("0x618402cb4ba8206046d99e0b128b2a65a7a592546ad239df8fa0eeee18848d37")}, - l1TxnReceipt: l1TxnReceipt, - blockNum: 763497, - }} + }{ + "mainnet 0.13.2.1": { + network: utils.Mainnet, + l1TxnHash: common.HexToHash("0x5780c6fe46f958a7ebf9308e6db16d819ff9e06b1e88f9e718c50cde10898f38"), + msgs: []rpc.MsgStatus{{ + L1HandlerHash: utils.HexToFelt(t, "0xc470e30f97f64255a62215633e35a7c6ae10332a9011776dde1143ab0202c3"), + FinalityStatus: rpc.TxnStatusAcceptedOnL1, + FailureReason: "", + }}, + msgHashes: []common.Hash{common.HexToHash("0xd8824a75a588f0726d7d83b3e9560810c763043e979fdb77b11c1a51a991235d")}, + l1TxnReceipt: l1TxnReceipt, + blockNum: 763497, + }, + "sepolia 0.13.2.1": { + network: utils.Sepolia, + l1TxnHash: common.HexToHash("0x1dbeb9ff738382669c2d27d572f02e8b04c455c25f71d086e8d07570e0d41f20"), + msgs: []rpc.MsgStatus{{ + L1HandlerHash: utils.HexToFelt(t, "0x1b886bc9a147d3f31aa9071c72e3aaba3d4c709e338f316b0b6f3b1f74176d4"), + FinalityStatus: rpc.TxnStatusAcceptedOnL2, + FailureReason: "", + }}, + msgHashes: []common.Hash{common.HexToHash("0x4bce24fddbc380266493f5e2b1f5625e606fb4286dd08a4f3a625032b3dd474b")}, // todo check against starkli + l1TxnReceipt: l1TxnReceiptSepolia, + blockNum: 284801, + }, + } for name, test := range tests { t.Run(name, func(t *testing.T) { + client := feeder.NewTestClient(t, &test.network) + gw := adaptfeeder.New(client) block, err := gw.BlockByNumber(context.Background(), uint64(test.blockNum)) require.NoError(t, err) diff --git a/starknetdata/feeder/feeder.go b/starknetdata/feeder/feeder.go index 30b18b98fd..03a154fd65 100644 --- a/starknetdata/feeder/feeder.go +++ b/starknetdata/feeder/feeder.go @@ -77,7 +77,6 @@ func (f *Feeder) Transaction(ctx context.Context, transactionHash *felt.Felt) (c if err != nil { return nil, err } - tx, err := sn2core.AdaptTransaction(response.Transaction) if err != nil { return nil, err