From a5493cb25c45701b2667d15255afaf43453ec21a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Nowosielski?= Date: Thu, 23 May 2024 11:15:36 +0200 Subject: [PATCH] removing Integration - work in progress /2 --- .../testdata/integration/block/300000.json | 104 +- .../feeder/testdata/mainnet/block/491687.json | 2319 +++++++++++++++++ .../testdata/mainnet/signature/latest.json | 12 +- ...6fb2e87b5ff573f7198a788a6f9cbe68421ee.json | 719 +++++ .../feeder/testdata/sepolia/block/latest.json | 185 ++ .../testdata/sepolia/signature/latest.json | 11 + ...63b83bfc92e3975bb94848182f755ce9960e8.json | 43 + ...91ddfc89d1a2a10bdb25c57350fa68c936bd2.json | 31 + ...a7e394b9e4a8da4b9ed82e928afbd6434017e.json | 36 + ...5830c64790238a22ec7e46655083231d222df.json | 21 + ...75152c39afe2a71652f3f404e8f1fe21a7e93.json | 26 + ...345c390bf852d461f38bddc1dc078c2ec95da.json | 22 + ...b4da7f360a27b2b614a4eb088fdf5862d23ee.json | 22 + ...c7697ea7cda240a7f59f65fe243bcfd57d60a.json | 51 + core/class_test.go | 6 +- core/state_test.go | 6 +- core/state_update_test.go | 33 +- rpc/class_test.go | 22 +- rpc/state_update_test.go | 12 +- rpc/trace_test.go | 15 +- rpc/transaction_test.go | 1268 +++------ starknet/compiler_test.go | 4 +- 22 files changed, 4039 insertions(+), 929 deletions(-) create mode 100644 clients/feeder/testdata/mainnet/block/491687.json create mode 100644 clients/feeder/testdata/mainnet/traces/0x7644422a0e4974388bade973906fb2e87b5ff573f7198a788a6f9cbe68421ee.json create mode 100644 clients/feeder/testdata/sepolia/block/latest.json create mode 100644 clients/feeder/testdata/sepolia/signature/latest.json create mode 100644 clients/feeder/testdata/sepolia/transaction/0x1412f2723569be7f627af887d663b83bfc92e3975bb94848182f755ce9960e8.json create mode 100644 clients/feeder/testdata/sepolia/transaction/0x1481f9561ab004a5b15e5a4b2691ddfc89d1a2a10bdb25c57350fa68c936bd2.json create mode 100644 clients/feeder/testdata/sepolia/transaction/0x16d437c46683719659cfdb9934a7e394b9e4a8da4b9ed82e928afbd6434017e.json create mode 100644 clients/feeder/testdata/sepolia/transaction/0x1e36b82b3f24251e9ed8e693d5830c64790238a22ec7e46655083231d222df.json create mode 100644 clients/feeder/testdata/sepolia/transaction/0x2f1ebaeae4cecb1bda1f2e98ff75152c39afe2a71652f3f404e8f1fe21a7e93.json create mode 100644 clients/feeder/testdata/sepolia/transaction/0x327bc9c5d2db0759b775762de8345c390bf852d461f38bddc1dc078c2ec95da.json create mode 100644 clients/feeder/testdata/sepolia/transaction/0x6d3e06989ee2245139cd677f59b4da7f360a27b2b614a4eb088fdf5862d23ee.json create mode 100644 clients/feeder/testdata/sepolia/transaction/0xacb2e8bdaeb179c9e3cdf5b21c7697ea7cda240a7f59f65fe243bcfd57d60a.json diff --git a/clients/feeder/testdata/integration/block/300000.json b/clients/feeder/testdata/integration/block/300000.json index 0735e9d953..be164529a4 100644 --- a/clients/feeder/testdata/integration/block/300000.json +++ b/clients/feeder/testdata/integration/block/300000.json @@ -1 +1,103 @@ -{"block_hash": "0xe3828bd9154ab385e2cbb95b3b650365fb3c6a4321660d98ce8b0a9194f9a3", "parent_block_hash": "0x3e313bf24e413beadee1bf88590debeffdd7d24c979a7fbf790a3a5c4d9e88f", "block_number": 300000, "state_root": "0x293feec0a25b7134299ded77f1a701ce7da3191d419ef88dc6b9b1c4f9b2f68", "status": "ACCEPTED_ON_L1", "gas_price": "0x277a02decd", "transactions": [{"transaction_hash": "0x2a648ab1aa6847eb38507fc842e050f256562bf87b26083c332f3f21318c2c3", "version": "0x1", "max_fee": "0x2386f26fc10000", "signature": ["0x3e71a0a29877eae7a045b8d5153ca26770e104b1ac7712dc6fdd0f005ab1d37", "0x5e7446beab40bb53324d05be3d8f130a86890895221d00bd8cd2e3839d0593a"], "nonce": "0x39bd", "sender_address": "0x58b7ee817bd2978c7657d05d3131e83e301ed1aa79d5ad16f01925fd52d1da7", "calldata": ["0x1", "0x332299dc083f3778122e5b7762bc9d399da18fefe93769aee67bb49f51c8d2", "0x2d7cf5d5a324a320f9f37804b1615a533fde487400b41af80f13f7ac5581325", "0x0", "0x4", "0x4", "0xaf35ee8ed700ff132c5d1d298a73becda25ccdf9", "0x2", "0x6cd852fe1b2bbd8587bb0aaeb09813436c57c8ce21e75651e317273a1f22228", "0x58feb991988e53fffcba71f6df23c803fb062f1b3bab126d2c9ce574255b36e"], "type": "INVOKE_FUNCTION"}, {"transaction_hash": "0xbc984e8e1fe594dd518a3a51db4f338437a5d2fbdda772d4426b532a67ffff", "version": "0x1", "max_fee": "0x2386f26fc10000", "signature": ["0x36faaf651e7e4a783dacd362bc4853f2906f8ff23f1b8b52ed4b3b3cd51c09f", "0x59b8b785b9b494aa6d6d30a3535e4a649c305643fe6e4c5d3aacefbbae00004"], "nonce": "0x39be", "sender_address": "0x58b7ee817bd2978c7657d05d3131e83e301ed1aa79d5ad16f01925fd52d1da7", "calldata": ["0x1", "0x5f9211b05c9609d54a8bf5f9cfa4e2cd5a3cab3b5d79682c585575495a15dd1", "0x317eb442b72a9fae758d4fb26830ed0d9f31c8e7da4dbff4e8c59ea6a158e7f", "0x0", "0x4", "0x4", "0x447379c077035ef4f442411d0407ce9aa66c558f0060137f6455f4f230eabeb", "0x2", "0x6811b7755a7dd0ec1fb6f51a883e3f255368e2dfd497b5f6480c00cf9cd5a2e", "0x23b9e26720dd7aaf98c7cea56499f48f75dc1d4123f7e2d6c23bfc4d5f4a336"], "type": "INVOKE_FUNCTION"}], "timestamp": 1688044916, "sequencer_address": "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", "transaction_receipts": [{"execution_status": "SUCCEEDED", "transaction_index": 0, "transaction_hash": "0x2a648ab1aa6847eb38507fc842e050f256562bf87b26083c332f3f21318c2c3", "l2_to_l1_messages": [{"from_address": "0x332299dc083f3778122e5b7762bc9d399da18fefe93769aee67bb49f51c8d2", "to_address": "0xAf35eE8eD700ff132C5d1d298A73BECdA25ccDF9", "payload": ["0x6cd852fe1b2bbd8587bb0aaeb09813436c57c8ce21e75651e317273a1f22228", "0x58feb991988e53fffcba71f6df23c803fb062f1b3bab126d2c9ce574255b36e"]}], "events": [], "execution_resources": {"n_steps": 374, "builtin_instance_counter": {"range_check_builtin": 7}, "n_memory_holes": 4}, "actual_fee": "0x127089df3a1984"}, {"execution_status": "SUCCEEDED", "transaction_index": 1, "transaction_hash": "0xbc984e8e1fe594dd518a3a51db4f338437a5d2fbdda772d4426b532a67ffff", "l2_to_l1_messages": [], "events": [], "execution_resources": {"n_steps": 307, "builtin_instance_counter": {"range_check_builtin": 9, "pedersen_builtin": 2}, "n_memory_holes": 25}, "actual_fee": "0x3b2d25cd7bccc"}], "starknet_version": "0.12.0"} \ No newline at end of file +{ + "block_hash": "0xe3828bd9154ab385e2cbb95b3b650365fb3c6a4321660d98ce8b0a9194f9a3", + "parent_block_hash": "0x3e313bf24e413beadee1bf88590debeffdd7d24c979a7fbf790a3a5c4d9e88f", + "block_number": 300000, + "state_root": "0x293feec0a25b7134299ded77f1a701ce7da3191d419ef88dc6b9b1c4f9b2f68", + "status": "ACCEPTED_ON_L1", + "gas_price": "0x277a02decd", + "transactions": [ + { + "transaction_hash": "0x2a648ab1aa6847eb38507fc842e050f256562bf87b26083c332f3f21318c2c3", + "version": "0x1", + "max_fee": "0x2386f26fc10000", + "signature": [ + "0x3e71a0a29877eae7a045b8d5153ca26770e104b1ac7712dc6fdd0f005ab1d37", + "0x5e7446beab40bb53324d05be3d8f130a86890895221d00bd8cd2e3839d0593a" + ], + "nonce": "0x39bd", + "sender_address": "0x58b7ee817bd2978c7657d05d3131e83e301ed1aa79d5ad16f01925fd52d1da7", + "calldata": [ + "0x1", + "0x332299dc083f3778122e5b7762bc9d399da18fefe93769aee67bb49f51c8d2", + "0x2d7cf5d5a324a320f9f37804b1615a533fde487400b41af80f13f7ac5581325", + "0x0", + "0x4", + "0x4", + "0xaf35ee8ed700ff132c5d1d298a73becda25ccdf9", + "0x2", + "0x6cd852fe1b2bbd8587bb0aaeb09813436c57c8ce21e75651e317273a1f22228", + "0x58feb991988e53fffcba71f6df23c803fb062f1b3bab126d2c9ce574255b36e" + ], + "type": "INVOKE_FUNCTION" + }, + { + "transaction_hash": "0xbc984e8e1fe594dd518a3a51db4f338437a5d2fbdda772d4426b532a67ffff", + "version": "0x1", + "max_fee": "0x2386f26fc10000", + "signature": [ + "0x36faaf651e7e4a783dacd362bc4853f2906f8ff23f1b8b52ed4b3b3cd51c09f", + "0x59b8b785b9b494aa6d6d30a3535e4a649c305643fe6e4c5d3aacefbbae00004" + ], + "nonce": "0x39be", + "sender_address": "0x58b7ee817bd2978c7657d05d3131e83e301ed1aa79d5ad16f01925fd52d1da7", + "calldata": [ + "0x1", + "0x5f9211b05c9609d54a8bf5f9cfa4e2cd5a3cab3b5d79682c585575495a15dd1", + "0x317eb442b72a9fae758d4fb26830ed0d9f31c8e7da4dbff4e8c59ea6a158e7f", + "0x0", + "0x4", + "0x4", + "0x447379c077035ef4f442411d0407ce9aa66c558f0060137f6455f4f230eabeb", + "0x2", + "0x6811b7755a7dd0ec1fb6f51a883e3f255368e2dfd497b5f6480c00cf9cd5a2e", + "0x23b9e26720dd7aaf98c7cea56499f48f75dc1d4123f7e2d6c23bfc4d5f4a336" + ], + "type": "INVOKE_FUNCTION" + } + ], + "timestamp": 1688044916, + "sequencer_address": "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", + "transaction_receipts": [ + { + "execution_status": "SUCCEEDED", + "transaction_index": 0, + "transaction_hash": "0x2a648ab1aa6847eb38507fc842e050f256562bf87b26083c332f3f21318c2c3", + "l2_to_l1_messages": [ + { + "from_address": "0x332299dc083f3778122e5b7762bc9d399da18fefe93769aee67bb49f51c8d2", + "to_address": "0xAf35eE8eD700ff132C5d1d298A73BECdA25ccDF9", + "payload": [ + "0x6cd852fe1b2bbd8587bb0aaeb09813436c57c8ce21e75651e317273a1f22228", + "0x58feb991988e53fffcba71f6df23c803fb062f1b3bab126d2c9ce574255b36e" + ] + } + ], + "events": [], + "execution_resources": { + "n_steps": 374, + "builtin_instance_counter": { + "range_check_builtin": 7 + }, + "n_memory_holes": 4 + }, + "actual_fee": "0x127089df3a1984" + }, + { + "execution_status": "SUCCEEDED", + "transaction_index": 1, + "transaction_hash": "0xbc984e8e1fe594dd518a3a51db4f338437a5d2fbdda772d4426b532a67ffff", + "l2_to_l1_messages": [], + "events": [], + "execution_resources": { + "n_steps": 307, + "builtin_instance_counter": { + "range_check_builtin": 9, + "pedersen_builtin": 2 + }, + "n_memory_holes": 25 + }, + "actual_fee": "0x3b2d25cd7bccc" + } + ], + "starknet_version": "0.12.0" +} \ No newline at end of file diff --git a/clients/feeder/testdata/mainnet/block/491687.json b/clients/feeder/testdata/mainnet/block/491687.json new file mode 100644 index 0000000000..e9043ab35e --- /dev/null +++ b/clients/feeder/testdata/mainnet/block/491687.json @@ -0,0 +1,2319 @@ +{ + "block_hash": "0xa284a642b19f727499b0d65b7e5552e5a48c2c18ec0d7eb31a397e3ff6f78b", + "parent_block_hash": "0x434b8406cb6898c49df54dbf5ea94bab594e33b285f1cf029ee129ce25a5857", + "block_number": 491687, + "state_root": "0xd7accc36cd8a6cc7a8c6abc32a1912c18f4b9cffd29179c8cf971b5d7caabd", + "transaction_commitment": "0x15f0fde3352e20a0ac0eec85e1ba9390d40d91164d31e0ab5a08ed2044d8a39", + "event_commitment": "0x241dd25f9fc01facdf3b374036f1e2bdfcb5f0820cf26601fbb3df2b70b742c", + "status": "ACCEPTED_ON_L1", + "l1_da_mode": "CALLDATA", + "l1_gas_price": { + "price_in_wei": "0x528158f7e", + "price_in_fri": "0x0" + }, + "l1_data_gas_price": { + "price_in_wei": "0x1", + "price_in_fri": "0x1" + }, + "transactions": [ + { + "transaction_hash": "0x2cf8cf4e8975c071648b9b036f653524ce5521456ebfd2016987c36f388d8ea", + "version": "0x1", + "max_fee": "0x255547553763c", + "signature": [ + "0x78c80249c5de546b3b12948da08e260bfa74980ef4ea5d49125dbd876cb4e44", + "0xaee31615e178e029f5cd6f981b6fe17da6531a09e9e91c172e3e0c946ce0b3" + ], + "nonce": "0x231", + "sender_address": "0x6c21ac4b1570f8119db01388a8cfc623de6ab8fe329dccae72a468c41c62a81", + "calldata": [ + "0x1", + "0x5319f36b15c6321a02746681158ba0614feecfbcf3cae67d3c167d408e26a64", + "0x296e7af6a87e83f66a60c7fd720fb4ecdac0b5291fcfb9210dae2107c7f67d4", + "0x0", + "0xb7", + "0xb7", + "0x7618e8d671395ece9c29cebea115bfd8", + "0x258a20426d886e6b8d0596b5e7f7d14a", + "0xfb2f3bb5aebee2c40e695c70470ab609", + "0x6f5593d5f4265d55cf299f5ad111abee", + "0x1b", + "0xb476ca61", + "0x0", + "0x2bfd3528aa418b754de4dc7808c4f95c32ba5e94a4bf8fe4bd470c5fe5bfffd", + "0xc7d94be11ee9d8b4152a94ecf49c2a4877a3a37e", + "0x4", + "0x14", + "0xa", + "0x0", + "0xc", + "0xa", + "0x0", + "0x7", + "0x5", + "0x0", + "0x2", + "0x5", + "0x0", + "0x1", + "0x87187d99e693a1f4d273580a5fff0ebc9fa046150982b09904ff22b53821d6", + "0x9e", + "0xf253e282704f8d684a5f167a3ebfede0", + "0xf022fc9aa442da058fcac45a8e197583", + "0x4", + "0x43", + "0x44e16c14a01102f9", + "0xee24777d0872bc93", + "0x96913d398d0f5301", + "0xe9e3f3e86e217846", + "0x963a25a06e854d72", + "0xa4901de487c4e337", + "0xb68e7b34ded3855c", + "0x8f60a2acd7faa1dc", + "0xe42da0ac460c19ed", + "0xa8f35ed4049aaa78", + "0x69e9a8587533bfa8", + "0x740e6b97b29dd5d7", + "0xeba026cd22509009", + "0x5d1ebbac77a11d69", + "0x910483a8773c4bb3", + "0x226b6dfdd6cf54f0", + "0xa0f0d91fc9a70065", + "0x7850b48881c3c5d8", + "0x5e55d5ecc7561dc5", + "0xb946c74ce150b112", + "0x5dcb33fecb1061", + "0x3b8207f52d7b87a0", + "0x7a43d2a4e85dfa9d", + "0xabd987f2c805712", + "0x93e7d6967d1a79eb", + "0x7dc1dfd4bf8a0c6", + "0xa5e38c7e10c3fb7a", + "0x9220ca59315ba611", + "0x14891ad067f27cdb", + "0xf1f2c0a28ea06d79", + "0x3bde31df870f1026", + "0xe77608b37ec42a77", + "0x5dbc3459713ec408", + "0xc8452463a0d8bdc0", + "0x8e4971e4470242fa", + "0x47b1ab955c48a977", + "0x75a73a7998067d84", + "0xe198dba0eab60f94", + "0xfd66325fab6bb87d", + "0xbeb53afcb98b5c8c", + "0x9b1c125d61bf3db7", + "0x838fa0716da8f9e8", + "0x53b955b64f0fc72c", + "0xcaf3488092a51dab", + "0xa487b11af33c634c", + "0x9aa0baf0a7efd1d8", + "0xbea73af8613f956c", + "0xf21de63b2177f56f", + "0x9d1f1180348fa788", + "0xa03e594db6802a4d", + "0x6ff541ece89b21c1", + "0x93f658a9c5d61b02", + "0xcaf2657e4d839965", + "0x28dfac9f1c20338c", + "0x59bbb5fe07815aa0", + "0x920c4ea1c0d96f6d", + "0xe206ea87abedfc61", + "0x6ed88f3c52f26005", + "0x5d4d5e9dc3caa02f", + "0xadcaca0e85ff4eda", + "0x9ab8a4a0cd025dcf", + "0x856b352addd7b9c3", + "0xc8167114ea0d2b2", + "0xdec2fb2707340c74", + "0x5415a604b7f132e7", + "0x34d7639f5455c244", + "0x804d72fb", + "0x3f", + "0x2c0b739a0f101f9", + "0xd2ea3095ab3dfd48", + "0x41358ce2b57fb670", + "0x744cb08765619f00", + "0x4e71c2a0b0382437", + "0x8cf598aee2a63653", + "0x538ac32b70d7455f", + "0x6584d9bcfb130b4c", + "0x2daba01d24b7be91", + "0x849fc50ca9fc5bb8", + "0x3f7a72e81168e2e1", + "0x6330817cd8d6a9a4", + "0x9ca0611f1d66c6e5", + "0x53afbe6cb9289874", + "0xba9ad2ab350f898f", + "0x788255d3394c9cf4", + "0x80be82f86252698a", + "0x38fb091ecf42f0a0", + "0x2b6097ae1c31336f", + "0x1c569907508fea7", + "0xfee91845c96ecc5f", + "0xa675621c2305a0aa", + "0xde17a77d40ef4536", + "0xaff38ca8fdd71035", + "0x15525dc0637d4f62", + "0x1815f26705a08bc7", + "0x84647db60b5f3525", + "0xf6e57a22f734b449", + "0x4ecf7f9c4fcb9905", + "0x2e491d41a05d1d55", + "0x5c154b9be8708bae", + "0x5b0d720e88c2fe99", + "0x90d820e1ea207151", + "0x394bd3a0dbad56a0", + "0xd0133195f5264ddf", + "0x6283b703e7426e4a", + "0x271eaad2c8508da", + "0x90aaa073cb52ea79", + "0x750e75b6aed873f6", + "0xb580729843822830", + "0xd3372544da776395", + "0x6a02af85f826d8a", + "0xb3cf6f022f397411", + "0xdd9c4892881ba971", + "0xa5cc660710225acf", + "0xa0c2c60e96865398", + "0x79f8cf7c3e1ab843", + "0xe860b3dd1f39209", + "0x1008ab5b15e36d3e", + "0x6b02c25a7f9a69db", + "0x1ee9bb8b1a133a0", + "0xdb69ebf73196f13f", + "0x1b5cb39be8b68d9c", + "0x91bd79b2008dac45", + "0xa1c4615b1f0fa0fc", + "0x1609a1108f5ce8be", + "0xd9d0e661137cb83f", + "0xeeae73be5502d410", + "0xb7a60f63cba0f1c9", + "0x45d0072a64ad542f", + "0xd23b930f78bf39e0", + "0xae3b7efcfdc290ba", + "0x80b8d7c6", + "0xf", + "0x2e06fc34f4a071f8", + "0x7b3ca673fff354c0", + "0xf367a87698fbb3d1", + "0x7f4cd3db8b35d4a5", + "0xa08080808056d513", + "0x95cfd4b49114cd2", + "0xacacf5fadb449203", + "0xbd389b193ae6d39a", + "0x46edfea916924b3c", + "0x7556d6f471e394a0", + "0x9e36ee1e50132ca0", + "0x1f4839bea29f7781", + "0xff8c4a53abbce0c9", + "0x8080808080808090", + "0x808080", + "0x6", + "0x5d53919679339feb", + "0x7d779acd5d6d9736", + "0x76237c222c1b9673", + "0xca753ba2c444faa4", + "0x3898aad", + "0x3000000" + ], + "type": "INVOKE_FUNCTION" + }, + { + "transaction_hash": "0x342cab110cf35b68ae9cda637860fca8347fc448a988934a22e8841af57deb2", + "version": "0x1", + "max_fee": "0x1e4988b44c265", + "signature": [ + "0x47f4f9802a7da7f8501bc43660fdcade3aa6c5800732273b3a98574945b05c", + "0x72378987e29c9f9ef1e2c79136b23f934179239568da7beacd5441c36a8984f", + "0x141fb662177bdc77b22ed78a914d86d547e378c098679138526ebef954a0628", + "0x6ad3e590a7c4a4dd67eb0fd0b7357cbf34a132f2274f27b89e085a95e02e2c3" + ], + "nonce": "0x14", + "sender_address": "0x39bf86e8faf3ea73c4127b736e119cd49afb78d68a00e9c235f56c117f98e39", + "calldata": [ + "0x1", + "0x57146f6409deb4c9fa12866915dd952aa07c1eb2752e451d7f3b042086bdeb8", + "0x3e8cfd4725c1e28fa4a6e3e468b4fcf75367166b850ac5f04e33ec843e82c1", + "0x4", + "0x39bf86e8faf3ea73c4127b736e119cd49afb78d68a00e9c235f56c117f98e39", + "0x39bf86e8faf3ea73c4127b736e119cd49afb78d68a00e9c235f56c117f98e39", + "0xe38207a7d143f", + "0x0" + ], + "type": "INVOKE_FUNCTION" + }, + { + "transaction_hash": "0x259787ee5d66f7fe2099171568cd4e2461bffe9e4f309cb0aaeaa89b809137f", + "version": "0x1", + "max_fee": "0x2306ba9eedec3", + "signature": [ + "0x6ff8c2216ad17c184ecfd3052ac1bb0ca21b4c4456c79348dfa84e99b01c9f2", + "0x3efe6a5058e202af6dfa68bc91e6f87e692407393669156466efae4bfcaf2e0" + ], + "nonce": "0x22", + "sender_address": "0x4fa21ceafe997b07ef3c1df179fe75a378f61ac2e31982b2a4fc48e747221d5", + "calldata": [ + "0x3", + "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "0x219209e083275171774dab1df80982e9df2096516f06319c5c6d71ae0a8480c", + "0x3", + "0x4270219d365d6b017231b52e92b3fb5d7c8378b05e9abc97724537a80e93b0f", + "0x27056f5fe3f800", + "0x0", + "0x4270219d365d6b017231b52e92b3fb5d7c8378b05e9abc97724537a80e93b0f", + "0x1171593aa5bdadda4d6b0efde6cc94ee7649c3163d5efeb19da6c16d63a2a63", + "0x12", + "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "0x27056f5fe3f800", + "0x0", + "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "0x194c6df", + "0x0", + "0x190baa4", + "0x0", + "0x4fa21ceafe997b07ef3c1df179fe75a378f61ac2e31982b2a4fc48e747221d5", + "0x0", + "0x0", + "0x1", + "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "0x10884171baf1914edc28d7afb619b40a4051cfae78a094a55d230f19e944a28", + "0x64", + "0x1", + "0x1", + "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", + "0x3", + "0x1d8b73b49d8cb653570929260e8e01033278d6840f706faa421f08b992f8083", + "0xf01b4a38800", + "0x0" + ], + "type": "INVOKE_FUNCTION" + }, + { + "transaction_hash": "0x5844352bfd8069fbd553f4f2481aea319108f7549ad03943607962d774f8475", + "version": "0x1", + "max_fee": "0x32726d0df25de", + "signature": [ + "0x6802313084c7c79e852b8ed70b659ea72be0a6b869fee803a1817f9a5901e35", + "0x397d9c25048879b4a95debf2c8b0e52745bdfe142777c2dd45f5bcb21968c81" + ], + "nonce": "0x29", + "sender_address": "0x61bd9f6c583554838e7a70190fe269b2481c03fe829a1ca0afe1057eb5179da", + "calldata": [ + "0x2", + "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "0x219209e083275171774dab1df80982e9df2096516f06319c5c6d71ae0a8480c", + "0x3", + "0x41fd22b238fa21cfcf5dd45a8548974d8263b3a531a60388411c5e230f97023", + "0x180abff2b19f9", + "0x0", + "0x41fd22b238fa21cfcf5dd45a8548974d8263b3a531a60388411c5e230f97023", + "0x3b1bf5248b545038b97fc53525d5be840cf237a3faddfcaa7b9e4c8439fdaad", + "0xa", + "0xde0b6b3a7640000", + "0x0", + "0x180abff2b19f9", + "0x0", + "0x3", + "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "0xda114221cb83fa859dbdb4c44beeaa0bb37c7537ad5ae66fe5e0efd20e6eb3", + "0x61bd9f6c583554838e7a70190fe269b2481c03fe829a1ca0afe1057eb5179da", + "0x6593dfce" + ], + "type": "INVOKE_FUNCTION" + }, + { + "transaction_hash": "0x43adb8c7f697873ed5296f882dd7893f7491cfbd7e53e475b43b600d110b3f1", + "version": "0x1", + "max_fee": "0x2985e59e7c8ef", + "signature": [ + "0x40621d9b12ce417ff390e1fa99e3d33fc1210e61fc07ddef3fa329e8ced0217", + "0x5ed7d52432610c158dbba43bb67e14ae1d0772b9e7870c954da20184bc84ea2", + "0x77ebd35076adb8355f8ce7e728492a9e9c36ab21c4ca9c32afdf7fbed07694e", + "0x3484ec29f3d58f5556c580e5c1b60ece534a1425752cafbbef26bf3e48d851e" + ], + "nonce": "0x9c", + "sender_address": "0x40e6c6ebaf8c32854243f0b75a84a4af7ec2534eadb660e82b03a6742f8052f", + "calldata": [ + "0x3", + "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "0x219209e083275171774dab1df80982e9df2096516f06319c5c6d71ae0a8480c", + "0x3", + "0x4270219d365d6b017231b52e92b3fb5d7c8378b05e9abc97724537a80e93b0f", + "0x738999e", + "0x0", + "0x4270219d365d6b017231b52e92b3fb5d7c8378b05e9abc97724537a80e93b0f", + "0x1171593aa5bdadda4d6b0efde6cc94ee7649c3163d5efeb19da6c16d63a2a63", + "0x12", + "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "0x738999e", + "0x0", + "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "0xb1e946ae5de66a", + "0x0", + "0xb021d2c6391efd", + "0x0", + "0x40e6c6ebaf8c32854243f0b75a84a4af7ec2534eadb660e82b03a6742f8052f", + "0x0", + "0x0", + "0x1", + "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "0x28c858a586fa12123a1ccb337a0a3b369281f91ea00544d0c086524b759f627", + "0x64", + "0x1", + "0x0", + "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", + "0x3", + "0x1d8b73b49d8cb653570929260e8e01033278d6840f706faa421f08b992f8083", + "0x2c6ed", + "0x0" + ], + "type": "INVOKE_FUNCTION" + }, + { + "transaction_hash": "0x212f09189268ab735e69848003cea41eb1a467e38310b50ec62434875bfcfb6", + "version": "0x1", + "max_fee": "0x1a6ea3fd21000", + "signature": [ + "0x40d386187ac86ff2c09dd87aed482aa90d38ac33b6b06cf2c1ef7a5f7434171", + "0x543cf68ef625bc8019ec4f02361bfdd7ea2a5fab0cb61d34b805069b4bbb32e" + ], + "nonce": "0xcb", + "sender_address": "0x194308d6226b6bebc3c8e06a202664c7e5a00cbc8b232860965909081c7081b", + "calldata": [ + "0x3", + "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", + "0x0", + "0x3", + "0x4b3802058cdd4fc4e352e866e2eef5abde7d62e78116ac68b419654cbebc021", + "0x240060cdb34fcc260f41eac7474ee1d7c80b7e3607daff9ac67c7ea2ebb1c44", + "0x3", + "0xe", + "0x4b3802058cdd4fc4e352e866e2eef5abde7d62e78116ac68b419654cbebc021", + "0x292f3f4df7749c2ae1fdc3379303c2e6caa9bbc3033ee67709fde5b77f65836", + "0x11", + "0x1", + "0x12", + "0x4b3802058cdd4fc4e352e866e2eef5abde7d62e78116ac68b419654cbebc021", + "0x6b8f467", + "0x0", + "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "0x6b8f467", + "0x0", + "0x1", + "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "0x20c49ba5e353f80000000000000000", + "0x3e8", + "0x0", + "0x3646c79cdb5c46e1157430ba8d86b", + "0x0", + "0x0", + "0xa3b8f2950ddc5f", + "0x4b3802058cdd4fc4e352e866e2eef5abde7d62e78116ac68b419654cbebc021", + "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7" + ], + "type": "INVOKE_FUNCTION" + }, + { + "transaction_hash": "0x188d33a5a73fd4bbd29ec0ef19ee9c0aebc798c4546cf0c07bd40b7f72ad3a7", + "version": "0x1", + "max_fee": "0x4261123a39084", + "signature": [ + "0x7966d37a5883657e89786b5b9e1aef4b937807dc491a45a152136871de87886", + "0x40e50e1f29fbccf06be9cd536a882cd720f7560d90a2650a7e988cfd5b6fa7f" + ], + "nonce": "0x18", + "sender_address": "0x7b2dff6a66eb558df1caf358c7bdb11197375b0e7613c1d7a829d218adfed49", + "calldata": [ + "0x5", + "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", + "0x0", + "0x3", + "0x124aeb495b947201f5fac96fd1138e326ad86195b98df6dec9009158a533b49", + "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", + "0x3", + "0x3", + "0x2e0af29598b407c8716b17f6d2795eca1b471413fa03fb145a5e33722184067", + "0x1aaaf2a837d89d81fdbb424984d454f0b34524f750d7e4cc0ee9dce8f65ec1d", + "0x6", + "0xb", + "0x2e0af29598b407c8716b17f6d2795eca1b471413fa03fb145a5e33722184067", + "0x292f3f4df7749c2ae1fdc3379303c2e6caa9bbc3033ee67709fde5b77f65836", + "0x11", + "0x1", + "0x2e0af29598b407c8716b17f6d2795eca1b471413fa03fb145a5e33722184067", + "0x292f3f4df7749c2ae1fdc3379303c2e6caa9bbc3033ee67709fde5b77f65836", + "0x12", + "0x1", + "0x13", + "0x2e0af29598b407c8716b17f6d2795eca1b471413fa03fb145a5e33722184067", + "0x4f0c10219d7f", + "0x0", + "0x2e0af29598b407c8716b17f6d2795eca1b471413fa03fb145a5e33722184067", + "0x3bdf233c08a0f45ac", + "0x0", + "0x124aeb495b947201f5fac96fd1138e326ad86195b98df6dec9009158a533b49", + "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "0x28f5c28f5c28f5c28f5c28f5c28f5c2", + "0x4d5a", + "0x0", + "0x836fee", + "0x1", + "0x6e4952", + "0x1", + "0x6aa90fa91d64c0f", + "0x49b013751b23a41aafe353c89e77d29f92fa9973b9cc643d27ce14aad02a666", + "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "0x124aeb495b947201f5fac96fd1138e326ad86195b98df6dec9009158a533b49" + ], + "type": "INVOKE_FUNCTION" + }, + { + "transaction_hash": "0x68178b57185e393fcc358a7bbad3260c70a6ab06b8f0194c0a7c9ac4b19bc", + "version": "0x1", + "max_fee": "0x1ea37b788b000", + "signature": [ + "0x3b65a5c4a3af92258d94f9e25727cee4bf53c44a30201227d776771dc53aca4", + "0x6f8b11d386e3d5c520b6de6bcde7866df76c22d2951696571428b0d70deb5d6" + ], + "nonce": "0x3d", + "sender_address": "0x49ef4f6dbb5dd9941089439534c8575ce43534598f10806a1f27aabe1f36036", + "calldata": [ + "0x3", + "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "0x219209e083275171774dab1df80982e9df2096516f06319c5c6d71ae0a8480c", + "0x0", + "0x3", + "0xda114221cb83fa859dbdb4c44beeaa0bb37c7537ad5ae66fe5e0efd20e6eb3", + "0x219209e083275171774dab1df80982e9df2096516f06319c5c6d71ae0a8480c", + "0x3", + "0x3", + "0x41fd22b238fa21cfcf5dd45a8548974d8263b3a531a60388411c5e230f97023", + "0x2cfb12ff9e08412ec5009c65ea06e727119ad948d25c8a8cc2c86fec4adee70", + "0x6", + "0xc", + "0x12", + "0x41fd22b238fa21cfcf5dd45a8548974d8263b3a531a60388411c5e230f97023", + "0x92dda80", + "0x0", + "0x41fd22b238fa21cfcf5dd45a8548974d8263b3a531a60388411c5e230f97023", + "0x85c0abbf2336fcafe", + "0x0", + "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "0xda114221cb83fa859dbdb4c44beeaa0bb37c7537ad5ae66fe5e0efd20e6eb3", + "0x92dda80", + "0x0", + "0x85c0abbf2336fcafe", + "0x0", + "0x8fedb40", + "0x0", + "0x8313db82feaba5b69", + "0x0", + "0x49ef4f6dbb5dd9941089439534c8575ce43534598f10806a1f27aabe1f36036", + "0x6593dfce" + ], + "type": "INVOKE_FUNCTION" + }, + { + "transaction_hash": "0x46047b699c680fa12e329b8c20efb90794b57552fe2c4c279ea4f8e67f1b1bf", + "version": "0x1", + "max_fee": "0x642f3197cf46b", + "signature": [ + "0x5f3f505ab7bdd776e726f75cc280ce35c3a403dd7d48d60486533bfcc80d59c", + "0x1d0b4379a62aaa850ea34efd9bc4f43a3745709054e9fcc77364c3895521347" + ], + "nonce": "0x4f", + "sender_address": "0xbcd77de7bd0755830ba2eb9fcadeb715acb0a2bd05d881e22b59d1c5fe6296", + "calldata": [ + "0x3", + "0xfff107e2403123c7df78d91728a7ee5cfd557aec0fa2d2bdc5891c286bbfff", + "0x3bc75403f0d735653dce6c92437af5f88d5a4b49c6ef582454a66d3a033d429", + "0x7", + "0x108a0", + "0x0", + "0x746242841", + "0x11d67e12", + "0x0", + "0x121d740c", + "0x0", + "0xfff107e2403123c7df78d91728a7ee5cfd557aec0fa2d2bdc5891c286bbfff", + "0x284134db6f39215e1d0a0a3dbd382fd7d28af6b3e3d5b77bba35c3a1d0da316", + "0x5", + "0x108a0", + "0x0", + "0xbcd77de7bd0755830ba2eb9fcadeb715acb0a2bd05d881e22b59d1c5fe6296", + "0xffffffffffffffffffffffffffffffff", + "0xffffffffffffffffffffffffffffffff", + "0xfff107e2403123c7df78d91728a7ee5cfd557aec0fa2d2bdc5891c286bbfff", + "0x3e8cfd4725c1e28fa4a6e3e468b4fcf75367166b850ac5f04e33ec843e82c1", + "0x2", + "0x108a0", + "0x0" + ], + "type": "INVOKE_FUNCTION" + }, + { + "transaction_hash": "0x585e713cb0ee4d5bc49885748d229598e560c37e7a1344a8c601d39574eb4dc", + "version": "0x1", + "max_fee": "0x22a5cd304be80", + "signature": [ + "0x5d8294bc478fa25566d1d65429a8b56aaa3c0815fc32a43f6de11b2f5a2c9dc", + "0x1adccd65b3bc1830056b8733c1281358abbc32532d423c53460977d3431ce6a" + ], + "nonce": "0x26", + "sender_address": "0x5db738b049565773360d6b32ddc35966d97e95c455a73cb9c0694489b46cd39", + "calldata": [ + "0x2", + "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "0x219209e083275171774dab1df80982e9df2096516f06319c5c6d71ae0a8480c", + "0x3", + "0x2d300192ea8d3291755bfd2bb2f9e16b38f48a20e4ce98e189d2daa7be435c2", + "0x1902d7bb38000", + "0x0", + "0x2d300192ea8d3291755bfd2bb2f9e16b38f48a20e4ce98e189d2daa7be435c2", + "0x3276861cf5e05d6daf8f352cabb47df623eb10c383ab742fcc7abea94d5c5cc", + "0x9", + "0x1902d7bb38000", + "0x0", + "0xf7cb0", + "0x0", + "0x2", + "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "0x5db738b049565773360d6b32ddc35966d97e95c455a73cb9c0694489b46cd39", + "0x6593d6a4" + ], + "type": "INVOKE_FUNCTION" + }, + { + "transaction_hash": "0x83a9c6358c2d07c06326ea82343f4eb09c01fe862236de94dc4c3c4114213", + "version": "0x1", + "max_fee": "0x96893a3f5157", + "signature": [ + "0x71ac8770aae0fb40a87403c6117cdaa1eb9ebc394bdfd89edb6d2fbcf87035b", + "0xf6c7c7d6b99d04e18321fef219aca5eeb99e0ac74888bd77a4588d96195e56" + ], + "nonce": "0x3012", + "sender_address": "0x2b7fa2c45fd785cd6fa1a512b9bdca53ce151445a5ad06a1b54d0074b785d74", + "calldata": [ + "0x1", + "0x259fec57cd26d27385cd8948d3693bbf26bed68ad54d7bdd1fdb901774ff0e8", + "0x15511cc3694f64379908437d6d64458dc76d02482052bfb8a5b33a72c054c77", + "0x4", + "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "0x680b183b16dcabacf877fed9ca86ca6d2885cd67a33de32842e99e827ef60c6", + "0x124531da5c7c00", + "0x0" + ], + "type": "INVOKE_FUNCTION" + }, + { + "transaction_hash": "0x61fce9fbc665c106e0739e336288a5de92455e5d5720909968f8d19e07fc78b", + "version": "0x1", + "max_fee": "0x955cd1412074", + "signature": [ + "0x6d2a6f111eec83f29df93cbda5ba91c6c96afd8f7024de019125131a9f46278", + "0x6b6f033ba5005d640f9a9c2d18dc7f49583d5dd456d59aee11ad49bb2e782e4" + ], + "nonce": "0x2c", + "sender_address": "0x2115d327af6b3177b450d6f57a777e20fb1026766116b00294120b859af731d", + "calldata": [ + "0x1", + "0x7f7ceaf7fa527d0b73de384ea725cf3d788d9d9a0bfa7145fdc6851016fc60d", + "0x773c2b8a50bb731990c22e6fc76c4b9c9399f7201d5d1e68e836bd93546979", + "0x0", + "0x2", + "0x2", + "0x92cb42cdc37c75c5", + "0x0" + ], + "type": "INVOKE_FUNCTION" + }, + { + "transaction_hash": "0x43e4b48175376c8a3a1b4a9d248b5a509a17cb1e0b8eb5e62e1082f1db0a9b4", + "version": "0x1", + "max_fee": "0x2890b22248622", + "signature": [ + "0x22e5029c6e8e2f39438928ed4030b856974badd32fa003eaad849783b50e789", + "0x483d2fb80918a351e6348da90fcd2a2586d4d015405afd39be95e9843539d3b" + ], + "nonce": "0x68", + "sender_address": "0x488329aba7b051ffc4e5ef1914813850c6ce56cd5382fb6e9eef2faa49ed3a9", + "calldata": [ + "0x2", + "0x5801bdad32f343035fb242e98d1e9371ae85bc1543962fedea16c59b35bd19b", + "0x219209e083275171774dab1df80982e9df2096516f06319c5c6d71ae0a8480c", + "0x3", + "0x41fd22b238fa21cfcf5dd45a8548974d8263b3a531a60388411c5e230f97023", + "0x587e15", + "0x0", + "0x41fd22b238fa21cfcf5dd45a8548974d8263b3a531a60388411c5e230f97023", + "0x2e875d1c86df033547c5c7839d8b6e3641de29ee1f708bbce99743b34272ada", + "0xa", + "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "0x68f5c6a61780768455de69077e07e89787839bf8166decfbf92b645209c0fb8", + "0x587e15", + "0x0", + "0x679d86", + "0x0", + "0x678f0f", + "0x0", + "0x488329aba7b051ffc4e5ef1914813850c6ce56cd5382fb6e9eef2faa49ed3a9", + "0x6593df87" + ], + "type": "INVOKE_FUNCTION" + } + ], + "timestamp": 1704186372, + "sequencer_address": "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", + "transaction_receipts": [ + { + "execution_status": "SUCCEEDED", + "transaction_index": 0, + "transaction_hash": "0x2cf8cf4e8975c071648b9b036f653524ce5521456ebfd2016987c36f388d8ea", + "l2_to_l1_messages": [], + "events": [ + { + "from_address": "0x2bfd3528aa418b754de4dc7808c4f95c32ba5e94a4bf8fe4bd470c5fe5bfffd", + "keys": [ + "0x21d85f4389cb888ceaf7588bcebcebd09d3c1a57890503af1d9e7a2573352b5" + ], + "data": [ + "0x14", + "0xc7d94be11ee9d8b4152a94ecf49c2a4877a3a37e", + "0xa", + "0x0" + ] + }, + { + "from_address": "0x2bfd3528aa418b754de4dc7808c4f95c32ba5e94a4bf8fe4bd470c5fe5bfffd", + "keys": [ + "0x21d85f4389cb888ceaf7588bcebcebd09d3c1a57890503af1d9e7a2573352b5" + ], + "data": [ + "0xc", + "0xc7d94be11ee9d8b4152a94ecf49c2a4877a3a37e", + "0xa", + "0x0" + ] + }, + { + "from_address": "0x2bfd3528aa418b754de4dc7808c4f95c32ba5e94a4bf8fe4bd470c5fe5bfffd", + "keys": [ + "0x21d85f4389cb888ceaf7588bcebcebd09d3c1a57890503af1d9e7a2573352b5" + ], + "data": [ + "0x7", + "0xc7d94be11ee9d8b4152a94ecf49c2a4877a3a37e", + "0x5", + "0x0" + ] + }, + { + "from_address": "0x2bfd3528aa418b754de4dc7808c4f95c32ba5e94a4bf8fe4bd470c5fe5bfffd", + "keys": [ + "0x21d85f4389cb888ceaf7588bcebcebd09d3c1a57890503af1d9e7a2573352b5" + ], + "data": [ + "0x2", + "0xc7d94be11ee9d8b4152a94ecf49c2a4877a3a37e", + "0x5", + "0x0" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x6c21ac4b1570f8119db01388a8cfc623de6ab8fe329dccae72a468c41c62a81", + "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", + "0x1a7af7b7fe6ac", + "0x0" + ] + } + ], + "execution_resources": { + "n_steps": 704612, + "builtin_instance_counter": { + "keccak_builtin": 61, + "bitwise_builtin": 2601, + "pedersen_builtin": 47, + "ecdsa_builtin": 1, + "range_check_builtin": 54958 + }, + "n_memory_holes": 0 + }, + "actual_fee": "0x1a7af7b7fe6ac" + }, + { + "execution_status": "SUCCEEDED", + "transaction_index": 1, + "transaction_hash": "0x342cab110cf35b68ae9cda637860fca8347fc448a988934a22e8841af57deb2", + "l2_to_l1_messages": [], + "events": [ + { + "from_address": "0x59a943ca214c10234b9a3b61c558ac20c005127d183b86a99a8f3c60a08b4ff", + "keys": [ + "0x2d869564c7a090f9b3cd65b3da756ce0477042ddacf02cf39dd19ca4c223e5f" + ], + "data": [ + "0xba3037d968790ac486f70acaa9a1cab10cf5843bb85c986624b4d0e5a82e74", + "0xde5e9fe6aa8c9c1", + "0x0" + ] + }, + { + "from_address": "0x59a943ca214c10234b9a3b61c558ac20c005127d183b86a99a8f3c60a08b4ff", + "keys": [ + "0x3fe378208b9b410fecd7e94ee45037c8715f0f12c7a8455bde0f35277b83d65" + ], + "data": [ + "0xba3037d968790ac486f70acaa9a1cab10cf5843bb85c986624b4d0e5a82e74", + "0xdf060f512d24686", + "0x0" + ] + }, + { + "from_address": "0x59a943ca214c10234b9a3b61c558ac20c005127d183b86a99a8f3c60a08b4ff", + "keys": [ + "0x624ef3ac9a411845bcc671de3155f9c27c29a2539be56d17acff46d0747877" + ], + "data": [ + "0xba3037d968790ac486f70acaa9a1cab10cf5843bb85c986624b4d0e5a82e74", + "0x6593d204" + ] + }, + { + "from_address": "0x1fecadfe7cda2487c66291f2970a629be8eecdcb006ba4e71d1428c2b7605c7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x0", + "0x8718bf271493c557974f8aab1179f431a0ca956c74e83f8ec4c37834f0f9ce", + "0x43da431a599", + "0x0" + ] + }, + { + "from_address": "0x1fecadfe7cda2487c66291f2970a629be8eecdcb006ba4e71d1428c2b7605c7", + "keys": [ + "0x34e55c1cd55f1338241b50d352f0e91c7e4ffad0e4271d64eb347589ebdfd16" + ], + "data": [ + "0x8718bf271493c557974f8aab1179f431a0ca956c74e83f8ec4c37834f0f9ce", + "0x43f3b02e690", + "0x0" + ] + }, + { + "from_address": "0x57146f6409deb4c9fa12866915dd952aa07c1eb2752e451d7f3b042086bdeb8", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x39bf86e8faf3ea73c4127b736e119cd49afb78d68a00e9c235f56c117f98e39", + "0x0", + "0xe32ce6c99d429", + "0x0" + ] + }, + { + "from_address": "0x57146f6409deb4c9fa12866915dd952aa07c1eb2752e451d7f3b042086bdeb8", + "keys": [ + "0x243e1de00e8a6bc1dfa3e950e6ade24c52e4a25de4dee7fb5affe918ad1e744" + ], + "data": [ + "0x39bf86e8faf3ea73c4127b736e119cd49afb78d68a00e9c235f56c117f98e39", + "0xe38207a7d143f", + "0x0" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x59a943ca214c10234b9a3b61c558ac20c005127d183b86a99a8f3c60a08b4ff", + "0x39bf86e8faf3ea73c4127b736e119cd49afb78d68a00e9c235f56c117f98e39", + "0xe38207a7d143f", + "0x0" + ] + }, + { + "from_address": "0x59a943ca214c10234b9a3b61c558ac20c005127d183b86a99a8f3c60a08b4ff", + "keys": [ + "0x3f1547f5c752a56ed475433772ec93cab0ef5ff7786632287d7381d30d305ae" + ], + "data": [ + "0xba3037d968790ac486f70acaa9a1cab10cf5843bb85c986624b4d0e5a82e74", + "0x1c1950bf259b48", + "0x0" + ] + }, + { + "from_address": "0x59a943ca214c10234b9a3b61c558ac20c005127d183b86a99a8f3c60a08b4ff", + "keys": [ + "0x49d3e14a9a5551aa9aa4e7ce97f74cc7357d95f68db2d55fc291f2e07af82d" + ], + "data": [ + "0xba3037d968790ac486f70acaa9a1cab10cf5843bb85c986624b4d0e5a82e74", + "0x695175684e8e4c", + "0x0" + ] + }, + { + "from_address": "0x59a943ca214c10234b9a3b61c558ac20c005127d183b86a99a8f3c60a08b4ff", + "keys": [ + "0x33db1d611576200c90997bde1f948502469d333e65e87045c250e6efd2e42c7" + ], + "data": [ + "0xba3037d968790ac486f70acaa9a1cab10cf5843bb85c986624b4d0e5a82e74", + "0x1c1950bf259b48", + "0x0", + "0x695175684e8e4c", + "0x0", + "0xde5e9fe6aa8c9c1", + "0x0", + "0xdf060f512d24686", + "0x0" + ] + }, + { + "from_address": "0x39bf86e8faf3ea73c4127b736e119cd49afb78d68a00e9c235f56c117f98e39", + "keys": [ + "0x1dcde06aabdbca2f80aa51392b345d7549d7757aa855f7e37f5d335ac8243b1", + "0x342cab110cf35b68ae9cda637860fca8347fc448a988934a22e8841af57deb2" + ], + "data": [ + "0x1", + "0x2", + "0xe38207a7d143f", + "0x0" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x39bf86e8faf3ea73c4127b736e119cd49afb78d68a00e9c235f56c117f98e39", + "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", + "0x18a9439ccf476", + "0x0" + ] + } + ], + "execution_resources": { + "n_steps": 122882, + "builtin_instance_counter": { + "ec_op_builtin": 6, + "pedersen_builtin": 258, + "range_check_builtin": 4744, + "bitwise_builtin": 2 + }, + "n_memory_holes": 0 + }, + "actual_fee": "0x18a9439ccf476" + }, + { + "execution_status": "SUCCEEDED", + "transaction_index": 2, + "transaction_hash": "0x259787ee5d66f7fe2099171568cd4e2461bffe9e4f309cb0aaeaa89b809137f", + "l2_to_l1_messages": [], + "events": [ + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x134692b230b9e1ffa39098904722134159652b09c5bc41d88d6698779d228ff" + ], + "data": [ + "0x4fa21ceafe997b07ef3c1df179fe75a378f61ac2e31982b2a4fc48e747221d5", + "0x4270219d365d6b017231b52e92b3fb5d7c8378b05e9abc97724537a80e93b0f", + "0x27056f5fe3f800", + "0x0" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x4fa21ceafe997b07ef3c1df179fe75a378f61ac2e31982b2a4fc48e747221d5", + "0x4270219d365d6b017231b52e92b3fb5d7c8378b05e9abc97724537a80e93b0f", + "0x27056f5fe3f800", + "0x0" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x134692b230b9e1ffa39098904722134159652b09c5bc41d88d6698779d228ff" + ], + "data": [ + "0x4270219d365d6b017231b52e92b3fb5d7c8378b05e9abc97724537a80e93b0f", + "0x10884171baf1914edc28d7afb619b40a4051cfae78a094a55d230f19e944a28", + "0x27056f5fe3f800", + "0x0" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x4270219d365d6b017231b52e92b3fb5d7c8378b05e9abc97724537a80e93b0f", + "0x10884171baf1914edc28d7afb619b40a4051cfae78a094a55d230f19e944a28", + "0x27056f5fe3f800", + "0x0" + ] + }, + { + "from_address": "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x10884171baf1914edc28d7afb619b40a4051cfae78a094a55d230f19e944a28", + "0x4270219d365d6b017231b52e92b3fb5d7c8378b05e9abc97724537a80e93b0f", + "0x194ddee", + "0x0" + ] + }, + { + "from_address": "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x4270219d365d6b017231b52e92b3fb5d7c8378b05e9abc97724537a80e93b0f", + "0x360fb3a51bd291e5db0892b6249918a5689bc61760adcb350fe39cd725e1d22", + "0x14ba", + "0x0" + ] + }, + { + "from_address": "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x4270219d365d6b017231b52e92b3fb5d7c8378b05e9abc97724537a80e93b0f", + "0x4fa21ceafe997b07ef3c1df179fe75a378f61ac2e31982b2a4fc48e747221d5", + "0x194c934", + "0x0" + ] + }, + { + "from_address": "0x4270219d365d6b017231b52e92b3fb5d7c8378b05e9abc97724537a80e93b0f", + "keys": [ + "0xe316f0d9d2a3affa97de1d99bb2aac0538e2666d0d8545545ead241ef0ccab" + ], + "data": [ + "0x4fa21ceafe997b07ef3c1df179fe75a378f61ac2e31982b2a4fc48e747221d5", + "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "0x27056f5fe3f800", + "0x0", + "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "0x194c934", + "0x0", + "0x4fa21ceafe997b07ef3c1df179fe75a378f61ac2e31982b2a4fc48e747221d5" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x4fa21ceafe997b07ef3c1df179fe75a378f61ac2e31982b2a4fc48e747221d5", + "0x1d8b73b49d8cb653570929260e8e01033278d6840f706faa421f08b992f8083", + "0xf01b4a38800", + "0x0" + ] + }, + { + "from_address": "0x4fa21ceafe997b07ef3c1df179fe75a378f61ac2e31982b2a4fc48e747221d5", + "keys": [ + "0x1dcde06aabdbca2f80aa51392b345d7549d7757aa855f7e37f5d335ac8243b1", + "0x259787ee5d66f7fe2099171568cd4e2461bffe9e4f309cb0aaeaa89b809137f" + ], + "data": [ + "0x3", + "0x1", + "0x1", + "0x1", + "0x1", + "0x1", + "0x1" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x4fa21ceafe997b07ef3c1df179fe75a378f61ac2e31982b2a4fc48e747221d5", + "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", + "0x11a0f9357e91a", + "0x0" + ] + } + ], + "execution_resources": { + "n_steps": 53894, + "builtin_instance_counter": { + "pedersen_builtin": 64, + "ec_op_builtin": 3, + "range_check_builtin": 1458 + }, + "n_memory_holes": 0 + }, + "actual_fee": "0x11a0f9357e91a" + }, + { + "execution_status": "SUCCEEDED", + "transaction_index": 3, + "transaction_hash": "0x5844352bfd8069fbd553f4f2481aea319108f7549ad03943607962d774f8475", + "l2_to_l1_messages": [], + "events": [ + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x134692b230b9e1ffa39098904722134159652b09c5bc41d88d6698779d228ff" + ], + "data": [ + "0x61bd9f6c583554838e7a70190fe269b2481c03fe829a1ca0afe1057eb5179da", + "0x41fd22b238fa21cfcf5dd45a8548974d8263b3a531a60388411c5e230f97023", + "0x180abff2b19f9", + "0x0" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x61bd9f6c583554838e7a70190fe269b2481c03fe829a1ca0afe1057eb5179da", + "0x4d0390b777b424e43839cd1e744799f3de6c176c7e32c1812a41dbd9c19db6a", + "0x179233da12ed3", + "0x0" + ] + }, + { + "from_address": "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x4d0390b777b424e43839cd1e744799f3de6c176c7e32c1812a41dbd9c19db6a", + "0xcfd39f5244f7b617418c018204a8a9f9a7f72e71f0ef38f968eeb2a9ca302b", + "0xf48e3", + "0x0" + ] + }, + { + "from_address": "0x4d0390b777b424e43839cd1e744799f3de6c176c7e32c1812a41dbd9c19db6a", + "keys": [ + "0xe14a408baf7f453312eec68e9b7d728ec5337fbdf671f917ee8c80f3255232" + ], + "data": [ + "0x2392a50b29933d2aae", + "0x0", + "0x1722fb2d3de", + "0x0" + ] + }, + { + "from_address": "0x4d0390b777b424e43839cd1e744799f3de6c176c7e32c1812a41dbd9c19db6a", + "keys": [ + "0xe316f0d9d2a3affa97de1d99bb2aac0538e2666d0d8545545ead241ef0ccab" + ], + "data": [ + "0x41fd22b238fa21cfcf5dd45a8548974d8263b3a531a60388411c5e230f97023", + "0x179233da12ed3", + "0x0", + "0x0", + "0x0", + "0x0", + "0x0", + "0xf48e3", + "0x0", + "0xcfd39f5244f7b617418c018204a8a9f9a7f72e71f0ef38f968eeb2a9ca302b" + ] + }, + { + "from_address": "0xda114221cb83fa859dbdb4c44beeaa0bb37c7537ad5ae66fe5e0efd20e6eb3", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0xcfd39f5244f7b617418c018204a8a9f9a7f72e71f0ef38f968eeb2a9ca302b", + "0x61bd9f6c583554838e7a70190fe269b2481c03fe829a1ca0afe1057eb5179da", + "0xde0b6b3a7640000", + "0x0" + ] + }, + { + "from_address": "0xcfd39f5244f7b617418c018204a8a9f9a7f72e71f0ef38f968eeb2a9ca302b", + "keys": [ + "0xe14a408baf7f453312eec68e9b7d728ec5337fbdf671f917ee8c80f3255232" + ], + "data": [ + "0x14926c945e9ad7b5afb7", + "0x0", + "0x1696fcc886", + "0x0" + ] + }, + { + "from_address": "0xcfd39f5244f7b617418c018204a8a9f9a7f72e71f0ef38f968eeb2a9ca302b", + "keys": [ + "0xe316f0d9d2a3affa97de1d99bb2aac0538e2666d0d8545545ead241ef0ccab" + ], + "data": [ + "0x41fd22b238fa21cfcf5dd45a8548974d8263b3a531a60388411c5e230f97023", + "0x0", + "0x0", + "0xf48e3", + "0x0", + "0xde0b6b3a7640000", + "0x0", + "0x0", + "0x0", + "0x61bd9f6c583554838e7a70190fe269b2481c03fe829a1ca0afe1057eb5179da" + ] + }, + { + "from_address": "0x61bd9f6c583554838e7a70190fe269b2481c03fe829a1ca0afe1057eb5179da", + "keys": [ + "0x1dcde06aabdbca2f80aa51392b345d7549d7757aa855f7e37f5d335ac8243b1", + "0x5844352bfd8069fbd553f4f2481aea319108f7549ad03943607962d774f8475" + ], + "data": [ + "0x2", + "0x1", + "0x1", + "0x7", + "0x3", + "0x179233da12ed3", + "0x0", + "0xf48e3", + "0x0", + "0xde0b6b3a7640000", + "0x0" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x61bd9f6c583554838e7a70190fe269b2481c03fe829a1ca0afe1057eb5179da", + "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", + "0x1f91f88011196", + "0x0" + ] + } + ], + "execution_resources": { + "n_steps": 59685, + "builtin_instance_counter": { + "pedersen_builtin": 50, + "ec_op_builtin": 3, + "range_check_builtin": 2294 + }, + "n_memory_holes": 0 + }, + "actual_fee": "0x1f91f88011196" + }, + { + "execution_status": "SUCCEEDED", + "transaction_index": 4, + "transaction_hash": "0x43adb8c7f697873ed5296f882dd7893f7491cfbd7e53e475b43b600d110b3f1", + "l2_to_l1_messages": [], + "events": [ + { + "from_address": "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "keys": [ + "0x134692b230b9e1ffa39098904722134159652b09c5bc41d88d6698779d228ff" + ], + "data": [ + "0x40e6c6ebaf8c32854243f0b75a84a4af7ec2534eadb660e82b03a6742f8052f", + "0x4270219d365d6b017231b52e92b3fb5d7c8378b05e9abc97724537a80e93b0f", + "0x738999e", + "0x0" + ] + }, + { + "from_address": "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x40e6c6ebaf8c32854243f0b75a84a4af7ec2534eadb660e82b03a6742f8052f", + "0x4270219d365d6b017231b52e92b3fb5d7c8378b05e9abc97724537a80e93b0f", + "0x738999e", + "0x0" + ] + }, + { + "from_address": "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "keys": [ + "0x134692b230b9e1ffa39098904722134159652b09c5bc41d88d6698779d228ff" + ], + "data": [ + "0x4270219d365d6b017231b52e92b3fb5d7c8378b05e9abc97724537a80e93b0f", + "0x28c858a586fa12123a1ccb337a0a3b369281f91ea00544d0c086524b759f627", + "0x738999e", + "0x0" + ] + }, + { + "from_address": "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x4270219d365d6b017231b52e92b3fb5d7c8378b05e9abc97724537a80e93b0f", + "0x30615bec9c1506bfac97d9dbd3c546307987d467a7f95d5533c2e861eb81f3f", + "0x738999e", + "0x0" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x30615bec9c1506bfac97d9dbd3c546307987d467a7f95d5533c2e861eb81f3f", + "0x4270219d365d6b017231b52e92b3fb5d7c8378b05e9abc97724537a80e93b0f", + "0xb22f679fe50386", + "0x0" + ] + }, + { + "from_address": "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x30615bec9c1506bfac97d9dbd3c546307987d467a7f95d5533c2e861eb81f3f", + "0xc087ff1f956081ebeed0085a169b8b356cbb7990b64680a44f930ec401cbcd", + "0x2c5dc", + "0x0" + ] + }, + { + "from_address": "0x30615bec9c1506bfac97d9dbd3c546307987d467a7f95d5533c2e861eb81f3f", + "keys": [ + "0x2733cef0ada90bcb6631ae9e3ae97bf6ba87bb9d6af562661297621afe8e6d7" + ], + "data": [ + "0x28c858a586fa12123a1ccb337a0a3b369281f91ea00544d0c086524b759f627", + "0x0", + "0x0", + "0x2c5dc", + "0x0" + ] + }, + { + "from_address": "0x30615bec9c1506bfac97d9dbd3c546307987d467a7f95d5533c2e861eb81f3f", + "keys": [ + "0xe14a408baf7f453312eec68e9b7d728ec5337fbdf671f917ee8c80f3255232" + ], + "data": [ + "0x452a93d30f9ad615f", + "0x0", + "0x2ccf27d9ed", + "0x0" + ] + }, + { + "from_address": "0x30615bec9c1506bfac97d9dbd3c546307987d467a7f95d5533c2e861eb81f3f", + "keys": [ + "0xe316f0d9d2a3affa97de1d99bb2aac0538e2666d0d8545545ead241ef0ccab" + ], + "data": [ + "0x28c858a586fa12123a1ccb337a0a3b369281f91ea00544d0c086524b759f627", + "0x0", + "0x0", + "0x738999e", + "0x0", + "0xb22f679fe50386", + "0x0", + "0x0", + "0x0", + "0x4270219d365d6b017231b52e92b3fb5d7c8378b05e9abc97724537a80e93b0f" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x4270219d365d6b017231b52e92b3fb5d7c8378b05e9abc97724537a80e93b0f", + "0x360fb3a51bd291e5db0892b6249918a5689bc61760adcb350fe39cd725e1d22", + "0x91f823bcbd3", + "0x0" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x4270219d365d6b017231b52e92b3fb5d7c8378b05e9abc97724537a80e93b0f", + "0x40e6c6ebaf8c32854243f0b75a84a4af7ec2534eadb660e82b03a6742f8052f", + "0xb226481da937b3", + "0x0" + ] + }, + { + "from_address": "0x4270219d365d6b017231b52e92b3fb5d7c8378b05e9abc97724537a80e93b0f", + "keys": [ + "0xe316f0d9d2a3affa97de1d99bb2aac0538e2666d0d8545545ead241ef0ccab" + ], + "data": [ + "0x40e6c6ebaf8c32854243f0b75a84a4af7ec2534eadb660e82b03a6742f8052f", + "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "0x738999e", + "0x0", + "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "0xb226481da937b3", + "0x0", + "0x40e6c6ebaf8c32854243f0b75a84a4af7ec2534eadb660e82b03a6742f8052f" + ] + }, + { + "from_address": "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x40e6c6ebaf8c32854243f0b75a84a4af7ec2534eadb660e82b03a6742f8052f", + "0x1d8b73b49d8cb653570929260e8e01033278d6840f706faa421f08b992f8083", + "0x2c6ed", + "0x0" + ] + }, + { + "from_address": "0x40e6c6ebaf8c32854243f0b75a84a4af7ec2534eadb660e82b03a6742f8052f", + "keys": [ + "0x1dcde06aabdbca2f80aa51392b345d7549d7757aa855f7e37f5d335ac8243b1", + "0x43adb8c7f697873ed5296f882dd7893f7491cfbd7e53e475b43b600d110b3f1" + ], + "data": [ + "0x3", + "0x1", + "0x1", + "0x1", + "0x1", + "0x1", + "0x1" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x40e6c6ebaf8c32854243f0b75a84a4af7ec2534eadb660e82b03a6742f8052f", + "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", + "0x1987f6bff4590", + "0x0" + ] + } + ], + "execution_resources": { + "n_steps": 69501, + "builtin_instance_counter": { + "range_check_builtin": 2070, + "pedersen_builtin": 94, + "ec_op_builtin": 6 + }, + "n_memory_holes": 0 + }, + "actual_fee": "0x1987f6bff4590" + }, + { + "execution_status": "SUCCEEDED", + "transaction_index": 5, + "transaction_hash": "0x212f09189268ab735e69848003cea41eb1a467e38310b50ec62434875bfcfb6", + "l2_to_l1_messages": [], + "events": [ + { + "from_address": "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x194308d6226b6bebc3c8e06a202664c7e5a00cbc8b232860965909081c7081b", + "0x4b3802058cdd4fc4e352e866e2eef5abde7d62e78116ac68b419654cbebc021", + "0x6b8f467", + "0x0" + ] + }, + { + "from_address": "0x5dd3d2f4429af886cd1a3b08289dbcea99a294197e9eb43b0e0325b4b", + "keys": [ + "0x157717768aca88da4ac4279765f09f4d0151823d573537fbbeb950cdbd9a870" + ], + "data": [ + "0x4b3802058cdd4fc4e352e866e2eef5abde7d62e78116ac68b419654cbebc021", + "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "0x20c49ba5e353f80000000000000000", + "0x3e8", + "0x0", + "0x6b8f467", + "0x0", + "0x1", + "0x3646c79cdb5c46e1157430ba8d86b", + "0x0", + "0x0", + "0xa52e9c5e18ec1d", + "0x1", + "0x6b8f467", + "0x0", + "0x33a1b4b4de55cc4e4b7d7f2fbd11c", + "0x0", + "0x12eb2bb", + "0x1", + "0x4acaab642fc318c" + ] + }, + { + "from_address": "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x4b3802058cdd4fc4e352e866e2eef5abde7d62e78116ac68b419654cbebc021", + "0x5dd3d2f4429af886cd1a3b08289dbcea99a294197e9eb43b0e0325b4b", + "0x6b8f467", + "0x0" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x5dd3d2f4429af886cd1a3b08289dbcea99a294197e9eb43b0e0325b4b", + "0x4b3802058cdd4fc4e352e866e2eef5abde7d62e78116ac68b419654cbebc021", + "0xa52e9c5e18ec1d", + "0x0" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x4b3802058cdd4fc4e352e866e2eef5abde7d62e78116ac68b419654cbebc021", + "0x194308d6226b6bebc3c8e06a202664c7e5a00cbc8b232860965909081c7081b", + "0xa52e9c5e18ec1d", + "0x0" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x194308d6226b6bebc3c8e06a202664c7e5a00cbc8b232860965909081c7081b", + "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", + "0x11addd6b654ca", + "0x0" + ] + } + ], + "execution_resources": { + "n_steps": 57847, + "builtin_instance_counter": { + "bitwise_builtin": 28, + "ecdsa_builtin": 1, + "pedersen_builtin": 64, + "range_check_builtin": 2524 + }, + "n_memory_holes": 0 + }, + "actual_fee": "0x11addd6b654ca" + }, + { + "execution_status": "SUCCEEDED", + "transaction_index": 6, + "transaction_hash": "0x188d33a5a73fd4bbd29ec0ef19ee9c0aebc798c4546cf0c07bd40b7f72ad3a7", + "l2_to_l1_messages": [], + "events": [ + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x7b2dff6a66eb558df1caf358c7bdb11197375b0e7613c1d7a829d218adfed49", + "0x2e0af29598b407c8716b17f6d2795eca1b471413fa03fb145a5e33722184067", + "0x4f0c10219d7f", + "0x0" + ] + }, + { + "from_address": "0x124aeb495b947201f5fac96fd1138e326ad86195b98df6dec9009158a533b49", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x7b2dff6a66eb558df1caf358c7bdb11197375b0e7613c1d7a829d218adfed49", + "0x2e0af29598b407c8716b17f6d2795eca1b471413fa03fb145a5e33722184067", + "0x3bdf233c08a0f45ac", + "0x0" + ] + }, + { + "from_address": "0x7b696af58c967c1b14c9dde0ace001720635a660a8e90c565ea459345318b30", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x0", + "0x7b2dff6a66eb558df1caf358c7bdb11197375b0e7613c1d7a829d218adfed49", + "0x4cb0e", + "0x0" + ] + }, + { + "from_address": "0x2e0af29598b407c8716b17f6d2795eca1b471413fa03fb145a5e33722184067", + "keys": [ + "0x2a9157ea1542bfe11220258bf15d8aa02d791e7f94426446ec85b94159929f" + ], + "data": [ + "0x4cb0e", + "0x124aeb495b947201f5fac96fd1138e326ad86195b98df6dec9009158a533b49", + "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "0x28f5c28f5c28f5c28f5c28f5c28f5c2", + "0x4d5a", + "0x0", + "0x836fee", + "0x1", + "0x6e4952", + "0x1", + "0x49b013751b23a41aafe353c89e77d29f92fa9973b9cc643d27ce14aad02a666" + ] + }, + { + "from_address": "0x5dd3d2f4429af886cd1a3b08289dbcea99a294197e9eb43b0e0325b4b", + "keys": [ + "0x3a7adca3546c213ce791fabf3b04090c163e419c808c9830fb343a4a395946e" + ], + "data": [ + "0x2e0af29598b407c8716b17f6d2795eca1b471413fa03fb145a5e33722184067", + "0x124aeb495b947201f5fac96fd1138e326ad86195b98df6dec9009158a533b49", + "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "0x28f5c28f5c28f5c28f5c28f5c28f5c2", + "0x4d5a", + "0x0", + "0x4cb0e", + "0x836fee", + "0x1", + "0x6e4952", + "0x1", + "0x19ff290e91af1e56", + "0x0", + "0x3bdf233be04e1b4af", + "0x0", + "0x4f0c10219d7f", + "0x0" + ] + }, + { + "from_address": "0x124aeb495b947201f5fac96fd1138e326ad86195b98df6dec9009158a533b49", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x2e0af29598b407c8716b17f6d2795eca1b471413fa03fb145a5e33722184067", + "0x5dd3d2f4429af886cd1a3b08289dbcea99a294197e9eb43b0e0325b4b", + "0x3bdf233be04e1b4af", + "0x0" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x2e0af29598b407c8716b17f6d2795eca1b471413fa03fb145a5e33722184067", + "0x5dd3d2f4429af886cd1a3b08289dbcea99a294197e9eb43b0e0325b4b", + "0x4f0c10219d7f", + "0x0" + ] + }, + { + "from_address": "0x2e0af29598b407c8716b17f6d2795eca1b471413fa03fb145a5e33722184067", + "keys": [ + "0x9149d2123147c5f43d258257fef0b7b969db78269369ebcf5ebb9eef8592f2" + ], + "data": [ + "0x4cb0e", + "0x124aeb495b947201f5fac96fd1138e326ad86195b98df6dec9009158a533b49", + "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "0x28f5c28f5c28f5c28f5c28f5c28f5c2", + "0x4d5a", + "0x0", + "0x836fee", + "0x1", + "0x6e4952", + "0x1", + "0x19ff290e91af1e56", + "0x3bdf233be04e1b4af", + "0x0", + "0x4f0c10219d7f", + "0x0" + ] + }, + { + "from_address": "0x124aeb495b947201f5fac96fd1138e326ad86195b98df6dec9009158a533b49", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x2e0af29598b407c8716b17f6d2795eca1b471413fa03fb145a5e33722184067", + "0x7b2dff6a66eb558df1caf358c7bdb11197375b0e7613c1d7a829d218adfed49", + "0x2852d90fd", + "0x0" + ] + }, + { + "from_address": "0x7b2dff6a66eb558df1caf358c7bdb11197375b0e7613c1d7a829d218adfed49", + "keys": [ + "0x5ad857f66a5b55f1301ff1ed7e098ac6d4433148f0b72ebc4a2945ab85ad53" + ], + "data": [ + "0x188d33a5a73fd4bbd29ec0ef19ee9c0aebc798c4546cf0c07bd40b7f72ad3a7", + "0x8", + "0x1", + "0x1", + "0x4cb0e", + "0x19ff290e91af1e56", + "0x0", + "0x0", + "0x2852d90fd", + "0x0" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x7b2dff6a66eb558df1caf358c7bdb11197375b0e7613c1d7a829d218adfed49", + "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", + "0x2157bfe964696", + "0x0" + ] + } + ], + "execution_resources": { + "n_steps": 78030, + "builtin_instance_counter": { + "ecdsa_builtin": 1, + "pedersen_builtin": 162, + "bitwise_builtin": 108, + "range_check_builtin": 3399 + }, + "n_memory_holes": 0 + }, + "actual_fee": "0x2157bfe964696" + }, + { + "execution_status": "SUCCEEDED", + "transaction_index": 7, + "transaction_hash": "0x68178b57185e393fcc358a7bbad3260c70a6ab06b8f0194c0a7c9ac4b19bc", + "l2_to_l1_messages": [], + "events": [ + { + "from_address": "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "keys": [ + "0x134692b230b9e1ffa39098904722134159652b09c5bc41d88d6698779d228ff" + ], + "data": [ + "0x49ef4f6dbb5dd9941089439534c8575ce43534598f10806a1f27aabe1f36036", + "0x41fd22b238fa21cfcf5dd45a8548974d8263b3a531a60388411c5e230f97023", + "0x92dda80", + "0x0" + ] + }, + { + "from_address": "0xda114221cb83fa859dbdb4c44beeaa0bb37c7537ad5ae66fe5e0efd20e6eb3", + "keys": [ + "0x134692b230b9e1ffa39098904722134159652b09c5bc41d88d6698779d228ff" + ], + "data": [ + "0x49ef4f6dbb5dd9941089439534c8575ce43534598f10806a1f27aabe1f36036", + "0x41fd22b238fa21cfcf5dd45a8548974d8263b3a531a60388411c5e230f97023", + "0x85c0abbf2336fcafe", + "0x0" + ] + }, + { + "from_address": "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x49ef4f6dbb5dd9941089439534c8575ce43534598f10806a1f27aabe1f36036", + "0xcfd39f5244f7b617418c018204a8a9f9a7f72e71f0ef38f968eeb2a9ca302b", + "0x92dda80", + "0x0" + ] + }, + { + "from_address": "0xda114221cb83fa859dbdb4c44beeaa0bb37c7537ad5ae66fe5e0efd20e6eb3", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x49ef4f6dbb5dd9941089439534c8575ce43534598f10806a1f27aabe1f36036", + "0xcfd39f5244f7b617418c018204a8a9f9a7f72e71f0ef38f968eeb2a9ca302b", + "0x85bf424c5b7c2a0d5", + "0x0" + ] + }, + { + "from_address": "0xcfd39f5244f7b617418c018204a8a9f9a7f72e71f0ef38f968eeb2a9ca302b", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x0", + "0x49ef4f6dbb5dd9941089439534c8575ce43534598f10806a1f27aabe1f36036", + "0x745d84045a20", + "0x0" + ] + }, + { + "from_address": "0xcfd39f5244f7b617418c018204a8a9f9a7f72e71f0ef38f968eeb2a9ca302b", + "keys": [ + "0xe14a408baf7f453312eec68e9b7d728ec5337fbdf671f917ee8c80f3255232" + ], + "data": [ + "0x149ac88883608f78508c", + "0x0", + "0x16a02aa306", + "0x0" + ] + }, + { + "from_address": "0xcfd39f5244f7b617418c018204a8a9f9a7f72e71f0ef38f968eeb2a9ca302b", + "keys": [ + "0x34e55c1cd55f1338241b50d352f0e91c7e4ffad0e4271d64eb347589ebdfd16" + ], + "data": [ + "0x41fd22b238fa21cfcf5dd45a8548974d8263b3a531a60388411c5e230f97023", + "0x85bf424c5b7c2a0d5", + "0x0", + "0x92dda80", + "0x0" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x49ef4f6dbb5dd9941089439534c8575ce43534598f10806a1f27aabe1f36036", + "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", + "0x1604240da4f60", + "0x0" + ] + } + ], + "execution_resources": { + "n_steps": 35112, + "builtin_instance_counter": { + "range_check_builtin": 988, + "pedersen_builtin": 49, + "ecdsa_builtin": 1 + }, + "n_memory_holes": 0 + }, + "actual_fee": "0x1604240da4f60" + }, + { + "execution_status": "SUCCEEDED", + "transaction_index": 8, + "transaction_hash": "0x46047b699c680fa12e329b8c20efb90794b57552fe2c4c279ea4f8e67f1b1bf", + "l2_to_l1_messages": [], + "events": [ + { + "from_address": "0x1114c7103e12c2b2ecbd3a2472ba9c48ddcbf702b1c242dd570057e26212111", + "keys": [ + "0x243e1de00e8a6bc1dfa3e950e6ade24c52e4a25de4dee7fb5affe918ad1e744" + ], + "data": [ + "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "0x68f5c6a61780768455de69077e07e89787839bf8166decfbf92b645209c0fb8", + "0x64", + "0x2", + "0xfff107e2403123c7df78d91728a7ee5cfd557aec0fa2d2bdc5891c286bbfff", + "0xd8920", + "0xd8aac", + "0x746242841", + "0x1233afaa", + "0x0", + "0x127c1860", + "0x0" + ] + }, + { + "from_address": "0xfff107e2403123c7df78d91728a7ee5cfd557aec0fa2d2bdc5891c286bbfff", + "keys": [ + "0x1e4edcb5dad84e4a0b18ce2522746c3c57eb5b4831897b04d4c2f38d765e92e" + ], + "data": [ + "0x108a0", + "0x0", + "0x746242841", + "0x1233afaa", + "0x0", + "0x127c1860", + "0x0" + ] + }, + { + "from_address": "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x1114c7103e12c2b2ecbd3a2472ba9c48ddcbf702b1c242dd570057e26212111", + "0xbcd77de7bd0755830ba2eb9fcadeb715acb0a2bd05d881e22b59d1c5fe6296", + "0x1234ff57", + "0x0" + ] + }, + { + "from_address": "0x68f5c6a61780768455de69077e07e89787839bf8166decfbf92b645209c0fb8", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x1114c7103e12c2b2ecbd3a2472ba9c48ddcbf702b1c242dd570057e26212111", + "0xbcd77de7bd0755830ba2eb9fcadeb715acb0a2bd05d881e22b59d1c5fe6296", + "0x127d6999", + "0x0" + ] + }, + { + "from_address": "0x1114c7103e12c2b2ecbd3a2472ba9c48ddcbf702b1c242dd570057e26212111", + "keys": [ + "0x33b678d8846a558f55fc9257950e74c1aac32ee4c836c3a620d1066cc8d493f" + ], + "data": [ + "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "0x68f5c6a61780768455de69077e07e89787839bf8166decfbf92b645209c0fb8", + "0x64", + "0x2", + "0xfff107e2403123c7df78d91728a7ee5cfd557aec0fa2d2bdc5891c286bbfff", + "0xbcd77de7bd0755830ba2eb9fcadeb715acb0a2bd05d881e22b59d1c5fe6296", + "0xd8920", + "0xd8aac", + "0x1234ff57", + "0x127d6999" + ] + }, + { + "from_address": "0xfff107e2403123c7df78d91728a7ee5cfd557aec0fa2d2bdc5891c286bbfff", + "keys": [ + "0x33b678d8846a558f55fc9257950e74c1aac32ee4c836c3a620d1066cc8d493f" + ], + "data": [ + "0x108a0", + "0x0", + "0xbcd77de7bd0755830ba2eb9fcadeb715acb0a2bd05d881e22b59d1c5fe6296", + "0x1234ff57", + "0x0", + "0x127d6999", + "0x0" + ] + }, + { + "from_address": "0xfff107e2403123c7df78d91728a7ee5cfd557aec0fa2d2bdc5891c286bbfff", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0xbcd77de7bd0755830ba2eb9fcadeb715acb0a2bd05d881e22b59d1c5fe6296", + "0x0", + "0x108a0", + "0x0" + ] + }, + { + "from_address": "0xbcd77de7bd0755830ba2eb9fcadeb715acb0a2bd05d881e22b59d1c5fe6296", + "keys": [ + "0x1dcde06aabdbca2f80aa51392b345d7549d7757aa855f7e37f5d335ac8243b1", + "0x46047b699c680fa12e329b8c20efb90794b57552fe2c4c279ea4f8e67f1b1bf" + ], + "data": [ + "0x3", + "0x4", + "0x1233afaa", + "0x0", + "0x127c1860", + "0x0", + "0x2", + "0x1234ff57", + "0x127d6999", + "0x0" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0xbcd77de7bd0755830ba2eb9fcadeb715acb0a2bd05d881e22b59d1c5fe6296", + "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", + "0x32564a77bafa0", + "0x0" + ] + } + ], + "execution_resources": { + "n_steps": 81565, + "builtin_instance_counter": { + "poseidon_builtin": 10, + "ec_op_builtin": 3, + "pedersen_builtin": 152, + "range_check_builtin": 2114 + }, + "n_memory_holes": 0 + }, + "actual_fee": "0x32564a77bafa0" + }, + { + "revert_error": "Error in the called contract (0x05db738b049565773360d6b32ddc35966d97e95c455a73cb9c0694489b46cd39):\nError at pc=0:15647:\nGot an exception while executing a hint.\nCairo traceback (most recent call last):\nUnknown location (pc=0:233)\nUnknown location (pc=0:5191)\nUnknown location (pc=0:11307)\nUnknown location (pc=0:15665)\n\nError in the called contract (0x02d300192ea8d3291755bfd2bb2f9e16b38f48a20e4ce98e189d2daa7be435c2):\nError at pc=0:15:\nGot an exception while executing a hint.\nCairo traceback (most recent call last):\nUnknown location (pc=0:305)\nUnknown location (pc=0:291)\n\nError in the called contract (0x02d300192ea8d3291755bfd2bb2f9e16b38f48a20e4ce98e189d2daa7be435c2):\nError at pc=0:1625:\nError message: Router::swap_exact_tokens_for_tokens::insufficient output amount\n\nCairo traceback (most recent call last):\nUnknown location (pc=0:1710)\n", + "execution_status": "REVERTED", + "transaction_index": 9, + "transaction_hash": "0x585e713cb0ee4d5bc49885748d229598e560c37e7a1344a8c601d39574eb4dc", + "l2_to_l1_messages": [], + "events": [ + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x5db738b049565773360d6b32ddc35966d97e95c455a73cb9c0694489b46cd39", + "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", + "0x3497d3e6821a", + "0x0" + ] + } + ], + "execution_resources": { + "n_steps": 16291, + "builtin_instance_counter": { + "ec_op_builtin": 3, + "range_check_builtin": 276, + "pedersen_builtin": 20 + }, + "n_memory_holes": 0 + }, + "actual_fee": "0x3497d3e6821a" + }, + { + "execution_status": "SUCCEEDED", + "transaction_index": 10, + "transaction_hash": "0x83a9c6358c2d07c06326ea82343f4eb09c01fe862236de94dc4c3c4114213", + "l2_to_l1_messages": [], + "events": [ + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x259fec57cd26d27385cd8948d3693bbf26bed68ad54d7bdd1fdb901774ff0e8", + "0x680b183b16dcabacf877fed9ca86ca6d2885cd67a33de32842e99e827ef60c6", + "0x124531da5c7c00", + "0x0" + ] + }, + { + "from_address": "0x259fec57cd26d27385cd8948d3693bbf26bed68ad54d7bdd1fdb901774ff0e8", + "keys": [ + "0x37cbd872218c9d609c74c43b13a6263a647540f87fc85b47cb14cdeae0831eb" + ], + "data": [ + "0x680b183b16dcabacf877fed9ca86ca6d2885cd67a33de32842e99e827ef60c6", + "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "0x124531da5c7c00", + "0x0" + ] + }, + { + "from_address": "0x2b7fa2c45fd785cd6fa1a512b9bdca53ce151445a5ad06a1b54d0074b785d74", + "keys": [ + "0x1dcde06aabdbca2f80aa51392b345d7549d7757aa855f7e37f5d335ac8243b1", + "0x83a9c6358c2d07c06326ea82343f4eb09c01fe862236de94dc4c3c4114213" + ], + "data": [ + "0x1", + "0x0" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x2b7fa2c45fd785cd6fa1a512b9bdca53ce151445a5ad06a1b54d0074b785d74", + "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", + "0x64c65d5b436a", + "0x0" + ] + } + ], + "execution_resources": { + "n_steps": 10609, + "builtin_instance_counter": { + "range_check_builtin": 212, + "ec_op_builtin": 3, + "pedersen_builtin": 21 + }, + "n_memory_holes": 0 + }, + "actual_fee": "0x64c65d5b436a" + }, + { + "execution_status": "SUCCEEDED", + "transaction_index": 11, + "transaction_hash": "0x61fce9fbc665c106e0739e336288a5de92455e5d5720909968f8d19e07fc78b", + "l2_to_l1_messages": [], + "events": [ + { + "from_address": "0x7f7ceaf7fa527d0b73de384ea725cf3d788d9d9a0bfa7145fdc6851016fc60d", + "keys": [ + "0x2de0d6d008f8ba43790249f793fbe549a270804eb76da34e5c39d77089a4342", + "0x2115d327af6b3177b450d6f57a777e20fb1026766116b00294120b859af731d" + ], + "data": [ + "0x92cb42cdc37c75c5", + "0x0" + ] + }, + { + "from_address": "0x2115d327af6b3177b450d6f57a777e20fb1026766116b00294120b859af731d", + "keys": [ + "0x5ad857f66a5b55f1301ff1ed7e098ac6d4433148f0b72ebc4a2945ab85ad53" + ], + "data": [ + "0x61fce9fbc665c106e0739e336288a5de92455e5d5720909968f8d19e07fc78b", + "0x0" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x2115d327af6b3177b450d6f57a777e20fb1026766116b00294120b859af731d", + "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", + "0x63fd42126738", + "0x0" + ] + } + ], + "execution_resources": { + "n_steps": 6714, + "builtin_instance_counter": { + "pedersen_builtin": 16, + "ecdsa_builtin": 1, + "range_check_builtin": 147 + }, + "n_memory_holes": 0 + }, + "actual_fee": "0x63fd42126738" + }, + { + "execution_status": "SUCCEEDED", + "transaction_index": 12, + "transaction_hash": "0x43e4b48175376c8a3a1b4a9d248b5a509a17cb1e0b8eb5e62e1082f1db0a9b4", + "l2_to_l1_messages": [], + "events": [ + { + "from_address": "0x5801bdad32f343035fb242e98d1e9371ae85bc1543962fedea16c59b35bd19b", + "keys": [ + "0x134692b230b9e1ffa39098904722134159652b09c5bc41d88d6698779d228ff" + ], + "data": [ + "0x488329aba7b051ffc4e5ef1914813850c6ce56cd5382fb6e9eef2faa49ed3a9", + "0x41fd22b238fa21cfcf5dd45a8548974d8263b3a531a60388411c5e230f97023", + "0x587e15", + "0x0" + ] + }, + { + "from_address": "0x5801bdad32f343035fb242e98d1e9371ae85bc1543962fedea16c59b35bd19b", + "keys": [ + "0x134692b230b9e1ffa39098904722134159652b09c5bc41d88d6698779d228ff" + ], + "data": [ + "0x488329aba7b051ffc4e5ef1914813850c6ce56cd5382fb6e9eef2faa49ed3a9", + "0x41fd22b238fa21cfcf5dd45a8548974d8263b3a531a60388411c5e230f97023", + "0x0", + "0x0" + ] + }, + { + "from_address": "0x5801bdad32f343035fb242e98d1e9371ae85bc1543962fedea16c59b35bd19b", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x488329aba7b051ffc4e5ef1914813850c6ce56cd5382fb6e9eef2faa49ed3a9", + "0x5801bdad32f343035fb242e98d1e9371ae85bc1543962fedea16c59b35bd19b", + "0x587e15", + "0x0" + ] + }, + { + "from_address": "0x5801bdad32f343035fb242e98d1e9371ae85bc1543962fedea16c59b35bd19b", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x5801bdad32f343035fb242e98d1e9371ae85bc1543962fedea16c59b35bd19b", + "0x0", + "0x587e15", + "0x0" + ] + }, + { + "from_address": "0x53c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x5801bdad32f343035fb242e98d1e9371ae85bc1543962fedea16c59b35bd19b", + "0x488329aba7b051ffc4e5ef1914813850c6ce56cd5382fb6e9eef2faa49ed3a9", + "0x69badd", + "0x0" + ] + }, + { + "from_address": "0x68f5c6a61780768455de69077e07e89787839bf8166decfbf92b645209c0fb8", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x5801bdad32f343035fb242e98d1e9371ae85bc1543962fedea16c59b35bd19b", + "0x488329aba7b051ffc4e5ef1914813850c6ce56cd5382fb6e9eef2faa49ed3a9", + "0x69ac1a", + "0x0" + ] + }, + { + "from_address": "0x5801bdad32f343035fb242e98d1e9371ae85bc1543962fedea16c59b35bd19b", + "keys": [ + "0xe14a408baf7f453312eec68e9b7d728ec5337fbdf671f917ee8c80f3255232" + ], + "data": [ + "0x539c642443", + "0x0", + "0x5390b7ee4c", + "0x0" + ] + }, + { + "from_address": "0x5801bdad32f343035fb242e98d1e9371ae85bc1543962fedea16c59b35bd19b", + "keys": [ + "0x243e1de00e8a6bc1dfa3e950e6ade24c52e4a25de4dee7fb5affe918ad1e744" + ], + "data": [ + "0x41fd22b238fa21cfcf5dd45a8548974d8263b3a531a60388411c5e230f97023", + "0x69badd", + "0x0", + "0x69ac1a", + "0x0", + "0x488329aba7b051ffc4e5ef1914813850c6ce56cd5382fb6e9eef2faa49ed3a9" + ] + }, + { + "from_address": "0x488329aba7b051ffc4e5ef1914813850c6ce56cd5382fb6e9eef2faa49ed3a9", + "keys": [ + "0x1dcde06aabdbca2f80aa51392b345d7549d7757aa855f7e37f5d335ac8243b1", + "0x43e4b48175376c8a3a1b4a9d248b5a509a17cb1e0b8eb5e62e1082f1db0a9b4" + ], + "data": [ + "0x2", + "0x1", + "0x1", + "0x4", + "0x69badd", + "0x0", + "0x69ac1a", + "0x0" + ] + }, + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x488329aba7b051ffc4e5ef1914813850c6ce56cd5382fb6e9eef2faa49ed3a9", + "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", + "0x17989c28cc212", + "0x0" + ] + } + ], + "execution_resources": { + "n_steps": 38252, + "builtin_instance_counter": { + "pedersen_builtin": 43, + "ec_op_builtin": 3, + "range_check_builtin": 1094 + }, + "n_memory_holes": 0 + }, + "actual_fee": "0x17989c28cc212" + } + ], + "starknet_version": "0.12.3" +} \ No newline at end of file diff --git a/clients/feeder/testdata/mainnet/signature/latest.json b/clients/feeder/testdata/mainnet/signature/latest.json index e1e0379147..4c592492d6 100644 --- a/clients/feeder/testdata/mainnet/signature/latest.json +++ b/clients/feeder/testdata/mainnet/signature/latest.json @@ -1 +1,11 @@ -{"block_number": 237827, "signature": ["0x28fa75e535dad3aab8d562a8aad6cb9af969aadb4764e32e220ef19ef5ae259", "0x147ff919b0263ba9499b01a2cf229c2ee10e5b669af8f794da7379a577cdcbe"], "signature_input": {"block_hash": "0x58ca8f38428130f9c4a021c87a87e049ac4bbdaf5d61d5df132a895c6eed532", "state_diff_commitment": "0x4acd02a507e875d604b324f42b98e042b493074be5552ec08dbf81fd540338e"}} \ No newline at end of file +{ + "block_number": 237827, + "signature": [ + "0x28fa75e535dad3aab8d562a8aad6cb9af969aadb4764e32e220ef19ef5ae259", + "0x147ff919b0263ba9499b01a2cf229c2ee10e5b669af8f794da7379a577cdcbe" + ], + "signature_input": { + "block_hash": "0x58ca8f38428130f9c4a021c87a87e049ac4bbdaf5d61d5df132a895c6eed532", + "state_diff_commitment": "0x4acd02a507e875d604b324f42b98e042b493074be5552ec08dbf81fd540338e" + } +} \ No newline at end of file diff --git a/clients/feeder/testdata/mainnet/traces/0x7644422a0e4974388bade973906fb2e87b5ff573f7198a788a6f9cbe68421ee.json b/clients/feeder/testdata/mainnet/traces/0x7644422a0e4974388bade973906fb2e87b5ff573f7198a788a6f9cbe68421ee.json new file mode 100644 index 0000000000..1442f868e3 --- /dev/null +++ b/clients/feeder/testdata/mainnet/traces/0x7644422a0e4974388bade973906fb2e87b5ff573f7198a788a6f9cbe68421ee.json @@ -0,0 +1,719 @@ +{ + "traces": [ + { + "function_invocation": { + "caller_address": "0x0", + "contract_address": "0x43324c97e376d7d164abded1af1e73e9ce8214249f711edb7059c1ca34560e8", + "calldata": [ + "0x4d56b8ac0ed905936da10323328cba5def12957a2936920f043d8bf6a1e902d", + "0x11985e2c0ed78b56a7adfd3ce9c8ba9f590347a7ea639a99a3b9f90fc7959ca" + ], + "result": [], + "execution_resources": { + "n_steps": 178, + "builtin_instance_counter": { + "pedersen_builtin": 0, + "range_check_builtin": 0, + "bitwise_builtin": 0, + "output_builtin": 0, + "ecdsa_builtin": 0, + "ec_op_builtin": 0 + }, + "n_memory_holes": 0 + }, + "internal_calls": [ + { + "caller_address": "0x43324c97e376d7d164abded1af1e73e9ce8214249f711edb7059c1ca34560e8", + "contract_address": "0x4d56b8ac0ed905936da10323328cba5def12957a2936920f043d8bf6a1e902d", + "calldata": [ + "0x11985e2c0ed78b56a7adfd3ce9c8ba9f590347a7ea639a99a3b9f90fc7959ca", + "0x7e5" + ], + "result": [], + "execution_resources": { + "n_steps": 25, + "builtin_instance_counter": { + "pedersen_builtin": 0, + "range_check_builtin": 0, + "bitwise_builtin": 0, + "output_builtin": 0, + "ecdsa_builtin": 0, + "ec_op_builtin": 0 + }, + "n_memory_holes": 0 + }, + "internal_calls": [], + "events": [], + "messages": [] + }, + { + "caller_address": "0x43324c97e376d7d164abded1af1e73e9ce8214249f711edb7059c1ca34560e8", + "contract_address": "0x4d56b8ac0ed905936da10323328cba5def12957a2936920f043d8bf6a1e902d", + "calldata": [ + "0x11985e2c0ed78b56a7adfd3ce9c8ba9f590347a7ea639a99a3b9f90fc7959ca" + ], + "result": [ + "0x7e5" + ], + "execution_resources": { + "n_steps": 31, + "builtin_instance_counter": { + "pedersen_builtin": 0, + "range_check_builtin": 0, + "bitwise_builtin": 0, + "output_builtin": 0, + "ecdsa_builtin": 0, + "ec_op_builtin": 0 + }, + "n_memory_holes": 0 + }, + "internal_calls": [], + "events": [], + "messages": [] + } + ], + "events": [], + "messages": [] + }, + "signature": [], + "transaction_hash": "0x2f0ef8801195ac788b55c7a6c1a940e721d61b2a71e4bacebb953727b19bf33" + }, + { + "function_invocation": { + "caller_address": "0x0", + "contract_address": "0x7e1b2de3dc9e3cf83278452786c23b384cf77a66c3073f94ab451ed0029b5af", + "calldata": [ + "0x4d6f00affbeb6239fe0eb3eb4afefddbaea71533c152f44a1cdd113c1fdeade", + "0x3d7905601c217734671143d457f0db37f7f8883112abd34b92c4abfeafde0c3", + "0x2", + "0x27b0dbc1a546b72203a1c500afea150e2af6e1a35105060a6b74c32dc2eabf1", + "0x37e985ae697a85b502e62782a4136c425718f9a5ae5b5ad0e9414a20967d09" + ], + "result": [], + "execution_resources": { + "n_steps": 65, + "builtin_instance_counter": { + "pedersen_builtin": 0, + "range_check_builtin": 1, + "bitwise_builtin": 0, + "output_builtin": 0, + "ecdsa_builtin": 0, + "ec_op_builtin": 0 + }, + "n_memory_holes": 2 + }, + "internal_calls": [ + { + "caller_address": "0x7e1b2de3dc9e3cf83278452786c23b384cf77a66c3073f94ab451ed0029b5af", + "contract_address": "0x4d6f00affbeb6239fe0eb3eb4afefddbaea71533c152f44a1cdd113c1fdeade", + "calldata": [ + "0x27b0dbc1a546b72203a1c500afea150e2af6e1a35105060a6b74c32dc2eabf1", + "0x37e985ae697a85b502e62782a4136c425718f9a5ae5b5ad0e9414a20967d09" + ], + "result": [], + "execution_resources": { + "n_steps": 25, + "builtin_instance_counter": { + "pedersen_builtin": 0, + "range_check_builtin": 0, + "bitwise_builtin": 0, + "output_builtin": 0, + "ecdsa_builtin": 0, + "ec_op_builtin": 0 + }, + "n_memory_holes": 0 + }, + "internal_calls": [], + "events": [], + "messages": [] + } + ], + "events": [], + "messages": [] + }, + "signature": [], + "transaction_hash": "0x5063f1165e8b34639e4520f62bc242dcaedf0c2c6b5932f21979d06947c504b" + }, + { + "function_invocation": { + "caller_address": "0x0", + "contract_address": "0x3e875a858f9a0229e4a59cb72a4086d324b9b2148242694f2dd12d59d993b62", + "calldata": [ + "0x3ac793df0f0fe7f116b40206e627b6d01e61a5e43e85c639c54e309d871679c", + "0x30ab11f9b4134770f9de5eac76c97a1d8163a3d583200810bbff5c7ca8784dc" + ], + "result": [], + "execution_resources": { + "n_steps": 29, + "builtin_instance_counter": { + "pedersen_builtin": 0, + "range_check_builtin": 0, + "bitwise_builtin": 0, + "output_builtin": 0, + "ecdsa_builtin": 0, + "ec_op_builtin": 0 + }, + "n_memory_holes": 0 + }, + "internal_calls": [], + "events": [], + "messages": [] + }, + "signature": [], + "transaction_hash": "0x52cd7d14cd77925037f996ec5847382d33ac42f35b0dbc0f216b02f4c341160" + }, + { + "function_invocation": { + "caller_address": "0x0", + "contract_address": "0x6f3c934ba4ec49245cb9a42fc715e4d589aa502af69be13916127a538d525ce", + "calldata": [ + "0x4b788ad12d2e47b2be358d61cc38d813aa79165ddbc0b29d4878ef0fbc18c15", + "0x612af3160e28962cb3dd6146a9c2f7bd7adeea1fddd39f767d936c7b5bcca97" + ], + "result": [], + "execution_resources": { + "n_steps": 29, + "builtin_instance_counter": { + "pedersen_builtin": 0, + "range_check_builtin": 0, + "bitwise_builtin": 0, + "output_builtin": 0, + "ecdsa_builtin": 0, + "ec_op_builtin": 0 + }, + "n_memory_holes": 0 + }, + "internal_calls": [], + "events": [], + "messages": [] + }, + "signature": [], + "transaction_hash": "0x6c699184adc6cb676aef9f618af2f1e8e2a4279a73a2223432c519cb32e4763" + }, + { + "function_invocation": { + "caller_address": "0x0", + "contract_address": "0x6967f231f5bd99922269416c32ab2ff3c8ab8d9bb3bc968c27103493a2ab6b5", + "calldata": [ + "0x4ce0f675a4ea2d7f47eed46394344d62dcb324c2335b5fc9d00469fcb3236c9", + "0x765da40dac2b54effc373e0036cd9d71899073bf71d14edf37be81a255af1ec" + ], + "result": [], + "execution_resources": { + "n_steps": 25, + "builtin_instance_counter": { + "pedersen_builtin": 0, + "range_check_builtin": 0, + "bitwise_builtin": 0, + "output_builtin": 0, + "ecdsa_builtin": 0, + "ec_op_builtin": 0 + }, + "n_memory_holes": 0 + }, + "internal_calls": [], + "events": [], + "messages": [] + }, + "signature": [], + "transaction_hash": "0x2a5aa62284502c2ef98a8f6e0674bcb2ef5e03b380d6ddb267943cedf7f808b" + }, + { + "function_invocation": { + "caller_address": "0x0", + "contract_address": "0x6967f231f5bd99922269416c32ab2ff3c8ab8d9bb3bc968c27103493a2ab6b5", + "calldata": [ + "0x4ce0f675a4ea2d7f47eed46394344d62dcb324c2335b5fc9d00469fcb3236c9", + "0x101ca5b1609f3d177b68e0278cb94ba450ec4f10ec017f574768fd6dd604ee5" + ], + "result": [], + "execution_resources": { + "n_steps": 25, + "builtin_instance_counter": { + "pedersen_builtin": 0, + "range_check_builtin": 0, + "bitwise_builtin": 0, + "output_builtin": 0, + "ecdsa_builtin": 0, + "ec_op_builtin": 0 + }, + "n_memory_holes": 0 + }, + "internal_calls": [], + "events": [], + "messages": [] + }, + "signature": [], + "transaction_hash": "0x2355b457318c096be453914786f9a458109fb398fef9bf11d9e5e8d15cc4fa2" + }, + { + "function_invocation": { + "caller_address": "0x0", + "contract_address": "0x421203c58e1b4a6c3675be26cfaa18d2b6b42695ca206be1f08ce29f7f1bc7c", + "calldata": [ + "0x56e4fed965fccd7fb01fcadd827470338f35ced62275328929d0d725b5707ba", + "0x6f10279766fe96f8dec739b60d70868c1b7dc985037b3ae02905769276df4aa" + ], + "result": [], + "execution_resources": { + "n_steps": 178, + "builtin_instance_counter": { + "pedersen_builtin": 0, + "range_check_builtin": 0, + "bitwise_builtin": 0, + "output_builtin": 0, + "ecdsa_builtin": 0, + "ec_op_builtin": 0 + }, + "n_memory_holes": 0 + }, + "internal_calls": [ + { + "caller_address": "0x421203c58e1b4a6c3675be26cfaa18d2b6b42695ca206be1f08ce29f7f1bc7c", + "contract_address": "0x56e4fed965fccd7fb01fcadd827470338f35ced62275328929d0d725b5707ba", + "calldata": [ + "0x6f10279766fe96f8dec739b60d70868c1b7dc985037b3ae02905769276df4aa", + "0x7e5" + ], + "result": [], + "execution_resources": { + "n_steps": 25, + "builtin_instance_counter": { + "pedersen_builtin": 0, + "range_check_builtin": 0, + "bitwise_builtin": 0, + "output_builtin": 0, + "ecdsa_builtin": 0, + "ec_op_builtin": 0 + }, + "n_memory_holes": 0 + }, + "internal_calls": [], + "events": [], + "messages": [] + }, + { + "caller_address": "0x421203c58e1b4a6c3675be26cfaa18d2b6b42695ca206be1f08ce29f7f1bc7c", + "contract_address": "0x56e4fed965fccd7fb01fcadd827470338f35ced62275328929d0d725b5707ba", + "calldata": [ + "0x6f10279766fe96f8dec739b60d70868c1b7dc985037b3ae02905769276df4aa" + ], + "result": [ + "0x7e5" + ], + "execution_resources": { + "n_steps": 31, + "builtin_instance_counter": { + "pedersen_builtin": 0, + "range_check_builtin": 0, + "bitwise_builtin": 0, + "output_builtin": 0, + "ecdsa_builtin": 0, + "ec_op_builtin": 0 + }, + "n_memory_holes": 0 + }, + "internal_calls": [], + "events": [], + "messages": [] + } + ], + "events": [], + "messages": [] + }, + "signature": [], + "transaction_hash": "0x7a63f5518eaa5a9cff17d4725a4e852f10ac45e35130d010f46bead5a8879b0" + }, + { + "function_invocation": { + "caller_address": "0x0", + "contract_address": "0x7e1b2de3dc9e3cf83278452786c23b384cf77a66c3073f94ab451ed0029b5af", + "calldata": [ + "0x6f3c934ba4ec49245cb9a42fc715e4d589aa502af69be13916127a538d525ce", + "0x2" + ], + "result": [], + "execution_resources": { + "n_steps": 426, + "builtin_instance_counter": { + "pedersen_builtin": 0, + "range_check_builtin": 0, + "bitwise_builtin": 0, + "output_builtin": 0, + "ecdsa_builtin": 0, + "ec_op_builtin": 0 + }, + "n_memory_holes": 0 + }, + "internal_calls": [ + { + "caller_address": "0x7e1b2de3dc9e3cf83278452786c23b384cf77a66c3073f94ab451ed0029b5af", + "contract_address": "0x6f3c934ba4ec49245cb9a42fc715e4d589aa502af69be13916127a538d525ce", + "calldata": [ + "0x2" + ], + "result": [], + "execution_resources": { + "n_steps": 282, + "builtin_instance_counter": { + "pedersen_builtin": 0, + "range_check_builtin": 0, + "bitwise_builtin": 0, + "output_builtin": 0, + "ecdsa_builtin": 0, + "ec_op_builtin": 0 + }, + "n_memory_holes": 0 + }, + "internal_calls": [ + { + "caller_address": "0x6f3c934ba4ec49245cb9a42fc715e4d589aa502af69be13916127a538d525ce", + "contract_address": "0x7e1b2de3dc9e3cf83278452786c23b384cf77a66c3073f94ab451ed0029b5af", + "calldata": [ + "0x7e1b2de3dc9e3cf83278452786c23b384cf77a66c3073f94ab451ed0029b5af", + "0x2" + ], + "result": [], + "execution_resources": { + "n_steps": 207, + "builtin_instance_counter": { + "pedersen_builtin": 0, + "range_check_builtin": 0, + "bitwise_builtin": 0, + "output_builtin": 0, + "ecdsa_builtin": 0, + "ec_op_builtin": 0 + }, + "n_memory_holes": 0 + }, + "internal_calls": [ + { + "caller_address": "0x7e1b2de3dc9e3cf83278452786c23b384cf77a66c3073f94ab451ed0029b5af", + "contract_address": "0x7e1b2de3dc9e3cf83278452786c23b384cf77a66c3073f94ab451ed0029b5af", + "calldata": [ + "0x7e1b2de3dc9e3cf83278452786c23b384cf77a66c3073f94ab451ed0029b5af", + "0x1" + ], + "result": [], + "execution_resources": { + "n_steps": 113, + "builtin_instance_counter": { + "pedersen_builtin": 0, + "range_check_builtin": 0, + "bitwise_builtin": 0, + "output_builtin": 0, + "ecdsa_builtin": 0, + "ec_op_builtin": 0 + }, + "n_memory_holes": 0 + }, + "internal_calls": [ + { + "caller_address": "0x7e1b2de3dc9e3cf83278452786c23b384cf77a66c3073f94ab451ed0029b5af", + "contract_address": "0x7e1b2de3dc9e3cf83278452786c23b384cf77a66c3073f94ab451ed0029b5af", + "calldata": [ + "0x7e1b2de3dc9e3cf83278452786c23b384cf77a66c3073f94ab451ed0029b5af", + "0x0" + ], + "result": [], + "execution_resources": { + "n_steps": 19, + "builtin_instance_counter": { + "pedersen_builtin": 0, + "range_check_builtin": 0, + "bitwise_builtin": 0, + "output_builtin": 0, + "ecdsa_builtin": 0, + "ec_op_builtin": 0 + }, + "n_memory_holes": 0 + }, + "internal_calls": [], + "events": [], + "messages": [] + } + ], + "events": [], + "messages": [] + } + ], + "events": [], + "messages": [] + } + ], + "events": [], + "messages": [] + }, + { + "caller_address": "0x7e1b2de3dc9e3cf83278452786c23b384cf77a66c3073f94ab451ed0029b5af", + "contract_address": "0x6f3c934ba4ec49245cb9a42fc715e4d589aa502af69be13916127a538d525ce", + "calldata": [ + "0x5" + ], + "result": [ + "0x456" + ], + "execution_resources": { + "n_steps": 31, + "builtin_instance_counter": { + "pedersen_builtin": 0, + "range_check_builtin": 0, + "bitwise_builtin": 0, + "output_builtin": 0, + "ecdsa_builtin": 0, + "ec_op_builtin": 0 + }, + "n_memory_holes": 0 + }, + "internal_calls": [], + "events": [], + "messages": [] + } + ], + "events": [], + "messages": [ + { + "order": 0, + "to_address": "0x0000000000000000000000000000000000000001", + "payload": [ + "0xc", + "0x22" + ] + }, + { + "order": 1, + "to_address": "0x0000000000000000000000000000000000000002", + "payload": [ + "0xc", + "0x22" + ] + } + ] + }, + "signature": [], + "transaction_hash": "0x677e867e188e1145008c4d0985032edfa9594b402f61cf21574d7cc5d5e4983" + }, + { + "function_invocation": { + "caller_address": "0x0", + "contract_address": "0x4d56b8ac0ed905936da10323328cba5def12957a2936920f043d8bf6a1e902d", + "calldata": [ + "0x3e875a858f9a0229e4a59cb72a4086d324b9b2148242694f2dd12d59d993b62", + "0xaff99c560aec9dccf1098df7a129d757bd8c70e4ea0f0a4f023dbf7e38b369" + ], + "result": [], + "execution_resources": { + "n_steps": 178, + "builtin_instance_counter": { + "pedersen_builtin": 0, + "range_check_builtin": 0, + "bitwise_builtin": 0, + "output_builtin": 0, + "ecdsa_builtin": 0, + "ec_op_builtin": 0 + }, + "n_memory_holes": 0 + }, + "internal_calls": [ + { + "caller_address": "0x4d56b8ac0ed905936da10323328cba5def12957a2936920f043d8bf6a1e902d", + "contract_address": "0x3e875a858f9a0229e4a59cb72a4086d324b9b2148242694f2dd12d59d993b62", + "calldata": [ + "0xaff99c560aec9dccf1098df7a129d757bd8c70e4ea0f0a4f023dbf7e38b369", + "0x7e5" + ], + "result": [], + "execution_resources": { + "n_steps": 25, + "builtin_instance_counter": { + "pedersen_builtin": 0, + "range_check_builtin": 0, + "bitwise_builtin": 0, + "output_builtin": 0, + "ecdsa_builtin": 0, + "ec_op_builtin": 0 + }, + "n_memory_holes": 0 + }, + "internal_calls": [], + "events": [], + "messages": [] + }, + { + "caller_address": "0x4d56b8ac0ed905936da10323328cba5def12957a2936920f043d8bf6a1e902d", + "contract_address": "0x3e875a858f9a0229e4a59cb72a4086d324b9b2148242694f2dd12d59d993b62", + "calldata": [ + "0xaff99c560aec9dccf1098df7a129d757bd8c70e4ea0f0a4f023dbf7e38b369" + ], + "result": [ + "0x7e5" + ], + "execution_resources": { + "n_steps": 31, + "builtin_instance_counter": { + "pedersen_builtin": 0, + "range_check_builtin": 0, + "bitwise_builtin": 0, + "output_builtin": 0, + "ecdsa_builtin": 0, + "ec_op_builtin": 0 + }, + "n_memory_holes": 0 + }, + "internal_calls": [], + "events": [], + "messages": [] + } + ], + "events": [], + "messages": [] + }, + "signature": [], + "transaction_hash": "0x4d51e5559c9ffdbb9beda5fbe1590502f44069ef8119c1896ecf1fa43404e20" + }, + { + "function_invocation": { + "caller_address": "0x0", + "contract_address": "0x92188aae8567f8dd26e177e184af3db3c623ee9e87b138f907805499a1a2da", + "calldata": [ + "0x2f7d130f95aa3b5d2646d28aa5a125211e8c78d00fdbc228000afe4fa200bdf", + "0x13467763f1a10849bb154e8255b26d3d0495a0cd97bc56796deeaa003f0a7d3" + ], + "result": [], + "execution_resources": { + "n_steps": 29, + "builtin_instance_counter": { + "pedersen_builtin": 0, + "range_check_builtin": 0, + "bitwise_builtin": 0, + "output_builtin": 0, + "ecdsa_builtin": 0, + "ec_op_builtin": 0 + }, + "n_memory_holes": 0 + }, + "internal_calls": [], + "events": [], + "messages": [] + }, + "signature": [], + "transaction_hash": "0x94f1e1155ea27e66675e70db20144ee128e4af720c938f5310e2bb86588a16" + }, + { + "function_invocation": { + "caller_address": "0x0", + "contract_address": "0x764c36cfdc456e1f3565441938f958badcc0ce8f20b7ed5819af30ed18f245", + "calldata": [ + "0x3fc0d0b3f84158bc646a15a0732fdb247af9cd9d2d62fc3ed9ebefe90665296", + "0x6a1b961ac323871d803b7d34c30d89af4ad693beaa8705e34ce90b976a3cd47" + ], + "result": [], + "execution_resources": { + "n_steps": 29, + "builtin_instance_counter": { + "pedersen_builtin": 0, + "range_check_builtin": 0, + "bitwise_builtin": 0, + "output_builtin": 0, + "ecdsa_builtin": 0, + "ec_op_builtin": 0 + }, + "n_memory_holes": 0 + }, + "internal_calls": [], + "events": [], + "messages": [] + }, + "signature": [], + "transaction_hash": "0x111aa7b8ae18d9a356e2aa9921add612709d7b18666d446aa24777f449adeb8" + }, + { + "function_invocation": { + "caller_address": "0x0", + "contract_address": "0x16f4b142ae0c2bce2d65d0c26ff153a79bfb91d70e06ca3bc8f4d6ee86ef3d8", + "calldata": [ + "0x7fc82c1dd25ea5fa674264a709c02eb03764a0052a458c1c20760b5562adf95", + "0x71745d8bd7b183b8674042c4ac28e10423415039065f8a5bb57b2e0a6f0a85f" + ], + "result": [], + "execution_resources": { + "n_steps": 29, + "builtin_instance_counter": { + "pedersen_builtin": 0, + "range_check_builtin": 0, + "bitwise_builtin": 0, + "output_builtin": 0, + "ecdsa_builtin": 0, + "ec_op_builtin": 0 + }, + "n_memory_holes": 0 + }, + "internal_calls": [], + "events": [], + "messages": [] + }, + "signature": [], + "transaction_hash": "0x3d92a73c6bdc0421afa70c8be0d7ca4374d6d30731c5fe9aadfeff5715e98a9" + }, + { + "function_invocation": { + "caller_address": "0x0", + "contract_address": "0x43324c97e376d7d164abded1af1e73e9ce8214249f711edb7059c1ca34560e8", + "calldata": [ + "0x1b654cb59f978da2eee76635158e5ff1399bf607cb2d05e3e3b4e41d7660ca2", + "0x2", + "0x5f743efdb29609bfc2002041bdd5c72257c0c6b5c268fc929a3e516c171c731", + "0x635afb0ea6c4cdddf93f42287b45b67acee4f08c6f6c53589e004e118491546" + ], + "result": [], + "execution_resources": { + "n_steps": 165, + "builtin_instance_counter": { + "pedersen_builtin": 2, + "range_check_builtin": 7, + "bitwise_builtin": 0, + "output_builtin": 0, + "ecdsa_builtin": 0, + "ec_op_builtin": 0 + }, + "n_memory_holes": 22 + }, + "internal_calls": [], + "events": [], + "messages": [] + }, + "signature": [], + "transaction_hash": "0xf1d99fb97509e0dfc425ddc2a8c5398b74231658ca58b6f8da92f39cb739e" + }, + { + "function_invocation": { + "caller_address": "0x0", + "contract_address": "0x43324c97e376d7d164abded1af1e73e9ce8214249f711edb7059c1ca34560e8", + "calldata": [ + "0x1b654cb59f978da2eee76635158e5ff1399bf607cb2d05e3e3b4e41d7660ca2", + "0x2", + "0x5f743efdb29609bfc2002041bdd5c72257c0c6b5c268fc929a3e516c171c731", + "0x1572c162a88c9b439d31656255703170b49a0fb03f8c6ca137d9c6cd503f5f6" + ], + "result": [], + "execution_resources": { + "n_steps": 165, + "builtin_instance_counter": { + "pedersen_builtin": 2, + "range_check_builtin": 7, + "bitwise_builtin": 0, + "output_builtin": 0, + "ecdsa_builtin": 0, + "ec_op_builtin": 0 + }, + "n_memory_holes": 22 + }, + "internal_calls": [], + "events": [], + "messages": [] + }, + "signature": [], + "transaction_hash": "0x7000f131abb0b9addf716d7dc9887de9feb3794a479ba84bdc57e63f761b868" + } + ] +} \ No newline at end of file diff --git a/clients/feeder/testdata/sepolia/block/latest.json b/clients/feeder/testdata/sepolia/block/latest.json new file mode 100644 index 0000000000..4cea17cca9 --- /dev/null +++ b/clients/feeder/testdata/sepolia/block/latest.json @@ -0,0 +1,185 @@ +{ + "block_hash": "0x410dfca0f99545e62aef946e228329ce3a906f6785f5e6f97389f30ad1c1088", + "parent_block_hash": "0x61d60ea141cd3677a36da9ac7bdc5b4535b76bf9c5e6dd0bddfb04036b460c6", + "block_number": 4850, + "state_root": "0x42f9257e7075f9cffffcfbda7dd7b318ee3474436b6a7d17ad152c45e8738ce", + "transaction_commitment": "0x1e6208fc220cd433f7727c7ff896721af440c79d624c6bda05dd3c4ba5003dd", + "event_commitment": "0x611ee69f4b9128ec44c27e5ad4e73b2a3397f0843d4b95ff2512ad0fdf0f904", + "status": "ACCEPTED_ON_L2", + "l1_da_mode": "CALLDATA", + "l1_gas_price": { + "price_in_wei": "0x80197ea0", + "price_in_fri": "0x0" + }, + "l1_data_gas_price": { + "price_in_wei": "0x1", + "price_in_fri": "0x1" + }, + "transactions": [ + { + "transaction_hash": "0x236102aee88702cfa0546d84e54967e3de1ec6b784bc27364bbbdd25931140c", + "version": "0x1", + "max_fee": "0x2386f26fc10000", + "signature": [ + "0x152949b9bbf107f60a51d34964f267b7933fb5f268a6ca1abe3f60ef6eaf698", + "0x69b74bc7034deff5a2cb0d32000b27ee7f73b11d445a0456f7b4bdc8f41330b" + ], + "nonce": "0x3d2f", + "sender_address": "0x60664b576dae484dc3430ed3b1036e7879712e2c2c2728f568b8dbcbbc0f655", + "calldata": [ + "0x1", + "0x267311365224e8d4eb4dd580f1b737f990dfc81112ca71ecce147e774bcecb", + "0x1eafc2526500296b7208c5fe476e4a8cedb57382df56be48d9d7fafc8065450", + "0x0", + "0x4", + "0x4", + "0x8a989cc53de7f3d72f2e096add6dddfd", + "0x63f5cfb18594321c949f4ab35d263ebc", + "0x2787a1c26cac42cd5d6faaff0542ba8a", + "0x9c386b030a22722c5c4bcad8ea5eaf75" + ], + "type": "INVOKE_FUNCTION" + }, + { + "transaction_hash": "0x26049c7086a8a192805ab6940f1da0c002637650f60d841e4a8b8b03a01926d", + "version": "0x1", + "max_fee": "0x2386f26fc10000", + "signature": [ + "0x2722dd74cc6dc2b3cee59dbd1857408760d4f35a4b947632088b6c016c567d9", + "0x517a9537b98b5bb5a12e9d928dcd81db96fcb97cdd5cbc2520e8802487b231b" + ], + "nonce": "0x3d30", + "sender_address": "0x60664b576dae484dc3430ed3b1036e7879712e2c2c2728f568b8dbcbbc0f655", + "calldata": [ + "0x1", + "0x267311365224e8d4eb4dd580f1b737f990dfc81112ca71ecce147e774bcecb", + "0xb17d8a2731ba7ca1816631e6be14f0fc1b8390422d649fa27f0fbb0c91eea8", + "0x0", + "0x0", + "0x0" + ], + "type": "INVOKE_FUNCTION" + }, + { + "transaction_hash": "0xfae17ce4d5e33249daa6f7b3a486a476f009a71f2dac3adcd76d8a5222644a", + "version": "0x1", + "max_fee": "0x2386f26fc10000", + "signature": [ + "0x434d01dbe4f50a36e1dbc0edd2a58254ab6c410ae0f8ee8ad8f4299a23f4fe8", + "0x2d16b05c9d5c651d349b73a829b44797f33dedf4e927677e5683401ce36c578" + ], + "nonce": "0x3d31", + "sender_address": "0x60664b576dae484dc3430ed3b1036e7879712e2c2c2728f568b8dbcbbc0f655", + "calldata": [ + "0x2", + "0x61c2931e7212bcc3b2e6c16805f15ceecebaad19fb3521c6b0761d063e6a1cd", + "0xb17d8a2731ba7ca1816631e6be14f0fc1b8390422d649fa27f0fbb0c91eea8", + "0x0", + "0x0", + "0x267311365224e8d4eb4dd580f1b737f990dfc81112ca71ecce147e774bcecb", + "0x27a4a7332e590dd789019a6d125ff2aacd358e453090978cbf81f0d85e4c045", + "0x0", + "0x2", + "0x2", + "0x2148c63f05b21e4e7a9d841b52789eab90f74e3c33f495456b4559235a63036", + "0x22ddaba391c263f04bc9910b706ed5b9d6510174f1cfa87d903a097838fe24d" + ], + "type": "INVOKE_FUNCTION" + } + ], + "timestamp": 1702188621, + "sequencer_address": "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", + "transaction_receipts": [ + { + "execution_status": "SUCCEEDED", + "transaction_index": 0, + "transaction_hash": "0x236102aee88702cfa0546d84e54967e3de1ec6b784bc27364bbbdd25931140c", + "l2_to_l1_messages": [], + "events": [ + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x60664b576dae484dc3430ed3b1036e7879712e2c2c2728f568b8dbcbbc0f655", + "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", + "0x4e7f9f784c0", + "0x0" + ] + } + ], + "execution_resources": { + "n_steps": 6172, + "builtin_instance_counter": { + "pedersen_builtin": 16, + "range_check_builtin": 208, + "ecdsa_builtin": 1 + }, + "n_memory_holes": 0 + }, + "actual_fee": "0x4e7f9f784c0" + }, + { + "execution_status": "SUCCEEDED", + "transaction_index": 1, + "transaction_hash": "0x26049c7086a8a192805ab6940f1da0c002637650f60d841e4a8b8b03a01926d", + "l2_to_l1_messages": [], + "events": [ + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x60664b576dae484dc3430ed3b1036e7879712e2c2c2728f568b8dbcbbc0f655", + "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", + "0x4e178ac16a0", + "0x0" + ] + } + ], + "execution_resources": { + "n_steps": 4858, + "builtin_instance_counter": { + "range_check_builtin": 119, + "ecdsa_builtin": 1, + "pedersen_builtin": 16 + }, + "n_memory_holes": 0 + }, + "actual_fee": "0x4e178ac16a0" + }, + { + "execution_status": "SUCCEEDED", + "transaction_index": 2, + "transaction_hash": "0xfae17ce4d5e33249daa6f7b3a486a476f009a71f2dac3adcd76d8a5222644a", + "l2_to_l1_messages": [], + "events": [ + { + "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", + "keys": [ + "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" + ], + "data": [ + "0x60664b576dae484dc3430ed3b1036e7879712e2c2c2728f568b8dbcbbc0f655", + "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", + "0x9aeed5c6440", + "0x0" + ] + } + ], + "execution_resources": { + "n_steps": 5756, + "builtin_instance_counter": { + "range_check_builtin": 143, + "pedersen_builtin": 16, + "ecdsa_builtin": 1 + }, + "n_memory_holes": 0 + }, + "actual_fee": "0x9aeed5c6440" + } + ], + "starknet_version": "0.12.3" +} \ No newline at end of file diff --git a/clients/feeder/testdata/sepolia/signature/latest.json b/clients/feeder/testdata/sepolia/signature/latest.json new file mode 100644 index 0000000000..beb4a0c7f8 --- /dev/null +++ b/clients/feeder/testdata/sepolia/signature/latest.json @@ -0,0 +1,11 @@ +{ + "block_number": 4850, + "signature": [ + "0x223545b80beb2c0aedaa101ee76eee9a05097c6a9e28ebc20a7e7b37571ea7d", + "0x1f9d88f51c11629c04a6cb8e37d565dcd3b09f94be72fe16a308f3c5cb0ddd3" + ], + "signature_input": { + "block_hash": "0x58f7be37509f73465e29358edd181e4d796aa82cf7b076de3a9ebe8ecdb6785", + "state_diff_commitment": "0x443e6f5c5943fa3d21f9fd6fce0237bd96046760034670a981213bf8e669d72" + } +} \ No newline at end of file diff --git a/clients/feeder/testdata/sepolia/transaction/0x1412f2723569be7f627af887d663b83bfc92e3975bb94848182f755ce9960e8.json b/clients/feeder/testdata/sepolia/transaction/0x1412f2723569be7f627af887d663b83bfc92e3975bb94848182f755ce9960e8.json new file mode 100644 index 0000000000..3da21287fe --- /dev/null +++ b/clients/feeder/testdata/sepolia/transaction/0x1412f2723569be7f627af887d663b83bfc92e3975bb94848182f755ce9960e8.json @@ -0,0 +1,43 @@ +{ + "execution_status": "SUCCEEDED", + "finality_status": "ACCEPTED_ON_L2", + "status": "ACCEPTED_ON_L2", + "block_hash": "0x4cad6acc8746796abae96d3873a480ab67e46cd94f1525b9f8ff05a121bb5d7", + "block_number": 68343, + "transaction_index": 8, + "transaction": { + "transaction_hash": "0x1412f2723569be7f627af887d663b83bfc92e3975bb94848182f755ce9960e8", + "version": "0x3", + "signature": [ + "0x695491d839782689c46029f667f6635554118b01c6fb9bd4887d6b067c6ceeb", + "0x171b0545912429d68f227f0eb34479e5b9025e88dc7973810edfc71f6b5244a" + ], + "nonce": "0x1c", + "nonce_data_availability_mode": 0, + "fee_data_availability_mode": 0, + "resource_bounds": { + "L1_GAS": { + "max_amount": "0x178a", + "max_price_per_unit": "0x7cdbdfdca50" + }, + "L2_GAS": { + "max_amount": "0x0", + "max_price_per_unit": "0x0" + } + }, + "tip": "0x0", + "paymaster_data": [], + "sender_address": "0x1d3e45e14ad0e4457cace8aa2b1d988db56a91e25ce93f1e7d0e3d1d62e48ce", + "calldata": [ + "0x1", + "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", + "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", + "0x3", + "0x1c51ff9011ee93c3a65dd841dea95119ae0bbaa16839b03fab05b0a0214eba9", + "0x2386f26fc10000", + "0x0" + ], + "account_deployment_data": [], + "type": "INVOKE_FUNCTION" + } +} \ No newline at end of file diff --git a/clients/feeder/testdata/sepolia/transaction/0x1481f9561ab004a5b15e5a4b2691ddfc89d1a2a10bdb25c57350fa68c936bd2.json b/clients/feeder/testdata/sepolia/transaction/0x1481f9561ab004a5b15e5a4b2691ddfc89d1a2a10bdb25c57350fa68c936bd2.json new file mode 100644 index 0000000000..0c861b8f92 --- /dev/null +++ b/clients/feeder/testdata/sepolia/transaction/0x1481f9561ab004a5b15e5a4b2691ddfc89d1a2a10bdb25c57350fa68c936bd2.json @@ -0,0 +1,31 @@ +{ + "execution_status": "SUCCEEDED", + "finality_status": "ACCEPTED_ON_L1", + "status": "ACCEPTED_ON_L1", + "block_hash": "0x203a4226d667c3755e71f2d78d9ab0860d4c6b9c2df4f633bc80ad2d69f81aa", + "block_number": 57949, + "transaction_index": 29, + "transaction": { + "transaction_hash": "0x1481f9561ab004a5b15e5a4b2691ddfc89d1a2a10bdb25c57350fa68c936bd2", + "version": "0x0", + "max_fee": "0x2386f26fc10000", + "signature": [ + "0x668c99e35f5e4bf8709d657c8f0f341770b05427594a9c6e6e564da301303dc", + "0x668c99e35f5e4bf8709d657c8f0f341770b05427594a9c6e6e564da301303dc" + ], + "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", + "calldata": [ + "0x2", + "0x30e93180b2e00b12c8c9d26d91ddef36fa36d3d4b346747ee26bff3562474fe", + "0x27f806b163e00b12dc7f2e54f3865ceba98cadef57cc65c6e10f64195ccd015", + "0x1", + "0x0", + "0x30e93180b2e00b12c8c9d26d91ddef36fa36d3d4b346747ee26bff3562474fe", + "0x27f806b163e00b12dc7f2e54f3865ceba98cadef57cc65c6e10f64195ccd015", + "0x1", + "0x0" + ], + "contract_address": "0x4a5889207f54a646bbc170c177549357105aa79dba9493ec34eea9f73ebc278", + "type": "INVOKE_FUNCTION" + } +} \ No newline at end of file diff --git a/clients/feeder/testdata/sepolia/transaction/0x16d437c46683719659cfdb9934a7e394b9e4a8da4b9ed82e928afbd6434017e.json b/clients/feeder/testdata/sepolia/transaction/0x16d437c46683719659cfdb9934a7e394b9e4a8da4b9ed82e928afbd6434017e.json new file mode 100644 index 0000000000..cc0c9e7f17 --- /dev/null +++ b/clients/feeder/testdata/sepolia/transaction/0x16d437c46683719659cfdb9934a7e394b9e4a8da4b9ed82e928afbd6434017e.json @@ -0,0 +1,36 @@ +{ + "execution_status": "SUCCEEDED", + "finality_status": "ACCEPTED_ON_L1", + "status": "ACCEPTED_ON_L1", + "block_hash": "0x3945358af9bb243743ff1185171160f96442dabbc9a40c73a1f5e5facd8cc04", + "block_number": 62305, + "transaction_index": 7, + "transaction": { + "transaction_hash": "0x16d437c46683719659cfdb9934a7e394b9e4a8da4b9ed82e928afbd6434017e", + "version": "0x3", + "signature": [ + "0x3d2904a3aecffd4564ceea5b14705014f3ace1dbe482cf86d14288318dead24", + "0x485ab8b4b007401030824214c92f45814ffc9c14c3c08718e2f46429dc6ae2a" + ], + "nonce": "0x14", + "nonce_data_availability_mode": 0, + "fee_data_availability_mode": 0, + "resource_bounds": { + "L1_GAS": { + "max_amount": "0x1723", + "max_price_per_unit": "0x17fa7f1d5650" + }, + "L2_GAS": { + "max_amount": "0x0", + "max_price_per_unit": "0x0" + } + }, + "tip": "0x0", + "paymaster_data": [], + "sender_address": "0x67329667da0cc3e8e89289af4861d2cc84e44c218b04f2515f49b4a7270f285", + "class_hash": "0x186f1ec45ad75cae3ba30c3ada2ef46941a821c9ad7629988641966978025ad", + "compiled_class_hash": "0x5853ce65472c3763373d8121d71c9c5e3ca15dd896bd1144d24567aa8cb8b95", + "account_deployment_data": [], + "type": "DECLARE" + } +} \ No newline at end of file diff --git a/clients/feeder/testdata/sepolia/transaction/0x1e36b82b3f24251e9ed8e693d5830c64790238a22ec7e46655083231d222df.json b/clients/feeder/testdata/sepolia/transaction/0x1e36b82b3f24251e9ed8e693d5830c64790238a22ec7e46655083231d222df.json new file mode 100644 index 0000000000..4e9c58748e --- /dev/null +++ b/clients/feeder/testdata/sepolia/transaction/0x1e36b82b3f24251e9ed8e693d5830c64790238a22ec7e46655083231d222df.json @@ -0,0 +1,21 @@ +{ + "execution_status": "SUCCEEDED", + "finality_status": "ACCEPTED_ON_L1", + "status": "ACCEPTED_ON_L1", + "block_hash": "0xb3ca92727a5dd92157884c0f759e8dc36c6797a00a66a65307f58f7490f42b", + "block_number": 44266, + "transaction_index": 8, + "transaction": { + "transaction_hash": "0x1e36b82b3f24251e9ed8e693d5830c64790238a22ec7e46655083231d222df", + "version": "0x1", + "max_fee": "0x3c7ecb3ed13c00", + "signature": [ + "0x4bd022ad8f795f651008786e01f5d33e4c93c5453717e5885c36072ccb87ef5", + "0x6ebc4d2b5ac856fbfaa897435a747c00791f81be51220129e93ba486ba9947f" + ], + "nonce": "0x9", + "class_hash": "0x3ae2f9b340e70e3c6ae2101715ccde645f3766283bd3bfade4b5ce7cd7dc9c6", + "sender_address": "0x472aa8128e01eb0df145810c9511a92852d62a68ba8198ce5fa414e6337a365", + "type": "DECLARE" + } +} \ No newline at end of file diff --git a/clients/feeder/testdata/sepolia/transaction/0x2f1ebaeae4cecb1bda1f2e98ff75152c39afe2a71652f3f404e8f1fe21a7e93.json b/clients/feeder/testdata/sepolia/transaction/0x2f1ebaeae4cecb1bda1f2e98ff75152c39afe2a71652f3f404e8f1fe21a7e93.json new file mode 100644 index 0000000000..ebed1b555e --- /dev/null +++ b/clients/feeder/testdata/sepolia/transaction/0x2f1ebaeae4cecb1bda1f2e98ff75152c39afe2a71652f3f404e8f1fe21a7e93.json @@ -0,0 +1,26 @@ +{ + "execution_status": "SUCCEEDED", + "finality_status": "ACCEPTED_ON_L1", + "status": "ACCEPTED_ON_L1", + "block_hash": "0x402da3c006558fa241c0e1c4c5154f2b18eb1d52091afd3fdfc026ab64eb0b5", + "block_number": 60004, + "transaction_index": 3, + "transaction": { + "transaction_hash": "0x2f1ebaeae4cecb1bda1f2e98ff75152c39afe2a71652f3f404e8f1fe21a7e93", + "version": "0x1", + "max_fee": "0x2865a35b6642", + "signature": [ + "0x27451728425e8d2ad924cab10a8a5c052682549e5d660e9b9bde85c87a11d85", + "0x34ca83ac537208e87e9e02ae63c46a599d80ef3b080a88dbfe58abdd5039307" + ], + "nonce": "0x0", + "contract_address": "0x588c097b051bbba1f3a29318cf93e29474b05f880f601283d4c813d0057f8fe", + "contract_address_salt": "0x52a760d516f0b5aa0875d018c5331401e5101d97f6ec578071fb9e98df77b86", + "class_hash": "0x29927c8af6bccf3f6fda035981e765a7bdbf18a2dc0d630494f8758aa908e2b", + "constructor_calldata": [ + "0x52a760d516f0b5aa0875d018c5331401e5101d97f6ec578071fb9e98df77b86", + "0x0" + ], + "type": "DEPLOY_ACCOUNT" + } +} \ No newline at end of file diff --git a/clients/feeder/testdata/sepolia/transaction/0x327bc9c5d2db0759b775762de8345c390bf852d461f38bddc1dc078c2ec95da.json b/clients/feeder/testdata/sepolia/transaction/0x327bc9c5d2db0759b775762de8345c390bf852d461f38bddc1dc078c2ec95da.json new file mode 100644 index 0000000000..00293ac6b0 --- /dev/null +++ b/clients/feeder/testdata/sepolia/transaction/0x327bc9c5d2db0759b775762de8345c390bf852d461f38bddc1dc078c2ec95da.json @@ -0,0 +1,22 @@ +{ + "execution_status": "SUCCEEDED", + "finality_status": "ACCEPTED_ON_L1", + "status": "ACCEPTED_ON_L1", + "block_hash": "0x669e7bcb84c0a5a1c1633cd54d516e91a6ec87de11e4bc59dbbb4869adbb0e3", + "block_number": 60002, + "transaction_index": 33, + "transaction": { + "transaction_hash": "0x327bc9c5d2db0759b775762de8345c390bf852d461f38bddc1dc078c2ec95da", + "version": "0x2", + "max_fee": "0x1c47ac44660bc60", + "signature": [ + "0x34a33226068e03d016de3e687b712914316b4b59e95acc08a13c0ff3c2c5d5f", + "0x2d57fca03be8419d3c67071e62fd853643cc8bbf3fcf9247441cd1b729b46ac" + ], + "nonce": "0x10d", + "class_hash": "0x994c025e4d34d3629478e44035b87b3c2407e99ef12bde15a1f284fc13b77e", + "compiled_class_hash": "0x7291bcf3cf0aed566267c74c6bcf48d9701689c12ce0cfc5ecb5156cacf5dee", + "sender_address": "0xcee714eaf27390e630c62aa4b51319f9eda813d6ddd12da0ae8ce00453cb4b", + "type": "DECLARE" + } +} \ No newline at end of file diff --git a/clients/feeder/testdata/sepolia/transaction/0x6d3e06989ee2245139cd677f59b4da7f360a27b2b614a4eb088fdf5862d23ee.json b/clients/feeder/testdata/sepolia/transaction/0x6d3e06989ee2245139cd677f59b4da7f360a27b2b614a4eb088fdf5862d23ee.json new file mode 100644 index 0000000000..0e1358d64e --- /dev/null +++ b/clients/feeder/testdata/sepolia/transaction/0x6d3e06989ee2245139cd677f59b4da7f360a27b2b614a4eb088fdf5862d23ee.json @@ -0,0 +1,22 @@ +{ + "execution_status": "SUCCEEDED", + "finality_status": "ACCEPTED_ON_L1", + "status": "ACCEPTED_ON_L1", + "block_hash": "0x1a557205f5c5ac5e6ea9c70f6945e377a5fda7e007124e0538732134bcec534", + "block_number": 11434, + "transaction_index": 37, + "transaction": { + "transaction_hash": "0x6d3e06989ee2245139cd677f59b4da7f360a27b2b614a4eb088fdf5862d23ee", + "version": "0x0", + "contract_address": "0x7cc55b21de4b7d6d7389df3b27de950924ac976d263ac8d71022d0b18155fc", + "contract_address_salt": "0x614b9e0c3cb7a8f4ed73b673eba239c41a172859bf129c4b269c4b8057e21d8", + "class_hash": "0x3131fa018d520a037686ce3efddeab8f28895662f019ca3ca18a626650f7d1e", + "constructor_calldata": [ + "0x69577e6756a99b584b5d1ce8e60650ae33b6e2b13541783458268f07da6b38a", + "0x2dd76e7ad84dbed81c314ffe5e7a7cacfb8f4836f01af4e913f275f89a3de1a", + "0x1", + "0x614b9e0c3cb7a8f4ed73b673eba239c41a172859bf129c4b269c4b8057e21d8" + ], + "type": "DEPLOY" + } +} \ No newline at end of file diff --git a/clients/feeder/testdata/sepolia/transaction/0xacb2e8bdaeb179c9e3cdf5b21c7697ea7cda240a7f59f65fe243bcfd57d60a.json b/clients/feeder/testdata/sepolia/transaction/0xacb2e8bdaeb179c9e3cdf5b21c7697ea7cda240a7f59f65fe243bcfd57d60a.json new file mode 100644 index 0000000000..3e92351ce7 --- /dev/null +++ b/clients/feeder/testdata/sepolia/transaction/0xacb2e8bdaeb179c9e3cdf5b21c7697ea7cda240a7f59f65fe243bcfd57d60a.json @@ -0,0 +1,51 @@ +{ + "execution_status": "SUCCEEDED", + "finality_status": "ACCEPTED_ON_L1", + "status": "ACCEPTED_ON_L1", + "block_hash": "0x69d0d080f331bd8c7f6429fef20876ed33d370d468620e048076a1015c2ae48", + "block_number": 60000, + "transaction_index": 1, + "transaction": { + "transaction_hash": "0xacb2e8bdaeb179c9e3cdf5b21c7697ea7cda240a7f59f65fe243bcfd57d60a", + "version": "0x1", + "max_fee": "0x82be30cf82d5", + "signature": [ + "0x312aa541c46537e0199955ffa9f2c056c22b7f1cd3fb92f8db10f7e03a0eb6b", + "0x6738dc3ead88cf3f21be0a22e4c59e7d21d15a657c587b3ddb0e3c5f7bd1721" + ], + "nonce": "0x323", + "sender_address": "0x164b9e8615a1fe540ebda04ed0f38e945e06d9f892e120d265b856167ec573d", + "calldata": [ + "0x3", + "0x30058f19ed447208015f6430f0102e8ab82d6c291566d7e73fe8e613c3d2ed", + "0xa72371689866be053cc37a071de4216af73c9ffff96319b2576f7bf1e15290", + "0x4", + "0x5acb0547f4b06e5db4f73f5b6ea7425e9b59b6adc885ed8ecc4baeefae8b8d8", + "0xa9f7640400", + "0x11429301fb9b6dd9aa913b6bd05fa63a7ce57f7cfd56766c5ce7c9dc27433d", + "0x517567ac7026ce129c950e6e113e437aa3c83716cd61481c6bb8c5057e6923e", + "0x517567ac7026ce129c950e6e113e437aa3c83716cd61481c6bb8c5057e6923e", + "0xcaffbd1bd76bd7f24a3fa1d69d1b2588a86d1f9d2359b13f6a84b7e1cbd126", + "0x5", + "0x5265736f6c766552616e646f6d4576656e74", + "0x3", + "0x0", + "0x1", + "0x101d", + "0x517567ac7026ce129c950e6e113e437aa3c83716cd61481c6bb8c5057e6923e", + "0xcaffbd1bd76bd7f24a3fa1d69d1b2588a86d1f9d2359b13f6a84b7e1cbd126", + "0xa", + "0x4163636570745072657061696441677265656d656e74", + "0x8", + "0x4", + "0x18650500000001", + "0x1", + "0x1", + "0x101d", + "0x2819a0", + "0x1", + "0x101d" + ], + "type": "INVOKE_FUNCTION" + } +} \ No newline at end of file diff --git a/core/class_test.go b/core/class_test.go index d4f3eaf71b..e5746fbadb 100644 --- a/core/class_test.go +++ b/core/class_test.go @@ -196,10 +196,10 @@ func TestVerifyClassHash(t *testing.T) { wantErr error } - client := feeder.NewTestClient(t, &utils.Integration) + client := feeder.NewTestClient(t, &utils.Mainnet) gw := adaptfeeder.New(client) - cairo1ClassHash := utils.HexToFelt(t, "0x1cd2edfb485241c4403254d550de0a097fa76743cd30696f714a491a454bad5") + cairo1ClassHash := utils.HexToFelt(t, "0x1338d85d3e579f6944ba06c005238d145920afeb32f94e3a1e234d21e1e9292") cairo1Class, err := gw.Class(context.Background(), cairo1ClassHash) require.NoError(t, err) @@ -230,7 +230,7 @@ func TestVerifyClassHash(t *testing.T) { } }) - cairo0ClassHash := utils.HexToFelt(t, "0x4631b6b3fa31e140524b7d21ba784cea223e618bffe60b5bbdca44a8b45be04") + cairo0ClassHash := utils.HexToFelt(t, "0x10455c752b86932ce552f2b0fe81a880746649b9aee7e0d842bf3f52378f9f8") cairo0Class, err := gw.Class(context.Background(), cairo0ClassHash) require.NoError(t, err) diff --git a/core/state_test.go b/core/state_test.go index c9333b1c2a..e89d0694e4 100644 --- a/core/state_test.go +++ b/core/state_test.go @@ -370,13 +370,13 @@ func TestClass(t *testing.T) { require.NoError(t, txn.Discard()) }) - client := feeder.NewTestClient(t, &utils.Integration) + client := feeder.NewTestClient(t, &utils.Mainnet) gw := adaptfeeder.New(client) - cairo0Hash := utils.HexToFelt(t, "0x4631b6b3fa31e140524b7d21ba784cea223e618bffe60b5bbdca44a8b45be04") + cairo0Hash := utils.HexToFelt(t, "0x21c2e8a87c431e8d3e89ecd1a40a0674ef533cce5a1f6c44ba9e60d804ecad2") cairo0Class, err := gw.Class(context.Background(), cairo0Hash) require.NoError(t, err) - cairo1Hash := utils.HexToFelt(t, "0x1cd2edfb485241c4403254d550de0a097fa76743cd30696f714a491a454bad5") + cairo1Hash := utils.HexToFelt(t, "0x1338d85d3e579f6944ba06c005238d145920afeb32f94e3a1e234d21e1e9292") cairo1Class, err := gw.Class(context.Background(), cairo0Hash) require.NoError(t, err) diff --git a/core/state_update_test.go b/core/state_update_test.go index 0d03b4f67e..e11c6b9f43 100644 --- a/core/state_update_test.go +++ b/core/state_update_test.go @@ -2,6 +2,7 @@ package core_test import ( "context" + "fmt" "testing" "github.com/NethermindEth/juno/clients/feeder" @@ -12,33 +13,37 @@ import ( ) func TestStateDiffCommitment(t *testing.T) { - client := feeder.NewTestClient(t, &utils.Integration) + client := feeder.NewTestClient(t, &utils.Mainnet) gw := adaptfeeder.New(client) - for _, test := range []struct { + tests := []struct { blockNum uint64 expected string }{ { blockNum: 0, - expected: "0x689f2581f7956808e3e5589e8d984290a5d362a187111ffc3f6ef9fe839149e", + expected: "0x6c4a7559b57caded12ad2275f78c4ac310ff54b2e233d25c9cf4891c251b450", }, { - blockNum: 283364, - expected: "0x85894cd1d031ed87d7cba9b5eebd44beb7e9ec5b578d19e052844f4a2561ee", + blockNum: 1, + expected: "0x13beed68d79c0ff1d6b465660bcf245a7f0ec11af5e9c6564fba30543705fe3", }, { - blockNum: 283428, - expected: "0x1277857da9a95a3eb65bb2d4b1d9749adb6916cb460d1ab2fcc622ee7cf78f5", + blockNum: 2, + expected: "0x68e08eb5ae2790c1aeaeeef3c6fddebc27290d6415ef6b8e1e815f87afba5a7", }, { - blockNum: 283746, - expected: "0x32a531da56a82f993a29b3cfe4102b1589ddbc64bfd7be24706ab2b5ac2dba5", + blockNum: 21656, + expected: "0x5f5b2b85f704d609c4f38ddc890f3bb4bd92878c320c55dceb6e01d5319fa00", }, - } { - su, err := gw.StateUpdate(context.Background(), test.blockNum) - require.NoError(t, err) - commitment := su.StateDiff.Commitment() - assert.Equal(t, utils.HexToFelt(t, test.expected), commitment) + } + + for _, test := range tests { + t.Run("#"+fmt.Sprint(test.blockNum), func(t *testing.T) { + su, err := gw.StateUpdate(context.Background(), test.blockNum) + require.NoError(t, err) + commitment := su.StateDiff.Commitment() + assert.Equal(t, utils.HexToFelt(t, test.expected), commitment) + }) } } diff --git a/rpc/class_test.go b/rpc/class_test.go index fc7191110c..0456d07b3d 100644 --- a/rpc/class_test.go +++ b/rpc/class_test.go @@ -19,9 +19,9 @@ import ( ) func TestClass(t *testing.T) { - n := utils.Ptr(utils.Integration) - integrationClient := feeder.NewTestClient(t, n) - integGw := adaptfeeder.New(integrationClient) + n := utils.Ptr(utils.Mainnet) + client := feeder.NewTestClient(t, n) + gw := adaptfeeder.New(client) mockCtrl := gomock.NewController(t) t.Cleanup(mockCtrl.Finish) @@ -30,7 +30,7 @@ func TestClass(t *testing.T) { mockState := mocks.NewMockStateHistoryReader(mockCtrl) mockState.EXPECT().Class(gomock.Any()).DoAndReturn(func(classHash *felt.Felt) (*core.DeclaredClass, error) { - class, err := integGw.Class(context.Background(), classHash) + class, err := gw.Class(context.Background(), classHash) return &core.DeclaredClass{Class: class, At: 0}, err }).AnyTimes() mockReader.EXPECT().HeadState().Return(mockState, func() error { @@ -42,9 +42,9 @@ func TestClass(t *testing.T) { latest := rpc.BlockID{Latest: true} t.Run("sierra class", func(t *testing.T) { - hash := utils.HexToFelt(t, "0x1cd2edfb485241c4403254d550de0a097fa76743cd30696f714a491a454bad5") + hash := utils.HexToFelt(t, "0x21c2e8a87c431e8d3e89ecd1a40a0674ef533cce5a1f6c44ba9e60d804ecad2") - coreClass, err := integGw.Class(context.Background(), hash) + coreClass, err := gw.Class(context.Background(), hash) require.NoError(t, err) class, rpcErr := handler.Class(latest, *hash) @@ -54,9 +54,9 @@ func TestClass(t *testing.T) { }) t.Run("casm class", func(t *testing.T) { - hash := utils.HexToFelt(t, "0x4631b6b3fa31e140524b7d21ba784cea223e618bffe60b5bbdca44a8b45be04") + hash := utils.HexToFelt(t, "0x1efa8f84fd4dff9e2902ec88717cf0dafc8c188f80c3450615944a469428f7f") - coreClass, err := integGw.Class(context.Background(), hash) + coreClass, err := gw.Class(context.Background(), hash) require.NoError(t, err) class, rpcErr := handler.Class(latest, *hash) @@ -94,7 +94,7 @@ func TestClass(t *testing.T) { } func TestClassAt(t *testing.T) { - n := utils.Ptr(utils.Integration) + n := utils.Ptr(utils.Mainnet) integrationClient := feeder.NewTestClient(t, n) integGw := adaptfeeder.New(integrationClient) @@ -105,11 +105,11 @@ func TestClassAt(t *testing.T) { mockState := mocks.NewMockStateHistoryReader(mockCtrl) cairo0ContractAddress, _ := new(felt.Felt).SetRandom() - cairo0ClassHash := utils.HexToFelt(t, "0x4631b6b3fa31e140524b7d21ba784cea223e618bffe60b5bbdca44a8b45be04") + cairo0ClassHash := utils.HexToFelt(t, "0x1efa8f84fd4dff9e2902ec88717cf0dafc8c188f80c3450615944a469428f7f") mockState.EXPECT().ContractClassHash(cairo0ContractAddress).Return(cairo0ClassHash, nil) cairo1ContractAddress, _ := new(felt.Felt).SetRandom() - cairo1ClassHash := utils.HexToFelt(t, "0x1cd2edfb485241c4403254d550de0a097fa76743cd30696f714a491a454bad5") + cairo1ClassHash := utils.HexToFelt(t, "0x21c2e8a87c431e8d3e89ecd1a40a0674ef533cce5a1f6c44ba9e60d804ecad2") mockState.EXPECT().ContractClassHash(cairo1ContractAddress).Return(cairo1ClassHash, nil) mockState.EXPECT().Class(gomock.Any()).DoAndReturn(func(classHash *felt.Felt) (*core.DeclaredClass, error) { diff --git a/rpc/state_update_test.go b/rpc/state_update_test.go index feb9888c06..24fc1a43b1 100644 --- a/rpc/state_update_test.go +++ b/rpc/state_update_test.go @@ -114,16 +114,16 @@ func TestStateUpdate(t *testing.T) { }) t.Run("post v0.11.0", func(t *testing.T) { - integrationClient := feeder.NewTestClient(t, &utils.Integration) - integGw := adaptfeeder.New(integrationClient) + client := feeder.NewTestClient(t, &utils.Sepolia) + gw := adaptfeeder.New(client) for name, height := range map[string]uint64{ - "declared Cairo0 classes": 283746, - "declared Cairo1 classes": 283364, - "replaced classes": 283428, + "declared Cairo0 classes": 7, + "declared Cairo1 classes": 7, + "replaced classes": 6500, } { t.Run(name, func(t *testing.T) { - gwUpdate, err := integGw.StateUpdate(context.Background(), height) + gwUpdate, err := gw.StateUpdate(context.Background(), height) require.NoError(t, err) mockReader.EXPECT().StateUpdateByNumber(height).Return(gwUpdate, nil) diff --git a/rpc/trace_test.go b/rpc/trace_test.go index 289b32d517..fe2fb88840 100644 --- a/rpc/trace_test.go +++ b/rpc/trace_test.go @@ -26,7 +26,7 @@ import ( func TestTraceFallback(t *testing.T) { mockCtrl := gomock.NewController(t) t.Cleanup(mockCtrl.Finish) - n := utils.Ptr(utils.Integration) + n := utils.Ptr(utils.Mainnet) client := feeder.NewTestClient(t, n) mockReader := mocks.NewMockReader(mockCtrl) gateway := adaptfeeder.New(client) @@ -42,14 +42,14 @@ func TestTraceFallback(t *testing.T) { want string }{ "old block": { - hash: "0x3ae41b0f023e53151b0c8ab8b9caafb7005d5f41c9ab260276d5bdc49726279", - blockNumber: 0, - want: `[{"trace_root":{"type":"DEPLOY","constructor_invocation":{"contract_address":"0x7b196a359045d4d0c10f73bdf244a9e1205a615dbb754b8df40173364288534","calldata":["0x187d50a5cf3ebd6d4d6fa8e29e4cad0a237759c6416304a25c4ea792ed4bba4","0x42f5af30d6693674296ad87301935d0c159036c3b24af4042ff0270913bf6c6"],"caller_address":"0x0","result":[],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":29}}},"transaction_hash":"0x3fa1bff0c86f34b2eb32c26d12208b6bdb4a5f6a434ac1d4f0e2d1db71bd711"},{"trace_root":{"type":"DEPLOY","constructor_invocation":{"contract_address":"0x64ed79a8ebe97485d3357bbfdf5f6bea0d9db3b5f1feb6e80d564a179122dc6","calldata":["0x5cedec15acd969b0fba39fec9e7d9bd4d0b33f100969ad3a4543039a6f696d4","0xce9801d27b02543f4d88b60aa456860f94ee9f612fc56464abfbdeedc1ab72"],"caller_address":"0x0","result":[],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":29}}},"transaction_hash":"0x154c02cc3165cceadaa32e7238a67061b3a1eac414138c4ebe1408f37fd93eb"},{"trace_root":{"type":"INVOKE","execute_invocation":{"contract_address":"0x64ed79a8ebe97485d3357bbfdf5f6bea0d9db3b5f1feb6e80d564a179122dc6","calldata":["0x17d9c35a8b9a0d4512fa05eafec01c2758a7a5b7ec7b47408a24a4b33124d9b","0x2","0x7f800b5bf79637f8f83f47a8fc4d368b43695c781b22a899f11b5f2faba874a","0x3a7a40d383612b0ad167aec8d90fb07e576e017d07948f63ac318b52511ae93"],"caller_address":"0x0","result":[],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":165,"memory_holes":22,"pedersen_builtin_applications":2,"range_check_builtin_applications":7}}},"transaction_hash":"0x7893675c16da857b7c4229cda449e08a4fe13b07ca817e79d1db02e8a046047"},{"trace_root":{"type":"INVOKE","execute_invocation":{"contract_address":"0x64ed79a8ebe97485d3357bbfdf5f6bea0d9db3b5f1feb6e80d564a179122dc6","calldata":["0x17d9c35a8b9a0d4512fa05eafec01c2758a7a5b7ec7b47408a24a4b33124d9b","0x2","0x7f800b5bf79637f8f83f47a8fc4d368b43695c781b22a899f11b5f2faba874a","0xf140b304e9266c72f1054116dd06d9c1c8e981db7bf34e3c6da99640e9a7c8"],"caller_address":"0x0","result":[],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":165,"memory_holes":22,"pedersen_builtin_applications":2,"range_check_builtin_applications":7}}},"transaction_hash":"0x4a277d67e3f42c4a343854081d1e2e9e425f1323255e4486d2badb37a1d8630"}]`, + hash: "0x4e1f77f39545afe866ac151ac908bd1a347a2a8a7d58bef1276db4f06fdf2f6", + blockNumber: 2, + want: `[{"trace_root":{"type":"DEPLOY","constructor_invocation":{"contract_address":"0x5790719f16afe1450b67a92461db7d0e36298d6a5f8bab4f7fd282050e02f4f","calldata":["0x772c29fae85f8321bb38c9c3f6edb0957379abedc75c17f32bcef4e9657911a","0x6d4ca0f72b553f5338a95625782a939a49b98f82f449c20f49b42ec60ed891c"],"caller_address":"0x0","result":[],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":29}}},"transaction_hash":"0x723b57825c177d66fdc1ee1b7d22bd937503cd66808edf87294e88ee26601b6"},{"trace_root":{"type":"DEPLOY","constructor_invocation":{"contract_address":"0x57b973bf2eb26ebb28af5d6184b4a044b24a8dcbf724feb95782c4d1aef1ca9","calldata":["0x4f2c206f3f2f1380beeb9fe4302900701e1cb48b9b33cbe1a84a175d7ce8b50","0x2a614ae71faa2bcdacc5fd66965429c57c4520e38ebc6344f7cf2e78b21bd2f"],"caller_address":"0x0","result":[],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":29}}},"transaction_hash":"0x4e10133a1ce9255236282b0c060e0054f3fe9c24387e047d6a2dd65febc7ab3"},{"trace_root":{"type":"DEPLOY","constructor_invocation":{"contract_address":"0x2d6c9569dea5f18628f1ef7c15978ee3093d2d3eec3b893aac08004e678ead3","calldata":["0x7f93985c1baa5bd9b2200dd2151821bd90abb87186d0be295d7d4b9bc8ca41f","0x127cd00a078199381403a33d315061123ce246c8e5f19aa7f66391a9d3bf7c6"],"caller_address":"0x0","result":[],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":29}}},"transaction_hash":"0x5a8629d7852d3c8f4fda51d83b48cc8b2184763c46383419c1beeadaea1e66e"},{"trace_root":{"type":"INVOKE","execute_invocation":{"contract_address":"0x2d6c9569dea5f18628f1ef7c15978ee3093d2d3eec3b893aac08004e678ead3","calldata":["0xdaee7b1ac98d5d3fa7cf5dcfa0dd5f47dc8728fc"],"caller_address":"0x0","result":[],"calls":[],"events":[],"messages":[{"order":0,"to_address":"0xdAee7b1Ac98d5d3fA7Cf5dcFa0DD5f47Dc8728Fc","payload":["0xc","0x22"]}],"execution_resources":{"steps":31}}},"transaction_hash":"0x2e530fe2f39ba92380de33cfca060f68c2f50b8af954dae7370c97bf97e1e55"},{"trace_root":{"type":"DEPLOY","constructor_invocation":{"contract_address":"0x1fb4457f3fe8a976bdb9c04dd21549beeeb87d3867b10effe0c4bd4064a8e4","calldata":["0x56c060e7902b3d4ec5a327f1c6e083497e586937db00af37fe803025955678f","0x75495b43f53bd4b9c9179db113626af7b335be5744d68c6552e3d36a16a747c"],"caller_address":"0x0","result":[],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":29}}},"transaction_hash":"0x7f3166343d5aa5511582fcc8ad0a16bfb0124e3874085529ce010e2173fb699"},{"trace_root":{"type":"INVOKE","execute_invocation":{"contract_address":"0x5790719f16afe1450b67a92461db7d0e36298d6a5f8bab4f7fd282050e02f4f","calldata":["0xd2b87a5bcea9d58af40dfdddfcc2edf66b3c9c8f"],"caller_address":"0x0","result":[],"calls":[],"events":[],"messages":[{"order":0,"to_address":"0xd2B87a5bcea9d58Af40DfDddfcc2edf66B3C9c8f","payload":["0xc","0x22"]}],"execution_resources":{"steps":31}}},"transaction_hash":"0x2c68262e46df9ab5144743869d828b88753805ea1d8e6f3145351b7f04b53e6"}]`, }, "newer block": { - hash: "0xe3828bd9154ab385e2cbb95b3b650365fb3c6a4321660d98ce8b0a9194f9a3", - blockNumber: 300000, - want: `[{"trace_root":{"type":"INVOKE","validate_invocation":{"contract_address":"0x58b7ee817bd2978c7657d05d3131e83e301ed1aa79d5ad16f01925fd52d1da7","entry_point_selector":"0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775","calldata":["0x1","0x332299dc083f3778122e5b7762bc9d399da18fefe93769aee67bb49f51c8d2","0x2d7cf5d5a324a320f9f37804b1615a533fde487400b41af80f13f7ac5581325","0x0","0x4","0x4","0xaf35ee8ed700ff132c5d1d298a73becda25ccdf9","0x2","0x6cd852fe1b2bbd8587bb0aaeb09813436c57c8ce21e75651e317273a1f22228","0x58feb991988e53fffcba71f6df23c803fb062f1b3bab126d2c9ce574255b36e"],"caller_address":"0x0","class_hash":"0x646a72e2aab2fca75d713fbe4a58f2d12cbd64105621b89dc9ce7045b5bf02b","entry_point_type":"EXTERNAL","call_type":"CALL","result":[],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":89,"range_check_builtin_applications":2,"ecdsa_builtin_applications":1}},"execute_invocation":{"contract_address":"0x58b7ee817bd2978c7657d05d3131e83e301ed1aa79d5ad16f01925fd52d1da7","entry_point_selector":"0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad","calldata":["0x1","0x332299dc083f3778122e5b7762bc9d399da18fefe93769aee67bb49f51c8d2","0x2d7cf5d5a324a320f9f37804b1615a533fde487400b41af80f13f7ac5581325","0x0","0x4","0x4","0xaf35ee8ed700ff132c5d1d298a73becda25ccdf9","0x2","0x6cd852fe1b2bbd8587bb0aaeb09813436c57c8ce21e75651e317273a1f22228","0x58feb991988e53fffcba71f6df23c803fb062f1b3bab126d2c9ce574255b36e"],"caller_address":"0x0","class_hash":"0x646a72e2aab2fca75d713fbe4a58f2d12cbd64105621b89dc9ce7045b5bf02b","entry_point_type":"EXTERNAL","call_type":"CALL","result":[],"calls":[{"contract_address":"0x332299dc083f3778122e5b7762bc9d399da18fefe93769aee67bb49f51c8d2","entry_point_selector":"0x2d7cf5d5a324a320f9f37804b1615a533fde487400b41af80f13f7ac5581325","calldata":["0xaf35ee8ed700ff132c5d1d298a73becda25ccdf9","0x2","0x6cd852fe1b2bbd8587bb0aaeb09813436c57c8ce21e75651e317273a1f22228","0x58feb991988e53fffcba71f6df23c803fb062f1b3bab126d2c9ce574255b36e"],"caller_address":"0x58b7ee817bd2978c7657d05d3131e83e301ed1aa79d5ad16f01925fd52d1da7","class_hash":"0x165e7db96ab97a63c621229617a6d49633737238673477a54720e4c952f2c7e","entry_point_type":"EXTERNAL","call_type":"CALL","result":[],"calls":[],"events":[],"messages":[{"order":0,"to_address":"0xAf35eE8eD700ff132C5d1d298A73BECdA25ccDF9","payload":["0x6cd852fe1b2bbd8587bb0aaeb09813436c57c8ce21e75651e317273a1f22228","0x58feb991988e53fffcba71f6df23c803fb062f1b3bab126d2c9ce574255b36e"]}],"execution_resources":{"steps":233,"memory_holes":1,"range_check_builtin_applications":5}}],"events":[],"messages":[],"execution_resources":{"steps":374,"memory_holes":4,"range_check_builtin_applications":7}},"fee_transfer_invocation":{"contract_address":"0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7","entry_point_selector":"0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e","calldata":["0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8","0x127089df3a1984","0x0"],"caller_address":"0x58b7ee817bd2978c7657d05d3131e83e301ed1aa79d5ad16f01925fd52d1da7","class_hash":"0xd0e183745e9dae3e4e78a8ffedcce0903fc4900beace4e0abf192d4c202da3","entry_point_type":"EXTERNAL","call_type":"CALL","result":["0x1"],"calls":[{"contract_address":"0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7","entry_point_selector":"0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e","calldata":["0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8","0x127089df3a1984","0x0"],"caller_address":"0x58b7ee817bd2978c7657d05d3131e83e301ed1aa79d5ad16f01925fd52d1da7","class_hash":"0x28d7d394810ad8c52741ad8f7564717fd02c10ced68657a81d0b6710ce22079","entry_point_type":"EXTERNAL","call_type":"DELEGATE","result":["0x1"],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":488,"memory_holes":40,"pedersen_builtin_applications":4,"range_check_builtin_applications":21}}],"events":[],"messages":[],"execution_resources":{"steps":548,"memory_holes":40,"pedersen_builtin_applications":4,"range_check_builtin_applications":21}}},"transaction_hash":"0x2a648ab1aa6847eb38507fc842e050f256562bf87b26083c332f3f21318c2c3"},{"trace_root":{"type":"INVOKE","validate_invocation":{"contract_address":"0x58b7ee817bd2978c7657d05d3131e83e301ed1aa79d5ad16f01925fd52d1da7","entry_point_selector":"0x162da33a4585851fe8d3af3c2a9c60b557814e221e0d4f30ff0b2189d9c7775","calldata":["0x1","0x5f9211b05c9609d54a8bf5f9cfa4e2cd5a3cab3b5d79682c585575495a15dd1","0x317eb442b72a9fae758d4fb26830ed0d9f31c8e7da4dbff4e8c59ea6a158e7f","0x0","0x4","0x4","0x447379c077035ef4f442411d0407ce9aa66c558f0060137f6455f4f230eabeb","0x2","0x6811b7755a7dd0ec1fb6f51a883e3f255368e2dfd497b5f6480c00cf9cd5a2e","0x23b9e26720dd7aaf98c7cea56499f48f75dc1d4123f7e2d6c23bfc4d5f4a336"],"caller_address":"0x0","class_hash":"0x646a72e2aab2fca75d713fbe4a58f2d12cbd64105621b89dc9ce7045b5bf02b","entry_point_type":"EXTERNAL","call_type":"CALL","result":[],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":89,"range_check_builtin_applications":2,"ecdsa_builtin_applications":1}},"execute_invocation":{"contract_address":"0x58b7ee817bd2978c7657d05d3131e83e301ed1aa79d5ad16f01925fd52d1da7","entry_point_selector":"0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad","calldata":["0x1","0x5f9211b05c9609d54a8bf5f9cfa4e2cd5a3cab3b5d79682c585575495a15dd1","0x317eb442b72a9fae758d4fb26830ed0d9f31c8e7da4dbff4e8c59ea6a158e7f","0x0","0x4","0x4","0x447379c077035ef4f442411d0407ce9aa66c558f0060137f6455f4f230eabeb","0x2","0x6811b7755a7dd0ec1fb6f51a883e3f255368e2dfd497b5f6480c00cf9cd5a2e","0x23b9e26720dd7aaf98c7cea56499f48f75dc1d4123f7e2d6c23bfc4d5f4a336"],"caller_address":"0x0","class_hash":"0x646a72e2aab2fca75d713fbe4a58f2d12cbd64105621b89dc9ce7045b5bf02b","entry_point_type":"EXTERNAL","call_type":"CALL","result":[],"calls":[{"contract_address":"0x5f9211b05c9609d54a8bf5f9cfa4e2cd5a3cab3b5d79682c585575495a15dd1","entry_point_selector":"0x317eb442b72a9fae758d4fb26830ed0d9f31c8e7da4dbff4e8c59ea6a158e7f","calldata":["0x447379c077035ef4f442411d0407ce9aa66c558f0060137f6455f4f230eabeb","0x2","0x6811b7755a7dd0ec1fb6f51a883e3f255368e2dfd497b5f6480c00cf9cd5a2e","0x23b9e26720dd7aaf98c7cea56499f48f75dc1d4123f7e2d6c23bfc4d5f4a336"],"caller_address":"0x58b7ee817bd2978c7657d05d3131e83e301ed1aa79d5ad16f01925fd52d1da7","class_hash":"0x13abfd2f333f9c69f690f1569140cdae25f6f66e3f371c9cbb998b65f664a85","entry_point_type":"EXTERNAL","call_type":"CALL","result":[],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":166,"memory_holes":22,"pedersen_builtin_applications":2,"range_check_builtin_applications":7}}],"events":[],"messages":[],"execution_resources":{"steps":307,"memory_holes":25,"pedersen_builtin_applications":2,"range_check_builtin_applications":9}},"fee_transfer_invocation":{"contract_address":"0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7","entry_point_selector":"0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e","calldata":["0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8","0x3b2d25cd7bccc","0x0"],"caller_address":"0x58b7ee817bd2978c7657d05d3131e83e301ed1aa79d5ad16f01925fd52d1da7","class_hash":"0xd0e183745e9dae3e4e78a8ffedcce0903fc4900beace4e0abf192d4c202da3","entry_point_type":"EXTERNAL","call_type":"CALL","result":["0x1"],"calls":[{"contract_address":"0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7","entry_point_selector":"0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e","calldata":["0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8","0x3b2d25cd7bccc","0x0"],"caller_address":"0x58b7ee817bd2978c7657d05d3131e83e301ed1aa79d5ad16f01925fd52d1da7","class_hash":"0x28d7d394810ad8c52741ad8f7564717fd02c10ced68657a81d0b6710ce22079","entry_point_type":"EXTERNAL","call_type":"DELEGATE","result":["0x1"],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":488,"memory_holes":40,"pedersen_builtin_applications":4,"range_check_builtin_applications":21}}],"events":[],"messages":[],"execution_resources":{"steps":548,"memory_holes":40,"pedersen_builtin_applications":4,"range_check_builtin_applications":21}}},"transaction_hash":"0xbc984e8e1fe594dd518a3a51db4f338437a5d2fbdda772d4426b532a67ffff"}]`, + hash: "0x7644422a0e4974388bade973906fb2e87b5ff573f7198a788a6f9cbe68421ee", + blockNumber: 8, + want: `[{"trace_root":{"type":"INVOKE","execute_invocation":{"contract_address":"0x43324c97e376d7d164abded1af1e73e9ce8214249f711edb7059c1ca34560e8","calldata":["0x4d56b8ac0ed905936da10323328cba5def12957a2936920f043d8bf6a1e902d","0x11985e2c0ed78b56a7adfd3ce9c8ba9f590347a7ea639a99a3b9f90fc7959ca"],"caller_address":"0x0","result":[],"calls":[{"contract_address":"0x4d56b8ac0ed905936da10323328cba5def12957a2936920f043d8bf6a1e902d","calldata":["0x11985e2c0ed78b56a7adfd3ce9c8ba9f590347a7ea639a99a3b9f90fc7959ca","0x7e5"],"caller_address":"0x43324c97e376d7d164abded1af1e73e9ce8214249f711edb7059c1ca34560e8","result":[],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":25}},{"contract_address":"0x4d56b8ac0ed905936da10323328cba5def12957a2936920f043d8bf6a1e902d","calldata":["0x11985e2c0ed78b56a7adfd3ce9c8ba9f590347a7ea639a99a3b9f90fc7959ca"],"caller_address":"0x43324c97e376d7d164abded1af1e73e9ce8214249f711edb7059c1ca34560e8","result":["0x7e5"],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":31}}],"events":[],"messages":[],"execution_resources":{"steps":178}}},"transaction_hash":"0x2f0ef8801195ac788b55c7a6c1a940e721d61b2a71e4bacebb953727b19bf33"},{"trace_root":{"type":"INVOKE","execute_invocation":{"contract_address":"0x7e1b2de3dc9e3cf83278452786c23b384cf77a66c3073f94ab451ed0029b5af","calldata":["0x4d6f00affbeb6239fe0eb3eb4afefddbaea71533c152f44a1cdd113c1fdeade","0x3d7905601c217734671143d457f0db37f7f8883112abd34b92c4abfeafde0c3","0x2","0x27b0dbc1a546b72203a1c500afea150e2af6e1a35105060a6b74c32dc2eabf1","0x37e985ae697a85b502e62782a4136c425718f9a5ae5b5ad0e9414a20967d09"],"caller_address":"0x0","result":[],"calls":[{"contract_address":"0x4d6f00affbeb6239fe0eb3eb4afefddbaea71533c152f44a1cdd113c1fdeade","calldata":["0x27b0dbc1a546b72203a1c500afea150e2af6e1a35105060a6b74c32dc2eabf1","0x37e985ae697a85b502e62782a4136c425718f9a5ae5b5ad0e9414a20967d09"],"caller_address":"0x7e1b2de3dc9e3cf83278452786c23b384cf77a66c3073f94ab451ed0029b5af","result":[],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":25}}],"events":[],"messages":[],"execution_resources":{"steps":65,"memory_holes":2,"range_check_builtin_applications":1}}},"transaction_hash":"0x5063f1165e8b34639e4520f62bc242dcaedf0c2c6b5932f21979d06947c504b"},{"trace_root":{"type":"DEPLOY","constructor_invocation":{"contract_address":"0x3e875a858f9a0229e4a59cb72a4086d324b9b2148242694f2dd12d59d993b62","calldata":["0x3ac793df0f0fe7f116b40206e627b6d01e61a5e43e85c639c54e309d871679c","0x30ab11f9b4134770f9de5eac76c97a1d8163a3d583200810bbff5c7ca8784dc"],"caller_address":"0x0","result":[],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":29}}},"transaction_hash":"0x52cd7d14cd77925037f996ec5847382d33ac42f35b0dbc0f216b02f4c341160"},{"trace_root":{"type":"DEPLOY","constructor_invocation":{"contract_address":"0x6f3c934ba4ec49245cb9a42fc715e4d589aa502af69be13916127a538d525ce","calldata":["0x4b788ad12d2e47b2be358d61cc38d813aa79165ddbc0b29d4878ef0fbc18c15","0x612af3160e28962cb3dd6146a9c2f7bd7adeea1fddd39f767d936c7b5bcca97"],"caller_address":"0x0","result":[],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":29}}},"transaction_hash":"0x6c699184adc6cb676aef9f618af2f1e8e2a4279a73a2223432c519cb32e4763"},{"trace_root":{"type":"INVOKE","execute_invocation":{"contract_address":"0x6967f231f5bd99922269416c32ab2ff3c8ab8d9bb3bc968c27103493a2ab6b5","calldata":["0x4ce0f675a4ea2d7f47eed46394344d62dcb324c2335b5fc9d00469fcb3236c9","0x765da40dac2b54effc373e0036cd9d71899073bf71d14edf37be81a255af1ec"],"caller_address":"0x0","result":[],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":25}}},"transaction_hash":"0x2a5aa62284502c2ef98a8f6e0674bcb2ef5e03b380d6ddb267943cedf7f808b"},{"trace_root":{"type":"INVOKE","execute_invocation":{"contract_address":"0x6967f231f5bd99922269416c32ab2ff3c8ab8d9bb3bc968c27103493a2ab6b5","calldata":["0x4ce0f675a4ea2d7f47eed46394344d62dcb324c2335b5fc9d00469fcb3236c9","0x101ca5b1609f3d177b68e0278cb94ba450ec4f10ec017f574768fd6dd604ee5"],"caller_address":"0x0","result":[],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":25}}},"transaction_hash":"0x2355b457318c096be453914786f9a458109fb398fef9bf11d9e5e8d15cc4fa2"},{"trace_root":{"type":"INVOKE","execute_invocation":{"contract_address":"0x421203c58e1b4a6c3675be26cfaa18d2b6b42695ca206be1f08ce29f7f1bc7c","calldata":["0x56e4fed965fccd7fb01fcadd827470338f35ced62275328929d0d725b5707ba","0x6f10279766fe96f8dec739b60d70868c1b7dc985037b3ae02905769276df4aa"],"caller_address":"0x0","result":[],"calls":[{"contract_address":"0x56e4fed965fccd7fb01fcadd827470338f35ced62275328929d0d725b5707ba","calldata":["0x6f10279766fe96f8dec739b60d70868c1b7dc985037b3ae02905769276df4aa","0x7e5"],"caller_address":"0x421203c58e1b4a6c3675be26cfaa18d2b6b42695ca206be1f08ce29f7f1bc7c","result":[],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":25}},{"contract_address":"0x56e4fed965fccd7fb01fcadd827470338f35ced62275328929d0d725b5707ba","calldata":["0x6f10279766fe96f8dec739b60d70868c1b7dc985037b3ae02905769276df4aa"],"caller_address":"0x421203c58e1b4a6c3675be26cfaa18d2b6b42695ca206be1f08ce29f7f1bc7c","result":["0x7e5"],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":31}}],"events":[],"messages":[],"execution_resources":{"steps":178}}},"transaction_hash":"0x7a63f5518eaa5a9cff17d4725a4e852f10ac45e35130d010f46bead5a8879b0"},{"trace_root":{"type":"INVOKE","execute_invocation":{"contract_address":"0x7e1b2de3dc9e3cf83278452786c23b384cf77a66c3073f94ab451ed0029b5af","calldata":["0x6f3c934ba4ec49245cb9a42fc715e4d589aa502af69be13916127a538d525ce","0x2"],"caller_address":"0x0","result":[],"calls":[{"contract_address":"0x6f3c934ba4ec49245cb9a42fc715e4d589aa502af69be13916127a538d525ce","calldata":["0x2"],"caller_address":"0x7e1b2de3dc9e3cf83278452786c23b384cf77a66c3073f94ab451ed0029b5af","result":[],"calls":[{"contract_address":"0x7e1b2de3dc9e3cf83278452786c23b384cf77a66c3073f94ab451ed0029b5af","calldata":["0x7e1b2de3dc9e3cf83278452786c23b384cf77a66c3073f94ab451ed0029b5af","0x2"],"caller_address":"0x6f3c934ba4ec49245cb9a42fc715e4d589aa502af69be13916127a538d525ce","result":[],"calls":[{"contract_address":"0x7e1b2de3dc9e3cf83278452786c23b384cf77a66c3073f94ab451ed0029b5af","calldata":["0x7e1b2de3dc9e3cf83278452786c23b384cf77a66c3073f94ab451ed0029b5af","0x1"],"caller_address":"0x7e1b2de3dc9e3cf83278452786c23b384cf77a66c3073f94ab451ed0029b5af","result":[],"calls":[{"contract_address":"0x7e1b2de3dc9e3cf83278452786c23b384cf77a66c3073f94ab451ed0029b5af","calldata":["0x7e1b2de3dc9e3cf83278452786c23b384cf77a66c3073f94ab451ed0029b5af","0x0"],"caller_address":"0x7e1b2de3dc9e3cf83278452786c23b384cf77a66c3073f94ab451ed0029b5af","result":[],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":19}}],"events":[],"messages":[],"execution_resources":{"steps":113}}],"events":[],"messages":[],"execution_resources":{"steps":207}}],"events":[],"messages":[],"execution_resources":{"steps":282}},{"contract_address":"0x6f3c934ba4ec49245cb9a42fc715e4d589aa502af69be13916127a538d525ce","calldata":["0x5"],"caller_address":"0x7e1b2de3dc9e3cf83278452786c23b384cf77a66c3073f94ab451ed0029b5af","result":["0x456"],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":31}}],"events":[],"messages":[{"order":0,"to_address":"0x0000000000000000000000000000000000000001","payload":["0xc","0x22"]},{"order":1,"to_address":"0x0000000000000000000000000000000000000002","payload":["0xc","0x22"]}],"execution_resources":{"steps":426}}},"transaction_hash":"0x677e867e188e1145008c4d0985032edfa9594b402f61cf21574d7cc5d5e4983"},{"trace_root":{"type":"INVOKE","execute_invocation":{"contract_address":"0x4d56b8ac0ed905936da10323328cba5def12957a2936920f043d8bf6a1e902d","calldata":["0x3e875a858f9a0229e4a59cb72a4086d324b9b2148242694f2dd12d59d993b62","0xaff99c560aec9dccf1098df7a129d757bd8c70e4ea0f0a4f023dbf7e38b369"],"caller_address":"0x0","result":[],"calls":[{"contract_address":"0x3e875a858f9a0229e4a59cb72a4086d324b9b2148242694f2dd12d59d993b62","calldata":["0xaff99c560aec9dccf1098df7a129d757bd8c70e4ea0f0a4f023dbf7e38b369","0x7e5"],"caller_address":"0x4d56b8ac0ed905936da10323328cba5def12957a2936920f043d8bf6a1e902d","result":[],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":25}},{"contract_address":"0x3e875a858f9a0229e4a59cb72a4086d324b9b2148242694f2dd12d59d993b62","calldata":["0xaff99c560aec9dccf1098df7a129d757bd8c70e4ea0f0a4f023dbf7e38b369"],"caller_address":"0x4d56b8ac0ed905936da10323328cba5def12957a2936920f043d8bf6a1e902d","result":["0x7e5"],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":31}}],"events":[],"messages":[],"execution_resources":{"steps":178}}},"transaction_hash":"0x4d51e5559c9ffdbb9beda5fbe1590502f44069ef8119c1896ecf1fa43404e20"},{"trace_root":{"type":"DEPLOY","constructor_invocation":{"contract_address":"0x92188aae8567f8dd26e177e184af3db3c623ee9e87b138f907805499a1a2da","calldata":["0x2f7d130f95aa3b5d2646d28aa5a125211e8c78d00fdbc228000afe4fa200bdf","0x13467763f1a10849bb154e8255b26d3d0495a0cd97bc56796deeaa003f0a7d3"],"caller_address":"0x0","result":[],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":29}}},"transaction_hash":"0x94f1e1155ea27e66675e70db20144ee128e4af720c938f5310e2bb86588a16"},{"trace_root":{"type":"DEPLOY","constructor_invocation":{"contract_address":"0x764c36cfdc456e1f3565441938f958badcc0ce8f20b7ed5819af30ed18f245","calldata":["0x3fc0d0b3f84158bc646a15a0732fdb247af9cd9d2d62fc3ed9ebefe90665296","0x6a1b961ac323871d803b7d34c30d89af4ad693beaa8705e34ce90b976a3cd47"],"caller_address":"0x0","result":[],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":29}}},"transaction_hash":"0x111aa7b8ae18d9a356e2aa9921add612709d7b18666d446aa24777f449adeb8"},{"trace_root":{"type":"DEPLOY","constructor_invocation":{"contract_address":"0x16f4b142ae0c2bce2d65d0c26ff153a79bfb91d70e06ca3bc8f4d6ee86ef3d8","calldata":["0x7fc82c1dd25ea5fa674264a709c02eb03764a0052a458c1c20760b5562adf95","0x71745d8bd7b183b8674042c4ac28e10423415039065f8a5bb57b2e0a6f0a85f"],"caller_address":"0x0","result":[],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":29}}},"transaction_hash":"0x3d92a73c6bdc0421afa70c8be0d7ca4374d6d30731c5fe9aadfeff5715e98a9"},{"trace_root":{"type":"INVOKE","execute_invocation":{"contract_address":"0x43324c97e376d7d164abded1af1e73e9ce8214249f711edb7059c1ca34560e8","calldata":["0x1b654cb59f978da2eee76635158e5ff1399bf607cb2d05e3e3b4e41d7660ca2","0x2","0x5f743efdb29609bfc2002041bdd5c72257c0c6b5c268fc929a3e516c171c731","0x635afb0ea6c4cdddf93f42287b45b67acee4f08c6f6c53589e004e118491546"],"caller_address":"0x0","result":[],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":165,"memory_holes":22,"pedersen_builtin_applications":2,"range_check_builtin_applications":7}}},"transaction_hash":"0xf1d99fb97509e0dfc425ddc2a8c5398b74231658ca58b6f8da92f39cb739e"},{"trace_root":{"type":"INVOKE","execute_invocation":{"contract_address":"0x43324c97e376d7d164abded1af1e73e9ce8214249f711edb7059c1ca34560e8","calldata":["0x1b654cb59f978da2eee76635158e5ff1399bf607cb2d05e3e3b4e41d7660ca2","0x2","0x5f743efdb29609bfc2002041bdd5c72257c0c6b5c268fc929a3e516c171c731","0x1572c162a88c9b439d31656255703170b49a0fb03f8c6ca137d9c6cd503f5f6"],"caller_address":"0x0","result":[],"calls":[],"events":[],"messages":[],"execution_resources":{"steps":165,"memory_holes":22,"pedersen_builtin_applications":2,"range_check_builtin_applications":7}}},"transaction_hash":"0x7000f131abb0b9addf716d7dc9887de9feb3794a479ba84bdc57e63f761b868"}]`, }, } @@ -66,6 +66,7 @@ func TestTraceFallback(t *testing.T) { trace, jErr := handler.TraceBlockTransactions(context.Background(), rpc.BlockID{Number: test.blockNumber}) require.Nil(t, jErr) jsonStr, err := json.Marshal(trace) + fmt.Println(test.blockNumber, string(jsonStr)) require.NoError(t, err) assert.JSONEq(t, test.want, string(jsonStr)) }) diff --git a/rpc/transaction_test.go b/rpc/transaction_test.go index 4ef9b5a3c9..11e2d0cc0d 100644 --- a/rpc/transaction_test.go +++ b/rpc/transaction_test.go @@ -61,7 +61,6 @@ func TestTransactionByHash(t *testing.T) { "sender_address": "0x39291faa79897de1fd6fb1a531d144daa1590d058358171b83eadb3ceafed8" }`, }, - "DECLARE v0": { hash: "0x222f8902d1eeea76fa2642a90e2411bfd71cffb299b3a299029e1937fab3fe4", network: utils.Ptr(utils.Mainnet), @@ -75,7 +74,6 @@ func TestTransactionByHash(t *testing.T) { "sender_address": "0x1" }`, }, - "L1 Handler v0 with nonce": { hash: "0x537eacfd3c49166eec905daff61ff7feef9c133a049ea2135cb94eec840a4a8", network: utils.Ptr(utils.Mainnet), @@ -113,203 +111,199 @@ func TestTransactionByHash(t *testing.T) { ] }`, }, - - "Invoke v1": { + "INVOKE v1": { hash: "0x2897e3cec3e24e4d341df26b8cf1ab84ea1c01a051021836b36c6639145b497", network: utils.Ptr(utils.Mainnet), expected: `{ - "type": "INVOKE", - "transaction_hash": "0x2897e3cec3e24e4d341df26b8cf1ab84ea1c01a051021836b36c6639145b497", - "max_fee": "0x17f0de82f4be6", - "version": "0x1", - "signature": [ - "0x383ba105b6d0f59fab96a412ad267213ddcd899e046278bdba64cd583d680b", - "0x1896619a17fde468978b8d885ffd6f5c8f4ac1b188233b81b91bcf7dbc56fbd" - ], - "nonce": "0x42", - "sender_address": "0x1fc039de7d864580b57a575e8e6b7114f4d2a954d7d29f876b2eb3dd09394a0", - "calldata": [ - "0x1", - "0x727a63f78ee3f1bd18f78009067411ab369c31dece1ae22e16f567906409905", - "0x22de356837ac200bca613c78bd1fcc962a97770c06625f0c8b3edeb6ae4aa59", - "0x0", - "0xb", - "0xb", - "0xa", - "0x6db793d93ce48bc75a5ab02e6a82aad67f01ce52b7b903090725dbc4000eaa2", - "0x6141eac4031dfb422080ed567fe008fb337b9be2561f479a377aa1de1d1b676", - "0x27eb1a21fa7593dd12e988c9dd32917a0dea7d77db7e89a809464c09cf951c0", - "0x400a29400a34d8f69425e1f4335e6a6c24ce1111db3954e4befe4f90ca18eb7", - "0x599e56821170a12cdcf88fb8714057ce364a8728f738853da61d5b3af08a390", - "0x46ad66f467df625f3b2dd9d3272e61713e8f74b68adac6718f7497d742cfb17", - "0x4f348b585e6c1919d524a4bfe6f97230ecb61736fe57534ec42b628f7020849", - "0x19ae40a095ffe79b0c9fc03df2de0d2ab20f59a2692ed98a8c1062dbf691572", - "0xe120336994adef6c6e47694f87278686511d4622997d4a6f216bd6e9fa9acc", - "0x56e6637a4958d062db8c8198e315772819f64d915e5c7a8d58a99fa90ff0742" - ] - }`, + "type": "INVOKE", + "transaction_hash": "0x2897e3cec3e24e4d341df26b8cf1ab84ea1c01a051021836b36c6639145b497", + "max_fee": "0x17f0de82f4be6", + "version": "0x1", + "signature": [ + "0x383ba105b6d0f59fab96a412ad267213ddcd899e046278bdba64cd583d680b", + "0x1896619a17fde468978b8d885ffd6f5c8f4ac1b188233b81b91bcf7dbc56fbd" + ], + "nonce": "0x42", + "sender_address": "0x1fc039de7d864580b57a575e8e6b7114f4d2a954d7d29f876b2eb3dd09394a0", + "calldata": [ + "0x1", + "0x727a63f78ee3f1bd18f78009067411ab369c31dece1ae22e16f567906409905", + "0x22de356837ac200bca613c78bd1fcc962a97770c06625f0c8b3edeb6ae4aa59", + "0x0", + "0xb", + "0xb", + "0xa", + "0x6db793d93ce48bc75a5ab02e6a82aad67f01ce52b7b903090725dbc4000eaa2", + "0x6141eac4031dfb422080ed567fe008fb337b9be2561f479a377aa1de1d1b676", + "0x27eb1a21fa7593dd12e988c9dd32917a0dea7d77db7e89a809464c09cf951c0", + "0x400a29400a34d8f69425e1f4335e6a6c24ce1111db3954e4befe4f90ca18eb7", + "0x599e56821170a12cdcf88fb8714057ce364a8728f738853da61d5b3af08a390", + "0x46ad66f467df625f3b2dd9d3272e61713e8f74b68adac6718f7497d742cfb17", + "0x4f348b585e6c1919d524a4bfe6f97230ecb61736fe57534ec42b628f7020849", + "0x19ae40a095ffe79b0c9fc03df2de0d2ab20f59a2692ed98a8c1062dbf691572", + "0xe120336994adef6c6e47694f87278686511d4622997d4a6f216bd6e9fa9acc", + "0x56e6637a4958d062db8c8198e315772819f64d915e5c7a8d58a99fa90ff0742" + ] + }`, }, - "DEPLOY v0": { hash: "0x6486c6303dba2f364c684a2e9609211c5b8e417e767f37b527cda51e776e6f0", network: utils.Ptr(utils.Mainnet), expected: `{ - "type": "DEPLOY", - "transaction_hash": "0x6486c6303dba2f364c684a2e9609211c5b8e417e767f37b527cda51e776e6f0", - "version": "0x0", - "class_hash": "0x46f844ea1a3b3668f81d38b5c1bd55e816e0373802aefe732138628f0133486", - "contract_address_salt": "0x74dc2fe193daf1abd8241b63329c1123214842b96ad7fd003d25512598a956b", - "constructor_calldata": [ - "0x6d706cfbac9b8262d601c38251c5fbe0497c3a96cc91a92b08d91b61d9e70c4", - "0x79dc0da7c54b95f10aa182ad0a46400db63156920adb65eca2654c0945a463", - "0x2", - "0x6658165b4984816ab189568637bedec5aa0a18305909c7f5726e4a16e3afef6", - "0x6b648b36b074a91eee55730f5f5e075ec19c0a8f9ffb0903cefeee93b6ff328" - ] - }`, + "type": "DEPLOY", + "transaction_hash": "0x6486c6303dba2f364c684a2e9609211c5b8e417e767f37b527cda51e776e6f0", + "version": "0x0", + "class_hash": "0x46f844ea1a3b3668f81d38b5c1bd55e816e0373802aefe732138628f0133486", + "contract_address_salt": "0x74dc2fe193daf1abd8241b63329c1123214842b96ad7fd003d25512598a956b", + "constructor_calldata": [ + "0x6d706cfbac9b8262d601c38251c5fbe0497c3a96cc91a92b08d91b61d9e70c4", + "0x79dc0da7c54b95f10aa182ad0a46400db63156920adb65eca2654c0945a463", + "0x2", + "0x6658165b4984816ab189568637bedec5aa0a18305909c7f5726e4a16e3afef6", + "0x6b648b36b074a91eee55730f5f5e075ec19c0a8f9ffb0903cefeee93b6ff328" + ] + }`, }, - "DEPLOY ACCOUNT v1": { hash: "0xd61fc89f4d1dc4dc90a014957d655d38abffd47ecea8e3fa762e3160f155f2", network: utils.Ptr(utils.Mainnet), expected: `{ - "type": "DEPLOY_ACCOUNT", - "transaction_hash": "0xd61fc89f4d1dc4dc90a014957d655d38abffd47ecea8e3fa762e3160f155f2", - "max_fee": "0xb5e620f48000", - "version": "0x1", - "signature": [ - "0x41c3543008dd65ed98c767e5d218b0c0ce1bd0cd60877824951a6f87cc1637d", - "0x7f803845aa7e43d183fd05cd553c64711b1c49af69a155fe8144e8da9a5a50d" - ], - "nonce": "0x0", - "class_hash": "0x1fac3074c9d5282f0acc5c69a4781a1c711efea5e73c550c5d9fb253cf7fd3d", - "contract_address_salt": "0x14e2ae44cbb50dff0e18140e7c415c1f281207d06fd6a0106caf3ff21e130d8", - "constructor_calldata": [ - "0x6113c1775f3d0fda0b45efbb69f6e2306da3c174df523ef0acdd372bf0a61cb" - ] - }`, + "type": "DEPLOY_ACCOUNT", + "transaction_hash": "0xd61fc89f4d1dc4dc90a014957d655d38abffd47ecea8e3fa762e3160f155f2", + "max_fee": "0xb5e620f48000", + "version": "0x1", + "signature": [ + "0x41c3543008dd65ed98c767e5d218b0c0ce1bd0cd60877824951a6f87cc1637d", + "0x7f803845aa7e43d183fd05cd553c64711b1c49af69a155fe8144e8da9a5a50d" + ], + "nonce": "0x0", + "class_hash": "0x1fac3074c9d5282f0acc5c69a4781a1c711efea5e73c550c5d9fb253cf7fd3d", + "contract_address_salt": "0x14e2ae44cbb50dff0e18140e7c415c1f281207d06fd6a0106caf3ff21e130d8", + "constructor_calldata": [ + "0x6113c1775f3d0fda0b45efbb69f6e2306da3c174df523ef0acdd372bf0a61cb" + ] + }`, }, - "INVOKE v0": { hash: "0xf1d99fb97509e0dfc425ddc2a8c5398b74231658ca58b6f8da92f39cb739e", network: utils.Ptr(utils.Mainnet), expected: `{ - "type": "INVOKE", - "transaction_hash": "0xf1d99fb97509e0dfc425ddc2a8c5398b74231658ca58b6f8da92f39cb739e", - "max_fee": "0x0", - "version": "0x0", - "signature": [], - "contract_address": "0x43324c97e376d7d164abded1af1e73e9ce8214249f711edb7059c1ca34560e8", - "entry_point_selector": "0x317eb442b72a9fae758d4fb26830ed0d9f31c8e7da4dbff4e8c59ea6a158e7f", - "calldata": [ - "0x1b654cb59f978da2eee76635158e5ff1399bf607cb2d05e3e3b4e41d7660ca2", - "0x2", - "0x5f743efdb29609bfc2002041bdd5c72257c0c6b5c268fc929a3e516c171c731", - "0x635afb0ea6c4cdddf93f42287b45b67acee4f08c6f6c53589e004e118491546" - ] - }`, + "type": "INVOKE", + "transaction_hash": "0xf1d99fb97509e0dfc425ddc2a8c5398b74231658ca58b6f8da92f39cb739e", + "max_fee": "0x0", + "version": "0x0", + "signature": [], + "contract_address": "0x43324c97e376d7d164abded1af1e73e9ce8214249f711edb7059c1ca34560e8", + "entry_point_selector": "0x317eb442b72a9fae758d4fb26830ed0d9f31c8e7da4dbff4e8c59ea6a158e7f", + "calldata": [ + "0x1b654cb59f978da2eee76635158e5ff1399bf607cb2d05e3e3b4e41d7660ca2", + "0x2", + "0x5f743efdb29609bfc2002041bdd5c72257c0c6b5c268fc929a3e516c171c731", + "0x635afb0ea6c4cdddf93f42287b45b67acee4f08c6f6c53589e004e118491546" + ] + }`, }, "DECLARE v3": { - hash: "0x41d1f5206ef58a443e7d3d1ca073171ec25fa75313394318fc83a074a6631c3", - network: utils.Ptr(utils.Integration), + hash: "0x16d437c46683719659cfdb9934a7e394b9e4a8da4b9ed82e928afbd6434017e", + network: utils.Ptr(utils.Sepolia), expected: `{ - "transaction_hash": "0x41d1f5206ef58a443e7d3d1ca073171ec25fa75313394318fc83a074a6631c3", - "type": "DECLARE", - "version": "0x3", - "nonce": "0x1", - "sender_address": "0x2fab82e4aef1d8664874e1f194951856d48463c3e6bf9a8c68e234a629a6f50", - "class_hash": "0x5ae9d09292a50ed48c5930904c880dab56e85b825022a7d689cfc9e65e01ee7", - "compiled_class_hash": "0x1add56d64bebf8140f3b8a38bdf102b7874437f0c861ab4ca7526ec33b4d0f8", - "signature": [ - "0x29a49dff154fede73dd7b5ca5a0beadf40b4b069f3a850cd8428e54dc809ccc", - "0x429d142a17223b4f2acde0f5ecb9ad453e188b245003c86fab5c109bad58fc3" - ], - "resource_bounds": { - "l1_gas": { - "max_amount": "0x186a0", - "max_price_per_unit": "0x2540be400" - }, - "l2_gas": { "max_amount": "0x0", "max_price_per_unit": "0x0" } - }, - "tip": "0x0", - "paymaster_data": [], - "account_deployment_data": [], - "nonce_data_availability_mode": "L1", - "fee_data_availability_mode": "L1" - }`, + "transaction_hash": "0x16d437c46683719659cfdb9934a7e394b9e4a8da4b9ed82e928afbd6434017e", + "type": "DECLARE", + "version": "0x3", + "nonce": "0x14", + "class_hash": "0x186f1ec45ad75cae3ba30c3ada2ef46941a821c9ad7629988641966978025ad", + "sender_address": "0x67329667da0cc3e8e89289af4861d2cc84e44c218b04f2515f49b4a7270f285", + "signature": [ + "0x3d2904a3aecffd4564ceea5b14705014f3ace1dbe482cf86d14288318dead24", + "0x485ab8b4b007401030824214c92f45814ffc9c14c3c08718e2f46429dc6ae2a" + ], + "compiled_class_hash": "0x5853ce65472c3763373d8121d71c9c5e3ca15dd896bd1144d24567aa8cb8b95", + "resource_bounds": { + "l1_gas": { + "max_amount": "0x1723", + "max_price_per_unit": "0x17fa7f1d5650" + }, + "l2_gas": { + "max_amount": "0x0", + "max_price_per_unit": "0x0" + } + }, + "tip": "0x0", + "paymaster_data": [], + "account_deployment_data": [], + "nonce_data_availability_mode": "L1", + "fee_data_availability_mode": "L1" + }`, }, "INVOKE v3": { - hash: "0x49728601e0bb2f48ce506b0cbd9c0e2a9e50d95858aa41463f46386dca489fd", - network: utils.Ptr(utils.Integration), + hash: "0x6e7ae47173b6935899320dd41d540a27f8d5712febbaf13fe8d8aeaf4ac9164", + network: utils.Ptr(utils.Sepolia), expected: `{ - "type": "INVOKE", - "transaction_hash": "0x49728601e0bb2f48ce506b0cbd9c0e2a9e50d95858aa41463f46386dca489fd", - "version": "0x3", - "signature": [ - "0x71a9b2cd8a8a6a4ca284dcddcdefc6c4fd20b92c1b201bd9836e4ce376fad16", - "0x6bef4745194c9447fdc8dd3aec4fc738ab0a560b0d2c7bf62fbf58aef3abfc5" - ], - "nonce": "0xe97", - "resource_bounds": { - "l1_gas": { - "max_amount": "0x186a0", - "max_price_per_unit": "0x5af3107a4000" - }, - "l2_gas": { "max_amount": "0x0", "max_price_per_unit": "0x0" } + "transaction_hash": "0x6e7ae47173b6935899320dd41d540a27f8d5712febbaf13fe8d8aeaf4ac9164", + "type": "INVOKE", + "version": "0x3", + "nonce": "0x8", + "sender_address": "0x6247aaebf5d2ff56c35cce1585bf255963d94dd413a95020606d523c8c7f696", + "signature": [ + "0x1", + "0x4235b7a9cad6024cbb3296325e23b2a03d34a95c3ee3d5c10e2b6076c257d77", + "0x439de4b0c238f624c14c2619aa9d190c6c1d17f6556af09f1697cfe74f192fc" + ], + "calldata": [ + "0x1", + "0x19c92fa87f4d5e3be25c3dd6a284f30282a07e87cd782f5fd387b82c8142017", + "0x3059098e39fbb607bc96a8075eb4d17197c3a6c797c166470997571e6fa5b17", + "0x0" + ], + "resource_bounds": { + "l1_gas": { + "max_amount": "0xa0", + "max_price_per_unit": "0xe91444530acc" }, - "tip": "0x0", - "paymaster_data": [], - "sender_address": "0x3f6f3bc663aedc5285d6013cc3ffcbc4341d86ab488b8b68d297f8258793c41", - "calldata": [ - "0x2", - "0x450703c32370cf7ffff540b9352e7ee4ad583af143a361155f2b485c0c39684", - "0x27c3334165536f239cfd400ed956eabff55fc60de4fb56728b6a4f6b87db01c", - "0x0", - "0x4", - "0x4c312760dfd17a954cdd09e76aa9f149f806d88ec3e402ffaf5c4926f568a42", - "0x5df99ae77df976b4f0e5cf28c7dcfe09bd6e81aab787b19ac0c08e03d928cf", - "0x4", - "0x1", - "0x5", - "0x450703c32370cf7ffff540b9352e7ee4ad583af143a361155f2b485c0c39684", - "0x5df99ae77df976b4f0e5cf28c7dcfe09bd6e81aab787b19ac0c08e03d928cf", - "0x1", - "0x7fe4fd616c7fece1244b3616bb516562e230be8c9f29668b46ce0369d5ca829", - "0x287acddb27a2f9ba7f2612d72788dc96a5b30e401fc1e8072250940e024a587" - ], - "account_deployment_data": [], - "nonce_data_availability_mode": "L1", - "fee_data_availability_mode": "L1" + "l2_gas": { + "max_amount": "0x0", + "max_price_per_unit": "0x0" + } + }, + "tip": "0x0", + "paymaster_data": [], + "account_deployment_data": [], + "nonce_data_availability_mode": "L1", + "fee_data_availability_mode": "L1" }`, }, "DEPLOY ACCOUNT v3": { - hash: "0x29fd7881f14380842414cdfdd8d6c0b1f2174f8916edcfeb1ede1eb26ac3ef0", - network: utils.Ptr(utils.Integration), + hash: "0x138c9f01c27c56ceff5c9adb05f2a025ae4ebeb35ba4ac88572abd23c5623f", + network: utils.Ptr(utils.Sepolia), expected: `{ - "transaction_hash": "0x29fd7881f14380842414cdfdd8d6c0b1f2174f8916edcfeb1ede1eb26ac3ef0", - "version": "0x3", - "signature": [ - "0x6d756e754793d828c6c1a89c13f7ec70dbd8837dfeea5028a673b80e0d6b4ec", - "0x4daebba599f860daee8f6e100601d98873052e1c61530c630cc4375c6bd48e3" - ], - "nonce": "0x0", - "resource_bounds": { - "l1_gas": { - "max_amount": "0x186a0", - "max_price_per_unit": "0x5af3107a4000" - }, - "l2_gas": { "max_amount": "0x0", "max_price_per_unit": "0x0" } + "transaction_hash": "0x138c9f01c27c56ceff5c9adb05f2a025ae4ebeb35ba4ac88572abd23c5623f", + "type": "DEPLOY_ACCOUNT", + "version": "0x3", + "nonce": "0x0", + "contract_address_salt": "0x202674c5f7f0ee6ea3248496afccc6e27f77fd5634628d07c5710f8a4fbf1a2", + "class_hash": "0x29927c8af6bccf3f6fda035981e765a7bdbf18a2dc0d630494f8758aa908e2b", + "constructor_calldata": [ + "0x202674c5f7f0ee6ea3248496afccc6e27f77fd5634628d07c5710f8a4fbf1a2", + "0x0" + ], + "signature": [ + "0x79ec88c0f655e07f49a66bc6d4d9e696cf578addf6a0538f81dc3b47ca66c64", + "0x78d3f2549f6f5b8533730a0f4f76c4277bc1b358f805d7cf66414289ce0a46d" + ], + "resource_bounds": { + "l1_gas": { + "max_amount": "0x1b52", + "max_price_per_unit": "0x15416c61bfea" }, - "tip": "0x0", - "paymaster_data": [], - "contract_address_salt": "0x0", - "class_hash": "0x2338634f11772ea342365abd5be9d9dc8a6f44f159ad782fdebd3db5d969738", - "constructor_calldata": [ - "0x5cd65f3d7daea6c63939d659b8473ea0c5cd81576035a4d34e52fb06840196c" - ], - "type": "DEPLOY_ACCOUNT", - "nonce_data_availability_mode": "L1", - "fee_data_availability_mode": "L1" + "l2_gas": { + "max_amount": "0x0", + "max_price_per_unit": "0x0" + } + }, + "tip": "0x0", + "paymaster_data": [], + "nonce_data_availability_mode": "L1", + "fee_data_availability_mode": "L1" }`, }, } @@ -336,6 +330,7 @@ func TestTransactionByHash(t *testing.T) { resJSON, err := json.Marshal(res) require.NoError(t, err) + resMap := make(map[string]any) require.NoError(t, json.Unmarshal(resJSON, &resMap)) @@ -489,522 +484,6 @@ func TestTransactionByBlockIdAndIndex(t *testing.T) { }) } -// TODO[Pawel]: The following 2 tests `Test[Legacy]TransactionReceiptByHash` are skipped -// but we still keep them here. I have a doubt whether they test anything useful. -// -//nolint:dupl -func TestTransactionReceiptByHash(t *testing.T) { - t.Skip() - - mockCtrl := gomock.NewController(t) - t.Cleanup(mockCtrl.Finish) - - n := utils.Ptr(utils.Mainnet) - mockReader := mocks.NewMockReader(mockCtrl) - handler := rpc.New(mockReader, nil, nil, "", n, nil) - - t.Run("transaction not found", func(t *testing.T) { - txHash := new(felt.Felt).SetBytes([]byte("random hash")) - mockReader.EXPECT().TransactionByHash(txHash).Return(nil, errors.New("tx not found")) - - tx, rpcErr := handler.TransactionReceiptByHash(*txHash) - assert.Nil(t, tx) - assert.Equal(t, rpc.ErrTxnHashNotFound, rpcErr) - }) - - client := feeder.NewTestClient(t, n) - mainnetGw := adaptfeeder.New(client) - - block0, err := mainnetGw.BlockByNumber(context.Background(), 0) - require.NoError(t, err) - - checkTxReceipt := func(t *testing.T, h *felt.Felt, expected string) { - t.Helper() - - expectedMap := make(map[string]any) - require.NoError(t, json.Unmarshal([]byte(expected), &expectedMap)) - - receipt, err := handler.TransactionReceiptByHash(*h) - require.Nil(t, err) - - receiptJSON, jsonErr := json.Marshal(receipt) - require.NoError(t, jsonErr) - - receiptMap := make(map[string]any) - require.NoError(t, json.Unmarshal(receiptJSON, &receiptMap)) - assert.Equal(t, expectedMap, receiptMap) - } - - tests := map[string]struct { - index int - expected string - }{ - "with contract addr": { - index: 0, - expected: `{ - "type": "DEPLOY", - "transaction_hash": "0xe0a2e45a80bb827967e096bcf58874f6c01c191e0a0530624cba66a508ae75", - "actual_fee": {"amount": "0x0", "unit": "WEI"}, - "finality_status": "ACCEPTED_ON_L2", - "execution_status": "SUCCEEDED", - "block_hash": "0x47c3637b57c2b079b93c61539950c17e868a28f46cdef28f88521067f21e943", - "block_number": 0, - "messages_sent": [], - "events": [], - "contract_address": "0x20cfa74ee3564b4cd5435cdace0f9c4d43b939620e4a0bb5076105df0a626c6", - "execution_resources":{"steps":29} - }`, - }, - "without contract addr": { - index: 2, - expected: `{ - "type": "INVOKE", - "transaction_hash": "0xce54bbc5647e1c1ea4276c01a708523f740db0ff5474c77734f73beec2624", - "actual_fee": {"amount": "0x0", "unit": "WEI"}, - "finality_status": "ACCEPTED_ON_L2", - "execution_status": "SUCCEEDED", - "block_hash": "0x47c3637b57c2b079b93c61539950c17e868a28f46cdef28f88521067f21e943", - "block_number": 0, - "messages_sent": [ - { - "from_address": "0x20cfa74ee3564b4cd5435cdace0f9c4d43b939620e4a0bb5076105df0a626c6", - "to_address": "0xc84dd7fd43a7defb5b7a15c4fbbe11cbba6db1ba", - "payload": [ - "0xc", - "0x22" - ] - } - ], - "events": [], - "execution_resources":{"steps":31} - }`, - }, - } - for name, test := range tests { - t.Run(name, func(t *testing.T) { - txHash := block0.Transactions[test.index].Hash() - mockReader.EXPECT().TransactionByHash(txHash).Return(block0.Transactions[test.index], nil) - mockReader.EXPECT().Receipt(txHash).Return(block0.Receipts[test.index], block0.Hash, block0.Number, nil) - mockReader.EXPECT().L1Head().Return(nil, db.ErrKeyNotFound) - - checkTxReceipt(t, txHash, test.expected) - }) - } - - t.Run("pending receipt", func(t *testing.T) { - i := 2 - expected := `{ - "type": "INVOKE", - "transaction_hash": "0xce54bbc5647e1c1ea4276c01a708523f740db0ff5474c77734f73beec2624", - "actual_fee": {"amount": "0x0", "unit": "WEI"}, - "finality_status": "ACCEPTED_ON_L2", - "execution_status": "SUCCEEDED", - "messages_sent": [ - { - "from_address": "0x20cfa74ee3564b4cd5435cdace0f9c4d43b939620e4a0bb5076105df0a626c6", - "to_address": "0xc84dd7fd43a7defb5b7a15c4fbbe11cbba6db1ba", - "payload": [ - "0xc", - "0x22" - ] - } - ], - "events": [], - "execution_resources":{"steps":31} - }` - - txHash := block0.Transactions[i].Hash() - mockReader.EXPECT().TransactionByHash(txHash).Return(block0.Transactions[i], nil) - mockReader.EXPECT().Receipt(txHash).Return(block0.Receipts[i], nil, uint64(0), nil) - - checkTxReceipt(t, txHash, expected) - }) - - t.Run("accepted on l1 receipt", func(t *testing.T) { - i := 2 - expected := `{ - "type": "INVOKE", - "transaction_hash": "0xce54bbc5647e1c1ea4276c01a708523f740db0ff5474c77734f73beec2624", - "actual_fee": {"amount": "0x0", "unit": "WEI"}, - "finality_status": "ACCEPTED_ON_L1", - "execution_status": "SUCCEEDED", - "block_hash": "0x47c3637b57c2b079b93c61539950c17e868a28f46cdef28f88521067f21e943", - "block_number": 0, - "messages_sent": [ - { - "from_address": "0x20cfa74ee3564b4cd5435cdace0f9c4d43b939620e4a0bb5076105df0a626c6", - "to_address": "0xc84dd7fd43a7defb5b7a15c4fbbe11cbba6db1ba", - "payload": [ - "0xc", - "0x22" - ] - } - ], - "events": [], - "execution_resources":{"steps":31} - }` - - txHash := block0.Transactions[i].Hash() - mockReader.EXPECT().TransactionByHash(txHash).Return(block0.Transactions[i], nil) - mockReader.EXPECT().Receipt(txHash).Return(block0.Receipts[i], block0.Hash, block0.Number, nil) - mockReader.EXPECT().L1Head().Return(&core.L1Head{ - BlockNumber: block0.Number, - BlockHash: block0.Hash, - StateRoot: block0.GlobalStateRoot, - }, nil) - - checkTxReceipt(t, txHash, expected) - }) - t.Run("reverted", func(t *testing.T) { - expected := `{ - "type": "INVOKE", - "transaction_hash": "0x19abec18bbacec23c2eee160c70190a48e4b41dd5ff98ad8f247f9393559998", - "actual_fee": {"amount": "0x247aff6e224", "unit": "WEI"}, - "execution_status": "REVERTED", - "finality_status": "ACCEPTED_ON_L2", - "block_hash": "0x76e0229fd0c36dda2ee7905f7e4c9b3ebb78d98c4bfab550bcb3a03bf859a6", - "block_number": 304740, - "messages_sent": [], - "events": [], - "revert_reason": "Error in the called contract (0x00b1461de04c6a1aa3375bdf9b7723a8779c082ffe21311d683a0b15c078b5dc):\nError at pc=0:25:\nGot an exception while executing a hint.\nCairo traceback (most recent call last):\nUnknown location (pc=0:731)\nUnknown location (pc=0:677)\nUnknown location (pc=0:291)\nUnknown location (pc=0:314)\n\nError in the called contract (0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7):\nError at pc=0:104:\nGot an exception while executing a hint.\nCairo traceback (most recent call last):\nUnknown location (pc=0:1678)\nUnknown location (pc=0:1664)\n\nError in the called contract (0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7):\nError at pc=0:6:\nGot an exception while executing a hint: Assertion failed, 0 % 0x800000000000011000000000000000000000000000000000000000000000001 is equal to 0\nCairo traceback (most recent call last):\nUnknown location (pc=0:1238)\nUnknown location (pc=0:1215)\nUnknown location (pc=0:836)\n", - "execution_resources":{"steps":0} - }` - - integClient := feeder.NewTestClient(t, &utils.Integration) - integGw := adaptfeeder.New(integClient) - - blockWithRevertedTxn, err := integGw.BlockByNumber(context.Background(), 304740) - require.NoError(t, err) - - revertedTxnIdx := 1 - revertedTxnHash := blockWithRevertedTxn.Transactions[revertedTxnIdx].Hash() - - mockReader.EXPECT().TransactionByHash(revertedTxnHash).Return(blockWithRevertedTxn.Transactions[revertedTxnIdx], nil) - mockReader.EXPECT().Receipt(revertedTxnHash).Return(blockWithRevertedTxn.Receipts[revertedTxnIdx], - blockWithRevertedTxn.Hash, blockWithRevertedTxn.Number, nil) - mockReader.EXPECT().L1Head().Return(nil, db.ErrKeyNotFound) - - checkTxReceipt(t, revertedTxnHash, expected) - }) - - t.Run("v3 tx", func(t *testing.T) { - expected := `{ - "block_hash": "0x50e864db6b81ce69fbeb70e6a7284ee2febbb9a2e707415de7adab83525e9cd", - "block_number": 319132, - "execution_status": "SUCCEEDED", - "finality_status": "ACCEPTED_ON_L2", - "transaction_hash": "0x49728601e0bb2f48ce506b0cbd9c0e2a9e50d95858aa41463f46386dca489fd", - "messages_sent": [], - "events": [ - { - "from_address": "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "data": [ - "0x3f6f3bc663aedc5285d6013cc3ffcbc4341d86ab488b8b68d297f8258793c41", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x16d8b4ad4000", - "0x0" - ] - }, - { - "from_address": "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", - "keys": [ - "0xa9fa878c35cd3d0191318f89033ca3e5501a3d90e21e3cc9256bdd5cd17fdd" - ], - "data": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x18ad8494375bc00", - "0x0", - "0x18aef21f822fc00", - "0x0" - ] - } - ], - "execution_resources": { - "steps": 615, - "range_check_builtin_applications": 19, - "memory_holes": 4 - }, - "actual_fee": { - "amount": "0x16d8b4ad4000", - "unit": "FRI" - }, - "type": "INVOKE" - }` - - integClient := feeder.NewTestClient(t, &utils.Integration) - integGw := adaptfeeder.New(integClient) - - block, err := integGw.BlockByNumber(context.Background(), 319132) - require.NoError(t, err) - - index := 0 - txnHash := block.Transactions[index].Hash() - - mockReader.EXPECT().TransactionByHash(txnHash).Return(block.Transactions[index], nil) - mockReader.EXPECT().Receipt(txnHash).Return(block.Receipts[index], - block.Hash, block.Number, nil) - mockReader.EXPECT().L1Head().Return(nil, db.ErrKeyNotFound) - - checkTxReceipt(t, txnHash, expected) - }) -} - -//nolint:dupl -func TestLegacyTransactionReceiptByHash(t *testing.T) { - t.Skip() - mockCtrl := gomock.NewController(t) - t.Cleanup(mockCtrl.Finish) - - n := utils.Ptr(utils.Mainnet) - mockReader := mocks.NewMockReader(mockCtrl) - handler := rpc.New(mockReader, nil, nil, "", n, nil) - - t.Run("transaction not found", func(t *testing.T) { - txHash := new(felt.Felt).SetBytes([]byte("random hash")) - mockReader.EXPECT().TransactionByHash(txHash).Return(nil, errors.New("tx not found")) - - tx, rpcErr := handler.TransactionReceiptByHash(*txHash) - assert.Nil(t, tx) - assert.Equal(t, rpc.ErrTxnHashNotFound, rpcErr) - }) - - client := feeder.NewTestClient(t, n) - mainnetGw := adaptfeeder.New(client) - - block0, err := mainnetGw.BlockByNumber(context.Background(), 0) - require.NoError(t, err) - - checkTxReceipt := func(t *testing.T, _ *felt.Felt, expected string) { - t.Helper() - - expectedMap := make(map[string]any) - require.NoError(t, json.Unmarshal([]byte(expected), &expectedMap)) - - //nolint:gocritic - // receipt, err := handler.LegacyTransactionReceiptByHash(*h) - // require.Nil(t, err) - // receiptJSON, jsonErr := json.Marshal(receipt) - // require.NoError(t, jsonErr) - - receiptMap := make(map[string]any) - //nolint:gocritic - // require.NoError(t, json.Unmarshal(receiptJSON, &receiptMap)) - assert.Equal(t, expectedMap, receiptMap) - } - - tests := map[string]struct { - index int - expected string - }{ - "with contract addr": { - index: 0, - expected: `{ - "type": "DEPLOY", - "transaction_hash": "0xe0a2e45a80bb827967e096bcf58874f6c01c191e0a0530624cba66a508ae75", - "actual_fee": "0x0", - "finality_status": "ACCEPTED_ON_L2", - "execution_status": "SUCCEEDED", - "block_hash": "0x47c3637b57c2b079b93c61539950c17e868a28f46cdef28f88521067f21e943", - "block_number": 0, - "messages_sent": [], - "events": [], - "contract_address": "0x20cfa74ee3564b4cd5435cdace0f9c4d43b939620e4a0bb5076105df0a626c6", - "execution_resources": {"bitwise_builtin_applications":"0x0", "ec_op_builtin_applications":"0x0", "ecdsa_builtin_applications":"0x0", "keccak_builtin_applications":"0x0", "memory_holes":"0x0", "pedersen_builtin_applications":"0x0", "poseidon_builtin_applications":"0x0", "range_check_builtin_applications":"0x0", "steps":"0x1d"} - }`, - }, - "without contract addr": { - index: 2, - expected: `{ - "type": "INVOKE", - "transaction_hash": "0xce54bbc5647e1c1ea4276c01a708523f740db0ff5474c77734f73beec2624", - "actual_fee": "0x0", - "finality_status": "ACCEPTED_ON_L2", - "execution_status": "SUCCEEDED", - "block_hash": "0x47c3637b57c2b079b93c61539950c17e868a28f46cdef28f88521067f21e943", - "block_number": 0, - "messages_sent": [ - { - "from_address": "0x20cfa74ee3564b4cd5435cdace0f9c4d43b939620e4a0bb5076105df0a626c6", - "to_address": "0xc84dd7fd43a7defb5b7a15c4fbbe11cbba6db1ba", - "payload": [ - "0xc", - "0x22" - ] - } - ], - "events": [], - "execution_resources":{"bitwise_builtin_applications":"0x0", "ec_op_builtin_applications":"0x0", "ecdsa_builtin_applications":"0x0", "keccak_builtin_applications":"0x0", "memory_holes":"0x0", "pedersen_builtin_applications":"0x0", "poseidon_builtin_applications":"0x0", "range_check_builtin_applications":"0x0", "steps":"0x1f"} - }`, - }, - } - for name, test := range tests { - t.Run(name, func(t *testing.T) { - txHash := block0.Transactions[test.index].Hash() - mockReader.EXPECT().TransactionByHash(txHash).Return(block0.Transactions[test.index], nil) - mockReader.EXPECT().Receipt(txHash).Return(block0.Receipts[test.index], block0.Hash, block0.Number, nil) - mockReader.EXPECT().L1Head().Return(nil, db.ErrKeyNotFound) - - checkTxReceipt(t, txHash, test.expected) - }) - } - - t.Run("pending receipt", func(t *testing.T) { - i := 2 - expected := `{ - "type": "INVOKE", - "transaction_hash": "0xce54bbc5647e1c1ea4276c01a708523f740db0ff5474c77734f73beec2624", - "actual_fee": "0x0", - "finality_status": "ACCEPTED_ON_L2", - "execution_status": "SUCCEEDED", - "messages_sent": [ - { - "from_address": "0x20cfa74ee3564b4cd5435cdace0f9c4d43b939620e4a0bb5076105df0a626c6", - "to_address": "0xc84dd7fd43a7defb5b7a15c4fbbe11cbba6db1ba", - "payload": [ - "0xc", - "0x22" - ] - } - ], - "events": [], - "execution_resources":{"bitwise_builtin_applications":"0x0", "ec_op_builtin_applications":"0x0", "ecdsa_builtin_applications":"0x0", "keccak_builtin_applications":"0x0", "memory_holes":"0x0", "pedersen_builtin_applications":"0x0", "poseidon_builtin_applications":"0x0", "range_check_builtin_applications":"0x0", "steps":"0x1f"} - }` - - txHash := block0.Transactions[i].Hash() - mockReader.EXPECT().TransactionByHash(txHash).Return(block0.Transactions[i], nil) - mockReader.EXPECT().Receipt(txHash).Return(block0.Receipts[i], nil, uint64(0), nil) - - checkTxReceipt(t, txHash, expected) - }) - - t.Run("accepted on l1 receipt", func(t *testing.T) { - i := 2 - expected := `{ - "type": "INVOKE", - "transaction_hash": "0xce54bbc5647e1c1ea4276c01a708523f740db0ff5474c77734f73beec2624", - "actual_fee": "0x0", - "finality_status": "ACCEPTED_ON_L1", - "execution_status": "SUCCEEDED", - "block_hash": "0x47c3637b57c2b079b93c61539950c17e868a28f46cdef28f88521067f21e943", - "block_number": 0, - "messages_sent": [ - { - "from_address": "0x20cfa74ee3564b4cd5435cdace0f9c4d43b939620e4a0bb5076105df0a626c6", - "to_address": "0xc84dd7fd43a7defb5b7a15c4fbbe11cbba6db1ba", - "payload": [ - "0xc", - "0x22" - ] - } - ], - "events": [], - "execution_resources":{"bitwise_builtin_applications":"0x0", "ec_op_builtin_applications":"0x0", "ecdsa_builtin_applications":"0x0", "keccak_builtin_applications":"0x0", "memory_holes":"0x0", "pedersen_builtin_applications":"0x0", "poseidon_builtin_applications":"0x0", "range_check_builtin_applications":"0x0", "steps":"0x1f"} - }` - - txHash := block0.Transactions[i].Hash() - mockReader.EXPECT().TransactionByHash(txHash).Return(block0.Transactions[i], nil) - mockReader.EXPECT().Receipt(txHash).Return(block0.Receipts[i], block0.Hash, block0.Number, nil) - mockReader.EXPECT().L1Head().Return(&core.L1Head{ - BlockNumber: block0.Number, - BlockHash: block0.Hash, - StateRoot: block0.GlobalStateRoot, - }, nil) - - checkTxReceipt(t, txHash, expected) - }) - t.Run("reverted", func(t *testing.T) { - expected := `{ - "type": "INVOKE", - "transaction_hash": "0x19abec18bbacec23c2eee160c70190a48e4b41dd5ff98ad8f247f9393559998", - "actual_fee": "0x247aff6e224", - "execution_status": "REVERTED", - "finality_status": "ACCEPTED_ON_L2", - "block_hash": "0x76e0229fd0c36dda2ee7905f7e4c9b3ebb78d98c4bfab550bcb3a03bf859a6", - "block_number": 304740, - "messages_sent": [], - "events": [], - "revert_reason": "Error in the called contract (0x00b1461de04c6a1aa3375bdf9b7723a8779c082ffe21311d683a0b15c078b5dc):\nError at pc=0:25:\nGot an exception while executing a hint.\nCairo traceback (most recent call last):\nUnknown location (pc=0:731)\nUnknown location (pc=0:677)\nUnknown location (pc=0:291)\nUnknown location (pc=0:314)\n\nError in the called contract (0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7):\nError at pc=0:104:\nGot an exception while executing a hint.\nCairo traceback (most recent call last):\nUnknown location (pc=0:1678)\nUnknown location (pc=0:1664)\n\nError in the called contract (0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7):\nError at pc=0:6:\nGot an exception while executing a hint: Assertion failed, 0 % 0x800000000000011000000000000000000000000000000000000000000000001 is equal to 0\nCairo traceback (most recent call last):\nUnknown location (pc=0:1238)\nUnknown location (pc=0:1215)\nUnknown location (pc=0:836)\n", - "execution_resources":{"bitwise_builtin_applications":"0x0", "ec_op_builtin_applications":"0x0", "ecdsa_builtin_applications":"0x0", "keccak_builtin_applications":"0x0", "memory_holes":"0x0", "pedersen_builtin_applications":"0x0", "poseidon_builtin_applications":"0x0", "range_check_builtin_applications":"0x0","steps":"0x0"} - }` - - integClient := feeder.NewTestClient(t, &utils.Integration) - integGw := adaptfeeder.New(integClient) - - blockWithRevertedTxn, err := integGw.BlockByNumber(context.Background(), 304740) - require.NoError(t, err) - - revertedTxnIdx := 1 - revertedTxnHash := blockWithRevertedTxn.Transactions[revertedTxnIdx].Hash() - - mockReader.EXPECT().TransactionByHash(revertedTxnHash).Return(blockWithRevertedTxn.Transactions[revertedTxnIdx], nil) - mockReader.EXPECT().Receipt(revertedTxnHash).Return(blockWithRevertedTxn.Receipts[revertedTxnIdx], - blockWithRevertedTxn.Hash, blockWithRevertedTxn.Number, nil) - mockReader.EXPECT().L1Head().Return(nil, db.ErrKeyNotFound) - - checkTxReceipt(t, revertedTxnHash, expected) - }) - - t.Run("v3 tx", func(t *testing.T) { - expected := `{ - "block_hash": "0x50e864db6b81ce69fbeb70e6a7284ee2febbb9a2e707415de7adab83525e9cd", - "block_number": 319132, - "execution_status": "SUCCEEDED", - "finality_status": "ACCEPTED_ON_L2", - "transaction_hash": "0x49728601e0bb2f48ce506b0cbd9c0e2a9e50d95858aa41463f46386dca489fd", - "messages_sent": [], - "events": [ - { - "from_address": "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", - "keys": [ - "0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9" - ], - "data": [ - "0x3f6f3bc663aedc5285d6013cc3ffcbc4341d86ab488b8b68d297f8258793c41", - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x16d8b4ad4000", - "0x0" - ] - }, - { - "from_address": "0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d", - "keys": [ - "0xa9fa878c35cd3d0191318f89033ca3e5501a3d90e21e3cc9256bdd5cd17fdd" - ], - "data": [ - "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "0x18ad8494375bc00", - "0x0", - "0x18aef21f822fc00", - "0x0" - ] - } - ], - "execution_resources": {"bitwise_builtin_applications":"0x0", "ec_op_builtin_applications":"0x0", "ecdsa_builtin_applications":"0x0", "keccak_builtin_applications":"0x0", "memory_holes":"0x4", "pedersen_builtin_applications":"0x0", "poseidon_builtin_applications":"0x0", "range_check_builtin_applications":"0x13", "steps":"0x267"}, - "actual_fee": "0x16d8b4ad4000", - "type": "INVOKE" - }` - - integClient := feeder.NewTestClient(t, &utils.Integration) - integGw := adaptfeeder.New(integClient) - - block, err := integGw.BlockByNumber(context.Background(), 319132) - require.NoError(t, err) - - index := 0 - txnHash := block.Transactions[index].Hash() - - mockReader.EXPECT().TransactionByHash(txnHash).Return(block.Transactions[index], nil) - mockReader.EXPECT().Receipt(txnHash).Return(block.Receipts[index], - block.Hash, block.Number, nil) - mockReader.EXPECT().L1Head().Return(nil, db.ErrKeyNotFound) - - checkTxReceipt(t, txnHash, expected) - }) -} - func TestAddTransactionUnmarshal(t *testing.T) { tests := map[string]string{ "deploy account v3": `{ @@ -1050,7 +529,7 @@ func TestAddTransactionUnmarshal(t *testing.T) { } func TestAddTransaction(t *testing.T) { - n := utils.Ptr(utils.Integration) + n := utils.Ptr(utils.Sepolia) gw := adaptfeeder.New(feeder.NewTestClient(t, n)) txWithoutClass := func(hash string) rpc.BroadcastedTransaction { tx, err := gw.Transaction(context.Background(), utils.HexToFelt(t, hash)) @@ -1064,232 +543,259 @@ func TestAddTransaction(t *testing.T) { expectedJSON string }{ "invoke v0": { - txn: txWithoutClass("0x5e91283c1c04c3f88e4a98070df71227fb44dea04ce349c7eb379f85a10d1c3"), + txn: txWithoutClass("0x1481f9561ab004a5b15e5a4b2691ddfc89d1a2a10bdb25c57350fa68c936bd2"), expectedJSON: `{ - "transaction_hash": "0x5e91283c1c04c3f88e4a98070df71227fb44dea04ce349c7eb379f85a10d1c3", - "version": "0x0", - "max_fee": "0x0", - "signature": [], - "entry_point_selector": "0x218f305395474a84a39307fa5297be118fe17bf65e27ac5e2de6617baa44c64", - "calldata": [ - "0x79631f37538379fc32739605910733219b836b050766a2349e93ec375e62885", - "0x0" - ], - "contract_address": "0x2cbc1f6e80a024900dc949914c7692f802ba90012cda39115db5640f5eca847", - "type": "INVOKE_FUNCTION" - }`, + "transaction_hash": "0x1481f9561ab004a5b15e5a4b2691ddfc89d1a2a10bdb25c57350fa68c936bd2", + "version": "0x0", + "contract_address": "0x4a5889207f54a646bbc170c177549357105aa79dba9493ec34eea9f73ebc278", + "type": "INVOKE_FUNCTION", + "max_fee": "0x2386f26fc10000", + "signature": [ + "0x668c99e35f5e4bf8709d657c8f0f341770b05427594a9c6e6e564da301303dc", + "0x668c99e35f5e4bf8709d657c8f0f341770b05427594a9c6e6e564da301303dc" + ], + "calldata": [ + "0x2", + "0x30e93180b2e00b12c8c9d26d91ddef36fa36d3d4b346747ee26bff3562474fe", + "0x27f806b163e00b12dc7f2e54f3865ceba98cadef57cc65c6e10f64195ccd015", + "0x1", + "0x0", + "0x30e93180b2e00b12c8c9d26d91ddef36fa36d3d4b346747ee26bff3562474fe", + "0x27f806b163e00b12dc7f2e54f3865ceba98cadef57cc65c6e10f64195ccd015", + "0x1", + "0x0" + ], + "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad" + }`, }, "invoke v1": { - txn: txWithoutClass("0x45d9c2c8e01bacae6dec3438874576a4a1ce65f1d4247f4e9748f0e7216838"), + txn: txWithoutClass("0xacb2e8bdaeb179c9e3cdf5b21c7697ea7cda240a7f59f65fe243bcfd57d60a"), expectedJSON: `{ - "transaction_hash": "0x45d9c2c8e01bacae6dec3438874576a4a1ce65f1d4247f4e9748f0e7216838", - "version": "0x1", - "max_fee": "0x2386f26fc10000", - "signature": [ - "0x89aa2f42e07913b6dee313c3ef680efb99892feb3e2d08287e01e63418da7a", - "0x458fb4c942d5407d8c1ef1557d29487ab8217842d28a907d75ee0828243361" - ], - "nonce": "0x99d", - "sender_address": "0x219937256cd88844f9fdc9c33a2d6d492e253ae13814c2dc0ecab7f26919d46", - "calldata": [ - "0x1", - "0x7812357541c81dd9a320c2339c0c76add710db15f8cc29e8dde8e588cad4455", - "0x7772be8b80a8a33dc6c1f9a6ab820c02e537c73e859de67f288c70f92571bb", - "0x0", - "0x3", - "0x3", - "0x24b037cd0ffd500467f4cc7d0b9df27abdc8646379e818e3ce3d9925fc9daec", - "0x4b7797c3f6a6d9b1a28bbd6645d3f009bd12587581e21011aeb9b176f801ab0", - "0xdfeaf5f022324453e6058c00c7d35ee449c1d01bb897ccb5df20f697d98f26" - ], - "type": "INVOKE_FUNCTION" - }`, + "transaction_hash": "0xacb2e8bdaeb179c9e3cdf5b21c7697ea7cda240a7f59f65fe243bcfd57d60a", + "version": "0x1", + "type": "INVOKE_FUNCTION", + "sender_address": "0x164b9e8615a1fe540ebda04ed0f38e945e06d9f892e120d265b856167ec573d", + "max_fee": "0x82be30cf82d5", + "signature": [ + "0x312aa541c46537e0199955ffa9f2c056c22b7f1cd3fb92f8db10f7e03a0eb6b", + "0x6738dc3ead88cf3f21be0a22e4c59e7d21d15a657c587b3ddb0e3c5f7bd1721" + ], + "calldata": [ + "0x3", + "0x30058f19ed447208015f6430f0102e8ab82d6c291566d7e73fe8e613c3d2ed", + "0xa72371689866be053cc37a071de4216af73c9ffff96319b2576f7bf1e15290", + "0x4", + "0x5acb0547f4b06e5db4f73f5b6ea7425e9b59b6adc885ed8ecc4baeefae8b8d8", + "0xa9f7640400", + "0x11429301fb9b6dd9aa913b6bd05fa63a7ce57f7cfd56766c5ce7c9dc27433d", + "0x517567ac7026ce129c950e6e113e437aa3c83716cd61481c6bb8c5057e6923e", + "0x517567ac7026ce129c950e6e113e437aa3c83716cd61481c6bb8c5057e6923e", + "0xcaffbd1bd76bd7f24a3fa1d69d1b2588a86d1f9d2359b13f6a84b7e1cbd126", + "0x5", + "0x5265736f6c766552616e646f6d4576656e74", + "0x3", + "0x0", + "0x1", + "0x101d", + "0x517567ac7026ce129c950e6e113e437aa3c83716cd61481c6bb8c5057e6923e", + "0xcaffbd1bd76bd7f24a3fa1d69d1b2588a86d1f9d2359b13f6a84b7e1cbd126", + "0xa", + "0x4163636570745072657061696441677265656d656e74", + "0x8", + "0x4", + "0x18650500000001", + "0x1", + "0x1", + "0x101d", + "0x2819a0", + "0x1", + "0x101d" + ], + "nonce": "0x323" + }`, }, "invoke v3": { - txn: txWithoutClass("0x49728601e0bb2f48ce506b0cbd9c0e2a9e50d95858aa41463f46386dca489fd"), + txn: txWithoutClass("0x6e7ae47173b6935899320dd41d540a27f8d5712febbaf13fe8d8aeaf4ac9164"), expectedJSON: `{ - "transaction_hash": "0x49728601e0bb2f48ce506b0cbd9c0e2a9e50d95858aa41463f46386dca489fd", - "version": "0x3", - "signature": [ - "0x71a9b2cd8a8a6a4ca284dcddcdefc6c4fd20b92c1b201bd9836e4ce376fad16", - "0x6bef4745194c9447fdc8dd3aec4fc738ab0a560b0d2c7bf62fbf58aef3abfc5" - ], - "nonce": "0xe97", - "nonce_data_availability_mode": 0, - "fee_data_availability_mode": 0, - "resource_bounds": { - "L1_GAS": { - "max_amount": "0x186a0", - "max_price_per_unit": "0x5af3107a4000" - }, - "L2_GAS": { - "max_amount": "0x0", - "max_price_per_unit": "0x0" - } + "transaction_hash": "0x6e7ae47173b6935899320dd41d540a27f8d5712febbaf13fe8d8aeaf4ac9164", + "version": "0x3", + "type": "INVOKE_FUNCTION", + "sender_address": "0x6247aaebf5d2ff56c35cce1585bf255963d94dd413a95020606d523c8c7f696", + "signature": [ + "0x1", + "0x4235b7a9cad6024cbb3296325e23b2a03d34a95c3ee3d5c10e2b6076c257d77", + "0x439de4b0c238f624c14c2619aa9d190c6c1d17f6556af09f1697cfe74f192fc" + ], + "calldata": [ + "0x1", + "0x19c92fa87f4d5e3be25c3dd6a284f30282a07e87cd782f5fd387b82c8142017", + "0x3059098e39fbb607bc96a8075eb4d17197c3a6c797c166470997571e6fa5b17", + "0x0" + ], + "nonce": "0x8", + "resource_bounds": { + "L1_GAS": { + "max_amount": "0xa0", + "max_price_per_unit": "0xe91444530acc" }, - "tip": "0x0", - "paymaster_data": [], - "sender_address": "0x3f6f3bc663aedc5285d6013cc3ffcbc4341d86ab488b8b68d297f8258793c41", - "calldata": [ - "0x2", - "0x450703c32370cf7ffff540b9352e7ee4ad583af143a361155f2b485c0c39684", - "0x27c3334165536f239cfd400ed956eabff55fc60de4fb56728b6a4f6b87db01c", - "0x0", - "0x4", - "0x4c312760dfd17a954cdd09e76aa9f149f806d88ec3e402ffaf5c4926f568a42", - "0x5df99ae77df976b4f0e5cf28c7dcfe09bd6e81aab787b19ac0c08e03d928cf", - "0x4", - "0x1", - "0x5", - "0x450703c32370cf7ffff540b9352e7ee4ad583af143a361155f2b485c0c39684", - "0x5df99ae77df976b4f0e5cf28c7dcfe09bd6e81aab787b19ac0c08e03d928cf", - "0x1", - "0x7fe4fd616c7fece1244b3616bb516562e230be8c9f29668b46ce0369d5ca829", - "0x287acddb27a2f9ba7f2612d72788dc96a5b30e401fc1e8072250940e024a587" - ], - "account_deployment_data": [], - "type": "INVOKE_FUNCTION" - }`, - }, - "deploy v0": { - txn: txWithoutClass("0x2e3106421d38175020cd23a6f1bff87989a64cae6a679c54c7710a033d88faa"), - expectedJSON: `{ - "transaction_hash": "0x2e3106421d38175020cd23a6f1bff87989a64cae6a679c54c7710a033d88faa", - "version": "0x0", - "contract_address_salt": "0x5de1c0a37865820ce4896872e78da6877b0a8eede3d363131734556a8815d52", - "class_hash": "0x71468bd837666b3a05cca1a5363b0d9e15cacafd6eeaddfbc4f00d5c7b9a51d", - "constructor_calldata": [], - "type": "DEPLOY" - }`, + "L2_GAS": { + "max_amount": "0x0", + "max_price_per_unit": "0x0" + } + }, + "tip": "0x0", + "nonce_data_availability_mode": 0, + "fee_data_availability_mode": 0, + "account_deployment_data": [], + "paymaster_data": [] + }`, }, "declare v1": { - txn: txWithoutClass("0x2d667ed0aa3a8faef96b466972079826e592ec0aebefafd77a39f2ed06486b4"), + txn: txWithoutClass("0x1e36b82b3f24251e9ed8e693d5830c64790238a22ec7e46655083231d222df"), expectedJSON: `{ - "transaction_hash": "0x2d667ed0aa3a8faef96b466972079826e592ec0aebefafd77a39f2ed06486b4", - "version": "0x1", - "max_fee": "0x2386f26fc10000", - "signature": [ - "0x17872d12092aa60331394f514de908309fdba185997fd3d0be1e2896cd1e053", - "0x66124ebfe1a34809b2223a9707ac796dc6f4b6310cb002bda1e4c062a4b2867" - ], - "nonce": "0x1078", - "class_hash": "0x772164c9d6179a89e7f1167f099219f47d752304b16ed01f081b6e0b45c93c3", - "sender_address": "0x52125c1e043126c637d1436d9551ef6c4f6e3e36945676bbd716a56e3a41b7a", - "type": "DECLARE" - }`, + "transaction_hash": "0x1e36b82b3f24251e9ed8e693d5830c64790238a22ec7e46655083231d222df", + "version": "0x1", + "class_hash": "0x3ae2f9b340e70e3c6ae2101715ccde645f3766283bd3bfade4b5ce7cd7dc9c6", + "type": "DECLARE", + "sender_address": "0x472aa8128e01eb0df145810c9511a92852d62a68ba8198ce5fa414e6337a365", + "max_fee": "0x3c7ecb3ed13c00", + "signature": [ + "0x4bd022ad8f795f651008786e01f5d33e4c93c5453717e5885c36072ccb87ef5", + "0x6ebc4d2b5ac856fbfaa897435a747c00791f81be51220129e93ba486ba9947f" + ], + "nonce": "0x9" + }`, }, "declare v2": { txn: func() rpc.BroadcastedTransaction { - tx := txWithoutClass("0x44b971f7eface29b185f86dd7b3b70acb1e48e0ad459e3a41e06fc42937aaa4") + tx := txWithoutClass("0x327bc9c5d2db0759b775762de8345c390bf852d461f38bddc1dc078c2ec95da") tx.ContractClass = json.RawMessage([]byte(`{"sierra_program": {}}`)) return tx }(), expectedJSON: `{ - "transaction_hash": "0x44b971f7eface29b185f86dd7b3b70acb1e48e0ad459e3a41e06fc42937aaa4", - "version": "0x2", - "max_fee": "0x50c8f30c048", - "signature": [ - "0x42a40a113a4381e5f304fd28a707ba4182609db42062a7f36b9291bf8ae8ae7", - "0x6035bcf022f887c80dbc2b615e927d662637d2213335ee657893dce8ddabe5b" - ], - "nonce": "0x11", - "class_hash": "0x7cb013a4139335cefce52adc2ac342c0110811353e7992baefbe547200223c7", - "contract_class": { - "sierra_program": "H4sIAAAAAAAA/6quBQQAAP//Q7+mowIAAAA=" - }, - "compiled_class_hash": "0x67f7deab53a3ba70500bdafe66fb3038bbbaadb36a6dd1a7a5fc5b094e9d724", - "sender_address": "0x3bb81d22ecd0e0a6f3138bdc5c072ff5726c5add02bcfd5b81cd657a6ae10a8", - "type": "DECLARE" - }`, + "transaction_hash": "0x327bc9c5d2db0759b775762de8345c390bf852d461f38bddc1dc078c2ec95da", + "version": "0x2", + "class_hash": "0x994c025e4d34d3629478e44035b87b3c2407e99ef12bde15a1f284fc13b77e", + "type": "DECLARE", + "sender_address": "0xcee714eaf27390e630c62aa4b51319f9eda813d6ddd12da0ae8ce00453cb4b", + "max_fee": "0x1c47ac44660bc60", + "signature": [ + "0x34a33226068e03d016de3e687b712914316b4b59e95acc08a13c0ff3c2c5d5f", + "0x2d57fca03be8419d3c67071e62fd853643cc8bbf3fcf9247441cd1b729b46ac" + ], + "nonce": "0x10d", + "compiled_class_hash": "0x7291bcf3cf0aed566267c74c6bcf48d9701689c12ce0cfc5ecb5156cacf5dee", + "contract_class": { + "sierra_program": "H4sIAAAAAAAA/6quBQQAAP//Q7+mowIAAAA=" + } + }`, }, "declare v3": { txn: func() rpc.BroadcastedTransaction { - tx := txWithoutClass("0x41d1f5206ef58a443e7d3d1ca073171ec25fa75313394318fc83a074a6631c3") + tx := txWithoutClass("0x1dde7d379485cceb9ec0a5aacc5217954985792f12b9181cf938ec341046491") tx.ContractClass = json.RawMessage([]byte(`{"sierra_program": {}}`)) return tx }(), expectedJSON: `{ - "transaction_hash": "0x41d1f5206ef58a443e7d3d1ca073171ec25fa75313394318fc83a074a6631c3", - "version": "0x3", - "signature": [ - "0x29a49dff154fede73dd7b5ca5a0beadf40b4b069f3a850cd8428e54dc809ccc", - "0x429d142a17223b4f2acde0f5ecb9ad453e188b245003c86fab5c109bad58fc3" - ], - "nonce": "0x1", - "nonce_data_availability_mode": 0, - "fee_data_availability_mode": 0, - "resource_bounds": { - "L1_GAS": { - "max_amount": "0x186a0", - "max_price_per_unit": "0x2540be400" - }, - "L2_GAS": { - "max_amount": "0x0", - "max_price_per_unit": "0x0" - } + "transaction_hash": "0x1dde7d379485cceb9ec0a5aacc5217954985792f12b9181cf938ec341046491", + "version": "0x3", + "class_hash": "0x2404dffbfe2910bd921f5935e628c01e457629fc779420a03b7e5e507212f36", + "type": "DECLARE", + "sender_address": "0x6aac79bb6c90e1e41c33cd20c67c0281c4a95f01b4e15ad0c3b53fcc6010cf8", + "signature": [ + "0x5be36745b03aaeb76712c68869f944f7c711f9e734763b8d0b4e5b834408ea4", + "0x66c9dba8bb26ada30cf3a393a6c26bfd3a40538f19b3b4bfb57c7507962ae79" + ], + "nonce": "0x3", + "compiled_class_hash": "0x5047109bf7eb550c5e6b0c37714f6e0db4bb8b5b227869e0797ecfc39240aa7", + "resource_bounds": { + "L1_GAS": { + "max_amount": "0x1f40", + "max_price_per_unit": "0x5af3107a4000" }, - "tip": "0x0", - "paymaster_data": [], - "sender_address": "0x2fab82e4aef1d8664874e1f194951856d48463c3e6bf9a8c68e234a629a6f50", - "class_hash": "0x5ae9d09292a50ed48c5930904c880dab56e85b825022a7d689cfc9e65e01ee7", - "compiled_class_hash": "0x1add56d64bebf8140f3b8a38bdf102b7874437f0c861ab4ca7526ec33b4d0f8", - "account_deployment_data": [], - "type": "DECLARE", - "contract_class": { - "sierra_program": "H4sIAAAAAAAA/6quBQQAAP//Q7+mowIAAAA=" + "L2_GAS": { + "max_amount": "0x0", + "max_price_per_unit": "0x0" } - }`, + }, + "tip": "0x0", + "nonce_data_availability_mode": 0, + "fee_data_availability_mode": 0, + "account_deployment_data": [], + "paymaster_data": [], + "contract_class": { + "sierra_program": "H4sIAAAAAAAA/6quBQQAAP//Q7+mowIAAAA=" + } + }`, }, "deploy account v1": { - txn: txWithoutClass("0x658f1c44ebf6a1540eac0680956c3a9d315f65d2cb3b53593345905fed3982a"), + txn: txWithoutClass("0x2f1ebaeae4cecb1bda1f2e98ff75152c39afe2a71652f3f404e8f1fe21a7e93"), expectedJSON: `{ - "transaction_hash": "0x658f1c44ebf6a1540eac0680956c3a9d315f65d2cb3b53593345905fed3982a", - "version": "0x1", - "max_fee": "0x2386f273b213da", - "signature": [ - "0x7d31509f555031323050ed226012f0c6361b3dc34f0f5d2c65a76870fd8908b", - "0x58d64f6d39dfb20586da0c40e3d575cab940009cdee6423b03268fd893bd27a" - ], - "nonce": "0x0", - "contract_address_salt": "0x7b9f4b7d6d49b60686004dd850a4b41c818d6eb69e226b8ea37ea025e6830f5", - "class_hash": "0x5a9941d0cc16b8619a3325055472da709a66113afcc6a8ab86055da7d29c5f8", - "constructor_calldata": [ - "0x7b16a9b7bb08d36950aa5d27d4d2c64bfd54f3ae16a0e01f21a6d410cb5179c" - ], - "type": "DEPLOY_ACCOUNT" - }`, + "transaction_hash": "0x2f1ebaeae4cecb1bda1f2e98ff75152c39afe2a71652f3f404e8f1fe21a7e93", + "version": "0x1", + "contract_address_salt": "0x52a760d516f0b5aa0875d018c5331401e5101d97f6ec578071fb9e98df77b86", + "class_hash": "0x29927c8af6bccf3f6fda035981e765a7bdbf18a2dc0d630494f8758aa908e2b", + "constructor_calldata": [ + "0x52a760d516f0b5aa0875d018c5331401e5101d97f6ec578071fb9e98df77b86", + "0x0" + ], + "type": "DEPLOY_ACCOUNT", + "max_fee": "0x2865a35b6642", + "signature": [ + "0x27451728425e8d2ad924cab10a8a5c052682549e5d660e9b9bde85c87a11d85", + "0x34ca83ac537208e87e9e02ae63c46a599d80ef3b080a88dbfe58abdd5039307" + ], + "nonce": "0x0" + }`, }, "deploy account v3": { - txn: txWithoutClass("0x29fd7881f14380842414cdfdd8d6c0b1f2174f8916edcfeb1ede1eb26ac3ef0"), + txn: txWithoutClass("0x138c9f01c27c56ceff5c9adb05f2a025ae4ebeb35ba4ac88572abd23c5623f"), expectedJSON: `{ - "transaction_hash": "0x29fd7881f14380842414cdfdd8d6c0b1f2174f8916edcfeb1ede1eb26ac3ef0", - "version": "0x3", - "signature": [ - "0x6d756e754793d828c6c1a89c13f7ec70dbd8837dfeea5028a673b80e0d6b4ec", - "0x4daebba599f860daee8f6e100601d98873052e1c61530c630cc4375c6bd48e3" - ], - "nonce": "0x0", - "nonce_data_availability_mode": 0, - "fee_data_availability_mode": 0, - "resource_bounds": { - "L1_GAS": { - "max_amount": "0x186a0", - "max_price_per_unit": "0x5af3107a4000" - }, - "L2_GAS": { - "max_amount": "0x0", - "max_price_per_unit": "0x0" - } + "transaction_hash": "0x138c9f01c27c56ceff5c9adb05f2a025ae4ebeb35ba4ac88572abd23c5623f", + "version": "0x3", + "contract_address_salt": "0x202674c5f7f0ee6ea3248496afccc6e27f77fd5634628d07c5710f8a4fbf1a2", + "class_hash": "0x29927c8af6bccf3f6fda035981e765a7bdbf18a2dc0d630494f8758aa908e2b", + "constructor_calldata": [ + "0x202674c5f7f0ee6ea3248496afccc6e27f77fd5634628d07c5710f8a4fbf1a2", + "0x0" + ], + "type": "DEPLOY_ACCOUNT", + "signature": [ + "0x79ec88c0f655e07f49a66bc6d4d9e696cf578addf6a0538f81dc3b47ca66c64", + "0x78d3f2549f6f5b8533730a0f4f76c4277bc1b358f805d7cf66414289ce0a46d" + ], + "nonce": "0x0", + "resource_bounds": { + "L1_GAS": { + "max_amount": "0x1b52", + "max_price_per_unit": "0x15416c61bfea" }, - "tip": "0x0", - "paymaster_data": [], - "contract_address_salt": "0x0", - "class_hash": "0x2338634f11772ea342365abd5be9d9dc8a6f44f159ad782fdebd3db5d969738", - "constructor_calldata": [ - "0x5cd65f3d7daea6c63939d659b8473ea0c5cd81576035a4d34e52fb06840196c" - ], - "type": "DEPLOY_ACCOUNT" - }`, + "L2_GAS": { + "max_amount": "0x0", + "max_price_per_unit": "0x0" + } + }, + "tip": "0x0", + "nonce_data_availability_mode": 0, + "fee_data_availability_mode": 0, + "paymaster_data": [] + }`, + }, + "deploy v0": { + txn: txWithoutClass("0x6d3e06989ee2245139cd677f59b4da7f360a27b2b614a4eb088fdf5862d23ee"), + expectedJSON: `{ + "transaction_hash": "0x6d3e06989ee2245139cd677f59b4da7f360a27b2b614a4eb088fdf5862d23ee", + "version": "0x0", + "contract_address_salt": "0x614b9e0c3cb7a8f4ed73b673eba239c41a172859bf129c4b269c4b8057e21d8", + "class_hash": "0x3131fa018d520a037686ce3efddeab8f28895662f019ca3ca18a626650f7d1e", + "constructor_calldata": [ + "0x69577e6756a99b584b5d1ce8e60650ae33b6e2b13541783458268f07da6b38a", + "0x2dd76e7ad84dbed81c314ffe5e7a7cacfb8f4836f01af4e913f275f89a3de1a", + "0x1", + "0x614b9e0c3cb7a8f4ed73b673eba239c41a172859bf129c4b269c4b8057e21d8" + ], + "type": "DEPLOY" + }`, }, } @@ -1349,9 +855,9 @@ func TestTransactionStatus(t *testing.T) { notFoundTxHash: utils.HexToFelt(t, "0x8c96a2b3d73294667e489bf8904c6aa7c334e38e24ad5a721c7e04439ff9"), }, { - network: utils.Ptr(utils.Integration), - verifiedTxHash: utils.HexToFelt(t, "0x5e91283c1c04c3f88e4a98070df71227fb44dea04ce349c7eb379f85a10d1c3"), - nonVerifiedTxHash: utils.HexToFelt(t, "0x45d9c2c8e01bacae6dec3438874576a4a1ce65f1d4247f4e9748f0e7216838"), + network: utils.Ptr(utils.Sepolia), + verifiedTxHash: utils.HexToFelt(t, "0x1481f9561ab004a5b15e5a4b2691ddfc89d1a2a10bdb25c57350fa68c936bd2"), + nonVerifiedTxHash: utils.HexToFelt(t, "0x1412f2723569be7f627af887d663b83bfc92e3975bb94848182f755ce9960e8"), notFoundTxHash: utils.HexToFelt(t, "0xd7747f3d0ce84b3a19b05b987a782beac22c54e66773303e94ea78cc3c15"), }, } diff --git a/starknet/compiler_test.go b/starknet/compiler_test.go index 68682d08f2..9b8eaaf827 100644 --- a/starknet/compiler_test.go +++ b/starknet/compiler_test.go @@ -22,8 +22,8 @@ func TestCompile(t *testing.T) { }) t.Run("ok", func(t *testing.T) { - cl := feeder.NewTestClient(t, &utils.Integration) - classHash := utils.HexToFelt(t, "0xc6c634d10e2cc7b1db6b4403b477f05e39cb4900fd5ea0156d1721dbb6c59b") + cl := feeder.NewTestClient(t, &utils.Mainnet) + classHash := utils.HexToFelt(t, "0x1338d85d3e579f6944ba06c005238d145920afeb32f94e3a1e234d21e1e9292") classDef, err := cl.ClassDefinition(context.Background(), classHash) require.NoError(t, err)