diff --git a/Cargo.lock b/Cargo.lock index a0a8f509..f50d740d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -270,31 +270,12 @@ dependencies = [ "rustc-demangle", ] -[[package]] -name = "bae" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec107f431ee3d8a8e45e6dd117adab769556ef463959e77bf6a4888d5fd500cf" -dependencies = [ - "heck", - "proc-macro-error 0.4.12", - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "base58" version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6107fe1be6682a68940da878d9e9f5e90ca5745b3dec9fd1bb393c8777d4f581" -[[package]] -name = "base64" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ff" - [[package]] name = "base64" version = "0.13.0" @@ -359,6 +340,15 @@ dependencies = [ "generic-array 0.14.4", ] +[[package]] +name = "block-buffer" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf7fe51849ea569fd452f37822f606a5cabb684dc918707a0193fd4664ff324" +dependencies = [ + "generic-array 0.14.4", +] + [[package]] name = "block-padding" version = "0.1.5" @@ -465,9 +455,9 @@ dependencies = [ [[package]] name = "color-eyre" -version = "0.5.11" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f1885697ee8a177096d42f158922251a41973117f6d8a234cee94b9509157b7" +checksum = "9d6ec7641ff3474b7593009c809db602c414cd97c7d47a78ed004162b74ff96c" dependencies = [ "backtrace", "color-spantrace", @@ -480,9 +470,9 @@ dependencies = [ [[package]] name = "color-spantrace" -version = "0.1.6" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6eee477a4a8a72f4addd4de416eb56d54bc307b284d6601bafdee1f4ea462d1" +checksum = "1ba75b3d9449ecdccb27ecbc479fdc0b87fa2dd43d2f8298f9bf0e59aacc8dce" dependencies = [ "once_cell", "owo-colors", @@ -513,9 +503,9 @@ checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e" [[package]] name = "core-foundation" -version = "0.9.2" +version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6888e10551bb93e424d8df1d07f1a8b4fceb0001a3a4b048bfc47554946f47b3" +checksum = "194a7a9e6de53fa55116934067c844d9d749312f75c6f6d0980e8c252f8c2146" dependencies = [ "core-foundation-sys", "libc", @@ -552,6 +542,15 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" +[[package]] +name = "crypto-common" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4600d695eb3f6ce1cd44e6e291adceb2cc3ab12f20a33777ecd0bf6eba34e06" +dependencies = [ + "generic-array 0.14.4", +] + [[package]] name = "crypto-mac" version = "0.8.0" @@ -572,15 +571,6 @@ dependencies = [ "subtle", ] -[[package]] -name = "ct-logs" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1a816186fa68d9e426e3cb4ae4dff1fcd8e4a2c34b781bf7a822574a0d0aac8" -dependencies = [ - "sct", -] - [[package]] name = "ctor" version = "0.1.21" @@ -652,6 +642,17 @@ dependencies = [ "syn", ] +[[package]] +name = "derivative" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "derive_more" version = "0.99.16" @@ -683,6 +684,16 @@ dependencies = [ "generic-array 0.14.4", ] +[[package]] +name = "digest" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8cb780dce4f9a8f5c087362b3a4595936b2019e7c8b30f2c3e9a7e94e6ae9837" +dependencies = [ + "block-buffer 0.10.2", + "crypto-common", +] + [[package]] name = "downcast-rs" version = "1.2.0" @@ -800,16 +811,6 @@ version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" -[[package]] -name = "form_urlencoded" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191" -dependencies = [ - "matches", - "percent-encoding", -] - [[package]] name = "frame-metadata" version = "14.2.0" @@ -1000,25 +1001,6 @@ dependencies = [ "web-sys", ] -[[package]] -name = "h2" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fd819562fcebdac5afc5c113c3ec36f902840b70fd4fc458799c8ce4607ae55" -dependencies = [ - "bytes", - "fnv", - "futures-core", - "futures-sink", - "futures-util", - "http", - "indexmap", - "slab", - "tokio", - "tokio-util", - "tracing", -] - [[package]] name = "hash-db" version = "0.15.2" @@ -1043,6 +1025,15 @@ dependencies = [ "ahash", ] +[[package]] +name = "hashbrown" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c21d40587b92fa6a6c6e3c1bdbf87d75511db5672f9c93175574b3a00df1758" +dependencies = [ + "ahash", +] + [[package]] name = "heck" version = "0.3.3" @@ -1052,6 +1043,12 @@ dependencies = [ "unicode-segmentation", ] +[[package]] +name = "heck" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2540771e65fc8cb83cd6e8a237f70c319bd5c29f78ed1084ba5d50eeac86f7f9" + [[package]] name = "hermit-abi" version = "0.1.19" @@ -1100,9 +1097,9 @@ dependencies = [ [[package]] name = "http" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1323096b05d41827dadeaee54c9981958c0f94e670bc94ed80037d1a7b8b186b" +checksum = "31f4c6746584866f0feabcc69893c5b51beef3831656a968ed7ae254cdc4fd03" dependencies = [ "bytes", "fnv", @@ -1122,74 +1119,44 @@ dependencies = [ [[package]] name = "httparse" -version = "1.5.1" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acd94fdbe1d4ff688b67b04eee2e17bd50995534a61539e45adfefb45e5e5503" +checksum = "9100414882e15fb7feccb4897e5f0ff0ff1ca7d1a86a23208ada4d7a18e6c6c4" [[package]] name = "httpdate" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6456b8a6c8f33fee7d958fcd1b60d55b11940a79e63ae87013e6d22e26034440" +checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421" [[package]] name = "hyper" -version = "0.14.14" +version = "0.14.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b91bb1f221b6ea1f1e4371216b70f40748774c2fb5971b450c07773fb92d26b" +checksum = "043f0e083e9901b6cc658a77d1eb86f4fc650bbb977a4337dd63192826aa85dd" dependencies = [ "bytes", "futures-channel", "futures-core", "futures-util", - "h2", "http", "http-body", "httparse", "httpdate", "itoa", "pin-project-lite", - "socket2", "tokio", "tower-service", "tracing", "want", ] -[[package]] -name = "hyper-rustls" -version = "0.22.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f9f7a97316d44c0af9b0301e65010573a853a9fc97046d7331d7f6bc0fd5a64" -dependencies = [ - "ct-logs", - "futures-util", - "hyper", - "log", - "rustls", - "rustls-native-certs", - "tokio", - "tokio-rustls", - "webpki", -] - [[package]] name = "ident_case" version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" -[[package]] -name = "idna" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8" -dependencies = [ - "matches", - "unicode-bidi", - "unicode-normalization", -] - [[package]] name = "impl-codec" version = "0.5.1" @@ -1225,21 +1192,11 @@ version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ce23b50ad8242c51a442f3ff322d56b02f08852c77e4c0b4d3fd684abc89c683" -[[package]] -name = "indexmap" -version = "1.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc633605454125dec4b66843673f01c7df2b89479b32e0ed634e43a91cff62a5" -dependencies = [ - "autocfg", - "hashbrown", -] - [[package]] name = "ink_metadata" -version = "3.0.0-rc6" +version = "3.0.0-rc8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a17644329730c7052d345a7a4431a907cf6fb34cc93482503c932e082657d99" +checksum = "e0e2c335905d3454f2eb01fd3c3678e60f4c391b3b4180350206a9e35a9837e8" dependencies = [ "derive_more", "impl-serde", @@ -1251,19 +1208,20 @@ dependencies = [ [[package]] name = "ink_prelude" -version = "3.0.0-rc6" +version = "3.0.0-rc8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33fa6d433451140e3a071ac38143529a40aa6a60bebdfa08a5b1ae1c2e452a46" +checksum = "622cecf655344080352db5099a366eeb1d84f93cbe3980e204fff61af66de976" dependencies = [ "cfg-if", ] [[package]] name = "ink_primitives" -version = "3.0.0-rc6" +version = "3.0.0-rc8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "279e53353c36d271286f89da91c9bcf7883ce62572a197ac57c9a9f01b8e9052" +checksum = "6303fbbe30b4c6bbe01ff36cce29e37961095574260d5958017ce9346834c77e" dependencies = [ + "cfg-if", "ink_prelude", "parity-scale-codec", ] @@ -1288,9 +1246,9 @@ dependencies = [ [[package]] name = "itoa" -version = "0.4.8" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4" +checksum = "1aab8fc367588b89dcee83ab0fd66b72b50b72fa1904d7095045ace2b0c81c35" [[package]] name = "js-sys" @@ -1302,91 +1260,71 @@ dependencies = [ ] [[package]] -name = "jsonrpsee-http-client" -version = "0.3.1" +name = "jsonrpsee" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa96aee30f40b97f1831e6ab7ba63d65b73d73ae418e1437bae2a47bbdf3aff6" +checksum = "05fd8cd6c6b1bbd06881d2cf88f1fc83cc36c98f2219090f839115fb4a956cb9" dependencies = [ - "async-trait", - "fnv", - "futures", - "hyper", - "hyper-rustls", - "jsonrpsee-types", - "jsonrpsee-utils", - "log", - "serde", - "serde_json", - "thiserror", - "tokio", - "url", + "jsonrpsee-client-transport", + "jsonrpsee-core", ] [[package]] -name = "jsonrpsee-proc-macros" -version = "0.3.1" +name = "jsonrpsee-client-transport" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8edb341d35279b59c79d7fe9e060a51aec29d45af99cc7c72ea7caa350fa71a4" +checksum = "3303cdf246e6ab76e2866fb3d9acb6c76a068b1b28bd923a1b7a8122257ad7b5" dependencies = [ - "Inflector", - "bae", - "proc-macro-crate 1.1.0", - "proc-macro2", - "quote", - "syn", + "futures", + "http", + "jsonrpsee-core", + "jsonrpsee-types", + "pin-project", + "rustls-native-certs", + "soketto", + "thiserror", + "tokio", + "tokio-rustls", + "tokio-util", + "tracing", + "webpki-roots", ] [[package]] -name = "jsonrpsee-types" -version = "0.3.1" +name = "jsonrpsee-core" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4cc738fd55b676ada3271ef7c383a14a0867a2a88b0fa941311bf5fc0a29d498" +checksum = "f220b5a238dc7992b90f1144fbf6eaa585872c9376afe6fe6863ffead6191bf3" dependencies = [ + "anyhow", + "arrayvec 0.7.2", "async-trait", "beef", "futures-channel", "futures-util", "hyper", - "log", + "jsonrpsee-types", + "rustc-hash", "serde", "serde_json", "soketto", "thiserror", + "tokio", + "tracing", ] [[package]] -name = "jsonrpsee-utils" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d674f0eafa768a66c5cd3ad3131c5d966b1425a475bc87be84acc6dc48321b01" -dependencies = [ - "futures-util", - "hyper", - "jsonrpsee-types", -] - -[[package]] -name = "jsonrpsee-ws-client" -version = "0.3.1" +name = "jsonrpsee-types" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9841352dbecf4c2ed5dc71698df9f1660262ae4e0b610e968602529bdbcf7b30" +checksum = "c1b3f601bbbe45cd63f5407b6f7d7950e08a7d4f82aa699ff41a4a5e9e54df58" dependencies = [ - "async-trait", - "fnv", - "futures", - "jsonrpsee-types", - "log", - "pin-project", - "rustls", - "rustls-native-certs", + "anyhow", + "beef", "serde", "serde_json", - "soketto", "thiserror", - "tokio", - "tokio-rustls", - "tokio-util", - "url", + "tracing", ] [[package]] @@ -1418,18 +1356,18 @@ checksum = "fbe5e23404da5b4f555ef85ebed98fb4083e55a00c317800bc2a50ede9f3d219" [[package]] name = "libsecp256k1" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9d220bc1feda2ac231cb78c3d26f27676b8cf82c96971f7aeef3d0cf2797c73" +checksum = "b0452aac8bab02242429380e9b2f94ea20cea2b37e2c1777a1358799bbe97f37" dependencies = [ "arrayref", - "base64 0.12.3", + "base64", "digest 0.9.0", "hmac-drbg", "libsecp256k1-core", "libsecp256k1-gen-ecmult", "libsecp256k1-gen-genmult", - "rand 0.7.3", + "rand 0.8.4", "serde", "sha2 0.9.8", "typenum", @@ -1437,9 +1375,9 @@ dependencies = [ [[package]] name = "libsecp256k1-core" -version = "0.2.2" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0f6ab710cec28cef759c5f18671a27dae2a5f952cdaaee1d8e2908cb2478a80" +checksum = "5be9b9bb642d8522a44d533eab56c16c738301965504753b03ad1de3425d5451" dependencies = [ "crunchy", "digest 0.9.0", @@ -1448,18 +1386,18 @@ dependencies = [ [[package]] name = "libsecp256k1-gen-ecmult" -version = "0.2.1" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ccab96b584d38fac86a83f07e659f0deafd0253dc096dab5a36d53efe653c5c3" +checksum = "3038c808c55c87e8a172643a7d87187fc6c4174468159cb3090659d55bcb4809" dependencies = [ "libsecp256k1-core", ] [[package]] name = "libsecp256k1-gen-genmult" -version = "0.2.1" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67abfe149395e3aa1c48a2beb32b068e2334402df8181f818d3aee2b304c4f5d" +checksum = "3db8d6ba2cec9eacc40e6e8ccc98931840301f1006e95647ceb2dd5c3aa06f7c" dependencies = [ "libsecp256k1-core", ] @@ -1492,12 +1430,6 @@ dependencies = [ "regex-automata", ] -[[package]] -name = "matches" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f" - [[package]] name = "memchr" version = "2.4.1" @@ -1511,7 +1443,18 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "de006e09d04fc301a5f7e817b75aa49801c4479a8af753764416b085337ddcc5" dependencies = [ "hash-db", - "hashbrown", + "hashbrown 0.11.2", + "parity-util-mem", +] + +[[package]] +name = "memory-db" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d505169b746dacf02f7d14d8c80b34edfd8212159c63d23c977739a0d960c626" +dependencies = [ + "hash-db", + "hashbrown 0.11.2", "parity-util-mem", ] @@ -1573,9 +1516,9 @@ checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb" [[package]] name = "ntapi" -version = "0.3.6" +version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f6bb902e437b6d86e03cce10a7e2af662292c5dfef23b65899ea3ac9354ad44" +checksum = "c28774a7fd2fbb4f0babd8237ce554b73af68021b5f695a3cebd6c59bac0980f" dependencies = [ "winapi", ] @@ -1661,15 +1604,15 @@ checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" [[package]] name = "openssl-probe" -version = "0.1.4" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28988d872ab76095a6e6ac88d99b54fd267702734fd7ffe610ca27f533ddb95a" +checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "owo-colors" -version = "1.3.0" +version = "3.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2386b4ebe91c2f7f51082d4cefa145d030e33a1842a96b12e4885cc3c01f7a55" +checksum = "20448fd678ec04e6ea15bbe0476874af65e98a01515d667aa49f1434dc44ebf4" [[package]] name = "parity-scale-codec" @@ -1704,7 +1647,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6f4cb4e169446179cbc6b8b6320cc9fca49bd2e94e8db25f25f200a8ea774770" dependencies = [ "cfg-if", - "hashbrown", + "hashbrown 0.11.2", "impl-trait-for-tuples", "parity-util-mem-derive", "parking_lot", @@ -1784,12 +1727,6 @@ dependencies = [ "crypto-mac 0.11.1", ] -[[package]] -name = "percent-encoding" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" - [[package]] name = "pest" version = "2.1.3" @@ -1801,18 +1738,18 @@ dependencies = [ [[package]] name = "pin-project" -version = "1.0.8" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "576bc800220cc65dac09e99e97b08b358cfab6e17078de8dc5fee223bd2d0c08" +checksum = "58ad3879ad3baf4e44784bc6a718a8698867bb991f8ce24d1bcbe2cfb4c3a75e" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.0.8" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e8fe8163d14ce7f0cdac2e040116f22eac817edabff0be91e8aff7e9accf389" +checksum = "744b6f092ba29c3650faf274db506afd39944f48420f6c86b17cfe0ee1cb36bb" dependencies = [ "proc-macro2", "quote", @@ -1882,42 +1819,16 @@ dependencies = [ "toml", ] -[[package]] -name = "proc-macro-error" -version = "0.4.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18f33027081eba0a6d8aba6d1b1c3a3be58cbb12106341c2d5759fcd9b5277e7" -dependencies = [ - "proc-macro-error-attr 0.4.12", - "proc-macro2", - "quote", - "syn", - "version_check", -] - [[package]] name = "proc-macro-error" version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" dependencies = [ - "proc-macro-error-attr 1.0.4", - "proc-macro2", - "quote", - "syn", - "version_check", -] - -[[package]] -name = "proc-macro-error-attr" -version = "0.4.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a5b4b77fdb63c1eca72173d68d24501c54ab1269409f6b672c85deb18af69de" -dependencies = [ + "proc-macro-error-attr", "proc-macro2", "quote", "syn", - "syn-mid", "version_check", ] @@ -1946,18 +1857,18 @@ checksum = "bc881b2c22681370c6a780e47af9840ef841837bc98118431d4e1868bd0c1086" [[package]] name = "proc-macro2" -version = "1.0.32" +version = "1.0.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba508cc11742c0dc5c1659771673afbab7a0efab23aa17e854cbab0837ed0b43" +checksum = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029" dependencies = [ "unicode-xid", ] [[package]] name = "quote" -version = "1.0.10" +version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38bc8cc6a5f2e3655e0899c1b848643b2562f853f114bfec7be120678e3ace05" +checksum = "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145" dependencies = [ "proc-macro2", ] @@ -2158,11 +2069,10 @@ dependencies = [ [[package]] name = "rustls" -version = "0.19.1" +version = "0.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35edb675feee39aec9c99fa5ff985081995a06d594114ae14cbe797ad7b7a6d7" +checksum = "d37e5e2290f3e040b594b1a9e04377c2c671f1a1cfd9bfdef82106ac1c113f84" dependencies = [ - "base64 0.13.0", "log", "ring", "sct", @@ -2171,16 +2081,31 @@ dependencies = [ [[package]] name = "rustls-native-certs" -version = "0.5.0" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a07b7c1885bd8ed3831c289b7870b13ef46fe0e856d288c30d9cc17d75a2092" +checksum = "5ca9ebdfa27d3fc180e42879037b5338ab1c040c06affd00d8338598e7800943" dependencies = [ "openssl-probe", - "rustls", + "rustls-pemfile", "schannel", "security-framework", ] +[[package]] +name = "rustls-pemfile" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5eebeaeb360c87bfb72e84abdb3447159c0eaececf1bef2aecd65a8be949d1c9" +dependencies = [ + "base64", +] + +[[package]] +name = "rustversion" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2cc38e8fa666e2de3c4aba7edeb5ffc5246c1c2ed0e3d17e560aeeba736b23f" + [[package]] name = "ryu" version = "1.0.5" @@ -2249,9 +2174,9 @@ checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" [[package]] name = "sct" -version = "0.6.1" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b362b83898e0e69f38515b82ee15aa80636befe47c3b6d3d89a911e78fc228ce" +checksum = "d53dcdb7c9f8158937a7981b48accfd39a43af418591a5d008c7b22b5e1b7ca4" dependencies = [ "ring", "untrusted", @@ -2309,18 +2234,18 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.130" +version = "1.0.136" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f12d06de37cf59146fbdecab66aa99f9fe4f78722e3607577a5375d66bd0c913" +checksum = "ce31e24b01e1e524df96f1c2fdd054405f8d7376249a5110886fb4b658484789" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.130" +version = "1.0.136" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7bc1a1ab1961464eae040d96713baa5a724a8152c1222492465b54322ec508b" +checksum = "08597e7152fcd306f41838ed3e37be9eaeed2b61c42e2117266a554fab4662f9" dependencies = [ "proc-macro2", "quote", @@ -2329,9 +2254,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.69" +version = "1.0.78" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e466864e431129c7e0d3476b92f20458e5879919a0596c6472738d9fa2d342f8" +checksum = "d23c1ba4cf0efd44be32017709280b32d1cea5c3f1275c3b6d9e8bc54f758085" dependencies = [ "itoa", "ryu", @@ -2376,6 +2301,17 @@ dependencies = [ "opaque-debug 0.3.0", ] +[[package]] +name = "sha2" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "99c3bd8169c58782adad9290a9af5939994036b76187f7b4f0e6de91dbbfc0ec" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest 0.10.2", +] + [[package]] name = "sharded-slab" version = "0.1.4" @@ -2409,12 +2345,11 @@ version = "0.1.0" dependencies = [ "async-std", "color-eyre", - "jsonrpsee-types", "parity-scale-codec", "smart-bench-macro", - "sp-core", + "sp-core 5.0.0", "sp-keyring", - "sp-runtime", + "sp-runtime 5.0.0", "structopt", "subxt", ] @@ -2423,14 +2358,14 @@ dependencies = [ name = "smart-bench-macro" version = "0.1.0" dependencies = [ - "heck", + "heck 0.4.0", "ink_metadata", - "proc-macro-error 1.0.4", + "proc-macro-error", "proc-macro2", "quote", "serde", "serde_json", - "subxt-codegen 0.1.0 (git+https://github.com/paritytech/subxt?branch=aj-export-typegen)", + "subxt-codegen", "syn", ] @@ -2446,11 +2381,11 @@ dependencies = [ [[package]] name = "soketto" -version = "0.6.0" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a74e48087dbeed4833785c2f3352b59140095dc192dce966a3bfc155020a439f" +checksum = "41d1c5305e39e09653383c2c7244f2f78b3bcae37cf50c64cb4789c9f5096ec2" dependencies = [ - "base64 0.13.0", + "base64", "bytes", "futures", "httparse", @@ -2461,21 +2396,37 @@ dependencies = [ [[package]] name = "sp-application-crypto" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate/?branch=master#3b2ce548c6e00183ab12ab086859325164263584" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0a11468fbf1d08502f95a69388b16e927a872df556085b5be7e5c55cdd3022c" +dependencies = [ + "parity-scale-codec", + "scale-info", + "serde", + "sp-core 4.0.0", + "sp-io 4.0.0", + "sp-std", +] + +[[package]] +name = "sp-application-crypto" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69c8dfffb7a15ac2c802bc9ce972b8449c8ce0a15254ae4d77a012a3a8c278d1" dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", + "sp-core 5.0.0", + "sp-io 5.0.0", "sp-std", ] [[package]] name = "sp-arithmetic" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate/?branch=master#3b2ce548c6e00183ab12ab086859325164263584" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa92b9707afdaa807bcb985fcc70645ebbe6fbb2442620d61dc47e7f3553a7ae" dependencies = [ "integer-sqrt", "num-traits", @@ -2489,8 +2440,9 @@ dependencies = [ [[package]] name = "sp-core" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate/?branch=master#3b2ce548c6e00183ab12ab086859325164263584" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8295f7e800feaa16453768efb63c3063401ec765590f8f6ac9fac808a790435e" dependencies = [ "base58", "bitflags", @@ -2521,10 +2473,59 @@ dependencies = [ "sha2 0.9.8", "sp-core-hashing", "sp-debug-derive", - "sp-externalities", - "sp-runtime-interface", + "sp-externalities 0.10.0", + "sp-runtime-interface 4.0.0", "sp-std", - "sp-storage", + "sp-storage 4.0.0", + "ss58-registry", + "substrate-bip39", + "thiserror", + "tiny-bip39", + "tiny-keccak", + "twox-hash", + "wasmi", + "zeroize", +] + +[[package]] +name = "sp-core" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e2a372e6c3a40464f490f76843dfc331d08e43f7672d73377c0458f5b5db7ed" +dependencies = [ + "base58", + "bitflags", + "blake2-rfc", + "byteorder", + "dyn-clonable", + "ed25519-dalek", + "futures", + "hash-db", + "hash256-std-hasher", + "hex", + "impl-serde", + "lazy_static", + "libsecp256k1", + "log", + "merlin", + "num-traits", + "parity-scale-codec", + "parity-util-mem", + "parking_lot", + "primitive-types", + "rand 0.7.3", + "regex", + "scale-info", + "schnorrkel", + "secrecy", + "serde", + "sha2 0.10.1", + "sp-core-hashing", + "sp-debug-derive", + "sp-externalities 0.11.0", + "sp-runtime-interface 5.0.0", + "sp-std", + "sp-storage 5.0.0", "ss58-registry", "substrate-bip39", "thiserror", @@ -2537,8 +2538,9 @@ dependencies = [ [[package]] name = "sp-core-hashing" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate/?branch=master#3b2ce548c6e00183ab12ab086859325164263584" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec864a6a67249f0c8dd3d5acab43623a61677e85ff4f2f9b04b802d2fe780e83" dependencies = [ "blake2-rfc", "byteorder", @@ -2550,8 +2552,9 @@ dependencies = [ [[package]] name = "sp-debug-derive" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate/?branch=master#3b2ce548c6e00183ab12ab086859325164263584" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d676664972e22a0796176e81e7bec41df461d1edf52090955cdab55f2c956ff2" dependencies = [ "proc-macro2", "quote", @@ -2560,19 +2563,33 @@ dependencies = [ [[package]] name = "sp-externalities" -version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate/?branch=master#3b2ce548c6e00183ab12ab086859325164263584" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "54226438dbff5ced9718b51eb44b7f38fe139c40a923a088275914519bf451d3" dependencies = [ "environmental", "parity-scale-codec", "sp-std", - "sp-storage", + "sp-storage 4.0.0", +] + +[[package]] +name = "sp-externalities" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "54f0fe949490000a97f367dc2acf4d2e7d0473ec0e13ce1775d0804bb64d3c98" +dependencies = [ + "environmental", + "parity-scale-codec", + "sp-std", + "sp-storage 5.0.0", ] [[package]] name = "sp-io" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate/?branch=master#3b2ce548c6e00183ab12ab086859325164263584" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfe902ca84673ea25897b04f1bae4db2955a0e01105fc115df3cfd5447f78848" dependencies = [ "futures", "hash-db", @@ -2580,34 +2597,61 @@ dependencies = [ "log", "parity-scale-codec", "parking_lot", - "sp-core", - "sp-externalities", - "sp-keystore", - "sp-runtime-interface", - "sp-state-machine", + "sp-core 4.0.0", + "sp-externalities 0.10.0", + "sp-keystore 0.10.0", + "sp-runtime-interface 4.0.0", + "sp-state-machine 0.10.0", "sp-std", "sp-tracing", - "sp-trie", - "sp-wasm-interface", + "sp-trie 4.0.0", + "sp-wasm-interface 4.0.0", + "tracing", + "tracing-core", +] + +[[package]] +name = "sp-io" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dece853333a36d405be49d72a5190c1aa3fa6fbc442a8f28c59b50c0351b21d6" +dependencies = [ + "futures", + "hash-db", + "libsecp256k1", + "log", + "parity-scale-codec", + "parking_lot", + "sp-core 5.0.0", + "sp-externalities 0.11.0", + "sp-keystore 0.11.0", + "sp-runtime-interface 5.0.0", + "sp-state-machine 0.11.0", + "sp-std", + "sp-tracing", + "sp-trie 5.0.0", + "sp-wasm-interface 5.0.0", "tracing", "tracing-core", ] [[package]] name = "sp-keyring" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate/?branch=master#3b2ce548c6e00183ab12ab086859325164263584" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f356955c5757c8b7e966946e635613db9c8dc8d60da0b417effcd92b07ec4dee" dependencies = [ "lazy_static", - "sp-core", - "sp-runtime", + "sp-core 5.0.0", + "sp-runtime 5.0.0", "strum", ] [[package]] name = "sp-keystore" -version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate/?branch=master#3b2ce548c6e00183ab12ab086859325164263584" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d37621e7224fff35ca9eb235e3edfe0a4a556408a23901f5f4a23f7b435c0c66" dependencies = [ "async-trait", "derive_more", @@ -2616,14 +2660,32 @@ dependencies = [ "parity-scale-codec", "parking_lot", "schnorrkel", - "sp-core", - "sp-externalities", + "sp-core 4.0.0", + "sp-externalities 0.10.0", +] + +[[package]] +name = "sp-keystore" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3c3376dede1940014254f6d10c9fca20c4deb1fae930a98edfdab0190a06ed4" +dependencies = [ + "async-trait", + "futures", + "merlin", + "parity-scale-codec", + "parking_lot", + "schnorrkel", + "sp-core 5.0.0", + "sp-externalities 0.11.0", + "thiserror", ] [[package]] name = "sp-panic-handler" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate/?branch=master#3b2ce548c6e00183ab12ab086859325164263584" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2101f3c555fceafcfcfb0e61c55ea9ed80dc60bd77d54d9f25b369edb029e9a4" dependencies = [ "backtrace", "lazy_static", @@ -2632,8 +2694,9 @@ dependencies = [ [[package]] name = "sp-runtime" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate/?branch=master#3b2ce548c6e00183ab12ab086859325164263584" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c31cd604c0fc105f764ef77eb38a9d0bf71e7bd289f28fd09f32f7132c3c46f" dependencies = [ "either", "hash256-std-hasher", @@ -2645,34 +2708,77 @@ dependencies = [ "rand 0.7.3", "scale-info", "serde", - "sp-application-crypto", + "sp-application-crypto 4.0.0", "sp-arithmetic", - "sp-core", - "sp-io", + "sp-core 4.0.0", + "sp-io 4.0.0", + "sp-std", +] + +[[package]] +name = "sp-runtime" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3772a765d076ac548c0c37f6d84dc8873bf64d0cfcf8b7b7322b5374d635ceff" +dependencies = [ + "either", + "hash256-std-hasher", + "impl-trait-for-tuples", + "log", + "parity-scale-codec", + "parity-util-mem", + "paste", + "rand 0.7.3", + "scale-info", + "serde", + "sp-application-crypto 5.0.0", + "sp-arithmetic", + "sp-core 5.0.0", + "sp-io 5.0.0", "sp-std", ] [[package]] name = "sp-runtime-interface" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate/?branch=master#3b2ce548c6e00183ab12ab086859325164263584" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e0176151f1195b386ddb4e07d716713e1e29f36b65c0e6e91fe354fc2cec84d" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "primitive-types", - "sp-externalities", + "sp-externalities 0.10.0", "sp-runtime-interface-proc-macro", "sp-std", - "sp-storage", + "sp-storage 4.0.0", "sp-tracing", - "sp-wasm-interface", + "sp-wasm-interface 4.0.0", + "static_assertions", +] + +[[package]] +name = "sp-runtime-interface" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab1f6625996742e3e5c0e6a6a2b5c0db363e2c52f4a71ea6cd6d963a10a4bdd6" +dependencies = [ + "impl-trait-for-tuples", + "parity-scale-codec", + "primitive-types", + "sp-externalities 0.11.0", + "sp-runtime-interface-proc-macro", + "sp-std", + "sp-storage 5.0.0", + "sp-tracing", + "sp-wasm-interface 5.0.0", "static_assertions", ] [[package]] name = "sp-runtime-interface-proc-macro" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate/?branch=master#3b2ce548c6e00183ab12ab086859325164263584" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b58cc6060b2d2f35061db5b4172f4a47353c3f01a89f281699a6c3f05d1267a" dependencies = [ "Inflector", "proc-macro-crate 1.1.0", @@ -2683,8 +2789,9 @@ dependencies = [ [[package]] name = "sp-state-machine" -version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate/?branch=master#3b2ce548c6e00183ab12ab086859325164263584" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3e3d9e8443f9d92348d779b06029603fbe536a59a05a0d8593ea2d3711c2330" dependencies = [ "hash-db", "log", @@ -2693,26 +2800,66 @@ dependencies = [ "parking_lot", "rand 0.7.3", "smallvec", - "sp-core", - "sp-externalities", + "sp-core 4.0.0", + "sp-externalities 0.10.0", "sp-panic-handler", "sp-std", - "sp-trie", + "sp-trie 4.0.0", "thiserror", "tracing", - "trie-db", - "trie-root", + "trie-db 0.22.6", + "trie-root 0.16.0", +] + +[[package]] +name = "sp-state-machine" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e66851fd082cccc6f66dddf6eda458f30766a3febd769f1b5592120aa8072fd" +dependencies = [ + "hash-db", + "log", + "num-traits", + "parity-scale-codec", + "parking_lot", + "rand 0.7.3", + "smallvec", + "sp-core 5.0.0", + "sp-externalities 0.11.0", + "sp-panic-handler", + "sp-std", + "sp-trie 5.0.0", + "thiserror", + "tracing", + "trie-db 0.23.1", + "trie-root 0.17.0", ] [[package]] name = "sp-std" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate/?branch=master#3b2ce548c6e00183ab12ab086859325164263584" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "14804d6069ee7a388240b665f17908d98386ffb0b5d39f89a4099fc7a2a4c03f" + +[[package]] +name = "sp-storage" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "851e1315a935cd5a0ce1bb6e41b0d611ac2370ede860d551f9f133007487043a" +dependencies = [ + "impl-serde", + "parity-scale-codec", + "ref-cast", + "serde", + "sp-debug-derive", + "sp-std", +] [[package]] name = "sp-storage" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate/?branch=master#3b2ce548c6e00183ab12ab086859325164263584" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "838ec2a757a8e7b903684a71f649dfbd6449d91e3e5d93979fc8d2ee77d56fee" dependencies = [ "impl-serde", "parity-scale-codec", @@ -2724,42 +2871,61 @@ dependencies = [ [[package]] name = "sp-tracing" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate/?branch=master#3b2ce548c6e00183ab12ab086859325164263584" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4688fceac497cee7e9b72c387fef20fa517e2bf6a3bf52a4a45dcc9391d6201" dependencies = [ "parity-scale-codec", "sp-std", "tracing", "tracing-core", - "tracing-subscriber", + "tracing-subscriber 0.2.25", ] [[package]] name = "sp-trie" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate/?branch=master#3b2ce548c6e00183ab12ab086859325164263584" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "feb344969de755877440fccb691860acedd565061774d289886ff9c690206cc0" dependencies = [ "hash-db", - "memory-db", + "memory-db 0.27.0", "parity-scale-codec", "scale-info", - "sp-core", + "sp-core 4.0.0", "sp-std", - "trie-db", - "trie-root", + "trie-db 0.22.6", + "trie-root 0.16.0", +] + +[[package]] +name = "sp-trie" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a7ad44bbb93fb9af94ea9869ec13602884f7d2360c245377aed7c6c92c6834e" +dependencies = [ + "hash-db", + "memory-db 0.28.0", + "parity-scale-codec", + "scale-info", + "sp-core 5.0.0", + "sp-std", + "trie-db 0.23.1", + "trie-root 0.17.0", ] [[package]] name = "sp-version" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate/?branch=master#3b2ce548c6e00183ab12ab086859325164263584" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b57388721427e65bdfadf636eebf444a6f84f7a05b56af2e7c6928cf554c618" dependencies = [ "impl-serde", "parity-scale-codec", "parity-wasm", "scale-info", "serde", - "sp-runtime", + "sp-runtime 4.0.0", "sp-std", "sp-version-proc-macro", "thiserror", @@ -2767,8 +2933,9 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate/?branch=master#3b2ce548c6e00183ab12ab086859325164263584" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48fcafba97053cfa9fa366e6b30fd0d0e9d15530c4a738efaa117a4d5707d147" dependencies = [ "parity-scale-codec", "proc-macro2", @@ -2778,8 +2945,9 @@ dependencies = [ [[package]] name = "sp-wasm-interface" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate/?branch=master#3b2ce548c6e00183ab12ab086859325164263584" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "89a5b0fe5b5bd3259e914edc35b33b6f7b4b0c803981290256e8ed75eecf1b27" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -2787,6 +2955,19 @@ dependencies = [ "wasmi", ] +[[package]] +name = "sp-wasm-interface" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60951479e2f26018c4c315a6f48956b9e2a3803953517bf8930e69b9a7a159df" +dependencies = [ + "impl-trait-for-tuples", + "log", + "parity-scale-codec", + "sp-std", + "wasmi", +] + [[package]] name = "spin" version = "0.5.2" @@ -2795,9 +2976,9 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" [[package]] name = "ss58-registry" -version = "1.4.0" +version = "1.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9ac591d51e303f0a50ac4bc70d7d2a6cc125859951677ed08133c7bdf839d42" +checksum = "d8cb4b9ce18beb6cb16ecad62d936245cef5212ddc8e094d7417a75e8d0e85f5" dependencies = [ "Inflector", "proc-macro2", @@ -2827,9 +3008,9 @@ checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" [[package]] name = "structopt" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40b9788f4202aa75c240ecc9c15c65185e6a39ccdeb0fd5d008b98825464c87c" +checksum = "0c6b5c64445ba8094a6ab0c3cd2ad323e07171012d9c98b0b15651daf1787a10" dependencies = [ "clap", "lazy_static", @@ -2842,8 +3023,8 @@ version = "0.4.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dcb5ae327f9cc13b68763b5749770cb9e048a99bd9dfdfa58d0cf05d5f64afe0" dependencies = [ - "heck", - "proc-macro-error 1.0.4", + "heck 0.3.3", + "proc-macro-error", "proc-macro2", "quote", "syn", @@ -2851,22 +3032,23 @@ dependencies = [ [[package]] name = "strum" -version = "0.22.0" +version = "0.23.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7ac893c7d471c8a21f31cfe213ec4f6d9afeed25537c772e08ef3f005f8729e" +checksum = "cae14b91c7d11c9a851d3fbc80a963198998c2a64eec840477fa92d8ce9b70bb" dependencies = [ "strum_macros", ] [[package]] name = "strum_macros" -version = "0.22.0" +version = "0.23.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "339f799d8b549e3744c7ac7feb216383e4005d94bdb22561b3ab8f3b808ae9fb" +checksum = "5bb0dc7ee9c15cea6199cde9a127fa16a4c5819af85395457ad72d68edc85a38" dependencies = [ - "heck", + "heck 0.3.3", "proc-macro2", "quote", + "rustversion", "syn", ] @@ -2891,64 +3073,42 @@ checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" [[package]] name = "subxt" -version = "0.15.0" -source = "git+https://github.com/paritytech/subxt?branch=master#06b26b4dfaa83cdfddd50ed61bbbc579723f7918" +version = "0.17.0" +source = "git+https://github.com/paritytech/subxt?branch=master#cb9177aaa91158df1e99d6d136b9a6d2eb3a96ad" dependencies = [ "async-trait", "bitvec", "chameleon", + "derivative", "frame-metadata", "futures", "hex", - "jsonrpsee-http-client", - "jsonrpsee-proc-macros", - "jsonrpsee-types", - "jsonrpsee-ws-client", + "jsonrpsee", "log", "num-traits", "parity-scale-codec", "scale-info", "serde", "serde_json", - "sp-arithmetic", - "sp-core", - "sp-runtime", + "sp-core 5.0.0", + "sp-runtime 5.0.0", "sp-version", "subxt-macro", "thiserror", - "url", -] - -[[package]] -name = "subxt-codegen" -version = "0.1.0" -source = "git+https://github.com/paritytech/subxt?branch=aj-export-typegen#69f08e8f49393aac08e611ec1571bfe8dfe83b12" -dependencies = [ - "async-trait", - "darling", - "frame-metadata", - "heck", - "parity-scale-codec", - "proc-macro-crate 0.1.5", - "proc-macro-error 1.0.4", - "proc-macro2", - "quote", - "scale-info", - "syn", ] [[package]] name = "subxt-codegen" -version = "0.1.0" -source = "git+https://github.com/paritytech/subxt?branch=master#06b26b4dfaa83cdfddd50ed61bbbc579723f7918" +version = "0.17.0" +source = "git+https://github.com/paritytech/subxt?branch=master#cb9177aaa91158df1e99d6d136b9a6d2eb3a96ad" dependencies = [ "async-trait", "darling", "frame-metadata", - "heck", + "heck 0.4.0", "parity-scale-codec", "proc-macro-crate 0.1.5", - "proc-macro-error 1.0.4", + "proc-macro-error", "proc-macro2", "quote", "scale-info", @@ -2957,45 +3117,34 @@ dependencies = [ [[package]] name = "subxt-macro" -version = "0.1.0" -source = "git+https://github.com/paritytech/subxt?branch=master#06b26b4dfaa83cdfddd50ed61bbbc579723f7918" +version = "0.17.0" +source = "git+https://github.com/paritytech/subxt?branch=master#cb9177aaa91158df1e99d6d136b9a6d2eb3a96ad" dependencies = [ "async-trait", "darling", "frame-metadata", - "heck", + "heck 0.4.0", "parity-scale-codec", "proc-macro-crate 0.1.5", - "proc-macro-error 1.0.4", + "proc-macro-error", "proc-macro2", "quote", "scale-info", - "subxt-codegen 0.1.0 (git+https://github.com/paritytech/subxt?branch=master)", + "subxt-codegen", "syn", ] [[package]] name = "syn" -version = "1.0.81" +version = "1.0.86" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2afee18b8beb5a596ecb4a2dce128c719b4ba399d34126b9e4396e3f9860966" +checksum = "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b" dependencies = [ "proc-macro2", "quote", "unicode-xid", ] -[[package]] -name = "syn-mid" -version = "0.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baa8e7560a164edb1621a55d18a0c59abf49d360f47aa7b821061dd7eea7fac9" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "synstructure" version = "0.12.6" @@ -3102,9 +3251,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "588b2d10a336da58d877567cd8fb8a14b463e2104910f8132cd054b4b96e29ee" dependencies = [ "autocfg", - "bytes", "libc", - "memchr", "mio", "num_cpus", "pin-project-lite", @@ -3114,9 +3261,9 @@ dependencies = [ [[package]] name = "tokio-macros" -version = "1.5.1" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "114383b041aa6212c579467afa0075fbbdd0718de036100bc0ba7961d8cb9095" +checksum = "b557f72f448c511a979e2564e55d74e6c4432fc96ff4f6241bc6bded342643b7" dependencies = [ "proc-macro2", "quote", @@ -3125,9 +3272,9 @@ dependencies = [ [[package]] name = "tokio-rustls" -version = "0.22.0" +version = "0.23.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc6844de72e57df1980054b38be3a9f4702aba4858be64dd700181a8a6d0e1b6" +checksum = "a27d5f2b839802bd8267fa19b0530f5a08b9c08cd417976be2a65d130fe1c11b" dependencies = [ "rustls", "tokio", @@ -3198,12 +3345,12 @@ dependencies = [ [[package]] name = "tracing-error" -version = "0.1.2" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4d7c0b83d4a500748fa5879461652b361edf5c9d51ede2a2ac03875ca185e24" +checksum = "d686ec1c0f384b1277f097b2f279a2ecc11afe8c133c1aabf036a27cb4cd206e" dependencies = [ "tracing", - "tracing-subscriber", + "tracing-subscriber 0.3.6", ] [[package]] @@ -3249,6 +3396,17 @@ dependencies = [ "tracing-serde", ] +[[package]] +name = "tracing-subscriber" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77be66445c4eeebb934a7340f227bfe7b338173d3f8c00a60a5a58005c9faecf" +dependencies = [ + "sharded-slab", + "thread_local", + "tracing-core", +] + [[package]] name = "trie-db" version = "0.22.6" @@ -3256,7 +3414,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9eac131e334e81b6b3be07399482042838adcd7957aa0010231d0813e39e02fa" dependencies = [ "hash-db", - "hashbrown", + "hashbrown 0.11.2", + "log", + "rustc-hex", + "smallvec", +] + +[[package]] +name = "trie-db" +version = "0.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d32d034c0d3db64b43c31de38e945f15b40cd4ca6d2dcfc26d4798ce8de4ab83" +dependencies = [ + "hash-db", + "hashbrown 0.12.0", "log", "rustc-hex", "smallvec", @@ -3271,6 +3442,15 @@ dependencies = [ "hash-db", ] +[[package]] +name = "trie-root" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a36c5ca3911ed3c9a5416ee6c679042064b93fc637ded67e25f92e68d783891" +dependencies = [ + "hash-db", +] + [[package]] name = "try-lock" version = "0.2.3" @@ -3279,9 +3459,9 @@ checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642" [[package]] name = "twox-hash" -version = "1.6.1" +version = "1.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f559b464de2e2bdabcac6a210d12e9b5a5973c251e102c44c585c71d51bd78e" +checksum = "4ee73e6e4924fe940354b8d4d98cad5231175d615cd855b758adc658c0aac6a0" dependencies = [ "cfg-if", "rand 0.8.4", @@ -3312,12 +3492,6 @@ dependencies = [ "static_assertions", ] -[[package]] -name = "unicode-bidi" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a01404663e3db436ed2746d9fefef640d868edae3cceb81c3b8d5732fda678f" - [[package]] name = "unicode-normalization" version = "0.1.19" @@ -3351,18 +3525,6 @@ version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" -[[package]] -name = "url" -version = "2.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c" -dependencies = [ - "form_urlencoded", - "idna", - "matches", - "percent-encoding", -] - [[package]] name = "value-bag" version = "1.0.0-alpha.8" @@ -3515,14 +3677,23 @@ dependencies = [ [[package]] name = "webpki" -version = "0.21.4" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8e38c0608262c46d4a56202ebabdeb094cef7e560ca7a226c6bf055188aa4ea" +checksum = "f095d78192e208183081cc07bc5515ef55216397af48b873e5edcd72637fa1bd" dependencies = [ "ring", "untrusted", ] +[[package]] +name = "webpki-roots" +version = "0.22.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "552ceb903e957524388c4d3475725ff2c8b7960922063af6ce53c9a43da07449" +dependencies = [ + "webpki", +] + [[package]] name = "wepoll-ffi" version = "0.1.2" diff --git a/Cargo.toml b/Cargo.toml index 7db659c2..c3dfcedf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,14 +8,13 @@ edition = "2021" [dependencies] smart-bench-macro = { version = "0.1.0", path = "./macro" } -async-std = { version = "1.9.0", features = ["attributes", "tokio1"] } -jsonrpsee-types = "0.3.0" -color-eyre = "0.5.11" +async-std = { version = "1.10.0", features = ["attributes", "tokio1"] } +color-eyre = "0.6.0" codec = { package = "parity-scale-codec", version = "2", default-features = false } -structopt = "0.3.25" +structopt = "0.3.26" subxt = { git = "https://github.com/paritytech/subxt", branch = "master" } # substrate -sp-core = { package = "sp-core", git = "https://github.com/paritytech/substrate/", branch = "master" } -sp-keyring = { package = "sp-keyring", git = "https://github.com/paritytech/substrate/", branch = "master" } -sp-runtime = { package = "sp-runtime", git = "https://github.com/paritytech/substrate/", branch = "master" } \ No newline at end of file +sp-core = "5.0.0" +sp-keyring = "5.0.0" +sp-runtime = "5.0.0" diff --git a/macro/Cargo.toml b/macro/Cargo.toml index 94eff0a4..904e876e 100644 --- a/macro/Cargo.toml +++ b/macro/Cargo.toml @@ -7,12 +7,12 @@ edition = "2021" proc-macro = true [dependencies] -heck = "0.3.3" -subxt-codegen = { git = "https://github.com/paritytech/subxt", branch = "aj-export-typegen" } -ink_metadata = "3.0.0-rc6" -proc-macro2 = "1.0.32" -proc-macro-error = { version = "1", default-features = false } -serde = "1.0.130" -serde_json = "1.0.69" -syn = "1.0.81" -quote = "1.0.10" \ No newline at end of file +heck = "0.4.0" +subxt-codegen = { git = "https://github.com/paritytech/subxt", branch = "master" } +ink_metadata = "3.0.0-rc8" +proc-macro2 = "1.0.36" +proc-macro-error = { version = "1.0.4", default-features = false } +serde = "1.0.136" +serde_json = "1.0.78" +syn = "1.0.86" +quote = "1.0.15" diff --git a/macro/src/lib.rs b/macro/src/lib.rs index b9f77596..dce6c293 100644 --- a/macro/src/lib.rs +++ b/macro/src/lib.rs @@ -1,6 +1,6 @@ extern crate proc_macro; -use heck::CamelCase; +use heck::ToUpperCamelCase as _; use ink_metadata::Selector; use proc_macro::TokenStream; use proc_macro_error::{abort_call_site, proc_macro_error}; @@ -35,7 +35,7 @@ pub fn contract(input: TokenStream) -> TokenStream { #[derive(Deserialize)] struct ContractMetadata { contract: Contract, - #[serde(rename = "V1")] + #[serde(rename = "V3")] pub v1: ink_metadata::InkProject, } @@ -94,14 +94,11 @@ fn generate_constructors( .constructors() .iter() .map(|constructor| { - let name = constructor - .name() - .last() - .expect("Constructor should have a name"); + let name = constructor.label(); let args = constructor .args() .iter() - .map(|arg| (arg.name().as_str(), arg.ty().ty().id())) + .map(|arg| (arg.label().as_str(), arg.ty().ty().id())) .collect::>(); generate_message_impl(type_gen, name, args, constructor.selector(), &trait_path) }) @@ -118,11 +115,11 @@ fn generate_messages( .messages() .iter() .map(|message| { - let name = message.name().last().expect("Message should have a name"); + let name = message.label(); let args = message .args() .iter() - .map(|arg| (arg.name().as_str(), arg.ty().ty().id())) + .map(|arg| (arg.label().as_str(), arg.ty().ty().id())) .collect::>(); generate_message_impl(type_gen, name, args, message.selector(), &trait_path) @@ -137,7 +134,7 @@ fn generate_message_impl( selector: &Selector, impl_trait: &syn::Path, ) -> proc_macro2::TokenStream { - let struct_ident = quote::format_ident!("{}", name.to_camel_case()); + let struct_ident = quote::format_ident!("{}", name.to_upper_camel_case()); let fn_ident = quote::format_ident!("{}", name); let (args, arg_names): (Vec<_>, Vec<_>) = args .iter() diff --git a/metadata/canvas.scale b/metadata/canvas.scale index ea3c111e..02bbfdc5 100644 Binary files a/metadata/canvas.scale and b/metadata/canvas.scale differ diff --git a/src/canvas.rs b/src/canvas.rs index 151496f7..d9166959 100644 --- a/src/canvas.rs +++ b/src/canvas.rs @@ -2,32 +2,32 @@ use codec::Encode; use color_eyre::eyre; use sp_core::sr25519; use sp_runtime::traits::{BlakeTwo256, Hash as _}; -use subxt::PairSigner; +use subxt::{DefaultConfig, DefaultExtra, PairSigner}; use super::*; pub type Balance = u128; pub type Gas = u64; -pub type AccountId = ::AccountId; -pub type Hash = ::Hash; -pub type Header = ::Header; -pub type Signer = PairSigner; +pub type AccountId = ::AccountId; +pub type Hash = ::Hash; +pub type Signer = PairSigner, sr25519::Pair>; #[subxt::subxt(runtime_metadata_path = "metadata/canvas.scale")] pub mod api {} -async fn api() -> color_eyre::Result> { +async fn api() -> color_eyre::Result>> { Ok(subxt::ClientBuilder::new() // .set_url() .build() .await? - .to_runtime_api::>()) + .to_runtime_api::>>()) } /// Submit extrinsic to instantiate a contract with the given code. pub async fn instantiate_with_code( - endowment: Balance, + value: Balance, gas_limit: Gas, + storage_deposit_limit: Option, code: Vec, constructor: &C, salt: Vec, @@ -36,20 +36,24 @@ pub async fn instantiate_with_code( let api = api().await?; let mut data = C::SELECTOR.to_vec(); - ::encode_to(&constructor, &mut data); + ::encode_to(constructor, &mut data); let result = api .tx() .contracts() - .instantiate_with_code(endowment, gas_limit, code, data, salt) + .instantiate_with_code(value, gas_limit, storage_deposit_limit, code, data, salt) .sign_and_submit_then_watch(signer) + .await? + .wait_for_finalized() + .await? + .wait_for_success() .await?; let instantiated = result - .find_event::()? - .ok_or(eyre::eyre!("Failed to find Instantiated event"))?; + .find_first_event::()? + .ok_or_else(|| eyre::eyre!("Failed to find Instantiated event"))?; - Ok(instantiated.1) + Ok(instantiated.contract) } /// Submit extrinsic to call a contract. @@ -57,18 +61,25 @@ pub async fn call( contract: AccountId, value: Balance, gas_limit: Gas, + storage_deposit_limit: Option, message: &M, signer: &Signer, ) -> color_eyre::Result { let api = api().await?; let mut data = M::SELECTOR.to_vec(); - ::encode_to(&message, &mut data); + ::encode_to(message, &mut data); let tx_hash = api .tx() .contracts() - .call(contract.into(), value, gas_limit, data) + .call( + contract.into(), + value, + gas_limit, + storage_deposit_limit, + data, + ) .sign_and_submit(signer) .await?; @@ -113,19 +124,18 @@ impl BlocksSubscription { impl BlocksSubscription { pub async fn new() -> color_eyre::Result { - let client: subxt::Client = subxt::ClientBuilder::new().build().await?; - let mut blocks_sub: jsonrpsee_types::Subscription
= - client.rpc().subscribe_blocks().await?; + let client: subxt::Client = subxt::ClientBuilder::new().build().await?; + let mut blocks_sub = client.rpc().subscribe_blocks().await?; let (sender, receiver) = std::sync::mpsc::channel(); let task = async_std::task::spawn(async move { - while let Ok(Some(block_header)) = blocks_sub.next().await { + while let Some(Ok(block_header)) = blocks_sub.next().await { if let Ok(Some(block)) = client.rpc().block(Some(block_header.hash())).await { let extrinsics = block .block .extrinsics .iter() - .map(|xt| BlakeTwo256::hash_of(xt)) + .map(BlakeTwo256::hash_of) .collect(); let block_extrinsics = BlockExtrinsics { block_number: block_header.number, diff --git a/src/main.rs b/src/main.rs index 3ecab6dd..02491bbd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -67,8 +67,9 @@ async fn erc20_instantiate( code: Vec, count: u32, ) -> color_eyre::Result> { - let endowment = 100_000_000_000_000_000; + let value = 100_000_000_000_000_000; let gas_limit = 500_000_000_000; + let storage_deposit_limit = None; let initial_supply = 1_000_000; let constructor = erc20::constructors::new(initial_supply); @@ -79,8 +80,9 @@ async fn erc20_instantiate( let code = code.clone(); // subxt codegen generates constructor args by value atm let contract = canvas::instantiate_with_code( - endowment, + value, gas_limit, + storage_deposit_limit, code.clone(), &constructor, salt, @@ -102,13 +104,22 @@ async fn erc20_transfer( transfer_count: u32, ) -> color_eyre::Result> { let gas_limit = 500_000_000_000; + let storage_deposit_limit: Option = None; let transfer = erc20::messages::transfer(dest.clone(), amount); let mut tx_hashes = Vec::new(); for contract in contracts { for _ in 0..transfer_count { - let tx_hash = canvas::call(contract.clone(), 0, gas_limit, &transfer, &signer).await?; + let tx_hash = canvas::call( + contract.clone(), + 0, + gas_limit, + storage_deposit_limit, + &transfer, + signer, + ) + .await?; tx_hashes.push(tx_hash); signer.increment_nonce(); }