From ccd0bc9a1daf01bc065bc5138a1f5df3ef8c5050 Mon Sep 17 00:00:00 2001 From: Lech <88630083+Artemka374@users.noreply.github.com> Date: Mon, 11 Mar 2024 21:26:58 +0200 Subject: [PATCH] fmt/build sqlx --- ...4e7dfacfcf625e057b99924c245de03c2888c.json | 15 ++ ...381d82925556a4801f678b8786235d525d784.json | 16 ++ ...07703b2581dda4fe3c00be6c5422c78980c4b.json | 20 ++ ...82d56bbace9013f1d95ea0926eef1fb48039b.json | 34 +++ ...a1b4ba7fe355ebc02ea49a054aa073ce324ba.json | 15 ++ ...c2563a3e061bcc6505d8c295b1b2517f85f1b.json | 20 ++ ...c7e3b6bdb2a08149d5f443310607d3c78988c.json | 22 ++ ...2b5ea100f59295cd693d14ee0d5ee089c7981.json | 20 ++ ...994723ebe57b3ed209069bd3db906921ef1a3.json | 28 +++ ...a2803cd147dec7450d1f81a41aea8dcf3be93.json | 22 ++ ...80112ce326bcf4bb38a00366bd24e38881bb2.json | 26 -- ...33d196907ebd599e926d305e5ef9f26afa2fa.json | 24 ++ ...4710daa723e2d9a23317c347f6081465c3643.json | 52 ++++ ...5d95fc47eb6bedc32f4d824aac9b2b6f96faf.json | 15 ++ ...1e4ee6682a89fb86f3b715a240805d44e6d87.json | 15 ++ ...c6f03469d78bf4f45f5fd1eaf37171db2f04a.json | 20 ++ ...cde721ca1c652ae2f8db41fb75cecdecb674.json} | 8 +- ...fced141fb29dd8b6c32dd2dc3452dc294fe1f.json | 23 ++ ...e5f7edcafa4fc6757264a96a46dbf7dd1f9cc.json | 31 +++ ...bc6e326e15dca141050bc9d7dacae98a430e8.json | 22 ++ ...dfbf962636347864fc365fafa46c7a2da5f30.json | 22 ++ ...a52daa202279bf612a9278f663deb78bc6e41.json | 22 ++ ...661a097308d9f81024fdfef24a14418202730.json | 22 ++ ...5f7cef0d50c4938105684971e8adc86bb6366.json | 23 -- ...700a95e4c37a7a18531b3cdf120394cb055b9.json | 22 ++ ...c68e8e15a831f1a45dc3b2240d5c6809d5ef2.json | 82 ++++++ ...50dd2778c0da29697d31710e8b507629ba5c4.json | 20 -- ...a2d505a1aabf52ff4136d2ed1b39c70dd1632.json | 230 +++++++++++++++++ ...bfdf10fb1cb43781219586c169fb976204331.json | 22 ++ ...9f3f0b5d629fdb5c36ea1bfb93ed246be968e.json | 88 +++++++ ...7ea964610e131d45f720f7a7b2a130fe9ed89.json | 17 ++ ...5d98a3d9f7df162ae22a98c3c7620fcd13bd2.json | 80 ++++++ ...62786c58e54f132588c48f07d9537cf21d3ed.json | 22 ++ ...7b84c5fd52f0352f0f0e311d054cb9e45b07e.json | 22 ++ ...0a01a6c7cbe9297cbb55d42533fddc18719b6.json | 20 ++ ...68cee71742b732112038a642e2a07305053c2.json | 12 + ...4d26e48e968c79834858c98b7a7f9dfc81910.json | 14 ++ ...099c4591ce3f8d51f3df99db0165e086f96af.json | 22 ++ ...5fc7f60618209d0132e7937a1347b7e94b212.json | 20 ++ ...710ce910d0c9138d85cb55e16459c757dea03.json | 20 ++ ...de995ddddc621ee2149f08f905af2d8aadd03.json | 34 +++ ...cd9b0128f82306e27e4c7258116082a54ab95.json | 29 +++ ...8eeab159533211d2ddbef41e6ff0ba937d04a.json | 14 ++ ...16065fcad42c6b621efb3a135a16b477dcfd9.json | 98 ++++++++ ...6ca08324bc86a72e4ea85c9c7962a6c8c9e30.json | 16 ++ ...5234d536b064951a67d826ac49b7a3a095a1a.json | 28 +++ ...717b0dd3cec64b0b29f59b273f1c6952e01da.json | 22 ++ ...ae942bab5d71daaed7017e3fa62dc5e42ab0a.json | 32 +++ ...98012b034605dfb4c48379844085b71e9e381.json | 22 -- ...7a66d1e38fb6ca706c2affd4607d77be38de9.json | 28 +++ ...a45f005141b01eac26946251bba68e9276acf.json | 200 +++++++++++++++ ...07997b7e24682da56f84d812da2b9aeb14ca2.json | 40 +++ ...6381a9c4165e2727542eaeef3bbedd13a4f20.json | 15 ++ ...42d4ef93ca238fd2fbc9155e6d012d0d1e113.json | 15 ++ ...23efc18e51e6d4092188e081f4fafe92fe0ef.json | 34 +++ ...095596297be0d728a0aa2d9b180fb72de222b.json | 22 ++ ...83f115cd97586bd795ee31f58fc14e56d58cb.json | 14 ++ ...52964b268b93c32fd280c49bf9f932884300d.json | 20 ++ ...cf831d63d692111d87282aed8e85df6b0411f.json | 104 ++++++++ ...a8c13d04079683e09c65f7f4e76a9987e2ab4.json | 106 ++++++++ ...ed5d8007789c0fc1eab948f6d7339dfb69147.json | 22 ++ ...00f7b1176d59a83520288f5428b67ebd52130.json | 14 ++ ...45d57f1f8b2558fdb374bf02e84d3c825a23.json} | 4 +- ...bffc78d92adb3c1e3ca60b12163e38c67047e.json | 22 ++ ...feb5f094160627bc09db4bda2dda9a8c11c44.json | 15 ++ ...76085385c3a79d72f49669b4215a9454323c2.json | 22 ++ ...78f42a877039094c3d6354928a03dad29451a.json | 15 ++ ...40e73a2778633bbf9d8e591ec912634639af9.json | 232 +++++++++++++++++ ...eb89c728357c0744f209090824695a5d35fa3.json | 22 ++ ...119a0a60dc9804175b2baf8b45939c74bd583.json | 15 ++ ...05d7d1c9e649663f6e9444c4425821d0a5b71.json | 22 ++ ...87ed365c0369f94bc457cb162a5c876a123c7.json | 16 ++ ...5ef6676b2eac623c0f78634cae9072fe0498a.json | 16 ++ ...95f3823926f69cb1d54874878e6d6c301bfd8.json | 20 ++ ...b04ba5868d1897553df85aac15b169ebb0732.json | 28 +++ ...26b0b3185a231bbf0b8b132a1a95bc157e827.json | 34 +++ ...b51dea32e37cb8c51f1dd5d82c15eddc48e6b.json | 94 +++++++ ...ea7a878613cf62f7fb9b94c5145dc8d1da674.json | 62 +++++ ...2f7e49cd6600bd3d56cf41795c2c9e082e4c.json} | 6 +- ...ac77b63879ab97a32eed8392b48cc46116a28.json | 14 ++ ...96ec397767a063dc21aa3add974cb9b070361.json | 16 ++ ...38fc90b18155e3435f58d9888fa50d92042f7.json | 94 +++++++ ...d51c3c1cbd9ba8df9d44a29ff96186e35b700.json | 26 -- ...9360a7eab2efc70d97b901f8948f6909d4cd2.json | 22 ++ ...b249026665c9fb17b6f53a2154473547cbbfd.json | 22 ++ ...bcae561c0eea2b1cd8beb245b0cc66ebffcaa.json | 119 --------- ...e03def94f4bf4674def1893e2232be80f57a0.json | 31 +++ ...4cee5c602d275bb812022cc8fdabf0a60e151.json | 56 +++++ ...4de79b67833f17d252b5b0e8e00cd6e75b5c1.json | 20 ++ ...c5437752a4cf3ac92ec09b334089a8dc5b4ca.json | 106 ++++++++ ...ee38f07b52a709bfd5f3dbab5b4cfef463f1f.json | 20 -- ...159cf509cf27adf9afdbe61bd867e536b7e47.json | 202 +++++++++++++++ ...6ea7ef2c1178b1b0394a17442185b79f2d77d.json | 22 ++ ...de366f88c20d00a8d928b6cf4caae0702b333.json | 17 -- ...c026c3181f42a49f1f4b6e227c95641931a54.json | 22 ++ ...ec427a099492905a1feee512dc43f39d10047.json | 15 ++ ...162d717ffcf46fdf5d2ce5d32555353b6da6b.json | 14 ++ ...a8d4768c6a803a1a90889e5a1b8254c315231.json | 22 ++ ...1397212b4767039a6c0e22697cf40969729af.json | 56 +++++ ...252f26335699a4e7f0347d7e894320245271d.json | 15 ++ ...ecd50a04799ffd36be0e17c56f47fcdbc8f60.json | 14 ++ ...cfb3ba0659b6fcc582e174ee80601b54f89d9.json | 35 +++ ...325fad494a512ba92df95439d2d7fe0f3a285.json | 23 ++ ...40e7eb9f598999c28015a504605f88bf84b33.json | 100 ++++++++ ...662bf3bfdda11bb57f65db4980982a4200bed.json | 106 ++++++++ ...5bb2036d21f60d4c6934f9145730ac35c04de.json | 20 ++ ...677d57040037da0e07cef2c7b7246851a3703.json | 82 ++++++ ...97b16599abaf51df0f19effe1a536376cf6a6.json | 28 +++ ...fa5c8bf46bc0cea4ac2b25ecde236c30ae32d.json | 44 ++++ ...f00e82b0b3ad9ae36bf4fe44d7e85b74c6f49.json | 20 ++ ...b5b5cc7e37dd6a607e9453e822e34ba77cdc3.json | 23 -- ...8f24785ae8bd2b4579203f05379e757a56f2b.json | 23 ++ ...c171cd0e4d38bd6e9cfec58b2d7f53a3204e1.json | 235 ++++++++++++++++++ ...528f012c2ecaebf6622ca1ae481045604e58d.json | 21 ++ ...3ce80f9b2b27758651ccfc09df61a4ae8a363.json | 100 ++++++++ ...2e14fa4c1c4fdad16eff011011878af897946.json | 22 -- ...fadbcfc343374fad173df0cc8db38419a9726.json | 14 ++ ...70d67840b2484ea3a03ac49eb3d50ea153163.json | 124 +++++++++ ...b734d5d255e36e48668b3bfc25a0f86ea52e7.json | 40 +++ ...91a8d67abcdb743a619ed0d1b9c16206a3c20.json | 12 + ...3260b49ce42daaf9dbe8075daf0a8e0ad9914.json | 12 + ...ab01cb2c55bf86d2c8c99abb1b7ca21cf75c0.json | 14 ++ ...a82f1af696fcc8f7484eaf255d5311589ee39.json | 14 ++ ...54a701146f4b2dc92361f42598a5f9a72c36b.json | 23 ++ ...f45ef713ef7f9909ce26653faceddb549a383.json | 106 ++++++++ ...eb12db58d0f15680b1467df0c13d49079d130.json | 22 ++ ...8a58479487686d774e6b2b1391347bdafe06d.json | 29 +++ ...2826095e9290f0c1157094bd0c44e06012e42.json | 232 +++++++++++++++++ ...98129b44534062f524823666ed432d2fcd345.json | 12 + ...f396f9d193615d70184d4327378a7fc8a5665.json | 30 +++ ...26313c255ce356a9a4e25c098484d3129c914.json | 14 ++ ...7f92c4cfad9313b1461e12242d9becb59e0b0.json | 22 ++ ...4a42b4ead6964edd17bfcacb4a828492bba60.json | 20 ++ ...dcf2324f380932698386aa8f9751b1fa24a7b.json | 15 ++ ...6bf94a013e49bf50ce23f4de4968781df0796.json | 15 ++ ...d7d59a34f97285e855d5bd67f28f6f4ff1d4e.json | 16 ++ ...b139e943f3ad2a41387b610606a42b7f03283.json | 29 +++ ...77b39429d56072f63b3530c576fb31d7a56f9.json | 18 ++ ...87f1fb2f138d9a2231477fcaae148c50dbb8a.json | 26 -- ...99f9b8679d770b3d1ca755c42ee264342da03.json | 25 ++ ...534014b9ab9ca7725e14fb17aa050d9f35eb8.json | 23 ++ ...0c5f885240d99ea69140a4636b00469d08497.json | 22 ++ ...c70aff49e60b7def3d93b9206e650c259168b.json | 20 ++ ...30198c2651022c65eb9e04125356fcf52ddfc.json | 20 ++ ...f2aed7049c3f44a6d25556967ea867e0caf25.json | 22 ++ ...1af63b86e8da6d908d48998012231e1d66a60.json | 29 +++ ...b4207b69cc48b4ba648e797211631be612b69.json | 28 +++ ...567e2667c63a033baa6b427bd8a0898c08bf2.json | 22 ++ ...02c690c33686c889d318b1d64bdd7fa6374db.json | 20 ++ ...c8dc4bd57e32dfefe1017acba9a15fc14b895.json | 36 +++ ...2767e112b95f4d103c27acd6f7ede108bd300.json | 16 ++ ...4125a2633ddb6abaa129f2b12389140d83c3f.json | 40 +++ ...f0a9676e26f422506545ccc90b7e8a36c8d47.json | 35 +++ ...d9b6a1a6fe629f9a02c8e33330a0efda64068.json | 32 +++ ...4561347b81f8931cc2addefa907c9aa9355e6.json | 82 ++++++ ...1e30606fddf6631c859ab03819ec476bcf005.json | 22 ++ ...578179e6269c6ff36877cedee264067ccdafc.json | 65 +++++ ...e3b0fd67aa1f5f7ea0de673a2fbe1f742db86.json | 22 ++ ...c9317c01d6e35db3b07d0a31f436e7e3c7c40.json | 14 ++ ...8e221a8ef9014458cc7f1dbc60c056a0768a0.json | 16 ++ ...6a834aeac9156b974ff225d734683c1905469.json | 28 +++ ...71bd180729779a0e98ae7a6bb4386aca99716.json | 28 +++ ...5094de508af93f4085be7cf3b54b1e8ecdadd.json | 80 ++++++ ...4470914b52e2d714e9deb903d62a5d66f0e04.json | 44 ++++ ...2cfbaf09164aecfa5eed8d7142518ad96abea.json | 22 ++ ...d92f5a547150590b8c221c4065eab11175c7a.json | 20 ++ ...d7cbb0bc526ebe61a07f735d4ab587058b22c.json | 22 ++ ...a69138206dfeb41f3daff4a3eef1de0bed4e4.json | 16 ++ ...5d93e391600ab9da2e5fd4e8b139ab3d77583.json | 15 ++ ...de45f8f3f3b6cf2e4136f25a1c3ab85d92668.json | 15 ++ ...e2757dbc13be6b30f5840744e5e0569adc66e.json | 22 ++ ...2bef649a6db197a36aca098cd8054909d82e9.json | 118 --------- ...9bdc9efc6b89fc0444caf8271edd7dfe4a3bc.json | 20 ++ ...cd6ca26aa2fa565fcf208b6985f461c1868f2.json | 28 +++ ...63f436a4f16dbeb784d0d28be392ad96b1c49.json | 14 ++ ...895006e23ec73018f4b4e0a364a741f5c9781.json | 22 ++ ...8cc77bd2dcee4a04d1afc9779714854623a79.json | 94 +++++++ ...61b86b1abd915739533f9982fea9d8e21b9e9.json | 14 ++ ...0c2cfff08e6fef3c3824d20dfdf2d0f73e671.json | 34 +++ ...5386a2fd53492f3df05545edbfb0ec0f059d2.json | 15 ++ ...697e36b3c2a997038c30553f7727cdfa17361.json | 20 ++ ...973d18d45c4a200a60d318cdb1222d63ccaa.json} | 6 +- ...c332a122d0b88271ae0127c65c4612b41a619.json | 108 ++++++++ ...180abbd76956e073432af8d8500327b74e488.json | 22 ++ ...9c9a85e3c24fca1bf87905f7fc68fe2ce3276.json | 16 ++ ...85c5196c431363802b6b988939c99853b9c97.json | 23 -- ...1731a10b332fec68f4a1e56edec4df71ccaff.json | 205 +++++++++++++++ ...f67d2ef1428c61ae84003c9b52b03204d1f0a.json | 14 ++ ...a4b4e2af48907fa9321064ddb24ac02ab17cd.json | 20 ++ ...709dbee508ad6d1cae43e477cf1bef8cb4aa9.json | 23 ++ ...abda70cb9c56ae3e30dc0a8257e43d6714155.json | 94 +++++++ ...379f3b2e9ff1bc6e8e38f473fb4950c8e4b77.json | 20 ++ ...c1d66aeaeb6e2d36fddcf96775f01716a8a74.json | 14 ++ ...432d865852afe0c60e11a2c1800d30599aa61.json | 14 ++ ...8aa0f8525832cb4075e831c0d4b23c5675b99.json | 24 ++ ...7956350786f3596c7302bdeb8d813f9fbf621.json | 106 ++++++++ ...9d0e2d571533d4d5f683919987b6f8cbb00e0.json | 15 ++ ...38d60d6e93bcb34fd20422e227714fccbf6b7.json | 34 +++ ...0fb28594859564a0f888eae748ad1f9fcede5.json | 22 ++ ...c116162becce06841476128f864b6028129df.json | 12 + ...2b7c4d79cbd404e0267794ec203df0cbb169d.json | 20 ++ ...0d7eaeeb4549ed59b58f8d984be2a22a80355.json | 22 ++ ...03d8bd356f2f9cc249cd8b90caa5a8b5918e3.json | 23 ++ ...16f8cc32e365e2ffbd17dc99885de427f2777.json | 22 ++ ...bed26c831730944237b74bed98869c83b3ca5.json | 28 +++ ...b3b22ea2cd184932fcd59f5931239c7a78003.json | 94 +++++++ ...b4afd384063ae394a847b26304dd18d490ab4.json | 28 +++ ...2929e051270056ebf113a657a464f89c7fd57.json | 33 +++ ...32432295b2f7ee40bf13522a6edbd236f1970.json | 29 +++ ...3b438f14b68535111cf2cedd363fc646aac99.json | 20 ++ ...8242aad3e9a47400f6d6837a35f4c54a216b9.json | 20 ++ ...253eb340a21afd7d65ce6d2f523aeded8dfc0.json | 29 +++ ...f75260c7afaf110870656061a04079c35c2d8.json | 55 ++++ ...fd17f833fb15b58b0110c7cc566946db98e76.json | 94 +++++++ ...3d2839f0f928c06b8020eecec38e895f99b42.json | 28 +++ ...33c83477d65a6f8cb2673f67b3148cd95b436.json | 20 ++ ...e8ee5e54b170de9da863bbdbc79e3f206640b.json | 14 ++ ...c66fc73c2d4f35a5dc40e117903dba4e7edb2.json | 205 +++++++++++++++ ...8128cae1b40ea2ee34b9d5269c12f8b5738a.json} | 14 +- ...6fb01e6629e8c982c265f2af1d5000090572.json} | 8 +- ...c82627a936f7ea9f6c354eca4bea76fac6b10.json | 20 ++ ...550b8db817630d1a9341db4a1f453f12e64fb.json | 34 +++ ...bf58b311d81c5fc0a6fbaccf204976f76f378.json | 20 ++ ...3aa4239d3a8be71b47178b4b8fb11fe898b31.json | 16 ++ ...e5c6feb8059722149a747c4b6bd46731e2536.json | 23 ++ ...f35d55901fb1e6805f23413ea43e3637540a0.json | 28 +++ ...8c7ffd9a04eae27afbdf37a6ba8ff7ac85f3b.json | 22 ++ ...be152ead3d4a7f22bc3584803288e8d639c13.json | 203 +++++++++++++++ ...78a8a0ec739f4ddec8ffeb3a87253aeb18d30.json | 14 ++ ...c0d68195346daf5f38d102eab1c1b73b0f82f.json | 20 ++ ...b1fcdd02ba2ae2104a0ef972fe809bf136425.json | 26 -- ...d056cc9bae25bc070c5de8424f88fab20e5ea.json | 28 +++ ...5ff66f2c3b2b83d45360818a8782e56aa3d66.json | 36 +++ ...85ec6ec1e522bc058710560ef78e75f94ddac.json | 22 ++ ...6efe8d41759bbdcdd6d39db93208f2664f03a.json | 22 ++ ...741e2713748a17c96af5485423bfe9aaa84ec.json | 26 -- ...92dfb0d28a797bee69872634f3105d2d51996.json | 14 ++ ...1fac675dd7b078df61758df382e1038cb4987.json | 26 -- ...227ecaa45d76d1ba260074898fe57c059a15a.json | 232 +++++++++++++++++ ...63a1e89945f8d5e0f4da42ecf6313c4f5967e.json | 20 ++ ...c7dfb7aad7261e5fc402d845aedc3b91a4e99.json | 23 ++ ...a58f82acd817932415f04bcbd05442ad80c2b.json | 23 ++ ...5d9ec9b3f628c3a4cf5e10580ea6e5e3a2429.json | 14 ++ ...8dd6c2ad2793c06071f4a067dcc31306adebc.json | 27 ++ ...eb09b538a67d1c39fda052c4f4ddb23ce0084.json | 22 ++ ...5223f4599d4128db588d8645f3d106de5f50b.json | 20 ++ core/lib/db_connection/src/processor.rs | 4 +- core/lib/types/src/prover_dal.rs | 6 +- .../src/fri_proof_compressor_dal.rs | 6 +- prover/prover_dal/src/fri_prover_dal.rs | 10 +- .../fri_scheduler_dependency_tracker_dal.rs | 5 +- .../src/fri_witness_generator_dal.rs | 6 +- prover/prover_dal/src/lib.rs | 10 +- 253 files changed, 8828 insertions(+), 610 deletions(-) create mode 100644 core/lib/dal/.sqlx/query-0034bc1041d9ba7d3c681be6dfc4e7dfacfcf625e057b99924c245de03c2888c.json create mode 100644 core/lib/dal/.sqlx/query-012bed5d34240ed28c331c8515c381d82925556a4801f678b8786235d525d784.json create mode 100644 core/lib/dal/.sqlx/query-015350f8d729ef490553550a68f07703b2581dda4fe3c00be6c5422c78980c4b.json create mode 100644 core/lib/dal/.sqlx/query-01e4cde73867da612084c3f6fe882d56bbace9013f1d95ea0926eef1fb48039b.json create mode 100644 core/lib/dal/.sqlx/query-01f72dfc1eee6360a8ef7809874a1b4ba7fe355ebc02ea49a054aa073ce324ba.json create mode 100644 core/lib/dal/.sqlx/query-026ab7dd7407f10074a2966b5eac2563a3e061bcc6505d8c295b1b2517f85f1b.json create mode 100644 core/lib/dal/.sqlx/query-03c585c7e9f918e608757496088c7e3b6bdb2a08149d5f443310607d3c78988c.json create mode 100644 core/lib/dal/.sqlx/query-040eaa878c3473f5edc73b77e572b5ea100f59295cd693d14ee0d5ee089c7981.json create mode 100644 core/lib/dal/.sqlx/query-04fbbd198108d2614a3b29fa795994723ebe57b3ed209069bd3db906921ef1a3.json create mode 100644 core/lib/dal/.sqlx/query-0535c87d0ae694d5f10e529742ba2803cd147dec7450d1f81a41aea8dcf3be93.json delete mode 100644 core/lib/dal/.sqlx/query-06ce3e5c10d6ae327fc2e45fd9080112ce326bcf4bb38a00366bd24e38881bb2.json create mode 100644 core/lib/dal/.sqlx/query-07310d96fc7e258154ad510684e33d196907ebd599e926d305e5ef9f26afa2fa.json create mode 100644 core/lib/dal/.sqlx/query-083991abb3f1c2183d1bd1fb2ad4710daa723e2d9a23317c347f6081465c3643.json create mode 100644 core/lib/dal/.sqlx/query-08737d11b3e5067a2468013ec6e5d95fc47eb6bedc32f4d824aac9b2b6f96faf.json create mode 100644 core/lib/dal/.sqlx/query-08e59ed8e2fd1a74e19d8bf0d131e4ee6682a89fb86f3b715a240805d44e6d87.json create mode 100644 core/lib/dal/.sqlx/query-0914f0ad03d6a8c55d287f94917c6f03469d78bf4f45f5fd1eaf37171db2f04a.json rename core/lib/dal/.sqlx/{query-3d2d005b59ba9931286452e029cfccb19a2f9663a73306dbf61a257050e2b634.json => query-0a3c928a616b5ebc0b977bd773edcde721ca1c652ae2f8db41fb75cecdecb674.json} (55%) create mode 100644 core/lib/dal/.sqlx/query-0a3cb11f5bdcb8da31dbd4e3016fced141fb29dd8b6c32dd2dc3452dc294fe1f.json create mode 100644 core/lib/dal/.sqlx/query-0a53fc3c90a14038c9f3f32c3e2e5f7edcafa4fc6757264a96a46dbf7dd1f9cc.json create mode 100644 core/lib/dal/.sqlx/query-0bdcf87f6910c7222b621f76f71bc6e326e15dca141050bc9d7dacae98a430e8.json create mode 100644 core/lib/dal/.sqlx/query-0c899c68886f76a232ffac0454cdfbf962636347864fc365fafa46c7a2da5f30.json create mode 100644 core/lib/dal/.sqlx/query-0c95fbfb3a816bd49fd06e3a4f0a52daa202279bf612a9278f663deb78bc6e41.json create mode 100644 core/lib/dal/.sqlx/query-10959c91f01ce0da196f4c6eaf0661a097308d9f81024fdfef24a14418202730.json delete mode 100644 core/lib/dal/.sqlx/query-10b8981f7aa47ce5d3507571af45f7cef0d50c4938105684971e8adc86bb6366.json create mode 100644 core/lib/dal/.sqlx/query-11af69fc254e54449b64c086667700a95e4c37a7a18531b3cdf120394cb055b9.json create mode 100644 core/lib/dal/.sqlx/query-136569d7eb4037fd77e0fac2246c68e8e15a831f1a45dc3b2240d5c6809d5ef2.json delete mode 100644 core/lib/dal/.sqlx/query-14e5a66ee9a2b7bc56e41c3925150dd2778c0da29697d31710e8b507629ba5c4.json create mode 100644 core/lib/dal/.sqlx/query-1689c212d411ebd99a22210519ea2d505a1aabf52ff4136d2ed1b39c70dd1632.json create mode 100644 core/lib/dal/.sqlx/query-1766c0a21ba5918dd08f4babd8dbfdf10fb1cb43781219586c169fb976204331.json create mode 100644 core/lib/dal/.sqlx/query-1862d3a78e4e9068df1b8ce3bbe9f3f0b5d629fdb5c36ea1bfb93ed246be968e.json create mode 100644 core/lib/dal/.sqlx/query-19314d74e94b610e2da6d728ca37ea964610e131d45f720f7a7b2a130fe9ed89.json create mode 100644 core/lib/dal/.sqlx/query-19545806b8f772075096e69f8665d98a3d9f7df162ae22a98c3c7620fcd13bd2.json create mode 100644 core/lib/dal/.sqlx/query-19b89495be8aa735db039ccc8a262786c58e54f132588c48f07d9537cf21d3ed.json create mode 100644 core/lib/dal/.sqlx/query-1ad3bbd791f3ff0d31683bf59187b84c5fd52f0352f0f0e311d054cb9e45b07e.json create mode 100644 core/lib/dal/.sqlx/query-1b4ebbfc96b4fd66ecbe64a6be80a01a6c7cbe9297cbb55d42533fddc18719b6.json create mode 100644 core/lib/dal/.sqlx/query-1c14d2def60fa5ff91788ddb55e68cee71742b732112038a642e2a07305053c2.json create mode 100644 core/lib/dal/.sqlx/query-1c994d418ada78586de829fc2d34d26e48e968c79834858c98b7a7f9dfc81910.json create mode 100644 core/lib/dal/.sqlx/query-1dcb3afb0c1947f92981f61d95c099c4591ce3f8d51f3df99db0165e086f96af.json create mode 100644 core/lib/dal/.sqlx/query-1ea37ef1c3df72e5e9c50cfa1675fc7f60618209d0132e7937a1347b7e94b212.json create mode 100644 core/lib/dal/.sqlx/query-1ed2d7e5e98b15420a21650809d710ce910d0c9138d85cb55e16459c757dea03.json create mode 100644 core/lib/dal/.sqlx/query-1f46524410ce0f193dc6547499bde995ddddc621ee2149f08f905af2d8aadd03.json create mode 100644 core/lib/dal/.sqlx/query-2003dcf7bc807c7d345368538accd9b0128f82306e27e4c7258116082a54ab95.json create mode 100644 core/lib/dal/.sqlx/query-20f84f9ec21459d8c7ad53241758eeab159533211d2ddbef41e6ff0ba937d04a.json create mode 100644 core/lib/dal/.sqlx/query-23be43bf705d679ca751c89353716065fcad42c6b621efb3a135a16b477dcfd9.json create mode 100644 core/lib/dal/.sqlx/query-245dc5bb82cc82df38e4440a7746ca08324bc86a72e4ea85c9c7962a6c8c9e30.json create mode 100644 core/lib/dal/.sqlx/query-24722ee4ced7f03e60b1b5ecaaa5234d536b064951a67d826ac49b7a3a095a1a.json create mode 100644 core/lib/dal/.sqlx/query-249cb862d44196cb6dc3945e907717b0dd3cec64b0b29f59b273f1c6952e01da.json create mode 100644 core/lib/dal/.sqlx/query-2506e9edfd4b41ca1e187909631ae942bab5d71daaed7017e3fa62dc5e42ab0a.json delete mode 100644 core/lib/dal/.sqlx/query-254d17b5402c123cca0edd6fcdc98012b034605dfb4c48379844085b71e9e381.json create mode 100644 core/lib/dal/.sqlx/query-25646383ecacf72e3f63b5c93a57a66d1e38fb6ca706c2affd4607d77be38de9.json create mode 100644 core/lib/dal/.sqlx/query-268d27c427a69c5e35e6004380da45f005141b01eac26946251bba68e9276acf.json create mode 100644 core/lib/dal/.sqlx/query-26cb272c2a46a267c47681e0f1f07997b7e24682da56f84d812da2b9aeb14ca2.json create mode 100644 core/lib/dal/.sqlx/query-26e0b7eb1871d94ddc98254fece6381a9c4165e2727542eaeef3bbedd13a4f20.json create mode 100644 core/lib/dal/.sqlx/query-2737fea02599cdc163854b1395c42d4ef93ca238fd2fbc9155e6d012d0d1e113.json create mode 100644 core/lib/dal/.sqlx/query-2757b30c4641a346eb0226c706223efc18e51e6d4092188e081f4fafe92fe0ef.json create mode 100644 core/lib/dal/.sqlx/query-280cf015e40353e2833c0a70b77095596297be0d728a0aa2d9b180fb72de222b.json create mode 100644 core/lib/dal/.sqlx/query-293258ecb299be5f5e81696d14883f115cd97586bd795ee31f58fc14e56d58cb.json create mode 100644 core/lib/dal/.sqlx/query-2955e976281f9cbd98b7378c5ab52964b268b93c32fd280c49bf9f932884300d.json create mode 100644 core/lib/dal/.sqlx/query-2979b6c9ce76a4e6eaaa3f9bad5cf831d63d692111d87282aed8e85df6b0411f.json create mode 100644 core/lib/dal/.sqlx/query-2a2680234c38904e5c19df45193a8c13d04079683e09c65f7f4e76a9987e2ab4.json create mode 100644 core/lib/dal/.sqlx/query-2b1aa207a058f66265acf2c21b8ed5d8007789c0fc1eab948f6d7339dfb69147.json create mode 100644 core/lib/dal/.sqlx/query-2c71a819c6ed22a3ab79675840e00f7b1176d59a83520288f5428b67ebd52130.json rename core/lib/dal/.sqlx/{query-53182f70d83de1482110c767a8d58ee0e803255aa612a124289f53fbb78bd64a.json => query-2c827c1c3cfa3552b90d4746c5df45d57f1f8b2558fdb374bf02e84d3c825a23.json} (53%) create mode 100644 core/lib/dal/.sqlx/query-2d0c2e9ec4187641baef8a33229bffc78d92adb3c1e3ca60b12163e38c67047e.json create mode 100644 core/lib/dal/.sqlx/query-2d1e0f2e043c193052c9cc20f9efeb5f094160627bc09db4bda2dda9a8c11c44.json create mode 100644 core/lib/dal/.sqlx/query-2d862097cfae49a1fb28ec0a05176085385c3a79d72f49669b4215a9454323c2.json create mode 100644 core/lib/dal/.sqlx/query-2d87b294817859e42258136b1cb78f42a877039094c3d6354928a03dad29451a.json create mode 100644 core/lib/dal/.sqlx/query-2dd7dbaeb2572404451e78a96f540e73a2778633bbf9d8e591ec912634639af9.json create mode 100644 core/lib/dal/.sqlx/query-2ddba807ac8ec5260bf92c77073eb89c728357c0744f209090824695a5d35fa3.json create mode 100644 core/lib/dal/.sqlx/query-2e5b9ae1b81b0abfe7a962c93b3119a0a60dc9804175b2baf8b45939c74bd583.json create mode 100644 core/lib/dal/.sqlx/query-2eb25bfcfc1114de825dc4eeb0605d7d1c9e649663f6e9444c4425821d0a5b71.json create mode 100644 core/lib/dal/.sqlx/query-307f15e00a97440868189f25e4487ed365c0369f94bc457cb162a5c876a123c7.json create mode 100644 core/lib/dal/.sqlx/query-31334f2878b1ac7d828d5bc22d65ef6676b2eac623c0f78634cae9072fe0498a.json create mode 100644 core/lib/dal/.sqlx/query-31f12a8c44124bb2ce31889ac5295f3823926f69cb1d54874878e6d6c301bfd8.json create mode 100644 core/lib/dal/.sqlx/query-32792c6aee69cb8c8b928a209a3b04ba5868d1897553df85aac15b169ebb0732.json create mode 100644 core/lib/dal/.sqlx/query-3490fe0b778a03c73111bf8cbf426b0b3185a231bbf0b8b132a1a95bc157e827.json create mode 100644 core/lib/dal/.sqlx/query-3596a70433e4e27fcda18f37073b51dea32e37cb8c51f1dd5d82c15eddc48e6b.json create mode 100644 core/lib/dal/.sqlx/query-3743b41751a141c21f1674fa581ea7a878613cf62f7fb9b94c5145dc8d1da674.json rename core/lib/dal/.sqlx/{query-80684de323c47ade36e5a52b99a222806762c640b7de7bf6ecdbf9c3f9842d6f.json => query-38a8b00e320b16e99f6ea0e5954e2f7e49cd6600bd3d56cf41795c2c9e082e4c.json} (51%) create mode 100644 core/lib/dal/.sqlx/query-3b3fbcffd2702047045c2f358e8ac77b63879ab97a32eed8392b48cc46116a28.json create mode 100644 core/lib/dal/.sqlx/query-3b4d5009ec22f54cc7d305aa11d96ec397767a063dc21aa3add974cb9b070361.json create mode 100644 core/lib/dal/.sqlx/query-3ba9bc85e3e286aadef8aad27eb38fc90b18155e3435f58d9888fa50d92042f7.json delete mode 100644 core/lib/dal/.sqlx/query-3bc70707863d7be1158de1bfb4bd51c3c1cbd9ba8df9d44a29ff96186e35b700.json create mode 100644 core/lib/dal/.sqlx/query-3c531ad0631090934ed46c538249360a7eab2efc70d97b901f8948f6909d4cd2.json create mode 100644 core/lib/dal/.sqlx/query-3c60ca71b8a3b544f5fe9d7f2fbb249026665c9fb17b6f53a2154473547cbbfd.json delete mode 100644 core/lib/dal/.sqlx/query-3d7536cfe7d88dceebff2125a51bcae561c0eea2b1cd8beb245b0cc66ebffcaa.json create mode 100644 core/lib/dal/.sqlx/query-40c17194a2089a7d3fa6b7923c9e03def94f4bf4674def1893e2232be80f57a0.json create mode 100644 core/lib/dal/.sqlx/query-41c9f45d6eb727aafad0d8c18024cee5c602d275bb812022cc8fdabf0a60e151.json create mode 100644 core/lib/dal/.sqlx/query-43c7e352d09f69de1a182196aea4de79b67833f17d252b5b0e8e00cd6e75b5c1.json create mode 100644 core/lib/dal/.sqlx/query-44490ad52b8dbcd978a96677ffac5437752a4cf3ac92ec09b334089a8dc5b4ca.json delete mode 100644 core/lib/dal/.sqlx/query-48c03061a662861818e3b0072caee38f07b52a709bfd5f3dbab5b4cfef463f1f.json create mode 100644 core/lib/dal/.sqlx/query-4aef05b8864484c6979c93d7ce3159cf509cf27adf9afdbe61bd867e536b7e47.json create mode 100644 core/lib/dal/.sqlx/query-4d50dabc25d392e6b9d0dbe0e386ea7ef2c1178b1b0394a17442185b79f2d77d.json delete mode 100644 core/lib/dal/.sqlx/query-510bfea2346a8c63e74222e1159de366f88c20d00a8d928b6cf4caae0702b333.json create mode 100644 core/lib/dal/.sqlx/query-51891ab674b8f5cf2d7c12420d1c026c3181f42a49f1f4b6e227c95641931a54.json create mode 100644 core/lib/dal/.sqlx/query-532a80b0873871896dd318beba5ec427a099492905a1feee512dc43f39d10047.json create mode 100644 core/lib/dal/.sqlx/query-546c729829083b7eba94fea742c162d717ffcf46fdf5d2ce5d32555353b6da6b.json create mode 100644 core/lib/dal/.sqlx/query-5503575d9377785894de6cf6139a8d4768c6a803a1a90889e5a1b8254c315231.json create mode 100644 core/lib/dal/.sqlx/query-555f396946bdb8b84a5d77abbfc1397212b4767039a6c0e22697cf40969729af.json create mode 100644 core/lib/dal/.sqlx/query-556f9b9e82d3a9399660dfa4bbf252f26335699a4e7f0347d7e894320245271d.json create mode 100644 core/lib/dal/.sqlx/query-55b0b4c569c0aaf9741afc85400ecd50a04799ffd36be0e17c56f47fcdbc8f60.json create mode 100644 core/lib/dal/.sqlx/query-55e6f5ea121090034c8920dffb7cfb3ba0659b6fcc582e174ee80601b54f89d9.json create mode 100644 core/lib/dal/.sqlx/query-55f4585be3d0f1a147cb10f6e59325fad494a512ba92df95439d2d7fe0f3a285.json create mode 100644 core/lib/dal/.sqlx/query-5659480e5d79dab3399e35539b240e7eb9f598999c28015a504605f88bf84b33.json create mode 100644 core/lib/dal/.sqlx/query-57fe009542ca9dc763e3823ee73662bf3bfdda11bb57f65db4980982a4200bed.json create mode 100644 core/lib/dal/.sqlx/query-58aed39245c72d231b268ce83105bb2036d21f60d4c6934f9145730ac35c04de.json create mode 100644 core/lib/dal/.sqlx/query-5d341e334cbc2d38efc8a060325677d57040037da0e07cef2c7b7246851a3703.json create mode 100644 core/lib/dal/.sqlx/query-5d493cbce749cc5b56d4069423597b16599abaf51df0f19effe1a536376cf6a6.json create mode 100644 core/lib/dal/.sqlx/query-5f7034d22251a893249208c5ff8fa5c8bf46bc0cea4ac2b25ecde236c30ae32d.json create mode 100644 core/lib/dal/.sqlx/query-61bc330d6d1b5fddec78342c1b0f00e82b0b3ad9ae36bf4fe44d7e85b74c6f49.json delete mode 100644 core/lib/dal/.sqlx/query-63f5f9bff4b2c15fa4230af2c73b5b5cc7e37dd6a607e9453e822e34ba77cdc3.json create mode 100644 core/lib/dal/.sqlx/query-65736a5b9b4ad364797dbedfc828f24785ae8bd2b4579203f05379e757a56f2b.json create mode 100644 core/lib/dal/.sqlx/query-6621de90a024cc85946f17948e5c171cd0e4d38bd6e9cfec58b2d7f53a3204e1.json create mode 100644 core/lib/dal/.sqlx/query-66510caa7683ed90729cb545ac8528f012c2ecaebf6622ca1ae481045604e58d.json create mode 100644 core/lib/dal/.sqlx/query-6692ff6c0fbb2fc94f5cd2837a43ce80f9b2b27758651ccfc09df61a4ae8a363.json delete mode 100644 core/lib/dal/.sqlx/query-67ac33ad0ad912e8db6d141e21c2e14fa4c1c4fdad16eff011011878af897946.json create mode 100644 core/lib/dal/.sqlx/query-6849be0788a509e4e68acc2da4bfadbcfc343374fad173df0cc8db38419a9726.json create mode 100644 core/lib/dal/.sqlx/query-6874b501c82e6062ab22622095070d67840b2484ea3a03ac49eb3d50ea153163.json create mode 100644 core/lib/dal/.sqlx/query-68c891ee9d71cffe709731f2804b734d5d255e36e48668b3bfc25a0f86ea52e7.json create mode 100644 core/lib/dal/.sqlx/query-6b327df84d2b3b31d02db35fd5d91a8d67abcdb743a619ed0d1b9c16206a3c20.json create mode 100644 core/lib/dal/.sqlx/query-6bd3094be764e6378fe52b5bb533260b49ce42daaf9dbe8075daf0a8e0ad9914.json create mode 100644 core/lib/dal/.sqlx/query-6c0d03b1fbe6f47546bc34c6b2eab01cb2c55bf86d2c8c99abb1b7ca21cf75c0.json create mode 100644 core/lib/dal/.sqlx/query-6c46fb3d51aeb069c09ff0cae3ea82f1af696fcc8f7484eaf255d5311589ee39.json create mode 100644 core/lib/dal/.sqlx/query-6d08cadce92f03b0596e068884854a701146f4b2dc92361f42598a5f9a72c36b.json create mode 100644 core/lib/dal/.sqlx/query-6ed5cc84e8097c4febf6c935193f45ef713ef7f9909ce26653faceddb549a383.json create mode 100644 core/lib/dal/.sqlx/query-6f42658c16f19bc0da2e4a99b23eb12db58d0f15680b1467df0c13d49079d130.json create mode 100644 core/lib/dal/.sqlx/query-708b2b3e40887e6d8d2d7aa20448a58479487686d774e6b2b1391347bdafe06d.json create mode 100644 core/lib/dal/.sqlx/query-72a4f50355324cce85ebaef9fa32826095e9290f0c1157094bd0c44e06012e42.json create mode 100644 core/lib/dal/.sqlx/query-72ff9df79e78129cb96d14ece0198129b44534062f524823666ed432d2fcd345.json create mode 100644 core/lib/dal/.sqlx/query-73c4bf1e35d49faaab9f7828e80f396f9d193615d70184d4327378a7fc8a5665.json create mode 100644 core/lib/dal/.sqlx/query-7560ba61643a8ec8eeefbe6034226313c255ce356a9a4e25c098484d3129c914.json create mode 100644 core/lib/dal/.sqlx/query-759b80414b5bcbfe03a0e1e15b37f92c4cfad9313b1461e12242d9becb59e0b0.json create mode 100644 core/lib/dal/.sqlx/query-75fa24c29dc312cbfa89bf1f4a04a42b4ead6964edd17bfcacb4a828492bba60.json create mode 100644 core/lib/dal/.sqlx/query-76cb9ad97b70d584b19af194576dcf2324f380932698386aa8f9751b1fa24a7b.json create mode 100644 core/lib/dal/.sqlx/query-77a43830ca31eac85a3c03d87696bf94a013e49bf50ce23f4de4968781df0796.json create mode 100644 core/lib/dal/.sqlx/query-7b908340613dadbbef46e2160d2d7d59a34f97285e855d5bd67f28f6f4ff1d4e.json create mode 100644 core/lib/dal/.sqlx/query-7fccc28bd829bce334f37197ee6b139e943f3ad2a41387b610606a42b7f03283.json create mode 100644 core/lib/dal/.sqlx/query-81869cb392e9fcbb71ceaa857af77b39429d56072f63b3530c576fb31d7a56f9.json delete mode 100644 core/lib/dal/.sqlx/query-8255d112d3929fd8355ba2ac9bc87f1fb2f138d9a2231477fcaae148c50dbb8a.json create mode 100644 core/lib/dal/.sqlx/query-82ed556807bcd7dd5872c220b3399f9b8679d770b3d1ca755c42ee264342da03.json create mode 100644 core/lib/dal/.sqlx/query-83a931ceddf34e1c760649d613f534014b9ab9ca7725e14fb17aa050d9f35eb8.json create mode 100644 core/lib/dal/.sqlx/query-8625ca45ce76b8c8633d390e35e0c5f885240d99ea69140a4636b00469d08497.json create mode 100644 core/lib/dal/.sqlx/query-877d20634068170326ab5801b69c70aff49e60b7def3d93b9206e650c259168b.json create mode 100644 core/lib/dal/.sqlx/query-87b3c0cb253a19ba181406bab5f30198c2651022c65eb9e04125356fcf52ddfc.json create mode 100644 core/lib/dal/.sqlx/query-87f27295de500591f01ed76731df2aed7049c3f44a6d25556967ea867e0caf25.json create mode 100644 core/lib/dal/.sqlx/query-88c629334e30bb9f5c81c858aa51af63b86e8da6d908d48998012231e1d66a60.json create mode 100644 core/lib/dal/.sqlx/query-8903ba5db3f87851c12da133573b4207b69cc48b4ba648e797211631be612b69.json create mode 100644 core/lib/dal/.sqlx/query-894665c2c467bd1aaeb331b112c567e2667c63a033baa6b427bd8a0898c08bf2.json create mode 100644 core/lib/dal/.sqlx/query-8a7a57ca3d4d65da3e0877c003902c690c33686c889d318b1d64bdd7fa6374db.json create mode 100644 core/lib/dal/.sqlx/query-8b9e5d525c026de97c0a732b1adc8dc4bd57e32dfefe1017acba9a15fc14b895.json create mode 100644 core/lib/dal/.sqlx/query-95ea0522a3eff6c0d2d0b1c58fd2767e112b95f4d103c27acd6f7ede108bd300.json create mode 100644 core/lib/dal/.sqlx/query-966dddc881bfe6fd94b56f587424125a2633ddb6abaa129f2b12389140d83c3f.json create mode 100644 core/lib/dal/.sqlx/query-9955b9215096f781442153518c4f0a9676e26f422506545ccc90b7e8a36c8d47.json create mode 100644 core/lib/dal/.sqlx/query-995cecd37a5235d1acc2e6fc418d9b6a1a6fe629f9a02c8e33330a0efda64068.json create mode 100644 core/lib/dal/.sqlx/query-99acb091650478fe0feb367b1d64561347b81f8931cc2addefa907c9aa9355e6.json create mode 100644 core/lib/dal/.sqlx/query-99d9ee2a0d0450acefa0d9b6c031e30606fddf6631c859ab03819ec476bcf005.json create mode 100644 core/lib/dal/.sqlx/query-99dd6f04e82585d81ac23bc4871578179e6269c6ff36877cedee264067ccdafc.json create mode 100644 core/lib/dal/.sqlx/query-9c2a5f32c627d3a5c6f1e87b31ce3b0fd67aa1f5f7ea0de673a2fbe1f742db86.json create mode 100644 core/lib/dal/.sqlx/query-9cfcde703a48b110791d2ae1103c9317c01d6e35db3b07d0a31f436e7e3c7c40.json create mode 100644 core/lib/dal/.sqlx/query-9de5acb3de1b96ff8eb62a6324e8e221a8ef9014458cc7f1dbc60c056a0768a0.json create mode 100644 core/lib/dal/.sqlx/query-9ee07a22405279e1e44d47ec5226a834aeac9156b974ff225d734683c1905469.json create mode 100644 core/lib/dal/.sqlx/query-9f637f37dc3a29ce7412ab4347071bd180729779a0e98ae7a6bb4386aca99716.json create mode 100644 core/lib/dal/.sqlx/query-a115f795672787fe25bfaa8fd345094de508af93f4085be7cf3b54b1e8ecdadd.json create mode 100644 core/lib/dal/.sqlx/query-a1f4334b6bc1642c1bc0ff4ffa34470914b52e2d714e9deb903d62a5d66f0e04.json create mode 100644 core/lib/dal/.sqlx/query-a2d02b71e3dcc29a2c0c20b44392cfbaf09164aecfa5eed8d7142518ad96abea.json create mode 100644 core/lib/dal/.sqlx/query-a48c92f557e5e3a2674ce0dee9cd92f5a547150590b8c221c4065eab11175c7a.json create mode 100644 core/lib/dal/.sqlx/query-a4a4b0bfbe05eac100c42a717e8d7cbb0bc526ebe61a07f735d4ab587058b22c.json create mode 100644 core/lib/dal/.sqlx/query-a4fcd075b68467bb119e49e6b20a69138206dfeb41f3daff4a3eef1de0bed4e4.json create mode 100644 core/lib/dal/.sqlx/query-a74d029f58801ec05d8d14a3b065d93e391600ab9da2e5fd4e8b139ab3d77583.json create mode 100644 core/lib/dal/.sqlx/query-a8dad09a54cc991706141da557dde45f8f3f3b6cf2e4136f25a1c3ab85d92668.json create mode 100644 core/lib/dal/.sqlx/query-a91c23c4d33771122cec2589c6fe2757dbc13be6b30f5840744e5e0569adc66e.json delete mode 100644 core/lib/dal/.sqlx/query-aac861efb4acb81d5cefa598c822bef649a6db197a36aca098cd8054909d82e9.json create mode 100644 core/lib/dal/.sqlx/query-ac505ae6cfc744b07b52997db789bdc9efc6b89fc0444caf8271edd7dfe4a3bc.json create mode 100644 core/lib/dal/.sqlx/query-ada54322a28012b1b761f3631c4cd6ca26aa2fa565fcf208b6985f461c1868f2.json create mode 100644 core/lib/dal/.sqlx/query-aeda34b1beadca72e3e600ea9ae63f436a4f16dbeb784d0d28be392ad96b1c49.json create mode 100644 core/lib/dal/.sqlx/query-aefea1f3e87f28791cc547f193a895006e23ec73018f4b4e0a364a741f5c9781.json create mode 100644 core/lib/dal/.sqlx/query-b259e6bacd98fa68003e0c87bb28cc77bd2dcee4a04d1afc9779714854623a79.json create mode 100644 core/lib/dal/.sqlx/query-b452354c888bfc19b5f4012582061b86b1abd915739533f9982fea9d8e21b9e9.json create mode 100644 core/lib/dal/.sqlx/query-b49478150dbc8731c531ef3eddc0c2cfff08e6fef3c3824d20dfdf2d0f73e671.json create mode 100644 core/lib/dal/.sqlx/query-b4a0444897b60c7061363a48b2b5386a2fd53492f3df05545edbfb0ec0f059d2.json create mode 100644 core/lib/dal/.sqlx/query-b5fd77f515fe168908cc90e44d0697e36b3c2a997038c30553f7727cdfa17361.json rename core/lib/dal/.sqlx/{query-55339d6d9ee1205be25c28f0ea01b2cc0c39fd0376a88708a5b793e2327c012f.json => query-b63ee98d4708c8121a287becb7e1973d18d45c4a200a60d318cdb1222d63ccaa.json} (93%) create mode 100644 core/lib/dal/.sqlx/query-b6837d2deed935da748339538c2c332a122d0b88271ae0127c65c4612b41a619.json create mode 100644 core/lib/dal/.sqlx/query-b75e3d2fecbf5d85e93848b7a35180abbd76956e073432af8d8500327b74e488.json create mode 100644 core/lib/dal/.sqlx/query-b7bf6999002dd89dc1224468ca79c9a85e3c24fca1bf87905f7fc68fe2ce3276.json delete mode 100644 core/lib/dal/.sqlx/query-b9f77e6c15f9e635024b73f1fc985c5196c431363802b6b988939c99853b9c97.json create mode 100644 core/lib/dal/.sqlx/query-ba1b6c4588ea3d3b138e03a63ef1731a10b332fec68f4a1e56edec4df71ccaff.json create mode 100644 core/lib/dal/.sqlx/query-ba2343a38e37d104786f9276d91f67d2ef1428c61ae84003c9b52b03204d1f0a.json create mode 100644 core/lib/dal/.sqlx/query-bd51c9d93b103292f5acbdb266ba4b4e2af48907fa9321064ddb24ac02ab17cd.json create mode 100644 core/lib/dal/.sqlx/query-bfc84bcf0985446b337467dd1da709dbee508ad6d1cae43e477cf1bef8cb4aa9.json create mode 100644 core/lib/dal/.sqlx/query-c02f404ce9b0f92b8052ef6f3eaabda70cb9c56ae3e30dc0a8257e43d6714155.json create mode 100644 core/lib/dal/.sqlx/query-c03df29f4661fa47c1412bd82ba379f3b2e9ff1bc6e8e38f473fb4950c8e4b77.json create mode 100644 core/lib/dal/.sqlx/query-c139df45a977290d1c2c7987fb9c1d66aeaeb6e2d36fddcf96775f01716a8a74.json create mode 100644 core/lib/dal/.sqlx/query-c14837e92dbb02f2fde7109f524432d865852afe0c60e11a2c1800d30599aa61.json create mode 100644 core/lib/dal/.sqlx/query-c192377c08abab9306c5b0844368aa0f8525832cb4075e831c0d4b23c5675b99.json create mode 100644 core/lib/dal/.sqlx/query-c195037dcf6031a90f407f652657956350786f3596c7302bdeb8d813f9fbf621.json create mode 100644 core/lib/dal/.sqlx/query-c2fe6a5476e69c9588eec73baba9d0e2d571533d4d5f683919987b6f8cbb00e0.json create mode 100644 core/lib/dal/.sqlx/query-c36abacc705a2244d423599779e38d60d6e93bcb34fd20422e227714fccbf6b7.json create mode 100644 core/lib/dal/.sqlx/query-c37432fabd092fa235fc70e11430fb28594859564a0f888eae748ad1f9fcede5.json create mode 100644 core/lib/dal/.sqlx/query-c4426ae84862e720673485e3b59c116162becce06841476128f864b6028129df.json create mode 100644 core/lib/dal/.sqlx/query-c5656667e5610ffb33e7b977ac92b7c4d79cbd404e0267794ec203df0cbb169d.json create mode 100644 core/lib/dal/.sqlx/query-c6d523c6ae857022318350a2f210d7eaeeb4549ed59b58f8d984be2a22a80355.json create mode 100644 core/lib/dal/.sqlx/query-c809f42a221b18a767e9dd0286503d8bd356f2f9cc249cd8b90caa5a8b5918e3.json create mode 100644 core/lib/dal/.sqlx/query-c8155c4e4701fc771918ac1bb4d16f8cc32e365e2ffbd17dc99885de427f2777.json create mode 100644 core/lib/dal/.sqlx/query-c9e05ebc7b61c1f409c330bc110bed26c831730944237b74bed98869c83b3ca5.json create mode 100644 core/lib/dal/.sqlx/query-cb0a9f6137fb6bee5d17d644714b3b22ea2cd184932fcd59f5931239c7a78003.json create mode 100644 core/lib/dal/.sqlx/query-cb98d84fc34af1e4a4c2f427c5bb4afd384063ae394a847b26304dd18d490ab4.json create mode 100644 core/lib/dal/.sqlx/query-cea366a9d0da60bf03c71be26862929e051270056ebf113a657a464f89c7fd57.json create mode 100644 core/lib/dal/.sqlx/query-cea9fe027a6a0ada827f23b48ac32432295b2f7ee40bf13522a6edbd236f1970.json create mode 100644 core/lib/dal/.sqlx/query-d14b52df2cd9f9e484c60ba00383b438f14b68535111cf2cedd363fc646aac99.json create mode 100644 core/lib/dal/.sqlx/query-d3b09cbcddf6238b358d32d57678242aad3e9a47400f6d6837a35f4c54a216b9.json create mode 100644 core/lib/dal/.sqlx/query-d3f9202d665ef4fcb028dae6484253eb340a21afd7d65ce6d2f523aeded8dfc0.json create mode 100644 core/lib/dal/.sqlx/query-d6b70256793417a949081899eccf75260c7afaf110870656061a04079c35c2d8.json create mode 100644 core/lib/dal/.sqlx/query-d70cfc158e31dd2d5c942d24f81fd17f833fb15b58b0110c7cc566946db98e76.json create mode 100644 core/lib/dal/.sqlx/query-d712707e47e143c52330ea6e0513d2839f0f928c06b8020eecec38e895f99b42.json create mode 100644 core/lib/dal/.sqlx/query-d7ed82f0d012f72374edb2ebcec33c83477d65a6f8cb2673f67b3148cd95b436.json create mode 100644 core/lib/dal/.sqlx/query-da51a5220c2b964303292592c34e8ee5e54b170de9da863bbdbc79e3f206640b.json create mode 100644 core/lib/dal/.sqlx/query-da72486421d60d3d633e19632a8c66fc73c2d4f35a5dc40e117903dba4e7edb2.json rename core/lib/dal/.sqlx/{query-b0c89a492fcedc74a52370ad44ca300bf2720c48886d7ae00a253a4975d7efee.json => query-db41e2480bdef66e1c89347402418128cae1b40ea2ee34b9d5269c12f8b5738a.json} (67%) rename core/lib/dal/.sqlx/{query-93725851350146c6ec253a59af598fa893dbc9654d15753e4a538f021af67b60.json => query-dc16d0fac093a52480b66dfcb5976fb01e6629e8c982c265f2af1d5000090572.json} (50%) create mode 100644 core/lib/dal/.sqlx/query-dc481f59aae632ff6f5fa23f5c5c82627a936f7ea9f6c354eca4bea76fac6b10.json create mode 100644 core/lib/dal/.sqlx/query-dd55e46dfa5ba3692d9620088a3550b8db817630d1a9341db4a1f453f12e64fb.json create mode 100644 core/lib/dal/.sqlx/query-de3a5a35b111bd831bebe6d9391bf58b311d81c5fc0a6fbaccf204976f76f378.json create mode 100644 core/lib/dal/.sqlx/query-dea22358feed1418430505767d03aa4239d3a8be71b47178b4b8fb11fe898b31.json create mode 100644 core/lib/dal/.sqlx/query-df3256c012f86a9cd3b9260b97be5c6feb8059722149a747c4b6bd46731e2536.json create mode 100644 core/lib/dal/.sqlx/query-e073cfdc7a00559994ce04eca15f35d55901fb1e6805f23413ea43e3637540a0.json create mode 100644 core/lib/dal/.sqlx/query-e5a90d17b2c25744df4585b53678c7ffd9a04eae27afbdf37a6ba8ff7ac85f3b.json create mode 100644 core/lib/dal/.sqlx/query-e7d47990db585af7cbf096155babe152ead3d4a7f22bc3584803288e8d639c13.json create mode 100644 core/lib/dal/.sqlx/query-ea904aa930d602d33b6fbc1bf1178a8a0ec739f4ddec8ffeb3a87253aeb18d30.json create mode 100644 core/lib/dal/.sqlx/query-eab03e888f20020462ede2cd59fc0d68195346daf5f38d102eab1c1b73b0f82f.json delete mode 100644 core/lib/dal/.sqlx/query-eb9cd837842490dcb8ab8894ccdb1fcdd02ba2ae2104a0ef972fe809bf136425.json create mode 100644 core/lib/dal/.sqlx/query-ef331469f78c6ff68a254a15b55d056cc9bae25bc070c5de8424f88fab20e5ea.json create mode 100644 core/lib/dal/.sqlx/query-f012d0922265269746396dac8f25ff66f2c3b2b83d45360818a8782e56aa3d66.json create mode 100644 core/lib/dal/.sqlx/query-f1541a8d970d57ed118ee603e7285ec6ec1e522bc058710560ef78e75f94ddac.json create mode 100644 core/lib/dal/.sqlx/query-f1a90090c192d68367e799188356efe8d41759bbdcdd6d39db93208f2664f03a.json delete mode 100644 core/lib/dal/.sqlx/query-f2606e792f08f65d15bdab66a83741e2713748a17c96af5485423bfe9aaa84ec.json create mode 100644 core/lib/dal/.sqlx/query-f2f852a340c45ff69cbca42d7c592dfb0d28a797bee69872634f3105d2d51996.json delete mode 100644 core/lib/dal/.sqlx/query-f3a695b0179ffdacd4baf9eeb6c1fac675dd7b078df61758df382e1038cb4987.json create mode 100644 core/lib/dal/.sqlx/query-f63586d59264eab7388ad1de823227ecaa45d76d1ba260074898fe57c059a15a.json create mode 100644 core/lib/dal/.sqlx/query-f91790ae5cc4b087bf942ba52dd63a1e89945f8d5e0f4da42ecf6313c4f5967e.json create mode 100644 core/lib/dal/.sqlx/query-fcc108fd59203644ff86ded0505c7dfb7aad7261e5fc402d845aedc3b91a4e99.json create mode 100644 core/lib/dal/.sqlx/query-fde16cd2d3de03f4b61625fa453a58f82acd817932415f04bcbd05442ad80c2b.json create mode 100644 core/lib/dal/.sqlx/query-fdffa5841554286a924b217b5885d9ec9b3f628c3a4cf5e10580ea6e5e3a2429.json create mode 100644 core/lib/dal/.sqlx/query-fe06e06c04466429bb85709e6fe8dd6c2ad2793c06071f4a067dcc31306adebc.json create mode 100644 core/lib/dal/.sqlx/query-fe501f86f4bf6c5b8ccc2e039a4eb09b538a67d1c39fda052c4f4ddb23ce0084.json create mode 100644 core/lib/dal/.sqlx/query-fec7b791e371a4c58350b6537065223f4599d4128db588d8645f3d106de5f50b.json diff --git a/core/lib/dal/.sqlx/query-0034bc1041d9ba7d3c681be6dfc4e7dfacfcf625e057b99924c245de03c2888c.json b/core/lib/dal/.sqlx/query-0034bc1041d9ba7d3c681be6dfc4e7dfacfcf625e057b99924c245de03c2888c.json new file mode 100644 index 000000000000..cf78a74dfb3c --- /dev/null +++ b/core/lib/dal/.sqlx/query-0034bc1041d9ba7d3c681be6dfc4e7dfacfcf625e057b99924c245de03c2888c.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE l1_batches\n SET\n fee_account_address = $1::bytea\n WHERE\n number = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Bytea", + "Int8" + ] + }, + "nullable": [] + }, + "hash": "0034bc1041d9ba7d3c681be6dfc4e7dfacfcf625e057b99924c245de03c2888c" +} diff --git a/core/lib/dal/.sqlx/query-012bed5d34240ed28c331c8515c381d82925556a4801f678b8786235d525d784.json b/core/lib/dal/.sqlx/query-012bed5d34240ed28c331c8515c381d82925556a4801f678b8786235d525d784.json new file mode 100644 index 000000000000..fbeefdfbf956 --- /dev/null +++ b/core/lib/dal/.sqlx/query-012bed5d34240ed28c331c8515c381d82925556a4801f678b8786235d525d784.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE l1_batches\n SET\n eth_commit_tx_id = $1,\n updated_at = NOW()\n WHERE\n number BETWEEN $2 AND $3\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int4", + "Int8", + "Int8" + ] + }, + "nullable": [] + }, + "hash": "012bed5d34240ed28c331c8515c381d82925556a4801f678b8786235d525d784" +} diff --git a/core/lib/dal/.sqlx/query-015350f8d729ef490553550a68f07703b2581dda4fe3c00be6c5422c78980c4b.json b/core/lib/dal/.sqlx/query-015350f8d729ef490553550a68f07703b2581dda4fe3c00be6c5422c78980c4b.json new file mode 100644 index 000000000000..d8495583ba97 --- /dev/null +++ b/core/lib/dal/.sqlx/query-015350f8d729ef490553550a68f07703b2581dda4fe3c00be6c5422c78980c4b.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n MAX(id) AS \"max?\"\n FROM\n protocol_versions\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "max?", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + null + ] + }, + "hash": "015350f8d729ef490553550a68f07703b2581dda4fe3c00be6c5422c78980c4b" +} diff --git a/core/lib/dal/.sqlx/query-01e4cde73867da612084c3f6fe882d56bbace9013f1d95ea0926eef1fb48039b.json b/core/lib/dal/.sqlx/query-01e4cde73867da612084c3f6fe882d56bbace9013f1d95ea0926eef1fb48039b.json new file mode 100644 index 000000000000..4a229dbe78d6 --- /dev/null +++ b/core/lib/dal/.sqlx/query-01e4cde73867da612084c3f6fe882d56bbace9013f1d95ea0926eef1fb48039b.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n l1_batch_number,\n factory_deps_filepath,\n storage_logs_filepaths\n FROM\n snapshots\n WHERE\n l1_batch_number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "l1_batch_number", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "factory_deps_filepath", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "storage_logs_filepaths", + "type_info": "TextArray" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "01e4cde73867da612084c3f6fe882d56bbace9013f1d95ea0926eef1fb48039b" +} diff --git a/core/lib/dal/.sqlx/query-01f72dfc1eee6360a8ef7809874a1b4ba7fe355ebc02ea49a054aa073ce324ba.json b/core/lib/dal/.sqlx/query-01f72dfc1eee6360a8ef7809874a1b4ba7fe355ebc02ea49a054aa073ce324ba.json new file mode 100644 index 000000000000..e28c68abc281 --- /dev/null +++ b/core/lib/dal/.sqlx/query-01f72dfc1eee6360a8ef7809874a1b4ba7fe355ebc02ea49a054aa073ce324ba.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE storage\n SET\n value = u.value\n FROM\n UNNEST($1::bytea[], $2::bytea[]) AS u (key, value)\n WHERE\n u.key = hashed_key\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "ByteaArray", + "ByteaArray" + ] + }, + "nullable": [] + }, + "hash": "01f72dfc1eee6360a8ef7809874a1b4ba7fe355ebc02ea49a054aa073ce324ba" +} diff --git a/core/lib/dal/.sqlx/query-026ab7dd7407f10074a2966b5eac2563a3e061bcc6505d8c295b1b2517f85f1b.json b/core/lib/dal/.sqlx/query-026ab7dd7407f10074a2966b5eac2563a3e061bcc6505d8c295b1b2517f85f1b.json new file mode 100644 index 000000000000..d98798241f7e --- /dev/null +++ b/core/lib/dal/.sqlx/query-026ab7dd7407f10074a2966b5eac2563a3e061bcc6505d8c295b1b2517f85f1b.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n number\n FROM\n l1_batches\n LEFT JOIN eth_txs_history AS prove_tx ON (l1_batches.eth_prove_tx_id = prove_tx.eth_tx_id)\n WHERE\n prove_tx.confirmed_at IS NOT NULL\n ORDER BY\n number DESC\n LIMIT\n 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "number", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false + ] + }, + "hash": "026ab7dd7407f10074a2966b5eac2563a3e061bcc6505d8c295b1b2517f85f1b" +} diff --git a/core/lib/dal/.sqlx/query-03c585c7e9f918e608757496088c7e3b6bdb2a08149d5f443310607d3c78988c.json b/core/lib/dal/.sqlx/query-03c585c7e9f918e608757496088c7e3b6bdb2a08149d5f443310607d3c78988c.json new file mode 100644 index 000000000000..9c811e9f87cc --- /dev/null +++ b/core/lib/dal/.sqlx/query-03c585c7e9f918e608757496088c7e3b6bdb2a08149d5f443310607d3c78988c.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n storage_refunds\n FROM\n l1_batches\n WHERE\n number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "storage_refunds", + "type_info": "Int8Array" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + true + ] + }, + "hash": "03c585c7e9f918e608757496088c7e3b6bdb2a08149d5f443310607d3c78988c" +} diff --git a/core/lib/dal/.sqlx/query-040eaa878c3473f5edc73b77e572b5ea100f59295cd693d14ee0d5ee089c7981.json b/core/lib/dal/.sqlx/query-040eaa878c3473f5edc73b77e572b5ea100f59295cd693d14ee0d5ee089c7981.json new file mode 100644 index 000000000000..c0e0c777cc52 --- /dev/null +++ b/core/lib/dal/.sqlx/query-040eaa878c3473f5edc73b77e572b5ea100f59295cd693d14ee0d5ee089c7981.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n l1_batch_number\n FROM\n snapshots\n WHERE\n NOT (''::TEXT = ANY (storage_logs_filepaths))\n ORDER BY\n l1_batch_number DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "l1_batch_number", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false + ] + }, + "hash": "040eaa878c3473f5edc73b77e572b5ea100f59295cd693d14ee0d5ee089c7981" +} diff --git a/core/lib/dal/.sqlx/query-04fbbd198108d2614a3b29fa795994723ebe57b3ed209069bd3db906921ef1a3.json b/core/lib/dal/.sqlx/query-04fbbd198108d2614a3b29fa795994723ebe57b3ed209069bd3db906921ef1a3.json new file mode 100644 index 000000000000..00f94f7c864e --- /dev/null +++ b/core/lib/dal/.sqlx/query-04fbbd198108d2614a3b29fa795994723ebe57b3ed209069bd3db906921ef1a3.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n MIN(miniblocks.number) AS \"min?\",\n MAX(miniblocks.number) AS \"max?\"\n FROM\n miniblocks\n WHERE\n l1_batch_number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "min?", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "max?", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + null, + null + ] + }, + "hash": "04fbbd198108d2614a3b29fa795994723ebe57b3ed209069bd3db906921ef1a3" +} diff --git a/core/lib/dal/.sqlx/query-0535c87d0ae694d5f10e529742ba2803cd147dec7450d1f81a41aea8dcf3be93.json b/core/lib/dal/.sqlx/query-0535c87d0ae694d5f10e529742ba2803cd147dec7450d1f81a41aea8dcf3be93.json new file mode 100644 index 000000000000..8c16bcb25c8a --- /dev/null +++ b/core/lib/dal/.sqlx/query-0535c87d0ae694d5f10e529742ba2803cd147dec7450d1f81a41aea8dcf3be93.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n fee_account_address\n FROM\n miniblocks\n WHERE\n number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "fee_account_address", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "0535c87d0ae694d5f10e529742ba2803cd147dec7450d1f81a41aea8dcf3be93" +} diff --git a/core/lib/dal/.sqlx/query-06ce3e5c10d6ae327fc2e45fd9080112ce326bcf4bb38a00366bd24e38881bb2.json b/core/lib/dal/.sqlx/query-06ce3e5c10d6ae327fc2e45fd9080112ce326bcf4bb38a00366bd24e38881bb2.json deleted file mode 100644 index 33b2394218f0..000000000000 --- a/core/lib/dal/.sqlx/query-06ce3e5c10d6ae327fc2e45fd9080112ce326bcf4bb38a00366bd24e38881bb2.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT number AS number, false AS \"confirmed!\" FROM l1_batches INNER JOIN eth_txs_history ON l1_batches.eth_execute_tx_id = eth_txs_history.eth_tx_id ORDER BY number DESC LIMIT 1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "number", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "confirmed!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [] - }, - "nullable": [ - false, - null - ] - }, - "hash": "06ce3e5c10d6ae327fc2e45fd9080112ce326bcf4bb38a00366bd24e38881bb2" -} diff --git a/core/lib/dal/.sqlx/query-07310d96fc7e258154ad510684e33d196907ebd599e926d305e5ef9f26afa2fa.json b/core/lib/dal/.sqlx/query-07310d96fc7e258154ad510684e33d196907ebd599e926d305e5ef9f26afa2fa.json new file mode 100644 index 000000000000..a293d217645c --- /dev/null +++ b/core/lib/dal/.sqlx/query-07310d96fc7e258154ad510684e33d196907ebd599e926d305e5ef9f26afa2fa.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "INSERT INTO eth_txs_history (eth_tx_id, base_fee_per_gas, priority_fee_per_gas, tx_hash, signed_raw_tx, created_at, updated_at, confirmed_at) VALUES ($1, 0, 0, $2, '\\x00', now(), now(), $3) RETURNING id", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Int4", + "Text", + "Timestamp" + ] + }, + "nullable": [ + false + ] + }, + "hash": "07310d96fc7e258154ad510684e33d196907ebd599e926d305e5ef9f26afa2fa" +} diff --git a/core/lib/dal/.sqlx/query-083991abb3f1c2183d1bd1fb2ad4710daa723e2d9a23317c347f6081465c3643.json b/core/lib/dal/.sqlx/query-083991abb3f1c2183d1bd1fb2ad4710daa723e2d9a23317c347f6081465c3643.json new file mode 100644 index 000000000000..e2c3a7105562 --- /dev/null +++ b/core/lib/dal/.sqlx/query-083991abb3f1c2183d1bd1fb2ad4710daa723e2d9a23317c347f6081465c3643.json @@ -0,0 +1,52 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE basic_witness_input_producer_jobs\n SET\n status = $1,\n updated_at = NOW(),\n time_taken = $3,\n error = $4\n WHERE\n l1_batch_number = $2\n AND status != $5\n RETURNING\n basic_witness_input_producer_jobs.attempts\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "attempts", + "type_info": "Int2" + } + ], + "parameters": { + "Left": [ + { + "Custom": { + "name": "basic_witness_input_producer_job_status", + "kind": { + "Enum": [ + "Queued", + "ManuallySkipped", + "InProgress", + "Successful", + "Failed" + ] + } + } + }, + "Int8", + "Time", + "Text", + { + "Custom": { + "name": "basic_witness_input_producer_job_status", + "kind": { + "Enum": [ + "Queued", + "ManuallySkipped", + "InProgress", + "Successful", + "Failed" + ] + } + } + } + ] + }, + "nullable": [ + false + ] + }, + "hash": "083991abb3f1c2183d1bd1fb2ad4710daa723e2d9a23317c347f6081465c3643" +} diff --git a/core/lib/dal/.sqlx/query-08737d11b3e5067a2468013ec6e5d95fc47eb6bedc32f4d824aac9b2b6f96faf.json b/core/lib/dal/.sqlx/query-08737d11b3e5067a2468013ec6e5d95fc47eb6bedc32f4d824aac9b2b6f96faf.json new file mode 100644 index 000000000000..2e83c0036b95 --- /dev/null +++ b/core/lib/dal/.sqlx/query-08737d11b3e5067a2468013ec6e5d95fc47eb6bedc32f4d824aac9b2b6f96faf.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE miniblocks\n SET\n fee_account_address = l1_batches.fee_account_address\n FROM\n l1_batches\n WHERE\n l1_batches.number = miniblocks.l1_batch_number\n AND miniblocks.number BETWEEN $1 AND $2\n AND miniblocks.fee_account_address = '\\x0000000000000000000000000000000000000000'::bytea\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8", + "Int8" + ] + }, + "nullable": [] + }, + "hash": "08737d11b3e5067a2468013ec6e5d95fc47eb6bedc32f4d824aac9b2b6f96faf" +} diff --git a/core/lib/dal/.sqlx/query-08e59ed8e2fd1a74e19d8bf0d131e4ee6682a89fb86f3b715a240805d44e6d87.json b/core/lib/dal/.sqlx/query-08e59ed8e2fd1a74e19d8bf0d131e4ee6682a89fb86f3b715a240805d44e6d87.json new file mode 100644 index 000000000000..0c3ca92c10c5 --- /dev/null +++ b/core/lib/dal/.sqlx/query-08e59ed8e2fd1a74e19d8bf0d131e4ee6682a89fb86f3b715a240805d44e6d87.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO\n proof_generation_details (l1_batch_number, status, proof_gen_data_blob_url, created_at, updated_at)\n VALUES\n ($1, 'ready_to_be_proven', $2, NOW(), NOW())\n ON CONFLICT (l1_batch_number) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8", + "Text" + ] + }, + "nullable": [] + }, + "hash": "08e59ed8e2fd1a74e19d8bf0d131e4ee6682a89fb86f3b715a240805d44e6d87" +} diff --git a/core/lib/dal/.sqlx/query-0914f0ad03d6a8c55d287f94917c6f03469d78bf4f45f5fd1eaf37171db2f04a.json b/core/lib/dal/.sqlx/query-0914f0ad03d6a8c55d287f94917c6f03469d78bf4f45f5fd1eaf37171db2f04a.json new file mode 100644 index 000000000000..b8e36d109065 --- /dev/null +++ b/core/lib/dal/.sqlx/query-0914f0ad03d6a8c55d287f94917c6f03469d78bf4f45f5fd1eaf37171db2f04a.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n l1_batch_number\n FROM\n proof_generation_details\n WHERE\n status NOT IN ('generated', 'skipped')\n ORDER BY\n l1_batch_number ASC\n LIMIT\n 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "l1_batch_number", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false + ] + }, + "hash": "0914f0ad03d6a8c55d287f94917c6f03469d78bf4f45f5fd1eaf37171db2f04a" +} diff --git a/core/lib/dal/.sqlx/query-3d2d005b59ba9931286452e029cfccb19a2f9663a73306dbf61a257050e2b634.json b/core/lib/dal/.sqlx/query-0a3c928a616b5ebc0b977bd773edcde721ca1c652ae2f8db41fb75cecdecb674.json similarity index 55% rename from core/lib/dal/.sqlx/query-3d2d005b59ba9931286452e029cfccb19a2f9663a73306dbf61a257050e2b634.json rename to core/lib/dal/.sqlx/query-0a3c928a616b5ebc0b977bd773edcde721ca1c652ae2f8db41fb75cecdecb674.json index c049a99bb767..f0e439d0e0b8 100644 --- a/core/lib/dal/.sqlx/query-3d2d005b59ba9931286452e029cfccb19a2f9663a73306dbf61a257050e2b634.json +++ b/core/lib/dal/.sqlx/query-0a3c928a616b5ebc0b977bd773edcde721ca1c652ae2f8db41fb75cecdecb674.json @@ -1,11 +1,11 @@ { "db_name": "PostgreSQL", - "query": "SELECT number FROM miniblocks WHERE number = $1", + "query": "SELECT COUNT(*) FROM storage_logs WHERE miniblock_number = $1", "describe": { "columns": [ { "ordinal": 0, - "name": "number", + "name": "count", "type_info": "Int8" } ], @@ -15,8 +15,8 @@ ] }, "nullable": [ - false + null ] }, - "hash": "3d2d005b59ba9931286452e029cfccb19a2f9663a73306dbf61a257050e2b634" + "hash": "0a3c928a616b5ebc0b977bd773edcde721ca1c652ae2f8db41fb75cecdecb674" } diff --git a/core/lib/dal/.sqlx/query-0a3cb11f5bdcb8da31dbd4e3016fced141fb29dd8b6c32dd2dc3452dc294fe1f.json b/core/lib/dal/.sqlx/query-0a3cb11f5bdcb8da31dbd4e3016fced141fb29dd8b6c32dd2dc3452dc294fe1f.json new file mode 100644 index 000000000000..854e34b4f184 --- /dev/null +++ b/core/lib/dal/.sqlx/query-0a3cb11f5bdcb8da31dbd4e3016fced141fb29dd8b6c32dd2dc3452dc294fe1f.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO\n protocol_versions (\n id,\n timestamp,\n recursion_scheduler_level_vk_hash,\n recursion_node_level_vk_hash,\n recursion_leaf_level_vk_hash,\n recursion_circuits_set_vks_hash,\n bootloader_code_hash,\n default_account_code_hash,\n verifier_address,\n upgrade_tx_hash,\n created_at\n )\n VALUES\n ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, NOW())\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int4", + "Int8", + "Bytea", + "Bytea", + "Bytea", + "Bytea", + "Bytea", + "Bytea", + "Bytea", + "Bytea" + ] + }, + "nullable": [] + }, + "hash": "0a3cb11f5bdcb8da31dbd4e3016fced141fb29dd8b6c32dd2dc3452dc294fe1f" +} diff --git a/core/lib/dal/.sqlx/query-0a53fc3c90a14038c9f3f32c3e2e5f7edcafa4fc6757264a96a46dbf7dd1f9cc.json b/core/lib/dal/.sqlx/query-0a53fc3c90a14038c9f3f32c3e2e5f7edcafa4fc6757264a96a46dbf7dd1f9cc.json new file mode 100644 index 000000000000..00379abe6df7 --- /dev/null +++ b/core/lib/dal/.sqlx/query-0a53fc3c90a14038c9f3f32c3e2e5f7edcafa4fc6757264a96a46dbf7dd1f9cc.json @@ -0,0 +1,31 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO\n transactions (\n hash,\n is_priority,\n initiator_address,\n gas_limit,\n max_fee_per_gas,\n gas_per_pubdata_limit,\n data,\n priority_op_id,\n full_fee,\n layer_2_tip_fee,\n contract_address,\n l1_block_number,\n value,\n paymaster,\n paymaster_input,\n tx_format,\n l1_tx_mint,\n l1_tx_refund_recipient,\n received_at,\n created_at,\n updated_at\n )\n VALUES\n (\n $1,\n TRUE,\n $2,\n $3,\n $4,\n $5,\n $6,\n $7,\n $8,\n $9,\n $10,\n $11,\n $12,\n $13,\n $14,\n $15,\n $16,\n $17,\n $18,\n NOW(),\n NOW()\n )\n ON CONFLICT (hash) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Bytea", + "Bytea", + "Numeric", + "Numeric", + "Numeric", + "Jsonb", + "Int8", + "Numeric", + "Numeric", + "Bytea", + "Int4", + "Numeric", + "Bytea", + "Bytea", + "Int4", + "Numeric", + "Bytea", + "Timestamp" + ] + }, + "nullable": [] + }, + "hash": "0a53fc3c90a14038c9f3f32c3e2e5f7edcafa4fc6757264a96a46dbf7dd1f9cc" +} diff --git a/core/lib/dal/.sqlx/query-0bdcf87f6910c7222b621f76f71bc6e326e15dca141050bc9d7dacae98a430e8.json b/core/lib/dal/.sqlx/query-0bdcf87f6910c7222b621f76f71bc6e326e15dca141050bc9d7dacae98a430e8.json new file mode 100644 index 000000000000..e5ed48130726 --- /dev/null +++ b/core/lib/dal/.sqlx/query-0bdcf87f6910c7222b621f76f71bc6e326e15dca141050bc9d7dacae98a430e8.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n hash\n FROM\n l1_batches\n WHERE\n number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "hash", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + true + ] + }, + "hash": "0bdcf87f6910c7222b621f76f71bc6e326e15dca141050bc9d7dacae98a430e8" +} diff --git a/core/lib/dal/.sqlx/query-0c899c68886f76a232ffac0454cdfbf962636347864fc365fafa46c7a2da5f30.json b/core/lib/dal/.sqlx/query-0c899c68886f76a232ffac0454cdfbf962636347864fc365fafa46c7a2da5f30.json new file mode 100644 index 000000000000..35c1633fc557 --- /dev/null +++ b/core/lib/dal/.sqlx/query-0c899c68886f76a232ffac0454cdfbf962636347864fc365fafa46c7a2da5f30.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n virtual_blocks\n FROM\n miniblocks\n WHERE\n number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "virtual_blocks", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "0c899c68886f76a232ffac0454cdfbf962636347864fc365fafa46c7a2da5f30" +} diff --git a/core/lib/dal/.sqlx/query-0c95fbfb3a816bd49fd06e3a4f0a52daa202279bf612a9278f663deb78bc6e41.json b/core/lib/dal/.sqlx/query-0c95fbfb3a816bd49fd06e3a4f0a52daa202279bf612a9278f663deb78bc6e41.json new file mode 100644 index 000000000000..100761f54b41 --- /dev/null +++ b/core/lib/dal/.sqlx/query-0c95fbfb3a816bd49fd06e3a4f0a52daa202279bf612a9278f663deb78bc6e41.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n protocol_version\n FROM\n l1_batches\n WHERE\n number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "protocol_version", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + true + ] + }, + "hash": "0c95fbfb3a816bd49fd06e3a4f0a52daa202279bf612a9278f663deb78bc6e41" +} diff --git a/core/lib/dal/.sqlx/query-10959c91f01ce0da196f4c6eaf0661a097308d9f81024fdfef24a14418202730.json b/core/lib/dal/.sqlx/query-10959c91f01ce0da196f4c6eaf0661a097308d9f81024fdfef24a14418202730.json new file mode 100644 index 000000000000..8f929a7a7336 --- /dev/null +++ b/core/lib/dal/.sqlx/query-10959c91f01ce0da196f4c6eaf0661a097308d9f81024fdfef24a14418202730.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n verification_info\n FROM\n contracts_verification_info\n WHERE\n address = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "verification_info", + "type_info": "Jsonb" + } + ], + "parameters": { + "Left": [ + "Bytea" + ] + }, + "nullable": [ + true + ] + }, + "hash": "10959c91f01ce0da196f4c6eaf0661a097308d9f81024fdfef24a14418202730" +} diff --git a/core/lib/dal/.sqlx/query-10b8981f7aa47ce5d3507571af45f7cef0d50c4938105684971e8adc86bb6366.json b/core/lib/dal/.sqlx/query-10b8981f7aa47ce5d3507571af45f7cef0d50c4938105684971e8adc86bb6366.json deleted file mode 100644 index d59f237ed3c3..000000000000 --- a/core/lib/dal/.sqlx/query-10b8981f7aa47ce5d3507571af45f7cef0d50c4938105684971e8adc86bb6366.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT COALESCE(SUM(predicted_execute_gas_cost), 0) AS \"sum!\" FROM l1_batches WHERE number BETWEEN $1 AND $2", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "sum!", - "type_info": "Numeric" - } - ], - "parameters": { - "Left": [ - "Int8", - "Int8" - ] - }, - "nullable": [ - null - ] - }, - "hash": "10b8981f7aa47ce5d3507571af45f7cef0d50c4938105684971e8adc86bb6366" -} diff --git a/core/lib/dal/.sqlx/query-11af69fc254e54449b64c086667700a95e4c37a7a18531b3cdf120394cb055b9.json b/core/lib/dal/.sqlx/query-11af69fc254e54449b64c086667700a95e4c37a7a18531b3cdf120394cb055b9.json new file mode 100644 index 000000000000..ed211d7dc9d8 --- /dev/null +++ b/core/lib/dal/.sqlx/query-11af69fc254e54449b64c086667700a95e4c37a7a18531b3cdf120394cb055b9.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE proof_generation_details\n SET\n status = 'picked_by_prover',\n updated_at = NOW(),\n prover_taken_at = NOW()\n WHERE\n l1_batch_number = (\n SELECT\n l1_batch_number\n FROM\n proof_generation_details\n WHERE\n status = 'ready_to_be_proven'\n OR (\n status = 'picked_by_prover'\n AND prover_taken_at < NOW() - $1::INTERVAL\n )\n ORDER BY\n l1_batch_number ASC\n LIMIT\n 1\n FOR UPDATE\n SKIP LOCKED\n )\n RETURNING\n proof_generation_details.l1_batch_number\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "l1_batch_number", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Interval" + ] + }, + "nullable": [ + false + ] + }, + "hash": "11af69fc254e54449b64c086667700a95e4c37a7a18531b3cdf120394cb055b9" +} diff --git a/core/lib/dal/.sqlx/query-136569d7eb4037fd77e0fac2246c68e8e15a831f1a45dc3b2240d5c6809d5ef2.json b/core/lib/dal/.sqlx/query-136569d7eb4037fd77e0fac2246c68e8e15a831f1a45dc3b2240d5c6809d5ef2.json new file mode 100644 index 000000000000..fc33c9693033 --- /dev/null +++ b/core/lib/dal/.sqlx/query-136569d7eb4037fd77e0fac2246c68e8e15a831f1a45dc3b2240d5c6809d5ef2.json @@ -0,0 +1,82 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n *\n FROM\n protocol_versions\n WHERE\n id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "timestamp", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "recursion_scheduler_level_vk_hash", + "type_info": "Bytea" + }, + { + "ordinal": 3, + "name": "recursion_node_level_vk_hash", + "type_info": "Bytea" + }, + { + "ordinal": 4, + "name": "recursion_leaf_level_vk_hash", + "type_info": "Bytea" + }, + { + "ordinal": 5, + "name": "recursion_circuits_set_vks_hash", + "type_info": "Bytea" + }, + { + "ordinal": 6, + "name": "bootloader_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 7, + "name": "default_account_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 8, + "name": "verifier_address", + "type_info": "Bytea" + }, + { + "ordinal": 9, + "name": "upgrade_tx_hash", + "type_info": "Bytea" + }, + { + "ordinal": 10, + "name": "created_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + false + ] + }, + "hash": "136569d7eb4037fd77e0fac2246c68e8e15a831f1a45dc3b2240d5c6809d5ef2" +} diff --git a/core/lib/dal/.sqlx/query-14e5a66ee9a2b7bc56e41c3925150dd2778c0da29697d31710e8b507629ba5c4.json b/core/lib/dal/.sqlx/query-14e5a66ee9a2b7bc56e41c3925150dd2778c0da29697d31710e8b507629ba5c4.json deleted file mode 100644 index 1d8b1e4c89e9..000000000000 --- a/core/lib/dal/.sqlx/query-14e5a66ee9a2b7bc56e41c3925150dd2778c0da29697d31710e8b507629ba5c4.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT COALESCE(\n (SELECT (MAX(number) + 1) AS number FROM miniblocks),\n (SELECT (MAX(miniblock_number) + 1) AS number FROM snapshot_recovery),\n 0\n ) AS number\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "number", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [] - }, - "nullable": [ - null - ] - }, - "hash": "14e5a66ee9a2b7bc56e41c3925150dd2778c0da29697d31710e8b507629ba5c4" -} diff --git a/core/lib/dal/.sqlx/query-1689c212d411ebd99a22210519ea2d505a1aabf52ff4136d2ed1b39c70dd1632.json b/core/lib/dal/.sqlx/query-1689c212d411ebd99a22210519ea2d505a1aabf52ff4136d2ed1b39c70dd1632.json new file mode 100644 index 000000000000..7b939d137db9 --- /dev/null +++ b/core/lib/dal/.sqlx/query-1689c212d411ebd99a22210519ea2d505a1aabf52ff4136d2ed1b39c70dd1632.json @@ -0,0 +1,230 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n *\n FROM\n transactions\n WHERE\n miniblock_number IS NOT NULL\n AND l1_batch_number IS NULL\n ORDER BY\n miniblock_number,\n index_in_block\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "hash", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "is_priority", + "type_info": "Bool" + }, + { + "ordinal": 2, + "name": "full_fee", + "type_info": "Numeric" + }, + { + "ordinal": 3, + "name": "layer_2_tip_fee", + "type_info": "Numeric" + }, + { + "ordinal": 4, + "name": "initiator_address", + "type_info": "Bytea" + }, + { + "ordinal": 5, + "name": "nonce", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "signature", + "type_info": "Bytea" + }, + { + "ordinal": 7, + "name": "input", + "type_info": "Bytea" + }, + { + "ordinal": 8, + "name": "data", + "type_info": "Jsonb" + }, + { + "ordinal": 9, + "name": "received_at", + "type_info": "Timestamp" + }, + { + "ordinal": 10, + "name": "priority_op_id", + "type_info": "Int8" + }, + { + "ordinal": 11, + "name": "l1_batch_number", + "type_info": "Int8" + }, + { + "ordinal": 12, + "name": "index_in_block", + "type_info": "Int4" + }, + { + "ordinal": 13, + "name": "error", + "type_info": "Varchar" + }, + { + "ordinal": 14, + "name": "gas_limit", + "type_info": "Numeric" + }, + { + "ordinal": 15, + "name": "gas_per_storage_limit", + "type_info": "Numeric" + }, + { + "ordinal": 16, + "name": "gas_per_pubdata_limit", + "type_info": "Numeric" + }, + { + "ordinal": 17, + "name": "tx_format", + "type_info": "Int4" + }, + { + "ordinal": 18, + "name": "created_at", + "type_info": "Timestamp" + }, + { + "ordinal": 19, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 20, + "name": "execution_info", + "type_info": "Jsonb" + }, + { + "ordinal": 21, + "name": "contract_address", + "type_info": "Bytea" + }, + { + "ordinal": 22, + "name": "in_mempool", + "type_info": "Bool" + }, + { + "ordinal": 23, + "name": "l1_block_number", + "type_info": "Int4" + }, + { + "ordinal": 24, + "name": "value", + "type_info": "Numeric" + }, + { + "ordinal": 25, + "name": "paymaster", + "type_info": "Bytea" + }, + { + "ordinal": 26, + "name": "paymaster_input", + "type_info": "Bytea" + }, + { + "ordinal": 27, + "name": "max_fee_per_gas", + "type_info": "Numeric" + }, + { + "ordinal": 28, + "name": "max_priority_fee_per_gas", + "type_info": "Numeric" + }, + { + "ordinal": 29, + "name": "effective_gas_price", + "type_info": "Numeric" + }, + { + "ordinal": 30, + "name": "miniblock_number", + "type_info": "Int8" + }, + { + "ordinal": 31, + "name": "l1_batch_tx_index", + "type_info": "Int4" + }, + { + "ordinal": 32, + "name": "refunded_gas", + "type_info": "Int8" + }, + { + "ordinal": 33, + "name": "l1_tx_mint", + "type_info": "Numeric" + }, + { + "ordinal": 34, + "name": "l1_tx_refund_recipient", + "type_info": "Bytea" + }, + { + "ordinal": 35, + "name": "upgrade_id", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + false, + true, + true, + false, + true, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + false, + false, + true, + false, + true, + false, + false, + false, + true, + true, + true, + true, + true, + false, + true, + true, + true + ] + }, + "hash": "1689c212d411ebd99a22210519ea2d505a1aabf52ff4136d2ed1b39c70dd1632" +} diff --git a/core/lib/dal/.sqlx/query-1766c0a21ba5918dd08f4babd8dbfdf10fb1cb43781219586c169fb976204331.json b/core/lib/dal/.sqlx/query-1766c0a21ba5918dd08f4babd8dbfdf10fb1cb43781219586c169fb976204331.json new file mode 100644 index 000000000000..74c11e4c9a01 --- /dev/null +++ b/core/lib/dal/.sqlx/query-1766c0a21ba5918dd08f4babd8dbfdf10fb1cb43781219586c169fb976204331.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n l1_batch_number\n FROM\n initial_writes\n WHERE\n hashed_key = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "l1_batch_number", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Bytea" + ] + }, + "nullable": [ + false + ] + }, + "hash": "1766c0a21ba5918dd08f4babd8dbfdf10fb1cb43781219586c169fb976204331" +} diff --git a/core/lib/dal/.sqlx/query-1862d3a78e4e9068df1b8ce3bbe9f3f0b5d629fdb5c36ea1bfb93ed246be968e.json b/core/lib/dal/.sqlx/query-1862d3a78e4e9068df1b8ce3bbe9f3f0b5d629fdb5c36ea1bfb93ed246be968e.json new file mode 100644 index 000000000000..1bb2d641befb --- /dev/null +++ b/core/lib/dal/.sqlx/query-1862d3a78e4e9068df1b8ce3bbe9f3f0b5d629fdb5c36ea1bfb93ed246be968e.json @@ -0,0 +1,88 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n transactions.is_priority,\n transactions.initiator_address,\n transactions.gas_limit,\n transactions.gas_per_pubdata_limit,\n transactions.received_at,\n transactions.miniblock_number,\n transactions.error,\n transactions.effective_gas_price,\n transactions.refunded_gas,\n commit_tx.tx_hash AS \"eth_commit_tx_hash?\",\n prove_tx.tx_hash AS \"eth_prove_tx_hash?\",\n execute_tx.tx_hash AS \"eth_execute_tx_hash?\"\n FROM\n transactions\n LEFT JOIN miniblocks ON miniblocks.number = transactions.miniblock_number\n LEFT JOIN l1_batches ON l1_batches.number = miniblocks.l1_batch_number\n LEFT JOIN eth_txs_history AS commit_tx ON (\n l1_batches.eth_commit_tx_id = commit_tx.eth_tx_id\n AND commit_tx.confirmed_at IS NOT NULL\n )\n LEFT JOIN eth_txs_history AS prove_tx ON (\n l1_batches.eth_prove_tx_id = prove_tx.eth_tx_id\n AND prove_tx.confirmed_at IS NOT NULL\n )\n LEFT JOIN eth_txs_history AS execute_tx ON (\n l1_batches.eth_execute_tx_id = execute_tx.eth_tx_id\n AND execute_tx.confirmed_at IS NOT NULL\n )\n WHERE\n transactions.hash = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "is_priority", + "type_info": "Bool" + }, + { + "ordinal": 1, + "name": "initiator_address", + "type_info": "Bytea" + }, + { + "ordinal": 2, + "name": "gas_limit", + "type_info": "Numeric" + }, + { + "ordinal": 3, + "name": "gas_per_pubdata_limit", + "type_info": "Numeric" + }, + { + "ordinal": 4, + "name": "received_at", + "type_info": "Timestamp" + }, + { + "ordinal": 5, + "name": "miniblock_number", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "error", + "type_info": "Varchar" + }, + { + "ordinal": 7, + "name": "effective_gas_price", + "type_info": "Numeric" + }, + { + "ordinal": 8, + "name": "refunded_gas", + "type_info": "Int8" + }, + { + "ordinal": 9, + "name": "eth_commit_tx_hash?", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "eth_prove_tx_hash?", + "type_info": "Text" + }, + { + "ordinal": 11, + "name": "eth_execute_tx_hash?", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Bytea" + ] + }, + "nullable": [ + false, + false, + true, + true, + false, + true, + true, + true, + false, + false, + false, + false + ] + }, + "hash": "1862d3a78e4e9068df1b8ce3bbe9f3f0b5d629fdb5c36ea1bfb93ed246be968e" +} diff --git a/core/lib/dal/.sqlx/query-19314d74e94b610e2da6d728ca37ea964610e131d45f720f7a7b2a130fe9ed89.json b/core/lib/dal/.sqlx/query-19314d74e94b610e2da6d728ca37ea964610e131d45f720f7a7b2a130fe9ed89.json new file mode 100644 index 000000000000..88093dcee18e --- /dev/null +++ b/core/lib/dal/.sqlx/query-19314d74e94b610e2da6d728ca37ea964610e131d45f720f7a7b2a130fe9ed89.json @@ -0,0 +1,17 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE contract_verification_requests\n SET\n status = 'failed',\n updated_at = NOW(),\n error = $2,\n compilation_errors = $3,\n panic_message = $4\n WHERE\n id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8", + "Text", + "Jsonb", + "Text" + ] + }, + "nullable": [] + }, + "hash": "19314d74e94b610e2da6d728ca37ea964610e131d45f720f7a7b2a130fe9ed89" +} diff --git a/core/lib/dal/.sqlx/query-19545806b8f772075096e69f8665d98a3d9f7df162ae22a98c3c7620fcd13bd2.json b/core/lib/dal/.sqlx/query-19545806b8f772075096e69f8665d98a3d9f7df162ae22a98c3c7620fcd13bd2.json new file mode 100644 index 000000000000..3273d9654aa4 --- /dev/null +++ b/core/lib/dal/.sqlx/query-19545806b8f772075096e69f8665d98a3d9f7df162ae22a98c3c7620fcd13bd2.json @@ -0,0 +1,80 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n *\n FROM\n protocol_versions\n ORDER BY\n id DESC\n LIMIT\n 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "timestamp", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "recursion_scheduler_level_vk_hash", + "type_info": "Bytea" + }, + { + "ordinal": 3, + "name": "recursion_node_level_vk_hash", + "type_info": "Bytea" + }, + { + "ordinal": 4, + "name": "recursion_leaf_level_vk_hash", + "type_info": "Bytea" + }, + { + "ordinal": 5, + "name": "recursion_circuits_set_vks_hash", + "type_info": "Bytea" + }, + { + "ordinal": 6, + "name": "bootloader_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 7, + "name": "default_account_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 8, + "name": "verifier_address", + "type_info": "Bytea" + }, + { + "ordinal": 9, + "name": "upgrade_tx_hash", + "type_info": "Bytea" + }, + { + "ordinal": 10, + "name": "created_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + false + ] + }, + "hash": "19545806b8f772075096e69f8665d98a3d9f7df162ae22a98c3c7620fcd13bd2" +} diff --git a/core/lib/dal/.sqlx/query-19b89495be8aa735db039ccc8a262786c58e54f132588c48f07d9537cf21d3ed.json b/core/lib/dal/.sqlx/query-19b89495be8aa735db039ccc8a262786c58e54f132588c48f07d9537cf21d3ed.json new file mode 100644 index 000000000000..b1156c907d47 --- /dev/null +++ b/core/lib/dal/.sqlx/query-19b89495be8aa735db039ccc8a262786c58e54f132588c48f07d9537cf21d3ed.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT sent_at_block FROM eth_txs_history WHERE eth_tx_id = $1 AND sent_at_block IS NOT NULL ORDER BY created_at ASC LIMIT 1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "sent_at_block", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + true + ] + }, + "hash": "19b89495be8aa735db039ccc8a262786c58e54f132588c48f07d9537cf21d3ed" +} diff --git a/core/lib/dal/.sqlx/query-1ad3bbd791f3ff0d31683bf59187b84c5fd52f0352f0f0e311d054cb9e45b07e.json b/core/lib/dal/.sqlx/query-1ad3bbd791f3ff0d31683bf59187b84c5fd52f0352f0f0e311d054cb9e45b07e.json new file mode 100644 index 000000000000..460f81615bf4 --- /dev/null +++ b/core/lib/dal/.sqlx/query-1ad3bbd791f3ff0d31683bf59187b84c5fd52f0352f0f0e311d054cb9e45b07e.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT DISTINCT\n ON (hashed_key) hashed_key\n FROM\n (\n SELECT\n *\n FROM\n storage_logs\n WHERE\n miniblock_number > $1\n ) inn\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "hashed_key", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "1ad3bbd791f3ff0d31683bf59187b84c5fd52f0352f0f0e311d054cb9e45b07e" +} diff --git a/core/lib/dal/.sqlx/query-1b4ebbfc96b4fd66ecbe64a6be80a01a6c7cbe9297cbb55d42533fddc18719b6.json b/core/lib/dal/.sqlx/query-1b4ebbfc96b4fd66ecbe64a6be80a01a6c7cbe9297cbb55d42533fddc18719b6.json new file mode 100644 index 000000000000..8b9995b3b0f7 --- /dev/null +++ b/core/lib/dal/.sqlx/query-1b4ebbfc96b4fd66ecbe64a6be80a01a6c7cbe9297cbb55d42533fddc18719b6.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n MAX(priority_op_id) AS \"op_id\"\n FROM\n transactions\n WHERE\n is_priority = TRUE\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "op_id", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + null + ] + }, + "hash": "1b4ebbfc96b4fd66ecbe64a6be80a01a6c7cbe9297cbb55d42533fddc18719b6" +} diff --git a/core/lib/dal/.sqlx/query-1c14d2def60fa5ff91788ddb55e68cee71742b732112038a642e2a07305053c2.json b/core/lib/dal/.sqlx/query-1c14d2def60fa5ff91788ddb55e68cee71742b732112038a642e2a07305053c2.json new file mode 100644 index 000000000000..71dfada3d59a --- /dev/null +++ b/core/lib/dal/.sqlx/query-1c14d2def60fa5ff91788ddb55e68cee71742b732112038a642e2a07305053c2.json @@ -0,0 +1,12 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE transactions\n SET\n in_mempool = FALSE\n WHERE\n in_mempool = TRUE\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [] + }, + "nullable": [] + }, + "hash": "1c14d2def60fa5ff91788ddb55e68cee71742b732112038a642e2a07305053c2" +} diff --git a/core/lib/dal/.sqlx/query-1c994d418ada78586de829fc2d34d26e48e968c79834858c98b7a7f9dfc81910.json b/core/lib/dal/.sqlx/query-1c994d418ada78586de829fc2d34d26e48e968c79834858c98b7a7f9dfc81910.json new file mode 100644 index 000000000000..747105fb444b --- /dev/null +++ b/core/lib/dal/.sqlx/query-1c994d418ada78586de829fc2d34d26e48e968c79834858c98b7a7f9dfc81910.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM l2_to_l1_logs\n WHERE\n miniblock_number > $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [] + }, + "hash": "1c994d418ada78586de829fc2d34d26e48e968c79834858c98b7a7f9dfc81910" +} diff --git a/core/lib/dal/.sqlx/query-1dcb3afb0c1947f92981f61d95c099c4591ce3f8d51f3df99db0165e086f96af.json b/core/lib/dal/.sqlx/query-1dcb3afb0c1947f92981f61d95c099c4591ce3f8d51f3df99db0165e086f96af.json new file mode 100644 index 000000000000..dd142601d007 --- /dev/null +++ b/core/lib/dal/.sqlx/query-1dcb3afb0c1947f92981f61d95c099c4591ce3f8d51f3df99db0165e086f96af.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n bytecode\n FROM\n factory_deps\n WHERE\n bytecode_hash = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "bytecode", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Bytea" + ] + }, + "nullable": [ + false + ] + }, + "hash": "1dcb3afb0c1947f92981f61d95c099c4591ce3f8d51f3df99db0165e086f96af" +} diff --git a/core/lib/dal/.sqlx/query-1ea37ef1c3df72e5e9c50cfa1675fc7f60618209d0132e7937a1347b7e94b212.json b/core/lib/dal/.sqlx/query-1ea37ef1c3df72e5e9c50cfa1675fc7f60618209d0132e7937a1347b7e94b212.json new file mode 100644 index 000000000000..1ae6117e4a15 --- /dev/null +++ b/core/lib/dal/.sqlx/query-1ea37ef1c3df72e5e9c50cfa1675fc7f60618209d0132e7937a1347b7e94b212.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n number\n FROM\n l1_batches\n WHERE\n eth_prove_tx_id IS NOT NULL\n AND eth_execute_tx_id IS NULL\n ORDER BY\n number\n LIMIT\n 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "number", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false + ] + }, + "hash": "1ea37ef1c3df72e5e9c50cfa1675fc7f60618209d0132e7937a1347b7e94b212" +} diff --git a/core/lib/dal/.sqlx/query-1ed2d7e5e98b15420a21650809d710ce910d0c9138d85cb55e16459c757dea03.json b/core/lib/dal/.sqlx/query-1ed2d7e5e98b15420a21650809d710ce910d0c9138d85cb55e16459c757dea03.json new file mode 100644 index 000000000000..9cf4cc1e68e1 --- /dev/null +++ b/core/lib/dal/.sqlx/query-1ed2d7e5e98b15420a21650809d710ce910d0c9138d85cb55e16459c757dea03.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n protocol_version\n FROM\n l1_batches\n ORDER BY\n number DESC\n LIMIT\n 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "protocol_version", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + true + ] + }, + "hash": "1ed2d7e5e98b15420a21650809d710ce910d0c9138d85cb55e16459c757dea03" +} diff --git a/core/lib/dal/.sqlx/query-1f46524410ce0f193dc6547499bde995ddddc621ee2149f08f905af2d8aadd03.json b/core/lib/dal/.sqlx/query-1f46524410ce0f193dc6547499bde995ddddc621ee2149f08f905af2d8aadd03.json new file mode 100644 index 000000000000..077554611f4f --- /dev/null +++ b/core/lib/dal/.sqlx/query-1f46524410ce0f193dc6547499bde995ddddc621ee2149f08f905af2d8aadd03.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE transactions\n SET\n hash = data_table.hash,\n signature = data_table.signature,\n gas_limit = data_table.gas_limit,\n max_fee_per_gas = data_table.max_fee_per_gas,\n max_priority_fee_per_gas = data_table.max_priority_fee_per_gas,\n gas_per_pubdata_limit = data_table.gas_per_pubdata_limit,\n input = data_table.input,\n data = data_table.data,\n tx_format = data_table.tx_format,\n miniblock_number = $21,\n index_in_block = data_table.index_in_block,\n error = NULLIF(data_table.error, ''),\n effective_gas_price = data_table.effective_gas_price,\n execution_info = data_table.new_execution_info,\n refunded_gas = data_table.refunded_gas,\n value = data_table.value,\n contract_address = data_table.contract_address,\n paymaster = data_table.paymaster,\n paymaster_input = data_table.paymaster_input,\n in_mempool = FALSE,\n updated_at = NOW()\n FROM\n (\n SELECT\n data_table_temp.*\n FROM\n (\n SELECT\n UNNEST($1::bytea[]) AS initiator_address,\n UNNEST($2::INT[]) AS nonce,\n UNNEST($3::bytea[]) AS hash,\n UNNEST($4::bytea[]) AS signature,\n UNNEST($5::NUMERIC[]) AS gas_limit,\n UNNEST($6::NUMERIC[]) AS max_fee_per_gas,\n UNNEST($7::NUMERIC[]) AS max_priority_fee_per_gas,\n UNNEST($8::NUMERIC[]) AS gas_per_pubdata_limit,\n UNNEST($9::INT[]) AS tx_format,\n UNNEST($10::INTEGER[]) AS index_in_block,\n UNNEST($11::VARCHAR[]) AS error,\n UNNEST($12::NUMERIC[]) AS effective_gas_price,\n UNNEST($13::jsonb[]) AS new_execution_info,\n UNNEST($14::bytea[]) AS input,\n UNNEST($15::jsonb[]) AS data,\n UNNEST($16::BIGINT[]) AS refunded_gas,\n UNNEST($17::NUMERIC[]) AS value,\n UNNEST($18::bytea[]) AS contract_address,\n UNNEST($19::bytea[]) AS paymaster,\n UNNEST($20::bytea[]) AS paymaster_input\n ) AS data_table_temp\n JOIN transactions ON transactions.initiator_address = data_table_temp.initiator_address\n AND transactions.nonce = data_table_temp.nonce\n ORDER BY\n transactions.hash\n ) AS data_table\n WHERE\n transactions.initiator_address = data_table.initiator_address\n AND transactions.nonce = data_table.nonce\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "ByteaArray", + "Int4Array", + "ByteaArray", + "ByteaArray", + "NumericArray", + "NumericArray", + "NumericArray", + "NumericArray", + "Int4Array", + "Int4Array", + "VarcharArray", + "NumericArray", + "JsonbArray", + "ByteaArray", + "JsonbArray", + "Int8Array", + "NumericArray", + "ByteaArray", + "ByteaArray", + "ByteaArray", + "Int8" + ] + }, + "nullable": [] + }, + "hash": "1f46524410ce0f193dc6547499bde995ddddc621ee2149f08f905af2d8aadd03" +} diff --git a/core/lib/dal/.sqlx/query-2003dcf7bc807c7d345368538accd9b0128f82306e27e4c7258116082a54ab95.json b/core/lib/dal/.sqlx/query-2003dcf7bc807c7d345368538accd9b0128f82306e27e4c7258116082a54ab95.json new file mode 100644 index 000000000000..77177e405f12 --- /dev/null +++ b/core/lib/dal/.sqlx/query-2003dcf7bc807c7d345368538accd9b0128f82306e27e4c7258116082a54ab95.json @@ -0,0 +1,29 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n transactions.hash,\n transactions.received_at\n FROM\n transactions\n LEFT JOIN miniblocks ON miniblocks.number = miniblock_number\n WHERE\n received_at > $1\n ORDER BY\n received_at ASC\n LIMIT\n $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "hash", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "received_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Timestamp", + "Int8" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "2003dcf7bc807c7d345368538accd9b0128f82306e27e4c7258116082a54ab95" +} diff --git a/core/lib/dal/.sqlx/query-20f84f9ec21459d8c7ad53241758eeab159533211d2ddbef41e6ff0ba937d04a.json b/core/lib/dal/.sqlx/query-20f84f9ec21459d8c7ad53241758eeab159533211d2ddbef41e6ff0ba937d04a.json new file mode 100644 index 000000000000..5f7048a8a20a --- /dev/null +++ b/core/lib/dal/.sqlx/query-20f84f9ec21459d8c7ad53241758eeab159533211d2ddbef41e6ff0ba937d04a.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE l1_batches\n SET\n skip_proof = TRUE\n WHERE\n number = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [] + }, + "hash": "20f84f9ec21459d8c7ad53241758eeab159533211d2ddbef41e6ff0ba937d04a" +} diff --git a/core/lib/dal/.sqlx/query-23be43bf705d679ca751c89353716065fcad42c6b621efb3a135a16b477dcfd9.json b/core/lib/dal/.sqlx/query-23be43bf705d679ca751c89353716065fcad42c6b621efb3a135a16b477dcfd9.json new file mode 100644 index 000000000000..c0e8bb9d2553 --- /dev/null +++ b/core/lib/dal/.sqlx/query-23be43bf705d679ca751c89353716065fcad42c6b621efb3a135a16b477dcfd9.json @@ -0,0 +1,98 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n *\n FROM\n eth_txs\n WHERE\n confirmed_eth_tx_history_id IS NULL\n AND id <= (\n SELECT\n COALESCE(MAX(eth_tx_id), 0)\n FROM\n eth_txs_history\n WHERE\n sent_at_block IS NOT NULL\n )\n ORDER BY\n id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "nonce", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "raw_tx", + "type_info": "Bytea" + }, + { + "ordinal": 3, + "name": "contract_address", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "tx_type", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "gas_used", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "created_at", + "type_info": "Timestamp" + }, + { + "ordinal": 7, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 8, + "name": "has_failed", + "type_info": "Bool" + }, + { + "ordinal": 9, + "name": "sent_at_block", + "type_info": "Int4" + }, + { + "ordinal": 10, + "name": "confirmed_eth_tx_history_id", + "type_info": "Int4" + }, + { + "ordinal": 11, + "name": "predicted_gas_cost", + "type_info": "Int8" + }, + { + "ordinal": 12, + "name": "from_addr", + "type_info": "Bytea" + }, + { + "ordinal": 13, + "name": "blob_sidecar", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + false, + false, + false, + false, + true, + false, + false, + false, + true, + true, + false, + true, + true + ] + }, + "hash": "23be43bf705d679ca751c89353716065fcad42c6b621efb3a135a16b477dcfd9" +} diff --git a/core/lib/dal/.sqlx/query-245dc5bb82cc82df38e4440a7746ca08324bc86a72e4ea85c9c7962a6c8c9e30.json b/core/lib/dal/.sqlx/query-245dc5bb82cc82df38e4440a7746ca08324bc86a72e4ea85c9c7962a6c8c9e30.json new file mode 100644 index 000000000000..0b9c4aa59b7a --- /dev/null +++ b/core/lib/dal/.sqlx/query-245dc5bb82cc82df38e4440a7746ca08324bc86a72e4ea85c9c7962a6c8c9e30.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE l1_batches\n SET\n eth_prove_tx_id = $1,\n updated_at = NOW()\n WHERE\n number BETWEEN $2 AND $3\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int4", + "Int8", + "Int8" + ] + }, + "nullable": [] + }, + "hash": "245dc5bb82cc82df38e4440a7746ca08324bc86a72e4ea85c9c7962a6c8c9e30" +} diff --git a/core/lib/dal/.sqlx/query-24722ee4ced7f03e60b1b5ecaaa5234d536b064951a67d826ac49b7a3a095a1a.json b/core/lib/dal/.sqlx/query-24722ee4ced7f03e60b1b5ecaaa5234d536b064951a67d826ac49b7a3a095a1a.json new file mode 100644 index 000000000000..194f4faedb1b --- /dev/null +++ b/core/lib/dal/.sqlx/query-24722ee4ced7f03e60b1b5ecaaa5234d536b064951a67d826ac49b7a3a095a1a.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n hashed_key,\n INDEX\n FROM\n initial_writes\n WHERE\n l1_batch_number = $1\n ORDER BY\n INDEX\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "hashed_key", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "index", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "24722ee4ced7f03e60b1b5ecaaa5234d536b064951a67d826ac49b7a3a095a1a" +} diff --git a/core/lib/dal/.sqlx/query-249cb862d44196cb6dc3945e907717b0dd3cec64b0b29f59b273f1c6952e01da.json b/core/lib/dal/.sqlx/query-249cb862d44196cb6dc3945e907717b0dd3cec64b0b29f59b273f1c6952e01da.json new file mode 100644 index 000000000000..38419af111f0 --- /dev/null +++ b/core/lib/dal/.sqlx/query-249cb862d44196cb6dc3945e907717b0dd3cec64b0b29f59b273f1c6952e01da.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n bytecode_hash\n FROM\n factory_deps\n WHERE\n miniblock_number > $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "bytecode_hash", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "249cb862d44196cb6dc3945e907717b0dd3cec64b0b29f59b273f1c6952e01da" +} diff --git a/core/lib/dal/.sqlx/query-2506e9edfd4b41ca1e187909631ae942bab5d71daaed7017e3fa62dc5e42ab0a.json b/core/lib/dal/.sqlx/query-2506e9edfd4b41ca1e187909631ae942bab5d71daaed7017e3fa62dc5e42ab0a.json new file mode 100644 index 000000000000..c4f8057011d4 --- /dev/null +++ b/core/lib/dal/.sqlx/query-2506e9edfd4b41ca1e187909631ae942bab5d71daaed7017e3fa62dc5e42ab0a.json @@ -0,0 +1,32 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n hashed_key,\n l1_batch_number,\n INDEX\n FROM\n initial_writes\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "hashed_key", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "l1_batch_number", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "index", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "2506e9edfd4b41ca1e187909631ae942bab5d71daaed7017e3fa62dc5e42ab0a" +} diff --git a/core/lib/dal/.sqlx/query-254d17b5402c123cca0edd6fcdc98012b034605dfb4c48379844085b71e9e381.json b/core/lib/dal/.sqlx/query-254d17b5402c123cca0edd6fcdc98012b034605dfb4c48379844085b71e9e381.json deleted file mode 100644 index 8734598cc6f6..000000000000 --- a/core/lib/dal/.sqlx/query-254d17b5402c123cca0edd6fcdc98012b034605dfb4c48379844085b71e9e381.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT nonce FROM eth_txs WHERE from_addr = $1::bytea ORDER BY id DESC LIMIT 1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "nonce", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Bytea" - ] - }, - "nullable": [ - false - ] - }, - "hash": "254d17b5402c123cca0edd6fcdc98012b034605dfb4c48379844085b71e9e381" -} diff --git a/core/lib/dal/.sqlx/query-25646383ecacf72e3f63b5c93a57a66d1e38fb6ca706c2affd4607d77be38de9.json b/core/lib/dal/.sqlx/query-25646383ecacf72e3f63b5c93a57a66d1e38fb6ca706c2affd4607d77be38de9.json new file mode 100644 index 000000000000..8d35e81b216c --- /dev/null +++ b/core/lib/dal/.sqlx/query-25646383ecacf72e3f63b5c93a57a66d1e38fb6ca706c2affd4607d77be38de9.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n hash,\n rollup_last_leaf_index\n FROM\n l1_batches\n WHERE\n number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "hash", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "rollup_last_leaf_index", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + true, + true + ] + }, + "hash": "25646383ecacf72e3f63b5c93a57a66d1e38fb6ca706c2affd4607d77be38de9" +} diff --git a/core/lib/dal/.sqlx/query-268d27c427a69c5e35e6004380da45f005141b01eac26946251bba68e9276acf.json b/core/lib/dal/.sqlx/query-268d27c427a69c5e35e6004380da45f005141b01eac26946251bba68e9276acf.json new file mode 100644 index 000000000000..aaa093223063 --- /dev/null +++ b/core/lib/dal/.sqlx/query-268d27c427a69c5e35e6004380da45f005141b01eac26946251bba68e9276acf.json @@ -0,0 +1,200 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n number,\n timestamp,\n l1_tx_count,\n l2_tx_count,\n bloom,\n priority_ops_onchain_data,\n hash,\n commitment,\n eth_prove_tx_id,\n eth_commit_tx_id,\n eth_execute_tx_id,\n merkle_root_hash,\n l2_to_l1_logs,\n l2_to_l1_messages,\n used_contract_hashes,\n compressed_initial_writes,\n compressed_repeated_writes,\n l2_l1_merkle_root,\n rollup_last_leaf_index,\n zkporter_is_available,\n bootloader_code_hash,\n default_aa_code_hash,\n aux_data_hash,\n pass_through_data_hash,\n meta_parameters_hash,\n protocol_version,\n compressed_state_diffs,\n system_logs,\n events_queue_commitment,\n bootloader_initial_content_commitment,\n pubdata_input\n FROM\n l1_batches\n LEFT JOIN commitments ON commitments.l1_batch_number = l1_batches.number\n WHERE\n number = 0\n OR eth_commit_tx_id IS NOT NULL\n AND commitment IS NOT NULL\n ORDER BY\n number DESC\n LIMIT\n 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "number", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "timestamp", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "l1_tx_count", + "type_info": "Int4" + }, + { + "ordinal": 3, + "name": "l2_tx_count", + "type_info": "Int4" + }, + { + "ordinal": 4, + "name": "bloom", + "type_info": "Bytea" + }, + { + "ordinal": 5, + "name": "priority_ops_onchain_data", + "type_info": "ByteaArray" + }, + { + "ordinal": 6, + "name": "hash", + "type_info": "Bytea" + }, + { + "ordinal": 7, + "name": "commitment", + "type_info": "Bytea" + }, + { + "ordinal": 8, + "name": "eth_prove_tx_id", + "type_info": "Int4" + }, + { + "ordinal": 9, + "name": "eth_commit_tx_id", + "type_info": "Int4" + }, + { + "ordinal": 10, + "name": "eth_execute_tx_id", + "type_info": "Int4" + }, + { + "ordinal": 11, + "name": "merkle_root_hash", + "type_info": "Bytea" + }, + { + "ordinal": 12, + "name": "l2_to_l1_logs", + "type_info": "ByteaArray" + }, + { + "ordinal": 13, + "name": "l2_to_l1_messages", + "type_info": "ByteaArray" + }, + { + "ordinal": 14, + "name": "used_contract_hashes", + "type_info": "Jsonb" + }, + { + "ordinal": 15, + "name": "compressed_initial_writes", + "type_info": "Bytea" + }, + { + "ordinal": 16, + "name": "compressed_repeated_writes", + "type_info": "Bytea" + }, + { + "ordinal": 17, + "name": "l2_l1_merkle_root", + "type_info": "Bytea" + }, + { + "ordinal": 18, + "name": "rollup_last_leaf_index", + "type_info": "Int8" + }, + { + "ordinal": 19, + "name": "zkporter_is_available", + "type_info": "Bool" + }, + { + "ordinal": 20, + "name": "bootloader_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 21, + "name": "default_aa_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 22, + "name": "aux_data_hash", + "type_info": "Bytea" + }, + { + "ordinal": 23, + "name": "pass_through_data_hash", + "type_info": "Bytea" + }, + { + "ordinal": 24, + "name": "meta_parameters_hash", + "type_info": "Bytea" + }, + { + "ordinal": 25, + "name": "protocol_version", + "type_info": "Int4" + }, + { + "ordinal": 26, + "name": "compressed_state_diffs", + "type_info": "Bytea" + }, + { + "ordinal": 27, + "name": "system_logs", + "type_info": "ByteaArray" + }, + { + "ordinal": 28, + "name": "events_queue_commitment", + "type_info": "Bytea" + }, + { + "ordinal": 29, + "name": "bootloader_initial_content_commitment", + "type_info": "Bytea" + }, + { + "ordinal": 30, + "name": "pubdata_input", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + true, + true, + true, + true, + true, + true, + false, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true + ] + }, + "hash": "268d27c427a69c5e35e6004380da45f005141b01eac26946251bba68e9276acf" +} diff --git a/core/lib/dal/.sqlx/query-26cb272c2a46a267c47681e0f1f07997b7e24682da56f84d812da2b9aeb14ca2.json b/core/lib/dal/.sqlx/query-26cb272c2a46a267c47681e0f1f07997b7e24682da56f84d812da2b9aeb14ca2.json new file mode 100644 index 000000000000..58ba7c33f2b6 --- /dev/null +++ b/core/lib/dal/.sqlx/query-26cb272c2a46a267c47681e0f1f07997b7e24682da56f84d812da2b9aeb14ca2.json @@ -0,0 +1,40 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n miniblock_number AS \"miniblock_number!\",\n hash,\n index_in_block AS \"index_in_block!\",\n l1_batch_tx_index AS \"l1_batch_tx_index!\"\n FROM\n transactions\n WHERE\n l1_batch_number = $1\n ORDER BY\n miniblock_number,\n index_in_block\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "miniblock_number!", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "hash", + "type_info": "Bytea" + }, + { + "ordinal": 2, + "name": "index_in_block!", + "type_info": "Int4" + }, + { + "ordinal": 3, + "name": "l1_batch_tx_index!", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + true, + false, + true, + true + ] + }, + "hash": "26cb272c2a46a267c47681e0f1f07997b7e24682da56f84d812da2b9aeb14ca2" +} diff --git a/core/lib/dal/.sqlx/query-26e0b7eb1871d94ddc98254fece6381a9c4165e2727542eaeef3bbedd13a4f20.json b/core/lib/dal/.sqlx/query-26e0b7eb1871d94ddc98254fece6381a9c4165e2727542eaeef3bbedd13a4f20.json new file mode 100644 index 000000000000..30738bc2094a --- /dev/null +++ b/core/lib/dal/.sqlx/query-26e0b7eb1871d94ddc98254fece6381a9c4165e2727542eaeef3bbedd13a4f20.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE proof_generation_details\n SET\n status = $1,\n updated_at = NOW()\n WHERE\n l1_batch_number = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Int8" + ] + }, + "nullable": [] + }, + "hash": "26e0b7eb1871d94ddc98254fece6381a9c4165e2727542eaeef3bbedd13a4f20" +} diff --git a/core/lib/dal/.sqlx/query-2737fea02599cdc163854b1395c42d4ef93ca238fd2fbc9155e6d012d0d1e113.json b/core/lib/dal/.sqlx/query-2737fea02599cdc163854b1395c42d4ef93ca238fd2fbc9155e6d012d0d1e113.json new file mode 100644 index 000000000000..67b9c0566821 --- /dev/null +++ b/core/lib/dal/.sqlx/query-2737fea02599cdc163854b1395c42d4ef93ca238fd2fbc9155e6d012d0d1e113.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE transactions\n SET\n error = $1,\n updated_at = NOW()\n WHERE\n hash = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Varchar", + "Bytea" + ] + }, + "nullable": [] + }, + "hash": "2737fea02599cdc163854b1395c42d4ef93ca238fd2fbc9155e6d012d0d1e113" +} diff --git a/core/lib/dal/.sqlx/query-2757b30c4641a346eb0226c706223efc18e51e6d4092188e081f4fafe92fe0ef.json b/core/lib/dal/.sqlx/query-2757b30c4641a346eb0226c706223efc18e51e6d4092188e081f4fafe92fe0ef.json new file mode 100644 index 000000000000..bb47b8254aca --- /dev/null +++ b/core/lib/dal/.sqlx/query-2757b30c4641a346eb0226c706223efc18e51e6d4092188e081f4fafe92fe0ef.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n bootloader_code_hash,\n default_account_code_hash,\n id\n FROM\n protocol_versions\n WHERE\n timestamp <= $1\n ORDER BY\n id DESC\n LIMIT\n 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "bootloader_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "default_account_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 2, + "name": "id", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "2757b30c4641a346eb0226c706223efc18e51e6d4092188e081f4fafe92fe0ef" +} diff --git a/core/lib/dal/.sqlx/query-280cf015e40353e2833c0a70b77095596297be0d728a0aa2d9b180fb72de222b.json b/core/lib/dal/.sqlx/query-280cf015e40353e2833c0a70b77095596297be0d728a0aa2d9b180fb72de222b.json new file mode 100644 index 000000000000..5b49941ed18f --- /dev/null +++ b/core/lib/dal/.sqlx/query-280cf015e40353e2833c0a70b77095596297be0d728a0aa2d9b180fb72de222b.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n attempts\n FROM\n basic_witness_input_producer_jobs\n WHERE\n l1_batch_number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "attempts", + "type_info": "Int2" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "280cf015e40353e2833c0a70b77095596297be0d728a0aa2d9b180fb72de222b" +} diff --git a/core/lib/dal/.sqlx/query-293258ecb299be5f5e81696d14883f115cd97586bd795ee31f58fc14e56d58cb.json b/core/lib/dal/.sqlx/query-293258ecb299be5f5e81696d14883f115cd97586bd795ee31f58fc14e56d58cb.json new file mode 100644 index 000000000000..2b07c3b02e04 --- /dev/null +++ b/core/lib/dal/.sqlx/query-293258ecb299be5f5e81696d14883f115cd97586bd795ee31f58fc14e56d58cb.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM events\n WHERE\n miniblock_number > $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [] + }, + "hash": "293258ecb299be5f5e81696d14883f115cd97586bd795ee31f58fc14e56d58cb" +} diff --git a/core/lib/dal/.sqlx/query-2955e976281f9cbd98b7378c5ab52964b268b93c32fd280c49bf9f932884300d.json b/core/lib/dal/.sqlx/query-2955e976281f9cbd98b7378c5ab52964b268b93c32fd280c49bf9f932884300d.json new file mode 100644 index 000000000000..7c3a261d1f6e --- /dev/null +++ b/core/lib/dal/.sqlx/query-2955e976281f9cbd98b7378c5ab52964b268b93c32fd280c49bf9f932884300d.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n timestamp\n FROM\n l1_batches\n WHERE\n eth_prove_tx_id IS NULL\n AND number > 0\n ORDER BY\n number\n LIMIT\n 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "timestamp", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false + ] + }, + "hash": "2955e976281f9cbd98b7378c5ab52964b268b93c32fd280c49bf9f932884300d" +} diff --git a/core/lib/dal/.sqlx/query-2979b6c9ce76a4e6eaaa3f9bad5cf831d63d692111d87282aed8e85df6b0411f.json b/core/lib/dal/.sqlx/query-2979b6c9ce76a4e6eaaa3f9bad5cf831d63d692111d87282aed8e85df6b0411f.json new file mode 100644 index 000000000000..84d906823e14 --- /dev/null +++ b/core/lib/dal/.sqlx/query-2979b6c9ce76a4e6eaaa3f9bad5cf831d63d692111d87282aed8e85df6b0411f.json @@ -0,0 +1,104 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n number,\n timestamp,\n hash,\n l1_tx_count,\n l2_tx_count,\n fee_account_address AS \"fee_account_address!\",\n base_fee_per_gas,\n l1_gas_price,\n l2_fair_gas_price,\n gas_per_pubdata_limit,\n bootloader_code_hash,\n default_aa_code_hash,\n protocol_version,\n virtual_blocks,\n fair_pubdata_price\n FROM\n miniblocks\n ORDER BY\n number DESC\n LIMIT\n 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "number", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "timestamp", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "hash", + "type_info": "Bytea" + }, + { + "ordinal": 3, + "name": "l1_tx_count", + "type_info": "Int4" + }, + { + "ordinal": 4, + "name": "l2_tx_count", + "type_info": "Int4" + }, + { + "ordinal": 5, + "name": "fee_account_address!", + "type_info": "Bytea" + }, + { + "ordinal": 6, + "name": "base_fee_per_gas", + "type_info": "Numeric" + }, + { + "ordinal": 7, + "name": "l1_gas_price", + "type_info": "Int8" + }, + { + "ordinal": 8, + "name": "l2_fair_gas_price", + "type_info": "Int8" + }, + { + "ordinal": 9, + "name": "gas_per_pubdata_limit", + "type_info": "Int8" + }, + { + "ordinal": 10, + "name": "bootloader_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 11, + "name": "default_aa_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 12, + "name": "protocol_version", + "type_info": "Int4" + }, + { + "ordinal": 13, + "name": "virtual_blocks", + "type_info": "Int8" + }, + { + "ordinal": 14, + "name": "fair_pubdata_price", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + true, + true, + false, + true + ] + }, + "hash": "2979b6c9ce76a4e6eaaa3f9bad5cf831d63d692111d87282aed8e85df6b0411f" +} diff --git a/core/lib/dal/.sqlx/query-2a2680234c38904e5c19df45193a8c13d04079683e09c65f7f4e76a9987e2ab4.json b/core/lib/dal/.sqlx/query-2a2680234c38904e5c19df45193a8c13d04079683e09c65f7f4e76a9987e2ab4.json new file mode 100644 index 000000000000..8b984f4939a8 --- /dev/null +++ b/core/lib/dal/.sqlx/query-2a2680234c38904e5c19df45193a8c13d04079683e09c65f7f4e76a9987e2ab4.json @@ -0,0 +1,106 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO\n eth_txs (\n raw_tx,\n nonce,\n tx_type,\n contract_address,\n predicted_gas_cost,\n created_at,\n updated_at,\n from_addr,\n blob_sidecar\n )\n VALUES\n ($1, $2, $3, $4, $5, NOW(), NOW(), $6, $7)\n RETURNING\n *\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "nonce", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "raw_tx", + "type_info": "Bytea" + }, + { + "ordinal": 3, + "name": "contract_address", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "tx_type", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "gas_used", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "created_at", + "type_info": "Timestamp" + }, + { + "ordinal": 7, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 8, + "name": "has_failed", + "type_info": "Bool" + }, + { + "ordinal": 9, + "name": "sent_at_block", + "type_info": "Int4" + }, + { + "ordinal": 10, + "name": "confirmed_eth_tx_history_id", + "type_info": "Int4" + }, + { + "ordinal": 11, + "name": "predicted_gas_cost", + "type_info": "Int8" + }, + { + "ordinal": 12, + "name": "from_addr", + "type_info": "Bytea" + }, + { + "ordinal": 13, + "name": "blob_sidecar", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Bytea", + "Int8", + "Text", + "Text", + "Int8", + "Bytea", + "Bytea" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + true, + false, + false, + false, + true, + true, + false, + true, + true + ] + }, + "hash": "2a2680234c38904e5c19df45193a8c13d04079683e09c65f7f4e76a9987e2ab4" +} diff --git a/core/lib/dal/.sqlx/query-2b1aa207a058f66265acf2c21b8ed5d8007789c0fc1eab948f6d7339dfb69147.json b/core/lib/dal/.sqlx/query-2b1aa207a058f66265acf2c21b8ed5d8007789c0fc1eab948f6d7339dfb69147.json new file mode 100644 index 000000000000..96b48892516d --- /dev/null +++ b/core/lib/dal/.sqlx/query-2b1aa207a058f66265acf2c21b8ed5d8007789c0fc1eab948f6d7339dfb69147.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM transactions\n WHERE\n miniblock_number IS NULL\n AND received_at < NOW() - $1::INTERVAL\n AND is_priority = FALSE\n AND error IS NULL\n RETURNING\n hash\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "hash", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Interval" + ] + }, + "nullable": [ + false + ] + }, + "hash": "2b1aa207a058f66265acf2c21b8ed5d8007789c0fc1eab948f6d7339dfb69147" +} diff --git a/core/lib/dal/.sqlx/query-2c71a819c6ed22a3ab79675840e00f7b1176d59a83520288f5428b67ebd52130.json b/core/lib/dal/.sqlx/query-2c71a819c6ed22a3ab79675840e00f7b1176d59a83520288f5428b67ebd52130.json new file mode 100644 index 000000000000..e8e6d8e760b4 --- /dev/null +++ b/core/lib/dal/.sqlx/query-2c71a819c6ed22a3ab79675840e00f7b1176d59a83520288f5428b67ebd52130.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM initial_writes\n WHERE\n l1_batch_number > $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [] + }, + "hash": "2c71a819c6ed22a3ab79675840e00f7b1176d59a83520288f5428b67ebd52130" +} diff --git a/core/lib/dal/.sqlx/query-53182f70d83de1482110c767a8d58ee0e803255aa612a124289f53fbb78bd64a.json b/core/lib/dal/.sqlx/query-2c827c1c3cfa3552b90d4746c5df45d57f1f8b2558fdb374bf02e84d3c825a23.json similarity index 53% rename from core/lib/dal/.sqlx/query-53182f70d83de1482110c767a8d58ee0e803255aa612a124289f53fbb78bd64a.json rename to core/lib/dal/.sqlx/query-2c827c1c3cfa3552b90d4746c5df45d57f1f8b2558fdb374bf02e84d3c825a23.json index 0242ba4ef57b..9ec94fee0d34 100644 --- a/core/lib/dal/.sqlx/query-53182f70d83de1482110c767a8d58ee0e803255aa612a124289f53fbb78bd64a.json +++ b/core/lib/dal/.sqlx/query-2c827c1c3cfa3552b90d4746c5df45d57f1f8b2558fdb374bf02e84d3c825a23.json @@ -1,6 +1,6 @@ { "db_name": "PostgreSQL", - "query": "SELECT MAX(number) AS number FROM miniblocks", + "query": "\n SELECT\n MAX(number) AS \"number\"\n FROM\n miniblocks\n ", "describe": { "columns": [ { @@ -16,5 +16,5 @@ null ] }, - "hash": "53182f70d83de1482110c767a8d58ee0e803255aa612a124289f53fbb78bd64a" + "hash": "2c827c1c3cfa3552b90d4746c5df45d57f1f8b2558fdb374bf02e84d3c825a23" } diff --git a/core/lib/dal/.sqlx/query-2d0c2e9ec4187641baef8a33229bffc78d92adb3c1e3ca60b12163e38c67047e.json b/core/lib/dal/.sqlx/query-2d0c2e9ec4187641baef8a33229bffc78d92adb3c1e3ca60b12163e38c67047e.json new file mode 100644 index 000000000000..f61f39e3b0b0 --- /dev/null +++ b/core/lib/dal/.sqlx/query-2d0c2e9ec4187641baef8a33229bffc78d92adb3c1e3ca60b12163e38c67047e.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n COUNT(*) AS \"count!\"\n FROM\n contracts_verification_info\n WHERE\n address = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "count!", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Bytea" + ] + }, + "nullable": [ + null + ] + }, + "hash": "2d0c2e9ec4187641baef8a33229bffc78d92adb3c1e3ca60b12163e38c67047e" +} diff --git a/core/lib/dal/.sqlx/query-2d1e0f2e043c193052c9cc20f9efeb5f094160627bc09db4bda2dda9a8c11c44.json b/core/lib/dal/.sqlx/query-2d1e0f2e043c193052c9cc20f9efeb5f094160627bc09db4bda2dda9a8c11c44.json new file mode 100644 index 000000000000..1d9c276b0786 --- /dev/null +++ b/core/lib/dal/.sqlx/query-2d1e0f2e043c193052c9cc20f9efeb5f094160627bc09db4bda2dda9a8c11c44.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO\n contracts_verification_info (address, verification_info)\n VALUES\n ($1, $2)\n ON CONFLICT (address) DO\n UPDATE\n SET\n verification_info = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Bytea", + "Jsonb" + ] + }, + "nullable": [] + }, + "hash": "2d1e0f2e043c193052c9cc20f9efeb5f094160627bc09db4bda2dda9a8c11c44" +} diff --git a/core/lib/dal/.sqlx/query-2d862097cfae49a1fb28ec0a05176085385c3a79d72f49669b4215a9454323c2.json b/core/lib/dal/.sqlx/query-2d862097cfae49a1fb28ec0a05176085385c3a79d72f49669b4215a9454323c2.json new file mode 100644 index 000000000000..e08f0c855175 --- /dev/null +++ b/core/lib/dal/.sqlx/query-2d862097cfae49a1fb28ec0a05176085385c3a79d72f49669b4215a9454323c2.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n INDEX\n FROM\n initial_writes\n WHERE\n l1_batch_number <= $1\n ORDER BY\n l1_batch_number DESC,\n INDEX DESC\n LIMIT\n 1;\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "index", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "2d862097cfae49a1fb28ec0a05176085385c3a79d72f49669b4215a9454323c2" +} diff --git a/core/lib/dal/.sqlx/query-2d87b294817859e42258136b1cb78f42a877039094c3d6354928a03dad29451a.json b/core/lib/dal/.sqlx/query-2d87b294817859e42258136b1cb78f42a877039094c3d6354928a03dad29451a.json new file mode 100644 index 000000000000..dbd2e21c1a3e --- /dev/null +++ b/core/lib/dal/.sqlx/query-2d87b294817859e42258136b1cb78f42a877039094c3d6354928a03dad29451a.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM storage_logs\n WHERE\n miniblock_number = $1\n AND operation_number != ALL ($2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8", + "Int4Array" + ] + }, + "nullable": [] + }, + "hash": "2d87b294817859e42258136b1cb78f42a877039094c3d6354928a03dad29451a" +} diff --git a/core/lib/dal/.sqlx/query-2dd7dbaeb2572404451e78a96f540e73a2778633bbf9d8e591ec912634639af9.json b/core/lib/dal/.sqlx/query-2dd7dbaeb2572404451e78a96f540e73a2778633bbf9d8e591ec912634639af9.json new file mode 100644 index 000000000000..bb81e7c31943 --- /dev/null +++ b/core/lib/dal/.sqlx/query-2dd7dbaeb2572404451e78a96f540e73a2778633bbf9d8e591ec912634639af9.json @@ -0,0 +1,232 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n *\n FROM\n transactions\n WHERE\n miniblock_number = $1\n ORDER BY\n index_in_block\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "hash", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "is_priority", + "type_info": "Bool" + }, + { + "ordinal": 2, + "name": "full_fee", + "type_info": "Numeric" + }, + { + "ordinal": 3, + "name": "layer_2_tip_fee", + "type_info": "Numeric" + }, + { + "ordinal": 4, + "name": "initiator_address", + "type_info": "Bytea" + }, + { + "ordinal": 5, + "name": "nonce", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "signature", + "type_info": "Bytea" + }, + { + "ordinal": 7, + "name": "input", + "type_info": "Bytea" + }, + { + "ordinal": 8, + "name": "data", + "type_info": "Jsonb" + }, + { + "ordinal": 9, + "name": "received_at", + "type_info": "Timestamp" + }, + { + "ordinal": 10, + "name": "priority_op_id", + "type_info": "Int8" + }, + { + "ordinal": 11, + "name": "l1_batch_number", + "type_info": "Int8" + }, + { + "ordinal": 12, + "name": "index_in_block", + "type_info": "Int4" + }, + { + "ordinal": 13, + "name": "error", + "type_info": "Varchar" + }, + { + "ordinal": 14, + "name": "gas_limit", + "type_info": "Numeric" + }, + { + "ordinal": 15, + "name": "gas_per_storage_limit", + "type_info": "Numeric" + }, + { + "ordinal": 16, + "name": "gas_per_pubdata_limit", + "type_info": "Numeric" + }, + { + "ordinal": 17, + "name": "tx_format", + "type_info": "Int4" + }, + { + "ordinal": 18, + "name": "created_at", + "type_info": "Timestamp" + }, + { + "ordinal": 19, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 20, + "name": "execution_info", + "type_info": "Jsonb" + }, + { + "ordinal": 21, + "name": "contract_address", + "type_info": "Bytea" + }, + { + "ordinal": 22, + "name": "in_mempool", + "type_info": "Bool" + }, + { + "ordinal": 23, + "name": "l1_block_number", + "type_info": "Int4" + }, + { + "ordinal": 24, + "name": "value", + "type_info": "Numeric" + }, + { + "ordinal": 25, + "name": "paymaster", + "type_info": "Bytea" + }, + { + "ordinal": 26, + "name": "paymaster_input", + "type_info": "Bytea" + }, + { + "ordinal": 27, + "name": "max_fee_per_gas", + "type_info": "Numeric" + }, + { + "ordinal": 28, + "name": "max_priority_fee_per_gas", + "type_info": "Numeric" + }, + { + "ordinal": 29, + "name": "effective_gas_price", + "type_info": "Numeric" + }, + { + "ordinal": 30, + "name": "miniblock_number", + "type_info": "Int8" + }, + { + "ordinal": 31, + "name": "l1_batch_tx_index", + "type_info": "Int4" + }, + { + "ordinal": 32, + "name": "refunded_gas", + "type_info": "Int8" + }, + { + "ordinal": 33, + "name": "l1_tx_mint", + "type_info": "Numeric" + }, + { + "ordinal": 34, + "name": "l1_tx_refund_recipient", + "type_info": "Bytea" + }, + { + "ordinal": 35, + "name": "upgrade_id", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + true, + true, + false, + true, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + false, + false, + true, + false, + true, + false, + false, + false, + true, + true, + true, + true, + true, + false, + true, + true, + true + ] + }, + "hash": "2dd7dbaeb2572404451e78a96f540e73a2778633bbf9d8e591ec912634639af9" +} diff --git a/core/lib/dal/.sqlx/query-2ddba807ac8ec5260bf92c77073eb89c728357c0744f209090824695a5d35fa3.json b/core/lib/dal/.sqlx/query-2ddba807ac8ec5260bf92c77073eb89c728357c0744f209090824695a5d35fa3.json new file mode 100644 index 000000000000..68b48f325091 --- /dev/null +++ b/core/lib/dal/.sqlx/query-2ddba807ac8ec5260bf92c77073eb89c728357c0744f209090824695a5d35fa3.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE transactions\n SET\n l1_batch_number = NULL,\n miniblock_number = NULL,\n error = NULL,\n index_in_block = NULL,\n execution_info = '{}'\n WHERE\n miniblock_number > $1\n RETURNING\n hash\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "hash", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "2ddba807ac8ec5260bf92c77073eb89c728357c0744f209090824695a5d35fa3" +} diff --git a/core/lib/dal/.sqlx/query-2e5b9ae1b81b0abfe7a962c93b3119a0a60dc9804175b2baf8b45939c74bd583.json b/core/lib/dal/.sqlx/query-2e5b9ae1b81b0abfe7a962c93b3119a0a60dc9804175b2baf8b45939c74bd583.json new file mode 100644 index 000000000000..205487768306 --- /dev/null +++ b/core/lib/dal/.sqlx/query-2e5b9ae1b81b0abfe7a962c93b3119a0a60dc9804175b2baf8b45939c74bd583.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO\n compiler_versions (VERSION, compiler, created_at, updated_at)\n SELECT\n u.version,\n $2,\n NOW(),\n NOW()\n FROM\n UNNEST($1::TEXT[]) AS u (VERSION)\n ON CONFLICT (VERSION, compiler) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "TextArray", + "Text" + ] + }, + "nullable": [] + }, + "hash": "2e5b9ae1b81b0abfe7a962c93b3119a0a60dc9804175b2baf8b45939c74bd583" +} diff --git a/core/lib/dal/.sqlx/query-2eb25bfcfc1114de825dc4eeb0605d7d1c9e649663f6e9444c4425821d0a5b71.json b/core/lib/dal/.sqlx/query-2eb25bfcfc1114de825dc4eeb0605d7d1c9e649663f6e9444c4425821d0a5b71.json new file mode 100644 index 000000000000..6b0ddef258fc --- /dev/null +++ b/core/lib/dal/.sqlx/query-2eb25bfcfc1114de825dc4eeb0605d7d1c9e649663f6e9444c4425821d0a5b71.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n eth_commit_tx_id\n FROM\n l1_batches\n WHERE\n number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "eth_commit_tx_id", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + true + ] + }, + "hash": "2eb25bfcfc1114de825dc4eeb0605d7d1c9e649663f6e9444c4425821d0a5b71" +} diff --git a/core/lib/dal/.sqlx/query-307f15e00a97440868189f25e4487ed365c0369f94bc457cb162a5c876a123c7.json b/core/lib/dal/.sqlx/query-307f15e00a97440868189f25e4487ed365c0369f94bc457cb162a5c876a123c7.json new file mode 100644 index 000000000000..6c55bf34eabb --- /dev/null +++ b/core/lib/dal/.sqlx/query-307f15e00a97440868189f25e4487ed365c0369f94bc457cb162a5c876a123c7.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO\n commitments (l1_batch_number, events_queue_commitment, bootloader_initial_content_commitment)\n VALUES\n ($1, $2, $3)\n ON CONFLICT (l1_batch_number) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8", + "Bytea", + "Bytea" + ] + }, + "nullable": [] + }, + "hash": "307f15e00a97440868189f25e4487ed365c0369f94bc457cb162a5c876a123c7" +} diff --git a/core/lib/dal/.sqlx/query-31334f2878b1ac7d828d5bc22d65ef6676b2eac623c0f78634cae9072fe0498a.json b/core/lib/dal/.sqlx/query-31334f2878b1ac7d828d5bc22d65ef6676b2eac623c0f78634cae9072fe0498a.json new file mode 100644 index 000000000000..31b129a89288 --- /dev/null +++ b/core/lib/dal/.sqlx/query-31334f2878b1ac7d828d5bc22d65ef6676b2eac623c0f78634cae9072fe0498a.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO\n snapshots (\n l1_batch_number,\n storage_logs_filepaths,\n factory_deps_filepath,\n created_at,\n updated_at\n )\n VALUES\n ($1, ARRAY_FILL(''::TEXT, ARRAY[$2::INTEGER]), $3, NOW(), NOW())\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8", + "Int4", + "Text" + ] + }, + "nullable": [] + }, + "hash": "31334f2878b1ac7d828d5bc22d65ef6676b2eac623c0f78634cae9072fe0498a" +} diff --git a/core/lib/dal/.sqlx/query-31f12a8c44124bb2ce31889ac5295f3823926f69cb1d54874878e6d6c301bfd8.json b/core/lib/dal/.sqlx/query-31f12a8c44124bb2ce31889ac5295f3823926f69cb1d54874878e6d6c301bfd8.json new file mode 100644 index 000000000000..c63ea98db44b --- /dev/null +++ b/core/lib/dal/.sqlx/query-31f12a8c44124bb2ce31889ac5295f3823926f69cb1d54874878e6d6c301bfd8.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n COUNT(*) AS \"count!\"\n FROM\n l1_batches\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "count!", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + null + ] + }, + "hash": "31f12a8c44124bb2ce31889ac5295f3823926f69cb1d54874878e6d6c301bfd8" +} diff --git a/core/lib/dal/.sqlx/query-32792c6aee69cb8c8b928a209a3b04ba5868d1897553df85aac15b169ebb0732.json b/core/lib/dal/.sqlx/query-32792c6aee69cb8c8b928a209a3b04ba5868d1897553df85aac15b169ebb0732.json new file mode 100644 index 000000000000..32b36d7fed96 --- /dev/null +++ b/core/lib/dal/.sqlx/query-32792c6aee69cb8c8b928a209a3b04ba5868d1897553df85aac15b169ebb0732.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO\n basic_witness_input_producer_jobs (l1_batch_number, status, created_at, updated_at)\n VALUES\n ($1, $2, NOW(), NOW())\n ON CONFLICT (l1_batch_number) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8", + { + "Custom": { + "name": "basic_witness_input_producer_job_status", + "kind": { + "Enum": [ + "Queued", + "ManuallySkipped", + "InProgress", + "Successful", + "Failed" + ] + } + } + } + ] + }, + "nullable": [] + }, + "hash": "32792c6aee69cb8c8b928a209a3b04ba5868d1897553df85aac15b169ebb0732" +} diff --git a/core/lib/dal/.sqlx/query-3490fe0b778a03c73111bf8cbf426b0b3185a231bbf0b8b132a1a95bc157e827.json b/core/lib/dal/.sqlx/query-3490fe0b778a03c73111bf8cbf426b0b3185a231bbf0b8b132a1a95bc157e827.json new file mode 100644 index 000000000000..3275e94936a1 --- /dev/null +++ b/core/lib/dal/.sqlx/query-3490fe0b778a03c73111bf8cbf426b0b3185a231bbf0b8b132a1a95bc157e827.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n hashed_key,\n l1_batch_number,\n INDEX\n FROM\n initial_writes\n WHERE\n hashed_key = ANY ($1::bytea[])\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "hashed_key", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "l1_batch_number", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "index", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "ByteaArray" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "3490fe0b778a03c73111bf8cbf426b0b3185a231bbf0b8b132a1a95bc157e827" +} diff --git a/core/lib/dal/.sqlx/query-3596a70433e4e27fcda18f37073b51dea32e37cb8c51f1dd5d82c15eddc48e6b.json b/core/lib/dal/.sqlx/query-3596a70433e4e27fcda18f37073b51dea32e37cb8c51f1dd5d82c15eddc48e6b.json new file mode 100644 index 000000000000..7fc673c7c22f --- /dev/null +++ b/core/lib/dal/.sqlx/query-3596a70433e4e27fcda18f37073b51dea32e37cb8c51f1dd5d82c15eddc48e6b.json @@ -0,0 +1,94 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n miniblocks.number,\n COALESCE(\n miniblocks.l1_batch_number,\n (\n SELECT\n (MAX(number) + 1)\n FROM\n l1_batches\n ),\n (\n SELECT\n MAX(l1_batch_number) + 1\n FROM\n snapshot_recovery\n )\n ) AS \"l1_batch_number!\",\n (\n SELECT\n MAX(m2.number)\n FROM\n miniblocks m2\n WHERE\n miniblocks.l1_batch_number = m2.l1_batch_number\n ) AS \"last_batch_miniblock?\",\n miniblocks.timestamp,\n miniblocks.l1_gas_price,\n miniblocks.l2_fair_gas_price,\n miniblocks.fair_pubdata_price,\n miniblocks.bootloader_code_hash,\n miniblocks.default_aa_code_hash,\n miniblocks.virtual_blocks,\n miniblocks.hash,\n miniblocks.protocol_version AS \"protocol_version!\",\n miniblocks.fee_account_address AS \"fee_account_address!\"\n FROM\n miniblocks\n WHERE\n miniblocks.number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "number", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "l1_batch_number!", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "last_batch_miniblock?", + "type_info": "Int8" + }, + { + "ordinal": 3, + "name": "timestamp", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "l1_gas_price", + "type_info": "Int8" + }, + { + "ordinal": 5, + "name": "l2_fair_gas_price", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "fair_pubdata_price", + "type_info": "Int8" + }, + { + "ordinal": 7, + "name": "bootloader_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 8, + "name": "default_aa_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 9, + "name": "virtual_blocks", + "type_info": "Int8" + }, + { + "ordinal": 10, + "name": "hash", + "type_info": "Bytea" + }, + { + "ordinal": 11, + "name": "protocol_version!", + "type_info": "Int4" + }, + { + "ordinal": 12, + "name": "fee_account_address!", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + null, + null, + false, + false, + false, + true, + true, + true, + false, + false, + true, + false + ] + }, + "hash": "3596a70433e4e27fcda18f37073b51dea32e37cb8c51f1dd5d82c15eddc48e6b" +} diff --git a/core/lib/dal/.sqlx/query-3743b41751a141c21f1674fa581ea7a878613cf62f7fb9b94c5145dc8d1da674.json b/core/lib/dal/.sqlx/query-3743b41751a141c21f1674fa581ea7a878613cf62f7fb9b94c5145dc8d1da674.json new file mode 100644 index 000000000000..7da86fec74b3 --- /dev/null +++ b/core/lib/dal/.sqlx/query-3743b41751a141c21f1674fa581ea7a878613cf62f7fb9b94c5145dc8d1da674.json @@ -0,0 +1,62 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n l1_batch_number,\n l1_batch_timestamp,\n l1_batch_root_hash,\n miniblock_number,\n miniblock_timestamp,\n miniblock_hash,\n protocol_version,\n storage_logs_chunks_processed\n FROM\n snapshot_recovery\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "l1_batch_number", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "l1_batch_timestamp", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "l1_batch_root_hash", + "type_info": "Bytea" + }, + { + "ordinal": 3, + "name": "miniblock_number", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "miniblock_timestamp", + "type_info": "Int8" + }, + { + "ordinal": 5, + "name": "miniblock_hash", + "type_info": "Bytea" + }, + { + "ordinal": 6, + "name": "protocol_version", + "type_info": "Int4" + }, + { + "ordinal": 7, + "name": "storage_logs_chunks_processed", + "type_info": "BoolArray" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "3743b41751a141c21f1674fa581ea7a878613cf62f7fb9b94c5145dc8d1da674" +} diff --git a/core/lib/dal/.sqlx/query-80684de323c47ade36e5a52b99a222806762c640b7de7bf6ecdbf9c3f9842d6f.json b/core/lib/dal/.sqlx/query-38a8b00e320b16e99f6ea0e5954e2f7e49cd6600bd3d56cf41795c2c9e082e4c.json similarity index 51% rename from core/lib/dal/.sqlx/query-80684de323c47ade36e5a52b99a222806762c640b7de7bf6ecdbf9c3f9842d6f.json rename to core/lib/dal/.sqlx/query-38a8b00e320b16e99f6ea0e5954e2f7e49cd6600bd3d56cf41795c2c9e082e4c.json index 559e8e229708..9b989a9ba251 100644 --- a/core/lib/dal/.sqlx/query-80684de323c47ade36e5a52b99a222806762c640b7de7bf6ecdbf9c3f9842d6f.json +++ b/core/lib/dal/.sqlx/query-38a8b00e320b16e99f6ea0e5954e2f7e49cd6600bd3d56cf41795c2c9e082e4c.json @@ -1,6 +1,6 @@ { "db_name": "PostgreSQL", - "query": "SELECT number FROM miniblocks WHERE number = 0", + "query": "\n SELECT\n MAX(number) AS \"number\"\n FROM\n l1_batches\n ", "describe": { "columns": [ { @@ -13,8 +13,8 @@ "Left": [] }, "nullable": [ - false + null ] }, - "hash": "80684de323c47ade36e5a52b99a222806762c640b7de7bf6ecdbf9c3f9842d6f" + "hash": "38a8b00e320b16e99f6ea0e5954e2f7e49cd6600bd3d56cf41795c2c9e082e4c" } diff --git a/core/lib/dal/.sqlx/query-3b3fbcffd2702047045c2f358e8ac77b63879ab97a32eed8392b48cc46116a28.json b/core/lib/dal/.sqlx/query-3b3fbcffd2702047045c2f358e8ac77b63879ab97a32eed8392b48cc46116a28.json new file mode 100644 index 000000000000..326915adb2fc --- /dev/null +++ b/core/lib/dal/.sqlx/query-3b3fbcffd2702047045c2f358e8ac77b63879ab97a32eed8392b48cc46116a28.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM call_traces\n WHERE\n tx_hash = ANY ($1)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "ByteaArray" + ] + }, + "nullable": [] + }, + "hash": "3b3fbcffd2702047045c2f358e8ac77b63879ab97a32eed8392b48cc46116a28" +} diff --git a/core/lib/dal/.sqlx/query-3b4d5009ec22f54cc7d305aa11d96ec397767a063dc21aa3add974cb9b070361.json b/core/lib/dal/.sqlx/query-3b4d5009ec22f54cc7d305aa11d96ec397767a063dc21aa3add974cb9b070361.json new file mode 100644 index 000000000000..38890ae58f2e --- /dev/null +++ b/core/lib/dal/.sqlx/query-3b4d5009ec22f54cc7d305aa11d96ec397767a063dc21aa3add974cb9b070361.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO\n factory_deps (bytecode_hash, bytecode, miniblock_number, created_at, updated_at)\n SELECT\n u.bytecode_hash,\n u.bytecode,\n $3,\n NOW(),\n NOW()\n FROM\n UNNEST($1::bytea[], $2::bytea[]) AS u (bytecode_hash, bytecode)\n ON CONFLICT (bytecode_hash) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "ByteaArray", + "ByteaArray", + "Int8" + ] + }, + "nullable": [] + }, + "hash": "3b4d5009ec22f54cc7d305aa11d96ec397767a063dc21aa3add974cb9b070361" +} diff --git a/core/lib/dal/.sqlx/query-3ba9bc85e3e286aadef8aad27eb38fc90b18155e3435f58d9888fa50d92042f7.json b/core/lib/dal/.sqlx/query-3ba9bc85e3e286aadef8aad27eb38fc90b18155e3435f58d9888fa50d92042f7.json new file mode 100644 index 000000000000..221e04e0c717 --- /dev/null +++ b/core/lib/dal/.sqlx/query-3ba9bc85e3e286aadef8aad27eb38fc90b18155e3435f58d9888fa50d92042f7.json @@ -0,0 +1,94 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n address,\n topic1,\n topic2,\n topic3,\n topic4,\n value,\n NULL::bytea AS \"block_hash\",\n NULL::BIGINT AS \"l1_batch_number?\",\n miniblock_number,\n tx_hash,\n tx_index_in_block,\n event_index_in_block,\n event_index_in_tx\n FROM\n events\n WHERE\n tx_hash = ANY ($1)\n ORDER BY\n miniblock_number ASC,\n event_index_in_block ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "address", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "topic1", + "type_info": "Bytea" + }, + { + "ordinal": 2, + "name": "topic2", + "type_info": "Bytea" + }, + { + "ordinal": 3, + "name": "topic3", + "type_info": "Bytea" + }, + { + "ordinal": 4, + "name": "topic4", + "type_info": "Bytea" + }, + { + "ordinal": 5, + "name": "value", + "type_info": "Bytea" + }, + { + "ordinal": 6, + "name": "block_hash", + "type_info": "Bytea" + }, + { + "ordinal": 7, + "name": "l1_batch_number?", + "type_info": "Int8" + }, + { + "ordinal": 8, + "name": "miniblock_number", + "type_info": "Int8" + }, + { + "ordinal": 9, + "name": "tx_hash", + "type_info": "Bytea" + }, + { + "ordinal": 10, + "name": "tx_index_in_block", + "type_info": "Int4" + }, + { + "ordinal": 11, + "name": "event_index_in_block", + "type_info": "Int4" + }, + { + "ordinal": 12, + "name": "event_index_in_tx", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "ByteaArray" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + null, + null, + false, + false, + false, + false, + false + ] + }, + "hash": "3ba9bc85e3e286aadef8aad27eb38fc90b18155e3435f58d9888fa50d92042f7" +} diff --git a/core/lib/dal/.sqlx/query-3bc70707863d7be1158de1bfb4bd51c3c1cbd9ba8df9d44a29ff96186e35b700.json b/core/lib/dal/.sqlx/query-3bc70707863d7be1158de1bfb4bd51c3c1cbd9ba8df9d44a29ff96186e35b700.json deleted file mode 100644 index bfb41fa6f26f..000000000000 --- a/core/lib/dal/.sqlx/query-3bc70707863d7be1158de1bfb4bd51c3c1cbd9ba8df9d44a29ff96186e35b700.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT number AS number, false AS \"confirmed!\" FROM l1_batches INNER JOIN eth_txs_history ON l1_batches.eth_commit_tx_id = eth_txs_history.eth_tx_id ORDER BY number DESC LIMIT 1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "number", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "confirmed!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [] - }, - "nullable": [ - false, - null - ] - }, - "hash": "3bc70707863d7be1158de1bfb4bd51c3c1cbd9ba8df9d44a29ff96186e35b700" -} diff --git a/core/lib/dal/.sqlx/query-3c531ad0631090934ed46c538249360a7eab2efc70d97b901f8948f6909d4cd2.json b/core/lib/dal/.sqlx/query-3c531ad0631090934ed46c538249360a7eab2efc70d97b901f8948f6909d4cd2.json new file mode 100644 index 000000000000..d8f17c7f772e --- /dev/null +++ b/core/lib/dal/.sqlx/query-3c531ad0631090934ed46c538249360a7eab2efc70d97b901f8948f6909d4cd2.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n l1_batches.fee_account_address\n FROM\n l1_batches\n INNER JOIN miniblocks ON miniblocks.l1_batch_number = l1_batches.number\n WHERE\n miniblocks.number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "fee_account_address", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "3c531ad0631090934ed46c538249360a7eab2efc70d97b901f8948f6909d4cd2" +} diff --git a/core/lib/dal/.sqlx/query-3c60ca71b8a3b544f5fe9d7f2fbb249026665c9fb17b6f53a2154473547cbbfd.json b/core/lib/dal/.sqlx/query-3c60ca71b8a3b544f5fe9d7f2fbb249026665c9fb17b6f53a2154473547cbbfd.json new file mode 100644 index 000000000000..8797c84ce887 --- /dev/null +++ b/core/lib/dal/.sqlx/query-3c60ca71b8a3b544f5fe9d7f2fbb249026665c9fb17b6f53a2154473547cbbfd.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n certificate\n FROM\n miniblocks_consensus\n WHERE\n number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "certificate", + "type_info": "Jsonb" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "3c60ca71b8a3b544f5fe9d7f2fbb249026665c9fb17b6f53a2154473547cbbfd" +} diff --git a/core/lib/dal/.sqlx/query-3d7536cfe7d88dceebff2125a51bcae561c0eea2b1cd8beb245b0cc66ebffcaa.json b/core/lib/dal/.sqlx/query-3d7536cfe7d88dceebff2125a51bcae561c0eea2b1cd8beb245b0cc66ebffcaa.json deleted file mode 100644 index 9a43cc9fd3a0..000000000000 --- a/core/lib/dal/.sqlx/query-3d7536cfe7d88dceebff2125a51bcae561c0eea2b1cd8beb245b0cc66ebffcaa.json +++ /dev/null @@ -1,119 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n transactions.hash AS tx_hash,\n transactions.index_in_block AS index_in_block,\n transactions.miniblock_number AS block_number,\n transactions.nonce AS nonce,\n transactions.signature AS signature,\n transactions.initiator_address AS initiator_address,\n transactions.tx_format AS tx_format,\n transactions.value AS value,\n transactions.gas_limit AS gas_limit,\n transactions.max_fee_per_gas AS max_fee_per_gas,\n transactions.max_priority_fee_per_gas AS max_priority_fee_per_gas,\n transactions.effective_gas_price AS effective_gas_price,\n transactions.l1_batch_number AS l1_batch_number,\n transactions.l1_batch_tx_index AS l1_batch_tx_index,\n transactions.data->'contractAddress' AS \"execute_contract_address\",\n transactions.data->'calldata' AS \"calldata\",\n miniblocks.hash AS \"block_hash\"\n FROM transactions\n LEFT JOIN miniblocks ON miniblocks.number = transactions.miniblock_number\n WHERE\n transactions.miniblock_number = $1 AND transactions.index_in_block = $2", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "tx_hash", - "type_info": "Bytea" - }, - { - "ordinal": 1, - "name": "index_in_block", - "type_info": "Int4" - }, - { - "ordinal": 2, - "name": "block_number", - "type_info": "Int8" - }, - { - "ordinal": 3, - "name": "nonce", - "type_info": "Int8" - }, - { - "ordinal": 4, - "name": "signature", - "type_info": "Bytea" - }, - { - "ordinal": 5, - "name": "initiator_address", - "type_info": "Bytea" - }, - { - "ordinal": 6, - "name": "tx_format", - "type_info": "Int4" - }, - { - "ordinal": 7, - "name": "value", - "type_info": "Numeric" - }, - { - "ordinal": 8, - "name": "gas_limit", - "type_info": "Numeric" - }, - { - "ordinal": 9, - "name": "max_fee_per_gas", - "type_info": "Numeric" - }, - { - "ordinal": 10, - "name": "max_priority_fee_per_gas", - "type_info": "Numeric" - }, - { - "ordinal": 11, - "name": "effective_gas_price", - "type_info": "Numeric" - }, - { - "ordinal": 12, - "name": "l1_batch_number", - "type_info": "Int8" - }, - { - "ordinal": 13, - "name": "l1_batch_tx_index", - "type_info": "Int4" - }, - { - "ordinal": 14, - "name": "execute_contract_address", - "type_info": "Jsonb" - }, - { - "ordinal": 15, - "name": "calldata", - "type_info": "Jsonb" - }, - { - "ordinal": 16, - "name": "block_hash", - "type_info": "Bytea" - } - ], - "parameters": { - "Left": [ - "Int8", - "Int4" - ] - }, - "nullable": [ - false, - true, - true, - true, - true, - false, - true, - false, - true, - true, - true, - true, - true, - true, - null, - null, - false - ] - }, - "hash": "3d7536cfe7d88dceebff2125a51bcae561c0eea2b1cd8beb245b0cc66ebffcaa" -} diff --git a/core/lib/dal/.sqlx/query-40c17194a2089a7d3fa6b7923c9e03def94f4bf4674def1893e2232be80f57a0.json b/core/lib/dal/.sqlx/query-40c17194a2089a7d3fa6b7923c9e03def94f4bf4674def1893e2232be80f57a0.json new file mode 100644 index 000000000000..c655704fd842 --- /dev/null +++ b/core/lib/dal/.sqlx/query-40c17194a2089a7d3fa6b7923c9e03def94f4bf4674def1893e2232be80f57a0.json @@ -0,0 +1,31 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO\n contract_verification_requests (\n contract_address,\n source_code,\n contract_name,\n zk_compiler_version,\n compiler_version,\n optimization_used,\n optimizer_mode,\n constructor_arguments,\n is_system,\n force_evmla,\n status,\n created_at,\n updated_at\n )\n VALUES\n ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, 'queued', NOW(), NOW())\n RETURNING\n id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Bytea", + "Text", + "Text", + "Text", + "Text", + "Bool", + "Text", + "Bytea", + "Bool", + "Bool" + ] + }, + "nullable": [ + false + ] + }, + "hash": "40c17194a2089a7d3fa6b7923c9e03def94f4bf4674def1893e2232be80f57a0" +} diff --git a/core/lib/dal/.sqlx/query-41c9f45d6eb727aafad0d8c18024cee5c602d275bb812022cc8fdabf0a60e151.json b/core/lib/dal/.sqlx/query-41c9f45d6eb727aafad0d8c18024cee5c602d275bb812022cc8fdabf0a60e151.json new file mode 100644 index 000000000000..8c51c26131bd --- /dev/null +++ b/core/lib/dal/.sqlx/query-41c9f45d6eb727aafad0d8c18024cee5c602d275bb812022cc8fdabf0a60e151.json @@ -0,0 +1,56 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n eth_txs_history.id,\n eth_txs_history.eth_tx_id,\n eth_txs_history.tx_hash,\n eth_txs_history.base_fee_per_gas,\n eth_txs_history.priority_fee_per_gas,\n eth_txs_history.signed_raw_tx,\n eth_txs.nonce\n FROM\n eth_txs_history\n JOIN eth_txs ON eth_txs.id = eth_txs_history.eth_tx_id\n WHERE\n eth_txs_history.sent_at_block IS NULL\n AND eth_txs.confirmed_eth_tx_history_id IS NULL\n ORDER BY\n eth_txs_history.id DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "eth_tx_id", + "type_info": "Int4" + }, + { + "ordinal": 2, + "name": "tx_hash", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "base_fee_per_gas", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "priority_fee_per_gas", + "type_info": "Int8" + }, + { + "ordinal": 5, + "name": "signed_raw_tx", + "type_info": "Bytea" + }, + { + "ordinal": 6, + "name": "nonce", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + false, + false, + false, + false, + true, + false + ] + }, + "hash": "41c9f45d6eb727aafad0d8c18024cee5c602d275bb812022cc8fdabf0a60e151" +} diff --git a/core/lib/dal/.sqlx/query-43c7e352d09f69de1a182196aea4de79b67833f17d252b5b0e8e00cd6e75b5c1.json b/core/lib/dal/.sqlx/query-43c7e352d09f69de1a182196aea4de79b67833f17d252b5b0e8e00cd6e75b5c1.json new file mode 100644 index 000000000000..56fcdb389430 --- /dev/null +++ b/core/lib/dal/.sqlx/query-43c7e352d09f69de1a182196aea4de79b67833f17d252b5b0e8e00cd6e75b5c1.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n MIN(number) AS \"number\"\n FROM\n l1_batches\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "number", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + null + ] + }, + "hash": "43c7e352d09f69de1a182196aea4de79b67833f17d252b5b0e8e00cd6e75b5c1" +} diff --git a/core/lib/dal/.sqlx/query-44490ad52b8dbcd978a96677ffac5437752a4cf3ac92ec09b334089a8dc5b4ca.json b/core/lib/dal/.sqlx/query-44490ad52b8dbcd978a96677ffac5437752a4cf3ac92ec09b334089a8dc5b4ca.json new file mode 100644 index 000000000000..cb2d1b149ecf --- /dev/null +++ b/core/lib/dal/.sqlx/query-44490ad52b8dbcd978a96677ffac5437752a4cf3ac92ec09b334089a8dc5b4ca.json @@ -0,0 +1,106 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH\n mb AS (\n SELECT\n l1_gas_price,\n l2_fair_gas_price\n FROM\n miniblocks\n WHERE\n l1_batch_number = $1\n LIMIT\n 1\n )\n SELECT\n l1_batches.number,\n l1_batches.timestamp,\n l1_batches.l1_tx_count,\n l1_batches.l2_tx_count,\n l1_batches.hash AS \"root_hash?\",\n commit_tx.tx_hash AS \"commit_tx_hash?\",\n commit_tx.confirmed_at AS \"committed_at?\",\n prove_tx.tx_hash AS \"prove_tx_hash?\",\n prove_tx.confirmed_at AS \"proven_at?\",\n execute_tx.tx_hash AS \"execute_tx_hash?\",\n execute_tx.confirmed_at AS \"executed_at?\",\n mb.l1_gas_price,\n mb.l2_fair_gas_price,\n l1_batches.bootloader_code_hash,\n l1_batches.default_aa_code_hash\n FROM\n l1_batches\n INNER JOIN mb ON TRUE\n LEFT JOIN eth_txs_history AS commit_tx ON (\n l1_batches.eth_commit_tx_id = commit_tx.eth_tx_id\n AND commit_tx.confirmed_at IS NOT NULL\n )\n LEFT JOIN eth_txs_history AS prove_tx ON (\n l1_batches.eth_prove_tx_id = prove_tx.eth_tx_id\n AND prove_tx.confirmed_at IS NOT NULL\n )\n LEFT JOIN eth_txs_history AS execute_tx ON (\n l1_batches.eth_execute_tx_id = execute_tx.eth_tx_id\n AND execute_tx.confirmed_at IS NOT NULL\n )\n WHERE\n l1_batches.number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "number", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "timestamp", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "l1_tx_count", + "type_info": "Int4" + }, + { + "ordinal": 3, + "name": "l2_tx_count", + "type_info": "Int4" + }, + { + "ordinal": 4, + "name": "root_hash?", + "type_info": "Bytea" + }, + { + "ordinal": 5, + "name": "commit_tx_hash?", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "committed_at?", + "type_info": "Timestamp" + }, + { + "ordinal": 7, + "name": "prove_tx_hash?", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "proven_at?", + "type_info": "Timestamp" + }, + { + "ordinal": 9, + "name": "execute_tx_hash?", + "type_info": "Text" + }, + { + "ordinal": 10, + "name": "executed_at?", + "type_info": "Timestamp" + }, + { + "ordinal": 11, + "name": "l1_gas_price", + "type_info": "Int8" + }, + { + "ordinal": 12, + "name": "l2_fair_gas_price", + "type_info": "Int8" + }, + { + "ordinal": 13, + "name": "bootloader_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 14, + "name": "default_aa_code_hash", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + false, + true, + false, + true, + false, + true, + false, + true, + false, + false, + true, + true + ] + }, + "hash": "44490ad52b8dbcd978a96677ffac5437752a4cf3ac92ec09b334089a8dc5b4ca" +} diff --git a/core/lib/dal/.sqlx/query-48c03061a662861818e3b0072caee38f07b52a709bfd5f3dbab5b4cfef463f1f.json b/core/lib/dal/.sqlx/query-48c03061a662861818e3b0072caee38f07b52a709bfd5f3dbab5b4cfef463f1f.json deleted file mode 100644 index 009022cc4f8a..000000000000 --- a/core/lib/dal/.sqlx/query-48c03061a662861818e3b0072caee38f07b52a709bfd5f3dbab5b4cfef463f1f.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT COALESCE(\n (\n SELECT MAX(number) FROM miniblocks\n WHERE l1_batch_number = (\n SELECT MAX(number) FROM l1_batches\n JOIN eth_txs ON\n l1_batches.eth_execute_tx_id = eth_txs.id\n WHERE\n eth_txs.confirmed_eth_tx_history_id IS NOT NULL\n )\n ),\n 0\n ) AS number\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "number", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [] - }, - "nullable": [ - null - ] - }, - "hash": "48c03061a662861818e3b0072caee38f07b52a709bfd5f3dbab5b4cfef463f1f" -} diff --git a/core/lib/dal/.sqlx/query-4aef05b8864484c6979c93d7ce3159cf509cf27adf9afdbe61bd867e536b7e47.json b/core/lib/dal/.sqlx/query-4aef05b8864484c6979c93d7ce3159cf509cf27adf9afdbe61bd867e536b7e47.json new file mode 100644 index 000000000000..d24b6eb7583a --- /dev/null +++ b/core/lib/dal/.sqlx/query-4aef05b8864484c6979c93d7ce3159cf509cf27adf9afdbe61bd867e536b7e47.json @@ -0,0 +1,202 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n number,\n timestamp,\n l1_tx_count,\n l2_tx_count,\n bloom,\n priority_ops_onchain_data,\n hash,\n commitment,\n eth_prove_tx_id,\n eth_commit_tx_id,\n eth_execute_tx_id,\n merkle_root_hash,\n l2_to_l1_logs,\n l2_to_l1_messages,\n used_contract_hashes,\n compressed_initial_writes,\n compressed_repeated_writes,\n l2_l1_merkle_root,\n rollup_last_leaf_index,\n zkporter_is_available,\n bootloader_code_hash,\n default_aa_code_hash,\n aux_data_hash,\n pass_through_data_hash,\n meta_parameters_hash,\n protocol_version,\n compressed_state_diffs,\n system_logs,\n events_queue_commitment,\n bootloader_initial_content_commitment,\n pubdata_input\n FROM\n l1_batches\n LEFT JOIN commitments ON commitments.l1_batch_number = l1_batches.number\n WHERE\n eth_prove_tx_id IS NOT NULL\n AND eth_execute_tx_id IS NULL\n ORDER BY\n number\n LIMIT\n $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "number", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "timestamp", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "l1_tx_count", + "type_info": "Int4" + }, + { + "ordinal": 3, + "name": "l2_tx_count", + "type_info": "Int4" + }, + { + "ordinal": 4, + "name": "bloom", + "type_info": "Bytea" + }, + { + "ordinal": 5, + "name": "priority_ops_onchain_data", + "type_info": "ByteaArray" + }, + { + "ordinal": 6, + "name": "hash", + "type_info": "Bytea" + }, + { + "ordinal": 7, + "name": "commitment", + "type_info": "Bytea" + }, + { + "ordinal": 8, + "name": "eth_prove_tx_id", + "type_info": "Int4" + }, + { + "ordinal": 9, + "name": "eth_commit_tx_id", + "type_info": "Int4" + }, + { + "ordinal": 10, + "name": "eth_execute_tx_id", + "type_info": "Int4" + }, + { + "ordinal": 11, + "name": "merkle_root_hash", + "type_info": "Bytea" + }, + { + "ordinal": 12, + "name": "l2_to_l1_logs", + "type_info": "ByteaArray" + }, + { + "ordinal": 13, + "name": "l2_to_l1_messages", + "type_info": "ByteaArray" + }, + { + "ordinal": 14, + "name": "used_contract_hashes", + "type_info": "Jsonb" + }, + { + "ordinal": 15, + "name": "compressed_initial_writes", + "type_info": "Bytea" + }, + { + "ordinal": 16, + "name": "compressed_repeated_writes", + "type_info": "Bytea" + }, + { + "ordinal": 17, + "name": "l2_l1_merkle_root", + "type_info": "Bytea" + }, + { + "ordinal": 18, + "name": "rollup_last_leaf_index", + "type_info": "Int8" + }, + { + "ordinal": 19, + "name": "zkporter_is_available", + "type_info": "Bool" + }, + { + "ordinal": 20, + "name": "bootloader_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 21, + "name": "default_aa_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 22, + "name": "aux_data_hash", + "type_info": "Bytea" + }, + { + "ordinal": 23, + "name": "pass_through_data_hash", + "type_info": "Bytea" + }, + { + "ordinal": 24, + "name": "meta_parameters_hash", + "type_info": "Bytea" + }, + { + "ordinal": 25, + "name": "protocol_version", + "type_info": "Int4" + }, + { + "ordinal": 26, + "name": "compressed_state_diffs", + "type_info": "Bytea" + }, + { + "ordinal": 27, + "name": "system_logs", + "type_info": "ByteaArray" + }, + { + "ordinal": 28, + "name": "events_queue_commitment", + "type_info": "Bytea" + }, + { + "ordinal": 29, + "name": "bootloader_initial_content_commitment", + "type_info": "Bytea" + }, + { + "ordinal": 30, + "name": "pubdata_input", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + true, + true, + true, + true, + true, + true, + false, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true + ] + }, + "hash": "4aef05b8864484c6979c93d7ce3159cf509cf27adf9afdbe61bd867e536b7e47" +} diff --git a/core/lib/dal/.sqlx/query-4d50dabc25d392e6b9d0dbe0e386ea7ef2c1178b1b0394a17442185b79f2d77d.json b/core/lib/dal/.sqlx/query-4d50dabc25d392e6b9d0dbe0e386ea7ef2c1178b1b0394a17442185b79f2d77d.json new file mode 100644 index 000000000000..e9a9425da3ce --- /dev/null +++ b/core/lib/dal/.sqlx/query-4d50dabc25d392e6b9d0dbe0e386ea7ef2c1178b1b0394a17442185b79f2d77d.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT eth_txs.id FROM eth_txs_history JOIN eth_txs ON eth_txs.confirmed_eth_tx_history_id = eth_txs_history.id WHERE eth_txs_history.tx_hash = $1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "4d50dabc25d392e6b9d0dbe0e386ea7ef2c1178b1b0394a17442185b79f2d77d" +} diff --git a/core/lib/dal/.sqlx/query-510bfea2346a8c63e74222e1159de366f88c20d00a8d928b6cf4caae0702b333.json b/core/lib/dal/.sqlx/query-510bfea2346a8c63e74222e1159de366f88c20d00a8d928b6cf4caae0702b333.json deleted file mode 100644 index ef8f865bf983..000000000000 --- a/core/lib/dal/.sqlx/query-510bfea2346a8c63e74222e1159de366f88c20d00a8d928b6cf4caae0702b333.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO\n witness_inputs_fri (\n l1_batch_number,\n merkle_tree_paths_blob_url,\n protocol_version,\n eip_4844_blobs,\n status,\n created_at,\n updated_at\n )\n VALUES\n ($1, $2, $3, $4, 'queued', NOW(), NOW())\n ON CONFLICT (l1_batch_number) DO NOTHING\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Int8", - "Text", - "Int4", - "Bytea" - ] - }, - "nullable": [] - }, - "hash": "510bfea2346a8c63e74222e1159de366f88c20d00a8d928b6cf4caae0702b333" -} diff --git a/core/lib/dal/.sqlx/query-51891ab674b8f5cf2d7c12420d1c026c3181f42a49f1f4b6e227c95641931a54.json b/core/lib/dal/.sqlx/query-51891ab674b8f5cf2d7c12420d1c026c3181f42a49f1f4b6e227c95641931a54.json new file mode 100644 index 000000000000..ed13428a5695 --- /dev/null +++ b/core/lib/dal/.sqlx/query-51891ab674b8f5cf2d7c12420d1c026c3181f42a49f1f4b6e227c95641931a54.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n timestamp\n FROM\n miniblocks\n WHERE\n number = COALESCE(\n (\n SELECT\n MAX(number) + 1\n FROM\n miniblocks\n WHERE\n l1_batch_number = $1\n ),\n (\n SELECT\n MAX(miniblock_number) + 1\n FROM\n snapshot_recovery\n WHERE\n l1_batch_number = $1\n )\n )\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "timestamp", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "51891ab674b8f5cf2d7c12420d1c026c3181f42a49f1f4b6e227c95641931a54" +} diff --git a/core/lib/dal/.sqlx/query-532a80b0873871896dd318beba5ec427a099492905a1feee512dc43f39d10047.json b/core/lib/dal/.sqlx/query-532a80b0873871896dd318beba5ec427a099492905a1feee512dc43f39d10047.json new file mode 100644 index 000000000000..629dca2ea7f0 --- /dev/null +++ b/core/lib/dal/.sqlx/query-532a80b0873871896dd318beba5ec427a099492905a1feee512dc43f39d10047.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE eth_txs_history\n SET\n sent_at_block = $2,\n sent_at = NOW()\n WHERE\n id = $1\n AND sent_at_block IS NULL\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int4", + "Int4" + ] + }, + "nullable": [] + }, + "hash": "532a80b0873871896dd318beba5ec427a099492905a1feee512dc43f39d10047" +} diff --git a/core/lib/dal/.sqlx/query-546c729829083b7eba94fea742c162d717ffcf46fdf5d2ce5d32555353b6da6b.json b/core/lib/dal/.sqlx/query-546c729829083b7eba94fea742c162d717ffcf46fdf5d2ce5d32555353b6da6b.json new file mode 100644 index 000000000000..70b94f739098 --- /dev/null +++ b/core/lib/dal/.sqlx/query-546c729829083b7eba94fea742c162d717ffcf46fdf5d2ce5d32555353b6da6b.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE transactions\n SET\n in_mempool = FALSE\n FROM\n UNNEST($1::bytea[]) AS s (address)\n WHERE\n transactions.in_mempool = TRUE\n AND transactions.initiator_address = s.address\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "ByteaArray" + ] + }, + "nullable": [] + }, + "hash": "546c729829083b7eba94fea742c162d717ffcf46fdf5d2ce5d32555353b6da6b" +} diff --git a/core/lib/dal/.sqlx/query-5503575d9377785894de6cf6139a8d4768c6a803a1a90889e5a1b8254c315231.json b/core/lib/dal/.sqlx/query-5503575d9377785894de6cf6139a8d4768c6a803a1a90889e5a1b8254c315231.json new file mode 100644 index 000000000000..5f27c7549b47 --- /dev/null +++ b/core/lib/dal/.sqlx/query-5503575d9377785894de6cf6139a8d4768c6a803a1a90889e5a1b8254c315231.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "INSERT INTO eth_txs (raw_tx, nonce, tx_type, contract_address, predicted_gas_cost, created_at, updated_at) VALUES ('\\x00', 0, $1, '', 0, now(), now()) RETURNING id", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "5503575d9377785894de6cf6139a8d4768c6a803a1a90889e5a1b8254c315231" +} diff --git a/core/lib/dal/.sqlx/query-555f396946bdb8b84a5d77abbfc1397212b4767039a6c0e22697cf40969729af.json b/core/lib/dal/.sqlx/query-555f396946bdb8b84a5d77abbfc1397212b4767039a6c0e22697cf40969729af.json new file mode 100644 index 000000000000..1cb61dc4460e --- /dev/null +++ b/core/lib/dal/.sqlx/query-555f396946bdb8b84a5d77abbfc1397212b4767039a6c0e22697cf40969729af.json @@ -0,0 +1,56 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n hashed_key,\n address,\n key,\n value,\n operation_number,\n tx_hash,\n miniblock_number\n FROM\n storage_logs\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "hashed_key", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "address", + "type_info": "Bytea" + }, + { + "ordinal": 2, + "name": "key", + "type_info": "Bytea" + }, + { + "ordinal": 3, + "name": "value", + "type_info": "Bytea" + }, + { + "ordinal": 4, + "name": "operation_number", + "type_info": "Int4" + }, + { + "ordinal": 5, + "name": "tx_hash", + "type_info": "Bytea" + }, + { + "ordinal": 6, + "name": "miniblock_number", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "555f396946bdb8b84a5d77abbfc1397212b4767039a6c0e22697cf40969729af" +} diff --git a/core/lib/dal/.sqlx/query-556f9b9e82d3a9399660dfa4bbf252f26335699a4e7f0347d7e894320245271d.json b/core/lib/dal/.sqlx/query-556f9b9e82d3a9399660dfa4bbf252f26335699a4e7f0347d7e894320245271d.json new file mode 100644 index 000000000000..1dcfa982c51d --- /dev/null +++ b/core/lib/dal/.sqlx/query-556f9b9e82d3a9399660dfa4bbf252f26335699a4e7f0347d7e894320245271d.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO\n events_queue (l1_batch_number, serialized_events_queue)\n VALUES\n ($1, $2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8", + "Jsonb" + ] + }, + "nullable": [] + }, + "hash": "556f9b9e82d3a9399660dfa4bbf252f26335699a4e7f0347d7e894320245271d" +} diff --git a/core/lib/dal/.sqlx/query-55b0b4c569c0aaf9741afc85400ecd50a04799ffd36be0e17c56f47fcdbc8f60.json b/core/lib/dal/.sqlx/query-55b0b4c569c0aaf9741afc85400ecd50a04799ffd36be0e17c56f47fcdbc8f60.json new file mode 100644 index 000000000000..6478bb53538d --- /dev/null +++ b/core/lib/dal/.sqlx/query-55b0b4c569c0aaf9741afc85400ecd50a04799ffd36be0e17c56f47fcdbc8f60.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM l1_batches\n WHERE\n number > $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [] + }, + "hash": "55b0b4c569c0aaf9741afc85400ecd50a04799ffd36be0e17c56f47fcdbc8f60" +} diff --git a/core/lib/dal/.sqlx/query-55e6f5ea121090034c8920dffb7cfb3ba0659b6fcc582e174ee80601b54f89d9.json b/core/lib/dal/.sqlx/query-55e6f5ea121090034c8920dffb7cfb3ba0659b6fcc582e174ee80601b54f89d9.json new file mode 100644 index 000000000000..117d1bad9bf2 --- /dev/null +++ b/core/lib/dal/.sqlx/query-55e6f5ea121090034c8920dffb7cfb3ba0659b6fcc582e174ee80601b54f89d9.json @@ -0,0 +1,35 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT DISTINCT\n ON (hashed_key) hashed_key,\n miniblock_number,\n value\n FROM\n storage_logs\n WHERE\n hashed_key = ANY ($1)\n AND miniblock_number <= $2\n ORDER BY\n hashed_key,\n miniblock_number DESC,\n operation_number DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "hashed_key", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "miniblock_number", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "value", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "ByteaArray", + "Int8" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "55e6f5ea121090034c8920dffb7cfb3ba0659b6fcc582e174ee80601b54f89d9" +} diff --git a/core/lib/dal/.sqlx/query-55f4585be3d0f1a147cb10f6e59325fad494a512ba92df95439d2d7fe0f3a285.json b/core/lib/dal/.sqlx/query-55f4585be3d0f1a147cb10f6e59325fad494a512ba92df95439d2d7fe0f3a285.json new file mode 100644 index 000000000000..ecf54f0417b8 --- /dev/null +++ b/core/lib/dal/.sqlx/query-55f4585be3d0f1a147cb10f6e59325fad494a512ba92df95439d2d7fe0f3a285.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE l1_batches\n SET\n commitment = $1,\n aux_data_hash = $2,\n pass_through_data_hash = $3,\n meta_parameters_hash = $4,\n l2_l1_merkle_root = $5,\n zkporter_is_available = $6,\n compressed_state_diffs = $7,\n compressed_initial_writes = $8,\n compressed_repeated_writes = $9,\n updated_at = NOW()\n WHERE\n number = $10\n AND commitment IS NULL\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Bytea", + "Bytea", + "Bytea", + "Bytea", + "Bytea", + "Bool", + "Bytea", + "Bytea", + "Bytea", + "Int8" + ] + }, + "nullable": [] + }, + "hash": "55f4585be3d0f1a147cb10f6e59325fad494a512ba92df95439d2d7fe0f3a285" +} diff --git a/core/lib/dal/.sqlx/query-5659480e5d79dab3399e35539b240e7eb9f598999c28015a504605f88bf84b33.json b/core/lib/dal/.sqlx/query-5659480e5d79dab3399e35539b240e7eb9f598999c28015a504605f88bf84b33.json new file mode 100644 index 000000000000..5948d75785b2 --- /dev/null +++ b/core/lib/dal/.sqlx/query-5659480e5d79dab3399e35539b240e7eb9f598999c28015a504605f88bf84b33.json @@ -0,0 +1,100 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n *\n FROM\n eth_txs\n WHERE\n id > (\n SELECT\n COALESCE(MAX(eth_tx_id), 0)\n FROM\n eth_txs_history\n )\n ORDER BY\n id\n LIMIT\n $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "nonce", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "raw_tx", + "type_info": "Bytea" + }, + { + "ordinal": 3, + "name": "contract_address", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "tx_type", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "gas_used", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "created_at", + "type_info": "Timestamp" + }, + { + "ordinal": 7, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 8, + "name": "has_failed", + "type_info": "Bool" + }, + { + "ordinal": 9, + "name": "sent_at_block", + "type_info": "Int4" + }, + { + "ordinal": 10, + "name": "confirmed_eth_tx_history_id", + "type_info": "Int4" + }, + { + "ordinal": 11, + "name": "predicted_gas_cost", + "type_info": "Int8" + }, + { + "ordinal": 12, + "name": "from_addr", + "type_info": "Bytea" + }, + { + "ordinal": 13, + "name": "blob_sidecar", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + true, + false, + false, + false, + true, + true, + false, + true, + true + ] + }, + "hash": "5659480e5d79dab3399e35539b240e7eb9f598999c28015a504605f88bf84b33" +} diff --git a/core/lib/dal/.sqlx/query-57fe009542ca9dc763e3823ee73662bf3bfdda11bb57f65db4980982a4200bed.json b/core/lib/dal/.sqlx/query-57fe009542ca9dc763e3823ee73662bf3bfdda11bb57f65db4980982a4200bed.json new file mode 100644 index 000000000000..909686f9d0ee --- /dev/null +++ b/core/lib/dal/.sqlx/query-57fe009542ca9dc763e3823ee73662bf3bfdda11bb57f65db4980982a4200bed.json @@ -0,0 +1,106 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n number,\n timestamp,\n hash,\n l1_tx_count,\n l2_tx_count,\n fee_account_address AS \"fee_account_address!\",\n base_fee_per_gas,\n l1_gas_price,\n l2_fair_gas_price,\n gas_per_pubdata_limit,\n bootloader_code_hash,\n default_aa_code_hash,\n protocol_version,\n virtual_blocks,\n fair_pubdata_price\n FROM\n miniblocks\n WHERE\n number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "number", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "timestamp", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "hash", + "type_info": "Bytea" + }, + { + "ordinal": 3, + "name": "l1_tx_count", + "type_info": "Int4" + }, + { + "ordinal": 4, + "name": "l2_tx_count", + "type_info": "Int4" + }, + { + "ordinal": 5, + "name": "fee_account_address!", + "type_info": "Bytea" + }, + { + "ordinal": 6, + "name": "base_fee_per_gas", + "type_info": "Numeric" + }, + { + "ordinal": 7, + "name": "l1_gas_price", + "type_info": "Int8" + }, + { + "ordinal": 8, + "name": "l2_fair_gas_price", + "type_info": "Int8" + }, + { + "ordinal": 9, + "name": "gas_per_pubdata_limit", + "type_info": "Int8" + }, + { + "ordinal": 10, + "name": "bootloader_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 11, + "name": "default_aa_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 12, + "name": "protocol_version", + "type_info": "Int4" + }, + { + "ordinal": 13, + "name": "virtual_blocks", + "type_info": "Int8" + }, + { + "ordinal": 14, + "name": "fair_pubdata_price", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + true, + true, + false, + true + ] + }, + "hash": "57fe009542ca9dc763e3823ee73662bf3bfdda11bb57f65db4980982a4200bed" +} diff --git a/core/lib/dal/.sqlx/query-58aed39245c72d231b268ce83105bb2036d21f60d4c6934f9145730ac35c04de.json b/core/lib/dal/.sqlx/query-58aed39245c72d231b268ce83105bb2036d21f60d4c6934f9145730ac35c04de.json new file mode 100644 index 000000000000..502d14e05ea5 --- /dev/null +++ b/core/lib/dal/.sqlx/query-58aed39245c72d231b268ce83105bb2036d21f60d4c6934f9145730ac35c04de.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n l1_batch_number\n FROM\n proof_generation_details\n WHERE\n status = 'ready_to_be_proven'\n ORDER BY\n l1_batch_number ASC\n LIMIT\n 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "l1_batch_number", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false + ] + }, + "hash": "58aed39245c72d231b268ce83105bb2036d21f60d4c6934f9145730ac35c04de" +} diff --git a/core/lib/dal/.sqlx/query-5d341e334cbc2d38efc8a060325677d57040037da0e07cef2c7b7246851a3703.json b/core/lib/dal/.sqlx/query-5d341e334cbc2d38efc8a060325677d57040037da0e07cef2c7b7246851a3703.json new file mode 100644 index 000000000000..f0d8b01d57c0 --- /dev/null +++ b/core/lib/dal/.sqlx/query-5d341e334cbc2d38efc8a060325677d57040037da0e07cef2c7b7246851a3703.json @@ -0,0 +1,82 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE contract_verification_requests\n SET\n status = 'in_progress',\n attempts = attempts + 1,\n updated_at = NOW(),\n processing_started_at = NOW()\n WHERE\n id = (\n SELECT\n id\n FROM\n contract_verification_requests\n WHERE\n status = 'queued'\n OR (\n status = 'in_progress'\n AND processing_started_at < NOW() - $1::INTERVAL\n )\n ORDER BY\n created_at\n LIMIT\n 1\n FOR UPDATE\n SKIP LOCKED\n )\n RETURNING\n id,\n contract_address,\n source_code,\n contract_name,\n zk_compiler_version,\n compiler_version,\n optimization_used,\n optimizer_mode,\n constructor_arguments,\n is_system,\n force_evmla\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "contract_address", + "type_info": "Bytea" + }, + { + "ordinal": 2, + "name": "source_code", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "contract_name", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "zk_compiler_version", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "compiler_version", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "optimization_used", + "type_info": "Bool" + }, + { + "ordinal": 7, + "name": "optimizer_mode", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "constructor_arguments", + "type_info": "Bytea" + }, + { + "ordinal": 9, + "name": "is_system", + "type_info": "Bool" + }, + { + "ordinal": 10, + "name": "force_evmla", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Interval" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + true, + false, + false, + false + ] + }, + "hash": "5d341e334cbc2d38efc8a060325677d57040037da0e07cef2c7b7246851a3703" +} diff --git a/core/lib/dal/.sqlx/query-5d493cbce749cc5b56d4069423597b16599abaf51df0f19effe1a536376cf6a6.json b/core/lib/dal/.sqlx/query-5d493cbce749cc5b56d4069423597b16599abaf51df0f19effe1a536376cf6a6.json new file mode 100644 index 000000000000..eba36994fb34 --- /dev/null +++ b/core/lib/dal/.sqlx/query-5d493cbce749cc5b56d4069423597b16599abaf51df0f19effe1a536376cf6a6.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n bootloader_code_hash,\n default_account_code_hash\n FROM\n protocol_versions\n WHERE\n id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "bootloader_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "default_account_code_hash", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "5d493cbce749cc5b56d4069423597b16599abaf51df0f19effe1a536376cf6a6" +} diff --git a/core/lib/dal/.sqlx/query-5f7034d22251a893249208c5ff8fa5c8bf46bc0cea4ac2b25ecde236c30ae32d.json b/core/lib/dal/.sqlx/query-5f7034d22251a893249208c5ff8fa5c8bf46bc0cea4ac2b25ecde236c30ae32d.json new file mode 100644 index 000000000000..0ae6e3bff4b1 --- /dev/null +++ b/core/lib/dal/.sqlx/query-5f7034d22251a893249208c5ff8fa5c8bf46bc0cea4ac2b25ecde236c30ae32d.json @@ -0,0 +1,44 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n l1_address,\n l2_address,\n NAME,\n symbol,\n decimals\n FROM\n tokens\n WHERE\n well_known = TRUE\n ORDER BY\n symbol\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "l1_address", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "l2_address", + "type_info": "Bytea" + }, + { + "ordinal": 2, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "symbol", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "decimals", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + false, + false, + false, + false + ] + }, + "hash": "5f7034d22251a893249208c5ff8fa5c8bf46bc0cea4ac2b25ecde236c30ae32d" +} diff --git a/core/lib/dal/.sqlx/query-61bc330d6d1b5fddec78342c1b0f00e82b0b3ad9ae36bf4fe44d7e85b74c6f49.json b/core/lib/dal/.sqlx/query-61bc330d6d1b5fddec78342c1b0f00e82b0b3ad9ae36bf4fe44d7e85b74c6f49.json new file mode 100644 index 000000000000..2c0454b0dd8b --- /dev/null +++ b/core/lib/dal/.sqlx/query-61bc330d6d1b5fddec78342c1b0f00e82b0b3ad9ae36bf4fe44d7e85b74c6f49.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n MAX(priority_op_id) AS \"op_id\"\n FROM\n transactions\n WHERE\n is_priority = TRUE\n AND miniblock_number IS NOT NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "op_id", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + null + ] + }, + "hash": "61bc330d6d1b5fddec78342c1b0f00e82b0b3ad9ae36bf4fe44d7e85b74c6f49" +} diff --git a/core/lib/dal/.sqlx/query-63f5f9bff4b2c15fa4230af2c73b5b5cc7e37dd6a607e9453e822e34ba77cdc3.json b/core/lib/dal/.sqlx/query-63f5f9bff4b2c15fa4230af2c73b5b5cc7e37dd6a607e9453e822e34ba77cdc3.json deleted file mode 100644 index ab2283fa60c3..000000000000 --- a/core/lib/dal/.sqlx/query-63f5f9bff4b2c15fa4230af2c73b5b5cc7e37dd6a607e9453e822e34ba77cdc3.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT COALESCE(SUM(predicted_prove_gas_cost), 0) AS \"sum!\" FROM l1_batches WHERE number BETWEEN $1 AND $2", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "sum!", - "type_info": "Numeric" - } - ], - "parameters": { - "Left": [ - "Int8", - "Int8" - ] - }, - "nullable": [ - null - ] - }, - "hash": "63f5f9bff4b2c15fa4230af2c73b5b5cc7e37dd6a607e9453e822e34ba77cdc3" -} diff --git a/core/lib/dal/.sqlx/query-65736a5b9b4ad364797dbedfc828f24785ae8bd2b4579203f05379e757a56f2b.json b/core/lib/dal/.sqlx/query-65736a5b9b4ad364797dbedfc828f24785ae8bd2b4579203f05379e757a56f2b.json new file mode 100644 index 000000000000..af7bff984be5 --- /dev/null +++ b/core/lib/dal/.sqlx/query-65736a5b9b4ad364797dbedfc828f24785ae8bd2b4579203f05379e757a56f2b.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n COUNT(*) AS \"count!\"\n FROM\n l1_batches\n WHERE\n number = $1\n AND commitment = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "count!", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Int8", + "Bytea" + ] + }, + "nullable": [ + null + ] + }, + "hash": "65736a5b9b4ad364797dbedfc828f24785ae8bd2b4579203f05379e757a56f2b" +} diff --git a/core/lib/dal/.sqlx/query-6621de90a024cc85946f17948e5c171cd0e4d38bd6e9cfec58b2d7f53a3204e1.json b/core/lib/dal/.sqlx/query-6621de90a024cc85946f17948e5c171cd0e4d38bd6e9cfec58b2d7f53a3204e1.json new file mode 100644 index 000000000000..8ba437fe2cee --- /dev/null +++ b/core/lib/dal/.sqlx/query-6621de90a024cc85946f17948e5c171cd0e4d38bd6e9cfec58b2d7f53a3204e1.json @@ -0,0 +1,235 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE transactions\n SET\n in_mempool = TRUE\n FROM\n (\n SELECT\n hash\n FROM\n (\n SELECT\n hash\n FROM\n transactions\n WHERE\n miniblock_number IS NULL\n AND in_mempool = FALSE\n AND error IS NULL\n AND (\n is_priority = TRUE\n OR (\n max_fee_per_gas >= $2\n AND gas_per_pubdata_limit >= $3\n )\n )\n AND tx_format != $4\n ORDER BY\n is_priority DESC,\n priority_op_id,\n received_at\n LIMIT\n $1\n ) AS subquery1\n ORDER BY\n hash\n ) AS subquery2\n WHERE\n transactions.hash = subquery2.hash\n RETURNING\n transactions.*\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "hash", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "is_priority", + "type_info": "Bool" + }, + { + "ordinal": 2, + "name": "full_fee", + "type_info": "Numeric" + }, + { + "ordinal": 3, + "name": "layer_2_tip_fee", + "type_info": "Numeric" + }, + { + "ordinal": 4, + "name": "initiator_address", + "type_info": "Bytea" + }, + { + "ordinal": 5, + "name": "nonce", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "signature", + "type_info": "Bytea" + }, + { + "ordinal": 7, + "name": "input", + "type_info": "Bytea" + }, + { + "ordinal": 8, + "name": "data", + "type_info": "Jsonb" + }, + { + "ordinal": 9, + "name": "received_at", + "type_info": "Timestamp" + }, + { + "ordinal": 10, + "name": "priority_op_id", + "type_info": "Int8" + }, + { + "ordinal": 11, + "name": "l1_batch_number", + "type_info": "Int8" + }, + { + "ordinal": 12, + "name": "index_in_block", + "type_info": "Int4" + }, + { + "ordinal": 13, + "name": "error", + "type_info": "Varchar" + }, + { + "ordinal": 14, + "name": "gas_limit", + "type_info": "Numeric" + }, + { + "ordinal": 15, + "name": "gas_per_storage_limit", + "type_info": "Numeric" + }, + { + "ordinal": 16, + "name": "gas_per_pubdata_limit", + "type_info": "Numeric" + }, + { + "ordinal": 17, + "name": "tx_format", + "type_info": "Int4" + }, + { + "ordinal": 18, + "name": "created_at", + "type_info": "Timestamp" + }, + { + "ordinal": 19, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 20, + "name": "execution_info", + "type_info": "Jsonb" + }, + { + "ordinal": 21, + "name": "contract_address", + "type_info": "Bytea" + }, + { + "ordinal": 22, + "name": "in_mempool", + "type_info": "Bool" + }, + { + "ordinal": 23, + "name": "l1_block_number", + "type_info": "Int4" + }, + { + "ordinal": 24, + "name": "value", + "type_info": "Numeric" + }, + { + "ordinal": 25, + "name": "paymaster", + "type_info": "Bytea" + }, + { + "ordinal": 26, + "name": "paymaster_input", + "type_info": "Bytea" + }, + { + "ordinal": 27, + "name": "max_fee_per_gas", + "type_info": "Numeric" + }, + { + "ordinal": 28, + "name": "max_priority_fee_per_gas", + "type_info": "Numeric" + }, + { + "ordinal": 29, + "name": "effective_gas_price", + "type_info": "Numeric" + }, + { + "ordinal": 30, + "name": "miniblock_number", + "type_info": "Int8" + }, + { + "ordinal": 31, + "name": "l1_batch_tx_index", + "type_info": "Int4" + }, + { + "ordinal": 32, + "name": "refunded_gas", + "type_info": "Int8" + }, + { + "ordinal": 33, + "name": "l1_tx_mint", + "type_info": "Numeric" + }, + { + "ordinal": 34, + "name": "l1_tx_refund_recipient", + "type_info": "Bytea" + }, + { + "ordinal": 35, + "name": "upgrade_id", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Int8", + "Numeric", + "Numeric", + "Int4" + ] + }, + "nullable": [ + false, + false, + true, + true, + false, + true, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + false, + false, + true, + false, + true, + false, + false, + false, + true, + true, + true, + true, + true, + false, + true, + true, + true + ] + }, + "hash": "6621de90a024cc85946f17948e5c171cd0e4d38bd6e9cfec58b2d7f53a3204e1" +} diff --git a/core/lib/dal/.sqlx/query-66510caa7683ed90729cb545ac8528f012c2ecaebf6622ca1ae481045604e58d.json b/core/lib/dal/.sqlx/query-66510caa7683ed90729cb545ac8528f012c2ecaebf6622ca1ae481045604e58d.json new file mode 100644 index 000000000000..76900667a9c9 --- /dev/null +++ b/core/lib/dal/.sqlx/query-66510caa7683ed90729cb545ac8528f012c2ecaebf6622ca1ae481045604e58d.json @@ -0,0 +1,21 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO\n snapshot_recovery (\n l1_batch_number,\n l1_batch_timestamp,\n l1_batch_root_hash,\n miniblock_number,\n miniblock_timestamp,\n miniblock_hash,\n protocol_version,\n storage_logs_chunks_processed,\n updated_at,\n created_at\n )\n VALUES\n ($1, $2, $3, $4, $5, $6, $7, $8, NOW(), NOW())\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8", + "Int8", + "Bytea", + "Int8", + "Int8", + "Bytea", + "Int4", + "BoolArray" + ] + }, + "nullable": [] + }, + "hash": "66510caa7683ed90729cb545ac8528f012c2ecaebf6622ca1ae481045604e58d" +} diff --git a/core/lib/dal/.sqlx/query-6692ff6c0fbb2fc94f5cd2837a43ce80f9b2b27758651ccfc09df61a4ae8a363.json b/core/lib/dal/.sqlx/query-6692ff6c0fbb2fc94f5cd2837a43ce80f9b2b27758651ccfc09df61a4ae8a363.json new file mode 100644 index 000000000000..985f998b439a --- /dev/null +++ b/core/lib/dal/.sqlx/query-6692ff6c0fbb2fc94f5cd2837a43ce80f9b2b27758651ccfc09df61a4ae8a363.json @@ -0,0 +1,100 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n *\n FROM\n eth_txs\n WHERE\n id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "nonce", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "raw_tx", + "type_info": "Bytea" + }, + { + "ordinal": 3, + "name": "contract_address", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "tx_type", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "gas_used", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "created_at", + "type_info": "Timestamp" + }, + { + "ordinal": 7, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 8, + "name": "has_failed", + "type_info": "Bool" + }, + { + "ordinal": 9, + "name": "sent_at_block", + "type_info": "Int4" + }, + { + "ordinal": 10, + "name": "confirmed_eth_tx_history_id", + "type_info": "Int4" + }, + { + "ordinal": 11, + "name": "predicted_gas_cost", + "type_info": "Int8" + }, + { + "ordinal": 12, + "name": "from_addr", + "type_info": "Bytea" + }, + { + "ordinal": 13, + "name": "blob_sidecar", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + true, + false, + false, + false, + true, + true, + false, + true, + true + ] + }, + "hash": "6692ff6c0fbb2fc94f5cd2837a43ce80f9b2b27758651ccfc09df61a4ae8a363" +} diff --git a/core/lib/dal/.sqlx/query-67ac33ad0ad912e8db6d141e21c2e14fa4c1c4fdad16eff011011878af897946.json b/core/lib/dal/.sqlx/query-67ac33ad0ad912e8db6d141e21c2e14fa4c1c4fdad16eff011011878af897946.json deleted file mode 100644 index 73121576ef95..000000000000 --- a/core/lib/dal/.sqlx/query-67ac33ad0ad912e8db6d141e21c2e14fa4c1c4fdad16eff011011878af897946.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT number FROM miniblocks WHERE hash = $1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "number", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Bytea" - ] - }, - "nullable": [ - false - ] - }, - "hash": "67ac33ad0ad912e8db6d141e21c2e14fa4c1c4fdad16eff011011878af897946" -} diff --git a/core/lib/dal/.sqlx/query-6849be0788a509e4e68acc2da4bfadbcfc343374fad173df0cc8db38419a9726.json b/core/lib/dal/.sqlx/query-6849be0788a509e4e68acc2da4bfadbcfc343374fad173df0cc8db38419a9726.json new file mode 100644 index 000000000000..72dbb2a4178b --- /dev/null +++ b/core/lib/dal/.sqlx/query-6849be0788a509e4e68acc2da4bfadbcfc343374fad173df0cc8db38419a9726.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM tokens\n WHERE\n l2_address = ANY ($1)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "ByteaArray" + ] + }, + "nullable": [] + }, + "hash": "6849be0788a509e4e68acc2da4bfadbcfc343374fad173df0cc8db38419a9726" +} diff --git a/core/lib/dal/.sqlx/query-6874b501c82e6062ab22622095070d67840b2484ea3a03ac49eb3d50ea153163.json b/core/lib/dal/.sqlx/query-6874b501c82e6062ab22622095070d67840b2484ea3a03ac49eb3d50ea153163.json new file mode 100644 index 000000000000..5ccda40f56fc --- /dev/null +++ b/core/lib/dal/.sqlx/query-6874b501c82e6062ab22622095070d67840b2484ea3a03ac49eb3d50ea153163.json @@ -0,0 +1,124 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n miniblocks.number,\n COALESCE(\n miniblocks.l1_batch_number,\n (\n SELECT\n (MAX(number) + 1)\n FROM\n l1_batches\n )\n ) AS \"l1_batch_number!\",\n miniblocks.timestamp,\n miniblocks.l1_tx_count,\n miniblocks.l2_tx_count,\n miniblocks.hash AS \"root_hash?\",\n commit_tx.tx_hash AS \"commit_tx_hash?\",\n commit_tx.confirmed_at AS \"committed_at?\",\n prove_tx.tx_hash AS \"prove_tx_hash?\",\n prove_tx.confirmed_at AS \"proven_at?\",\n execute_tx.tx_hash AS \"execute_tx_hash?\",\n execute_tx.confirmed_at AS \"executed_at?\",\n miniblocks.l1_gas_price,\n miniblocks.l2_fair_gas_price,\n miniblocks.bootloader_code_hash,\n miniblocks.default_aa_code_hash,\n miniblocks.protocol_version,\n miniblocks.fee_account_address\n FROM\n miniblocks\n LEFT JOIN l1_batches ON miniblocks.l1_batch_number = l1_batches.number\n LEFT JOIN eth_txs_history AS commit_tx ON (\n l1_batches.eth_commit_tx_id = commit_tx.eth_tx_id\n AND commit_tx.confirmed_at IS NOT NULL\n )\n LEFT JOIN eth_txs_history AS prove_tx ON (\n l1_batches.eth_prove_tx_id = prove_tx.eth_tx_id\n AND prove_tx.confirmed_at IS NOT NULL\n )\n LEFT JOIN eth_txs_history AS execute_tx ON (\n l1_batches.eth_execute_tx_id = execute_tx.eth_tx_id\n AND execute_tx.confirmed_at IS NOT NULL\n )\n WHERE\n miniblocks.number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "number", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "l1_batch_number!", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "timestamp", + "type_info": "Int8" + }, + { + "ordinal": 3, + "name": "l1_tx_count", + "type_info": "Int4" + }, + { + "ordinal": 4, + "name": "l2_tx_count", + "type_info": "Int4" + }, + { + "ordinal": 5, + "name": "root_hash?", + "type_info": "Bytea" + }, + { + "ordinal": 6, + "name": "commit_tx_hash?", + "type_info": "Text" + }, + { + "ordinal": 7, + "name": "committed_at?", + "type_info": "Timestamp" + }, + { + "ordinal": 8, + "name": "prove_tx_hash?", + "type_info": "Text" + }, + { + "ordinal": 9, + "name": "proven_at?", + "type_info": "Timestamp" + }, + { + "ordinal": 10, + "name": "execute_tx_hash?", + "type_info": "Text" + }, + { + "ordinal": 11, + "name": "executed_at?", + "type_info": "Timestamp" + }, + { + "ordinal": 12, + "name": "l1_gas_price", + "type_info": "Int8" + }, + { + "ordinal": 13, + "name": "l2_fair_gas_price", + "type_info": "Int8" + }, + { + "ordinal": 14, + "name": "bootloader_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 15, + "name": "default_aa_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 16, + "name": "protocol_version", + "type_info": "Int4" + }, + { + "ordinal": 17, + "name": "fee_account_address", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + null, + false, + false, + false, + false, + false, + true, + false, + true, + false, + true, + false, + false, + true, + true, + true, + false + ] + }, + "hash": "6874b501c82e6062ab22622095070d67840b2484ea3a03ac49eb3d50ea153163" +} diff --git a/core/lib/dal/.sqlx/query-68c891ee9d71cffe709731f2804b734d5d255e36e48668b3bfc25a0f86ea52e7.json b/core/lib/dal/.sqlx/query-68c891ee9d71cffe709731f2804b734d5d255e36e48668b3bfc25a0f86ea52e7.json new file mode 100644 index 000000000000..1d5336030a44 --- /dev/null +++ b/core/lib/dal/.sqlx/query-68c891ee9d71cffe709731f2804b734d5d255e36e48668b3bfc25a0f86ea52e7.json @@ -0,0 +1,40 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO\n transactions (\n hash,\n is_priority,\n initiator_address,\n nonce,\n signature,\n gas_limit,\n max_fee_per_gas,\n max_priority_fee_per_gas,\n gas_per_pubdata_limit,\n input,\n data,\n tx_format,\n contract_address,\n value,\n paymaster,\n paymaster_input,\n execution_info,\n received_at,\n created_at,\n updated_at\n )\n VALUES\n (\n $1,\n FALSE,\n $2,\n $3,\n $4,\n $5,\n $6,\n $7,\n $8,\n $9,\n $10,\n $11,\n $12,\n $13,\n $14,\n $15,\n JSONB_BUILD_OBJECT('gas_used', $16::BIGINT, 'storage_writes', $17::INT, 'contracts_used', $18::INT),\n $19,\n NOW(),\n NOW()\n )\n ON CONFLICT (initiator_address, nonce) DO\n UPDATE\n SET\n hash = $1,\n signature = $4,\n gas_limit = $5,\n max_fee_per_gas = $6,\n max_priority_fee_per_gas = $7,\n gas_per_pubdata_limit = $8,\n input = $9,\n data = $10,\n tx_format = $11,\n contract_address = $12,\n value = $13,\n paymaster = $14,\n paymaster_input = $15,\n execution_info = JSONB_BUILD_OBJECT('gas_used', $16::BIGINT, 'storage_writes', $17::INT, 'contracts_used', $18::INT),\n in_mempool = FALSE,\n received_at = $19,\n created_at = NOW(),\n updated_at = NOW(),\n error = NULL\n WHERE\n transactions.is_priority = FALSE\n AND transactions.miniblock_number IS NULL\n RETURNING\n (\n SELECT\n hash\n FROM\n transactions\n WHERE\n transactions.initiator_address = $2\n AND transactions.nonce = $3\n ) IS NOT NULL AS \"is_replaced!\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "is_replaced!", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Bytea", + "Bytea", + "Int8", + "Bytea", + "Numeric", + "Numeric", + "Numeric", + "Numeric", + "Bytea", + "Jsonb", + "Int4", + "Bytea", + "Numeric", + "Bytea", + "Bytea", + "Int8", + "Int4", + "Int4", + "Timestamp" + ] + }, + "nullable": [ + null + ] + }, + "hash": "68c891ee9d71cffe709731f2804b734d5d255e36e48668b3bfc25a0f86ea52e7" +} diff --git a/core/lib/dal/.sqlx/query-6b327df84d2b3b31d02db35fd5d91a8d67abcdb743a619ed0d1b9c16206a3c20.json b/core/lib/dal/.sqlx/query-6b327df84d2b3b31d02db35fd5d91a8d67abcdb743a619ed0d1b9c16206a3c20.json new file mode 100644 index 000000000000..d00622a1f5fa --- /dev/null +++ b/core/lib/dal/.sqlx/query-6b327df84d2b3b31d02db35fd5d91a8d67abcdb743a619ed0d1b9c16206a3c20.json @@ -0,0 +1,12 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM eth_txs\n WHERE\n id >= (\n SELECT\n MIN(id)\n FROM\n eth_txs\n WHERE\n has_failed = TRUE\n )\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [] + }, + "nullable": [] + }, + "hash": "6b327df84d2b3b31d02db35fd5d91a8d67abcdb743a619ed0d1b9c16206a3c20" +} diff --git a/core/lib/dal/.sqlx/query-6bd3094be764e6378fe52b5bb533260b49ce42daaf9dbe8075daf0a8e0ad9914.json b/core/lib/dal/.sqlx/query-6bd3094be764e6378fe52b5bb533260b49ce42daaf9dbe8075daf0a8e0ad9914.json new file mode 100644 index 000000000000..c90296e322ca --- /dev/null +++ b/core/lib/dal/.sqlx/query-6bd3094be764e6378fe52b5bb533260b49ce42daaf9dbe8075daf0a8e0ad9914.json @@ -0,0 +1,12 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM basic_witness_input_producer_jobs\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [] + }, + "nullable": [] + }, + "hash": "6bd3094be764e6378fe52b5bb533260b49ce42daaf9dbe8075daf0a8e0ad9914" +} diff --git a/core/lib/dal/.sqlx/query-6c0d03b1fbe6f47546bc34c6b2eab01cb2c55bf86d2c8c99abb1b7ca21cf75c0.json b/core/lib/dal/.sqlx/query-6c0d03b1fbe6f47546bc34c6b2eab01cb2c55bf86d2c8c99abb1b7ca21cf75c0.json new file mode 100644 index 000000000000..0ad799dd49d8 --- /dev/null +++ b/core/lib/dal/.sqlx/query-6c0d03b1fbe6f47546bc34c6b2eab01cb2c55bf86d2c8c99abb1b7ca21cf75c0.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE miniblocks\n SET\n protocol_version = $1\n WHERE\n l1_batch_number IS NULL\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [] + }, + "hash": "6c0d03b1fbe6f47546bc34c6b2eab01cb2c55bf86d2c8c99abb1b7ca21cf75c0" +} diff --git a/core/lib/dal/.sqlx/query-6c46fb3d51aeb069c09ff0cae3ea82f1af696fcc8f7484eaf255d5311589ee39.json b/core/lib/dal/.sqlx/query-6c46fb3d51aeb069c09ff0cae3ea82f1af696fcc8f7484eaf255d5311589ee39.json new file mode 100644 index 000000000000..35e1168dc8fe --- /dev/null +++ b/core/lib/dal/.sqlx/query-6c46fb3d51aeb069c09ff0cae3ea82f1af696fcc8f7484eaf255d5311589ee39.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE tokens\n SET\n well_known = TRUE,\n updated_at = NOW()\n WHERE\n l1_address = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Bytea" + ] + }, + "nullable": [] + }, + "hash": "6c46fb3d51aeb069c09ff0cae3ea82f1af696fcc8f7484eaf255d5311589ee39" +} diff --git a/core/lib/dal/.sqlx/query-6d08cadce92f03b0596e068884854a701146f4b2dc92361f42598a5f9a72c36b.json b/core/lib/dal/.sqlx/query-6d08cadce92f03b0596e068884854a701146f4b2dc92361f42598a5f9a72c36b.json new file mode 100644 index 000000000000..0e3846acc8bc --- /dev/null +++ b/core/lib/dal/.sqlx/query-6d08cadce92f03b0596e068884854a701146f4b2dc92361f42598a5f9a72c36b.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n value\n FROM\n storage_logs\n WHERE\n storage_logs.hashed_key = $1\n AND storage_logs.miniblock_number <= $2\n ORDER BY\n storage_logs.miniblock_number DESC,\n storage_logs.operation_number DESC\n LIMIT\n 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "value", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Bytea", + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "6d08cadce92f03b0596e068884854a701146f4b2dc92361f42598a5f9a72c36b" +} diff --git a/core/lib/dal/.sqlx/query-6ed5cc84e8097c4febf6c935193f45ef713ef7f9909ce26653faceddb549a383.json b/core/lib/dal/.sqlx/query-6ed5cc84e8097c4febf6c935193f45ef713ef7f9909ce26653faceddb549a383.json new file mode 100644 index 000000000000..9d3050eaa838 --- /dev/null +++ b/core/lib/dal/.sqlx/query-6ed5cc84e8097c4febf6c935193f45ef713ef7f9909ce26653faceddb549a383.json @@ -0,0 +1,106 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n number,\n l1_tx_count,\n l2_tx_count,\n timestamp,\n l2_to_l1_logs,\n l2_to_l1_messages,\n bloom,\n priority_ops_onchain_data,\n used_contract_hashes,\n bootloader_code_hash,\n default_aa_code_hash,\n protocol_version,\n compressed_state_diffs,\n system_logs,\n pubdata_input\n FROM\n l1_batches\n WHERE\n number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "number", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "l1_tx_count", + "type_info": "Int4" + }, + { + "ordinal": 2, + "name": "l2_tx_count", + "type_info": "Int4" + }, + { + "ordinal": 3, + "name": "timestamp", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "l2_to_l1_logs", + "type_info": "ByteaArray" + }, + { + "ordinal": 5, + "name": "l2_to_l1_messages", + "type_info": "ByteaArray" + }, + { + "ordinal": 6, + "name": "bloom", + "type_info": "Bytea" + }, + { + "ordinal": 7, + "name": "priority_ops_onchain_data", + "type_info": "ByteaArray" + }, + { + "ordinal": 8, + "name": "used_contract_hashes", + "type_info": "Jsonb" + }, + { + "ordinal": 9, + "name": "bootloader_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 10, + "name": "default_aa_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 11, + "name": "protocol_version", + "type_info": "Int4" + }, + { + "ordinal": 12, + "name": "compressed_state_diffs", + "type_info": "Bytea" + }, + { + "ordinal": 13, + "name": "system_logs", + "type_info": "ByteaArray" + }, + { + "ordinal": 14, + "name": "pubdata_input", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + true, + true, + true, + false, + true + ] + }, + "hash": "6ed5cc84e8097c4febf6c935193f45ef713ef7f9909ce26653faceddb549a383" +} diff --git a/core/lib/dal/.sqlx/query-6f42658c16f19bc0da2e4a99b23eb12db58d0f15680b1467df0c13d49079d130.json b/core/lib/dal/.sqlx/query-6f42658c16f19bc0da2e4a99b23eb12db58d0f15680b1467df0c13d49079d130.json new file mode 100644 index 000000000000..f28927bb9575 --- /dev/null +++ b/core/lib/dal/.sqlx/query-6f42658c16f19bc0da2e4a99b23eb12db58d0f15680b1467df0c13d49079d130.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n TRUE\n FROM\n transactions\n WHERE\n hash = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "bool", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [ + "Bytea" + ] + }, + "nullable": [ + null + ] + }, + "hash": "6f42658c16f19bc0da2e4a99b23eb12db58d0f15680b1467df0c13d49079d130" +} diff --git a/core/lib/dal/.sqlx/query-708b2b3e40887e6d8d2d7aa20448a58479487686d774e6b2b1391347bdafe06d.json b/core/lib/dal/.sqlx/query-708b2b3e40887e6d8d2d7aa20448a58479487686d774e6b2b1391347bdafe06d.json new file mode 100644 index 000000000000..a63bd3ebeeb9 --- /dev/null +++ b/core/lib/dal/.sqlx/query-708b2b3e40887e6d8d2d7aa20448a58479487686d774e6b2b1391347bdafe06d.json @@ -0,0 +1,29 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n number,\n hash\n FROM\n miniblocks\n WHERE\n number >= $1\n ORDER BY\n number ASC\n LIMIT\n $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "number", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "hash", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int8" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "708b2b3e40887e6d8d2d7aa20448a58479487686d774e6b2b1391347bdafe06d" +} diff --git a/core/lib/dal/.sqlx/query-72a4f50355324cce85ebaef9fa32826095e9290f0c1157094bd0c44e06012e42.json b/core/lib/dal/.sqlx/query-72a4f50355324cce85ebaef9fa32826095e9290f0c1157094bd0c44e06012e42.json new file mode 100644 index 000000000000..707b7ce9e75c --- /dev/null +++ b/core/lib/dal/.sqlx/query-72a4f50355324cce85ebaef9fa32826095e9290f0c1157094bd0c44e06012e42.json @@ -0,0 +1,232 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n *\n FROM\n transactions\n WHERE\n hash = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "hash", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "is_priority", + "type_info": "Bool" + }, + { + "ordinal": 2, + "name": "full_fee", + "type_info": "Numeric" + }, + { + "ordinal": 3, + "name": "layer_2_tip_fee", + "type_info": "Numeric" + }, + { + "ordinal": 4, + "name": "initiator_address", + "type_info": "Bytea" + }, + { + "ordinal": 5, + "name": "nonce", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "signature", + "type_info": "Bytea" + }, + { + "ordinal": 7, + "name": "input", + "type_info": "Bytea" + }, + { + "ordinal": 8, + "name": "data", + "type_info": "Jsonb" + }, + { + "ordinal": 9, + "name": "received_at", + "type_info": "Timestamp" + }, + { + "ordinal": 10, + "name": "priority_op_id", + "type_info": "Int8" + }, + { + "ordinal": 11, + "name": "l1_batch_number", + "type_info": "Int8" + }, + { + "ordinal": 12, + "name": "index_in_block", + "type_info": "Int4" + }, + { + "ordinal": 13, + "name": "error", + "type_info": "Varchar" + }, + { + "ordinal": 14, + "name": "gas_limit", + "type_info": "Numeric" + }, + { + "ordinal": 15, + "name": "gas_per_storage_limit", + "type_info": "Numeric" + }, + { + "ordinal": 16, + "name": "gas_per_pubdata_limit", + "type_info": "Numeric" + }, + { + "ordinal": 17, + "name": "tx_format", + "type_info": "Int4" + }, + { + "ordinal": 18, + "name": "created_at", + "type_info": "Timestamp" + }, + { + "ordinal": 19, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 20, + "name": "execution_info", + "type_info": "Jsonb" + }, + { + "ordinal": 21, + "name": "contract_address", + "type_info": "Bytea" + }, + { + "ordinal": 22, + "name": "in_mempool", + "type_info": "Bool" + }, + { + "ordinal": 23, + "name": "l1_block_number", + "type_info": "Int4" + }, + { + "ordinal": 24, + "name": "value", + "type_info": "Numeric" + }, + { + "ordinal": 25, + "name": "paymaster", + "type_info": "Bytea" + }, + { + "ordinal": 26, + "name": "paymaster_input", + "type_info": "Bytea" + }, + { + "ordinal": 27, + "name": "max_fee_per_gas", + "type_info": "Numeric" + }, + { + "ordinal": 28, + "name": "max_priority_fee_per_gas", + "type_info": "Numeric" + }, + { + "ordinal": 29, + "name": "effective_gas_price", + "type_info": "Numeric" + }, + { + "ordinal": 30, + "name": "miniblock_number", + "type_info": "Int8" + }, + { + "ordinal": 31, + "name": "l1_batch_tx_index", + "type_info": "Int4" + }, + { + "ordinal": 32, + "name": "refunded_gas", + "type_info": "Int8" + }, + { + "ordinal": 33, + "name": "l1_tx_mint", + "type_info": "Numeric" + }, + { + "ordinal": 34, + "name": "l1_tx_refund_recipient", + "type_info": "Bytea" + }, + { + "ordinal": 35, + "name": "upgrade_id", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Bytea" + ] + }, + "nullable": [ + false, + false, + true, + true, + false, + true, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + false, + false, + true, + false, + true, + false, + false, + false, + true, + true, + true, + true, + true, + false, + true, + true, + true + ] + }, + "hash": "72a4f50355324cce85ebaef9fa32826095e9290f0c1157094bd0c44e06012e42" +} diff --git a/core/lib/dal/.sqlx/query-72ff9df79e78129cb96d14ece0198129b44534062f524823666ed432d2fcd345.json b/core/lib/dal/.sqlx/query-72ff9df79e78129cb96d14ece0198129b44534062f524823666ed432d2fcd345.json new file mode 100644 index 000000000000..75f288ee14f6 --- /dev/null +++ b/core/lib/dal/.sqlx/query-72ff9df79e78129cb96d14ece0198129b44534062f524823666ed432d2fcd345.json @@ -0,0 +1,12 @@ +{ + "db_name": "PostgreSQL", + "query": "\n VACUUM storage_logs\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [] + }, + "nullable": [] + }, + "hash": "72ff9df79e78129cb96d14ece0198129b44534062f524823666ed432d2fcd345" +} diff --git a/core/lib/dal/.sqlx/query-73c4bf1e35d49faaab9f7828e80f396f9d193615d70184d4327378a7fc8a5665.json b/core/lib/dal/.sqlx/query-73c4bf1e35d49faaab9f7828e80f396f9d193615d70184d4327378a7fc8a5665.json new file mode 100644 index 000000000000..aa38e1c40357 --- /dev/null +++ b/core/lib/dal/.sqlx/query-73c4bf1e35d49faaab9f7828e80f396f9d193615d70184d4327378a7fc8a5665.json @@ -0,0 +1,30 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE basic_witness_input_producer_jobs\n SET\n status = $1,\n updated_at = NOW(),\n time_taken = $3,\n input_blob_url = $4\n WHERE\n l1_batch_number = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + { + "Custom": { + "name": "basic_witness_input_producer_job_status", + "kind": { + "Enum": [ + "Queued", + "ManuallySkipped", + "InProgress", + "Successful", + "Failed" + ] + } + } + }, + "Int8", + "Time", + "Text" + ] + }, + "nullable": [] + }, + "hash": "73c4bf1e35d49faaab9f7828e80f396f9d193615d70184d4327378a7fc8a5665" +} diff --git a/core/lib/dal/.sqlx/query-7560ba61643a8ec8eeefbe6034226313c255ce356a9a4e25c098484d3129c914.json b/core/lib/dal/.sqlx/query-7560ba61643a8ec8eeefbe6034226313c255ce356a9a4e25c098484d3129c914.json new file mode 100644 index 000000000000..9ff3ab86250d --- /dev/null +++ b/core/lib/dal/.sqlx/query-7560ba61643a8ec8eeefbe6034226313c255ce356a9a4e25c098484d3129c914.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM eth_txs_history\n WHERE\n id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [] + }, + "hash": "7560ba61643a8ec8eeefbe6034226313c255ce356a9a4e25c098484d3129c914" +} diff --git a/core/lib/dal/.sqlx/query-759b80414b5bcbfe03a0e1e15b37f92c4cfad9313b1461e12242d9becb59e0b0.json b/core/lib/dal/.sqlx/query-759b80414b5bcbfe03a0e1e15b37f92c4cfad9313b1461e12242d9becb59e0b0.json new file mode 100644 index 000000000000..d488293cf81f --- /dev/null +++ b/core/lib/dal/.sqlx/query-759b80414b5bcbfe03a0e1e15b37f92c4cfad9313b1461e12242d9becb59e0b0.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n MAX(operation_number) AS \"max?\"\n FROM\n storage_logs\n WHERE\n miniblock_number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "max?", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + null + ] + }, + "hash": "759b80414b5bcbfe03a0e1e15b37f92c4cfad9313b1461e12242d9becb59e0b0" +} diff --git a/core/lib/dal/.sqlx/query-75fa24c29dc312cbfa89bf1f4a04a42b4ead6964edd17bfcacb4a828492bba60.json b/core/lib/dal/.sqlx/query-75fa24c29dc312cbfa89bf1f4a04a42b4ead6964edd17bfcacb4a828492bba60.json new file mode 100644 index 000000000000..ff743f1028c2 --- /dev/null +++ b/core/lib/dal/.sqlx/query-75fa24c29dc312cbfa89bf1f4a04a42b4ead6964edd17bfcacb4a828492bba60.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n state AS \"state!\"\n FROM\n consensus_replica_state\n WHERE\n fake_key\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "state!", + "type_info": "Jsonb" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false + ] + }, + "hash": "75fa24c29dc312cbfa89bf1f4a04a42b4ead6964edd17bfcacb4a828492bba60" +} diff --git a/core/lib/dal/.sqlx/query-76cb9ad97b70d584b19af194576dcf2324f380932698386aa8f9751b1fa24a7b.json b/core/lib/dal/.sqlx/query-76cb9ad97b70d584b19af194576dcf2324f380932698386aa8f9751b1fa24a7b.json new file mode 100644 index 000000000000..e5b4f3476c9f --- /dev/null +++ b/core/lib/dal/.sqlx/query-76cb9ad97b70d584b19af194576dcf2324f380932698386aa8f9751b1fa24a7b.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO\n call_traces (tx_hash, call_trace)\n SELECT\n u.tx_hash,\n u.call_trace\n FROM\n UNNEST($1::bytea[], $2::bytea[]) AS u (tx_hash, call_trace)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "ByteaArray", + "ByteaArray" + ] + }, + "nullable": [] + }, + "hash": "76cb9ad97b70d584b19af194576dcf2324f380932698386aa8f9751b1fa24a7b" +} diff --git a/core/lib/dal/.sqlx/query-77a43830ca31eac85a3c03d87696bf94a013e49bf50ce23f4de4968781df0796.json b/core/lib/dal/.sqlx/query-77a43830ca31eac85a3c03d87696bf94a013e49bf50ce23f4de4968781df0796.json new file mode 100644 index 000000000000..acff9eeebeeb --- /dev/null +++ b/core/lib/dal/.sqlx/query-77a43830ca31eac85a3c03d87696bf94a013e49bf50ce23f4de4968781df0796.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE l1_batches\n SET\n hash = $1\n WHERE\n number = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Bytea", + "Int8" + ] + }, + "nullable": [] + }, + "hash": "77a43830ca31eac85a3c03d87696bf94a013e49bf50ce23f4de4968781df0796" +} diff --git a/core/lib/dal/.sqlx/query-7b908340613dadbbef46e2160d2d7d59a34f97285e855d5bd67f28f6f4ff1d4e.json b/core/lib/dal/.sqlx/query-7b908340613dadbbef46e2160d2d7d59a34f97285e855d5bd67f28f6f4ff1d4e.json new file mode 100644 index 000000000000..9616aee17559 --- /dev/null +++ b/core/lib/dal/.sqlx/query-7b908340613dadbbef46e2160d2d7d59a34f97285e855d5bd67f28f6f4ff1d4e.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE l1_batches\n SET\n hash = $1,\n merkle_root_hash = $1,\n rollup_last_leaf_index = $2,\n updated_at = NOW()\n WHERE\n number = $3\n AND hash IS NULL\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Bytea", + "Int8", + "Int8" + ] + }, + "nullable": [] + }, + "hash": "7b908340613dadbbef46e2160d2d7d59a34f97285e855d5bd67f28f6f4ff1d4e" +} diff --git a/core/lib/dal/.sqlx/query-7fccc28bd829bce334f37197ee6b139e943f3ad2a41387b610606a42b7f03283.json b/core/lib/dal/.sqlx/query-7fccc28bd829bce334f37197ee6b139e943f3ad2a41387b610606a42b7f03283.json new file mode 100644 index 000000000000..76a34db9699f --- /dev/null +++ b/core/lib/dal/.sqlx/query-7fccc28bd829bce334f37197ee6b139e943f3ad2a41387b610606a42b7f03283.json @@ -0,0 +1,29 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO\n transactions (\n hash,\n is_priority,\n initiator_address,\n gas_limit,\n max_fee_per_gas,\n gas_per_pubdata_limit,\n data,\n upgrade_id,\n contract_address,\n l1_block_number,\n value,\n paymaster,\n paymaster_input,\n tx_format,\n l1_tx_mint,\n l1_tx_refund_recipient,\n received_at,\n created_at,\n updated_at\n )\n VALUES\n (\n $1,\n TRUE,\n $2,\n $3,\n $4,\n $5,\n $6,\n $7,\n $8,\n $9,\n $10,\n $11,\n $12,\n $13,\n $14,\n $15,\n $16,\n NOW(),\n NOW()\n )\n ON CONFLICT (hash) DO NOTHING\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Bytea", + "Bytea", + "Numeric", + "Numeric", + "Numeric", + "Jsonb", + "Int4", + "Bytea", + "Int4", + "Numeric", + "Bytea", + "Bytea", + "Int4", + "Numeric", + "Bytea", + "Timestamp" + ] + }, + "nullable": [] + }, + "hash": "7fccc28bd829bce334f37197ee6b139e943f3ad2a41387b610606a42b7f03283" +} diff --git a/core/lib/dal/.sqlx/query-81869cb392e9fcbb71ceaa857af77b39429d56072f63b3530c576fb31d7a56f9.json b/core/lib/dal/.sqlx/query-81869cb392e9fcbb71ceaa857af77b39429d56072f63b3530c576fb31d7a56f9.json new file mode 100644 index 000000000000..b8d80a904e48 --- /dev/null +++ b/core/lib/dal/.sqlx/query-81869cb392e9fcbb71ceaa857af77b39429d56072f63b3530c576fb31d7a56f9.json @@ -0,0 +1,18 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO\n storage (hashed_key, address, key, value, tx_hash, created_at, updated_at)\n SELECT\n u.hashed_key,\n u.address,\n u.key,\n u.value,\n u.tx_hash,\n NOW(),\n NOW()\n FROM\n UNNEST($1::bytea[], $2::bytea[], $3::bytea[], $4::bytea[], $5::bytea[]) AS u (hashed_key, address, key, value, tx_hash)\n ON CONFLICT (hashed_key) DO\n UPDATE\n SET\n tx_hash = excluded.tx_hash,\n value = excluded.value,\n updated_at = NOW()\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "ByteaArray", + "ByteaArray", + "ByteaArray", + "ByteaArray", + "ByteaArray" + ] + }, + "nullable": [] + }, + "hash": "81869cb392e9fcbb71ceaa857af77b39429d56072f63b3530c576fb31d7a56f9" +} diff --git a/core/lib/dal/.sqlx/query-8255d112d3929fd8355ba2ac9bc87f1fb2f138d9a2231477fcaae148c50dbb8a.json b/core/lib/dal/.sqlx/query-8255d112d3929fd8355ba2ac9bc87f1fb2f138d9a2231477fcaae148c50dbb8a.json deleted file mode 100644 index 34f17446dfd3..000000000000 --- a/core/lib/dal/.sqlx/query-8255d112d3929fd8355ba2ac9bc87f1fb2f138d9a2231477fcaae148c50dbb8a.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT number AS number, false AS \"confirmed!\" FROM l1_batches INNER JOIN eth_txs_history ON l1_batches.eth_prove_tx_id = eth_txs_history.eth_tx_id ORDER BY number DESC LIMIT 1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "number", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "confirmed!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [] - }, - "nullable": [ - false, - null - ] - }, - "hash": "8255d112d3929fd8355ba2ac9bc87f1fb2f138d9a2231477fcaae148c50dbb8a" -} diff --git a/core/lib/dal/.sqlx/query-82ed556807bcd7dd5872c220b3399f9b8679d770b3d1ca755c42ee264342da03.json b/core/lib/dal/.sqlx/query-82ed556807bcd7dd5872c220b3399f9b8679d770b3d1ca755c42ee264342da03.json new file mode 100644 index 000000000000..3c475186a390 --- /dev/null +++ b/core/lib/dal/.sqlx/query-82ed556807bcd7dd5872c220b3399f9b8679d770b3d1ca755c42ee264342da03.json @@ -0,0 +1,25 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n value\n FROM\n events\n WHERE\n miniblock_number BETWEEN $1 AND $2\n AND address = $3\n AND topic1 = $4\n ORDER BY\n miniblock_number,\n event_index_in_block\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "value", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int8", + "Bytea", + "Bytea" + ] + }, + "nullable": [ + false + ] + }, + "hash": "82ed556807bcd7dd5872c220b3399f9b8679d770b3d1ca755c42ee264342da03" +} diff --git a/core/lib/dal/.sqlx/query-83a931ceddf34e1c760649d613f534014b9ab9ca7725e14fb17aa050d9f35eb8.json b/core/lib/dal/.sqlx/query-83a931ceddf34e1c760649d613f534014b9ab9ca7725e14fb17aa050d9f35eb8.json new file mode 100644 index 000000000000..8d9458dce0a4 --- /dev/null +++ b/core/lib/dal/.sqlx/query-83a931ceddf34e1c760649d613f534014b9ab9ca7725e14fb17aa050d9f35eb8.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n base_fee_per_gas\n FROM\n miniblocks\n WHERE\n number <= $1\n ORDER BY\n number DESC\n LIMIT\n $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "base_fee_per_gas", + "type_info": "Numeric" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "83a931ceddf34e1c760649d613f534014b9ab9ca7725e14fb17aa050d9f35eb8" +} diff --git a/core/lib/dal/.sqlx/query-8625ca45ce76b8c8633d390e35e0c5f885240d99ea69140a4636b00469d08497.json b/core/lib/dal/.sqlx/query-8625ca45ce76b8c8633d390e35e0c5f885240d99ea69140a4636b00469d08497.json new file mode 100644 index 000000000000..f7906122f109 --- /dev/null +++ b/core/lib/dal/.sqlx/query-8625ca45ce76b8c8633d390e35e0c5f885240d99ea69140a4636b00469d08497.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n tx_hash\n FROM\n eth_txs_history\n WHERE\n eth_tx_id = $1\n AND confirmed_at IS NOT NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "tx_hash", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + false + ] + }, + "hash": "8625ca45ce76b8c8633d390e35e0c5f885240d99ea69140a4636b00469d08497" +} diff --git a/core/lib/dal/.sqlx/query-877d20634068170326ab5801b69c70aff49e60b7def3d93b9206e650c259168b.json b/core/lib/dal/.sqlx/query-877d20634068170326ab5801b69c70aff49e60b7def3d93b9206e650c259168b.json new file mode 100644 index 000000000000..3052b3a04d1a --- /dev/null +++ b/core/lib/dal/.sqlx/query-877d20634068170326ab5801b69c70aff49e60b7def3d93b9206e650c259168b.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n timestamp\n FROM\n l1_batches\n WHERE\n eth_execute_tx_id IS NULL\n AND number > 0\n ORDER BY\n number\n LIMIT\n 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "timestamp", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false + ] + }, + "hash": "877d20634068170326ab5801b69c70aff49e60b7def3d93b9206e650c259168b" +} diff --git a/core/lib/dal/.sqlx/query-87b3c0cb253a19ba181406bab5f30198c2651022c65eb9e04125356fcf52ddfc.json b/core/lib/dal/.sqlx/query-87b3c0cb253a19ba181406bab5f30198c2651022c65eb9e04125356fcf52ddfc.json new file mode 100644 index 000000000000..669beb8aa25f --- /dev/null +++ b/core/lib/dal/.sqlx/query-87b3c0cb253a19ba181406bab5f30198c2651022c65eb9e04125356fcf52ddfc.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n number\n FROM\n l1_batches\n WHERE\n hash IS NOT NULL\n AND commitment IS NULL\n ORDER BY\n number\n LIMIT\n 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "number", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false + ] + }, + "hash": "87b3c0cb253a19ba181406bab5f30198c2651022c65eb9e04125356fcf52ddfc" +} diff --git a/core/lib/dal/.sqlx/query-87f27295de500591f01ed76731df2aed7049c3f44a6d25556967ea867e0caf25.json b/core/lib/dal/.sqlx/query-87f27295de500591f01ed76731df2aed7049c3f44a6d25556967ea867e0caf25.json new file mode 100644 index 000000000000..dbeaede9ecd2 --- /dev/null +++ b/core/lib/dal/.sqlx/query-87f27295de500591f01ed76731df2aed7049c3f44a6d25556967ea867e0caf25.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n call_trace\n FROM\n call_traces\n WHERE\n tx_hash = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "call_trace", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Bytea" + ] + }, + "nullable": [ + false + ] + }, + "hash": "87f27295de500591f01ed76731df2aed7049c3f44a6d25556967ea867e0caf25" +} diff --git a/core/lib/dal/.sqlx/query-88c629334e30bb9f5c81c858aa51af63b86e8da6d908d48998012231e1d66a60.json b/core/lib/dal/.sqlx/query-88c629334e30bb9f5c81c858aa51af63b86e8da6d908d48998012231e1d66a60.json new file mode 100644 index 000000000000..16fbffd5b667 --- /dev/null +++ b/core/lib/dal/.sqlx/query-88c629334e30bb9f5c81c858aa51af63b86e8da6d908d48998012231e1d66a60.json @@ -0,0 +1,29 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n timestamp,\n virtual_blocks\n FROM\n miniblocks\n WHERE\n number BETWEEN $1 AND $2\n ORDER BY\n number\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "timestamp", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "virtual_blocks", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int8" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "88c629334e30bb9f5c81c858aa51af63b86e8da6d908d48998012231e1d66a60" +} diff --git a/core/lib/dal/.sqlx/query-8903ba5db3f87851c12da133573b4207b69cc48b4ba648e797211631be612b69.json b/core/lib/dal/.sqlx/query-8903ba5db3f87851c12da133573b4207b69cc48b4ba648e797211631be612b69.json new file mode 100644 index 000000000000..3d47a756f3e6 --- /dev/null +++ b/core/lib/dal/.sqlx/query-8903ba5db3f87851c12da133573b4207b69cc48b4ba648e797211631be612b69.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n bytecode_hash,\n bytecode\n FROM\n factory_deps\n INNER JOIN miniblocks ON miniblocks.number = factory_deps.miniblock_number\n WHERE\n miniblocks.l1_batch_number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "bytecode_hash", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "bytecode", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "8903ba5db3f87851c12da133573b4207b69cc48b4ba648e797211631be612b69" +} diff --git a/core/lib/dal/.sqlx/query-894665c2c467bd1aaeb331b112c567e2667c63a033baa6b427bd8a0898c08bf2.json b/core/lib/dal/.sqlx/query-894665c2c467bd1aaeb331b112c567e2667c63a033baa6b427bd8a0898c08bf2.json new file mode 100644 index 000000000000..06d3461c3fa3 --- /dev/null +++ b/core/lib/dal/.sqlx/query-894665c2c467bd1aaeb331b112c567e2667c63a033baa6b427bd8a0898c08bf2.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n protocol_version\n FROM\n miniblocks\n WHERE\n number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "protocol_version", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + true + ] + }, + "hash": "894665c2c467bd1aaeb331b112c567e2667c63a033baa6b427bd8a0898c08bf2" +} diff --git a/core/lib/dal/.sqlx/query-8a7a57ca3d4d65da3e0877c003902c690c33686c889d318b1d64bdd7fa6374db.json b/core/lib/dal/.sqlx/query-8a7a57ca3d4d65da3e0877c003902c690c33686c889d318b1d64bdd7fa6374db.json new file mode 100644 index 000000000000..ea6562d1a67f --- /dev/null +++ b/core/lib/dal/.sqlx/query-8a7a57ca3d4d65da3e0877c003902c690c33686c889d318b1d64bdd7fa6374db.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n l1_block_number\n FROM\n transactions\n WHERE\n priority_op_id IS NOT NULL\n ORDER BY\n priority_op_id DESC\n LIMIT\n 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "l1_block_number", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + true + ] + }, + "hash": "8a7a57ca3d4d65da3e0877c003902c690c33686c889d318b1d64bdd7fa6374db" +} diff --git a/core/lib/dal/.sqlx/query-8b9e5d525c026de97c0a732b1adc8dc4bd57e32dfefe1017acba9a15fc14b895.json b/core/lib/dal/.sqlx/query-8b9e5d525c026de97c0a732b1adc8dc4bd57e32dfefe1017acba9a15fc14b895.json new file mode 100644 index 000000000000..de369bccec54 --- /dev/null +++ b/core/lib/dal/.sqlx/query-8b9e5d525c026de97c0a732b1adc8dc4bd57e32dfefe1017acba9a15fc14b895.json @@ -0,0 +1,36 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n storage_logs.hashed_key,\n storage_logs.value,\n initial_writes.index\n FROM\n storage_logs\n INNER JOIN initial_writes ON storage_logs.hashed_key = initial_writes.hashed_key\n WHERE\n storage_logs.miniblock_number = $1\n AND storage_logs.hashed_key >= $2::bytea\n AND storage_logs.hashed_key <= $3::bytea\n ORDER BY\n storage_logs.hashed_key\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "hashed_key", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "value", + "type_info": "Bytea" + }, + { + "ordinal": 2, + "name": "index", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Int8", + "Bytea", + "Bytea" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "8b9e5d525c026de97c0a732b1adc8dc4bd57e32dfefe1017acba9a15fc14b895" +} diff --git a/core/lib/dal/.sqlx/query-95ea0522a3eff6c0d2d0b1c58fd2767e112b95f4d103c27acd6f7ede108bd300.json b/core/lib/dal/.sqlx/query-95ea0522a3eff6c0d2d0b1c58fd2767e112b95f4d103c27acd6f7ede108bd300.json new file mode 100644 index 000000000000..3c822fe50d17 --- /dev/null +++ b/core/lib/dal/.sqlx/query-95ea0522a3eff6c0d2d0b1c58fd2767e112b95f4d103c27acd6f7ede108bd300.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE eth_txs\n SET\n gas_used = $1,\n confirmed_eth_tx_history_id = $2\n WHERE\n id = $3\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8", + "Int4", + "Int4" + ] + }, + "nullable": [] + }, + "hash": "95ea0522a3eff6c0d2d0b1c58fd2767e112b95f4d103c27acd6f7ede108bd300" +} diff --git a/core/lib/dal/.sqlx/query-966dddc881bfe6fd94b56f587424125a2633ddb6abaa129f2b12389140d83c3f.json b/core/lib/dal/.sqlx/query-966dddc881bfe6fd94b56f587424125a2633ddb6abaa129f2b12389140d83c3f.json new file mode 100644 index 000000000000..bf4eb3f9462d --- /dev/null +++ b/core/lib/dal/.sqlx/query-966dddc881bfe6fd94b56f587424125a2633ddb6abaa129f2b12389140d83c3f.json @@ -0,0 +1,40 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n recursion_scheduler_level_vk_hash,\n recursion_node_level_vk_hash,\n recursion_leaf_level_vk_hash,\n recursion_circuits_set_vks_hash\n FROM\n protocol_versions\n WHERE\n id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "recursion_scheduler_level_vk_hash", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "recursion_node_level_vk_hash", + "type_info": "Bytea" + }, + { + "ordinal": 2, + "name": "recursion_leaf_level_vk_hash", + "type_info": "Bytea" + }, + { + "ordinal": 3, + "name": "recursion_circuits_set_vks_hash", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + false, + false, + false, + false + ] + }, + "hash": "966dddc881bfe6fd94b56f587424125a2633ddb6abaa129f2b12389140d83c3f" +} diff --git a/core/lib/dal/.sqlx/query-9955b9215096f781442153518c4f0a9676e26f422506545ccc90b7e8a36c8d47.json b/core/lib/dal/.sqlx/query-9955b9215096f781442153518c4f0a9676e26f422506545ccc90b7e8a36c8d47.json new file mode 100644 index 000000000000..c05539164cee --- /dev/null +++ b/core/lib/dal/.sqlx/query-9955b9215096f781442153518c4f0a9676e26f422506545ccc90b7e8a36c8d47.json @@ -0,0 +1,35 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n factory_deps.bytecode,\n transactions.data AS \"data?\",\n transactions.contract_address AS \"contract_address?\"\n FROM\n (\n SELECT\n *\n FROM\n storage_logs\n WHERE\n storage_logs.hashed_key = $1\n ORDER BY\n miniblock_number DESC,\n operation_number DESC\n LIMIT\n 1\n ) storage_logs\n JOIN factory_deps ON factory_deps.bytecode_hash = storage_logs.value\n LEFT JOIN transactions ON transactions.hash = storage_logs.tx_hash\n WHERE\n storage_logs.value != $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "bytecode", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "data?", + "type_info": "Jsonb" + }, + { + "ordinal": 2, + "name": "contract_address?", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Bytea", + "Bytea" + ] + }, + "nullable": [ + false, + false, + true + ] + }, + "hash": "9955b9215096f781442153518c4f0a9676e26f422506545ccc90b7e8a36c8d47" +} diff --git a/core/lib/dal/.sqlx/query-995cecd37a5235d1acc2e6fc418d9b6a1a6fe629f9a02c8e33330a0efda64068.json b/core/lib/dal/.sqlx/query-995cecd37a5235d1acc2e6fc418d9b6a1a6fe629f9a02c8e33330a0efda64068.json new file mode 100644 index 000000000000..49e0a4a8f07d --- /dev/null +++ b/core/lib/dal/.sqlx/query-995cecd37a5235d1acc2e6fc418d9b6a1a6fe629f9a02c8e33330a0efda64068.json @@ -0,0 +1,32 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n l1_batch_number,\n factory_deps_filepath,\n storage_logs_filepaths\n FROM\n snapshots\n ORDER BY\n l1_batch_number DESC\n LIMIT\n 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "l1_batch_number", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "factory_deps_filepath", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "storage_logs_filepaths", + "type_info": "TextArray" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "995cecd37a5235d1acc2e6fc418d9b6a1a6fe629f9a02c8e33330a0efda64068" +} diff --git a/core/lib/dal/.sqlx/query-99acb091650478fe0feb367b1d64561347b81f8931cc2addefa907c9aa9355e6.json b/core/lib/dal/.sqlx/query-99acb091650478fe0feb367b1d64561347b81f8931cc2addefa907c9aa9355e6.json new file mode 100644 index 000000000000..2aa6a538125b --- /dev/null +++ b/core/lib/dal/.sqlx/query-99acb091650478fe0feb367b1d64561347b81f8931cc2addefa907c9aa9355e6.json @@ -0,0 +1,82 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n *\n FROM\n protocol_versions\n WHERE\n id < $1\n ORDER BY\n id DESC\n LIMIT\n 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "timestamp", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "recursion_scheduler_level_vk_hash", + "type_info": "Bytea" + }, + { + "ordinal": 3, + "name": "recursion_node_level_vk_hash", + "type_info": "Bytea" + }, + { + "ordinal": 4, + "name": "recursion_leaf_level_vk_hash", + "type_info": "Bytea" + }, + { + "ordinal": 5, + "name": "recursion_circuits_set_vks_hash", + "type_info": "Bytea" + }, + { + "ordinal": 6, + "name": "bootloader_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 7, + "name": "default_account_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 8, + "name": "verifier_address", + "type_info": "Bytea" + }, + { + "ordinal": 9, + "name": "upgrade_tx_hash", + "type_info": "Bytea" + }, + { + "ordinal": 10, + "name": "created_at", + "type_info": "Timestamp" + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + false + ] + }, + "hash": "99acb091650478fe0feb367b1d64561347b81f8931cc2addefa907c9aa9355e6" +} diff --git a/core/lib/dal/.sqlx/query-99d9ee2a0d0450acefa0d9b6c031e30606fddf6631c859ab03819ec476bcf005.json b/core/lib/dal/.sqlx/query-99d9ee2a0d0450acefa0d9b6c031e30606fddf6631c859ab03819ec476bcf005.json new file mode 100644 index 000000000000..ab00c7b26ce3 --- /dev/null +++ b/core/lib/dal/.sqlx/query-99d9ee2a0d0450acefa0d9b6c031e30606fddf6631c859ab03819ec476bcf005.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n hashed_key\n FROM\n initial_writes\n WHERE\n hashed_key = ANY ($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "hashed_key", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "ByteaArray" + ] + }, + "nullable": [ + false + ] + }, + "hash": "99d9ee2a0d0450acefa0d9b6c031e30606fddf6631c859ab03819ec476bcf005" +} diff --git a/core/lib/dal/.sqlx/query-99dd6f04e82585d81ac23bc4871578179e6269c6ff36877cedee264067ccdafc.json b/core/lib/dal/.sqlx/query-99dd6f04e82585d81ac23bc4871578179e6269c6ff36877cedee264067ccdafc.json new file mode 100644 index 000000000000..b8c14c534625 --- /dev/null +++ b/core/lib/dal/.sqlx/query-99dd6f04e82585d81ac23bc4871578179e6269c6ff36877cedee264067ccdafc.json @@ -0,0 +1,65 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE basic_witness_input_producer_jobs\n SET\n status = $1,\n attempts = attempts + 1,\n updated_at = NOW(),\n processing_started_at = NOW()\n WHERE\n l1_batch_number = (\n SELECT\n l1_batch_number\n FROM\n basic_witness_input_producer_jobs\n WHERE\n status = $2\n OR (\n status = $1\n AND processing_started_at < NOW() - $4::INTERVAL\n )\n OR (\n status = $3\n AND attempts < $5\n )\n ORDER BY\n l1_batch_number ASC\n LIMIT\n 1\n FOR UPDATE\n SKIP LOCKED\n )\n RETURNING\n basic_witness_input_producer_jobs.l1_batch_number\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "l1_batch_number", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + { + "Custom": { + "name": "basic_witness_input_producer_job_status", + "kind": { + "Enum": [ + "Queued", + "ManuallySkipped", + "InProgress", + "Successful", + "Failed" + ] + } + } + }, + { + "Custom": { + "name": "basic_witness_input_producer_job_status", + "kind": { + "Enum": [ + "Queued", + "ManuallySkipped", + "InProgress", + "Successful", + "Failed" + ] + } + } + }, + { + "Custom": { + "name": "basic_witness_input_producer_job_status", + "kind": { + "Enum": [ + "Queued", + "ManuallySkipped", + "InProgress", + "Successful", + "Failed" + ] + } + } + }, + "Interval", + "Int2" + ] + }, + "nullable": [ + false + ] + }, + "hash": "99dd6f04e82585d81ac23bc4871578179e6269c6ff36877cedee264067ccdafc" +} diff --git a/core/lib/dal/.sqlx/query-9c2a5f32c627d3a5c6f1e87b31ce3b0fd67aa1f5f7ea0de673a2fbe1f742db86.json b/core/lib/dal/.sqlx/query-9c2a5f32c627d3a5c6f1e87b31ce3b0fd67aa1f5f7ea0de673a2fbe1f742db86.json new file mode 100644 index 000000000000..f9a53d707632 --- /dev/null +++ b/core/lib/dal/.sqlx/query-9c2a5f32c627d3a5c6f1e87b31ce3b0fd67aa1f5f7ea0de673a2fbe1f742db86.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n timestamp\n FROM\n miniblocks\n WHERE\n number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "timestamp", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "9c2a5f32c627d3a5c6f1e87b31ce3b0fd67aa1f5f7ea0de673a2fbe1f742db86" +} diff --git a/core/lib/dal/.sqlx/query-9cfcde703a48b110791d2ae1103c9317c01d6e35db3b07d0a31f436e7e3c7c40.json b/core/lib/dal/.sqlx/query-9cfcde703a48b110791d2ae1103c9317c01d6e35db3b07d0a31f436e7e3c7c40.json new file mode 100644 index 000000000000..c4beef961733 --- /dev/null +++ b/core/lib/dal/.sqlx/query-9cfcde703a48b110791d2ae1103c9317c01d6e35db3b07d0a31f436e7e3c7c40.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE contract_verification_requests\n SET\n status = 'successful',\n updated_at = NOW()\n WHERE\n id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [] + }, + "hash": "9cfcde703a48b110791d2ae1103c9317c01d6e35db3b07d0a31f436e7e3c7c40" +} diff --git a/core/lib/dal/.sqlx/query-9de5acb3de1b96ff8eb62a6324e8e221a8ef9014458cc7f1dbc60c056a0768a0.json b/core/lib/dal/.sqlx/query-9de5acb3de1b96ff8eb62a6324e8e221a8ef9014458cc7f1dbc60c056a0768a0.json new file mode 100644 index 000000000000..674377635ced --- /dev/null +++ b/core/lib/dal/.sqlx/query-9de5acb3de1b96ff8eb62a6324e8e221a8ef9014458cc7f1dbc60c056a0768a0.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE snapshots\n SET\n storage_logs_filepaths[$2] = $3,\n updated_at = NOW()\n WHERE\n l1_batch_number = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8", + "Int4", + "Text" + ] + }, + "nullable": [] + }, + "hash": "9de5acb3de1b96ff8eb62a6324e8e221a8ef9014458cc7f1dbc60c056a0768a0" +} diff --git a/core/lib/dal/.sqlx/query-9ee07a22405279e1e44d47ec5226a834aeac9156b974ff225d734683c1905469.json b/core/lib/dal/.sqlx/query-9ee07a22405279e1e44d47ec5226a834aeac9156b974ff225d734683c1905469.json new file mode 100644 index 000000000000..3269ceb7987d --- /dev/null +++ b/core/lib/dal/.sqlx/query-9ee07a22405279e1e44d47ec5226a834aeac9156b974ff225d734683c1905469.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO\n miniblocks (\n number,\n timestamp,\n hash,\n l1_tx_count,\n l2_tx_count,\n fee_account_address,\n base_fee_per_gas,\n l1_gas_price,\n l2_fair_gas_price,\n gas_per_pubdata_limit,\n bootloader_code_hash,\n default_aa_code_hash,\n protocol_version,\n virtual_blocks,\n fair_pubdata_price,\n created_at,\n updated_at\n )\n VALUES\n ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, NOW(), NOW())\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8", + "Int8", + "Bytea", + "Int4", + "Int4", + "Bytea", + "Numeric", + "Int8", + "Int8", + "Int8", + "Bytea", + "Bytea", + "Int4", + "Int8", + "Int8" + ] + }, + "nullable": [] + }, + "hash": "9ee07a22405279e1e44d47ec5226a834aeac9156b974ff225d734683c1905469" +} diff --git a/core/lib/dal/.sqlx/query-9f637f37dc3a29ce7412ab4347071bd180729779a0e98ae7a6bb4386aca99716.json b/core/lib/dal/.sqlx/query-9f637f37dc3a29ce7412ab4347071bd180729779a0e98ae7a6bb4386aca99716.json new file mode 100644 index 000000000000..fc18e9f6cb55 --- /dev/null +++ b/core/lib/dal/.sqlx/query-9f637f37dc3a29ce7412ab4347071bd180729779a0e98ae7a6bb4386aca99716.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n bytecode_hash,\n bytecode\n FROM\n factory_deps\n WHERE\n miniblock_number <= $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "bytecode_hash", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "bytecode", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "9f637f37dc3a29ce7412ab4347071bd180729779a0e98ae7a6bb4386aca99716" +} diff --git a/core/lib/dal/.sqlx/query-a115f795672787fe25bfaa8fd345094de508af93f4085be7cf3b54b1e8ecdadd.json b/core/lib/dal/.sqlx/query-a115f795672787fe25bfaa8fd345094de508af93f4085be7cf3b54b1e8ecdadd.json new file mode 100644 index 000000000000..ebe8ce232cfb --- /dev/null +++ b/core/lib/dal/.sqlx/query-a115f795672787fe25bfaa8fd345094de508af93f4085be7cf3b54b1e8ecdadd.json @@ -0,0 +1,80 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id,\n contract_address,\n source_code,\n contract_name,\n zk_compiler_version,\n compiler_version,\n optimization_used,\n optimizer_mode,\n constructor_arguments,\n is_system,\n force_evmla\n FROM\n contract_verification_requests\n WHERE\n status = 'successful'\n ORDER BY\n id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "contract_address", + "type_info": "Bytea" + }, + { + "ordinal": 2, + "name": "source_code", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "contract_name", + "type_info": "Text" + }, + { + "ordinal": 4, + "name": "zk_compiler_version", + "type_info": "Text" + }, + { + "ordinal": 5, + "name": "compiler_version", + "type_info": "Text" + }, + { + "ordinal": 6, + "name": "optimization_used", + "type_info": "Bool" + }, + { + "ordinal": 7, + "name": "optimizer_mode", + "type_info": "Text" + }, + { + "ordinal": 8, + "name": "constructor_arguments", + "type_info": "Bytea" + }, + { + "ordinal": 9, + "name": "is_system", + "type_info": "Bool" + }, + { + "ordinal": 10, + "name": "force_evmla", + "type_info": "Bool" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + true, + false, + false, + false + ] + }, + "hash": "a115f795672787fe25bfaa8fd345094de508af93f4085be7cf3b54b1e8ecdadd" +} diff --git a/core/lib/dal/.sqlx/query-a1f4334b6bc1642c1bc0ff4ffa34470914b52e2d714e9deb903d62a5d66f0e04.json b/core/lib/dal/.sqlx/query-a1f4334b6bc1642c1bc0ff4ffa34470914b52e2d714e9deb903d62a5d66f0e04.json new file mode 100644 index 000000000000..82612fb53277 --- /dev/null +++ b/core/lib/dal/.sqlx/query-a1f4334b6bc1642c1bc0ff4ffa34470914b52e2d714e9deb903d62a5d66f0e04.json @@ -0,0 +1,44 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n l1_address,\n l2_address,\n NAME,\n symbol,\n decimals\n FROM\n tokens\n ORDER BY\n symbol\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "l1_address", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "l2_address", + "type_info": "Bytea" + }, + { + "ordinal": 2, + "name": "name", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "symbol", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "decimals", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + false, + false, + false, + false + ] + }, + "hash": "a1f4334b6bc1642c1bc0ff4ffa34470914b52e2d714e9deb903d62a5d66f0e04" +} diff --git a/core/lib/dal/.sqlx/query-a2d02b71e3dcc29a2c0c20b44392cfbaf09164aecfa5eed8d7142518ad96abea.json b/core/lib/dal/.sqlx/query-a2d02b71e3dcc29a2c0c20b44392cfbaf09164aecfa5eed8d7142518ad96abea.json new file mode 100644 index 000000000000..fc36e47b54c8 --- /dev/null +++ b/core/lib/dal/.sqlx/query-a2d02b71e3dcc29a2c0c20b44392cfbaf09164aecfa5eed8d7142518ad96abea.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n initial_bootloader_heap_content\n FROM\n l1_batches\n WHERE\n number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "initial_bootloader_heap_content", + "type_info": "Jsonb" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "a2d02b71e3dcc29a2c0c20b44392cfbaf09164aecfa5eed8d7142518ad96abea" +} diff --git a/core/lib/dal/.sqlx/query-a48c92f557e5e3a2674ce0dee9cd92f5a547150590b8c221c4065eab11175c7a.json b/core/lib/dal/.sqlx/query-a48c92f557e5e3a2674ce0dee9cd92f5a547150590b8c221c4065eab11175c7a.json new file mode 100644 index 000000000000..49e547e5564c --- /dev/null +++ b/core/lib/dal/.sqlx/query-a48c92f557e5e3a2674ce0dee9cd92f5a547150590b8c221c4065eab11175c7a.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n MAX(INDEX) AS \"max?\"\n FROM\n initial_writes\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "max?", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + null + ] + }, + "hash": "a48c92f557e5e3a2674ce0dee9cd92f5a547150590b8c221c4065eab11175c7a" +} diff --git a/core/lib/dal/.sqlx/query-a4a4b0bfbe05eac100c42a717e8d7cbb0bc526ebe61a07f735d4ab587058b22c.json b/core/lib/dal/.sqlx/query-a4a4b0bfbe05eac100c42a717e8d7cbb0bc526ebe61a07f735d4ab587058b22c.json new file mode 100644 index 000000000000..f19add71350a --- /dev/null +++ b/core/lib/dal/.sqlx/query-a4a4b0bfbe05eac100c42a717e8d7cbb0bc526ebe61a07f735d4ab587058b22c.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n hash\n FROM\n miniblocks\n WHERE\n number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "hash", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "a4a4b0bfbe05eac100c42a717e8d7cbb0bc526ebe61a07f735d4ab587058b22c" +} diff --git a/core/lib/dal/.sqlx/query-a4fcd075b68467bb119e49e6b20a69138206dfeb41f3daff4a3eef1de0bed4e4.json b/core/lib/dal/.sqlx/query-a4fcd075b68467bb119e49e6b20a69138206dfeb41f3daff4a3eef1de0bed4e4.json new file mode 100644 index 000000000000..39b0c391ef59 --- /dev/null +++ b/core/lib/dal/.sqlx/query-a4fcd075b68467bb119e49e6b20a69138206dfeb41f3daff4a3eef1de0bed4e4.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO\n initial_writes (hashed_key, INDEX, l1_batch_number, created_at, updated_at)\n SELECT\n u.hashed_key,\n u.index,\n $3,\n NOW(),\n NOW()\n FROM\n UNNEST($1::bytea[], $2::BIGINT[]) AS u (hashed_key, INDEX)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "ByteaArray", + "Int8Array", + "Int8" + ] + }, + "nullable": [] + }, + "hash": "a4fcd075b68467bb119e49e6b20a69138206dfeb41f3daff4a3eef1de0bed4e4" +} diff --git a/core/lib/dal/.sqlx/query-a74d029f58801ec05d8d14a3b065d93e391600ab9da2e5fd4e8b139ab3d77583.json b/core/lib/dal/.sqlx/query-a74d029f58801ec05d8d14a3b065d93e391600ab9da2e5fd4e8b139ab3d77583.json new file mode 100644 index 000000000000..c4f1f4bbcd0d --- /dev/null +++ b/core/lib/dal/.sqlx/query-a74d029f58801ec05d8d14a3b065d93e391600ab9da2e5fd4e8b139ab3d77583.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE proof_generation_details\n SET\n status = 'generated',\n proof_blob_url = $1,\n updated_at = NOW()\n WHERE\n l1_batch_number = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Int8" + ] + }, + "nullable": [] + }, + "hash": "a74d029f58801ec05d8d14a3b065d93e391600ab9da2e5fd4e8b139ab3d77583" +} diff --git a/core/lib/dal/.sqlx/query-a8dad09a54cc991706141da557dde45f8f3f3b6cf2e4136f25a1c3ab85d92668.json b/core/lib/dal/.sqlx/query-a8dad09a54cc991706141da557dde45f8f3f3b6cf2e4136f25a1c3ab85d92668.json new file mode 100644 index 000000000000..1fd7b8fdf1b3 --- /dev/null +++ b/core/lib/dal/.sqlx/query-a8dad09a54cc991706141da557dde45f8f3f3b6cf2e4136f25a1c3ab85d92668.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE protocol_versions\n SET\n upgrade_tx_hash = $1\n WHERE\n id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Bytea", + "Int4" + ] + }, + "nullable": [] + }, + "hash": "a8dad09a54cc991706141da557dde45f8f3f3b6cf2e4136f25a1c3ab85d92668" +} diff --git a/core/lib/dal/.sqlx/query-a91c23c4d33771122cec2589c6fe2757dbc13be6b30f5840744e5e0569adc66e.json b/core/lib/dal/.sqlx/query-a91c23c4d33771122cec2589c6fe2757dbc13be6b30f5840744e5e0569adc66e.json new file mode 100644 index 000000000000..7c757648b383 --- /dev/null +++ b/core/lib/dal/.sqlx/query-a91c23c4d33771122cec2589c6fe2757dbc13be6b30f5840744e5e0569adc66e.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n upgrade_tx_hash\n FROM\n protocol_versions\n WHERE\n id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "upgrade_tx_hash", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + true + ] + }, + "hash": "a91c23c4d33771122cec2589c6fe2757dbc13be6b30f5840744e5e0569adc66e" +} diff --git a/core/lib/dal/.sqlx/query-aac861efb4acb81d5cefa598c822bef649a6db197a36aca098cd8054909d82e9.json b/core/lib/dal/.sqlx/query-aac861efb4acb81d5cefa598c822bef649a6db197a36aca098cd8054909d82e9.json deleted file mode 100644 index 1122b9c27eb8..000000000000 --- a/core/lib/dal/.sqlx/query-aac861efb4acb81d5cefa598c822bef649a6db197a36aca098cd8054909d82e9.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT\n transactions.hash AS tx_hash,\n transactions.index_in_block AS index_in_block,\n transactions.miniblock_number AS block_number,\n transactions.nonce AS nonce,\n transactions.signature AS signature,\n transactions.initiator_address AS initiator_address,\n transactions.tx_format AS tx_format,\n transactions.value AS value,\n transactions.gas_limit AS gas_limit,\n transactions.max_fee_per_gas AS max_fee_per_gas,\n transactions.max_priority_fee_per_gas AS max_priority_fee_per_gas,\n transactions.effective_gas_price AS effective_gas_price,\n transactions.l1_batch_number AS l1_batch_number,\n transactions.l1_batch_tx_index AS l1_batch_tx_index,\n transactions.data->'contractAddress' AS \"execute_contract_address\",\n transactions.data->'calldata' AS \"calldata\",\n miniblocks.hash AS \"block_hash\"\n FROM transactions\n LEFT JOIN miniblocks ON miniblocks.number = transactions.miniblock_number\n WHERE\n transactions.hash = ANY($1)", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "tx_hash", - "type_info": "Bytea" - }, - { - "ordinal": 1, - "name": "index_in_block", - "type_info": "Int4" - }, - { - "ordinal": 2, - "name": "block_number", - "type_info": "Int8" - }, - { - "ordinal": 3, - "name": "nonce", - "type_info": "Int8" - }, - { - "ordinal": 4, - "name": "signature", - "type_info": "Bytea" - }, - { - "ordinal": 5, - "name": "initiator_address", - "type_info": "Bytea" - }, - { - "ordinal": 6, - "name": "tx_format", - "type_info": "Int4" - }, - { - "ordinal": 7, - "name": "value", - "type_info": "Numeric" - }, - { - "ordinal": 8, - "name": "gas_limit", - "type_info": "Numeric" - }, - { - "ordinal": 9, - "name": "max_fee_per_gas", - "type_info": "Numeric" - }, - { - "ordinal": 10, - "name": "max_priority_fee_per_gas", - "type_info": "Numeric" - }, - { - "ordinal": 11, - "name": "effective_gas_price", - "type_info": "Numeric" - }, - { - "ordinal": 12, - "name": "l1_batch_number", - "type_info": "Int8" - }, - { - "ordinal": 13, - "name": "l1_batch_tx_index", - "type_info": "Int4" - }, - { - "ordinal": 14, - "name": "execute_contract_address", - "type_info": "Jsonb" - }, - { - "ordinal": 15, - "name": "calldata", - "type_info": "Jsonb" - }, - { - "ordinal": 16, - "name": "block_hash", - "type_info": "Bytea" - } - ], - "parameters": { - "Left": [ - "ByteaArray" - ] - }, - "nullable": [ - false, - true, - true, - true, - true, - false, - true, - false, - true, - true, - true, - true, - true, - true, - null, - null, - true - ] - }, - "hash": "aac861efb4acb81d5cefa598c822bef649a6db197a36aca098cd8054909d82e9" -} diff --git a/core/lib/dal/.sqlx/query-ac505ae6cfc744b07b52997db789bdc9efc6b89fc0444caf8271edd7dfe4a3bc.json b/core/lib/dal/.sqlx/query-ac505ae6cfc744b07b52997db789bdc9efc6b89fc0444caf8271edd7dfe4a3bc.json new file mode 100644 index 000000000000..2dad4563cc70 --- /dev/null +++ b/core/lib/dal/.sqlx/query-ac505ae6cfc744b07b52997db789bdc9efc6b89fc0444caf8271edd7dfe4a3bc.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n id\n FROM\n protocol_versions\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false + ] + }, + "hash": "ac505ae6cfc744b07b52997db789bdc9efc6b89fc0444caf8271edd7dfe4a3bc" +} diff --git a/core/lib/dal/.sqlx/query-ada54322a28012b1b761f3631c4cd6ca26aa2fa565fcf208b6985f461c1868f2.json b/core/lib/dal/.sqlx/query-ada54322a28012b1b761f3631c4cd6ca26aa2fa565fcf208b6985f461c1868f2.json new file mode 100644 index 000000000000..04fde45469fa --- /dev/null +++ b/core/lib/dal/.sqlx/query-ada54322a28012b1b761f3631c4cd6ca26aa2fa565fcf208b6985f461c1868f2.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE eth_txs_history\n SET\n updated_at = NOW(),\n confirmed_at = NOW()\n WHERE\n tx_hash = $1\n RETURNING\n id,\n eth_tx_id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "eth_tx_id", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "ada54322a28012b1b761f3631c4cd6ca26aa2fa565fcf208b6985f461c1868f2" +} diff --git a/core/lib/dal/.sqlx/query-aeda34b1beadca72e3e600ea9ae63f436a4f16dbeb784d0d28be392ad96b1c49.json b/core/lib/dal/.sqlx/query-aeda34b1beadca72e3e600ea9ae63f436a4f16dbeb784d0d28be392ad96b1c49.json new file mode 100644 index 000000000000..b411d3ce8309 --- /dev/null +++ b/core/lib/dal/.sqlx/query-aeda34b1beadca72e3e600ea9ae63f436a4f16dbeb784d0d28be392ad96b1c49.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE eth_txs\n SET\n has_failed = TRUE\n WHERE\n id = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [] + }, + "hash": "aeda34b1beadca72e3e600ea9ae63f436a4f16dbeb784d0d28be392ad96b1c49" +} diff --git a/core/lib/dal/.sqlx/query-aefea1f3e87f28791cc547f193a895006e23ec73018f4b4e0a364a741f5c9781.json b/core/lib/dal/.sqlx/query-aefea1f3e87f28791cc547f193a895006e23ec73018f4b4e0a364a741f5c9781.json new file mode 100644 index 000000000000..c82bed1169ca --- /dev/null +++ b/core/lib/dal/.sqlx/query-aefea1f3e87f28791cc547f193a895006e23ec73018f4b4e0a364a741f5c9781.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n l1_batch_number\n FROM\n miniblocks\n WHERE\n number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "l1_batch_number", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + true + ] + }, + "hash": "aefea1f3e87f28791cc547f193a895006e23ec73018f4b4e0a364a741f5c9781" +} diff --git a/core/lib/dal/.sqlx/query-b259e6bacd98fa68003e0c87bb28cc77bd2dcee4a04d1afc9779714854623a79.json b/core/lib/dal/.sqlx/query-b259e6bacd98fa68003e0c87bb28cc77bd2dcee4a04d1afc9779714854623a79.json new file mode 100644 index 000000000000..90c940c3977c --- /dev/null +++ b/core/lib/dal/.sqlx/query-b259e6bacd98fa68003e0c87bb28cc77bd2dcee4a04d1afc9779714854623a79.json @@ -0,0 +1,94 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n miniblock_number,\n log_index_in_miniblock,\n log_index_in_tx,\n tx_hash,\n NULL::bytea AS \"block_hash\",\n NULL::BIGINT AS \"l1_batch_number?\",\n shard_id,\n is_service,\n tx_index_in_miniblock,\n tx_index_in_l1_batch,\n sender,\n key,\n value\n FROM\n l2_to_l1_logs\n WHERE\n tx_hash = ANY ($1)\n ORDER BY\n tx_index_in_l1_batch ASC,\n log_index_in_tx ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "miniblock_number", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "log_index_in_miniblock", + "type_info": "Int4" + }, + { + "ordinal": 2, + "name": "log_index_in_tx", + "type_info": "Int4" + }, + { + "ordinal": 3, + "name": "tx_hash", + "type_info": "Bytea" + }, + { + "ordinal": 4, + "name": "block_hash", + "type_info": "Bytea" + }, + { + "ordinal": 5, + "name": "l1_batch_number?", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "shard_id", + "type_info": "Int4" + }, + { + "ordinal": 7, + "name": "is_service", + "type_info": "Bool" + }, + { + "ordinal": 8, + "name": "tx_index_in_miniblock", + "type_info": "Int4" + }, + { + "ordinal": 9, + "name": "tx_index_in_l1_batch", + "type_info": "Int4" + }, + { + "ordinal": 10, + "name": "sender", + "type_info": "Bytea" + }, + { + "ordinal": 11, + "name": "key", + "type_info": "Bytea" + }, + { + "ordinal": 12, + "name": "value", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "ByteaArray" + ] + }, + "nullable": [ + false, + false, + false, + false, + null, + null, + false, + false, + false, + false, + false, + false, + false + ] + }, + "hash": "b259e6bacd98fa68003e0c87bb28cc77bd2dcee4a04d1afc9779714854623a79" +} diff --git a/core/lib/dal/.sqlx/query-b452354c888bfc19b5f4012582061b86b1abd915739533f9982fea9d8e21b9e9.json b/core/lib/dal/.sqlx/query-b452354c888bfc19b5f4012582061b86b1abd915739533f9982fea9d8e21b9e9.json new file mode 100644 index 000000000000..e87b9a2cddd6 --- /dev/null +++ b/core/lib/dal/.sqlx/query-b452354c888bfc19b5f4012582061b86b1abd915739533f9982fea9d8e21b9e9.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM factory_deps\n WHERE\n miniblock_number > $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [] + }, + "hash": "b452354c888bfc19b5f4012582061b86b1abd915739533f9982fea9d8e21b9e9" +} diff --git a/core/lib/dal/.sqlx/query-b49478150dbc8731c531ef3eddc0c2cfff08e6fef3c3824d20dfdf2d0f73e671.json b/core/lib/dal/.sqlx/query-b49478150dbc8731c531ef3eddc0c2cfff08e6fef3c3824d20dfdf2d0f73e671.json new file mode 100644 index 000000000000..59a4d95f1f22 --- /dev/null +++ b/core/lib/dal/.sqlx/query-b49478150dbc8731c531ef3eddc0c2cfff08e6fef3c3824d20dfdf2d0f73e671.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n hash,\n number,\n timestamp\n FROM\n miniblocks\n WHERE\n number > $1\n ORDER BY\n number ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "hash", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "number", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "timestamp", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "b49478150dbc8731c531ef3eddc0c2cfff08e6fef3c3824d20dfdf2d0f73e671" +} diff --git a/core/lib/dal/.sqlx/query-b4a0444897b60c7061363a48b2b5386a2fd53492f3df05545edbfb0ec0f059d2.json b/core/lib/dal/.sqlx/query-b4a0444897b60c7061363a48b2b5386a2fd53492f3df05545edbfb0ec0f059d2.json new file mode 100644 index 000000000000..804f6c5ac332 --- /dev/null +++ b/core/lib/dal/.sqlx/query-b4a0444897b60c7061363a48b2b5386a2fd53492f3df05545edbfb0ec0f059d2.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE eth_txs\n SET\n confirmed_eth_tx_history_id = $1\n WHERE\n id = $2\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int4", + "Int4" + ] + }, + "nullable": [] + }, + "hash": "b4a0444897b60c7061363a48b2b5386a2fd53492f3df05545edbfb0ec0f059d2" +} diff --git a/core/lib/dal/.sqlx/query-b5fd77f515fe168908cc90e44d0697e36b3c2a997038c30553f7727cdfa17361.json b/core/lib/dal/.sqlx/query-b5fd77f515fe168908cc90e44d0697e36b3c2a997038c30553f7727cdfa17361.json new file mode 100644 index 000000000000..b8ba0465614a --- /dev/null +++ b/core/lib/dal/.sqlx/query-b5fd77f515fe168908cc90e44d0697e36b3c2a997038c30553f7727cdfa17361.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE transactions\n SET\n miniblock_number = $1,\n index_in_block = data_table.index_in_block,\n error = NULLIF(data_table.error, ''),\n in_mempool = FALSE,\n execution_info = execution_info || data_table.new_execution_info,\n refunded_gas = data_table.refunded_gas,\n effective_gas_price = data_table.effective_gas_price,\n updated_at = NOW()\n FROM\n (\n SELECT\n UNNEST($2::bytea[]) AS hash,\n UNNEST($3::INTEGER[]) AS index_in_block,\n UNNEST($4::VARCHAR[]) AS error,\n UNNEST($5::jsonb[]) AS new_execution_info,\n UNNEST($6::BIGINT[]) AS refunded_gas,\n UNNEST($7::NUMERIC[]) AS effective_gas_price\n ) AS data_table\n WHERE\n transactions.hash = data_table.hash\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8", + "ByteaArray", + "Int4Array", + "VarcharArray", + "JsonbArray", + "Int8Array", + "NumericArray" + ] + }, + "nullable": [] + }, + "hash": "b5fd77f515fe168908cc90e44d0697e36b3c2a997038c30553f7727cdfa17361" +} diff --git a/core/lib/dal/.sqlx/query-55339d6d9ee1205be25c28f0ea01b2cc0c39fd0376a88708a5b793e2327c012f.json b/core/lib/dal/.sqlx/query-b63ee98d4708c8121a287becb7e1973d18d45c4a200a60d318cdb1222d63ccaa.json similarity index 93% rename from core/lib/dal/.sqlx/query-55339d6d9ee1205be25c28f0ea01b2cc0c39fd0376a88708a5b793e2327c012f.json rename to core/lib/dal/.sqlx/query-b63ee98d4708c8121a287becb7e1973d18d45c4a200a60d318cdb1222d63ccaa.json index cd9e6b542461..8fe75d743964 100644 --- a/core/lib/dal/.sqlx/query-55339d6d9ee1205be25c28f0ea01b2cc0c39fd0376a88708a5b793e2327c012f.json +++ b/core/lib/dal/.sqlx/query-b63ee98d4708c8121a287becb7e1973d18d45c4a200a60d318cdb1222d63ccaa.json @@ -1,6 +1,6 @@ { "db_name": "PostgreSQL", - "query": "\n SELECT\n number,\n timestamp,\n l1_tx_count,\n l2_tx_count,\n bloom,\n priority_ops_onchain_data,\n hash,\n commitment,\n eth_prove_tx_id,\n eth_commit_tx_id,\n eth_execute_tx_id,\n merkle_root_hash,\n l2_to_l1_logs,\n l2_to_l1_messages,\n used_contract_hashes,\n compressed_initial_writes,\n compressed_repeated_writes,\n l2_l1_merkle_root,\n rollup_last_leaf_index,\n zkporter_is_available,\n bootloader_code_hash,\n default_aa_code_hash,\n aux_data_hash,\n pass_through_data_hash,\n meta_parameters_hash,\n protocol_version,\n compressed_state_diffs,\n system_logs,\n events_queue_commitment,\n bootloader_initial_content_commitment,\n pubdata_input\n FROM\n l1_batches\n LEFT JOIN commitments ON commitments.l1_batch_number = l1_batches.number\n \n WHERE\n eth_commit_tx_id IS NOT NULL\n AND eth_prove_tx_id IS NULL\n \n ORDER BY\n number\n LIMIT\n $1\n ", + "query": "\n SELECT\n number,\n timestamp,\n l1_tx_count,\n l2_tx_count,\n bloom,\n priority_ops_onchain_data,\n hash,\n commitment,\n eth_prove_tx_id,\n eth_commit_tx_id,\n eth_execute_tx_id,\n merkle_root_hash,\n l2_to_l1_logs,\n l2_to_l1_messages,\n used_contract_hashes,\n compressed_initial_writes,\n compressed_repeated_writes,\n l2_l1_merkle_root,\n rollup_last_leaf_index,\n zkporter_is_available,\n bootloader_code_hash,\n default_aa_code_hash,\n aux_data_hash,\n pass_through_data_hash,\n meta_parameters_hash,\n protocol_version,\n compressed_state_diffs,\n system_logs,\n events_queue_commitment,\n bootloader_initial_content_commitment,\n pubdata_input\n FROM\n l1_batches\n LEFT JOIN commitments ON commitments.l1_batch_number = l1_batches.number\n WHERE\n number BETWEEN $1 AND $2\n ORDER BY\n number\n LIMIT\n $3\n ", "describe": { "columns": [ { @@ -161,6 +161,8 @@ ], "parameters": { "Left": [ + "Int8", + "Int8", "Int8" ] }, @@ -198,5 +200,5 @@ true ] }, - "hash": "55339d6d9ee1205be25c28f0ea01b2cc0c39fd0376a88708a5b793e2327c012f" + "hash": "b63ee98d4708c8121a287becb7e1973d18d45c4a200a60d318cdb1222d63ccaa" } diff --git a/core/lib/dal/.sqlx/query-b6837d2deed935da748339538c2c332a122d0b88271ae0127c65c4612b41a619.json b/core/lib/dal/.sqlx/query-b6837d2deed935da748339538c2c332a122d0b88271ae0127c65c4612b41a619.json new file mode 100644 index 000000000000..acd2d51f6eac --- /dev/null +++ b/core/lib/dal/.sqlx/query-b6837d2deed935da748339538c2c332a122d0b88271ae0127c65c4612b41a619.json @@ -0,0 +1,108 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH\n sl AS (\n SELECT DISTINCT\n ON (storage_logs.tx_hash) *\n FROM\n storage_logs\n WHERE\n storage_logs.address = $1\n AND storage_logs.tx_hash = ANY ($3)\n ORDER BY\n storage_logs.tx_hash,\n storage_logs.miniblock_number DESC,\n storage_logs.operation_number DESC\n )\n SELECT\n transactions.hash AS tx_hash,\n transactions.index_in_block AS index_in_block,\n transactions.l1_batch_tx_index AS l1_batch_tx_index,\n transactions.miniblock_number AS \"block_number!\",\n transactions.error AS error,\n transactions.effective_gas_price AS effective_gas_price,\n transactions.initiator_address AS initiator_address,\n transactions.data -> 'to' AS \"transfer_to?\",\n transactions.data -> 'contractAddress' AS \"execute_contract_address?\",\n transactions.tx_format AS \"tx_format?\",\n transactions.refunded_gas AS refunded_gas,\n transactions.gas_limit AS gas_limit,\n miniblocks.hash AS \"block_hash\",\n miniblocks.l1_batch_number AS \"l1_batch_number?\",\n sl.key AS \"contract_address?\"\n FROM\n transactions\n JOIN miniblocks ON miniblocks.number = transactions.miniblock_number\n LEFT JOIN sl ON sl.value != $2\n AND sl.tx_hash = transactions.hash\n WHERE\n transactions.hash = ANY ($3)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "tx_hash", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "index_in_block", + "type_info": "Int4" + }, + { + "ordinal": 2, + "name": "l1_batch_tx_index", + "type_info": "Int4" + }, + { + "ordinal": 3, + "name": "block_number!", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "error", + "type_info": "Varchar" + }, + { + "ordinal": 5, + "name": "effective_gas_price", + "type_info": "Numeric" + }, + { + "ordinal": 6, + "name": "initiator_address", + "type_info": "Bytea" + }, + { + "ordinal": 7, + "name": "transfer_to?", + "type_info": "Jsonb" + }, + { + "ordinal": 8, + "name": "execute_contract_address?", + "type_info": "Jsonb" + }, + { + "ordinal": 9, + "name": "tx_format?", + "type_info": "Int4" + }, + { + "ordinal": 10, + "name": "refunded_gas", + "type_info": "Int8" + }, + { + "ordinal": 11, + "name": "gas_limit", + "type_info": "Numeric" + }, + { + "ordinal": 12, + "name": "block_hash", + "type_info": "Bytea" + }, + { + "ordinal": 13, + "name": "l1_batch_number?", + "type_info": "Int8" + }, + { + "ordinal": 14, + "name": "contract_address?", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Bytea", + "Bytea", + "ByteaArray" + ] + }, + "nullable": [ + false, + true, + true, + true, + true, + true, + false, + null, + null, + true, + false, + true, + false, + true, + true + ] + }, + "hash": "b6837d2deed935da748339538c2c332a122d0b88271ae0127c65c4612b41a619" +} diff --git a/core/lib/dal/.sqlx/query-b75e3d2fecbf5d85e93848b7a35180abbd76956e073432af8d8500327b74e488.json b/core/lib/dal/.sqlx/query-b75e3d2fecbf5d85e93848b7a35180abbd76956e073432af8d8500327b74e488.json new file mode 100644 index 000000000000..91d7b677959a --- /dev/null +++ b/core/lib/dal/.sqlx/query-b75e3d2fecbf5d85e93848b7a35180abbd76956e073432af8d8500327b74e488.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n VERSION\n FROM\n compiler_versions\n WHERE\n compiler = $1\n ORDER BY\n VERSION\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "version", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [ + false + ] + }, + "hash": "b75e3d2fecbf5d85e93848b7a35180abbd76956e073432af8d8500327b74e488" +} diff --git a/core/lib/dal/.sqlx/query-b7bf6999002dd89dc1224468ca79c9a85e3c24fca1bf87905f7fc68fe2ce3276.json b/core/lib/dal/.sqlx/query-b7bf6999002dd89dc1224468ca79c9a85e3c24fca1bf87905f7fc68fe2ce3276.json new file mode 100644 index 000000000000..cb8de87ca641 --- /dev/null +++ b/core/lib/dal/.sqlx/query-b7bf6999002dd89dc1224468ca79c9a85e3c24fca1bf87905f7fc68fe2ce3276.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE transactions\n SET\n l1_batch_number = $3,\n l1_batch_tx_index = data_table.l1_batch_tx_index,\n updated_at = NOW()\n FROM\n (\n SELECT\n UNNEST($1::INT[]) AS l1_batch_tx_index,\n UNNEST($2::bytea[]) AS hash\n ) AS data_table\n WHERE\n transactions.hash = data_table.hash\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int4Array", + "ByteaArray", + "Int8" + ] + }, + "nullable": [] + }, + "hash": "b7bf6999002dd89dc1224468ca79c9a85e3c24fca1bf87905f7fc68fe2ce3276" +} diff --git a/core/lib/dal/.sqlx/query-b9f77e6c15f9e635024b73f1fc985c5196c431363802b6b988939c99853b9c97.json b/core/lib/dal/.sqlx/query-b9f77e6c15f9e635024b73f1fc985c5196c431363802b6b988939c99853b9c97.json deleted file mode 100644 index 379c1f75d9b3..000000000000 --- a/core/lib/dal/.sqlx/query-b9f77e6c15f9e635024b73f1fc985c5196c431363802b6b988939c99853b9c97.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT COALESCE(SUM(predicted_commit_gas_cost), 0) AS \"sum!\" FROM l1_batches WHERE number BETWEEN $1 AND $2", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "sum!", - "type_info": "Numeric" - } - ], - "parameters": { - "Left": [ - "Int8", - "Int8" - ] - }, - "nullable": [ - null - ] - }, - "hash": "b9f77e6c15f9e635024b73f1fc985c5196c431363802b6b988939c99853b9c97" -} diff --git a/core/lib/dal/.sqlx/query-ba1b6c4588ea3d3b138e03a63ef1731a10b332fec68f4a1e56edec4df71ccaff.json b/core/lib/dal/.sqlx/query-ba1b6c4588ea3d3b138e03a63ef1731a10b332fec68f4a1e56edec4df71ccaff.json new file mode 100644 index 000000000000..2bd618788801 --- /dev/null +++ b/core/lib/dal/.sqlx/query-ba1b6c4588ea3d3b138e03a63ef1731a10b332fec68f4a1e56edec4df71ccaff.json @@ -0,0 +1,205 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n number,\n l1_batches.timestamp,\n l1_tx_count,\n l2_tx_count,\n bloom,\n priority_ops_onchain_data,\n hash,\n commitment,\n eth_prove_tx_id,\n eth_commit_tx_id,\n eth_execute_tx_id,\n merkle_root_hash,\n l2_to_l1_logs,\n l2_to_l1_messages,\n used_contract_hashes,\n compressed_initial_writes,\n compressed_repeated_writes,\n l2_l1_merkle_root,\n rollup_last_leaf_index,\n zkporter_is_available,\n l1_batches.bootloader_code_hash,\n l1_batches.default_aa_code_hash,\n aux_data_hash,\n pass_through_data_hash,\n meta_parameters_hash,\n protocol_version,\n compressed_state_diffs,\n system_logs,\n events_queue_commitment,\n bootloader_initial_content_commitment,\n pubdata_input\n FROM\n l1_batches\n LEFT JOIN commitments ON commitments.l1_batch_number = l1_batches.number\n JOIN protocol_versions ON protocol_versions.id = l1_batches.protocol_version\n WHERE\n eth_commit_tx_id IS NULL\n AND number != 0\n AND protocol_versions.bootloader_code_hash = $1\n AND protocol_versions.default_account_code_hash = $2\n AND commitment IS NOT NULL\n AND (\n protocol_versions.id = $3\n OR protocol_versions.upgrade_tx_hash IS NULL\n )\n AND events_queue_commitment IS NOT NULL\n AND bootloader_initial_content_commitment IS NOT NULL\n ORDER BY\n number\n LIMIT\n $4\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "number", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "timestamp", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "l1_tx_count", + "type_info": "Int4" + }, + { + "ordinal": 3, + "name": "l2_tx_count", + "type_info": "Int4" + }, + { + "ordinal": 4, + "name": "bloom", + "type_info": "Bytea" + }, + { + "ordinal": 5, + "name": "priority_ops_onchain_data", + "type_info": "ByteaArray" + }, + { + "ordinal": 6, + "name": "hash", + "type_info": "Bytea" + }, + { + "ordinal": 7, + "name": "commitment", + "type_info": "Bytea" + }, + { + "ordinal": 8, + "name": "eth_prove_tx_id", + "type_info": "Int4" + }, + { + "ordinal": 9, + "name": "eth_commit_tx_id", + "type_info": "Int4" + }, + { + "ordinal": 10, + "name": "eth_execute_tx_id", + "type_info": "Int4" + }, + { + "ordinal": 11, + "name": "merkle_root_hash", + "type_info": "Bytea" + }, + { + "ordinal": 12, + "name": "l2_to_l1_logs", + "type_info": "ByteaArray" + }, + { + "ordinal": 13, + "name": "l2_to_l1_messages", + "type_info": "ByteaArray" + }, + { + "ordinal": 14, + "name": "used_contract_hashes", + "type_info": "Jsonb" + }, + { + "ordinal": 15, + "name": "compressed_initial_writes", + "type_info": "Bytea" + }, + { + "ordinal": 16, + "name": "compressed_repeated_writes", + "type_info": "Bytea" + }, + { + "ordinal": 17, + "name": "l2_l1_merkle_root", + "type_info": "Bytea" + }, + { + "ordinal": 18, + "name": "rollup_last_leaf_index", + "type_info": "Int8" + }, + { + "ordinal": 19, + "name": "zkporter_is_available", + "type_info": "Bool" + }, + { + "ordinal": 20, + "name": "bootloader_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 21, + "name": "default_aa_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 22, + "name": "aux_data_hash", + "type_info": "Bytea" + }, + { + "ordinal": 23, + "name": "pass_through_data_hash", + "type_info": "Bytea" + }, + { + "ordinal": 24, + "name": "meta_parameters_hash", + "type_info": "Bytea" + }, + { + "ordinal": 25, + "name": "protocol_version", + "type_info": "Int4" + }, + { + "ordinal": 26, + "name": "compressed_state_diffs", + "type_info": "Bytea" + }, + { + "ordinal": 27, + "name": "system_logs", + "type_info": "ByteaArray" + }, + { + "ordinal": 28, + "name": "events_queue_commitment", + "type_info": "Bytea" + }, + { + "ordinal": 29, + "name": "bootloader_initial_content_commitment", + "type_info": "Bytea" + }, + { + "ordinal": 30, + "name": "pubdata_input", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Bytea", + "Bytea", + "Int4", + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + true, + true, + true, + true, + true, + true, + false, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true + ] + }, + "hash": "ba1b6c4588ea3d3b138e03a63ef1731a10b332fec68f4a1e56edec4df71ccaff" +} diff --git a/core/lib/dal/.sqlx/query-ba2343a38e37d104786f9276d91f67d2ef1428c61ae84003c9b52b03204d1f0a.json b/core/lib/dal/.sqlx/query-ba2343a38e37d104786f9276d91f67d2ef1428c61ae84003c9b52b03204d1f0a.json new file mode 100644 index 000000000000..ff6082651184 --- /dev/null +++ b/core/lib/dal/.sqlx/query-ba2343a38e37d104786f9276d91f67d2ef1428c61ae84003c9b52b03204d1f0a.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM transactions\n WHERE\n in_mempool = TRUE\n AND initiator_address = ANY ($1)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "ByteaArray" + ] + }, + "nullable": [] + }, + "hash": "ba2343a38e37d104786f9276d91f67d2ef1428c61ae84003c9b52b03204d1f0a" +} diff --git a/core/lib/dal/.sqlx/query-bd51c9d93b103292f5acbdb266ba4b4e2af48907fa9321064ddb24ac02ab17cd.json b/core/lib/dal/.sqlx/query-bd51c9d93b103292f5acbdb266ba4b4e2af48907fa9321064ddb24ac02ab17cd.json new file mode 100644 index 000000000000..7f1fc9b176c5 --- /dev/null +++ b/core/lib/dal/.sqlx/query-bd51c9d93b103292f5acbdb266ba4b4e2af48907fa9321064ddb24ac02ab17cd.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n number\n FROM\n l1_batches\n LEFT JOIN eth_txs_history AS commit_tx ON (l1_batches.eth_commit_tx_id = commit_tx.eth_tx_id)\n WHERE\n commit_tx.confirmed_at IS NOT NULL\n ORDER BY\n number DESC\n LIMIT\n 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "number", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false + ] + }, + "hash": "bd51c9d93b103292f5acbdb266ba4b4e2af48907fa9321064ddb24ac02ab17cd" +} diff --git a/core/lib/dal/.sqlx/query-bfc84bcf0985446b337467dd1da709dbee508ad6d1cae43e477cf1bef8cb4aa9.json b/core/lib/dal/.sqlx/query-bfc84bcf0985446b337467dd1da709dbee508ad6d1cae43e477cf1bef8cb4aa9.json new file mode 100644 index 000000000000..8079d52a7036 --- /dev/null +++ b/core/lib/dal/.sqlx/query-bfc84bcf0985446b337467dd1da709dbee508ad6d1cae43e477cf1bef8cb4aa9.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT DISTINCT\n hashed_key\n FROM\n storage_logs\n WHERE\n miniblock_number BETWEEN $1 AND $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "hashed_key", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "bfc84bcf0985446b337467dd1da709dbee508ad6d1cae43e477cf1bef8cb4aa9" +} diff --git a/core/lib/dal/.sqlx/query-c02f404ce9b0f92b8052ef6f3eaabda70cb9c56ae3e30dc0a8257e43d6714155.json b/core/lib/dal/.sqlx/query-c02f404ce9b0f92b8052ef6f3eaabda70cb9c56ae3e30dc0a8257e43d6714155.json new file mode 100644 index 000000000000..53a0aa152f95 --- /dev/null +++ b/core/lib/dal/.sqlx/query-c02f404ce9b0f92b8052ef6f3eaabda70cb9c56ae3e30dc0a8257e43d6714155.json @@ -0,0 +1,94 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n eth_txs_history.*,\n eth_txs.blob_sidecar\n FROM\n eth_txs_history\n LEFT JOIN eth_txs ON eth_tx_id = eth_txs.id\n WHERE\n eth_tx_id = $1\n ORDER BY\n eth_txs_history.created_at DESC\n LIMIT\n 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "eth_tx_id", + "type_info": "Int4" + }, + { + "ordinal": 2, + "name": "tx_hash", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "created_at", + "type_info": "Timestamp" + }, + { + "ordinal": 4, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 5, + "name": "base_fee_per_gas", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "priority_fee_per_gas", + "type_info": "Int8" + }, + { + "ordinal": 7, + "name": "confirmed_at", + "type_info": "Timestamp" + }, + { + "ordinal": 8, + "name": "signed_raw_tx", + "type_info": "Bytea" + }, + { + "ordinal": 9, + "name": "sent_at_block", + "type_info": "Int4" + }, + { + "ordinal": 10, + "name": "sent_at", + "type_info": "Timestamp" + }, + { + "ordinal": 11, + "name": "blob_base_fee_per_gas", + "type_info": "Int8" + }, + { + "ordinal": 12, + "name": "blob_sidecar", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + true, + true, + true, + true, + true, + true + ] + }, + "hash": "c02f404ce9b0f92b8052ef6f3eaabda70cb9c56ae3e30dc0a8257e43d6714155" +} diff --git a/core/lib/dal/.sqlx/query-c03df29f4661fa47c1412bd82ba379f3b2e9ff1bc6e8e38f473fb4950c8e4b77.json b/core/lib/dal/.sqlx/query-c03df29f4661fa47c1412bd82ba379f3b2e9ff1bc6e8e38f473fb4950c8e4b77.json new file mode 100644 index 000000000000..380a98bfabcf --- /dev/null +++ b/core/lib/dal/.sqlx/query-c03df29f4661fa47c1412bd82ba379f3b2e9ff1bc6e8e38f473fb4950c8e4b77.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n COUNT(*) AS \"count!\"\n FROM\n contract_verification_requests\n WHERE\n status = 'queued'\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "count!", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + null + ] + }, + "hash": "c03df29f4661fa47c1412bd82ba379f3b2e9ff1bc6e8e38f473fb4950c8e4b77" +} diff --git a/core/lib/dal/.sqlx/query-c139df45a977290d1c2c7987fb9c1d66aeaeb6e2d36fddcf96775f01716a8a74.json b/core/lib/dal/.sqlx/query-c139df45a977290d1c2c7987fb9c1d66aeaeb6e2d36fddcf96775f01716a8a74.json new file mode 100644 index 000000000000..b04fb829dd6b --- /dev/null +++ b/core/lib/dal/.sqlx/query-c139df45a977290d1c2c7987fb9c1d66aeaeb6e2d36fddcf96775f01716a8a74.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM storage_logs\n WHERE\n miniblock_number > $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [] + }, + "hash": "c139df45a977290d1c2c7987fb9c1d66aeaeb6e2d36fddcf96775f01716a8a74" +} diff --git a/core/lib/dal/.sqlx/query-c14837e92dbb02f2fde7109f524432d865852afe0c60e11a2c1800d30599aa61.json b/core/lib/dal/.sqlx/query-c14837e92dbb02f2fde7109f524432d865852afe0c60e11a2c1800d30599aa61.json new file mode 100644 index 000000000000..8cac9f31ac05 --- /dev/null +++ b/core/lib/dal/.sqlx/query-c14837e92dbb02f2fde7109f524432d865852afe0c60e11a2c1800d30599aa61.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM compiler_versions\n WHERE\n compiler = $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text" + ] + }, + "nullable": [] + }, + "hash": "c14837e92dbb02f2fde7109f524432d865852afe0c60e11a2c1800d30599aa61" +} diff --git a/core/lib/dal/.sqlx/query-c192377c08abab9306c5b0844368aa0f8525832cb4075e831c0d4b23c5675b99.json b/core/lib/dal/.sqlx/query-c192377c08abab9306c5b0844368aa0f8525832cb4075e831c0d4b23c5675b99.json new file mode 100644 index 000000000000..58c336bb8328 --- /dev/null +++ b/core/lib/dal/.sqlx/query-c192377c08abab9306c5b0844368aa0f8525832cb4075e831c0d4b23c5675b99.json @@ -0,0 +1,24 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n bytecode\n FROM\n (\n SELECT\n *\n FROM\n storage_logs\n WHERE\n storage_logs.hashed_key = $1\n AND storage_logs.miniblock_number <= $2\n ORDER BY\n storage_logs.miniblock_number DESC,\n storage_logs.operation_number DESC\n LIMIT\n 1\n ) t\n JOIN factory_deps ON value = factory_deps.bytecode_hash\n WHERE\n value != $3\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "bytecode", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Bytea", + "Int8", + "Bytea" + ] + }, + "nullable": [ + false + ] + }, + "hash": "c192377c08abab9306c5b0844368aa0f8525832cb4075e831c0d4b23c5675b99" +} diff --git a/core/lib/dal/.sqlx/query-c195037dcf6031a90f407f652657956350786f3596c7302bdeb8d813f9fbf621.json b/core/lib/dal/.sqlx/query-c195037dcf6031a90f407f652657956350786f3596c7302bdeb8d813f9fbf621.json new file mode 100644 index 000000000000..0b8a91d7bc8b --- /dev/null +++ b/core/lib/dal/.sqlx/query-c195037dcf6031a90f407f652657956350786f3596c7302bdeb8d813f9fbf621.json @@ -0,0 +1,106 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n number,\n l1_tx_count,\n l2_tx_count,\n timestamp,\n l2_to_l1_logs,\n l2_to_l1_messages,\n bloom,\n priority_ops_onchain_data,\n used_contract_hashes,\n bootloader_code_hash,\n default_aa_code_hash,\n protocol_version,\n system_logs,\n compressed_state_diffs,\n pubdata_input\n FROM\n l1_batches\n WHERE\n eth_commit_tx_id = $1\n OR eth_prove_tx_id = $1\n OR eth_execute_tx_id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "number", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "l1_tx_count", + "type_info": "Int4" + }, + { + "ordinal": 2, + "name": "l2_tx_count", + "type_info": "Int4" + }, + { + "ordinal": 3, + "name": "timestamp", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "l2_to_l1_logs", + "type_info": "ByteaArray" + }, + { + "ordinal": 5, + "name": "l2_to_l1_messages", + "type_info": "ByteaArray" + }, + { + "ordinal": 6, + "name": "bloom", + "type_info": "Bytea" + }, + { + "ordinal": 7, + "name": "priority_ops_onchain_data", + "type_info": "ByteaArray" + }, + { + "ordinal": 8, + "name": "used_contract_hashes", + "type_info": "Jsonb" + }, + { + "ordinal": 9, + "name": "bootloader_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 10, + "name": "default_aa_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 11, + "name": "protocol_version", + "type_info": "Int4" + }, + { + "ordinal": 12, + "name": "system_logs", + "type_info": "ByteaArray" + }, + { + "ordinal": 13, + "name": "compressed_state_diffs", + "type_info": "Bytea" + }, + { + "ordinal": 14, + "name": "pubdata_input", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + true, + true, + false, + true, + true + ] + }, + "hash": "c195037dcf6031a90f407f652657956350786f3596c7302bdeb8d813f9fbf621" +} diff --git a/core/lib/dal/.sqlx/query-c2fe6a5476e69c9588eec73baba9d0e2d571533d4d5f683919987b6f8cbb00e0.json b/core/lib/dal/.sqlx/query-c2fe6a5476e69c9588eec73baba9d0e2d571533d4d5f683919987b6f8cbb00e0.json new file mode 100644 index 000000000000..bdabc52d1379 --- /dev/null +++ b/core/lib/dal/.sqlx/query-c2fe6a5476e69c9588eec73baba9d0e2d571533d4d5f683919987b6f8cbb00e0.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO\n miniblocks_consensus (number, certificate)\n VALUES\n ($1, $2)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8", + "Jsonb" + ] + }, + "nullable": [] + }, + "hash": "c2fe6a5476e69c9588eec73baba9d0e2d571533d4d5f683919987b6f8cbb00e0" +} diff --git a/core/lib/dal/.sqlx/query-c36abacc705a2244d423599779e38d60d6e93bcb34fd20422e227714fccbf6b7.json b/core/lib/dal/.sqlx/query-c36abacc705a2244d423599779e38d60d6e93bcb34fd20422e227714fccbf6b7.json new file mode 100644 index 000000000000..ea4b266d8259 --- /dev/null +++ b/core/lib/dal/.sqlx/query-c36abacc705a2244d423599779e38d60d6e93bcb34fd20422e227714fccbf6b7.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n address,\n key,\n value\n FROM\n storage_logs\n WHERE\n miniblock_number BETWEEN (\n SELECT\n MIN(number)\n FROM\n miniblocks\n WHERE\n l1_batch_number = $1\n ) AND (\n SELECT\n MAX(number)\n FROM\n miniblocks\n WHERE\n l1_batch_number = $1\n )\n ORDER BY\n miniblock_number,\n operation_number\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "address", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "key", + "type_info": "Bytea" + }, + { + "ordinal": 2, + "name": "value", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + false + ] + }, + "hash": "c36abacc705a2244d423599779e38d60d6e93bcb34fd20422e227714fccbf6b7" +} diff --git a/core/lib/dal/.sqlx/query-c37432fabd092fa235fc70e11430fb28594859564a0f888eae748ad1f9fcede5.json b/core/lib/dal/.sqlx/query-c37432fabd092fa235fc70e11430fb28594859564a0f888eae748ad1f9fcede5.json new file mode 100644 index 000000000000..906cd1081403 --- /dev/null +++ b/core/lib/dal/.sqlx/query-c37432fabd092fa235fc70e11430fb28594859564a0f888eae748ad1f9fcede5.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n call_trace\n FROM\n call_traces\n INNER JOIN transactions ON tx_hash = transactions.hash\n WHERE\n transactions.miniblock_number = $1\n ORDER BY\n transactions.index_in_block\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "call_trace", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "c37432fabd092fa235fc70e11430fb28594859564a0f888eae748ad1f9fcede5" +} diff --git a/core/lib/dal/.sqlx/query-c4426ae84862e720673485e3b59c116162becce06841476128f864b6028129df.json b/core/lib/dal/.sqlx/query-c4426ae84862e720673485e3b59c116162becce06841476128f864b6028129df.json new file mode 100644 index 000000000000..4b69afd7e9cd --- /dev/null +++ b/core/lib/dal/.sqlx/query-c4426ae84862e720673485e3b59c116162becce06841476128f864b6028129df.json @@ -0,0 +1,12 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE miniblocks\n SET\n fee_account_address = (\n SELECT\n l1_batches.fee_account_address\n FROM\n l1_batches\n ORDER BY\n l1_batches.number DESC\n LIMIT\n 1\n )\n WHERE\n l1_batch_number IS NULL\n AND fee_account_address = '\\x0000000000000000000000000000000000000000'::bytea\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [] + }, + "nullable": [] + }, + "hash": "c4426ae84862e720673485e3b59c116162becce06841476128f864b6028129df" +} diff --git a/core/lib/dal/.sqlx/query-c5656667e5610ffb33e7b977ac92b7c4d79cbd404e0267794ec203df0cbb169d.json b/core/lib/dal/.sqlx/query-c5656667e5610ffb33e7b977ac92b7c4d79cbd404e0267794ec203df0cbb169d.json new file mode 100644 index 000000000000..34bff9031943 --- /dev/null +++ b/core/lib/dal/.sqlx/query-c5656667e5610ffb33e7b977ac92b7c4d79cbd404e0267794ec203df0cbb169d.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n COALESCE(MAX(number), 0) AS \"number!\"\n FROM\n l1_batches\n WHERE\n eth_prove_tx_id IS NOT NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "number!", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + null + ] + }, + "hash": "c5656667e5610ffb33e7b977ac92b7c4d79cbd404e0267794ec203df0cbb169d" +} diff --git a/core/lib/dal/.sqlx/query-c6d523c6ae857022318350a2f210d7eaeeb4549ed59b58f8d984be2a22a80355.json b/core/lib/dal/.sqlx/query-c6d523c6ae857022318350a2f210d7eaeeb4549ed59b58f8d984be2a22a80355.json new file mode 100644 index 000000000000..ebae1f42fbbb --- /dev/null +++ b/core/lib/dal/.sqlx/query-c6d523c6ae857022318350a2f210d7eaeeb4549ed59b58f8d984be2a22a80355.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n MAX(l1_batches.number)\n FROM\n l1_batches\n JOIN eth_txs ON (l1_batches.eth_commit_tx_id = eth_txs.id)\n JOIN eth_txs_history AS commit_tx ON (eth_txs.confirmed_eth_tx_history_id = commit_tx.id)\n WHERE\n commit_tx.confirmed_at IS NOT NULL\n AND eth_prove_tx_id IS NOT NULL\n AND eth_execute_tx_id IS NULL\n AND EXTRACT(\n epoch\n FROM\n commit_tx.confirmed_at\n ) < $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "max", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Numeric" + ] + }, + "nullable": [ + null + ] + }, + "hash": "c6d523c6ae857022318350a2f210d7eaeeb4549ed59b58f8d984be2a22a80355" +} diff --git a/core/lib/dal/.sqlx/query-c809f42a221b18a767e9dd0286503d8bd356f2f9cc249cd8b90caa5a8b5918e3.json b/core/lib/dal/.sqlx/query-c809f42a221b18a767e9dd0286503d8bd356f2f9cc249cd8b90caa5a8b5918e3.json new file mode 100644 index 000000000000..b85f4c542bf8 --- /dev/null +++ b/core/lib/dal/.sqlx/query-c809f42a221b18a767e9dd0286503d8bd356f2f9cc249cd8b90caa5a8b5918e3.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n COUNT(*) AS \"count!\"\n FROM\n (\n SELECT\n *\n FROM\n storage_logs\n WHERE\n storage_logs.hashed_key = $1\n ORDER BY\n storage_logs.miniblock_number DESC,\n storage_logs.operation_number DESC\n LIMIT\n 1\n ) sl\n WHERE\n sl.value != $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "count!", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Bytea", + "Bytea" + ] + }, + "nullable": [ + null + ] + }, + "hash": "c809f42a221b18a767e9dd0286503d8bd356f2f9cc249cd8b90caa5a8b5918e3" +} diff --git a/core/lib/dal/.sqlx/query-c8155c4e4701fc771918ac1bb4d16f8cc32e365e2ffbd17dc99885de427f2777.json b/core/lib/dal/.sqlx/query-c8155c4e4701fc771918ac1bb4d16f8cc32e365e2ffbd17dc99885de427f2777.json new file mode 100644 index 000000000000..78582f6242b4 --- /dev/null +++ b/core/lib/dal/.sqlx/query-c8155c4e4701fc771918ac1bb4d16f8cc32e365e2ffbd17dc99885de427f2777.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n timestamp\n FROM\n miniblocks\n WHERE\n l1_batch_number = $1\n ORDER BY\n number\n LIMIT\n 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "timestamp", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "c8155c4e4701fc771918ac1bb4d16f8cc32e365e2ffbd17dc99885de427f2777" +} diff --git a/core/lib/dal/.sqlx/query-c9e05ebc7b61c1f409c330bc110bed26c831730944237b74bed98869c83b3ca5.json b/core/lib/dal/.sqlx/query-c9e05ebc7b61c1f409c330bc110bed26c831730944237b74bed98869c83b3ca5.json new file mode 100644 index 000000000000..433564c6ae05 --- /dev/null +++ b/core/lib/dal/.sqlx/query-c9e05ebc7b61c1f409c330bc110bed26c831730944237b74bed98869c83b3ca5.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n (\n SELECT\n l1_batch_number\n FROM\n miniblocks\n WHERE\n number = $1\n ) AS \"block_batch?\",\n COALESCE(\n (\n SELECT\n MAX(number) + 1\n FROM\n l1_batches\n ),\n (\n SELECT\n MAX(l1_batch_number) + 1\n FROM\n snapshot_recovery\n ),\n 0\n ) AS \"pending_batch!\"\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "block_batch?", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "pending_batch!", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + null, + null + ] + }, + "hash": "c9e05ebc7b61c1f409c330bc110bed26c831730944237b74bed98869c83b3ca5" +} diff --git a/core/lib/dal/.sqlx/query-cb0a9f6137fb6bee5d17d644714b3b22ea2cd184932fcd59f5931239c7a78003.json b/core/lib/dal/.sqlx/query-cb0a9f6137fb6bee5d17d644714b3b22ea2cd184932fcd59f5931239c7a78003.json new file mode 100644 index 000000000000..d2da8dff92c8 --- /dev/null +++ b/core/lib/dal/.sqlx/query-cb0a9f6137fb6bee5d17d644714b3b22ea2cd184932fcd59f5931239c7a78003.json @@ -0,0 +1,94 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n eth_txs_history.*,\n eth_txs.blob_sidecar\n FROM\n eth_txs_history\n LEFT JOIN eth_txs ON eth_tx_id = eth_txs.id\n WHERE\n eth_tx_id = $1\n ORDER BY\n eth_txs_history.created_at DESC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "eth_tx_id", + "type_info": "Int4" + }, + { + "ordinal": 2, + "name": "tx_hash", + "type_info": "Text" + }, + { + "ordinal": 3, + "name": "created_at", + "type_info": "Timestamp" + }, + { + "ordinal": 4, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 5, + "name": "base_fee_per_gas", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "priority_fee_per_gas", + "type_info": "Int8" + }, + { + "ordinal": 7, + "name": "confirmed_at", + "type_info": "Timestamp" + }, + { + "ordinal": 8, + "name": "signed_raw_tx", + "type_info": "Bytea" + }, + { + "ordinal": 9, + "name": "sent_at_block", + "type_info": "Int4" + }, + { + "ordinal": 10, + "name": "sent_at", + "type_info": "Timestamp" + }, + { + "ordinal": 11, + "name": "blob_base_fee_per_gas", + "type_info": "Int8" + }, + { + "ordinal": 12, + "name": "blob_sidecar", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + true, + true, + true, + true, + true, + true + ] + }, + "hash": "cb0a9f6137fb6bee5d17d644714b3b22ea2cd184932fcd59f5931239c7a78003" +} diff --git a/core/lib/dal/.sqlx/query-cb98d84fc34af1e4a4c2f427c5bb4afd384063ae394a847b26304dd18d490ab4.json b/core/lib/dal/.sqlx/query-cb98d84fc34af1e4a4c2f427c5bb4afd384063ae394a847b26304dd18d490ab4.json new file mode 100644 index 000000000000..732992595c73 --- /dev/null +++ b/core/lib/dal/.sqlx/query-cb98d84fc34af1e4a4c2f427c5bb4afd384063ae394a847b26304dd18d490ab4.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n timestamp,\n hash\n FROM\n l1_batches\n WHERE\n number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "timestamp", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "hash", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + true + ] + }, + "hash": "cb98d84fc34af1e4a4c2f427c5bb4afd384063ae394a847b26304dd18d490ab4" +} diff --git a/core/lib/dal/.sqlx/query-cea366a9d0da60bf03c71be26862929e051270056ebf113a657a464f89c7fd57.json b/core/lib/dal/.sqlx/query-cea366a9d0da60bf03c71be26862929e051270056ebf113a657a464f89c7fd57.json new file mode 100644 index 000000000000..da21c126347f --- /dev/null +++ b/core/lib/dal/.sqlx/query-cea366a9d0da60bf03c71be26862929e051270056ebf113a657a464f89c7fd57.json @@ -0,0 +1,33 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO\n l1_batches (\n number,\n l1_tx_count,\n l2_tx_count,\n timestamp,\n l2_to_l1_logs,\n l2_to_l1_messages,\n bloom,\n priority_ops_onchain_data,\n predicted_commit_gas_cost,\n predicted_prove_gas_cost,\n predicted_execute_gas_cost,\n initial_bootloader_heap_content,\n used_contract_hashes,\n bootloader_code_hash,\n default_aa_code_hash,\n protocol_version,\n system_logs,\n storage_refunds,\n pubdata_input,\n predicted_circuits_by_type,\n created_at,\n updated_at\n )\n VALUES\n (\n $1,\n $2,\n $3,\n $4,\n $5,\n $6,\n $7,\n $8,\n $9,\n $10,\n $11,\n $12,\n $13,\n $14,\n $15,\n $16,\n $17,\n $18,\n $19,\n $20,\n NOW(),\n NOW()\n )\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8", + "Int4", + "Int4", + "Int8", + "ByteaArray", + "ByteaArray", + "Bytea", + "ByteaArray", + "Int8", + "Int8", + "Int8", + "Jsonb", + "Jsonb", + "Bytea", + "Bytea", + "Int4", + "ByteaArray", + "Int8Array", + "Bytea", + "Jsonb" + ] + }, + "nullable": [] + }, + "hash": "cea366a9d0da60bf03c71be26862929e051270056ebf113a657a464f89c7fd57" +} diff --git a/core/lib/dal/.sqlx/query-cea9fe027a6a0ada827f23b48ac32432295b2f7ee40bf13522a6edbd236f1970.json b/core/lib/dal/.sqlx/query-cea9fe027a6a0ada827f23b48ac32432295b2f7ee40bf13522a6edbd236f1970.json new file mode 100644 index 000000000000..b1eae968a897 --- /dev/null +++ b/core/lib/dal/.sqlx/query-cea9fe027a6a0ada827f23b48ac32432295b2f7ee40bf13522a6edbd236f1970.json @@ -0,0 +1,29 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n u.hashed_key AS \"hashed_key!\",\n (\n SELECT\n value\n FROM\n storage_logs\n WHERE\n hashed_key = u.hashed_key\n AND miniblock_number <= $2\n ORDER BY\n miniblock_number DESC,\n operation_number DESC\n LIMIT\n 1\n ) AS \"value?\"\n FROM\n UNNEST($1::bytea[]) AS u (hashed_key)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "hashed_key!", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "value?", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "ByteaArray", + "Int8" + ] + }, + "nullable": [ + null, + null + ] + }, + "hash": "cea9fe027a6a0ada827f23b48ac32432295b2f7ee40bf13522a6edbd236f1970" +} diff --git a/core/lib/dal/.sqlx/query-d14b52df2cd9f9e484c60ba00383b438f14b68535111cf2cedd363fc646aac99.json b/core/lib/dal/.sqlx/query-d14b52df2cd9f9e484c60ba00383b438f14b68535111cf2cedd363fc646aac99.json new file mode 100644 index 000000000000..0370a63d65e3 --- /dev/null +++ b/core/lib/dal/.sqlx/query-d14b52df2cd9f9e484c60ba00383b438f14b68535111cf2cedd363fc646aac99.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n timestamp\n FROM\n l1_batches\n WHERE\n eth_commit_tx_id IS NULL\n AND number > 0\n ORDER BY\n number\n LIMIT\n 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "timestamp", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false + ] + }, + "hash": "d14b52df2cd9f9e484c60ba00383b438f14b68535111cf2cedd363fc646aac99" +} diff --git a/core/lib/dal/.sqlx/query-d3b09cbcddf6238b358d32d57678242aad3e9a47400f6d6837a35f4c54a216b9.json b/core/lib/dal/.sqlx/query-d3b09cbcddf6238b358d32d57678242aad3e9a47400f6d6837a35f4c54a216b9.json new file mode 100644 index 000000000000..8770a9b596ea --- /dev/null +++ b/core/lib/dal/.sqlx/query-d3b09cbcddf6238b358d32d57678242aad3e9a47400f6d6837a35f4c54a216b9.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n number\n FROM\n l1_batches\n LEFT JOIN eth_txs_history AS execute_tx ON (l1_batches.eth_execute_tx_id = execute_tx.eth_tx_id)\n WHERE\n execute_tx.confirmed_at IS NOT NULL\n ORDER BY\n number DESC\n LIMIT\n 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "number", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false + ] + }, + "hash": "d3b09cbcddf6238b358d32d57678242aad3e9a47400f6d6837a35f4c54a216b9" +} diff --git a/core/lib/dal/.sqlx/query-d3f9202d665ef4fcb028dae6484253eb340a21afd7d65ce6d2f523aeded8dfc0.json b/core/lib/dal/.sqlx/query-d3f9202d665ef4fcb028dae6484253eb340a21afd7d65ce6d2f523aeded8dfc0.json new file mode 100644 index 000000000000..469c338969df --- /dev/null +++ b/core/lib/dal/.sqlx/query-d3f9202d665ef4fcb028dae6484253eb340a21afd7d65ce6d2f523aeded8dfc0.json @@ -0,0 +1,29 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n number,\n hash\n FROM\n miniblocks\n WHERE\n number BETWEEN $1 AND $2\n ORDER BY\n number\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "number", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "hash", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int8" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "d3f9202d665ef4fcb028dae6484253eb340a21afd7d65ce6d2f523aeded8dfc0" +} diff --git a/core/lib/dal/.sqlx/query-d6b70256793417a949081899eccf75260c7afaf110870656061a04079c35c2d8.json b/core/lib/dal/.sqlx/query-d6b70256793417a949081899eccf75260c7afaf110870656061a04079c35c2d8.json new file mode 100644 index 000000000000..c116d2d7de6e --- /dev/null +++ b/core/lib/dal/.sqlx/query-d6b70256793417a949081899eccf75260c7afaf110870656061a04079c35c2d8.json @@ -0,0 +1,55 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n storage_logs.key AS \"key!\",\n storage_logs.value AS \"value!\",\n storage_logs.address AS \"address!\",\n storage_logs.miniblock_number AS \"miniblock_number!\",\n initial_writes.l1_batch_number AS \"l1_batch_number!\",\n initial_writes.index\n FROM\n (\n SELECT\n hashed_key,\n MAX(ARRAY[miniblock_number, operation_number]::INT[]) AS op\n FROM\n storage_logs\n WHERE\n miniblock_number <= $1\n AND hashed_key >= $3\n AND hashed_key <= $4\n GROUP BY\n hashed_key\n ORDER BY\n hashed_key\n ) AS keys\n INNER JOIN storage_logs ON keys.hashed_key = storage_logs.hashed_key\n AND storage_logs.miniblock_number = keys.op[1]\n AND storage_logs.operation_number = keys.op[2]\n INNER JOIN initial_writes ON keys.hashed_key = initial_writes.hashed_key\n WHERE\n initial_writes.l1_batch_number <= $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "key!", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "value!", + "type_info": "Bytea" + }, + { + "ordinal": 2, + "name": "address!", + "type_info": "Bytea" + }, + { + "ordinal": 3, + "name": "miniblock_number!", + "type_info": "Int8" + }, + { + "ordinal": 4, + "name": "l1_batch_number!", + "type_info": "Int8" + }, + { + "ordinal": 5, + "name": "index", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int8", + "Bytea", + "Bytea" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false + ] + }, + "hash": "d6b70256793417a949081899eccf75260c7afaf110870656061a04079c35c2d8" +} diff --git a/core/lib/dal/.sqlx/query-d70cfc158e31dd2d5c942d24f81fd17f833fb15b58b0110c7cc566946db98e76.json b/core/lib/dal/.sqlx/query-d70cfc158e31dd2d5c942d24f81fd17f833fb15b58b0110c7cc566946db98e76.json new file mode 100644 index 000000000000..bff9c151373f --- /dev/null +++ b/core/lib/dal/.sqlx/query-d70cfc158e31dd2d5c942d24f81fd17f833fb15b58b0110c7cc566946db98e76.json @@ -0,0 +1,94 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH\n events_select AS (\n SELECT\n address,\n topic1,\n topic2,\n topic3,\n topic4,\n value,\n miniblock_number,\n tx_hash,\n tx_index_in_block,\n event_index_in_block,\n event_index_in_tx\n FROM\n events\n WHERE\n miniblock_number > $1\n ORDER BY\n miniblock_number ASC,\n event_index_in_block ASC\n )\n SELECT\n miniblocks.hash AS \"block_hash?\",\n address AS \"address!\",\n topic1 AS \"topic1!\",\n topic2 AS \"topic2!\",\n topic3 AS \"topic3!\",\n topic4 AS \"topic4!\",\n value AS \"value!\",\n miniblock_number AS \"miniblock_number!\",\n miniblocks.l1_batch_number AS \"l1_batch_number?\",\n tx_hash AS \"tx_hash!\",\n tx_index_in_block AS \"tx_index_in_block!\",\n event_index_in_block AS \"event_index_in_block!\",\n event_index_in_tx AS \"event_index_in_tx!\"\n FROM\n events_select\n INNER JOIN miniblocks ON events_select.miniblock_number = miniblocks.number\n ORDER BY\n miniblock_number ASC,\n event_index_in_block ASC\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "block_hash?", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "address!", + "type_info": "Bytea" + }, + { + "ordinal": 2, + "name": "topic1!", + "type_info": "Bytea" + }, + { + "ordinal": 3, + "name": "topic2!", + "type_info": "Bytea" + }, + { + "ordinal": 4, + "name": "topic3!", + "type_info": "Bytea" + }, + { + "ordinal": 5, + "name": "topic4!", + "type_info": "Bytea" + }, + { + "ordinal": 6, + "name": "value!", + "type_info": "Bytea" + }, + { + "ordinal": 7, + "name": "miniblock_number!", + "type_info": "Int8" + }, + { + "ordinal": 8, + "name": "l1_batch_number?", + "type_info": "Int8" + }, + { + "ordinal": 9, + "name": "tx_hash!", + "type_info": "Bytea" + }, + { + "ordinal": 10, + "name": "tx_index_in_block!", + "type_info": "Int4" + }, + { + "ordinal": 11, + "name": "event_index_in_block!", + "type_info": "Int4" + }, + { + "ordinal": 12, + "name": "event_index_in_tx!", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false + ] + }, + "hash": "d70cfc158e31dd2d5c942d24f81fd17f833fb15b58b0110c7cc566946db98e76" +} diff --git a/core/lib/dal/.sqlx/query-d712707e47e143c52330ea6e0513d2839f0f928c06b8020eecec38e895f99b42.json b/core/lib/dal/.sqlx/query-d712707e47e143c52330ea6e0513d2839f0f928c06b8020eecec38e895f99b42.json new file mode 100644 index 000000000000..362a4a9b83da --- /dev/null +++ b/core/lib/dal/.sqlx/query-d712707e47e143c52330ea6e0513d2839f0f928c06b8020eecec38e895f99b42.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n address,\n key\n FROM\n protective_reads\n WHERE\n l1_batch_number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "address", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "key", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "d712707e47e143c52330ea6e0513d2839f0f928c06b8020eecec38e895f99b42" +} diff --git a/core/lib/dal/.sqlx/query-d7ed82f0d012f72374edb2ebcec33c83477d65a6f8cb2673f67b3148cd95b436.json b/core/lib/dal/.sqlx/query-d7ed82f0d012f72374edb2ebcec33c83477d65a6f8cb2673f67b3148cd95b436.json new file mode 100644 index 000000000000..c415e3d33ce4 --- /dev/null +++ b/core/lib/dal/.sqlx/query-d7ed82f0d012f72374edb2ebcec33c83477d65a6f8cb2673f67b3148cd95b436.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n COUNT(*)\n FROM\n eth_txs\n WHERE\n has_failed = TRUE\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "count", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + null + ] + }, + "hash": "d7ed82f0d012f72374edb2ebcec33c83477d65a6f8cb2673f67b3148cd95b436" +} diff --git a/core/lib/dal/.sqlx/query-da51a5220c2b964303292592c34e8ee5e54b170de9da863bbdbc79e3f206640b.json b/core/lib/dal/.sqlx/query-da51a5220c2b964303292592c34e8ee5e54b170de9da863bbdbc79e3f206640b.json new file mode 100644 index 000000000000..9c24f8706454 --- /dev/null +++ b/core/lib/dal/.sqlx/query-da51a5220c2b964303292592c34e8ee5e54b170de9da863bbdbc79e3f206640b.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM storage\n WHERE\n hashed_key = ANY ($1)\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "ByteaArray" + ] + }, + "nullable": [] + }, + "hash": "da51a5220c2b964303292592c34e8ee5e54b170de9da863bbdbc79e3f206640b" +} diff --git a/core/lib/dal/.sqlx/query-da72486421d60d3d633e19632a8c66fc73c2d4f35a5dc40e117903dba4e7edb2.json b/core/lib/dal/.sqlx/query-da72486421d60d3d633e19632a8c66fc73c2d4f35a5dc40e117903dba4e7edb2.json new file mode 100644 index 000000000000..2481edec2e5a --- /dev/null +++ b/core/lib/dal/.sqlx/query-da72486421d60d3d633e19632a8c66fc73c2d4f35a5dc40e117903dba4e7edb2.json @@ -0,0 +1,205 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n number,\n l1_batches.timestamp,\n l1_tx_count,\n l2_tx_count,\n bloom,\n priority_ops_onchain_data,\n hash,\n commitment,\n eth_prove_tx_id,\n eth_commit_tx_id,\n eth_execute_tx_id,\n merkle_root_hash,\n l2_to_l1_logs,\n l2_to_l1_messages,\n used_contract_hashes,\n compressed_initial_writes,\n compressed_repeated_writes,\n l2_l1_merkle_root,\n rollup_last_leaf_index,\n zkporter_is_available,\n l1_batches.bootloader_code_hash,\n l1_batches.default_aa_code_hash,\n aux_data_hash,\n pass_through_data_hash,\n meta_parameters_hash,\n protocol_version,\n compressed_state_diffs,\n system_logs,\n events_queue_commitment,\n bootloader_initial_content_commitment,\n pubdata_input\n FROM\n l1_batches\n LEFT JOIN commitments ON commitments.l1_batch_number = l1_batches.number\n JOIN protocol_versions ON protocol_versions.id = l1_batches.protocol_version\n WHERE\n eth_commit_tx_id IS NULL\n AND number != 0\n AND protocol_versions.bootloader_code_hash = $1\n AND protocol_versions.default_account_code_hash = $2\n AND commitment IS NOT NULL\n AND (\n protocol_versions.id = $3\n OR protocol_versions.upgrade_tx_hash IS NULL\n )\n ORDER BY\n number\n LIMIT\n $4\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "number", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "timestamp", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "l1_tx_count", + "type_info": "Int4" + }, + { + "ordinal": 3, + "name": "l2_tx_count", + "type_info": "Int4" + }, + { + "ordinal": 4, + "name": "bloom", + "type_info": "Bytea" + }, + { + "ordinal": 5, + "name": "priority_ops_onchain_data", + "type_info": "ByteaArray" + }, + { + "ordinal": 6, + "name": "hash", + "type_info": "Bytea" + }, + { + "ordinal": 7, + "name": "commitment", + "type_info": "Bytea" + }, + { + "ordinal": 8, + "name": "eth_prove_tx_id", + "type_info": "Int4" + }, + { + "ordinal": 9, + "name": "eth_commit_tx_id", + "type_info": "Int4" + }, + { + "ordinal": 10, + "name": "eth_execute_tx_id", + "type_info": "Int4" + }, + { + "ordinal": 11, + "name": "merkle_root_hash", + "type_info": "Bytea" + }, + { + "ordinal": 12, + "name": "l2_to_l1_logs", + "type_info": "ByteaArray" + }, + { + "ordinal": 13, + "name": "l2_to_l1_messages", + "type_info": "ByteaArray" + }, + { + "ordinal": 14, + "name": "used_contract_hashes", + "type_info": "Jsonb" + }, + { + "ordinal": 15, + "name": "compressed_initial_writes", + "type_info": "Bytea" + }, + { + "ordinal": 16, + "name": "compressed_repeated_writes", + "type_info": "Bytea" + }, + { + "ordinal": 17, + "name": "l2_l1_merkle_root", + "type_info": "Bytea" + }, + { + "ordinal": 18, + "name": "rollup_last_leaf_index", + "type_info": "Int8" + }, + { + "ordinal": 19, + "name": "zkporter_is_available", + "type_info": "Bool" + }, + { + "ordinal": 20, + "name": "bootloader_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 21, + "name": "default_aa_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 22, + "name": "aux_data_hash", + "type_info": "Bytea" + }, + { + "ordinal": 23, + "name": "pass_through_data_hash", + "type_info": "Bytea" + }, + { + "ordinal": 24, + "name": "meta_parameters_hash", + "type_info": "Bytea" + }, + { + "ordinal": 25, + "name": "protocol_version", + "type_info": "Int4" + }, + { + "ordinal": 26, + "name": "compressed_state_diffs", + "type_info": "Bytea" + }, + { + "ordinal": 27, + "name": "system_logs", + "type_info": "ByteaArray" + }, + { + "ordinal": 28, + "name": "events_queue_commitment", + "type_info": "Bytea" + }, + { + "ordinal": 29, + "name": "bootloader_initial_content_commitment", + "type_info": "Bytea" + }, + { + "ordinal": 30, + "name": "pubdata_input", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Bytea", + "Bytea", + "Int4", + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + true, + true, + true, + true, + true, + true, + false, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true + ] + }, + "hash": "da72486421d60d3d633e19632a8c66fc73c2d4f35a5dc40e117903dba4e7edb2" +} diff --git a/core/lib/dal/.sqlx/query-b0c89a492fcedc74a52370ad44ca300bf2720c48886d7ae00a253a4975d7efee.json b/core/lib/dal/.sqlx/query-db41e2480bdef66e1c89347402418128cae1b40ea2ee34b9d5269c12f8b5738a.json similarity index 67% rename from core/lib/dal/.sqlx/query-b0c89a492fcedc74a52370ad44ca300bf2720c48886d7ae00a253a4975d7efee.json rename to core/lib/dal/.sqlx/query-db41e2480bdef66e1c89347402418128cae1b40ea2ee34b9d5269c12f8b5738a.json index 3557c17a0dc9..11404965d99b 100644 --- a/core/lib/dal/.sqlx/query-b0c89a492fcedc74a52370ad44ca300bf2720c48886d7ae00a253a4975d7efee.json +++ b/core/lib/dal/.sqlx/query-db41e2480bdef66e1c89347402418128cae1b40ea2ee34b9d5269c12f8b5738a.json @@ -1,6 +1,6 @@ { "db_name": "PostgreSQL", - "query": "\n SELECT\n number,\n timestamp,\n l1_tx_count,\n l2_tx_count,\n bloom,\n priority_ops_onchain_data,\n hash,\n commitment,\n eth_prove_tx_id,\n eth_commit_tx_id,\n eth_execute_tx_id,\n merkle_root_hash,\n l2_to_l1_logs,\n l2_to_l1_messages,\n used_contract_hashes,\n compressed_initial_writes,\n compressed_repeated_writes,\n l2_l1_merkle_root,\n rollup_last_leaf_index,\n zkporter_is_available,\n bootloader_code_hash,\n default_aa_code_hash,\n aux_data_hash,\n pass_through_data_hash,\n meta_parameters_hash,\n protocol_version,\n compressed_state_diffs,\n system_logs,\n events_queue_commitment,\n bootloader_initial_content_commitment,\n pubdata_input\n FROM\n l1_batches\n LEFT JOIN commitments ON commitments.l1_batch_number = l1_batches.number\n JOIN eth_txs_history ON eth_commit_tx_id = eth_tx_id\n WHERE\n eth_commit_tx_id IS NOT NULL\n AND eth_prove_tx_id IS NULL\n AND confirmed_at IS NOT NULL\n ORDER BY\n number\n LIMIT\n $1\n ", + "query": "\n SELECT\n number,\n timestamp,\n l1_tx_count,\n l2_tx_count,\n bloom,\n priority_ops_onchain_data,\n hash,\n commitment,\n eth_prove_tx_id,\n eth_commit_tx_id,\n eth_execute_tx_id,\n merkle_root_hash,\n l2_to_l1_logs,\n l2_to_l1_messages,\n used_contract_hashes,\n compressed_initial_writes,\n compressed_repeated_writes,\n l2_l1_merkle_root,\n rollup_last_leaf_index,\n zkporter_is_available,\n bootloader_code_hash,\n default_aa_code_hash,\n aux_data_hash,\n pass_through_data_hash,\n meta_parameters_hash,\n protocol_version,\n system_logs,\n compressed_state_diffs,\n events_queue_commitment,\n bootloader_initial_content_commitment,\n pubdata_input\n FROM\n l1_batches\n LEFT JOIN commitments ON commitments.l1_batch_number = l1_batches.number\n WHERE\n number = $1\n ", "describe": { "columns": [ { @@ -135,13 +135,13 @@ }, { "ordinal": 26, - "name": "compressed_state_diffs", - "type_info": "Bytea" + "name": "system_logs", + "type_info": "ByteaArray" }, { "ordinal": 27, - "name": "system_logs", - "type_info": "ByteaArray" + "name": "compressed_state_diffs", + "type_info": "Bytea" }, { "ordinal": 28, @@ -191,12 +191,12 @@ true, true, true, - true, false, true, true, + true, true ] }, - "hash": "b0c89a492fcedc74a52370ad44ca300bf2720c48886d7ae00a253a4975d7efee" + "hash": "db41e2480bdef66e1c89347402418128cae1b40ea2ee34b9d5269c12f8b5738a" } diff --git a/core/lib/dal/.sqlx/query-93725851350146c6ec253a59af598fa893dbc9654d15753e4a538f021af67b60.json b/core/lib/dal/.sqlx/query-dc16d0fac093a52480b66dfcb5976fb01e6629e8c982c265f2af1d5000090572.json similarity index 50% rename from core/lib/dal/.sqlx/query-93725851350146c6ec253a59af598fa893dbc9654d15753e4a538f021af67b60.json rename to core/lib/dal/.sqlx/query-dc16d0fac093a52480b66dfcb5976fb01e6629e8c982c265f2af1d5000090572.json index 80788846fe69..9669622f5cf2 100644 --- a/core/lib/dal/.sqlx/query-93725851350146c6ec253a59af598fa893dbc9654d15753e4a538f021af67b60.json +++ b/core/lib/dal/.sqlx/query-dc16d0fac093a52480b66dfcb5976fb01e6629e8c982c265f2af1d5000090572.json @@ -1,11 +1,11 @@ { "db_name": "PostgreSQL", - "query": "SELECT nonce FROM eth_txs WHERE from_addr IS NULL ORDER BY id DESC LIMIT 1", + "query": "SELECT COUNT(miniblocks.number) FROM miniblocks WHERE l1_batch_number IS NULL", "describe": { "columns": [ { "ordinal": 0, - "name": "nonce", + "name": "count", "type_info": "Int8" } ], @@ -13,8 +13,8 @@ "Left": [] }, "nullable": [ - false + null ] }, - "hash": "93725851350146c6ec253a59af598fa893dbc9654d15753e4a538f021af67b60" + "hash": "dc16d0fac093a52480b66dfcb5976fb01e6629e8c982c265f2af1d5000090572" } diff --git a/core/lib/dal/.sqlx/query-dc481f59aae632ff6f5fa23f5c5c82627a936f7ea9f6c354eca4bea76fac6b10.json b/core/lib/dal/.sqlx/query-dc481f59aae632ff6f5fa23f5c5c82627a936f7ea9f6c354eca4bea76fac6b10.json new file mode 100644 index 000000000000..77263c2a4dd7 --- /dev/null +++ b/core/lib/dal/.sqlx/query-dc481f59aae632ff6f5fa23f5c5c82627a936f7ea9f6c354eca4bea76fac6b10.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n MAX(number) AS \"number\"\n FROM\n l1_batches\n WHERE\n hash IS NOT NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "number", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + null + ] + }, + "hash": "dc481f59aae632ff6f5fa23f5c5c82627a936f7ea9f6c354eca4bea76fac6b10" +} diff --git a/core/lib/dal/.sqlx/query-dd55e46dfa5ba3692d9620088a3550b8db817630d1a9341db4a1f453f12e64fb.json b/core/lib/dal/.sqlx/query-dd55e46dfa5ba3692d9620088a3550b8db817630d1a9341db4a1f453f12e64fb.json new file mode 100644 index 000000000000..70449a85ea4b --- /dev/null +++ b/core/lib/dal/.sqlx/query-dd55e46dfa5ba3692d9620088a3550b8db817630d1a9341db4a1f453f12e64fb.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n status,\n error,\n compilation_errors\n FROM\n contract_verification_requests\n WHERE\n id = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "status", + "type_info": "Text" + }, + { + "ordinal": 1, + "name": "error", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "compilation_errors", + "type_info": "Jsonb" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + true, + true + ] + }, + "hash": "dd55e46dfa5ba3692d9620088a3550b8db817630d1a9341db4a1f453f12e64fb" +} diff --git a/core/lib/dal/.sqlx/query-de3a5a35b111bd831bebe6d9391bf58b311d81c5fc0a6fbaccf204976f76f378.json b/core/lib/dal/.sqlx/query-de3a5a35b111bd831bebe6d9391bf58b311d81c5fc0a6fbaccf204976f76f378.json new file mode 100644 index 000000000000..de753a93926f --- /dev/null +++ b/core/lib/dal/.sqlx/query-de3a5a35b111bd831bebe6d9391bf58b311d81c5fc0a6fbaccf204976f76f378.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n l2_address\n FROM\n tokens\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "l2_address", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false + ] + }, + "hash": "de3a5a35b111bd831bebe6d9391bf58b311d81c5fc0a6fbaccf204976f76f378" +} diff --git a/core/lib/dal/.sqlx/query-dea22358feed1418430505767d03aa4239d3a8be71b47178b4b8fb11fe898b31.json b/core/lib/dal/.sqlx/query-dea22358feed1418430505767d03aa4239d3a8be71b47178b4b8fb11fe898b31.json new file mode 100644 index 000000000000..ef070554c2fd --- /dev/null +++ b/core/lib/dal/.sqlx/query-dea22358feed1418430505767d03aa4239d3a8be71b47178b4b8fb11fe898b31.json @@ -0,0 +1,16 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE l1_batches\n SET\n eth_execute_tx_id = $1,\n updated_at = NOW()\n WHERE\n number BETWEEN $2 AND $3\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int4", + "Int8", + "Int8" + ] + }, + "nullable": [] + }, + "hash": "dea22358feed1418430505767d03aa4239d3a8be71b47178b4b8fb11fe898b31" +} diff --git a/core/lib/dal/.sqlx/query-df3256c012f86a9cd3b9260b97be5c6feb8059722149a747c4b6bd46731e2536.json b/core/lib/dal/.sqlx/query-df3256c012f86a9cd3b9260b97be5c6feb8059722149a747c4b6bd46731e2536.json new file mode 100644 index 000000000000..552b6ab2cc8e --- /dev/null +++ b/core/lib/dal/.sqlx/query-df3256c012f86a9cd3b9260b97be5c6feb8059722149a747c4b6bd46731e2536.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n COUNT(*) AS \"count!\"\n FROM\n l1_batches\n WHERE\n number = $1\n AND hash = $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "count!", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Int8", + "Bytea" + ] + }, + "nullable": [ + null + ] + }, + "hash": "df3256c012f86a9cd3b9260b97be5c6feb8059722149a747c4b6bd46731e2536" +} diff --git a/core/lib/dal/.sqlx/query-e073cfdc7a00559994ce04eca15f35d55901fb1e6805f23413ea43e3637540a0.json b/core/lib/dal/.sqlx/query-e073cfdc7a00559994ce04eca15f35d55901fb1e6805f23413ea43e3637540a0.json new file mode 100644 index 000000000000..929e4de8c1b3 --- /dev/null +++ b/core/lib/dal/.sqlx/query-e073cfdc7a00559994ce04eca15f35d55901fb1e6805f23413ea43e3637540a0.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n bytecode,\n bytecode_hash\n FROM\n factory_deps\n WHERE\n bytecode_hash = ANY ($1)\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "bytecode", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "bytecode_hash", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "ByteaArray" + ] + }, + "nullable": [ + false, + false + ] + }, + "hash": "e073cfdc7a00559994ce04eca15f35d55901fb1e6805f23413ea43e3637540a0" +} diff --git a/core/lib/dal/.sqlx/query-e5a90d17b2c25744df4585b53678c7ffd9a04eae27afbdf37a6ba8ff7ac85f3b.json b/core/lib/dal/.sqlx/query-e5a90d17b2c25744df4585b53678c7ffd9a04eae27afbdf37a6ba8ff7ac85f3b.json new file mode 100644 index 000000000000..5606beb7123e --- /dev/null +++ b/core/lib/dal/.sqlx/query-e5a90d17b2c25744df4585b53678c7ffd9a04eae27afbdf37a6ba8ff7ac85f3b.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n serialized_events_queue\n FROM\n events_queue\n WHERE\n l1_batch_number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "serialized_events_queue", + "type_info": "Jsonb" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "e5a90d17b2c25744df4585b53678c7ffd9a04eae27afbdf37a6ba8ff7ac85f3b" +} diff --git a/core/lib/dal/.sqlx/query-e7d47990db585af7cbf096155babe152ead3d4a7f22bc3584803288e8d639c13.json b/core/lib/dal/.sqlx/query-e7d47990db585af7cbf096155babe152ead3d4a7f22bc3584803288e8d639c13.json new file mode 100644 index 000000000000..d749fe4facd3 --- /dev/null +++ b/core/lib/dal/.sqlx/query-e7d47990db585af7cbf096155babe152ead3d4a7f22bc3584803288e8d639c13.json @@ -0,0 +1,203 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n number,\n timestamp,\n l1_tx_count,\n l2_tx_count,\n bloom,\n priority_ops_onchain_data,\n hash,\n commitment,\n eth_prove_tx_id,\n eth_commit_tx_id,\n eth_execute_tx_id,\n merkle_root_hash,\n l2_to_l1_logs,\n l2_to_l1_messages,\n used_contract_hashes,\n compressed_initial_writes,\n compressed_repeated_writes,\n l2_l1_merkle_root,\n rollup_last_leaf_index,\n zkporter_is_available,\n bootloader_code_hash,\n default_aa_code_hash,\n aux_data_hash,\n pass_through_data_hash,\n meta_parameters_hash,\n system_logs,\n compressed_state_diffs,\n protocol_version,\n events_queue_commitment,\n bootloader_initial_content_commitment,\n pubdata_input\n FROM\n (\n SELECT\n l1_batches.*,\n ROW_NUMBER() OVER (\n ORDER BY\n number ASC\n ) AS ROW_NUMBER\n FROM\n l1_batches\n WHERE\n eth_commit_tx_id IS NOT NULL\n AND l1_batches.skip_proof = TRUE\n AND l1_batches.number > $1\n ORDER BY\n number\n LIMIT\n $2\n ) inn\n LEFT JOIN commitments ON commitments.l1_batch_number = inn.number\n WHERE\n number - ROW_NUMBER = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "number", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "timestamp", + "type_info": "Int8" + }, + { + "ordinal": 2, + "name": "l1_tx_count", + "type_info": "Int4" + }, + { + "ordinal": 3, + "name": "l2_tx_count", + "type_info": "Int4" + }, + { + "ordinal": 4, + "name": "bloom", + "type_info": "Bytea" + }, + { + "ordinal": 5, + "name": "priority_ops_onchain_data", + "type_info": "ByteaArray" + }, + { + "ordinal": 6, + "name": "hash", + "type_info": "Bytea" + }, + { + "ordinal": 7, + "name": "commitment", + "type_info": "Bytea" + }, + { + "ordinal": 8, + "name": "eth_prove_tx_id", + "type_info": "Int4" + }, + { + "ordinal": 9, + "name": "eth_commit_tx_id", + "type_info": "Int4" + }, + { + "ordinal": 10, + "name": "eth_execute_tx_id", + "type_info": "Int4" + }, + { + "ordinal": 11, + "name": "merkle_root_hash", + "type_info": "Bytea" + }, + { + "ordinal": 12, + "name": "l2_to_l1_logs", + "type_info": "ByteaArray" + }, + { + "ordinal": 13, + "name": "l2_to_l1_messages", + "type_info": "ByteaArray" + }, + { + "ordinal": 14, + "name": "used_contract_hashes", + "type_info": "Jsonb" + }, + { + "ordinal": 15, + "name": "compressed_initial_writes", + "type_info": "Bytea" + }, + { + "ordinal": 16, + "name": "compressed_repeated_writes", + "type_info": "Bytea" + }, + { + "ordinal": 17, + "name": "l2_l1_merkle_root", + "type_info": "Bytea" + }, + { + "ordinal": 18, + "name": "rollup_last_leaf_index", + "type_info": "Int8" + }, + { + "ordinal": 19, + "name": "zkporter_is_available", + "type_info": "Bool" + }, + { + "ordinal": 20, + "name": "bootloader_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 21, + "name": "default_aa_code_hash", + "type_info": "Bytea" + }, + { + "ordinal": 22, + "name": "aux_data_hash", + "type_info": "Bytea" + }, + { + "ordinal": 23, + "name": "pass_through_data_hash", + "type_info": "Bytea" + }, + { + "ordinal": 24, + "name": "meta_parameters_hash", + "type_info": "Bytea" + }, + { + "ordinal": 25, + "name": "system_logs", + "type_info": "ByteaArray" + }, + { + "ordinal": 26, + "name": "compressed_state_diffs", + "type_info": "Bytea" + }, + { + "ordinal": 27, + "name": "protocol_version", + "type_info": "Int4" + }, + { + "ordinal": 28, + "name": "events_queue_commitment", + "type_info": "Bytea" + }, + { + "ordinal": 29, + "name": "bootloader_initial_content_commitment", + "type_info": "Bytea" + }, + { + "ordinal": 30, + "name": "pubdata_input", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int8", + "Int8" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + true, + true, + true, + true, + true, + true, + false, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + true, + true, + false, + true, + true, + true, + true, + true + ] + }, + "hash": "e7d47990db585af7cbf096155babe152ead3d4a7f22bc3584803288e8d639c13" +} diff --git a/core/lib/dal/.sqlx/query-ea904aa930d602d33b6fbc1bf1178a8a0ec739f4ddec8ffeb3a87253aeb18d30.json b/core/lib/dal/.sqlx/query-ea904aa930d602d33b6fbc1bf1178a8a0ec739f4ddec8ffeb3a87253aeb18d30.json new file mode 100644 index 000000000000..718b2a8f6872 --- /dev/null +++ b/core/lib/dal/.sqlx/query-ea904aa930d602d33b6fbc1bf1178a8a0ec739f4ddec8ffeb3a87253aeb18d30.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n DELETE FROM miniblocks\n WHERE\n number > $1\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [] + }, + "hash": "ea904aa930d602d33b6fbc1bf1178a8a0ec739f4ddec8ffeb3a87253aeb18d30" +} diff --git a/core/lib/dal/.sqlx/query-eab03e888f20020462ede2cd59fc0d68195346daf5f38d102eab1c1b73b0f82f.json b/core/lib/dal/.sqlx/query-eab03e888f20020462ede2cd59fc0d68195346daf5f38d102eab1c1b73b0f82f.json new file mode 100644 index 000000000000..5cd05036f98c --- /dev/null +++ b/core/lib/dal/.sqlx/query-eab03e888f20020462ede2cd59fc0d68195346daf5f38d102eab1c1b73b0f82f.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT COUNT(*)\n FROM information_schema.columns\n WHERE table_name = 'l1_batches' AND column_name = 'fee_account_address'\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "count", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + null + ] + }, + "hash": "eab03e888f20020462ede2cd59fc0d68195346daf5f38d102eab1c1b73b0f82f" +} diff --git a/core/lib/dal/.sqlx/query-eb9cd837842490dcb8ab8894ccdb1fcdd02ba2ae2104a0ef972fe809bf136425.json b/core/lib/dal/.sqlx/query-eb9cd837842490dcb8ab8894ccdb1fcdd02ba2ae2104a0ef972fe809bf136425.json deleted file mode 100644 index 6eee7052bcff..000000000000 --- a/core/lib/dal/.sqlx/query-eb9cd837842490dcb8ab8894ccdb1fcdd02ba2ae2104a0ef972fe809bf136425.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT number AS number, true AS \"confirmed!\" FROM l1_batches INNER JOIN eth_txs_history ON l1_batches.eth_execute_tx_id = eth_txs_history.eth_tx_id WHERE eth_txs_history.confirmed_at IS NOT NULL ORDER BY number DESC LIMIT 1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "number", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "confirmed!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [] - }, - "nullable": [ - false, - null - ] - }, - "hash": "eb9cd837842490dcb8ab8894ccdb1fcdd02ba2ae2104a0ef972fe809bf136425" -} diff --git a/core/lib/dal/.sqlx/query-ef331469f78c6ff68a254a15b55d056cc9bae25bc070c5de8424f88fab20e5ea.json b/core/lib/dal/.sqlx/query-ef331469f78c6ff68a254a15b55d056cc9bae25bc070c5de8424f88fab20e5ea.json new file mode 100644 index 000000000000..60d4a49d6281 --- /dev/null +++ b/core/lib/dal/.sqlx/query-ef331469f78c6ff68a254a15b55d056cc9bae25bc070c5de8424f88fab20e5ea.json @@ -0,0 +1,28 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n l1_batch_number,\n l1_batch_tx_index\n FROM\n transactions\n WHERE\n hash = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "l1_batch_number", + "type_info": "Int8" + }, + { + "ordinal": 1, + "name": "l1_batch_tx_index", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Bytea" + ] + }, + "nullable": [ + true, + true + ] + }, + "hash": "ef331469f78c6ff68a254a15b55d056cc9bae25bc070c5de8424f88fab20e5ea" +} diff --git a/core/lib/dal/.sqlx/query-f012d0922265269746396dac8f25ff66f2c3b2b83d45360818a8782e56aa3d66.json b/core/lib/dal/.sqlx/query-f012d0922265269746396dac8f25ff66f2c3b2b83d45360818a8782e56aa3d66.json new file mode 100644 index 000000000000..9815b5d3895e --- /dev/null +++ b/core/lib/dal/.sqlx/query-f012d0922265269746396dac8f25ff66f2c3b2b83d45360818a8782e56aa3d66.json @@ -0,0 +1,36 @@ +{ + "db_name": "PostgreSQL", + "query": "\n WITH\n sl AS (\n SELECT\n (\n SELECT\n ARRAY[hashed_key, value] AS kv\n FROM\n storage_logs\n WHERE\n storage_logs.miniblock_number = $1\n AND storage_logs.hashed_key >= u.start_key\n AND storage_logs.hashed_key <= u.end_key\n ORDER BY\n storage_logs.hashed_key\n LIMIT\n 1\n )\n FROM\n UNNEST($2::bytea[], $3::bytea[]) AS u (start_key, end_key)\n )\n SELECT\n sl.kv[1] AS \"hashed_key?\",\n sl.kv[2] AS \"value?\",\n initial_writes.index\n FROM\n sl\n LEFT OUTER JOIN initial_writes ON initial_writes.hashed_key = sl.kv[1]\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "hashed_key?", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "value?", + "type_info": "Bytea" + }, + { + "ordinal": 2, + "name": "index", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Int8", + "ByteaArray", + "ByteaArray" + ] + }, + "nullable": [ + null, + null, + true + ] + }, + "hash": "f012d0922265269746396dac8f25ff66f2c3b2b83d45360818a8782e56aa3d66" +} diff --git a/core/lib/dal/.sqlx/query-f1541a8d970d57ed118ee603e7285ec6ec1e522bc058710560ef78e75f94ddac.json b/core/lib/dal/.sqlx/query-f1541a8d970d57ed118ee603e7285ec6ec1e522bc058710560ef78e75f94ddac.json new file mode 100644 index 000000000000..0613eb77a30b --- /dev/null +++ b/core/lib/dal/.sqlx/query-f1541a8d970d57ed118ee603e7285ec6ec1e522bc058710560ef78e75f94ddac.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n miniblock_hash\n FROM\n snapshot_recovery\n WHERE\n miniblock_number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "miniblock_hash", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "f1541a8d970d57ed118ee603e7285ec6ec1e522bc058710560ef78e75f94ddac" +} diff --git a/core/lib/dal/.sqlx/query-f1a90090c192d68367e799188356efe8d41759bbdcdd6d39db93208f2664f03a.json b/core/lib/dal/.sqlx/query-f1a90090c192d68367e799188356efe8d41759bbdcdd6d39db93208f2664f03a.json new file mode 100644 index 000000000000..616173355a94 --- /dev/null +++ b/core/lib/dal/.sqlx/query-f1a90090c192d68367e799188356efe8d41759bbdcdd6d39db93208f2664f03a.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n INDEX\n FROM\n initial_writes\n WHERE\n hashed_key = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "index", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Bytea" + ] + }, + "nullable": [ + false + ] + }, + "hash": "f1a90090c192d68367e799188356efe8d41759bbdcdd6d39db93208f2664f03a" +} diff --git a/core/lib/dal/.sqlx/query-f2606e792f08f65d15bdab66a83741e2713748a17c96af5485423bfe9aaa84ec.json b/core/lib/dal/.sqlx/query-f2606e792f08f65d15bdab66a83741e2713748a17c96af5485423bfe9aaa84ec.json deleted file mode 100644 index 2986d6e1b5c6..000000000000 --- a/core/lib/dal/.sqlx/query-f2606e792f08f65d15bdab66a83741e2713748a17c96af5485423bfe9aaa84ec.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT number AS number, true AS \"confirmed!\" FROM l1_batches INNER JOIN eth_txs_history ON l1_batches.eth_commit_tx_id = eth_txs_history.eth_tx_id WHERE eth_txs_history.confirmed_at IS NOT NULL ORDER BY number DESC LIMIT 1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "number", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "confirmed!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [] - }, - "nullable": [ - false, - null - ] - }, - "hash": "f2606e792f08f65d15bdab66a83741e2713748a17c96af5485423bfe9aaa84ec" -} diff --git a/core/lib/dal/.sqlx/query-f2f852a340c45ff69cbca42d7c592dfb0d28a797bee69872634f3105d2d51996.json b/core/lib/dal/.sqlx/query-f2f852a340c45ff69cbca42d7c592dfb0d28a797bee69872634f3105d2d51996.json new file mode 100644 index 000000000000..11c409c21802 --- /dev/null +++ b/core/lib/dal/.sqlx/query-f2f852a340c45ff69cbca42d7c592dfb0d28a797bee69872634f3105d2d51996.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE snapshot_recovery\n SET\n storage_logs_chunks_processed[$1] = TRUE,\n updated_at = NOW()\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [] + }, + "hash": "f2f852a340c45ff69cbca42d7c592dfb0d28a797bee69872634f3105d2d51996" +} diff --git a/core/lib/dal/.sqlx/query-f3a695b0179ffdacd4baf9eeb6c1fac675dd7b078df61758df382e1038cb4987.json b/core/lib/dal/.sqlx/query-f3a695b0179ffdacd4baf9eeb6c1fac675dd7b078df61758df382e1038cb4987.json deleted file mode 100644 index 7812d637a414..000000000000 --- a/core/lib/dal/.sqlx/query-f3a695b0179ffdacd4baf9eeb6c1fac675dd7b078df61758df382e1038cb4987.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT number AS number, true AS \"confirmed!\" FROM l1_batches INNER JOIN eth_txs_history ON l1_batches.eth_prove_tx_id = eth_txs_history.eth_tx_id WHERE eth_txs_history.confirmed_at IS NOT NULL ORDER BY number DESC LIMIT 1", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "number", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "confirmed!", - "type_info": "Bool" - } - ], - "parameters": { - "Left": [] - }, - "nullable": [ - false, - null - ] - }, - "hash": "f3a695b0179ffdacd4baf9eeb6c1fac675dd7b078df61758df382e1038cb4987" -} diff --git a/core/lib/dal/.sqlx/query-f63586d59264eab7388ad1de823227ecaa45d76d1ba260074898fe57c059a15a.json b/core/lib/dal/.sqlx/query-f63586d59264eab7388ad1de823227ecaa45d76d1ba260074898fe57c059a15a.json new file mode 100644 index 000000000000..d62e213ef57b --- /dev/null +++ b/core/lib/dal/.sqlx/query-f63586d59264eab7388ad1de823227ecaa45d76d1ba260074898fe57c059a15a.json @@ -0,0 +1,232 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n *\n FROM\n transactions\n WHERE\n l1_batch_number = $1\n ORDER BY\n miniblock_number,\n index_in_block\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "hash", + "type_info": "Bytea" + }, + { + "ordinal": 1, + "name": "is_priority", + "type_info": "Bool" + }, + { + "ordinal": 2, + "name": "full_fee", + "type_info": "Numeric" + }, + { + "ordinal": 3, + "name": "layer_2_tip_fee", + "type_info": "Numeric" + }, + { + "ordinal": 4, + "name": "initiator_address", + "type_info": "Bytea" + }, + { + "ordinal": 5, + "name": "nonce", + "type_info": "Int8" + }, + { + "ordinal": 6, + "name": "signature", + "type_info": "Bytea" + }, + { + "ordinal": 7, + "name": "input", + "type_info": "Bytea" + }, + { + "ordinal": 8, + "name": "data", + "type_info": "Jsonb" + }, + { + "ordinal": 9, + "name": "received_at", + "type_info": "Timestamp" + }, + { + "ordinal": 10, + "name": "priority_op_id", + "type_info": "Int8" + }, + { + "ordinal": 11, + "name": "l1_batch_number", + "type_info": "Int8" + }, + { + "ordinal": 12, + "name": "index_in_block", + "type_info": "Int4" + }, + { + "ordinal": 13, + "name": "error", + "type_info": "Varchar" + }, + { + "ordinal": 14, + "name": "gas_limit", + "type_info": "Numeric" + }, + { + "ordinal": 15, + "name": "gas_per_storage_limit", + "type_info": "Numeric" + }, + { + "ordinal": 16, + "name": "gas_per_pubdata_limit", + "type_info": "Numeric" + }, + { + "ordinal": 17, + "name": "tx_format", + "type_info": "Int4" + }, + { + "ordinal": 18, + "name": "created_at", + "type_info": "Timestamp" + }, + { + "ordinal": 19, + "name": "updated_at", + "type_info": "Timestamp" + }, + { + "ordinal": 20, + "name": "execution_info", + "type_info": "Jsonb" + }, + { + "ordinal": 21, + "name": "contract_address", + "type_info": "Bytea" + }, + { + "ordinal": 22, + "name": "in_mempool", + "type_info": "Bool" + }, + { + "ordinal": 23, + "name": "l1_block_number", + "type_info": "Int4" + }, + { + "ordinal": 24, + "name": "value", + "type_info": "Numeric" + }, + { + "ordinal": 25, + "name": "paymaster", + "type_info": "Bytea" + }, + { + "ordinal": 26, + "name": "paymaster_input", + "type_info": "Bytea" + }, + { + "ordinal": 27, + "name": "max_fee_per_gas", + "type_info": "Numeric" + }, + { + "ordinal": 28, + "name": "max_priority_fee_per_gas", + "type_info": "Numeric" + }, + { + "ordinal": 29, + "name": "effective_gas_price", + "type_info": "Numeric" + }, + { + "ordinal": 30, + "name": "miniblock_number", + "type_info": "Int8" + }, + { + "ordinal": 31, + "name": "l1_batch_tx_index", + "type_info": "Int4" + }, + { + "ordinal": 32, + "name": "refunded_gas", + "type_info": "Int8" + }, + { + "ordinal": 33, + "name": "l1_tx_mint", + "type_info": "Numeric" + }, + { + "ordinal": 34, + "name": "l1_tx_refund_recipient", + "type_info": "Bytea" + }, + { + "ordinal": 35, + "name": "upgrade_id", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false, + false, + true, + true, + false, + true, + true, + true, + false, + false, + true, + true, + true, + true, + true, + true, + true, + true, + false, + false, + false, + true, + false, + true, + false, + false, + false, + true, + true, + true, + true, + true, + false, + true, + true, + true + ] + }, + "hash": "f63586d59264eab7388ad1de823227ecaa45d76d1ba260074898fe57c059a15a" +} diff --git a/core/lib/dal/.sqlx/query-f91790ae5cc4b087bf942ba52dd63a1e89945f8d5e0f4da42ecf6313c4f5967e.json b/core/lib/dal/.sqlx/query-f91790ae5cc4b087bf942ba52dd63a1e89945f8d5e0f4da42ecf6313c4f5967e.json new file mode 100644 index 000000000000..cdf4b166270d --- /dev/null +++ b/core/lib/dal/.sqlx/query-f91790ae5cc4b087bf942ba52dd63a1e89945f8d5e0f4da42ecf6313c4f5967e.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n MIN(number) AS \"number\"\n FROM\n l1_batches\n WHERE\n hash IS NOT NULL\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "number", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + null + ] + }, + "hash": "f91790ae5cc4b087bf942ba52dd63a1e89945f8d5e0f4da42ecf6313c4f5967e" +} diff --git a/core/lib/dal/.sqlx/query-fcc108fd59203644ff86ded0505c7dfb7aad7261e5fc402d845aedc3b91a4e99.json b/core/lib/dal/.sqlx/query-fcc108fd59203644ff86ded0505c7dfb7aad7261e5fc402d845aedc3b91a4e99.json new file mode 100644 index 000000000000..3dd33855e0e0 --- /dev/null +++ b/core/lib/dal/.sqlx/query-fcc108fd59203644ff86ded0505c7dfb7aad7261e5fc402d845aedc3b91a4e99.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n nonce AS \"nonce!\"\n FROM\n transactions\n WHERE\n initiator_address = $1\n AND nonce >= $2\n AND is_priority = FALSE\n AND (\n miniblock_number IS NOT NULL\n OR error IS NULL\n )\n ORDER BY\n nonce\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "nonce!", + "type_info": "Int8" + } + ], + "parameters": { + "Left": [ + "Bytea", + "Int8" + ] + }, + "nullable": [ + true + ] + }, + "hash": "fcc108fd59203644ff86ded0505c7dfb7aad7261e5fc402d845aedc3b91a4e99" +} diff --git a/core/lib/dal/.sqlx/query-fde16cd2d3de03f4b61625fa453a58f82acd817932415f04bcbd05442ad80c2b.json b/core/lib/dal/.sqlx/query-fde16cd2d3de03f4b61625fa453a58f82acd817932415f04bcbd05442ad80c2b.json new file mode 100644 index 000000000000..f8ad468d70db --- /dev/null +++ b/core/lib/dal/.sqlx/query-fde16cd2d3de03f4b61625fa453a58f82acd817932415f04bcbd05442ad80c2b.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n bytecode\n FROM\n factory_deps\n WHERE\n bytecode_hash = $1\n AND miniblock_number <= $2\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "bytecode", + "type_info": "Bytea" + } + ], + "parameters": { + "Left": [ + "Bytea", + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "fde16cd2d3de03f4b61625fa453a58f82acd817932415f04bcbd05442ad80c2b" +} diff --git a/core/lib/dal/.sqlx/query-fdffa5841554286a924b217b5885d9ec9b3f628c3a4cf5e10580ea6e5e3a2429.json b/core/lib/dal/.sqlx/query-fdffa5841554286a924b217b5885d9ec9b3f628c3a4cf5e10580ea6e5e3a2429.json new file mode 100644 index 000000000000..bdcf7e5f0371 --- /dev/null +++ b/core/lib/dal/.sqlx/query-fdffa5841554286a924b217b5885d9ec9b3f628c3a4cf5e10580ea6e5e3a2429.json @@ -0,0 +1,14 @@ +{ + "db_name": "PostgreSQL", + "query": "\n UPDATE miniblocks\n SET\n l1_batch_number = $1\n WHERE\n l1_batch_number IS NULL\n ", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [] + }, + "hash": "fdffa5841554286a924b217b5885d9ec9b3f628c3a4cf5e10580ea6e5e3a2429" +} diff --git a/core/lib/dal/.sqlx/query-fe06e06c04466429bb85709e6fe8dd6c2ad2793c06071f4a067dcc31306adebc.json b/core/lib/dal/.sqlx/query-fe06e06c04466429bb85709e6fe8dd6c2ad2793c06071f4a067dcc31306adebc.json new file mode 100644 index 000000000000..8f0065433012 --- /dev/null +++ b/core/lib/dal/.sqlx/query-fe06e06c04466429bb85709e6fe8dd6c2ad2793c06071f4a067dcc31306adebc.json @@ -0,0 +1,27 @@ +{ + "db_name": "PostgreSQL", + "query": "\n INSERT INTO\n eth_txs_history (\n eth_tx_id,\n base_fee_per_gas,\n priority_fee_per_gas,\n tx_hash,\n signed_raw_tx,\n created_at,\n updated_at,\n blob_base_fee_per_gas\n )\n VALUES\n ($1, $2, $3, $4, $5, NOW(), NOW(), $6)\n ON CONFLICT (tx_hash) DO NOTHING\n RETURNING\n id\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + } + ], + "parameters": { + "Left": [ + "Int4", + "Int8", + "Int8", + "Text", + "Bytea", + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "fe06e06c04466429bb85709e6fe8dd6c2ad2793c06071f4a067dcc31306adebc" +} diff --git a/core/lib/dal/.sqlx/query-fe501f86f4bf6c5b8ccc2e039a4eb09b538a67d1c39fda052c4f4ddb23ce0084.json b/core/lib/dal/.sqlx/query-fe501f86f4bf6c5b8ccc2e039a4eb09b538a67d1c39fda052c4f4ddb23ce0084.json new file mode 100644 index 000000000000..5573cdd99530 --- /dev/null +++ b/core/lib/dal/.sqlx/query-fe501f86f4bf6c5b8ccc2e039a4eb09b538a67d1c39fda052c4f4ddb23ce0084.json @@ -0,0 +1,22 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n l2_to_l1_logs\n FROM\n l1_batches\n WHERE\n number = $1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "l2_to_l1_logs", + "type_info": "ByteaArray" + } + ], + "parameters": { + "Left": [ + "Int8" + ] + }, + "nullable": [ + false + ] + }, + "hash": "fe501f86f4bf6c5b8ccc2e039a4eb09b538a67d1c39fda052c4f4ddb23ce0084" +} diff --git a/core/lib/dal/.sqlx/query-fec7b791e371a4c58350b6537065223f4599d4128db588d8645f3d106de5f50b.json b/core/lib/dal/.sqlx/query-fec7b791e371a4c58350b6537065223f4599d4128db588d8645f3d106de5f50b.json new file mode 100644 index 000000000000..c34d38ac2d03 --- /dev/null +++ b/core/lib/dal/.sqlx/query-fec7b791e371a4c58350b6537065223f4599d4128db588d8645f3d106de5f50b.json @@ -0,0 +1,20 @@ +{ + "db_name": "PostgreSQL", + "query": "\n SELECT\n certificate\n FROM\n miniblocks_consensus\n ORDER BY\n number DESC\n LIMIT\n 1\n ", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "certificate", + "type_info": "Jsonb" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false + ] + }, + "hash": "fec7b791e371a4c58350b6537065223f4599d4128db588d8645f3d106de5f50b" +} diff --git a/core/lib/db_connection/src/processor.rs b/core/lib/db_connection/src/processor.rs index 20722b591ef3..1a1e5654aed3 100644 --- a/core/lib/db_connection/src/processor.rs +++ b/core/lib/db_connection/src/processor.rs @@ -9,12 +9,12 @@ use std::{ time::{Instant, SystemTime}, }; -use crate::{connection::ConnectionPool, metrics::CONNECTION_METRICS}; use sqlx::{pool::PoolConnection, types::chrono, Connection, PgConnection, Postgres, Transaction}; - // todo: for some reason I can't import this from crate directly pub use zksync_health_check::async_trait; +use crate::{connection::ConnectionPool, metrics::CONNECTION_METRICS}; + /// Tags that can be associated with a connection. #[derive(Debug, Clone, Copy, PartialEq)] pub struct StorageProcessorTags { diff --git a/core/lib/types/src/prover_dal.rs b/core/lib/types/src/prover_dal.rs index 7d97d2ac2564..0973701318af 100644 --- a/core/lib/types/src/prover_dal.rs +++ b/core/lib/types/src/prover_dal.rs @@ -1,8 +1,10 @@ //! Types exposed by the prover DAL for general-purpose use. -use crate::{basic_fri_types::AggregationRound, L1BatchNumber}; -use chrono::{DateTime, Duration, Utc}; use std::{net::IpAddr, ops::Add}; +use chrono::{DateTime, Duration, Utc}; + +use crate::{basic_fri_types::AggregationRound, L1BatchNumber}; + // This currently lives in `zksync_prover_types` -- we don't want a dependency between prover types (`zkevm_test_harness`) and DAL. // This will be gone as part of 1.5.0, when EIP4844 becomes normal jobs, rather than special cased ones. // todo: should it be public? diff --git a/prover/prover_dal/src/fri_proof_compressor_dal.rs b/prover/prover_dal/src/fri_proof_compressor_dal.rs index 083c9c909240..2ee9f4669bdf 100644 --- a/prover/prover_dal/src/fri_proof_compressor_dal.rs +++ b/prover/prover_dal/src/fri_proof_compressor_dal.rs @@ -3,8 +3,10 @@ use std::{collections::HashMap, str::FromStr, time::Duration}; use sqlx::Row; use strum::{Display, EnumString}; use zksync_db_connection::processor::StorageProcessor; -use zksync_types::prover_dal::{JobCountStatistics, StuckJobs}; -use zksync_types::L1BatchNumber; +use zksync_types::{ + prover_dal::{JobCountStatistics, StuckJobs}, + L1BatchNumber, +}; use crate::{duration_to_naive_time, pg_interval_from_duration, ProverProcessor}; diff --git a/prover/prover_dal/src/fri_prover_dal.rs b/prover/prover_dal/src/fri_prover_dal.rs index cb78ffec2ea4..942f25a76168 100644 --- a/prover/prover_dal/src/fri_prover_dal.rs +++ b/prover/prover_dal/src/fri_prover_dal.rs @@ -1,14 +1,10 @@ -use std::time::Duration; -use std::{collections::HashMap, convert::TryFrom}; +use std::{collections::HashMap, convert::TryFrom, time::Duration}; -use zksync_db_connection::instrument::InstrumentExt; -use zksync_db_connection::processor::StorageProcessor; -use zksync_types::prover_dal::{ - FriProverJobMetadata, JobCountStatistics, StuckJobs, EIP_4844_CIRCUIT_ID, -}; +use zksync_db_connection::{instrument::InstrumentExt, processor::StorageProcessor}; use zksync_types::{ basic_fri_types::{AggregationRound, CircuitIdRoundTuple}, protocol_version::FriProtocolVersionId, + prover_dal::{FriProverJobMetadata, JobCountStatistics, StuckJobs, EIP_4844_CIRCUIT_ID}, L1BatchNumber, }; diff --git a/prover/prover_dal/src/fri_scheduler_dependency_tracker_dal.rs b/prover/prover_dal/src/fri_scheduler_dependency_tracker_dal.rs index 07dd0f26ebd4..270a76b2137d 100644 --- a/prover/prover_dal/src/fri_scheduler_dependency_tracker_dal.rs +++ b/prover/prover_dal/src/fri_scheduler_dependency_tracker_dal.rs @@ -1,6 +1,7 @@ use zksync_db_connection::processor::StorageProcessor; -use zksync_types::prover_dal::EIP_4844_CIRCUIT_ID; -use zksync_types::{basic_fri_types::FinalProofIds, L1BatchNumber}; +use zksync_types::{ + basic_fri_types::FinalProofIds, prover_dal::EIP_4844_CIRCUIT_ID, L1BatchNumber, +}; use crate::ProverProcessor; diff --git a/prover/prover_dal/src/fri_witness_generator_dal.rs b/prover/prover_dal/src/fri_witness_generator_dal.rs index 263a8bdfa9d6..226d66dd0c7d 100644 --- a/prover/prover_dal/src/fri_witness_generator_dal.rs +++ b/prover/prover_dal/src/fri_witness_generator_dal.rs @@ -2,12 +2,12 @@ use std::{collections::HashMap, convert::TryFrom, time::Duration}; use sqlx::Row; use zksync_db_connection::processor::StorageProcessor; -use zksync_types::prover_dal::{ - JobCountStatistics, LeafAggregationJobMetadata, NodeAggregationJobMetadata, StuckJobs, -}; use zksync_types::{ basic_fri_types::{AggregationRound, Eip4844Blobs}, protocol_version::FriProtocolVersionId, + prover_dal::{ + JobCountStatistics, LeafAggregationJobMetadata, NodeAggregationJobMetadata, StuckJobs, + }, L1BatchNumber, }; diff --git a/prover/prover_dal/src/lib.rs b/prover/prover_dal/src/lib.rs index f1a831035ebb..1e380190bfde 100644 --- a/prover/prover_dal/src/lib.rs +++ b/prover/prover_dal/src/lib.rs @@ -1,13 +1,11 @@ -use sqlx::PgConnection; +use std::time::Duration; +use sqlx::{postgres::types::PgInterval, types::chrono::NaiveTime, PgConnection}; +pub use zksync_db_connection::connection::ConnectionPool; use zksync_db_connection::processor::{ async_trait, BasicStorageProcessor, StorageKind, StorageProcessor, StorageProcessorTags, }; -use std::time::Duration; - -use sqlx::{postgres::types::PgInterval, types::chrono::NaiveTime}; - use crate::{ fri_gpu_prover_queue_dal::FriGpuProverQueueDal, fri_proof_compressor_dal::FriProofCompressorDal, @@ -16,8 +14,6 @@ use crate::{ fri_witness_generator_dal::FriWitnessGeneratorDal, }; -pub use zksync_db_connection::connection::ConnectionPool; - pub mod fri_gpu_prover_queue_dal; pub mod fri_proof_compressor_dal; pub mod fri_protocol_versions_dal;