From 25399c248b5480b476f22fe7953ba47dce05cc4e Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Wed, 28 Jun 2023 10:14:44 +0100 Subject: [PATCH 01/13] Cargo.lock --- Cargo.lock | 699 ++++++++++++++++++++++++++--------------------------- 1 file changed, 342 insertions(+), 357 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4efd9ad89..a5722fc39 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -27,7 +27,7 @@ version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a76fd60b23679b7d19bd066031410fb7e458ccc5e958eb5c325888ce4baedc97" dependencies = [ - "gimli 0.27.2", + "gimli 0.27.3", ] [[package]] @@ -42,7 +42,7 @@ version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" dependencies = [ - "getrandom 0.2.8", + "getrandom 0.2.10", "once_cell", "version_check", ] @@ -54,20 +54,26 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f" dependencies = [ "cfg-if", - "getrandom 0.2.8", + "getrandom 0.2.10", "once_cell", "version_check", ] [[package]] name = "aho-corasick" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67fc08ce920c31afb70f013dcce1bfc3a3195de6a228474e45e1f145b36f8d04" +checksum = "43f6cb1bf222025340178f382c426f13757b2960e89779dfcb319c32542a5a41" dependencies = [ "memchr", ] +[[package]] +name = "android-tzdata" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" + [[package]] name = "android_system_properties" version = "0.1.5" @@ -88,9 +94,9 @@ dependencies = [ [[package]] name = "anstream" -version = "0.3.0" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e579a7752471abc2a8268df8b20005e3eadd975f585398f17efcfd8d4927371" +checksum = "0ca84f3628370c59db74ee214b3263d58f9aadd9b4fe7e711fd87dc452b7f163" dependencies = [ "anstyle", "anstyle-parse", @@ -103,15 +109,15 @@ dependencies = [ [[package]] name = "anstyle" -version = "1.0.0" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41ed9a86bf92ae6580e0a31281f65a1b1d867c0cc68d5346e2ae128dddfa6a7d" +checksum = "3a30da5c5f2d5e72842e00bcb57657162cdabef0931f40e2deb9b4140440cecd" [[package]] name = "anstyle-parse" -version = "0.2.0" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e765fd216e48e067936442276d1d57399e37bce53c264d6fefbe298080cb57ee" +checksum = "938874ff5980b03a87c5524b3ae5b59cf99b1d6bc836848df7bc5ada9643c333" dependencies = [ "utf8parse", ] @@ -127,9 +133,9 @@ dependencies = [ [[package]] name = "anstyle-wincon" -version = "1.0.0" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bcd8291a340dd8ac70e18878bc4501dd7b4ff970cfa21c207d36ece51ea88fd" +checksum = "180abfa45703aebe0093f79badacc01b8fd4ea2e35118747e5811127f926e188" dependencies = [ "anstyle", "windows-sys 0.48.0", @@ -155,9 +161,9 @@ checksum = "3d62b7694a562cdf5a74227903507c56ab2cc8bdd1f781ed5cb4cf9c9f810bfc" [[package]] name = "arrayref" -version = "0.3.6" +version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4c527152e37cf757a3f78aae5a06fbeefdb07ccc535c980a3208ee3060dd544" +checksum = "6b4930d2cb77ce62f89ee5d5289b4ac049559b1c45539271f5ed4fdc7db34545" [[package]] name = "arrayvec" @@ -167,9 +173,9 @@ checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" [[package]] name = "arrayvec" -version = "0.7.2" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6" +checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" [[package]] name = "assert_cmd" @@ -215,9 +221,9 @@ dependencies = [ [[package]] name = "async-executor" -version = "1.5.0" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17adb73da160dfb475c183343c8cccd80721ea5a605d3eb57125f0a7b7a92d0b" +checksum = "6fa3dc5f2a8564f07759c008b9109dc0d39de92a88d5588b8a5036d286383afb" dependencies = [ "async-lock", "async-task", @@ -245,22 +251,22 @@ dependencies = [ [[package]] name = "async-io" -version = "1.12.0" +version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c374dda1ed3e7d8f0d9ba58715f924862c63eae6849c92d3a18e7fbde9e2794" +checksum = "0fc5b45d93ef0529756f812ca52e44c221b35341892d3dcc34132ac02f3dd2af" dependencies = [ "async-lock", "autocfg", + "cfg-if", "concurrent-queue", "futures-lite", - "libc", "log", "parking", "polling", + "rustix 0.37.20", "slab", "socket2", "waker-fn", - "windows-sys 0.42.0", ] [[package]] @@ -301,26 +307,26 @@ dependencies = [ [[package]] name = "async-task" -version = "4.3.0" +version = "4.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a40729d2133846d9ed0ea60a8b9541bccddab49cd30f0715a1da672fe9a2524" +checksum = "ecc7ab41815b3c653ccd2978ec3255c81349336702dfdf62ee6f7069b12a3aae" [[package]] name = "async-trait" -version = "0.1.66" +version = "0.1.68" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b84f9ebcc6c1f5b8cb160f6990096a5c127f423fcb6e1ccc46c370cbdfb75dfc" +checksum = "b9ccdd8f2a161be9bd5c023df56f1b2a0bd1d83872ae53b71a84a12c9bf6e842" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.22", ] [[package]] name = "atomic-waker" -version = "1.1.0" +version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "debc29dde2e69f9e47506b525f639ed42300fc014a3e007832592448fa8e4599" +checksum = "1181e1e0d1fce796a03db1ae795d67167da795f9cf4a39c37589e85ef57f26d3" [[package]] name = "atty" @@ -350,7 +356,7 @@ dependencies = [ "cfg-if", "libc", "miniz_oxide", - "object 0.30.3", + "object 0.30.4", "rustc-demangle", ] @@ -368,9 +374,9 @@ checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" [[package]] name = "base64" -version = "0.21.0" +version = "0.21.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4a4ddaa51a5bc52a6948f74c06d20aaaddb71924eab79b8c97a8c556e942d6a" +checksum = "604178f6c5c21f02dc555784810edfb88d34ac2c73b2eae109655649ee73ce3d" [[package]] name = "beef" @@ -414,7 +420,7 @@ version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "46502ad458c9a52b69d4d4d32775c788b7a1b85e8bc9d482d92250fc0e3f8efe" dependencies = [ - "digest 0.10.6", + "digest 0.10.7", ] [[package]] @@ -424,7 +430,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3c2f0dc9a68c6317d884f97cc36cf5a3d20ba14ce404227df55e1af708ab04bc" dependencies = [ "arrayref", - "arrayvec 0.7.2", + "arrayvec 0.7.4", "constant_time_eq", ] @@ -446,7 +452,7 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", ] [[package]] @@ -455,7 +461,7 @@ version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", ] [[package]] @@ -469,9 +475,9 @@ dependencies = [ [[package]] name = "blocking" -version = "1.3.0" +version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c67b173a56acffd6d2326fb7ab938ba0b00a71480e14902b2591c87bc5741e8" +checksum = "77231a1c8f801696fc0123ec6150ce92cffb8e164a02afb9c8ddee0e9b65ad65" dependencies = [ "async-channel", "async-lock", @@ -479,13 +485,14 @@ dependencies = [ "atomic-waker", "fastrand", "futures-lite", + "log", ] [[package]] name = "borsh" -version = "0.10.2" +version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40f9ca3698b2e4cb7c15571db0abc5551dca417a21ae8140460b50309bb2cc62" +checksum = "4114279215a005bc675e386011e594e1d9b800918cea18fcadadcce864a2046b" dependencies = [ "borsh-derive", "hashbrown 0.13.2", @@ -493,9 +500,9 @@ dependencies = [ [[package]] name = "borsh-derive" -version = "0.10.2" +version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "598b3eacc6db9c3ee57b22707ad8f6a8d2f6d442bfe24ffeb8cbb70ca59e6a35" +checksum = "0754613691538d51f329cce9af41d7b7ca150bc973056f1156611489475f54f7" dependencies = [ "borsh-derive-internal", "borsh-schema-derive-internal", @@ -506,9 +513,9 @@ dependencies = [ [[package]] name = "borsh-derive-internal" -version = "0.10.2" +version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "186b734fa1c9f6743e90c95d7233c9faab6360d1a96d4ffa19d9cfd1e9350f8a" +checksum = "afb438156919598d2c7bad7e1c0adf3d26ed3840dbc010db1a882a65583ca2fb" dependencies = [ "proc-macro2", "quote", @@ -517,9 +524,9 @@ dependencies = [ [[package]] name = "borsh-schema-derive-internal" -version = "0.10.2" +version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99b7ff1008316626f485991b960ade129253d4034014616b94f309a15366cc49" +checksum = "634205cc43f74a1b9046ef87c4540ebda95696ec0f315024860cad7c5b0f5ccd" dependencies = [ "proc-macro2", "quote", @@ -544,7 +551,7 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "030ea61398f34f1395ccbeb046fb68c87b631d1f34567fed0f0f11fa35d18d8d" dependencies = [ - "arrayvec 0.7.2", + "arrayvec 0.7.4", ] [[package]] @@ -555,9 +562,9 @@ checksum = "771fe0050b883fcc3ea2359b1a96bcfbc090b7116eae7c3c512c7a083fdf23d3" [[package]] name = "bstr" -version = "1.3.0" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ffdb39cb703212f3c11973452c2861b972f757b021158f3516ba10f2fa8b2c1" +checksum = "a246e68bb43f6cd9db24bea052a53e40405417c5fb372e3d1a8a7f770a564ef5" dependencies = [ "memchr", "once_cell", @@ -567,9 +574,9 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.12.0" +version = "3.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d261e256854913907f67ed06efbc3338dfe6179796deefc1ff763fc1aee5535" +checksum = "a3e2c3daef883ecc1b5d58c15adae93470a91d425f3532ba1695849656af3fc1" [[package]] name = "byte-slice-cast" @@ -585,9 +592,9 @@ checksum = "e3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7" [[package]] name = "bytecheck" -version = "0.6.10" +version = "0.6.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13fe11640a23eb24562225322cd3e452b93a3d4091d62fab69c70542fcd17d1f" +checksum = "8b6372023ac861f6e6dc89c8344a8f398fb42aaba2b5dbc649ca0c0e9dbcb627" dependencies = [ "bytecheck_derive", "ptr_meta", @@ -596,9 +603,9 @@ dependencies = [ [[package]] name = "bytecheck_derive" -version = "0.6.10" +version = "0.6.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e31225543cb46f81a7e224762764f4a6a0f097b1db0b175f69e8065efaa42de5" +checksum = "a7ec4c6f261935ad534c0c22dbef2201b45918860eb1c574b972bd213a76af61" dependencies = [ "proc-macro2", "quote", @@ -701,12 +708,12 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "chrono" -version = "0.4.23" +version = "0.4.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16b0a3d9ed01224b22057780a37bb8c5dbfe1be8ba48678e7bf57ec4b385411f" +checksum = "ec837a71355b28f6556dbd569b37b3f363091c0bd4b2e735674521b4c5fd9bc5" dependencies = [ + "android-tzdata", "iana-time-zone", - "num-integer", "num-traits", "winapi", ] @@ -755,9 +762,9 @@ checksum = "2da6da31387c7e4ef160ffab6d5e7f00c42626fe39aea70a7b0f1773f7dd6c1b" [[package]] name = "cmake" -version = "0.1.49" +version = "0.1.50" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db34956e100b30725f2eb215f90d4871051239535632f84fea3bc92722c66b7c" +checksum = "a31c789563b815f77f4250caee12365734369f942439b7defd71e18a48197130" dependencies = [ "cc", ] @@ -791,18 +798,18 @@ dependencies = [ [[package]] name = "concurrent-queue" -version = "2.1.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c278839b831783b70278b14df4d45e1beb1aad306c07bb796637de9a0e323e8e" +checksum = "62ec6771ecfa0762d24683ee5a32ad78487a3d3afdc0fb8cae19d2c5deb50b7c" dependencies = [ "crossbeam-utils", ] [[package]] name = "constant_time_eq" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13418e745008f7349ec7e449155f419a61b92b58a99cc3616942b926825ec76b" +checksum = "21a53c0a4d288377e7415b53dcfc3c04da5cdc2cc95c8d5ac178b58f0b861ad6" [[package]] name = "contract-build" @@ -893,9 +900,9 @@ dependencies = [ [[package]] name = "core-foundation-sys" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc" +checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa" [[package]] name = "cpp_demangle" @@ -908,9 +915,9 @@ dependencies = [ [[package]] name = "cpufeatures" -version = "0.2.5" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28d997bd5e24a5928dd43e46dc529867e207907fe0b239c3477d924f7f2ca320" +checksum = "03e69e28e9f7f77debdedbaafa2866e1de9ba56df55a8bd7cfc724c25a09987c" dependencies = [ "libc", ] @@ -944,9 +951,9 @@ dependencies = [ [[package]] name = "crossbeam-utils" -version = "0.8.15" +version = "0.8.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c063cd8cc95f5c377ed0d4b49a4b21f632396ff690e8470c29b3359b346984b" +checksum = "5a22b2d63d4d1dc0b7f1b6b2747dd0088008a9be28b6ddf0b1e7d335e3037294" dependencies = [ "cfg-if", ] @@ -963,7 +970,7 @@ version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", "typenum", ] @@ -973,7 +980,7 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", "subtle", ] @@ -983,7 +990,7 @@ version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b1d1a86f49236c215f271d40892d5fc950490551400b02ef360692c29815c714" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", "subtle", ] @@ -1031,9 +1038,9 @@ dependencies = [ [[package]] name = "cxx" -version = "1.0.92" +version = "1.0.97" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a140f260e6f3f79013b8bfc65e7ce630c9ab4388c6a89c71e07226f49487b72" +checksum = "e88abab2f5abbe4c56e8f1fb431b784d710b709888f35755a160e62e33fe38e8" dependencies = [ "cc", "cxxbridge-flags", @@ -1043,9 +1050,9 @@ dependencies = [ [[package]] name = "cxx-build" -version = "1.0.92" +version = "1.0.97" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da6383f459341ea689374bf0a42979739dc421874f112ff26f829b8040b8e613" +checksum = "5c0c11acd0e63bae27dcd2afced407063312771212b7a823b4fd72d633be30fb" dependencies = [ "cc", "codespan-reporting", @@ -1053,24 +1060,24 @@ dependencies = [ "proc-macro2", "quote", "scratch", - "syn 1.0.109", + "syn 2.0.22", ] [[package]] name = "cxxbridge-flags" -version = "1.0.92" +version = "1.0.97" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90201c1a650e95ccff1c8c0bb5a343213bdd317c6e600a93075bca2eff54ec97" +checksum = "8d3816ed957c008ccd4728485511e3d9aaf7db419aa321e3d2c5a2f3411e36c8" [[package]] name = "cxxbridge-macro" -version = "1.0.92" +version = "1.0.97" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b75aed41bb2e6367cae39e6326ef817a851db13c13e4f3263714ca3cfb8de56" +checksum = "a26acccf6f445af85ea056362561a24ef56cdc15fcc685f03aec50b9c702cb6d" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.22", ] [[package]] @@ -1192,14 +1199,14 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", ] [[package]] name = "digest" -version = "0.10.6" +version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8168378f4e5023e7218c89c891c0fd8ecdb5e5e4f18cb78f38cf245dd021e76f" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ "block-buffer 0.10.4", "crypto-common", @@ -1323,17 +1330,6 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "88bffebc5d80432c9b140ee17875ff173a8ab62faad5b257da912bd2f6c1c0a1" -[[package]] -name = "errno" -version = "0.2.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f639046355ee4f37944e44f60642c6f3a7efa3cf6b78c78a0d989a8ce6c396a1" -dependencies = [ - "errno-dragonfly", - "libc", - "winapi", -] - [[package]] name = "errno" version = "0.3.1" @@ -1496,9 +1492,9 @@ checksum = "4fff74096e71ed47f8e023204cfd0aa1289cd54ae5430a9523be060cdb849964" [[package]] name = "futures-lite" -version = "1.12.0" +version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7694489acd39452c77daa48516b894c153f192c3578d5a839b62c58099fcbf48" +checksum = "49a9d51ce47660b1e808d3c990b4709f2f415d928835a17dfd16991515c46bce" dependencies = [ "fastrand", "futures-core", @@ -1567,9 +1563,9 @@ dependencies = [ [[package]] name = "generic-array" -version = "0.14.6" +version = "0.14.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bff49e947297f3312447abdca79f45f4738097cc82b06e72054d2223f601f1b9" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" dependencies = [ "typenum", "version_check", @@ -1588,9 +1584,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.8" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31" +checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427" dependencies = [ "cfg-if", "js-sys", @@ -1611,9 +1607,9 @@ dependencies = [ [[package]] name = "gimli" -version = "0.27.2" +version = "0.27.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad0a93d233ebf96623465aad4046a8d3aa4da22d4f4beba5388838c8a434bbb4" +checksum = "b6c80984affa11d98d1b88b66ac8853f143217b399d3c74116778ff8fdb4ed2e" dependencies = [ "fallible-iterator", "indexmap 1.9.3", @@ -1640,9 +1636,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.3.18" +version = "0.3.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17f8a914c2987b688368b5138aa05321db91f4090cf26118185672ad588bce21" +checksum = "97ec8491ebaf99c8eaa73058b045fe58073cd6be7f596ac993ced0b0a0c01049" dependencies = [ "bytes", "fnv", @@ -1758,7 +1754,7 @@ version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" dependencies = [ - "digest 0.10.6", + "digest 0.10.7", ] [[package]] @@ -1768,7 +1764,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "17ea0a1394df5b6574da6e0c1ade9e78868c9fb0a4e5ef4428e32da4676b85b1" dependencies = [ "digest 0.9.0", - "generic-array 0.14.6", + "generic-array 0.14.7", "hmac 0.8.1", ] @@ -1814,9 +1810,9 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "hyper" -version = "0.14.24" +version = "0.14.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e011372fa0b68db8350aa7a248930ecc7839bf46d8485577d69f117a75f164c" +checksum = "ffb1cfd654a8219eaef89881fdb3bb3b1cdc5fa75ded05d6933b2b382e395468" dependencies = [ "bytes", "futures-channel", @@ -1854,26 +1850,25 @@ dependencies = [ [[package]] name = "iana-time-zone" -version = "0.1.53" +version = "0.1.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64c122667b287044802d6ce17ee2ddf13207ed924c712de9a66a5814d5b64765" +checksum = "2fad5b825842d2b38bd206f3e81d6957625fd7f0a361e345c30e01a0ae2dd613" dependencies = [ "android_system_properties", "core-foundation-sys", "iana-time-zone-haiku", "js-sys", "wasm-bindgen", - "winapi", + "windows", ] [[package]] name = "iana-time-zone-haiku" -version = "0.1.1" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0703ae284fc167426161c2e3f1da3ea71d94b21bedbcc9494e92b28e334e3dca" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" dependencies = [ - "cxx", - "cxx-build", + "cc", ] [[package]] @@ -1950,9 +1945,9 @@ dependencies = [ [[package]] name = "ink" -version = "4.2.0" +version = "4.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b374fcb3c9b91f8293bdc93d69292e2ec6ea19e97e00725806d79bf563fa5e55" +checksum = "311a988dada2242dc748834b86f330bb37ff25482ceef8767104f512a3c465a7" dependencies = [ "derive_more", "ink_env", @@ -1966,18 +1961,18 @@ dependencies = [ [[package]] name = "ink_allocator" -version = "4.2.0" +version = "4.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cdc9dbbc38d0e0cd7b053068112ca8ab8140b8ece33b9e197af5544ed3d97e1" +checksum = "5cb3178f207f6a37c3512142c8c6c2561a2aac61d60baa934d08d1e55a67d4a8" dependencies = [ "cfg-if", ] [[package]] name = "ink_codegen" -version = "4.2.0" +version = "4.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "251e64f2dd74e98329a05812f067f34e2b494a7b1325e538165e481378a72747" +checksum = "f0b22c0517e5c249d7997cb20e7bd6fbf2076708d39e7b114465c2cb9c1d5c9c" dependencies = [ "blake2", "derive_more", @@ -1999,24 +1994,24 @@ dependencies = [ [[package]] name = "ink_engine" -version = "4.2.0" +version = "4.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77c4af49e092a93e65d1161ce31d23c2e57d724462c96a8944acd647a52787f0" +checksum = "3c9abc50b932893113e782761ac719c46214ecd10c423a3f626dce30a0c61b45" dependencies = [ "blake2", "derive_more", "ink_primitives", "parity-scale-codec", "secp256k1 0.27.0", - "sha2 0.10.6", + "sha2 0.10.7", "sha3", ] [[package]] name = "ink_env" -version = "4.2.0" +version = "4.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d5e1505c5deb7280743e4d7df72a91f52bbf4cb063f464c73f89dce00c70f92" +checksum = "aef653137381ff5f37ce2ff9130d11dd1b25f6e9734d97d687c3b953dee4d14f" dependencies = [ "arrayref", "blake2", @@ -2035,16 +2030,16 @@ dependencies = [ "scale-encode 0.1.2", "scale-info", "secp256k1 0.27.0", - "sha2 0.10.6", + "sha2 0.10.7", "sha3", "static_assertions", ] [[package]] name = "ink_ir" -version = "4.2.0" +version = "4.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c0e2d96fc6e5b5cb1696b8057e72958315076dbe3f427e8f7722a346344f27a" +checksum = "1bb9a2826cae9617d8ed2d547ed6e595deb334c1b69ff0a579abd86a76e48c30" dependencies = [ "blake2", "either", @@ -2056,9 +2051,9 @@ dependencies = [ [[package]] name = "ink_macro" -version = "4.2.0" +version = "4.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15abf802e89909c65b6c15d0c655beb3c7ab86309626effb5d9b330d97308114" +checksum = "c0399b6423e892efb4d39eb76ed9286e4e93fab8141f89b4f4348ee77065b81d" dependencies = [ "ink_codegen", "ink_ir", @@ -2067,14 +2062,14 @@ dependencies = [ "proc-macro2", "quote", "syn 2.0.22", - "synstructure 0.13.0", + "synstructure", ] [[package]] name = "ink_metadata" -version = "4.2.0" +version = "4.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4af082b4c2eb246d27b358411ef950811f851c1099aa507ba4bcdd7214d40ccd" +checksum = "d5fb2b5ad83f725a6d0c8886ca737964d0013a193ca2d21c7e514fd427672416" dependencies = [ "derive_more", "impl-serde", @@ -2086,18 +2081,18 @@ dependencies = [ [[package]] name = "ink_prelude" -version = "4.2.0" +version = "4.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d0662ba1d4aa26f0fea36ce6ef9ef1e510e24c900597d703b148c8c23b675b9" +checksum = "6a6f174d742ff929abe66716ad8159f324441b4ff5161a3b0e282f416afbbac1" dependencies = [ "cfg-if", ] [[package]] name = "ink_primitives" -version = "4.2.0" +version = "4.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52693c5e74600f5bd4c0f6d447ba9c4e491e4edf685eaf9f9f347a3cb1cde66b" +checksum = "14b4e4772e1b9384233103c1f488df9854d24b3c16168bcf23613b7d98fb363f" dependencies = [ "derive_more", "ink_prelude", @@ -2110,9 +2105,9 @@ dependencies = [ [[package]] name = "ink_storage" -version = "4.2.0" +version = "4.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e02d898d2ff85c88126d284854e1198771be94282d44a5d77fdc8a9bce43e398" +checksum = "9a0f0858c90d5660dc6ec76d31388919a9609aab74723262ccf893d81aafd06c" dependencies = [ "array-init", "cfg-if", @@ -2128,9 +2123,9 @@ dependencies = [ [[package]] name = "ink_storage_traits" -version = "4.2.0" +version = "4.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ec58d70937c1e1490a00b84e2eb9a799f1a5331dd0e5cc68d550de1dbf6a8f4" +checksum = "a4179f00b052e5955ab7535c1a69042a468771217e9db6a12de2cdbfcb03c861" dependencies = [ "ink_metadata", "ink_prelude", @@ -2170,14 +2165,14 @@ dependencies = [ [[package]] name = "is-terminal" -version = "0.4.4" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21b6b32576413a8e69b90e952e4a026476040d81017b80445deda5f2d3921857" +checksum = "adcf93614601c8129ddf72e2d5633df827ba6551541c6d8c59520a371475be1f" dependencies = [ "hermit-abi 0.3.1", "io-lifetimes", - "rustix 0.36.9", - "windows-sys 0.45.0", + "rustix 0.37.20", + "windows-sys 0.48.0", ] [[package]] @@ -2221,9 +2216,9 @@ checksum = "72167d68f5fce3b8655487b8038691a3c9984ee769590f93f2a631f4ad64e4f5" [[package]] name = "js-sys" -version = "0.3.61" +version = "0.3.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "445dde2150c55e483f3d8416706b97ec8e8237c307e5b7b4b8dd15e6af2a0730" +checksum = "c5f195fe497f702db0f318b07fdd68edb16955aed830df8363d837542f8f935a" dependencies = [ "wasm-bindgen", ] @@ -2286,7 +2281,7 @@ dependencies = [ "soketto", "thiserror", "tokio", - "tokio-rustls 0.24.0", + "tokio-rustls 0.24.1", "tokio-util", "tracing", ] @@ -2397,9 +2392,9 @@ dependencies = [ [[package]] name = "keccak" -version = "0.1.3" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3afef3b6eff9ce9d8ff9b3601125eec7f0c8cbac7abd14f355d053fa56c98768" +checksum = "8f6d5ed8676d904364de097082f4e7d240b571b67989ced0240f08b7f966f940" dependencies = [ "cpufeatures", ] @@ -2421,15 +2416,15 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.146" +version = "0.2.147" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f92be4933c13fd498862a9e02a3055f8a8d9c039ce33db97306fd5a6caa7f29b" +checksum = "b4668fb0ea861c1df094127ac5f1da3409a82116a4ba74fca2e58ef927159bb3" [[package]] name = "libm" -version = "0.2.6" +version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "348108ab3fba42ec82ff6e9564fc4ca0247bdccdc68dd8af9764bbc79c3c8ffb" +checksum = "f7012b1bbb0719e1097c47611d3898568c546d597c2e74d66f6087edd5233ff4" [[package]] name = "libsecp256k1" @@ -2502,9 +2497,9 @@ checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519" [[package]] name = "lock_api" -version = "0.4.9" +version = "0.4.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" +checksum = "c1cc9717a20b1bb222f333e6a92fd32f7d8a18ddc5a3191a11af45dcbf4dcd16" dependencies = [ "autocfg", "scopeguard", @@ -2512,11 +2507,10 @@ dependencies = [ [[package]] name = "log" -version = "0.4.17" +version = "0.4.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" +checksum = "b06a4cde4c0f271a446782e3eff8de789548ce57dbc8eca9292c27f4a42004b4" dependencies = [ - "cfg-if", "value-bag", ] @@ -2555,11 +2549,11 @@ checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" [[package]] name = "memfd" -version = "0.6.2" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b20a59d985586e4a5aef64564ac77299f8586d8be6cf9106a5a40207e8908efb" +checksum = "ffc89ccdc6e10d6907450f753537ebc5c5d3460d2e4e62ea74bd571db62c0f9e" dependencies = [ - "rustix 0.36.9", + "rustix 0.37.20", ] [[package]] @@ -2624,14 +2618,13 @@ dependencies = [ [[package]] name = "mio" -version = "0.8.6" +version = "0.8.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b9d9a46eff5b4ff64b45a9e316a6d1e0bc719ef429cbec4dc630684212bfdf9" +checksum = "927a765cd3fc26206e66b296465fa9d3e5ab003e651c1b3c060e7956d96b19d2" dependencies = [ "libc", - "log", "wasi 0.11.0+wasi-snapshot-preview1", - "windows-sys 0.45.0", + "windows-sys 0.48.0", ] [[package]] @@ -2696,7 +2689,7 @@ version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a652d9771a63711fd3c3deb670acfbe5c30a4072e664d7a3bf5a9e1056ac72c3" dependencies = [ - "arrayvec 0.7.2", + "arrayvec 0.7.4", "itoa", ] @@ -2755,9 +2748,9 @@ dependencies = [ [[package]] name = "object" -version = "0.30.3" +version = "0.30.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea86265d3d3dcb6a27fc51bd29a4bf387fae9d2986b823079d4986af253eb439" +checksum = "03b4680b86d9cfafba8fc491dc9b6df26b68cf40e9e6cd73909194759a63c385" dependencies = [ "crc32fast", "hashbrown 0.13.2", @@ -2767,9 +2760,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.17.1" +version = "1.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3" +checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d" [[package]] name = "opaque-debug" @@ -2830,11 +2823,11 @@ dependencies = [ [[package]] name = "parity-scale-codec" -version = "3.4.0" +version = "3.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "637935964ff85a605d114591d4d2c13c5d1ba2806dae97cea6bf180238a749ac" +checksum = "2287753623c76f953acd29d15d8100bcab84d29db78fb6f352adb3c53e83b967" dependencies = [ - "arrayvec 0.7.2", + "arrayvec 0.7.4", "bitvec", "byte-slice-cast", "bytes", @@ -2845,9 +2838,9 @@ dependencies = [ [[package]] name = "parity-scale-codec-derive" -version = "3.1.4" +version = "3.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86b26a931f824dd4eca30b3e43bb4f31cd5f0d3a403c5f5ff27106b805bfde7b" +checksum = "2b6937b5e67bfba3351b87b040d48352a2fcb6ad72f81855412ce97b45c8f110" dependencies = [ "proc-macro-crate 1.3.1", "proc-macro2", @@ -2863,9 +2856,9 @@ checksum = "e1ad0aff30c1da14b1254fcb2af73e1fa9a28670e584a626f53a369d0e157304" [[package]] name = "parking" -version = "2.0.0" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "427c3892f9e783d91cc128285287e70a59e206ca452770ece88a76f7a3eddd72" +checksum = "14f2252c834a40ed9bb5422029649578e63aa341ac401f74e719dd1afda8394e" [[package]] name = "parking_lot" @@ -2879,15 +2872,15 @@ dependencies = [ [[package]] name = "parking_lot_core" -version = "0.9.7" +version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9069cbb9f99e3a5083476ccb29ceb1de18b9118cafa53e90c9551235de2b9521" +checksum = "93f00c865fe7cabf650081affecd3871070f26767e7b2070a3ffae14c654b447" dependencies = [ "cfg-if", "libc", - "redox_syscall 0.2.16", + "redox_syscall", "smallvec", - "windows-sys 0.45.0", + "windows-targets 0.48.0", ] [[package]] @@ -2911,7 +2904,7 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "83a0692ec44e4cf1ef28ca317f14f8f07da2d95ec3fa01f86e4467b725e60917" dependencies = [ - "digest 0.10.6", + "digest 0.10.7", ] [[package]] @@ -2922,22 +2915,22 @@ checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94" [[package]] name = "pin-project" -version = "1.0.12" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad29a609b6bcd67fee905812e544992d216af9d755757c05ed2d0e15a74c6ecc" +checksum = "c95a7476719eab1e366eaf73d0260af3021184f18177925b07f54b30089ceead" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.0.12" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "069bdb1e05adc7a8990dce9cc75370895fbe4e3d58b9b73bf1aee56359344a55" +checksum = "39407670928234ebc5e6e580247dd567ad73a3578460c5990f9503df207e8f07" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.22", ] [[package]] @@ -2960,9 +2953,9 @@ checksum = "e8d0eef3571242013a0d5dc84861c3ae4a652e56e12adf8bdc26ff5f8cb34c94" [[package]] name = "polling" -version = "2.6.0" +version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e1f879b2998099c2d69ab9605d145d5b661195627eccc680002c4918a7fb6fa" +checksum = "4b2d323e8ca7996b3e23126511a523f7e62924d93ecd5ae73b333815b0eb3dce" dependencies = [ "autocfg", "bitflags", @@ -2971,7 +2964,7 @@ dependencies = [ "libc", "log", "pin-project-lite", - "windows-sys 0.45.0", + "windows-sys 0.48.0", ] [[package]] @@ -3003,9 +2996,9 @@ checksum = "b794032607612e7abeb4db69adb4e33590fa6cf1149e95fd7cb00e634b92f174" [[package]] name = "predicates-tree" -version = "1.0.7" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54ff541861505aabf6ea722d2131ee980b8276e10a1297b94e896dd8b621850d" +checksum = "368ba315fb8c5052ab692e68a0eefec6ec57b23a36959c14496f0b0df2c0cecf" dependencies = [ "predicates-core", "termtree", @@ -3191,7 +3184,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom 0.2.8", + "getrandom 0.2.10", ] [[package]] @@ -3203,15 +3196,6 @@ dependencies = [ "rand_core 0.5.1", ] -[[package]] -name = "redox_syscall" -version = "0.2.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" -dependencies = [ - "bitflags", -] - [[package]] name = "redox_syscall" version = "0.3.5" @@ -3223,22 +3207,22 @@ dependencies = [ [[package]] name = "ref-cast" -version = "1.0.15" +version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9af2cf09ef80e610097515e80095b7f76660a92743c4185aff5406cd5ce3dd5" +checksum = "f43faa91b1c8b36841ee70e97188a869d37ae21759da6846d4be66de5bf7b12c" dependencies = [ "ref-cast-impl", ] [[package]] name = "ref-cast-impl" -version = "1.0.15" +version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c501201393982e275433bc55de7d6ae6f00e7699cd5572c5b57581cd69c881b" +checksum = "8d2275aab483050ab2a7364c1a46604865ee7d6906684e08db0f090acf74f9e7" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.22", ] [[package]] @@ -3299,23 +3283,26 @@ dependencies = [ [[package]] name = "rkyv" -version = "0.7.40" +version = "0.7.42" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c30f1d45d9aa61cbc8cd1eb87705470892289bb2d01943e7803b873a57404dc3" +checksum = "0200c8230b013893c0b2d6213d6ec64ed2b9be2e0e016682b7224ff82cff5c58" dependencies = [ + "bitvec", "bytecheck", "hashbrown 0.12.3", "ptr_meta", "rend", "rkyv_derive", "seahash", + "tinyvec", + "uuid", ] [[package]] name = "rkyv_derive" -version = "0.7.40" +version = "0.7.42" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff26ed6c7c4dfc2aa9480b86a60e3c7233543a270a680e10758a507c5a4ce476" +checksum = "b2e06b915b5c230a17d7a736d1e2e63ee753c256a8614ef3f5147b13a4f5541d" dependencies = [ "proc-macro2", "quote", @@ -3334,7 +3321,7 @@ version = "1.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d0446843641c69436765a35a5a77088e28c2e6a12da93e84aa3ab1cd4aa5a042" dependencies = [ - "arrayvec 0.7.2", + "arrayvec 0.7.4", "borsh", "bytecheck", "byteorder", @@ -3348,9 +3335,9 @@ dependencies = [ [[package]] name = "rustc-demangle" -version = "0.1.21" +version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ef03e0a2b150c7a90d01faf6254c9c48a41e95fb2a8c2ac1c6f0d2b9aefc342" +checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" [[package]] name = "rustc-hash" @@ -3375,12 +3362,12 @@ dependencies = [ [[package]] name = "rustix" -version = "0.36.9" +version = "0.36.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd5c6ff11fecd55b40746d1995a02f2eb375bf8c00d192d521ee09f42bef37bc" +checksum = "14e4d67015953998ad0eb82887a0eb0129e18a7e2f3b7b0f6c422fddcd503d62" dependencies = [ "bitflags", - "errno 0.2.8", + "errno", "io-lifetimes", "libc", "linux-raw-sys 0.1.4", @@ -3389,12 +3376,12 @@ dependencies = [ [[package]] name = "rustix" -version = "0.37.19" +version = "0.37.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acf8729d8542766f1b2cf77eb034d52f40d375bb8b615d0b147089946e16613d" +checksum = "b96e891d04aa506a6d1f318d2771bcb1c7dfda84e126660ace067c9b474bb2c0" dependencies = [ "bitflags", - "errno 0.3.1", + "errno", "io-lifetimes", "libc", "linux-raw-sys 0.3.8", @@ -3415,9 +3402,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.21.0" +version = "0.21.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07180898a28ed6a7f7ba2311594308f595e3dd2e3c3812fa0a80a47b45f17e5d" +checksum = "e32ca28af694bc1bbf399c33a516dbdf1c90090b8ab23c2bc24f834aa2247f5f" dependencies = [ "log", "ring", @@ -3427,9 +3414,9 @@ dependencies = [ [[package]] name = "rustls-native-certs" -version = "0.6.2" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0167bac7a9f490495f3c33013e7722b53cb087ecbe082fb0c6387c96f634ea50" +checksum = "a9aace74cb666635c918e9c12bc0d348266037aa8eb599b5cba565709a8dff00" dependencies = [ "openssl-probe", "rustls-pemfile", @@ -3443,7 +3430,7 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d194b56d58803a43635bdc398cd17e383d6f71f9182b9a192c127ca42494a59b" dependencies = [ - "base64 0.21.0", + "base64 0.21.2", ] [[package]] @@ -3754,9 +3741,9 @@ dependencies = [ [[package]] name = "security-framework" -version = "2.8.2" +version = "2.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a332be01508d814fed64bf28f798a146d73792121129962fdf335bb3c49a4254" +checksum = "1fc758eb7bffce5b308734e9b0c1468893cae9ff70ebf13e7090be8dcbcc83a8" dependencies = [ "bitflags", "core-foundation", @@ -3767,9 +3754,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.8.0" +version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31c9bb296072e961fcbd8853511dd39c2d8be2deb1e17c6860b1d30732b323b4" +checksum = "f51d0c0d83bec45f16480d0ce0058397a69e48fcdc52d1dc8855fb68acbd31a7" dependencies = [ "core-foundation-sys", "libc", @@ -3864,22 +3851,22 @@ dependencies = [ [[package]] name = "sha2" -version = "0.10.6" +version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82e6b795fe2e3b1e845bafcb27aa35405c4d47cdfc92af5fc8d3002f76cebdc0" +checksum = "479fb9d862239e610720565ca91403019f2f00410f1864c5aa7479b950a76ed8" dependencies = [ "cfg-if", "cpufeatures", - "digest 0.10.6", + "digest 0.10.7", ] [[package]] name = "sha3" -version = "0.10.6" +version = "0.10.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bdf0c33fae925bdc080598b84bc15c55e7b9a4a43b3c704da051f977469691c9" +checksum = "75872d278a8f37ef87fa0ddbda7802605cb18344497949862c0d4dcb291eba60" dependencies = [ - "digest 0.10.6", + "digest 0.10.7", "keccak", ] @@ -4109,8 +4096,8 @@ checksum = "27449abdfbe41b473e625bce8113745e81d65777dd1d5a8462cf24137930dad8" dependencies = [ "blake2b_simd", "byteorder", - "digest 0.10.6", - "sha2 0.10.6", + "digest 0.10.7", + "sha2 0.10.7", "sha3", "sp-std 7.0.0", "twox-hash", @@ -4124,8 +4111,8 @@ checksum = "2ee599a8399448e65197f9a6cee338ad192e9023e35e31f22382964c3c174c68" dependencies = [ "blake2b_simd", "byteorder", - "digest 0.10.6", - "sha2 0.10.6", + "digest 0.10.7", + "sha2 0.10.7", "sha3", "sp-std 8.0.0", "twox-hash", @@ -4630,9 +4617,9 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" [[package]] name = "ss58-registry" -version = "1.39.0" +version = "1.40.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecf0bd63593ef78eca595a7fc25e9a443ca46fe69fd472f8f09f5245cdcd769d" +checksum = "eb47a8ad42e5fc72d5b1eb104a5546937eaf39843499948bb666d6e93c62423b" dependencies = [ "Inflector", "num-format", @@ -4745,7 +4732,7 @@ dependencies = [ "either", "frame-metadata", "futures", - "getrandom 0.2.8", + "getrandom 0.2.10", "hex", "impl-serde", "jsonrpsee 0.16.2", @@ -4834,18 +4821,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "synstructure" -version = "0.12.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", - "unicode-xid", -] - [[package]] name = "synstructure" version = "0.13.0" @@ -4866,9 +4841,9 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" [[package]] name = "target-lexicon" -version = "0.12.6" +version = "0.12.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ae9980cab1db3fceee2f6c6f643d5d8de2997c58ee8d25fb0cc8a9e9e7348e5" +checksum = "1b1c7f239eb94671427157bd93b3694320f3668d4e1eff08c7285366fd777fac" [[package]] name = "tempfile" @@ -4879,8 +4854,8 @@ dependencies = [ "autocfg", "cfg-if", "fastrand", - "redox_syscall 0.3.5", - "rustix 0.37.19", + "redox_syscall", + "rustix 0.37.20", "windows-sys 0.48.0", ] @@ -4905,9 +4880,9 @@ dependencies = [ [[package]] name = "termtree" -version = "0.4.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95059e91184749cb66be6dc994f67f182b6d897cb3df74a5bf66b5e709295fd8" +checksum = "3369f5ac52d5eb6ab48c6b4ffdc8efbcad6b89c765749064ba298f2c68a16a76" [[package]] name = "thiserror" @@ -4951,7 +4926,7 @@ dependencies = [ "pbkdf2 0.11.0", "rand 0.8.5", "rustc-hash", - "sha2 0.10.6", + "sha2 0.10.7", "thiserror", "unicode-normalization", "wasm-bindgen", @@ -4975,11 +4950,12 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.28.2" +version = "1.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94d7b1cfd2aa4011f2de74c2c4c63665e27a71006b0a192dcd2710272e73dfa2" +checksum = "374442f06ee49c3a28a8fc9f01a2596fed7559c6b99b31279c3261778e77d84f" dependencies = [ "autocfg", + "backtrace", "bytes", "libc", "mio", @@ -5014,19 +4990,19 @@ dependencies = [ [[package]] name = "tokio-rustls" -version = "0.24.0" +version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0d409377ff5b1e3ca6437aa86c1eb7d40c134bfec254e44c830defa92669db5" +checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081" dependencies = [ - "rustls 0.21.0", + "rustls 0.21.2", "tokio", ] [[package]] name = "tokio-stream" -version = "0.1.12" +version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fb52b74f05dbf495a8fba459fdc331812b96aa086d9eb78101fa0d4569c3313" +checksum = "397c988d37662c7dda6d2208364a706264bf3d6138b11d436cbac0ad38832842" dependencies = [ "futures-core", "pin-project-lite", @@ -5035,9 +5011,9 @@ dependencies = [ [[package]] name = "tokio-util" -version = "0.7.7" +version = "0.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5427d89453009325de0d8f342c9490009f76e999cb7672d77e46267448f7e6b2" +checksum = "806fe8c2c87eccc8b3267cbae29ed3ab2d0bd37fca70ab622e46aaa9375ddb7d" dependencies = [ "bytes", "futures-core", @@ -5111,20 +5087,20 @@ dependencies = [ [[package]] name = "tracing-attributes" -version = "0.1.23" +version = "0.1.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4017f8f45139870ca7e672686113917c71c7a6e02d4924eda67186083c03081a" +checksum = "5f4f31f56159e98206da9efd823404b79b6ef3143b4a7ab76e67b1751b25a4ab" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.22", ] [[package]] name = "tracing-core" -version = "0.1.30" +version = "0.1.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24eb03ba0eab1fd845050058ce5e616558e8f8d8fca633e6b163fe25c797213a" +checksum = "0955b8137a1df6f1a2e9a37d8a6656291ff0297c1a97c24e0d8425fe2312f79a" dependencies = [ "once_cell", "valuable", @@ -5226,7 +5202,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" dependencies = [ "cfg-if", - "digest 0.10.6", + "digest 0.10.7", "rand 0.8.5", "static_assertions", ] @@ -5251,15 +5227,15 @@ dependencies = [ [[package]] name = "unicode-bidi" -version = "0.3.11" +version = "0.3.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "524b68aca1d05e03fdf03fcdce2c6c94b6daf6d16861ddaa7e4f2b6638a9052c" +checksum = "92888ba5573ff080736b3648696b70cafad7d250551175acbaa4e0385b3e1460" [[package]] name = "unicode-ident" -version = "1.0.8" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5464a87b239f13a63a501f2701565754bae92d243d4bb7eb12f6d57d2269bf4" +checksum = "b15811caf2415fb889178633e7724bad2509101cde276048e013b9def5e51fa0" [[package]] name = "unicode-normalization" @@ -5306,6 +5282,12 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" +[[package]] +name = "uuid" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d023da39d1fde5a8a3fe1f3e01ca9632ada0a63e9797de55a879d6e2236277be" + [[package]] name = "valuable" version = "0.1.0" @@ -5314,13 +5296,9 @@ checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" [[package]] name = "value-bag" -version = "1.0.0-alpha.9" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2209b78d1249f7e6f3293657c9779fe31ced465df091bbd433a1cf88e916ec55" -dependencies = [ - "ctor", - "version_check", -] +checksum = "d92ccd67fb88503048c01b59152a04effd0782d035a83a6d256ce6085f08f4a3" [[package]] name = "version_check" @@ -5378,11 +5356,10 @@ dependencies = [ [[package]] name = "want" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" dependencies = [ - "log", "try-lock", ] @@ -5400,9 +5377,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.84" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31f8dcbc21f30d9b8f2ea926ecb58f6b91192c17e9d33594b3df58b2007ca53b" +checksum = "7706a72ab36d8cb1f80ffbf0e071533974a60d0a308d01a5d0375bf60499a342" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -5410,24 +5387,24 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.84" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95ce90fd5bcc06af55a641a86428ee4229e44e07033963a2290a8e241607ccb9" +checksum = "5ef2b6d3c510e9625e5fe6f509ab07d66a760f0885d858736483c32ed7809abd" dependencies = [ "bumpalo", "log", "once_cell", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.22", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-futures" -version = "0.4.34" +version = "0.4.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f219e0d211ba40266969f6dbdd90636da12f75bee4fc9d6c23d1260dadb51454" +checksum = "c02dbc21516f9f1f04f187958890d7e6026df8d16540b7ad9492bc34a67cea03" dependencies = [ "cfg-if", "js-sys", @@ -5437,9 +5414,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.84" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c21f77c0bedc37fd5dc21f897894a5ca01e7bb159884559461862ae90c0b4c5" +checksum = "dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -5447,22 +5424,22 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.84" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2aff81306fcac3c7515ad4e177f521b5c9a15f2b08f4e32d823066102f35a5f6" +checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.22", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.84" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0046fef7e28c3804e5e38bfa31ea2a0f73905319b677e57ebe37e49358989b5d" +checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1" [[package]] name = "wasm-opt" @@ -5594,7 +5571,7 @@ dependencies = [ "indexmap 1.9.3", "libc", "log", - "object 0.30.3", + "object 0.30.4", "once_cell", "paste", "psm", @@ -5652,10 +5629,10 @@ checksum = "a990198cee4197423045235bf89d3359e69bd2ea031005f4c2d901125955c949" dependencies = [ "anyhow", "cranelift-entity 0.95.1", - "gimli 0.27.2", + "gimli 0.27.3", "indexmap 1.9.3", "log", - "object 0.30.3", + "object 0.30.4", "serde", "target-lexicon", "thiserror", @@ -5697,9 +5674,9 @@ dependencies = [ "bincode", "cfg-if", "cpp_demangle", - "gimli 0.27.2", + "gimli 0.27.3", "log", - "object 0.30.3", + "object 0.30.4", "rustc-demangle", "serde", "target-lexicon", @@ -5766,7 +5743,7 @@ dependencies = [ "memoffset 0.6.5", "paste", "rand 0.8.5", - "rustix 0.36.9", + "rustix 0.36.14", "wasmtime-asm-macros 6.0.2", "wasmtime-environ 6.0.2", "wasmtime-jit-debug 6.0.2", @@ -5790,7 +5767,7 @@ dependencies = [ "memoffset 0.8.0", "paste", "rand 0.8.5", - "rustix 0.36.9", + "rustix 0.36.14", "wasmtime-asm-macros 8.0.1", "wasmtime-environ 8.0.1", "wasmtime-jit-debug 8.0.1", @@ -5823,9 +5800,9 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.61" +version = "0.3.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e33b99f4b23ba3eec1a53ac264e35a755f00e966e0065077d6027c0f575b0b97" +checksum = "9b85cbef8c220a6abc02aefd892dfc0fc23afb1c6a426316ec33253a3877249b" dependencies = [ "js-sys", "wasm-bindgen", @@ -5892,19 +5869,28 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" +[[package]] +name = "windows" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f" +dependencies = [ + "windows-targets 0.48.0", +] + [[package]] name = "windows-sys" version = "0.42.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" dependencies = [ - "windows_aarch64_gnullvm 0.42.1", - "windows_aarch64_msvc 0.42.1", - "windows_i686_gnu 0.42.1", - "windows_i686_msvc 0.42.1", - "windows_x86_64_gnu 0.42.1", - "windows_x86_64_gnullvm 0.42.1", - "windows_x86_64_msvc 0.42.1", + "windows_aarch64_gnullvm 0.42.2", + "windows_aarch64_msvc 0.42.2", + "windows_i686_gnu 0.42.2", + "windows_i686_msvc 0.42.2", + "windows_x86_64_gnu 0.42.2", + "windows_x86_64_gnullvm 0.42.2", + "windows_x86_64_msvc 0.42.2", ] [[package]] @@ -5913,7 +5899,7 @@ version = "0.45.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" dependencies = [ - "windows-targets 0.42.1", + "windows-targets 0.42.2", ] [[package]] @@ -5927,17 +5913,17 @@ dependencies = [ [[package]] name = "windows-targets" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e2522491fbfcd58cc84d47aeb2958948c4b8982e9a2d8a2a35bbaed431390e7" +checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" dependencies = [ - "windows_aarch64_gnullvm 0.42.1", - "windows_aarch64_msvc 0.42.1", - "windows_i686_gnu 0.42.1", - "windows_i686_msvc 0.42.1", - "windows_x86_64_gnu 0.42.1", - "windows_x86_64_gnullvm 0.42.1", - "windows_x86_64_msvc 0.42.1", + "windows_aarch64_gnullvm 0.42.2", + "windows_aarch64_msvc 0.42.2", + "windows_i686_gnu 0.42.2", + "windows_i686_msvc 0.42.2", + "windows_x86_64_gnu 0.42.2", + "windows_x86_64_gnullvm 0.42.2", + "windows_x86_64_msvc 0.42.2", ] [[package]] @@ -5957,9 +5943,9 @@ dependencies = [ [[package]] name = "windows_aarch64_gnullvm" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c9864e83243fdec7fc9c5444389dcbbfd258f745e7853198f365e3c4968a608" +checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" [[package]] name = "windows_aarch64_gnullvm" @@ -5969,9 +5955,9 @@ checksum = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc" [[package]] name = "windows_aarch64_msvc" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c8b1b673ffc16c47a9ff48570a9d85e25d265735c503681332589af6253c6c7" +checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" [[package]] name = "windows_aarch64_msvc" @@ -5981,9 +5967,9 @@ checksum = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3" [[package]] name = "windows_i686_gnu" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de3887528ad530ba7bdbb1faa8275ec7a1155a45ffa57c37993960277145d640" +checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" [[package]] name = "windows_i686_gnu" @@ -5993,9 +5979,9 @@ checksum = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241" [[package]] name = "windows_i686_msvc" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf4d1122317eddd6ff351aa852118a2418ad4214e6613a50e0191f7004372605" +checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" [[package]] name = "windows_i686_msvc" @@ -6005,9 +5991,9 @@ checksum = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00" [[package]] name = "windows_x86_64_gnu" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1040f221285e17ebccbc2591ffdc2d44ee1f9186324dd3e84e99ac68d699c45" +checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" [[package]] name = "windows_x86_64_gnu" @@ -6017,9 +6003,9 @@ checksum = "ca2b8a661f7628cbd23440e50b05d705db3686f894fc9580820623656af974b1" [[package]] name = "windows_x86_64_gnullvm" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "628bfdf232daa22b0d64fdb62b09fcc36bb01f05a3939e20ab73aaf9470d0463" +checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" [[package]] name = "windows_x86_64_gnullvm" @@ -6029,9 +6015,9 @@ checksum = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953" [[package]] name = "windows_x86_64_msvc" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "447660ad36a13288b1db4d4248e857b510e8c3a225c822ba4fb748c0aafecffd" +checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" [[package]] name = "windows_x86_64_msvc" @@ -6041,9 +6027,9 @@ checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a" [[package]] name = "winnow" -version = "0.4.6" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61de7bac303dc551fe038e2b3cef0f571087a47571ea6e79a87692ac99b99699" +checksum = "ca0ace3845f0d96209f0375e6d367e3eb87eb65d27d445bdc9f1843a26f39448" dependencies = [ "memchr", ] @@ -6077,23 +6063,22 @@ checksum = "e2a7eb6d82a11e4d0b8e6bda8347169aff4ccd8235d039bba7c47482d977dcf7" [[package]] name = "zeroize" -version = "1.5.7" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c394b5bd0c6f669e7275d9c20aa90ae064cb22e75a1cad54e1b34088034b149f" +checksum = "2a0956f1ba7c7909bfb66c2e9e4124ab6f6482560f6628b5aaeba39207c9aad9" dependencies = [ "zeroize_derive", ] [[package]] name = "zeroize_derive" -version = "1.3.3" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44bf07cb3e50ea2003396695d58bf46bc9887a1f362260446fad6bc4e79bd36c" +checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", - "synstructure 0.12.6", + "syn 2.0.22", ] [[package]] From ffd23de7c2d7373c071cf42896c7a39df1ce8021 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Wed, 28 Jun 2023 12:13:14 +0100 Subject: [PATCH 02/13] Decode contract event based on signature topic --- Cargo.lock | 127 +++++++++++++++--- crates/cargo-contract/src/cmd/decode.rs | 7 +- .../src/cmd/extrinsics/events.rs | 26 ++-- crates/transcode/Cargo.toml | 3 +- crates/transcode/src/lib.rs | 14 +- 5 files changed, 141 insertions(+), 36 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a5722fc39..e7096975d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -872,7 +872,7 @@ dependencies = [ "indexmap 2.0.0", "ink", "ink_env", - "ink_metadata", + "ink_metadata 4.2.0", "itertools 0.11.0", "nom", "nom-supreme", @@ -1952,9 +1952,9 @@ dependencies = [ "derive_more", "ink_env", "ink_macro", - "ink_metadata", - "ink_prelude", - "ink_primitives", + "ink_metadata 4.2.1", + "ink_prelude 4.2.1", + "ink_primitives 4.2.1", "ink_storage", "parity-scale-codec", ] @@ -1981,7 +1981,7 @@ dependencies = [ "heck", "impl-serde", "ink_ir", - "ink_primitives", + "ink_primitives 4.2.1", "itertools 0.10.5", "log", "parity-scale-codec", @@ -2000,7 +2000,7 @@ checksum = "3c9abc50b932893113e782761ac719c46214ecd10c423a3f626dce30a0c61b45" dependencies = [ "blake2", "derive_more", - "ink_primitives", + "ink_primitives 4.2.1", "parity-scale-codec", "secp256k1 0.27.0", "sha2 0.10.7", @@ -2019,8 +2019,8 @@ dependencies = [ "derive_more", "ink_allocator", "ink_engine", - "ink_prelude", - "ink_primitives", + "ink_prelude 4.2.1", + "ink_primitives 4.2.1", "ink_storage_traits", "num-traits", "parity-scale-codec", @@ -2057,7 +2057,7 @@ checksum = "c0399b6423e892efb4d39eb76ed9286e4e93fab8141f89b4f4348ee77065b81d" dependencies = [ "ink_codegen", "ink_ir", - "ink_primitives", + "ink_primitives 4.2.1", "parity-scale-codec", "proc-macro2", "quote", @@ -2065,6 +2065,21 @@ dependencies = [ "synstructure", ] +[[package]] +name = "ink_metadata" +version = "4.2.0" +dependencies = [ + "derive_more", + "impl-serde", + "ink_env", + "ink_prelude 4.2.0", + "ink_primitives 4.2.0", + "linkme", + "scale-info", + "schemars", + "serde", +] + [[package]] name = "ink_metadata" version = "4.2.1" @@ -2073,12 +2088,19 @@ checksum = "d5fb2b5ad83f725a6d0c8886ca737964d0013a193ca2d21c7e514fd427672416" dependencies = [ "derive_more", "impl-serde", - "ink_prelude", - "ink_primitives", + "ink_prelude 4.2.1", + "ink_primitives 4.2.1", "scale-info", "serde", ] +[[package]] +name = "ink_prelude" +version = "4.2.0" +dependencies = [ + "cfg-if", +] + [[package]] name = "ink_prelude" version = "4.2.1" @@ -2088,6 +2110,19 @@ dependencies = [ "cfg-if", ] +[[package]] +name = "ink_primitives" +version = "4.2.0" +dependencies = [ + "derive_more", + "ink_prelude 4.2.0", + "parity-scale-codec", + "scale-decode 0.7.0", + "scale-encode 0.3.0", + "scale-info", + "xxhash-rust", +] + [[package]] name = "ink_primitives" version = "4.2.1" @@ -2095,7 +2130,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "14b4e4772e1b9384233103c1f488df9854d24b3c16168bcf23613b7d98fb363f" dependencies = [ "derive_more", - "ink_prelude", + "ink_prelude 4.2.1", "parity-scale-codec", "scale-decode 0.5.0", "scale-encode 0.1.2", @@ -2113,9 +2148,9 @@ dependencies = [ "cfg-if", "derive_more", "ink_env", - "ink_metadata", - "ink_prelude", - "ink_primitives", + "ink_metadata 4.2.1", + "ink_prelude 4.2.1", + "ink_primitives 4.2.1", "ink_storage_traits", "parity-scale-codec", "scale-info", @@ -2127,9 +2162,9 @@ version = "4.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a4179f00b052e5955ab7535c1a69042a468771217e9db6a12de2cdbfcb03c861" dependencies = [ - "ink_metadata", - "ink_prelude", - "ink_primitives", + "ink_metadata 4.2.1", + "ink_prelude 4.2.1", + "ink_primitives 4.2.1", "parity-scale-codec", "scale-info", ] @@ -2483,6 +2518,26 @@ dependencies = [ "cc", ] +[[package]] +name = "linkme" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97f3302efc6ebb7b5f0810a1096dbbb44a536711a4576bc89264a8f9a1d634d8" +dependencies = [ + "linkme-impl", +] + +[[package]] +name = "linkme-impl" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "279a77bf40c85a08513aca203635b96610ebf0e37a92cb0cee76e04da100a426" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.22", +] + [[package]] name = "linux-raw-sys" version = "0.1.4" @@ -3593,6 +3648,7 @@ dependencies = [ "derive_more", "parity-scale-codec", "scale-info-derive", + "schemars", "serde", ] @@ -3637,6 +3693,30 @@ dependencies = [ "windows-sys 0.42.0", ] +[[package]] +name = "schemars" +version = "0.8.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02c613288622e5f0c3fdc5dbd4db1c5fbe752746b1d1a56a0630b78fd00de44f" +dependencies = [ + "dyn-clone", + "schemars_derive", + "serde", + "serde_json", +] + +[[package]] +name = "schemars_derive" +version = "0.8.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "109da1e6b197438deb6db99952990c7f959572794b80ff93707d55a232545e7c" +dependencies = [ + "proc-macro2", + "quote", + "serde_derive_internals", + "syn 1.0.109", +] + [[package]] name = "schnellru" version = "0.2.1" @@ -3791,6 +3871,17 @@ dependencies = [ "syn 2.0.22", ] +[[package]] +name = "serde_derive_internals" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85bf8229e7920a9f636479437026331ce11aa132b4dde37d121944a44d6e5f3c" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + [[package]] name = "serde_json" version = "1.0.99" diff --git a/crates/cargo-contract/src/cmd/decode.rs b/crates/cargo-contract/src/cmd/decode.rs index 8da7759fc..ecc5f4579 100644 --- a/crates/cargo-contract/src/cmd/decode.rs +++ b/crates/cargo-contract/src/cmd/decode.rs @@ -56,9 +56,10 @@ impl DecodeCommand { const ERR_MSG: &str = "Failed to decode specified data as a hex value"; let decoded_data = match self.r#type { DataType::Event => { - transcoder.decode_contract_event( - &mut &util::decode_hex(&self.data).context(ERR_MSG)?[..], - )? + todo!("Try each event in metadata to decode event data") + // transcoder.decode_contract_event( + // &mut &util::decode_hex(&self.data).context(ERR_MSG)?[..], + // )? } DataType::Message => { transcoder.decode_contract_message( diff --git a/crates/cargo-contract/src/cmd/extrinsics/events.rs b/crates/cargo-contract/src/cmd/extrinsics/events.rs index df8b9ec44..add2e09bd 100644 --- a/crates/cargo-contract/src/cmd/extrinsics/events.rs +++ b/crates/cargo-contract/src/cmd/extrinsics/events.rs @@ -112,6 +112,7 @@ impl DisplayEvents { }; let event_data = &mut event.field_bytes(); + let event_sig_topic = event.topics().iter().next(); let mut unnamed_field_name = 0; for field_metadata in event_fields { if ::is_event( @@ -123,6 +124,7 @@ impl DisplayEvents { let field = contract_event_data_field( transcoder, field_metadata, + event_sig_topic, event_data, )?; event_entry.fields.push(field); @@ -211,21 +213,27 @@ impl DisplayEvents { /// Construct the contract event data field, attempting to decode the event using the /// [`ContractMessageTranscoder`] if available. -fn contract_event_data_field( +fn contract_event_data_field( transcoder: Option<&ContractMessageTranscoder>, field_metadata: &scale_info::Field, + event_sig_topic: Option<&sp_core::H256>, event_data: &mut &[u8], ) -> Result { let event_value = if let Some(transcoder) = transcoder { - match transcoder.decode_contract_event(event_data) { - Ok(contract_event) => contract_event, - Err(err) => { - tracing::warn!( - "Decoding contract event failed: {:?}. It might have come from another contract.", - err - ); - Value::Hex(Hex::from_str(&hex::encode(&event_data))?) + if let Some(event_sig_topic) = event_sig_topic { + match transcoder.decode_contract_event(event_sig_topic, event_data) { + Ok(contract_event) => contract_event, + Err(err) => { + tracing::warn!( + "Decoding contract event failed: {:?}. It might have come from another contract.", + err + ); + Value::Hex(Hex::from_str(&hex::encode(&event_data))?) + } } + } else { + tracing::info!("Anonymous event not decoded. Data displayed as raw hex."); + Value::Hex(Hex::from_str(&hex::encode(event_data))?) } } else { Value::Hex(Hex::from_str(&hex::encode(event_data))?) diff --git a/crates/transcode/Cargo.toml b/crates/transcode/Cargo.toml index 25fc1d7ff..d2863193e 100644 --- a/crates/transcode/Cargo.toml +++ b/crates/transcode/Cargo.toml @@ -25,7 +25,8 @@ escape8259 = "0.5.2" hex = "0.4.3" indexmap = "2.0.0" ink_env = "4.2.0" -ink_metadata = "4.2.0" +#ink_metadata = "4.2.0" +ink_metadata = { path = "/home/andrew/code/ink-shared-events-redux/crates/metadata" } itertools = "0.11.0" tracing = "0.1.37" nom = "7.1.3" diff --git a/crates/transcode/src/lib.rs b/crates/transcode/src/lib.rs index 81735058f..b53fe6d37 100644 --- a/crates/transcode/src/lib.rs +++ b/crates/transcode/src/lib.rs @@ -286,21 +286,25 @@ impl ContractMessageTranscoder { .find(|msg| msg.label() == &name.to_string()) } - pub fn decode_contract_event(&self, data: &mut &[u8]) -> Result { + pub fn decode_contract_event(&self, event_sig_topic: &primitive_types::H256, data: &mut &[u8]) -> Result { // data is an encoded `Vec` so is prepended with its length `Compact`, // which we ignore because the structure of the event data is known for // decoding. let _len = >::decode(data)?; - let variant_index = data.read_byte()?; let event_spec = self .metadata .spec() .events() - .get(variant_index as usize) + .iter() + .find(|event| if let Some(sig_topic) = event.signature_topic() { + sig_topic.as_bytes() == event_sig_topic.as_bytes() + } else { + false + }) .ok_or_else(|| { anyhow::anyhow!( - "Event variant {} not found in contract metadata", - variant_index + "Event with signature topic {} not found in contract metadata", + hex::encode(event_sig_topic) ) })?; tracing::debug!("Decoding contract event '{}'", event_spec.label()); From 7fae74c636da94ba4e548a70ad87d76008a6783c Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Wed, 28 Jun 2023 12:13:41 +0100 Subject: [PATCH 03/13] Fmt --- .../cargo-contract/src/cmd/extrinsics/events.rs | 2 +- crates/transcode/src/lib.rs | 16 +++++++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/crates/cargo-contract/src/cmd/extrinsics/events.rs b/crates/cargo-contract/src/cmd/extrinsics/events.rs index add2e09bd..67b180300 100644 --- a/crates/cargo-contract/src/cmd/extrinsics/events.rs +++ b/crates/cargo-contract/src/cmd/extrinsics/events.rs @@ -213,7 +213,7 @@ impl DisplayEvents { /// Construct the contract event data field, attempting to decode the event using the /// [`ContractMessageTranscoder`] if available. -fn contract_event_data_field( +fn contract_event_data_field( transcoder: Option<&ContractMessageTranscoder>, field_metadata: &scale_info::Field, event_sig_topic: Option<&sp_core::H256>, diff --git a/crates/transcode/src/lib.rs b/crates/transcode/src/lib.rs index b53fe6d37..a86ed22c5 100644 --- a/crates/transcode/src/lib.rs +++ b/crates/transcode/src/lib.rs @@ -286,7 +286,11 @@ impl ContractMessageTranscoder { .find(|msg| msg.label() == &name.to_string()) } - pub fn decode_contract_event(&self, event_sig_topic: &primitive_types::H256, data: &mut &[u8]) -> Result { + pub fn decode_contract_event( + &self, + event_sig_topic: &primitive_types::H256, + data: &mut &[u8], + ) -> Result { // data is an encoded `Vec` so is prepended with its length `Compact`, // which we ignore because the structure of the event data is known for // decoding. @@ -296,10 +300,12 @@ impl ContractMessageTranscoder { .spec() .events() .iter() - .find(|event| if let Some(sig_topic) = event.signature_topic() { - sig_topic.as_bytes() == event_sig_topic.as_bytes() - } else { - false + .find(|event| { + if let Some(sig_topic) = event.signature_topic() { + sig_topic.as_bytes() == event_sig_topic.as_bytes() + } else { + false + } }) .ok_or_else(|| { anyhow::anyhow!( From 8756eefc1789220793f32031c05c18fe693806e2 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Tue, 4 Jul 2023 12:37:32 +0100 Subject: [PATCH 04/13] Cargo.lock --- Cargo.lock | 126 +++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 108 insertions(+), 18 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 89a4a797a..cb2950ecb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -895,7 +895,7 @@ dependencies = [ "indexmap 2.0.0", "ink", "ink_env", - "ink_metadata", + "ink_metadata 4.2.0", "itertools 0.11.0", "nom", "nom-supreme", @@ -1941,9 +1941,9 @@ dependencies = [ "derive_more", "ink_env", "ink_macro", - "ink_metadata", - "ink_prelude", - "ink_primitives", + "ink_metadata 4.2.1", + "ink_prelude 4.2.1", + "ink_primitives 4.2.1", "ink_storage", "parity-scale-codec", ] @@ -1970,7 +1970,7 @@ dependencies = [ "heck", "impl-serde", "ink_ir", - "ink_primitives", + "ink_primitives 4.2.1", "itertools 0.10.5", "log", "parity-scale-codec", @@ -1989,7 +1989,7 @@ checksum = "3c9abc50b932893113e782761ac719c46214ecd10c423a3f626dce30a0c61b45" dependencies = [ "blake2", "derive_more", - "ink_primitives", + "ink_primitives 4.2.1", "parity-scale-codec", "secp256k1 0.27.0", "sha2 0.10.7", @@ -2008,8 +2008,8 @@ dependencies = [ "derive_more", "ink_allocator", "ink_engine", - "ink_prelude", - "ink_primitives", + "ink_prelude 4.2.1", + "ink_primitives 4.2.1", "ink_storage_traits", "num-traits", "parity-scale-codec", @@ -2046,7 +2046,7 @@ checksum = "c0399b6423e892efb4d39eb76ed9286e4e93fab8141f89b4f4348ee77065b81d" dependencies = [ "ink_codegen", "ink_ir", - "ink_primitives", + "ink_primitives 4.2.1", "parity-scale-codec", "proc-macro2", "quote", @@ -2054,6 +2054,20 @@ dependencies = [ "synstructure", ] +[[package]] +name = "ink_metadata" +version = "4.2.0" +dependencies = [ + "derive_more", + "impl-serde", + "ink_prelude 4.2.0", + "ink_primitives 4.2.0", + "linkme", + "scale-info", + "schemars", + "serde", +] + [[package]] name = "ink_metadata" version = "4.2.1" @@ -2062,12 +2076,19 @@ checksum = "d5fb2b5ad83f725a6d0c8886ca737964d0013a193ca2d21c7e514fd427672416" dependencies = [ "derive_more", "impl-serde", - "ink_prelude", - "ink_primitives", + "ink_prelude 4.2.1", + "ink_primitives 4.2.1", "scale-info", "serde", ] +[[package]] +name = "ink_prelude" +version = "4.2.0" +dependencies = [ + "cfg-if", +] + [[package]] name = "ink_prelude" version = "4.2.1" @@ -2077,6 +2098,19 @@ dependencies = [ "cfg-if", ] +[[package]] +name = "ink_primitives" +version = "4.2.0" +dependencies = [ + "derive_more", + "ink_prelude 4.2.0", + "parity-scale-codec", + "scale-decode 0.7.0", + "scale-encode 0.3.0", + "scale-info", + "xxhash-rust", +] + [[package]] name = "ink_primitives" version = "4.2.1" @@ -2084,7 +2118,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "14b4e4772e1b9384233103c1f488df9854d24b3c16168bcf23613b7d98fb363f" dependencies = [ "derive_more", - "ink_prelude", + "ink_prelude 4.2.1", "parity-scale-codec", "scale-decode 0.5.0", "scale-encode 0.1.2", @@ -2102,9 +2136,9 @@ dependencies = [ "cfg-if", "derive_more", "ink_env", - "ink_metadata", - "ink_prelude", - "ink_primitives", + "ink_metadata 4.2.1", + "ink_prelude 4.2.1", + "ink_primitives 4.2.1", "ink_storage_traits", "parity-scale-codec", "scale-info", @@ -2116,9 +2150,9 @@ version = "4.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a4179f00b052e5955ab7535c1a69042a468771217e9db6a12de2cdbfcb03c861" dependencies = [ - "ink_metadata", - "ink_prelude", - "ink_primitives", + "ink_metadata 4.2.1", + "ink_prelude 4.2.1", + "ink_primitives 4.2.1", "parity-scale-codec", "scale-info", ] @@ -2465,6 +2499,26 @@ dependencies = [ "cc", ] +[[package]] +name = "linkme" +version = "0.3.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af70bd9dc21cbdc1feefbc9e5715129b9bfabc6fea06a02ef2a1b09d18dae216" +dependencies = [ + "linkme-impl", +] + +[[package]] +name = "linkme-impl" +version = "0.3.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42262113d514677f32b99c74693d2d40bd821fe7080c0770371398c8db240de1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.23", +] + [[package]] name = "linux-raw-sys" version = "0.1.4" @@ -3543,6 +3597,7 @@ dependencies = [ "derive_more", "parity-scale-codec", "scale-info-derive", + "schemars", "serde", ] @@ -3587,6 +3642,30 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "schemars" +version = "0.8.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02c613288622e5f0c3fdc5dbd4db1c5fbe752746b1d1a56a0630b78fd00de44f" +dependencies = [ + "dyn-clone", + "schemars_derive", + "serde", + "serde_json", +] + +[[package]] +name = "schemars_derive" +version = "0.8.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "109da1e6b197438deb6db99952990c7f959572794b80ff93707d55a232545e7c" +dependencies = [ + "proc-macro2", + "quote", + "serde_derive_internals", + "syn 1.0.109", +] + [[package]] name = "schnellru" version = "0.2.1" @@ -3741,6 +3820,17 @@ dependencies = [ "syn 2.0.23", ] +[[package]] +name = "serde_derive_internals" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85bf8229e7920a9f636479437026331ce11aa132b4dde37d121944a44d6e5f3c" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + [[package]] name = "serde_json" version = "1.0.99" From 0adc4860988ceb3f7ed7086d32dfeda21452f391 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Fri, 8 Sep 2023 13:55:15 +0100 Subject: [PATCH 05/13] Cargo.lock --- Cargo.lock | 129 +++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 111 insertions(+), 18 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f3cedcfe5..952103083 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1061,7 +1061,7 @@ dependencies = [ "indexmap 2.0.0", "ink", "ink_env", - "ink_metadata", + "ink_metadata 4.2.0", "itertools 0.11.0", "nom", "nom-supreme", @@ -2252,9 +2252,9 @@ dependencies = [ "derive_more", "ink_env", "ink_macro", - "ink_metadata", - "ink_prelude", - "ink_primitives", + "ink_metadata 4.3.0", + "ink_prelude 4.3.0", + "ink_primitives 4.3.0", "ink_storage", "parity-scale-codec", ] @@ -2281,7 +2281,7 @@ dependencies = [ "heck", "impl-serde", "ink_ir", - "ink_primitives", + "ink_primitives 4.3.0", "itertools 0.10.5", "log", "parity-scale-codec", @@ -2300,7 +2300,7 @@ checksum = "722ec3a5eb557124b001c60ff8f961079f6d566af643edea579f152b15822fe5" dependencies = [ "blake2", "derive_more", - "ink_primitives", + "ink_primitives 4.3.0", "parity-scale-codec", "secp256k1 0.27.0", "sha2 0.10.7", @@ -2319,8 +2319,8 @@ dependencies = [ "derive_more", "ink_allocator", "ink_engine", - "ink_prelude", - "ink_primitives", + "ink_prelude 4.3.0", + "ink_primitives 4.3.0", "ink_storage_traits", "num-traits", "parity-scale-codec", @@ -2357,7 +2357,7 @@ checksum = "8579576c995ca9baa032584beca19155cbd63b6739570aa9da4d35a0415f4be8" dependencies = [ "ink_codegen", "ink_ir", - "ink_primitives", + "ink_primitives 4.3.0", "parity-scale-codec", "proc-macro2", "quote", @@ -2365,6 +2365,21 @@ dependencies = [ "synstructure", ] +[[package]] +name = "ink_metadata" +version = "4.2.0" +source = "git+https://github.com/paritytech/ink/#b61123fcdfd30c91d021db249f8c6b5f26a66cb4" +dependencies = [ + "derive_more", + "impl-serde", + "ink_prelude 4.2.0", + "ink_primitives 4.2.0", + "linkme", + "scale-info", + "schemars", + "serde", +] + [[package]] name = "ink_metadata" version = "4.3.0" @@ -2373,12 +2388,20 @@ checksum = "3fddff95ce3e01f42002fdaf96edda691dbccb08c9ae76d7101daa1fa634e601" dependencies = [ "derive_more", "impl-serde", - "ink_prelude", - "ink_primitives", + "ink_prelude 4.3.0", + "ink_primitives 4.3.0", "scale-info", "serde", ] +[[package]] +name = "ink_prelude" +version = "4.2.0" +source = "git+https://github.com/paritytech/ink/#b61123fcdfd30c91d021db249f8c6b5f26a66cb4" +dependencies = [ + "cfg-if", +] + [[package]] name = "ink_prelude" version = "4.3.0" @@ -2388,6 +2411,20 @@ dependencies = [ "cfg-if", ] +[[package]] +name = "ink_primitives" +version = "4.2.0" +source = "git+https://github.com/paritytech/ink/#b61123fcdfd30c91d021db249f8c6b5f26a66cb4" +dependencies = [ + "derive_more", + "ink_prelude 4.2.0", + "parity-scale-codec", + "scale-decode", + "scale-encode", + "scale-info", + "xxhash-rust", +] + [[package]] name = "ink_primitives" version = "4.3.0" @@ -2395,7 +2432,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6414bcad12ebf0c3abbbb192a09e4d06e22f662cf3e19545204e1b0684be12a1" dependencies = [ "derive_more", - "ink_prelude", + "ink_prelude 4.3.0", "parity-scale-codec", "scale-decode", "scale-encode", @@ -2413,9 +2450,9 @@ dependencies = [ "cfg-if", "derive_more", "ink_env", - "ink_metadata", - "ink_prelude", - "ink_primitives", + "ink_metadata 4.3.0", + "ink_prelude 4.3.0", + "ink_primitives 4.3.0", "ink_storage_traits", "parity-scale-codec", "scale-info", @@ -2427,9 +2464,9 @@ version = "4.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a8dcb50f70377ac35c28d63b06383a0a3cbb79542ea4cdc5b00e3e2b3de4a549" dependencies = [ - "ink_metadata", - "ink_prelude", - "ink_primitives", + "ink_metadata 4.3.0", + "ink_prelude 4.3.0", + "ink_primitives 4.3.0", "parity-scale-codec", "scale-info", ] @@ -2780,6 +2817,26 @@ dependencies = [ "cc", ] +[[package]] +name = "linkme" +version = "0.3.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f948366ad5bb46b5514ba7a7a80643726eef08b06632592699676748c8bc33b" +dependencies = [ + "linkme-impl", +] + +[[package]] +name = "linkme-impl" +version = "0.3.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc28438cad73dcc90ff3466fc329a9252b1b8ba668eb0d5668ba97088cf4eef0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.29", +] + [[package]] name = "linux-raw-sys" version = "0.1.4" @@ -3908,6 +3965,7 @@ dependencies = [ "derive_more", "parity-scale-codec", "scale-info-derive", + "schemars", "serde", ] @@ -3952,6 +4010,30 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "schemars" +version = "0.8.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "763f8cd0d4c71ed8389c90cb8100cba87e763bd01a8e614d4f0af97bcd50a161" +dependencies = [ + "dyn-clone", + "schemars_derive", + "serde", + "serde_json", +] + +[[package]] +name = "schemars_derive" +version = "0.8.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0f696e21e10fa546b7ffb1c9672c6de8fbc7a81acf59524386d8639bf12737" +dependencies = [ + "proc-macro2", + "quote", + "serde_derive_internals", + "syn 1.0.109", +] + [[package]] name = "schnellru" version = "0.2.1" @@ -4132,6 +4214,17 @@ dependencies = [ "syn 2.0.29", ] +[[package]] +name = "serde_derive_internals" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85bf8229e7920a9f636479437026331ce11aa132b4dde37d121944a44d6e5f3c" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + [[package]] name = "serde_json" version = "1.0.105" From b0e42877070b6e403a7cced7e30e314860bf656f Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Fri, 8 Sep 2023 15:41:03 +0100 Subject: [PATCH 06/13] Update decode command to accept event signature --- crates/cargo-contract/src/cmd/decode.rs | 79 +++++++++++++++++-------- crates/transcode/Cargo.toml | 7 ++- crates/transcode/src/lib.rs | 17 +++--- 3 files changed, 70 insertions(+), 33 deletions(-) diff --git a/crates/cargo-contract/src/cmd/decode.rs b/crates/cargo-contract/src/cmd/decode.rs index ecc5f4579..0e9ac5152 100644 --- a/crates/cargo-contract/src/cmd/decode.rs +++ b/crates/cargo-contract/src/cmd/decode.rs @@ -19,32 +19,59 @@ use anyhow::{ Context, Result, }; +use clap::{ + Args, + Subcommand, +}; use colored::Colorize as _; use contract_build::{ util, CrateMetadata, }; use contract_transcode::ContractMessageTranscoder; +use subxt::ext::scale_decode::ext::primitive_types; -#[derive(Debug, Clone, clap::Args)] -#[clap( - name = "decode", - about = "Decodes the input or output data of a contract" -)] +#[derive(Debug, Args)] pub struct DecodeCommand { - /// The type of data to encode. - #[clap(value_enum, short, long)] - r#type: DataType, + #[clap(subcommand)] + commands: DecodeCommands, +} + +#[derive(Debug, Subcommand)] +pub enum DecodeCommands { + #[clap(name = "message")] + Message(DecodeMessage), + /// Upload contract code + #[clap(name = "constructor")] + Constructor(DecodeConstructor), + /// Instantiate a contract + #[clap(name = "event")] + Event(DecodeEvent), +} + +#[derive(Debug, Clone, Args)] +pub struct DecodeMessage { /// The data to decode; this has to be a hex value starting with `0x`. #[clap(short, long)] data: String, } -#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, clap::ValueEnum)] -enum DataType { - Event, - Message, - Constructor, +#[derive(Debug, Clone, Args)] +pub struct DecodeConstructor { + /// The data to decode; this has to be a hex value starting with `0x`. + #[clap(short, long)] + data: String, +} + +#[derive(Debug, Clone, Args)] +pub struct DecodeEvent { + /// The signature topic of the event to be decoded; this has to be a hex value + /// starting with `0x`. + #[clap(short, long)] + signature_topic: String, + /// The data to decode; this has to be a hex value starting with `0x`. + #[clap(short, long)] + data: String, } impl DecodeCommand { @@ -54,21 +81,25 @@ impl DecodeCommand { let transcoder = ContractMessageTranscoder::load(crate_metadata.metadata_path())?; const ERR_MSG: &str = "Failed to decode specified data as a hex value"; - let decoded_data = match self.r#type { - DataType::Event => { - todo!("Try each event in metadata to decode event data") - // transcoder.decode_contract_event( - // &mut &util::decode_hex(&self.data).context(ERR_MSG)?[..], - // )? - } - DataType::Message => { + let decoded_data = match &self.commands { + DecodeCommands::Message(message) => { transcoder.decode_contract_message( - &mut &util::decode_hex(&self.data).context(ERR_MSG)?[..], + &mut &util::decode_hex(&message.data).context(ERR_MSG)?[..], )? } - DataType::Constructor => { + DecodeCommands::Constructor(constructor) => { transcoder.decode_contract_constructor( - &mut &util::decode_hex(&self.data).context(ERR_MSG)?[..], + &mut &util::decode_hex(&constructor.data).context(ERR_MSG)?[..], + )? + } + DecodeCommands::Event(event) => { + let signature_topic_data = + util::decode_hex(&event.signature_topic).context(ERR_MSG)?; + let signature_topic = + primitive_types::H256::from_slice(&signature_topic_data); + transcoder.decode_contract_event( + &signature_topic, + &mut &util::decode_hex(&event.data).context(ERR_MSG)?[..], )? } }; diff --git a/crates/transcode/Cargo.toml b/crates/transcode/Cargo.toml index d81248d6f..14a9c3f02 100644 --- a/crates/transcode/Cargo.toml +++ b/crates/transcode/Cargo.toml @@ -24,10 +24,11 @@ contract-metadata = { version = "4.0.0-alpha", path = "../metadata" } escape8259 = "0.5.2" hex = "0.4.3" indexmap = "2.0.0" -ink_env = "4.3.0" +#ink_env = "4.3.0" # ink_metadata = "4.3.0" # todo: use crates.io release when available ink_metadata = { git = "https://github.com/paritytech/ink/", package = "ink_metadata" } +ink_env = { git = "https://github.com/paritytech/ink/", package = "ink_env" } itertools = "0.11.0" tracing = "0.1.37" nom = "7.1.3" @@ -42,7 +43,9 @@ strsim = "0.10.0" [dev-dependencies] assert_matches = "1.5.0" -ink = "4.3.0" +#ink = "4.3.0" +# todo: use crates.io release when available +ink_metadata = { git = "https://github.com/paritytech/ink/", package = "ink" } sp-core = "22.0.0" sp-keyring = "25.0.0" diff --git a/crates/transcode/src/lib.rs b/crates/transcode/src/lib.rs index f50ab4a38..5a96f95f1 100644 --- a/crates/transcode/src/lib.rs +++ b/crates/transcode/src/lib.rs @@ -777,11 +777,12 @@ mod tests { let metadata = generate_metadata(); let transcoder = ContractMessageTranscoder::new(metadata); - // raw encoded event with event index prefix - let encoded = (0u8, [0u32; 8], [1u32; 8]).encode(); + let signature_topic = ::SIGNATURE_TOPIC; + // raw encoded event + let encoded = ([0u32; 8], [1u32; 8]).encode(); // encode again as a Vec which has a len prefix. let encoded_bytes = encoded.encode(); - let _ = transcoder.decode_contract_event(&mut &encoded_bytes[..])?; + let _ = transcoder.decode_contract_event(signature_topic, &mut &encoded_bytes[..])?; Ok(()) } @@ -795,11 +796,12 @@ mod tests { 52u8, 40, 235, 225, 70, 245, 184, 36, 21, 218, 130, 114, 75, 207, 117, 240, 83, 118, 135, 56, 220, 172, 95, 131, 171, 125, 130, 167, 10, 15, 242, 222, ]; + let signature_topic = ::SIGNATURE_TOPIC; // raw encoded event with event index prefix - let encoded = (0u8, hash, [0u32; 8]).encode(); + let encoded = (hash, [0u32; 8]).encode(); // encode again as a Vec which has a len prefix. let encoded_bytes = encoded.encode(); - let decoded = transcoder.decode_contract_event(&mut &encoded_bytes[..])?; + let decoded = transcoder.decode_contract_event(signature_topic, &mut &encoded_bytes[..])?; if let Value::Map(ref map) = decoded { let name_field = &map[&Value::String("name".into())]; @@ -852,12 +854,13 @@ mod tests { let metadata = generate_metadata(); let transcoder = ContractMessageTranscoder::new(metadata); + let signature_topic = ::SIGNATURE_TOPIC; // raw encoded event with event index prefix - let encoded = (0u8, [0u32; 8], [1u32; 8], [12u8, 16u8]).encode(); + let encoded = ([0u32; 8], [1u32; 8], [12u8, 16u8]).encode(); // encode again as a Vec which has a len prefix. let encoded_bytes = encoded.encode(); let _ = transcoder - .decode_contract_event(&mut &encoded_bytes[..]) + .decode_contract_event(signature_topic, &mut &encoded_bytes[..]) .unwrap(); } } From 4eabd7cd647652cbeb86189e2af44c288718faf5 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Fri, 8 Sep 2023 15:48:37 +0100 Subject: [PATCH 07/13] Update substrate deps to fix conflict with `subtle` --- Cargo.lock | 632 +++++++------------------------ crates/cargo-contract/Cargo.toml | 6 +- crates/extrinsics/Cargo.toml | 8 +- 3 files changed, 154 insertions(+), 492 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 952103083..b1ce7fd15 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -59,9 +59,9 @@ dependencies = [ [[package]] name = "aes-gcm" -version = "0.9.4" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df5f85a83a7d8b0442b6aa7b504b8212c1733da07b98aae43d4bc21b2cb3cdf6" +checksum = "bc3be92e19a7ef47457b8e6f90707e12b6ac5d20c6f3866584fa3be0787d839f" dependencies = [ "aead", "aes", @@ -181,12 +181,6 @@ version = "1.0.75" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a4668cab20f66d8d020e1fbc0ebe47217433c1b6c8f2040faf858554e394ace6" -[[package]] -name = "array-bytes" -version = "4.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f52f63c5c1316a16a4b35eaac8b76a98248961a533f061684cb2a7cb0eafb6c6" - [[package]] name = "array-bytes" version = "6.1.0" @@ -766,8 +760,8 @@ dependencies = [ "semver", "serde", "serde_json", - "sp-core 21.0.0", - "sp-weights 20.0.0", + "sp-core", + "sp-weights", "substrate-build-script-utils", "subxt", "tempfile", @@ -949,6 +943,26 @@ dependencies = [ "crossbeam-utils", ] +[[package]] +name = "const_env" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e9e4f72c6e3398ca6da372abd9affd8f89781fe728869bbf986206e9af9627e" +dependencies = [ + "const_env_impl", +] + +[[package]] +name = "const_env_impl" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a4f51209740b5e1589e702b3044cdd4562cef41b6da404904192ffffb852d62" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + [[package]] name = "constant_time_eq" version = "0.1.5" @@ -1022,9 +1036,9 @@ dependencies = [ "scale-info", "serde", "serde_json", - "sp-core 21.0.0", - "sp-runtime 24.0.0", - "sp-weights 20.0.0", + "sp-core", + "sp-runtime", + "sp-weights", "subxt", "subxt-signer", "tempfile", @@ -1061,7 +1075,7 @@ dependencies = [ "indexmap 2.0.0", "ink", "ink_env", - "ink_metadata 4.2.0", + "ink_metadata", "itertools 0.11.0", "nom", "nom-supreme", @@ -1070,7 +1084,7 @@ dependencies = [ "scale-info", "serde", "serde_json", - "sp-core 22.0.0", + "sp-core", "sp-keyring", "strsim", "thiserror", @@ -1207,9 +1221,9 @@ dependencies = [ [[package]] name = "crypto-mac" -version = "0.11.1" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1d1a86f49236c215f271d40892d5fc950490551400b02ef360692c29815c714" +checksum = "25fab6889090c8133f3deb8f73ba3c65a7f456f66436fc012a1b1e272b1e103e" dependencies = [ "generic-array 0.14.7", "subtle", @@ -1217,9 +1231,9 @@ dependencies = [ [[package]] name = "ctr" -version = "0.8.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "049bb91fb4aaf0e3c7efa6cd5ef877dbbbd15b39dad06d9948de4ec8a75761ea" +checksum = "a232f92a03f37dd7d7dd2adc67166c77e9cd88de5b019b9a9eecfaeaf7bfd481" dependencies = [ "cipher", ] @@ -1258,13 +1272,14 @@ dependencies = [ [[package]] name = "curve25519-dalek" -version = "4.0.0" +version = "4.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f711ade317dd348950a9910f81c5947e3d8907ebd2b83f76203ff1807e6a2bc2" +checksum = "622178105f911d937a42cdb140730ba4a3ed2becd8ae6ce39c7d28b5d75d4588" dependencies = [ "cfg-if", "cpufeatures", "curve25519-dalek-derive", + "digest 0.10.7", "fiat-crypto", "platforms", "rustc_version", @@ -1576,19 +1591,6 @@ version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" -[[package]] -name = "env_logger" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85cdab6a89accf66733ad5a1693a4dcced6aeff64602b634530dd73c1f3ee9f0" -dependencies = [ - "humantime", - "is-terminal", - "log", - "regex", - "termcolor", -] - [[package]] name = "environmental" version = "1.1.4" @@ -1666,9 +1668,9 @@ checksum = "6999dc1837253364c2ebb0704ba97994bd874e8f195d665c50b7548f6ea92764" [[package]] name = "fiat-crypto" -version = "0.1.20" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e825f6987101665dea6ec934c09ec6d721de7bc1bf92248e1d5810c8cd636b77" +checksum = "d0870c84016d4b481be5c9f323c24f65e31e901ae618f0e80f4308fb00de1d2d" [[package]] name = "fixed-hash" @@ -2015,7 +2017,7 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2a2a2320eb7ec0ebe8da8f744d7812d9fc4cb4d09344ac01898dbcb6a20ae69b" dependencies = [ - "crypto-mac 0.11.1", + "crypto-mac 0.11.0", "digest 0.9.0", ] @@ -2082,12 +2084,6 @@ version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" -[[package]] -name = "humantime" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" - [[package]] name = "hyper" version = "0.14.27" @@ -2245,45 +2241,41 @@ checksum = "8e04e2fd2b8188ea827b32ef11de88377086d690286ab35747ef7f9bf3ccb590" [[package]] name = "ink" -version = "4.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9fd4f77d66c94aa7f27a7cf41cd2edbc2229afe34ec475c3f32b6e8fdf561a0" +version = "4.2.0" +source = "git+https://github.com/paritytech/ink/#b61123fcdfd30c91d021db249f8c6b5f26a66cb4" dependencies = [ "derive_more", "ink_env", "ink_macro", - "ink_metadata 4.3.0", - "ink_prelude 4.3.0", - "ink_primitives 4.3.0", + "ink_metadata", + "ink_prelude", + "ink_primitives", "ink_storage", "parity-scale-codec", + "scale-info", ] [[package]] name = "ink_allocator" -version = "4.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "870914970470fd77a3f42d3c5d1918b562817af127fd063ee8b1d9fbf59aa1fe" +version = "4.2.0" +source = "git+https://github.com/paritytech/ink/#b61123fcdfd30c91d021db249f8c6b5f26a66cb4" dependencies = [ "cfg-if", ] [[package]] name = "ink_codegen" -version = "4.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22d79057b2565df31a10af6510a44b161093f110c5f9c22ad02c20af9cea4c29" +version = "4.2.0" +source = "git+https://github.com/paritytech/ink/#b61123fcdfd30c91d021db249f8c6b5f26a66cb4" dependencies = [ "blake2", "derive_more", "either", - "env_logger", "heck", "impl-serde", "ink_ir", - "ink_primitives 4.3.0", - "itertools 0.10.5", - "log", + "ink_primitives", + "itertools 0.11.0", "parity-scale-codec", "proc-macro2", "quote", @@ -2294,13 +2286,12 @@ dependencies = [ [[package]] name = "ink_engine" -version = "4.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "722ec3a5eb557124b001c60ff8f961079f6d566af643edea579f152b15822fe5" +version = "4.2.0" +source = "git+https://github.com/paritytech/ink/#b61123fcdfd30c91d021db249f8c6b5f26a66cb4" dependencies = [ "blake2", "derive_more", - "ink_primitives 4.3.0", + "ink_primitives", "parity-scale-codec", "secp256k1 0.27.0", "sha2 0.10.7", @@ -2309,18 +2300,17 @@ dependencies = [ [[package]] name = "ink_env" -version = "4.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "584e73bc0982f6f1a067bb63ebc75262f6dc54ed2a17060efa73eaba84dc9308" +version = "4.2.0" +source = "git+https://github.com/paritytech/ink/#b61123fcdfd30c91d021db249f8c6b5f26a66cb4" dependencies = [ - "arrayref", "blake2", "cfg-if", + "const_env", "derive_more", "ink_allocator", "ink_engine", - "ink_prelude 4.3.0", - "ink_primitives 4.3.0", + "ink_prelude", + "ink_primitives", "ink_storage_traits", "num-traits", "parity-scale-codec", @@ -2329,6 +2319,7 @@ dependencies = [ "scale-decode", "scale-encode", "scale-info", + "schnorrkel 0.11.1", "secp256k1 0.27.0", "sha2 0.10.7", "sha3", @@ -2337,13 +2328,13 @@ dependencies = [ [[package]] name = "ink_ir" -version = "4.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b529c941518e8f450395fab9fe8ebba0a7acbb18778fc7e0a87f6248286ec72" +version = "4.2.0" +source = "git+https://github.com/paritytech/ink/#b61123fcdfd30c91d021db249f8c6b5f26a66cb4" dependencies = [ "blake2", "either", - "itertools 0.10.5", + "ink_prelude", + "itertools 0.11.0", "proc-macro2", "quote", "syn 2.0.29", @@ -2351,13 +2342,12 @@ dependencies = [ [[package]] name = "ink_macro" -version = "4.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8579576c995ca9baa032584beca19155cbd63b6739570aa9da4d35a0415f4be8" +version = "4.2.0" +source = "git+https://github.com/paritytech/ink/#b61123fcdfd30c91d021db249f8c6b5f26a66cb4" dependencies = [ "ink_codegen", "ink_ir", - "ink_primitives 4.3.0", + "ink_primitives", "parity-scale-codec", "proc-macro2", "quote", @@ -2372,28 +2362,14 @@ source = "git+https://github.com/paritytech/ink/#b61123fcdfd30c91d021db249f8c6b5 dependencies = [ "derive_more", "impl-serde", - "ink_prelude 4.2.0", - "ink_primitives 4.2.0", + "ink_prelude", + "ink_primitives", "linkme", "scale-info", "schemars", "serde", ] -[[package]] -name = "ink_metadata" -version = "4.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fddff95ce3e01f42002fdaf96edda691dbccb08c9ae76d7101daa1fa634e601" -dependencies = [ - "derive_more", - "impl-serde", - "ink_prelude 4.3.0", - "ink_primitives 4.3.0", - "scale-info", - "serde", -] - [[package]] name = "ink_prelude" version = "4.2.0" @@ -2402,37 +2378,13 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "ink_prelude" -version = "4.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8cfdf91d2b442f08efb34dd3780fd6fbd3d033f63b42f62684fe47534948ef6" -dependencies = [ - "cfg-if", -] - [[package]] name = "ink_primitives" version = "4.2.0" source = "git+https://github.com/paritytech/ink/#b61123fcdfd30c91d021db249f8c6b5f26a66cb4" dependencies = [ "derive_more", - "ink_prelude 4.2.0", - "parity-scale-codec", - "scale-decode", - "scale-encode", - "scale-info", - "xxhash-rust", -] - -[[package]] -name = "ink_primitives" -version = "4.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6414bcad12ebf0c3abbbb192a09e4d06e22f662cf3e19545204e1b0684be12a1" -dependencies = [ - "derive_more", - "ink_prelude 4.3.0", + "ink_prelude", "parity-scale-codec", "scale-decode", "scale-encode", @@ -2442,17 +2394,16 @@ dependencies = [ [[package]] name = "ink_storage" -version = "4.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd728409de235de0489f71ee2d1beb320613fdb50dda9fa1c564825f4ad06daa" +version = "4.2.0" +source = "git+https://github.com/paritytech/ink/#b61123fcdfd30c91d021db249f8c6b5f26a66cb4" dependencies = [ "array-init", "cfg-if", "derive_more", "ink_env", - "ink_metadata 4.3.0", - "ink_prelude 4.3.0", - "ink_primitives 4.3.0", + "ink_metadata", + "ink_prelude", + "ink_primitives", "ink_storage_traits", "parity-scale-codec", "scale-info", @@ -2460,13 +2411,12 @@ dependencies = [ [[package]] name = "ink_storage_traits" -version = "4.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8dcb50f70377ac35c28d63b06383a0a3cbb79542ea4cdc5b00e3e2b3de4a549" +version = "4.2.0" +source = "git+https://github.com/paritytech/ink/#b61123fcdfd30c91d021db249f8c6b5f26a66cb4" dependencies = [ - "ink_metadata 4.3.0", - "ink_prelude 4.3.0", - "ink_primitives 4.3.0", + "ink_metadata", + "ink_prelude", + "ink_primitives", "parity-scale-codec", "scale-info", ] @@ -3170,16 +3120,16 @@ checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" [[package]] name = "pallet-contracts-primitives" -version = "24.0.0" +version = "25.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6fdf0acfe33532b58fe2d8859585c0e8b323ec0687eba26292c826333b366e82" +checksum = "3b9764b128f0712530bcd14cb01f1d8529f98c4e67866a22221b84fbe5854d93" dependencies = [ "bitflags 1.3.2", "parity-scale-codec", "scale-info", - "sp-runtime 24.0.0", - "sp-std 8.0.0", - "sp-weights 20.0.0", + "sp-runtime", + "sp-std 9.0.0", + "sp-weights", ] [[package]] @@ -3256,7 +3206,7 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d95f5254224e617595d2cc3cc73ff0a5eaf2637519e25f03388154e9378b6ffa" dependencies = [ - "crypto-mac 0.11.1", + "crypto-mac 0.11.0", ] [[package]] @@ -4080,6 +4030,24 @@ dependencies = [ "zeroize", ] +[[package]] +name = "schnorrkel" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "064aaec4e66d5dfcb6ea6c91bec9dc282b3505b5dd897cf0601dea6ded7c9824" +dependencies = [ + "arrayref", + "arrayvec 0.7.4", + "curve25519-dalek 4.1.0", + "merlin 3.0.0", + "rand 0.8.5", + "rand_core 0.6.4", + "serde_bytes", + "sha2 0.10.7", + "subtle", + "zeroize", +] + [[package]] name = "scopeguard" version = "1.2.0" @@ -4531,7 +4499,7 @@ dependencies = [ "aes-gcm", "blake2", "chacha20poly1305", - "curve25519-dalek 4.0.0", + "curve25519-dalek 4.1.0", "rand_core 0.6.4", "rustc_version", "sha2 0.10.7", @@ -4573,20 +4541,6 @@ dependencies = [ "sha-1", ] -[[package]] -name = "sp-application-crypto" -version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "899492ea547816d5dfe9a5a2ecc32f65a7110805af6da3380aa4902371b31dc2" -dependencies = [ - "parity-scale-codec", - "scale-info", - "serde", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-std 8.0.0", -] - [[package]] name = "sp-application-crypto" version = "24.0.0" @@ -4596,26 +4550,11 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 22.0.0", - "sp-io 24.0.0", + "sp-core", + "sp-io", "sp-std 9.0.0", ] -[[package]] -name = "sp-arithmetic" -version = "16.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb6020576e544c6824a51d651bc8df8e6ab67cd59f1c9ac09868bb81a5199ded" -dependencies = [ - "integer-sqrt", - "num-traits", - "parity-scale-codec", - "scale-info", - "serde", - "sp-std 8.0.0", - "static_assertions", -] - [[package]] name = "sp-arithmetic" version = "17.0.0" @@ -4631,58 +4570,13 @@ dependencies = [ "static_assertions", ] -[[package]] -name = "sp-core" -version = "21.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f18d9e2f67d8661f9729f35347069ac29d92758b59135176799db966947a7336" -dependencies = [ - "array-bytes 4.2.0", - "bitflags 1.3.2", - "blake2", - "bounded-collections", - "bs58 0.4.0", - "dyn-clonable", - "ed25519-zebra", - "futures", - "hash-db", - "hash256-std-hasher", - "impl-serde", - "lazy_static", - "libsecp256k1", - "log", - "merlin 2.0.1", - "parity-scale-codec", - "parking_lot", - "paste", - "primitive-types", - "rand 0.8.5", - "regex", - "scale-info", - "schnorrkel 0.9.1", - "secp256k1 0.24.3", - "secrecy", - "serde", - "sp-core-hashing 9.0.0", - "sp-debug-derive 8.0.0", - "sp-externalities 0.19.0", - "sp-runtime-interface 17.0.0", - "sp-std 8.0.0", - "sp-storage 13.0.0", - "ss58-registry", - "substrate-bip39", - "thiserror", - "tiny-bip39", - "zeroize", -] - [[package]] name = "sp-core" version = "22.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d0de478e02efd547693b33ad02515e09933d5b69b7f3036fa890b92e50fd9dfc" dependencies = [ - "array-bytes 6.1.0", + "array-bytes", "bitflags 1.3.2", "blake2", "bounded-collections", @@ -4709,11 +4603,11 @@ dependencies = [ "secrecy", "serde", "sp-core-hashing 10.0.0", - "sp-debug-derive 9.0.0", - "sp-externalities 0.20.0", - "sp-runtime-interface 18.0.0", + "sp-debug-derive", + "sp-externalities", + "sp-runtime-interface", "sp-std 9.0.0", - "sp-storage 14.0.0", + "sp-storage", "ss58-registry", "substrate-bip39", "thiserror", @@ -4751,17 +4645,6 @@ dependencies = [ "twox-hash", ] -[[package]] -name = "sp-debug-derive" -version = "8.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7f531814d2f16995144c74428830ccf7d94ff4a7749632b83ad8199b181140c" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.29", -] - [[package]] name = "sp-debug-derive" version = "9.0.0" @@ -4773,18 +4656,6 @@ dependencies = [ "syn 2.0.29", ] -[[package]] -name = "sp-externalities" -version = "0.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0f71c671e01a8ca60da925d43a1b351b69626e268b8837f8371e320cf1dd100" -dependencies = [ - "environmental", - "parity-scale-codec", - "sp-std 8.0.0", - "sp-storage 13.0.0", -] - [[package]] name = "sp-externalities" version = "0.20.0" @@ -4794,34 +4665,7 @@ dependencies = [ "environmental", "parity-scale-codec", "sp-std 9.0.0", - "sp-storage 14.0.0", -] - -[[package]] -name = "sp-io" -version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d597e35a9628fe7454b08965b2442e3ec0f264b0a90d41328e87422cec02e99" -dependencies = [ - "bytes", - "ed25519", - "ed25519-dalek", - "futures", - "libsecp256k1", - "log", - "parity-scale-codec", - "rustversion", - "secp256k1 0.24.3", - "sp-core 21.0.0", - "sp-externalities 0.19.0", - "sp-keystore 0.27.0", - "sp-runtime-interface 17.0.0", - "sp-state-machine 0.28.0", - "sp-std 8.0.0", - "sp-tracing 10.0.0", - "sp-trie 22.0.0", - "tracing", - "tracing-core", + "sp-storage", ] [[package]] @@ -4838,14 +4682,14 @@ dependencies = [ "parity-scale-codec", "rustversion", "secp256k1 0.24.3", - "sp-core 22.0.0", - "sp-externalities 0.20.0", - "sp-keystore 0.28.0", - "sp-runtime-interface 18.0.0", - "sp-state-machine 0.29.0", + "sp-core", + "sp-externalities", + "sp-keystore", + "sp-runtime-interface", + "sp-state-machine", "sp-std 9.0.0", - "sp-tracing 11.0.0", - "sp-trie 23.0.0", + "sp-tracing", + "sp-trie", "tracing", "tracing-core", ] @@ -4857,25 +4701,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a8a8e92be047fe992109220cdfd47f626a85a1e6579d1163703d05137a1068b1" dependencies = [ "lazy_static", - "sp-core 22.0.0", - "sp-runtime 25.0.0", + "sp-core", + "sp-runtime", "strum 0.24.1", ] -[[package]] -name = "sp-keystore" -version = "0.27.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9be3cdd67cc1d9c1db17c5cbc4ec4924054a8437009d167f21f6590797e4aa45" -dependencies = [ - "futures", - "parity-scale-codec", - "parking_lot", - "sp-core 21.0.0", - "sp-externalities 0.19.0", - "thiserror", -] - [[package]] name = "sp-keystore" version = "0.28.0" @@ -4884,22 +4714,11 @@ checksum = "6eda1d2572a15340927a9f7db75ffe74366b645eaf9212015b4a96ad8e9d4c46" dependencies = [ "parity-scale-codec", "parking_lot", - "sp-core 22.0.0", - "sp-externalities 0.20.0", + "sp-core", + "sp-externalities", "thiserror", ] -[[package]] -name = "sp-panic-handler" -version = "8.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebd2de46003fa8212426838ca71cd42ee36a26480ba9ffea983506ce03131033" -dependencies = [ - "backtrace", - "lazy_static", - "regex", -] - [[package]] name = "sp-panic-handler" version = "9.0.0" @@ -4911,29 +4730,6 @@ dependencies = [ "regex", ] -[[package]] -name = "sp-runtime" -version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21c5bfc764a1a8259d7e8f7cfd22c84006275a512c958d3ff966c92151e134d5" -dependencies = [ - "either", - "hash256-std-hasher", - "impl-trait-for-tuples", - "log", - "parity-scale-codec", - "paste", - "rand 0.8.5", - "scale-info", - "serde", - "sp-application-crypto 23.0.0", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-std 8.0.0", - "sp-weights 20.0.0", -] - [[package]] name = "sp-runtime" version = "25.0.0" @@ -4949,31 +4745,12 @@ dependencies = [ "rand 0.8.5", "scale-info", "serde", - "sp-application-crypto 24.0.0", - "sp-arithmetic 17.0.0", - "sp-core 22.0.0", - "sp-io 24.0.0", + "sp-application-crypto", + "sp-arithmetic", + "sp-core", + "sp-io", "sp-std 9.0.0", - "sp-weights 21.0.0", -] - -[[package]] -name = "sp-runtime-interface" -version = "17.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e676128182f90015e916f806cba635c8141e341e7abbc45d25525472e1bbce8" -dependencies = [ - "bytes", - "impl-trait-for-tuples", - "parity-scale-codec", - "primitive-types", - "sp-externalities 0.19.0", - "sp-runtime-interface-proc-macro 11.0.0", - "sp-std 8.0.0", - "sp-storage 13.0.0", - "sp-tracing 10.0.0", - "sp-wasm-interface 14.0.0", - "static_assertions", + "sp-weights", ] [[package]] @@ -4986,28 +4763,15 @@ dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "primitive-types", - "sp-externalities 0.20.0", - "sp-runtime-interface-proc-macro 12.0.0", + "sp-externalities", + "sp-runtime-interface-proc-macro", "sp-std 9.0.0", - "sp-storage 14.0.0", - "sp-tracing 11.0.0", - "sp-wasm-interface 15.0.0", + "sp-storage", + "sp-tracing", + "sp-wasm-interface", "static_assertions", ] -[[package]] -name = "sp-runtime-interface-proc-macro" -version = "11.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5d5bd5566fe5633ec48dfa35ab152fd29f8a577c21971e1c6db9f28afb9bbb9" -dependencies = [ - "Inflector", - "proc-macro-crate 1.3.1", - "proc-macro2", - "quote", - "syn 2.0.29", -] - [[package]] name = "sp-runtime-interface-proc-macro" version = "12.0.0" @@ -5021,27 +4785,6 @@ dependencies = [ "syn 2.0.29", ] -[[package]] -name = "sp-state-machine" -version = "0.28.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ef45d31f9e7ac648f8899a0cd038a3608f8499028bff55b6c799702592325b6" -dependencies = [ - "hash-db", - "log", - "parity-scale-codec", - "parking_lot", - "rand 0.8.5", - "smallvec", - "sp-core 21.0.0", - "sp-externalities 0.19.0", - "sp-panic-handler 8.0.0", - "sp-std 8.0.0", - "sp-trie 22.0.0", - "thiserror", - "tracing", -] - [[package]] name = "sp-state-machine" version = "0.29.0" @@ -5054,11 +4797,11 @@ dependencies = [ "parking_lot", "rand 0.8.5", "smallvec", - "sp-core 22.0.0", - "sp-externalities 0.20.0", - "sp-panic-handler 9.0.0", + "sp-core", + "sp-externalities", + "sp-panic-handler", "sp-std 9.0.0", - "sp-trie 23.0.0", + "sp-trie", "thiserror", "tracing", "trie-db", @@ -5076,20 +4819,6 @@ version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2d5bbc9339227d1b6a9b7ccd9b2920c818653d40eef1512f1e2e824d72e7a336" -[[package]] -name = "sp-storage" -version = "13.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94294be83f11d4958cfea89ed5798f0b6605f5defc3a996948848458abbcc18e" -dependencies = [ - "impl-serde", - "parity-scale-codec", - "ref-cast", - "serde", - "sp-debug-derive 8.0.0", - "sp-std 8.0.0", -] - [[package]] name = "sp-storage" version = "14.0.0" @@ -5100,23 +4829,10 @@ dependencies = [ "parity-scale-codec", "ref-cast", "serde", - "sp-debug-derive 9.0.0", + "sp-debug-derive", "sp-std 9.0.0", ] -[[package]] -name = "sp-tracing" -version = "10.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "357f7591980dd58305956d32f8f6646d0a8ea9ea0e7e868e46f53b68ddf00cec" -dependencies = [ - "parity-scale-codec", - "sp-std 8.0.0", - "tracing", - "tracing-core", - "tracing-subscriber 0.2.25", -] - [[package]] name = "sp-tracing" version = "11.0.0" @@ -5130,30 +4846,6 @@ dependencies = [ "tracing-subscriber 0.2.25", ] -[[package]] -name = "sp-trie" -version = "22.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48e4eeb7ef23f79eba8609db79ef9cef242f994f1f87a3c0387b4b5f177fda74" -dependencies = [ - "ahash 0.8.3", - "hash-db", - "hashbrown 0.13.2", - "lazy_static", - "memory-db", - "nohash-hasher", - "parity-scale-codec", - "parking_lot", - "scale-info", - "schnellru", - "sp-core 21.0.0", - "sp-std 8.0.0", - "thiserror", - "tracing", - "trie-db", - "trie-root", -] - [[package]] name = "sp-trie" version = "23.0.0" @@ -5170,7 +4862,7 @@ dependencies = [ "parking_lot", "scale-info", "schnellru", - "sp-core 22.0.0", + "sp-core", "sp-std 9.0.0", "thiserror", "tracing", @@ -5178,20 +4870,6 @@ dependencies = [ "trie-root", ] -[[package]] -name = "sp-wasm-interface" -version = "14.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a19c122609ca5d8246be6386888596320d03c7bc880959eaa2c36bcd5acd6846" -dependencies = [ - "anyhow", - "impl-trait-for-tuples", - "log", - "parity-scale-codec", - "sp-std 8.0.0", - "wasmtime", -] - [[package]] name = "sp-wasm-interface" version = "15.0.0" @@ -5206,22 +4884,6 @@ dependencies = [ "wasmtime", ] -[[package]] -name = "sp-weights" -version = "20.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45d084c735544f70625b821c3acdbc7a2fc1893ca98b85f1942631284692c75b" -dependencies = [ - "parity-scale-codec", - "scale-info", - "serde", - "smallvec", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", - "sp-debug-derive 8.0.0", - "sp-std 8.0.0", -] - [[package]] name = "sp-weights" version = "21.0.0" @@ -5232,9 +4894,9 @@ dependencies = [ "scale-info", "serde", "smallvec", - "sp-arithmetic 17.0.0", - "sp-core 22.0.0", - "sp-debug-derive 9.0.0", + "sp-arithmetic", + "sp-core", + "sp-debug-derive", "sp-std 9.0.0", ] @@ -5348,9 +5010,9 @@ checksum = "9aa9303045de87997d05bb772a4540cd8af36685e7deb715611933c225a33ac2" [[package]] name = "subtle" -version = "2.4.1" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" +checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" [[package]] name = "subtle-ng" @@ -5979,9 +5641,9 @@ checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" [[package]] name = "universal-hash" -version = "0.4.1" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f214e8f697e925001e66ec2c6e37a4ef93f0f78c2eed7814394e10c62025b05" +checksum = "8326b2c654932e3e4f9196e69d08fdf7cfd718e1dc6f66b347e6024a0c961402" dependencies = [ "generic-array 0.14.7", "subtle", diff --git a/crates/cargo-contract/Cargo.toml b/crates/cargo-contract/Cargo.toml index 85762968d..51d4d9737 100644 --- a/crates/cargo-contract/Cargo.toml +++ b/crates/cargo-contract/Cargo.toml @@ -39,9 +39,9 @@ semver = "1.0" # dependencies for extrinsics (deploying and calling a contract) tokio = { version = "1", features = ["macros", "rt-multi-thread"] } subxt = "0.31.0" -sp-core = "21.0.0" -sp-weights = "20.0.0" -pallet-contracts-primitives = "24.0.0" +sp-core = "22.0.0" +sp-weights = "21.0.0" +pallet-contracts-primitives = "25.0.0" hex = "0.4.3" [build-dependencies] diff --git a/crates/extrinsics/Cargo.toml b/crates/extrinsics/Cargo.toml index c8ed7de87..d1068c68c 100644 --- a/crates/extrinsics/Cargo.toml +++ b/crates/extrinsics/Cargo.toml @@ -29,10 +29,10 @@ serde_json = "1.0.105" url = { version = "2.4.1", features = ["serde"] } rust_decimal = "1.32" tokio = { version = "1", features = ["macros", "rt-multi-thread"] } -sp-core = "21.0.0" -sp-runtime = "24.0.0" -sp-weights = "20.0.0" -pallet-contracts-primitives = "24.0.0" +sp-core = "22.0.0" +sp-runtime = "25.0.0" +sp-weights = "21.0.0" +pallet-contracts-primitives = "25.0.0" scale-info = "2.8.0" subxt = "0.31.0" subxt-signer = { version = "0.31.0", features = ["subxt", "sr25519"] } From 581cc1b5149ed454078a49ca3881cd442a985ccc Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Fri, 8 Sep 2023 15:53:57 +0100 Subject: [PATCH 08/13] Fix transcode tests compilation --- crates/transcode/Cargo.toml | 2 +- crates/transcode/src/lib.rs | 24 ++++++++++++++++++------ 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/crates/transcode/Cargo.toml b/crates/transcode/Cargo.toml index 14a9c3f02..5f22439ea 100644 --- a/crates/transcode/Cargo.toml +++ b/crates/transcode/Cargo.toml @@ -45,7 +45,7 @@ strsim = "0.10.0" assert_matches = "1.5.0" #ink = "4.3.0" # todo: use crates.io release when available -ink_metadata = { git = "https://github.com/paritytech/ink/", package = "ink" } +ink = { git = "https://github.com/paritytech/ink/", package = "ink" } sp-core = "22.0.0" sp-keyring = "25.0.0" diff --git a/crates/transcode/src/lib.rs b/crates/transcode/src/lib.rs index 5a96f95f1..8fb318113 100644 --- a/crates/transcode/src/lib.rs +++ b/crates/transcode/src/lib.rs @@ -500,6 +500,7 @@ impl CompositeTypeFields { #[cfg(test)] mod tests { use super::*; + use primitive_types::H256; use scale::Encode; use scon::Value; use std::str::FromStr; @@ -777,12 +778,16 @@ mod tests { let metadata = generate_metadata(); let transcoder = ContractMessageTranscoder::new(metadata); - let signature_topic = ::SIGNATURE_TOPIC; + let signature_topic: H256 = + ::SIGNATURE_TOPIC + .unwrap() + .into(); // raw encoded event let encoded = ([0u32; 8], [1u32; 8]).encode(); // encode again as a Vec which has a len prefix. let encoded_bytes = encoded.encode(); - let _ = transcoder.decode_contract_event(signature_topic, &mut &encoded_bytes[..])?; + let _ = transcoder + .decode_contract_event(&signature_topic, &mut &encoded_bytes[..])?; Ok(()) } @@ -796,12 +801,16 @@ mod tests { 52u8, 40, 235, 225, 70, 245, 184, 36, 21, 218, 130, 114, 75, 207, 117, 240, 83, 118, 135, 56, 220, 172, 95, 131, 171, 125, 130, 167, 10, 15, 242, 222, ]; - let signature_topic = ::SIGNATURE_TOPIC; + let signature_topic: H256 = + ::SIGNATURE_TOPIC + .unwrap() + .into(); // raw encoded event with event index prefix let encoded = (hash, [0u32; 8]).encode(); // encode again as a Vec which has a len prefix. let encoded_bytes = encoded.encode(); - let decoded = transcoder.decode_contract_event(signature_topic, &mut &encoded_bytes[..])?; + let decoded = transcoder + .decode_contract_event(&signature_topic, &mut &encoded_bytes[..])?; if let Value::Map(ref map) = decoded { let name_field = &map[&Value::String("name".into())]; @@ -854,13 +863,16 @@ mod tests { let metadata = generate_metadata(); let transcoder = ContractMessageTranscoder::new(metadata); - let signature_topic = ::SIGNATURE_TOPIC; + let signature_topic: H256 = + ::SIGNATURE_TOPIC + .unwrap() + .into(); // raw encoded event with event index prefix let encoded = ([0u32; 8], [1u32; 8], [12u8, 16u8]).encode(); // encode again as a Vec which has a len prefix. let encoded_bytes = encoded.encode(); let _ = transcoder - .decode_contract_event(signature_topic, &mut &encoded_bytes[..]) + .decode_contract_event(&signature_topic, &mut &encoded_bytes[..]) .unwrap(); } } From b87ead95272f7d7b71cc679033c7af3f897b7717 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Fri, 8 Sep 2023 16:12:00 +0100 Subject: [PATCH 09/13] Fix up decode integration test --- crates/cargo-contract/tests/decode.rs | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/crates/cargo-contract/tests/decode.rs b/crates/cargo-contract/tests/decode.rs index 776d5c37e..1e6847fab 100644 --- a/crates/cargo-contract/tests/decode.rs +++ b/crates/cargo-contract/tests/decode.rs @@ -82,10 +82,9 @@ fn decode_works() { // message data is being decoded properly cargo_contract(&project_dir) .arg("decode") + .arg("message") .arg("--data") .arg(msg_data) - .arg("-t") - .arg("message") .assert() .success() .stdout(predicates::str::contains(msg_decoded)); @@ -98,26 +97,27 @@ fn decode_works() { // wrong message data is being handled properly cargo_contract(&project_dir) .arg("decode") + .arg("message") .arg("--data") .arg(wrong_msg_data) - .arg("-t") - .arg("message") .assert() .failure() .stderr(predicates::str::contains(error_msg)); // when - let event_data: &str = "080001"; + let signature_topic = "TODO"; + let event_data: &str = "0001"; let event_decoded: &str = r#"Switched { new_value: true }"#; // then // event data is being decoded properly cargo_contract(&project_dir) .arg("decode") + .arg("event") + .arg("--signature-topic") + .arg(signature_topic) .arg("--data") .arg(event_data) - .arg("-t") - .arg("event") .assert() .success() .stdout(predicates::str::contains(event_decoded)); @@ -130,10 +130,11 @@ fn decode_works() { // wrong event data is being handled properly cargo_contract(&project_dir) .arg("decode") + .arg("event") + .arg("--signature-topic") + .arg(signature_topic) .arg("--data") .arg(wrong_event_data) - .arg("-t") - .arg("event") .assert() .failure() .stderr(predicates::str::contains(error_msg)); @@ -146,10 +147,9 @@ fn decode_works() { // constructor data is being decoded properly cargo_contract(&project_dir) .arg("decode") + .arg("constructor") .arg("-d") .arg(constructor_data) - .arg("-t") - .arg("constructor") .assert() .success() .stdout(predicates::str::contains(constructor_decoded)); @@ -162,10 +162,9 @@ fn decode_works() { // wrong constructor data is being handled properly cargo_contract(&project_dir) .arg("decode") + .arg("constructor") .arg("-d") .arg(wrong_constructor_data) - .arg("-t") - .arg("constructor") .assert() .failure() .stderr(predicates::str::contains(error_msg)); From 0125806dc1c98887c5ca80f54c4089879410a77f Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Mon, 11 Sep 2023 09:44:05 +0100 Subject: [PATCH 10/13] Use ink deps release --- crates/build/templates/new/_Cargo.toml | 5 +---- crates/transcode/Cargo.toml | 11 +++-------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/crates/build/templates/new/_Cargo.toml b/crates/build/templates/new/_Cargo.toml index 681e0fc0b..bb450e156 100644 --- a/crates/build/templates/new/_Cargo.toml +++ b/crates/build/templates/new/_Cargo.toml @@ -5,14 +5,11 @@ authors = ["[your_name] <[your_email]>"] edition = "2021" [dependencies] -ink = { version = "4.3.0", default-features = false } +ink = { version = "5.0.0-alpha", default-features = false } scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] } scale-info = { version = "2.6", default-features = false, features = ["derive"], optional = true } -[dev-dependencies] -ink_e2e = "4.3.0" - [lib] path = "lib.rs" diff --git a/crates/transcode/Cargo.toml b/crates/transcode/Cargo.toml index 5f22439ea..a9e81fbdf 100644 --- a/crates/transcode/Cargo.toml +++ b/crates/transcode/Cargo.toml @@ -24,11 +24,8 @@ contract-metadata = { version = "4.0.0-alpha", path = "../metadata" } escape8259 = "0.5.2" hex = "0.4.3" indexmap = "2.0.0" -#ink_env = "4.3.0" -# ink_metadata = "4.3.0" -# todo: use crates.io release when available -ink_metadata = { git = "https://github.com/paritytech/ink/", package = "ink_metadata" } -ink_env = { git = "https://github.com/paritytech/ink/", package = "ink_env" } +ink_env = "5.0.0-alpha" +ink_metadata = "5.0.0-alpha" itertools = "0.11.0" tracing = "0.1.37" nom = "7.1.3" @@ -43,9 +40,7 @@ strsim = "0.10.0" [dev-dependencies] assert_matches = "1.5.0" -#ink = "4.3.0" -# todo: use crates.io release when available -ink = { git = "https://github.com/paritytech/ink/", package = "ink" } +ink = "5.0.0-alpha" sp-core = "22.0.0" sp-keyring = "25.0.0" From b59fba36bcf57bc87745136b230216aca759b90f Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Mon, 11 Sep 2023 09:44:19 +0100 Subject: [PATCH 11/13] Cargo.lock --- Cargo.lock | 60 ++++++++++++++++++++++++++++++++---------------------- 1 file changed, 36 insertions(+), 24 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b1ce7fd15..f81173ea8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2241,8 +2241,9 @@ checksum = "8e04e2fd2b8188ea827b32ef11de88377086d690286ab35747ef7f9bf3ccb590" [[package]] name = "ink" -version = "4.2.0" -source = "git+https://github.com/paritytech/ink/#b61123fcdfd30c91d021db249f8c6b5f26a66cb4" +version = "5.0.0-alpha" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c208b4e7cd39a9d1ccbfc513bc8c8353a2c9c7b61453e5f3ab5493025d50115" dependencies = [ "derive_more", "ink_env", @@ -2257,16 +2258,18 @@ dependencies = [ [[package]] name = "ink_allocator" -version = "4.2.0" -source = "git+https://github.com/paritytech/ink/#b61123fcdfd30c91d021db249f8c6b5f26a66cb4" +version = "5.0.0-alpha" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "688a37ac26b6e101f6a263ab8e8b0ceac84b36cb805129a666cefed3ebf362e8" dependencies = [ "cfg-if", ] [[package]] name = "ink_codegen" -version = "4.2.0" -source = "git+https://github.com/paritytech/ink/#b61123fcdfd30c91d021db249f8c6b5f26a66cb4" +version = "5.0.0-alpha" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "640caaa107cdef532c3488bf8beb6cb84d99fc155af6d771dbf56d62e9c2f338" dependencies = [ "blake2", "derive_more", @@ -2286,8 +2289,9 @@ dependencies = [ [[package]] name = "ink_engine" -version = "4.2.0" -source = "git+https://github.com/paritytech/ink/#b61123fcdfd30c91d021db249f8c6b5f26a66cb4" +version = "5.0.0-alpha" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d34dd340d4a2c2d1bb81cf52c8bdef71698871bba13a065f500a69508f23a171" dependencies = [ "blake2", "derive_more", @@ -2300,8 +2304,9 @@ dependencies = [ [[package]] name = "ink_env" -version = "4.2.0" -source = "git+https://github.com/paritytech/ink/#b61123fcdfd30c91d021db249f8c6b5f26a66cb4" +version = "5.0.0-alpha" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16a28d3afbae0b316a0a5e86cd81704d67c98244d8c299fe88eee13f5c4dac0e" dependencies = [ "blake2", "cfg-if", @@ -2328,8 +2333,9 @@ dependencies = [ [[package]] name = "ink_ir" -version = "4.2.0" -source = "git+https://github.com/paritytech/ink/#b61123fcdfd30c91d021db249f8c6b5f26a66cb4" +version = "5.0.0-alpha" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d7eb70a17374b1dbda2b903a36c0da7bf917f261e9d04e4c9a839252be6ac1a" dependencies = [ "blake2", "either", @@ -2342,8 +2348,9 @@ dependencies = [ [[package]] name = "ink_macro" -version = "4.2.0" -source = "git+https://github.com/paritytech/ink/#b61123fcdfd30c91d021db249f8c6b5f26a66cb4" +version = "5.0.0-alpha" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73351daeaea90e9b08e320cc7f14cdb411aec321c5b0f13923108c42a75c1180" dependencies = [ "ink_codegen", "ink_ir", @@ -2357,8 +2364,9 @@ dependencies = [ [[package]] name = "ink_metadata" -version = "4.2.0" -source = "git+https://github.com/paritytech/ink/#b61123fcdfd30c91d021db249f8c6b5f26a66cb4" +version = "5.0.0-alpha" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ad9535f950e210bf584ba008df5bf4f013e634cf0a468c2cbc6342bbed32014" dependencies = [ "derive_more", "impl-serde", @@ -2372,16 +2380,18 @@ dependencies = [ [[package]] name = "ink_prelude" -version = "4.2.0" -source = "git+https://github.com/paritytech/ink/#b61123fcdfd30c91d021db249f8c6b5f26a66cb4" +version = "5.0.0-alpha" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74705c00d6993ccadb97675524b5b5d98e7292c49126c2daf87d1da63bed6aa7" dependencies = [ "cfg-if", ] [[package]] name = "ink_primitives" -version = "4.2.0" -source = "git+https://github.com/paritytech/ink/#b61123fcdfd30c91d021db249f8c6b5f26a66cb4" +version = "5.0.0-alpha" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "513e93039a85caf84637746e35d0ed0b71ac0ace7e5268650f3d90e413ba989b" dependencies = [ "derive_more", "ink_prelude", @@ -2394,8 +2404,9 @@ dependencies = [ [[package]] name = "ink_storage" -version = "4.2.0" -source = "git+https://github.com/paritytech/ink/#b61123fcdfd30c91d021db249f8c6b5f26a66cb4" +version = "5.0.0-alpha" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b15e73e6fdf15666b057b39515bd992088ba5fe19a708db778b1bca0d5b8830" dependencies = [ "array-init", "cfg-if", @@ -2411,8 +2422,9 @@ dependencies = [ [[package]] name = "ink_storage_traits" -version = "4.2.0" -source = "git+https://github.com/paritytech/ink/#b61123fcdfd30c91d021db249f8c6b5f26a66cb4" +version = "5.0.0-alpha" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23206662b622a5b9053cb21b55bf7b7263b874836c98747717a62073797c5b3e" dependencies = [ "ink_metadata", "ink_prelude", From c06c0ef2ad7d92678989e2371a1ddf0e8c0f3589 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Mon, 11 Sep 2023 10:59:02 +0100 Subject: [PATCH 12/13] Cargo.lock --- Cargo.lock | 1 + crates/cargo-contract/Cargo.toml | 1 + crates/cargo-contract/src/cmd/decode.rs | 1 - crates/cargo-contract/tests/decode.rs | 5 +++-- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f81173ea8..71ae60026 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -756,6 +756,7 @@ dependencies = [ "hex", "pallet-contracts-primitives", "predicates", + "primitive-types", "regex", "semver", "serde", diff --git a/crates/cargo-contract/Cargo.toml b/crates/cargo-contract/Cargo.toml index 51d4d9737..8cd4b46ae 100644 --- a/crates/cargo-contract/Cargo.toml +++ b/crates/cargo-contract/Cargo.toml @@ -25,6 +25,7 @@ contract-metadata = { version = "4.0.0-alpha", path = "../metadata" } anyhow = "1.0.75" clap = { version = "4.4.2", features = ["derive", "env"] } +primitive-types = { version = "0.12.1", default-features = false, features = ["codec", "scale-info", "serde"] } tracing = "0.1.37" tracing-subscriber = { version = "0.3.17", features = ["env-filter"] } which = "4.4.2" diff --git a/crates/cargo-contract/src/cmd/decode.rs b/crates/cargo-contract/src/cmd/decode.rs index 0e9ac5152..9d2e407b2 100644 --- a/crates/cargo-contract/src/cmd/decode.rs +++ b/crates/cargo-contract/src/cmd/decode.rs @@ -29,7 +29,6 @@ use contract_build::{ CrateMetadata, }; use contract_transcode::ContractMessageTranscoder; -use subxt::ext::scale_decode::ext::primitive_types; #[derive(Debug, Args)] pub struct DecodeCommand { diff --git a/crates/cargo-contract/tests/decode.rs b/crates/cargo-contract/tests/decode.rs index 1e6847fab..a54d13ca8 100644 --- a/crates/cargo-contract/tests/decode.rs +++ b/crates/cargo-contract/tests/decode.rs @@ -105,7 +105,8 @@ fn decode_works() { .stderr(predicates::str::contains(error_msg)); // when - let signature_topic = "TODO"; + let signature_topic = + "325c98ff66bd0d9d1c10789ae1f2a17bdfb2dcf6aa3d8092669afafdef1cb72d"; let event_data: &str = "0001"; let event_decoded: &str = r#"Switched { new_value: true }"#; @@ -123,7 +124,7 @@ fn decode_works() { .stdout(predicates::str::contains(event_decoded)); // and when - let wrong_event_data: &str = "0800010C"; + let wrong_event_data: &str = "00010C"; let error_msg: &str = "input length was longer than expected by 1 byte(s).\nManaged to decode `Switched`, `new_value` but `0C` bytes were left unread"; // then From d7cb2c0b40527b39ca081a382f5d028a3dd89c86 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Mon, 11 Sep 2023 11:01:00 +0100 Subject: [PATCH 13/13] reorder --- crates/cargo-contract/src/cmd/decode.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/crates/cargo-contract/src/cmd/decode.rs b/crates/cargo-contract/src/cmd/decode.rs index 9d2e407b2..d665f5cbb 100644 --- a/crates/cargo-contract/src/cmd/decode.rs +++ b/crates/cargo-contract/src/cmd/decode.rs @@ -81,16 +81,6 @@ impl DecodeCommand { const ERR_MSG: &str = "Failed to decode specified data as a hex value"; let decoded_data = match &self.commands { - DecodeCommands::Message(message) => { - transcoder.decode_contract_message( - &mut &util::decode_hex(&message.data).context(ERR_MSG)?[..], - )? - } - DecodeCommands::Constructor(constructor) => { - transcoder.decode_contract_constructor( - &mut &util::decode_hex(&constructor.data).context(ERR_MSG)?[..], - )? - } DecodeCommands::Event(event) => { let signature_topic_data = util::decode_hex(&event.signature_topic).context(ERR_MSG)?; @@ -101,6 +91,16 @@ impl DecodeCommand { &mut &util::decode_hex(&event.data).context(ERR_MSG)?[..], )? } + DecodeCommands::Message(message) => { + transcoder.decode_contract_message( + &mut &util::decode_hex(&message.data).context(ERR_MSG)?[..], + )? + } + DecodeCommands::Constructor(constructor) => { + transcoder.decode_contract_constructor( + &mut &util::decode_hex(&constructor.data).context(ERR_MSG)?[..], + )? + } }; println!(