From c11e543a74818ae3a2b22eecb4246398fd4bf207 Mon Sep 17 00:00:00 2001 From: Nimish Agrawal Date: Tue, 23 Aug 2022 12:46:13 +0530 Subject: [PATCH] Update to polkadot-v0.9.27 (#51) * bump: polkadot-v0.9.22 -> polkadot-v0.9.27 * Fix PalletId AccountConversionId method from `into_account` to `try_into_account` * Fix chain extension * Fix Contracts pallet * Updated multiple pallet config * Bump node * Update mock environment * Update extension values - (bug) Chain extension limits value to uint8 * change into_account_truncating to try_into_account --- Cargo.lock | 1010 ++++++++--------- node/Cargo.toml | 68 +- node/src/chain_spec/testnet.rs | 4 +- node/src/command.rs | 17 +- node/src/command_helper.rs | 16 +- node/src/rpc.rs | 12 +- pallets/contract-asset-registry/Cargo.toml | 26 +- pallets/contract-asset-registry/src/lib.rs | 6 +- pallets/contract-asset-registry/src/mock.rs | 11 +- pallets/currencies/Cargo.toml | 22 +- pallets/currencies/rpc/Cargo.toml | 10 +- pallets/currencies/rpc/runtime-api/Cargo.toml | 6 +- pallets/currencies/src/mock.rs | 15 +- pallets/fee-enablement/Cargo.toml | 16 +- pallets/fee-enablement/src/mock.rs | 4 + pallets/fee-measurement/Cargo.toml | 16 +- pallets/fee-measurement/src/mock.rs | 4 + pallets/fluent-fee/Cargo.toml | 16 +- pallets/fluent-fee/src/mock.rs | 6 + pallets/prepaid/Cargo.toml | 12 +- pallets/prepaid/src/lib.rs | 9 +- pallets/prepaid/src/mock.rs | 4 + pallets/prepaid/src/tests.rs | 5 +- pallets/system-contract-deployer/Cargo.toml | 22 +- .../src/fixed_address.rs | 4 +- pallets/system-contract-deployer/src/lib.rs | 14 +- pallets/system-contract-deployer/src/mock.rs | 11 +- pallets/system-contract-deployer/src/tests.rs | 8 +- pallets/traits/Cargo.toml | 10 +- primitives/Cargo.toml | 6 +- runtime/Cargo.toml | 68 +- runtime/integration-tests/Cargo.toml | 64 +- .../dist/dummy_extension_consumer.contract | 2 +- .../dist/dummy_extension_consumer.wasm | Bin 11904 -> 1843 bytes .../dist/metadata.json | 144 +++ .../ink/dummy_extension_consumer/lib.rs | 9 +- .../native_fungible_token/dist/metadata.json | 5 +- .../dist/native_fungible_token.contract | 2 +- .../dist/native_fungible_token.wasm | Bin 12594 -> 12481 bytes .../ink/native_fungible_token/lib.rs | 18 +- runtime/integration-tests/src/contracts.rs | 5 +- .../src/contracts/consume_native_token.rs | 10 +- runtime/src/contract_extensions.rs | 3 +- runtime/src/impl_orml_tokens.rs | 2 + runtime/src/impl_pallet_contracts.rs | 27 +- .../impl_pallet_contracts/chain_extensions.rs | 27 +- .../src/impl_pallet_transaction_payment.rs | 3 +- runtime/src/impl_pallet_treasury.rs | 1 + runtime/src/lib.rs | 2 +- 49 files changed, 994 insertions(+), 788 deletions(-) create mode 100644 runtime/integration-tests/contracts-data/ink/dummy_extension_consumer/dist/metadata.json diff --git a/Cargo.lock b/Cargo.lock index 283eb34..2187203 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -306,15 +306,6 @@ dependencies = [ "pin-project-lite 0.2.9", ] -[[package]] -name = "atomic" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b88d82667eca772c4aa12f0f1348b3ae643424c8876448f3f7bd5787032e234c" -dependencies = [ - "autocfg", -] - [[package]] name = "atomic-waker" version = "1.0.0" @@ -457,17 +448,6 @@ dependencies = [ "constant_time_eq", ] -[[package]] -name = "blake2b_simd" -version = "0.5.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afa748e348ad3be8263be728124b24a24f268266f6f5d58af9d75f6a40b5c587" -dependencies = [ - "arrayref", - "arrayvec 0.5.2", - "constant_time_eq", -] - [[package]] name = "blake2b_simd" version = "1.0.0" @@ -575,10 +555,7 @@ version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ba3569f383e8f1598449f1a423e72e99569137b47740b1da11ef19af3d5c3223" dependencies = [ - "lazy_static", "memchr", - "regex-automata", - "serde", ] [[package]] @@ -788,7 +765,7 @@ version = "3.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13547f7012c01ab4a0e8f8967730ada8f9fdf419e8b6c792788f39cf4e46eefa" dependencies = [ - "heck 0.4.0", + "heck", "proc-macro-error", "proc-macro2", "quote", @@ -804,6 +781,26 @@ dependencies = [ "os_str_bytes", ] +[[package]] +name = "cmake" +version = "0.1.48" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8ad8cef104ac57b68b89df3208164d228503abbdce70f6880ffa3d970e7443a" +dependencies = [ + "cc", +] + +[[package]] +name = "comfy-table" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "121d8a5b0346092c18a4b2fd6f620d7a06f0eb7ac0a45860939a0884bc579c56" +dependencies = [ + "strum", + "strum_macros", + "unicode-width", +] + [[package]] name = "concurrent-queue" version = "1.2.4" @@ -870,59 +867,60 @@ dependencies = [ [[package]] name = "cranelift-bforest" -version = "0.82.3" +version = "0.85.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38faa2a16616c8e78a18d37b4726b98bfd2de192f2fdc8a39ddf568a408a0f75" +checksum = "749d0d6022c9038dccf480bdde2a38d435937335bf2bb0f14e815d94517cdce8" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-codegen" -version = "0.82.3" +version = "0.85.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26f192472a3ba23860afd07d2b0217dc628f21fcc72617aa1336d98e1671f33b" +checksum = "e94370cc7b37bf652ccd8bb8f09bd900997f7ccf97520edfc75554bb5c4abbea" dependencies = [ "cranelift-bforest", "cranelift-codegen-meta", "cranelift-codegen-shared", "cranelift-entity", + "cranelift-isle", "gimli", "log", - "regalloc", + "regalloc2", "smallvec", "target-lexicon", ] [[package]] name = "cranelift-codegen-meta" -version = "0.82.3" +version = "0.85.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f32ddb89e9b89d3d9b36a5b7d7ea3261c98235a76ac95ba46826b8ec40b1a24" +checksum = "e0a3cea8fdab90e44018c5b9a1dfd460d8ee265ac354337150222a354628bdb6" dependencies = [ "cranelift-codegen-shared", ] [[package]] name = "cranelift-codegen-shared" -version = "0.82.3" +version = "0.85.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01fd0d9f288cc1b42d9333b7a776b17e278fc888c28e6a0f09b5573d45a150bc" +checksum = "5ac72f76f2698598951ab26d8c96eaa854810e693e7dd52523958b5909fde6b2" [[package]] name = "cranelift-entity" -version = "0.82.3" +version = "0.85.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e3bfe172b83167604601faf9dc60453e0d0a93415b57a9c4d1a7ae6849185cf" +checksum = "09eaeacfcd2356fe0e66b295e8f9d59fdd1ac3ace53ba50de14d628ec902f72d" dependencies = [ "serde", ] [[package]] name = "cranelift-frontend" -version = "0.82.3" +version = "0.85.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a006e3e32d80ce0e4ba7f1f9ddf66066d052a8c884a110b91d05404d6ce26dce" +checksum = "dba69c9980d5ffd62c18a2bde927855fcd7c8dc92f29feaf8636052662cbd99c" dependencies = [ "cranelift-codegen", "log", @@ -930,11 +928,17 @@ dependencies = [ "target-lexicon", ] +[[package]] +name = "cranelift-isle" +version = "0.85.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2920dc1e05cac40304456ed3301fde2c09bd6a9b0210bcfa2f101398d628d5b" + [[package]] name = "cranelift-native" -version = "0.82.3" +version = "0.85.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "501241b0cdf903412ec9075385ac9f2b1eb18a89044d1538e97fab603231f70c" +checksum = "f04dfa45f9b2a6f587c564d6b63388e00cd6589d2df6ea2758cf79e1a13285e6" dependencies = [ "cranelift-codegen", "libc", @@ -943,9 +947,9 @@ dependencies = [ [[package]] name = "cranelift-wasm" -version = "0.82.3" +version = "0.85.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16d9e4211bbc3268042a96dd4de5bd979cda22434991d035f5f8eacba987fad2" +checksum = "31a46513ae6f26f3f267d8d75b5373d555fbbd1e68681f348d99df43f747ec54" dependencies = [ "cranelift-codegen", "cranelift-entity", @@ -1059,37 +1063,6 @@ dependencies = [ "subtle", ] -[[package]] -name = "csv" -version = "1.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22813a6dc45b335f9bade10bf7271dc477e81113e89eb251a0bc2a8a81c536e1" -dependencies = [ - "bstr", - "csv-core", - "itoa 0.4.8", - "ryu", - "serde", -] - -[[package]] -name = "csv-core" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b2466559f260f48ad25fe6317b3c8dac77b5bdb5763ac7d9d6103530663bc90" -dependencies = [ - "memchr", -] - -[[package]] -name = "ct-logs" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1a816186fa68d9e426e3cb4ae4dff1fcd8e4a2c34b781bf7a822574a0d0aac8" -dependencies = [ - "sct 0.6.1", -] - [[package]] name = "ctor" version = "0.1.22" @@ -1264,17 +1237,6 @@ dependencies = [ "dirs-sys-next", ] -[[package]] -name = "dirs" -version = "1.0.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fd78930633bd1c6e35c4b42b1df7b0cbc6bc191146e512bb3bedf243fcc3901" -dependencies = [ - "libc", - "redox_users 0.3.5", - "winapi", -] - [[package]] name = "dirs-sys" version = "0.3.7" @@ -1282,7 +1244,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b1d1d91c932ef41c0f2663aa8b0ca0342d444d842c06914aa0a7e352d0bada6" dependencies = [ "libc", - "redox_users 0.4.3", + "redox_users", "winapi", ] @@ -1293,7 +1255,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d" dependencies = [ "libc", - "redox_users 0.4.3", + "redox_users", "winapi", ] @@ -1405,19 +1367,13 @@ dependencies = [ "zeroize", ] -[[package]] -name = "encode_unicode" -version = "0.3.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" - [[package]] name = "enum-as-inner" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "21cdad81446a7f7dc43f6a77409efeb9733d2fa65553efef6018ef257c959b73" dependencies = [ - "heck 0.4.0", + "heck", "proc-macro2", "quote", "syn", @@ -1528,11 +1484,23 @@ dependencies = [ "log", ] +[[package]] +name = "filetime" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e94a7bbaa59354bc20dd75b67f23e2797b4490e9d6928203fb105c79e448c86c" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "windows-sys", +] + [[package]] name = "finality-grandpa" -version = "0.15.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9def033d8505edf199f6a5d07aa7e6d2d6185b164293b77f0efd108f4f3e11d" +checksum = "b22349c6a11563a202d95772a68e0fcf56119e74ea8a2a19cf2301460fcd0df5" dependencies = [ "either", "futures", @@ -1540,7 +1508,7 @@ dependencies = [ "log", "num-traits", "parity-scale-codec", - "parking_lot 0.11.2", + "parking_lot 0.12.1", "scale-info", ] @@ -1582,7 +1550,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "parity-scale-codec", ] @@ -1600,7 +1568,7 @@ dependencies = [ [[package]] name = "frame-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "frame-support", "frame-system", @@ -1622,14 +1590,16 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "Inflector", "chrono", "clap", + "comfy-table", "frame-benchmarking", "frame-support", "frame-system", + "gethostname", "handlebars", "hash-db", "hex", @@ -1640,7 +1610,6 @@ dependencies = [ "log", "memory-db", "parity-scale-codec", - "prettytable-rs", "rand 0.8.5", "rand_pcg 0.3.1", "sc-block-builder", @@ -1672,7 +1641,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "frame-support", "frame-system", @@ -1700,7 +1669,7 @@ dependencies = [ [[package]] name = "frame-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "bitflags", "frame-metadata", @@ -1730,7 +1699,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "Inflector", "frame-support-procedural-tools", @@ -1742,7 +1711,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", @@ -1754,7 +1723,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "proc-macro2", "quote", @@ -1764,7 +1733,7 @@ dependencies = [ [[package]] name = "frame-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "frame-support", "log", @@ -1781,7 +1750,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "frame-benchmarking", "frame-support", @@ -1796,7 +1765,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "parity-scale-codec", "sp-api", @@ -1918,8 +1887,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d2411eed028cdf8c8034eaf21f9915f956b6c3abec4d4c7949ee67f0721127bd" dependencies = [ "futures-io", - "rustls 0.20.6", - "webpki 0.22.0", + "rustls", + "webpki", ] [[package]] @@ -1958,6 +1927,15 @@ dependencies = [ "slab", ] +[[package]] +name = "fxhash" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c" +dependencies = [ + "byteorder", +] + [[package]] name = "generic-array" version = "0.12.4" @@ -1977,6 +1955,16 @@ dependencies = [ "version_check", ] +[[package]] +name = "gethostname" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1ebd34e35c46e00bb73e81363248d627782724609fe1b6396f553f68fe3862e" +dependencies = [ + "libc", + "winapi", +] + [[package]] name = "getrandom" version = "0.1.16" @@ -2114,20 +2102,20 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.12.3" +version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" +checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" dependencies = [ "ahash", ] [[package]] -name = "heck" -version = "0.3.3" +name = "hashbrown" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" dependencies = [ - "unicode-segmentation", + "ahash", ] [[package]] @@ -2271,19 +2259,17 @@ dependencies = [ [[package]] name = "hyper-rustls" -version = "0.22.1" +version = "0.23.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f9f7a97316d44c0af9b0301e65010573a853a9fc97046d7331d7f6bc0fd5a64" +checksum = "d87c48c02e0dc5e3b849a2041db3029fd066650f8f717c07bf8ed78ccb895cac" dependencies = [ - "ct-logs", - "futures-util", + "http", "hyper", "log", - "rustls 0.19.1", + "rustls", "rustls-native-certs", "tokio", "tokio-rustls", - "webpki 0.21.4", ] [[package]] @@ -2374,7 +2360,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "10a35a97730320ffe8e2d410b5d3b69279b98d2c14bdb8b70ea89ecf7888d41e" dependencies = [ "autocfg", - "hashbrown", + "hashbrown 0.12.3", "serde", ] @@ -2452,6 +2438,12 @@ version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec58677acfea8a15352d42fc87d11d63596ade9239e0a7c9352914417515dbe6" +[[package]] +name = "io-lifetimes" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ea37f355c05dde75b84bba2d767906ad522e97cd9e2eef2be7a4ab7fb442c06" + [[package]] name = "ip_network" version = "0.4.1" @@ -2517,9 +2509,9 @@ dependencies = [ [[package]] name = "jsonrpsee" -version = "0.13.1" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1f2ab5a60e558e74ea93bcf5164ebc47939a7fff8938fa9b5233bbc63e16061" +checksum = "11e017217fcd18da0a25296d3693153dd19c8a6aadab330b3595285d075385d1" dependencies = [ "jsonrpsee-core", "jsonrpsee-http-server", @@ -2531,9 +2523,9 @@ dependencies = [ [[package]] name = "jsonrpsee-core" -version = "0.13.1" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e27462b21279edf9a6a91f46ffbe125e9cdc58b901d2e08bf59b31a47d7d0ab" +checksum = "16efcd4477de857d4a2195a45769b2fe9ebb54f3ef5a4221d3b014a4fe33ec0b" dependencies = [ "anyhow", "arrayvec 0.7.2", @@ -2541,8 +2533,10 @@ dependencies = [ "beef", "futures-channel", "futures-util", + "globset", "hyper", "jsonrpsee-types", + "lazy_static", "parking_lot 0.12.1", "rand 0.8.5", "rustc-hash", @@ -2552,32 +2546,31 @@ dependencies = [ "thiserror", "tokio", "tracing", + "unicase", ] [[package]] name = "jsonrpsee-http-server" -version = "0.13.1" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7178f16eabd7154c094e24d295b9ee355ec1e5f24c328759c56255ff7bbd4548" +checksum = "bdd69efeb3ce2cba767f126872f4eeb4624038a29098e75d77608b2b4345ad03" dependencies = [ "futures-channel", "futures-util", - "globset", "hyper", "jsonrpsee-core", "jsonrpsee-types", - "lazy_static", + "serde", "serde_json", "tokio", "tracing", - "unicase", ] [[package]] name = "jsonrpsee-proc-macros" -version = "0.13.1" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b8d7f449cab3b747f12c3efc27f5cad537f3b597c6a3838b0fac628f4bf730a" +checksum = "874cf3f6a027cebf36cae767feca9aa2e8a8f799880e49eb5540819fcbd8eada" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -2587,9 +2580,9 @@ dependencies = [ [[package]] name = "jsonrpsee-types" -version = "0.13.1" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fd11763134104122ddeb0f97e4bbe393058017dfb077db63fbf44b4dd0dd86e" +checksum = "3bcf76cd316f5d3ad48138085af1f45e2c58c98e02f0779783dbb034d43f7c86" dependencies = [ "anyhow", "beef", @@ -2601,9 +2594,9 @@ dependencies = [ [[package]] name = "jsonrpsee-ws-server" -version = "0.13.1" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfb6c21556c551582b56e4e8e6e6249b0bbdb69bb7fa39efe9b9a6b54af9f206" +checksum = "2bd2e4d266774a671f8def3794255b28eddd09b18d76e0b913fa439f34588c0a" dependencies = [ "futures-channel", "futures-util", @@ -2612,6 +2605,7 @@ dependencies = [ "serde_json", "soketto", "tokio", + "tokio-stream", "tokio-util", "tracing", ] @@ -2827,11 +2821,10 @@ checksum = "292a948cd991e376cf75541fe5b97a1081d713c618b4f1b9500f8844e49eb565" [[package]] name = "libp2p" -version = "0.44.0" +version = "0.46.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "475ce2ac4a9727e53a519f6ee05b38abfcba8f0d39c4d24f103d184e36fd5b0f" +checksum = "81327106887e42d004fbdab1fef93675be2e2e07c1b95fce45e2cc813485611d" dependencies = [ - "atomic", "bytes", "futures", "futures-timer", @@ -2865,16 +2858,16 @@ dependencies = [ "libp2p-yamux", "multiaddr", "parking_lot 0.12.1", - "pin-project 1.0.11", + "pin-project", "rand 0.7.3", "smallvec", ] [[package]] name = "libp2p-autonat" -version = "0.3.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a13b690e65046af6a09c0b27bd9508fa1cab0efce889de74b0b643b9d2a98f9a" +checksum = "4decc51f3573653a9f4ecacb31b1b922dd20c25a6322bb15318ec04287ec46f9" dependencies = [ "async-trait", "futures", @@ -2891,9 +2884,9 @@ dependencies = [ [[package]] name = "libp2p-core" -version = "0.32.1" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db5b02602099fb75cb2d16f9ea860a320d6eb82ce41e95ab680912c454805cd5" +checksum = "fbf9b94cefab7599b2d3dff2f93bee218c6621d68590b23ede4485813cbcece6" dependencies = [ "asn1_der", "bs58", @@ -2910,7 +2903,7 @@ dependencies = [ "multihash", "multistream-select", "parking_lot 0.12.1", - "pin-project 1.0.11", + "pin-project", "prost", "prost-build", "rand 0.8.5", @@ -2926,9 +2919,9 @@ dependencies = [ [[package]] name = "libp2p-deflate" -version = "0.32.0" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b1d37f042f748e224f04785d0e987ae09a2aa518d6401d82d412dad83e360ed" +checksum = "d0183dc2a3da1fbbf85e5b6cf51217f55b14f5daea0c455a9536eef646bfec71" dependencies = [ "flate2", "futures", @@ -2937,23 +2930,24 @@ dependencies = [ [[package]] name = "libp2p-dns" -version = "0.32.1" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "066e33e854e10b5c93fc650458bf2179c7e0d143db260b0963e44a94859817f1" +checksum = "6cbf54723250fa5d521383be789bf60efdabe6bacfb443f87da261019a49b4b5" dependencies = [ "async-std-resolver", "futures", "libp2p-core", "log", + "parking_lot 0.12.1", "smallvec", "trust-dns-resolver", ] [[package]] name = "libp2p-floodsub" -version = "0.35.0" +version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "733d3ea6ebe7a7a85df2bc86678b93f24b015fae5fe3b3acc4c400e795a55d2d" +checksum = "98a4b6ffd53e355775d24b76f583fdda54b3284806f678499b57913adb94f231" dependencies = [ "cuckoofilter", "fnv", @@ -2969,9 +2963,9 @@ dependencies = [ [[package]] name = "libp2p-gossipsub" -version = "0.37.0" +version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a90c989a7c0969c2ab63e898da9bc735e3be53fb4f376e9c045ce516bcc9f928" +checksum = "74b4b888cfbeb1f5551acd3aa1366e01bf88ede26cc3c4645d0d2d004d5ca7b0" dependencies = [ "asynchronous-codec", "base64", @@ -2997,10 +2991,11 @@ dependencies = [ [[package]] name = "libp2p-identify" -version = "0.35.0" +version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5ef5a5b57904c7c33d6713ef918d239dc6b7553458f3475d87f8a18e9c651c8" +checksum = "c50b585518f8efd06f93ac2f976bd672e17cdac794644b3117edd078e96bda06" dependencies = [ + "asynchronous-codec", "futures", "futures-timer", "libp2p-core", @@ -3009,16 +3004,19 @@ dependencies = [ "lru", "prost", "prost-build", + "prost-codec", "smallvec", + "thiserror", + "void", ] [[package]] name = "libp2p-kad" -version = "0.36.0" +version = "0.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "564e6bd64d177446399ed835b9451a8825b07929d6daa6a94e6405592974725e" +checksum = "740862893bb5f06ac24acc9d49bdeadc3a5e52e51818a30a25c1f3519da2c851" dependencies = [ - "arrayvec 0.5.2", + "arrayvec 0.7.2", "asynchronous-codec", "bytes", "either", @@ -3042,9 +3040,9 @@ dependencies = [ [[package]] name = "libp2p-mdns" -version = "0.36.0" +version = "0.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "611ae873c8e280ccfab0d57c7a13cac5644f364529e233114ff07863946058b0" +checksum = "66e5e5919509603281033fd16306c61df7a4428ce274b67af5e14b07de5cdcb2" dependencies = [ "async-io", "data-encoding", @@ -3063,9 +3061,9 @@ dependencies = [ [[package]] name = "libp2p-metrics" -version = "0.5.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "985be799bb3796e0c136c768208c3c06604a38430571906a13dcfeda225a3b9d" +checksum = "ef8aff4a1abef42328fbb30b17c853fff9be986dc39af17ee39f9c5f755c5e0c" dependencies = [ "libp2p-core", "libp2p-gossipsub", @@ -3079,9 +3077,9 @@ dependencies = [ [[package]] name = "libp2p-mplex" -version = "0.32.0" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "442eb0c9fff0bf22a34f015724b4143ce01877e079ed0963c722d94c07c72160" +checksum = "61fd1b20638ec209c5075dfb2e8ce6a7ea4ec3cd3ad7b77f7a477c06d53322e2" dependencies = [ "asynchronous-codec", "bytes", @@ -3097,9 +3095,9 @@ dependencies = [ [[package]] name = "libp2p-noise" -version = "0.35.0" +version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9dd7e0c94051cda67123be68cf6b65211ba3dde7277be9068412de3e7ffd63ef" +checksum = "762408cb5d84b49a600422d7f9a42c18012d8da6ebcd570f9a4a4290ba41fb6f" dependencies = [ "bytes", "curve25519-dalek 3.2.0", @@ -3119,9 +3117,9 @@ dependencies = [ [[package]] name = "libp2p-ping" -version = "0.35.0" +version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf57a3c2e821331dda9fe612d4654d676ab6e33d18d9434a18cced72630df6ad" +checksum = "100a6934ae1dbf8a693a4e7dd1d730fd60b774dafc45688ed63b554497c6c925" dependencies = [ "futures", "futures-timer", @@ -3135,9 +3133,9 @@ dependencies = [ [[package]] name = "libp2p-plaintext" -version = "0.32.0" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "962c0fb0e7212fb96a69b87f2d09bcefd317935239bdc79cda900e7a8897a3fe" +checksum = "be27bf0820a6238a4e06365b096d428271cce85a129cf16f2fe9eb1610c4df86" dependencies = [ "asynchronous-codec", "bytes", @@ -3158,7 +3156,7 @@ checksum = "0f1a458bbda880107b5b36fcb9b5a1ef0c329685da0e203ed692a8ebe64cc92c" dependencies = [ "futures", "log", - "pin-project 1.0.11", + "pin-project", "rand 0.7.3", "salsa20", "sha3 0.9.1", @@ -3166,9 +3164,9 @@ dependencies = [ [[package]] name = "libp2p-relay" -version = "0.8.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3aa754cb7bccef51ebc3c458c6bbcef89d83b578a9925438389be841527d408f" +checksum = "4931547ee0cce03971ccc1733ff05bb0c4349fd89120a39e9861e2bbe18843c3" dependencies = [ "asynchronous-codec", "bytes", @@ -3179,22 +3177,22 @@ dependencies = [ "libp2p-core", "libp2p-swarm", "log", - "pin-project 1.0.11", + "pin-project", "prost", "prost-build", + "prost-codec", "rand 0.8.5", "smallvec", "static_assertions", "thiserror", - "unsigned-varint", "void", ] [[package]] name = "libp2p-rendezvous" -version = "0.5.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbd0baab894c5b84da510b915d53264d566c3c35889f09931fe9edbd2a773bee" +checksum = "9511c9672ba33284838e349623319c8cad2d18cfad243ae46c6b7e8a2982ea4e" dependencies = [ "asynchronous-codec", "bimap", @@ -3215,9 +3213,9 @@ dependencies = [ [[package]] name = "libp2p-request-response" -version = "0.17.0" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5e6a6fc6c9ad95661f46989473b34bd2993d14a4de497ff3b2668a910d4b869" +checksum = "508a189e2795d892c8f5c1fa1e9e0b1845d32d7b0b249dbf7b05b18811361843" dependencies = [ "async-trait", "bytes", @@ -3233,9 +3231,9 @@ dependencies = [ [[package]] name = "libp2p-swarm" -version = "0.35.0" +version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f0c69ad9e8f7c5fc50ad5ad9c7c8b57f33716532a2b623197f69f93e374d14c" +checksum = "95ac5be6c2de2d1ff3f7693fda6faf8a827b1f3e808202277783fea9f527d114" dependencies = [ "either", "fnv", @@ -3244,7 +3242,7 @@ dependencies = [ "instant", "libp2p-core", "log", - "pin-project 1.0.11", + "pin-project", "rand 0.7.3", "smallvec", "thiserror", @@ -3253,9 +3251,9 @@ dependencies = [ [[package]] name = "libp2p-swarm-derive" -version = "0.27.2" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f693c8c68213034d472cbb93a379c63f4f307d97c06f1c41e4985de481687a5" +checksum = "9f54a64b6957249e0ce782f8abf41d97f69330d02bf229f0672d864f0650cc76" dependencies = [ "quote", "syn", @@ -3263,9 +3261,9 @@ dependencies = [ [[package]] name = "libp2p-tcp" -version = "0.32.0" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "193447aa729c85aac2376828df76d171c1a589c9e6b58fcc7f9d9a020734122c" +checksum = "8a6771dc19aa3c65d6af9a8c65222bfc8fcd446630ddca487acd161fa6096f3b" dependencies = [ "async-io", "futures", @@ -3280,9 +3278,9 @@ dependencies = [ [[package]] name = "libp2p-uds" -version = "0.32.0" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24bdab114f7f2701757d6541266e1131b429bbae382008f207f2114ee4222dcb" +checksum = "d125e3e5f0d58f3c6ac21815b20cf4b6a88b8db9dc26368ea821838f4161fd4d" dependencies = [ "async-std", "futures", @@ -3292,9 +3290,9 @@ dependencies = [ [[package]] name = "libp2p-wasm-ext" -version = "0.32.0" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f6ea0f84a967ef59a16083f222c18115ae2e91db69809dce275df62e101b279" +checksum = "ec894790eec3c1608f8d1a8a0bdf0dbeb79ed4de2dce964222011c2896dfa05a" dependencies = [ "futures", "js-sys", @@ -3306,15 +3304,16 @@ dependencies = [ [[package]] name = "libp2p-websocket" -version = "0.34.0" +version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c932834c3754501c368d1bf3d0fb458487a642b90fc25df082a3a2f3d3b32e37" +checksum = "9808e57e81be76ff841c106b4c5974fb4d41a233a7bdd2afbf1687ac6def3818" dependencies = [ "either", "futures", "futures-rustls", "libp2p-core", "log", + "parking_lot 0.12.1", "quicksink", "rw-stream-sink", "soketto", @@ -3324,9 +3323,9 @@ dependencies = [ [[package]] name = "libp2p-yamux" -version = "0.36.0" +version = "0.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be902ebd89193cd020e89e89107726a38cfc0d16d18f613f4a37d046e92c7517" +checksum = "c6dea686217a06072033dc025631932810e2f6ad784e4fafa42e27d311c7a81c" dependencies = [ "futures", "libp2p-core", @@ -3440,6 +3439,12 @@ version = "0.0.42" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5284f00d480e1c39af34e72f8ad60b94f47007e3481cd3b731c1d67190ddc7b7" +[[package]] +name = "linux-raw-sys" +version = "0.0.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4d2456c373231a208ad294c33dc5bff30051eafd954cd4caae83a712b12854d" + [[package]] name = "lock_api" version = "0.4.7" @@ -3466,7 +3471,7 @@ version = "0.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e999beba7b6e8345721bd280141ed958096a2e4abdf74f67ff4ce49b4b54e47a" dependencies = [ - "hashbrown", + "hashbrown 0.12.3", ] [[package]] @@ -3543,6 +3548,15 @@ version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" +[[package]] +name = "memfd" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6627dc657574b49d6ad27105ed671822be56e0d2547d413bfbf3e8d8fa92e7a" +dependencies = [ + "libc", +] + [[package]] name = "memmap2" version = "0.2.3" @@ -3577,7 +3591,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6566c70c1016f525ced45d7b7f97730a2bafb037c788211d0c186ef5b2189f0a" dependencies = [ "hash-db", - "hashbrown", + "hashbrown 0.12.3", "parity-util-mem", ] @@ -3667,7 +3681,7 @@ version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1c346cf9999c631f002d8f977c4eaeaa0e6386f16007202308d0b3757522c2cc" dependencies = [ - "blake2b_simd 1.0.0", + "blake2b_simd", "blake2s_simd", "blake3", "core2", @@ -3707,7 +3721,7 @@ dependencies = [ "bytes", "futures", "log", - "pin-project 1.0.11", + "pin-project", "smallvec", "unsigned-varint", ] @@ -3954,11 +3968,12 @@ dependencies = [ [[package]] name = "object" -version = "0.27.1" +version = "0.28.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67ac1d3f9a1d3616fd9a60c8d74296f22406a238b6a72f5cc1e6f314df4ffbf9" +checksum = "e42c982f2d955fac81dd7e1d0e1426a7d702acd9c98d19ab01083a6a0328c424" dependencies = [ "crc32fast", + "hashbrown 0.11.2", "indexmap", "memchr", ] @@ -3999,7 +4014,7 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "orml-tokens" version = "0.4.1-dev" -source = "git+https://github.com/open-web3-stack/open-runtime-module-library.git?branch=polkadot-v0.9.22#4af3a4568398341816632c0d5523e879e251be3a" +source = "git+https://github.com/open-web3-stack/open-runtime-module-library.git?branch=polkadot-v0.9.27#377213f750755cc48e80a3131eaae63b5eda8362" dependencies = [ "frame-support", "frame-system", @@ -4014,7 +4029,7 @@ dependencies = [ [[package]] name = "orml-traits" version = "0.4.1-dev" -source = "git+https://github.com/open-web3-stack/open-runtime-module-library.git?branch=polkadot-v0.9.22#4af3a4568398341816632c0d5523e879e251be3a" +source = "git+https://github.com/open-web3-stack/open-runtime-module-library.git?branch=polkadot-v0.9.27#377213f750755cc48e80a3131eaae63b5eda8362" dependencies = [ "frame-support", "impl-trait-for-tuples", @@ -4032,7 +4047,7 @@ dependencies = [ [[package]] name = "orml-utilities" version = "0.4.1-dev" -source = "git+https://github.com/open-web3-stack/open-runtime-module-library.git?branch=polkadot-v0.9.22#4af3a4568398341816632c0d5523e879e251be3a" +source = "git+https://github.com/open-web3-stack/open-runtime-module-library.git?branch=polkadot-v0.9.27#377213f750755cc48e80a3131eaae63b5eda8362" dependencies = [ "frame-support", "parity-scale-codec", @@ -4061,7 +4076,7 @@ dependencies = [ [[package]] name = "pallet-aura" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "frame-support", "frame-system", @@ -4077,7 +4092,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "frame-support", "frame-system", @@ -4092,7 +4107,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "frame-benchmarking", "frame-support", @@ -4133,12 +4148,13 @@ dependencies = [ [[package]] name = "pallet-contracts" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "bitflags", "frame-benchmarking", "frame-support", "frame-system", + "impl-trait-for-tuples", "log", "pallet-contracts-primitives", "pallet-contracts-proc-macro", @@ -4159,7 +4175,7 @@ dependencies = [ [[package]] name = "pallet-contracts-primitives" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "bitflags", "parity-scale-codec", @@ -4174,7 +4190,7 @@ dependencies = [ [[package]] name = "pallet-contracts-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "proc-macro2", "quote", @@ -4184,7 +4200,7 @@ dependencies = [ [[package]] name = "pallet-contracts-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "jsonrpsee", "pallet-contracts-primitives", @@ -4201,7 +4217,7 @@ dependencies = [ [[package]] name = "pallet-contracts-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "pallet-contracts-primitives", "parity-scale-codec", @@ -4326,7 +4342,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "frame-benchmarking", "frame-support", @@ -4365,7 +4381,7 @@ dependencies = [ [[package]] name = "pallet-randomness-collective-flip" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "frame-support", "frame-system", @@ -4379,7 +4395,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "frame-benchmarking", "frame-support", @@ -4395,7 +4411,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "frame-support", "frame-system", @@ -4416,7 +4432,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "frame-support", "frame-system", @@ -4451,7 +4467,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "frame-benchmarking", "frame-support", @@ -4469,14 +4485,13 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "frame-support", "frame-system", "parity-scale-codec", "scale-info", "serde", - "smallvec", "sp-core", "sp-io", "sp-runtime", @@ -4486,7 +4501,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "jsonrpsee", "pallet-transaction-payment-rpc-runtime-api", @@ -4501,7 +4516,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -4512,7 +4527,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "frame-support", "frame-system", @@ -4583,7 +4598,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c32561d248d352148124f036cac253a644685a21dc9fea383eb4907d7bd35a8f" dependencies = [ "cfg-if", - "hashbrown", + "hashbrown 0.12.3", "impl-trait-for-tuples", "parity-util-mem-derive", "parking_lot 0.12.1", @@ -4654,7 +4669,7 @@ dependencies = [ "cfg-if", "instant", "libc", - "redox_syscall 0.2.16", + "redox_syscall", "smallvec", "winapi", ] @@ -4667,7 +4682,7 @@ checksum = "09a279cbf25cb0757810394fbc1e359949b59e348145c643a939a525692e6929" dependencies = [ "cfg-if", "libc", - "redox_syscall 0.2.16", + "redox_syscall", "smallvec", "windows-sys", ] @@ -4762,33 +4777,13 @@ dependencies = [ "indexmap", ] -[[package]] -name = "pin-project" -version = "0.4.30" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ef0f924a5ee7ea9cbcea77529dba45f8a9ba9f622419fe3386ca581a3ae9d5a" -dependencies = [ - "pin-project-internal 0.4.30", -] - [[package]] name = "pin-project" version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78203e83c48cffbe01e4a2d35d566ca4de445d79a85372fc64e378bfc812a260" dependencies = [ - "pin-project-internal 1.0.11", -] - -[[package]] -name = "pin-project-internal" -version = "0.4.30" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "851c8d0ce9bebe43790dedfc86614c23494ac9f423dd618d3a61fc693eafe61e" -dependencies = [ - "proc-macro2", - "quote", - "syn", + "pin-project-internal", ] [[package]] @@ -4874,20 +4869,6 @@ version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872" -[[package]] -name = "prettytable-rs" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fd04b170004fa2daccf418a7f8253aaf033c27760b5f225889024cf66d7ac2e" -dependencies = [ - "atty", - "csv", - "encode_unicode", - "lazy_static", - "term", - "unicode-width", -] - [[package]] name = "primitive-types" version = "0.11.1" @@ -4973,9 +4954,9 @@ dependencies = [ [[package]] name = "prometheus-client" -version = "0.15.1" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9a896938cc6018c64f279888b8c7559d3725210d5db9a3a1ee6bc7188d51d34" +checksum = "ac1abe0255c04d15f571427a2d1e00099016506cf3297b53853acd2b7eb87825" dependencies = [ "dtoa", "itoa 1.0.3", @@ -4996,9 +4977,9 @@ dependencies = [ [[package]] name = "prost" -version = "0.9.0" +version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "444879275cb4fd84958b1a1d5420d15e6fcf7c235fe47f053c9c2a80aceb6001" +checksum = "71adf41db68aa0daaefc69bb30bcd68ded9b9abaad5d1fbb6304c4fb390e083e" dependencies = [ "bytes", "prost-derive", @@ -5006,12 +4987,14 @@ dependencies = [ [[package]] name = "prost-build" -version = "0.9.0" +version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62941722fb675d463659e49c4f3fe1fe792ff24fe5bbaa9c08cd3b98a1c354f5" +checksum = "8ae5a4388762d5815a9fc0dea33c56b021cdc8dde0c55e0c9ca57197254b0cab" dependencies = [ "bytes", - "heck 0.3.3", + "cfg-if", + "cmake", + "heck", "itertools", "lazy_static", "log", @@ -5024,11 +5007,24 @@ dependencies = [ "which", ] +[[package]] +name = "prost-codec" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00af1e92c33b4813cc79fda3f2dbf56af5169709be0202df730e9ebc3e4cd007" +dependencies = [ + "asynchronous-codec", + "bytes", + "prost", + "thiserror", + "unsigned-varint", +] + [[package]] name = "prost-derive" -version = "0.9.0" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9cc1a3263e07e0bf68e96268f37665207b49560d98739662cdfaae215c720fe" +checksum = "7b670f45da57fb8542ebdbb6105a925fe571b67f9e7ed9f47a06a84e72b4e7cc" dependencies = [ "anyhow", "itertools", @@ -5039,9 +5035,9 @@ dependencies = [ [[package]] name = "prost-types" -version = "0.9.0" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "534b7a0e836e3c482d2693070f982e39e7611da9695d4d1f5a4b186b51faef0a" +checksum = "2d0a014229361011dc8e69c8a1ec6c2e8d0f2af7c91e3ea3f5b2170298461e68" dependencies = [ "bytes", "prost", @@ -5218,12 +5214,6 @@ dependencies = [ "num_cpus", ] -[[package]] -name = "redox_syscall" -version = "0.1.57" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce" - [[package]] name = "redox_syscall" version = "0.2.16" @@ -5233,17 +5223,6 @@ dependencies = [ "bitflags", ] -[[package]] -name = "redox_users" -version = "0.3.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de0737333e7a9502c789a36d7c7fa6092a49895d4faa31ca5df163857ded2e9d" -dependencies = [ - "getrandom 0.1.16", - "redox_syscall 0.1.57", - "rust-argon2", -] - [[package]] name = "redox_users" version = "0.4.3" @@ -5251,7 +5230,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b033d837a7cf162d7993aded9304e30a83213c648b6e389db233191f891e5c2b" dependencies = [ "getrandom 0.2.7", - "redox_syscall 0.2.16", + "redox_syscall", "thiserror", ] @@ -5276,13 +5255,14 @@ dependencies = [ ] [[package]] -name = "regalloc" -version = "0.0.34" +name = "regalloc2" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62446b1d3ebf980bdc68837700af1d77b37bc430e524bf95319c6eada2a4cc02" +checksum = "4a8d23b35d7177df3b9d31ed8a9ab4bf625c668be77a319d4f5efd4a5257701c" dependencies = [ + "fxhash", "log", - "rustc-hash", + "slice-group-by", "smallvec", ] @@ -5410,18 +5390,6 @@ dependencies = [ "thiserror", ] -[[package]] -name = "rust-argon2" -version = "0.8.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b18820d944b33caa75a71378964ac46f58517c92b6ae5f762636247c09e78fb" -dependencies = [ - "base64", - "blake2b_simd 0.5.11", - "constant_time_eq", - "crossbeam-utils", -] - [[package]] name = "rustc-demangle" version = "0.1.21" @@ -5466,23 +5434,24 @@ checksum = "938a344304321a9da4973b9ff4f9f8db9caf4597dfd9dda6a60b523340a0fff0" dependencies = [ "bitflags", "errno", - "io-lifetimes", + "io-lifetimes 0.5.3", "libc", - "linux-raw-sys", + "linux-raw-sys 0.0.42", "winapi", ] [[package]] -name = "rustls" -version = "0.19.1" +name = "rustix" +version = "0.35.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35edb675feee39aec9c99fa5ff985081995a06d594114ae14cbe797ad7b7a6d7" +checksum = "72c825b8aa8010eb9ee99b75f05e10180b9278d161583034d7574c9d617aeada" dependencies = [ - "base64", - "log", - "ring", - "sct 0.6.1", - "webpki 0.21.4", + "bitflags", + "errno", + "io-lifetimes 0.7.3", + "libc", + "linux-raw-sys 0.0.46", + "windows-sys", ] [[package]] @@ -5493,22 +5462,31 @@ checksum = "5aab8ee6c7097ed6057f43c187a62418d0c05a4bd5f18b3571db50ee0f9ce033" dependencies = [ "log", "ring", - "sct 0.7.0", - "webpki 0.22.0", + "sct", + "webpki", ] [[package]] name = "rustls-native-certs" -version = "0.5.0" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a07b7c1885bd8ed3831c289b7870b13ef46fe0e856d288c30d9cc17d75a2092" +checksum = "0167bac7a9f490495f3c33013e7722b53cb087ecbe082fb0c6387c96f634ea50" dependencies = [ "openssl-probe", - "rustls 0.19.1", + "rustls-pemfile", "schannel", "security-framework", ] +[[package]] +name = "rustls-pemfile" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0864aeff53f8c05aa08d86e5ef839d3dfcf07aeba2db32f12db0ef716e87bd55" +dependencies = [ + "base64", +] + [[package]] name = "rustversion" version = "1.0.9" @@ -5517,12 +5495,12 @@ checksum = "97477e48b4cf8603ad5f7aaf897467cf42ab4218a38ef76fb14c2d6773a6d6a8" [[package]] name = "rw-stream-sink" -version = "0.2.1" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4da5fcb054c46f5a5dff833b129285a93d3f0179531735e6c866e8cc307d2020" +checksum = "26338f5e09bb721b85b135ea05af7767c90b52f6de4f087d4f4a3a9d64e7dc04" dependencies = [ "futures", - "pin-project 0.4.30", + "pin-project", "static_assertions", ] @@ -5562,7 +5540,7 @@ dependencies = [ [[package]] name = "sc-allocator" version = "4.1.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "log", "sp-core", @@ -5573,7 +5551,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "futures", "futures-timer", @@ -5596,7 +5574,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -5612,7 +5590,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "impl-trait-for-tuples", "memmap2 0.5.6", @@ -5629,7 +5607,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -5640,7 +5618,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "chrono", "clap", @@ -5679,7 +5657,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "fnv", "futures", @@ -5707,7 +5685,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "hash-db", "kvdb", @@ -5732,7 +5710,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "async-trait", "futures", @@ -5756,7 +5734,7 @@ dependencies = [ [[package]] name = "sc-consensus-aura" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "async-trait", "futures", @@ -5785,7 +5763,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "async-trait", "futures", @@ -5810,7 +5788,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "lazy_static", "lru", @@ -5837,7 +5815,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "environmental", "parity-scale-codec", @@ -5854,7 +5832,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "log", "parity-scale-codec", @@ -5869,13 +5847,15 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "cfg-if", "libc", "log", + "once_cell", "parity-scale-codec", "parity-wasm 0.42.2", + "rustix 0.35.9", "sc-allocator", "sc-executor-common", "sp-runtime-interface", @@ -5887,7 +5867,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "ahash", "async-trait", @@ -5907,6 +5887,7 @@ dependencies = [ "sc-consensus", "sc-keystore", "sc-network", + "sc-network-common", "sc-network-gossip", "sc-telemetry", "sc-utils", @@ -5927,7 +5908,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "ansi_term", "futures", @@ -5944,7 +5925,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "async-trait", "hex", @@ -5959,7 +5940,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "async-trait", "asynchronous-codec", @@ -5980,7 +5961,7 @@ dependencies = [ "lru", "parity-scale-codec", "parking_lot 0.12.1", - "pin-project 1.0.11", + "pin-project", "prost", "prost-build", "rand 0.7.3", @@ -5988,7 +5969,6 @@ dependencies = [ "sc-client-api", "sc-consensus", "sc-network-common", - "sc-network-sync", "sc-peerset", "sc-utils", "serde", @@ -5998,7 +5978,6 @@ dependencies = [ "sp-blockchain", "sp-consensus", "sp-core", - "sp-finality-grandpa", "sp-runtime", "substrate-prometheus-endpoint", "thiserror", @@ -6010,20 +5989,25 @@ dependencies = [ [[package]] name = "sc-network-common" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ + "bitflags", "futures", "libp2p", "parity-scale-codec", "prost-build", + "sc-consensus", "sc-peerset", "smallvec", + "sp-consensus", + "sp-finality-grandpa", + "sp-runtime", ] [[package]] name = "sc-network-gossip" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "ahash", "futures", @@ -6037,13 +6021,31 @@ dependencies = [ "tracing", ] +[[package]] +name = "sc-network-light" +version = "0.10.0-dev" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" +dependencies = [ + "futures", + "libp2p", + "log", + "parity-scale-codec", + "prost", + "prost-build", + "sc-client-api", + "sc-network-common", + "sc-peerset", + "sp-blockchain", + "sp-core", + "sp-runtime", + "thiserror", +] + [[package]] name = "sc-network-sync" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ - "bitflags", - "either", "fork-tree", "futures", "libp2p", @@ -6069,7 +6071,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "bytes", "fnv", @@ -6097,7 +6099,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "futures", "libp2p", @@ -6110,7 +6112,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -6119,7 +6121,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "futures", "hash-db", @@ -6149,7 +6151,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "futures", "jsonrpsee", @@ -6172,7 +6174,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "futures", "jsonrpsee", @@ -6185,7 +6187,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "async-trait", "directories", @@ -6198,7 +6200,7 @@ dependencies = [ "parity-scale-codec", "parity-util-mem", "parking_lot 0.12.1", - "pin-project 1.0.11", + "pin-project", "rand 0.7.3", "sc-block-builder", "sc-chain-spec", @@ -6210,6 +6212,8 @@ dependencies = [ "sc-keystore", "sc-network", "sc-network-common", + "sc-network-light", + "sc-network-sync", "sc-offchain", "sc-rpc", "sc-rpc-server", @@ -6250,7 +6254,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "log", "parity-scale-codec", @@ -6264,7 +6268,7 @@ dependencies = [ [[package]] name = "sc-sysinfo" version = "6.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "futures", "libc", @@ -6283,14 +6287,14 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "chrono", "futures", "libp2p", "log", "parking_lot 0.12.1", - "pin-project 1.0.11", + "pin-project", "rand 0.7.3", "serde", "serde_json", @@ -6301,7 +6305,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "ansi_term", "atty", @@ -6332,7 +6336,7 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -6343,7 +6347,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "futures", "futures-timer", @@ -6370,7 +6374,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "futures", "log", @@ -6383,7 +6387,7 @@ dependencies = [ [[package]] name = "sc-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "futures", "futures-timer", @@ -6453,16 +6457,6 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" -[[package]] -name = "sct" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b362b83898e0e69f38515b82ee15aa80636befe47c3b6d3d89a911e78fc228ce" -dependencies = [ - "ring", - "untrusted", -] - [[package]] name = "sct" version = "0.7.0" @@ -6487,18 +6481,18 @@ dependencies = [ [[package]] name = "secp256k1" -version = "0.21.3" +version = "0.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c42e6f1735c5f00f51e43e28d6634141f2bcad10931b2609ddd74a86d751260" +checksum = "b7649a0b3ffb32636e60c7ce0d70511eda9c52c658cd0634e194d5a19943aeff" dependencies = [ "secp256k1-sys", ] [[package]] name = "secp256k1-sys" -version = "0.4.2" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "957da2573cde917463ece3570eab4a0b3f19de6f1646cde62e6fd3868f566036" +checksum = "7058dc8eaf3f2810d7828680320acda0b25a288f6d288e19278e249bbf74226b" dependencies = [ "cc", ] @@ -6755,6 +6749,12 @@ dependencies = [ "autocfg", ] +[[package]] +name = "slice-group-by" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03b634d87b960ab1a38c4fe143b508576f075e7c978bfad18217645ebfdfa2ec" + [[package]] name = "smallvec" version = "1.9.0" @@ -6813,7 +6813,7 @@ dependencies = [ [[package]] name = "sp-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "hash-db", "log", @@ -6830,7 +6830,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "blake2", "proc-macro-crate", @@ -6842,7 +6842,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "parity-scale-codec", "scale-info", @@ -6855,7 +6855,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "integer-sqrt", "num-traits", @@ -6870,7 +6870,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "async-trait", "parity-scale-codec", @@ -6882,7 +6882,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "parity-scale-codec", "sp-api", @@ -6894,7 +6894,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "futures", "log", @@ -6912,7 +6912,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "async-trait", "futures", @@ -6931,7 +6931,7 @@ dependencies = [ [[package]] name = "sp-consensus-aura" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "async-trait", "parity-scale-codec", @@ -6949,7 +6949,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "parity-scale-codec", "scale-info", @@ -6963,7 +6963,7 @@ dependencies = [ [[package]] name = "sp-core" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "base58", "bitflags", @@ -7009,7 +7009,7 @@ dependencies = [ [[package]] name = "sp-core-hashing" version = "4.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "blake2", "byteorder", @@ -7023,7 +7023,7 @@ dependencies = [ [[package]] name = "sp-core-hashing-proc-macro" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "proc-macro2", "quote", @@ -7034,7 +7034,7 @@ dependencies = [ [[package]] name = "sp-database" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "kvdb", "parking_lot 0.12.1", @@ -7043,7 +7043,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "4.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "proc-macro2", "quote", @@ -7053,7 +7053,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.12.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "environmental", "parity-scale-codec", @@ -7064,7 +7064,7 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "finality-grandpa", "log", @@ -7082,7 +7082,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -7096,7 +7096,7 @@ dependencies = [ [[package]] name = "sp-io" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "futures", "hash-db", @@ -7121,7 +7121,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "lazy_static", "sp-core", @@ -7132,7 +7132,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.12.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "async-trait", "futures", @@ -7149,7 +7149,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "4.1.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "thiserror", "zstd", @@ -7158,7 +7158,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "sp-api", "sp-core", @@ -7168,7 +7168,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "4.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "backtrace", "lazy_static", @@ -7178,7 +7178,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "rustc-hash", "serde", @@ -7188,7 +7188,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "either", "hash256-std-hasher", @@ -7210,7 +7210,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -7227,7 +7227,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "Inflector", "proc-macro-crate", @@ -7239,7 +7239,7 @@ dependencies = [ [[package]] name = "sp-sandbox" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "log", "parity-scale-codec", @@ -7253,7 +7253,7 @@ dependencies = [ [[package]] name = "sp-serializer" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "serde", "serde_json", @@ -7262,7 +7262,7 @@ dependencies = [ [[package]] name = "sp-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "parity-scale-codec", "scale-info", @@ -7276,7 +7276,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "parity-scale-codec", "scale-info", @@ -7287,7 +7287,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.12.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "hash-db", "log", @@ -7309,12 +7309,12 @@ dependencies = [ [[package]] name = "sp-std" version = "4.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" [[package]] name = "sp-storage" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "impl-serde", "parity-scale-codec", @@ -7327,7 +7327,7 @@ dependencies = [ [[package]] name = "sp-tasks" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "log", "sp-core", @@ -7340,7 +7340,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "async-trait", "futures-timer", @@ -7356,7 +7356,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "parity-scale-codec", "sp-std", @@ -7368,7 +7368,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "sp-api", "sp-runtime", @@ -7377,7 +7377,7 @@ dependencies = [ [[package]] name = "sp-transaction-storage-proof" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "async-trait", "log", @@ -7393,7 +7393,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "hash-db", "memory-db", @@ -7409,7 +7409,7 @@ dependencies = [ [[package]] name = "sp-version" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "impl-serde", "parity-scale-codec", @@ -7426,7 +7426,7 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "parity-scale-codec", "proc-macro2", @@ -7437,7 +7437,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "impl-trait-for-tuples", "log", @@ -7501,20 +7501,20 @@ checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" [[package]] name = "strum" -version = "0.23.0" +version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cae14b91c7d11c9a851d3fbc80a963198998c2a64eec840477fa92d8ce9b70bb" +checksum = "063e6045c0e62079840579a7e47a355ae92f60eb74daaf156fb1e84ba164e63f" dependencies = [ "strum_macros", ] [[package]] name = "strum_macros" -version = "0.23.1" +version = "0.24.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bb0dc7ee9c15cea6199cde9a127fa16a4c5819af85395457ad72d68edc85a38" +checksum = "1e385be0d24f186b4ce2f9982191e7101bb737312ad61c1f2f984f34bcf85d59" dependencies = [ - "heck 0.3.3", + "heck", "proc-macro2", "quote", "rustversion", @@ -7537,7 +7537,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "platforms", ] @@ -7545,7 +7545,7 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "frame-system-rpc-runtime-api", "futures", @@ -7566,7 +7566,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "futures-util", "hyper", @@ -7579,11 +7579,12 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea23bab86cafffaf116fc607b6790fb4eb" +source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.27#8eff668a42325aeb4433eace1604f4d286a6ec05" dependencies = [ "ansi_term", "build-helper", "cargo_metadata", + "filetime", "sp-maybe-compressed-blob", "strum", "tempfile", @@ -7600,9 +7601,9 @@ checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" [[package]] name = "syn" -version = "1.0.96" +version = "1.0.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0748dd251e24453cb8717f0354206b91557e4ec8703673a4b30208f2abaf1ebf" +checksum = "58dbef6ec655055e20b86b15a8cc6d439cca19b667537ac6a1369572d151ab13" dependencies = [ "proc-macro2", "quote", @@ -7663,22 +7664,11 @@ dependencies = [ "cfg-if", "fastrand", "libc", - "redox_syscall 0.2.16", + "redox_syscall", "remove_dir_all", "winapi", ] -[[package]] -name = "term" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edd106a334b7657c10b7c540a0106114feadeb4dc314513e97df481d5d966f42" -dependencies = [ - "byteorder", - "dirs", - "winapi", -] - [[package]] name = "termcolor" version = "1.1.3" @@ -7828,13 +7818,24 @@ dependencies = [ [[package]] name = "tokio-rustls" -version = "0.22.0" +version = "0.23.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c43ee83903113e03984cb9e5cebe6c04a5116269e900e3ddba8f068a62adda59" +dependencies = [ + "rustls", + "tokio", + "webpki", +] + +[[package]] +name = "tokio-stream" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc6844de72e57df1980054b38be3a9f4702aba4858be64dd700181a8a6d0e1b6" +checksum = "df54d54117d6fdc4e4fea40fe1e4e566b3505700e148a6827e59b34b0d2600d9" dependencies = [ - "rustls 0.19.1", + "futures-core", + "pin-project-lite 0.2.9", "tokio", - "webpki 0.21.4", ] [[package]] @@ -7906,7 +7907,7 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97d095ae15e245a057c8e8451bab9b3ee1e1f68e9ba2b4fbc18d0ac5237835f2" dependencies = [ - "pin-project 1.0.11", + "pin-project", "tracing", ] @@ -7916,10 +7917,8 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78ddad33d2d10b1ed7eb9d1f518a5674713876e97e5bb9b7345a7984fbb4f922" dependencies = [ - "ahash", "lazy_static", "log", - "lru", "tracing-core", ] @@ -7978,7 +7977,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d32d034c0d3db64b43c31de38e945f15b40cd4ca6d2dcfc26d4798ce8de4ab83" dependencies = [ "hash-db", - "hashbrown", + "hashbrown 0.12.3", "log", "rustc-hex", "smallvec", @@ -8114,12 +8113,6 @@ dependencies = [ "tinyvec", ] -[[package]] -name = "unicode-segmentation" -version = "1.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e8820f5d777f6224dc4be3632222971ac30164d4a258d595640799554ebfd99" - [[package]] name = "unicode-width" version = "0.1.9" @@ -8379,15 +8372,18 @@ dependencies = [ [[package]] name = "wasmparser" -version = "0.83.0" +version = "0.85.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "718ed7c55c2add6548cca3ddd6383d738cd73b892df400e96b9aa876f0141d7a" +checksum = "570460c58b21e9150d2df0eaaedbb7816c34bcec009ae0dcc976e40ba81463e7" +dependencies = [ + "indexmap", +] [[package]] name = "wasmtime" -version = "0.35.3" +version = "0.38.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21ffb4705016d5ca91e18a72ed6822dab50e6d5ddd7045461b17ef19071cdef1" +checksum = "1f50eadf868ab6a04b7b511460233377d0bfbb92e417b2f6a98b98fef2e098f5" dependencies = [ "anyhow", "backtrace", @@ -8397,7 +8393,7 @@ dependencies = [ "lazy_static", "libc", "log", - "object 0.27.1", + "object 0.28.4", "once_cell", "paste", "psm", @@ -8416,9 +8412,9 @@ dependencies = [ [[package]] name = "wasmtime-cache" -version = "0.35.3" +version = "0.38.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85c6ab24291fa7cb3a181f5669f6c72599b7ef781669759b45c7828c5999d0c0" +checksum = "d1df23c642e1376892f3b72f311596976979cbf8b85469680cdd3a8a063d12a2" dependencies = [ "anyhow", "base64", @@ -8426,7 +8422,7 @@ dependencies = [ "directories-next", "file-per-thread-logger", "log", - "rustix", + "rustix 0.33.7", "serde", "sha2 0.9.9", "toml", @@ -8436,9 +8432,9 @@ dependencies = [ [[package]] name = "wasmtime-cranelift" -version = "0.35.3" +version = "0.38.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f04c810078a491b7bc4866ebe045f714d2b95e6b539e1f64009a4a7606be11de" +checksum = "f264ff6b4df247d15584f2f53d009fbc90032cfdc2605b52b961bffc71b6eccd" dependencies = [ "anyhow", "cranelift-codegen", @@ -8449,7 +8445,7 @@ dependencies = [ "gimli", "log", "more-asserts", - "object 0.27.1", + "object 0.28.4", "target-lexicon", "thiserror", "wasmparser", @@ -8458,9 +8454,9 @@ dependencies = [ [[package]] name = "wasmtime-environ" -version = "0.35.3" +version = "0.38.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61448266ea164b1ac406363cdcfac81c7c44db4d94c7a81c8620ac6c5c6cdf59" +checksum = "839d2820e4b830f4b9e7aa08d4c0acabf4a5036105d639f6dfa1c6891c73bdc6" dependencies = [ "anyhow", "cranelift-entity", @@ -8468,7 +8464,7 @@ dependencies = [ "indexmap", "log", "more-asserts", - "object 0.27.1", + "object 0.28.4", "serde", "target-lexicon", "thiserror", @@ -8478,9 +8474,9 @@ dependencies = [ [[package]] name = "wasmtime-jit" -version = "0.35.3" +version = "0.38.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "156b4623c6b0d4b8c24afb846c20525922f538ef464cc024abab7ea8de2109a2" +checksum = "ef0a0bcbfa18b946d890078ba0e1bc76bcc53eccfb40806c0020ec29dcd1bd49" dependencies = [ "addr2line", "anyhow", @@ -8489,10 +8485,10 @@ dependencies = [ "cpp_demangle", "gimli", "log", - "object 0.27.1", + "object 0.28.4", "region", "rustc-demangle", - "rustix", + "rustix 0.33.7", "serde", "target-lexicon", "thiserror", @@ -8504,20 +8500,20 @@ dependencies = [ [[package]] name = "wasmtime-jit-debug" -version = "0.35.3" +version = "0.38.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5dc31f811760a6c76b2672c404866fd19b75e5fb3b0075a3e377a6846490654" +checksum = "4f4779d976206c458edd643d1ac622b6c37e4a0800a8b1d25dfbf245ac2f2cac" dependencies = [ "lazy_static", - "object 0.27.1", - "rustix", + "object 0.28.4", + "rustix 0.33.7", ] [[package]] name = "wasmtime-runtime" -version = "0.35.3" +version = "0.38.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f907beaff69d4d920fa4688411ee4cc75c0f01859e424677f9e426e2ef749864" +checksum = "b7eb6ffa169eb5dcd18ac9473c817358cd57bc62c244622210566d473397954a" dependencies = [ "anyhow", "backtrace", @@ -8527,11 +8523,12 @@ dependencies = [ "libc", "log", "mach", + "memfd", "memoffset", "more-asserts", "rand 0.8.5", "region", - "rustix", + "rustix 0.33.7", "thiserror", "wasmtime-environ", "wasmtime-jit-debug", @@ -8540,9 +8537,9 @@ dependencies = [ [[package]] name = "wasmtime-types" -version = "0.35.3" +version = "0.38.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "514ef0e5fd197b9609dc9eb74beba0c84d5a12b2417cbae55534633329ba4852" +checksum = "8d932b0ac5336f7308d869703dd225610a6a3aeaa8e968c52b43eed96cefb1c2" dependencies = [ "cranelift-entity", "serde", @@ -8560,16 +8557,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "webpki" -version = "0.21.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8e38c0608262c46d4a56202ebabdeb094cef7e560ca7a226c6bf055188aa4ea" -dependencies = [ - "ring", - "untrusted", -] - [[package]] name = "webpki" version = "0.22.0" @@ -8586,7 +8573,7 @@ version = "0.22.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1c760f0d366a6c24a02ed7816e23e691f5d92291f94d15e836006fd11b04daf" dependencies = [ - "webpki 0.22.0", + "webpki", ] [[package]] @@ -8763,21 +8750,22 @@ dependencies = [ [[package]] name = "xcm" -version = "0.9.22" -source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.22#17c7b9594aedbfc644d7e6e26f7bd244e68ccf4d" +version = "0.9.27" +source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.27#b017bad50d360a1c6e3cdf9652bdb85e5f479fea" dependencies = [ "derivative", "impl-trait-for-tuples", "log", "parity-scale-codec", "scale-info", + "sp-runtime", "xcm-procedural", ] [[package]] name = "xcm-procedural" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.22#17c7b9594aedbfc644d7e6e26f7bd244e68ccf4d" +version = "0.9.27" +source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.27#b017bad50d360a1c6e3cdf9652bdb85e5f479fea" dependencies = [ "Inflector", "proc-macro2", @@ -8822,18 +8810,18 @@ dependencies = [ [[package]] name = "zstd" -version = "0.10.2+zstd.1.5.2" +version = "0.11.2+zstd.1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f4a6bd64f22b5e3e94b4e238669ff9f10815c27a5180108b849d24174a83847" +checksum = "20cc960326ece64f010d2d2107537f26dc589a6573a316bd5b1dba685fa5fde4" dependencies = [ "zstd-safe", ] [[package]] name = "zstd-safe" -version = "4.1.6+zstd.1.5.2" +version = "5.0.2+zstd.1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94b61c51bb270702d6167b8ce67340d2754b088d0c091b06e593aa772c3ee9bb" +checksum = "1d2a5585e04f9eea4b2a3d1eca508c4dee9592a89ef6f450c11719da0726f4db" dependencies = [ "libc", "zstd-sys", @@ -8841,9 +8829,9 @@ dependencies = [ [[package]] name = "zstd-sys" -version = "1.6.3+zstd.1.5.2" +version = "2.0.1+zstd.1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc49afa5c8d634e75761feda8c592051e7eeb4683ba827211eb0d731d3402ea8" +checksum = "9fd07cbbc53846d9145dbffdf6dd09a7a0aa52be46741825f5c97bdd4f73f12b" dependencies = [ "cc", "libc", diff --git a/node/Cargo.toml b/node/Cargo.toml index 1a976dd..1c29691 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -12,7 +12,7 @@ name = "laguna-node" targets = ['x86_64-unknown-linux-gnu'] [build-dependencies.substrate-build-script-utils] -branch = "polkadot-v0.9.22" +branch = "polkadot-v0.9.27" git = 'https://github.com/paritytech/substrate.git' version = '3.0.0' @@ -23,51 +23,51 @@ primitives = {path = "../primitives"} # laguna chain runtime laguna-runtime = {path = "../runtime"} -sc-basic-authorship = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sc-cli = {features = ['wasmtime'], git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sc-client-api = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sc-consensus = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sc-consensus-aura = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sc-executor = {features = ['wasmtime'], git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sc-finality-grandpa = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sc-rpc = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sc-rpc-api = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sc-service = {features = ['wasmtime'], git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sc-telemetry = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sc-transaction-pool = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sc-transaction-pool-api = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +sc-basic-authorship = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sc-cli = {features = ['wasmtime'], git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sc-client-api = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sc-consensus = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sc-consensus-aura = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sc-executor = {features = ['wasmtime'], git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sc-finality-grandpa = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sc-rpc = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sc-rpc-api = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sc-service = {features = ['wasmtime'], git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sc-telemetry = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sc-transaction-pool = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sc-transaction-pool-api = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} # substrate primitives -sp-api = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-block-builder = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-blockchain = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-consensus = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-consensus-aura = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-core = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-finality-grandpa = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-inherents = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-keyring = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-runtime = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-timestamp = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +sp-api = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-block-builder = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-blockchain = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-consensus = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-consensus-aura = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-core = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-finality-grandpa = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-inherents = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-keyring = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-runtime = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-timestamp = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} -substrate-frame-rpc-system = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +substrate-frame-rpc-system = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} -pallet-transaction-payment-rpc = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +pallet-transaction-payment-rpc = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} -frame-system = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -frame-support = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-contracts-rpc = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +frame-system = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +frame-support = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-contracts-rpc = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} -pallet-transaction-payment = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +pallet-transaction-payment = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} pallet-system-contract-deployer = {path = "../pallets/system-contract-deployer", default-features = false} # requird for benchmark cli-parsing and conduct runtime-benchmark -frame-benchmarking = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -frame-benchmarking-cli = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +frame-benchmarking = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +frame-benchmarking-cli = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} clap = {version = "3.1.6", features = ["derive"]} hex-literal = "0.3.4" -jsonrpsee = {version = "0.13.0", features = ["server"]} +jsonrpsee = {version = "0.14.0", features = ["server"]} pallet-currencies-rpc = {version = "0.1.0", path = "../pallets/currencies/rpc"} [features] diff --git a/node/src/chain_spec/testnet.rs b/node/src/chain_spec/testnet.rs index 5147820..867bfe5 100644 --- a/node/src/chain_spec/testnet.rs +++ b/node/src/chain_spec/testnet.rs @@ -33,7 +33,7 @@ pub fn local_testnet_config() -> Result { move || { let pallet_system_contract_deployer_id = ::PalletId::get() - .into_account(); + .try_into_account().expect("Invalid PalletId"); testnet_genesis( wasm_binary, @@ -86,7 +86,7 @@ pub fn devnet_config() -> Result { move || { let pallet_system_contract_deployer_id = ::PalletId::get() - .into_account(); + .try_into_account().expect("Invalid PalletId"); testnet_genesis( wasm_binary, diff --git a/node/src/command.rs b/node/src/command.rs index 03d5cc6..53910ac 100644 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -2,16 +2,15 @@ use crate::{ cli::{LagunaCli, Subcommand}, - command_helper::{inherent_benchmark_data, BenchmarkExtrinsicBuilder}, + command_helper::{inherent_benchmark_data, RemarkBuilder}, }; use crate::{chain_spec, service}; -use frame_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE}; +use frame_benchmarking_cli::{BenchmarkCmd, ExtrinsicFactory, SUBSTRATE_REFERENCE_HARDWARE}; use laguna_runtime::Block; use sc_cli::{ChainSpec, RuntimeVersion, SubstrateCli}; use sc_service::PartialComponents; -use std::sync::Arc; use sp_runtime::generic; pub type SignedPayload = generic::SignedPayload; @@ -144,9 +143,17 @@ pub fn run() -> sc_cli::Result<()> { }, BenchmarkCmd::Overhead(cmd) => { let PartialComponents { client, .. } = service::new_partial(&config)?; - let ext_builder = BenchmarkExtrinsicBuilder::new(client.clone()); + let ext_builder = RemarkBuilder::new(client.clone()); - cmd.run(config, client, inherent_benchmark_data()?, Arc::new(ext_builder)) + cmd.run(config, client, inherent_benchmark_data()?, &ext_builder) + }, + BenchmarkCmd::Extrinsic(cmd) => { + let PartialComponents { client, .. } = service::new_partial(&config)?; + // Register the *Remark* builders. + let ext_factory = + ExtrinsicFactory(vec![Box::new(RemarkBuilder::new(client.clone()))]); + + cmd.run(client, inherent_benchmark_data()?, &ext_factory) }, BenchmarkCmd::Machine(cmd) => cmd.run(&config, SUBSTRATE_REFERENCE_HARDWARE.clone()), diff --git a/node/src/command_helper.rs b/node/src/command_helper.rs index ea31904..f921dfc 100644 --- a/node/src/command_helper.rs +++ b/node/src/command_helper.rs @@ -20,19 +20,27 @@ use std::{sync::Arc, time::Duration}; /// Generates extrinsics for the `benchmark overhead` command. /// /// Note: Should only be used for benchmarking. -pub struct BenchmarkExtrinsicBuilder { +pub struct RemarkBuilder { client: Arc, } -impl BenchmarkExtrinsicBuilder { +impl RemarkBuilder { /// Creates a new [`Self`] from the given client. pub fn new(client: Arc) -> Self { Self { client } } } -impl frame_benchmarking_cli::ExtrinsicBuilder for BenchmarkExtrinsicBuilder { - fn remark(&self, nonce: u32) -> std::result::Result { +impl frame_benchmarking_cli::ExtrinsicBuilder for RemarkBuilder { + fn pallet(&self) -> &str { + "system" + } + + fn extrinsic(&self) -> &str { + "remark" + } + + fn build(&self, nonce: u32) -> std::result::Result { let acc = Sr25519Keyring::Bob.pair(); let extrinsic: OpaqueExtrinsic = create_benchmark_extrinsic( self.client.as_ref(), diff --git a/node/src/rpc.rs b/node/src/rpc.rs index c93e11f..8a37bb4 100644 --- a/node/src/rpc.rs +++ b/node/src/rpc.rs @@ -4,18 +4,18 @@ use laguna_runtime::opaque::Block; use primitives::{AccountId, Balance, BlockNumber, Hash, Index}; use std::sync::Arc; -use pallet_contracts_rpc::{ContractsApiServer, ContractsRpc, ContractsRuntimeApi}; +use pallet_contracts_rpc::{Contracts, ContractsApiServer, ContractsRuntimeApi}; use pallet_currencies_rpc::{CurrenciesApiServer, CurrenciesRpc, CurrenciesRuntimeApi}; use pallet_transaction_payment_rpc::{ - TransactionPaymentApiServer, TransactionPaymentRpc, TransactionPaymentRuntimeApi, + TransactionPayment, TransactionPaymentApiServer, TransactionPaymentRuntimeApi, }; use sc_rpc_api::DenyUnsafe; use sc_transaction_pool_api::TransactionPool; use sp_api::ProvideRuntimeApi; use sp_block_builder::BlockBuilder; use sp_blockchain::{Error as BlockChainError, HeaderBackend, HeaderMetadata}; -use substrate_frame_rpc_system::{AccountNonceApi, SystemApiServer, SystemRpc}; +use substrate_frame_rpc_system::{AccountNonceApi, System, SystemApiServer}; pub struct FullDeps { pub client: Arc, @@ -50,14 +50,14 @@ where // operational rpcs // ++++++++++++++++ - module.merge(SystemRpc::new(client.clone(), pool, deny_unsafe).into_rpc())?; - module.merge(TransactionPaymentRpc::new(client.clone()).into_rpc())?; + module.merge(System::new(client.clone(), pool, deny_unsafe).into_rpc())?; + module.merge(TransactionPayment::new(client.clone()).into_rpc())?; // ++++++++++ // extra rpcs // ++++++++++ - module.merge(ContractsRpc::new(client.clone()).into_rpc())?; + module.merge(Contracts::new(client.clone()).into_rpc())?; module.merge(CurrenciesRpc::new(client).into_rpc())?; Ok(module) diff --git a/pallets/contract-asset-registry/Cargo.toml b/pallets/contract-asset-registry/Cargo.toml index ae6ccfb..173f9ec 100644 --- a/pallets/contract-asset-registry/Cargo.toml +++ b/pallets/contract-asset-registry/Cargo.toml @@ -12,29 +12,29 @@ traits = {path = "../traits", default-features = false} scale-info = {default-features = false, features = ['derive'], version = '2.0.1'} -frame-support = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -frame-system = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +frame-support = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +frame-system = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} -sp-core = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +sp-core = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} # contracts related deps -pallet-contracts = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22", default-features = false} -pallet-contracts-primitives = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22", default-features = false} +pallet-contracts = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27", default-features = false} +pallet-contracts-primitives = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27", default-features = false} -frame-benchmarking = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22", optional = true} +frame-benchmarking = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27", optional = true} hex = {version = "0.4.3", default-features = false} hex-literal = "0.3.4" -orml-traits = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', version = "0.4.1-dev", default-features = false, branch = "polkadot-v0.9.22"} +orml-traits = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', version = "0.4.1-dev", default-features = false, branch = "polkadot-v0.9.27"} [dev-dependencies] -pallet-balances = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-randomness-collective-flip = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-sudo = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-timestamp = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-transaction-payment = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +pallet-balances = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-randomness-collective-flip = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-sudo = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-timestamp = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-transaction-payment = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} primitives = {path = "../../primitives"} -sp-io = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +sp-io = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} [features] default = ["std"] diff --git a/pallets/contract-asset-registry/src/lib.rs b/pallets/contract-asset-registry/src/lib.rs index 804fd3e..8e64e1b 100644 --- a/pallets/contract-asset-registry/src/lib.rs +++ b/pallets/contract-asset-registry/src/lib.rs @@ -191,7 +191,7 @@ where )?; pallet_contracts::Pallet::::bare_call( - T::PalletId::get().into_account(), + T::PalletId::get().try_into_account().expect("Invalid PalletId"), asset_address, Self::Balance::default(), T::MaxGas::get(), @@ -219,7 +219,7 @@ where )?; pallet_contracts::Pallet::::bare_call( - T::PalletId::get().into_account(), + T::PalletId::get().try_into_account().expect("Invalid PalletId"), asset_address, Self::Balance::default(), T::MaxGas::get(), @@ -273,7 +273,7 @@ where }, )?; pallet_contracts::Pallet::::bare_call( - T::PalletId::get().into_account(), + T::PalletId::get().try_into_account().expect("Invalid PalletId"), asset_address, Self::Balance::default(), T::MaxGas::get(), diff --git a/pallets/contract-asset-registry/src/mock.rs b/pallets/contract-asset-registry/src/mock.rs index 28ee181..c0a49cb 100644 --- a/pallets/contract-asset-registry/src/mock.rs +++ b/pallets/contract-asset-registry/src/mock.rs @@ -109,6 +109,7 @@ parameter_types! { impl pallet_transaction_payment::Config for Runtime { // TODO: add benchmark around cross pallet interaction between fee + type Event = Event; type OnChargeTransaction = CurrencyAdapter; type OperationalFeeMultiplier = OperationalFeeMultiplier; type WeightToFee = IdentityFee; @@ -140,11 +141,7 @@ parameter_types! { ::WeightInfo::on_initialize_per_queue_item(1) - ::WeightInfo::on_initialize_per_queue_item(0) )) / 5) as u32; - pub Schedule: pallet_contracts::Schedule = { - let mut schedule = pallet_contracts::Schedule::::default(); - schedule.limits.code_len = 256 * 1024; - schedule - }; + pub Schedule: pallet_contracts::Schedule = Default::default(); } impl pallet_contracts::Config for Runtime { @@ -171,6 +168,10 @@ impl pallet_contracts::Config for Runtime { // TODO: use arbitrary value now, need to adjust usage later type ContractAccessWeight = DefaultContractAccessWeight<()>; + + type MaxCodeLen = ConstU32<{ 256 * 1024 }>; + type RelaxedMaxCodeLen = ConstU32<{ 512 * 1024 }>; + type MaxStorageKeyLen = ConstU32<128>; } parameter_types! { diff --git a/pallets/currencies/Cargo.toml b/pallets/currencies/Cargo.toml index 17a4432..ba28a84 100644 --- a/pallets/currencies/Cargo.toml +++ b/pallets/currencies/Cargo.toml @@ -13,25 +13,25 @@ traits = {path = "../traits", default-features = false} scale-info = {default-features = false, features = ['derive'], version = '2.0.1'} -frame-support = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -frame-system = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-core = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +frame-support = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +frame-system = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-core = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} -frame-benchmarking = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22", optional = true} +frame-benchmarking = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27", optional = true} hex = {version = "0.4.3", default-features = false} hex-literal = "0.3.4" -orml-traits = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', default-features = false, branch = "polkadot-v0.9.22"} +orml-traits = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', default-features = false, branch = "polkadot-v0.9.27"} pallet-contract-asset-registry = {version = "0.1.0", path = "../contract-asset-registry", default-features = false} [dev-dependencies] once_cell = "1.12.0" -orml-tokens = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', version = "0.4.1-dev", branch = "polkadot-v0.9.22"} -pallet-contracts = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-randomness-collective-flip = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-timestamp = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-transaction-payment = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-io = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +orml-tokens = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', version = "0.4.1-dev", branch = "polkadot-v0.9.27"} +pallet-contracts = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-randomness-collective-flip = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-timestamp = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-transaction-payment = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-io = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} [features] default = ["std"] diff --git a/pallets/currencies/rpc/Cargo.toml b/pallets/currencies/rpc/Cargo.toml index 51b7804..7576c99 100644 --- a/pallets/currencies/rpc/Cargo.toml +++ b/pallets/currencies/rpc/Cargo.toml @@ -12,9 +12,9 @@ serde = {version = "1.0.137", features = ["derive"]} pallet-currencies-runtime-api = {version = "0.1.0", path = "runtime-api"} primitives = {version = "0.1.0", path = "../../../primitives"} -sp-api = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-blockchain = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-runtime = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-std = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +sp-api = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-blockchain = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-runtime = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-std = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} -jsonrpsee = {version = "0.13.0", features = ["server", "macros"]} +jsonrpsee = {version = "0.14.0", features = ["server", "macros"]} diff --git a/pallets/currencies/rpc/runtime-api/Cargo.toml b/pallets/currencies/rpc/runtime-api/Cargo.toml index b6126ad..14c95fb 100644 --- a/pallets/currencies/rpc/runtime-api/Cargo.toml +++ b/pallets/currencies/rpc/runtime-api/Cargo.toml @@ -9,9 +9,9 @@ version = "0.1.0" codec = {default-features = false, package = 'parity-scale-codec', version = '3.0.0', features = ["derive"]} primitives = {version = "0.1.0", path = "../../../../primitives", default-features = false} scale-info = {default-features = false, features = ['derive'], version = '2.0.1'} -sp-api = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-runtime = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-std = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +sp-api = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-runtime = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-std = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} [features] default = ["std"] diff --git a/pallets/currencies/src/mock.rs b/pallets/currencies/src/mock.rs index 8603dad..6a60b84 100644 --- a/pallets/currencies/src/mock.rs +++ b/pallets/currencies/src/mock.rs @@ -101,6 +101,7 @@ parameter_types! { impl pallet_transaction_payment::Config for Runtime { // TODO: add benchmark around cross pallet interaction between fee + type Event = Event; type OnChargeTransaction = PaymentCurrencyAdapter, ()>; type OperationalFeeMultiplier = OperationalFeeMultiplier; @@ -133,11 +134,7 @@ parameter_types! { ::WeightInfo::on_initialize_per_queue_item(1) - ::WeightInfo::on_initialize_per_queue_item(0) )) / 5) as u32; - pub Schedule: pallet_contracts::Schedule = { - let mut schedule = pallet_contracts::Schedule::::default(); - schedule.limits.code_len = 256 * 1024; - schedule - }; + pub Schedule: pallet_contracts::Schedule = Default::default(); } impl pallet_contracts::Config for Runtime { @@ -163,6 +160,10 @@ impl pallet_contracts::Config for Runtime { type AddressGenerator = DefaultAddressGenerator; type ContractAccessWeight = DefaultContractAccessWeight<()>; + + type MaxCodeLen = ConstU32<{ 256 * 1024 }>; + type RelaxedMaxCodeLen = ConstU32<{ 512 * 1024 }>; + type MaxStorageKeyLen = ConstU32<128>; } parameter_types! { @@ -216,6 +217,10 @@ impl orml_tokens::Config for Runtime { type MaxReserves = ConstU32<2>; type ReserveIdentifier = ReserveIdentifier; + + type OnNewTokenAccount = (); + + type OnKilledTokenAccount = (); } parameter_types! { diff --git a/pallets/fee-enablement/Cargo.toml b/pallets/fee-enablement/Cargo.toml index 4c127ec..1f56aed 100644 --- a/pallets/fee-enablement/Cargo.toml +++ b/pallets/fee-enablement/Cargo.toml @@ -10,20 +10,20 @@ codec = {default-features = false, features = ['derive'], package = 'parity-scal log = "0.4.14" scale-info = {default-features = false, features = ['derive'], version = '2.0.1'} -orml-traits = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', default-features = false, branch = "polkadot-v0.9.22"} +orml-traits = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', default-features = false, branch = "polkadot-v0.9.27"} traits = {version = "0.1.0", path = "../traits", default-features = false} -frame-support = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -frame-system = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +frame-support = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +frame-system = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} -frame-benchmarking = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22", optional = true} +frame-benchmarking = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27", optional = true} [dev-dependencies] -orml-tokens = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', branch = "polkadot-v0.9.22"} -pallet-transaction-payment = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +orml-tokens = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', branch = "polkadot-v0.9.27"} +pallet-transaction-payment = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} primitives = {path = "../../primitives"} -sp-core = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-io = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +sp-core = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-io = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} [features] default = ["std"] diff --git a/pallets/fee-enablement/src/mock.rs b/pallets/fee-enablement/src/mock.rs index 0a39b61..e255e94 100644 --- a/pallets/fee-enablement/src/mock.rs +++ b/pallets/fee-enablement/src/mock.rs @@ -111,6 +111,10 @@ impl orml_tokens::Config for Runtime { type MaxReserves = ConstU32<2>; type ReserveIdentifier = ReserveIdentifier; + + type OnNewTokenAccount = (); + + type OnKilledTokenAccount = (); } pub struct DummyImpl; diff --git a/pallets/fee-measurement/Cargo.toml b/pallets/fee-measurement/Cargo.toml index d2666b3..4f39347 100644 --- a/pallets/fee-measurement/Cargo.toml +++ b/pallets/fee-measurement/Cargo.toml @@ -10,20 +10,20 @@ codec = {default-features = false, features = ['derive'], package = 'parity-scal log = "0.4.14" scale-info = {default-features = false, features = ['derive'], version = '2.0.1'} -orml-traits = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', default-features = false, branch = "polkadot-v0.9.22"} +orml-traits = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', default-features = false, branch = "polkadot-v0.9.27"} traits = {version = "0.1.0", path = "../traits", default-features = false} -frame-support = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -frame-system = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +frame-support = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +frame-system = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} -frame-benchmarking = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22", optional = true} +frame-benchmarking = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27", optional = true} [dev-dependencies] -orml-tokens = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', branch = "polkadot-v0.9.22"} -pallet-transaction-payment = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +orml-tokens = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', branch = "polkadot-v0.9.27"} +pallet-transaction-payment = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} primitives = {path = "../../primitives"} -sp-core = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-io = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +sp-core = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-io = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} [features] default = ["std"] diff --git a/pallets/fee-measurement/src/mock.rs b/pallets/fee-measurement/src/mock.rs index 424be5d..b78c10a 100644 --- a/pallets/fee-measurement/src/mock.rs +++ b/pallets/fee-measurement/src/mock.rs @@ -112,6 +112,10 @@ impl orml_tokens::Config for Runtime { type MaxReserves = ConstU32<2>; type ReserveIdentifier = ReserveIdentifier; + + type OnNewTokenAccount = (); + + type OnKilledTokenAccount = (); } pub struct DummyProvider; diff --git a/pallets/fluent-fee/Cargo.toml b/pallets/fluent-fee/Cargo.toml index 363e74d..719d020 100644 --- a/pallets/fluent-fee/Cargo.toml +++ b/pallets/fluent-fee/Cargo.toml @@ -10,22 +10,22 @@ codec = {default-features = false, features = ['derive'], package = 'parity-scal log = "0.4.14" scale-info = {default-features = false, features = ['derive'], version = '2.0.1'} -frame-support = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -frame-system = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -orml-traits = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', default-features = false, branch = "polkadot-v0.9.22"} -pallet-transaction-payment = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +frame-support = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +frame-system = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +orml-traits = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', default-features = false, branch = "polkadot-v0.9.27"} +pallet-transaction-payment = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} hex = {version = "0.4.3", default-features = false} hex-literal = "0.3.4" traits = {version = "0.1.0", path = "../traits", default-features = false} -frame-benchmarking = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22", optional = true} +frame-benchmarking = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27", optional = true} [dev-dependencies] -orml-tokens = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', branch = "polkadot-v0.9.22"} +orml-tokens = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', branch = "polkadot-v0.9.27"} primitives = {path = "../../primitives"} -sp-core = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-io = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +sp-core = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-io = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} [features] default = ["std"] diff --git a/pallets/fluent-fee/src/mock.rs b/pallets/fluent-fee/src/mock.rs index 60932ba..1bf96a0 100644 --- a/pallets/fluent-fee/src/mock.rs +++ b/pallets/fluent-fee/src/mock.rs @@ -120,6 +120,10 @@ impl orml_tokens::Config for Runtime { type MaxReserves = ConstU32<2>; type ReserveIdentifier = ReserveIdentifier; + + type OnNewTokenAccount = (); + + type OnKilledTokenAccount = (); } pub const NATIVE_CURRENCY_ID: CurrencyId = CurrencyId::NativeToken(TokenId::Laguna); @@ -288,6 +292,8 @@ impl Config for Runtime { } impl pallet_transaction_payment::Config for Runtime { + type Event = Event; + type OnChargeTransaction = FluentFee; type OperationalFeeMultiplier = (); diff --git a/pallets/prepaid/Cargo.toml b/pallets/prepaid/Cargo.toml index 3d1286e..5c9979d 100644 --- a/pallets/prepaid/Cargo.toml +++ b/pallets/prepaid/Cargo.toml @@ -9,17 +9,17 @@ version = "0.1.0" codec = {default-features = false, features = ['derive'], package = 'parity-scale-codec', version = '3.0.0'} scale-info = {default-features = false, features = ['derive'], version = '2.0.1'} -frame-support = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -frame-system = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +frame-support = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +frame-system = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} -orml-traits = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', default-features = false, branch = "polkadot-v0.9.22"} +orml-traits = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', default-features = false, branch = "polkadot-v0.9.27"} traits = {version = "0.1.0", path = "../traits", default-features = false} [dev-dependencies] -orml-tokens = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', branch = "polkadot-v0.9.22"} +orml-tokens = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', branch = "polkadot-v0.9.27"} primitives = {path = "../../primitives"} -sp-core = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-io = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +sp-core = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-io = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} [features] default = ["std"] diff --git a/pallets/prepaid/src/lib.rs b/pallets/prepaid/src/lib.rs index 97ee720..5123cdd 100644 --- a/pallets/prepaid/src/lib.rs +++ b/pallets/prepaid/src/lib.rs @@ -122,7 +122,8 @@ where return Err(From::from(Error::::MaxPrepaidExceeded)) } - let pallet_account: AccountIdOf = T::PalletId::get().into_account(); + let pallet_account: AccountIdOf = + T::PalletId::get().try_into_account().expect("Invalid PalletId"); >>::transfer( T::NativeCurrencyId::get(), @@ -160,7 +161,8 @@ where receiver: AccountIdOf, amount: BalanceOf, ) -> DispatchResult { - let pallet_account: AccountIdOf = T::PalletId::get().into_account(); + let pallet_account: AccountIdOf = + T::PalletId::get().try_into_account().expect("Invalid PalletId"); >>::unreserve( T::NativeCurrencyId::get(), @@ -168,7 +170,8 @@ where amount, ); - let pallet_account: AccountIdOf = T::PalletId::get().into_account(); + let pallet_account: AccountIdOf = + T::PalletId::get().try_into_account().expect("Invalid PalletId"); >>::transfer( T::NativeCurrencyId::get(), diff --git a/pallets/prepaid/src/mock.rs b/pallets/prepaid/src/mock.rs index d2c1aef..804497c 100644 --- a/pallets/prepaid/src/mock.rs +++ b/pallets/prepaid/src/mock.rs @@ -115,6 +115,10 @@ impl orml_tokens::Config for Runtime { type MaxReserves = ConstU32<2>; type ReserveIdentifier = ReserveIdentifier; + + type OnNewTokenAccount = (); + + type OnKilledTokenAccount = (); } pub const NATIVE_CURRENCY_ID: CurrencyId = CurrencyId::NativeToken(TokenId::Laguna); diff --git a/pallets/prepaid/src/tests.rs b/pallets/prepaid/src/tests.rs index 2e1b1de..f9f44d1 100644 --- a/pallets/prepaid/src/tests.rs +++ b/pallets/prepaid/src/tests.rs @@ -13,8 +13,9 @@ fn test_prepaid() { .execute_with(|| { assert_ok!(PrepaidFee::prepaid_native(Origin::signed(ALICE), 10000)); - let pallet_account: AccountId = - ::PalletId::get().into_account(); + let pallet_account: AccountId = ::PalletId::get() + .try_into_account() + .expect("Invalid PalletId"); assert_eq!( Tokens::reserved_balance(NATIVE_CURRENCY_ID, &pallet_account), diff --git a/pallets/system-contract-deployer/Cargo.toml b/pallets/system-contract-deployer/Cargo.toml index b90d165..9abc1a0 100644 --- a/pallets/system-contract-deployer/Cargo.toml +++ b/pallets/system-contract-deployer/Cargo.toml @@ -8,21 +8,21 @@ codec = {default-features = false, features = ['derive'], package = 'parity-scal hex = {version = "0.4", default-features = false} scale-info = {default-features = false, features = ['derive'], version = '2.0.1'} -frame-support = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -frame-system = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +frame-support = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +frame-system = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} -pallet-contracts = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-contracts-primitives = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-core = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +pallet-contracts = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-contracts-primitives = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-core = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} [dev-dependencies] -pallet-balances = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-randomness-collective-flip = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-sudo = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-timestamp = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-transaction-payment = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +pallet-balances = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-randomness-collective-flip = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-sudo = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-timestamp = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-transaction-payment = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} primitives = {path = "../../primitives", default-features = false} -sp-io = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +sp-io = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} [features] default = ["std"] diff --git a/pallets/system-contract-deployer/src/fixed_address.rs b/pallets/system-contract-deployer/src/fixed_address.rs index 9012c9c..4e8cfff 100644 --- a/pallets/system-contract-deployer/src/fixed_address.rs +++ b/pallets/system-contract-deployer/src/fixed_address.rs @@ -20,7 +20,9 @@ where salt: &[u8], ) -> T::AccountId { // Retrieving the pallet_system_contract_deployer AccountId - let key = ::PalletId::get().into_account(); + let key = ::PalletId::get() + .try_into_account() + .expect("Invalid PalletId"); if deploying_address == &key { // Decoding the salt to the destined deployment contract address diff --git a/pallets/system-contract-deployer/src/lib.rs b/pallets/system-contract-deployer/src/lib.rs index 06c15e5..1b33ee9 100644 --- a/pallets/system-contract-deployer/src/lib.rs +++ b/pallets/system-contract-deployer/src/lib.rs @@ -88,7 +88,8 @@ pub mod pallet { destined_address.unwrap_or_else(|| Self::get_next_available_bytes()); let output = pallet_contracts::Pallet::::instantiate_with_code( - RawOrigin::Signed(T::PalletId::get().into_account()).into(), + RawOrigin::Signed(T::PalletId::get().try_into_account().expect("Invalid PalletId")) + .into(), value, gas_limit, storage_deposit_limit, @@ -131,7 +132,8 @@ pub mod pallet { destined_address.unwrap_or_else(|| Self::get_next_available_bytes()); let output = pallet_contracts::Pallet::::instantiate( - RawOrigin::Signed(T::PalletId::get().into_account()).into(), + RawOrigin::Signed(T::PalletId::get().try_into_account().expect("Invalid PalletId")) + .into(), value, gas_limit, storage_deposit_limit, @@ -163,7 +165,8 @@ pub mod pallet { ensure_root(origin)?; pallet_contracts::Pallet::::upload_code( - RawOrigin::Signed(T::PalletId::get().into_account()).into(), + RawOrigin::Signed(T::PalletId::get().try_into_account().expect("Invalid PalletId")) + .into(), code, storage_deposit_limit, ) @@ -181,7 +184,8 @@ pub mod pallet { ensure_root(origin)?; pallet_contracts::Pallet::::remove_code( - RawOrigin::Signed(T::PalletId::get().into_account()).into(), + RawOrigin::Signed(T::PalletId::get().try_into_account().expect("Invalid PalletId")) + .into(), code_hash, ) } @@ -251,7 +255,7 @@ pub mod pallet { for i in 0..sz { pallet_contracts::Pallet::::bare_upload_code( - T::PalletId::get().into_account(), + T::PalletId::get().try_into_account().expect("Invalid PalletId"), self.code[i].clone(), None, ) diff --git a/pallets/system-contract-deployer/src/mock.rs b/pallets/system-contract-deployer/src/mock.rs index 346833e..0c3612b 100644 --- a/pallets/system-contract-deployer/src/mock.rs +++ b/pallets/system-contract-deployer/src/mock.rs @@ -97,6 +97,7 @@ parameter_types! { } impl pallet_transaction_payment::Config for Test { + type Event = Event; type OnChargeTransaction = CurrencyAdapter; type OperationalFeeMultiplier = OperationalFeeMultiplier; type WeightToFee = IdentityFee; @@ -126,11 +127,7 @@ parameter_types! { ::WeightInfo::on_initialize_per_queue_item(1) - ::WeightInfo::on_initialize_per_queue_item(0) )) / 5) as u32; - pub Schedule: pallet_contracts::Schedule = { - let mut schedule = pallet_contracts::Schedule::::default(); - schedule.limits.code_len = 256 * 1024; - schedule - }; + pub Schedule: pallet_contracts::Schedule = Default::default(); } impl pallet_contracts::Config for Test { @@ -151,6 +148,10 @@ impl pallet_contracts::Config for Test { type DepositPerItem = DepositPerItem; type AddressGenerator = CustomAddressGenerator; type ContractAccessWeight = DefaultContractAccessWeight<()>; + + type MaxCodeLen = ConstU32<{ 256 * 1024 }>; + type RelaxedMaxCodeLen = ConstU32<{ 512 * 1024 }>; + type MaxStorageKeyLen = ConstU32<128>; } parameter_types! { diff --git a/pallets/system-contract-deployer/src/tests.rs b/pallets/system-contract-deployer/src/tests.rs index 8562fda..2f400fe 100644 --- a/pallets/system-contract-deployer/src/tests.rs +++ b/pallets/system-contract-deployer/src/tests.rs @@ -9,7 +9,9 @@ const MAX_GAS: u64 = 200_000_000_000; #[test] fn test_fixed_address() { - let deploying_key = ::PalletId::get().into_account(); + let deploying_key = ::PalletId::get() + .try_into_account() + .expect("Invalid PalletId"); ExtBuilder::default() .balances(vec![(ALICE, UNIT), (deploying_key, UNIT)]) .sudo(ALICE) @@ -56,7 +58,9 @@ fn test_fixed_address() { #[test] fn test_sequential_address_generation() { - let deploying_key = ::PalletId::get().into_account(); + let deploying_key = ::PalletId::get() + .try_into_account() + .expect("Invalid PalletId"); ExtBuilder::default() .balances(vec![(ALICE, UNIT), (deploying_key, UNIT)]) .sudo(ALICE) diff --git a/pallets/traits/Cargo.toml b/pallets/traits/Cargo.toml index 30c68c7..f247219 100644 --- a/pallets/traits/Cargo.toml +++ b/pallets/traits/Cargo.toml @@ -11,11 +11,11 @@ log = "0.4.14" primitives = {path = "../../primitives", default-features = false} scale-info = {default-features = false, features = ['derive'], version = '2.0.1'} -frame-support = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -frame-system = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-core = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-runtime = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-std = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +frame-support = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +frame-system = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-core = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-runtime = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-std = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} [features] default = ["std"] diff --git a/primitives/Cargo.toml b/primitives/Cargo.toml index 45279a4..7266ffd 100644 --- a/primitives/Cargo.toml +++ b/primitives/Cargo.toml @@ -9,9 +9,9 @@ version = "0.1.0" codec = {default-features = false, features = ['derive'], package = 'parity-scale-codec', version = '3.0.0'} scale-info = {default-features = false, features = ['derive'], version = '2.0.1'} serde = {version = "1.0.130", optional = true} -sp-core = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-runtime = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-std = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +sp-core = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-runtime = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-std = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} [features] default = ["std"] diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index eacb667..7add59b 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -10,61 +10,61 @@ version = "0.1.0" primitives = {path = "../primitives", default-features = false} # runtime's basic pallet impl -pallet-aura = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-authorship = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-grandpa = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-scheduler = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-sudo = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-timestamp = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +pallet-aura = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-authorship = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-grandpa = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-scheduler = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-sudo = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-timestamp = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} # smart contracts -pallet-contracts = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-contracts-primitives = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-contracts-rpc-runtime-api = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-randomness-collective-flip = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +pallet-contracts = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-contracts-primitives = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-contracts-rpc-runtime-api = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-randomness-collective-flip = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} # monetary system -orml-tokens = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', version = "0.4.1-dev", default-features = false, branch = "polkadot-v0.9.22"} +orml-tokens = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', version = "0.4.1-dev", default-features = false, branch = "polkadot-v0.9.27"} pallet-contract-asset-registry = {path = "../pallets/contract-asset-registry", default-features = false} pallet-currencies = {path = "../pallets/currencies", default-features = false} pallet-system-contract-deployer = {path = "../pallets/system-contract-deployer", default-features = false} # government -pallet-treasury = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +pallet-treasury = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} # fee and validator pallet-fee-enablement = {path = "../pallets/fee-enablement", default-features = false} pallet-fee-measurement = {path = "../pallets/fee-measurement", default-features = false} pallet-fluent-fee = {path = "../pallets/fluent-fee", default-features = false} pallet-prepaid = {path = "../pallets/prepaid", default-features = false} -pallet-transaction-payment = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-transaction-payment-rpc-runtime-api = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +pallet-transaction-payment = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-transaction-payment-rpc-runtime-api = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} # share traits from both orml and our repo -orml-traits = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', version = "0.4.1-dev", default-features = false, branch = "polkadot-v0.9.22"} +orml-traits = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', version = "0.4.1-dev", default-features = false, branch = "polkadot-v0.9.27"} traits = {version = "0.1.0", path = "../pallets/traits", default-features = false} # interface for pallet build with frame -frame-benchmarking = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22", optional = true} -frame-executive = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -frame-support = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -frame-system = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -frame-system-benchmarking = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22", optional = true} -frame-system-rpc-runtime-api = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +frame-benchmarking = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27", optional = true} +frame-executive = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +frame-support = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +frame-system = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +frame-system-benchmarking = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27", optional = true} +frame-system-rpc-runtime-api = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} # sp stands for substrate-primitives, used across node and runtime -sp-api = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-block-builder = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-consensus-aura = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-core = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-inherents = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-offchain = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-runtime = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-session = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-std = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +sp-api = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-block-builder = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-consensus-aura = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-core = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-inherents = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-offchain = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-runtime = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-session = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-std = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} -sp-transaction-pool = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-version = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +sp-transaction-pool = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-version = {default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} # parity SCALE codec codec = {default-features = false, features = ['derive'], package = 'parity-scale-codec', version = '3.0.0'} @@ -73,11 +73,11 @@ pallet-currencies-runtime-api = {version = "0.1.0", path = "../pallets/currencie scale-info = {default-features = false, features = ['derive'], version = '2.0.1'} # workaround for https://github.com/paritytech/substrate/issues/11706 -syn = {version = "=1.0.96"} +syn = {version = "1.0.99"} # build dependency for the wasm runtime [build-dependencies.substrate-wasm-builder] -branch = "polkadot-v0.9.22" +branch = "polkadot-v0.9.27" git = 'https://github.com/paritytech/substrate.git' version = '5.0.0-dev' diff --git a/runtime/integration-tests/Cargo.toml b/runtime/integration-tests/Cargo.toml index 1828ef5..a28f60a 100644 --- a/runtime/integration-tests/Cargo.toml +++ b/runtime/integration-tests/Cargo.toml @@ -11,54 +11,54 @@ primitives = {path = "../../primitives", default-features = false} traits = {path = "../../pallets/traits", default-features = false} # runtime's basic pallet impl -pallet-aura = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-balances = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +pallet-aura = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-balances = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} pallet-currencies = {path = "../../pallets/currencies", default-features = false} pallet-fee-enablement = {path = "../../pallets/fee-enablement", default-features = false} pallet-fluent-fee = {path = "../../pallets/fluent-fee", default-features = false} -pallet-grandpa = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-scheduler = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-sudo = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-timestamp = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-transaction-payment = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-transaction-payment-rpc-runtime-api = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +pallet-grandpa = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-scheduler = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-sudo = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-timestamp = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-transaction-payment = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-transaction-payment-rpc-runtime-api = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} # orml -orml-tokens = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', version = "0.4.1-dev", branch = "polkadot-v0.9.22"} -orml-traits = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', version = "0.4.1-dev", branch = "polkadot-v0.9.22"} +orml-tokens = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', version = "0.4.1-dev", branch = "polkadot-v0.9.27"} +orml-traits = {git = 'https://github.com/open-web3-stack/open-runtime-module-library.git', version = "0.4.1-dev", branch = "polkadot-v0.9.27"} # contract -pallet-contracts = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-contracts-primitives = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -pallet-contracts-rpc-runtime-api = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +pallet-contracts = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-contracts-primitives = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +pallet-contracts-rpc-runtime-api = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} pallet-system-contract-deployer = {path = "../../pallets/system-contract-deployer", default-features = false} num_enum = {version = '0.5.3', default-features = false} # interface for pallet build with frame -frame-benchmarking = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22", optional = true} -frame-executive = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -frame-support = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -frame-system = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -frame-system-benchmarking = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22", optional = true} -frame-system-rpc-runtime-api = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +frame-benchmarking = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27", optional = true} +frame-executive = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +frame-support = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +frame-system = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +frame-system-benchmarking = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27", optional = true} +frame-system-rpc-runtime-api = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} # sp stands for substrate-primitives, used across node and runtime -sp-api = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-io = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +sp-api = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-io = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} -sp-block-builder = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-consensus-aura = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-core = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-inherents = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-offchain = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-runtime = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-session = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-std = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +sp-block-builder = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-consensus-aura = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-core = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-inherents = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-offchain = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-runtime = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-session = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-std = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} -sp-transaction-pool = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} -sp-version = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.22"} +sp-transaction-pool = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} +sp-version = {git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.27"} # parity SCALE codec codec = {features = ['derive'], package = 'parity-scale-codec', version = '3.0.0'} @@ -71,7 +71,7 @@ rand = "0.8.5" # build dependency for the wasm runtime [build-dependencies.substrate-wasm-builder] -branch = "polkadot-v0.9.22" +branch = "polkadot-v0.9.27" git = 'https://github.com/paritytech/substrate.git' version = '5.0.0-dev' diff --git a/runtime/integration-tests/contracts-data/ink/dummy_extension_consumer/dist/dummy_extension_consumer.contract b/runtime/integration-tests/contracts-data/ink/dummy_extension_consumer/dist/dummy_extension_consumer.contract index dbd57ff..27ad225 100644 --- a/runtime/integration-tests/contracts-data/ink/dummy_extension_consumer/dist/dummy_extension_consumer.contract +++ b/runtime/integration-tests/contracts-data/ink/dummy_extension_consumer/dist/dummy_extension_consumer.contract @@ -1 +1 @@ -{"source":{"hash":"0xdc90d179c67a3782b8c8e47292892bd012449a18a5a497c934c51cc0e6f81c4e","language":"ink! 3.0.1","compiler":"rustc 1.60.0-nightly","wasm":"0x0061736d01000000014a0c60037f7f7f017f60027f7f017f60027f7f0060037f7f7f0060017f0060000060017f017e60047f7f7f7f0060057f7f7f7f7f0060057f7f7f7f7f017f6000017f60067f7f7f7f7f7f0002930106057365616c30127365616c5f64656275675f6d6573736167650001057365616c30197365616c5f63616c6c5f636861696e5f657874656e73696f6e0009057365616c300a7365616c5f696e7075740002057365616c300b7365616c5f72657475726e0003057365616c30167365616c5f76616c75655f7472616e73666572726564000203656e76066d656d6f72790201021003302f00040a0202050406040102050202030800020502070302030100000101010601000700020101030800010101010b07040501700114140608017f01418080040b071102066465706c6f79000a0463616c6c00100919010041010b130e292a3124222e2f2406300630061f202106230ac5402f2b01017f037f2002200346047f200005200020036a200120036a2d00003a0000200341016a21030c010b0b0b0300010b6c02027f027e230041206b22002400200041086a220142003703002000420037030020004110360214200020003602102000411036021c20002000411c6a1004200041106a200028021c10082001290300210220002903002103200041206a2400410541042002200384501b0b3701017f230041106b22022400200241086a410020012000280200200028020441c49504103220002002290308370200200241106a24000bbe0102057f017e230041206b22032400200341186a41808001360200200341f2990436021420034100360210200341086a230041206b22022400200341106a220429020421072002410036021820022007370310024020012d00004101470440200241106a220641001016200141016a200610120c010b200241106a2201410110162001410010160b20042002290310370204200241086a2004200228021810132002290308370300200241206a240020002003280208200328020c1003000ba90202027f027e230041306b2200240002402000027f0240100741ff0171410546044020004180800136022c200041f29904360228200041286a100b20002000290328370310200041106a100c220242807e83420020024201832203501b2202420888a7210102402003500440200141ff017141ed01472002428080fc0783428080ac025272200242808080f80f8342808080e8095220024280808080f01f834280808080b0035272720d010c030b200141ff01714105460d020b41030c020b200041043a0010200041106a100d000b100741ff01714105460d0141040b3a000f200041246a410136020020004201370214200041dc81043602102000410136022c2000200041286a36022020002000410f6a360228200041106a41a48104100f000b200041306a24000b3301017f230041106b220124002001200028020436020c20002802002001410c6a10022000200128020c1008200141106a24000b4601027f230041106b220124002001410036020c027f20002001410c6a41041015450440200128020c0c010b4101210241000b2100200141106a24002002ad2000ad420886840b4801017f230041206b22012400200141146a410136020020014201370204200141b496043602002001410136021c200120003602182001200141186a360210200141a48104100f000bc00101037f230041306b22022400419b97042103411921040240024002400240024020002d000041016b0e0400010203040b41ff96042103411c21040c030b41e996042103411621040c020b41d596042103411421040c010b41bc960421030b2002411c6a41013602002002200436022c20022003360228200241023602242002420137020c200241b49604360208200141186a2802002001411c6a2802002002200241286a3602202002200241206a360218200241086a102d200241306a24000b870401087f230041206b22022400200241013a00182002200136021420022000360210200241c8890436020c200241b49604360208230041406a220324002003200241086a36020c200341346a410136020020034202370224200341f092043602202003410436023c2003200341386a36023020032003410c6a360238200341106a21064100210141002100230041206b22042400200341206a22052802002107024002400240024002402005280204220941037422080440200741046a21020340200020022802006a22012000490d02200241086a210220012100200841086b22080d000b0b02400240200541146a280200450440200121020c010b02402009450d0020072802040d004100210020014110490d020b41002100200120016a22022001490d010b200222004100480d020b20042000101820042802002201450d02200641003602082006200036020420062001360200200441186a200541106a290200370300200441106a200541086a290200370300200420052902003703082006200441086a101d0d03200441206a24000c040b41c08504411c41cc9204101a000b1017000b000b41dc85044133200441086a41b88804418887041014000b2003280210210020032802182101024041f099042d000045044041f199042d00004101710d010b200020011000410947044041f0990441013a00000b41f1990441013a00000b000bb40601067f230041c0016b22002400100741ff01712201410546044020004180800136027c200041f29904360278200041f8006a100b200020002903783703582000027f027f4101200041d8006a100c4281feffffff1f834280ea88d5911d520d001a20004198016a200041d8006a1011410120002d0098014101460d001a200041386a200041a2016a290100370300200041406b200041aa016a290100370300200041c7006a200041b1016a2900003700002000200029019a0137033020002d009901210241000b450440200041276a2201200041c7006a290000370000200041206a2203200041406b290300370300200041186a2204200041386a290300370300200020002903303703104104100741ff01714105470d011a200041e1006a2004290300370000200041e9006a2003290300370000200041f0006a2001290000370000200020023a0058200020002903103700592000410036027820004280800137029c01200041f2990436029801200041d8006a20004198016a22051012200020002903980137027c200041086a200041f8006a20002802a0011013200028020c210120002802082102200020004180016a280200220336028c012000200028027c220436028801200020033602980141e80720022001200420051001210120004188016a2000280298011008024002400240024020010e020102000b200041ac016a4100360200200041b496043602a8012000420137029c01200041a080043602980120004198016a41948104100f000b20002000290388013703900120004198016a20004190016a101120002d0098014101470d014190820441c900200041306a41cc830441bc83041014000b200041013a00304101200041306a1009000b200041c9006a200041b1016a290000370000200041c1006a200041a9016a290000370000200041396a200041a1016a2900003700002000200029009901370031200041003a00304100200041306a1009000b41030b3a0058200041ac016a41013602002000420137029c0120004188820436029801200041013602342000200041306a3602a8012000200041d8006a36023020004198016a41a48104100f000b200020013a00980120004198016a100d000b8a0101047f230041206b22022400200241186a22034200370300200241106a22044200370300200241086a22054200370300200242003703002000027f200120024120101545044020002002290300370001200041196a2003290300370000200041116a2004290300370000200041096a200529030037000041000c010b41010b3a0000200241206a24000b6701037f230041106b220224002001280208220341206a2204200349044041809404411c41e89304101a000b200241086a2003200420012802002001280204419c940410322002280208200228020c2000412041ac9404102c20012004360208200241106a24000b5e01027f200141086a220328020021042003410036020020012802042103200141b49604360204200220044b044041919604412341cc9404101a000b2001200420026b3602082001200220036a36020420002002360204200020033602000b7c01017f230041406a220524002005200136020c2005200036020820052003360214200520023602102005412c6a41023602002005413c6a41033602002005420237021c200541c08a04360218200541023602342005200541306a3602282005200541106a3602382005200541086a360230200541186a2004100f000b6001047f230041106b22032400200028020422042002492205450440200341086a41002002200028020022061033200120022003280208200328020c41989804102c20032002200420061033200020032903003702000b200341106a240020050b970101027f20002802082202200028020422034904402000200241016a360208200028020020026a20013a00000f0b230041306b2200240020002003360204200020023602002000411c6a41023602002000412c6a41053602002000420237020c200041ac8a04360208200041053602242000200041206a360218200020003602282000200041046a360220200041086a41bc9404100f000b3c01017f230041206b220024002000411c6a4100360200200041b496043602182000420137020c200041a88504360208200041086a41b08504100f000ba90101027f027f41012001450d001a410041e89904280200220220016a22032002490d001a024041ec99042802002003490440200141ffff036a22032001490d01200341107640002202417f46200241ffff0371200247720d012002411074220220034180807c716a22032002490d0141ec990420033602004100200120026a22032002490d021a0b41e89904200336020020020c010b41000b210320002001360204200020033602000bce0301077f230041106b220524000240024002402002200220036a22034d04402001280204220220026a22042002490d012001280200410020021b21092002210841002102230041106b220624002005027f2004200320032004491b22034108200341084b1b220341004e0440027f0240200904402008450440200641086a20031018200628020c210220062802080c030b410041e89904280200220420036a22072004490d021a41ec99042802002007490440200341ffff036a220741107640002202417f46200241ffff0371200247720d022002411074220420074180807c716a22022004490d0241ec990420023602004100200320046a22072004490d031a0b41e8990420073602002004450d012003210220042009200810050c020b2006200310182006280204210220062802000c010b41000b220804402005200836020441000c020b20052003360204410121020b41010b360200200541086a2002360200200641106a2400200528020041014704402005280204210220012003360204200120023602000c040b200020052902043702040c020b20002003360204200041086a41003602000c010b41e08404412141848504101a000b4101210a0b2000200a360200200541106a24000b4601017f230041206b22032400200341146a4100360200200341b49604360210200342013702042003200136021c200320003602182003200341186a36020020032002100f000b17000240200041014604402001450d01000b0f0b1017000b7701027f230041106b2204240020022000280204200028020822036b4b0440200420002003200210192004280200200441086a280200101b200028020821030b200028020020036a2001200210051a2003200220036a22014b044041c08504411c41a88804101a000b20002001360208200441106a24000b5501017f230041206b2202240020022000360204200241186a200141106a290200370300200241106a200141086a29020037030020022001290200370308200241046a41c88804200241086a101e200241206a24000bfc0301057f230041406a22032400200341346a2001360200200341033a00382003428080808080043703182003200036023041002101200341003602282003410036022002400240024020022802082200450440200241146a28020041ffffffff0171220641016a210520022802102104410021000340200541016b2205450d02200228020020006a220141046a28020022070440200328023020012802002007200328023428020c1100000d040b200020046a2101200041086a21002001280200200341186a200141046a280200110100450d000b0c020b2002410c6a28020022064105742105200641ffffff3f71210603402005450d01200228020020016a220441046a28020022070440200328023020042802002007200328023428020c1100000d030b200320002d001c3a003820032000290204422089370318200341106a20022802102204200041146a102b20032003290310370320200341086a20042000410c6a102b20032003290308370328200141086a2101200541206b210520002802002107200041206a2100200420074103746a2204280200200341186a2004280204110100450d000b0c010b4100210020062002280204492201450d012003280230200228020020064103746a410020011b22012802002001280204200328023428020c110000450d010b410121000b200341406b240020000b0f00200028020020012002101c41000bdc0201037f230041106b22022400024002400240200028020022002002410c6a027f02400240200141ff004d0440200028020822032000280204460d010c040b2002410036020c2001418010490d0120014180800449044020022001413f71418001723a000e20022001410c7641e001723a000c20022001410676413f71418001723a000d41030c030b20022001413f71418001723a000f2002200141127641f001723a000c20022001410676413f71418001723a000e20022001410c76413f71418001723a000d41040c020b230041106b22042400200420002003410110192004280200200441086a280200101b200441106a2400200028020821030c020b20022001413f71418001723a000d2002200141067641c001723a000c41020b101c0c010b200028020020036a20013a0000200341016a22012003490d01200020013602080b200241106a240041000f0b41c08504411c41988804101a000b4a01017f230041206b220224002000280200200241186a200141106a290200370300200241106a200141086a29020037030020022001290200370308200241086a101d200241206a24000b0e0020002802001a03400c000b000b0c0042a1f29bc5a1d0e287600beb0602097f027e027f2000350200210b230041406a220524004127210202400240200b4290ce00540440200b210c0c010b02400340200b4290ce0080210c2002200241046b22024c0d01200541196a20026a200b200c4290ce007e7da7220041ffff037141e4006e220341017441cd8b046a2f00003b00002002200241026a22044c0440200541196a20046a2000200341e4006c6b41ffff037141017441cd8b046a2f00003b0000200b42ffc1d72f56200c210b450d030c010b0b41908904411c41dc9204101a000b0c010b200ca7220441e3004a04402002200241026b22024c0d01200541196a20026a200ca72200200041ffff037141e4006e220441e4006c6b41ffff037141017441cd8b046a2f00003b00000b02402004410a4e04402002200241026b22024c0d02200541196a20026a200441017441cd8b046a2f00003b00000c010b2002200241016b22024c0d01200541196a20026a200441306a3a00000b0240412720026b220041274d0440418080c40021042000210320012802002207410171450d012000200041016a22034d0440412b21040c020b41908904411c41948e04101a000b0c010b200541196a20026a21082007411d74411f7541b496047121090240200128020841014704404101210220012004200910250d012001280218200820002001411c6a28020028020c11000021020c010b0240024002402001410c6a280200220620034b044020074108710d01200620036b220320064b0d0241012102200541086a200120034101102620052802082203418080c400460d04200528020c210620012004200910250d042001280218200820002001411c6a28020028020c1100000d04200320062001102721020c040b4101210220012004200910250d032001280218200820002001411c6a28020028020c11000021020c030b200128020421072001413036020420012d0020210a41012102200141013a002020012004200910250d02200620036b220320064b0d01200541106a200120034101102620052802102203418080c400460d02200528021421042001280218200820002001411c6a28020028020c1100000d0220032004200110270d022001200a3a002020012007360204410021020c020b41e08804412141b48e04101a000b41e08804412141a48e04101a000b200541406b240020020c010b41e08804412141dc9204101a000b0b4b000240027f2001418080c4004704404101200028021820012000411c6a2802002802101101000d011a0b20020d0141000b0f0b2000280218200241002000411c6a28020028020c1100000bb20101027f20022105024002400240200320012d0020220320034103461b41ff017141016b0e03010001020b2002200241016a22034d044020034101762105200241017621040c020b41908904411c41c48e04101a000b41002105200221040b200441016a21022001411c6a2802002103200128020421042001280218210102400340200241016b2202450d01200120042003280210110100450d000b418080c40021040b20002005360204200020043602000b4701027f2002411c6a28020021032002280218210441002102027f0340200120012002460d011a200241016a2102200420002003280210110100450d000b200241016b0b2001490bb10201077f024002402000027f418080c40020012802042202200141086a2802002208460d001a2001200241016a2203360204024020022d0000220441187441187541004e0d002001200241026a220336020420022d0001413f7121052004411f712106200441df014d0440200641067420057221040c010b2001200241036a220336020420022d0002413f712005410674722107200441f00149044020072006410c747221040c010b2001200241046a2203360204418080c4002006411274418080f0007120022d0003413f71200741067472722204418080c400460d011a0b200320026b2203200820026b4b0d012001280200220520036a22032005490d022001200336020020040b360204200020053602000f0b41e08804412141a49104101a000b41908904411c41b49104101a000b820401067f230041306b2202240020012802102103200028020421052000280200210402400240024020012802082206410147044020030d012001280218200420052001411c6a28020028020c11000021000c030b2003450d010b200141146a28020020022004360224200241286a200420056a3602002002410036022041016a210002400340200041016b22000440200241186a200241206a1028200228021c418080c400470d010c020b0b200241106a200241206a10282002280214418080c400460d000240024020022802102203450d00200320054f04404100210020032005460d010c020b41002100200320046a2c00004140480d010b200421000b2003200520001b21052000200420001b21040b20060d002001280218200420052001411c6a28020028020c11000021000c010b2001410c6a2802002206027f41002103410020042200200020056a2207460d001a024003402003200320002c000041bf7f4a6a22034b0d01200041016a22002007470d000b20030c010b41908904411c41cc9204101a000b22004d04402001280218200420052001411c6a28020028020c11000021000c010b200241086a2001200620006b410010264101210020022802082203418080c400460d00200228020c21062001280218200420052001411c6a28020028020c1100000d00200320062001102721000b200241306a240020000b140020002802002001200028020428020c1101000b5501027f0240027f02400240200228020041016b0e020103000b200241046a0c010b200120022802044103746a22012802044106470d0120012802000b2802002104410121030b20002004360204200020033602000b7b002001200346044020002002200110051a0f0b230041306b2200240020002003360204200020013602002000411c6a41023602002000412c6a41053602002000420337020c2000418c9004360208200041053602242000200041206a360218200020003602282000200041046a360220200041086a2004100f000b4901017f230041206b22032400200341186a200241106a290200370300200341106a200241086a2902003703002003200229020037030820002001200341086a101e200341206a24000b5b01027f230041206b220224002001411c6a28020021032001280218200241186a2000280200220041106a290200370300200241106a200041086a290200370300200220002902003703082003200241086a101e200241206a24000b0b002000280200200110290b1b00200128021841d1980441052001411c6a28020028020c1100000bfe0201037f230041406a2202240020002802002103410121000240200141186a280200220441d88904410c2001411c6a280200220128020c1100000d0002402003280208220004402002200036020c410121002002413c6a41013602002002420237022c200241e88904360228200241073602142002200241106a36023820022002410c6a36021020042001200241286a102d450d010c020b20032802002200200328020428020c11060042f4f99ee6eea3aaf9fe00520d002002200036020c410121002002413c6a41013602002002420237022c200241e88904360228200241083602142002200241106a36023820022002410c6a36021020042001200241286a102d0d010b200328020c2100200241246a41033602002002413c6a4109360200200241346a410936020020024203370214200241b0890436021020022000410c6a3602382002200041086a3602302002410236022c200220003602282002200241286a36022020042001200241106a102d21000b200241406b240020000be9010002400240200120024d0440200220044d04402002200220016b2204490d02200020043602042000200120036a3602000f0b230041306b2200240020002004360204200020023602002000411c6a41023602002000412c6a41053602002000420237020c200041888f043602080c020b230041306b2200240020002002360204200020013602002000411c6a41023602002000412c6a41053602002000420237020c200041bc8f043602080c010b41f09504412141d49504101a000b200041053602242000200041206a3602182000200041046a36022820002000360220200041086a2005100f000b3001017f2002200220016b22044f0440200020043602042000200120036a3602000f0b41b09804412141d89904101a000b0bda190500418080040b8109656e636f756e746572656420756e6b6e6f776e2073746174757320636f646500000001001f0000002f686f6d652f7562756e74752f6769742f687964726f2d636861696e2f72756e74696d652f696e746567726174696f6e2d74657374732f636f6e7472616374732d646174612f696e6b2f64756d6d795f657874656e73696f6e5f636f6e73756d65722f6c69622e727300000028000100690000002d00000012000000280001006900000039000000050000006469737061746368696e6720696e6b2120636f6e7374727563746f72206661696c65643a20000000b4000100250000006469737061746368696e6720696e6b21206d657373616765206661696c65643a20000000e400010021000000656e636f756e7465726564206572726f72207768696c65206465636f64696e6720636861696e20657874656e73696f6e206d6574686f642063616c6c2072657475726e2076616c75652f686f6d652f7562756e74752f2e636172676f2f72656769737472792f7372632f6769746875622e636f6d2d316563633632393964623965633832332f696e6b5f656e762d332e302e312f7372632f636861696e5f657874656e73696f6e2e727300005901010061000000810100001a0000000a00000000000000010000000b0000002f686f6d652f7562756e74752f2e7275737475702f746f6f6c636861696e732f6e696768746c792d323032322d30322d30322d7838365f36342d756e6b6e6f776e2d6c696e75782d676e752f6c69622f727573746c69622f7372632f727573742f6c6962726172792f616c6c6f632f7372632f7261775f7665632e727300000000000000617474656d707420746f206d756c7469706c792077697468206f766572666c6f77000000dc0101007d0000008c0100001c0000006361706163697479206f766572666c6f770000009402010011000000dc0101007d0000000602000005000000617474656d707420746f206164642077697468206f766572666c6f776120666f726d617474696e6720747261697420696d706c656d656e746174696f6e2072657475726e656420616e206572726f722f686f6d652f7562756e74752f2e7275737475702f746f6f6c636861696e732f6e696768746c792d323032322d30322d30322d7838365f36342d756e6b6e6f776e2d6c696e75782d676e752f6c69622f727573746c69622f7372632f727573742f6c6962726172792f616c6c6f632f7372632f666d742e72730f03010079000000550200001c0000002f686f6d652f7562756e74752f2e7275737475702f746f6f6c636861696e732f6e696768746c792d323032322d30322d30322d7838365f36342d756e6b6e6f776e2d6c696e75782d676e752f6c69622f727573746c69622f7372632f727573742f6c6962726172792f616c6c6f632f7372632f7665632f6d6f642e7273000000980301007d000000c60600000d000000980301007d00000007070000090000000c00000000000000010000000d0000000e00000004000000040000000f0000001000000011000000617474656d707420746f2073756274726163742077697468206f766572666c6f7700419089040be50a617474656d707420746f206164642077697468206f766572666c6f773a000000340b010000000000ac04010001000000ac040100010000001200000000000000010000001300000070616e69636b65642061742027272c20e404010001000000e504010003000000696e646578206f7574206f6620626f756e64733a20746865206c656e20697320206275742074686520696e646578206973200000f80401002000000018050100120000003a200000340b0100000000003c05010002000000292f686f6d652f7562756e74752f2e7275737475702f746f6f6c636861696e732f6e696768746c792d323032322d30322d30322d7838365f36342d756e6b6e6f776e2d6c696e75782d676e752f6c69622f727573746c69622f7372632f727573742f6c6962726172792f636f72652f7372632f666d742f6e756d2e727330303031303230333034303530363037303830393130313131323133313431353136313731383139323032313232323332343235323632373238323933303331333233333334333533363337333833393430343134323433343434353436343734383439353035313532353335343535353635373538353936303631363236333634363536363637363836393730373137323733373437353736373737383739383038313832383338343835383638373838383939303931393239333934393539363937393839392f686f6d652f7562756e74752f2e7275737475702f746f6f6c636861696e732f6e696768746c792d323032322d30322d30322d7838365f36342d756e6b6e6f776e2d6c696e75782d676e752f6c69622f727573746c69622f7372632f727573742f6c6962726172792f636f72652f7372632f666d742f6d6f642e7273000000950601007c000000470500000d000000950601007c0000006e05000031000000950601007c0000007705000031000000950601007c000000db05000038000000206f7574206f662072616e676520666f7220736c696365206f66206c656e6774682072616e676520656e6420696e64657820000076070100100000005407010022000000736c69636520696e64657820737461727473206174202062757420656e647320617420009807010016000000ae0701000d000000736f7572636520736c696365206c656e67746820282920646f6573206e6f74206d617463682064657374696e6174696f6e20736c696365206c656e6774682028cc07010015000000e10701002b00000050050100010000002f686f6d652f7562756e74752f2e7275737475702f746f6f6c636861696e732f6e696768746c792d323032322d30322d30322d7838365f36342d756e6b6e6f776e2d6c696e75782d676e752f6c69622f727573746c69622f7372632f727573742f6c6962726172792f636f72652f7372632f7374722f697465722e7273000000240801007d0000009200000026000000240801007d00000092000000110000002f686f6d652f7562756e74752f2e7275737475702f746f6f6c636861696e732f6e696768746c792d323032322d30322d30322d7838365f36342d756e6b6e6f776e2d6c696e75782d676e752f6c69622f727573746c69622f7372632f727573742f6c6962726172792f636f72652f7372632f697465722f7472616974732f616363756d2e72730000c4080100860000008d00000001000000510501007c000000cd010000050000000a000000340b0100000000006c090100010000002f686f6d652f7562756e74752f2e636172676f2f72656769737472792f7372632f6769746875622e636f6d2d316563633632393964623965633832332f696e6b5f656e762d332e302e312f7372632f656e67696e652f6f6e5f636861696e2f6275666665722e72738009010068000000580000001c00418094040be101617474656d707420746f206164642077697468206f766572666c6f7780090100680000005800000009000000800901006800000058000000310000008009010068000000630000000900000080090100680000008b000000210000002f686f6d652f7562756e74752f2e636172676f2f72656769737472792f7372632f6769746875622e636f6d2d316563633632393964623965633832332f696e6b5f656e762d332e302e312f7372632f656e67696e652f6f6e5f636861696e2f6578742e72730000005c0a0100650000006401000014000000560c010080000000ec0000004f0041f095040bb502617474656d707420746f2073756274726163742077697468206f766572666c6f77617373657274696f6e206661696c65643a206d6964203c3d2073656c662e6c656e2829340b0100000000007061696420616e20756e70617961626c65206d657373616765636f756c64206e6f74207265616420696e707574756e61626c6520746f206465636f646520696e707574656e636f756e746572656420756e6b6e6f776e2073656c6563746f72756e61626c6520746f206465636f64652073656c6563746f722f686f6d652f7562756e74752f2e636172676f2f72656769737472792f7372632f6769746875622e636f6d2d316563633632393964623965633832332f7061726974792d7363616c652d636f6465632d332e312e322f7372632f636f6465632e72730000b40b010062000000710000000e0041b098040bb501617474656d707420746f2073756274726163742077697468206f766572666c6f774572726f722f686f6d652f7562756e74752f2e7275737475702f746f6f6c636861696e732f6e696768746c792d323032322d30322d30322d7838365f36342d756e6b6e6f776e2d6c696e75782d676e752f6c69622f727573746c69622f7372632f727573742f6c6962726172792f636f72652f7372632f736c6963652f696e6465782e72730000560c010080000000e50000004c"},"contract":{"name":"dummy_extension_consumer","version":"0.1.0","authors":["[your_name] <[your_email]>"]},"V3":{"spec":{"constructors":[{"args":[],"docs":[],"label":"default","payable":false,"selector":"0xed4b9d1b"}],"docs":[],"events":[],"messages":[{"args":[{"label":"input","type":{"displayName":[],"type":0}}],"docs":[],"label":"call_extension","mutates":false,"payable":false,"returnType":{"displayName":["Result"],"type":2},"selector":"0x35a21ae9"}]},"storage":{"struct":{"fields":[]}},"types":[{"id":0,"type":{"def":{"array":{"len":32,"type":1}}}},{"id":1,"type":{"def":{"primitive":"u8"}}},{"id":2,"type":{"def":{"variant":{"variants":[{"fields":[{"type":0}],"index":0,"name":"Ok"},{"fields":[{"type":3}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":0},{"name":"E","type":3}],"path":["Result"]}},{"id":3,"type":{"def":{"variant":{"variants":[{"index":0,"name":"ExtError"}]}},"path":["dummy_extension_consumer","ExtensionError"]}}]}} \ No newline at end of file +{"source":{"hash":"0xda70ef8aede9a79a5749c6959d62b94b653a821990a8b6112eb96d4eb2b9406d","language":"ink! 3.3.1","compiler":"rustc 1.60.0-nightly","wasm":"0x0061736d01000000012d0860027f7f0060000060057f7f7f7f7f017f60037f7f7f006000017f60017f0060017f017e60057f7f7f7f7f00027805057365616c30197365616c5f63616c6c5f636861696e5f657874656e73696f6e0002057365616c300a7365616c5f696e7075740000057365616c300b7365616c5f72657475726e0003057365616c30167365616c5f76616c75655f7472616e73666572726564000003656e76066d656d6f727902010210030a090400000105060100070608017f01418080040b071102066465706c6f7900070463616c6c000a0ad60c096c02027f027e230041206b22002400200041086a220142003703002000420037030020004110360214200020003602102000411036021c20002000411c6a1003200041106a200028021c10052001290300210220002903002103200041206a2400410541042002200384501b0b3301017f230041106b22022400200241086a4100200120002802002000280204100c20002002290308370200200241106a24000bdc0201067f230041206b22062400200641186a4180800136020020064180800436021420064100360210200641086a2107230041206b22042400200641106a220341086a220228020021052002410036020020032802042102200341808004360204200420053602142004200236021002400240027f20012d000041014704402005450d02200241003a000020044101360218200141016a200441106a100b200428021421052004280210210220042802180c010b2005450d01200241013a000020054101460d01200220012d00013a000141020b21012003200536020820032002360204200341086a220228020021052002410036020020032802042102200341808004360204200120054b0440000b2003200520016b3602082003200120026a360204200441086a220320013602042003200236020020072004290308370300200441206a24000c010b000b20002006280208200628020c1002000bc70102027f027e230041106b220024000240100441ff01714105470d002000418080013602042000418080043602002000100820002000290300370308200041086a1009220242807e83420020024201832203501b2202420888a7210102402003500440200141ff017141ed01472002428080fc0783428080ac025272200242808080f80f8342808080e80952720d0220024280808080f01f834280808080b003510d010c020b200141ff01714105470d010b100441ff01714105470d00200041106a24000f0b000b3301017f230041106b220124002001200028020436020c20002802002001410c6a10012000200128020c1005200141106a24000b4601017f027f2000280204220141044904404100210141010c010b2000200141046b36020420002000280200220041046a3602002000280000210141000bad2001ad420886840bc90401057f230041f0006b2200240002400240100441ff01714105470d0020004180800136026c200041808004360268200041e8006a100820002000290368370348410121020240200041c8006a10094281feffffff1f834280ea88d5911d520d00200028024c4120490d00200041286a2000280248220141096a290000370300200041306a200141116a290000370300200041376a200141186a2900003700002000200129000137032020012d00002101410021020b20020d00200041176a2202200041376a290000370000200041106a2203200041306a290300370300200041086a2204200041286a29030037030020002000290320370300100441ff01714105470d00200041d1006a2004290300370000200041d9006a2003290300370000200041e0006a2002290000370000200020013a004820002000290300370049200042808001370224200041808004360220200041c8006a200041206a100b2000280224220320002802282201490d00200028022021022000200320016b220336026c2000200120026a22043602682000200336022041e400200220012004200041206a10002102200041e8006a20002802201005410021010240024020020e020001020b41012101200028026c41204f0d020b200020013a0021200041013a00204101200041206a1006000b000b2000412a6a2000280268220141096a290000370100200041326a200141116a290000370100200041396a200141186a29000037000020002001290001370122200041003a0020200020012d00003a00214100200041206a1006000b930101037f230041106b2203240002402001280208220241206a220420024f0440200341086a2002200420012802002001280204100c200328020c4120470d01200328020821022001200436020820022000290000370000200241186a200041186a290000370000200241106a200041106a290000370000200241086a200041086a290000370000200341106a24000f0b000b000b31000240200120024b200220044b720d002002200220016b2202490d00200020023602042000200120036a3602000f0b000b"},"contract":{"name":"dummy_extension_consumer","version":"0.1.0","authors":["[your_name] <[your_email]>"]},"V3":{"spec":{"constructors":[{"args":[],"docs":[],"label":"default","payable":false,"selector":"0xed4b9d1b"}],"docs":[],"events":[],"messages":[{"args":[{"label":"input","type":{"displayName":[],"type":0}}],"docs":[],"label":"call_extension","mutates":false,"payable":false,"returnType":{"displayName":["Result"],"type":2},"selector":"0x35a21ae9"}]},"storage":{"struct":{"fields":[]}},"types":[{"id":0,"type":{"def":{"array":{"len":32,"type":1}}}},{"id":1,"type":{"def":{"primitive":"u8"}}},{"id":2,"type":{"def":{"variant":{"variants":[{"fields":[{"type":0}],"index":0,"name":"Ok"},{"fields":[{"type":3}],"index":1,"name":"Err"}]}},"params":[{"name":"T","type":0},{"name":"E","type":3}],"path":["Result"]}},{"id":3,"type":{"def":{"variant":{"variants":[{"index":0,"name":"ExtError"},{"index":1,"name":"InvalidScaleEncoding"}]}},"path":["dummy_extension_consumer","ExtensionError"]}}]}} \ No newline at end of file diff --git a/runtime/integration-tests/contracts-data/ink/dummy_extension_consumer/dist/dummy_extension_consumer.wasm b/runtime/integration-tests/contracts-data/ink/dummy_extension_consumer/dist/dummy_extension_consumer.wasm index a3aae51ddac18e6905f3d4446c93c6e79ff017b5..f317b53f08418f72b7f66da72b2188f1d3a4ef1e 100644 GIT binary patch literal 1843 zcmah}&ue5w5U#53H$UZbC?K$RUv~pO%J$9h_EsLKr*-^$;)K2PLgH! zk{QV&dlml(FE03Bs7DV9f(H*C7D3pf2QhxtZ<4UE;0(O(s_y!#y1uHS{_!Cb5ii$v zWip{%qTOU-Kc4J5EYM)bSb4%{von%MNpd{s5AVEb-icb zQr?)0H}*#lPEUwRRT@>}!O7`(M6T4m9(51Gla@L+iKn5y2Qp}DzV8ug*bM9$u!pa(g%NGa5c zoO{%9*w2=bt;j8fydoJcKw2~@EEbtFxln4$VwNZ`IckcMEq0f3S)&{#5HVp(W#YDNqrHlrl)U6TwG3J#JsS)DnpVS!VRSpGLk z)@0LnDK$&wgVGqVh1q+vcZ%qMWssy*^_EHS=pzvb3&zM=8*cGwWJ2lpe91pZ0sqp? ze7NAxL$Wq+6vs^axIw0&$!dTwf;$d7c+Kj$^rmO$Juuee^W1IShNAZLn6d82N_H1OYEUmjJM^J5*mvitNz8k0sZjC@Q@<=k?9x-wX z9+@_Q>=LEVl%Mr#Up`5H^qg3QzMxqOUzx<=WfJ$Wc}~S;BKJCOJ#bTyEDAqBU+;bK z@5RN1W#G@JKY#Vswh_^mkArSRO4_mA))8^NSfa8~!<_>0-n^DOCND&pV2;it?l_HQ zZP7Q8Q;BeIpgZ8Xb9EQFK_w9&Bg?S1+OisGUumoY6s7et7e5iY!i>yi_!W}7l75FI z7H%2NDy<``SVy#hL4!K$NDEf6qZJ#Z0$;Tj!|PiXQd`Ig5-j8 zL6|Fo{3=u${y;@SYmoyc4kk;y;b@i^)zX!&%43@IW#fQ8bQ$p2feb zbUJ?Zrf<(pT`T3Px2l!)4*08D#I(>}LreUb6k?x1%g9FBOUWPzJRyT6rB>CQR|}&T zGh&y}!Xz6RIWI~c-lK;Ji)uRviJ}TI0j+Vi%y=X8*=}etp~l0cmU}#rR$B1kVMI4} z2@^9u*}3$vB zPXy1ZzLv9A%h+2$?Q>zmT#zSC>;PC0PM+)VV&$2@%S0m#Knwbu0LSPE8(}J==GX4L zXC8aa%X>23Ej!VXJo|K7f~t25C`n87-{nEfSX=u^;vW2cPTktJ&9!&8u)X&7$gQru zcK#~cvG%-oYr8!vQ(h2Jh#eSJf$>rbJQ#nUh!_|Z!GP~kY5ZWH*n$bW8pfJK%*ztJ z#k_VGtimMlRrBDh7Crp^ysM8bO3H$W!kd_LQDsn5khE`4~I6uZy4daI&*-x!t32bU)S{V_fIY{5q>g!s3eLnfQdxIO? z)(8YgW_u)&q(naEzwkI%;X+6>PTuHE674aF6XF@k@)AOt48hoNLG$G=`DxEwk@nSG z|DP7t^%gh#LMqP>%!S7}XFTmg{pKCpxEu}W{|C0Q9St!5A{+F}@rXC2!P0e%FDg_S zRaCoRS1_DH%Q8$gjWrlz63h5h7;?7Yn+Ed;3b=DPiHEhq{k}|60_eg;s@x|SI1qe0 z9yZRD`OX8@H2r-rf3A_S;c3ayY@R7ZoO<)B1l~Mz{t>Lwc){a(?ct>i4zl(wg|{+# z!bTd=n3nhm$A%A6dEhk@g9PbBUy*7~qr=aP7_Xa2!psTdH`24 ziGD3%_@qfLW|DB@fK+tMY^PSNkE9i}jJ}cmqe3S@cvO%DXf6biz`bkP$bizJQD%q? zCftA_qyiC+X&;m_az8c%|3##LIF;q&VS~emC9q-G*rRNQ_3?^!a?sW>JHmB7Epp|k zhZpA26uji6`+PHQUU|e1cOVEqDgqIh*U*=@lg*!<_08G){ct>xz9XwNM zEJC$m;l=2hq&H`f4<1B6NAAcV($2DhPH6URR6;G`u(42btvO5ePhcoa_Tx&+&44gA zEk7qwrJ47H%O}rZ2@{Ov`m1Z8ZMg=&=FxsGr=VwHfrm)mS@$8?2)Fia3;mgg?)J@h zNj2LruiWFC7w>VNi-NIFWDQql8{vrM;k%cb*nG?OJbTgTW|q2n@?r;gfbmNrhi)LB ztZ{phqVZ6)U=KstY+zoL=yCgbNt;3Etf*j)f&InuLARSiP zv=JP4wJ5?|sDjCiN2m9-cL-6x_9#=z+h4RP#b!w)ViY_05dZk*D~}SAA(tlk2Zh*Z z^BnrF1E0_odLa=C_iv*JBTqsiti5vA3gz1tHSubq&@*%re(E3|H$I zi_bVZUiv(E9>WVJ6tE%&A7ka@TZp%^eM?#+$C#`wI630X2_3S!Ayj;*PaVp{m{o{3 z;aiA4#$7zjI~n@;&zw6)WqA}FxH1p9Y?5GbvCvVP;7gL)1A!zei=|KFPz6AvR10Zq zg^U8rZV8Z(9grlkfv)JEzy(%xK_$d&)KYYs?Kz4LO6=Z+g)k&YkMYfdF?9Io(0D?i z7hxH|vg-$!$Q=$qe>fLlwZj_1Jab<}9*dv9&n|wJQrYZ}iYRs%Vcvei7D%KYW?gj% zy=u<<(Dqt?gr8iv;Bk=kl?pmFCo;;c9)Kz^a#E{<0I77kE>z_KG~aPDq9sX)`VcS& zrbOLpN5FmUfM$Is{6os83(?ECAo#u~6O34x82+W^_zxDNFJ`=7gDL37*bqc%d2oOZ z?xS|5N3=>O0S%N}AE!lOP3*`}I;4>}za9b6B>gAOtnL9j#F@(h z9N+~+fdg%UP$QE7rBSt`ud4*z!*jYyY^)?=9w^BNByviE1A>HA5`6^BgT08d7bz)0 zm+|*g^7@LY2rpm}g@V@F5MfBm+_-ykTStNb203 znzP3)LN}1ZW;6v%hFQQlFbZIh572GT9&XfnC4G+;eEnYEq|Lo>Gh`2Jwux&tx!r6w zIxz5CcU%OPw|?un8Ww8LfqM8Eu{_*?p+GQ7EKkiSy8lN7ECptHK!XoU5p1!z>-6Bn zL0sxW)`hRPi0lT%ITBY`Kxok!gbsJwIYjU_p6$V0g|Qvnjz*Tuj1J^IbJk@>K?akc zV8yy^AeM#Y4qGbbDV}B`P|1Xh_5f5u!4arbh;Z|rv+!VyhQEXdk!A1`PsZr{NUly> z1+2GPFy1}^JkA3nt|LkwRRm3;mZlk;c%5($-47Y2FpH&?gVk`+3pnHAaE)sRWN5-t zxJp`hbMOqH${4{ip}H1O02st;CIKCyjAUIMO7Oja=-4X6sC5rud};Gk8v5Z{+6^+> z)mx=Nx(Vnz3I{;aiYIWg)&!&uuf-zAjP8(5V6|>QB8IHj z1y=*f@aFf$VgkdYIJfi<@vs3?P*+x%I9D2IWoO1JhIwm9eVEL6v9)Jzk;N?7f4kvM8SuD0JjG)kD_0sFkuacCducT&vXSp zG#@_+fZE6`7tlAZi(sqxpCx{IBm`|6wws;dc6f6so&-~3{>dMG`P)za^*`NzB>1huKC^<{Kk|JzXDxwC5z1*zkOJ%2?Mu7gaxY7C$$X~)3hM|dzEcrieGYE-9x(OB7v1#e3 zfq+e9i(ClUBpcFk2iR;iQe5%3FINn0$9w3QMiIs6!-3I}@)GzVX`mpU#x zM)wy{fJV7bdn`!_lf;RibsQ*G$8Q1>AVpi9nagE(4X;voI-n>AMsYqQAi>QAaR4^8 zr-BVO#Q+Fu8N#)AOEJu-RmKKuFcb03*P1e@`Nukr5+;W})^C0BFGH>AW;OY74n%NsXMGU<-!`W>jE)5gg>Sb&Dqq!7pt zV_h@W1H8t?9mk3O$s$Hsbs)WOu0rL<;~ypKR@}t9I@Y%Ls&)mDezZbi1?(N~w&9&V zDh|t60!vcp;YF-n0PM^Kj?uW;*2UX-ffLH4@JJv*0&TG7;)&LWau|I$G%w!df>>mL zm_bO#cuNVdChqb9oT()q;7~xEw>|Z+L%YtdFSyp-zPq2pagc}*0TsdmEXI9Q5#2g- zC`lB?uRA=qH?Avz*ViWy!MOAY6EI*eMv(+z<04ZrwL;qf!Il5=~p}H;c>bE<8LGBtXxrIgpy%xcCFpuB>W!jyEK#Jft9=+{J)2WsQ!j&GrjKV^{5&1CYTcioDeG`Y7s5lWY zj(LWIE7%aX5z9#b9qxi}7U$3pZ^hAN!^;SJc-Z(d!gH4q4?grWTt>J{m_q~PXKM zPJ9t{?Bi%FM?2^nBis}0#MUsR`I~dTxg^el_ac-HRK~#NhHyoA1k4qEUxUo?DxeUN zv`wu9^!5nEImpU5Xffb;AWLy2IKh3F)xF}S555*MZ}Te}M4~~J<2N@HgtuILctH2N%X+;;qlCQ>pdNOFe>c5#>So=UAvwAeR?_+3kW{A zw8Jv4{(v}%R=?<0BiEdNjL_t7@dY_AOgFm4Ls&-_dHq{F-0x z&%;I2=G7-G_2BQXhzaCoKe%h8)~vRA&29}paL~QxVzYI+sXN_Dx7X3t)S5YtsJGVycbaI)>{Ybi7^Z;x`wQ-CC#HnX0y$_z6X| z+nHRbbSs#!IJMAQUOsd2#~Ft)rPEukwWpTqNB6cn*lPlN*72OgXWLMF7Vj~97V4dq zO1FBV-aM{BF%3?eoo>5V?Y7$bSf##HTiB;D?*-8L*hcfCUycmVeG_xjm^-Ww{Okh+ zPoDrmy-B5^aAvvQA-ptCjZg)>ON8ybeasOm*5- zD)B_`=-z5;c`{e4R*TcKvkOOOYt`~}o_acrADc|(_h$Fz?CeW^(qa|$87V~tJl`dS z*n#IJeE1)lI51vfv%T$Jr`ubZ>b6=-mRM)1SwDWFyL4u9Iy*f*nYI7lUM?Ok7A7N4 zm|Utid$&&>Z}w;$n7PyClic&2o$U(5f$XiS>#m$We5zJ;b|f#AZnw6)($(FTUhXY* z>nlrV^l3=0Tc>L6V@s{mnDZLs_$;0eg7I-YtCf{Xwcb55Jm*m*1@QA=Zd^HE7@}WU zSXfWGqK~!O%a}pC!42zOU0+^Vsx8-=@NhV3WH7jXrKzp8*IVsFQQ5KOF4VOJkpB$i zyA5(t2fqMDV7IB|)`GL$Iq*Z9{AC<>a(MRJiG&a%Xs7VufAlquZ^p-uK3nh%@u9tj z?9=HTwYgxukpxjz@YbfGiSIKcj^m;ba4R96^QGOi|73#Te;mCGpOs3pUR|U~yL$KT z>-3w^{I~G*FkWvi)Na?UURSq{>7&Sf3!Qzsd!nY7YE515XnhnzY`cl*5#n8}#Y2q6 zq)kZ7E`5HkM;~k^_Izj-tG3!T8*K2Lsb+5(2Fqr%x$JZ{pDko(vc+sETh7krvbkJt zI+xECax=MNu9Pe1W)bPR>FMeGbYXgCx;R~$E>F+qv-w8i)FLu`o-vQ z;Pj8hrMLsOJcueor|!3#Xy=C7r!Q&$1KMSb_uUFV8a!TO^3k28dbLJRgLfTA)^j7Z z=0fCNLYzuS8!Vs1GXolKg>ya>;&!(~Pqto(Wws&CVeaLa`zLsk&rYk?#x`zgw9~{M zz0j(4bhFjf$br=pC}ACBLYMf~PkjY+J_0&#;CU^cx4@?vPanQHP#vf0KqD>*?Mk{N z^ayyl2A|E>do3ztLc9HI(4*n3_n|i8rQJj3Gnb~e8z$L9`%DaD-NFI@ diff --git a/runtime/integration-tests/contracts-data/ink/dummy_extension_consumer/dist/metadata.json b/runtime/integration-tests/contracts-data/ink/dummy_extension_consumer/dist/metadata.json new file mode 100644 index 0000000..4a030dd --- /dev/null +++ b/runtime/integration-tests/contracts-data/ink/dummy_extension_consumer/dist/metadata.json @@ -0,0 +1,144 @@ +{ + "source": { + "hash": "0xda70ef8aede9a79a5749c6959d62b94b653a821990a8b6112eb96d4eb2b9406d", + "language": "ink! 3.3.1", + "compiler": "rustc 1.60.0-nightly" + }, + "contract": { + "name": "dummy_extension_consumer", + "version": "0.1.0", + "authors": [ + "[your_name] <[your_email]>" + ] + }, + "V3": { + "spec": { + "constructors": [ + { + "args": [], + "docs": [], + "label": "default", + "payable": false, + "selector": "0xed4b9d1b" + } + ], + "docs": [], + "events": [], + "messages": [ + { + "args": [ + { + "label": "input", + "type": { + "displayName": [], + "type": 0 + } + } + ], + "docs": [], + "label": "call_extension", + "mutates": false, + "payable": false, + "returnType": { + "displayName": [ + "Result" + ], + "type": 2 + }, + "selector": "0x35a21ae9" + } + ] + }, + "storage": { + "struct": { + "fields": [] + } + }, + "types": [ + { + "id": 0, + "type": { + "def": { + "array": { + "len": 32, + "type": 1 + } + } + } + }, + { + "id": 1, + "type": { + "def": { + "primitive": "u8" + } + } + }, + { + "id": 2, + "type": { + "def": { + "variant": { + "variants": [ + { + "fields": [ + { + "type": 0 + } + ], + "index": 0, + "name": "Ok" + }, + { + "fields": [ + { + "type": 3 + } + ], + "index": 1, + "name": "Err" + } + ] + } + }, + "params": [ + { + "name": "T", + "type": 0 + }, + { + "name": "E", + "type": 3 + } + ], + "path": [ + "Result" + ] + } + }, + { + "id": 3, + "type": { + "def": { + "variant": { + "variants": [ + { + "index": 0, + "name": "ExtError" + }, + { + "index": 1, + "name": "InvalidScaleEncoding" + } + ] + } + }, + "path": [ + "dummy_extension_consumer", + "ExtensionError" + ] + } + } + ] + } +} \ No newline at end of file diff --git a/runtime/integration-tests/contracts-data/ink/dummy_extension_consumer/lib.rs b/runtime/integration-tests/contracts-data/ink/dummy_extension_consumer/lib.rs index 7048ce1..1b1af2a 100755 --- a/runtime/integration-tests/contracts-data/ink/dummy_extension_consumer/lib.rs +++ b/runtime/integration-tests/contracts-data/ink/dummy_extension_consumer/lib.rs @@ -10,7 +10,7 @@ pub trait DummyRuntimeExt { type ErrorCode = ExtensionError; // match extension ID on your runtime - #[ink(extension = 1000)] + #[ink(extension = 100)] fn exposed_method(input: [u8; 32]) -> Result<[u8; 32], ExtensionError>; } @@ -18,6 +18,7 @@ pub trait DummyRuntimeExt { #[cfg_attr(feature = "std", derive(scale_info::TypeInfo))] pub enum ExtensionError { ExtError, + InvalidScaleEncoding } // contract need the environment that understand your extension @@ -47,6 +48,12 @@ impl ink_env::chain_extension::FromStatusCode for ExtensionError { } } +impl From for ExtensionError { + fn from(_: scale::Error) -> Self { + ExtensionError::InvalidScaleEncoding + } +} + // specify the environment in your contract #[ink::contract(env = crate::CustomEnvironment)] mod dummy_extension_consumer { diff --git a/runtime/integration-tests/contracts-data/ink/native_fungible_token/dist/metadata.json b/runtime/integration-tests/contracts-data/ink/native_fungible_token/dist/metadata.json index 5baa9d3..e832ef6 100644 --- a/runtime/integration-tests/contracts-data/ink/native_fungible_token/dist/metadata.json +++ b/runtime/integration-tests/contracts-data/ink/native_fungible_token/dist/metadata.json @@ -1,6 +1,6 @@ { "source": { - "hash": "0x4258c9de4446c1c457f2780788d146c4aea0ed3cffea6d7ccd244a8b3028f967", + "hash": "0xbfdb7140f5b3ef8ae919fb3d7275d3239679b09e6e5faf2d9a41563e2c53ce81", "language": "ink! 3.0.1", "compiler": "rustc 1.60.0-nightly" }, @@ -9,7 +9,8 @@ "version": "3.0.1", "authors": [ "Nimish Agrawal nimish@lagu.na" - ] + ], + "description": "A system-contract used to expose native token as multilayer assets in ERC-20 standard" }, "V3": { "spec": { diff --git a/runtime/integration-tests/contracts-data/ink/native_fungible_token/dist/native_fungible_token.contract b/runtime/integration-tests/contracts-data/ink/native_fungible_token/dist/native_fungible_token.contract index 3059982..08decbd 100644 --- a/runtime/integration-tests/contracts-data/ink/native_fungible_token/dist/native_fungible_token.contract +++ b/runtime/integration-tests/contracts-data/ink/native_fungible_token/dist/native_fungible_token.contract @@ -1 +1 @@ -{"source":{"hash":"0x4258c9de4446c1c457f2780788d146c4aea0ed3cffea6d7ccd244a8b3028f967","language":"ink! 3.0.1","compiler":"rustc 1.60.0-nightly","wasm":"0x0061736d0100000001540e60027f7f0060037f7f7f0060017f0060047f7f7f7f0060037f7f7f017f60000060057f7f7f7f7f017f6000017f60017f017f60037e7e7f0060017f017e60047f7f7f7f017f60027f7f017f60057f7f7f7f7f0002f6010a057365616c30127365616c5f6465706f7369745f6576656e740003057365616c30107365616c5f7365745f73746f726167650001057365616c30107365616c5f6765745f73746f726167650004057365616c30197365616c5f63616c6c5f636861696e5f657874656e73696f6e0006057365616c300a7365616c5f696e7075740000057365616c300b7365616c5f72657475726e0001057365616c30147365616c5f686173685f626c616b65325f3235360001057365616c300b7365616c5f63616c6c65720000057365616c30167365616c5f76616c75655f7472616e73666572726564000003656e76066d656d6f727902010210032f2e0402070008020201030300000002020209010100000a0100000105020b0005000c0203000301040100010000010d0608017f01418080040b071102066465706c6f7900230463616c6c00270aee5c2e2b01017f037f2002200346047f200005200020036a200120036a2d00003a0000200341016a21030c010b0b0b2601017f037f2001412846047f200005200020016a41003a0000200141016a21010c010b0b1a0b6c02027f027e230041206b22002400200041086a220142003703002000420037030020004110360214200020003602102000411036021c20002000411c6a1008200041106a200028021c100c2001290300210220002903002103200041206a2400410541042002200384501b0b3301017f230041106b22022400200241086a4100200120002802002000280204103620002002290308370200200241106a24000b6501037e2000290300210120004201370300200041086a22002001200029030022027c22013703002000200029030822032001200254ad7c22013703082000200029031022022001200354ad7c2201370310200020002903182001200254ad7c37031820000bb70402057f017e23004190016b220224000240027f2002200041f000100922002903002206420152044020004188016a220241808001360200200041b4820436028401200041003602800120004180016a2203100f200041f8006a2201200228020036020020002000290380013703702003200041f0006a2204419880041010200341a48004411b200041286a1011200120022802003602002000200029038001370370200441bf80044119200041c9006a10112001280200220320002802702202490d02200320026b21032000280274220420026a0c010b20004188016a220241808001360200200041b4820436028401200041003602800120004180016a2203100f200041f8006a2201200228020036020020002000290380013703702003200041f0006a220441f080041010200341fc8004411c200041286a1012200120022802003602002000200029038001370370200441988104411e200041c8006a10122001280200220320002802702202490d01200320026b21032000280274220420026a0b210120002003360284012000200136028001200041086a2105024020065004402003450d02200141003a00002000410136028801200041286a20004180016a22011013200541c1006a200110130c010b2003450d01200141013a00002000410136028801200041286a20004180016a22011014200041c8006a200110140b200520004180016a101520002802880122012000280284014b0d00200420022000280280012001100020004190016a24000f0b000b8d0101047f230041106b2202240020002802042104200041fc8104360204200041086a22012802002103200141003602000240200320002802002201490d00200241003602082002200320016b3602042002200120046a3602004103200210202001200120022802086a22014b0d00200020033602082000200436020420002001360200200241106a24000f0b000ba20101047f230041206b220324000240200141086a280200220520012802002204490d0020012802042106200341003602082003200520046b3602042003200420066a360200200228020020022802042003101f200320022802084115101a2003280208220220032802044b0d002003200328020020021030200120031031200041086a200141086a28020036020020002001290200370200200341206a24000f0b000b7d01047f230041206b220424000240200041086a280200220620002802002205490d0020002802042107200441003602082004200620056b3602042004200520076a360200200120022004101f2003200410132004280208220120042802044b0d002004200428020020011030200020041031200441206a24000f0b000b7d01047f230041206b220424000240200041086a280200220620002802002205490d0020002802042107200441003602082004200620056b3602042004200520076a360200200120022004101f2003200410142004280208220120042802044b0d002004200428020020011030200020041031200441206a24000f0b000b230020002d0000410147044020014100101d0f0b20014101101d200041016a200110140b0a00200120004120101a0bca0302097f037e230041206b22042400200441086a41204100101b200428020821020240200428020c2207411f4d04402002410020071b210a230041106b22052400200441106a2209027f200741017422024120200241204b1b220241004e0440027f0240200a04402007450440200541086a200241001035200528020c210320052802080c030b410041ac8204280200220620026a22082006490d021a41b082042802002008490440200241ffff036a220841107640002203417f46200341ffff0371200347720d022003411074220620084180807c716a22032006490d0241b0820420033602004100200220066a22082006490d031a0b41ac820420083602002006450d01200221032006200a200710090c020b2005200210342005280204210320052802000c010b41000b220704402009200736020441000c020b20092002360204410121030b41010b360200200941086a2003360200200541106a240020042802104101460d01200428021421020b200041086a290000210b200041106a290000210c2000290000210d200241186a200041186a290000370000200241106a200c370000200241086a200b3700002002200d370000200120024120101a200441206a24000f0b000b900102037f017e230041206b22022400200241186a41808001360200200241b4820436021420024100360210230041206b22012400200241106a2203290204210420014100360218200120043703102000200141106a101520032001290310370204200141086a200320012802181032200241086a2001290308370300200141206a24002002280208200228020c1033000b9c0102037f017e230041206b22022400200241186a41808001360200200241b4820436021420024100360210230041206b22012400200241106a220329020421042001410036021820012004370310200120003a001f200141106a2001411f6a4101101a20032001290310370204200141086a200320012802181032200241086a2001290308370300200141206a24002002280208200228020c1033000b2e01017f230041f0006b22012400200141086a200041e80010091a200142003703002001100e200141f0006a24000b2a01017f230041106b220324002003200137030820032000370300200220034110101a200341106a24000b5e01037f230041106b2203240002402000280208220420026a220520044f0440200341086a20042005200028020020002802041036200328020c2002470d0120032802082001200210091a20002005360208200341106a24000f0b000b000b5801017f230041106b220324000240200141004e0440027f2002450440200341086a2001103420032802080c010b200320014101103520032802000b22020d010b000b2000200136020420002002360200200341106a24000b0d00200120002802004120101a0b2d01017f2000280208220220002802044904402000200241016a360208200028020020026a20013a00000f0b000b4601017f027f2000280204220141044904404100210141010c010b2000200141046b36020420002000280200220041046a3602002000280000210141000bad2001ad420886840b1000200120021020200220002001101a0b7401017f230041106b2202240002402000413f4d044020012000410274101d0c010b200041ffff004d0440200220004102744101723b010e20012002410e6a4102101a0c010b200041ffffffff034d04402000410274410272200110260c010b20014103101d2000200110260b200241106a24000b970101017f230041406a22022400200241286a200141186a290000370300200241206a200141106a290000370300200241186a200141086a2900003703002002420037030820022001290000370310200241086a100d200241386a41808001360200200241b48204360234200241003602302002200241306a20001022200228020020022802041001200241086a100d1a200241406b24000b5602017f017e230041206b220324002001290204210420034100360218200320043703102002200341106a102620012003290310370204200341086a20012003280218103220002003290308370300200341206a24000bfe0201047f230041406a220024000240100b41ff01714105470d00200041808001360214200041b48204360210200041106a102420002000290310370318200041186a101e4281feffffff1f8342808af5b7c00e51047f200028021c220141044f0440200028021828000021020b200141034b0541000b450d00100b41ff01714105470d00200041206a41808001360200200041b4820436021c20004100360218200041086a200041186a20021022200028020c2101200028020821032000200029021c37031041d00f20032001200041106a1025220141024b41858004200141037441f8ffff07717641ff0171410547720d0020004180800136021c200041b48204360218410a41b482044100200041186a1025220141024b41858004200141037441f8ffff07717641ff0171410547720d00200041186a2201100a2001100d1a200041186a100d1a200041306a4200370300200041286a4200370300200041206a420037030020004200370318200220011021200041406b24000f0b000b3301017f230041106b220124002001200028020436020c20002802002001410c6a10042000200128020c100c200141106a24000b3901017f230041106b220424002004200328020436020c20002001200220032802002004410c6a10032003200428020c100c200441106a24000b2601017f230041106b220224002002200036020c20012002410c6a4104101a200241106a24000bbc2802097f077e23004180066b22002400024002400240100b41ff01714105470d002000418080013602d404200041b482043602d004200041d0046a1024200020002903d0043703f004410921010240200041f0046a101e220a4201832209a70d00200a42807e8342002009501b22094280feffffff1f83220a422088a72103200a421888a72104200a421088a721050240027f02400240024002400240024002400240024002402009a741087641ff0171220641066b0e04010c0c07000b20064118460d0320064123460d0720064131460d02200641f000460d042006419501460d01200641a901460d05200641dd0147200541ff017141e2004772200441ff017141ed01472003413e4772720d0b20002802f40422024120490d0a20024160714120470d080c0a0b200541ff017141fd0147200441ff017141de0147720d0a410020034103460d081a0c0a0b200541ff017141d80147200441ff0171419b0147720d094101200341c100460d071a0c090b200541ff0171413c47200441ff017141e50147720d084102200341e700460d061a0c080b200541ff0171411647200441ff0171410d47720d074103200341dd01460d051a0c070b200541ff017141a00147200441ff017141820147722003413147720d0620002802f40422034120490d0620004190026a20002802f004220141096a29000037030020004198026a200141116a2900003703002000419f026a200141186a2900003700002000200341206b3602f4042000200141206a3602f004200020012900013703880220012d0000210241040c040b200541ff0171410547200441ff0171419c014772200341bb0147720d0520004190056a200041f0046a10282000290390054201510d04200041ee026a200041a6016a200041d0036a20004198056a41c000100941c000100941c00010091a20004188026a200041e8026a413f10091a2000200041aa036a28000036009305200020002800a7033602900541060c030b200541ff017141de0047200441ff017141a7014772200341b30147720d0420004190056a200041f0046a10282000290390054201510d03200041ee026a200041a6016a200041d0036a20004198056a41c000100941c000100941c00010091a20004188026a200041e8026a413f10091a2000200041aa036a28000036009305200020002800a7033602900541070c020b200541ff017141b80147200441ff017141f2004772200341dd0147720d0320002802f40422014120490d0220014160712202412046200241c00046720d02200041b0036a20002802f004220241c8006a290000370300200041b8036a200241d0006a290000370300200041c0036a200241d8006a290000370300200041f0026a200241086a290000370300200041f8026a200241106a29000037030020004180036a200241186a2900003703002000200141e0006b3602f4042000200241e0006a3602f004200020022900403703a803200020022900003703e802200041a0036a200241206a220141186a29000037030020004198036a200141106a29000037030020004190036a200141086a290000370300200020012900003703880320004188026a2201200041e8026a41e00010091a200041a6016a200041d0036a20004196056a200141e000100941e000100941e00010091a2001200041a0016a413f10091a20004190056a200041df016a412710091a41080c010b200041b7056a20002802f004220141286a290000370000200041bf056a200141306a290000370000200041c7056a200141386a29000037000020004198056a200141096a290000370300200041a0056a200141116a290000370300200041a7056a200141186a2900003700002000200241406a3602f4042000200141406b3602f004200020012900203700af05200020012900013703900520012d0000210220004188026a20004190056a413f10091a41050b2101200041e0006a20004188026a413f10091a200041386a20004190056a412710091a0c010b410921010b20014109460d0020004188026a2203200041e0006a413f10091a200041116a2204200041386a412710091a200041ca036a2003413f10091a20004189046a2004412710091a20004190056a2203100a2003100d2000418080013602a401200041b482043602a001200041a0016a10290d0020002802a4014104490d0020002802a0012800002103200041b8016a20004190056a100d220441186a290000220a370300200041b0016a200441106a29000022093703002004290000210b200041ec006a200441086a290000370200200041f4006a2009370200200041fc006a200a370200200020033602602000200b370264200041e0006a410472210402400240024002400240024002400240024002400240200141016b0e080706050403020100080b100b41ff01714105470d0a200041a0016a200041d0036a41e00010091a41182101200041c8046a2202200041e8036a290000370300200041c0046a2203200041e0036a290000370300200041b8046a2205200041d8036a290000370300200020002900d0033703b004200041e8046a200041f8016a290300370300200041e0046a200041f0016a290300370300200041d8046a200041e8016a290300370300200020002903e0013703d004200041f0046a102a20004180036a2002290300370300200041f8026a2003290300370300200041f0026a2005290300370300200020002903b0043703e802200041a8056a20004188056a290300370300200041a0056a20004180056a29030037030020004198056a200041f8046a290300370300200020002903f00437039005200041386a200041e0006a200041e8026a20004190056a102b200041e0016a2102027f024002400240034020014178460d01200041d0046a20016a2103200041386a20016a200141086b2101290300220a20032903002209510d000b2009200a560d010b200041a8056a200241186a290300370300200041a0056a200241106a29030037030020004198056a200241086a2903003703002000200229030037039005200041e8026a20004190056a102c20002802e8024101460d0020002903f002210a20002802602101200041e0056a200041f8026a2903002209370300200041ac056a200041c8046a290300370200200041a4056a200041c0046a2903003702002000419c056a200041b8046a290300370200200041bc056a200041c8016a290300370200200041c4056a200041d0016a290300370200200041cc056a200041d8016a2903003702002000200a3703d805200020002903b00437029405200020002903c0013702b40520002001360290052000428080013702ec02200041b482043602e8022001200041e8026a2201102620004190056a41047220011014200041b4056a20011014200a20092001101920002802ec02220520002802f0022201490d0d20002802e80221032000200520016b3602ec022000200120036a3602e80241d70f20032001200041e8026a1025220141024b0d0041858004200141037441f8ffff07717641ff01714105460d010b41000c010b2000290340220920002903d8047d220a20095621012000290338220920002903d0047d220f2009560440200a200a42017d220a5420016a21010b20002903e004210c2000290348210920002903e804210d2000290350210b027f027f20014504402009200c7d220c2009560c010b2009200c7d220e2001ad7d220c200e562009200e546a0b2201450440200b200d7d2209200b560c010b200b200d7d220d2001ad7d2209200d56200b200d546a0b200020093703a8052000200c3703a0052000200a370398052000200f370390050d0b2004200041b0046a200041f0046a20004190056a2203102d200041c9056a200041c8046a290300370000200041c1056a200041c0046a290300370000200041b9056a200041b8046a290300370000200041b1056a20002903b004370000200041d2056a200041c0016a2201290100370100200041da056a200141086a290100370100200041e2056a200141106a290100370100200041ea056a200141186a29010037010020004198056a200241086a290300370300200041a0056a200241106a290300370300200041a8056a200241186a2903003703002000200229030037039005200041013a00d105200041013a00b0052003101841010b200028026041b6810410211017000b100b41ff01714105470d09200041e8026a200041d0036a41c00010091a200041e8046a2201200041e8036a290000370300200041e0046a2202200041e0036a290000370300200041d8046a2203200041d8036a290000370300200020002900d0033703d00420004188056a200041a0036a220529030037030020004180056a20004198036a2206290300370300200041f8046a20004190036a220729030037030020002000290388033703f004200041386a2208102a20042008200041d0046a200041f0046a102d200041d8016a200041d0006a290300370300200041d0016a200041c8006a290300370300200041c8016a200041406b290300370300200041e8016a2003290300370300200041f0016a2002290300370300200041f8016a2001290300370300200041a8016a2007290300370300200041b0016a2006290300370300200041b8016a2005290300370300200020002903383703c001200020002903d0043703e00120002000290388033703a00120004198056a200041a0016a41e00010091a200042013703900520004190056a100e200028026041b68104102141011017000b100b41ff01714105470d08200041a0016a200041d0036a220141c00010091a200041a8056a200041d8016a290300370300200041a0056a200041d0016a29030037030020004198056a200041c8016a290300370300200020002903c00137039005200041e8026a20004190056a102c20002802e8024101460d0620002903f002210a200041c0056a200041f8026a2903002209370300200041ac056a200141186a290000370200200041a4056a200141106a2900003702002000419c056a200141086a2900003702002000200a3703b805200020033602900520002001290000370294052000428080013702ec02200041b482043602e8022003200041e8026a2202102620004190056a41047220021014200a20092002101920002802ec02220220002802f0022204490d0820002802e80221052000200220046b3602ec022000200420056a3602e8024100210241d60f20052004200041e8026a1025220441024b41858004200441037441f8ffff07717641ff0171410547720d09200041b1056a102a200041ea056a200141186a290000370100200041e2056a200141106a290000370100200041da056a200141086a290000370100200041d2056a200129000037010020004198056a200041c0016a220141086a290300370300200041a0056a200141106a290300370300200041a8056a200141186a29030037030041012102200041013a00d105200041013a00b005200020012903003703900520004190056a10180c090b100b41ff01714105470d0720004190056a20004188026a413f10091a200041f1026a20004190026a290100370000200041f9026a20004198026a29010037000020004180036a2000419f026a290000370000200020023a00e80220002000290188023700e902200041b8016a200041c7056a290000370300200041b0016a200041bf056a290000370300200041a8016a200041b7056a290000370300200020002900af053703a001200041386a2201200041e0006a200041e8026a200041a0016a102b20011016000b100b41ff01714105470d062000419d056a20004190026a290100370000200041a5056a20004198026a290100370000200041ac056a2000419f026a290000370000200020023a00940520002000290188023700950520002003360290052000428080013702a401200041b482043602a0012003200041a0016a2201102620004190056a4104722001101420002802a401220320002802a8012201490d0620002802a00121022000200320016b3602ec022000200120026a3602e80241d50f20022001200041e8026a1025220141024b41858004200141037441f8ffff07717641ff0171410547720d0620002802ec02410f4d0d06200041b8016a4200370300200042003703b001200020002802e80222012900003703a0012000200141086a2900003703a801200041a0016a1016000b100b41ff01714105470d05200041a8016a41808001360200200041b482043602a401200041003602a001200041086a200041a0016a20031022200028020c210120002802082102200020002902a4013703e80241d40f20022001200041e8026a1025220141024b41858004200141037441f8ffff07717641ff0171410547720d0520002802ec02410f4d0d05200041a8056a4200370300200042003703a005200020002802e8022201290000370390052000200141086a2900003703980520004190056a1016000b100b41ff01714105470d0420004198056a41808001360200200041b48204360294052000410036029005200020004190056a20031022200028020421012000280200210220002000290294053703a00141d30f20022001200041a0016a1025220141024b41858004200141037441f8ffff07717641ff0171410547720d0420002802a401450d0420002802a0012d00001017000b100b41ff01714105470d0320004190056a41d20f2003102e20002d0090054101460d030c050b100b41ff01714105460d010c020b410021020c020b20004190056a41d10f2003102e20002d0090054101460d000c020b000b200341b68104102120021017000b200041a8016a2000419c056a28020036020020002000290294053703a001230041206b22022400200241186a41808001360200200241b4820436021420024100360210230041206b22012400200241106a2203290204210a200141003602182001200a370310200041a0016a22002802002000280208200141106a101f20032001290310370204200141086a200320012802181032200241086a2001290308370300200141206a24002002280208200228020c1033000bf70101057f230041406a2202240002402001280204220541204f04402001200541206b220636020420012001280200220341206a2204360200200641204f04402001200541406a3602042001200341406b360200200241286a200441086a290000370300200241306a200441106a290000370300200241386a200441186a290000370300200241086a200341086a290000370300200241106a200341106a290000370300200241186a200341186a2900003703002002200429000037032020022003290000370300200041086a200241c00010091a200042003703000c020b200042013703000c010b200042013703000b200241406b24000b5401017f230041106b220224002002200128020436020c200020012802002002410c6a100221002001200228020c100c410c21012000410b4d0440200041027441fc81046a28020021010b200241106a240020010b6001017f230041106b2201240020004200370000200041186a4200370000200041106a4200370000200041086a420037000020014120360204200120003602002001412036020c20002001410c6a10072001200128020c100c200141106a24000bcb0501057f230041b0016b22042400200441206a200241186a290000370300200441186a200241106a290000370300200441106a200241086a290000370300200441306a200341086a290000370300200441386a200341106a290000370300200441406b200341186a29000037030020042002290000370308200420032900003703282004200141046a3602a8012004200441086a22063602ac01200441a0016a2201420037030020044198016a2202420037030020044190016a22034200370300200442003703880120044280800137026c200441b48204360268200441a8016a200441e8006a2205101c200620051014200441286a20051014024020042802702205200428026c4b0d002004280268200520044188016a1006200441e0006a2001290300370300200441d8006a2002290300370300200441d0006a200329030037030020042004290388013703482004418080013602ac01200441b482043602a801410021024100210302400240200441c8006a200441a8016a10290e0400020201020b4101210320042802ac014120490d0020044190016a20042802a801220141086a29000037030020044198016a200141106a290000370300200441a0016a200141186a290000370300200420012900003703880141012102410021030b20030d0020044180016a2206200441a0016a2201290300370300200441f8006a220720044198016a2203290300370300200441f0006a220820044190016a2205290300370300200420042903880137036802402002044020012006290300370300200320072903003703002005200829030037030020042004290368370388010c010b20054200370300200342003703002001420037030020044200370388010b2000200429038801370300200041186a200441a0016a290300370300200041106a20044198016a290300370300200041086a20044190016a290300370300200441b0016a24000f0b000ba40101047f230041206b220241186a200141186a290300370300200241106a2203200141106a290300370300200241086a200141086a29030037030020022001290300370300410021010340200141086a2204411846044020004100360200200041106a2002290308370300200041086a20022903003703000f0b200120036a20042101290300500d000b200041d6810436020420004101360200200041086a41253602000b9c0201027f230041d0006b220424002004200236020420042001360200200420003602282004200436022c200441c8006a22004200370300200441406b22014200370300200441386a220242003703002004420037033020044280800137020c200441b48204360208200441286a200441086a2205101c200428020020051014200428020420051014024020042802102205200428020c4b0d0020042802082005200441306a22051006200441206a2000290300370300200441186a2001290300370300200441106a200229030037030020042004290330370308200442808001370234200441b48204360230200520034120101a2004280238220020042802344b0d00200441086a200428023020001001200441d0006a24000f0b000ba80401047f230041406a22032400200341186a41808001360200200341b4820436021420034100360210200341086a200341106a20021022200328020c21022003280208210420032003290214370320024041858004200120042002200341206a1025220141037441f8ffff077176410320014103491b220141ff017141054604402003280220210120032003280224220436022c2003200136022802402004450d002003200441016b220536022c2003200141016a360228024020012d0000220241037122064103470440024002400240200641016b0e020102000b200241027621010c030b200320023a0035200341013a00342003200341286a360230200341003b013c200341306a2003413c6a4102102f220245044020032f013c21010b2002200141ffff037141ff014d720d03200141fcff037141027621010c020b200320023a0035200341013a00342003200341286a3602302003410036023c200341306a2003413c6a4104102f0d02200328023c220141808004490d02200141027621010c010b2005410449200241044f720d012003200441056b36022c2003200141056a3602282001280001220141ffffffff034d0d010b200328022c2001490d00200320014101101b200328022c2001490d0020032802042102200041046a2003280200200328022820011009360200200041003a0000200041086a2002ad2001ad422086843702000c020b410421010b200041013a0000200020013a00010b200341406b24000b910101027f20002f01042103200041003a0004410121040240024020034101714504402000280200220028020422032002490d02200120002802002201200210091a0c010b200120034108763a0000200028020022002802042203200241016b2202490d01200141016a20002802002201200210091a0b2000200320026b3602042000200120026a360200410021040b20040bb00101077f230041206b2203240020004200370000200041186a22044200370000200041106a22054200370000200041086a220642003700000240200241214f0440200341186a22074200370300200341106a22084200370300200341086a22094200370300200342003703002001200220031006200420072903003700002005200829030037000020062009290300370000200020032903003700000c010b20002001200210091a0b200341206a24000b8d0101047f230041106b2202240020002802042105200041fc8104360204200041086a220328020021042003410036020002402000280200220320044d0440200241003602082002200420036b3602042002200320056a360200200120021014200320022802086a220120034f0d010b000b200020043602082000200536020420002001360200200241106a24000b5201027f200141086a220328020021042003410036020020012802042103200141fc8104360204200220044b0440000b2001200420026b3602082001200220036a36020420002002360204200020033602000b0b004100200020011005000b3301017f230041106b22022400200241086a200141001035200020022802083602002000200228020c360204200241106a24000b9d0201047f02402001450440410121040c010b41ac8204280200220320016a220520034921060240027f200245044020060d032003200541b082042802004d0d011a200141ffff036a22032001490d02200341107640002202417f46200241ffff0371200247720d022002411074220220034180807c716a22032002490d0341b082042003360200200120026a22052002490d0320020c010b20060d022003200541b082042802004d0d001a200141ffff036a22032001490d01200341107640002202417f46200241ffff0371200247720d012002411074220220034180807c716a22032002490d0241b082042003360200200120026a22052002490d0220020b210441ac820420053602000c010b0b20002001360204200020043602000b31000240200120024b200220044b720d002002200220016b2202490d00200020023602042000200120036a3602000f0b000b0b99020200418080040bb6014e6174697665546f6b656e3a3a5472616e73666572000000fc00010000000000000001004e6174697665546f6b656e3a3a5472616e736665723a3a66726f6d4e6174697665546f6b656e3a3a5472616e736665723a3a746f4e6174697665546f6b656e3a3a417070726f76616c000000fc00010000000000580001004e6174697665546f6b656e3a3a417070726f76616c3a3a6f776e65724e6174697665546f6b656e3a3a417070726f76616c3a3a7370656e6465720041d681040b53696e7465676572206f766572666c6f77207768656e2063617374696e6720746f207531323800000000000100000002000000030000000400000005000000060000000700000008000000090000000c0000000b"},"contract":{"name":"native_fungible_token","version":"3.0.1","authors":["Nimish Agrawal nimish@lagu.na"]},"V3":{"spec":{"constructors":[{"args":[{"label":"token_id","type":{"displayName":["u32"],"type":0}}],"docs":["Creates an ERC-20 contract wrapper around an existing native token"],"label":"create_wrapper_token","payable":false,"selector":"0x45fd0674"}],"docs":[],"events":[{"args":[{"docs":[],"indexed":true,"label":"from","type":{"displayName":["Option"],"type":12}},{"docs":[],"indexed":true,"label":"to","type":{"displayName":["Option"],"type":12}},{"docs":[],"indexed":false,"label":"value","type":{"displayName":["U256"],"type":10}}],"docs":[" Event emitted when a token transfer occurs."],"label":"Transfer"},{"args":[{"docs":[],"indexed":true,"label":"owner","type":{"displayName":["AccountId"],"type":3}},{"docs":[],"indexed":true,"label":"spender","type":{"displayName":["AccountId"],"type":3}},{"docs":[],"indexed":false,"label":"value","type":{"displayName":["U256"],"type":10}}],"docs":[" Event emitted when an approval occurs that `spender` is allowed to withdraw"," up to the amount of `value` tokens from `owner`."],"label":"Approval"}],"messages":[{"args":[],"docs":[" Returns the name of the token"],"label":"name","mutates":false,"payable":false,"returnType":{"displayName":["StorageVec"],"type":9},"selector":"0x06fdde03"},{"args":[],"docs":[" Returns the ticker of the token"],"label":"symbol","mutates":false,"payable":false,"returnType":{"displayName":["StorageVec"],"type":9},"selector":"0x95d89b41"},{"args":[],"docs":[" Returns the decimals places used in the token"],"label":"decimals","mutates":false,"payable":false,"returnType":{"displayName":["u8"],"type":5},"selector":"0x313ce567"},{"args":[],"docs":[" Returns the total token supply"],"label":"total_supply","mutates":false,"payable":false,"returnType":{"displayName":["U256"],"type":10},"selector":"0x18160ddd"},{"args":[{"label":"owner","type":{"displayName":["AccountId"],"type":3}}],"docs":[" Returns the account balance for the specified `owner`"],"label":"balance_of","mutates":false,"payable":false,"returnType":{"displayName":["U256"],"type":10},"selector":"0x70a08231"},{"args":[{"label":"owner","type":{"displayName":["AccountId"],"type":3}},{"label":"spender","type":{"displayName":["AccountId"],"type":3}}],"docs":[" Returns the amount which `spender` is still allowed to withdraw from `owner`.",""," Returns `0` if no allowance has been set."],"label":"allowance","mutates":false,"payable":false,"returnType":{"displayName":["U256"],"type":10},"selector":"0xdd62ed3e"},{"args":[{"label":"to","type":{"displayName":["AccountId"],"type":3}},{"label":"value","type":{"displayName":["U256"],"type":10}}],"docs":[" Transfers `value` amount of tokens from the caller's account to account `to`.",""," On success a `Transfer` event is emitted."],"label":"transfer","mutates":true,"payable":false,"returnType":{"displayName":["bool"],"type":11},"selector":"0xa9059cbb"},{"args":[{"label":"spender","type":{"displayName":["AccountId"],"type":3}},{"label":"value","type":{"displayName":["U256"],"type":10}}],"docs":[" Allows `spender` to withdraw from the caller's account multiple times, up to"," the `value` amount.",""," If this function is called again it overwrites the current allowance with `value`.",""," An `Approval` event is emitted."],"label":"approve","mutates":true,"payable":false,"returnType":{"displayName":["bool"],"type":11},"selector":"0x095ea7b3"},{"args":[{"label":"from","type":{"displayName":["AccountId"],"type":3}},{"label":"to","type":{"displayName":["AccountId"],"type":3}},{"label":"value","type":{"displayName":["U256"],"type":10}}],"docs":[" Transfers `value` tokens on the behalf of `from` to the account `to`.",""," On success a `Transfer` event is emitted."],"label":"transfer_from","mutates":true,"payable":false,"returnType":{"displayName":["bool"],"type":11},"selector":"0x23b872dd"}]},"storage":{"struct":{"fields":[{"layout":{"cell":{"key":"0x0000000000000000000000000000000000000000000000000000000000000000","ty":0}},"name":"token_id"},{"layout":{"cell":{"key":"0x0100000000000000000000000000000000000000000000000000000000000000","ty":1}},"name":"allowances"}]}},"types":[{"id":0,"type":{"def":{"primitive":"u32"}}},{"id":1,"type":{"def":{"composite":{"fields":[{"name":"offset_key","type":8,"typeName":"Key"}]}},"params":[{"name":"K","type":2},{"name":"V","type":6}],"path":["ink_storage","lazy","mapping","Mapping"]}},{"id":2,"type":{"def":{"tuple":[3,3]}}},{"id":3,"type":{"def":{"composite":{"fields":[{"type":4,"typeName":"[u8; 32]"}]}},"path":["ink_env","types","AccountId"]}},{"id":4,"type":{"def":{"array":{"len":32,"type":5}}}},{"id":5,"type":{"def":{"primitive":"u8"}}},{"id":6,"type":{"def":{"array":{"len":4,"type":7}}}},{"id":7,"type":{"def":{"primitive":"u64"}}},{"id":8,"type":{"def":{"composite":{"fields":[{"type":4,"typeName":"[u8; 32]"}]}},"path":["ink_primitives","Key"]}},{"id":9,"type":{"def":{"sequence":{"type":5}}}},{"id":10,"type":{"def":{"composite":{"fields":[{"type":6,"typeName":"[u64; 4]"}]}},"path":["primitive_types","U256"]}},{"id":11,"type":{"def":{"primitive":"bool"}}},{"id":12,"type":{"def":{"variant":{"variants":[{"index":0,"name":"None"},{"fields":[{"type":3}],"index":1,"name":"Some"}]}},"params":[{"name":"T","type":3}],"path":["Option"]}}]}} \ No newline at end of file +{"source":{"hash":"0xbfdb7140f5b3ef8ae919fb3d7275d3239679b09e6e5faf2d9a41563e2c53ce81","language":"ink! 3.0.1","compiler":"rustc 1.60.0-nightly","wasm":"0x0061736d0100000001540e60027f7f0060037f7f7f0060017f0060047f7f7f7f0060037f7f7f017f60017f017f60000060057f7f7f7f7f017f6000017f60037e7e7f0060017f017e60047f7f7f7f017f60027f7f017f60057f7f7f7f7f0002f6010a057365616c30127365616c5f6465706f7369745f6576656e740003057365616c30107365616c5f7365745f73746f726167650001057365616c30107365616c5f6765745f73746f726167650004057365616c30197365616c5f63616c6c5f636861696e5f657874656e73696f6e0007057365616c300a7365616c5f696e7075740000057365616c300b7365616c5f72657475726e0001057365616c30147365616c5f686173685f626c616b65325f3235360001057365616c300b7365616c5f63616c6c65720000057365616c30167365616c5f76616c75655f7472616e73666572726564000003656e76066d656d6f72790201021003302f040205080005020201030300000002020209010100000a0100000106020b0006000c0203000301040100010000010d0608017f01418080040b071102066465706c6f7900240463616c6c00280afc5b2f2b01017f037f2002200346047f200005200020036a200120036a2d00003a0000200341016a21030c010b0b0b2601017f037f2001412846047f200005200020016a41003a0000200141016a21010c010b0b1a0b3001017f024002400240024020000e03000102030b41050f0b41000f0b41010f0b41032101410241032000419303461b0b6c02027f027e230041206b22002400200041086a220142003703002000420037030020004110360214200020003602102000411036021c20002000411c6a1008200041106a200028021c100d2001290300210220002903002103200041206a2400410541042002200384501b0b3301017f230041106b22022400200241086a4100200120002802002000280204103720002002290308370200200241106a24000b6501037e2000290300210120004201370300200041086a22002001200029030022027c22013703002000200029030822032001200254ad7c22013703082000200029031022022001200354ad7c2201370310200020002903182001200254ad7c37031820000bb70402057f017e23004190016b220224000240027f2002200041f000100922002903002206420152044020004188016a220241808001360200200041b4820436028401200041003602800120004180016a22031010200041f8006a2201200228020036020020002000290380013703702003200041f0006a2204419880041011200341a48004411b200041286a1012200120022802003602002000200029038001370370200441bf80044119200041c9006a10122001280200220320002802702202490d02200320026b21032000280274220420026a0c010b20004188016a220241808001360200200041b4820436028401200041003602800120004180016a22031010200041f8006a2201200228020036020020002000290380013703702003200041f0006a220441f080041011200341fc8004411c200041286a1013200120022802003602002000200029038001370370200441988104411e200041c8006a10132001280200220320002802702202490d01200320026b21032000280274220420026a0b210120002003360284012000200136028001200041086a2105024020065004402003450d02200141003a00002000410136028801200041286a20004180016a22011014200541c1006a200110140c010b2003450d01200141013a00002000410136028801200041286a20004180016a22011015200041c8006a200110150b200520004180016a101620002802880122012000280284014b0d00200420022000280280012001100020004190016a24000f0b000b8d0101047f230041106b2202240020002802042104200041fc8104360204200041086a22012802002103200141003602000240200320002802002201490d00200241003602082002200320016b3602042002200120046a3602004103200210212001200120022802086a22014b0d00200020033602082000200436020420002001360200200241106a24000f0b000ba20101047f230041206b220324000240200141086a280200220520012802002204490d0020012802042106200341003602082003200520046b3602042003200420066a3602002002280200200228020420031020200320022802084115101b2003280208220220032802044b0d002003200328020020021031200120031032200041086a200141086a28020036020020002001290200370200200341206a24000f0b000b7d01047f230041206b220424000240200041086a280200220620002802002205490d0020002802042107200441003602082004200620056b3602042004200520076a36020020012002200410202003200410142004280208220120042802044b0d002004200428020020011031200020041032200441206a24000f0b000b7d01047f230041206b220424000240200041086a280200220620002802002205490d0020002802042107200441003602082004200620056b3602042004200520076a36020020012002200410202003200410152004280208220120042802044b0d002004200428020020011031200020041032200441206a24000f0b000b230020002d0000410147044020014100101e0f0b20014101101e200041016a200110150b0a00200120004120101b0bca0302097f037e230041206b22042400200441086a41204100101c200428020821020240200428020c2207411f4d04402002410020071b210a230041106b22052400200441106a2209027f200741017422024120200241204b1b220241004e0440027f0240200a04402007450440200541086a200241001036200528020c210320052802080c030b410041ac8204280200220620026a22082006490d021a41b082042802002008490440200241ffff036a220841107640002203417f46200341ffff0371200347720d022003411074220620084180807c716a22032006490d0241b0820420033602004100200220066a22082006490d031a0b41ac820420083602002006450d01200221032006200a200710090c020b2005200210352005280204210320052802000c010b41000b220704402009200736020441000c020b20092002360204410121030b41010b360200200941086a2003360200200541106a240020042802104101460d01200428021421020b200041086a290000210b200041106a290000210c2000290000210d200241186a200041186a290000370000200241106a200c370000200241086a200b3700002002200d370000200120024120101b200441206a24000f0b000b9c0102037f017e230041206b22022400200241186a41808001360200200241b4820436021420024100360210230041206b22012400200241106a220329020421042001410036021820012004370310200120003a001f200141106a2001411f6a4101101b20032001290310370204200141086a200320012802181033200241086a2001290308370300200141206a24002002280208200228020c1034000b900102037f017e230041206b22022400200241186a41808001360200200241b4820436021420024100360210230041206b22012400200241106a2203290204210420014100360218200120043703102000200141106a101620032001290310370204200141086a200320012802181033200241086a2001290308370300200141206a24002002280208200228020c1034000b2e01017f230041f0006b22012400200141086a200041e80010091a200142003703002001100f200141f0006a24000b2a01017f230041106b220324002003200137030820032000370300200220034110101b200341106a24000b5e01037f230041106b2203240002402000280208220420026a220520044f0440200341086a20042005200028020020002802041037200328020c2002470d0120032802082001200210091a20002005360208200341106a24000f0b000b000b5801017f230041106b220324000240200141004e0440027f2002450440200341086a2001103520032802080c010b200320014101103620032802000b22020d010b000b2000200136020420002002360200200341106a24000b0d00200120002802004120101b0b2d01017f2000280208220220002802044904402000200241016a360208200028020020026a20013a00000f0b000b4601017f027f2000280204220141044904404100210141010c010b2000200141046b36020420002000280200220041046a3602002000280000210141000bad2001ad420886840b1000200120021021200220002001101b0b7401017f230041106b2202240002402000413f4d044020012000410274101e0c010b200041ffff004d0440200220004102744101723b010e20012002410e6a4102101b0c010b200041ffffffff034d04402000410274410272200110270c010b20014103101e2000200110270b200241106a24000b970101017f230041406a22022400200241286a200141186a290000370300200241206a200141106a290000370300200241186a200141086a2900003703002002420037030820022001290000370310200241086a100e200241386a41808001360200200241b48204360234200241003602302002200241306a20001023200228020020022802041001200241086a100e1a200241406b24000b5602017f017e230041206b220324002001290204210420034100360218200320043703102002200341106a102720012003290310370204200341086a20012003280218103320002003290308370300200341206a24000bd60201047f230041406a220024000240100c41ff01714105470d00200041808001360214200041b48204360210200041106a102520002000290310370318200041186a101f4281feffffff1f8342808af5b7c00e51047f200028021c220141044f0440200028021828000021020b200141034b0541000b450d00100c41ff01714105470d00200041206a41808001360200200041b4820436021c20004100360218200041086a200041186a20021023200028020c2101200028020821032000200029021c37031041c80120032001200041106a1026100b41ff01714105470d0020004180800136021c200041b48204360218410a41b482044100200041186a1026100b41ff01714105470d00200041186a2201100a2001100e1a200041186a100e1a200041306a4200370300200041286a4200370300200041206a420037030020004200370318200220011022200041406b24000f0b000b3301017f230041106b220124002001200028020436020c20002802002001410c6a10042000200128020c100d200141106a24000b3901017f230041106b220424002004200328020436020c20002001200220032802002004410c6a10032003200428020c100d200441106a24000b2601017f230041106b220224002002200036020c20012002410c6a4104101b200241106a24000bd72702097f077e23004180066b22002400024002400240100c41ff01714105470d002000418080013602d404200041b482043602d004200041d0046a1025200020002903d0043703f004410921010240200041f0046a101f220a4201832209a70d00200a42807e8342002009501b22094280feffffff1f83220a422088a72103200a421888a72104200a421088a721050240027f02400240024002400240024002400240024002402009a741087641ff0171220641066b0e04010c0c07000b20064118460d0320064123460d0720064131460d02200641f000460d042006419501460d01200641a901460d05200641dd0147200541ff017141e2004772200441ff017141ed01472003413e4772720d0b20002802f40422024120490d0a20024160714120470d080c0a0b200541ff017141fd0147200441ff017141de0147720d0a410020034103460d081a0c0a0b200541ff017141d80147200441ff0171419b0147720d094101200341c100460d071a0c090b200541ff0171413c47200441ff017141e50147720d084102200341e700460d061a0c080b200541ff0171411647200441ff0171410d47720d074103200341dd01460d051a0c070b200541ff017141a00147200441ff017141820147722003413147720d0620002802f40422034120490d0620004190026a20002802f004220141096a29000037030020004198026a200141116a2900003703002000419f026a200141186a2900003700002000200341206b3602f4042000200141206a3602f004200020012900013703880220012d0000210241040c040b200541ff0171410547200441ff0171419c014772200341bb0147720d0520004190056a200041f0046a10292000290390054201510d04200041ee026a200041a6016a200041d0036a20004198056a41c000100941c000100941c00010091a20004188026a200041e8026a413f10091a2000200041aa036a28000036009305200020002800a7033602900541060c030b200541ff017141de0047200441ff017141a7014772200341b30147720d0420004190056a200041f0046a10292000290390054201510d03200041ee026a200041a6016a200041d0036a20004198056a41c000100941c000100941c00010091a20004188026a200041e8026a413f10091a2000200041aa036a28000036009305200020002800a7033602900541070c020b200541ff017141b80147200441ff017141f2004772200341dd0147720d0320002802f40422014120490d0220014160712202412046200241c00046720d02200041b0036a20002802f004220241c8006a290000370300200041b8036a200241d0006a290000370300200041c0036a200241d8006a290000370300200041f0026a200241086a290000370300200041f8026a200241106a29000037030020004180036a200241186a2900003703002000200141e0006b3602f4042000200241e0006a3602f004200020022900403703a803200020022900003703e802200041a0036a200241206a220141186a29000037030020004198036a200141106a29000037030020004190036a200141086a290000370300200020012900003703880320004188026a2201200041e8026a41e00010091a200041a6016a200041d0036a20004196056a200141e000100941e000100941e00010091a2001200041a0016a413f10091a20004190056a200041df016a412710091a41080c010b200041b7056a20002802f004220141286a290000370000200041bf056a200141306a290000370000200041c7056a200141386a29000037000020004198056a200141096a290000370300200041a0056a200141116a290000370300200041a7056a200141186a2900003700002000200241406a3602f4042000200141406b3602f004200020012900203700af05200020012900013703900520012d0000210220004188026a20004190056a413f10091a41050b2101200041e0006a20004188026a413f10091a200041386a20004190056a412710091a0c010b410921010b20014109460d0020004188026a2203200041e0006a413f10091a200041116a2204200041386a412710091a200041ca036a2003413f10091a20004189046a2004412710091a20004190056a2203100a2003100e2000418080013602a401200041b482043602a001200041a0016a102a0d0020002802a4014104490d0020002802a0012800002103200041b8016a20004190056a100e220441186a290000220a370300200041b0016a200441106a29000022093703002004290000210b200041ec006a200441086a290000370200200041f4006a2009370200200041fc006a200a370200200020033602602000200b370264200041e0006a410472210402400240024002400240024002400240024002400240200141016b0e080706050403020100080b100c41ff01714105470d0a200041a0016a200041d0036a41e00010091a41182101200041c8046a2202200041e8036a290000370300200041c0046a2203200041e0036a290000370300200041b8046a2205200041d8036a290000370300200020002900d0033703b004200041e8046a200041f8016a290300370300200041e0046a200041f0016a290300370300200041d8046a200041e8016a290300370300200020002903e0013703d004200041f0046a102b20004180036a2002290300370300200041f8026a2003290300370300200041f0026a2005290300370300200020002903b0043703e802200041a8056a20004188056a290300370300200041a0056a20004180056a29030037030020004198056a200041f8046a290300370300200020002903f00437039005200041386a200041e0006a200041e8026a20004190056a102c200041e0016a2102027f024002400240034020014178460d01200041d0046a20016a2103200041386a20016a200141086b2101290300220a20032903002209510d000b2009200a560d010b200041a8056a200241186a290300370300200041a0056a200241106a29030037030020004198056a200241086a2903003703002000200229030037039005200041e8026a20004190056a102d20002802e8024101460d0020002903f002210a20002802602101200041e0056a200041f8026a2903002209370300200041ac056a200041c8046a290300370200200041a4056a200041c0046a2903003702002000419c056a200041b8046a290300370200200041bc056a200041c8016a290300370200200041c4056a200041d0016a290300370200200041cc056a200041d8016a2903003702002000200a3703d805200020002903b00437029405200020002903c0013702b40520002001360290052000428080013702ec02200041b482043602e8022001200041e8026a2201102720004190056a41047220011015200041b4056a20011015200a20092001101a20002802ec02220520002802f0022201490d0d20002802e80221032000200520016b3602ec022000200120036a3602e80241cf0120032001200041e8026a1026100b41ff01714105460d010b41000c010b2000290340220920002903d8047d220a20095621012000290338220920002903d0047d220f2009560440200a200a42017d220a5420016a21010b20002903e004210c2000290348210920002903e804210d2000290350210b027f027f20014504402009200c7d220c2009560c010b2009200c7d220e2001ad7d220c200e562009200e546a0b2201450440200b200d7d2209200b560c010b200b200d7d220d2001ad7d2209200d56200b200d546a0b200020093703a8052000200c3703a0052000200a370398052000200f370390050d0b2004200041b0046a200041f0046a20004190056a2203102e200041c9056a200041c8046a290300370000200041c1056a200041c0046a290300370000200041b9056a200041b8046a290300370000200041b1056a20002903b004370000200041d2056a200041c0016a2201290100370100200041da056a200141086a290100370100200041e2056a200141106a290100370100200041ea056a200141186a29010037010020004198056a200241086a290300370300200041a0056a200241106a290300370300200041a8056a200241186a2903003703002000200229030037039005200041013a00d105200041013a00b0052003101941010b200028026041b6810410221017000b100c41ff01714105470d09200041e8026a200041d0036a41c00010091a200041e8046a2201200041e8036a290000370300200041e0046a2202200041e0036a290000370300200041d8046a2203200041d8036a290000370300200020002900d0033703d00420004188056a200041a0036a220529030037030020004180056a20004198036a2206290300370300200041f8046a20004190036a220729030037030020002000290388033703f004200041386a2208102b20042008200041d0046a200041f0046a102e200041d8016a200041d0006a290300370300200041d0016a200041c8006a290300370300200041c8016a200041406b290300370300200041e8016a2003290300370300200041f0016a2002290300370300200041f8016a2001290300370300200041a8016a2007290300370300200041b0016a2006290300370300200041b8016a2005290300370300200020002903383703c001200020002903d0043703e00120002000290388033703a00120004198056a200041a0016a41e00010091a200042013703900520004190056a100f200028026041b68104102241011017000b100c41ff01714105470d08200041a0016a200041d0036a220141c00010091a200041a8056a200041d8016a290300370300200041a0056a200041d0016a29030037030020004198056a200041c8016a290300370300200020002903c00137039005200041e8026a20004190056a102d20002802e8024101460d0620002903f002210a200041c0056a200041f8026a2903002209370300200041ac056a200141186a290000370200200041a4056a200141106a2900003702002000419c056a200141086a2900003702002000200a3703b805200020033602900520002001290000370294052000428080013702ec02200041b482043602e8022003200041e8026a2202102720004190056a41047220021015200a20092002101a20002802ec02220220002802f0022204490d0820002802e80221052000200220046b3602ec022000200420056a3602e8024100210241ce0120052004200041e8026a1026100b41ff01714105470d09200041b1056a102b200041ea056a200141186a290000370100200041e2056a200141106a290000370100200041da056a200141086a290000370100200041d2056a200129000037010020004198056a200041c0016a220141086a290300370300200041a0056a200141106a290300370300200041a8056a200141186a29030037030041012102200041013a00d105200041013a00b005200020012903003703900520004190056a10190c090b100c41ff01714105470d0720004190056a20004188026a413f10091a200041f1026a20004190026a290100370000200041f9026a20004198026a29010037000020004180036a2000419f026a290000370000200020023a00e80220002000290188023700e902200041b8016a200041c7056a290000370300200041b0016a200041bf056a290000370300200041a8016a200041b7056a290000370300200020002900af053703a001200041386a2201200041e0006a200041e8026a200041a0016a102c20011018000b100c41ff01714105470d062000419d056a20004190026a290100370000200041a5056a20004198026a290100370000200041ac056a2000419f026a290000370000200020023a00940520002000290188023700950520002003360290052000428080013702a401200041b482043602a0012003200041a0016a2201102720004190056a4104722001101520002802a401220320002802a8012201490d0620002802a00121022000200320016b3602ec022000200120026a3602e80241cd0120022001200041e8026a1026100b41ff01714105470d0620002802ec02410f4d0d06200041b8016a4200370300200042003703b001200020002802e80222012900003703a0012000200141086a2900003703a801200041a0016a1018000b100c41ff01714105470d05200041a8016a41808001360200200041b482043602a401200041003602a001200041086a200041a0016a20031023200028020c210120002802082102200020002902a4013703e80241cc0120022001200041e8026a1026100b41ff01714105470d0520002802ec02410f4d0d05200041a8056a4200370300200042003703a005200020002802e8022201290000370390052000200141086a2900003703980520004190056a1018000b100c41ff01714105470d0420004198056a41808001360200200041b48204360294052000410036029005200020004190056a20031023200028020421012000280200210220002000290294053703a00141cb0120022001200041a0016a1026100b41ff01714105470d0420002802a401450d0420002802a0012d00001017000b100c41ff01714105470d0320004190056a41ca012003102f20002d0090054101460d030c050b100c41ff01714105460d010c020b410021020c020b20004190056a41c9012003102f20002d0090054101460d000c020b000b200341b68104102220021017000b200041a8016a2000419c056a28020036020020002000290294053703a001230041206b22022400200241186a41808001360200200241b4820436021420024100360210230041206b22012400200241106a2203290204210a200141003602182001200a370310200041a0016a22002802002000280208200141106a102020032001290310370204200141086a200320012802181033200241086a2001290308370300200141206a24002002280208200228020c1034000bf70101057f230041406a2202240002402001280204220541204f04402001200541206b220636020420012001280200220341206a2204360200200641204f04402001200541406a3602042001200341406b360200200241286a200441086a290000370300200241306a200441106a290000370300200241386a200441186a290000370300200241086a200341086a290000370300200241106a200341106a290000370300200241186a200341186a2900003703002002200429000037032020022003290000370300200041086a200241c00010091a200042003703000c020b200042013703000c010b200042013703000b200241406b24000b5401017f230041106b220224002002200128020436020c200020012802002002410c6a100221002001200228020c100d410c21012000410b4d0440200041027441fc81046a28020021010b200241106a240020010b6001017f230041106b2201240020004200370000200041186a4200370000200041106a4200370000200041086a420037000020014120360204200120003602002001412036020c20002001410c6a10072001200128020c100d200141106a24000bcb0501057f230041b0016b22042400200441206a200241186a290000370300200441186a200241106a290000370300200441106a200241086a290000370300200441306a200341086a290000370300200441386a200341106a290000370300200441406b200341186a29000037030020042002290000370308200420032900003703282004200141046a3602a8012004200441086a22063602ac01200441a0016a2201420037030020044198016a2202420037030020044190016a22034200370300200442003703880120044280800137026c200441b48204360268200441a8016a200441e8006a2205101d200620051015200441286a20051015024020042802702205200428026c4b0d002004280268200520044188016a1006200441e0006a2001290300370300200441d8006a2002290300370300200441d0006a200329030037030020042004290388013703482004418080013602ac01200441b482043602a801410021024100210302400240200441c8006a200441a8016a102a0e0400020201020b4101210320042802ac014120490d0020044190016a20042802a801220141086a29000037030020044198016a200141106a290000370300200441a0016a200141186a290000370300200420012900003703880141012102410021030b20030d0020044180016a2206200441a0016a2201290300370300200441f8006a220720044198016a2203290300370300200441f0006a220820044190016a2205290300370300200420042903880137036802402002044020012006290300370300200320072903003703002005200829030037030020042004290368370388010c010b20054200370300200342003703002001420037030020044200370388010b2000200429038801370300200041186a200441a0016a290300370300200041106a20044198016a290300370300200041086a20044190016a290300370300200441b0016a24000f0b000ba40101047f230041206b220241186a200141186a290300370300200241106a2203200141106a290300370300200241086a200141086a29030037030020022001290300370300410021010340200141086a2204411846044020004100360200200041106a2002290308370300200041086a20022903003703000f0b200120036a20042101290300500d000b200041d6810436020420004101360200200041086a41253602000b9c0201027f230041d0006b220424002004200236020420042001360200200420003602282004200436022c200441c8006a22004200370300200441406b22014200370300200441386a220242003703002004420037033020044280800137020c200441b48204360208200441286a200441086a2205101d200428020020051015200428020420051015024020042802102205200428020c4b0d0020042802082005200441306a22051006200441206a2000290300370300200441186a2001290300370300200441106a200229030037030020042004290330370308200442808001370234200441b48204360230200520034120101b2004280238220020042802344b0d00200441086a200428023020001001200441d0006a24000f0b000b920401047f230041406a22032400200341186a41808001360200200341b4820436021420034100360210200341086a200341106a20021023200328020c210220032802082104200320032902143703200240200120042002200341206a1026100b41ff0171220141054604402003280220210120032003280224220436022c2003200136022802402004450d002003200441016b220536022c2003200141016a360228024020012d0000220241037122064103470440024002400240200641016b0e020102000b200241027621010c030b200320023a0035200341013a00342003200341286a360230200341003b013c200341306a2003413c6a41021030220245044020032f013c21010b2002200141ffff037141ff014d720d03200141fcff037141027621010c020b200320023a0035200341013a00342003200341286a3602302003410036023c200341306a2003413c6a410410300d02200328023c220141808004490d02200141027621010c010b2005410449200241044f720d012003200441056b36022c2003200141056a3602282001280001220141ffffffff034d0d010b200328022c2001490d00200320014101101c200328022c2001490d0020032802042102200041046a2003280200200328022820011009360200200041003a0000200041086a2002ad2001ad422086843702000c020b410421010b200041013a0000200020013a00010b200341406b24000b910101027f20002f01042103200041003a0004410121040240024020034101714504402000280200220028020422032002490d02200120002802002201200210091a0c010b200120034108763a0000200028020022002802042203200241016b2202490d01200141016a20002802002201200210091a0b2000200320026b3602042000200120026a360200410021040b20040bb00101077f230041206b2203240020004200370000200041186a22044200370000200041106a22054200370000200041086a220642003700000240200241214f0440200341186a22074200370300200341106a22084200370300200341086a22094200370300200342003703002001200220031006200420072903003700002005200829030037000020062009290300370000200020032903003700000c010b20002001200210091a0b200341206a24000b8d0101047f230041106b2202240020002802042105200041fc8104360204200041086a220328020021042003410036020002402000280200220320044d0440200241003602082002200420036b3602042002200320056a360200200120021015200320022802086a220120034f0d010b000b200020043602082000200536020420002001360200200241106a24000b5201027f200141086a220328020021042003410036020020012802042103200141fc8104360204200220044b0440000b2001200420026b3602082001200220036a36020420002002360204200020033602000b0b004100200020011005000b3301017f230041106b22022400200241086a200141001036200020022802083602002000200228020c360204200241106a24000b9d0201047f02402001450440410121040c010b41ac8204280200220320016a220520034921060240027f200245044020060d032003200541b082042802004d0d011a200141ffff036a22032001490d02200341107640002202417f46200241ffff0371200247720d022002411074220220034180807c716a22032002490d0341b082042003360200200120026a22052002490d0320020c010b20060d022003200541b082042802004d0d001a200141ffff036a22032001490d01200341107640002202417f46200241ffff0371200247720d012002411074220220034180807c716a22032002490d0241b082042003360200200120026a22052002490d0220020b210441ac820420053602000c010b0b20002001360204200020043602000b31000240200120024b200220044b720d002002200220016b2202490d00200020023602042000200120036a3602000f0b000b0b99020200418080040bb6014e6174697665546f6b656e3a3a5472616e73666572000000fc00010000000000000001004e6174697665546f6b656e3a3a5472616e736665723a3a66726f6d4e6174697665546f6b656e3a3a5472616e736665723a3a746f4e6174697665546f6b656e3a3a417070726f76616c000000fc00010000000000580001004e6174697665546f6b656e3a3a417070726f76616c3a3a6f776e65724e6174697665546f6b656e3a3a417070726f76616c3a3a7370656e6465720041d681040b53696e7465676572206f766572666c6f77207768656e2063617374696e6720746f207531323800000000000100000002000000030000000400000005000000060000000700000008000000090000000c0000000b"},"contract":{"name":"native_fungible_token","version":"3.0.1","authors":["Nimish Agrawal nimish@lagu.na"],"description":"A system-contract used to expose native token as multilayer assets in ERC-20 standard"},"V3":{"spec":{"constructors":[{"args":[{"label":"token_id","type":{"displayName":["u32"],"type":0}}],"docs":["Creates an ERC-20 contract wrapper around an existing native token"],"label":"create_wrapper_token","payable":false,"selector":"0x45fd0674"}],"docs":[],"events":[{"args":[{"docs":[],"indexed":true,"label":"from","type":{"displayName":["Option"],"type":12}},{"docs":[],"indexed":true,"label":"to","type":{"displayName":["Option"],"type":12}},{"docs":[],"indexed":false,"label":"value","type":{"displayName":["U256"],"type":10}}],"docs":[" Event emitted when a token transfer occurs."],"label":"Transfer"},{"args":[{"docs":[],"indexed":true,"label":"owner","type":{"displayName":["AccountId"],"type":3}},{"docs":[],"indexed":true,"label":"spender","type":{"displayName":["AccountId"],"type":3}},{"docs":[],"indexed":false,"label":"value","type":{"displayName":["U256"],"type":10}}],"docs":[" Event emitted when an approval occurs that `spender` is allowed to withdraw"," up to the amount of `value` tokens from `owner`."],"label":"Approval"}],"messages":[{"args":[],"docs":[" Returns the name of the token"],"label":"name","mutates":false,"payable":false,"returnType":{"displayName":["StorageVec"],"type":9},"selector":"0x06fdde03"},{"args":[],"docs":[" Returns the ticker of the token"],"label":"symbol","mutates":false,"payable":false,"returnType":{"displayName":["StorageVec"],"type":9},"selector":"0x95d89b41"},{"args":[],"docs":[" Returns the decimals places used in the token"],"label":"decimals","mutates":false,"payable":false,"returnType":{"displayName":["u8"],"type":5},"selector":"0x313ce567"},{"args":[],"docs":[" Returns the total token supply"],"label":"total_supply","mutates":false,"payable":false,"returnType":{"displayName":["U256"],"type":10},"selector":"0x18160ddd"},{"args":[{"label":"owner","type":{"displayName":["AccountId"],"type":3}}],"docs":[" Returns the account balance for the specified `owner`"],"label":"balance_of","mutates":false,"payable":false,"returnType":{"displayName":["U256"],"type":10},"selector":"0x70a08231"},{"args":[{"label":"owner","type":{"displayName":["AccountId"],"type":3}},{"label":"spender","type":{"displayName":["AccountId"],"type":3}}],"docs":[" Returns the amount which `spender` is still allowed to withdraw from `owner`.",""," Returns `0` if no allowance has been set."],"label":"allowance","mutates":false,"payable":false,"returnType":{"displayName":["U256"],"type":10},"selector":"0xdd62ed3e"},{"args":[{"label":"to","type":{"displayName":["AccountId"],"type":3}},{"label":"value","type":{"displayName":["U256"],"type":10}}],"docs":[" Transfers `value` amount of tokens from the caller's account to account `to`.",""," On success a `Transfer` event is emitted."],"label":"transfer","mutates":true,"payable":false,"returnType":{"displayName":["bool"],"type":11},"selector":"0xa9059cbb"},{"args":[{"label":"spender","type":{"displayName":["AccountId"],"type":3}},{"label":"value","type":{"displayName":["U256"],"type":10}}],"docs":[" Allows `spender` to withdraw from the caller's account multiple times, up to"," the `value` amount.",""," If this function is called again it overwrites the current allowance with `value`.",""," An `Approval` event is emitted."],"label":"approve","mutates":true,"payable":false,"returnType":{"displayName":["bool"],"type":11},"selector":"0x095ea7b3"},{"args":[{"label":"from","type":{"displayName":["AccountId"],"type":3}},{"label":"to","type":{"displayName":["AccountId"],"type":3}},{"label":"value","type":{"displayName":["U256"],"type":10}}],"docs":[" Transfers `value` tokens on the behalf of `from` to the account `to`.",""," On success a `Transfer` event is emitted."],"label":"transfer_from","mutates":true,"payable":false,"returnType":{"displayName":["bool"],"type":11},"selector":"0x23b872dd"}]},"storage":{"struct":{"fields":[{"layout":{"cell":{"key":"0x0000000000000000000000000000000000000000000000000000000000000000","ty":0}},"name":"token_id"},{"layout":{"cell":{"key":"0x0100000000000000000000000000000000000000000000000000000000000000","ty":1}},"name":"allowances"}]}},"types":[{"id":0,"type":{"def":{"primitive":"u32"}}},{"id":1,"type":{"def":{"composite":{"fields":[{"name":"offset_key","type":8,"typeName":"Key"}]}},"params":[{"name":"K","type":2},{"name":"V","type":6}],"path":["ink_storage","lazy","mapping","Mapping"]}},{"id":2,"type":{"def":{"tuple":[3,3]}}},{"id":3,"type":{"def":{"composite":{"fields":[{"type":4,"typeName":"[u8; 32]"}]}},"path":["ink_env","types","AccountId"]}},{"id":4,"type":{"def":{"array":{"len":32,"type":5}}}},{"id":5,"type":{"def":{"primitive":"u8"}}},{"id":6,"type":{"def":{"array":{"len":4,"type":7}}}},{"id":7,"type":{"def":{"primitive":"u64"}}},{"id":8,"type":{"def":{"composite":{"fields":[{"type":4,"typeName":"[u8; 32]"}]}},"path":["ink_primitives","Key"]}},{"id":9,"type":{"def":{"sequence":{"type":5}}}},{"id":10,"type":{"def":{"composite":{"fields":[{"type":6,"typeName":"[u64; 4]"}]}},"path":["primitive_types","U256"]}},{"id":11,"type":{"def":{"primitive":"bool"}}},{"id":12,"type":{"def":{"variant":{"variants":[{"index":0,"name":"None"},{"fields":[{"type":3}],"index":1,"name":"Some"}]}},"params":[{"name":"T","type":3}],"path":["Option"]}}]}} \ No newline at end of file diff --git a/runtime/integration-tests/contracts-data/ink/native_fungible_token/dist/native_fungible_token.wasm b/runtime/integration-tests/contracts-data/ink/native_fungible_token/dist/native_fungible_token.wasm index 7db17252220d4254ed41c9247a48a5f573560e5f..c87a0795893c4ec9ac81e922d3c2306f8c3f5935 100644 GIT binary patch delta 1502 zcmZ`(O>7%Q6rMLbYkR$Gd-7vDj^lW2$8l_@Nt!gaXhFh`dEB!pC{6jD%oaB?X> zhk}Ab1gd~TQ(mcr%1^0+L^%;m$^isaTpCDeIS@`o;sA;`MIcoIDup*rQo;dSyE{AY z&9~q8&3p6l6IYJT7h9nY^-0Di?YjAy@tJ*Zfd9<*rvgKRg4+RRWDHyES0RIM*>n9$S&H}ZfR4(fvS^Uy z<{=&oF^bTLDK2*_P?j9V2Ye?$;a-2**{zroa##sG?t8>5@lAgcx^T&V1S;4TxCoh7fu{T zaMekRJ|t^+k0 zMjaZxr(jGfTC&Oo?N5N@nooDg5rUxkK-HpWQ<}TVLDX|hkJYlQhw(A#VI!1j%~K{b z2v!GK)KQaZ{54bo4^!b`$l*ibMCdAk5->CJdvP(;hHr;EGQHB(8*oC~_tUPKm06HM z;vMeX#0leX;WA_~7O7Cd9gN&X_fwJHY?Am(^4k5ez@57P1)?X>+4kMtzB zc-;_HYh7q31AL5d*98%5gk=|pB9>cEL$UE$Ysey-mZM21;V;oVjosL35^z5D5tQ*j zd>;DoX8auN!e=^uRs}+tw`*EFMO;m#equL^L&~0egr;3$eSA`1eo@G*j5C)QFC`moWhGRA0B?xe7SjQIzUx|hWJfv`!{&lVQ`1Cf zIdwL+gAgY|h6X1ZPj^=`-vPCcAh0bO+kQJVwP@F58Gq`&;7fRpq3}}rE2p0nbTkPa zRL_NXAd^)5K@G>RQS~&p^1p~UoEf(_7tUlVBRRv^%g~lnZ)QxrvLauAs0F%ZshXRk^I%64Hh#~QfQl=XpP~Et{2wxQfHKW66BUe?Xyij3%FQ12Sd2Oe2DJvm5)GI UW20T`Fz3ck5ZFZkCE3GQbBoPella*LTb4Ou%Q z9@{lF#nyxtb`0T3xF3i3RkT2b<)38Pi|33az9ejD$75o*)uBxHJgX^?9T+eNx;n|z$KJlvQYLL0 zP?J&IXdVQGpPMswQW=WpdBBazIPUQE_=goJL$1T;e0vJ|P{fZ@v+#GlV*5kFn@s79>D-LIY8+F)!II{u24axvrb){zYNTwS`@Yzf< zG|H^kR~uy@e)AMY@j_?~gmEEMqVI9*P71T(_63#V zL>36&6Lu2%@MT;3JZ<;LoW20Aq3Mu84zJh`gM%BKTxVKK%k&^5DDDPo(!r;k@?AMC za>0;eTu>kbq=9}qCP&BxeGiNoG<$rlMGm5#VQ#gSW?9Co(!!sdRC|^znf74BNVix` z_G2tu0SmWeGu%X2$LiV~lc;hFN@F+;i+BbpoCAi)OG;PS2R^9`ZlKkfdpwB+CO zjJpJTTyx7_JRMG#|J{UAK|h@a86x6NyamL;-@+wGp^8)}#kWT`&^Q;#rQ;-kq?EAU z>U0zn?fYe3LCwyy_AAE|P^TE=GEwzZsLg9P(IhKLq*aN9~T$=aBzK11kKuCU9m( zRQSAJ%~MJj@R#TSsUGb*L>ipvIt4|1uzMCtc(wZ|+=lyOKdKzr&YCq>>?O3iFwU4> z@~Myt(w82r_lyi&UKZ#YUslLrw`zpvdwz#Od?)@xH0DzDN#+Un>;WNDvYS~Hp_7Sb zN0I6zK(AaBH5#vrnjFL@dq3+8uQI13YhAdnZ;DX9*LS3A6-rJhH8xJz9`CP|zll%@ z3v$-NCYGZo{uw;8`_N`Z_|X zu64bsz^(jOa%4%3n=NPerYexe1F1ymtN(GonOeTTm>R8nX)9W3%Tl`DSb-lg$BcP! zzg+gJqx~OgNfPBLNj5v)VjigZv}C@4+o6i^GT{pfwj9#kY1VY1I_?;@NjkO6#vQP^ zTm?0F zy}*sR87MR_z6*$J8>s<4uK0>NBSb1$Yy$6tu=|#dxU|5XuGawFys::Balance; pub trait NativeTokenRuntimeExt { type ErrorCode = ExtensionError; - #[ink(extension = 0010, returns_result = false)] + #[ink(extension = 10, returns_result = false)] fn whitelist_contract(); - #[ink(extension = 2000, returns_result = false)] + #[ink(extension = 200, returns_result = false)] fn is_valid_token(token_id: u32); - #[ink(extension = 2001)] + #[ink(extension = 201)] fn name(token_id: u32) -> Result, ExtensionError>; - #[ink(extension = 2002)] + #[ink(extension = 202)] fn symbol(token_id: u32) -> Result, ExtensionError>; - #[ink(extension = 2003)] + #[ink(extension = 203)] fn decimals(token_id: u32) -> Result; - #[ink(extension = 2004)] + #[ink(extension = 204)] fn total_supply(token_id: u32) -> Result; - #[ink(extension = 2005)] + #[ink(extension = 205)] fn balance_of(token_id: u32, owner: AccountId) -> Result; - #[ink(extension = 2006, returns_result = false)] + #[ink(extension = 206, returns_result = false)] fn transfer(token_id: u32, to: AccountId, value: Balance); - #[ink(extension = 2007, returns_result = false)] + #[ink(extension = 207, returns_result = false)] fn transfer_from(token_id: u32, from: AccountId, to: AccountId, value: Balance); } diff --git a/runtime/integration-tests/src/contracts.rs b/runtime/integration-tests/src/contracts.rs index 4dca31d..2b8d6b2 100644 --- a/runtime/integration-tests/src/contracts.rs +++ b/runtime/integration-tests/src/contracts.rs @@ -326,8 +326,9 @@ mod tests { #[test] fn test_fixed_address() { - let deploying_key = - ::PalletId::get().into_account(); + let deploying_key = ::PalletId::get() + .try_into_account() + .expect("Invalid PalletId"); ExtBuilder::default() .balances(vec![(ALICE, LAGUNA_TOKEN, LAGUNAS), (deploying_key, LAGUNA_TOKEN, LAGUNAS)]) .sudo(ALICE) diff --git a/runtime/integration-tests/src/contracts/consume_native_token.rs b/runtime/integration-tests/src/contracts/consume_native_token.rs index 906415f..52db415 100644 --- a/runtime/integration-tests/src/contracts/consume_native_token.rs +++ b/runtime/integration-tests/src/contracts/consume_native_token.rs @@ -82,8 +82,9 @@ mod tests { #[test] fn test_ink_multilayer_erc20() { - let deploying_key = - ::PalletId::get().into_account(); + let deploying_key = ::PalletId::get() + .try_into_account() + .expect("Invalid PalletId"); ExtBuilder::default() .balances(vec![(ALICE, LAGUNA_TOKEN, 10*LAGUNAS),(BOB, LAGUNA_TOKEN, 10*LAGUNAS),(EVA, LAGUNA_TOKEN, 10*LAGUNAS), (deploying_key, LAGUNA_TOKEN, 10*LAGUNAS)]) .build() @@ -332,8 +333,9 @@ mod tests { #[test] fn test_solang_multilayer_amm() { - let deploying_key = - ::PalletId::get().into_account(); + let deploying_key = ::PalletId::get() + .try_into_account() + .expect("Invalid PalletId"); ExtBuilder::default() .balances(vec![(ALICE, LAGUNA_TOKEN, 1000*LAGUNAS), (deploying_key, LAGUNA_TOKEN, 10*LAGUNAS)]) .build() diff --git a/runtime/src/contract_extensions.rs b/runtime/src/contract_extensions.rs index edb67e7..b424de3 100644 --- a/runtime/src/contract_extensions.rs +++ b/runtime/src/contract_extensions.rs @@ -10,13 +10,14 @@ pub struct DemoExtension; impl ChainExtension for DemoExtension { fn call( - func_id: u32, + &mut self, env: Environment, ) -> pallet_contracts::chain_extension::Result where E: Ext, ::AccountId: UncheckedFrom<::Hash> + AsRef<[u8]>, { + let func_id = env.func_id(); match func_id { 1000 => { let mut env = env.buf_in_buf_out(); diff --git a/runtime/src/impl_orml_tokens.rs b/runtime/src/impl_orml_tokens.rs index 7f756f3..65f1d05 100644 --- a/runtime/src/impl_orml_tokens.rs +++ b/runtime/src/impl_orml_tokens.rs @@ -54,4 +54,6 @@ impl orml_tokens::Config for Runtime { type MaxReserves = ConstU32<2>; type ReserveIdentifier = ReserveIdentifier; + type OnNewTokenAccount = (); + type OnKilledTokenAccount = (); } diff --git a/runtime/src/impl_pallet_contracts.rs b/runtime/src/impl_pallet_contracts.rs index 96478b4..81e9099 100644 --- a/runtime/src/impl_pallet_contracts.rs +++ b/runtime/src/impl_pallet_contracts.rs @@ -6,7 +6,7 @@ use crate::{ impl_pallet_currencies::NativeCurrencyId, Call, Event, RandomnessCollectiveFlip, Runtime, Timestamp, TransactionPayment, Weight, }; -use frame_support::parameter_types; +use frame_support::{parameter_types, traits::ConstU32}; use orml_tokens::CurrencyAdapter; use pallet_contracts::DefaultContractAccessWeight; use pallet_system_contract_deployer::CustomAddressGenerator; @@ -33,18 +33,7 @@ parameter_types! { ::WeightInfo::on_initialize_per_queue_item(1) - ::WeightInfo::on_initialize_per_queue_item(0) )) / 5) as u32; - pub Schedule: pallet_contracts::Schedule = { - let mut schedule = pallet_contracts::Schedule::::default(); - // We decided to **temporarily* increase the default allowed contract size here - // (the default is `128 * 1024`). - // - // Our reasoning is that a number of people ran into `CodeTooLarge` when trying - // to deploy their contracts. We are currently introducing a number of optimizations - // into ink! which should bring the contract sizes lower. In the meantime we don't - // want to pose additional friction on developers. - schedule.limits.code_len = 256 * 1024; - schedule - }; + pub Schedule: pallet_contracts::Schedule = Default::default(); } impl pallet_contracts::Config for Runtime { @@ -75,4 +64,16 @@ impl pallet_contracts::Config for Runtime { type AddressGenerator = CustomAddressGenerator; type ContractAccessWeight = DefaultContractAccessWeight<()>; + + // This node is geared towards development and testing of contracts. + // We decided to increase the default allowed contract size for this + // reason (the default is `128 * 1024`). + // + // Our reasoning is that the error code `CodeTooLarge` is thrown + // if a too-large contract is uploaded. We noticed that it poses + // less friction during development when the requirement here is + // just more lax. + type MaxCodeLen = ConstU32<{ 256 * 1024 }>; + type RelaxedMaxCodeLen = ConstU32<{ 512 * 1024 }>; + type MaxStorageKeyLen = ConstU32<128>; } diff --git a/runtime/src/impl_pallet_contracts/chain_extensions.rs b/runtime/src/impl_pallet_contracts/chain_extensions.rs index 9237192..5635d11 100644 --- a/runtime/src/impl_pallet_contracts/chain_extensions.rs +++ b/runtime/src/impl_pallet_contracts/chain_extensions.rs @@ -10,11 +10,12 @@ use pallet_contracts::chain_extension::{ use primitives::{AccountId, Balance, CurrencyId, TokenId, TokenMetadata}; use sp_runtime::DispatchError; +#[derive(Default)] pub struct DemoExtension; impl ChainExtension for DemoExtension { fn call( - func_id: u32, + &mut self, env: Environment, ) -> pallet_contracts::chain_extension::Result where @@ -22,19 +23,21 @@ impl ChainExtension for DemoExtension { ::AccountId: UncheckedFrom<::Hash> + AsRef<[u8]>, { let mut env = env.buf_in_buf_out(); + let func_id = env.func_id(); + match func_id { - 0010 => { + 10 => { // Whitelist contract after verification // @dev: Currently only system-contracts are whitelisted Ok(RetVal::Converging(0)) }, - 1000 => { + 100 => { let arg: [u8; 32] = env.read_as()?; env.write(&arg, false, None) .map_err(|_| DispatchError::Other("ChainExtension failed to call demo"))?; Ok(RetVal::Converging(0)) }, - _ if (2000..3000).contains(&func_id) => { + _ if (200..210).contains(&func_id) => { // Native token access as ERC20 token let token_id: u32 = env.read_as()?; let currency = CurrencyId::NativeToken(match token_id { @@ -44,8 +47,8 @@ impl ChainExtension for DemoExtension { }); match func_id { - 2000 => Ok(RetVal::Converging(0)), - 2001 => { + 200 => Ok(RetVal::Converging(0)), + 201 => { // Get token name let name = currency.name(); env.write(&name.encode(), false, None).map_err(|_| { @@ -53,7 +56,7 @@ impl ChainExtension for DemoExtension { })?; Ok(RetVal::Converging(0)) }, - 2002 => { + 202 => { // Get token symbol let symbol = currency.symbol(); env.write(&symbol.encode(), false, None).map_err(|_| { @@ -61,7 +64,7 @@ impl ChainExtension for DemoExtension { })?; Ok(RetVal::Converging(0)) }, - 2003 => { + 203 => { // Get token decimals let decimals = currency.decimals(); env.write(&decimals.encode(), false, None).map_err(|_| { @@ -69,7 +72,7 @@ impl ChainExtension for DemoExtension { })?; Ok(RetVal::Converging(0)) }, - 2004 => { + 204 => { // Get total supply let supply = Currencies::total_issuance(currency); env.write(&supply.encode(), false, None).map_err(|_| { @@ -77,7 +80,7 @@ impl ChainExtension for DemoExtension { })?; Ok(RetVal::Converging(0)) }, - 2005 => { + 205 => { // Get balance let (_, account): (u32, AccountId) = env.read_as()?; @@ -87,7 +90,7 @@ impl ChainExtension for DemoExtension { })?; Ok(RetVal::Converging(0)) }, - 2006 => { + 206 => { // Transfer tokens let from: AccountId = env.ext().caller().clone(); let (_, to, value): (u32, AccountId, Balance) = env.read_as()?; @@ -106,7 +109,7 @@ impl ChainExtension for DemoExtension { }; Ok(RetVal::Converging(err_code)) }, - 2007 => { + 207 => { // transfer_from // @dev: This is an UNSAFE method. Only whitelisted contracts can access it! diff --git a/runtime/src/impl_pallet_transaction_payment.rs b/runtime/src/impl_pallet_transaction_payment.rs index ce0786f..e835b0c 100644 --- a/runtime/src/impl_pallet_transaction_payment.rs +++ b/runtime/src/impl_pallet_transaction_payment.rs @@ -1,4 +1,4 @@ -use crate::{FluentFee, Runtime}; +use crate::{Event, FluentFee, Runtime}; use frame_support::{parameter_types, weights::IdentityFee}; use primitives::Balance; @@ -8,6 +8,7 @@ parameter_types! { impl pallet_transaction_payment::Config for Runtime { // TODO: add benchmark around cross pallet interaction between fee + type Event = Event; type OnChargeTransaction = FluentFee; type OperationalFeeMultiplier = OperationalFeeMultiplier; type WeightToFee = IdentityFee; diff --git a/runtime/src/impl_pallet_treasury.rs b/runtime/src/impl_pallet_treasury.rs index 9a2c094..e976277 100644 --- a/runtime/src/impl_pallet_treasury.rs +++ b/runtime/src/impl_pallet_treasury.rs @@ -34,4 +34,5 @@ impl pallet_treasury::Config for Runtime { type SpendFunds = (); type WeightInfo = (); type MaxApprovals = ConstU32<30>; + type SpendOrigin = frame_support::traits::NeverEnsureOrigin; } diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index aa99030..d6909d4 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -369,7 +369,7 @@ impl_runtime_apis! { fn get_storage( address: AccountId, - key: [u8; 32], + key: Vec, ) -> pallet_contracts_primitives::GetStorageResult { Contracts::get_storage(address, key) }