diff --git a/Cargo.lock b/Cargo.lock index c3fed47ae1..edcad8ebf0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -39,13 +39,13 @@ dependencies = [ "polkadot-primitives", "polkadot-service", "sc-cli", - "sc-executor", + "sc-executor 0.35.0", "sc-service", "sc-telemetry", "sc-tracing", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "substrate-build-script-utils", "try-runtime-cli", ] @@ -56,7 +56,7 @@ version = "2.24.0" dependencies = [ "bstringify", "enumflags2", - "frame-support", + "frame-support 31.0.0", "hex-literal", "log", "module-evm-utility", @@ -69,10 +69,10 @@ dependencies = [ "scale-info", "serde", "serde_json", - "sp-api", - "sp-core", - "sp-io", - "sp-runtime", + "sp-api 29.0.0", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -86,15 +86,15 @@ dependencies = [ "pallet-transaction-payment-rpc", "parity-scale-codec", "runtime-common", - "sc-client-api", + "sc-client-api 31.0.0", "sc-consensus-manual-seal", "sc-rpc", "sc-rpc-api", - "sc-transaction-pool-api", - "sp-api", + "sc-transaction-pool-api 31.0.0", + "sp-api 29.0.0", "sp-block-builder", - "sp-blockchain", - "sp-runtime", + "sp-blockchain 31.0.0", + "sp-runtime 34.0.0", "substrate-frame-rpc-system", ] @@ -112,7 +112,7 @@ dependencies = [ "cumulus-primitives-utility", "frame-benchmarking", "frame-executive", - "frame-support", + "frame-support 31.0.0", "frame-system", "frame-system-rpc-runtime-api", "frame-try-runtime", @@ -196,20 +196,20 @@ dependencies = [ "scale-info", "serde_json", "smallvec", - "sp-api", - "sp-application-crypto", + "sp-api 29.0.0", + "sp-application-crypto 33.0.0", "sp-block-builder", "sp-consensus-aura", - "sp-core", - "sp-inherents", - "sp-io", + "sp-core 31.0.0", + "sp-inherents 29.0.0", + "sp-io 33.0.0", "sp-offchain", - "sp-runtime", + "sp-runtime 34.0.0", "sp-session", - "sp-staking", + "sp-staking 29.0.0", "sp-std", "sp-transaction-pool", - "sp-version", + "sp-version 32.0.0", "staging-parachain-info", "staging-xcm", "staging-xcm-builder", @@ -245,7 +245,7 @@ dependencies = [ "cumulus-relay-chain-rpc-interface", "cumulus-test-relay-sproof-builder", "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system-rpc-runtime-api", "frame-try-runtime", "futures", @@ -266,13 +266,13 @@ dependencies = [ "sc-basic-authorship", "sc-chain-spec", "sc-cli", - "sc-client-api", + "sc-client-api 31.0.0", "sc-consensus", "sc-consensus-aura", "sc-consensus-grandpa", "sc-consensus-manual-seal", "sc-consensus-slots", - "sc-executor", + "sc-executor 0.35.0", "sc-network", "sc-network-common", "sc-network-sync", @@ -282,27 +282,27 @@ dependencies = [ "sc-telemetry", "sc-tracing", "sc-transaction-pool", - "sc-transaction-pool-api", + "sc-transaction-pool-api 31.0.0", "serde", "serde_json", - "sp-api", + "sp-api 29.0.0", "sp-block-builder", - "sp-blockchain", - "sp-consensus", + "sp-blockchain 31.0.0", + "sp-consensus 0.35.0", "sp-consensus-aura", - "sp-core", - "sp-inherents", - "sp-io", - "sp-keystore", + "sp-core 31.0.0", + "sp-inherents 29.0.0", + "sp-io 33.0.0", + "sp-keystore 0.37.0", "sp-offchain", - "sp-runtime", + "sp-runtime 34.0.0", "sp-session", "sp-std", - "sp-storage", + "sp-storage 20.0.0", "sp-timestamp", "sp-transaction-pool", - "sp-trie", - "sp-version", + "sp-trie 32.0.0", + "sp-version 32.0.0", "substrate-prometheus-endpoint", "tiny-keccak", ] @@ -498,6 +498,20 @@ dependencies = [ "num-traits", ] +[[package]] +name = "aquamarine" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1da02abba9f9063d786eab1509833ebb2fac0f966862ca59439c76b9c566760" +dependencies = [ + "include_dir", + "itertools 0.10.5", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 1.0.109", +] + [[package]] name = "aquamarine" version = "0.4.0" @@ -509,7 +523,21 @@ dependencies = [ "proc-macro-error", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", +] + +[[package]] +name = "aquamarine" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "21cc1548309245035eb18aa7f0967da6bc65587005170c56e6ef2788a4cf3f4e" +dependencies = [ + "include_dir", + "itertools 0.10.5", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.58", ] [[package]] @@ -894,7 +922,7 @@ checksum = "c980ee35e870bd1a4d2c8294d4c04d0499e67bca1e4b5cefcc693c2fa00caea9" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -930,7 +958,7 @@ checksum = "823b8bb275161044e2ac7a25879cb3e2480cb403e3943022c7c769c599b756aa" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -1006,6 +1034,12 @@ version = "0.21.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" +[[package]] +name = "base64" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9475866fec1451be56a3c2400fd081ff546538961565ccb5b7142cbd22bc7a51" + [[package]] name = "base64ct" version = "1.6.0" @@ -1029,9 +1063,9 @@ dependencies = [ [[package]] name = "binary-merkle-tree" -version = "13.0.0" +version = "15.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bf2706ac2641485d35ed06ebfe0b3b2c43e19a7ad8a90215580a91dd1766114" +checksum = "4b5c0fd4282c30c05647e1052d71bf1a0c8067ab1e9a8fc6d0c292dce0ecb237" dependencies = [ "hash-db", "log", @@ -1064,7 +1098,7 @@ dependencies = [ "regex", "rustc-hash", "shlex", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -1073,19 +1107,35 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "93f2635620bf0b9d4576eb7bb9a38a55df78bd1205d26fa994b25911a69f212f" dependencies = [ - "bitcoin_hashes", + "bitcoin_hashes 0.11.0", "rand", "rand_core 0.6.4", "serde", "unicode-normalization", ] +[[package]] +name = "bitcoin-internals" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9425c3bf7089c983facbae04de54513cce73b41c7f9ff8c845b54e7bc64ebbfb" + [[package]] name = "bitcoin_hashes" version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "90064b8dee6815a6470d60bad07bbbaee885c0e12d04177138fa3291a01b7bc4" +[[package]] +name = "bitcoin_hashes" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1930a4dabfebb8d7d9992db18ebe3ae2876f0a305fab206fd168df931ede293b" +dependencies = [ + "bitcoin-internals", + "hex-conservative", +] + [[package]] name = "bitflags" version = "1.3.2" @@ -1254,6 +1304,18 @@ dependencies = [ "serde", ] +[[package]] +name = "bounded-collections" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d32385ecb91a31bddaf908e8dcf4a15aef1bcd3913cc03ebfad02ff6d568abc1" +dependencies = [ + "log", + "parity-scale-codec", + "scale-info", + "serde", +] + [[package]] name = "bounded-vec" version = "0.7.1" @@ -1265,14 +1327,14 @@ dependencies = [ [[package]] name = "bp-xcm-bridge-hub-router" -version = "0.6.0" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f58cd5d7880f4bc8fc569e5bb0174302cd3f7e18a322e0fec2a4733cced35cb" +checksum = "7366e856da4c5f49e1ef94c3ea401854fe52310696561e24b7509d2f963d7210" dependencies = [ "parity-scale-codec", "scale-info", - "sp-core", - "sp-runtime", + "sp-core 31.0.0", + "sp-runtime 34.0.0", ] [[package]] @@ -1290,16 +1352,6 @@ dependencies = [ "tinyvec", ] -[[package]] -name = "bstr" -version = "1.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c48f0051a4b4c5e0b6d365cd04af53aeaa209e3cc15ec2cdb69e73cc87fbd0dc" -dependencies = [ - "memchr", - "serde", -] - [[package]] name = "bstringify" version = "0.1.2" @@ -1561,9 +1613,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.4.18" +version = "4.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e578d6ec4194633722ccf9544794b71b1385c3c027efe0c55db226fc880865c" +checksum = "90bc066a67923782aa8515dbaea16946c5bcc5addbd668bb80af688e53e548a0" dependencies = [ "clap_builder", "clap_derive", @@ -1571,9 +1623,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.4.18" +version = "4.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4df4df40ec50c46000231c914968278b1eb05098cf8f1b3a518a95030e71d1c7" +checksum = "ae129e2e766ae0ec03484e609954119f123cc1fe650337e155d03b022f24f7b4" dependencies = [ "anstream", "anstyle", @@ -1584,21 +1636,21 @@ dependencies = [ [[package]] name = "clap_derive" -version = "4.4.7" +version = "4.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf9804afaaf59a91e75b022a30fb7229a7901f60c755489cc61c9b423b836442" +checksum = "528131438037fd55894f62d6e9f068b8f45ac57ffa77517819645d10aed04f64" dependencies = [ - "heck", + "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] name = "clap_lex" -version = "0.6.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "702fc72eb24e5a1e48ce58027a675bc24edd52096d5397d4aea7c6dd9eca0bd1" +checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce" [[package]] name = "coarsetime" @@ -1851,7 +1903,7 @@ dependencies = [ "gimli 0.27.3", "hashbrown 0.13.2", "log", - "regalloc2", + "regalloc2 0.6.1", "smallvec", "target-lexicon", ] @@ -2050,27 +2102,27 @@ dependencies = [ [[package]] name = "cumulus-client-cli" -version = "0.7.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88972dcd58e7d411ebfd9d82d7399aad567afe737ba8ad0943abfaf1a8b3903b" +checksum = "d2b5137986e7a4374bf410e4e11ce02c9807c5d3200d590960056220963ecdbf" dependencies = [ "clap", "parity-scale-codec", "sc-chain-spec", "sc-cli", - "sc-client-api", + "sc-client-api 31.0.0", "sc-service", - "sp-blockchain", - "sp-core", - "sp-runtime", + "sp-blockchain 31.0.0", + "sp-core 31.0.0", + "sp-runtime 34.0.0", "url", ] [[package]] name = "cumulus-client-collator" -version = "0.7.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab9d9114479da745e34b1a4529dca9e51a61860593b61681107249bc68024bd4" +checksum = "9f7dde39268c86d2975bdd608d114dd52cd8803618196bc7606e684b9090d24d" dependencies = [ "cumulus-client-consensus-common", "cumulus-client-network", @@ -2082,19 +2134,19 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-overseer", "polkadot-primitives", - "sc-client-api", - "sp-api", - "sp-consensus", - "sp-core", - "sp-runtime", + "sc-client-api 31.0.0", + "sp-api 29.0.0", + "sp-consensus 0.35.0", + "sp-core 31.0.0", + "sp-runtime 34.0.0", "tracing", ] [[package]] name = "cumulus-client-consensus-aura" -version = "0.7.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00378c991116820c354713b3d3be2c9789f84bfb86d0a3c97676cc9e8a39c174" +checksum = "8fbbba68555835c2e2d7f1c17060d3cd6fafafdb16597a2e680e7376f71dec51" dependencies = [ "async-trait", "cumulus-client-collator", @@ -2110,24 +2162,24 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-overseer", "polkadot-primitives", - "sc-client-api", + "sc-client-api 31.0.0", "sc-consensus", "sc-consensus-aura", "sc-consensus-babe", "sc-consensus-slots", "sc-telemetry", "schnellru", - "sp-api", - "sp-application-crypto", + "sp-api 29.0.0", + "sp-application-crypto 33.0.0", "sp-block-builder", - "sp-blockchain", - "sp-consensus", + "sp-blockchain 31.0.0", + "sp-consensus 0.35.0", "sp-consensus-aura", - "sp-core", - "sp-inherents", - "sp-keystore", - "sp-runtime", - "sp-state-machine", + "sp-core 31.0.0", + "sp-inherents 29.0.0", + "sp-keystore 0.37.0", + "sp-runtime 34.0.0", + "sp-state-machine 0.38.0", "sp-timestamp", "substrate-prometheus-endpoint", "tracing", @@ -2135,9 +2187,9 @@ dependencies = [ [[package]] name = "cumulus-client-consensus-common" -version = "0.7.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "385c403c208f654e276f6d7ae30316d3d64f0975c9e19a18ed5943a963cc48c6" +checksum = "8b6ff3972c798e87b918e3065d7b52aabb3fc871136b7dde7c708d20567b509f" dependencies = [ "async-trait", "cumulus-client-pov-recovery", @@ -2148,42 +2200,42 @@ dependencies = [ "log", "parity-scale-codec", "polkadot-primitives", - "sc-client-api", + "sc-client-api 31.0.0", "sc-consensus", "sc-consensus-babe", "schnellru", - "sp-blockchain", - "sp-consensus", + "sp-blockchain 31.0.0", + "sp-consensus 0.35.0", "sp-consensus-slots", - "sp-core", - "sp-runtime", + "sp-core 31.0.0", + "sp-runtime 34.0.0", "sp-timestamp", - "sp-trie", + "sp-trie 32.0.0", "substrate-prometheus-endpoint", "tracing", ] [[package]] name = "cumulus-client-consensus-proposer" -version = "0.7.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "614b239940f64843c65ec19e157ee769c556f74f084077dc2f0425f0a671e9ba" +checksum = "cf2ff43b5735f8f1a306aa8c44d9efe5bb50c3a3b29afa18728e7a5321a6ba70" dependencies = [ "anyhow", "async-trait", "cumulus-primitives-parachain-inherent", - "sp-consensus", - "sp-inherents", - "sp-runtime", - "sp-state-machine", + "sp-consensus 0.35.0", + "sp-inherents 29.0.0", + "sp-runtime 34.0.0", + "sp-state-machine 0.38.0", "thiserror", ] [[package]] name = "cumulus-client-consensus-relay-chain" -version = "0.7.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ad64cf7112d6a980ee69b58570cd1426c2a728082a5c42e13e82519f7acf4bf" +checksum = "ba5c18edaf6a1272034e1721e1c57c2743dc0680636ec70d1e6a5462634c91ac" dependencies = [ "async-trait", "cumulus-client-consensus-common", @@ -2192,22 +2244,22 @@ dependencies = [ "futures", "parking_lot 0.12.1", "sc-consensus", - "sp-api", + "sp-api 29.0.0", "sp-block-builder", - "sp-blockchain", - "sp-consensus", - "sp-core", - "sp-inherents", - "sp-runtime", + "sp-blockchain 31.0.0", + "sp-consensus 0.35.0", + "sp-core 31.0.0", + "sp-inherents 29.0.0", + "sp-runtime 34.0.0", "substrate-prometheus-endpoint", "tracing", ] [[package]] name = "cumulus-client-network" -version = "0.7.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee9b8802b76850237bbf2c1afb869a9673b49ef9545b31698e1bffbffcaa4254" +checksum = "f10d8141b3de22f002b94fafd9a372f351ee55ad41e1c40ad6534024f176f5bb" dependencies = [ "async-trait", "cumulus-relay-chain-interface", @@ -2218,20 +2270,20 @@ dependencies = [ "polkadot-node-primitives", "polkadot-parachain-primitives", "polkadot-primitives", - "sc-client-api", - "sp-blockchain", - "sp-consensus", - "sp-core", - "sp-runtime", - "sp-state-machine", + "sc-client-api 31.0.0", + "sp-blockchain 31.0.0", + "sp-consensus 0.35.0", + "sp-core 31.0.0", + "sp-runtime 34.0.0", + "sp-state-machine 0.38.0", "tracing", ] [[package]] name = "cumulus-client-parachain-inherent" -version = "0.1.0" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bcc095540bb3ad848b1d5cd8708d8b493729370d4671df5a0c38ea53382e46b" +checksum = "6ebeda41b913144e0dbaf57a9537fed6f37ee14c5f31f1bd23808f87e8515ec7" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -2239,24 +2291,24 @@ dependencies = [ "cumulus-relay-chain-interface", "cumulus-test-relay-sproof-builder", "parity-scale-codec", - "sc-client-api", + "sc-client-api 31.0.0", "scale-info", - "sp-api", - "sp-core", - "sp-inherents", - "sp-runtime", - "sp-state-machine", + "sp-api 29.0.0", + "sp-crypto-hashing", + "sp-inherents 29.0.0", + "sp-runtime 34.0.0", + "sp-state-machine 0.38.0", "sp-std", - "sp-storage", - "sp-trie", + "sp-storage 20.0.0", + "sp-trie 32.0.0", "tracing", ] [[package]] name = "cumulus-client-pov-recovery" -version = "0.7.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddd12cbdd57209ffc68d167b0c22c90d5680185b57d03e4c2436aef7dfd918a2" +checksum = "1cf51e1e7cfe82e68a93a4f3221181f8258664f0c4113e4d7c846e449b3596f3" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -2269,19 +2321,19 @@ dependencies = [ "polkadot-overseer", "polkadot-primitives", "rand", - "sc-client-api", + "sc-client-api 31.0.0", "sc-consensus", - "sp-consensus", + "sp-consensus 0.35.0", "sp-maybe-compressed-blob", - "sp-runtime", + "sp-runtime 34.0.0", "tracing", ] [[package]] name = "cumulus-client-service" -version = "0.7.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5be0615943319f8750eb54793f8ec8721b2081852c23ed450da54cfcf6aca97" +checksum = "ebb334fbaedca019671b900bba71fb7cf70244d9436a832b1c5d67491569359d" dependencies = [ "cumulus-client-cli", "cumulus-client-collator", @@ -2295,7 +2347,7 @@ dependencies = [ "cumulus-relay-chain-minimal-node", "futures", "polkadot-primitives", - "sc-client-api", + "sc-client-api 31.0.0", "sc-consensus", "sc-network", "sc-network-sync", @@ -2305,39 +2357,39 @@ dependencies = [ "sc-sysinfo", "sc-telemetry", "sc-transaction-pool", - "sc-utils", - "sp-api", - "sp-blockchain", - "sp-consensus", - "sp-core", - "sp-runtime", + "sc-utils 16.0.0", + "sp-api 29.0.0", + "sp-blockchain 31.0.0", + "sp-consensus 0.35.0", + "sp-core 31.0.0", + "sp-runtime 34.0.0", "sp-transaction-pool", ] [[package]] name = "cumulus-pallet-aura-ext" -version = "0.7.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8100a3283be2c46905345141e9a063f092949c6630a1fb70993b04c97f309e55" +checksum = "47ec277f09a2c2b693bca6283eb6bc10aede2eaee43a7c395911235d8b632dab" dependencies = [ "cumulus-pallet-parachain-system", - "frame-support", + "frame-support 31.0.0", "frame-system", "pallet-aura", "pallet-timestamp", "parity-scale-codec", "scale-info", - "sp-application-crypto", + "sp-application-crypto 33.0.0", "sp-consensus-aura", - "sp-runtime", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "cumulus-pallet-parachain-system" -version = "0.7.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a1a0e6800ea92447eab2c9170cc77d21987fd0e61ed79a6e1318f7b127b3e2c" +checksum = "a19c40a5d04f60562fb38195766104deeb8cec71c11ec77796ee9373cccdb325" dependencies = [ "bytes", "cumulus-pallet-parachain-system-proc-macro", @@ -2346,24 +2398,25 @@ dependencies = [ "cumulus-primitives-proof-size-hostfunction", "environmental", "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "impl-trait-for-tuples", "log", "pallet-message-queue", "parity-scale-codec", "polkadot-parachain-primitives", + "polkadot-runtime-common", "polkadot-runtime-parachains", "scale-info", - "sp-core", - "sp-externalities", - "sp-inherents", - "sp-io", - "sp-runtime", - "sp-state-machine", + "sp-core 31.0.0", + "sp-externalities 0.27.0", + "sp-inherents 29.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", + "sp-state-machine 0.38.0", "sp-std", - "sp-trie", - "sp-version", + "sp-trie 32.0.0", + "sp-version 32.0.0", "staging-xcm", "trie-db", ] @@ -2377,37 +2430,37 @@ dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] name = "cumulus-pallet-xcm" -version = "0.7.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9e5e8dd3f9c98620e32cbb1783725a3e75a3147cb351b43de37663824311cd9" +checksum = "7610ae16cac552adc823ba68deb26e5d3a9de189ef79ae26c79e43ddcfeabef1" dependencies = [ "cumulus-primitives-core", - "frame-support", + "frame-support 31.0.0", "frame-system", "parity-scale-codec", "scale-info", - "sp-io", - "sp-runtime", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", "staging-xcm", ] [[package]] name = "cumulus-pallet-xcmp-queue" -version = "0.7.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "439cdba45813623e7f45374f160f3356d27fb1aaca2536dd7f60ef2a7e9b30cd" +checksum = "6614dcdbe6c24fcc8677bf158a8c627a3467d262acdc8a0e7d8a3d3d767a757c" dependencies = [ - "bounded-collections", + "bounded-collections 0.2.0", "bp-xcm-bridge-hub-router", "cumulus-primitives-core", "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "pallet-message-queue", @@ -2415,9 +2468,9 @@ dependencies = [ "polkadot-runtime-common", "polkadot-runtime-parachains", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", "staging-xcm", "staging-xcm-executor", @@ -2425,93 +2478,93 @@ dependencies = [ [[package]] name = "cumulus-primitives-aura" -version = "0.7.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05ad9d2b1454d6957a92b3f8755d7bfa2b5b70ab2fa7751215f6897de5ac4cf6" +checksum = "1b70d13f3fca1dfaeb868f4fff79c58fef8fa4f8e381a9002d93c50c23683abf" dependencies = [ "parity-scale-codec", "polkadot-core-primitives", "polkadot-primitives", - "sp-api", + "sp-api 29.0.0", "sp-consensus-aura", - "sp-runtime", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "cumulus-primitives-core" -version = "0.7.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "036b64697b5fd04c8039ccf15b9891104c496afb6c418c2cea1234d4898d0a28" +checksum = "617d02361f5c7df87b6be98b4974241b6836fbaa7d9e786db80eb38bc8636751" dependencies = [ "parity-scale-codec", "polkadot-core-primitives", "polkadot-parachain-primitives", "polkadot-primitives", "scale-info", - "sp-api", - "sp-runtime", + "sp-api 29.0.0", + "sp-runtime 34.0.0", "sp-std", - "sp-trie", + "sp-trie 32.0.0", "staging-xcm", ] [[package]] name = "cumulus-primitives-parachain-inherent" -version = "0.7.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9cb6fe06744fed6e84682c48816181ad63652003570c2135c425481440fcd2f2" +checksum = "87d64a55b7b9c3a945e543712630708f36407ab49ad8a2fa9f3d1404093a3e8e" dependencies = [ "async-trait", "cumulus-primitives-core", "parity-scale-codec", "scale-info", - "sp-core", - "sp-inherents", + "sp-core 31.0.0", + "sp-inherents 29.0.0", "sp-std", - "sp-trie", + "sp-trie 32.0.0", ] [[package]] name = "cumulus-primitives-proof-size-hostfunction" -version = "0.2.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a132e17ac2c79436bc5004b0d56cb35ca65b966434f14e5ff8a9bc1afcfca5a4" +checksum = "764e27968dce7d5c455dbaf9ba81c037fc5690afc085aa4aa2a4cdfe53716b74" dependencies = [ - "sp-externalities", - "sp-runtime-interface", - "sp-trie", + "sp-externalities 0.27.0", + "sp-runtime-interface 26.0.0", + "sp-trie 32.0.0", ] [[package]] name = "cumulus-primitives-timestamp" -version = "0.7.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6d1d900bd9e76607a4a0734cbb2b004d86177d2d6938b5d25eb812c6c1b7500" +checksum = "abf270c68a2cbf68b31cb4e8c4b5fc43665627ec6960cde04c393120e053ccef" dependencies = [ "cumulus-primitives-core", "futures", "parity-scale-codec", - "sp-inherents", + "sp-inherents 29.0.0", "sp-std", "sp-timestamp", ] [[package]] name = "cumulus-primitives-utility" -version = "0.7.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99542836a3b341249f4b4f54eca7cd5d42a99d38fd7dc6974d19899a90b2f82d" +checksum = "beeca40e85d6da3751343a3fc8dd5b335c9a06ba9897a5b36f726d139b7646de" dependencies = [ "cumulus-primitives-core", - "frame-support", + "frame-support 31.0.0", "log", - "pallet-xcm-benchmarks", + "pallet-asset-conversion", "parity-scale-codec", "polkadot-runtime-common", "polkadot-runtime-parachains", - "sp-io", - "sp-runtime", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", "staging-xcm", "staging-xcm-builder", @@ -2520,9 +2573,9 @@ dependencies = [ [[package]] name = "cumulus-relay-chain-inprocess-interface" -version = "0.7.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6801c53e543614ce1b9f87cfca8ed69aab5318ba51439c0db8a910c8c3d77a15" +checksum = "2ec58113249ac91ceb4da1c846f6474cd4b6616100d0b29a86845b177caad52f" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -2532,22 +2585,22 @@ dependencies = [ "polkadot-cli", "polkadot-service", "sc-cli", - "sc-client-api", + "sc-client-api 31.0.0", "sc-sysinfo", "sc-telemetry", "sc-tracing", - "sp-api", - "sp-consensus", - "sp-core", - "sp-runtime", - "sp-state-machine", + "sp-api 29.0.0", + "sp-consensus 0.35.0", + "sp-core 31.0.0", + "sp-runtime 34.0.0", + "sp-state-machine 0.38.0", ] [[package]] name = "cumulus-relay-chain-interface" -version = "0.7.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bdf9bd710caacdee77f50f01a40f37f8c9af1040e895de3e0b421f2c4ad0a291" +checksum = "cbb531263c11cfd73f17090106fff2385ca7b02b39102c367f4c13fb1251e9dd" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -2555,18 +2608,18 @@ dependencies = [ "jsonrpsee-core", "parity-scale-codec", "polkadot-overseer", - "sc-client-api", - "sp-api", - "sp-blockchain", - "sp-state-machine", + "sc-client-api 31.0.0", + "sp-api 29.0.0", + "sp-blockchain 31.0.0", + "sp-state-machine 0.38.0", "thiserror", ] [[package]] name = "cumulus-relay-chain-minimal-node" -version = "0.7.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b1e0847e45d6a5090ee32b4dc3497cb0671b9a6a9259f9a263a769560c5b60e" +checksum = "e1a416b2e6a5c99d78049b91425dbdb844f4351fd9fb61da47b70c2f90cf2ed4" dependencies = [ "array-bytes 6.2.2", "async-trait", @@ -2587,18 +2640,19 @@ dependencies = [ "polkadot-node-subsystem-util", "polkadot-overseer", "polkadot-primitives", + "polkadot-service", "sc-authority-discovery", - "sc-client-api", + "sc-client-api 31.0.0", "sc-network", "sc-network-common", "sc-service", "sc-tracing", - "sc-utils", - "sp-api", - "sp-blockchain", - "sp-consensus", + "sc-utils 16.0.0", + "sp-api 29.0.0", + "sp-blockchain 31.0.0", + "sp-consensus 0.35.0", "sp-consensus-babe", - "sp-runtime", + "sp-runtime 34.0.0", "substrate-prometheus-endpoint", "tokio", "tracing", @@ -2606,9 +2660,9 @@ dependencies = [ [[package]] name = "cumulus-relay-chain-rpc-interface" -version = "0.7.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cb8a4c98335aeac261bde9b21e7518c099bfacc96592a052750051cebda158c" +checksum = "e011f8da350318316e80356dca70bee537d8f8fb29bb99d1765348b0ab6f6d88" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -2621,7 +2675,7 @@ dependencies = [ "pin-project", "polkadot-overseer", "rand", - "sc-client-api", + "sc-client-api 31.0.0", "sc-rpc-api", "sc-service", "schnellru", @@ -2629,14 +2683,14 @@ dependencies = [ "serde_json", "smoldot", "smoldot-light", - "sp-api", + "sp-api 29.0.0", "sp-authority-discovery", "sp-consensus-babe", - "sp-core", - "sp-runtime", - "sp-state-machine", - "sp-storage", - "sp-version", + "sp-core 31.0.0", + "sp-runtime 34.0.0", + "sp-state-machine 0.38.0", + "sp-storage 20.0.0", + "sp-version 32.0.0", "thiserror", "tokio", "tokio-util", @@ -2646,17 +2700,17 @@ dependencies = [ [[package]] name = "cumulus-test-relay-sproof-builder" -version = "0.7.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0ec12490a40b00427119fd1e12a6d1fe0652d2df3e992dea1bc4f331effed12" +checksum = "d1e730a7524f50acb03c24476323c4dad35690baf85175ad0f91a2dffed85b39" dependencies = [ "cumulus-primitives-core", "parity-scale-codec", "polkadot-primitives", - "sp-runtime", - "sp-state-machine", + "sp-runtime 34.0.0", + "sp-state-machine 0.38.0", "sp-std", - "sp-trie", + "sp-trie 32.0.0", ] [[package]] @@ -2710,7 +2764,7 @@ checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -2750,7 +2804,7 @@ dependencies = [ "proc-macro2", "quote", "scratch", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -2767,7 +2821,20 @@ checksum = "8908e380a8efd42150c017b0cfa31509fc49b6d47f7cb6b33e93ffb8f4e3661e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", +] + +[[package]] +name = "dashmap" +version = "5.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856" +dependencies = [ + "cfg-if", + "hashbrown 0.14.3", + "lock_api", + "once_cell", + "parking_lot_core 0.9.9", ] [[package]] @@ -2960,7 +3027,7 @@ checksum = "487585f4d0c6655fe74905e2504d8ad6908e4db67f744eb140876906c2f3175d" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -2984,9 +3051,9 @@ dependencies = [ "proc-macro2", "quote", "regex", - "syn 2.0.48", + "syn 2.0.58", "termcolor", - "toml 0.8.2", + "toml 0.8.12", "walkdir", ] @@ -3057,6 +3124,7 @@ dependencies = [ "digest 0.10.7", "elliptic-curve 0.13.8", "rfc6979 0.4.0", + "serdect", "signature 2.2.0", "spki 0.7.3", ] @@ -3156,6 +3224,7 @@ dependencies = [ "pkcs8 0.10.2", "rand_core 0.6.4", "sec1 0.7.3", + "serdect", "subtle 2.5.0", "zeroize", ] @@ -3172,7 +3241,7 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c9720bba047d567ffc8a3cba48bf19126600e249ab7f128e9233e6376976a116" dependencies = [ - "heck", + "heck 0.4.1", "proc-macro2", "quote", "syn 1.0.109", @@ -3196,7 +3265,7 @@ checksum = "f95e2801cd355d4a1a3e3953ce6ee5ae9603a5c833455343a8bfe3f44d418246" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -3207,7 +3276,7 @@ checksum = "6fd000fd6988e73bbe993ea3db9b1aa64906ab88766d654973924340c8cddb42" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -3410,7 +3479,7 @@ dependencies = [ "env_logger", "ethereum", "ethjson", - "frame-support", + "frame-support 31.0.0", "frame-system", "hex", "lazy_static", @@ -3433,9 +3502,9 @@ dependencies = [ "serde", "serde_json", "sha3", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", ] [[package]] @@ -3482,7 +3551,7 @@ dependencies = [ "fs-err", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -3497,6 +3566,12 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" +[[package]] +name = "fallible-iterator" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2acce4a10f12dc2fb14a218589d4f1f62ef011b2d0cc4b3cb1bba8e94da14649" + [[package]] name = "fastrand" version = "1.9.0" @@ -3681,12 +3756,12 @@ checksum = "6c2141d6d6c8512188a7891b4b01590a45f6dac67afb4f255c4124dbb86d4eaa" [[package]] name = "frame-benchmarking" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b16f7f853f64ec6fbc981b3e224cc3400752662da140ec62c160b5b859bab68" +checksum = "9fee087c6a7ddbc6dcfb6a6015d4b2787ecbb2113ed8b8bee8ff15f2bdf93f94" dependencies = [ - "frame-support", - "frame-support-procedural", + "frame-support 31.0.0", + "frame-support-procedural 26.0.1", "frame-system", "linregress", "log", @@ -3694,22 +3769,22 @@ dependencies = [ "paste", "scale-info", "serde", - "sp-api", - "sp-application-crypto", - "sp-core", - "sp-io", - "sp-runtime", - "sp-runtime-interface", + "sp-api 29.0.0", + "sp-application-crypto 33.0.0", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", + "sp-runtime-interface 26.0.0", "sp-std", - "sp-storage", + "sp-storage 20.0.0", "static_assertions", ] [[package]] name = "frame-benchmarking-cli" -version = "32.0.0" +version = "35.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69fec078a73892cb5a7146671cf76e3abf23201fefe431a013399ac2e5b03b54" +checksum = "38f1660c2e59d206386658ca7fa867c2ccdb44429cc8a5a16a2975a338aa7047" dependencies = [ "Inflector", "array-bytes 6.2.2", @@ -3717,7 +3792,7 @@ dependencies = [ "clap", "comfy-table", "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "gethostname", "handlebars", @@ -3730,25 +3805,25 @@ dependencies = [ "rand_pcg", "sc-block-builder", "sc-cli", - "sc-client-api", - "sc-client-db", - "sc-executor", + "sc-client-api 31.0.0", + "sc-client-db 0.38.0", + "sc-executor 0.35.0", "sc-service", "sc-sysinfo", "serde", "serde_json", - "sp-api", - "sp-blockchain", - "sp-core", + "sp-api 29.0.0", + "sp-blockchain 31.0.0", + "sp-core 31.0.0", "sp-database", - "sp-externalities", - "sp-inherents", - "sp-io", - "sp-keystore", - "sp-runtime", - "sp-state-machine", - "sp-storage", - "sp-trie", + "sp-externalities 0.27.0", + "sp-inherents 29.0.0", + "sp-io 33.0.0", + "sp-keystore 0.37.0", + "sp-runtime 34.0.0", + "sp-state-machine 0.38.0", + "sp-storage 20.0.0", + "sp-trie 32.0.0", "sp-wasm-interface", "thiserror", "thousands", @@ -3763,42 +3838,43 @@ dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] name = "frame-election-provider-support" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c596d956c4eedaffbe2fd6f75562e63e3e60001222bc6f8cc45fa77f3ea51791" +checksum = "d651327ec98d12fbdb0d25346de929e3ea2ab8a1ef85570794d9d8d54f204f28" dependencies = [ "frame-election-provider-solution-type", - "frame-support", + "frame-support 31.0.0", "frame-system", "parity-scale-codec", "scale-info", - "sp-arithmetic", - "sp-core", + "sp-arithmetic 25.0.0", + "sp-core 31.0.0", "sp-npos-elections", - "sp-runtime", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "frame-executive" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a5247e367912fe95f813e96542921ab4edf671860fd557625b55f40155abf90" +checksum = "e3d4502dd4218aaf90240527adb789b9620fcada2af76f4751a8a852583eb0c2" dependencies = [ - "frame-support", + "aquamarine 0.3.3", + "frame-support 31.0.0", "frame-system", "frame-try-runtime", "log", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", "sp-tracing", ] @@ -3817,9 +3893,9 @@ dependencies = [ [[package]] name = "frame-remote-externalities" -version = "0.35.0" +version = "0.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26ac8b505de5aa10e9c9548a3642fc708fc47fe3843b840992e6e6ab139f39d0" +checksum = "c935bea33258c329e9ad4784a720aa4b1faff8c5af474f14e0898db11b7cb8ab" dependencies = [ "futures", "indicatif", @@ -3827,10 +3903,11 @@ dependencies = [ "log", "parity-scale-codec", "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-state-machine", + "sp-core 31.0.0", + "sp-crypto-hashing", + "sp-io 33.0.0", + "sp-runtime 34.0.0", + "sp-state-machine 0.38.0", "spinners", "substrate-rpc-client", "tokio", @@ -3843,13 +3920,13 @@ version = "28.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e48b00bb3e82c465a435b08827e7abe5144345bc1a998848bdd7ce72fa203bb5" dependencies = [ - "aquamarine", + "aquamarine 0.4.0", "array-bytes 6.2.2", "bitflags 1.3.2", "docify", "environmental", "frame-metadata", - "frame-support-procedural", + "frame-support-procedural 23.0.0", "impl-trait-for-tuples", "k256 0.13.3", "log", @@ -3860,21 +3937,63 @@ dependencies = [ "serde", "serde_json", "smallvec", - "sp-api", - "sp-arithmetic", - "sp-core", + "sp-api 26.0.0", + "sp-arithmetic 23.0.0", + "sp-core 28.0.0", "sp-core-hashing-proc-macro", "sp-debug-derive", - "sp-genesis-builder", - "sp-inherents", - "sp-io", + "sp-genesis-builder 0.7.0", + "sp-inherents 26.0.0", + "sp-io 30.0.0", + "sp-metadata-ir", + "sp-runtime 31.0.1", + "sp-staking 26.0.0", + "sp-state-machine 0.35.0", + "sp-std", + "sp-tracing", + "sp-weights 27.0.0", + "static_assertions", + "tt-call", +] + +[[package]] +name = "frame-support" +version = "31.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81aecbbc1c62055e8ce472283bc655bf6c0f968a4d22d504bf6aad4ea44ccbc4" +dependencies = [ + "aquamarine 0.5.0", + "array-bytes 6.2.2", + "bitflags 1.3.2", + "docify", + "environmental", + "frame-metadata", + "frame-support-procedural 26.0.1", + "impl-trait-for-tuples", + "k256 0.13.3", + "log", + "macro_magic", + "parity-scale-codec", + "paste", + "scale-info", + "serde", + "serde_json", + "smallvec", + "sp-api 29.0.0", + "sp-arithmetic 25.0.0", + "sp-core 31.0.0", + "sp-crypto-hashing-proc-macro", + "sp-debug-derive", + "sp-genesis-builder 0.10.0", + "sp-inherents 29.0.0", + "sp-io 33.0.0", "sp-metadata-ir", - "sp-runtime", - "sp-staking", - "sp-state-machine", + "sp-runtime 34.0.0", + "sp-staking 29.0.0", + "sp-state-machine 0.38.0", "sp-std", "sp-tracing", - "sp-weights", + "sp-weights 30.0.0", "static_assertions", "tt-call", ] @@ -3889,14 +4008,34 @@ dependencies = [ "cfg-expr", "derive-syn-parse", "expander 2.0.0", - "frame-support-procedural-tools", + "frame-support-procedural-tools 10.0.0", "itertools 0.10.5", "macro_magic", "proc-macro-warning", "proc-macro2", "quote", "sp-core-hashing", - "syn 2.0.48", + "syn 2.0.58", +] + +[[package]] +name = "frame-support-procedural" +version = "26.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "732fa43a05789f4ffb96955017e40643199d586c3d211754df5824a195f4eab5" +dependencies = [ + "Inflector", + "cfg-expr", + "derive-syn-parse", + "expander 2.0.0", + "frame-support-procedural-tools 11.0.1", + "itertools 0.10.5", + "macro_magic", + "proc-macro-warning", + "proc-macro2", + "quote", + "sp-crypto-hashing", + "syn 2.0.58", ] [[package]] @@ -3905,11 +4044,24 @@ version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3363df38464c47a73eb521a4f648bfcc7537a82d70347ef8af3f73b6d019e910" dependencies = [ - "frame-support-procedural-tools-derive", + "frame-support-procedural-tools-derive 11.0.0", + "proc-macro-crate 3.1.0", + "proc-macro2", + "quote", + "syn 2.0.58", +] + +[[package]] +name = "frame-support-procedural-tools" +version = "11.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b482a1d18fa63aed1ff3fe3fcfb3bc23d92cb3903d6b9774f75dc2c4e1001c3a" +dependencies = [ + "frame-support-procedural-tools-derive 12.0.0", "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -3920,66 +4072,77 @@ checksum = "68672b9ec6fe72d259d3879dc212c5e42e977588cdac830c76f54d9f492aeb58" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", +] + +[[package]] +name = "frame-support-procedural-tools-derive" +version = "12.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed971c6435503a099bdac99fe4c5bea08981709e5b5a0a8535a1856f48561191" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.58", ] [[package]] name = "frame-system" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "983b3215c8d97775b90dc1db88f858c46401682bd2fb8572bdd102ff8c2ca2a6" +checksum = "f7537b5e23f584bf54f26c6297e0260b54fac5298be43a115176a310f256a4ab" dependencies = [ "cfg-if", "docify", - "frame-support", + "frame-support 31.0.0", "log", "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", - "sp-version", - "sp-weights", + "sp-version 32.0.0", + "sp-weights 30.0.0", ] [[package]] name = "frame-system-benchmarking" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f78a2fe203b01b596156b2514e0b890b4a628dbdb50925316e755aa623b6fe53" +checksum = "ea3c6bd0f5700363a845d4c0f83ea3478cdfcfe404d08f35865b78ebc5d37c0a" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "parity-scale-codec", "scale-info", - "sp-core", - "sp-runtime", + "sp-core 31.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "frame-system-rpc-runtime-api" -version = "26.0.0" +version = "29.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28d183819ea7df1d89acd61fe423ae6bec24a29d87db5c18182339a751c0837a" +checksum = "7ae4e8decf1630ed6731e8912d1ed4ac3986d86c68f59580f2a9f61909150c41" dependencies = [ "parity-scale-codec", - "sp-api", + "sp-api 29.0.0", ] [[package]] name = "frame-try-runtime" -version = "0.34.0" +version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5b3dab79d14d2e8f6329d7e5cb49f2bdb81b9ef3019b1c405d94defa137a353" +checksum = "bad42234b76beabf35bbc9a54566f0060b8d3d4fe93726007f02896e8beb91e3" dependencies = [ - "frame-support", + "frame-support 31.0.0", "parity-scale-codec", - "sp-api", - "sp-runtime", + "sp-api 29.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -4103,7 +4266,7 @@ checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -4242,7 +4405,7 @@ version = "0.27.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6c80984affa11d98d1b88b66ac8853f143217b399d3c74116778ff8fdb4ed2e" dependencies = [ - "fallible-iterator", + "fallible-iterator 0.2.0", "indexmap 1.9.3", "stable_deref_trait", ] @@ -4252,6 +4415,10 @@ name = "gimli" version = "0.28.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" +dependencies = [ + "fallible-iterator 0.3.0", + "stable_deref_trait", +] [[package]] name = "glob" @@ -4260,16 +4427,23 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" [[package]] -name = "globset" -version = "0.4.14" +name = "governor" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57da3b9b5b85bd66f31093f8c408b90a74431672542466497dcbdfdc02034be1" +checksum = "68a7f542ee6b35af73b06abc0dad1c1bae89964e4e253bc4b587b91c9637867b" dependencies = [ - "aho-corasick", - "bstr", - "log", - "regex-automata 0.4.5", - "regex-syntax 0.8.2", + "cfg-if", + "dashmap", + "futures", + "futures-timer", + "no-std-compat", + "nonzero_ext", + "parking_lot 0.12.1", + "portable-atomic", + "quanta", + "rand", + "smallvec", + "spinning_top", ] [[package]] @@ -4315,9 +4489,9 @@ dependencies = [ [[package]] name = "handlebars" -version = "4.5.0" +version = "5.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "faa67bab9ff362228eb3d00bd024a4965d8231bbb7921167f0cfa66c6626b225" +checksum = "d08485b96a0e6393e9e4d1b8d48cf74ad6c063cd905eb33f42c1ce3f0377539b" dependencies = [ "log", "pest", @@ -4386,6 +4560,12 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + [[package]] name = "hermit-abi" version = "0.3.4" @@ -4398,6 +4578,12 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" +[[package]] +name = "hex-conservative" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30ed443af458ccb6d81c1e7e661545f94d3176752fb1df2f543b902a1e0f51e2" + [[package]] name = "hex-literal" version = "0.4.1" @@ -4554,10 +4740,9 @@ dependencies = [ "hyper", "log", "rustls 0.21.10", - "rustls-native-certs", + "rustls-native-certs 0.6.3", "tokio", - "tokio-rustls", - "webpki-roots 0.25.3", + "tokio-rustls 0.24.1", ] [[package]] @@ -4875,9 +5060,9 @@ dependencies = [ [[package]] name = "jsonrpsee" -version = "0.16.3" +version = "0.22.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "367a292944c07385839818bb71c8d76611138e2dedb0677d035b8da21d29c78b" +checksum = "c4b0e68d9af1f066c06d6e2397583795b912d78537d7d907c561e82c13d69fa1" dependencies = [ "jsonrpsee-core", "jsonrpsee-http-client", @@ -4885,105 +5070,106 @@ dependencies = [ "jsonrpsee-server", "jsonrpsee-types", "jsonrpsee-ws-client", + "tokio", "tracing", ] [[package]] name = "jsonrpsee-client-transport" -version = "0.16.3" +version = "0.22.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8b3815d9f5d5de348e5f162b316dc9cdf4548305ebb15b4eb9328e66cf27d7a" +checksum = "92f254f56af1ae84815b9b1325094743dcf05b92abb5e94da2e81a35cff0cada" dependencies = [ "futures-util", "http", "jsonrpsee-core", - "jsonrpsee-types", "pin-project", - "rustls-native-certs", + "rustls-native-certs 0.7.0", + "rustls-pki-types", "soketto", "thiserror", "tokio", - "tokio-rustls", + "tokio-rustls 0.25.0", "tokio-util", "tracing", - "webpki-roots 0.25.3", + "url", ] [[package]] name = "jsonrpsee-core" -version = "0.16.3" +version = "0.22.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b5dde66c53d6dcdc8caea1874a45632ec0fcf5b437789f1e45766a1512ce803" +checksum = "274d68152c24aa78977243bb56f28d7946e6aa309945b37d33174a3f92d89a3a" dependencies = [ "anyhow", - "arrayvec 0.7.4", - "async-lock 2.8.0", "async-trait", "beef", - "futures-channel", "futures-timer", "futures-util", - "globset", "hyper", "jsonrpsee-types", "parking_lot 0.12.1", + "pin-project", "rand", "rustc-hash", "serde", "serde_json", - "soketto", "thiserror", "tokio", + "tokio-stream", "tracing", ] [[package]] name = "jsonrpsee-http-client" -version = "0.16.3" +version = "0.22.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e5f9fabdd5d79344728521bb65e3106b49ec405a78b66fbff073b72b389fa43" +checksum = "ac13bc1e44cd00448a5ff485824a128629c945f02077804cb659c07a0ba41395" dependencies = [ "async-trait", "hyper", "hyper-rustls", "jsonrpsee-core", "jsonrpsee-types", - "rustc-hash", "serde", "serde_json", "thiserror", "tokio", + "tower", "tracing", + "url", ] [[package]] name = "jsonrpsee-proc-macros" -version = "0.16.3" +version = "0.22.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44e8ab85614a08792b9bff6c8feee23be78c98d0182d4c622c05256ab553892a" +checksum = "2c326f9e95aeff7d707b2ffde72c22a52acc975ba1c48587776c02b90c4747a6" dependencies = [ - "heck", - "proc-macro-crate 1.3.1", + "heck 0.4.1", + "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.58", ] [[package]] name = "jsonrpsee-server" -version = "0.16.3" +version = "0.22.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf4d945a6008c9b03db3354fb3c83ee02d2faa9f2e755ec1dfb69c3551b8f4ba" +checksum = "3b5bfbda5f8fb63f997102fd18f73e35e34c84c6dcdbdbbe72c6e48f6d2c959b" dependencies = [ - "futures-channel", "futures-util", "http", "hyper", "jsonrpsee-core", "jsonrpsee-types", + "pin-project", + "route-recognizer", "serde", "serde_json", "soketto", + "thiserror", "tokio", "tokio-stream", "tokio-util", @@ -4993,28 +5179,28 @@ dependencies = [ [[package]] name = "jsonrpsee-types" -version = "0.16.3" +version = "0.22.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "245ba8e5aa633dd1c1e4fae72bce06e71f42d34c14a2767c6b4d173b57bee5e5" +checksum = "3dc828e537868d6b12bbb07ec20324909a22ced6efca0057c825c3e1126b2c6d" dependencies = [ "anyhow", "beef", "serde", "serde_json", "thiserror", - "tracing", ] [[package]] name = "jsonrpsee-ws-client" -version = "0.16.3" +version = "0.22.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e1b3975ed5d73f456478681a417128597acd6a2487855fdb7b4a3d4d195bf5e" +checksum = "32f00abe918bf34b785f87459b9205790e5361a3f7437adb50e928dc243f27eb" dependencies = [ "http", "jsonrpsee-client-transport", "jsonrpsee-core", "jsonrpsee-types", + "url", ] [[package]] @@ -5040,6 +5226,7 @@ dependencies = [ "ecdsa 0.16.9", "elliptic-curve 0.13.8", "once_cell", + "serdect", "sha2 0.10.8", ] @@ -5057,7 +5244,7 @@ dependencies = [ "cumulus-primitives-utility", "frame-benchmarking", "frame-executive", - "frame-support", + "frame-support 31.0.0", "frame-system", "frame-system-rpc-runtime-api", "frame-try-runtime", @@ -5142,20 +5329,20 @@ dependencies = [ "scale-info", "serde_json", "smallvec", - "sp-api", - "sp-application-crypto", + "sp-api 29.0.0", + "sp-application-crypto 33.0.0", "sp-block-builder", "sp-consensus-aura", - "sp-core", - "sp-inherents", - "sp-io", + "sp-core 31.0.0", + "sp-inherents 29.0.0", + "sp-io 33.0.0", "sp-offchain", - "sp-runtime", + "sp-runtime 34.0.0", "sp-session", - "sp-staking", + "sp-staking 29.0.0", "sp-std", "sp-transaction-pool", - "sp-version", + "sp-version 32.0.0", "staging-parachain-info", "staging-xcm", "staging-xcm-builder", @@ -5566,7 +5753,7 @@ version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0fba456131824ab6acd4c7bf61e9c0f0a3014b5fc9868ccb8e10d344594cdc4f" dependencies = [ - "heck", + "heck 0.4.1", "quote", "syn 1.0.109", ] @@ -5636,7 +5823,7 @@ dependencies = [ "rw-stream-sink", "soketto", "url", - "webpki-roots 0.22.6", + "webpki-roots", ] [[package]] @@ -5878,7 +6065,7 @@ dependencies = [ "macro_magic_core", "macro_magic_macros", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -5892,7 +6079,7 @@ dependencies = [ "macro_magic_core_macros", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -5903,7 +6090,7 @@ checksum = "9ea73aa640dc01d62a590d48c0c3521ed739d53b27f919b25c3551e233481654" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -5914,7 +6101,7 @@ checksum = "ef9d79ae96aaba821963320eb2b6e34d17df1e5a83d8a1985c29cc5be59577b3" dependencies = [ "macro_magic_core", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -5933,7 +6120,7 @@ dependencies = [ "cumulus-test-relay-sproof-builder", "frame-benchmarking", "frame-executive", - "frame-support", + "frame-support 31.0.0", "frame-system", "frame-system-rpc-runtime-api", "frame-try-runtime", @@ -6024,22 +6211,22 @@ dependencies = [ "scale-info", "serde_json", "smallvec", - "sp-api", - "sp-application-crypto", + "sp-api 29.0.0", + "sp-application-crypto 33.0.0", "sp-block-builder", "sp-consensus-aura", - "sp-core", - "sp-inherents", - "sp-io", + "sp-core 31.0.0", + "sp-inherents 29.0.0", + "sp-io 33.0.0", "sp-keyring", "sp-offchain", - "sp-runtime", + "sp-runtime 34.0.0", "sp-session", - "sp-staking", + "sp-staking 29.0.0", "sp-std", "sp-transaction-pool", - "sp-trie", - "sp-version", + "sp-trie 32.0.0", + "sp-version 32.0.0", "staging-parachain-info", "staging-xcm", "staging-xcm-builder", @@ -6108,6 +6295,15 @@ dependencies = [ "libc", ] +[[package]] +name = "memmap2" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe751422e4a8caa417e13c3ea66452215d7d63e19e604f4980461212f3ae1322" +dependencies = [ + "libc", +] + [[package]] name = "memoffset" version = "0.8.0" @@ -6214,39 +6410,38 @@ dependencies = [ [[package]] name = "mmr-gadget" -version = "29.0.0" +version = "32.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9d0ba6676a84f182dabd7c3ec2c92f0e882fe4e4179ddf76f02ac132e6eb0ab" +checksum = "59b5265ecba4e5fc2c242798fc7795f6bf7ce7c9ab909ecea7df3f8242fa74af" dependencies = [ "futures", "log", "parity-scale-codec", - "sc-client-api", + "sc-client-api 31.0.0", "sc-offchain", - "sp-api", - "sp-blockchain", - "sp-consensus", + "sp-api 29.0.0", + "sp-blockchain 31.0.0", + "sp-consensus 0.35.0", "sp-consensus-beefy", - "sp-core", + "sp-core 31.0.0", "sp-mmr-primitives", - "sp-runtime", + "sp-runtime 34.0.0", ] [[package]] name = "mmr-rpc" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19066d17147f6819ec25f5f6fc3b9fca2008ae745ac7fa2d55ddb1d207119eae" +checksum = "dfab619df48bac956375483e4d57e995fbfaec310c86cfbc420e905506b67002" dependencies = [ - "anyhow", "jsonrpsee", "parity-scale-codec", "serde", - "sp-api", - "sp-blockchain", - "sp-core", + "sp-api 29.0.0", + "sp-blockchain 31.0.0", + "sp-core 31.0.0", "sp-mmr-primitives", - "sp-runtime", + "sp-runtime 34.0.0", ] [[package]] @@ -6281,7 +6476,7 @@ name = "module-aggregated-dex" version = "2.24.0" dependencies = [ "acala-primitives", - "frame-support", + "frame-support 31.0.0", "frame-system", "module-dex", "module-support", @@ -6291,9 +6486,9 @@ dependencies = [ "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -6302,7 +6497,7 @@ name = "module-asset-registry" version = "2.24.0" dependencies = [ "acala-primitives", - "frame-support", + "frame-support 31.0.0", "frame-system", "hex", "log", @@ -6314,9 +6509,9 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde_json", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", "staging-xcm", ] @@ -6326,7 +6521,7 @@ name = "module-auction-manager" version = "2.24.0" dependencies = [ "acala-primitives", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "module-cdp-treasury", @@ -6339,9 +6534,9 @@ dependencies = [ "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -6350,7 +6545,7 @@ name = "module-cdp-engine" version = "2.24.0" dependencies = [ "acala-primitives", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "module-cdp-treasury", @@ -6370,10 +6565,10 @@ dependencies = [ "parity-scale-codec", "rand_chacha 0.2.2", "scale-info", - "sp-application-crypto", - "sp-core", - "sp-io", - "sp-runtime", + "sp-application-crypto 33.0.0", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -6382,7 +6577,7 @@ name = "module-cdp-treasury" version = "2.24.0" dependencies = [ "acala-primitives", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "module-dex", @@ -6395,9 +6590,9 @@ dependencies = [ "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -6407,7 +6602,7 @@ version = "2.24.0" dependencies = [ "acala-primitives", "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "pallet-aura", @@ -6418,10 +6613,10 @@ dependencies = [ "parity-scale-codec", "scale-info", "sp-consensus-aura", - "sp-core", - "sp-io", - "sp-runtime", - "sp-staking", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", + "sp-staking 29.0.0", "sp-std", "sp-tracing", ] @@ -6431,7 +6626,7 @@ name = "module-currencies" version = "2.24.0" dependencies = [ "acala-primitives", - "frame-support", + "frame-support 31.0.0", "frame-system", "hex", "hex-literal", @@ -6445,9 +6640,9 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde_json", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -6455,9 +6650,9 @@ dependencies = [ name = "module-currencies-runtime-api" version = "2.24.0" dependencies = [ - "sp-api", - "sp-core", - "sp-runtime", + "sp-api 29.0.0", + "sp-core 31.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -6466,7 +6661,7 @@ name = "module-dex" version = "2.24.0" dependencies = [ "acala-primitives", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "module-support", @@ -6475,9 +6670,9 @@ dependencies = [ "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -6487,16 +6682,16 @@ version = "2.24.0" dependencies = [ "acala-primitives", "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "module-support", "orml-traits", "pallet-timestamp", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -6505,15 +6700,15 @@ name = "module-earning" version = "2.24.0" dependencies = [ "acala-primitives", - "frame-support", + "frame-support 31.0.0", "frame-system", "orml-traits", "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -6522,7 +6717,7 @@ name = "module-emergency-shutdown" version = "2.24.0" dependencies = [ "acala-primitives", - "frame-support", + "frame-support 31.0.0", "frame-system", "module-cdp-treasury", "module-loans", @@ -6533,9 +6728,9 @@ dependencies = [ "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -6547,7 +6742,7 @@ dependencies = [ "env_logger", "environmental", "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "hex", "hex-literal", @@ -6571,9 +6766,9 @@ dependencies = [ "serde", "serde_json", "sha3", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", "staging-xcm-builder", "substrate-bn", @@ -6586,7 +6781,7 @@ name = "module-evm-accounts" version = "2.24.0" dependencies = [ "acala-primitives", - "frame-support", + "frame-support 31.0.0", "frame-system", "libsecp256k1", "module-evm-utility-macro", @@ -6597,9 +6792,9 @@ dependencies = [ "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -6609,7 +6804,7 @@ version = "2.24.0" dependencies = [ "acala-primitives", "ethereum-types", - "frame-support", + "frame-support 31.0.0", "frame-system", "hex", "impl-trait-for-tuples", @@ -6622,9 +6817,9 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde_json", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -6633,9 +6828,9 @@ name = "module-evm-rpc-runtime-api" version = "2.24.0" dependencies = [ "acala-primitives", - "sp-api", - "sp-core", - "sp-runtime", + "sp-api 29.0.0", + "sp-core 31.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -6667,7 +6862,7 @@ version = "2.24.0" dependencies = [ "acala-primitives", "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "module-currencies", @@ -6677,10 +6872,10 @@ dependencies = [ "pallet-balances", "parity-scale-codec", "scale-info", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-runtime", + "sp-arithmetic 25.0.0", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", "staging-xcm", ] @@ -6690,7 +6885,7 @@ name = "module-homa-validator-list" version = "2.24.0" dependencies = [ "acala-primitives", - "frame-support", + "frame-support 31.0.0", "frame-system", "module-support", "orml-currencies", @@ -6700,9 +6895,9 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -6711,7 +6906,7 @@ name = "module-honzon" version = "2.24.0" dependencies = [ "acala-primitives", - "frame-support", + "frame-support 31.0.0", "frame-system", "module-cdp-engine", "module-cdp-treasury", @@ -6727,9 +6922,9 @@ dependencies = [ "pallet-timestamp", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -6738,7 +6933,7 @@ name = "module-honzon-bridge" version = "2.24.0" dependencies = [ "acala-primitives", - "frame-support", + "frame-support 31.0.0", "frame-system", "hex", "module-currencies", @@ -6753,9 +6948,9 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde_json", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -6764,15 +6959,15 @@ name = "module-idle-scheduler" version = "2.24.0" dependencies = [ "acala-primitives", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "module-support", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -6781,7 +6976,7 @@ name = "module-incentives" version = "2.24.0" dependencies = [ "acala-primitives", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "module-support", @@ -6791,18 +6986,18 @@ dependencies = [ "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "module-liquid-crowdloan" -version = "2.16.0" +version = "2.24.0" dependencies = [ "acala-primitives", - "frame-support", + "frame-support 31.0.0", "frame-system", "module-currencies", "module-support", @@ -6811,9 +7006,9 @@ dependencies = [ "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -6822,7 +7017,7 @@ name = "module-loans" version = "2.24.0" dependencies = [ "acala-primitives", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "module-cdp-treasury", @@ -6833,9 +7028,9 @@ dependencies = [ "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -6845,7 +7040,7 @@ version = "2.24.0" dependencies = [ "acala-primitives", "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "module-currencies", "module-support", @@ -6858,9 +7053,9 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -6869,7 +7064,7 @@ name = "module-nominees-election" version = "2.24.0" dependencies = [ "acala-primitives", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "module-support", @@ -6879,9 +7074,9 @@ dependencies = [ "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -6890,16 +7085,16 @@ name = "module-prices" version = "2.24.0" dependencies = [ "acala-primitives", - "frame-support", + "frame-support 31.0.0", "frame-system", "module-support", "orml-tokens", "orml-traits", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -6909,13 +7104,13 @@ version = "2.24.0" dependencies = [ "acala-primitives", "cumulus-primitives-core", - "frame-support", + "frame-support 31.0.0", "frame-system", "module-support", "parity-scale-codec", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", "staging-xcm", ] @@ -6924,15 +7119,15 @@ dependencies = [ name = "module-session-manager" version = "2.24.0" dependencies = [ - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "pallet-session", "parity-scale-codec", "scale-info", - "sp-io", - "sp-runtime", - "sp-staking", + "sp-io 33.0.0", + "sp-runtime 34.0.0", + "sp-staking 29.0.0", "sp-std", ] @@ -6941,7 +7136,7 @@ name = "module-support" version = "2.24.0" dependencies = [ "acala-primitives", - "frame-support", + "frame-support 31.0.0", "frame-system", "impl-trait-for-tuples", "nutsfinance-stable-asset", @@ -6950,9 +7145,9 @@ dependencies = [ "scale-info", "serde", "serde_json", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", "staging-xcm", ] @@ -6962,7 +7157,7 @@ name = "module-transaction-pause" version = "2.24.0" dependencies = [ "acala-primitives", - "frame-support", + "frame-support 31.0.0", "frame-system", "hex-literal", "log", @@ -6973,9 +7168,9 @@ dependencies = [ "parity-scale-codec", "scale-info", "smallvec", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -6984,7 +7179,7 @@ name = "module-transaction-payment" version = "2.24.0" dependencies = [ "acala-primitives", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "module-aggregated-dex", @@ -6999,9 +7194,9 @@ dependencies = [ "parity-scale-codec", "scale-info", "smallvec", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", "staging-xcm", ] @@ -7013,7 +7208,7 @@ dependencies = [ "acala-primitives", "cumulus-primitives-core", "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "insta", "log", @@ -7026,9 +7221,9 @@ dependencies = [ "pallet-xcm", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", "staging-xcm", "staging-xcm-builder", @@ -7037,18 +7232,18 @@ dependencies = [ [[package]] name = "module-xnft" -version = "0.1.0-dev" +version = "2.24.0" dependencies = [ "acala-primitives", "cumulus-primitives-core", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "module-nft", "orml-nft", "parity-scale-codec", "scale-info", - "sp-runtime", + "sp-runtime 34.0.0", "sp-std", "staging-xcm", "staging-xcm-executor", @@ -7322,6 +7517,23 @@ dependencies = [ "libc", ] +[[package]] +name = "nix" +version = "0.27.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2eb04e9c688eff1c89d72b407f168cf79bb9e867a9d3323ed6c01519eb9cc053" +dependencies = [ + "bitflags 2.4.2", + "cfg-if", + "libc", +] + +[[package]] +name = "no-std-compat" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b93853da6d84c2e3c7d730d6473e8817692dd89be387eb01b94d7f108ecb5b8c" + [[package]] name = "no-std-net" version = "0.6.0" @@ -7350,6 +7562,12 @@ dependencies = [ "minimal-lexical", ] +[[package]] +name = "nonzero_ext" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38bf9645c8b145698bb0b18a4637dcacbc421ea49bef2317e4fd8065a387cf21" + [[package]] name = "normalize-line-endings" version = "0.3.0" @@ -7484,15 +7702,15 @@ checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3" name = "nutsfinance-stable-asset" version = "0.1.0" dependencies = [ - "frame-support", + "frame-support 31.0.0", "frame-system", "pallet-balances", "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -7558,9 +7776,9 @@ checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" [[package]] name = "orchestra" -version = "0.3.4" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5edee0c1917703f8a28cd229cf6a5c91a7ee34be139ced16509ac5b53b9d0c51" +checksum = "2356622ffdfe72362a45a1e5e87bb113b8327e596e39b91f11f0ef4395c8da79" dependencies = [ "async-trait", "dyn-clonable", @@ -7568,16 +7786,16 @@ dependencies = [ "futures-timer", "orchestra-proc-macro", "pin-project", - "prioritized-metered-channel 0.6.1", + "prioritized-metered-channel", "thiserror", "tracing", ] [[package]] name = "orchestra-proc-macro" -version = "0.3.4" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f60e64a3808b5bb2786b9da09fc70714952aabcdd0eeba6f1718e3dbc34ad5b" +checksum = "eedb646674596266dc9bb2b5c7eea7c36b32ecc7777eba0d510196972d72c4fd" dependencies = [ "expander 2.0.0", "indexmap 2.2.0", @@ -7600,11 +7818,11 @@ dependencies = [ [[package]] name = "orml-asset-registry" -version = "0.7.0" +version = "0.9.1" dependencies = [ "cumulus-pallet-xcm", "cumulus-primitives-core", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "orml-tokens", @@ -7622,9 +7840,9 @@ dependencies = [ "polkadot-runtime-parachains", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", "staging-xcm", "staging-xcm-builder", @@ -7634,25 +7852,25 @@ dependencies = [ [[package]] name = "orml-auction" -version = "0.7.0" +version = "0.9.1" dependencies = [ - "frame-support", + "frame-support 31.0.0", "frame-system", "orml-traits", "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "orml-authority" -version = "0.7.0" +version = "0.9.1" dependencies = [ - "frame-support", + "frame-support 31.0.0", "frame-system", "pallet-preimage", "pallet-root-testing", @@ -7660,18 +7878,18 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "orml-benchmarking" -version = "0.7.0" +version = "0.9.1" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "hex-literal", "log", @@ -7679,26 +7897,26 @@ dependencies = [ "paste", "scale-info", "serde", - "sp-api", - "sp-io", - "sp-runtime", - "sp-runtime-interface", + "sp-api 29.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", + "sp-runtime-interface 26.0.0", "sp-std", - "sp-storage", + "sp-storage 20.0.0", ] [[package]] name = "orml-build-script-utils" -version = "0.7.0" +version = "0.9.1" dependencies = [ "walkdir", ] [[package]] name = "orml-currencies" -version = "0.7.0" +version = "0.9.1" dependencies = [ - "frame-support", + "frame-support 31.0.0", "frame-system", "orml-tokens", "orml-traits", @@ -7707,90 +7925,91 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "orml-gradually-update" -version = "0.7.0" +version = "0.9.1" dependencies = [ - "frame-support", + "frame-support 31.0.0", "frame-system", "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "orml-nft" -version = "0.7.0" +version = "0.9.1" dependencies = [ - "frame-support", + "frame-support 31.0.0", "frame-system", "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "orml-oracle" -version = "0.7.0" +version = "0.9.1" dependencies = [ - "frame-support", + "frame-benchmarking", + "frame-support 31.0.0", "frame-system", "orml-traits", "orml-utilities", "parity-scale-codec", "scale-info", "serde", - "sp-application-crypto", - "sp-core", - "sp-io", - "sp-runtime", + "sp-application-crypto 33.0.0", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "orml-oracle-runtime-api" -version = "0.7.0" +version = "0.9.1" dependencies = [ "parity-scale-codec", - "sp-api", + "sp-api 29.0.0", "sp-std", ] [[package]] name = "orml-parameters" -version = "0.7.0" +version = "0.9.1" dependencies = [ - "frame-support", + "frame-support 31.0.0", "frame-system", "orml-traits", "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "orml-payments" -version = "0.7.0" +version = "0.9.1" dependencies = [ - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "orml-tokens", @@ -7798,33 +8017,33 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "orml-rewards" -version = "0.7.0" +version = "0.9.1" dependencies = [ - "frame-support", + "frame-support 31.0.0", "frame-system", "orml-traits", "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "orml-tokens" -version = "0.7.0" +version = "0.9.1" dependencies = [ - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "orml-traits", @@ -7833,29 +8052,29 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-runtime", - "sp-staking", + "sp-arithmetic 25.0.0", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", + "sp-staking 29.0.0", "sp-std", ] [[package]] name = "orml-tokens-runtime-api" -version = "0.7.0" +version = "0.9.1" dependencies = [ - "frame-support", + "frame-support 31.0.0", "parity-scale-codec", - "sp-api", - "sp-runtime", + "sp-api 29.0.0", + "sp-runtime 34.0.0", ] [[package]] name = "orml-traits" -version = "0.7.0" +version = "0.9.1" dependencies = [ - "frame-support", + "frame-support 31.0.0", "impl-trait-for-tuples", "num-traits", "orml-utilities", @@ -7863,68 +8082,68 @@ dependencies = [ "paste", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", "staging-xcm", ] [[package]] name = "orml-unknown-tokens" -version = "0.7.0" +version = "0.9.1" dependencies = [ - "frame-support", + "frame-support 31.0.0", "frame-system", "hex-literal", "orml-xcm-support", "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", "staging-xcm", ] [[package]] name = "orml-utilities" -version = "0.7.0" +version = "0.9.1" dependencies = [ - "frame-support", + "frame-support 31.0.0", "frame-system", "parity-scale-codec", "scale-info", "serde", "serde_json", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "orml-vesting" -version = "0.7.0" +version = "0.9.1" dependencies = [ - "frame-support", + "frame-support 31.0.0", "frame-system", "pallet-balances", "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "orml-xcm" -version = "0.7.0" +version = "0.9.1" dependencies = [ - "frame-support", + "frame-support 31.0.0", "frame-system", "pallet-xcm", "parity-scale-codec", @@ -7936,28 +8155,28 @@ dependencies = [ [[package]] name = "orml-xcm-mock-message-queue" -version = "0.7.0" +version = "0.9.1" dependencies = [ "cumulus-primitives-core", - "frame-support", + "frame-support 31.0.0", "frame-system", "parity-scale-codec", "polkadot-parachain-primitives", "scale-info", - "sp-io", - "sp-runtime", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", "staging-xcm", ] [[package]] name = "orml-xcm-support" -version = "0.7.0" +version = "0.9.1" dependencies = [ - "frame-support", + "frame-support 31.0.0", "orml-traits", "parity-scale-codec", - "sp-runtime", + "sp-runtime 34.0.0", "sp-std", "staging-xcm", "staging-xcm-executor", @@ -7965,11 +8184,11 @@ dependencies = [ [[package]] name = "orml-xtokens" -version = "0.7.0" +version = "0.9.1" dependencies = [ "cumulus-pallet-xcm", "cumulus-primitives-core", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "orml-tokens", @@ -7986,9 +8205,9 @@ dependencies = [ "polkadot-runtime-parachains", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", "staging-xcm", "staging-xcm-builder", @@ -7996,116 +8215,135 @@ dependencies = [ "xcm-simulator", ] +[[package]] +name = "pallet-asset-conversion" +version = "13.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4dbd5ff1c6f662d330beb109f6180ee66ed9cd7710cad28f3d15c444556fcce4" +dependencies = [ + "frame-benchmarking", + "frame-support 31.0.0", + "frame-system", + "parity-scale-codec", + "scale-info", + "sp-api 29.0.0", + "sp-arithmetic 25.0.0", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", + "sp-std", +] + [[package]] name = "pallet-asset-rate" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e6f4917bc6c9ed6864813bbb828e94c63e1878a21af89d25dd0ff7da742f53e" +checksum = "a5a492d16d0f7423cb2d7ca6fa6b4d423a4f4e2f67d2dc92d84d5988fcc33cfb" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "parity-scale-codec", "scale-info", - "sp-core", - "sp-runtime", + "sp-core 31.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-asset-tx-payment" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e967664d86219ca9f7d33504e8d914225cdb92e9e793d35edaab1fd2574f162f" +checksum = "cfcf34819002b9d6c8d7a28d89207498f63288de6689061fe9c1fb7c55454ff8" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "pallet-transaction-payment", "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-assets" -version = "29.0.0" +version = "32.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aca79db2bc70c269170893604d8a56d0f32d52c75a23a3d887b6b4df132366b7" +checksum = "805543c2ea1f10f14bc767f156b8ec80785345b683eaa59dea84d28745a87ee3" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-core", - "sp-runtime", + "sp-core 31.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-aura" -version = "27.0.0" +version = "30.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10c6ecf016520a6883df14b2f1d469d98166377eba4b299af7b76eee0130e3a6" +checksum = "e3f1176f435a94b510b99bc2aaaa84788d60f8c5352c5f34f165b37523e448a1" dependencies = [ - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "pallet-timestamp", "parity-scale-codec", "scale-info", - "sp-application-crypto", + "sp-application-crypto 33.0.0", "sp-consensus-aura", - "sp-runtime", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-authority-discovery" -version = "28.0.0" +version = "31.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9224b0a0bb4fa721d51f56947c73d4189710691b4cb40e7f7a8abf59795759a" +checksum = "6a9c124d86227da7ae9073cc2984c0384c7830f7fa61450c0990c56837335da2" dependencies = [ - "frame-support", + "frame-support 31.0.0", "frame-system", "pallet-session", "parity-scale-codec", "scale-info", - "sp-application-crypto", + "sp-application-crypto 33.0.0", "sp-authority-discovery", - "sp-runtime", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-authorship" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "817b0420f9c14bd9bfbaf9e2f769a7e8124ab4fe3da0d07c80485c0901947ab8" +checksum = "8168348a94c479b7da001b3f0d1100210704eda8ce72c58aac456f1d866d7d67" dependencies = [ - "frame-support", + "frame-support 31.0.0", "frame-system", "impl-trait-for-tuples", "parity-scale-codec", "scale-info", - "sp-runtime", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-babe" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ba445228a941062d7c4d6295810a359df7757d6182c36ddb824f8c3bf350380" +checksum = "37353294183655c76cdc56ffc5edf777b1e2275af59ae73c8aa255b6d941b362" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "pallet-authorship", @@ -8113,62 +8351,63 @@ dependencies = [ "pallet-timestamp", "parity-scale-codec", "scale-info", - "sp-application-crypto", + "sp-application-crypto 33.0.0", "sp-consensus-babe", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-session", - "sp-staking", + "sp-staking 29.0.0", "sp-std", ] [[package]] name = "pallet-bags-list" -version = "27.0.0" +version = "30.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00b0d7b6922a6bed960591efb49da6637312c034337faf4c85d8b35f2e2c611a" +checksum = "dc3f838e96a2cbd06731beb72b755ccc5bd05bcc696717a1148bdddfe9062e93" dependencies = [ - "aquamarine", + "aquamarine 0.5.0", "docify", "frame-benchmarking", "frame-election-provider-support", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", "sp-tracing", ] [[package]] name = "pallet-balances" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8406b5616e468d80972b6365f3cd8211d0dbf4d107b379fac85fddcfdf0b5562" +checksum = "d3565d525dd88e07da5b2309cd6ffe7447ddc5406eeaa2cb26157d35787a69a7" dependencies = [ + "docify", "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-runtime", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-beefy" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03f71d32d9681e9d78102dad00377629cac24b4bf43f6371c0dc7e5b25981eb4" +checksum = "a1371a2f241fd33b794b0e824f28be9de76e7544a2602421e1c4a58cb0eccef6" dependencies = [ - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "pallet-authorship", @@ -8177,21 +8416,21 @@ dependencies = [ "scale-info", "serde", "sp-consensus-beefy", - "sp-runtime", + "sp-runtime 34.0.0", "sp-session", - "sp-staking", + "sp-staking 29.0.0", "sp-std", ] [[package]] name = "pallet-beefy-mmr" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8b8eaa5c053d9cbf20faa397f21b80b9b5bafbe428890b0171fd1bba16f52ce" +checksum = "c32a1e978b043f4bf7cfcdb130a51dda4dbade1de5b85d2d634082edbc08f9cb" dependencies = [ "array-bytes 6.2.2", "binary-merkle-tree", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "pallet-beefy", @@ -8200,80 +8439,80 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-api", + "sp-api 29.0.0", "sp-consensus-beefy", - "sp-core", - "sp-io", - "sp-runtime", - "sp-state-machine", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", + "sp-state-machine 0.38.0", "sp-std", ] [[package]] name = "pallet-bounties" -version = "27.0.0" +version = "30.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5d421e3228bc4e8170d817d657aa87761b77ee4675a9e16328e1ca070cb4c41" +checksum = "e23273ffc30d94c725cb37ac1f45a40e308d8e8bfab251a299d4ed1fa9e8e46f" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "pallet-treasury", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-broker" -version = "0.6.0" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "904983f117ff92ee24b251f2a883ff01b6f8e9063649877f3892ecbb516e3cbd" +checksum = "c1b05f01c3d279cd661eba2c391844bac03fa5f979b9de821e6eb1cbe6069dfc" dependencies = [ "bitvec 1.0.1", "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "parity-scale-codec", "scale-info", - "sp-arithmetic", - "sp-core", - "sp-runtime", + "sp-arithmetic 25.0.0", + "sp-core 31.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-child-bounties" -version = "27.0.0" +version = "30.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb62c44d3ab8dcbf106b22acc138eaea6e51563d16a8d4a246303f2e20eeb9e5" +checksum = "46f1f5d1f6420b72e7fff2fa9146f1f13f68e3a3d293b421d9b9d34ad0dfa134" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "pallet-bounties", "pallet-treasury", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-collator-selection" -version = "9.0.0" +version = "12.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4199122c135e161d2e2f4cbc9339c54a11ac4b11e0beb67e53b49a3c90d566b" +checksum = "e777e84455b11e0a8798466566ebb23939f196145183665f5e67e94706ffa112" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "pallet-authorship", @@ -8281,398 +8520,398 @@ dependencies = [ "parity-scale-codec", "rand", "scale-info", - "sp-runtime", - "sp-staking", + "sp-runtime 34.0.0", + "sp-staking 29.0.0", "sp-std", ] [[package]] name = "pallet-collective" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ed22cf9d91c120695063cfa95ae0ffabcadefdf2581657ddb5fd68555b3a2e0" +checksum = "241ffbf21673fca6bf8caa2ee35088a18704b95d174e32280cb7569f58af7c61" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-conviction-voting" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a189b5fb4a473edc7b2d52109fe10d0017b9b56f7c0324018b5970125db3ce3" +checksum = "f51344679f168ecc258bf52d0a9578f6c3043e2aff4b9147004c7b8429460370" dependencies = [ "assert_matches", "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "parity-scale-codec", "scale-info", "serde", - "sp-io", - "sp-runtime", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-democracy" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b687c8a22b37f9b8444a29959f9cd0cf0be2f8efb8cd9bf91860d5dbafdab8b3" +checksum = "1603fc7a149fd1f8bc43349035a69370a024acc95d6a10a37d3b9e1f22cc58ab" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-election-provider-multi-phase" -version = "27.0.0" +version = "30.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc5e1f80bb4ce08b27f5a8a733d5c2d72d083a7d48afa4bdbb1ef3594a31e353" +checksum = "da78b2feeba1286b66ac20cbfbcd321fe9d1d2bc15e9e31292023e9a66dbb819" dependencies = [ "frame-benchmarking", "frame-election-provider-support", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "pallet-election-provider-support-benchmarking", "parity-scale-codec", "rand", "scale-info", - "sp-arithmetic", - "sp-core", - "sp-io", + "sp-arithmetic 25.0.0", + "sp-core 31.0.0", + "sp-io 33.0.0", "sp-npos-elections", - "sp-runtime", + "sp-runtime 34.0.0", "sp-std", "strum 0.24.1", ] [[package]] name = "pallet-election-provider-support-benchmarking" -version = "27.0.0" +version = "30.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "193a8592c5fd534d56d07b2abe14e830d23947fb66f31867083e4f3ef80c8caa" +checksum = "e1b20f98b9a1497a59d2b0eca0051c5ada89851bf29b26fda3a2cfe934a32116" dependencies = [ "frame-benchmarking", "frame-election-provider-support", "frame-system", "parity-scale-codec", "sp-npos-elections", - "sp-runtime", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-elections-phragmen" -version = "29.0.0" +version = "32.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dd2f70c57cbb3dcde39f141721dd34a8c852e0caaf61ae6b0bbd23138b6e1d3" +checksum = "de22659bdd6190e4f94936f0d338e67dde80e537fe22c30eb96ceab9f0d9914f" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", + "sp-core 31.0.0", + "sp-io 33.0.0", "sp-npos-elections", - "sp-runtime", - "sp-staking", + "sp-runtime 34.0.0", + "sp-staking 29.0.0", "sp-std", ] [[package]] name = "pallet-fast-unstake" -version = "27.0.0" +version = "30.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd6e0b51b82075b046792cdde2d4a2f6c9301f3deba44c26d30ab152060b9028" +checksum = "24717c932bd68705e3a5b6b9311a31e57b354274de1c373feb9ca920f6a3e439" dependencies = [ "docify", "frame-benchmarking", "frame-election-provider-support", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-io", - "sp-runtime", - "sp-staking", + "sp-io 33.0.0", + "sp-runtime 34.0.0", + "sp-staking 29.0.0", "sp-std", ] [[package]] name = "pallet-grandpa" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "935e91fa8936381aff2b88d8a7dad38ac30a1c8d2310340d73ce1c07b5ae72ce" +checksum = "d9f8a78e4f5e2399596fa918f22e588e034d78c13a46925313abb4b152a9d919" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "pallet-authorship", "pallet-session", "parity-scale-codec", "scale-info", - "sp-application-crypto", + "sp-application-crypto 33.0.0", "sp-consensus-grandpa", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-session", - "sp-staking", + "sp-staking 29.0.0", "sp-std", ] [[package]] name = "pallet-identity" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3259bb87d50529027fa40267c3662dc80c683f253f121f391c032b019c88fcb" +checksum = "33bca13843a11add3909a8c4bffae547ba9fa3a11c07ac2f8afd670acd85cb15" dependencies = [ "enumflags2", "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-io", - "sp-runtime", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-im-online" -version = "27.0.0" +version = "30.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4be3f0165158828e4e77fae106a93bc1f48cc751755bdb012edb3ac0ef1d246" +checksum = "39cb6cbcef9e9ab68a5e79429a1f32ebc8114e4c9c2c2b0356c1db212e3e0bc2" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "pallet-authorship", "parity-scale-codec", "scale-info", - "sp-application-crypto", - "sp-core", - "sp-io", - "sp-runtime", - "sp-staking", + "sp-application-crypto 33.0.0", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", + "sp-staking 29.0.0", "sp-std", ] [[package]] name = "pallet-indices" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ead239524e40e55d172f024ff6795998068a2ba1c0950e74c4db7f347cfa91e" +checksum = "a3e23345544e9b6635d296195c355a768c82a9e1d82138378ef5b80102828664" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", + "sp-core 31.0.0", + "sp-io 33.0.0", "sp-keyring", - "sp-runtime", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-membership" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bc2dfdff5a7e5b21355b34245312ba2ea687444d9003960e7b876e1df518dab" +checksum = "b8bb958b03ec28b6e7e97abfca28acb1c1d8e91ad5194537f6550c348fc60f54" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-message-queue" -version = "31.0.0" +version = "34.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab6302efb264a65fd175f3082b72004df125f646a3c68b72fd08e657a468c0d6" +checksum = "063b2e7912fbbe67985e68e460f2f242b90de48a63a1f03dd2ae022154ba25e9" dependencies = [ "environmental", "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-runtime", + "sp-arithmetic 25.0.0", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", - "sp-weights", + "sp-weights 30.0.0", ] [[package]] name = "pallet-mmr" -version = "27.0.0" +version = "30.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba6565b91d1d585047648793feece7c2c70080b37e1f55ab3a4fb50b4c1bec86" +checksum = "44f5356b869f71205d53ed686846075ebb7d67824f334289ebbe6c61766c90c6" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", + "sp-core 31.0.0", + "sp-io 33.0.0", "sp-mmr-primitives", - "sp-runtime", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-multisig" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14dbcdea9d3d7963aab57078a5bd6f3596186bfcf181d666db6ea2bfdc0184ec" +checksum = "284ff5c6675ac6438c2f4a20d75627ad4b6d7c78bb5fd911198e34ce48bc7cf2" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-io", - "sp-runtime", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-nis" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86c541b2785051ebe1ae378be4b086055fbb8b13ee18fd949dfcf68dbd1c3325" +checksum = "948a11c933d345bfd7750e92b5650656e4d967f4fbcf7e36200ef7063985b9c6" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "parity-scale-codec", "scale-info", - "sp-arithmetic", - "sp-core", - "sp-runtime", + "sp-arithmetic 25.0.0", + "sp-core 31.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-nomination-pools" -version = "25.0.0" +version = "28.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4eca0c1399f1c48b3051b33d6624021ae2b3791139461427cfc99a1e64f0cb8" +checksum = "781148c86c07aca84f471d06b449d7098e94d76bc08dd7e69bcb2572264d1b20" dependencies = [ - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", - "sp-staking", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", + "sp-staking 29.0.0", "sp-std", "sp-tracing", ] [[package]] name = "pallet-nomination-pools-benchmarking" -version = "26.0.0" +version = "29.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d01847415cd33a92c65e8d13cb0041a32b2f2523c84d9d944287ae5c0d920c82" +checksum = "d267d96d52b7bb17b5bd1333375f86a58595a457218ddc82ddec32c194806713" dependencies = [ "frame-benchmarking", "frame-election-provider-support", - "frame-support", + "frame-support 31.0.0", "frame-system", "pallet-bags-list", "pallet-nomination-pools", "pallet-staking", "parity-scale-codec", "scale-info", - "sp-runtime", - "sp-runtime-interface", - "sp-staking", + "sp-runtime 34.0.0", + "sp-runtime-interface 26.0.0", + "sp-staking 29.0.0", "sp-std", ] [[package]] name = "pallet-nomination-pools-runtime-api" -version = "23.0.0" +version = "26.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a64b17d862b833ca07a375646ecc80e164e5618c3aed4e5631816aa7288bf9b1" +checksum = "cc2055f407f235071239494548d86f4f6d5c6ec24968fd8dcac553e00e08588d" dependencies = [ "pallet-nomination-pools", "parity-scale-codec", - "sp-api", + "sp-api 29.0.0", "sp-std", ] [[package]] name = "pallet-offences" -version = "27.0.0" +version = "30.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de7b17230f58ff6b1ec2a70b3c639c49f585841dacf63f30c78db6387a833e0b" +checksum = "8f42b47ac29f107f30213d259cc0f73e1270743b66909fc7c9079d691a891b5a" dependencies = [ - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "pallet-balances", "parity-scale-codec", "scale-info", "serde", - "sp-runtime", - "sp-staking", + "sp-runtime 34.0.0", + "sp-staking 29.0.0", "sp-std", ] [[package]] name = "pallet-offences-benchmarking" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "060483993358293d041e5173635082c68c7783a800c0874e8df87c324232f0d1" +checksum = "2d0745d6fd98a6ef7b19139470a28f9b9530b425c03dc02fbd773c989fe0a96b" dependencies = [ "frame-benchmarking", "frame-election-provider-support", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "pallet-babe", @@ -8684,204 +8923,205 @@ dependencies = [ "pallet-staking", "parity-scale-codec", "scale-info", - "sp-runtime", - "sp-staking", + "sp-runtime 34.0.0", + "sp-staking 29.0.0", "sp-std", ] [[package]] name = "pallet-preimage" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce688c68f117b1916a844579aa5a945d786059b119a1cc80ace370afd1e50da4" +checksum = "6d01a900fe79c5f0762ccc29a11dda2799830ce233aa5384b2f13d9cc28e2e70" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-proxy" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3162924576a70509136eb4d8513497fb640a8b3ea753883fe29bd454c511485" +checksum = "61918227f99ed2b322bf9050337773c8a40908b2f6a800352a20485e5ba0ef1c" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "parity-scale-codec", "scale-info", - "sp-io", - "sp-runtime", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-ranked-collective" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86c6d11592a6ba9039bd3486dba15f0cb045889b2746f4619f5ec78188fdd151" +checksum = "47fbdfc5da0a70c788be3ea594153c825b4e79ae6a83499f38c251cdb5a726c0" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", + "impl-trait-for-tuples", "log", "parity-scale-codec", "scale-info", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-runtime", + "sp-arithmetic 25.0.0", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-recovery" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8649310b8f00e3b2983331cdb7173d1e66e5eeb3a3d21479e7a65386244f883" +checksum = "7cf473e4b04cd9ba40ed8963a03499de0a1a84c8eb9343b569b15bab6bb47a79" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "parity-scale-codec", "scale-info", - "sp-io", - "sp-runtime", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-referenda" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c6645c0c09ff8484c6c7ac1546d908202ed555b18169ea956955e4e2d77b210" +checksum = "b515fdbcade5b8a507e1a8ffc8b5a59725b1c8c71cfc6f8f5ae490e4a33f732c" dependencies = [ "assert_matches", "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "parity-scale-codec", "scale-info", "serde", - "sp-arithmetic", - "sp-io", - "sp-runtime", + "sp-arithmetic 25.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-root-testing" -version = "4.0.0" +version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7bd13ad045bda70f0d2023333d36620bd7b48172646274572332dc9f62fd3c8" +checksum = "7926eb378bda52162a713aca44a6faab5fc7d6867f82ac14ba375df2b33eaa7f" dependencies = [ - "frame-support", + "frame-support 31.0.0", "frame-system", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-scheduler" -version = "29.0.0" +version = "32.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc26a27b77170c18261af7be04a6569e3d0d58788255b9f283ccd089aac37887" +checksum = "44f81ff1151067225c2c359a132880e084a1c72656457fe443147ed2e6daaac2" dependencies = [ "docify", "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-io", - "sp-runtime", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", - "sp-weights", + "sp-weights 30.0.0", ] [[package]] name = "pallet-session" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e23ca2bfcffb5194de952050557bdd1fe9bce18b2bc81e8f8c01c8a3c3c3e5d8" +checksum = "17951aa288869e5afe5815eedc7038dd50b9741d215b66323ff4a12f5686ac15" dependencies = [ - "frame-support", + "frame-support 31.0.0", "frame-system", "impl-trait-for-tuples", "log", "pallet-timestamp", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-session", - "sp-staking", - "sp-state-machine", + "sp-staking 29.0.0", + "sp-state-machine 0.38.0", "sp-std", - "sp-trie", + "sp-trie 32.0.0", ] [[package]] name = "pallet-session-benchmarking" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc660786028d46e03fb0a419d6a15df3fa556db7ce74efebf5a35037b32b4bc4" +checksum = "118d0e5a8c09dbb1c7326021335aab36546846c678b3ce79301ace02cec260f7" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "pallet-session", "pallet-staking", "parity-scale-codec", "rand", - "sp-runtime", + "sp-runtime 34.0.0", "sp-session", "sp-std", ] [[package]] name = "pallet-society" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33c19c1f5a410c0b03dc1e3245ffc0269e6c9085e6f6a64ee023f7515b6f8d9b" +checksum = "7f3255dc30ce7ebfd7ee59b1890d1f0091f416f486532d4eaf795dc209e3c28e" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "parity-scale-codec", "rand_chacha 0.2.2", "scale-info", - "sp-arithmetic", - "sp-io", - "sp-runtime", + "sp-arithmetic 25.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-staking" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8883bbca2bd6ee41f81382418372ce44fd771ac53591ce9be4018ea43f8c5eda" +checksum = "baeb3d22e737307280e2047cba983cc9aa477a6f4c3001e8c1f07077d148c8f7" dependencies = [ "frame-benchmarking", "frame-election-provider-support", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "pallet-authorship", @@ -8890,10 +9130,10 @@ dependencies = [ "rand_chacha 0.2.2", "scale-info", "serde", - "sp-application-crypto", - "sp-io", - "sp-runtime", - "sp-staking", + "sp-application-crypto 33.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", + "sp-staking 29.0.0", "sp-std", ] @@ -8906,240 +9146,240 @@ dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] name = "pallet-staking-reward-fn" -version = "19.0.0" +version = "21.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e23336e4da87101633f95f9932946564c926ca7f87499654b38923b1579c605e" +checksum = "1e341c47481040b68edcf166ad34633c4c5da20d1559413e68387da935a6ae18" dependencies = [ "log", - "sp-arithmetic", + "sp-arithmetic 25.0.0", ] [[package]] name = "pallet-staking-runtime-api" -version = "14.0.0" +version = "17.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e27156b772eccb539cb1a1ea1b1b6e98d9c6589e18b913a30f67913fcf67fe7e" +checksum = "b398bbc910ed6e7e2fd76251910a8895e7c3343023e2279124568a1c860cab54" dependencies = [ "parity-scale-codec", - "sp-api", - "sp-staking", + "sp-api 29.0.0", + "sp-staking 29.0.0", ] [[package]] name = "pallet-state-trie-migration" -version = "29.0.0" +version = "32.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a48713905a318b0307e523fd3d3ca4b197ce74b2520203ded0d02e8a6c6bbd7" +checksum = "de51e792bcf770a00c5adf8db67f35dae450f445d36fa4b650980017063a62aa" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-sudo" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "053dae9119d2d828af80e8ac98f497dc27155d6b5d42264dab8fae40f2314c41" +checksum = "a00abb554e916fd31ffbc792bff01e2dd9961a0a4bb781d27ef5f30c908ac2f6" dependencies = [ "docify", "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "parity-scale-codec", "scale-info", - "sp-io", - "sp-runtime", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-timestamp" -version = "27.0.0" +version = "30.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "688b89bdd377609b592bd094b304ebca33f4767fe72935465e2fd7db0e797968" +checksum = "bb766403f8cabcedb1725326befd7253de3e4c1d3b3d5f7c40adc49ebee5040c" dependencies = [ "docify", "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-inherents", - "sp-io", - "sp-runtime", + "sp-inherents 29.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", - "sp-storage", + "sp-storage 20.0.0", "sp-timestamp", ] [[package]] name = "pallet-tips" -version = "27.0.0" +version = "30.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "facf64cab7f7a4762c57e5827597b2ca073755de4c9716444cf0847db34836df" +checksum = "fee0ebf5ee31239f9017785cecd54b46be26edef126b6369af477d67f5088ffb" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "pallet-treasury", "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-transaction-payment" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18b4ca7a1af9b1f091900a354a96319c7614d7a32106ba86cb7f0b6f90239065" +checksum = "12df1de833ad0abff5daa53f80594d6ef66d250cc1ae073c01e406ce37bbf25e" dependencies = [ - "frame-support", + "frame-support 31.0.0", "frame-system", "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-transaction-payment-rpc" -version = "30.0.0" +version = "33.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba1486d58f38892df779a7812f28ff962d0b0632b955ea3c348f605caa01ba6d" +checksum = "17b3e7cc2ef454af06e0d73e180d2f22c7f6714dca7c1d4a3cc95786041e42c2" dependencies = [ "jsonrpsee", "pallet-transaction-payment-rpc-runtime-api", "parity-scale-codec", - "sp-api", - "sp-blockchain", - "sp-core", + "sp-api 29.0.0", + "sp-blockchain 31.0.0", + "sp-core 31.0.0", "sp-rpc", - "sp-runtime", - "sp-weights", + "sp-runtime 34.0.0", + "sp-weights 30.0.0", ] [[package]] name = "pallet-transaction-payment-rpc-runtime-api" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acdfd7c882439b8198c99ece57b5bf785965545a6fa6d0bb7b56b264df1e437a" +checksum = "4e060567db5e59e3f26cc274cb9fc5db5af160ac67062d61e488f7887fef5470" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", - "sp-api", - "sp-runtime", - "sp-weights", + "sp-api 29.0.0", + "sp-runtime 34.0.0", + "sp-weights 30.0.0", ] [[package]] name = "pallet-treasury" -version = "27.0.0" +version = "30.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a75cb7498228e1a150fa09ce64acafe7105ff39b75dae1c266ba58b7e3eb225e" +checksum = "174da255855136b4bf7174a1499ddf20134efe75d59fac4709244fe813534656" dependencies = [ "docify", "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "impl-trait-for-tuples", "pallet-balances", "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-runtime", + "sp-core 31.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-utility" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "384c1d740c019410f6b40586cc387726c2e3c417c0e3e6f7e4774cd46bc6c1d0" +checksum = "73c54ec28e67769b35a650d497ddd10bf0dd783d14965a1034cdcb71ae1d1442" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-vesting" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55f3ac517a10c14beee86a737b9ea5d592af9ab21cc5354474bc5f7019210358" +checksum = "4a5627016e1cb40d02bf589507429558208c05948d1399ab405307bfe3b1d967" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-runtime", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-whitelist" -version = "27.0.0" +version = "30.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de259e3329422bf3eb10b7e966f4b1c5caadcb29cd2d45af3a000cb2d184e60d" +checksum = "a68e2271ffe7a20565b7539931b9c01f29039ab151ac14fd93032e81f250727f" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "parity-scale-codec", "scale-info", - "sp-api", - "sp-runtime", + "sp-api 29.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "pallet-xcm" -version = "7.0.0" +version = "10.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cee3520e03ac679125e8dcaa00ce4afeeb106a9623e79b5acf970d72af7f5d02" +checksum = "bd52ee00a54f8b6ff3a90e97622b2403667ef25105dd08d71d45a7075c0ba478" dependencies = [ - "bounded-collections", + "bounded-collections 0.2.0", "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "pallet-balances", "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", "staging-xcm", "staging-xcm-builder", @@ -9148,18 +9388,18 @@ dependencies = [ [[package]] name = "pallet-xcm-benchmarks" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b2846fe0a9fe3e103dea417da9d41d4f59e32aa2f2ee79e9bf424d1c99e4ba1" +checksum = "3af346fe874360fdd3e36a63cac72a891283b63a2865b28f8afccaa63472fd40" dependencies = [ "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", "parity-scale-codec", "scale-info", - "sp-io", - "sp-runtime", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", "staging-xcm", "staging-xcm-builder", @@ -9168,16 +9408,15 @@ dependencies = [ [[package]] name = "parachains-common" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ceadd4f51620023871ece5eeda64734acd17d84d49b45473d335e900a012fdde" +checksum = "5539fb10c2901cf120d3db87f6ee1568696ccce30cea1a0d0cdee31f64f1da37" dependencies = [ "cumulus-primitives-core", "cumulus-primitives-utility", - "frame-support", + "frame-support 31.0.0", "frame-system", "log", - "num-traits", "pallet-asset-tx-payment", "pallet-assets", "pallet-authorship", @@ -9186,22 +9425,30 @@ dependencies = [ "pallet-message-queue", "pallet-xcm", "parity-scale-codec", - "polkadot-core-primitives", "polkadot-primitives", - "rococo-runtime-constants", "scale-info", - "smallvec", "sp-consensus-aura", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", "staging-parachain-info", "staging-xcm", - "staging-xcm-builder", "staging-xcm-executor", "substrate-wasm-builder", - "westend-runtime-constants", +] + +[[package]] +name = "parity-bip39" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e69bf016dc406eff7d53a7d3f7cf1c2e72c82b9088aac1118591e36dd2cd3e9" +dependencies = [ + "bitcoin_hashes 0.13.0", + "rand", + "rand_core 0.6.4", + "serde", + "unicode-normalization", ] [[package]] @@ -9223,7 +9470,7 @@ dependencies = [ "libc", "log", "lz4", - "memmap2", + "memmap2 0.5.10", "parking_lot 0.12.1", "rand", "siphasher", @@ -9350,6 +9597,17 @@ dependencies = [ "subtle 2.5.0", ] +[[package]] +name = "password-hash" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "346f04948ba92c43e8469c1ee6736c7563d71012b17d40745260fe106aac2166" +dependencies = [ + "base64ct", + "rand_core 0.6.4", + "subtle 2.5.0", +] + [[package]] name = "paste" version = "1.0.14" @@ -9373,7 +9631,7 @@ checksum = "83a0692ec44e4cf1ef28ca317f14f8f07da2d95ec3fa01f86e4467b725e60917" dependencies = [ "digest 0.10.7", "hmac 0.12.1", - "password-hash", + "password-hash 0.4.2", "sha2 0.10.8", ] @@ -9384,6 +9642,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8ed6a7761f76e3b9f92dfb0a60a6a6477c61024b775147ff0973a02653abaf2" dependencies = [ "digest 0.10.7", + "password-hash 0.5.0", ] [[package]] @@ -9438,7 +9697,7 @@ dependencies = [ "pest_meta", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -9479,7 +9738,7 @@ checksum = "266c042b60c9c76b8d53061e52b2e0d1116abc57cefc8c5cd671619a56ac3690" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -9545,9 +9804,9 @@ checksum = "626dec3cac7cc0e1577a2ec3fc496277ec2baa084bebad95bb6fdbfae235f84c" [[package]] name = "polkadot-approval-distribution" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98fd276eccca3ada04cb274f4b8c51f669087d8b334c775f1231a9194d5260d0" +checksum = "c71bcf7eaa793354f996553b9b472833f761d9cd9e9bf6b2123895da4df6a25b" dependencies = [ "bitvec 1.0.1", "futures", @@ -9566,9 +9825,9 @@ dependencies = [ [[package]] name = "polkadot-availability-bitfield-distribution" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51c43e54e0cc47dfb4f7c3917a774ccc796524087515b212d9fe109bde71846e" +checksum = "9b156f5a0a20ffcd852e266b865ad9149c6180a4cf1af07f334567c3b86f0fec" dependencies = [ "always-assert", "futures", @@ -9583,9 +9842,9 @@ dependencies = [ [[package]] name = "polkadot-availability-distribution" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "121ded25722b8505335b05a77f1def84278802ed3f4774c7fe6ab7c961affe06" +checksum = "156b913d3eb7981ac8d540bacef09d5dac3a5d0584fa5a27fc8971870a02040a" dependencies = [ "derive_more", "fatality", @@ -9599,17 +9858,17 @@ dependencies = [ "polkadot-primitives", "rand", "schnellru", - "sp-core", - "sp-keystore", + "sp-core 31.0.0", + "sp-keystore 0.37.0", "thiserror", "tracing-gum", ] [[package]] name = "polkadot-availability-recovery" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3902495dbba25e7526168c8f88b26cc0dbb96cfe10813238a650c67b34bf9f31" +checksum = "d736bca91fe70f303d09a1e251b7d3cb39164c94948d95a7769256ece066a3ed" dependencies = [ "async-trait", "fatality", @@ -9631,9 +9890,9 @@ dependencies = [ [[package]] name = "polkadot-cli" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93cafe0d136732ad69bce9cd82a34a7b1ff0cd2268d84309aeb673622d40a013" +checksum = "5509ed80ddcbb63c88b9f346b22f4b663e52dadf475118ec06406a0688817c55" dependencies = [ "cfg-if", "clap", @@ -9644,15 +9903,16 @@ dependencies = [ "polkadot-node-primitives", "polkadot-service", "sc-cli", - "sc-executor", + "sc-executor 0.35.0", "sc-service", "sc-storage-monitor", "sc-sysinfo", "sc-tracing", - "sp-core", - "sp-io", + "sp-core 31.0.0", + "sp-io 33.0.0", "sp-keyring", "sp-maybe-compressed-blob", + "sp-runtime 34.0.0", "substrate-build-script-utils", "thiserror", "try-runtime-cli", @@ -9660,9 +9920,9 @@ dependencies = [ [[package]] name = "polkadot-collator-protocol" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a70007b246c3679ee43f11123bda6d715f659f7b6d4134d0fcbe8980e049386b" +checksum = "c82682bdd0aea251ab8f31a1b06f4c2c1c494e80fed4fc13ca9bc7622870bc82" dependencies = [ "bitvec 1.0.1", "fatality", @@ -9673,9 +9933,9 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", - "sp-core", - "sp-keystore", - "sp-runtime", + "sp-core 31.0.0", + "sp-keystore 0.37.0", + "sp-runtime 34.0.0", "thiserror", "tokio-util", "tracing-gum", @@ -9683,28 +9943,28 @@ dependencies = [ [[package]] name = "polkadot-core-primitives" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bda2b0f0c580c38f12445a4af10e0a23acf48381b2a95653e0be48ba787e10e5" +checksum = "44c2f38f3195108e9da39b9845895bb3dff76f1c7b31409143febeb1560cd276" dependencies = [ "parity-scale-codec", "scale-info", - "sp-core", - "sp-runtime", + "sp-core 31.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "polkadot-dispute-distribution" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84a9b173e02d1f600a422269b3b5a1db203d39f436f7db7d7e41ef6dda6f42e0" +checksum = "f5331cccd51a1593bc26a1619964f49876629589139cdf46151c21a6308c6bad" dependencies = [ "derive_more", "fatality", "futures", "futures-timer", - "indexmap 1.9.3", + "indexmap 2.2.0", "parity-scale-codec", "polkadot-erasure-coding", "polkadot-node-network-protocol", @@ -9714,32 +9974,32 @@ dependencies = [ "polkadot-primitives", "sc-network", "schnellru", - "sp-application-crypto", - "sp-keystore", + "sp-application-crypto 33.0.0", + "sp-keystore 0.37.0", "thiserror", "tracing-gum", ] [[package]] name = "polkadot-erasure-coding" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff8347b3528fe94e47ec1b818b06bf821010a5f180d0ac5c89138da0d382debc" +checksum = "4842b32ecf4ab29521f1f9dd199c35398cd101883912f74e070658cd465037af" dependencies = [ "parity-scale-codec", "polkadot-node-primitives", "polkadot-primitives", "reed-solomon-novelpoly", - "sp-core", - "sp-trie", + "sp-core 31.0.0", + "sp-trie 32.0.0", "thiserror", ] [[package]] name = "polkadot-gossip-support" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4de739371a4b5f036848de5c7185dfee88587016d2bb32af07f38fb909b80d8" +checksum = "3165cced1fd975f43d21e8a0701b19461d07131ace5feae2bfeb8ea005953683" dependencies = [ "futures", "futures-timer", @@ -9751,17 +10011,18 @@ dependencies = [ "rand_chacha 0.3.1", "sc-network", "sc-network-common", - "sp-application-crypto", - "sp-core", - "sp-keystore", + "sp-application-crypto 33.0.0", + "sp-core 31.0.0", + "sp-crypto-hashing", + "sp-keystore 0.37.0", "tracing-gum", ] [[package]] name = "polkadot-network-bridge" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4598c9d00dbc017c0f01e82a7c0740805cc500c3b8946ad0b7945ab4d68dd7ee" +checksum = "48f34d1b7dde0d43c37aeacb37c199cbfc1c541a3ff03317fcb6bcc2d69501f6" dependencies = [ "always-assert", "async-trait", @@ -9776,16 +10037,16 @@ dependencies = [ "polkadot-overseer", "polkadot-primitives", "sc-network", - "sp-consensus", + "sp-consensus 0.35.0", "thiserror", "tracing-gum", ] [[package]] name = "polkadot-node-collation-generation" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba987629ab789f529426d6187dbafaa8209f5ee479c645184e4c1e33a59e2135" +checksum = "1060f6954c43f120751ad3f2a54155541893fcf9a966f4a9ce5192ee7888fa1f" dependencies = [ "futures", "parity-scale-codec", @@ -9794,7 +10055,7 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", - "sp-core", + "sp-core 31.0.0", "sp-maybe-compressed-blob", "thiserror", "tracing-gum", @@ -9802,9 +10063,9 @@ dependencies = [ [[package]] name = "polkadot-node-core-approval-voting" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5910fa99def47accbb4505bef91f74614f62347bc0c53c11296d5ce70d8e255" +checksum = "427edaa41cc878f0d22b3248e900d1f65760a92f6e230e7a54ff6118b8ef9c79" dependencies = [ "bitvec 1.0.1", "derive_more", @@ -9826,19 +10087,19 @@ dependencies = [ "sc-keystore", "schnellru", "schnorrkel 0.11.4", - "sp-application-crypto", - "sp-consensus", + "sp-application-crypto 33.0.0", + "sp-consensus 0.35.0", "sp-consensus-slots", - "sp-runtime", + "sp-runtime 34.0.0", "thiserror", "tracing-gum", ] [[package]] name = "polkadot-node-core-av-store" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ab1583533dc82a719607323432c013e01c2a8c971eb7e7703ff5eadd762f4e3" +checksum = "669f4ba3485a915853e94db99cf0dc5af9bccacd76b4d6f06550c5ecbd33d4aa" dependencies = [ "bitvec 1.0.1", "futures", @@ -9852,16 +10113,16 @@ dependencies = [ "polkadot-node-subsystem-util", "polkadot-overseer", "polkadot-primitives", - "sp-consensus", + "sp-consensus 0.35.0", "thiserror", "tracing-gum", ] [[package]] name = "polkadot-node-core-backing" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7b5468fa618ccbeb4611b073d2c28b9440b51f4012e69c117e43192f9de8b17" +checksum = "307ec8006475fd2f5f878bbfd7c74368f4fde0fd10096925a85b5e027ace4889" dependencies = [ "bitvec 1.0.1", "fatality", @@ -9872,22 +10133,23 @@ dependencies = [ "polkadot-node-subsystem-util", "polkadot-primitives", "polkadot-statement-table", - "sp-keystore", + "schnellru", + "sp-keystore 0.37.0", "thiserror", "tracing-gum", ] [[package]] name = "polkadot-node-core-bitfield-signing" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4975e2ecc81d34605748781e9449a7b7ff956c385b46496005257a1a7dd56f0d" +checksum = "b8133ce90b5bfc6d81c8d124dd26ec86624eb88bb33e57c0fb59d1262c9224ea" dependencies = [ "futures", "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", - "sp-keystore", + "sp-keystore 0.37.0", "thiserror", "tracing-gum", "wasm-timer", @@ -9895,9 +10157,9 @@ dependencies = [ [[package]] name = "polkadot-node-core-candidate-validation" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bcfd720b86c1ddf6616cf083a2cb273147687521c1d13a7f3c991b1d5ae03444" +checksum = "1a4335b31f5d7dd3c59a7a061ca32061d290244fde416186fd22bee5093cf4bb" dependencies = [ "async-trait", "futures", @@ -9917,24 +10179,24 @@ dependencies = [ [[package]] name = "polkadot-node-core-chain-api" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a9f00bd39f433a2e8281524529853a3be54970e799a451e2c14fc5b75cf226f" +checksum = "23b25733a45754fa4f049d26289994e379be21b132ca36982378604b53341104" dependencies = [ "futures", "polkadot-node-metrics", "polkadot-node-subsystem", "polkadot-node-subsystem-types", - "sc-client-api", + "sc-client-api 31.0.0", "sc-consensus-babe", "tracing-gum", ] [[package]] name = "polkadot-node-core-chain-selection" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea28475a96dfb6419432314d8021780e5c5b0f50a5525fd332e8b2a947a2deb5" +checksum = "c77a7c69bd67b0840c0f97c61637b798f6ec49c6a1c4cf153e4d8e8b22e34c45" dependencies = [ "futures", "futures-timer", @@ -9950,9 +10212,9 @@ dependencies = [ [[package]] name = "polkadot-node-core-dispute-coordinator" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ad9cfb3e775dc4c611a79e294549fe4b244052ddaacf14133380e793c25a99f" +checksum = "ea6fb7b632e37b5eff4d3ceb246a6d7277c82bb573cbc2360c37719a5e00df82" dependencies = [ "fatality", "futures", @@ -9970,9 +10232,9 @@ dependencies = [ [[package]] name = "polkadot-node-core-parachains-inherent" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb2535ef374a218b1e9d05b98a903edbdddf4eea47f9e137fcc09c8e1bc199dd" +checksum = "8c904246202cb80fc3e3872e142d74958903515c3b91d3d4d88907cf8bca46e2" dependencies = [ "async-trait", "futures", @@ -9980,17 +10242,17 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-overseer", "polkadot-primitives", - "sp-blockchain", - "sp-inherents", + "sp-blockchain 31.0.0", + "sp-inherents 29.0.0", "thiserror", "tracing-gum", ] [[package]] name = "polkadot-node-core-prospective-parachains" -version = "6.0.0" +version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15a8876cc0aa627190f1d41c01061a7acee9621703501d9a60118d35e81579f9" +checksum = "d343298e502e687bc2f8ae837cad538a9b5d60ce714ace58120cb91aeb41d1c1" dependencies = [ "bitvec 1.0.1", "fatality", @@ -10006,9 +10268,9 @@ dependencies = [ [[package]] name = "polkadot-node-core-provisioner" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25c88b17b93bf410a72bfb4543b1ae01bb0d33fd6cba9af1f0e74c4ef2b906ad" +checksum = "f9be87118cc96f05bd5a35bee2f8c495b894d23fbff1c954b15d7dbe4516564c" dependencies = [ "bitvec 1.0.1", "fatality", @@ -10018,15 +10280,16 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", + "schnellru", "thiserror", "tracing-gum", ] [[package]] name = "polkadot-node-core-pvf" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c80f2810b2eb843f3282b11e7ce1624866b6dd1ee6a95541b5882b5df3f36f25" +checksum = "99c07e2dad8712e1e5978c6404aca20d2c7f1b5d6151d60277f49ce949b3ed5d" dependencies = [ "always-assert", "array-bytes 6.2.2", @@ -10047,7 +10310,7 @@ dependencies = [ "polkadot-primitives", "rand", "slotmap", - "sp-core", + "sp-core 31.0.0", "sp-maybe-compressed-blob", "sp-wasm-interface", "tempfile", @@ -10058,9 +10321,9 @@ dependencies = [ [[package]] name = "polkadot-node-core-pvf-checker" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14d8ddb21cb3ad1868967b116fbf289610880cb95313b2798762cdd8653d36b7" +checksum = "1536bf89078dca39061f2a4d742e11dc14da38ffa5b6ce84e5c454cf9fd9b151" dependencies = [ "futures", "polkadot-node-primitives", @@ -10068,32 +10331,34 @@ dependencies = [ "polkadot-node-subsystem-util", "polkadot-overseer", "polkadot-primitives", - "sp-keystore", + "sp-keystore 0.37.0", "thiserror", "tracing-gum", ] [[package]] name = "polkadot-node-core-pvf-common" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80bbf311b112a8552e89e5be55b0305d86328ba04528e47d3203cd27751405bc" +checksum = "2781bf5b07873b37ed5a76b28866367ea2529d4b91497c3db560c0eb59b2a2d9" dependencies = [ "cfg-if", "cpu-time", "futures", "landlock", "libc", + "nix 0.27.1", "parity-scale-codec", "polkadot-parachain-primitives", "polkadot-primitives", - "sc-executor", - "sc-executor-common", - "sc-executor-wasmtime", + "sc-executor 0.35.0", + "sc-executor-common 0.32.0", + "sc-executor-wasmtime 0.32.0", "seccompiler", - "sp-core", - "sp-externalities", - "sp-io", + "sp-core 31.0.0", + "sp-crypto-hashing", + "sp-externalities 0.27.0", + "sp-io 33.0.0", "sp-tracing", "thiserror", "tracing-gum", @@ -10101,9 +10366,9 @@ dependencies = [ [[package]] name = "polkadot-node-core-runtime-api" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17345f76b7ebcf2f1e1be5411a6420971ef60d69070f115e459b2f017f91bcb5" +checksum = "7065d7dd209b05ceaf3781ca0a7cdfcb0071c3a61a8357e37dff8587a94928d2" dependencies = [ "futures", "polkadot-node-metrics", @@ -10117,9 +10382,9 @@ dependencies = [ [[package]] name = "polkadot-node-jaeger" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b099624af4597bac5d1617a3cab057785ee47e657de7ad078957bfa397d82c4" +checksum = "e14e65e3d9990d1f8f793a23c05c6aa82a551e551225ab86d2625474afef748f" dependencies = [ "lazy_static", "log", @@ -10129,16 +10394,16 @@ dependencies = [ "polkadot-node-primitives", "polkadot-primitives", "sc-network", - "sp-core", + "sp-core 31.0.0", "thiserror", "tokio", ] [[package]] name = "polkadot-node-metrics" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2b5b00a9646875f22ab45e61ede04f623a3fbbc03bae52263b3d558c964bc32" +checksum = "a4ca58a67371546b66a011f0e27551094a8499a53223b16c164e769d25d981d0" dependencies = [ "bs58 0.5.0", "futures", @@ -10146,7 +10411,7 @@ dependencies = [ "log", "parity-scale-codec", "polkadot-primitives", - "prioritized-metered-channel 0.5.1", + "prioritized-metered-channel", "sc-cli", "sc-service", "sc-tracing", @@ -10156,9 +10421,9 @@ dependencies = [ [[package]] name = "polkadot-node-network-protocol" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e420ba9220abaa468a393ff2834b7c2b4d7d87b6d903d9046dfd682c97d35d4c" +checksum = "67c3b078794c9c383ee3ceff65f2713ec81c033c6d8785ead5f7797e914c1fe3" dependencies = [ "async-channel 1.9.0", "async-trait", @@ -10181,9 +10446,9 @@ dependencies = [ [[package]] name = "polkadot-node-primitives" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "366d18f1498426975c610246063149ad84788eb1e924cab6ee44a4d8958ecf61" +checksum = "1d9521abb7028ce7040f66a0786423bee2cdb7725ca46e5cee1f86191bcb2ed3" dependencies = [ "bitvec 1.0.1", "bounded-vec", @@ -10193,21 +10458,21 @@ dependencies = [ "polkadot-primitives", "schnorrkel 0.11.4", "serde", - "sp-application-crypto", + "sp-application-crypto 33.0.0", "sp-consensus-babe", - "sp-core", - "sp-keystore", + "sp-core 31.0.0", + "sp-keystore 0.37.0", "sp-maybe-compressed-blob", - "sp-runtime", + "sp-runtime 34.0.0", "thiserror", "zstd 0.12.4", ] [[package]] name = "polkadot-node-subsystem" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "831cf07bf6588d7d8ab872f8f214b4b24b2c4243faf8028534f8a11a3f03c466" +checksum = "c7865c507f0eab9d816c40b1d4e2acb4e8f77db9efc8c0af23942d6b0f50e6f6" dependencies = [ "polkadot-node-jaeger", "polkadot-node-subsystem-types", @@ -10216,9 +10481,9 @@ dependencies = [ [[package]] name = "polkadot-node-subsystem-types" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd132afdfcdf2e30f7924c9561bbc1208b0838ab9c2275bf0ef32525f63b8bd0" +checksum = "bf0e971c1377901212059b794b48acac9a855cac83f2e07dc1b708ca0e77ba64" dependencies = [ "async-trait", "bitvec 1.0.1", @@ -10230,24 +10495,24 @@ dependencies = [ "polkadot-node-primitives", "polkadot-primitives", "polkadot-statement-table", - "sc-client-api", + "sc-client-api 31.0.0", "sc-network", - "sc-transaction-pool-api", + "sc-transaction-pool-api 31.0.0", "smallvec", - "sp-api", + "sp-api 29.0.0", "sp-authority-discovery", - "sp-blockchain", + "sp-blockchain 31.0.0", "sp-consensus-babe", - "sp-runtime", + "sp-runtime 34.0.0", "substrate-prometheus-endpoint", "thiserror", ] [[package]] name = "polkadot-node-subsystem-util" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d32c2f2027689777bd61681d769ed5ec726144905c4e3cb16c5f8a4edb55250a" +checksum = "4937553bd1a5f9ee9343a1a227ae07237b48a29c99ecd53217b090ca84b753c6" dependencies = [ "async-trait", "derive_more", @@ -10268,22 +10533,22 @@ dependencies = [ "polkadot-node-subsystem-types", "polkadot-overseer", "polkadot-primitives", - "prioritized-metered-channel 0.5.1", + "prioritized-metered-channel", "rand", - "sc-client-api", + "sc-client-api 31.0.0", "schnellru", - "sp-application-crypto", - "sp-core", - "sp-keystore", + "sp-application-crypto 33.0.0", + "sp-core 31.0.0", + "sp-keystore 0.37.0", "thiserror", "tracing-gum", ] [[package]] name = "polkadot-overseer" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9aa0b71f50f0be1959bcb10a46105ca66b9c6868d549385a247750e5b7a45c77" +checksum = "97415bc09e9dd20d44a019eaf0bb803ab3239a7eca20820b181e53901966fdbc" dependencies = [ "async-trait", "futures", @@ -10295,70 +10560,71 @@ dependencies = [ "polkadot-node-primitives", "polkadot-node-subsystem-types", "polkadot-primitives", - "sc-client-api", - "sp-api", - "sp-core", + "sc-client-api 31.0.0", + "sp-api 29.0.0", + "sp-core 31.0.0", "tikv-jemalloc-ctl", "tracing-gum", ] [[package]] name = "polkadot-parachain-primitives" -version = "6.0.0" +version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b37c55955147479e7b2f3c2e5385db4846ac3e3b997cd4a4ad52344524b5447" +checksum = "4b87dda07862f2b16f2c2b7d315f2b4549c896562d973d466b6d19de36aba30d" dependencies = [ - "bounded-collections", + "bounded-collections 0.2.0", "derive_more", "parity-scale-codec", "polkadot-core-primitives", "scale-info", "serde", - "sp-core", - "sp-runtime", + "sp-core 31.0.0", + "sp-runtime 34.0.0", "sp-std", - "sp-weights", + "sp-weights 30.0.0", ] [[package]] name = "polkadot-primitives" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8aefd230a654f5b2aee18ebbd9c081835def0e1898ee6c018501dd77c18f5929" +checksum = "7e01b525a35852e2861397eecbdb4a03dda69f14f7ca04968f2e06d6cba51dfb" dependencies = [ "bitvec 1.0.1", "hex-literal", + "log", "parity-scale-codec", "polkadot-core-primitives", "polkadot-parachain-primitives", "scale-info", "serde", - "sp-api", - "sp-application-crypto", - "sp-arithmetic", + "sp-api 29.0.0", + "sp-application-crypto 33.0.0", + "sp-arithmetic 25.0.0", "sp-authority-discovery", "sp-consensus-slots", - "sp-core", - "sp-inherents", - "sp-io", - "sp-keystore", - "sp-runtime", - "sp-staking", + "sp-core 31.0.0", + "sp-inherents 29.0.0", + "sp-io 33.0.0", + "sp-keystore 0.37.0", + "sp-runtime 34.0.0", + "sp-staking 29.0.0", "sp-std", ] [[package]] name = "polkadot-rpc" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "382eada9005c73375778e1dca58116e0660431cf90989fe0dde54ebe1f621a1e" +checksum = "9bf68469a4e01a0c8a16869fde6de3071fbebdf836058c8afe8396470ef2c462" dependencies = [ "jsonrpsee", "mmr-rpc", "pallet-transaction-payment-rpc", "polkadot-primitives", "sc-chain-spec", - "sc-client-api", + "sc-client-api 31.0.0", "sc-consensus-babe", "sc-consensus-babe-rpc", "sc-consensus-beefy", @@ -10369,28 +10635,28 @@ dependencies = [ "sc-rpc", "sc-rpc-spec-v2", "sc-sync-state-rpc", - "sc-transaction-pool-api", - "sp-api", + "sc-transaction-pool-api 31.0.0", + "sp-api 29.0.0", "sp-block-builder", - "sp-blockchain", - "sp-consensus", + "sp-blockchain 31.0.0", + "sp-consensus 0.35.0", "sp-consensus-babe", - "sp-keystore", - "sp-runtime", + "sp-keystore 0.37.0", + "sp-runtime 34.0.0", "substrate-frame-rpc-system", "substrate-state-trie-migration-rpc", ] [[package]] name = "polkadot-runtime-common" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4641a850b7415a42e56bd262aba243ed77a9280cb2b825a427c425bdc8961d70" +checksum = "b1abd7bff20e17e025a4e001aff55dfefcfd7ef8a8ae138de44998a012e227f2" dependencies = [ "bitvec 1.0.1", "frame-benchmarking", "frame-election-provider-support", - "frame-support", + "frame-support 31.0.0", "frame-system", "impl-trait-for-tuples", "libsecp256k1", @@ -10410,7 +10676,6 @@ dependencies = [ "pallet-transaction-payment", "pallet-treasury", "pallet-vesting", - "pallet-xcm-benchmarks", "parity-scale-codec", "polkadot-primitives", "polkadot-runtime-parachains", @@ -10419,14 +10684,14 @@ dependencies = [ "serde", "serde_derive", "slot-range-helper", - "sp-api", - "sp-core", - "sp-inherents", - "sp-io", + "sp-api 29.0.0", + "sp-core 31.0.0", + "sp-inherents 29.0.0", + "sp-io 33.0.0", "sp-npos-elections", - "sp-runtime", + "sp-runtime 34.0.0", "sp-session", - "sp-staking", + "sp-staking 29.0.0", "sp-std", "staging-xcm", "staging-xcm-builder", @@ -10436,9 +10701,9 @@ dependencies = [ [[package]] name = "polkadot-runtime-metrics" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ac3c6ee03f38556274b26049c51c5c7095abfd4ebfd11cd492918a4344f2851" +checksum = "4fed9088becfd874b6dbf064f9d1dd1bfa2e3c2188459a572aac2e689c028772" dependencies = [ "bs58 0.5.0", "frame-benchmarking", @@ -10450,15 +10715,15 @@ dependencies = [ [[package]] name = "polkadot-runtime-parachains" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d253ef2952097398d98ed12729e47f9328bcd1baa92c3acc1524a4baca7d1ac" +checksum = "8ce601c5f1005ff1d315c1e5c161a73e63e54bf23527f98c2bfa3ffc5b22f5e6" dependencies = [ "bitflags 1.3.2", "bitvec 1.0.1", "derive_more", "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "frame-system", "impl-trait-for-tuples", "log", @@ -10482,16 +10747,16 @@ dependencies = [ "rustc-hex", "scale-info", "serde", - "sp-api", - "sp-application-crypto", - "sp-arithmetic", - "sp-core", - "sp-inherents", - "sp-io", - "sp-keystore", - "sp-runtime", + "sp-api 29.0.0", + "sp-application-crypto 33.0.0", + "sp-arithmetic 25.0.0", + "sp-core 31.0.0", + "sp-inherents 29.0.0", + "sp-io 33.0.0", + "sp-keystore 0.37.0", + "sp-runtime 34.0.0", "sp-session", - "sp-staking", + "sp-staking 29.0.0", "sp-std", "staging-xcm", "staging-xcm-executor", @@ -10500,14 +10765,15 @@ dependencies = [ [[package]] name = "polkadot-service" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d75bf984471c2608905176b62726b3552bbfdc3e04ebdc7fe75e5179ff215588" +checksum = "322db94a98084bf62ac2c58194856d823455ceb74000c9602f817b8b738a8f78" dependencies = [ "async-trait", + "bitvec 1.0.1", "frame-benchmarking", "frame-benchmarking-cli", - "frame-support", + "frame-support 31.0.0", "frame-system", "frame-system-rpc-runtime-api", "futures", @@ -10566,14 +10832,14 @@ dependencies = [ "sc-basic-authorship", "sc-block-builder", "sc-chain-spec", - "sc-client-api", - "sc-client-db", + "sc-client-api 31.0.0", + "sc-client-db 0.38.0", "sc-consensus", "sc-consensus-babe", "sc-consensus-beefy", "sc-consensus-grandpa", "sc-consensus-slots", - "sc-executor", + "sc-executor 0.35.0", "sc-keystore", "sc-network", "sc-network-common", @@ -10584,33 +10850,33 @@ dependencies = [ "sc-sysinfo", "sc-telemetry", "sc-transaction-pool", - "sc-transaction-pool-api", + "sc-transaction-pool-api 31.0.0", "schnellru", "serde", "serde_json", - "sp-api", + "sp-api 29.0.0", "sp-authority-discovery", "sp-block-builder", - "sp-blockchain", - "sp-consensus", + "sp-blockchain 31.0.0", + "sp-consensus 0.35.0", "sp-consensus-babe", "sp-consensus-beefy", "sp-consensus-grandpa", - "sp-core", - "sp-inherents", - "sp-io", + "sp-core 31.0.0", + "sp-inherents 29.0.0", + "sp-io 33.0.0", "sp-keyring", - "sp-keystore", + "sp-keystore 0.37.0", "sp-mmr-primitives", "sp-offchain", - "sp-runtime", + "sp-runtime 34.0.0", "sp-session", - "sp-state-machine", - "sp-storage", + "sp-state-machine 0.38.0", + "sp-storage 20.0.0", "sp-timestamp", "sp-transaction-pool", - "sp-version", - "sp-weights", + "sp-version 32.0.0", + "sp-weights 30.0.0", "substrate-prometheus-endpoint", "thiserror", "tracing-gum", @@ -10619,39 +10885,160 @@ dependencies = [ [[package]] name = "polkadot-statement-distribution" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b82b48ff9204ea663ccccde78aefa8a524958aadff5c84a4f1fd773c291057d" +checksum = "38a4ef148c9bbed26f8630311ac26c9df1c07195a46a84fb5e8e7e7122e90248" dependencies = [ "arrayvec 0.7.4", "bitvec 1.0.1", "fatality", "futures", "futures-timer", - "indexmap 1.9.3", + "indexmap 2.2.0", "parity-scale-codec", "polkadot-node-network-protocol", "polkadot-node-primitives", "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", - "sp-keystore", - "sp-staking", + "sp-keystore 0.37.0", + "sp-staking 29.0.0", "thiserror", "tracing-gum", ] [[package]] name = "polkadot-statement-table" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "478dea03265eb2465010dae149616e4f28fe858e103671b1a96dc19e9e388c8f" +checksum = "a18144720acd47e1243b60c20bfb03f73dc67cbaf61bf2820991961e1ebb803b" dependencies = [ "parity-scale-codec", "polkadot-primitives", - "sp-core", + "sp-core 31.0.0", + "tracing-gum", +] + +[[package]] +name = "polkavm" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a3693e5efdb2bf74e449cd25fd777a28bd7ed87e41f5d5da75eb31b4de48b94" +dependencies = [ + "libc", + "log", + "polkavm-assembler", + "polkavm-common 0.9.0", + "polkavm-linux-raw", +] + +[[package]] +name = "polkavm-assembler" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa96d6d868243acc12de813dd48e756cbadcc8e13964c70d272753266deadc1" +dependencies = [ + "log", +] + +[[package]] +name = "polkavm-common" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92c99f7eee94e7be43ba37eef65ad0ee8cbaf89b7c00001c3f6d2be985cb1817" + +[[package]] +name = "polkavm-common" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d9428a5cfcc85c5d7b9fc4b6a18c4b802d0173d768182a51cc7751640f08b92" +dependencies = [ + "log", +] + +[[package]] +name = "polkavm-derive" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "79fa916f7962348bd1bb1a65a83401675e6fc86c51a0fdbcf92a3108e58e6125" +dependencies = [ + "polkavm-derive-impl-macro 0.8.0", +] + +[[package]] +name = "polkavm-derive" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae8c4bea6f3e11cd89bb18bcdddac10bd9a24015399bd1c485ad68a985a19606" +dependencies = [ + "polkavm-derive-impl-macro 0.9.0", +] + +[[package]] +name = "polkavm-derive-impl" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c10b2654a8a10a83c260bfb93e97b262cf0017494ab94a65d389e0eda6de6c9c" +dependencies = [ + "polkavm-common 0.8.0", + "proc-macro2", + "quote", + "syn 2.0.58", +] + +[[package]] +name = "polkavm-derive-impl" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c4fdfc49717fb9a196e74a5d28e0bc764eb394a2c803eb11133a31ac996c60c" +dependencies = [ + "polkavm-common 0.9.0", + "proc-macro2", + "quote", + "syn 2.0.58", +] + +[[package]] +name = "polkavm-derive-impl-macro" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15e85319a0d5129dc9f021c62607e0804f5fb777a05cdda44d750ac0732def66" +dependencies = [ + "polkavm-derive-impl 0.8.0", + "syn 2.0.58", +] + +[[package]] +name = "polkavm-derive-impl-macro" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ba81f7b5faac81e528eb6158a6f3c9e0bb1008e0ffa19653bc8dea925ecb429" +dependencies = [ + "polkavm-derive-impl 0.9.0", + "syn 2.0.58", +] + +[[package]] +name = "polkavm-linker" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c7be503e60cf56c0eb785f90aaba4b583b36bff00e93997d93fef97f9553c39" +dependencies = [ + "gimli 0.28.1", + "hashbrown 0.14.3", + "log", + "object 0.32.2", + "polkavm-common 0.9.0", + "regalloc2 0.9.3", + "rustc-demangle", ] +[[package]] +name = "polkavm-linux-raw" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26e85d3456948e650dff0cfc85603915847faf893ed1e66b020bb82ef4557120" + [[package]] name = "polling" version = "2.8.0" @@ -10770,7 +11157,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a41cf62165e97c7f814d2221421dbb9afcbcdb0a88068e5ea206e19951c2cbb5" dependencies = [ "proc-macro2", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -10787,22 +11174,6 @@ dependencies = [ "uint", ] -[[package]] -name = "prioritized-metered-channel" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e99f0c89bd88f393aab44a4ab949351f7bc7e7e1179d11ecbfe50cbe4c47e342" -dependencies = [ - "coarsetime", - "crossbeam-queue", - "derive_more", - "futures", - "futures-timer", - "nanorand", - "thiserror", - "tracing", -] - [[package]] name = "prioritized-metered-channel" version = "0.6.1" @@ -10870,7 +11241,7 @@ checksum = "834da187cfe638ae8abb0203f0b33e5ccdb02a28e7199f2f47b3e2754f50edca" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -10916,7 +11287,7 @@ checksum = "440f724eba9f6996b75d63681b0a92b06947f1457076d503a4d2e2c8f56442b8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -10926,7 +11297,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b82eaa1d779e9a4bc1c3217db8ffbeabaae1dca241bf70183242128d48681cd" dependencies = [ "bytes", - "prost-derive", + "prost-derive 0.11.9", +] + +[[package]] +name = "prost" +version = "0.12.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0f5d036824e4761737860779c906171497f6d55681139d8312388f8fe398922" +dependencies = [ + "bytes", + "prost-derive 0.12.4", ] [[package]] @@ -10936,14 +11317,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "119533552c9a7ffacc21e099c24a0ac8bb19c2a2a3f363de84cd9b844feab270" dependencies = [ "bytes", - "heck", + "heck 0.4.1", "itertools 0.10.5", "lazy_static", "log", "multimap", "petgraph", "prettyplease 0.1.25", - "prost", + "prost 0.11.9", "prost-types", "regex", "syn 1.0.109", @@ -10964,13 +11345,26 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "prost-derive" +version = "0.12.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19de2de2a00075bf566bee3bd4db014b11587e84184d3f7a791bc17f1a8e9e48" +dependencies = [ + "anyhow", + "itertools 0.11.0", + "proc-macro2", + "quote", + "syn 2.0.58", +] + [[package]] name = "prost-types" version = "0.11.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "213622a1460818959ac1181aaeb2dc9c7f63df720db7d788b3e24eacd1983e13" dependencies = [ - "prost", + "prost 0.11.9", ] [[package]] @@ -10982,6 +11376,21 @@ dependencies = [ "cc", ] +[[package]] +name = "quanta" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e5167a477619228a0b284fac2674e3c388cba90631d7b7de620e6f1fcd08da5" +dependencies = [ + "crossbeam-utils", + "libc", + "once_cell", + "raw-cpuid", + "wasi 0.11.0+wasi-snapshot-preview1", + "web-sys", + "winapi", +] + [[package]] name = "quick-error" version = "1.2.3" @@ -11128,6 +11537,15 @@ dependencies = [ "rand_core 0.6.4", ] +[[package]] +name = "raw-cpuid" +version = "11.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d86a7c4638d42c44551f4791a20e687dbb4c3de1f33c43dd71e355cd429def1" +dependencies = [ + "bitflags 2.4.2", +] + [[package]] name = "rawpointer" version = "0.2.1" @@ -11197,13 +11615,12 @@ dependencies = [ [[package]] name = "reed-solomon-novelpoly" -version = "1.0.2" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58130877ca403ab42c864fbac74bb319a0746c07a634a92a5cfc7f54af272582" +checksum = "87413ebb313323d431e85d0afc5a68222aaed972843537cbfe5f061cf1b4bcab" dependencies = [ "derive_more", "fs-err", - "itertools 0.11.0", "static_init", "thiserror", ] @@ -11225,7 +11642,7 @@ checksum = "5fddb4f8d99b0a2ebafc65a87a69a7b9875e4b1ae1f00db265d300ef7f28bccc" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -11240,6 +11657,19 @@ dependencies = [ "smallvec", ] +[[package]] +name = "regalloc2" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad156d539c879b7a24a363a2016d77961786e71f48f2e2fc8302a92abd2429a6" +dependencies = [ + "hashbrown 0.13.2", + "log", + "rustc-hash", + "slice-group-by", + "smallvec", +] + [[package]] name = "regex" version = "1.10.3" @@ -11387,14 +11817,14 @@ dependencies = [ [[package]] name = "rococo-runtime" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e5ae118c3f3189a376703a4ca8569eb51ce1b121bc6b571c051b68c31e10a16" +checksum = "165988588402ce7dc2d32dfba280cbbd59befc444d8f95579b999ecd8575ef27" dependencies = [ "binary-merkle-tree", "frame-benchmarking", "frame-executive", - "frame-support", + "frame-support 31.0.0", "frame-system", "frame-system-benchmarking", "frame-system-rpc-runtime-api", @@ -11456,25 +11886,25 @@ dependencies = [ "serde", "serde_derive", "smallvec", - "sp-api", - "sp-arithmetic", + "sp-api 29.0.0", + "sp-arithmetic 25.0.0", "sp-authority-discovery", "sp-block-builder", "sp-consensus-babe", "sp-consensus-beefy", - "sp-core", - "sp-genesis-builder", - "sp-inherents", - "sp-io", + "sp-core 31.0.0", + "sp-genesis-builder 0.10.0", + "sp-inherents 29.0.0", + "sp-io 33.0.0", "sp-mmr-primitives", "sp-offchain", - "sp-runtime", + "sp-runtime 34.0.0", "sp-session", - "sp-staking", + "sp-staking 29.0.0", "sp-std", - "sp-storage", + "sp-storage 20.0.0", "sp-transaction-pool", - "sp-version", + "sp-version 32.0.0", "staging-xcm", "staging-xcm-builder", "staging-xcm-executor", @@ -11484,21 +11914,27 @@ dependencies = [ [[package]] name = "rococo-runtime-constants" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b5b507493a19b5061eb2860c394847261216c7ea7f8f62ba2cb02e55c27d611" +checksum = "0033b0335cd7cb691fbcd16346e151ffb21ad4e2a8675eda06b48275b8f52549" dependencies = [ - "frame-support", + "frame-support 31.0.0", "polkadot-primitives", "polkadot-runtime-common", "smallvec", - "sp-core", - "sp-runtime", - "sp-weights", + "sp-core 31.0.0", + "sp-runtime 34.0.0", + "sp-weights 30.0.0", "staging-xcm", "staging-xcm-builder", ] +[[package]] +name = "route-recognizer" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "afab94fb28594581f62d981211a9a4d53cc8130bbcbbb89a0440d9b8e81a7746" + [[package]] name = "rpassword" version = "7.3.1" @@ -11520,7 +11956,7 @@ dependencies = [ "log", "netlink-packet-route", "netlink-proto", - "nix", + "nix 0.24.3", "thiserror", "tokio", ] @@ -11543,7 +11979,7 @@ dependencies = [ "cumulus-pallet-parachain-system", "cumulus-pallet-xcm", "ethabi", - "frame-support", + "frame-support 31.0.0", "frame-system", "hex-literal", "log", @@ -11591,9 +12027,9 @@ dependencies = [ "polkadot-primitives", "scale-info", "serde_json", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", "staging-parachain-info", "staging-xcm", @@ -11620,7 +12056,7 @@ dependencies = [ "cumulus-primitives-utility", "cumulus-test-relay-sproof-builder", "env_logger", - "frame-support", + "frame-support 31.0.0", "frame-system", "hex", "hex-literal", @@ -11692,23 +12128,23 @@ dependencies = [ "runtime-common", "serde_json", "smallvec", - "sp-api", - "sp-application-crypto", + "sp-api 29.0.0", + "sp-application-crypto 33.0.0", "sp-block-builder", "sp-consensus-aura", - "sp-core", - "sp-inherents", - "sp-io", + "sp-core 31.0.0", + "sp-inherents 29.0.0", + "sp-io 33.0.0", "sp-keyring", "sp-offchain", - "sp-runtime", + "sp-runtime 34.0.0", "sp-session", - "sp-staking", + "sp-staking 29.0.0", "sp-std", "sp-tracing", "sp-transaction-pool", - "sp-trie", - "sp-version", + "sp-trie 32.0.0", + "sp-version 32.0.0", "staging-parachain-info", "staging-xcm", "staging-xcm-builder", @@ -11812,10 +12248,24 @@ checksum = "f9d5a6813c0759e4609cd494e8e725babae6a2ca7b62a5536a13daaec6fcb7ba" dependencies = [ "log", "ring 0.17.7", - "rustls-webpki", + "rustls-webpki 0.101.7", "sct", ] +[[package]] +name = "rustls" +version = "0.22.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "99008d7ad0bbbea527ec27bddbc0e432c5b87d8175178cee68d2eec9c4a1813c" +dependencies = [ + "log", + "ring 0.17.7", + "rustls-pki-types", + "rustls-webpki 0.102.2", + "subtle 2.5.0", + "zeroize", +] + [[package]] name = "rustls-native-certs" version = "0.6.3" @@ -11823,20 +12273,49 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a9aace74cb666635c918e9c12bc0d348266037aa8eb599b5cba565709a8dff00" dependencies = [ "openssl-probe", - "rustls-pemfile", + "rustls-pemfile 1.0.4", "schannel", "security-framework", ] [[package]] -name = "rustls-pemfile" -version = "1.0.4" +name = "rustls-native-certs" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f1fb85efa936c42c6d5fc28d2629bb51e4b2f4b8a5211e297d599cc5a093792" +dependencies = [ + "openssl-probe", + "rustls-pemfile 2.1.2", + "rustls-pki-types", + "schannel", + "security-framework", +] + +[[package]] +name = "rustls-pemfile" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c" dependencies = [ "base64 0.21.7", ] +[[package]] +name = "rustls-pemfile" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29993a25686778eb88d4189742cd713c9bce943bc54251a33509dc63cbacf73d" +dependencies = [ + "base64 0.22.0", + "rustls-pki-types", +] + +[[package]] +name = "rustls-pki-types" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecd36cc4259e3e4514335c4a138c6b43171a8d61d8f5c9348f9fc7529416f247" + [[package]] name = "rustls-webpki" version = "0.101.7" @@ -11847,6 +12326,17 @@ dependencies = [ "untrusted 0.9.0", ] +[[package]] +name = "rustls-webpki" +version = "0.102.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "faaa0a62740bedb9b2ef5afa303da42764c012f743917351dc9a237ea1663610" +dependencies = [ + "ring 0.17.7", + "rustls-pki-types", + "untrusted 0.9.0", +] + [[package]] name = "rustversion" version = "1.0.14" @@ -11906,16 +12396,28 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "43b05714bc70605d5f8983612d1643d875cd4782ef53a8720907a0eb75070cba" dependencies = [ "log", - "sp-core", + "sp-core 28.0.0", + "sp-wasm-interface", + "thiserror", +] + +[[package]] +name = "sc-allocator" +version = "26.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4715fddb2bd1862aa21f6312528ab339b7d03ef5ec654e3aa200a3119392392f" +dependencies = [ + "log", + "sp-core 31.0.0", "sp-wasm-interface", "thiserror", ] [[package]] name = "sc-authority-discovery" -version = "0.34.0" +version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1c23040352415cdcc22203d3b18e56f3516e51865f106f8bbf7efa95b411a59" +checksum = "f987a536468e06b66fe3cac296b27dc532f301199e0278bc42ac32b8eb3a4a9d" dependencies = [ "async-trait", "futures", @@ -11926,26 +12428,26 @@ dependencies = [ "multihash 0.18.1", "multihash-codetable", "parity-scale-codec", - "prost", + "prost 0.12.4", "prost-build", "rand", - "sc-client-api", + "sc-client-api 31.0.0", "sc-network", - "sp-api", + "sp-api 29.0.0", "sp-authority-discovery", - "sp-blockchain", - "sp-core", - "sp-keystore", - "sp-runtime", + "sp-blockchain 31.0.0", + "sp-core 31.0.0", + "sp-keystore 0.37.0", + "sp-runtime 34.0.0", "substrate-prometheus-endpoint", "thiserror", ] [[package]] name = "sc-basic-authorship" -version = "0.34.0" +version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c016e38155386e23649a4a995ea67c55a1fe25a54c7cc7509954d454ee75eb3b" +checksum = "295be922b93bd4bc77edadffe66ac85a09436284afe7f12c1efd4d01ec530d07" dependencies = [ "futures", "futures-timer", @@ -11954,56 +12456,57 @@ dependencies = [ "sc-block-builder", "sc-proposer-metrics", "sc-telemetry", - "sc-transaction-pool-api", - "sp-api", - "sp-blockchain", - "sp-consensus", - "sp-core", - "sp-inherents", - "sp-runtime", + "sc-transaction-pool-api 31.0.0", + "sp-api 29.0.0", + "sp-blockchain 31.0.0", + "sp-consensus 0.35.0", + "sp-core 31.0.0", + "sp-inherents 29.0.0", + "sp-runtime 34.0.0", "substrate-prometheus-endpoint", ] [[package]] name = "sc-block-builder" -version = "0.33.0" +version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "656b85de8aad8dd758f2e5f250f300e4711f294f238c9299064fbd624cb263f7" +checksum = "033b5ee0fa6d770c9db8cd59f6d1f88e792c088238278fcb836b5c851936a62d" dependencies = [ "parity-scale-codec", - "sp-api", + "sp-api 29.0.0", "sp-block-builder", - "sp-blockchain", - "sp-core", - "sp-inherents", - "sp-runtime", - "sp-trie", + "sp-blockchain 31.0.0", + "sp-core 31.0.0", + "sp-inherents 29.0.0", + "sp-runtime 34.0.0", + "sp-trie 32.0.0", ] [[package]] name = "sc-chain-spec" -version = "27.0.0" +version = "30.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7f6a6926973e084fe9b23ffee9784cd41d84ea0627c605891542661bd9ff958" +checksum = "5dfb28048e5b2d168870e2205d3e41db1f387a781831a8b8b82c9f10536c2742" dependencies = [ "array-bytes 6.2.2", "docify", "log", - "memmap2", + "memmap2 0.9.4", "parity-scale-codec", "sc-chain-spec-derive", - "sc-client-api", - "sc-executor", + "sc-client-api 31.0.0", + "sc-executor 0.35.0", "sc-network", "sc-telemetry", "serde", "serde_json", - "sp-blockchain", - "sp-core", - "sp-genesis-builder", - "sp-io", - "sp-runtime", - "sp-state-machine", + "sp-blockchain 31.0.0", + "sp-core 31.0.0", + "sp-crypto-hashing", + "sp-genesis-builder 0.10.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", + "sp-state-machine 0.38.0", ] [[package]] @@ -12015,17 +12518,16 @@ dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] name = "sc-cli" -version = "0.36.0" +version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9819b656041094ca4e97402be145c2bcf3f47d00d854708b25ecd3211eafcd62" +checksum = "20c2eae4d9396b19403f89f058a6a684066b58e051b1310f246eb9b41a7b54fe" dependencies = [ "array-bytes 6.2.2", - "bip39", "chrono", "clap", "fdlimit", @@ -12034,28 +12536,29 @@ dependencies = [ "libp2p-identity", "log", "names", + "parity-bip39", "parity-scale-codec", "rand", "regex", "rpassword", - "sc-client-api", - "sc-client-db", + "sc-client-api 31.0.0", + "sc-client-db 0.38.0", "sc-keystore", "sc-mixnet", "sc-network", "sc-service", "sc-telemetry", "sc-tracing", - "sc-utils", + "sc-utils 16.0.0", "serde", "serde_json", - "sp-blockchain", - "sp-core", + "sp-blockchain 31.0.0", + "sp-core 31.0.0", "sp-keyring", - "sp-keystore", + "sp-keystore 0.37.0", "sp-panic-handler", - "sp-runtime", - "sp-version", + "sp-runtime 34.0.0", + "sp-version 32.0.0", "thiserror", "tokio", ] @@ -12071,20 +12574,48 @@ dependencies = [ "log", "parity-scale-codec", "parking_lot 0.12.1", - "sc-executor", - "sc-transaction-pool-api", - "sc-utils", - "sp-api", - "sp-blockchain", - "sp-consensus", - "sp-core", + "sc-executor 0.32.0", + "sc-transaction-pool-api 28.0.0", + "sc-utils 14.0.0", + "sp-api 26.0.0", + "sp-blockchain 28.0.0", + "sp-consensus 0.32.0", + "sp-core 28.0.0", "sp-database", - "sp-externalities", - "sp-runtime", - "sp-state-machine", - "sp-statement-store", - "sp-storage", - "sp-trie", + "sp-externalities 0.25.0", + "sp-runtime 31.0.1", + "sp-state-machine 0.35.0", + "sp-statement-store 10.0.0", + "sp-storage 19.0.0", + "sp-trie 29.0.0", + "substrate-prometheus-endpoint", +] + +[[package]] +name = "sc-client-api" +version = "31.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08db275ca98f1fe44db2e2058893b182b85ef11cee7cf271edffd449a1179fc4" +dependencies = [ + "fnv", + "futures", + "log", + "parity-scale-codec", + "parking_lot 0.12.1", + "sc-executor 0.35.0", + "sc-transaction-pool-api 31.0.0", + "sc-utils 16.0.0", + "sp-api 29.0.0", + "sp-blockchain 31.0.0", + "sp-consensus 0.35.0", + "sp-core 31.0.0", + "sp-database", + "sp-externalities 0.27.0", + "sp-runtime 34.0.0", + "sp-state-machine 0.38.0", + "sp-statement-store 13.0.0", + "sp-storage 20.0.0", + "sp-trie 32.0.0", "substrate-prometheus-endpoint", ] @@ -12103,23 +12634,50 @@ dependencies = [ "parity-db", "parity-scale-codec", "parking_lot 0.12.1", - "sc-client-api", - "sc-state-db", + "sc-client-api 28.0.0", + "sc-state-db 0.30.0", + "schnellru", + "sp-arithmetic 23.0.0", + "sp-blockchain 28.0.0", + "sp-core 28.0.0", + "sp-database", + "sp-runtime 31.0.1", + "sp-state-machine 0.35.0", + "sp-trie 29.0.0", +] + +[[package]] +name = "sc-client-db" +version = "0.38.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6bd93f124c30ec885696128a639e190293bee2a6430cc04248d656093b5d4f42" +dependencies = [ + "hash-db", + "kvdb", + "kvdb-memorydb", + "kvdb-rocksdb", + "linked-hash-map", + "log", + "parity-db", + "parity-scale-codec", + "parking_lot 0.12.1", + "sc-client-api 31.0.0", + "sc-state-db 0.33.0", "schnellru", - "sp-arithmetic", - "sp-blockchain", - "sp-core", + "sp-arithmetic 25.0.0", + "sp-blockchain 31.0.0", + "sp-core 31.0.0", "sp-database", - "sp-runtime", - "sp-state-machine", - "sp-trie", + "sp-runtime 34.0.0", + "sp-state-machine 0.38.0", + "sp-trie 32.0.0", ] [[package]] name = "sc-consensus" -version = "0.33.0" +version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b0409758bb01f2e975b01c7cb2203aa27746e9796a483b18c57123e6e78fae5" +checksum = "4da51746e9689ecee65d6c1ac32e89a7b0452ee1ce377485e94c285e9690dcfd" dependencies = [ "async-trait", "futures", @@ -12128,54 +12686,54 @@ dependencies = [ "log", "mockall", "parking_lot 0.12.1", - "sc-client-api", - "sc-utils", + "sc-client-api 31.0.0", + "sc-utils 16.0.0", "serde", - "sp-api", - "sp-blockchain", - "sp-consensus", - "sp-core", - "sp-runtime", - "sp-state-machine", + "sp-api 29.0.0", + "sp-blockchain 31.0.0", + "sp-consensus 0.35.0", + "sp-core 31.0.0", + "sp-runtime 34.0.0", + "sp-state-machine 0.38.0", "substrate-prometheus-endpoint", "thiserror", ] [[package]] name = "sc-consensus-aura" -version = "0.34.0" +version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9cc4ebc06768af3e5457a5780aa6dbebeefe27131e70d11b62cfc8136e41747a" +checksum = "988701c58dcd9521412cfcbb54457b17546bb4363f021ee8131af409a027b879" dependencies = [ "async-trait", "futures", "log", "parity-scale-codec", "sc-block-builder", - "sc-client-api", + "sc-client-api 31.0.0", "sc-consensus", "sc-consensus-slots", "sc-telemetry", - "sp-api", - "sp-application-crypto", + "sp-api 29.0.0", + "sp-application-crypto 33.0.0", "sp-block-builder", - "sp-blockchain", - "sp-consensus", + "sp-blockchain 31.0.0", + "sp-consensus 0.35.0", "sp-consensus-aura", "sp-consensus-slots", - "sp-core", - "sp-inherents", - "sp-keystore", - "sp-runtime", + "sp-core 31.0.0", + "sp-inherents 29.0.0", + "sp-keystore 0.37.0", + "sp-runtime 34.0.0", "substrate-prometheus-endpoint", "thiserror", ] [[package]] name = "sc-consensus-babe" -version = "0.34.0" +version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a7d698d9d2bde7e0b80e7ada57ede9255a6382da79d2ad9a4e9e70805c40e74" +checksum = "a65da2a2d198d0c06be3614eabc254b40ebb27516dd17bee56d24cbe08d0c19e" dependencies = [ "async-trait", "fork-tree", @@ -12186,32 +12744,33 @@ dependencies = [ "num-traits", "parity-scale-codec", "parking_lot 0.12.1", - "sc-client-api", + "sc-client-api 31.0.0", "sc-consensus", "sc-consensus-epochs", "sc-consensus-slots", "sc-telemetry", - "sc-transaction-pool-api", - "sp-api", - "sp-application-crypto", + "sc-transaction-pool-api 31.0.0", + "sp-api 29.0.0", + "sp-application-crypto 33.0.0", "sp-block-builder", - "sp-blockchain", - "sp-consensus", + "sp-blockchain 31.0.0", + "sp-consensus 0.35.0", "sp-consensus-babe", "sp-consensus-slots", - "sp-core", - "sp-inherents", - "sp-keystore", - "sp-runtime", + "sp-core 31.0.0", + "sp-crypto-hashing", + "sp-inherents 29.0.0", + "sp-keystore 0.37.0", + "sp-runtime 34.0.0", "substrate-prometheus-endpoint", "thiserror", ] [[package]] name = "sc-consensus-babe-rpc" -version = "0.34.0" +version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2f55379d0ce6f87026f896f03bce33862b57f77a46fbb4fb7e974182d20d458" +checksum = "ec114d8e12b82b298abdfbca76e7aac3af42865510dfb0f92fd3992e7edbb383" dependencies = [ "futures", "jsonrpsee", @@ -12219,22 +12778,22 @@ dependencies = [ "sc-consensus-epochs", "sc-rpc-api", "serde", - "sp-api", - "sp-application-crypto", - "sp-blockchain", - "sp-consensus", + "sp-api 29.0.0", + "sp-application-crypto 33.0.0", + "sp-blockchain 31.0.0", + "sp-consensus 0.35.0", "sp-consensus-babe", - "sp-core", - "sp-keystore", - "sp-runtime", + "sp-core 31.0.0", + "sp-keystore 0.37.0", + "sp-runtime 34.0.0", "thiserror", ] [[package]] name = "sc-consensus-beefy" -version = "13.0.0" +version = "16.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3664a3cddc718187e058f67d9075ef9078c8f8347c0408304ead8565d4ba8164" +checksum = "5a49993da0847cf1ef84184e24e8d95f71efac2e940556678bf9e45a8fd0a47f" dependencies = [ "array-bytes 6.2.2", "async-channel 1.9.0", @@ -12244,22 +12803,23 @@ dependencies = [ "log", "parity-scale-codec", "parking_lot 0.12.1", - "sc-client-api", + "sc-client-api 31.0.0", "sc-consensus", "sc-network", "sc-network-gossip", "sc-network-sync", - "sc-utils", - "sp-api", - "sp-application-crypto", - "sp-arithmetic", - "sp-blockchain", - "sp-consensus", + "sc-utils 16.0.0", + "sp-api 29.0.0", + "sp-application-crypto 33.0.0", + "sp-arithmetic 25.0.0", + "sp-blockchain 31.0.0", + "sp-consensus 0.35.0", "sp-consensus-beefy", - "sp-core", - "sp-keystore", + "sp-core 31.0.0", + "sp-crypto-hashing", + "sp-keystore 0.37.0", "sp-mmr-primitives", - "sp-runtime", + "sp-runtime 34.0.0", "substrate-prometheus-endpoint", "thiserror", "tokio", @@ -12268,9 +12828,9 @@ dependencies = [ [[package]] name = "sc-consensus-beefy-rpc" -version = "13.0.0" +version = "16.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b4e3602efe1e206032164772c24365642e3dab807c5f8db0af166f6ef63af3e" +checksum = "179b561aa302c0a5a572c5484a50f85e4ccd55025fc14daddabf5fe16e8150e1" dependencies = [ "futures", "jsonrpsee", @@ -12281,30 +12841,30 @@ dependencies = [ "sc-rpc", "serde", "sp-consensus-beefy", - "sp-core", - "sp-runtime", + "sp-core 31.0.0", + "sp-runtime 34.0.0", "thiserror", ] [[package]] name = "sc-consensus-epochs" -version = "0.33.0" +version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d0befddf2ca16d5f222968fceeab8625532f2d49303fafd17ae2e5d0e939da6" +checksum = "e892ae8bf5faa9042b6ec46396db1b4d9ded180a5f82afe3236fdebe0195f850" dependencies = [ "fork-tree", "parity-scale-codec", - "sc-client-api", + "sc-client-api 31.0.0", "sc-consensus", - "sp-blockchain", - "sp-runtime", + "sp-blockchain 31.0.0", + "sp-runtime 34.0.0", ] [[package]] name = "sc-consensus-grandpa" -version = "0.19.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a824457a3384e7bc19d7ee587dffa5b646deb81a2351be0dd075c2110a3d677a" +checksum = "e19945689693bbea950220bf7af1c79a2f70f5f37b97f7e6d136dcaf2b34f4a5" dependencies = [ "ahash 0.8.7", "array-bytes 6.2.2", @@ -12320,55 +12880,56 @@ dependencies = [ "rand", "sc-block-builder", "sc-chain-spec", - "sc-client-api", + "sc-client-api 31.0.0", "sc-consensus", "sc-network", "sc-network-common", "sc-network-gossip", "sc-network-sync", "sc-telemetry", - "sc-transaction-pool-api", - "sc-utils", + "sc-transaction-pool-api 31.0.0", + "sc-utils 16.0.0", "serde_json", - "sp-api", - "sp-application-crypto", - "sp-arithmetic", - "sp-blockchain", - "sp-consensus", + "sp-api 29.0.0", + "sp-application-crypto 33.0.0", + "sp-arithmetic 25.0.0", + "sp-blockchain 31.0.0", + "sp-consensus 0.35.0", "sp-consensus-grandpa", - "sp-core", - "sp-keystore", - "sp-runtime", + "sp-core 31.0.0", + "sp-crypto-hashing", + "sp-keystore 0.37.0", + "sp-runtime 34.0.0", "substrate-prometheus-endpoint", "thiserror", ] [[package]] name = "sc-consensus-grandpa-rpc" -version = "0.19.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "694328880bf11fce67f5e066d7884dbdf1f2a41c42a7dfce9b0a6bc6b90448a1" +checksum = "68cd632a2a33d82e67cfd57dda6d966a6e25df08a4698c8d6ea7010515c5aebc" dependencies = [ "finality-grandpa", "futures", "jsonrpsee", "log", "parity-scale-codec", - "sc-client-api", + "sc-client-api 31.0.0", "sc-consensus-grandpa", "sc-rpc", "serde", - "sp-blockchain", - "sp-core", - "sp-runtime", + "sp-blockchain 31.0.0", + "sp-core 31.0.0", + "sp-runtime 34.0.0", "thiserror", ] [[package]] name = "sc-consensus-manual-seal" -version = "0.35.0" +version = "0.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b87636dd0b8aa3d294200100196b0fb51c389ed73e6722ff648feb0fd4adafdb" +checksum = "c0741690ea4a51823f2828a545d8df184d5e0b526ca306c467be557dfac1d074" dependencies = [ "assert_matches", "async-trait", @@ -12377,24 +12938,24 @@ dependencies = [ "jsonrpsee", "log", "parity-scale-codec", - "sc-client-api", + "sc-client-api 31.0.0", "sc-consensus", "sc-consensus-aura", "sc-consensus-babe", "sc-consensus-epochs", "sc-transaction-pool", - "sc-transaction-pool-api", + "sc-transaction-pool-api 31.0.0", "serde", - "sp-api", - "sp-blockchain", - "sp-consensus", + "sp-api 29.0.0", + "sp-blockchain 31.0.0", + "sp-consensus 0.35.0", "sp-consensus-aura", "sp-consensus-babe", "sp-consensus-slots", - "sp-core", - "sp-inherents", - "sp-keystore", - "sp-runtime", + "sp-core 31.0.0", + "sp-inherents 29.0.0", + "sp-keystore 0.37.0", + "sp-runtime 34.0.0", "sp-timestamp", "substrate-prometheus-endpoint", "thiserror", @@ -12402,26 +12963,26 @@ dependencies = [ [[package]] name = "sc-consensus-slots" -version = "0.33.0" +version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6649665fcf91d89c16bfb08e9326baf6547e5fe719d6438197434e5b642d716b" +checksum = "80b431251c43b5af64b0f2758a387061f53fa045bdbf97d7353fe06aa9ddfb7b" dependencies = [ "async-trait", "futures", "futures-timer", "log", "parity-scale-codec", - "sc-client-api", + "sc-client-api 31.0.0", "sc-consensus", "sc-telemetry", - "sp-arithmetic", - "sp-blockchain", - "sp-consensus", + "sp-arithmetic 25.0.0", + "sp-blockchain 31.0.0", + "sp-consensus 0.35.0", "sp-consensus-slots", - "sp-core", - "sp-inherents", - "sp-runtime", - "sp-state-machine", + "sp-core 31.0.0", + "sp-inherents 29.0.0", + "sp-runtime 34.0.0", + "sp-state-machine 0.38.0", ] [[package]] @@ -12432,17 +12993,41 @@ checksum = "3129f8af1f8aa5b05829ffec942feff61163054a536704ba48fdcc2276f6042a" dependencies = [ "parity-scale-codec", "parking_lot 0.12.1", - "sc-executor-common", - "sc-executor-wasmtime", + "sc-executor-common 0.29.0", + "sc-executor-wasmtime 0.29.0", "schnellru", - "sp-api", - "sp-core", - "sp-externalities", - "sp-io", + "sp-api 26.0.0", + "sp-core 28.0.0", + "sp-externalities 0.25.0", + "sp-io 30.0.0", "sp-panic-handler", - "sp-runtime-interface", - "sp-trie", - "sp-version", + "sp-runtime-interface 24.0.0", + "sp-trie 29.0.0", + "sp-version 29.0.0", + "sp-wasm-interface", + "tracing", +] + +[[package]] +name = "sc-executor" +version = "0.35.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b8f8ddc63df8219768b729f9098ecd4362d2756b40784071cd44c3041f1d51d" +dependencies = [ + "parity-scale-codec", + "parking_lot 0.12.1", + "sc-executor-common 0.32.0", + "sc-executor-polkavm", + "sc-executor-wasmtime 0.32.0", + "schnellru", + "sp-api 29.0.0", + "sp-core 31.0.0", + "sp-externalities 0.27.0", + "sp-io 33.0.0", + "sp-panic-handler", + "sp-runtime-interface 26.0.0", + "sp-trie 32.0.0", + "sp-version 32.0.0", "sp-wasm-interface", "tracing", ] @@ -12453,11 +13038,37 @@ version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0285a4a14c0d2c1d04380ff83cddd79181ded510c605d36804cb9c6eb3bbf2ae" dependencies = [ - "sc-allocator", + "sc-allocator 23.0.0", + "sp-maybe-compressed-blob", + "sp-wasm-interface", + "thiserror", + "wasm-instrument 0.3.0", +] + +[[package]] +name = "sc-executor-common" +version = "0.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00308c10173ec6446ccc2b96cd3a3037e64c94a424f94daa8c96f288794f4d34" +dependencies = [ + "polkavm", + "sc-allocator 26.0.0", "sp-maybe-compressed-blob", "sp-wasm-interface", "thiserror", - "wasm-instrument", + "wasm-instrument 0.4.0", +] + +[[package]] +name = "sc-executor-polkavm" +version = "0.29.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63b9c814d3a94df7a323d728a6961a3b9ec8c5c5979eb858ec098ddf2838cfc0" +dependencies = [ + "log", + "polkavm", + "sc-executor-common 0.32.0", + "sp-wasm-interface", ] [[package]] @@ -12472,51 +13083,70 @@ dependencies = [ "log", "parking_lot 0.12.1", "rustix 0.36.17", - "sc-allocator", - "sc-executor-common", - "sp-runtime-interface", + "sc-allocator 23.0.0", + "sc-executor-common 0.29.0", + "sp-runtime-interface 24.0.0", + "sp-wasm-interface", + "wasmtime", +] + +[[package]] +name = "sc-executor-wasmtime" +version = "0.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa37286464bd16146c612e3193a56df728815d23f9bf0faac7df898c0944c87f" +dependencies = [ + "anyhow", + "cfg-if", + "libc", + "log", + "parking_lot 0.12.1", + "rustix 0.36.17", + "sc-allocator 26.0.0", + "sc-executor-common 0.32.0", + "sp-runtime-interface 26.0.0", "sp-wasm-interface", "wasmtime", ] [[package]] name = "sc-informant" -version = "0.33.0" +version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e07d2dde727c30974767aed4cddd241447c0a800b702662b529dd2e32a10db1" +checksum = "2e9005c37100c6ea2b06668f72ba5bc927b5a2445ed26b008ddf1875998dea41" dependencies = [ "ansi_term", "futures", "futures-timer", "log", - "sc-client-api", + "sc-client-api 31.0.0", "sc-network", "sc-network-common", "sc-network-sync", - "sp-blockchain", - "sp-runtime", + "sp-blockchain 31.0.0", + "sp-runtime 34.0.0", ] [[package]] name = "sc-keystore" -version = "25.0.0" +version = "28.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93acb7f7c6e5e4be067e78b782a35d1a6d34dafcd955975a1aec05cab9dbf8fe" +checksum = "3ef7283da5d643ef89ed094e1b23451ec70386a9474d337cdaa0ef81870bb2d4" dependencies = [ "array-bytes 6.2.2", "parking_lot 0.12.1", "serde_json", - "sp-application-crypto", - "sp-core", - "sp-keystore", + "sp-application-crypto 33.0.0", + "sp-core 31.0.0", + "sp-keystore 0.37.0", "thiserror", ] [[package]] name = "sc-mixnet" -version = "0.4.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4cac7d7145c712c4a8b184b3979fe1a154c200ebb1b9f11f1e4e39db97a389f8" +checksum = "248d9be75de68e34f6490065c398b8177ff967902d93e6b88527a0e8c00903ad" dependencies = [ "array-bytes 4.2.0", "arrayvec 0.7.4", @@ -12530,23 +13160,23 @@ dependencies = [ "multiaddr", "parity-scale-codec", "parking_lot 0.12.1", - "sc-client-api", + "sc-client-api 31.0.0", "sc-network", - "sc-transaction-pool-api", - "sp-api", - "sp-consensus", - "sp-core", - "sp-keystore", + "sc-transaction-pool-api 31.0.0", + "sp-api 29.0.0", + "sp-consensus 0.35.0", + "sp-core 31.0.0", + "sp-keystore 0.37.0", "sp-mixnet", - "sp-runtime", + "sp-runtime 34.0.0", "thiserror", ] [[package]] name = "sc-network" -version = "0.34.0" +version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f2f49eccabc1de61ff976a184f5380a230f07baa5cb075a31c8ec9459fcd076" +checksum = "4067423488686ff78561ed0d32ac7e2617edd31219088b1322e85e945e62de29" dependencies = [ "array-bytes 6.2.2", "async-channel 1.9.0", @@ -12567,16 +13197,16 @@ dependencies = [ "partial_sort", "pin-project", "rand", - "sc-client-api", + "sc-client-api 31.0.0", "sc-network-common", - "sc-utils", + "sc-utils 16.0.0", "serde", "serde_json", "smallvec", - "sp-arithmetic", - "sp-blockchain", - "sp-core", - "sp-runtime", + "sp-arithmetic 25.0.0", + "sp-blockchain 31.0.0", + "sp-core 31.0.0", + "sp-runtime 34.0.0", "substrate-prometheus-endpoint", "thiserror", "tokio", @@ -12588,30 +13218,30 @@ dependencies = [ [[package]] name = "sc-network-bitswap" -version = "0.33.0" +version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2779d97eff742c1ebcce812bfd154a7273c2c2eb02e11fad76cf7eb583365834" +checksum = "8dacf210f4e36e53dc3d3ff1cfd72e4378eb973568c261e7c62bc8daaec9f945" dependencies = [ "async-channel 1.9.0", "cid", "futures", "libp2p-identity", "log", - "prost", + "prost 0.12.4", "prost-build", - "sc-client-api", + "sc-client-api 31.0.0", "sc-network", - "sp-blockchain", - "sp-runtime", + "sp-blockchain 31.0.0", + "sp-runtime 34.0.0", "thiserror", "unsigned-varint", ] [[package]] name = "sc-network-common" -version = "0.33.0" +version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b798acc12d5b3120b2d5e8a078fcec39d6732089261136ac31c993235ade917" +checksum = "551dba7ce65d136788c3154044fb425e2cb6e883d20c3cd25c0720a5b5251ed4" dependencies = [ "async-trait", "bitflags 1.3.2", @@ -12620,16 +13250,16 @@ dependencies = [ "parity-scale-codec", "prost-build", "sc-consensus", - "sp-consensus", + "sp-consensus 0.35.0", "sp-consensus-grandpa", - "sp-runtime", + "sp-runtime 34.0.0", ] [[package]] name = "sc-network-gossip" -version = "0.34.0" +version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd92792f3a04fcb1f21018c9f8a5d6d438d705a2548ffcdc7730280c667b8386" +checksum = "06e36f8665cba733bd0690e864ef59cb87627120e57607b768e6e7cf30cecd20" dependencies = [ "ahash 0.8.7", "futures", @@ -12640,16 +13270,16 @@ dependencies = [ "sc-network-common", "sc-network-sync", "schnellru", - "sp-runtime", + "sp-runtime 34.0.0", "substrate-prometheus-endpoint", "tracing", ] [[package]] name = "sc-network-light" -version = "0.33.0" +version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34e7a126492850dbbd5cf0b77ec3ad350422c2822d165941ddbe618a76af0153" +checksum = "d4c4a77832e7d86e2b8f579339a47ebc16eec560bb4d62c42f0daad10700a512" dependencies = [ "array-bytes 6.2.2", "async-channel 1.9.0", @@ -12657,21 +13287,21 @@ dependencies = [ "libp2p-identity", "log", "parity-scale-codec", - "prost", + "prost 0.12.4", "prost-build", - "sc-client-api", + "sc-client-api 31.0.0", "sc-network", - "sp-blockchain", - "sp-core", - "sp-runtime", + "sp-blockchain 31.0.0", + "sp-core 31.0.0", + "sp-runtime 34.0.0", "thiserror", ] [[package]] name = "sc-network-sync" -version = "0.33.0" +version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4c92fd35c49f748abf0bf420e1e99aa76b0f48ab43c183ea5dacef951116d7e" +checksum = "b7dfdaf49edeaa23ae0da1a9bf6ea3e308c11822cb3a853996f1203b06249411" dependencies = [ "array-bytes 6.2.2", "async-channel 1.9.0", @@ -12683,21 +13313,21 @@ dependencies = [ "log", "mockall", "parity-scale-codec", - "prost", + "prost 0.12.4", "prost-build", - "sc-client-api", + "sc-client-api 31.0.0", "sc-consensus", "sc-network", "sc-network-common", - "sc-utils", + "sc-utils 16.0.0", "schnellru", "smallvec", - "sp-arithmetic", - "sp-blockchain", - "sp-consensus", + "sp-arithmetic 25.0.0", + "sp-blockchain 31.0.0", + "sp-consensus 0.35.0", "sp-consensus-grandpa", - "sp-core", - "sp-runtime", + "sp-core 31.0.0", + "sp-runtime 34.0.0", "substrate-prometheus-endpoint", "thiserror", "tokio", @@ -12706,9 +13336,9 @@ dependencies = [ [[package]] name = "sc-network-transactions" -version = "0.33.0" +version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99a1af3b9e158fa91df0cd92916b3ee5d8b8a14a2b61eb5dd9e36e045808f644" +checksum = "1b3824e7a1aa29ed3d2294810c8e018a6df3798eec236f3043a62945daf7d9b1" dependencies = [ "array-bytes 6.2.2", "futures", @@ -12718,17 +13348,17 @@ dependencies = [ "sc-network", "sc-network-common", "sc-network-sync", - "sc-utils", - "sp-consensus", - "sp-runtime", + "sc-utils 16.0.0", + "sp-consensus 0.35.0", + "sp-runtime 34.0.0", "substrate-prometheus-endpoint", ] [[package]] name = "sc-offchain" -version = "29.0.0" +version = "32.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd5408dbdc3fe345813e983bd2b7ecf8f20e996141fa39a36336f511ab1859bb" +checksum = "d9d03fd90a535f30badaee9763a2124b9c68dae406e29497f406bfd45cbc7eac" dependencies = [ "array-bytes 6.2.2", "bytes", @@ -12744,26 +13374,26 @@ dependencies = [ "parity-scale-codec", "parking_lot 0.12.1", "rand", - "sc-client-api", + "sc-client-api 31.0.0", "sc-network", "sc-network-common", - "sc-transaction-pool-api", - "sc-utils", - "sp-api", - "sp-core", - "sp-externalities", - "sp-keystore", + "sc-transaction-pool-api 31.0.0", + "sc-utils 16.0.0", + "sp-api 29.0.0", + "sp-core 31.0.0", + "sp-externalities 0.27.0", + "sp-keystore 0.37.0", "sp-offchain", - "sp-runtime", + "sp-runtime 34.0.0", "threadpool", "tracing", ] [[package]] name = "sc-proposer-metrics" -version = "0.17.0" +version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb8dadb2ae5a316e4d08cad6aacd5de1dec792f3bd94e3960795ff7ffd07211c" +checksum = "f680a0bed67dab19898624246376ba85d5f70a89859ba030830aacd079c28d3c" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -12771,9 +13401,9 @@ dependencies = [ [[package]] name = "sc-rpc" -version = "29.0.0" +version = "32.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ac0d83b9117c9c004e58331a593a28044eaf6414e5b3c605d1571b4a6981966" +checksum = "6d796d75b22785b09c58478f1418b75c9787d598a0d2ab8edbd0072731ec4aaa" dependencies = [ "futures", "jsonrpsee", @@ -12782,54 +13412,57 @@ dependencies = [ "parking_lot 0.12.1", "sc-block-builder", "sc-chain-spec", - "sc-client-api", + "sc-client-api 31.0.0", "sc-mixnet", "sc-rpc-api", "sc-tracing", - "sc-transaction-pool-api", - "sc-utils", + "sc-transaction-pool-api 31.0.0", + "sc-utils 16.0.0", "serde_json", - "sp-api", - "sp-blockchain", - "sp-core", - "sp-keystore", + "sp-api 29.0.0", + "sp-blockchain 31.0.0", + "sp-core 31.0.0", + "sp-keystore 0.37.0", "sp-offchain", "sp-rpc", - "sp-runtime", + "sp-runtime 34.0.0", "sp-session", - "sp-statement-store", - "sp-version", + "sp-statement-store 13.0.0", + "sp-version 32.0.0", "tokio", ] [[package]] name = "sc-rpc-api" -version = "0.33.0" +version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "630e81a436f32487452ae1a57ad0ba31f320ddf864bb7faefd7490fe16b3e139" +checksum = "3705feca378ef3f3f84fb337480405a611a15c8637b2449ed514ca63765e421b" dependencies = [ "jsonrpsee", "parity-scale-codec", "sc-chain-spec", "sc-mixnet", - "sc-transaction-pool-api", + "sc-transaction-pool-api 31.0.0", "scale-info", "serde", "serde_json", - "sp-core", + "sp-core 31.0.0", "sp-rpc", - "sp-runtime", - "sp-version", + "sp-runtime 34.0.0", + "sp-version 32.0.0", "thiserror", ] [[package]] name = "sc-rpc-server" -version = "11.0.0" +version = "14.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b623908525a2f22aafa079080aa7fbce8b58ca8de53b9f31e3cc8547e0ad8b2" +checksum = "65f705946ae375fc47ee9a2e2df0b7e339a1fb8c8eb5c9eb6f206619d27946a7" dependencies = [ + "futures", + "governor", "http", + "hyper", "jsonrpsee", "log", "serde_json", @@ -12841,9 +13474,9 @@ dependencies = [ [[package]] name = "sc-rpc-spec-v2" -version = "0.34.0" +version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a54150c808fa10364b73faedd97aff0977a911a521d1caa8bad2bdc7943ad579" +checksum = "66dcea3fe5f0bcbaf08d6a42e877ae8f50b9cdbc87f65f7c79fbe5003e3969dc" dependencies = [ "array-bytes 6.2.2", "futures", @@ -12853,17 +13486,19 @@ dependencies = [ "log", "parity-scale-codec", "parking_lot 0.12.1", + "rand", "sc-chain-spec", - "sc-client-api", - "sc-transaction-pool-api", - "sc-utils", + "sc-client-api 31.0.0", + "sc-rpc", + "sc-transaction-pool-api 31.0.0", + "sc-utils 16.0.0", "serde", - "sp-api", - "sp-blockchain", - "sp-core", + "sp-api 29.0.0", + "sp-blockchain 31.0.0", + "sp-core 31.0.0", "sp-rpc", - "sp-runtime", - "sp-version", + "sp-runtime 34.0.0", + "sp-version 32.0.0", "thiserror", "tokio", "tokio-stream", @@ -12871,9 +13506,9 @@ dependencies = [ [[package]] name = "sc-service" -version = "0.35.0" +version = "0.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "703bd8b1fc0a137185bfa0b654e04283a58a1d8a2751380e7a0eca919961f150" +checksum = "42678fb737ea101658a8288cd3fcc0bff59ef40cd1a1c4f4d4042c3fa17bae41" dependencies = [ "async-trait", "directories", @@ -12887,10 +13522,10 @@ dependencies = [ "pin-project", "rand", "sc-chain-spec", - "sc-client-api", - "sc-client-db", + "sc-client-api 31.0.0", + "sc-client-db 0.38.0", "sc-consensus", - "sc-executor", + "sc-executor 0.35.0", "sc-informant", "sc-keystore", "sc-network", @@ -12906,24 +13541,25 @@ dependencies = [ "sc-telemetry", "sc-tracing", "sc-transaction-pool", - "sc-transaction-pool-api", - "sc-utils", + "sc-transaction-pool-api 31.0.0", + "sc-utils 16.0.0", + "schnellru", "serde", "serde_json", - "sp-api", - "sp-blockchain", - "sp-consensus", - "sp-core", - "sp-externalities", - "sp-keystore", - "sp-runtime", + "sp-api 29.0.0", + "sp-blockchain 31.0.0", + "sp-consensus 0.35.0", + "sp-core 31.0.0", + "sp-externalities 0.27.0", + "sp-keystore 0.37.0", + "sp-runtime 34.0.0", "sp-session", - "sp-state-machine", - "sp-storage", + "sp-state-machine 0.38.0", + "sp-storage 20.0.0", "sp-transaction-pool", "sp-transaction-storage-proof", - "sp-trie", - "sp-version", + "sp-trie 32.0.0", + "sp-version 32.0.0", "static_init", "substrate-prometheus-endpoint", "tempfile", @@ -12942,48 +13578,60 @@ dependencies = [ "log", "parity-scale-codec", "parking_lot 0.12.1", - "sp-core", + "sp-core 28.0.0", +] + +[[package]] +name = "sc-state-db" +version = "0.33.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9863fb81595a25b908d7143c1a3e162d237e67890088363df4a121fe37c49d08" +dependencies = [ + "log", + "parity-scale-codec", + "parking_lot 0.12.1", + "sp-core 31.0.0", ] [[package]] name = "sc-storage-monitor" -version = "0.16.0" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "838d31b4316424d1c2c3a2f06f4e76cd56b53f38d366fc9882444d4ce8faabec" +checksum = "d54aa61816b82fbe136f3c39b40ecb27bc7302c0c9039cc426b2c6f492666ac5" dependencies = [ "clap", "fs4", "log", - "sp-core", + "sp-core 31.0.0", "thiserror", "tokio", ] [[package]] name = "sc-sync-state-rpc" -version = "0.34.0" +version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb310dce9d2474a74152605dc0ca0f81a46f61ba4e7a39752f1203121f47c0c6" +checksum = "8fa4c5d5add3ee03e2b0aa02c827b8e3bc307be7c403eb534f95d5c81d372f78" dependencies = [ "jsonrpsee", "parity-scale-codec", "sc-chain-spec", - "sc-client-api", + "sc-client-api 31.0.0", "sc-consensus-babe", "sc-consensus-epochs", "sc-consensus-grandpa", "serde", "serde_json", - "sp-blockchain", - "sp-runtime", + "sp-blockchain 31.0.0", + "sp-runtime 34.0.0", "thiserror", ] [[package]] name = "sc-sysinfo" -version = "27.0.0" +version = "30.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfc9a5da78281735c6ff3b8d0287e95dcf32fc001415ac20cb2844c0ab4e6d05" +checksum = "f098da1a83dc5b4e69ef66f7dfc5c0a82bc63defe8dcb0aaa1819e9b2bd6d744" dependencies = [ "derive_more", "futures", @@ -12995,16 +13643,17 @@ dependencies = [ "sc-telemetry", "serde", "serde_json", - "sp-core", - "sp-io", + "sp-core 31.0.0", + "sp-crypto-hashing", + "sp-io 33.0.0", "sp-std", ] [[package]] name = "sc-telemetry" -version = "15.0.0" +version = "17.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96841bdc22e1ad5931e6cb7557b06ef33aeda7f5eef3864653359840f9fd025a" +checksum = "6c6807ebd9f43ab628931842d3aaa9404ddfd07013e9c7027ca603f496939577" dependencies = [ "chrono", "futures", @@ -13013,7 +13662,7 @@ dependencies = [ "parking_lot 0.12.1", "pin-project", "rand", - "sc-utils", + "sc-utils 16.0.0", "serde", "serde_json", "thiserror", @@ -13022,9 +13671,9 @@ dependencies = [ [[package]] name = "sc-tracing" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90864e5e042d1238bcb082b0fa73ce58b7eb4897127783dae1dd66eee59cdaef" +checksum = "83e8f5e8eb36f887dba06e1392717e27e4edf12d23d5220dba8ee851de8b174e" dependencies = [ "ansi_term", "chrono", @@ -13036,14 +13685,14 @@ dependencies = [ "parking_lot 0.12.1", "regex", "rustc-hash", - "sc-client-api", + "sc-client-api 31.0.0", "sc-tracing-proc-macro", "serde", - "sp-api", - "sp-blockchain", - "sp-core", + "sp-api 29.0.0", + "sp-blockchain 31.0.0", + "sp-core 31.0.0", "sp-rpc", - "sp-runtime", + "sp-runtime 34.0.0", "sp-tracing", "thiserror", "tracing", @@ -13060,14 +13709,14 @@ dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] name = "sc-transaction-pool" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7985fab634814ee28fe3ecd2131fa2cb4c8eee88a7e60f1cd59dc0afa826fe2" +checksum = "d56300f466670067cca98a931b0b6cbc8b018c0d296eb915c1473bac45b7cd73" dependencies = [ "async-trait", "futures", @@ -13076,14 +13725,15 @@ dependencies = [ "log", "parity-scale-codec", "parking_lot 0.12.1", - "sc-client-api", - "sc-transaction-pool-api", - "sc-utils", + "sc-client-api 31.0.0", + "sc-transaction-pool-api 31.0.0", + "sc-utils 16.0.0", "serde", - "sp-api", - "sp-blockchain", - "sp-core", - "sp-runtime", + "sp-api 29.0.0", + "sp-blockchain 31.0.0", + "sp-core 31.0.0", + "sp-crypto-hashing", + "sp-runtime 34.0.0", "sp-tracing", "sp-transaction-pool", "substrate-prometheus-endpoint", @@ -13101,9 +13751,26 @@ dependencies = [ "log", "parity-scale-codec", "serde", - "sp-blockchain", - "sp-core", - "sp-runtime", + "sp-blockchain 28.0.0", + "sp-core 28.0.0", + "sp-runtime 31.0.1", + "thiserror", +] + +[[package]] +name = "sc-transaction-pool-api" +version = "31.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3609025d39a1b75f1ee4f490dc52e000de144948a73cacd788f5995df5ebe8bf" +dependencies = [ + "async-trait", + "futures", + "log", + "parity-scale-codec", + "serde", + "sp-blockchain 31.0.0", + "sp-core 31.0.0", + "sp-runtime 34.0.0", "thiserror", ] @@ -13120,7 +13787,23 @@ dependencies = [ "log", "parking_lot 0.12.1", "prometheus", - "sp-arithmetic", + "sp-arithmetic 23.0.0", +] + +[[package]] +name = "sc-utils" +version = "16.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1863d482be044f4768ef5de6119dc70b5e31e6e9f71ad225c177474d6540e424" +dependencies = [ + "async-channel 1.9.0", + "futures", + "futures-timer", + "lazy_static", + "log", + "parking_lot 0.12.1", + "prometheus", + "sp-arithmetic 25.0.0", ] [[package]] @@ -13266,6 +13949,7 @@ dependencies = [ "der 0.7.8", "generic-array 0.14.7", "pkcs8 0.10.2", + "serdect", "subtle 2.5.0", "zeroize", ] @@ -13355,9 +14039,9 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" [[package]] name = "serde" -version = "1.0.196" +version = "1.0.197" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "870026e60fa08c69f064aa766c10f10b1d62db9ccd4d0abb206472bee0ce3b32" +checksum = "3fb1c873e1b9b056a4dc4c0c198b24c3ffa059243875552b2bd0933b1aee4ce2" dependencies = [ "serde_derive", ] @@ -13373,20 +14057,20 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.196" +version = "1.0.197" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33c85360c95e7d137454dc81d9a4ed2b8efd8fbe19cee57357b32b9771fccb67" +checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] name = "serde_json" -version = "1.0.112" +version = "1.0.115" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d1bd37ce2324cf3bf85e5a25f96eb4baf0d5aa6eba43e7ae8958870c4ec48ed" +checksum = "12dc5c46daa8e9fdf4f5e71b6cf9a53f2487da0e86e55808e2d35539666497dd" dependencies = [ "itoa", "ryu", @@ -13402,6 +14086,16 @@ dependencies = [ "serde", ] +[[package]] +name = "serdect" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a84f14a19e9a014bb9f4512488d9829a68e04ecabffb0f9904cd1ace94598177" +dependencies = [ + "base16ct 0.2.0", + "serde", +] + [[package]] name = "sha-1" version = "0.9.8" @@ -13564,14 +14258,14 @@ checksum = "826167069c09b99d56f31e9ae5c99049e932a98c9dc2dac47645b08dbbf76ba7" [[package]] name = "slot-range-helper" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d9bb569dc58f1e139c20f532a2ad13d54795060c0000c2c49dc812b17684197" +checksum = "ada4c82b85daa6134837918889b341716e4918c608b3cc5345ae67ea85a187c6" dependencies = [ "enumn", "parity-scale-codec", "paste", - "sp-runtime", + "sp-runtime 34.0.0", "sp-std", ] @@ -13767,15 +14461,38 @@ dependencies = [ "log", "parity-scale-codec", "scale-info", - "sp-api-proc-macro", - "sp-core", - "sp-externalities", + "sp-api-proc-macro 15.0.0", + "sp-core 28.0.0", + "sp-externalities 0.25.0", "sp-metadata-ir", - "sp-runtime", - "sp-state-machine", + "sp-runtime 31.0.1", + "sp-state-machine 0.35.0", "sp-std", - "sp-trie", - "sp-version", + "sp-trie 29.0.0", + "sp-version 29.0.0", + "thiserror", +] + +[[package]] +name = "sp-api" +version = "29.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb3fb2cdf7ee9b8d6ec7c2d8740b1a506e393dc18c7c2776764b47136d72dce7" +dependencies = [ + "hash-db", + "log", + "parity-scale-codec", + "scale-info", + "sp-api-proc-macro 17.0.1", + "sp-core 31.0.0", + "sp-externalities 0.27.0", + "sp-metadata-ir", + "sp-runtime 34.0.0", + "sp-runtime-interface 26.0.0", + "sp-state-machine 0.38.0", + "sp-std", + "sp-trie 32.0.0", + "sp-version 32.0.0", "thiserror", ] @@ -13791,7 +14508,22 @@ dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", +] + +[[package]] +name = "sp-api-proc-macro" +version = "17.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63a5680d94c55e1c7dc54e9e09b4827314fab44f9300f0be170898dc402318de" +dependencies = [ + "Inflector", + "blake2 0.10.6", + "expander 2.0.0", + "proc-macro-crate 3.1.0", + "proc-macro2", + "quote", + "syn 2.0.58", ] [[package]] @@ -13803,8 +14535,22 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", + "sp-core 28.0.0", + "sp-io 30.0.0", + "sp-std", +] + +[[package]] +name = "sp-application-crypto" +version = "33.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13ca6121c22c8bd3d1dce1f05c479101fd0d7b159bef2a3e8c834138d839c75c" +dependencies = [ + "parity-scale-codec", + "scale-info", + "serde", + "sp-core 31.0.0", + "sp-io 33.0.0", "sp-std", ] @@ -13823,29 +14569,44 @@ dependencies = [ "static_assertions", ] +[[package]] +name = "sp-arithmetic" +version = "25.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "910c07fa263b20bf7271fdd4adcb5d3217dfdac14270592e0780223542e7e114" +dependencies = [ + "integer-sqrt", + "num-traits", + "parity-scale-codec", + "scale-info", + "serde", + "sp-std", + "static_assertions", +] + [[package]] name = "sp-authority-discovery" -version = "26.0.0" +version = "29.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22a740c05e9096eb17e93b5ab6aa5fe8ce0c9b4243777826d92133b3dd682e14" +checksum = "5ab47c385784b3f9646a21d5dcb236399083d77420a1269e70c04772336c519f" dependencies = [ "parity-scale-codec", "scale-info", - "sp-api", - "sp-application-crypto", - "sp-runtime", + "sp-api 29.0.0", + "sp-application-crypto 33.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "sp-block-builder" -version = "26.0.0" +version = "29.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6d2aa0943101367b955f5806c3ecea2e23df7c90059708107470dbfb9d3d7ab" +checksum = "97e155e388d7e41c39a27f40f50c2517facdbf20dde4a73f40ec8f1f30ce190e" dependencies = [ - "sp-api", - "sp-inherents", - "sp-runtime", + "sp-api 29.0.0", + "sp-inherents 29.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -13860,11 +14621,30 @@ dependencies = [ "parity-scale-codec", "parking_lot 0.12.1", "schnellru", - "sp-api", - "sp-consensus", + "sp-api 26.0.0", + "sp-consensus 0.32.0", + "sp-database", + "sp-runtime 31.0.1", + "sp-state-machine 0.35.0", + "thiserror", +] + +[[package]] +name = "sp-blockchain" +version = "31.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d00084ddd62a3bad1fc4c04cdb1cdbcbb55d813dbd4e42d52e42e8b6599fb210" +dependencies = [ + "futures", + "log", + "parity-scale-codec", + "parking_lot 0.12.1", + "schnellru", + "sp-api 29.0.0", + "sp-consensus 0.35.0", "sp-database", - "sp-runtime", - "sp-state-machine", + "sp-runtime 34.0.0", + "sp-state-machine 0.38.0", "thiserror", ] @@ -13877,95 +14657,113 @@ dependencies = [ "async-trait", "futures", "log", - "sp-core", - "sp-inherents", - "sp-runtime", - "sp-state-machine", + "sp-core 28.0.0", + "sp-inherents 26.0.0", + "sp-runtime 31.0.1", + "sp-state-machine 0.35.0", + "thiserror", +] + +[[package]] +name = "sp-consensus" +version = "0.35.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed6f1ae58a74d619bd2c1d7939b4aa805f4226c7454ec3591c8a59fb0cc6477f" +dependencies = [ + "async-trait", + "futures", + "log", + "sp-core 31.0.0", + "sp-inherents 29.0.0", + "sp-runtime 34.0.0", + "sp-state-machine 0.38.0", "thiserror", ] [[package]] name = "sp-consensus-aura" -version = "0.32.0" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ab8e878a116b0885eaefd068235657737cb72fdce60a8c080dfd092f7d645cc" +checksum = "334d0088b7de70a94d58e7e93acd8d5101b35fadca7e19fa26788203b22e309b" dependencies = [ "async-trait", "parity-scale-codec", "scale-info", - "sp-api", - "sp-application-crypto", + "sp-api 29.0.0", + "sp-application-crypto 33.0.0", "sp-consensus-slots", - "sp-inherents", - "sp-runtime", + "sp-inherents 29.0.0", + "sp-runtime 34.0.0", "sp-std", "sp-timestamp", ] [[package]] name = "sp-consensus-babe" -version = "0.32.0" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebfedfdea5b22fb3625cd664e72503dcbd1087373181d5be0d092b3e7b4c61f5" +checksum = "eb593ec8ec674a583d6fc5386b7f8964a9db78dcaabc0595559145a4053c9f6c" dependencies = [ "async-trait", "parity-scale-codec", "scale-info", "serde", - "sp-api", - "sp-application-crypto", + "sp-api 29.0.0", + "sp-application-crypto 33.0.0", "sp-consensus-slots", - "sp-core", - "sp-inherents", - "sp-runtime", + "sp-core 31.0.0", + "sp-inherents 29.0.0", + "sp-runtime 34.0.0", "sp-std", "sp-timestamp", ] [[package]] name = "sp-consensus-beefy" -version = "13.0.0" +version = "16.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e09a424196a673f0e6b5fe79e4ab97da416491cfecab7bc835fa595134ac1b5c" +checksum = "7e2b03bc552702dd20fd3dad01631b13ca3e62e814ad278fe3012f5e3bb3e100" dependencies = [ "lazy_static", "parity-scale-codec", "scale-info", "serde", - "sp-api", - "sp-application-crypto", - "sp-core", - "sp-io", + "sp-api 29.0.0", + "sp-application-crypto 33.0.0", + "sp-core 31.0.0", + "sp-crypto-hashing", + "sp-io 33.0.0", + "sp-keystore 0.37.0", "sp-mmr-primitives", - "sp-runtime", + "sp-runtime 34.0.0", "sp-std", "strum 0.24.1", ] [[package]] name = "sp-consensus-grandpa" -version = "13.0.0" +version = "16.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a906b20409a5a69b1d9580848f502af20cf2c51a1ae028ba208375eb11f332b" +checksum = "71df706a104a752101b52f12cca7f5b7ffe1ca6ce9b4b1eb8c5d04356f248fa5" dependencies = [ "finality-grandpa", "log", "parity-scale-codec", "scale-info", "serde", - "sp-api", - "sp-application-crypto", - "sp-core", - "sp-keystore", - "sp-runtime", + "sp-api 29.0.0", + "sp-application-crypto 33.0.0", + "sp-core 31.0.0", + "sp-keystore 0.37.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "sp-consensus-slots" -version = "0.32.0" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fdc5c1620d81196391daa15e78ea20cc11c59f08c509381c276d5d6a3d4d36af" +checksum = "e0a5c47c52ad58aa349f7c13cb356ab45c32964ee28354c27fd6e4b417cb2644" dependencies = [ "parity-scale-codec", "scale-info", @@ -13984,7 +14782,7 @@ dependencies = [ "bip39", "bitflags 1.3.2", "blake2 0.10.6", - "bounded-collections", + "bounded-collections 0.1.9", "bs58 0.5.0", "dyn-clonable", "ed25519-zebra 3.1.0", @@ -14008,12 +14806,59 @@ dependencies = [ "serde", "sp-core-hashing", "sp-debug-derive", - "sp-externalities", - "sp-runtime-interface", + "sp-externalities 0.25.0", + "sp-runtime-interface 24.0.0", "sp-std", - "sp-storage", + "sp-storage 19.0.0", "ss58-registry", - "substrate-bip39", + "substrate-bip39 0.4.5", + "thiserror", + "tracing", + "w3f-bls", + "zeroize", +] + +[[package]] +name = "sp-core" +version = "31.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26d7a0fd8f16dcc3761198fc83be12872f823b37b749bc72a3a6a1f702509366" +dependencies = [ + "array-bytes 6.2.2", + "bitflags 1.3.2", + "blake2 0.10.6", + "bounded-collections 0.2.0", + "bs58 0.5.0", + "dyn-clonable", + "ed25519-zebra 3.1.0", + "futures", + "hash-db", + "hash256-std-hasher", + "impl-serde", + "itertools 0.10.5", + "k256 0.13.3", + "libsecp256k1", + "log", + "merlin 3.0.0", + "parity-bip39", + "parity-scale-codec", + "parking_lot 0.12.1", + "paste", + "primitive-types", + "rand", + "scale-info", + "schnorrkel 0.11.4", + "secp256k1", + "secrecy", + "serde", + "sp-crypto-hashing", + "sp-debug-derive", + "sp-externalities 0.27.0", + "sp-runtime-interface 26.0.0", + "sp-std", + "sp-storage 20.0.0", + "ss58-registry", + "substrate-bip39 0.5.0", "thiserror", "tracing", "w3f-bls", @@ -14042,7 +14887,32 @@ checksum = "7527f8dda7667c41009b2cd0efaddcb81709b9741bd5ee6d17b11bad835cc698" dependencies = [ "quote", "sp-core-hashing", - "syn 2.0.48", + "syn 2.0.58", +] + +[[package]] +name = "sp-crypto-hashing" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc9927a7f81334ed5b8a98a4a978c81324d12bd9713ec76b5c68fd410174c5eb" +dependencies = [ + "blake2b_simd", + "byteorder", + "digest 0.10.7", + "sha2 0.10.8", + "sha3", + "twox-hash", +] + +[[package]] +name = "sp-crypto-hashing-proc-macro" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b85d0f1f1e44bd8617eb2a48203ee854981229e3e79e6f468c7175d5fd37489b" +dependencies = [ + "quote", + "sp-crypto-hashing", + "syn 2.0.58", ] [[package]] @@ -14063,7 +14933,7 @@ checksum = "48d09fa0a5f7299fb81ee25ae3853d26200f7a348148aed6de76be905c007dbe" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -14075,7 +14945,19 @@ dependencies = [ "environmental", "parity-scale-codec", "sp-std", - "sp-storage", + "sp-storage 19.0.0", +] + +[[package]] +name = "sp-externalities" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1d6a4572eadd4a63cff92509a210bf425501a0c5e76574b30a366ac77653787" +dependencies = [ + "environmental", + "parity-scale-codec", + "sp-std", + "sp-storage 20.0.0", ] [[package]] @@ -14085,8 +14967,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dfdc79df83221ec5a279cbbd08fd6f8be164b9b081c8e84593ce2c2ebd5d66c0" dependencies = [ "serde_json", - "sp-api", - "sp-runtime", + "sp-api 26.0.0", + "sp-runtime 31.0.1", + "sp-std", +] + +[[package]] +name = "sp-genesis-builder" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16a1192b502d38c6d17b1005a7b3e7a6ab835df996803968ae3be9e8f7399ee4" +dependencies = [ + "serde_json", + "sp-api 29.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -14100,7 +14994,22 @@ dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "scale-info", - "sp-runtime", + "sp-runtime 31.0.1", + "sp-std", + "thiserror", +] + +[[package]] +name = "sp-inherents" +version = "29.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b5e46ccc5848542648dcf05f882e41de2e341d0eeca97ff2b7dfad0f38e8500" +dependencies = [ + "async-trait", + "impl-trait-for-tuples", + "parity-scale-codec", + "scale-info", + "sp-runtime 34.0.0", "sp-std", "thiserror", ] @@ -14118,26 +15027,53 @@ dependencies = [ "parity-scale-codec", "rustversion", "secp256k1", - "sp-core", - "sp-externalities", - "sp-keystore", - "sp-runtime-interface", - "sp-state-machine", + "sp-core 28.0.0", + "sp-externalities 0.25.0", + "sp-keystore 0.34.0", + "sp-runtime-interface 24.0.0", + "sp-state-machine 0.35.0", + "sp-std", + "sp-tracing", + "sp-trie 29.0.0", + "tracing", + "tracing-core", +] + +[[package]] +name = "sp-io" +version = "33.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e09bba780b55bd9e67979cd8f654a31e4a6cf45426ff371394a65953d2177f2" +dependencies = [ + "bytes", + "ed25519-dalek", + "libsecp256k1", + "log", + "parity-scale-codec", + "polkavm-derive 0.9.1", + "rustversion", + "secp256k1", + "sp-core 31.0.0", + "sp-crypto-hashing", + "sp-externalities 0.27.0", + "sp-keystore 0.37.0", + "sp-runtime-interface 26.0.0", + "sp-state-machine 0.38.0", "sp-std", "sp-tracing", - "sp-trie", + "sp-trie 32.0.0", "tracing", "tracing-core", ] [[package]] name = "sp-keyring" -version = "31.0.0" +version = "34.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98165ce7c625a8cdb88d39c6bbd56fe8b32ada64ed0894032beba99795f557da" +checksum = "a07a31da596d705b3a3458d784a897af7fd2f8090de436dc386a112e8ea7f34f" dependencies = [ - "sp-core", - "sp-runtime", + "sp-core 31.0.0", + "sp-runtime 34.0.0", "strum 0.24.1", ] @@ -14149,11 +15085,23 @@ checksum = "96806a28a62ed9ddecd0b28857b1344d029390f7c5c42a2ff9199cbf5638635c" dependencies = [ "parity-scale-codec", "parking_lot 0.12.1", - "sp-core", - "sp-externalities", + "sp-core 28.0.0", + "sp-externalities 0.25.0", "thiserror", ] +[[package]] +name = "sp-keystore" +version = "0.37.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bdbab8b61bd61d5f8625a0c75753b5d5a23be55d3445419acd42caf59cf6236b" +dependencies = [ + "parity-scale-codec", + "parking_lot 0.12.1", + "sp-core 31.0.0", + "sp-externalities 0.27.0", +] + [[package]] name = "sp-maybe-compressed-blob" version = "11.0.0" @@ -14178,60 +15126,60 @@ dependencies = [ [[package]] name = "sp-mixnet" -version = "0.4.0" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85ed83d2f899484bde61c72cbae6edfb25708d43e6b19934e206f3c706df67df" +checksum = "22d9da31673ad5771faf8cd0e62ab0c183ea71a630d187b926bc52af379cb1de" dependencies = [ "parity-scale-codec", "scale-info", - "sp-api", - "sp-application-crypto", + "sp-api 29.0.0", + "sp-application-crypto 33.0.0", "sp-std", ] [[package]] name = "sp-mmr-primitives" -version = "26.0.0" +version = "29.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7526a73d518c03fa2447588b1544019a194a4f113cf34d2610d3b5925c80c86" +checksum = "518fcd8710618d104e04c9e63e697d3406180afbe55cc5400168019647fc5880" dependencies = [ "ckb-merkle-mountain-range", "log", "parity-scale-codec", "scale-info", "serde", - "sp-api", - "sp-core", + "sp-api 29.0.0", + "sp-core 31.0.0", "sp-debug-derive", - "sp-runtime", + "sp-runtime 34.0.0", "sp-std", "thiserror", ] [[package]] name = "sp-npos-elections" -version = "26.0.0" +version = "29.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa8efff28b504b4b928288976e5f72c00c7ece9d2348a7ca2496c77849dd4c8f" +checksum = "e03ec553bc1a0f4d3aa902d3c5b3cdbe76f8218c642cbca0305722b3f8bbc826" dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-arithmetic", - "sp-core", - "sp-runtime", + "sp-arithmetic 25.0.0", + "sp-core 31.0.0", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "sp-offchain" -version = "26.0.0" +version = "29.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb45b3e397dc9c7b81cb2d8d641d0bcb1f525b60e83835783413ba73b3f61ac9" +checksum = "c041d932d7debf1d2e073ecece1425aadae7482689cd4bf148d5886b28bd10d7" dependencies = [ - "sp-api", - "sp-core", - "sp-runtime", + "sp-api 29.0.0", + "sp-core 31.0.0", + "sp-runtime 34.0.0", ] [[package]] @@ -14247,13 +15195,13 @@ dependencies = [ [[package]] name = "sp-rpc" -version = "26.0.0" +version = "29.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a55f2c7660b579627d22932ecfe2e5f001a7671d2fa77667387517c7f80e6fb" +checksum = "b26650747f5c204afd8c637df5e882ea912a890cf974fe67c36b430318fc451c" dependencies = [ "rustc-hash", "serde", - "sp-core", + "sp-core 31.0.0", ] [[package]] @@ -14273,12 +15221,37 @@ dependencies = [ "scale-info", "serde", "simple-mermaid", - "sp-application-crypto", - "sp-arithmetic", - "sp-core", - "sp-io", + "sp-application-crypto 30.0.0", + "sp-arithmetic 23.0.0", + "sp-core 28.0.0", + "sp-io 30.0.0", + "sp-std", + "sp-weights 27.0.0", +] + +[[package]] +name = "sp-runtime" +version = "34.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec3cb126971e7db2f0fcf8053dce740684c438c7180cfca1959598230f342c58" +dependencies = [ + "docify", + "either", + "hash256-std-hasher", + "impl-trait-for-tuples", + "log", + "parity-scale-codec", + "paste", + "rand", + "scale-info", + "serde", + "simple-mermaid", + "sp-application-crypto 33.0.0", + "sp-arithmetic 25.0.0", + "sp-core 31.0.0", + "sp-io 33.0.0", "sp-std", - "sp-weights", + "sp-weights 30.0.0", ] [[package]] @@ -14291,10 +15264,30 @@ dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "primitive-types", - "sp-externalities", - "sp-runtime-interface-proc-macro", + "sp-externalities 0.25.0", + "sp-runtime-interface-proc-macro 17.0.0", + "sp-std", + "sp-storage 19.0.0", + "sp-tracing", + "sp-wasm-interface", + "static_assertions", +] + +[[package]] +name = "sp-runtime-interface" +version = "26.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e48a675ea4858333d4d755899ed5ed780174aa34fec15953428d516af5452295" +dependencies = [ + "bytes", + "impl-trait-for-tuples", + "parity-scale-codec", + "polkavm-derive 0.8.0", + "primitive-types", + "sp-externalities 0.27.0", + "sp-runtime-interface-proc-macro 18.0.0", "sp-std", - "sp-storage", + "sp-storage 20.0.0", "sp-tracing", "sp-wasm-interface", "static_assertions", @@ -14311,22 +15304,36 @@ dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", +] + +[[package]] +name = "sp-runtime-interface-proc-macro" +version = "18.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0195f32c628fee3ce1dfbbf2e7e52a30ea85f3589da9fe62a8b816d70fc06294" +dependencies = [ + "Inflector", + "expander 2.0.0", + "proc-macro-crate 3.1.0", + "proc-macro2", + "quote", + "syn 2.0.58", ] [[package]] name = "sp-session" -version = "27.0.0" +version = "30.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8048981db53d4f5171e6003f5e11fbfc27a8c196b0827619907a4214746a623b" +checksum = "6a61ea4ca90f644da2c25edee711b53b1c0b8d50628ceef372224ea24d252b57" dependencies = [ "parity-scale-codec", "scale-info", - "sp-api", - "sp-core", - "sp-keystore", - "sp-runtime", - "sp-staking", + "sp-api 29.0.0", + "sp-core 31.0.0", + "sp-keystore 0.37.0", + "sp-runtime 34.0.0", + "sp-staking 29.0.0", "sp-std", ] @@ -14340,8 +15347,23 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-runtime", + "sp-core 28.0.0", + "sp-runtime 31.0.1", + "sp-std", +] + +[[package]] +name = "sp-staking" +version = "29.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4114cde17987eaa2f17b8850a8c856b90364666cdbc920d511e7a1cde0574d24" +dependencies = [ + "impl-trait-for-tuples", + "parity-scale-codec", + "scale-info", + "serde", + "sp-core 31.0.0", + "sp-runtime 34.0.0", "sp-std", ] @@ -14357,11 +15379,33 @@ dependencies = [ "parking_lot 0.12.1", "rand", "smallvec", - "sp-core", - "sp-externalities", + "sp-core 28.0.0", + "sp-externalities 0.25.0", + "sp-panic-handler", + "sp-std", + "sp-trie 29.0.0", + "thiserror", + "tracing", + "trie-db", +] + +[[package]] +name = "sp-state-machine" +version = "0.38.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1eae0eac8034ba14437e772366336f579398a46d101de13dbb781ab1e35e67c5" +dependencies = [ + "hash-db", + "log", + "parity-scale-codec", + "parking_lot 0.12.1", + "rand", + "smallvec", + "sp-core 31.0.0", + "sp-externalities 0.27.0", "sp-panic-handler", "sp-std", - "sp-trie", + "sp-trie 32.0.0", "thiserror", "tracing", "trie-db", @@ -14381,12 +15425,38 @@ dependencies = [ "rand", "scale-info", "sha2 0.10.8", - "sp-api", - "sp-application-crypto", - "sp-core", - "sp-externalities", - "sp-runtime", - "sp-runtime-interface", + "sp-api 26.0.0", + "sp-application-crypto 30.0.0", + "sp-core 28.0.0", + "sp-externalities 0.25.0", + "sp-runtime 31.0.1", + "sp-runtime-interface 24.0.0", + "sp-std", + "thiserror", + "x25519-dalek 2.0.0", +] + +[[package]] +name = "sp-statement-store" +version = "13.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b90e8440d72e0ae5d273374af3ebe16768d05b40dff1f487835dd2f826ee9568" +dependencies = [ + "aes-gcm", + "curve25519-dalek 4.1.1", + "ed25519-dalek", + "hkdf", + "parity-scale-codec", + "rand", + "scale-info", + "sha2 0.10.8", + "sp-api 29.0.0", + "sp-application-crypto 33.0.0", + "sp-core 31.0.0", + "sp-crypto-hashing", + "sp-externalities 0.27.0", + "sp-runtime 34.0.0", + "sp-runtime-interface 26.0.0", "sp-std", "thiserror", "x25519-dalek 2.0.0", @@ -14412,16 +15482,30 @@ dependencies = [ "sp-std", ] +[[package]] +name = "sp-storage" +version = "20.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8dba5791cb3978e95daf99dad919ecb3ec35565604e88cd38d805d9d4981e8bd" +dependencies = [ + "impl-serde", + "parity-scale-codec", + "ref-cast", + "serde", + "sp-debug-derive", + "sp-std", +] + [[package]] name = "sp-timestamp" -version = "26.0.0" +version = "29.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "347eaddd5b07856ccec69ac3300e72e392a5efc3aea5fb4b7230888a0b447b9e" +checksum = "64d51fcd008fd5a79d61dba98c7ae89c2460a49dff07001bf1e9b12535d49536" dependencies = [ "async-trait", "parity-scale-codec", - "sp-inherents", - "sp-runtime", + "sp-inherents 29.0.0", + "sp-runtime 34.0.0", "sp-std", "thiserror", ] @@ -14441,28 +15525,28 @@ dependencies = [ [[package]] name = "sp-transaction-pool" -version = "26.0.0" +version = "29.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97c4052e69eacdb7a411e050c56a838f460b8a879071125451e9bb2d4814df34" +checksum = "0484eaf40c2abda75bda9688298cc8f6e02161176e3aab501207c8ccf4d4b3e1" dependencies = [ - "sp-api", - "sp-runtime", + "sp-api 29.0.0", + "sp-runtime 34.0.0", ] [[package]] name = "sp-transaction-storage-proof" -version = "26.0.0" +version = "29.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b2a2c693bc7ca363c9d2cd412276582aef10c794399aaffbd1fe2351099a1a5" +checksum = "ba0c99e0852ddd18159c2dc6100c2b5852e49211d8afe373cbce33d1da0050dd" dependencies = [ "async-trait", "parity-scale-codec", "scale-info", - "sp-core", - "sp-inherents", - "sp-runtime", + "sp-core 31.0.0", + "sp-inherents 29.0.0", + "sp-runtime 34.0.0", "sp-std", - "sp-trie", + "sp-trie 32.0.0", ] [[package]] @@ -14481,8 +15565,33 @@ dependencies = [ "rand", "scale-info", "schnellru", - "sp-core", - "sp-externalities", + "sp-core 28.0.0", + "sp-externalities 0.25.0", + "sp-std", + "thiserror", + "tracing", + "trie-db", + "trie-root", +] + +[[package]] +name = "sp-trie" +version = "32.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1aa91ad26c62b93d73e65f9ce7ebd04459c4bad086599348846a81988d6faa4" +dependencies = [ + "ahash 0.8.7", + "hash-db", + "lazy_static", + "memory-db", + "nohash-hasher", + "parity-scale-codec", + "parking_lot 0.12.1", + "rand", + "scale-info", + "schnellru", + "sp-core 31.0.0", + "sp-externalities 0.27.0", "sp-std", "thiserror", "tracing", @@ -14502,7 +15611,25 @@ dependencies = [ "scale-info", "serde", "sp-core-hashing-proc-macro", - "sp-runtime", + "sp-runtime 31.0.1", + "sp-std", + "sp-version-proc-macro", + "thiserror", +] + +[[package]] +name = "sp-version" +version = "32.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c0219b1aeb89e36d13bd43a718920a9087dbb66c567e672c4639cefb2fefc05" +dependencies = [ + "impl-serde", + "parity-scale-codec", + "parity-wasm 0.45.0", + "scale-info", + "serde", + "sp-crypto-hashing-proc-macro", + "sp-runtime 34.0.0", "sp-std", "sp-version-proc-macro", "thiserror", @@ -14517,7 +15644,7 @@ dependencies = [ "parity-scale-codec", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -14540,12 +15667,28 @@ version = "27.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9e874bdf9dd3fd3242f5b7867a4eaedd545b02f29041a46d222a9d9d5caaaa5c" dependencies = [ - "bounded-collections", + "bounded-collections 0.1.9", + "parity-scale-codec", + "scale-info", + "serde", + "smallvec", + "sp-arithmetic 23.0.0", + "sp-debug-derive", + "sp-std", +] + +[[package]] +name = "sp-weights" +version = "30.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9af6c661fe3066b29f9e1d258000f402ff5cc2529a9191972d214e5871d0ba87" +dependencies = [ + "bounded-collections 0.2.0", "parity-scale-codec", "scale-info", "serde", "smallvec", - "sp-arithmetic", + "sp-arithmetic 25.0.0", "sp-debug-derive", "sp-std", ] @@ -14573,6 +15716,15 @@ dependencies = [ "strum 0.24.1", ] +[[package]] +name = "spinning_top" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d96d2d1d716fb500937168cc09353ffdc7a012be8475ac7308e1bdf0e3923300" +dependencies = [ + "lock_api", +] + [[package]] name = "spki" version = "0.6.0" @@ -14616,27 +15768,27 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "staging-parachain-info" -version = "0.7.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad554ffd27fbcafd82e234d7e7188e458e51bfe2b3b5000dd236dce762e3e95f" +checksum = "4df1c48ca2892cb0694c7e10fbcfc8d15fe0fd0b763d61fbc587a870fbb97147" dependencies = [ "cumulus-primitives-core", - "frame-support", + "frame-support 31.0.0", "frame-system", "parity-scale-codec", "scale-info", - "sp-runtime", + "sp-runtime 34.0.0", "sp-std", ] [[package]] name = "staging-xcm" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0df18af00766d22926916bb443f14742c65cc6b2f0fe997b8f26da0d0f9ee9ca" +checksum = "e6ee775f7fc9dfae15d9d5a806efa7d3215f7b7b1cfd225809285a0281addeab" dependencies = [ "array-bytes 6.2.2", - "bounded-collections", + "bounded-collections 0.2.0", "derivative", "environmental", "impl-trait-for-tuples", @@ -14644,17 +15796,17 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-weights", + "sp-weights 30.0.0", "xcm-procedural", ] [[package]] name = "staging-xcm-builder" -version = "7.0.3" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ba4f214fe99d79ffcc266f431abbb32d3596788327b925d469c7bb6a3c84d3c" +checksum = "41c905c7e545eb80efdbf62470575a37935260503494453ffa3c1ac6207d06c9" dependencies = [ - "frame-support", + "frame-support 31.0.0", "frame-system", "impl-trait-for-tuples", "log", @@ -14662,34 +15814,34 @@ dependencies = [ "parity-scale-codec", "polkadot-parachain-primitives", "scale-info", - "sp-arithmetic", - "sp-io", - "sp-runtime", + "sp-arithmetic 25.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", - "sp-weights", + "sp-weights 30.0.0", "staging-xcm", "staging-xcm-executor", ] [[package]] name = "staging-xcm-executor" -version = "7.0.3" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f1dea1e33eefee513c197c24255670951a2c515a6ce2c7049fe86385400074f" +checksum = "e30434a78d4392b698bc7854c00f52d83c1c544da4be1912f898958c3e32f062" dependencies = [ "environmental", "frame-benchmarking", - "frame-support", + "frame-support 31.0.0", "impl-trait-for-tuples", "log", "parity-scale-codec", "scale-info", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-runtime", + "sp-arithmetic 25.0.0", + "sp-core 31.0.0", + "sp-io 33.0.0", + "sp-runtime 34.0.0", "sp-std", - "sp-weights", + "sp-weights 30.0.0", "staging-xcm", ] @@ -14742,9 +15894,9 @@ dependencies = [ [[package]] name = "strsim" -version = "0.10.0" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" [[package]] name = "strum" @@ -14770,7 +15922,7 @@ version = "0.24.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e385be0d24f186b4ce2f9982191e7101bb737312ad61c1f2f984f34bcf85d59" dependencies = [ - "heck", + "heck 0.4.1", "proc-macro2", "quote", "rustversion", @@ -14783,11 +15935,11 @@ version = "0.25.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "23dc1fa9ac9c169a78ba62f0b841814b7abae11bdd047b9c58f893439e309ea0" dependencies = [ - "heck", + "heck 0.4.1", "proc-macro2", "quote", "rustversion", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -14803,6 +15955,19 @@ dependencies = [ "zeroize", ] +[[package]] +name = "substrate-bip39" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2b564c293e6194e8b222e52436bcb99f60de72043c7f845cf6c4406db4df121" +dependencies = [ + "hmac 0.12.1", + "pbkdf2 0.12.2", + "schnorrkel 0.11.4", + "sha2 0.10.8", + "zeroize", +] + [[package]] name = "substrate-bn" version = "0.6.0" @@ -14824,9 +15989,9 @@ checksum = "b285e7d183a32732fdc119f3d81b7915790191fad602b7c709ef247073c77a2e" [[package]] name = "substrate-frame-rpc-system" -version = "28.0.0" +version = "31.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcee7812a1e1cec85e3095c5d1c1627ceb084c0c81e66c2f9df7cb7b3a5938f3" +checksum = "3c0da351445855b0d5bff2721c64508dc790d5cc0804d1d395074c8dafeb2170" dependencies = [ "frame-system-rpc-runtime-api", "futures", @@ -14834,12 +15999,12 @@ dependencies = [ "log", "parity-scale-codec", "sc-rpc-api", - "sc-transaction-pool-api", - "sp-api", + "sc-transaction-pool-api 31.0.0", + "sp-api 29.0.0", "sp-block-builder", - "sp-blockchain", - "sp-core", - "sp-runtime", + "sp-blockchain 31.0.0", + "sp-core 31.0.0", + "sp-runtime 34.0.0", ] [[package]] @@ -14857,51 +16022,52 @@ dependencies = [ [[package]] name = "substrate-rpc-client" -version = "0.33.0" +version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9076480cc6f480429b081bf93607d32183bdac4d6f0d2969d5e08de08bea1701" +checksum = "e71c3305c6159e3f4cfc158f88ceefb94dd86b2c92c6120ad51a9d9c31c0dce6" dependencies = [ "async-trait", "jsonrpsee", "log", "sc-rpc-api", "serde", - "sp-runtime", + "sp-runtime 34.0.0", ] [[package]] name = "substrate-state-trie-migration-rpc" -version = "27.0.0" +version = "30.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c92c25dcb3e4aee5559c2bd9b4d105786220cad116719d7ebb39e4f359865d44" +checksum = "ff3afa7be8eca9226448012fa58eeaaab9c42be60214471d304658ac4856052b" dependencies = [ "jsonrpsee", "parity-scale-codec", - "sc-client-api", + "sc-client-api 31.0.0", "sc-rpc-api", "serde", - "sp-core", - "sp-runtime", - "sp-state-machine", - "sp-trie", + "sp-core 31.0.0", + "sp-runtime 34.0.0", + "sp-state-machine 0.38.0", + "sp-trie 32.0.0", "trie-db", ] [[package]] name = "substrate-wasm-builder" -version = "17.0.0" +version = "20.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac08d23ff4da66fe6cb0300f249be010d78e5abeafef0390cae39736a374e6cd" +checksum = "f55ed4ff2945faa132b9658cb581a3a5cf14dd90b5e217b3e16724eb202ed6c6" dependencies = [ - "ansi_term", "build-helper", "cargo_metadata 0.15.4", + "console", "filetime", "parity-wasm 0.45.0", + "polkavm-linker", "sp-maybe-compressed-blob", "strum 0.24.1", "tempfile", - "toml 0.8.2", + "toml 0.8.12", "walkdir", "wasm-opt", ] @@ -14937,9 +16103,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.48" +version = "2.0.58" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f3531638e407dfc0814761abb7c00a5b54992b849452a0646b7f65c9f770f3f" +checksum = "44cfb93f38070beee36b3fef7d4f5a16f27751d94b187b666a5cc5e9b0d30687" dependencies = [ "proc-macro2", "quote", @@ -15055,7 +16221,7 @@ checksum = "e4c60d69f36615a077cc7663b9cb8e42275722d23e58a7fa3d2c7f2915d09d04" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -15066,7 +16232,7 @@ checksum = "fa0faa943b50f3db30a20aa7e265dbc66076993efed8463e8de414e5d06d3471" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -15208,7 +16374,7 @@ checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -15232,6 +16398,17 @@ dependencies = [ "tokio", ] +[[package]] +name = "tokio-rustls" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "775e0c0f0adb3a2f22a00c4745d728b479985fc15ee7ca6a2608388c5569860f" +dependencies = [ + "rustls 0.22.3", + "rustls-pki-types", + "tokio", +] + [[package]] name = "tokio-stream" version = "0.1.14" @@ -15282,14 +16459,14 @@ dependencies = [ [[package]] name = "toml" -version = "0.8.2" +version = "0.8.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "185d8ab0dfbb35cf1399a6344d8484209c088f75f8f68230da55d48d95d43e3d" +checksum = "e9dd1545e8208b4a5af1aa9bbd0b4cf7e9ea08fabc5d0a5c67fcaafa17433aa3" dependencies = [ "serde", "serde_spanned", "toml_datetime", - "toml_edit 0.20.2", + "toml_edit 0.22.9", ] [[package]] @@ -15311,31 +16488,31 @@ dependencies = [ "serde", "serde_spanned", "toml_datetime", - "winnow", + "winnow 0.5.35", ] [[package]] name = "toml_edit" -version = "0.20.2" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "396e4d48bbb2b7554c944bde63101b5ae446cff6ec4a24227428f15eb72ef338" +checksum = "d34d383cd00a163b4a5b85053df514d45bc330f6de7737edfe0a93311d1eaa03" dependencies = [ "indexmap 2.2.0", - "serde", - "serde_spanned", "toml_datetime", - "winnow", + "winnow 0.5.35", ] [[package]] name = "toml_edit" -version = "0.21.0" +version = "0.22.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d34d383cd00a163b4a5b85053df514d45bc330f6de7737edfe0a93311d1eaa03" +checksum = "8e40bb779c5187258fd7aad0eb68cb8706a0a81fa712fbea808ab43c4b8374c4" dependencies = [ "indexmap 2.2.0", + "serde", + "serde_spanned", "toml_datetime", - "winnow", + "winnow 0.6.6", ] [[package]] @@ -15344,6 +16521,10 @@ version = "0.4.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c" dependencies = [ + "futures-core", + "futures-util", + "pin-project", + "pin-project-lite 0.2.13", "tower-layer", "tower-service", "tracing", @@ -15399,7 +16580,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -15424,9 +16605,9 @@ dependencies = [ [[package]] name = "tracing-gum" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f134d9dda0e872989ddf57b90ca73bcad27f1fba2cc19cfada7b76549c590b0" +checksum = "461fe686e103f3afc4c93a56474193ffc46d4b2770f8df5d56e025e8bb54960c" dependencies = [ "coarsetime", "polkadot-primitives", @@ -15444,7 +16625,7 @@ dependencies = [ "proc-macro-crate 3.1.0", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -15567,9 +16748,9 @@ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" [[package]] name = "try-runtime-cli" -version = "0.38.0" +version = "0.41.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb82b8de45dabaaba00c8c7394f18c6f97dd0e27954d4de08b352a24886d8407" +checksum = "80765dc36d90e9f2112dccc6e5d70df50ab1239dba8e004bcc70cc77b3a9712d" dependencies = [ "async-trait", "clap", @@ -15579,25 +16760,25 @@ dependencies = [ "log", "parity-scale-codec", "sc-cli", - "sc-executor", + "sc-executor 0.35.0", "serde", "serde_json", - "sp-api", + "sp-api 29.0.0", "sp-consensus-aura", "sp-consensus-babe", - "sp-core", + "sp-core 31.0.0", "sp-debug-derive", - "sp-externalities", - "sp-inherents", - "sp-io", - "sp-keystore", + "sp-externalities 0.27.0", + "sp-inherents 29.0.0", + "sp-io 33.0.0", + "sp-keystore 0.37.0", "sp-rpc", - "sp-runtime", - "sp-state-machine", + "sp-runtime 34.0.0", + "sp-state-machine 0.38.0", "sp-timestamp", "sp-transaction-storage-proof", - "sp-version", - "sp-weights", + "sp-version 32.0.0", + "sp-weights 30.0.0", "substrate-rpc-client", "zstd 0.12.4", ] @@ -15822,26 +17003,26 @@ dependencies = [ "build-helper", "cargo_metadata 0.17.0", "filetime", - "frame-support", + "frame-support 28.0.0", "linregress", "parity-scale-codec", "parity-wasm 0.45.0", "parking_lot 0.12.1", "paste", "rand", - "sc-client-db", - "sc-executor", - "sc-executor-common", + "sc-client-db 0.35.0", + "sc-executor 0.32.0", + "sc-executor-common 0.29.0", "serde", "serde_json", - "sp-core", - "sp-externalities", - "sp-io", + "sp-core 28.0.0", + "sp-externalities 0.25.0", + "sp-io 30.0.0", "sp-maybe-compressed-blob", - "sp-runtime-interface", - "sp-state-machine", + "sp-runtime-interface 24.0.0", + "sp-state-machine 0.35.0", "sp-std", - "sp-storage", + "sp-storage 19.0.0", "strum 0.25.0", "tempfile", "thiserror", @@ -15859,7 +17040,7 @@ source = "git+https://github.com/open-web3-stack/wasm-bencher?branch=polkadot-v1 dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -15883,7 +17064,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", "wasm-bindgen-shared", ] @@ -15917,7 +17098,7 @@ checksum = "bae1abb6806dc1ad9e560ed242107c0f6c84335f1749dd4e8ddb012ebd5e25a7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -15948,6 +17129,15 @@ dependencies = [ "parity-wasm 0.45.0", ] +[[package]] +name = "wasm-instrument" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a47ecb37b9734d1085eaa5ae1a81e60801fd8c28d4cabdd8aedb982021918bc" +dependencies = [ + "parity-wasm 0.45.0", +] + [[package]] name = "wasm-opt" version = "0.116.0" @@ -16277,24 +17467,18 @@ dependencies = [ "webpki", ] -[[package]] -name = "webpki-roots" -version = "0.25.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1778a42e8b3b90bff8d0f5032bf22250792889a5cdc752aa0020c84abe3aaf10" - [[package]] name = "westend-runtime" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "390ccc949904980061c181f0a1507ceb793f3b57f8f930ef60222839e08cb2ca" +checksum = "3ef1f629f711d7d110a1d13a12d3b4ab8fdc4ec3f97abbe9d1f0d248014a9e72" dependencies = [ "binary-merkle-tree", "bitvec 1.0.1", "frame-benchmarking", "frame-election-provider-support", "frame-executive", - "frame-support", + "frame-support 31.0.0", "frame-system", "frame-system-benchmarking", "frame-system-rpc-runtime-api", @@ -16362,27 +17546,27 @@ dependencies = [ "serde", "serde_derive", "smallvec", - "sp-api", - "sp-application-crypto", - "sp-arithmetic", + "sp-api 29.0.0", + "sp-application-crypto 33.0.0", + "sp-arithmetic 25.0.0", "sp-authority-discovery", "sp-block-builder", "sp-consensus-babe", "sp-consensus-beefy", - "sp-core", - "sp-genesis-builder", - "sp-inherents", - "sp-io", + "sp-core 31.0.0", + "sp-genesis-builder 0.10.0", + "sp-inherents 29.0.0", + "sp-io 33.0.0", "sp-mmr-primitives", "sp-npos-elections", "sp-offchain", - "sp-runtime", + "sp-runtime 34.0.0", "sp-session", - "sp-staking", + "sp-staking 29.0.0", "sp-std", - "sp-storage", + "sp-storage 20.0.0", "sp-transaction-pool", - "sp-version", + "sp-version 32.0.0", "staging-xcm", "staging-xcm-builder", "staging-xcm-executor", @@ -16392,17 +17576,17 @@ dependencies = [ [[package]] name = "westend-runtime-constants" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c410b8a17b87e5228f9c27ba4a8020e7ece4a8afb0f452b989834623afe84a2" +checksum = "38ee9606d7d954aef2b22107e80fc128a467cd8d6f1d347f64e417f88b2833c8" dependencies = [ - "frame-support", + "frame-support 31.0.0", "polkadot-primitives", "polkadot-runtime-common", "smallvec", - "sp-core", - "sp-runtime", - "sp-weights", + "sp-core 31.0.0", + "sp-runtime 34.0.0", + "sp-weights 30.0.0", "staging-xcm", "staging-xcm-builder", ] @@ -16692,6 +17876,15 @@ dependencies = [ "memchr", ] +[[package]] +name = "winnow" +version = "0.6.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0c976aaaa0e1f90dbb21e9587cdaf1d9679a1cde8875c0d6bd83ab96a208352" +dependencies = [ + "memchr", +] + [[package]] name = "winreg" version = "0.50.0" @@ -16754,29 +17947,29 @@ dependencies = [ [[package]] name = "xcm-procedural" -version = "7.0.0" +version = "8.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7998facd751c42ec9b11a4cf71fcdb41fb147c5c8db8bcd1281fe84f8760d515" +checksum = "f4717a97970a9cda70d7db53cf50d2615c2f6f6b7c857445325b4a39ea7aa2cd" dependencies = [ "Inflector", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] name = "xcm-simulator" -version = "7.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "958836c9a2dc17a9b3a8b23fab47903a7dbc934f8d447386813c813139dbba8a" +checksum = "2039d951ee20d6047f573b979522fa5ba297398cd5a8e2150961f32ab975bd08" dependencies = [ - "frame-support", + "frame-support 31.0.0", "parity-scale-codec", "paste", "polkadot-core-primitives", "polkadot-parachain-primitives", "polkadot-runtime-parachains", - "sp-io", + "sp-io 33.0.0", "sp-std", "staging-xcm", "staging-xcm-builder", @@ -16832,7 +18025,7 @@ checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] @@ -16852,7 +18045,7 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.58", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 98f2a5f211..de233217df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -146,7 +146,7 @@ bstringify = { version = "0.1.2" } enumflags2 = { version = "0.7.7" } paste = { version = "1.0" } futures = { version = "0.3.28" } -jsonrpsee = { version = "0.16.2" } +jsonrpsee = { version = "0.22" } static_assertions = { version = "1.1.0" } ethabi = { version = "18.0.0", default-features = false } async-trait = { version = "0.1.71" } @@ -230,133 +230,133 @@ module-evm-utility-macro = { path = "modules/evm-utility/macro" } orml-build-script-utils = { path = "orml/build-script-utils" } # polkadot-sdk (wasm) -cumulus-pallet-aura-ext = { version = "0.7.0", default-features = false } -cumulus-pallet-parachain-system = { version = "0.7.0", default-features = false } -cumulus-pallet-xcm = { version = "0.7.0", default-features = false } -cumulus-pallet-xcmp-queue = { version = "0.7.0", default-features = false } -cumulus-primitives-core = { version = "0.7.0", default-features = false } -cumulus-primitives-parachain-inherent = { version = "0.7.0", default-features = false } -cumulus-primitives-timestamp = { version = "0.7.0", default-features = false } -cumulus-primitives-utility = { version = "0.7.0", default-features = false } -cumulus-test-relay-sproof-builder = { version = "0.7.0", default-features = false } -frame-benchmarking = { version = "28.0.0", default-features = false } -frame-executive = { version = "28.0.0", default-features = false } -frame-support = { version = "28.0.0", default-features = false } -frame-system = { version = "28.0.0", default-features = false } -frame-system-rpc-runtime-api = { version = "26.0.0", default-features = false } -frame-try-runtime = { version = "0.34.0", default-features = false } -pallet-aura = { version = "27.0.0", default-features = false } -pallet-authority-discovery = { version = "28.0.0", default-features = false } -pallet-authorship = { version = "28.0.0", default-features = false } -pallet-balances = { version = "28.0.0", default-features = false } -pallet-bounties = { version = "27.0.0", default-features = false } -pallet-collective = { version = "28.0.0", default-features = false } -pallet-democracy = { version = "28.0.0", default-features = false } -pallet-elections-phragmen = { version = "29.0.0", default-features = false } -pallet-indices = { version = "28.0.0", default-features = false } -pallet-membership = { version = "28.0.0", default-features = false } -pallet-message-queue = { version = "31.0.0", default-features = false } -pallet-multisig = { version = "28.0.0", default-features = false } -pallet-preimage = { version = "28.0.0", default-features = false } -pallet-proxy = { version = "28.0.0", default-features = false } -pallet-recovery = { version = "28.0.0", default-features = false } -pallet-root-testing = { version = "4.0.0", default-features = false } -pallet-scheduler = { version = "29.0.0", default-features = false } -pallet-session = { version = "28.0.0", default-features = false } -pallet-sudo = { version = "28.0.0", default-features = false } -pallet-timestamp = { version = "27.0.0", default-features = false } -pallet-tips = { version = "27.0.0", default-features = false } -pallet-transaction-payment = { version = "28.0.0", default-features = false } -pallet-transaction-payment-rpc-runtime-api = { version = "28.0.0", default-features = false } -pallet-treasury = { version = "27.0.0", default-features = false } -pallet-utility = { version = "28.0.0", default-features = false } -pallet-xcm = { version = "7.0.0", default-features = false } -parachain-info = { package = "staging-parachain-info", version = "0.7.0", default-features = false } -parachains-common = { version = "7.0.0", default-features = false } -polkadot-core-primitives = { version = "7.0.0", default-features = false } -polkadot-parachain-primitives = { version = "6.0.0", default-features = false } -polkadot-primitives = { version = "7.0.0", default-features = false } -polkadot-runtime-common = { version = "7.0.0", default-features = false } -polkadot-runtime-parachains = { version = "7.0.0", default-features = false } -sp-api = { version = "26.0.0", default-features = false } -sp-application-crypto = { version = "30.0.0", default-features = false } -sp-arithmetic = { version = "23.0.0", default-features = false } -sp-block-builder = { version = "26.0.0", default-features = false } -sp-blockchain = { version = "28.0.0", default-features = false } -sp-consensus = { version = "0.32.0", default-features = false } -sp-consensus-aura = { version = "0.32.0", default-features = false } -sp-consensus-slots = { version = "0.32.0", default-features = false } -sp-core = { version = "28.0.0", default-features = false } +cumulus-pallet-aura-ext = { version = "0.10.0", default-features = false } +cumulus-pallet-parachain-system = { version = "0.10.0", default-features = false } +cumulus-pallet-xcm = { version = "0.10.0", default-features = false } +cumulus-pallet-xcmp-queue = { version = "0.10.0", default-features = false } +cumulus-primitives-core = { version = "0.10.0", default-features = false } +cumulus-primitives-parachain-inherent = { version = "0.10.0", default-features = false } +cumulus-primitives-timestamp = { version = "0.10.0", default-features = false } +cumulus-primitives-utility = { version = "0.10.0", default-features = false } +cumulus-test-relay-sproof-builder = { version = "0.10.0", default-features = false } +frame-benchmarking = { version = "31.0.0", default-features = false } +frame-executive = { version = "31.0.0", default-features = false } +frame-support = { version = "31.0.0", default-features = false } +frame-system = { version = "31.0.0", default-features = false } +frame-system-rpc-runtime-api = { version = "29.0.0", default-features = false } +frame-try-runtime = { version = "0.37.0", default-features = false } +pallet-aura = { version = "30.0.0", default-features = false } +pallet-authority-discovery = { version = "31.0.1", default-features = false } +pallet-authorship = { version = "31.0.0", default-features = false } +pallet-balances = { version = "31.0.0", default-features = false } +pallet-bounties = { version = "30.0.0", default-features = false } +pallet-collective = { version = "31.0.0", default-features = false } +pallet-democracy = { version = "31.0.0", default-features = false } +pallet-elections-phragmen = { version = "32.0.0", default-features = false } +pallet-indices = { version = "31.0.0", default-features = false } +pallet-membership = { version = "31.0.0", default-features = false } +pallet-message-queue = { version = "34.0.0", default-features = false } +pallet-multisig = { version = "31.0.0", default-features = false } +pallet-preimage = { version = "31.0.0", default-features = false } +pallet-proxy = { version = "31.0.0", default-features = false } +pallet-recovery = { version = "31.0.0", default-features = false } +pallet-root-testing = { version = "7.0.0", default-features = false } +pallet-scheduler = { version = "32.0.0", default-features = false } +pallet-session = { version = "31.0.0", default-features = false } +pallet-sudo = { version = "31.0.0", default-features = false } +pallet-timestamp = { version = "30.0.0", default-features = false } +pallet-tips = { version = "30.0.0", default-features = false } +pallet-transaction-payment = { version = "31.0.0", default-features = false } +pallet-transaction-payment-rpc-runtime-api = { version = "31.0.0", default-features = false } +pallet-treasury = { version = "30.0.0", default-features = false } +pallet-utility = { version = "31.0.0", default-features = false } +pallet-xcm = { version = "10.0.1", default-features = false } +parachain-info = { version = "0.10.0", package = "staging-parachain-info", default-features = false } +parachains-common = { version = "10.0.0", default-features = false } +polkadot-core-primitives = { version = "10.0.0", default-features = false } +polkadot-parachain-primitives = { version = "9.0.0", default-features = false } +polkadot-primitives = { version = "10.0.0", default-features = false } +polkadot-runtime-common = { version = "10.0.0", default-features = false } +polkadot-runtime-parachains = { version = "10.0.0", default-features = false } +sp-api = { version = "29.0.0", default-features = false } +sp-application-crypto = { version = "33.0.0", default-features = false } +sp-arithmetic = { version = "25.0.0", default-features = false } +sp-block-builder = { version = "29.0.0", default-features = false } +sp-blockchain = { version = "31.0.0", default-features = false } +sp-consensus = { version = "0.35.0", default-features = false } +sp-consensus-aura = { version = "0.35.0", default-features = false } +sp-consensus-slots = { version = "0.35.0", default-features = false } +sp-core = { version = "31.0.0", default-features = false } sp-debug-derive = { version = "14.0.0", default-features = false } -sp-externalities = { version = "0.25.0", default-features = false } -sp-inherents = { version = "26.0.0", default-features = false } -sp-io = { version = "30.0.0", default-features = false } -sp-keyring = { version = "31.0.0", default-features = false } -sp-keystore = { version = "0.34.0", default-features = false } -sp-offchain = { version = "26.0.0", default-features = false } -sp-runtime = { version = "31.0.1", default-features = false } -sp-runtime-interface = { version = "24.0.0", default-features = false } -sp-session = { version = "27.0.0", default-features = false } -sp-staking = { version = "26.0.0", default-features = false } -sp-state-machine = { version = "0.35.0", default-features = false } +sp-externalities = { version = "0.27.0", default-features = false } +sp-inherents = { version = "29.0.0", default-features = false } +sp-io = { version = "33.0.0", default-features = false } +sp-keyring = { version = "34.0.0", default-features = false } +sp-keystore = { version = "0.37.0", default-features = false } +sp-offchain = { version = "29.0.0", default-features = false } +sp-runtime = { version = "34.0.0", default-features = false } +sp-runtime-interface = { version = "26.0.0", default-features = false } +sp-session = { version = "30.0.0", default-features = false } +sp-staking = { version = "29.0.0", default-features = false } +sp-state-machine = { version = "0.38.0", default-features = false } sp-std = { version = "14.0.0", default-features = false } -sp-storage = { version = "19.0.0", default-features = false } -sp-timestamp = { version = "26.0.0", default-features = false } +sp-storage = { version = "20.0.0", default-features = false } +sp-timestamp = { version = "29.0.0", default-features = false } sp-tracing = { version = "16.0.0", default-features = false } -sp-transaction-pool = { version = "26.0.0", default-features = false } -sp-trie = { version = "29.0.0", default-features = false } -sp-version = { version = "29.0.0", default-features = false } +sp-transaction-pool = { version = "29.0.0", default-features = false } +sp-trie = { version = "32.0.0", default-features = false } +sp-version = { version = "32.0.0", default-features = false } sp-wasm-interface = { version = "20.0.0", default-features = false } -sp-weights = { version = "27.0.0", default-features = false } -xcm = { package = "staging-xcm", version = "7.0.0", default-features = false } -xcm-builder = { package = "staging-xcm-builder", version = "7.0.0", default-features = false } -xcm-executor = { package = "staging-xcm-executor", version = "7.0.0", default-features = false } +sp-weights = { version = "30.0.0", default-features = false } +xcm = { version = "10.0.0", package = "staging-xcm", default-features = false } +xcm-builder = { version = "10.0.0", package = "staging-xcm-builder", default-features = false } +xcm-executor = { version = "10.0.0", package = "staging-xcm-executor", default-features = false } # polkadot-sdk (client) -cumulus-client-cli = { version = "0.7.0" } -cumulus-client-collator = { version = "0.7.0" } -cumulus-client-consensus-aura = { version = "0.7.0" } -cumulus-client-consensus-common = { version = "0.7.0" } -cumulus-client-consensus-proposer = { version = "0.7.0" } -cumulus-client-consensus-relay-chain = { version = "0.7.0" } -cumulus-client-network = { version = "0.7.0" } -cumulus-client-parachain-inherent = { version = "0.1.0" } -cumulus-client-pov-recovery = { version = "0.7.0" } -cumulus-client-service = { version = "0.7.0" } -cumulus-relay-chain-inprocess-interface = { version = "0.7.0" } -cumulus-relay-chain-interface = { version = "0.7.0" } -cumulus-relay-chain-minimal-node = { version = "0.7.0" } -cumulus-relay-chain-rpc-interface = { version = "0.7.0" } +cumulus-client-cli = { version = "0.10.0" } +cumulus-client-collator = { version = "0.10.0" } +cumulus-client-consensus-aura = { version = "0.10.0" } +cumulus-client-consensus-common = { version = "0.10.0" } +cumulus-client-consensus-proposer = { version = "0.10.0" } +cumulus-client-consensus-relay-chain = { version = "0.10.0" } +cumulus-client-network = { version = "0.10.0" } +cumulus-client-parachain-inherent = { version = "0.4.0" } +cumulus-client-pov-recovery = { version = "0.10.0" } +cumulus-client-service = { version = "0.10.0" } +cumulus-relay-chain-inprocess-interface = { version = "0.10.0" } +cumulus-relay-chain-interface = { version = "0.10.0" } +cumulus-relay-chain-minimal-node = { version = "0.10.0" } +cumulus-relay-chain-rpc-interface = { version = "0.10.0" } cumulus-test-relay-validation-worker-provider = { version = "0.1.0" } -frame-benchmarking-cli = { version = "32.0.0" } -pallet-transaction-payment-rpc = { version = "30.0.0" } -sc-basic-authorship = { version = "0.34.0" } -sc-chain-spec = { version = "27.0.0" } -sc-cli = { version = "0.36.0" } -sc-client-api = { version = "28.0.0" } -sc-consensus = { version = "0.33.0" } -sc-consensus-aura = { version = "0.34.0" } -sc-consensus-grandpa = { version = "0.19.0" } -sc-consensus-manual-seal = { version = "0.35.0" } -sc-consensus-slots = { version = "0.33.0" } -sc-executor = { version = "0.32.0" } -sc-network = { version = "0.34.0" } -sc-network-common = { version = "0.33.0" } -sc-network-sync = { version = "0.33.0" } -sc-offchain = { version = "29.0.0" } -sc-rpc = { version = "29.0.0" } -sc-rpc-api = { version = "0.33.0" } -sc-rpc-server = { version = "11.0.0" } -sc-service = { version = "0.35.0" } -sc-telemetry = { version = "15.0.0" } -sc-tracing = { version = "28.0.0" } -sc-transaction-pool = { version = "28.0.0" } -sc-transaction-pool-api = { version = "28.0.0" } +frame-benchmarking-cli = { version = "35.0.1" } +pallet-transaction-payment-rpc = { version = "33.0.0" } +sc-basic-authorship = { version = "0.37.0" } +sc-chain-spec = { version = "30.0.1" } +sc-cli = { version = "0.39.0" } +sc-client-api = { version = "31.0.0" } +sc-consensus = { version = "0.36.0" } +sc-consensus-aura = { version = "0.37.0" } +sc-consensus-grandpa = { version = "0.22.0" } +sc-consensus-manual-seal = { version = "0.38.0" } +sc-consensus-slots = { version = "0.36.0" } +sc-executor = { version = "0.35.0" } +sc-network = { version = "0.37.0" } +sc-network-common = { version = "0.36.0" } +sc-network-sync = { version = "0.36.0" } +sc-offchain = { version = "32.0.0" } +sc-rpc = { version = "32.0.0" } +sc-rpc-api = { version = "0.36.0" } +sc-rpc-server = { version = "14.0.0" } +sc-service = { version = "0.38.0" } +sc-telemetry = { version = "17.0.0" } +sc-tracing = { version = "31.0.0" } +sc-transaction-pool = { version = "31.0.0" } +sc-transaction-pool-api = { version = "31.0.0" } substrate-build-script-utils = { version = "11.0.0" } -substrate-frame-rpc-system = { version = "28.0.0" } +substrate-frame-rpc-system = { version = "31.0.0" } substrate-prometheus-endpoint = { version = "0.17.0" } -substrate-wasm-builder = { version = "17.0.0" } -try-runtime-cli = { version = "0.38.0" } -polkadot-cli = { version = "7.0.0" } -polkadot-service = { version = "7.0.0" } -xcm-simulator = { version = "7.0.0" } +substrate-wasm-builder = { version = "20.0.0" } +try-runtime-cli = { version = "0.41.0" } +polkadot-cli = { version = "10.0.0" } +polkadot-service = { version = "10.0.0" } +xcm-simulator = { version = "10.0.0" } diff --git a/ecosystem-modules/stable-asset b/ecosystem-modules/stable-asset index 2b5fa8132e..db439920e4 160000 --- a/ecosystem-modules/stable-asset +++ b/ecosystem-modules/stable-asset @@ -1 +1 @@ -Subproject commit 2b5fa8132ed2285d3ea36f111e7608948f0df553 +Subproject commit db439920e46f47c835b1327087cdcf97daee980b diff --git a/evm-tests b/evm-tests index e14e170e6f..bbd02c03df 160000 --- a/evm-tests +++ b/evm-tests @@ -1 +1 @@ -Subproject commit e14e170e6f5259488ccfd0f15f73f7145f6d5a17 +Subproject commit bbd02c03df29601d800b44e369beb0d516080808 diff --git a/modules/asset-registry/src/lib.rs b/modules/asset-registry/src/lib.rs index 301a853f1a..d644aff00b 100644 --- a/modules/asset-registry/src/lib.rs +++ b/modules/asset-registry/src/lib.rs @@ -47,7 +47,7 @@ use scale_info::prelude::format; use sp_runtime::{traits::One, ArithmeticError, FixedPointNumber, FixedU128}; use sp_std::{boxed::Box, vec::Vec}; -use xcm::{v3::prelude::*, VersionedMultiLocation}; +use xcm::{v3, v4::prelude::*, VersionedLocation}; mod mock; mod tests; @@ -90,8 +90,8 @@ pub mod module { /// The given location could not be used (e.g. because it cannot be expressed in the /// desired version of XCM). BadLocation, - /// MultiLocation existed - MultiLocationExisted, + /// Location existed + LocationExisted, /// AssetId not exists AssetIdNotExists, /// AssetId exists @@ -104,13 +104,13 @@ pub mod module { /// The foreign asset registered. ForeignAssetRegistered { asset_id: ForeignAssetId, - asset_address: MultiLocation, + asset_address: Location, metadata: AssetMetadata>, }, /// The foreign asset updated. ForeignAssetUpdated { asset_id: ForeignAssetId, - asset_address: MultiLocation, + asset_address: Location, metadata: AssetMetadata>, }, /// The asset registered. @@ -139,19 +139,19 @@ pub mod module { #[pallet::getter(fn next_stable_asset_id)] pub type NextStableAssetId = StorageValue<_, StableAssetPoolId, ValueQuery>; - /// The storages for MultiLocations. + /// The storages for Locations. /// - /// ForeignAssetLocations: map ForeignAssetId => Option + /// ForeignAssetLocations: map ForeignAssetId => Option #[pallet::storage] #[pallet::getter(fn foreign_asset_locations)] - pub type ForeignAssetLocations = StorageMap<_, Twox64Concat, ForeignAssetId, MultiLocation, OptionQuery>; + pub type ForeignAssetLocations = StorageMap<_, Twox64Concat, ForeignAssetId, v3::Location, OptionQuery>; /// The storages for CurrencyIds. /// - /// LocationToCurrencyIds: map MultiLocation => Option + /// LocationToCurrencyIds: map Location => Option #[pallet::storage] #[pallet::getter(fn location_to_currency_ids)] - pub type LocationToCurrencyIds = StorageMap<_, Twox64Concat, MultiLocation, CurrencyId, OptionQuery>; + pub type LocationToCurrencyIds = StorageMap<_, Twox64Concat, v3::Location, CurrencyId, OptionQuery>; /// The storages for EvmAddress. /// @@ -201,12 +201,12 @@ pub mod module { #[pallet::weight(T::WeightInfo::register_foreign_asset())] pub fn register_foreign_asset( origin: OriginFor, - location: Box, + location: Box, metadata: Box>>, ) -> DispatchResult { T::RegisterOrigin::ensure_origin(origin)?; - let location: MultiLocation = (*location).try_into().map_err(|()| Error::::BadLocation)?; + let location: Location = (*location).try_into().map_err(|()| Error::::BadLocation)?; let foreign_asset_id = Self::do_register_foreign_asset(&location, &metadata)?; Self::deposit_event(Event::::ForeignAssetRegistered { @@ -222,12 +222,12 @@ pub mod module { pub fn update_foreign_asset( origin: OriginFor, foreign_asset_id: ForeignAssetId, - location: Box, + location: Box, metadata: Box>>, ) -> DispatchResult { T::RegisterOrigin::ensure_origin(origin)?; - let location: MultiLocation = (*location).try_into().map_err(|()| Error::::BadLocation)?; + let location: Location = (*location).try_into().map_err(|()| Error::::BadLocation)?; Self::do_update_foreign_asset(foreign_asset_id, &location, &metadata)?; Self::deposit_event(Event::::ForeignAssetUpdated { @@ -365,17 +365,18 @@ impl Pallet { } fn do_register_foreign_asset( - location: &MultiLocation, + location: &Location, metadata: &AssetMetadata>, ) -> Result { let foreign_asset_id = Self::get_next_foreign_asset_id()?; - LocationToCurrencyIds::::try_mutate(location, |maybe_currency_ids| -> DispatchResult { - ensure!(maybe_currency_ids.is_none(), Error::::MultiLocationExisted); + let v3_location = v3::Location::try_from(location.clone()).map_err(|()| Error::::BadLocation)?; + LocationToCurrencyIds::::try_mutate(v3_location, |maybe_currency_ids| -> DispatchResult { + ensure!(maybe_currency_ids.is_none(), Error::::LocationExisted); *maybe_currency_ids = Some(CurrencyId::ForeignAsset(foreign_asset_id)); ForeignAssetLocations::::try_mutate(foreign_asset_id, |maybe_location| -> DispatchResult { - ensure!(maybe_location.is_none(), Error::::MultiLocationExisted); - *maybe_location = Some(*location); + ensure!(maybe_location.is_none(), Error::::LocationExisted); + *maybe_location = Some(v3_location); AssetMetadatas::::try_mutate( AssetIds::ForeignAssetId(foreign_asset_id), @@ -394,11 +395,12 @@ impl Pallet { fn do_update_foreign_asset( foreign_asset_id: ForeignAssetId, - location: &MultiLocation, + location: &Location, metadata: &AssetMetadata>, ) -> DispatchResult { - ForeignAssetLocations::::try_mutate(foreign_asset_id, |maybe_multi_locations| -> DispatchResult { - let old_multi_locations = maybe_multi_locations.as_mut().ok_or(Error::::AssetIdNotExists)?; + let v3_location = v3::Location::try_from(location.clone()).map_err(|()| Error::::BadLocation)?; + ForeignAssetLocations::::try_mutate(foreign_asset_id, |maybe_locations| -> DispatchResult { + let old_locations = maybe_locations.as_mut().ok_or(Error::::AssetIdNotExists)?; AssetMetadatas::::try_mutate( AssetIds::ForeignAssetId(foreign_asset_id), @@ -406,16 +408,16 @@ impl Pallet { ensure!(maybe_asset_metadatas.is_some(), Error::::AssetIdNotExists); // modify location - if location != old_multi_locations { - LocationToCurrencyIds::::remove(*old_multi_locations); - LocationToCurrencyIds::::try_mutate(location, |maybe_currency_ids| -> DispatchResult { - ensure!(maybe_currency_ids.is_none(), Error::::MultiLocationExisted); + if v3_location != *old_locations { + LocationToCurrencyIds::::remove(*old_locations); + LocationToCurrencyIds::::try_mutate(v3_location, |maybe_currency_ids| -> DispatchResult { + ensure!(maybe_currency_ids.is_none(), Error::::LocationExisted); *maybe_currency_ids = Some(CurrencyId::ForeignAsset(foreign_asset_id)); Ok(()) })?; } *maybe_asset_metadatas = Some(metadata.clone()); - *old_multi_locations = *location; + *old_locations = v3_location; Ok(()) }, ) @@ -526,27 +528,25 @@ impl Pallet { pub struct AssetIdMaps(sp_std::marker::PhantomData); -impl AssetIdMapping>> for AssetIdMaps { +impl AssetIdMapping>> for AssetIdMaps { fn get_asset_metadata(asset_ids: AssetIds) -> Option>> { Pallet::::asset_metadatas(asset_ids) } - fn get_multi_location(foreign_asset_id: ForeignAssetId) -> Option { - Pallet::::foreign_asset_locations(foreign_asset_id) + fn get_location(foreign_asset_id: ForeignAssetId) -> Option { + Pallet::::foreign_asset_locations(foreign_asset_id).map(|l| l.try_into().ok())? } - fn get_currency_id(multi_location: MultiLocation) -> Option { - Pallet::::location_to_currency_ids(multi_location) + fn get_currency_id(location: Location) -> Option { + let v3_location = v3::Location::try_from(location).ok()?; + Pallet::::location_to_currency_ids(v3_location) } } -fn key_to_currency(location: MultiLocation) -> Option { - match location { - MultiLocation { - parents: 0, - interior: X1(Junction::GeneralKey { data, length }), - } => { - let key = &data[..data.len().min(length as usize)]; +fn key_to_currency(location: Location) -> Option { + match location.unpack() { + (0, [Junction::GeneralKey { data, length }]) => { + let key = &data[..data.len().min(*length as usize)]; CurrencyId::decode(&mut &*key).ok() } _ => None, @@ -559,8 +559,9 @@ impl BuyWeightRate for BuyWeightRateOfForeignAsset where BalanceOf: Into, { - fn calculate_rate(location: MultiLocation) -> Option { - if let Some(CurrencyId::ForeignAsset(foreign_asset_id)) = Pallet::::location_to_currency_ids(location) { + fn calculate_rate(location: Location) -> Option { + let v3_location = v3::Location::try_from(location).ok()?; + if let Some(CurrencyId::ForeignAsset(foreign_asset_id)) = Pallet::::location_to_currency_ids(v3_location) { if let Some(asset_metadata) = Pallet::::asset_metadatas(AssetIds::ForeignAssetId(foreign_asset_id)) { let minimum_balance = asset_metadata.minimal_balance.into(); let rate = FixedU128::saturating_from_rational(minimum_balance, T::Currency::minimum_balance().into()); @@ -578,7 +579,7 @@ impl BuyWeightRate for BuyWeightRateOfLiquidCrowdloan where BalanceOf: Into, { - fn calculate_rate(location: MultiLocation) -> Option { + fn calculate_rate(location: Location) -> Option { let currency = key_to_currency(location); match currency { Some(CurrencyId::LiquidCrowdloan(lease)) => { @@ -605,7 +606,7 @@ impl BuyWeightRate for BuyWeightRateOfStableAsset where BalanceOf: Into, { - fn calculate_rate(location: MultiLocation) -> Option { + fn calculate_rate(location: Location) -> Option { let currency = key_to_currency(location); match currency { Some(CurrencyId::StableAssetPoolToken(pool_id)) => { @@ -630,7 +631,7 @@ impl BuyWeightRate for BuyWeightRateOfErc20 where BalanceOf: Into, { - fn calculate_rate(location: MultiLocation) -> Option { + fn calculate_rate(location: Location) -> Option { let currency = key_to_currency(location); match currency { Some(CurrencyId::Erc20(address)) if !is_system_contract(&address) => { diff --git a/modules/asset-registry/src/mock.rs b/modules/asset-registry/src/mock.rs index 7a8a51644a..06e89eb909 100644 --- a/modules/asset-registry/src/mock.rs +++ b/modules/asset-registry/src/mock.rs @@ -58,7 +58,6 @@ impl pallet_balances::Config for Runtime { type RuntimeHoldReason = RuntimeHoldReason; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = (); type MaxFreezes = (); } diff --git a/modules/asset-registry/src/tests.rs b/modules/asset-registry/src/tests.rs index c1a3f3705c..e3d150a356 100644 --- a/modules/asset-registry/src/tests.rs +++ b/modules/asset-registry/src/tests.rs @@ -37,62 +37,76 @@ fn key_to_currency_work() { 0, xcm::v2::Junctions::X1(xcm::v2::Junction::GeneralKey(erc20.encode().try_into().unwrap())), ); - let v3_location_from_v2 = MultiLocation::try_from(v2_location.clone()).unwrap(); - let v3_location = MultiLocation::new( + let v3_location_from_v2 = v3::Location::try_from(v2_location.clone()).unwrap(); + let v3_location = v3::Location::new( 0, - Junctions::X1(Junction::from(BoundedVec::try_from(erc20.encode()).unwrap())), + v3::Junctions::X1(v3::Junction::from(BoundedVec::try_from(erc20.encode()).unwrap())), ); assert_eq!(v3_location_from_v2, v3_location); - assert_eq!(crate::key_to_currency(v3_location), Some(erc20)); + + let v4_location_from_v3 = Location::try_from(v3_location.clone()).unwrap(); + let v4_location = Location::new(0, Junction::from(BoundedVec::try_from(erc20.encode()).unwrap())); + assert_eq!(v4_location_from_v3, v4_location); + assert_eq!(crate::key_to_currency(v4_location), Some(erc20)); } #[test] -fn test_v2_to_v3_incompatible_multilocation() { +fn test_v2_to_v3_incompatible_location() { let v2_location = xcm::v2::MultiLocation::new( 0, xcm::v2::Junctions::X1(xcm::v2::Junction::GeneralKey(vec![0].try_into().unwrap())), ); - let v3_location = MultiLocation::new(0, X1(Junction::from(BoundedVec::try_from(vec![0]).unwrap()))); + let v3_location = v3::Location::new(0, v3::Junction::from(BoundedVec::try_from(vec![0]).unwrap())); - // Assert that V2 and V3 Multilocation both are encoded differently + // Assert that V2 and V3 Location both are encoded differently assert!(v2_location.encode() != v3_location.encode()); } #[test] -fn versioned_multi_location_convert_work() { +fn test_v3_to_v4_compatible_location() { + let v3_location = v3::Location::new(0, v3::Junction::from(BoundedVec::try_from(vec![0]).unwrap())); + + let v4_location = Location::new(0, Junction::from(BoundedVec::try_from(vec![0]).unwrap())); + + // Assert that V3 and V4 Location both are encoded differently + assert!(v3_location.encode() == v4_location.encode()); +} + +#[test] +fn versioned_location_convert_work() { ExtBuilder::default().build().execute_with(|| { // v2 - let v2_location = VersionedMultiLocation::V2(xcm::v2::MultiLocation { + let v2_location = VersionedLocation::V2(xcm::v2::MultiLocation { parents: 0, interior: xcm::v2::Junctions::X1(xcm::v2::Junction::Parachain(1000)), }); - let location: MultiLocation = v2_location.try_into().unwrap(); + let v4_location: Location = v2_location.try_into().unwrap(); assert_eq!( - location, - MultiLocation { + v4_location, + Location { parents: 0, - interior: xcm::v3::Junctions::X1(xcm::v3::Junction::Parachain(1000)) + interior: Junction::Parachain(1000).into() } ); // v3 - let v3_location = VersionedMultiLocation::V3(MultiLocation { + let v3_location = VersionedLocation::V3(v3::Location { parents: 0, interior: xcm::v3::Junctions::X1(xcm::v3::Junction::Parachain(1000)), }); - let location: MultiLocation = v3_location.try_into().unwrap(); + let v4_location: Location = v3_location.clone().try_into().unwrap(); assert_eq!( - location, - MultiLocation { + v4_location, + Location { parents: 0, - interior: xcm::v3::Junctions::X1(xcm::v3::Junction::Parachain(1000)) + interior: Junction::Parachain(1000).into() } ); - // handle all of VersionedMultiLocation - assert!(match location.into() { - VersionedMultiLocation::V2 { .. } | VersionedMultiLocation::V3 { .. } => true, + // handle all of VersionedLocation + assert!(match v4_location.into() { + VersionedLocation::V2 { .. } | VersionedLocation::V3 { .. } | VersionedLocation::V4 { .. } => true, }); }); } @@ -101,14 +115,14 @@ fn versioned_multi_location_convert_work() { fn register_foreign_asset_work() { ExtBuilder::default().build().execute_with(|| { // v2 - let v2_location = VersionedMultiLocation::V2(xcm::v2::MultiLocation { + let v2_versioned_location = VersionedLocation::V3(v3::MultiLocation { parents: 0, - interior: xcm::v2::Junctions::X1(xcm::v2::Junction::Parachain(1000)), + interior: v3::Junctions::X1(v3::Junction::Parachain(1000)), }); assert_ok!(AssetRegistry::register_foreign_asset( RuntimeOrigin::signed(CouncilAccount::get()), - Box::new(v2_location.clone()), + Box::new(v2_versioned_location.clone()), Box::new(AssetMetadata { name: b"Token Name".to_vec(), symbol: b"TN".to_vec(), @@ -117,10 +131,11 @@ fn register_foreign_asset_work() { }) )); - let location: MultiLocation = v2_location.try_into().unwrap(); + let v3_location: v3::Location = v2_versioned_location.try_into().unwrap(); + let v4_location: Location = v3_location.try_into().unwrap(); System::assert_last_event(RuntimeEvent::AssetRegistry(crate::Event::ForeignAssetRegistered { asset_id: 0, - asset_address: location.clone(), + asset_address: v4_location.clone(), metadata: AssetMetadata { name: b"Token Name".to_vec(), symbol: b"TN".to_vec(), @@ -129,7 +144,7 @@ fn register_foreign_asset_work() { }, })); - assert_eq!(ForeignAssetLocations::::get(0), Some(location.clone())); + assert_eq!(ForeignAssetLocations::::get(0), Some(v3_location.clone())); assert_eq!( AssetMetadatas::::get(AssetIds::ForeignAssetId(0)), Some(AssetMetadata { @@ -140,14 +155,14 @@ fn register_foreign_asset_work() { }) ); assert_eq!( - LocationToCurrencyIds::::get(location), + LocationToCurrencyIds::::get(v3_location), Some(CurrencyId::ForeignAsset(0)) ); // v3 - let v3_location = VersionedMultiLocation::V3(xcm::v3::MultiLocation { + let v3_versioned_location = VersionedLocation::V3(v3::Location { parents: 0, - interior: xcm::v3::Junctions::X1(xcm::v3::Junction::GeneralKey { + interior: v3::Junctions::X1(v3::Junction::GeneralKey { length: 32, data: [0u8; 32], }), @@ -155,7 +170,7 @@ fn register_foreign_asset_work() { assert_ok!(AssetRegistry::register_foreign_asset( RuntimeOrigin::signed(CouncilAccount::get()), - Box::new(v3_location.clone()), + Box::new(v3_versioned_location.clone()), Box::new(AssetMetadata { name: b"Another Token Name".to_vec(), symbol: b"ATN".to_vec(), @@ -164,10 +179,11 @@ fn register_foreign_asset_work() { }) )); - let location: MultiLocation = v3_location.try_into().unwrap(); + let v3_location: v3::Location = v3_versioned_location.try_into().unwrap(); + let v4_location: Location = v3_location.clone().try_into().unwrap(); System::assert_last_event(RuntimeEvent::AssetRegistry(crate::Event::ForeignAssetRegistered { asset_id: 1, - asset_address: location.clone(), + asset_address: v4_location.clone(), metadata: AssetMetadata { name: b"Another Token Name".to_vec(), symbol: b"ATN".to_vec(), @@ -176,7 +192,7 @@ fn register_foreign_asset_work() { }, })); - assert_eq!(ForeignAssetLocations::::get(1), Some(location.clone())); + assert_eq!(ForeignAssetLocations::::get(1), Some(v3_location.clone())); assert_eq!( AssetMetadatas::::get(AssetIds::ForeignAssetId(1)), Some(AssetMetadata { @@ -187,23 +203,68 @@ fn register_foreign_asset_work() { }) ); assert_eq!( - LocationToCurrencyIds::::get(location), + LocationToCurrencyIds::::get(v3_location), Some(CurrencyId::ForeignAsset(1)) ); + + // v4 + let v4_versioned_location = VersionedLocation::V4(Location::new( + 0, + [GeneralKey { + length: 32, + data: [1u8; 32], + }], + )); + + assert_ok!(AssetRegistry::register_foreign_asset( + RuntimeOrigin::signed(CouncilAccount::get()), + Box::new(v4_versioned_location.clone()), + Box::new(AssetMetadata { + name: b"Another Token Name2".to_vec(), + symbol: b"ATN2".to_vec(), + decimals: 12, + minimal_balance: 1, + }) + )); + + let v3_location: v3::Location = v4_versioned_location.clone().try_into().unwrap(); + let v4_location: Location = v4_versioned_location.try_into().unwrap(); + System::assert_last_event(RuntimeEvent::AssetRegistry(crate::Event::ForeignAssetRegistered { + asset_id: 2, + asset_address: v4_location.clone(), + metadata: AssetMetadata { + name: b"Another Token Name2".to_vec(), + symbol: b"ATN2".to_vec(), + decimals: 12, + minimal_balance: 1, + }, + })); + + assert_eq!(ForeignAssetLocations::::get(2), Some(v3_location.clone())); + assert_eq!( + AssetMetadatas::::get(AssetIds::ForeignAssetId(2)), + Some(AssetMetadata { + name: b"Another Token Name2".to_vec(), + symbol: b"ATN2".to_vec(), + decimals: 12, + minimal_balance: 1, + }) + ); + assert_eq!( + LocationToCurrencyIds::::get(v3_location), + Some(CurrencyId::ForeignAsset(2)) + ); }); } #[test] fn register_foreign_asset_should_not_work() { ExtBuilder::default().build().execute_with(|| { - let v3_location = VersionedMultiLocation::V3(xcm::v3::MultiLocation { - parents: 0, - interior: xcm::v3::Junctions::X1(xcm::v3::Junction::Parachain(1000)), - }); + let v4_location = VersionedLocation::V4(Location::new(0, [Parachain(1000)])); assert_ok!(AssetRegistry::register_foreign_asset( RuntimeOrigin::signed(CouncilAccount::get()), - Box::new(v3_location.clone()), + Box::new(v4_location.clone()), Box::new(AssetMetadata { name: b"Token Name".to_vec(), symbol: b"TN".to_vec(), @@ -215,7 +276,7 @@ fn register_foreign_asset_should_not_work() { assert_noop!( AssetRegistry::register_foreign_asset( RuntimeOrigin::signed(CouncilAccount::get()), - Box::new(v3_location.clone()), + Box::new(v4_location.clone()), Box::new(AssetMetadata { name: b"Token Name".to_vec(), symbol: b"TN".to_vec(), @@ -223,14 +284,14 @@ fn register_foreign_asset_should_not_work() { minimal_balance: 1, }) ), - Error::::MultiLocationExisted + Error::::LocationExisted ); NextForeignAssetId::::set(u16::MAX); assert_noop!( AssetRegistry::register_foreign_asset( RuntimeOrigin::signed(CouncilAccount::get()), - Box::new(v3_location), + Box::new(v4_location), Box::new(AssetMetadata { name: b"Token Name".to_vec(), symbol: b"TN".to_vec(), @@ -246,14 +307,11 @@ fn register_foreign_asset_should_not_work() { #[test] fn update_foreign_asset_work() { ExtBuilder::default().build().execute_with(|| { - let v2_location = VersionedMultiLocation::V2(xcm::v2::MultiLocation { - parents: 0, - interior: xcm::v2::Junctions::X1(xcm::v2::Junction::Parachain(1000)), - }); + let v4_versioned_location = VersionedLocation::V4(Location::new(0, [Parachain(1000)])); assert_ok!(AssetRegistry::register_foreign_asset( RuntimeOrigin::signed(CouncilAccount::get()), - Box::new(v2_location.clone()), + Box::new(v4_versioned_location.clone()), Box::new(AssetMetadata { name: b"Token Name".to_vec(), symbol: b"TN".to_vec(), @@ -265,7 +323,7 @@ fn update_foreign_asset_work() { assert_ok!(AssetRegistry::update_foreign_asset( RuntimeOrigin::signed(CouncilAccount::get()), 0, - Box::new(v2_location.clone()), + Box::new(v4_versioned_location.clone()), Box::new(AssetMetadata { name: b"New Token Name".to_vec(), symbol: b"NTN".to_vec(), @@ -274,10 +332,11 @@ fn update_foreign_asset_work() { }) )); - let location: MultiLocation = v2_location.try_into().unwrap(); + let v3_location: v3::Location = v4_versioned_location.clone().try_into().unwrap(); + let v4_location: Location = v4_versioned_location.try_into().unwrap(); System::assert_last_event(RuntimeEvent::AssetRegistry(crate::Event::ForeignAssetUpdated { asset_id: 0, - asset_address: location.clone(), + asset_address: v4_location.clone(), metadata: AssetMetadata { name: b"New Token Name".to_vec(), symbol: b"NTN".to_vec(), @@ -295,22 +354,19 @@ fn update_foreign_asset_work() { minimal_balance: 2, }) ); - assert_eq!(ForeignAssetLocations::::get(0), Some(location.clone())); + assert_eq!(ForeignAssetLocations::::get(0), Some(v3_location.clone())); assert_eq!( - LocationToCurrencyIds::::get(location.clone()), + LocationToCurrencyIds::::get(v3_location.clone()), Some(CurrencyId::ForeignAsset(0)) ); // modify location - let new_location = VersionedMultiLocation::V2(xcm::v2::MultiLocation { - parents: 0, - interior: xcm::v2::Junctions::X1(xcm::v2::Junction::Parachain(2000)), - }); + let new_v4_versioned_location = VersionedLocation::V4(Location::new(0, [Parachain(2000)])); assert_ok!(AssetRegistry::update_foreign_asset( RuntimeOrigin::signed(CouncilAccount::get()), 0, - Box::new(new_location.clone()), + Box::new(new_v4_versioned_location.clone()), Box::new(AssetMetadata { name: b"New Token Name".to_vec(), symbol: b"NTN".to_vec(), @@ -327,11 +383,11 @@ fn update_foreign_asset_work() { minimal_balance: 2, }) ); - let new_location: MultiLocation = new_location.try_into().unwrap(); - assert_eq!(ForeignAssetLocations::::get(0), Some(new_location.clone())); - assert_eq!(LocationToCurrencyIds::::get(location), None); + let new_v3_location: v3::Location = v3::Location::try_from(new_v4_versioned_location).unwrap(); + assert_eq!(ForeignAssetLocations::::get(0), Some(new_v3_location.clone())); + assert_eq!(LocationToCurrencyIds::::get(v3_location), None); assert_eq!( - LocationToCurrencyIds::::get(new_location), + LocationToCurrencyIds::::get(new_v3_location), Some(CurrencyId::ForeignAsset(0)) ); }); @@ -340,16 +396,13 @@ fn update_foreign_asset_work() { #[test] fn update_foreign_asset_should_not_work() { ExtBuilder::default().build().execute_with(|| { - let v2_location = VersionedMultiLocation::V2(xcm::v2::MultiLocation { - parents: 0, - interior: xcm::v2::Junctions::X1(xcm::v2::Junction::Parachain(1000)), - }); + let v4_location = VersionedLocation::V4(Location::new(0, [Parachain(1000)])); assert_noop!( AssetRegistry::update_foreign_asset( RuntimeOrigin::signed(CouncilAccount::get()), 0, - Box::new(v2_location.clone()), + Box::new(v4_location.clone()), Box::new(AssetMetadata { name: b"New Token Name".to_vec(), symbol: b"NTN".to_vec(), @@ -362,7 +415,7 @@ fn update_foreign_asset_should_not_work() { assert_ok!(AssetRegistry::register_foreign_asset( RuntimeOrigin::signed(CouncilAccount::get()), - Box::new(v2_location.clone()), + Box::new(v4_location.clone()), Box::new(AssetMetadata { name: b"Token Name".to_vec(), symbol: b"TN".to_vec(), @@ -374,7 +427,7 @@ fn update_foreign_asset_should_not_work() { assert_ok!(AssetRegistry::update_foreign_asset( RuntimeOrigin::signed(CouncilAccount::get()), 0, - Box::new(v2_location), + Box::new(v4_location), Box::new(AssetMetadata { name: b"New Token Name".to_vec(), symbol: b"NTN".to_vec(), @@ -384,13 +437,10 @@ fn update_foreign_asset_should_not_work() { )); // existed location - let new_location = VersionedMultiLocation::V2(xcm::v2::MultiLocation { - parents: 0, - interior: xcm::v2::Junctions::X1(xcm::v2::Junction::Parachain(2000)), - }); + let new_v4_location = VersionedLocation::V4(Location::new(0, [Parachain(2000)])); assert_ok!(AssetRegistry::register_foreign_asset( RuntimeOrigin::signed(CouncilAccount::get()), - Box::new(new_location.clone()), + Box::new(new_v4_location.clone()), Box::new(AssetMetadata { name: b"Token Name".to_vec(), symbol: b"TN".to_vec(), @@ -402,7 +452,7 @@ fn update_foreign_asset_should_not_work() { AssetRegistry::update_foreign_asset( RuntimeOrigin::signed(CouncilAccount::get()), 0, - Box::new(new_location), + Box::new(new_v4_location), Box::new(AssetMetadata { name: b"New Token Name".to_vec(), symbol: b"NTN".to_vec(), @@ -410,7 +460,7 @@ fn update_foreign_asset_should_not_work() { minimal_balance: 2, }) ), - Error::::MultiLocationExisted + Error::::LocationExisted ); }); } diff --git a/modules/cdp-engine/src/mock.rs b/modules/cdp-engine/src/mock.rs index c80819dc48..6656710566 100644 --- a/modules/cdp-engine/src/mock.rs +++ b/modules/cdp-engine/src/mock.rs @@ -101,7 +101,6 @@ impl pallet_balances::Config for Runtime { type RuntimeHoldReason = RuntimeHoldReason; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = (); type MaxFreezes = (); } pub type AdaptedBasicCurrency = orml_currencies::BasicCurrencyAdapter; diff --git a/modules/cdp-treasury/src/mock.rs b/modules/cdp-treasury/src/mock.rs index 0ca4799708..18a5f43195 100644 --- a/modules/cdp-treasury/src/mock.rs +++ b/modules/cdp-treasury/src/mock.rs @@ -96,7 +96,6 @@ impl pallet_balances::Config for Runtime { type RuntimeHoldReason = RuntimeHoldReason; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = (); type MaxFreezes = (); } pub type AdaptedBasicCurrency = orml_currencies::BasicCurrencyAdapter; diff --git a/modules/collator-selection/src/mock.rs b/modules/collator-selection/src/mock.rs index fd5e1d3f85..64cb4adfcb 100644 --- a/modules/collator-selection/src/mock.rs +++ b/modules/collator-selection/src/mock.rs @@ -67,7 +67,6 @@ impl pallet_balances::Config for Test { type RuntimeHoldReason = RuntimeHoldReason; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = (); type MaxFreezes = (); } diff --git a/modules/currencies/src/mock.rs b/modules/currencies/src/mock.rs index c0d4066d1d..502127504c 100644 --- a/modules/currencies/src/mock.rs +++ b/modules/currencies/src/mock.rs @@ -25,7 +25,7 @@ pub use crate as currencies; use frame_support::{ assert_ok, derive_impl, ord_parameter_types, parameter_types, - traits::{ConstU128, ConstU32, ConstU64, Nothing}, + traits::{ConstU128, ConstU32, ConstU64, Nothing, VariantCount}, PalletId, }; use frame_system::EnsureSignedBy; @@ -109,6 +109,15 @@ parameter_types! { pub const GetNativeCurrencyId: CurrencyId = NATIVE_CURRENCY_ID; } +#[derive(Encode, Decode, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, MaxEncodedLen, TypeInfo, RuntimeDebug)] +pub enum TestId { + Foo, +} + +impl VariantCount for TestId { + const VARIANT_COUNT: u32 = 1; +} + impl pallet_balances::Config for Runtime { type Balance = Balance; type DustRemoval = (); @@ -119,10 +128,9 @@ impl pallet_balances::Config for Runtime { type MaxReserves = ConstU32<50>; type ReserveIdentifier = ReserveIdentifier; type WeightInfo = (); - type RuntimeHoldReason = (); + type RuntimeHoldReason = TestId; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = ConstU32<1>; type MaxFreezes = (); } diff --git a/modules/currencies/src/tests.rs b/modules/currencies/src/tests.rs index e54e2e2244..0fbb5629a6 100644 --- a/modules/currencies/src/tests.rs +++ b/modules/currencies/src/tests.rs @@ -26,7 +26,7 @@ use frame_support::{assert_noop, assert_ok, dispatch::GetDispatchInfo, traits::W use mock::{ alice, bob, deploy_contracts, erc20_address, erc20_address_not_exist, eva, AccountId, AdaptedBasicCurrency, Balances, CouncilAccount, Currencies, DustAccount, ExtBuilder, NativeCurrency, PalletBalances, Runtime, - RuntimeEvent, RuntimeOrigin, System, Tokens, ALICE_BALANCE, CHARLIE, DAVE, DOT, EVE, EVM, FERDIE, ID_1, + RuntimeEvent, RuntimeOrigin, System, TestId, Tokens, ALICE_BALANCE, CHARLIE, DAVE, DOT, EVE, EVM, FERDIE, ID_1, NATIVE_CURRENCY_ID, X_TOKEN_ID, }; use module_support::mocks::MockAddressMapping; @@ -2188,27 +2188,27 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { 500000 ); assert_eq!( - >::balance_on_hold(NATIVE_CURRENCY_ID, &(), &alice()), + >::balance_on_hold(NATIVE_CURRENCY_ID, &TestId::Foo, &alice()), 0 ); assert_eq!( - >::can_hold(NATIVE_CURRENCY_ID, &(), &alice(), 499998), + >::can_hold(NATIVE_CURRENCY_ID, &TestId::Foo, &alice(), 499998), true, ); assert_eq!( - >::can_hold(NATIVE_CURRENCY_ID, &(), &alice(), 500001), + >::can_hold(NATIVE_CURRENCY_ID, &TestId::Foo, &alice(), 500001), false ); assert_ok!(>::hold( NATIVE_CURRENCY_ID, - &(), + &TestId::Foo, &alice(), 20000 )); assert_noop!( - >::hold(NATIVE_CURRENCY_ID, &(), &alice(), 500000), + >::hold(NATIVE_CURRENCY_ID, &TestId::Foo, &alice(), 500000), TokenError::FundsUnavailable, ); assert_eq!( @@ -2216,7 +2216,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { 480000 ); assert_eq!( - >::balance_on_hold(NATIVE_CURRENCY_ID, &(), &alice()), + >::balance_on_hold(NATIVE_CURRENCY_ID, &TestId::Foo, &alice()), 20000 ); @@ -2225,20 +2225,20 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { 200000 ); assert_eq!( - >::balance_on_hold(X_TOKEN_ID, &(), &alice()), + >::balance_on_hold(X_TOKEN_ID, &TestId::Foo, &alice()), 0 ); assert_eq!( - >::can_hold(X_TOKEN_ID, &(), &alice(), 200000), + >::can_hold(X_TOKEN_ID, &TestId::Foo, &alice(), 200000), true ); assert_eq!( - >::can_hold(X_TOKEN_ID, &(), &alice(), 200001), + >::can_hold(X_TOKEN_ID, &TestId::Foo, &alice(), 200001), false ); assert_ok!(>::hold( X_TOKEN_ID, - &(), + &TestId::Foo, &alice(), 20000 )); @@ -2249,7 +2249,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { })); assert_noop!( - >::hold(X_TOKEN_ID, &(), &alice(), 200000), + >::hold(X_TOKEN_ID, &TestId::Foo, &alice(), 200000), DispatchError::Module(ModuleError { index: 2, error: [0, 0, 0, 0], @@ -2261,7 +2261,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { 180000 ); assert_eq!( - >::balance_on_hold(X_TOKEN_ID, &(), &alice()), + >::balance_on_hold(X_TOKEN_ID, &TestId::Foo, &alice()), 20000 ); @@ -2270,15 +2270,15 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { 480000 ); assert_eq!( - >::balance_on_hold(&(), &alice()), + >::balance_on_hold(&TestId::Foo, &alice()), 20000 ); assert_eq!( - >::can_hold(&(), &alice(), 20000), + >::can_hold(&TestId::Foo, &alice(), 20000), true ); assert_ok!(>::hold( - &(), + &TestId::Foo, &alice(), 20000 )); @@ -2287,7 +2287,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { 460000 ); assert_eq!( - >::balance_on_hold(&(), &alice()), + >::balance_on_hold(&TestId::Foo, &alice()), 40000 ); @@ -2296,13 +2296,13 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { 460000 ); assert_eq!( - >::balance_on_hold(NATIVE_CURRENCY_ID, &(), &alice()), + >::balance_on_hold(NATIVE_CURRENCY_ID, &TestId::Foo, &alice()), 40000 ); assert_eq!( >::release( NATIVE_CURRENCY_ID, - &(), + &TestId::Foo, &alice(), 10000, Precision::BestEffort, @@ -2314,13 +2314,13 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { 470000 ); assert_eq!( - >::balance_on_hold(NATIVE_CURRENCY_ID, &(), &alice()), + >::balance_on_hold(NATIVE_CURRENCY_ID, &TestId::Foo, &alice()), 30000 ); assert_noop!( >::release( NATIVE_CURRENCY_ID, - &(), + &TestId::Foo, &alice(), 50000, Precision::Exact, @@ -2330,7 +2330,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { assert_eq!( >::release( NATIVE_CURRENCY_ID, - &(), + &TestId::Foo, &alice(), 50000, Precision::BestEffort, @@ -2338,12 +2338,12 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { Ok(30000) ); assert_eq!( - >::balance_on_hold(NATIVE_CURRENCY_ID, &(), &alice()), + >::balance_on_hold(NATIVE_CURRENCY_ID, &TestId::Foo, &alice()), 0 ); assert_ok!(>::hold( NATIVE_CURRENCY_ID, - &(), + &TestId::Foo, &alice(), 30000 )); @@ -2353,13 +2353,13 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { 180000 ); assert_eq!( - >::balance_on_hold(X_TOKEN_ID, &(), &alice()), + >::balance_on_hold(X_TOKEN_ID, &TestId::Foo, &alice()), 20000 ); assert_eq!( >::release( X_TOKEN_ID, - &(), + &TestId::Foo, &alice(), 10000, Precision::BestEffort, @@ -2377,11 +2377,17 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { 190000 ); assert_eq!( - >::balance_on_hold(X_TOKEN_ID, &(), &alice()), + >::balance_on_hold(X_TOKEN_ID, &TestId::Foo, &alice()), 10000 ); assert_noop!( - >::release(X_TOKEN_ID, &(), &alice(), 100000, Precision::Exact,), + >::release( + X_TOKEN_ID, + &TestId::Foo, + &alice(), + 100000, + Precision::Exact, + ), DispatchError::Module(ModuleError { index: 2, error: [0, 0, 0, 0], @@ -2391,7 +2397,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { assert_eq!( >::release( X_TOKEN_ID, - &(), + &TestId::Foo, &alice(), 100000, Precision::BestEffort, @@ -2400,7 +2406,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { ); assert_ok!(>::hold( X_TOKEN_ID, - &(), + &TestId::Foo, &alice(), 10000 )); @@ -2410,11 +2416,16 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { 470000 ); assert_eq!( - >::balance_on_hold(&(), &alice()), + >::balance_on_hold(&TestId::Foo, &alice()), 30000 ); assert_eq!( - >::release(&(), &alice(), 10000, Precision::BestEffort,), + >::release( + &TestId::Foo, + &alice(), + 10000, + Precision::BestEffort, + ), Ok(10000) ); assert_eq!( @@ -2422,7 +2433,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { 480000 ); assert_eq!( - >::balance_on_hold(&(), &alice()), + >::balance_on_hold(&TestId::Foo, &alice()), 20000 ); @@ -2431,7 +2442,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { 480000 ); assert_eq!( - >::balance_on_hold(NATIVE_CURRENCY_ID, &(), &alice()), + >::balance_on_hold(NATIVE_CURRENCY_ID, &TestId::Foo, &alice()), 20000 ); assert_eq!( @@ -2439,13 +2450,13 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { 10000 ); assert_eq!( - >::balance_on_hold(NATIVE_CURRENCY_ID, &(), &bob()), + >::balance_on_hold(NATIVE_CURRENCY_ID, &TestId::Foo, &bob()), 0 ); assert_eq!( >::transfer_on_hold( NATIVE_CURRENCY_ID, - &(), + &TestId::Foo, &alice(), &bob(), 2000, @@ -2458,7 +2469,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { assert_noop!( >::transfer_on_hold( NATIVE_CURRENCY_ID, - &(), + &TestId::Foo, &alice(), &bob(), 200000, @@ -2473,7 +2484,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { 480000 ); assert_eq!( - >::balance_on_hold(NATIVE_CURRENCY_ID, &(), &alice()), + >::balance_on_hold(NATIVE_CURRENCY_ID, &TestId::Foo, &alice()), 18000 ); assert_eq!( @@ -2481,7 +2492,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { 10000 ); assert_eq!( - >::balance_on_hold(NATIVE_CURRENCY_ID, &(), &bob()), + >::balance_on_hold(NATIVE_CURRENCY_ID, &TestId::Foo, &bob()), 2000 ); @@ -2490,7 +2501,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { 190000 ); assert_eq!( - >::balance_on_hold(X_TOKEN_ID, &(), &alice()), + >::balance_on_hold(X_TOKEN_ID, &TestId::Foo, &alice()), 10000 ); assert_eq!( @@ -2498,13 +2509,13 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { 10000 ); assert_eq!( - >::balance_on_hold(X_TOKEN_ID, &(), &bob()), + >::balance_on_hold(X_TOKEN_ID, &TestId::Foo, &bob()), 0 ); assert_eq!( >::transfer_on_hold( X_TOKEN_ID, - &(), + &TestId::Foo, &alice(), &bob(), 2000, @@ -2525,7 +2536,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { assert_noop!( >::transfer_on_hold( X_TOKEN_ID, - &(), + &TestId::Foo, &alice(), &bob(), 200000, @@ -2544,7 +2555,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { 190000 ); assert_eq!( - >::balance_on_hold(X_TOKEN_ID, &(), &alice()), + >::balance_on_hold(X_TOKEN_ID, &TestId::Foo, &alice()), 8000 ); assert_eq!( @@ -2552,7 +2563,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { 10000 ); assert_eq!( - >::balance_on_hold(X_TOKEN_ID, &(), &bob()), + >::balance_on_hold(X_TOKEN_ID, &TestId::Foo, &bob()), 2000 ); @@ -2561,17 +2572,17 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { 480000 ); assert_eq!( - >::balance_on_hold(&(), &alice()), + >::balance_on_hold(&TestId::Foo, &alice()), 18000 ); assert_eq!(>::balance(&bob()), 10000); assert_eq!( - >::balance_on_hold(&(), &bob()), + >::balance_on_hold(&TestId::Foo, &bob()), 2000 ); assert_eq!( >::transfer_on_hold( - &(), + &TestId::Foo, &alice(), &bob(), 2000, @@ -2586,12 +2597,12 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { 480000 ); assert_eq!( - >::balance_on_hold(&(), &alice()), + >::balance_on_hold(&TestId::Foo, &alice()), 16000 ); assert_eq!(>::balance(&bob()), 10000); assert_eq!( - >::balance_on_hold(&(), &bob()), + >::balance_on_hold(&TestId::Foo, &bob()), 4000 ); @@ -2603,7 +2614,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { assert_eq!( >::balance_on_hold( CurrencyId::Erc20(erc20_address()), - &(), + &TestId::Foo, &alice() ), 0 @@ -2611,7 +2622,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { assert_eq!( >::can_hold( CurrencyId::Erc20(erc20_address()), - &(), + &TestId::Foo, &alice(), 8000 ), @@ -2620,7 +2631,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { assert_eq!( >::can_hold( CurrencyId::Erc20(erc20_address()), - &(), + &TestId::Foo, &alice(), ALICE_BALANCE + 1 ), @@ -2628,7 +2639,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { ); assert_ok!(>::hold( CurrencyId::Erc20(erc20_address()), - &(), + &TestId::Foo, &alice(), 8000 )); @@ -2640,7 +2651,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { assert_eq!( >::balance_on_hold( CurrencyId::Erc20(erc20_address()), - &(), + &TestId::Foo, &alice() ), 8000 @@ -2649,7 +2660,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { assert_eq!( >::release( CurrencyId::Erc20(erc20_address()), - &(), + &TestId::Foo, &alice(), 0, Precision::BestEffort, @@ -2660,7 +2671,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { assert_noop!( >::release( CurrencyId::Erc20(erc20_address()), - &(), + &TestId::Foo, &alice(), 8001, Precision::Exact, @@ -2670,7 +2681,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { assert_eq!( >::release( CurrencyId::Erc20(erc20_address()), - &(), + &TestId::Foo, &alice(), 8001, Precision::BestEffort, @@ -2685,7 +2696,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { assert_eq!( >::balance_on_hold( CurrencyId::Erc20(erc20_address()), - &(), + &TestId::Foo, &alice() ), 0 @@ -2693,7 +2704,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { assert_ok!(>::hold( CurrencyId::Erc20(erc20_address()), - &(), + &TestId::Foo, &alice(), 8000 )); @@ -2705,7 +2716,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { assert_eq!( >::balance_on_hold( CurrencyId::Erc20(erc20_address()), - &(), + &TestId::Foo, &alice() ), 8000 @@ -2717,7 +2728,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { assert_eq!( >::balance_on_hold( CurrencyId::Erc20(erc20_address()), - &(), + &TestId::Foo, &bob() ), 0 @@ -2726,7 +2737,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { assert_noop!( >::transfer_on_hold( CurrencyId::Erc20(erc20_address()), - &(), + &TestId::Foo, &alice(), &bob(), 8001, @@ -2740,7 +2751,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { assert_eq!( >::transfer_on_hold( CurrencyId::Erc20(erc20_address()), - &(), + &TestId::Foo, &alice(), &bob(), 2000, @@ -2758,7 +2769,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { assert_eq!( >::balance_on_hold( CurrencyId::Erc20(erc20_address()), - &(), + &TestId::Foo, &alice() ), 6000 @@ -2770,7 +2781,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { assert_eq!( >::balance_on_hold( CurrencyId::Erc20(erc20_address()), - &(), + &TestId::Foo, &bob() ), 2000 @@ -2779,7 +2790,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { assert_eq!( >::transfer_on_hold( CurrencyId::Erc20(erc20_address()), - &(), + &TestId::Foo, &alice(), &bob(), 6001, @@ -2796,7 +2807,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { assert_eq!( >::balance_on_hold( CurrencyId::Erc20(erc20_address()), - &(), + &TestId::Foo, &alice() ), 0 @@ -2808,7 +2819,7 @@ fn fungible_inspect_hold_and_hold_trait_should_work() { assert_eq!( >::balance_on_hold( CurrencyId::Erc20(erc20_address()), - &(), + &TestId::Foo, &bob() ), 8000 diff --git a/modules/earning/src/lib.rs b/modules/earning/src/lib.rs index f156a04c3c..b59916b16f 100644 --- a/modules/earning/src/lib.rs +++ b/modules/earning/src/lib.rs @@ -26,7 +26,7 @@ use frame_support::{ traits::{Currency, ExistenceRequirement, LockIdentifier, LockableCurrency, OnUnbalanced, WithdrawReasons}, }; use frame_system::pallet_prelude::*; -use orml_traits::{define_parameters, parameters::ParameterStore, Happened}; +use orml_traits::{define_parameters, parameters::ParameterStore, Handler}; use primitives::{ bonding::{self, BondingController}, Balance, @@ -59,8 +59,8 @@ pub mod module { type ParameterStore: ParameterStore; - type OnBonded: Happened<(Self::AccountId, Balance)>; - type OnUnbonded: Happened<(Self::AccountId, Balance)>; + type OnBonded: Handler<(Self::AccountId, Balance)>; + type OnUnbonded: Handler<(Self::AccountId, Balance)>; type OnUnstakeFee: OnUnbalanced>; #[pallet::constant] @@ -141,7 +141,7 @@ pub mod module { let change = ::bond(&who, amount)?; if let Some(change) = change { - T::OnBonded::happened(&(who.clone(), change.change)); + T::OnBonded::handle(&(who.clone(), change.change))?; Self::deposit_event(Event::Bonded { who, amount: change.change, @@ -162,7 +162,7 @@ pub mod module { let change = ::unbond(&who, amount, unbond_at)?; if let Some(change) = change { - T::OnUnbonded::happened(&(who.clone(), change.change)); + T::OnUnbonded::handle(&(who.clone(), change.change))?; Self::deposit_event(Event::Unbonded { who, amount: change.change, @@ -194,7 +194,7 @@ pub mod module { T::OnUnstakeFee::on_unbalanced(unbalance); // remove all shares of the change amount. - T::OnUnbonded::happened(&(who.clone(), amount)); + T::OnUnbonded::handle(&(who.clone(), amount))?; Self::deposit_event(Event::InstantUnbonded { who, amount: final_amount, @@ -216,7 +216,7 @@ pub mod module { let change = ::rebond(&who, amount)?; if let Some(change) = change { - T::OnBonded::happened(&(who.clone(), change.change)); + T::OnBonded::handle(&(who.clone(), change.change))?; Self::deposit_event(Event::Rebonded { who, amount: change.change, diff --git a/modules/earning/src/mock.rs b/modules/earning/src/mock.rs index 9575373673..d39618f6ac 100644 --- a/modules/earning/src/mock.rs +++ b/modules/earning/src/mock.rs @@ -53,7 +53,6 @@ impl pallet_balances::Config for Runtime { type RuntimeHoldReason = RuntimeHoldReason; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = (); type MaxFreezes = (); } diff --git a/modules/emergency-shutdown/src/mock.rs b/modules/emergency-shutdown/src/mock.rs index 79646689d3..69486d28bd 100644 --- a/modules/emergency-shutdown/src/mock.rs +++ b/modules/emergency-shutdown/src/mock.rs @@ -91,7 +91,6 @@ impl pallet_balances::Config for Runtime { type RuntimeHoldReason = RuntimeHoldReason; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = (); type MaxFreezes = (); } pub type AdaptedBasicCurrency = orml_currencies::BasicCurrencyAdapter; diff --git a/modules/evm-accounts/src/mock.rs b/modules/evm-accounts/src/mock.rs index 39a3d3c4b0..0557095056 100644 --- a/modules/evm-accounts/src/mock.rs +++ b/modules/evm-accounts/src/mock.rs @@ -62,7 +62,6 @@ impl pallet_balances::Config for Runtime { type RuntimeHoldReason = RuntimeHoldReason; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = (); type MaxFreezes = (); } diff --git a/modules/evm-bridge/src/mock.rs b/modules/evm-bridge/src/mock.rs index 097b8416a3..566d619779 100644 --- a/modules/evm-bridge/src/mock.rs +++ b/modules/evm-bridge/src/mock.rs @@ -63,7 +63,6 @@ impl pallet_balances::Config for Runtime { type RuntimeHoldReason = RuntimeHoldReason; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = (); type MaxFreezes = (); } diff --git a/modules/evm/src/bench/mock.rs b/modules/evm/src/bench/mock.rs index 012c8ed5bc..f24dceb4bc 100644 --- a/modules/evm/src/bench/mock.rs +++ b/modules/evm/src/bench/mock.rs @@ -73,7 +73,6 @@ impl pallet_balances::Config for Runtime { type RuntimeHoldReason = RuntimeHoldReason; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = (); type MaxFreezes = (); } diff --git a/modules/evm/src/mock.rs b/modules/evm/src/mock.rs index 96538a3046..fbe9b15b4c 100644 --- a/modules/evm/src/mock.rs +++ b/modules/evm/src/mock.rs @@ -63,7 +63,6 @@ impl pallet_balances::Config for Runtime { type RuntimeHoldReason = RuntimeHoldReason; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = (); type MaxFreezes = (); } diff --git a/modules/evm/src/tests.rs b/modules/evm/src/tests.rs index c919fd5cd7..3b35d6e557 100644 --- a/modules/evm/src/tests.rs +++ b/modules/evm/src/tests.rs @@ -2561,7 +2561,7 @@ fn strict_call_works() { ), Err(DispatchErrorWithPostInfo { post_info: PostDispatchInfo { - actual_weight: Some(Weight::from_parts(1464914680, 7186)), + actual_weight: Some(Weight::from_parts(1441274680, 7186)), pays_fee: Pays::Yes }, error: Error::::NoPermission.into(), @@ -2594,7 +2594,7 @@ fn strict_call_works() { ), Err(DispatchErrorWithPostInfo { post_info: PostDispatchInfo { - actual_weight: Some(Weight::from_parts(1463958382, 7186)), + actual_weight: Some(Weight::from_parts(1440318382, 7186)), pays_fee: Pays::Yes }, error: Error::::StrictCallFailed.into(), diff --git a/modules/homa-validator-list/src/mock.rs b/modules/homa-validator-list/src/mock.rs index 802d506ba3..9f92194fd2 100644 --- a/modules/homa-validator-list/src/mock.rs +++ b/modules/homa-validator-list/src/mock.rs @@ -88,7 +88,6 @@ impl pallet_balances::Config for Runtime { type RuntimeHoldReason = RuntimeHoldReason; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = (); type MaxFreezes = (); } diff --git a/modules/homa/src/mock.rs b/modules/homa/src/mock.rs index 719f54a1d9..9ecabe4db4 100644 --- a/modules/homa/src/mock.rs +++ b/modules/homa/src/mock.rs @@ -31,7 +31,7 @@ use orml_traits::parameter_type_with_key; use primitives::{Amount, TokenSymbol}; use sp_core::H160; use sp_runtime::{traits::IdentityLookup, AccountId32, BuildStorage}; -use xcm::v3::prelude::*; +use xcm::v4::prelude::*; pub type AccountId = AccountId32; pub type BlockNumber = u64; @@ -72,7 +72,7 @@ impl HomaSubAccountXcm for MockHomaSubAccountXcm { 1_000_000 } - fn get_parachain_fee(_: MultiLocation) -> Balance { + fn get_parachain_fee(_: Location) -> Balance { 1_000_000 } } @@ -118,7 +118,6 @@ impl pallet_balances::Config for Runtime { type RuntimeHoldReason = RuntimeHoldReason; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = (); type MaxFreezes = (); } diff --git a/modules/honzon-bridge/src/mock.rs b/modules/honzon-bridge/src/mock.rs index 4bb443cdbd..dedb281f44 100644 --- a/modules/honzon-bridge/src/mock.rs +++ b/modules/honzon-bridge/src/mock.rs @@ -26,10 +26,10 @@ pub use frame_support::{ assert_ok, construct_runtime, derive_impl, ord_parameter_types, pallet_prelude::*, parameter_types, - traits::{ConstU128, ConstU32, ConstU64, Everything, Nothing}, + traits::{ConstU128, ConstU32, ConstU64, Nothing}, PalletId, }; -pub use frame_system::{EnsureRoot, EnsureSignedBy, RawOrigin}; +pub use frame_system::EnsureRoot; pub use module_evm_accounts::EvmAddressMapping; pub use module_support::{ mocks::{MockAddressMapping, TestRandomness}, @@ -93,7 +93,6 @@ impl pallet_balances::Config for Runtime { type RuntimeHoldReason = RuntimeHoldReason; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = (); type MaxFreezes = (); } diff --git a/modules/honzon/src/mock.rs b/modules/honzon/src/mock.rs index ddbf0012ca..e9de3af006 100644 --- a/modules/honzon/src/mock.rs +++ b/modules/honzon/src/mock.rs @@ -102,7 +102,6 @@ impl pallet_balances::Config for Runtime { type RuntimeHoldReason = RuntimeHoldReason; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = (); type MaxFreezes = (); } pub type AdaptedBasicCurrency = orml_currencies::BasicCurrencyAdapter; diff --git a/modules/incentives/src/lib.rs b/modules/incentives/src/lib.rs index 2cacb0f418..9bc117943b 100644 --- a/modules/incentives/src/lib.rs +++ b/modules/incentives/src/lib.rs @@ -42,7 +42,7 @@ use frame_support::{pallet_prelude::*, transactional, PalletId}; use frame_system::pallet_prelude::*; use module_support::{DEXIncentives, EmergencyShutdown, FractionalRate, IncentivesManager, PoolId, Rate}; -use orml_traits::{Happened, MultiCurrency, RewardHandler}; +use orml_traits::{Handler, MultiCurrency, RewardHandler}; use primitives::{Amount, Balance, CurrencyId}; use sp_runtime::{ traits::{AccountIdConversion, UniqueSaturatedInto, Zero}, @@ -512,7 +512,7 @@ impl DEXIncentives for Pallet { ensure!(lp_currency_id.is_dex_share_currency_id(), Error::::InvalidCurrencyId); T::Currency::transfer(lp_currency_id, who, &Self::account_id(), amount)?; - >::add_share(who, &PoolId::Dex(lp_currency_id), amount.unique_saturated_into()); + >::add_share(who, &PoolId::Dex(lp_currency_id), amount.unique_saturated_into())?; Self::deposit_event(Event::DepositDexShare { who: who.clone(), @@ -530,7 +530,7 @@ impl DEXIncentives for Pallet { ); T::Currency::transfer(lp_currency_id, &Self::account_id(), who, amount)?; - >::remove_share(who, &PoolId::Dex(lp_currency_id), amount.unique_saturated_into()); + >::remove_share(who, &PoolId::Dex(lp_currency_id), amount.unique_saturated_into())?; Self::deposit_event(Event::WithdrawDexShare { who: who.clone(), @@ -574,16 +574,16 @@ impl IncentivesManager for } pub struct OnUpdateLoan(sp_std::marker::PhantomData); -impl Happened<(T::AccountId, CurrencyId, Amount, Balance)> for OnUpdateLoan { - fn happened(info: &(T::AccountId, CurrencyId, Amount, Balance)) { +impl Handler<(T::AccountId, CurrencyId, Amount, Balance)> for OnUpdateLoan { + fn handle(info: &(T::AccountId, CurrencyId, Amount, Balance)) -> DispatchResult { let (who, currency_id, adjustment, _previous_amount) = info; let adjustment_abs = TryInto::::try_into(adjustment.saturating_abs()).unwrap_or_default(); if adjustment.is_positive() { - >::add_share(who, &PoolId::Loans(*currency_id), adjustment_abs); + >::add_share(who, &PoolId::Loans(*currency_id), adjustment_abs) } else { - >::remove_share(who, &PoolId::Loans(*currency_id), adjustment_abs); - }; + >::remove_share(who, &PoolId::Loans(*currency_id), adjustment_abs) + } } } @@ -605,15 +605,15 @@ impl RewardHandler for Pallet { } pub struct OnEarningBonded(sp_std::marker::PhantomData); -impl Happened<(T::AccountId, Balance)> for OnEarningBonded { - fn happened((who, amount): &(T::AccountId, Balance)) { - >::add_share(who, &PoolId::Earning(T::NativeCurrencyId::get()), *amount); +impl Handler<(T::AccountId, Balance)> for OnEarningBonded { + fn handle((who, amount): &(T::AccountId, Balance)) -> DispatchResult { + >::add_share(who, &PoolId::Earning(T::NativeCurrencyId::get()), *amount) } } pub struct OnEarningUnbonded(sp_std::marker::PhantomData); -impl Happened<(T::AccountId, Balance)> for OnEarningUnbonded { - fn happened((who, amount): &(T::AccountId, Balance)) { - >::remove_share(who, &PoolId::Earning(T::NativeCurrencyId::get()), *amount); +impl Handler<(T::AccountId, Balance)> for OnEarningUnbonded { + fn handle((who, amount): &(T::AccountId, Balance)) -> DispatchResult { + >::remove_share(who, &PoolId::Earning(T::NativeCurrencyId::get()), *amount) } } diff --git a/modules/incentives/src/mock.rs b/modules/incentives/src/mock.rs index 2c9243cf26..6f3b4b9cdb 100644 --- a/modules/incentives/src/mock.rs +++ b/modules/incentives/src/mock.rs @@ -26,7 +26,6 @@ use frame_support::{ traits::{ConstU64, Nothing}, }; use frame_system::EnsureSignedBy; -pub use module_support::{Price, Ratio, SwapLimit}; use orml_traits::parameter_type_with_key; use primitives::{DexShare, TokenSymbol}; use sp_runtime::{traits::IdentityLookup, AccountId32, BuildStorage}; @@ -102,11 +101,18 @@ impl EmergencyShutdown for MockEmergencyShutdown { } } +parameter_type_with_key! { + pub MinimalShares: |_pool_id: PoolId| -> Balance { + 0 + }; +} + impl orml_rewards::Config for Runtime { type Share = Balance; type Balance = Balance; type PoolId = PoolId; type CurrencyId = CurrencyId; + type MinimalShares = MinimalShares; type Handler = IncentivesModule; } diff --git a/modules/incentives/src/tests.rs b/modules/incentives/src/tests.rs index 1370d5bffe..c95fe29fbb 100644 --- a/modules/incentives/src/tests.rs +++ b/modules/incentives/src/tests.rs @@ -343,7 +343,7 @@ fn on_update_loan_works() { Default::default(), ); - OnUpdateLoan::::happened(&(ALICE::get(), BTC, 100, 0)); + assert_ok!(OnUpdateLoan::::handle(&(ALICE::get(), BTC, 100, 0))); assert_eq!( RewardsModule::pool_infos(PoolId::Loans(BTC)), PoolInfo { @@ -356,7 +356,7 @@ fn on_update_loan_works() { (100, Default::default()) ); - OnUpdateLoan::::happened(&(ALICE::get(), BTC, 100, 100)); + assert_ok!(OnUpdateLoan::::handle(&(ALICE::get(), BTC, 100, 100))); assert_eq!( RewardsModule::pool_infos(PoolId::Loans(BTC)), PoolInfo { @@ -369,7 +369,7 @@ fn on_update_loan_works() { (200, Default::default()) ); - OnUpdateLoan::::happened(&(BOB::get(), BTC, 600, 0)); + assert_ok!(OnUpdateLoan::::handle(&(BOB::get(), BTC, 600, 0))); assert_eq!( RewardsModule::pool_infos(PoolId::Loans(BTC)), PoolInfo { @@ -382,7 +382,7 @@ fn on_update_loan_works() { (600, Default::default()) ); - OnUpdateLoan::::happened(&(ALICE::get(), BTC, -50, 200)); + assert_ok!(OnUpdateLoan::::handle(&(ALICE::get(), BTC, -50, 200))); assert_eq!( RewardsModule::pool_infos(PoolId::Loans(BTC)), PoolInfo { @@ -395,7 +395,7 @@ fn on_update_loan_works() { (150, Default::default()) ); - OnUpdateLoan::::happened(&(BOB::get(), BTC, -600, 600)); + assert_ok!(OnUpdateLoan::::handle(&(BOB::get(), BTC, -600, 600))); assert_eq!( RewardsModule::pool_infos(PoolId::Loans(BTC)), PoolInfo { @@ -437,8 +437,8 @@ fn transfer_failed_when_claim_rewards() { ExtBuilder::default().build().execute_with(|| { assert_ok!(TokensModule::deposit(AUSD, &VAULT::get(), 27)); assert_ok!(TokensModule::deposit(DOT, &VAULT::get(), 30)); - RewardsModule::add_share(&ALICE::get(), &PoolId::Loans(BTC), 100); - RewardsModule::add_share(&BOB::get(), &PoolId::Loans(BTC), 200); + assert_ok!(RewardsModule::add_share(&ALICE::get(), &PoolId::Loans(BTC), 100)); + assert_ok!(RewardsModule::add_share(&BOB::get(), &PoolId::Loans(BTC), 200)); assert_ok!(RewardsModule::accumulate_reward(&PoolId::Loans(BTC), AUSD, 27)); assert_ok!(RewardsModule::accumulate_reward(&PoolId::Loans(BTC), DOT, 30)); @@ -662,11 +662,11 @@ fn claim_rewards_works() { )); // alice add shares before accumulate rewards - RewardsModule::add_share(&ALICE::get(), &PoolId::Loans(BTC), 100); - RewardsModule::add_share(&ALICE::get(), &PoolId::Dex(BTC_AUSD_LP), 100); + assert_ok!(RewardsModule::add_share(&ALICE::get(), &PoolId::Loans(BTC), 100)); + assert_ok!(RewardsModule::add_share(&ALICE::get(), &PoolId::Dex(BTC_AUSD_LP), 100)); // bob add shares before accumulate rewards - RewardsModule::add_share(&BOB::get(), &PoolId::Dex(BTC_AUSD_LP), 100); + assert_ok!(RewardsModule::add_share(&BOB::get(), &PoolId::Dex(BTC_AUSD_LP), 100)); // accumulate rewards for different pools assert_ok!(RewardsModule::accumulate_reward(&PoolId::Loans(BTC), ACA, 2000)); @@ -674,7 +674,7 @@ fn claim_rewards_works() { assert_ok!(RewardsModule::accumulate_reward(&PoolId::Dex(BTC_AUSD_LP), AUSD, 2000)); // bob add share after accumulate rewards - RewardsModule::add_share(&BOB::get(), &PoolId::Loans(BTC), 100); + assert_ok!(RewardsModule::add_share(&BOB::get(), &PoolId::Loans(BTC), 100)); // accumulate LDOT rewards for PoolId::Loans(BTC) assert_ok!(RewardsModule::accumulate_reward(&PoolId::Loans(BTC), LDOT, 500)); @@ -793,7 +793,11 @@ fn claim_rewards_works() { IncentivesModule::pending_multi_rewards(PoolId::Dex(BTC_AUSD_LP), ALICE::get()), BTreeMap::default() ); - RewardsModule::remove_share(&ALICE::get(), &PoolId::Dex(BTC_AUSD_LP), 50); + assert_ok!(RewardsModule::remove_share( + &ALICE::get(), + &PoolId::Dex(BTC_AUSD_LP), + 50 + )); assert_eq!( RewardsModule::pool_infos(PoolId::Dex(BTC_AUSD_LP)), PoolInfo { @@ -874,10 +878,10 @@ fn on_initialize_should_work() { ], )); - RewardsModule::add_share(&ALICE::get(), &PoolId::Loans(BTC), 1); - RewardsModule::add_share(&ALICE::get(), &PoolId::Dex(BTC_AUSD_LP), 1); - RewardsModule::add_share(&ALICE::get(), &PoolId::Dex(DOT_AUSD_LP), 1); - RewardsModule::add_share(&ALICE::get(), &PoolId::Earning(ACA), 1); + assert_ok!(RewardsModule::add_share(&ALICE::get(), &PoolId::Loans(BTC), 1)); + assert_ok!(RewardsModule::add_share(&ALICE::get(), &PoolId::Dex(BTC_AUSD_LP), 1)); + assert_ok!(RewardsModule::add_share(&ALICE::get(), &PoolId::Dex(DOT_AUSD_LP), 1)); + assert_ok!(RewardsModule::add_share(&ALICE::get(), &PoolId::Earning(ACA), 1)); assert_eq!(TokensModule::free_balance(ACA, &RewardsSource::get()), 10000); assert_eq!(TokensModule::free_balance(AUSD, &RewardsSource::get()), 10000); @@ -979,7 +983,7 @@ fn on_initialize_should_work() { ); // add share for PoolId::Loans(DOT) - RewardsModule::add_share(&ALICE::get(), &PoolId::Loans(DOT), 1); + assert_ok!(RewardsModule::add_share(&ALICE::get(), &PoolId::Loans(DOT), 1)); assert_eq!( RewardsModule::pool_infos(PoolId::Loans(DOT)), PoolInfo { @@ -1102,7 +1106,7 @@ fn on_initialize_should_work() { #[test] fn earning_should_work() { ExtBuilder::default().build().execute_with(|| { - OnEarningBonded::::happened(&(ALICE::get(), 80)); + assert_ok!(OnEarningBonded::::handle(&(ALICE::get(), 80))); assert_eq!( RewardsModule::pool_infos(PoolId::Earning(ACA)), PoolInfo { @@ -1115,7 +1119,7 @@ fn earning_should_work() { (80, Default::default()) ); - OnEarningUnbonded::::happened(&(ALICE::get(), 20)); + assert_ok!(OnEarningUnbonded::::handle(&(ALICE::get(), 20))); assert_eq!( RewardsModule::pool_infos(PoolId::Earning(ACA)), PoolInfo { @@ -1128,7 +1132,7 @@ fn earning_should_work() { (60, Default::default()) ); - OnEarningUnbonded::::happened(&(ALICE::get(), 60)); + assert_ok!(OnEarningUnbonded::::handle(&(ALICE::get(), 60))); assert_eq!( RewardsModule::pool_infos(PoolId::Earning(ACA)), PoolInfo { ..Default::default() } @@ -1170,7 +1174,7 @@ fn transfer_reward_and_update_rewards_storage_atomically_when_accumulate_incenti assert_eq!(TokensModule::free_balance(ACA, &VAULT::get()), 0); assert_eq!(TokensModule::free_balance(AUSD, &VAULT::get()), 0); - RewardsModule::add_share(&ALICE::get(), &PoolId::Loans(LDOT), 1); + assert_ok!(RewardsModule::add_share(&ALICE::get(), &PoolId::Loans(LDOT), 1)); assert_eq!( RewardsModule::pool_infos(PoolId::Loans(LDOT)), PoolInfo { @@ -1263,10 +1267,10 @@ fn claim_reward_deduction_currency_works() { assert_ok!(TokensModule::deposit(AUSD, &VAULT::get(), 10000)); // alice add shares before accumulate rewards - RewardsModule::add_share(&ALICE::get(), &pool_id, 100); + assert_ok!(RewardsModule::add_share(&ALICE::get(), &pool_id, 100)); // bob add shares before accumulate rewards - RewardsModule::add_share(&BOB::get(), &pool_id, 100); + assert_ok!(RewardsModule::add_share(&BOB::get(), &pool_id, 100)); // accumulate rewards assert_ok!(RewardsModule::accumulate_reward(&pool_id, ACA, 1000)); diff --git a/modules/liquid-crowdloan/Cargo.toml b/modules/liquid-crowdloan/Cargo.toml index ae4a8d862c..96a811b23f 100644 --- a/modules/liquid-crowdloan/Cargo.toml +++ b/modules/liquid-crowdloan/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "module-liquid-crowdloan" -version = "2.16.0" +version = "2.24.0" authors = ["Acala Developers"] edition = "2021" diff --git a/modules/liquid-crowdloan/src/mock.rs b/modules/liquid-crowdloan/src/mock.rs index f984e0e087..72d79941cb 100644 --- a/modules/liquid-crowdloan/src/mock.rs +++ b/modules/liquid-crowdloan/src/mock.rs @@ -87,7 +87,6 @@ impl pallet_balances::Config for Runtime { type RuntimeHoldReason = RuntimeHoldReason; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = (); type MaxFreezes = (); } diff --git a/modules/loans/src/lib.rs b/modules/loans/src/lib.rs index 764908ac5c..badb6fe9cf 100644 --- a/modules/loans/src/lib.rs +++ b/modules/loans/src/lib.rs @@ -29,7 +29,7 @@ use frame_support::{pallet_prelude::*, transactional, PalletId}; use module_support::{CDPTreasury, RiskManager}; -use orml_traits::{Happened, MultiCurrency, MultiCurrencyExtended}; +use orml_traits::{Handler, MultiCurrency, MultiCurrencyExtended}; use primitives::{Amount, Balance, CurrencyId, Position}; use sp_runtime::{ traits::{AccountIdConversion, Zero}, @@ -70,7 +70,7 @@ pub mod module { type PalletId: Get; /// Event handler which calls when update loan. - type OnUpdateLoan: Happened<(Self::AccountId, CurrencyId, Amount, Balance)>; + type OnUpdateLoan: Handler<(Self::AccountId, CurrencyId, Amount, Balance)>; } #[pallet::error] @@ -308,7 +308,7 @@ impl Pallet { // NOTE: but for KSM loans in Karura, the debit amount was used before, // and the data will been messed up, before migration or calibration, // it is forbidden to turn on incentives for pool LoansIncentive(KSM). - T::OnUpdateLoan::happened(&(who.clone(), currency_id, collateral_adjustment, p.collateral)); + T::OnUpdateLoan::handle(&(who.clone(), currency_id, collateral_adjustment, p.collateral))?; p.collateral = new_collateral; p.debit = new_debit; diff --git a/modules/loans/src/mock.rs b/modules/loans/src/mock.rs index 4bcdc81ab1..a6dd7a8e3f 100644 --- a/modules/loans/src/mock.rs +++ b/modules/loans/src/mock.rs @@ -92,7 +92,6 @@ impl pallet_balances::Config for Runtime { type RuntimeHoldReason = RuntimeHoldReason; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = (); type MaxFreezes = (); } @@ -204,8 +203,8 @@ parameter_types! { } pub struct MockOnUpdateLoan; -impl Happened<(AccountId, CurrencyId, Amount, Balance)> for MockOnUpdateLoan { - fn happened(info: &(AccountId, CurrencyId, Amount, Balance)) { +impl Handler<(AccountId, CurrencyId, Amount, Balance)> for MockOnUpdateLoan { + fn handle(info: &(AccountId, CurrencyId, Amount, Balance)) -> DispatchResult { let (who, currency_id, adjustment, previous_amount) = info; let adjustment_abs = TryInto::::try_into(adjustment.saturating_abs()).unwrap_or_default(); let new_share_amount = if adjustment.is_positive() { @@ -221,6 +220,7 @@ impl Happened<(AccountId, CurrencyId, Amount, Balance)> for MockOnUpdateLoan { *v = old_map; }); } + return Ok(()); } } diff --git a/modules/loans/src/tests.rs b/modules/loans/src/tests.rs index 180216691d..7599dcbf3d 100644 --- a/modules/loans/src/tests.rs +++ b/modules/loans/src/tests.rs @@ -27,6 +27,7 @@ use mock::{RuntimeEvent, *}; #[test] fn debits_key() { ExtBuilder::default().build().execute_with(|| { + assert_eq!(Currencies::free_balance(BTC, &LoansModule::account_id()), 0); assert_eq!(LoansModule::positions(BTC, &ALICE).debit, 0); assert_ok!(LoansModule::adjust_position(&ALICE, BTC, 200, 200)); assert_eq!(LoansModule::positions(BTC, &ALICE).debit, 200); diff --git a/modules/nft/src/benchmarking.rs b/modules/nft/src/benchmarking.rs index 35d0080a94..793a930033 100644 --- a/modules/nft/src/benchmarking.rs +++ b/modules/nft/src/benchmarking.rs @@ -189,7 +189,6 @@ mod mock { type RuntimeHoldReason = RuntimeHoldReason; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = (); type MaxFreezes = (); } impl pallet_utility::Config for Runtime { diff --git a/modules/nft/src/mock.rs b/modules/nft/src/mock.rs index f803be4c23..9117c969e0 100644 --- a/modules/nft/src/mock.rs +++ b/modules/nft/src/mock.rs @@ -59,7 +59,6 @@ impl pallet_balances::Config for Runtime { type RuntimeHoldReason = RuntimeHoldReason; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = (); type MaxFreezes = (); } impl pallet_utility::Config for Runtime { diff --git a/modules/nominees-election/src/mock.rs b/modules/nominees-election/src/mock.rs index 4f53fa3226..b1c71a8adb 100644 --- a/modules/nominees-election/src/mock.rs +++ b/modules/nominees-election/src/mock.rs @@ -84,7 +84,6 @@ impl pallet_balances::Config for Runtime { type RuntimeHoldReason = RuntimeHoldReason; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = (); type MaxFreezes = (); } diff --git a/modules/relaychain/src/lib.rs b/modules/relaychain/src/lib.rs index 7d48fa4763..334a7652ef 100644 --- a/modules/relaychain/src/lib.rs +++ b/modules/relaychain/src/lib.rs @@ -33,7 +33,7 @@ use primitives::{AccountId, Balance}; use sp_std::{boxed::Box, marker::PhantomData, prelude::*}; pub use cumulus_primitives_core::ParaId; -use xcm::{prelude::*, v3::Weight as XcmWeight}; +use xcm::v4::{prelude::*, Weight as XcmWeight}; /// The encoded index correspondes to Kusama's Runtime module configuration. /// https://github.com/paritytech/polkadot/blob/444e96ae34bcec8362f0f947a07bd912b32ca48f/runtime/kusama/src/lib.rs#L1379 @@ -143,9 +143,9 @@ where } fn xcm_pallet_reserve_transfer_assets( - dest: MultiLocation, - beneficiary: MultiLocation, - assets: MultiAssets, + dest: Location, + beneficiary: Location, + assets: Assets, fee_assets_item: u32, ) -> RCC { RCC::xcm_pallet(XcmCall::LimitedReserveTransferAssets( @@ -162,8 +162,8 @@ where } fn finalize_call_into_xcm_message(call: RCC, extra_fee: Self::Balance, weight: XcmWeight) -> Xcm<()> { - let asset = MultiAsset { - id: Concrete(MultiLocation::here()), + let asset = Asset { + id: AssetId(Location::here()), fun: Fungibility::Fungible(extra_fee), }; Xcm(vec![ @@ -180,17 +180,17 @@ where RefundSurplus, DepositAsset { assets: AllCounted(1).into(), // there is only 1 asset on relaychain - beneficiary: MultiLocation { + beneficiary: Location { parents: 0, - interior: X1(Parachain(ParachainId::get().into())), + interior: Parachain(ParachainId::get().into()).into(), }, }, ]) } fn finalize_multiple_calls_into_xcm_message(calls: Vec<(RCC, XcmWeight)>, extra_fee: Self::Balance) -> Xcm<()> { - let asset = MultiAsset { - id: Concrete(MultiLocation::here()), + let asset = Asset { + id: AssetId(Location::here()), fun: Fungibility::Fungible(extra_fee), }; @@ -216,9 +216,9 @@ where RefundSurplus, DepositAsset { assets: AllCounted(1).into(), // there is only 1 asset on relaychain - beneficiary: MultiLocation { + beneficiary: Location { parents: 0, - interior: X1(Parachain(ParachainId::get().into())), + interior: Parachain(ParachainId::get().into()).into(), }, }, ], diff --git a/modules/session-manager/src/lib.rs b/modules/session-manager/src/lib.rs index 484ecb2e1b..9485ecd37b 100644 --- a/modules/session-manager/src/lib.rs +++ b/modules/session-manager/src/lib.rs @@ -108,7 +108,6 @@ pub mod module { #[pallet::genesis_build] impl BuildGenesisConfig for GenesisConfig { fn build(&self) { - assert!(!self.session_duration.is_zero(), "SessionDuration can't be zero"); SessionDuration::::put(self.session_duration); } } diff --git a/modules/support/src/evm.rs b/modules/support/src/evm.rs index fa10e62579..e5bbc9c875 100644 --- a/modules/support/src/evm.rs +++ b/modules/support/src/evm.rs @@ -239,13 +239,13 @@ pub trait AddressMapping { } /// A mapping between AssetId and AssetMetadata. -pub trait AssetIdMapping { +pub trait AssetIdMapping { /// Returns the AssetMetadata associated with a given `AssetIds`. fn get_asset_metadata(asset_ids: AssetIds) -> Option; /// Returns the MultiLocation associated with a given ForeignAssetId. - fn get_multi_location(foreign_asset_id: ForeignAssetId) -> Option; + fn get_location(foreign_asset_id: ForeignAssetId) -> Option; /// Returns the CurrencyId associated with a given MultiLocation. - fn get_currency_id(multi_location: MultiLocation) -> Option; + fn get_currency_id(location: Location) -> Option; } /// A mapping between u32 and Erc20 address. diff --git a/modules/support/src/homa.rs b/modules/support/src/homa.rs index b0c1fc4240..676150bec5 100644 --- a/modules/support/src/homa.rs +++ b/modules/support/src/homa.rs @@ -18,7 +18,7 @@ use crate::{ExchangeRate, Rate}; use sp_runtime::DispatchResult; -use xcm::v3::prelude::*; +use xcm::v4::prelude::*; pub trait HomaSubAccountXcm { /// Cross-chain transfer staking currency to sub account on relaychain. @@ -33,7 +33,7 @@ pub trait HomaSubAccountXcm { /// The fee of cross-chain transfer is deducted from the recipient. fn get_xcm_transfer_fee() -> Balance; /// The fee of parachain - fn get_parachain_fee(location: MultiLocation) -> Balance; + fn get_parachain_fee(location: Location) -> Balance; } pub trait HomaManager { diff --git a/modules/support/src/lib.rs b/modules/support/src/lib.rs index 7828a4f476..f2d4ddb869 100644 --- a/modules/support/src/lib.rs +++ b/modules/support/src/lib.rs @@ -200,5 +200,5 @@ impl LiquidateCollateral for Tuple { } pub trait BuyWeightRate { - fn calculate_rate(location: MultiLocation) -> Option; + fn calculate_rate(location: Location) -> Option; } diff --git a/modules/support/src/relaychain.rs b/modules/support/src/relaychain.rs index 1302c9d094..8943093fde 100644 --- a/modules/support/src/relaychain.rs +++ b/modules/support/src/relaychain.rs @@ -56,13 +56,7 @@ pub enum XcmCall { /// `limited_reserve_transfer_assets(dest, beneficiary, assets, fee_asset_item, weight_limit)` /// call. #[codec(index = 8)] - LimitedReserveTransferAssets( - VersionedMultiLocation, - VersionedMultiLocation, - VersionedMultiAssets, - u32, - WeightLimit, - ), + LimitedReserveTransferAssets(VersionedLocation, VersionedLocation, VersionedAssets, u32, WeightLimit), } // Same to `Polkadot` and `Kusama` runtime `Lookup` config. @@ -124,9 +118,9 @@ pub trait CallBuilder { /// - assets: The assets to be transferred. /// - fee_assets_item: The index of assets for fees. fn xcm_pallet_reserve_transfer_assets( - dest: MultiLocation, - beneficiary: MultiLocation, - assets: MultiAssets, + dest: Location, + beneficiary: Location, + assets: Assets, fee_assets_item: u32, ) -> Self::RelayChainCall; diff --git a/modules/transaction-pause/src/mock.rs b/modules/transaction-pause/src/mock.rs index 3ca66e351a..c1044bbda3 100644 --- a/modules/transaction-pause/src/mock.rs +++ b/modules/transaction-pause/src/mock.rs @@ -59,7 +59,6 @@ impl pallet_balances::Config for Runtime { type RuntimeHoldReason = RuntimeHoldReason; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = (); type MaxFreezes = (); } diff --git a/modules/transaction-payment/src/lib.rs b/modules/transaction-payment/src/lib.rs index afc474e61f..b209d77b04 100644 --- a/modules/transaction-payment/src/lib.rs +++ b/modules/transaction-payment/src/lib.rs @@ -57,7 +57,7 @@ use sp_runtime::{ FixedPointNumber, FixedPointOperand, Percent, Perquintill, }; use sp_std::prelude::*; -use xcm::v3::prelude::MultiLocation; +use xcm::v4::prelude::Location; mod mock; mod tests; @@ -1228,10 +1228,10 @@ where pub struct BuyWeightRateOfTransactionFeePool(sp_std::marker::PhantomData<(T, C)>); impl BuyWeightRate for BuyWeightRateOfTransactionFeePool where - C: Convert>, + C: Convert>, { - fn calculate_rate(multi_location: MultiLocation) -> Option { - C::convert(multi_location).and_then(TokenExchangeRate::::get) + fn calculate_rate(location: Location) -> Option { + C::convert(location).and_then(TokenExchangeRate::::get) } } diff --git a/modules/transaction-payment/src/mock.rs b/modules/transaction-payment/src/mock.rs index aecfcff61a..46282cc849 100644 --- a/modules/transaction-payment/src/mock.rs +++ b/modules/transaction-payment/src/mock.rs @@ -119,7 +119,6 @@ impl pallet_balances::Config for Runtime { type RuntimeHoldReason = RuntimeHoldReason; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = (); type MaxFreezes = (); } diff --git a/modules/transaction-payment/src/tests.rs b/modules/transaction-payment/src/tests.rs index 2db98a6bda..e58bfec3b1 100644 --- a/modules/transaction-payment/src/tests.rs +++ b/modules/transaction-payment/src/tests.rs @@ -40,7 +40,7 @@ use sp_runtime::{ testing::TestXt, traits::{One, UniqueSaturatedInto}, }; -use xcm::v3::prelude::*; +use xcm::v4::prelude::*; const CALL: ::RuntimeCall = RuntimeCall::Currencies(module_currencies::Call::transfer { @@ -1591,24 +1591,23 @@ fn max_tip_has_same_priority() { } struct CurrencyIdConvert; -impl Convert> for CurrencyIdConvert { - fn convert(location: MultiLocation) -> Option { +impl Convert> for CurrencyIdConvert { + fn convert(location: Location) -> Option { use CurrencyId::Token; use TokenSymbol::*; - if location == MultiLocation::parent() { + if location == Location::parent() { return Some(Token(DOT)); } - match location { - MultiLocation { - interior: X1(GeneralKey { data, length }), - .. - } => { - let key = &data[..data.len().min(length as usize)]; - CurrencyId::decode(&mut &*key).ok() - } - _ => None, + match location.unpack() { + (_parents, interior) => match interior { + [GeneralKey { data, length }] => { + let key = &data[..data.len().min(*length as usize)]; + CurrencyId::decode(&mut &*key).ok() + } + _ => None, + }, } } } @@ -1617,22 +1616,19 @@ impl Convert> for CurrencyIdConvert { fn buy_weight_transaction_fee_pool_works() { builder_with_dex_and_fee_pool(true).execute_with(|| { // Location convert return None. - let location = MultiLocation::new(1, X1(Junction::Parachain(2000))); + let location = Location::new(1, Junction::Parachain(2000)); let rate = >::calculate_rate(location); assert_eq!(rate, None); // Token not in charge fee pool let currency_id = CurrencyId::Token(TokenSymbol::LDOT); - let location = MultiLocation::new( - 1, - X1(Junction::from(BoundedVec::try_from(currency_id.encode()).unwrap())), - ); + let location = Location::new(1, Junction::from(BoundedVec::try_from(currency_id.encode()).unwrap())); let rate = >::calculate_rate(location); assert_eq!(rate, None); // DOT Token is in charge fee pool. - let location = MultiLocation::parent(); + let location = Location::parent(); let rate = >::calculate_rate(location); assert_eq!(rate, Some(Ratio::saturating_from_rational(1, 10))); }); diff --git a/modules/xcm-interface/src/lib.rs b/modules/xcm-interface/src/lib.rs index 95a618d170..76021b0549 100644 --- a/modules/xcm-interface/src/lib.rs +++ b/modules/xcm-interface/src/lib.rs @@ -55,7 +55,7 @@ pub mod module { HomaBondExtra, HomaUnbond, // Parachain fee with location info - ParachainFee(Box), + ParachainFee(Box), // `XcmPallet::reserve_transfer_assets` call via proxy account ProxyReserveTransferAssets, } @@ -79,9 +79,9 @@ pub mod module { #[pallet::constant] type RelayChainUnbondingSlashingSpans: Get; - /// The convert for convert sovereign subacocunt index to the MultiLocation where the + /// The convert for convert sovereign subacocunt index to the Location where the /// staking currencies are sent to. - type SovereignSubAccountLocationConvert: Convert; + type SovereignSubAccountLocationConvert: Convert; /// The Call builder for communicating with RelayChain via XCM messaging. type RelayChainCallBuilder: CallBuilder; @@ -91,10 +91,10 @@ pub mod module { /// Self parachain location. #[pallet::constant] - type SelfLocation: Get; + type SelfLocation: Get; - /// Convert AccountId to MultiLocation to build XCM message. - type AccountIdToMultiLocation: Convert; + /// Convert AccountId to Location to build XCM message. + type AccountIdToLocation: Convert; } #[pallet::error] @@ -184,16 +184,16 @@ pub mod module { let loc = T::SelfLocation::get(); // we need to reanchor it to the parent because the call is dispatched on parent let loc = loc - .reanchored(&MultiLocation::new(1, Here), Here) + .reanchored(&Location::new(1, Here), &Here) .map_err(|_| Error::::XcmFailed)?; let proxy_call = T::RelayChainCallBuilder::proxy_call( vault, T::RelayChainCallBuilder::xcm_pallet_reserve_transfer_assets( loc, - T::AccountIdToMultiLocation::convert(recipient), + T::AccountIdToLocation::convert(recipient), // Note this message is executed in the relay chain context. - vec![(Concrete(Here.into()), amount).into()].into(), + vec![(Here, amount).into()].into(), 0, ), ); @@ -311,7 +311,7 @@ pub mod module { } /// The fee of parachain transfer. - fn get_parachain_fee(location: MultiLocation) -> Balance { + fn get_parachain_fee(location: Location) -> Balance { Self::xcm_dest_weight_and_fee(XcmInterfaceOperation::ParachainFee(Box::new(location))).1 } } diff --git a/modules/xcm-interface/src/mocks/mod.rs b/modules/xcm-interface/src/mocks/mod.rs index c5f27dd42c..16e566bc8c 100644 --- a/modules/xcm-interface/src/mocks/mod.rs +++ b/modules/xcm-interface/src/mocks/mod.rs @@ -49,8 +49,8 @@ parameter_types! { parameter_types! { pub const RelayNetwork: NetworkId = NetworkId::Polkadot; - pub UniversalLocation: InteriorMultiLocation = - X1(Parachain(2000).into()); + pub UniversalLocation: InteriorLocation = + Parachain(2000).into(); } ord_parameter_types! { @@ -61,12 +61,12 @@ parameter_types! { pub const GetStakingCurrencyId: CurrencyId = DOT; pub const ParachainAccount: AccountId = AccountId32::new([0u8; 32]); pub const ParachainId: module_relaychain::ParaId = module_relaychain::ParaId::new(2000); - pub SelfLocation: MultiLocation = MultiLocation::new(1, X1(Parachain(ParachainId::get().into()))); + pub SelfLocation: Location = Location::new(1, Parachain(ParachainId::get().into())); } -pub struct SubAccountIndexMultiLocationConvertor; -impl Convert for SubAccountIndexMultiLocationConvertor { - fn convert(_sub_account_index: u16) -> MultiLocation { +pub struct SubAccountIndexLocationConvertor; +impl Convert for SubAccountIndexLocationConvertor { + fn convert(_sub_account_index: u16) -> Location { (Parent, Parachain(2000)).into() } } @@ -77,17 +77,17 @@ impl XcmTransfer for MockXcmTransfer { _who: AccountId, _currency_id: CurrencyId, _amount: Balance, - _dest: MultiLocation, + _dest: Location, _dest_weight_limit: WeightLimit, ) -> Result, DispatchError> { unimplemented!() } - /// Transfer `MultiAsset` + /// Transfer `Asset` fn transfer_multiasset( _who: AccountId, - _asset: MultiAsset, - _dest: MultiLocation, + _asset: Asset, + _dest: Location, _dest_weight_limit: WeightLimit, ) -> Result, DispatchError> { unimplemented!() @@ -98,18 +98,18 @@ impl XcmTransfer for MockXcmTransfer { _currency_id: CurrencyId, _amount: Balance, _fee: Balance, - _dest: MultiLocation, + _dest: Location, _dest_weight_limit: WeightLimit, ) -> Result, DispatchError> { unimplemented!() } - /// Transfer `MultiAssetWithFee` + /// Transfer `AssetWithFee` fn transfer_multiasset_with_fee( _who: AccountId, - _asset: MultiAsset, - _fee: MultiAsset, - _dest: MultiLocation, + _asset: Asset, + _fee: Asset, + _dest: Location, _dest_weight_limit: WeightLimit, ) -> Result, DispatchError> { unimplemented!() @@ -119,7 +119,7 @@ impl XcmTransfer for MockXcmTransfer { _who: AccountId, _currencies: Vec<(CurrencyId, Balance)>, _fee_item: u32, - _dest: MultiLocation, + _dest: Location, _dest_weight_limit: WeightLimit, ) -> Result, DispatchError> { unimplemented!() @@ -127,22 +127,22 @@ impl XcmTransfer for MockXcmTransfer { fn transfer_multiassets( _who: AccountId, - _assets: MultiAssets, - _fee: MultiAsset, - _dest: MultiLocation, + _assets: Assets, + _fee: Asset, + _dest: Location, _dest_weight_limit: WeightLimit, ) -> Result, DispatchError> { unimplemented!() } } -pub struct AccountIdToMultiLocation; -impl Convert for AccountIdToMultiLocation { - fn convert(account: AccountId) -> MultiLocation { - X1(Junction::AccountId32 { +pub struct AccountIdToLocation; +impl Convert for AccountIdToLocation { + fn convert(account: AccountId) -> Location { + Junction::AccountId32 { network: None, id: account.into(), - }) + } .into() } } @@ -162,19 +162,14 @@ impl ExecuteXcm for MockExec { unreachable!() } - fn execute( - _origin: impl Into, - _pre: Weightless, - _hash: &mut XcmHash, - _weight_credit: Weight, - ) -> Outcome { + fn execute(_origin: impl Into, _pre: Weightless, _hash: &mut XcmHash, _weight_credit: Weight) -> Outcome { unreachable!() } - fn execute_xcm_in_credit( - _origin: impl Into, + fn prepare_and_execute( + _origin: impl Into, message: Xcm, - _hash: XcmHash, + _id: &mut XcmHash, weight_limit: Weight, _weight_credit: Weight, ) -> Outcome { @@ -186,21 +181,25 @@ impl ExecuteXcm for MockExec { }), ) => { if require_weight_at_most.all_lte(weight_limit) { - Outcome::Complete(*require_weight_at_most) + Outcome::Complete { + used: *require_weight_at_most, + } } else { - Outcome::Error(XcmError::WeightLimitReached(*require_weight_at_most)) + Outcome::Error { + error: XcmError::WeightLimitReached(*require_weight_at_most), + } } } // use 1000 to decide that it's not supported. - _ => Outcome::Incomplete( - Weight::from_parts(1000, 1000).min(weight_limit), - XcmError::Unimplemented, - ), + _ => Outcome::Incomplete { + used: Weight::from_parts(1000, 1000).min(weight_limit), + error: XcmError::Unimplemented, + }, }; o } - fn charge_fees(_location: impl Into, _fees: MultiAssets) -> XcmResult { + fn charge_fees(_location: impl Into, _fees: Assets) -> XcmResult { Err(XcmError::Unimplemented) } } @@ -238,7 +237,6 @@ macro_rules! impl_mock { type RuntimeHoldReason = RuntimeHoldReason; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = (); type MaxFreezes = (); } @@ -274,11 +272,11 @@ macro_rules! impl_mock { type StakingCurrencyId = GetStakingCurrencyId; type ParachainAccount = ParachainAccount; type RelayChainUnbondingSlashingSpans = ConstU32<28>; - type SovereignSubAccountLocationConvert = SubAccountIndexMultiLocationConvertor; + type SovereignSubAccountLocationConvert = SubAccountIndexLocationConvertor; type RelayChainCallBuilder = module_relaychain::RelayChainCallBuilder; type XcmTransfer = MockXcmTransfer; type SelfLocation = SelfLocation; - type AccountIdToMultiLocation = AccountIdToMultiLocation; + type AccountIdToLocation = AccountIdToLocation; } construct_runtime!( diff --git a/modules/xcm-interface/src/snapshots/module_xcm_interface__tests__build_transfer_to_liquid_crowdloan_module_account_kusama.snap b/modules/xcm-interface/src/snapshots/module_xcm_interface__tests__build_transfer_to_liquid_crowdloan_module_account_kusama.snap index c095ada28b..54d531223b 100644 --- a/modules/xcm-interface/src/snapshots/module_xcm_interface__tests__build_transfer_to_liquid_crowdloan_module_account_kusama.snap +++ b/modules/xcm-interface/src/snapshots/module_xcm_interface__tests__build_transfer_to_liquid_crowdloan_module_account_kusama.snap @@ -1,15 +1,16 @@ --- source: modules/xcm-interface/src/tests.rs +assertion_line: 40 expression: xcm --- Xcm( [ WithdrawAsset( - MultiAssets( + Assets( [ - MultiAsset { - id: Concrete( - MultiLocation { + Asset { + id: AssetId( + Location { parents: 0, interior: Here, }, @@ -22,9 +23,9 @@ Xcm( ), ), BuyExecution { - fees: MultiAsset { - id: Concrete( - MultiLocation { + fees: Asset { + id: AssetId( + Location { parents: 0, interior: Here, }, @@ -41,7 +42,7 @@ Xcm( ref_time: 0, proof_size: 0, }, - call: "0x1e0000010101010101010101010101010101010101010101010101010101010101010100630803000100411f03000101000202020202020202020202020202020202020202020202020202020202020202030400000000070010a5d4e80000000000", + call: "0x1e0000010101010101010101010101010101010101010101010101010101010101010100630804000100411f040001010002020202020202020202020202020202020202020202020202020202020202020404000000070010a5d4e80000000000", }, RefundSurplus, DepositAsset { @@ -50,12 +51,14 @@ Xcm( 1, ), ), - beneficiary: MultiLocation { + beneficiary: Location { parents: 0, interior: X1( - Parachain( - 2000, - ), + [ + Parachain( + 2000, + ), + ], ), }, }, diff --git a/modules/xcm-interface/src/snapshots/module_xcm_interface__tests__build_transfer_to_liquid_crowdloan_module_account_polkadot.snap b/modules/xcm-interface/src/snapshots/module_xcm_interface__tests__build_transfer_to_liquid_crowdloan_module_account_polkadot.snap index d11786a1f0..304d86354a 100644 --- a/modules/xcm-interface/src/snapshots/module_xcm_interface__tests__build_transfer_to_liquid_crowdloan_module_account_polkadot.snap +++ b/modules/xcm-interface/src/snapshots/module_xcm_interface__tests__build_transfer_to_liquid_crowdloan_module_account_polkadot.snap @@ -1,15 +1,16 @@ --- source: modules/xcm-interface/src/tests.rs +assertion_line: 31 expression: xcm --- Xcm( [ WithdrawAsset( - MultiAssets( + Assets( [ - MultiAsset { - id: Concrete( - MultiLocation { + Asset { + id: AssetId( + Location { parents: 0, interior: Here, }, @@ -22,9 +23,9 @@ Xcm( ), ), BuyExecution { - fees: MultiAsset { - id: Concrete( - MultiLocation { + fees: Asset { + id: AssetId( + Location { parents: 0, interior: Here, }, @@ -41,7 +42,7 @@ Xcm( ref_time: 0, proof_size: 0, }, - call: "0x1d0000010101010101010101010101010101010101010101010101010101010101010100630803000100411f03000101000202020202020202020202020202020202020202020202020202020202020202030400000000070010a5d4e80000000000", + call: "0x1d0000010101010101010101010101010101010101010101010101010101010101010100630804000100411f040001010002020202020202020202020202020202020202020202020202020202020202020404000000070010a5d4e80000000000", }, RefundSurplus, DepositAsset { @@ -50,12 +51,14 @@ Xcm( 1, ), ), - beneficiary: MultiLocation { + beneficiary: Location { parents: 0, interior: X1( - Parachain( - 2000, - ), + [ + Parachain( + 2000, + ), + ], ), }, }, diff --git a/modules/xnft/Cargo.toml b/modules/xnft/Cargo.toml index 4fe0d3649c..5919f999ef 100644 --- a/modules/xnft/Cargo.toml +++ b/modules/xnft/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "module-xnft" description = "XCM NFT PoC" -version = "0.1.0-dev" +version = "2.24.0" authors = ["Unique Network Developers"] edition = "2021" diff --git a/modules/xnft/src/impl_transactor.rs b/modules/xnft/src/impl_transactor.rs index 37c7283185..e0d28ee6fd 100644 --- a/modules/xnft/src/impl_transactor.rs +++ b/modules/xnft/src/impl_transactor.rs @@ -25,31 +25,19 @@ where TokenIdOf: TryFrom, ClassIdOf: TryFrom, { - fn can_check_in( - _origin: &xcm::v3::MultiLocation, - _what: &MultiAsset, - _context: &xcm::v3::XcmContext, - ) -> xcm::v3::Result { - Err(xcm::v3::Error::Unimplemented) + fn can_check_in(_origin: &Location, _what: &Asset, _context: &XcmContext) -> XcmResult { + Err(XcmError::Unimplemented) } - fn check_in(_origin: &xcm::v3::MultiLocation, _what: &MultiAsset, _context: &xcm::v3::XcmContext) {} + fn check_in(_origin: &Location, _what: &Asset, _context: &XcmContext) {} - fn can_check_out( - _dest: &xcm::v3::MultiLocation, - _what: &MultiAsset, - _context: &xcm::v3::XcmContext, - ) -> xcm::v3::Result { - Err(xcm::v3::Error::Unimplemented) + fn can_check_out(_dest: &Location, _what: &Asset, _context: &XcmContext) -> XcmResult { + Err(XcmError::Unimplemented) } - fn check_out(_dest: &xcm::v3::MultiLocation, _what: &MultiAsset, _context: &xcm::v3::XcmContext) {} + fn check_out(_dest: &Location, _what: &Asset, _context: &XcmContext) {} - fn deposit_asset( - what: &MultiAsset, - who: &xcm::v3::MultiLocation, - context: Option<&xcm::v3::XcmContext>, - ) -> XcmResult { + fn deposit_asset(what: &Asset, who: &Location, context: Option<&XcmContext>) -> XcmResult { log::trace!( target: LOG_TARGET, "deposit_asset what: {:?}, who: {:?}, context: {:?}", @@ -73,10 +61,10 @@ where } fn withdraw_asset( - what: &MultiAsset, - who: &xcm::v3::MultiLocation, - maybe_context: Option<&xcm::v3::XcmContext>, - ) -> Result { + what: &Asset, + who: &Location, + maybe_context: Option<&XcmContext>, + ) -> Result { log::trace!( target: LOG_TARGET, "withdraw_asset what: {:?}, who: {:?}, maybe_context: {:?}", @@ -102,11 +90,11 @@ where } fn internal_transfer_asset( - asset: &MultiAsset, - from: &xcm::v3::MultiLocation, - to: &xcm::v3::MultiLocation, - context: &xcm::v3::XcmContext, - ) -> Result { + asset: &Asset, + from: &Location, + to: &Location, + context: &XcmContext, + ) -> Result { log::trace!( target: LOG_TARGET, "internal_transfer_asset: {:?}, from: {:?}, to: {:?}, context: {:?}", diff --git a/modules/xnft/src/lib.rs b/modules/xnft/src/lib.rs index c8a2105177..760a93929e 100644 --- a/modules/xnft/src/lib.rs +++ b/modules/xnft/src/lib.rs @@ -26,13 +26,17 @@ use module_nft::{ClassIdOf, TokenIdOf}; use sp_runtime::{traits::AccountIdConversion, DispatchResult}; use sp_std::boxed::Box; use xcm::{ - v3::{ - AssetId, AssetInstance, Error as XcmError, Fungibility, InteriorMultiLocation, Junction::*, MultiAsset, - Result as XcmResult, + v3, + v4::{ + Asset, AssetId, AssetInstance, Error as XcmError, Fungibility, InteriorLocation, Junction::*, Location, + Result as XcmResult, XcmContext, }, VersionedAssetId, }; -use xcm_executor::traits::{ConvertLocation, Error as XcmExecutorError, TransactAsset}; +use xcm_executor::{ + traits::{ConvertLocation, Error as XcmExecutorError, TransactAsset}, + AssetsInHolding, +}; pub mod impl_transactor; pub mod xcm_helpers; @@ -60,7 +64,7 @@ pub mod pallet { type SelfParaId: Get; - type NtfPalletLocation: Get; + type NtfPalletLocation: Get; type RegisterOrigin: EnsureOrigin; } @@ -86,35 +90,21 @@ pub mod pallet { #[pallet::storage] #[pallet::getter(fn foreign_asset_to_class)] - pub type ForeignAssetToClass = StorageMap<_, Twox64Concat, xcm::v3::AssetId, ClassIdOf, OptionQuery>; + pub type ForeignAssetToClass = StorageMap<_, Twox64Concat, v3::AssetId, ClassIdOf, OptionQuery>; #[pallet::storage] #[pallet::getter(fn class_to_foreign_asset)] - pub type ClassToForeignAsset = StorageMap<_, Twox64Concat, ClassIdOf, xcm::v3::AssetId, OptionQuery>; + pub type ClassToForeignAsset = StorageMap<_, Twox64Concat, ClassIdOf, v3::AssetId, OptionQuery>; #[pallet::storage] #[pallet::getter(fn asset_instance_to_item)] - pub type AssetInstanceToItem = StorageDoubleMap< - _, - Twox64Concat, - ClassIdOf, - Blake2_128Concat, - xcm::v3::AssetInstance, - TokenIdOf, - OptionQuery, - >; + pub type AssetInstanceToItem = + StorageDoubleMap<_, Twox64Concat, ClassIdOf, Blake2_128Concat, v3::AssetInstance, TokenIdOf, OptionQuery>; #[pallet::storage] #[pallet::getter(fn item_to_asset_instance)] - pub type ItemToAssetInstance = StorageDoubleMap< - _, - Twox64Concat, - ClassIdOf, - Blake2_128Concat, - TokenIdOf, - xcm::v3::AssetInstance, - OptionQuery, - >; + pub type ItemToAssetInstance = + StorageDoubleMap<_, Twox64Concat, ClassIdOf, Blake2_128Concat, TokenIdOf, v3::AssetInstance, OptionQuery>; #[pallet::pallet] pub struct Pallet(_); @@ -129,7 +119,7 @@ pub mod pallet { pub fn register_asset(origin: OriginFor, versioned_foreign_asset: Box) -> DispatchResult { T::RegisterOrigin::ensure_origin(origin)?; - let foreign_asset: AssetId = versioned_foreign_asset + let foreign_asset: v3::AssetId = versioned_foreign_asset .as_ref() .clone() .try_into() diff --git a/modules/xnft/src/xcm_helpers.rs b/modules/xnft/src/xcm_helpers.rs index 9d20412be1..1b47fdb0ec 100644 --- a/modules/xnft/src/xcm_helpers.rs +++ b/modules/xnft/src/xcm_helpers.rs @@ -20,7 +20,6 @@ use crate::*; use module_nft::BalanceOf; use primitives::nft::Attributes; use sp_std::vec::Vec; -use xcm::v3::AssetId::Concrete; use xcm_executor::traits::Error as MatchError; pub enum ClassLocality { @@ -34,16 +33,15 @@ where ClassIdOf: TryFrom, { pub fn asset_to_collection(asset: &AssetId) -> Result, MatchError> { - Self::foreign_asset_to_class(asset) + let v3_asset = v3::AssetId::try_from(asset.clone()).map_err(|_| MatchError::AssetIdConversionFailed)?; + Self::foreign_asset_to_class(v3_asset) .map(ClassLocality::Foreign) .or_else(|| Self::local_asset_to_class(asset).map(ClassLocality::Local)) .ok_or(MatchError::AssetIdConversionFailed) } fn local_asset_to_class(asset: &AssetId) -> Option> { - let Concrete(asset_location) = asset else { - return None; - }; + let AssetId(asset_location) = asset; let prefix = if asset_location.parents == 0 { T::NtfPalletLocation::get() @@ -65,7 +63,9 @@ where } pub fn deposit_foreign_asset(to: &T::AccountId, asset: ClassIdOf, asset_instance: &AssetInstance) -> XcmResult { - match Self::asset_instance_to_item(asset, asset_instance) { + let v3_asset_instance = + v3::AssetInstance::try_from(*asset_instance).map_err(|_| MatchError::InstanceConversionFailed)?; + match Self::asset_instance_to_item(asset, v3_asset_instance) { Some(token_id) => >::do_transfer(&Self::account_id(), to, (asset, token_id)) .map_err(|_| XcmError::FailedToTransactAsset("non-fungible foreign item deposit failed")), None => { @@ -80,8 +80,8 @@ where ) .map_err(|_| XcmError::FailedToTransactAsset("non-fungible new foreign item deposit failed"))?; - >::insert(asset, asset_instance, token_id); - >::insert(asset, token_id, asset_instance); + >::insert(asset, v3_asset_instance, token_id); + >::insert(asset, token_id, v3_asset_instance); Ok(()) } @@ -98,9 +98,10 @@ where class_locality: ClassLocality, asset_instance: &AssetInstance, ) -> Option<(ClassIdOf, TokenIdOf)> { + let v3_asset_instance = v3::AssetInstance::try_from(*asset_instance).ok()?; match class_locality { ClassLocality::Foreign(class_id) => { - Self::asset_instance_to_item(class_id, asset_instance).map(|token_id| (class_id, token_id)) + Self::asset_instance_to_item(class_id, v3_asset_instance).map(|token_id| (class_id, token_id)) } ClassLocality::Local(class_id) => Self::convert_asset_instance(asset_instance) .map(|token_id| (class_id, token_id)) diff --git a/node/cli/src/command.rs b/node/cli/src/command.rs index 2829657b66..3f8e39bcd5 100644 --- a/node/cli/src/command.rs +++ b/node/cli/src/command.rs @@ -23,6 +23,7 @@ use std::net::SocketAddr; use crate::cli::{Cli, RelayChainCli, Subcommand}; use acala_service::{chain_spec, new_partial, Block, IdentifyVariant}; +use cumulus_client_service::storage_proof_size::HostFunctions as ReclaimHostFunctions; use cumulus_primitives_core::ParaId; use frame_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE}; use log::info; @@ -231,7 +232,7 @@ pub fn run() -> sc_cli::Result<()> { .into()); } - cmd.run::(config) + cmd.run::, ReclaimHostFunctions>(config) } BenchmarkCmd::Block(cmd) => { let partials = new_partial(&config, true, false)?; diff --git a/node/service/src/fake_runtime_api.rs b/node/service/src/fake_runtime_api.rs index cabe0fb3f6..f518a323b7 100644 --- a/node/service/src/fake_runtime_api.rs +++ b/node/service/src/fake_runtime_api.rs @@ -41,7 +41,7 @@ sp_api::impl_runtime_apis! { unimplemented!() } - fn initialize_block(_: &::Header) { + fn initialize_block(_: &::Header) -> sp_runtime::ExtrinsicInclusionMode { unimplemented!() } } diff --git a/node/service/src/lib.rs b/node/service/src/lib.rs index fbd7f5a0d2..26e9aede8f 100644 --- a/node/service/src/lib.rs +++ b/node/service/src/lib.rs @@ -65,11 +65,15 @@ mod fake_runtime_api; pub mod instant_finalize; #[cfg(not(feature = "runtime-benchmarks"))] -type HostFunctions = sp_io::SubstrateHostFunctions; +type HostFunctions = ( + sp_io::SubstrateHostFunctions, + cumulus_client_service::storage_proof_size::HostFunctions, +); #[cfg(feature = "runtime-benchmarks")] type HostFunctions = ( sp_io::SubstrateHostFunctions, + cumulus_client_service::storage_proof_size::HostFunctions, frame_benchmarking::benchmarking::HostFunctions, ); @@ -159,10 +163,11 @@ pub fn new_partial( .build(); let (client, backend, keystore_container, task_manager) = - sc_service::new_full_parts::( + sc_service::new_full_parts_record_import::( config, telemetry.as_ref().map(|(_, telemetry)| telemetry.handle()), executor, + true, )?; let client = Arc::new(client); diff --git a/orml b/orml index c7910d39cd..9af1fa501d 160000 --- a/orml +++ b/orml @@ -1 +1 @@ -Subproject commit c7910d39cd3b5f04d24f9422b21bcdc7f9276354 +Subproject commit 9af1fa501d2656b4d0ddf47023c40d437b276da1 diff --git a/primitives/src/testing.rs b/primitives/src/testing.rs index 2bac39803d..d35191fb26 100644 --- a/primitives/src/testing.rs +++ b/primitives/src/testing.rs @@ -69,6 +69,13 @@ macro_rules! mock_handler { Self::push(val.clone()); } } + + impl $crate::testing::orml_traits::Handler<$t> for $name { + fn handle(val: &$t) -> DispatchResult { + Self::push(val.clone()); + Ok(()) + } + } } $crate::mock_handler!( $( $rest )* ); diff --git a/runtime/acala/Cargo.toml b/runtime/acala/Cargo.toml index 9fd5b8caf5..d62b97f865 100644 --- a/runtime/acala/Cargo.toml +++ b/runtime/acala/Cargo.toml @@ -294,6 +294,7 @@ runtime-benchmarks = [ "xcm-executor/runtime-benchmarks", "orml-authority/runtime-benchmarks", + "orml-oracle/runtime-benchmarks", "orml-parameters/runtime-benchmarks", "orml-tokens/runtime-benchmarks", "orml-vesting/runtime-benchmarks", diff --git a/runtime/acala/src/lib.rs b/runtime/acala/src/lib.rs index 81ba475c3b..3cf8968bcc 100644 --- a/runtime/acala/src/lib.rs +++ b/runtime/acala/src/lib.rs @@ -114,7 +114,7 @@ use runtime_common::{ RuntimeBlockLength, RuntimeBlockWeights, TechnicalCommitteeInstance, TechnicalCommitteeMembershipInstance, TimeStampedPrice, TipPerWeightStep, ACA, AUSD, DOT, LCDOT, LDOT, TAP, }; -use xcm::v3::prelude::*; +use xcm::v4::prelude::*; mod authority; mod benchmarking; @@ -229,7 +229,8 @@ impl Contains for BaseCallFilter { | pallet_xcm::Call::reserve_transfer_assets { .. } | pallet_xcm::Call::limited_reserve_transfer_assets { .. } | pallet_xcm::Call::limited_teleport_assets { .. } - | pallet_xcm::Call::transfer_assets { .. } => { + | pallet_xcm::Call::transfer_assets { .. } + | pallet_xcm::Call::claim_assets { .. } => { return false; } pallet_xcm::Call::force_xcm_version { .. } @@ -277,6 +278,11 @@ impl frame_system::Config for Runtime { type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode; type MaxConsumers = ConstU32<16>; type RuntimeTask = (); + type SingleBlockMigrations = (); + type MultiBlockMigrator = (); + type PreInherents = (); + type PostInherents = (); + type PostTransactions = (); } impl pallet_aura::Config for Runtime { @@ -371,7 +377,6 @@ impl pallet_balances::Config for Runtime { type RuntimeHoldReason = RuntimeHoldReason; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = MaxReserves; type MaxFreezes = (); } @@ -564,7 +569,7 @@ impl SortedMembers for GeneralCouncilProvider { } fn sorted_members() -> Vec { - GeneralCouncil::members() + pallet_collective::Members::::get() // GeneralCouncil::members() } #[cfg(feature = "runtime-benchmarks")] @@ -740,6 +745,15 @@ parameter_types! { pub const MaxFeedValues: u32 = 10; // max 10 values allowd to feed in one call. } +#[cfg(feature = "runtime-benchmarks")] +pub struct BenchmarkHelper; +#[cfg(feature = "runtime-benchmarks")] +impl orml_oracle::BenchmarkHelper for BenchmarkHelper { + fn get_currency_id_value_pairs() -> sp_runtime::BoundedVec<(CurrencyId, Price), MaxFeedValues> { + sp_runtime::BoundedVec::default() + } +} + type AcalaDataProvider = orml_oracle::Instance1; impl orml_oracle::Config for Runtime { type RuntimeEvent = RuntimeEvent; @@ -753,6 +767,8 @@ impl orml_oracle::Config for Runtime { type MaxHasDispatchedSize = ConstU32<20>; type WeightInfo = (); type MaxFeedValues = MaxFeedValues; + #[cfg(feature = "runtime-benchmarks")] + type BenchmarkHelper = BenchmarkHelper; } create_median_value_data_provider!( @@ -1285,11 +1301,26 @@ impl module_asset_registry::Config for Runtime { type WeightInfo = weights::module_asset_registry::WeightInfo; } +parameter_type_with_key! { + pub MinimalShares: |pool_id: PoolId| -> Balance { + match pool_id { + PoolId::Loans(currency_id) | PoolId::Dex(currency_id) | PoolId::Earning(currency_id) => { + if *currency_id == GetNativeCurrencyId::get() { + NativeTokenExistentialDeposit::get() + } else { + ExistentialDeposits::get(currency_id) + } + } + } + }; +} + impl orml_rewards::Config for Runtime { type Share = Balance; type Balance = Balance; type PoolId = PoolId; type CurrencyId = CurrencyId; + type MinimalShares = MinimalShares; type Handler = Incentives; } @@ -1557,20 +1588,20 @@ impl module_homa::Config for Runtime { type WeightInfo = weights::module_homa::WeightInfo; } -pub fn create_x2_parachain_multilocation(index: u16) -> MultiLocation { - MultiLocation::new( +pub fn create_x2_parachain_location(index: u16) -> Location { + Location::new( 1, - X1(AccountId32 { + AccountId32 { network: None, id: Utility::derivative_account_id(ParachainInfo::get().into_account_truncating(), index).into(), - }), + }, ) } -pub struct SubAccountIndexMultiLocationConvertor; -impl Convert for SubAccountIndexMultiLocationConvertor { - fn convert(sub_account_index: u16) -> MultiLocation { - create_x2_parachain_multilocation(sub_account_index) +pub struct SubAccountIndexLocationConvertor; +impl Convert for SubAccountIndexLocationConvertor { + fn convert(sub_account_index: u16) -> Location { + create_x2_parachain_location(sub_account_index) } } @@ -1584,11 +1615,11 @@ impl module_xcm_interface::Config for Runtime { type StakingCurrencyId = GetStakingCurrencyId; type ParachainAccount = ParachainAccount; type RelayChainUnbondingSlashingSpans = ConstU32<5>; - type SovereignSubAccountLocationConvert = SubAccountIndexMultiLocationConvertor; + type SovereignSubAccountLocationConvert = SubAccountIndexLocationConvertor; type RelayChainCallBuilder = RelayChainCallBuilder; type XcmTransfer = XTokens; type SelfLocation = xcm_config::SelfLocation; - type AccountIdToMultiLocation = runtime_common::xcm_config::AccountIdToMultiLocation; + type AccountIdToLocation = runtime_common::xcm_config::AccountIdToLocation; } impl orml_unknown_tokens::Config for Runtime { @@ -1963,7 +1994,7 @@ sp_api::impl_runtime_apis! { Executive::execute_block(block) } - fn initialize_block(header: &::Header) { + fn initialize_block(header: &::Header) -> sp_runtime::ExtrinsicInclusionMode { Executive::initialize_block(header) } } diff --git a/runtime/acala/src/weights/module_aggregated_dex.rs b/runtime/acala/src/weights/module_aggregated_dex.rs index 56ef8f6aa3..00f5cfac44 100644 --- a/runtime/acala/src/weights/module_aggregated_dex.rs +++ b/runtime/acala/src/weights/module_aggregated_dex.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_aggregated_dex //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-21-58`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-41-141`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("acala-dev"), DB CACHE: 1024 // Executed Command: @@ -60,10 +60,10 @@ impl module_aggregated_dex::WeightInfo for WeightInfo module_aggregated_dex::WeightInfo for WeightInfo Weight { // Proof Size summary in bytes: // Measured: `1842 + u * (112 ±0)` - // Estimated: `6234 + u * (643 ±19)` - // Minimum execution time: 95_662 nanoseconds. - Weight::from_parts(66_734_925, 6234) - // Standard Error: 69_833 - .saturating_add(Weight::from_parts(16_142_227, 0).saturating_mul(u.into())) + // Estimated: `6234 + u * (643 ±18)` + // Minimum execution time: 93_849 nanoseconds. + Weight::from_parts(65_961_366, 6234) + // Standard Error: 152_574 + .saturating_add(Weight::from_parts(17_376_660, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes(2)) @@ -100,10 +100,10 @@ impl module_aggregated_dex::WeightInfo for WeightInfo module_asset_registry::WeightInfo for WeightInfo module_asset_registry::WeightInfo for WeightInfo module_asset_registry::WeightInfo for WeightInfo module_asset_registry::WeightInfo for WeightInfo module_asset_registry::WeightInfo for WeightInfo Weight { // Proof Size summary in bytes: - // Measured: `6845` - // Estimated: `20210` - // Minimum execution time: 196_952 nanoseconds. - Weight::from_parts(200_056_000, 20210) + // Measured: `6710` + // Estimated: `20075` + // Minimum execution time: 203_295 nanoseconds. + Weight::from_parts(206_215_000, 20075) .saturating_add(T::DbWeight::get().reads(11)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -128,8 +128,8 @@ impl module_asset_registry::WeightInfo for WeightInfo module_asset_registry::WeightInfo for WeightInfo module_asset_registry::WeightInfo for WeightInfo module_auction_manager::WeightInfo for WeightInfo< // Proof Size summary in bytes: // Measured: `2863` // Estimated: `8803` - // Minimum execution time: 86_119 nanoseconds. - Weight::from_parts(88_770_000, 8803) + // Minimum execution time: 84_274 nanoseconds. + Weight::from_parts(87_498_000, 8803) .saturating_add(T::DbWeight::get().reads(14)) .saturating_add(T::DbWeight::get().writes(8)) } diff --git a/runtime/acala/src/weights/module_cdp_engine.rs b/runtime/acala/src/weights/module_cdp_engine.rs index f510245020..0a7b8eab48 100644 --- a/runtime/acala/src/weights/module_cdp_engine.rs +++ b/runtime/acala/src/weights/module_cdp_engine.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_cdp_engine //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-21-58`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-41-141`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("acala-dev"), DB CACHE: 1024 // Executed Command: @@ -57,6 +57,8 @@ impl module_cdp_engine::WeightInfo for WeightInfo { // Proof: `EmergencyShutdown::IsShutdown` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) // Storage: `CdpEngine::CollateralParams` (r:5 w:0) // Proof: `CdpEngine::CollateralParams` (`max_values`: None, `max_size`: Some(135), added: 2610, mode: `MaxEncodedLen`) + // Storage: `System::InherentsApplied` (r:0 w:1) + // Proof: `System::InherentsApplied` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) // Storage: `System::ParentHash` (r:0 w:1) // Proof: `System::ParentHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) // Storage: `System::Digest` (r:0 w:1) @@ -76,13 +78,13 @@ impl module_cdp_engine::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1018 + c * (91 ±0)` // Estimated: `3600 + c * (2610 ±0)` - // Minimum execution time: 19_728 nanoseconds. - Weight::from_parts(21_090_076, 3600) - // Standard Error: 29_834 - .saturating_add(Weight::from_parts(6_110_151, 0).saturating_mul(c.into())) + // Minimum execution time: 20_377 nanoseconds. + Weight::from_parts(21_949_116, 3600) + // Standard Error: 31_294 + .saturating_add(Weight::from_parts(6_303_284, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) - .saturating_add(T::DbWeight::get().writes(9)) + .saturating_add(T::DbWeight::get().writes(10)) .saturating_add(Weight::from_parts(0, 2610).saturating_mul(c.into())) } // Storage: `CdpEngine::CollateralParams` (r:1 w:1) @@ -91,8 +93,8 @@ impl module_cdp_engine::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1205` // Estimated: `3600` - // Minimum execution time: 23_896 nanoseconds. - Weight::from_parts(24_471_000, 3600) + // Minimum execution time: 22_576 nanoseconds. + Weight::from_parts(22_982_000, 3600) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -151,10 +153,10 @@ impl module_cdp_engine::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `3618` // Estimated: `9558` - // Minimum execution time: 174_537 nanoseconds. - Weight::from_parts(178_325_052, 9558) - // Standard Error: 15_925 - .saturating_add(Weight::from_parts(9_352_288, 0).saturating_mul(b.into())) + // Minimum execution time: 174_886 nanoseconds. + Weight::from_parts(178_905_636, 9558) + // Standard Error: 29_052 + .saturating_add(Weight::from_parts(9_527_834, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(29)) .saturating_add(T::DbWeight::get().writes(15)) .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(b.into()))) @@ -207,10 +209,10 @@ impl module_cdp_engine::WeightInfo for WeightInfo { // Proof: `AggregatedDex::AggregatedSwapPaths` (`max_values`: None, `max_size`: None, mode: `Measured`) fn liquidate_by_dex() -> Weight { // Proof Size summary in bytes: - // Measured: `4496` + // Measured: `4458` // Estimated: `16722` - // Minimum execution time: 266_586 nanoseconds. - Weight::from_parts(271_780_000, 16722) + // Minimum execution time: 261_522 nanoseconds. + Weight::from_parts(270_982_000, 16722) .saturating_add(T::DbWeight::get().reads(37)) .saturating_add(T::DbWeight::get().writes(16)) } @@ -240,8 +242,8 @@ impl module_cdp_engine::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2805` // Estimated: `6270` - // Minimum execution time: 98_484 nanoseconds. - Weight::from_parts(100_584_000, 6270) + // Minimum execution time: 96_803 nanoseconds. + Weight::from_parts(99_715_000, 6270) .saturating_add(T::DbWeight::get().reads(14)) .saturating_add(T::DbWeight::get().writes(8)) } @@ -251,8 +253,8 @@ impl module_cdp_engine::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1205` // Estimated: `1686` - // Minimum execution time: 14_724 nanoseconds. - Weight::from_parts(15_146_000, 1686) + // Minimum execution time: 14_709 nanoseconds. + Weight::from_parts(15_047_000, 1686) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -262,8 +264,8 @@ impl module_cdp_engine::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1250` // Estimated: `1686` - // Minimum execution time: 15_371 nanoseconds. - Weight::from_parts(15_734_000, 1686) + // Minimum execution time: 15_349 nanoseconds. + Weight::from_parts(15_865_000, 1686) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/acala/src/weights/module_cdp_treasury.rs b/runtime/acala/src/weights/module_cdp_treasury.rs index 096e350149..ab7861ea3d 100644 --- a/runtime/acala/src/weights/module_cdp_treasury.rs +++ b/runtime/acala/src/weights/module_cdp_treasury.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_cdp_treasury //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-21-58`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-41-141`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("acala-dev"), DB CACHE: 1024 // Executed Command: @@ -70,10 +70,10 @@ impl module_cdp_treasury::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `2043` // Estimated: `3612` - // Minimum execution time: 40_380 nanoseconds. - Weight::from_parts(38_579_025, 3612) - // Standard Error: 17_264 - .saturating_add(Weight::from_parts(9_288_337, 0).saturating_mul(b.into())) + // Minimum execution time: 40_200 nanoseconds. + Weight::from_parts(38_000_419, 3612) + // Standard Error: 20_286 + .saturating_add(Weight::from_parts(9_270_883, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(6)) .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(b.into()))) @@ -106,10 +106,10 @@ impl module_cdp_treasury::WeightInfo for WeightInfo // Proof: `AssetRegistry::AssetMetadatas` (`max_values`: None, `max_size`: None, mode: `Measured`) fn exchange_collateral_to_stable() -> Weight { // Proof Size summary in bytes: - // Measured: `4648` + // Measured: `4610` // Estimated: `21966` - // Minimum execution time: 326_455 nanoseconds. - Weight::from_parts(333_366_000, 21966) + // Minimum execution time: 319_651 nanoseconds. + Weight::from_parts(326_030_000, 21966) .saturating_add(T::DbWeight::get().reads(32)) .saturating_add(T::DbWeight::get().writes(12)) } @@ -119,8 +119,8 @@ impl module_cdp_treasury::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `997` // Estimated: `0` - // Minimum execution time: 12_952 nanoseconds. - Weight::from_parts(13_132_000, 0) + // Minimum execution time: 12_783 nanoseconds. + Weight::from_parts(13_227_000, 0) .saturating_add(T::DbWeight::get().writes(1)) } // Storage: `Tokens::Accounts` (r:2 w:2) @@ -131,8 +131,8 @@ impl module_cdp_treasury::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `1468` // Estimated: `6234` - // Minimum execution time: 36_714 nanoseconds. - Weight::from_parts(37_322_000, 6234) + // Minimum execution time: 35_718 nanoseconds. + Weight::from_parts(36_774_000, 6234) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } diff --git a/runtime/acala/src/weights/module_collator_selection.rs b/runtime/acala/src/weights/module_collator_selection.rs index a63e93d72b..fd4a2b614e 100644 --- a/runtime/acala/src/weights/module_collator_selection.rs +++ b/runtime/acala/src/weights/module_collator_selection.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_collator_selection //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-21-58`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-41-141`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("acala-dev"), DB CACHE: 1024 // Executed Command: @@ -54,10 +54,10 @@ impl module_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `997` // Estimated: `0` - // Minimum execution time: 11_219 nanoseconds. - Weight::from_parts(11_747_379, 0) - // Standard Error: 1_722 - .saturating_add(Weight::from_parts(18_868, 0).saturating_mul(b.into())) + // Minimum execution time: 11_480 nanoseconds. + Weight::from_parts(11_978_459, 0) + // Standard Error: 1_769 + .saturating_add(Weight::from_parts(26_609, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().writes(1)) } // Storage: `CollatorSelection::DesiredCandidates` (r:0 w:1) @@ -66,8 +66,8 @@ impl module_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `997` // Estimated: `0` - // Minimum execution time: 11_096 nanoseconds. - Weight::from_parts(11_686_000, 0) + // Minimum execution time: 11_062 nanoseconds. + Weight::from_parts(11_794_000, 0) .saturating_add(T::DbWeight::get().writes(1)) } // Storage: `CollatorSelection::CandidacyBond` (r:0 w:1) @@ -76,8 +76,8 @@ impl module_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `997` // Estimated: `0` - // Minimum execution time: 11_166 nanoseconds. - Weight::from_parts(11_606_000, 0) + // Minimum execution time: 11_531 nanoseconds. + Weight::from_parts(11_809_000, 0) .saturating_add(T::DbWeight::get().writes(1)) } // Storage: `CollatorSelection::NonCandidates` (r:1 w:1) @@ -99,10 +99,10 @@ impl module_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `2325 + c * (60 ±0)` // Estimated: `5736 + c * (61 ±0)` - // Minimum execution time: 51_904 nanoseconds. - Weight::from_parts(52_741_336, 5736) - // Standard Error: 3_407 - .saturating_add(Weight::from_parts(454_069, 0).saturating_mul(c.into())) + // Minimum execution time: 52_454 nanoseconds. + Weight::from_parts(53_353_153, 5736) + // Standard Error: 3_642 + .saturating_add(Weight::from_parts(474_684, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(Weight::from_parts(0, 61).saturating_mul(c.into())) @@ -122,10 +122,10 @@ impl module_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `1838 + c * (55 ±0)` // Estimated: `5295 + c * (55 ±0)` - // Minimum execution time: 28_745 nanoseconds. - Weight::from_parts(33_254_719, 5295) - // Standard Error: 3_004 - .saturating_add(Weight::from_parts(411_310, 0).saturating_mul(c.into())) + // Minimum execution time: 29_371 nanoseconds. + Weight::from_parts(33_808_345, 5295) + // Standard Error: 3_537 + .saturating_add(Weight::from_parts(435_482, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(Weight::from_parts(0, 55).saturating_mul(c.into())) @@ -141,10 +141,10 @@ impl module_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `1628 + c * (39 ±0)` // Estimated: `3109 + c * (39 ±0)` - // Minimum execution time: 22_637 nanoseconds. - Weight::from_parts(22_211_807, 3109) - // Standard Error: 2_394 - .saturating_add(Weight::from_parts(322_364, 0).saturating_mul(c.into())) + // Minimum execution time: 23_276 nanoseconds. + Weight::from_parts(22_859_610, 3109) + // Standard Error: 2_021 + .saturating_add(Weight::from_parts(336_239, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(Weight::from_parts(0, 39).saturating_mul(c.into())) @@ -159,8 +159,8 @@ impl module_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `3193` // Estimated: `4678` - // Minimum execution time: 54_873 nanoseconds. - Weight::from_parts(57_284_000, 4678) + // Minimum execution time: 57_249 nanoseconds. + Weight::from_parts(59_231_000, 4678) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -172,8 +172,8 @@ impl module_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `2138` // Estimated: `6196` - // Minimum execution time: 59_072 nanoseconds. - Weight::from_parts(60_661_000, 6196) + // Minimum execution time: 60_117 nanoseconds. + Weight::from_parts(61_187_000, 6196) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -185,8 +185,8 @@ impl module_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `2687` // Estimated: `3086` - // Minimum execution time: 21_814 nanoseconds. - Weight::from_parts(23_406_000, 3086) + // Minimum execution time: 23_160 nanoseconds. + Weight::from_parts(24_615_000, 3086) .saturating_add(T::DbWeight::get().reads(2)) } // Storage: `Session::Validators` (r:1 w:0) @@ -201,12 +201,12 @@ impl module_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `1411 + c * (64 ±0)` // Estimated: `3086 + c * (64 ±0)` - // Minimum execution time: 19_276 nanoseconds. - Weight::from_parts(14_412_023, 3086) - // Standard Error: 1_676 - .saturating_add(Weight::from_parts(2_526, 0).saturating_mul(r.into())) - // Standard Error: 1_676 - .saturating_add(Weight::from_parts(1_246_330, 0).saturating_mul(c.into())) + // Minimum execution time: 20_198 nanoseconds. + Weight::from_parts(12_820_952, 3086) + // Standard Error: 5_495 + .saturating_add(Weight::from_parts(75_271, 0).saturating_mul(r.into())) + // Standard Error: 5_495 + .saturating_add(Weight::from_parts(1_340_052, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) .saturating_add(Weight::from_parts(0, 64).saturating_mul(c.into())) @@ -225,10 +225,10 @@ impl module_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `3458 + c * (49 ±0)` // Estimated: `3509 + c * (2519 ±0)` - // Minimum execution time: 30_087 nanoseconds. - Weight::from_parts(353_296_954, 3509) - // Standard Error: 18_547 - .saturating_add(Weight::from_parts(4_189_757, 0).saturating_mul(c.into())) + // Minimum execution time: 30_539 nanoseconds. + Weight::from_parts(341_125_020, 3509) + // Standard Error: 16_347 + .saturating_add(Weight::from_parts(4_079_208, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(50)) diff --git a/runtime/acala/src/weights/module_currencies.rs b/runtime/acala/src/weights/module_currencies.rs index c4b4d2c4b6..20bc37b02e 100644 --- a/runtime/acala/src/weights/module_currencies.rs +++ b/runtime/acala/src/weights/module_currencies.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_currencies //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-21-58`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-41-141`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("acala-dev"), DB CACHE: 1024 // Executed Command: @@ -57,8 +57,8 @@ impl module_currencies::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1610` // Estimated: `6234` - // Minimum execution time: 44_709 nanoseconds. - Weight::from_parts(45_772_000, 6234) + // Minimum execution time: 43_805 nanoseconds. + Weight::from_parts(44_756_000, 6234) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -70,8 +70,8 @@ impl module_currencies::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1444` // Estimated: `3593` - // Minimum execution time: 57_146 nanoseconds. - Weight::from_parts(58_000_000, 3593) + // Minimum execution time: 55_667 nanoseconds. + Weight::from_parts(56_707_000, 3593) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -85,8 +85,8 @@ impl module_currencies::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1160` // Estimated: `3612` - // Minimum execution time: 26_261 nanoseconds. - Weight::from_parts(26_714_000, 3612) + // Minimum execution time: 25_054 nanoseconds. + Weight::from_parts(25_843_000, 3612) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -96,8 +96,8 @@ impl module_currencies::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1300` // Estimated: `3593` - // Minimum execution time: 29_527 nanoseconds. - Weight::from_parts(30_066_000, 3593) + // Minimum execution time: 27_948 nanoseconds. + Weight::from_parts(28_847_000, 3593) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -109,8 +109,8 @@ impl module_currencies::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1440` // Estimated: `3593` - // Minimum execution time: 32_065 nanoseconds. - Weight::from_parts(32_569_000, 3593) + // Minimum execution time: 32_073 nanoseconds. + Weight::from_parts(32_672_000, 3593) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -123,10 +123,10 @@ impl module_currencies::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1485 + c * (79 ±0)` // Estimated: `3612 + c * (2622 ±0)` - // Minimum execution time: 36_616 nanoseconds. - Weight::from_parts(19_299_936, 3612) - // Standard Error: 21_413 - .saturating_add(Weight::from_parts(18_379_310, 0).saturating_mul(c.into())) + // Minimum execution time: 37_084 nanoseconds. + Weight::from_parts(20_112_380, 3612) + // Standard Error: 30_791 + .saturating_add(Weight::from_parts(18_453_357, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -143,8 +143,8 @@ impl module_currencies::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1464` // Estimated: `4765` - // Minimum execution time: 30_536 nanoseconds. - Weight::from_parts(31_223_000, 4765) + // Minimum execution time: 30_488 nanoseconds. + Weight::from_parts(31_257_000, 4765) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -158,8 +158,8 @@ impl module_currencies::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1569` // Estimated: `4765` - // Minimum execution time: 31_611 nanoseconds. - Weight::from_parts(32_365_000, 4765) + // Minimum execution time: 31_388 nanoseconds. + Weight::from_parts(32_311_000, 4765) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } diff --git a/runtime/acala/src/weights/module_dex.rs b/runtime/acala/src/weights/module_dex.rs index 15f090de8c..994fc3b97c 100644 --- a/runtime/acala/src/weights/module_dex.rs +++ b/runtime/acala/src/weights/module_dex.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_dex //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-21-58`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-41-141`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("acala-dev"), DB CACHE: 1024 // Executed Command: @@ -53,8 +53,8 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1106` // Estimated: `3660` - // Minimum execution time: 15_508 nanoseconds. - Weight::from_parts(15_889_000, 3660) + // Minimum execution time: 16_109 nanoseconds. + Weight::from_parts(16_801_000, 3660) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -64,8 +64,8 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1143` // Estimated: `3660` - // Minimum execution time: 16_793 nanoseconds. - Weight::from_parts(17_212_000, 3660) + // Minimum execution time: 17_745 nanoseconds. + Weight::from_parts(18_413_000, 3660) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -79,8 +79,8 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1148` // Estimated: `3660` - // Minimum execution time: 23_034 nanoseconds. - Weight::from_parts(23_325_000, 3660) + // Minimum execution time: 24_017 nanoseconds. + Weight::from_parts(24_583_000, 3660) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -90,8 +90,8 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `915` // Estimated: `3660` - // Minimum execution time: 10_460 nanoseconds. - Weight::from_parts(10_819_000, 3660) + // Minimum execution time: 11_444 nanoseconds. + Weight::from_parts(11_857_000, 3660) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -111,8 +111,8 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1740` // Estimated: `3660` - // Minimum execution time: 42_660 nanoseconds. - Weight::from_parts(43_520_000, 3660) + // Minimum execution time: 41_978 nanoseconds. + Weight::from_parts(44_925_000, 3660) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(6)) } @@ -128,8 +128,8 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1899` // Estimated: `6234` - // Minimum execution time: 85_832 nanoseconds. - Weight::from_parts(87_208_000, 6234) + // Minimum execution time: 85_067 nanoseconds. + Weight::from_parts(88_039_000, 6234) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(5)) } @@ -147,8 +147,8 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2094` // Estimated: `6272` - // Minimum execution time: 61_466 nanoseconds. - Weight::from_parts(63_116_000, 6272) + // Minimum execution time: 63_187 nanoseconds. + Weight::from_parts(65_245_000, 6272) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(5)) } @@ -168,8 +168,8 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2232` // Estimated: `8856` - // Minimum execution time: 103_969 nanoseconds. - Weight::from_parts(106_209_000, 8856) + // Minimum execution time: 100_768 nanoseconds. + Weight::from_parts(103_238_000, 8856) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(6)) } @@ -193,8 +193,8 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2639` // Estimated: `11478` - // Minimum execution time: 137_071 nanoseconds. - Weight::from_parts(138_811_000, 11478) + // Minimum execution time: 134_365 nanoseconds. + Weight::from_parts(139_479_000, 11478) .saturating_add(T::DbWeight::get().reads(11)) .saturating_add(T::DbWeight::get().writes(9)) } @@ -210,8 +210,8 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2166` // Estimated: `8856` - // Minimum execution time: 97_866 nanoseconds. - Weight::from_parts(100_274_000, 8856) + // Minimum execution time: 96_083 nanoseconds. + Weight::from_parts(99_590_000, 8856) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(6)) } @@ -233,8 +233,8 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2579` // Estimated: `11478` - // Minimum execution time: 146_895 nanoseconds. - Weight::from_parts(149_519_000, 11478) + // Minimum execution time: 146_788 nanoseconds. + Weight::from_parts(150_838_000, 11478) .saturating_add(T::DbWeight::get().reads(11)) .saturating_add(T::DbWeight::get().writes(9)) } @@ -251,10 +251,10 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1842 + u * (112 ±0)` // Estimated: `6234 + u * (643 ±18)` - // Minimum execution time: 85_310 nanoseconds. - Weight::from_parts(67_498_816, 6234) - // Standard Error: 54_174 - .saturating_add(Weight::from_parts(10_222_387, 0).saturating_mul(u.into())) + // Minimum execution time: 83_790 nanoseconds. + Weight::from_parts(66_397_007, 6234) + // Standard Error: 120_592 + .saturating_add(Weight::from_parts(10_851_711, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes(2)) @@ -273,11 +273,11 @@ impl module_dex::WeightInfo for WeightInfo { fn swap_with_exact_target(u: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `1842 + u * (112 ±0)` - // Estimated: `6234 + u * (643 ±19)` - // Minimum execution time: 85_562 nanoseconds. - Weight::from_parts(67_181_798, 6234) - // Standard Error: 58_573 - .saturating_add(Weight::from_parts(10_332_403, 0).saturating_mul(u.into())) + // Estimated: `6234 + u * (643 ±18)` + // Minimum execution time: 83_708 nanoseconds. + Weight::from_parts(66_043_802, 6234) + // Standard Error: 142_413 + .saturating_add(Weight::from_parts(11_426_120, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes(2)) @@ -300,8 +300,8 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2233` // Estimated: `6234` - // Minimum execution time: 94_373 nanoseconds. - Weight::from_parts(96_504_000, 6234) + // Minimum execution time: 93_134 nanoseconds. + Weight::from_parts(98_557_000, 6234) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(4)) } @@ -311,8 +311,8 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1280` // Estimated: `3660` - // Minimum execution time: 20_275 nanoseconds. - Weight::from_parts(21_087_000, 3660) + // Minimum execution time: 21_180 nanoseconds. + Weight::from_parts(21_677_000, 3660) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/acala/src/weights/module_dex_oracle.rs b/runtime/acala/src/weights/module_dex_oracle.rs index 45cb87e055..3d9275078f 100644 --- a/runtime/acala/src/weights/module_dex_oracle.rs +++ b/runtime/acala/src/weights/module_dex_oracle.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_dex_oracle //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-21-58`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-41-141`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("acala-dev"), DB CACHE: 1024 // Executed Command: @@ -57,6 +57,8 @@ impl module_dex_oracle::WeightInfo for WeightInfo { // Proof: `Dex::LiquidityPool` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) // Storage: `DexOracle::Cumulatives` (r:3 w:3) // Proof: `DexOracle::Cumulatives` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `System::InherentsApplied` (r:0 w:1) + // Proof: `System::InherentsApplied` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) // Storage: `System::ParentHash` (r:0 w:1) // Proof: `System::ParentHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) // Storage: `System::Digest` (r:0 w:1) @@ -77,16 +79,16 @@ impl module_dex_oracle::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `169 + n * (377 ±0) + u * (249 ±0)` // Estimated: `4851 + n * (2864 ±2) + u * (346 ±2)` - // Minimum execution time: 13_424 nanoseconds. - Weight::from_parts(14_102_000, 4851) - // Standard Error: 141_637 - .saturating_add(Weight::from_parts(9_815_171, 0).saturating_mul(n.into())) - // Standard Error: 141_637 - .saturating_add(Weight::from_parts(4_464_746, 0).saturating_mul(u.into())) + // Minimum execution time: 14_720 nanoseconds. + Weight::from_parts(15_620_000, 4851) + // Standard Error: 142_923 + .saturating_add(Weight::from_parts(9_731_432, 0).saturating_mul(n.into())) + // Standard Error: 142_923 + .saturating_add(Weight::from_parts(4_685_908, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into()))) - .saturating_add(T::DbWeight::get().writes(2)) + .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(u.into()))) .saturating_add(Weight::from_parts(0, 2864).saturating_mul(n.into())) @@ -104,8 +106,8 @@ impl module_dex_oracle::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `956` // Estimated: `4421` - // Minimum execution time: 18_462 nanoseconds. - Weight::from_parts(19_112_000, 4421) + // Minimum execution time: 18_671 nanoseconds. + Weight::from_parts(18_979_000, 4421) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -117,8 +119,8 @@ impl module_dex_oracle::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `927` // Estimated: `4392` - // Minimum execution time: 11_411 nanoseconds. - Weight::from_parts(11_780_000, 4392) + // Minimum execution time: 11_614 nanoseconds. + Weight::from_parts(12_034_000, 4392) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -128,8 +130,8 @@ impl module_dex_oracle::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `927` // Estimated: `4392` - // Minimum execution time: 10_822 nanoseconds. - Weight::from_parts(11_200_000, 4392) + // Minimum execution time: 11_033 nanoseconds. + Weight::from_parts(11_392_000, 4392) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/acala/src/weights/module_emergency_shutdown.rs b/runtime/acala/src/weights/module_emergency_shutdown.rs index aa496c493b..d2422f3f19 100644 --- a/runtime/acala/src/weights/module_emergency_shutdown.rs +++ b/runtime/acala/src/weights/module_emergency_shutdown.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_emergency_shutdown //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-21-58`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-41-141`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("acala-dev"), DB CACHE: 1024 // Executed Command: @@ -56,10 +56,10 @@ impl module_emergency_shutdown::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `1318` // Estimated: `3600` - // Minimum execution time: 17_301 nanoseconds. - Weight::from_parts(18_220_029, 3600) - // Standard Error: 10_241 - .saturating_add(Weight::from_parts(424_797, 0).saturating_mul(c.into())) + // Minimum execution time: 17_447 nanoseconds. + Weight::from_parts(18_305_527, 3600) + // Standard Error: 9_934 + .saturating_add(Weight::from_parts(421_973, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -73,8 +73,8 @@ impl module_emergency_shutdown::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `1342` // Estimated: `3600` - // Minimum execution time: 17_170 nanoseconds. - Weight::from_parts(17_580_000, 3600) + // Minimum execution time: 17_223 nanoseconds. + Weight::from_parts(17_529_000, 3600) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -93,10 +93,10 @@ impl module_emergency_shutdown::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `2058 + c * (45 ±0)` // Estimated: `3612` - // Minimum execution time: 47_090 nanoseconds. - Weight::from_parts(48_803_280, 3612) - // Standard Error: 22_173 - .saturating_add(Weight::from_parts(1_765_463, 0).saturating_mul(c.into())) + // Minimum execution time: 46_440 nanoseconds. + Weight::from_parts(48_313_703, 3612) + // Standard Error: 19_500 + .saturating_add(Weight::from_parts(1_846_324, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } diff --git a/runtime/acala/src/weights/module_evm.rs b/runtime/acala/src/weights/module_evm.rs index 2c382ab682..adca3bc21f 100644 --- a/runtime/acala/src/weights/module_evm.rs +++ b/runtime/acala/src/weights/module_evm.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_evm //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-21-58`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-41-141`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("acala-dev"), DB CACHE: 1024 // Executed Command: @@ -69,8 +69,8 @@ impl module_evm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1658` // Estimated: `7598` - // Minimum execution time: 127_458 nanoseconds. - Weight::from_parts(130_244_000, 7598) + // Minimum execution time: 127_826 nanoseconds. + Weight::from_parts(131_113_000, 7598) .saturating_add(T::DbWeight::get().reads(13)) .saturating_add(T::DbWeight::get().writes(9)) } @@ -96,8 +96,8 @@ impl module_evm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1658` // Estimated: `7598` - // Minimum execution time: 122_693 nanoseconds. - Weight::from_parts(124_838_000, 7598) + // Minimum execution time: 122_382 nanoseconds. + Weight::from_parts(125_727_000, 7598) .saturating_add(T::DbWeight::get().reads(13)) .saturating_add(T::DbWeight::get().writes(9)) } @@ -123,8 +123,8 @@ impl module_evm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1627` // Estimated: `7567` - // Minimum execution time: 151_662 nanoseconds. - Weight::from_parts(154_567_000, 7567) + // Minimum execution time: 151_417 nanoseconds. + Weight::from_parts(155_163_000, 7567) .saturating_add(T::DbWeight::get().reads(13)) .saturating_add(T::DbWeight::get().writes(10)) } @@ -148,8 +148,8 @@ impl module_evm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1575` // Estimated: `7515` - // Minimum execution time: 155_828 nanoseconds. - Weight::from_parts(157_737_000, 7515) + // Minimum execution time: 149_920 nanoseconds. + Weight::from_parts(152_354_000, 7515) .saturating_add(T::DbWeight::get().reads(12)) .saturating_add(T::DbWeight::get().writes(9)) } @@ -173,8 +173,8 @@ impl module_evm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2432` // Estimated: `8372` - // Minimum execution time: 120_408 nanoseconds. - Weight::from_parts(122_206_000, 8372) + // Minimum execution time: 120_365 nanoseconds. + Weight::from_parts(123_804_000, 8372) .saturating_add(T::DbWeight::get().reads(12)) .saturating_add(T::DbWeight::get().writes(6)) } @@ -186,8 +186,8 @@ impl module_evm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1842` // Estimated: `5307` - // Minimum execution time: 86_298 nanoseconds. - Weight::from_parts(87_240_000, 5307) + // Minimum execution time: 85_819 nanoseconds. + Weight::from_parts(87_174_000, 5307) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -199,8 +199,8 @@ impl module_evm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2313` // Estimated: `5778` - // Minimum execution time: 122_735 nanoseconds. - Weight::from_parts(123_642_000, 5778) + // Minimum execution time: 121_758 nanoseconds. + Weight::from_parts(122_797_000, 5778) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -210,8 +210,8 @@ impl module_evm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1700` // Estimated: `5165` - // Minimum execution time: 22_865 nanoseconds. - Weight::from_parts(23_601_000, 5165) + // Minimum execution time: 22_684 nanoseconds. + Weight::from_parts(23_871_000, 5165) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -221,8 +221,8 @@ impl module_evm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1434` // Estimated: `3633` - // Minimum execution time: 90_737 nanoseconds. - Weight::from_parts(91_579_000, 3633) + // Minimum execution time: 90_357 nanoseconds. + Weight::from_parts(91_457_000, 3633) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -232,8 +232,8 @@ impl module_evm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1522` // Estimated: `3633` - // Minimum execution time: 92_027 nanoseconds. - Weight::from_parts(93_031_000, 3633) + // Minimum execution time: 92_520 nanoseconds. + Weight::from_parts(93_942_000, 3633) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -256,12 +256,12 @@ impl module_evm::WeightInfo for WeightInfo { /// The range of component `c` is `[0, 61440]`. fn set_code(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2448` - // Estimated: `8388` - // Minimum execution time: 146_862 nanoseconds. - Weight::from_parts(142_965_387, 8388) + // Measured: `2525` + // Estimated: `8465` + // Minimum execution time: 147_478 nanoseconds. + Weight::from_parts(144_228_417, 8465) // Standard Error: 13 - .saturating_add(Weight::from_parts(5_437, 0).saturating_mul(c.into())) + .saturating_add(Weight::from_parts(5_469, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(10)) .saturating_add(T::DbWeight::get().writes(9)) } @@ -289,10 +289,10 @@ impl module_evm::WeightInfo for WeightInfo { // Proof: `EVM::Codes` (`max_values`: None, `max_size`: None, mode: `Measured`) fn selfdestruct() -> Weight { // Proof Size summary in bytes: - // Measured: `2608` - // Estimated: `6073` - // Minimum execution time: 168_917 nanoseconds. - Weight::from_parts(171_599_000, 6073) + // Measured: `2646` + // Estimated: `6111` + // Minimum execution time: 168_586 nanoseconds. + Weight::from_parts(172_538_000, 6111) .saturating_add(T::DbWeight::get().reads(11)) .saturating_add(T::DbWeight::get().writes(8)) } diff --git a/runtime/acala/src/weights/module_evm_accounts.rs b/runtime/acala/src/weights/module_evm_accounts.rs index b423efe926..4a13dea007 100644 --- a/runtime/acala/src/weights/module_evm_accounts.rs +++ b/runtime/acala/src/weights/module_evm_accounts.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_evm_accounts //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-21-58`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-41-141`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("acala-dev"), DB CACHE: 1024 // Executed Command: @@ -61,8 +61,8 @@ impl module_evm_accounts::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `1515` // Estimated: `3593` - // Minimum execution time: 74_719 nanoseconds. - Weight::from_parts(75_563_000, 3593) + // Minimum execution time: 74_263 nanoseconds. + Weight::from_parts(75_347_000, 3593) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -74,8 +74,8 @@ impl module_evm_accounts::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `1139` // Estimated: `3525` - // Minimum execution time: 18_470 nanoseconds. - Weight::from_parts(19_085_000, 3525) + // Minimum execution time: 18_401 nanoseconds. + Weight::from_parts(18_880_000, 3525) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } diff --git a/runtime/acala/src/weights/module_homa.rs b/runtime/acala/src/weights/module_homa.rs index 580efdc610..59d3143e06 100644 --- a/runtime/acala/src/weights/module_homa.rs +++ b/runtime/acala/src/weights/module_homa.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_homa //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-21-58`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-41-141`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("acala-dev"), DB CACHE: 1024 // Executed Command: @@ -57,10 +57,10 @@ impl module_homa::WeightInfo for WeightInfo { // Proof: `Homa::BumpEraFrequency` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn on_initialize() -> Weight { // Proof Size summary in bytes: - // Measured: `861` - // Estimated: `2346` - // Minimum execution time: 6_627 nanoseconds. - Weight::from_parts(6_785_000, 2346) + // Measured: `823` + // Estimated: `2308` + // Minimum execution time: 6_283 nanoseconds. + Weight::from_parts(6_483_000, 2308) .saturating_add(T::DbWeight::get().reads(4)) } // Storage: `ParachainSystem::ValidationData` (r:1 w:0) @@ -113,10 +113,10 @@ impl module_homa::WeightInfo for WeightInfo { // Proof: `Homa::TotalVoidLiquid` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn on_initialize_with_bump_era() -> Weight { // Proof Size summary in bytes: - // Measured: `2999` - // Estimated: `13889` - // Minimum execution time: 278_458 nanoseconds. - Weight::from_parts(287_076_000, 13889) + // Measured: `2961` + // Estimated: `13851` + // Minimum execution time: 298_418 nanoseconds. + Weight::from_parts(305_164_000, 13851) .saturating_add(T::DbWeight::get().reads(32)) .saturating_add(T::DbWeight::get().writes(18)) } @@ -138,10 +138,10 @@ impl module_homa::WeightInfo for WeightInfo { // Proof: `Homa::EstimatedRewardRatePerEra` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn mint() -> Weight { // Proof Size summary in bytes: - // Measured: `1739` + // Measured: `1701` // Estimated: `8856` - // Minimum execution time: 62_529 nanoseconds. - Weight::from_parts(63_869_000, 8856) + // Minimum execution time: 59_996 nanoseconds. + Weight::from_parts(61_537_000, 8856) .saturating_add(T::DbWeight::get().reads(10)) .saturating_add(T::DbWeight::get().writes(7)) } @@ -153,10 +153,10 @@ impl module_homa::WeightInfo for WeightInfo { // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn request_redeem() -> Weight { // Proof Size summary in bytes: - // Measured: `1648` + // Measured: `1610` // Estimated: `6234` - // Minimum execution time: 42_741 nanoseconds. - Weight::from_parts(43_653_000, 6234) + // Minimum execution time: 41_569 nanoseconds. + Weight::from_parts(42_722_000, 6234) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) } @@ -179,12 +179,12 @@ impl module_homa::WeightInfo for WeightInfo { /// The range of component `n` is `[1, 50]`. fn fast_match_redeems(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1988 + n * (295 ±0)` + // Measured: `1950 + n * (295 ±0)` // Estimated: `6234 + n * (2770 ±0)` - // Minimum execution time: 76_864 nanoseconds. - Weight::from_parts(20_712_707, 6234) - // Standard Error: 40_762 - .saturating_add(Weight::from_parts(43_696_810, 0).saturating_mul(n.into())) + // Minimum execution time: 73_092 nanoseconds. + Weight::from_parts(25_412_943, 6234) + // Standard Error: 28_320 + .saturating_add(Weight::from_parts(41_844_237, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(5)) @@ -205,10 +205,10 @@ impl module_homa::WeightInfo for WeightInfo { // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) fn claim_redemption() -> Weight { // Proof Size summary in bytes: - // Measured: `1858` - // Estimated: `7798` - // Minimum execution time: 62_015 nanoseconds. - Weight::from_parts(63_588_000, 7798) + // Measured: `2021` + // Estimated: `7961` + // Minimum execution time: 59_467 nanoseconds. + Weight::from_parts(61_252_000, 7961) .saturating_add(T::DbWeight::get().reads(9)) .saturating_add(T::DbWeight::get().writes(6)) } @@ -222,10 +222,10 @@ impl module_homa::WeightInfo for WeightInfo { // Proof: `Homa::SoftBondedCapPerSubAccount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn update_homa_params() -> Weight { // Proof Size summary in bytes: - // Measured: `1177` - // Estimated: `2662` - // Minimum execution time: 22_332 nanoseconds. - Weight::from_parts(22_990_000, 2662) + // Measured: `1139` + // Estimated: `2624` + // Minimum execution time: 20_902 nanoseconds. + Weight::from_parts(21_722_000, 2624) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(4)) } @@ -239,8 +239,8 @@ impl module_homa::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1211` // Estimated: `2696` - // Minimum execution time: 18_078 nanoseconds. - Weight::from_parts(18_757_000, 2696) + // Minimum execution time: 18_032 nanoseconds. + Weight::from_parts(18_556_000, 2696) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -251,12 +251,12 @@ impl module_homa::WeightInfo for WeightInfo { /// The range of component `n` is `[0, 10]`. fn reset_ledgers(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1177` - // Estimated: `2662 + n * (2475 ±0)` - // Minimum execution time: 3_860 nanoseconds. - Weight::from_parts(10_458_063, 2662) - // Standard Error: 37_846 - .saturating_add(Weight::from_parts(6_376_278, 0).saturating_mul(n.into())) + // Measured: `1139` + // Estimated: `2624 + n * (2475 ±0)` + // Minimum execution time: 4_170 nanoseconds. + Weight::from_parts(10_347_994, 2624) + // Standard Error: 35_868 + .saturating_add(Weight::from_parts(5_696_010, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -267,10 +267,10 @@ impl module_homa::WeightInfo for WeightInfo { // Proof: `Homa::RelayChainCurrentEra` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn reset_current_era() -> Weight { // Proof Size summary in bytes: - // Measured: `1177` - // Estimated: `2662` - // Minimum execution time: 13_994 nanoseconds. - Weight::from_parts(14_356_000, 2662) + // Measured: `1139` + // Estimated: `2624` + // Minimum execution time: 13_506 nanoseconds. + Weight::from_parts(13_876_000, 2624) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/acala/src/weights/module_honzon.rs b/runtime/acala/src/weights/module_honzon.rs index e94a35d45b..bd5a59c094 100644 --- a/runtime/acala/src/weights/module_honzon.rs +++ b/runtime/acala/src/weights/module_honzon.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_honzon //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-21-58`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-41-141`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("acala-dev"), DB CACHE: 1024 // Executed Command: @@ -55,8 +55,8 @@ impl module_honzon::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1480` // Estimated: `3633` - // Minimum execution time: 33_074 nanoseconds. - Weight::from_parts(33_660_000, 3633) + // Minimum execution time: 32_989 nanoseconds. + Weight::from_parts(34_066_000, 3633) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -68,8 +68,8 @@ impl module_honzon::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1700` // Estimated: `3633` - // Minimum execution time: 37_985 nanoseconds. - Weight::from_parts(38_546_000, 3633) + // Minimum execution time: 37_038 nanoseconds. + Weight::from_parts(38_228_000, 3633) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -82,10 +82,10 @@ impl module_honzon::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1324 + c * (177 ±0)` // Estimated: `3633 + c * (2622 ±0)` - // Minimum execution time: 18_439 nanoseconds. - Weight::from_parts(24_324_959, 3633) - // Standard Error: 185_217 - .saturating_add(Weight::from_parts(6_598_766, 0).saturating_mul(c.into())) + // Minimum execution time: 18_104 nanoseconds. + Weight::from_parts(24_088_984, 3633) + // Standard Error: 186_507 + .saturating_add(Weight::from_parts(6_696_532, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) @@ -121,8 +121,8 @@ impl module_honzon::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2465` // Estimated: `8405` - // Minimum execution time: 118_946 nanoseconds. - Weight::from_parts(122_814_000, 8405) + // Minimum execution time: 118_450 nanoseconds. + Weight::from_parts(122_127_000, 8405) .saturating_add(T::DbWeight::get().reads(15)) .saturating_add(T::DbWeight::get().writes(7)) } @@ -154,8 +154,8 @@ impl module_honzon::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2808` // Estimated: `8748` - // Minimum execution time: 92_175 nanoseconds. - Weight::from_parts(94_823_000, 8748) + // Minimum execution time: 92_786 nanoseconds. + Weight::from_parts(95_982_000, 8748) .saturating_add(T::DbWeight::get().reads(16)) .saturating_add(T::DbWeight::get().writes(7)) } @@ -207,10 +207,10 @@ impl module_honzon::WeightInfo for WeightInfo { // Proof: `Homa::TotalVoidLiquid` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn close_loan_has_debit_by_dex() -> Weight { // Proof Size summary in bytes: - // Measured: `5812` + // Measured: `5774` // Estimated: `27210` - // Minimum execution time: 503_336 nanoseconds. - Weight::from_parts(514_255_000, 27210) + // Minimum execution time: 501_256 nanoseconds. + Weight::from_parts(510_899_000, 27210) .saturating_add(T::DbWeight::get().reads(46)) .saturating_add(T::DbWeight::get().writes(20)) } @@ -250,8 +250,8 @@ impl module_honzon::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `4780` // Estimated: `14340` - // Minimum execution time: 239_841 nanoseconds. - Weight::from_parts(244_241_000, 14340) + // Minimum execution time: 244_640 nanoseconds. + Weight::from_parts(249_316_000, 14340) .saturating_add(T::DbWeight::get().reads(31)) .saturating_add(T::DbWeight::get().writes(12)) } @@ -291,10 +291,10 @@ impl module_honzon::WeightInfo for WeightInfo { // Proof: `Loans::TotalPositions` (`max_values`: None, `max_size`: Some(83), added: 2558, mode: `MaxEncodedLen`) fn shrink_position_debit() -> Weight { // Proof Size summary in bytes: - // Measured: `5284` + // Measured: `5246` // Estimated: `24588` - // Minimum execution time: 379_477 nanoseconds. - Weight::from_parts(382_623_000, 24588) + // Minimum execution time: 376_449 nanoseconds. + Weight::from_parts(382_833_000, 24588) .saturating_add(T::DbWeight::get().reads(38)) .saturating_add(T::DbWeight::get().writes(18)) } @@ -324,10 +324,10 @@ impl module_honzon::WeightInfo for WeightInfo { // Proof: `Homa::TotalVoidLiquid` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn transfer_debit() -> Weight { // Proof Size summary in bytes: - // Measured: `2988` - // Estimated: `8928` - // Minimum execution time: 137_260 nanoseconds. - Weight::from_parts(142_133_000, 8928) + // Measured: `2950` + // Estimated: `8890` + // Minimum execution time: 137_076 nanoseconds. + Weight::from_parts(141_076_000, 8890) .saturating_add(T::DbWeight::get().reads(20)) .saturating_add(T::DbWeight::get().writes(6)) } @@ -351,10 +351,10 @@ impl module_honzon::WeightInfo for WeightInfo { // Proof: `CdpEngine::DebitExchangeRate` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) fn precompile_get_current_collateral_ratio() -> Weight { // Proof Size summary in bytes: - // Measured: `2055` - // Estimated: `7995` - // Minimum execution time: 39_505 nanoseconds. - Weight::from_parts(41_343_000, 7995) + // Measured: `2017` + // Estimated: `7957` + // Minimum execution time: 39_714 nanoseconds. + Weight::from_parts(41_163_000, 7957) .saturating_add(T::DbWeight::get().reads(11)) } } diff --git a/runtime/acala/src/weights/module_idle_scheduler.rs b/runtime/acala/src/weights/module_idle_scheduler.rs index 0c6e99981f..7d624f68e7 100644 --- a/runtime/acala/src/weights/module_idle_scheduler.rs +++ b/runtime/acala/src/weights/module_idle_scheduler.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_idle_scheduler //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-21-58`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-41-141`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("acala-dev"), DB CACHE: 1024 // Executed Command: @@ -57,8 +57,8 @@ impl module_idle_scheduler::WeightInfo for WeightInfo module_idle_scheduler::WeightInfo for WeightInfo module_idle_scheduler::WeightInfo for WeightInfo module_idle_scheduler::WeightInfo for WeightInfo module_incentives::WeightInfo for WeightInfo { fn on_initialize(c: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `1301 + c * (206 ±0)` - // Estimated: `4788 + c * (5029 ±0)` - // Minimum execution time: 8_565 nanoseconds. - Weight::from_parts(12_178_747, 4788) - // Standard Error: 116_264 - .saturating_add(Weight::from_parts(16_600_710, 0).saturating_mul(c.into())) + // Estimated: `4788 + c * (5029 ±5)` + // Minimum execution time: 8_714 nanoseconds. + Weight::from_parts(12_404_068, 4788) + // Standard Error: 119_191 + .saturating_add(Weight::from_parts(16_393_891, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(c.into()))) .saturating_add(Weight::from_parts(0, 5029).saturating_mul(c.into())) @@ -82,8 +82,8 @@ impl module_incentives::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1873` // Estimated: `6234` - // Minimum execution time: 54_763 nanoseconds. - Weight::from_parts(55_719_000, 6234) + // Minimum execution time: 53_114 nanoseconds. + Weight::from_parts(54_442_000, 6234) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(5)) } @@ -99,8 +99,8 @@ impl module_incentives::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1880` // Estimated: `6234` - // Minimum execution time: 55_621 nanoseconds. - Weight::from_parts(57_235_000, 6234) + // Minimum execution time: 54_824 nanoseconds. + Weight::from_parts(55_922_000, 6234) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) } @@ -122,8 +122,8 @@ impl module_incentives::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1925` // Estimated: `5390` - // Minimum execution time: 82_971 nanoseconds. - Weight::from_parts(84_859_000, 5390) + // Minimum execution time: 82_338 nanoseconds. + Weight::from_parts(84_160_000, 5390) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(4)) } @@ -134,10 +134,10 @@ impl module_incentives::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `759 + c * (93 ±0)` // Estimated: `2029 + c * (2475 ±0)` - // Minimum execution time: 3_875 nanoseconds. - Weight::from_parts(6_517_208, 2029) - // Standard Error: 83_776 - .saturating_add(Weight::from_parts(6_520_062, 0).saturating_mul(c.into())) + // Minimum execution time: 4_107 nanoseconds. + Weight::from_parts(6_747_378, 2029) + // Standard Error: 84_068 + .saturating_add(Weight::from_parts(6_365_252, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) .saturating_add(Weight::from_parts(0, 2475).saturating_mul(c.into())) @@ -149,10 +149,10 @@ impl module_incentives::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `676 + c * (10 ±0)` // Estimated: `1698 + c * (2475 ±0)` - // Minimum execution time: 3_957 nanoseconds. - Weight::from_parts(4_747_905, 1698) - // Standard Error: 18_299 - .saturating_add(Weight::from_parts(1_889_841, 0).saturating_mul(c.into())) + // Minimum execution time: 4_097 nanoseconds. + Weight::from_parts(4_885_406, 1698) + // Standard Error: 17_876 + .saturating_add(Weight::from_parts(1_882_029, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) .saturating_add(Weight::from_parts(0, 2475).saturating_mul(c.into())) @@ -163,8 +163,8 @@ impl module_incentives::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1039` // Estimated: `4504` - // Minimum execution time: 14_717 nanoseconds. - Weight::from_parts(14_960_000, 4504) + // Minimum execution time: 14_806 nanoseconds. + Weight::from_parts(15_373_000, 4504) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/acala/src/weights/module_liquid_crowdloan.rs b/runtime/acala/src/weights/module_liquid_crowdloan.rs index 8ffbcc727b..eae8185804 100644 --- a/runtime/acala/src/weights/module_liquid_crowdloan.rs +++ b/runtime/acala/src/weights/module_liquid_crowdloan.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_liquid_crowdloan //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-21-58`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-41-141`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("acala-dev"), DB CACHE: 1024 // Executed Command: @@ -61,8 +61,8 @@ impl module_liquid_crowdloan::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `1920` // Estimated: `8856` - // Minimum execution time: 67_335 nanoseconds. - Weight::from_parts(68_432_000, 8856) + // Minimum execution time: 65_577 nanoseconds. + Weight::from_parts(67_298_000, 8856) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(5)) } @@ -80,8 +80,8 @@ impl module_liquid_crowdloan::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `1392` // Estimated: `4857` - // Minimum execution time: 44_969 nanoseconds. - Weight::from_parts(45_842_000, 4857) + // Minimum execution time: 52_266 nanoseconds. + Weight::from_parts(53_694_000, 4857) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -91,8 +91,8 @@ impl module_liquid_crowdloan::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `997` // Estimated: `0` - // Minimum execution time: 11_330 nanoseconds. - Weight::from_parts(11_570_000, 0) + // Minimum execution time: 11_495 nanoseconds. + Weight::from_parts(11_980_000, 0) .saturating_add(T::DbWeight::get().writes(1)) } } diff --git a/runtime/acala/src/weights/module_nft.rs b/runtime/acala/src/weights/module_nft.rs index e96064dc19..a3d1950b6b 100644 --- a/runtime/acala/src/weights/module_nft.rs +++ b/runtime/acala/src/weights/module_nft.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_nft //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-21-58`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-41-141`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("acala-dev"), DB CACHE: 1024 // Executed Command: @@ -61,8 +61,8 @@ impl module_nft::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `385` // Estimated: `6196` - // Minimum execution time: 78_014 nanoseconds. - Weight::from_parts(79_817_000, 6196) + // Minimum execution time: 78_992 nanoseconds. + Weight::from_parts(81_540_000, 6196) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(6)) } @@ -83,10 +83,10 @@ impl module_nft::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2496` // Estimated: `6196` - // Minimum execution time: 101_337 nanoseconds. - Weight::from_parts(102_401_000, 6196) - // Standard Error: 9_029 - .saturating_add(Weight::from_parts(24_024_915, 0).saturating_mul(i.into())) + // Minimum execution time: 102_549 nanoseconds. + Weight::from_parts(103_530_000, 6196) + // Standard Error: 18_656 + .saturating_add(Weight::from_parts(24_052_110, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(5)) .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(i.into()))) @@ -105,8 +105,8 @@ impl module_nft::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `4845` // Estimated: `8310` - // Minimum execution time: 108_481 nanoseconds. - Weight::from_parts(110_789_000, 8310) + // Minimum execution time: 104_799 nanoseconds. + Weight::from_parts(106_390_000, 8310) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(7)) } @@ -124,8 +124,8 @@ impl module_nft::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `4744` // Estimated: `8209` - // Minimum execution time: 68_993 nanoseconds. - Weight::from_parts(70_306_000, 8209) + // Minimum execution time: 70_623 nanoseconds. + Weight::from_parts(72_321_000, 8209) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(5)) } @@ -144,10 +144,10 @@ impl module_nft::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `4744` // Estimated: `8209` - // Minimum execution time: 70_577 nanoseconds. - Weight::from_parts(70_885_000, 8209) - // Standard Error: 3 - .saturating_add(Weight::from_parts(1_701, 0).saturating_mul(b.into())) + // Minimum execution time: 68_570 nanoseconds. + Weight::from_parts(69_883_000, 8209) + // Standard Error: 5 + .saturating_add(Weight::from_parts(1_874, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(5)) } @@ -167,8 +167,8 @@ impl module_nft::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2831` // Estimated: `6296` - // Minimum execution time: 100_516 nanoseconds. - Weight::from_parts(101_840_000, 6296) + // Minimum execution time: 96_456 nanoseconds. + Weight::from_parts(100_529_000, 6296) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(6)) } @@ -178,8 +178,8 @@ impl module_nft::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2339` // Estimated: `5804` - // Minimum execution time: 17_783 nanoseconds. - Weight::from_parts(18_115_000, 5804) + // Minimum execution time: 18_346 nanoseconds. + Weight::from_parts(19_187_000, 5804) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/acala/src/weights/module_prices.rs b/runtime/acala/src/weights/module_prices.rs index 5dee6d7b5a..a54762320e 100644 --- a/runtime/acala/src/weights/module_prices.rs +++ b/runtime/acala/src/weights/module_prices.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_prices //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-21-58`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-41-141`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("acala-dev"), DB CACHE: 1024 // Executed Command: @@ -57,8 +57,8 @@ impl module_prices::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1422` // Estimated: `4887` - // Minimum execution time: 23_074 nanoseconds. - Weight::from_parts(23_781_000, 4887) + // Minimum execution time: 23_614 nanoseconds. + Weight::from_parts(24_266_000, 4887) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -68,8 +68,8 @@ impl module_prices::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1123` // Estimated: `3532` - // Minimum execution time: 16_844 nanoseconds. - Weight::from_parts(17_364_000, 3532) + // Minimum execution time: 17_142 nanoseconds. + Weight::from_parts(17_897_000, 3532) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/acala/src/weights/module_session_manager.rs b/runtime/acala/src/weights/module_session_manager.rs index fd84f5d344..ba606e3cb4 100644 --- a/runtime/acala/src/weights/module_session_manager.rs +++ b/runtime/acala/src/weights/module_session_manager.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_session_manager //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-21-58`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-41-141`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("acala-dev"), DB CACHE: 1024 // Executed Command: @@ -59,8 +59,8 @@ impl module_session_manager::WeightInfo for WeightInfo< // Proof Size summary in bytes: // Measured: `1556` // Estimated: `3041` - // Minimum execution time: 18_863 nanoseconds. - Weight::from_parts(19_485_000, 3041) + // Minimum execution time: 19_464 nanoseconds. + Weight::from_parts(20_302_000, 3041) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -70,8 +70,8 @@ impl module_session_manager::WeightInfo for WeightInfo< // Proof Size summary in bytes: // Measured: `809` // Estimated: `3485` - // Minimum execution time: 5_435 nanoseconds. - Weight::from_parts(5_655_000, 3485) + // Minimum execution time: 5_555 nanoseconds. + Weight::from_parts(5_978_000, 3485) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -85,8 +85,8 @@ impl module_session_manager::WeightInfo for WeightInfo< // Proof Size summary in bytes: // Measured: `809` // Estimated: `3485` - // Minimum execution time: 5_862 nanoseconds. - Weight::from_parts(6_113_000, 3485) + // Minimum execution time: 6_151 nanoseconds. + Weight::from_parts(6_415_000, 3485) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -98,8 +98,8 @@ impl module_session_manager::WeightInfo for WeightInfo< // Proof Size summary in bytes: // Measured: `769` // Estimated: `1489` - // Minimum execution time: 4_060 nanoseconds. - Weight::from_parts(4_190_000, 1489) + // Minimum execution time: 4_135 nanoseconds. + Weight::from_parts(4_346_000, 1489) .saturating_add(T::DbWeight::get().reads(2)) } // Storage: `SessionManager::DurationOffset` (r:1 w:0) @@ -110,8 +110,8 @@ impl module_session_manager::WeightInfo for WeightInfo< // Proof Size summary in bytes: // Measured: `769` // Estimated: `1489` - // Minimum execution time: 4_078 nanoseconds. - Weight::from_parts(4_216_000, 1489) + // Minimum execution time: 4_172 nanoseconds. + Weight::from_parts(4_407_000, 1489) .saturating_add(T::DbWeight::get().reads(2)) } } diff --git a/runtime/acala/src/weights/module_transaction_pause.rs b/runtime/acala/src/weights/module_transaction_pause.rs index e1020df024..f7c1809994 100644 --- a/runtime/acala/src/weights/module_transaction_pause.rs +++ b/runtime/acala/src/weights/module_transaction_pause.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_transaction_pause //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-21-58`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-41-141`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("acala-dev"), DB CACHE: 1024 // Executed Command: @@ -53,8 +53,8 @@ impl module_transaction_pause::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `1172` // Estimated: `4637` - // Minimum execution time: 15_415 nanoseconds. - Weight::from_parts(15_749_000, 4637) + // Minimum execution time: 15_494 nanoseconds. + Weight::from_parts(15_915_000, 4637) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -64,8 +64,8 @@ impl module_transaction_pause::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `1223` // Estimated: `4688` - // Minimum execution time: 16_567 nanoseconds. - Weight::from_parts(16_985_000, 4688) + // Minimum execution time: 16_582 nanoseconds. + Weight::from_parts(17_124_000, 4688) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -75,8 +75,8 @@ impl module_transaction_pause::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `1172` // Estimated: `4637` - // Minimum execution time: 14_988 nanoseconds. - Weight::from_parts(15_555_000, 4637) + // Minimum execution time: 15_061 nanoseconds. + Weight::from_parts(15_417_000, 4637) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -86,8 +86,8 @@ impl module_transaction_pause::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `1233` // Estimated: `4698` - // Minimum execution time: 16_887 nanoseconds. - Weight::from_parts(17_331_000, 4698) + // Minimum execution time: 16_832 nanoseconds. + Weight::from_parts(17_348_000, 4698) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/acala/src/weights/module_transaction_payment.rs b/runtime/acala/src/weights/module_transaction_payment.rs index 2a7d477b8a..364fc3d58b 100644 --- a/runtime/acala/src/weights/module_transaction_payment.rs +++ b/runtime/acala/src/weights/module_transaction_payment.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_transaction_payment //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-21-58`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-41-141`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("acala-dev"), DB CACHE: 1024 // Executed Command: @@ -55,8 +55,8 @@ impl module_transaction_payment::WeightInfo for WeightI // Proof Size summary in bytes: // Measured: `1438` // Estimated: `3633` - // Minimum execution time: 30_174 nanoseconds. - Weight::from_parts(30_925_000, 3633) + // Minimum execution time: 30_358 nanoseconds. + Weight::from_parts(31_010_000, 3633) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -82,8 +82,8 @@ impl module_transaction_payment::WeightInfo for WeightI // Proof Size summary in bytes: // Measured: `2305` // Estimated: `11670` - // Minimum execution time: 101_676 nanoseconds. - Weight::from_parts(104_265_000, 11670) + // Minimum execution time: 100_735 nanoseconds. + Weight::from_parts(102_555_000, 11670) .saturating_add(T::DbWeight::get().reads(11)) .saturating_add(T::DbWeight::get().writes(6)) } @@ -105,8 +105,8 @@ impl module_transaction_payment::WeightInfo for WeightI // Proof Size summary in bytes: // Measured: `1811` // Estimated: `6234` - // Minimum execution time: 86_506 nanoseconds. - Weight::from_parts(88_368_000, 6234) + // Minimum execution time: 85_461 nanoseconds. + Weight::from_parts(87_604_000, 6234) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(7)) } @@ -114,22 +114,22 @@ impl module_transaction_payment::WeightInfo for WeightI // Proof Size summary in bytes: // Measured: `666` // Estimated: `0` - // Minimum execution time: 7_593 nanoseconds. - Weight::from_parts(7_940_000, 0) + // Minimum execution time: 7_642 nanoseconds. + Weight::from_parts(7_879_000, 0) } fn with_fee_currency() -> Weight { // Proof Size summary in bytes: // Measured: `666` // Estimated: `0` - // Minimum execution time: 8_253 nanoseconds. - Weight::from_parts(8_756_000, 0) + // Minimum execution time: 8_375 nanoseconds. + Weight::from_parts(8_631_000, 0) } fn with_fee_aggregated_path() -> Weight { // Proof Size summary in bytes: // Measured: `666` // Estimated: `0` - // Minimum execution time: 8_595 nanoseconds. - Weight::from_parts(9_068_000, 0) + // Minimum execution time: 8_795 nanoseconds. + Weight::from_parts(9_066_000, 0) } // Storage: `TransactionPayment::NextFeeMultiplier` (r:1 w:1) // Proof: `TransactionPayment::NextFeeMultiplier` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) @@ -137,8 +137,8 @@ impl module_transaction_payment::WeightInfo for WeightI // Proof Size summary in bytes: // Measured: `955` // Estimated: `2440` - // Minimum execution time: 8_365 nanoseconds. - Weight::from_parts(8_788_000, 2440) + // Minimum execution time: 8_136 nanoseconds. + Weight::from_parts(8_578_000, 2440) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/acala/src/weights/nutsfinance_stable_asset.rs b/runtime/acala/src/weights/nutsfinance_stable_asset.rs index 70302e2ccb..6f69b8c4e3 100644 --- a/runtime/acala/src/weights/nutsfinance_stable_asset.rs +++ b/runtime/acala/src/weights/nutsfinance_stable_asset.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for nutsfinance_stable_asset //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-21-58`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-41-141`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("acala-dev"), DB CACHE: 1024 // Executed Command: @@ -57,8 +57,8 @@ impl nutsfinance_stable_asset::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `1345` // Estimated: `4810` - // Minimum execution time: 23_512 nanoseconds. - Weight::from_parts(24_404_000, 4810) + // Minimum execution time: 23_339 nanoseconds. + Weight::from_parts(23_968_000, 4810) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -68,8 +68,8 @@ impl nutsfinance_stable_asset::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `1538` // Estimated: `5003` - // Minimum execution time: 19_083 nanoseconds. - Weight::from_parts(19_777_000, 5003) + // Minimum execution time: 19_819 nanoseconds. + Weight::from_parts(20_242_000, 5003) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -79,8 +79,8 @@ impl nutsfinance_stable_asset::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `1538` // Estimated: `5003` - // Minimum execution time: 18_622 nanoseconds. - Weight::from_parts(19_252_000, 5003) + // Minimum execution time: 18_727 nanoseconds. + Weight::from_parts(19_573_000, 5003) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -90,8 +90,8 @@ impl nutsfinance_stable_asset::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `1538` // Estimated: `5003` - // Minimum execution time: 18_790 nanoseconds. - Weight::from_parts(19_288_000, 5003) + // Minimum execution time: 18_786 nanoseconds. + Weight::from_parts(19_354_000, 5003) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -114,12 +114,12 @@ impl nutsfinance_stable_asset::WeightInfo for WeightInf /// The range of component `u` is `[2, 5]`. fn mint(u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2295 + u * (186 ±0)` + // Measured: `2333 + u * (167 ±0)` // Estimated: `6196 + u * (5244 ±0)` - // Minimum execution time: 146_869 nanoseconds. - Weight::from_parts(75_425_004, 6196) - // Standard Error: 339_226 - .saturating_add(Weight::from_parts(39_908_669, 0).saturating_mul(u.into())) + // Minimum execution time: 144_353 nanoseconds. + Weight::from_parts(74_954_689, 6196) + // Standard Error: 316_516 + .saturating_add(Weight::from_parts(39_086_822, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes(4)) @@ -145,12 +145,12 @@ impl nutsfinance_stable_asset::WeightInfo for WeightInf /// The range of component `u` is `[2, 5]`. fn swap(u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2522 + u * (183 ±0)` - // Estimated: `6005 + u * (2622 ±32)` - // Minimum execution time: 1_944_725 nanoseconds. - Weight::from_parts(523_486_450, 6005) - // Standard Error: 5_239_232 - .saturating_add(Weight::from_parts(766_234_558, 0).saturating_mul(u.into())) + // Measured: `2560 + u * (164 ±0)` + // Estimated: `6034 + u * (2622 ±0)` + // Minimum execution time: 1_903_375 nanoseconds. + Weight::from_parts(525_963_057, 6034) + // Standard Error: 5_332_337 + .saturating_add(Weight::from_parts(740_601_451, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes(6)) @@ -175,12 +175,12 @@ impl nutsfinance_stable_asset::WeightInfo for WeightInf /// The range of component `u` is `[2, 5]`. fn redeem_proportion(u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2464 + u * (248 ±0)` - // Estimated: `5947 + u * (5244 ±0)` - // Minimum execution time: 172_984 nanoseconds. - Weight::from_parts(105_866_691, 5947) - // Standard Error: 239_021 - .saturating_add(Weight::from_parts(37_629_465, 0).saturating_mul(u.into())) + // Measured: `2502 + u * (229 ±0)` + // Estimated: `5975 + u * (5244 ±0)` + // Minimum execution time: 170_053 nanoseconds. + Weight::from_parts(103_128_928, 5975) + // Standard Error: 228_662 + .saturating_add(Weight::from_parts(37_719_569, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes(3)) @@ -204,12 +204,12 @@ impl nutsfinance_stable_asset::WeightInfo for WeightInf /// The range of component `u` is `[2, 5]`. fn redeem_single(u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1592 + u * (244 ±0)` - // Estimated: `5116 + u * (1016 ±3)` - // Minimum execution time: 1_516_064 nanoseconds. - Weight::from_parts(766_696_141, 5116) - // Standard Error: 1_406_657 - .saturating_add(Weight::from_parts(391_543_413, 0).saturating_mul(u.into())) + // Measured: `1630 + u * (225 ±0)` + // Estimated: `5145 + u * (1016 ±0)` + // Minimum execution time: 1_495_762 nanoseconds. + Weight::from_parts(793_943_725, 5145) + // Standard Error: 1_267_338 + .saturating_add(Weight::from_parts(370_164_386, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into()))) .saturating_add(Weight::from_parts(0, 1016).saturating_mul(u.into())) @@ -233,12 +233,12 @@ impl nutsfinance_stable_asset::WeightInfo for WeightInf /// The range of component `u` is `[2, 5]`. fn redeem_multi(u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2464 + u * (248 ±0)` - // Estimated: `5947 + u * (5244 ±32)` - // Minimum execution time: 149_017 nanoseconds. - Weight::from_parts(66_062_356, 5947) - // Standard Error: 457_261 - .saturating_add(Weight::from_parts(46_701_446, 0).saturating_mul(u.into())) + // Measured: `2502 + u * (229 ±0)` + // Estimated: `5975 + u * (5244 ±0)` + // Minimum execution time: 147_592 nanoseconds. + Weight::from_parts(66_503_575, 5975) + // Standard Error: 426_108 + .saturating_add(Weight::from_parts(45_813_398, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes(3)) diff --git a/runtime/acala/src/weights/orml_auction.rs b/runtime/acala/src/weights/orml_auction.rs index b5aa2d9464..1938c626d2 100644 --- a/runtime/acala/src/weights/orml_auction.rs +++ b/runtime/acala/src/weights/orml_auction.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for orml_auction //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-21-58`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-41-141`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("acala-dev"), DB CACHE: 1024 // Executed Command: @@ -63,8 +63,8 @@ impl orml_auction::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2500` // Estimated: `8856` - // Minimum execution time: 85_873 nanoseconds. - Weight::from_parts(89_006_000, 8856) + // Minimum execution time: 84_436 nanoseconds. + Weight::from_parts(86_379_000, 8856) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(8)) } @@ -97,10 +97,10 @@ impl orml_auction::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2632 + c * (979 ±0)` // Estimated: `9000 + c * (2614 ±0)` - // Minimum execution time: 93_141 nanoseconds. - Weight::from_parts(36_954_597, 9000) - // Standard Error: 32_541 - .saturating_add(Weight::from_parts(42_236_707, 0).saturating_mul(c.into())) + // Minimum execution time: 94_122 nanoseconds. + Weight::from_parts(45_376_805, 9000) + // Standard Error: 23_749 + .saturating_add(Weight::from_parts(42_560_599, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(14)) .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(7)) diff --git a/runtime/acala/src/weights/orml_authority.rs b/runtime/acala/src/weights/orml_authority.rs index a30d1dccfa..f47782741d 100644 --- a/runtime/acala/src/weights/orml_authority.rs +++ b/runtime/acala/src/weights/orml_authority.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for orml_authority //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-21-58`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-41-141`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("acala-dev"), DB CACHE: 1024 // Executed Command: @@ -51,8 +51,8 @@ impl orml_authority::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `997` // Estimated: `0` - // Minimum execution time: 13_394 nanoseconds. - Weight::from_parts(13_930_000, 0) + // Minimum execution time: 12_890 nanoseconds. + Weight::from_parts(13_435_000, 0) } // Storage: `Authority::NextTaskIndex` (r:1 w:1) // Proof: `Authority::NextTaskIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) @@ -64,8 +64,8 @@ impl orml_authority::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1143` // Estimated: `11318` - // Minimum execution time: 24_962 nanoseconds. - Weight::from_parts(25_941_000, 11318) + // Minimum execution time: 24_510 nanoseconds. + Weight::from_parts(25_226_000, 11318) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -79,8 +79,8 @@ impl orml_authority::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1143` // Estimated: `11318` - // Minimum execution time: 25_790 nanoseconds. - Weight::from_parts(26_587_000, 11318) + // Minimum execution time: 25_230 nanoseconds. + Weight::from_parts(25_789_000, 11318) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -92,8 +92,8 @@ impl orml_authority::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1220` // Estimated: `21646` - // Minimum execution time: 34_209 nanoseconds. - Weight::from_parts(35_004_000, 21646) + // Minimum execution time: 32_093 nanoseconds. + Weight::from_parts(32_872_000, 21646) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -105,8 +105,8 @@ impl orml_authority::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1220` // Estimated: `21646` - // Minimum execution time: 34_547 nanoseconds. - Weight::from_parts(34_917_000, 21646) + // Minimum execution time: 31_628 nanoseconds. + Weight::from_parts(32_586_000, 21646) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -118,8 +118,8 @@ impl orml_authority::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1220` // Estimated: `11318` - // Minimum execution time: 27_313 nanoseconds. - Weight::from_parts(27_809_000, 11318) + // Minimum execution time: 25_726 nanoseconds. + Weight::from_parts(26_663_000, 11318) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -129,8 +129,8 @@ impl orml_authority::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `997` // Estimated: `997` - // Minimum execution time: 13_463 nanoseconds. - Weight::from_parts(13_875_000, 997) + // Minimum execution time: 13_759 nanoseconds. + Weight::from_parts(14_063_000, 997) .saturating_add(T::DbWeight::get().writes(1)) } // Storage: `Authority::SavedCalls` (r:1 w:1) @@ -139,8 +139,8 @@ impl orml_authority::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1338` // Estimated: `4803` - // Minimum execution time: 18_572 nanoseconds. - Weight::from_parts(19_134_000, 4803) + // Minimum execution time: 18_790 nanoseconds. + Weight::from_parts(19_355_000, 4803) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -150,8 +150,8 @@ impl orml_authority::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1338` // Estimated: `4803` - // Minimum execution time: 22_505 nanoseconds. - Weight::from_parts(23_074_000, 4803) + // Minimum execution time: 22_321 nanoseconds. + Weight::from_parts(22_918_000, 4803) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/acala/src/weights/orml_oracle.rs b/runtime/acala/src/weights/orml_oracle.rs index ef53069a18..44786f61b0 100644 --- a/runtime/acala/src/weights/orml_oracle.rs +++ b/runtime/acala/src/weights/orml_oracle.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for orml_oracle //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-21-58`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-41-141`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("acala-dev"), DB CACHE: 1024 // Executed Command: @@ -62,10 +62,10 @@ impl orml_oracle::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1236 + c * (16 ±0)` // Estimated: `3086 + c * (2550 ±0)` - // Minimum execution time: 15_948 nanoseconds. - Weight::from_parts(17_779_479, 3086) - // Standard Error: 39_939 - .saturating_add(Weight::from_parts(5_649_816, 0).saturating_mul(c.into())) + // Minimum execution time: 15_774 nanoseconds. + Weight::from_parts(17_602_472, 3086) + // Standard Error: 40_741 + .saturating_add(Weight::from_parts(5_873_719, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -78,8 +78,8 @@ impl orml_oracle::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `872` // Estimated: `0` - // Minimum execution time: 6_109 nanoseconds. - Weight::from_parts(6_351_000, 0) + // Minimum execution time: 6_414 nanoseconds. + Weight::from_parts(6_691_000, 0) .saturating_add(T::DbWeight::get().writes(1)) } } diff --git a/runtime/acala/src/weights/orml_tokens.rs b/runtime/acala/src/weights/orml_tokens.rs index e879133b34..9640093bdf 100644 --- a/runtime/acala/src/weights/orml_tokens.rs +++ b/runtime/acala/src/weights/orml_tokens.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for orml_tokens //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-21-58`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-41-141`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("acala-dev"), DB CACHE: 1024 // Executed Command: @@ -57,8 +57,8 @@ impl orml_tokens::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1610` // Estimated: `6234` - // Minimum execution time: 42_684 nanoseconds. - Weight::from_parts(43_632_000, 6234) + // Minimum execution time: 41_738 nanoseconds. + Weight::from_parts(42_375_000, 6234) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -72,8 +72,8 @@ impl orml_tokens::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1610` // Estimated: `6234` - // Minimum execution time: 45_129 nanoseconds. - Weight::from_parts(46_249_000, 6234) + // Minimum execution time: 44_719 nanoseconds. + Weight::from_parts(45_705_000, 6234) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -85,8 +85,8 @@ impl orml_tokens::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1328` // Estimated: `6234` - // Minimum execution time: 31_602 nanoseconds. - Weight::from_parts(32_158_000, 6234) + // Minimum execution time: 31_158 nanoseconds. + Weight::from_parts(31_968_000, 6234) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -98,8 +98,8 @@ impl orml_tokens::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1464` // Estimated: `6234` - // Minimum execution time: 34_218 nanoseconds. - Weight::from_parts(35_213_000, 6234) + // Minimum execution time: 33_878 nanoseconds. + Weight::from_parts(35_067_000, 6234) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -113,8 +113,8 @@ impl orml_tokens::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1160` // Estimated: `3612` - // Minimum execution time: 25_539 nanoseconds. - Weight::from_parts(26_171_000, 3612) + // Minimum execution time: 24_776 nanoseconds. + Weight::from_parts(25_373_000, 3612) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } diff --git a/runtime/acala/src/weights/orml_vesting.rs b/runtime/acala/src/weights/orml_vesting.rs index a4e6e415a6..b443f72972 100644 --- a/runtime/acala/src/weights/orml_vesting.rs +++ b/runtime/acala/src/weights/orml_vesting.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for orml_vesting //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-21-58`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-41-141`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("acala-dev"), DB CACHE: 1024 // Executed Command: @@ -63,8 +63,8 @@ impl orml_vesting::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1686` // Estimated: `6315` - // Minimum execution time: 37_579 nanoseconds. - Weight::from_parts(38_282_000, 6315) + // Minimum execution time: 37_746 nanoseconds. + Weight::from_parts(38_858_000, 6315) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -83,10 +83,10 @@ impl orml_vesting::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1826` // Estimated: `6315` - // Minimum execution time: 38_989 nanoseconds. - Weight::from_parts(40_307_481, 6315) - // Standard Error: 487 - .saturating_add(Weight::from_parts(6_037, 0).saturating_mul(i.into())) + // Minimum execution time: 39_281 nanoseconds. + Weight::from_parts(40_520_471, 6315) + // Standard Error: 509 + .saturating_add(Weight::from_parts(6_511, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -103,10 +103,10 @@ impl orml_vesting::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1298` // Estimated: `4764` - // Minimum execution time: 31_135 nanoseconds. - Weight::from_parts(32_199_095, 4764) - // Standard Error: 388 - .saturating_add(Weight::from_parts(42_705, 0).saturating_mul(i.into())) + // Minimum execution time: 30_961 nanoseconds. + Weight::from_parts(32_305_851, 4764) + // Standard Error: 391 + .saturating_add(Weight::from_parts(37_893, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } diff --git a/runtime/acala/src/weights/pallet_xcm.rs b/runtime/acala/src/weights/pallet_xcm.rs index 78fdc0d5c2..f6e92391e1 100644 --- a/runtime/acala/src/weights/pallet_xcm.rs +++ b/runtime/acala/src/weights/pallet_xcm.rs @@ -352,4 +352,14 @@ impl pallet_xcm::WeightInfo for WeightInfo { .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } + fn claim_assets() -> Weight { + // Proof Size summary in bytes: + // Measured: `7576` + // Estimated: `11041` + // Minimum execution time: 24_595_000 picoseconds. + Weight::from_parts(24_907_000, 0) + .saturating_add(Weight::from_parts(0, 11041)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } } diff --git a/runtime/acala/src/xcm_config.rs b/runtime/acala/src/xcm_config.rs index f51145b01b..786fc24409 100644 --- a/runtime/acala/src/xcm_config.rs +++ b/runtime/acala/src/xcm_config.rs @@ -52,7 +52,7 @@ use xcm_builder::{ parameter_types! { pub const RelayNetwork: NetworkId = NetworkId::Polkadot; pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into(); - pub UniversalLocation: InteriorMultiLocation = X2(GlobalConsensus(RelayNetwork::get()), Parachain(ParachainInfo::parachain_id().into())); + pub UniversalLocation: InteriorLocation = [GlobalConsensus(RelayNetwork::get()), Parachain(ParachainInfo::parachain_id().into())].into(); pub CheckingAccount: AccountId = PolkadotXcm::check_account(); } @@ -74,7 +74,7 @@ parameter_types! { // One XCM operation is 200_000_000 weight, cross-chain transfer ~= 2x of transfer. pub const UnitWeightCost: XcmWeight = XcmWeight::from_parts(200_000_000, 0); pub const MaxInstructions: u32 = 100; - pub DotPerSecond: (AssetId, u128, u128) = (MultiLocation::parent().into(), dot_per_second(), 0); + pub DotPerSecond: (AssetId, u128, u128) = (Location::parent().into(), dot_per_second(), 0); pub AusdPerSecond: (AssetId, u128, u128) = ( local_currency_location(AUSD).unwrap().into(), // aUSD:DOT = 40:1 @@ -243,12 +243,12 @@ pub type LocalAssetTransactor = MultiCurrencyAdapter< >; pub struct CurrencyIdConvert; -impl Convert> for CurrencyIdConvert { - fn convert(id: CurrencyId) -> Option { +impl Convert> for CurrencyIdConvert { + fn convert(id: CurrencyId) -> Option { use primitives::TokenSymbol::*; use CurrencyId::{Erc20, ForeignAsset, LiquidCrowdloan, StableAssetPoolToken, Token}; match id { - Token(DOT) => Some(MultiLocation::parent()), + Token(DOT) => Some(Location::parent()), Token(ACA) | Token(AUSD) | Token(LDOT) | Token(TAP) => { native_currency_location(ParachainInfo::get().into(), id.encode()) } @@ -257,31 +257,28 @@ impl Convert> for CurrencyIdConvert { } LiquidCrowdloan(_lease) => native_currency_location(ParachainInfo::get().into(), id.encode()), StableAssetPoolToken(_pool_id) => native_currency_location(ParachainInfo::get().into(), id.encode()), - ForeignAsset(foreign_asset_id) => AssetIdMaps::::get_multi_location(foreign_asset_id), + ForeignAsset(foreign_asset_id) => AssetIdMaps::::get_location(foreign_asset_id), _ => None, } } } -impl Convert> for CurrencyIdConvert { - fn convert(location: MultiLocation) -> Option { +impl Convert> for CurrencyIdConvert { + fn convert(location: Location) -> Option { use primitives::TokenSymbol::*; use CurrencyId::{Erc20, LiquidCrowdloan, StableAssetPoolToken, Token}; - if location == MultiLocation::parent() { + if location == Location::parent() { return Some(Token(DOT)); } - if let Some(currency_id) = AssetIdMaps::::get_currency_id(location) { + if let Some(currency_id) = AssetIdMaps::::get_currency_id(location.clone()) { return Some(currency_id); } - match location { - MultiLocation { - parents: 1, - interior: X2(Parachain(para_id), GeneralKey { data, length }), - } => { - match (para_id, &data[..data.len().min(length as usize)]) { - (id, key) if id == u32::from(ParachainInfo::get()) => { + match location.unpack() { + (1, [Parachain(para_id), GeneralKey { data, length }]) => { + match (para_id, &data[..data.len().min(*length as usize)]) { + (id, key) if *id == u32::from(ParachainInfo::get()) => { // Acala if let Ok(currency_id) = CurrencyId::decode(&mut &*key) { // check `currency_id` is cross-chain asset @@ -301,11 +298,8 @@ impl Convert> for CurrencyIdConvert { } } // adapt for re-anchor canonical location: https://github.com/paritytech/polkadot/pull/4470 - MultiLocation { - parents: 0, - interior: X1(GeneralKey { data, length }), - } => { - let key = &data[..data.len().min(length as usize)]; + (0, [GeneralKey { data, length }]) => { + let key = &data[..data.len().min(*length as usize)]; let currency_id = CurrencyId::decode(&mut &*key).ok()?; match currency_id { Token(ACA) | Token(AUSD) | Token(LDOT) | Token(TAP) => Some(currency_id), @@ -319,30 +313,24 @@ impl Convert> for CurrencyIdConvert { } } } -impl Convert> for CurrencyIdConvert { - fn convert(asset: MultiAsset) -> Option { - if let MultiAsset { - id: Concrete(location), .. - } = asset - { - Self::convert(location) - } else { - None - } +impl Convert> for CurrencyIdConvert { + fn convert(asset: Asset) -> Option { + let AssetId(location) = asset.id; + Self::convert(location) } } parameter_types! { - pub SelfLocation: MultiLocation = MultiLocation::new(1, X1(Parachain(ParachainInfo::get().into()))); + pub SelfLocation: Location = Location::new(1, Parachain(ParachainInfo::get().into())); pub const BaseXcmWeight: XcmWeight = XcmWeight::from_parts(100_000_000, 0); pub const MaxAssetsForTransfer: usize = 2; } parameter_type_with_key! { - pub ParachainMinFee: |location: MultiLocation| -> Option { + pub ParachainMinFee: |location: Location| -> Option { #[allow(clippy::match_ref_pats)] // false positive match (location.parents, location.first_interior()) { - (1, Some(Parachain(parachains::asset_hub_polkadot::ID))) => Some(XcmInterface::get_parachain_fee(*location)), + (1, Some(Parachain(parachains::asset_hub_polkadot::ID))) => Some(XcmInterface::get_parachain_fee(location.clone())), _ => None, } }; @@ -353,7 +341,7 @@ impl orml_xtokens::Config for Runtime { type Balance = Balance; type CurrencyId = CurrencyId; type CurrencyIdConvert = CurrencyIdConvert; - type AccountIdToMultiLocation = runtime_common::xcm_config::AccountIdToMultiLocation; + type AccountIdToLocation = runtime_common::xcm_config::AccountIdToLocation; type SelfLocation = SelfLocation; type XcmExecutor = XcmExecutor; type Weigher = FixedWeightBounds; @@ -361,6 +349,8 @@ impl orml_xtokens::Config for Runtime { type UniversalLocation = UniversalLocation; type MaxAssetsForTransfer = MaxAssetsForTransfer; type MinXcmFee = ParachainMinFee; - type MultiLocationsFilter = Everything; + type LocationsFilter = Everything; type ReserveProvider = AbsoluteReserveProvider; + type RateLimiter = (); + type RateLimiterId = (); } diff --git a/runtime/common/Cargo.toml b/runtime/common/Cargo.toml index 8fc698f142..e7372688b1 100644 --- a/runtime/common/Cargo.toml +++ b/runtime/common/Cargo.toml @@ -176,3 +176,6 @@ wasm-bench = [ "xcm-builder/runtime-benchmarks", ] +runtime-benchmarks = [ + "orml-oracle/runtime-benchmarks" +] \ No newline at end of file diff --git a/runtime/common/src/mock.rs b/runtime/common/src/mock.rs index 181910bc8b..14d7f57d31 100644 --- a/runtime/common/src/mock.rs +++ b/runtime/common/src/mock.rs @@ -72,7 +72,6 @@ impl pallet_balances::Config for TestRuntime { type RuntimeHoldReason = RuntimeHoldReason; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = ConstU32<50>; type MaxFreezes = (); } diff --git a/runtime/common/src/precompile/incentives.rs b/runtime/common/src/precompile/incentives.rs index 62adb03e62..2d343c4b20 100644 --- a/runtime/common/src/precompile/incentives.rs +++ b/runtime/common/src/precompile/incentives.rs @@ -473,9 +473,9 @@ mod tests { RuntimeOrigin::signed(ALICE), vec![(PoolId::Loans(ACA), Rate::saturating_from_rational(50, 100)),] )); - Rewards::add_share(&alice(), &PoolId::Loans(ACA), 100); + assert_ok!(Rewards::add_share(&alice(), &PoolId::Loans(ACA), 100)); assert_ok!(Rewards::accumulate_reward(&PoolId::Loans(ACA), ACA, 1_000)); - Rewards::add_share(&bob(), &PoolId::Loans(ACA), 100); + assert_ok!(Rewards::add_share(&bob(), &PoolId::Loans(ACA), 100)); assert_ok!(Rewards::accumulate_reward(&PoolId::Loans(ACA), ACA, 1_000)); assert_eq!( @@ -577,11 +577,11 @@ mod tests { vec![(PoolId::Loans(ACA), Rate::saturating_from_rational(50, 100)),] )); - Rewards::add_share(&alice(), &PoolId::Loans(ACA), 100); + assert_ok!(Rewards::add_share(&alice(), &PoolId::Loans(ACA), 100)); assert_ok!(Rewards::accumulate_reward(&PoolId::Loans(ACA), ACA, 1_000)); - Rewards::add_share(&bob(), &PoolId::Loans(ACA), 100); + assert_ok!(Rewards::add_share(&bob(), &PoolId::Loans(ACA), 100)); assert_ok!(Rewards::accumulate_reward(&PoolId::Loans(ACA), AUSD, 1_000)); - Rewards::remove_share(&alice(), &PoolId::Loans(ACA), 100); + assert_ok!(Rewards::remove_share(&alice(), &PoolId::Loans(ACA), 100)); assert_eq!( Incentives::get_pending_rewards(PoolId::Loans(ACA), alice(), vec![ACA, AUSD]), diff --git a/runtime/common/src/precompile/mock.rs b/runtime/common/src/precompile/mock.rs index ab869e5e6b..163581dadd 100644 --- a/runtime/common/src/precompile/mock.rs +++ b/runtime/common/src/precompile/mock.rs @@ -54,7 +54,7 @@ use sp_runtime::{ AccountId32, DispatchResult, FixedPointNumber, FixedU128, Perbill, Percent, RuntimeDebug, }; use sp_std::prelude::*; -use xcm::{prelude::*, v3::Xcm}; +use xcm::{prelude::*, v4::Xcm}; use xcm_builder::FixedWeightBounds; pub type AccountId = AccountId32; @@ -87,6 +87,19 @@ impl SortedMembers for Members { } } +parameter_types! { + pub const MaxFeedValues: u32 = 10; // max 10 values allowd to feed in one call. +} + +#[cfg(feature = "runtime-benchmarks")] +pub struct BenchmarkHelper; +#[cfg(feature = "runtime-benchmarks")] +impl orml_oracle::BenchmarkHelper for BenchmarkHelper { + fn get_currency_id_value_pairs() -> sp_runtime::BoundedVec<(CurrencyId, Price), MaxFeedValues> { + sp_runtime::BoundedVec::default() + } +} + impl orml_oracle::Config for Test { type RuntimeEvent = RuntimeEvent; type OnNewData = (); @@ -98,7 +111,9 @@ impl orml_oracle::Config for Test { type Members = Members; type WeightInfo = (); type MaxHasDispatchedSize = ConstU32<40>; - type MaxFeedValues = ConstU32<10>; + type MaxFeedValues = MaxFeedValues; + #[cfg(feature = "runtime-benchmarks")] + type BenchmarkHelper = BenchmarkHelper; } impl pallet_timestamp::Config for Test { @@ -141,7 +156,6 @@ impl pallet_balances::Config for Test { type RuntimeHoldReason = RuntimeHoldReason; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = ConstU32<50>; type MaxFreezes = (); } @@ -686,7 +700,7 @@ impl HomaSubAccountXcm for MockHomaSubAccountXcm { 1_000_000 } - fn get_parachain_fee(_: MultiLocation) -> Balance { + fn get_parachain_fee(_: Location) -> Balance { 1_000_000 } } @@ -725,11 +739,18 @@ impl module_homa::Config for Test { type WeightInfo = (); } +parameter_type_with_key! { + pub MinimalShares: |_pool_id: PoolId| -> Balance { + 0 + }; +} + impl orml_rewards::Config for Test { type Share = Balance; type Balance = Balance; type PoolId = PoolId; type CurrencyId = CurrencyId; + type MinimalShares = MinimalShares; type Handler = Incentives; } @@ -754,61 +775,55 @@ impl module_incentives::Config for Test { } parameter_types! { - pub UniversalLocation: InteriorMultiLocation = Here; + pub UniversalLocation: InteriorLocation = Here; } pub struct CurrencyIdConvert; -impl Convert> for CurrencyIdConvert { - fn convert(id: CurrencyId) -> Option { +impl Convert> for CurrencyIdConvert { + fn convert(id: CurrencyId) -> Option { use primitives::TokenSymbol::*; use CurrencyId::Token; match id { - Token(DOT) => Some(MultiLocation::parent()), + Token(DOT) => Some(Location::parent()), _ => None, } } } -impl Convert> for CurrencyIdConvert { - fn convert(location: MultiLocation) -> Option { +impl Convert> for CurrencyIdConvert { + fn convert(location: Location) -> Option { use primitives::TokenSymbol::*; use CurrencyId::Token; - if location == MultiLocation::parent() { + if location == Location::parent() { return Some(Token(DOT)); } None } } -impl Convert> for CurrencyIdConvert { - fn convert(asset: MultiAsset) -> Option { - if let MultiAsset { - id: Concrete(location), .. - } = asset - { - Self::convert(location) - } else { - None - } +impl Convert> for CurrencyIdConvert { + fn convert(asset: Asset) -> Option { + let AssetId(location) = asset.id; + Self::convert(location) } } parameter_types! { - pub SelfLocation: MultiLocation = MultiLocation::new(1, X1(Parachain(2000))); + pub SelfLocation: Location = Location::new(1, Parachain(2000)); } -pub struct AccountIdToMultiLocation; -impl Convert for AccountIdToMultiLocation { - fn convert(account: AccountId) -> MultiLocation { - X1(Junction::AccountId32 { +pub struct AccountIdToLocation; +impl Convert for AccountIdToLocation { + fn convert(account: AccountId) -> Location { + Junction::AccountId32 { network: None, id: account.into(), - }) + } .into() } } parameter_type_with_key! { - pub ParachainMinFee: |location: MultiLocation| -> Option { + pub ParachainMinFee: |location: Location| -> Option { #[allow(clippy::match_ref_pats)] // false positive match (location.parents, location.first_interior()) { (1, Some(Parachain(3))) => Some(100), @@ -832,19 +847,14 @@ impl ExecuteXcm for MockExec { unreachable!() } - fn execute( - _origin: impl Into, - _pre: Weightless, - _hash: &mut XcmHash, - _weight_credit: Weight, - ) -> Outcome { + fn execute(_origin: impl Into, _pre: Weightless, _hash: &mut XcmHash, _weight_credit: Weight) -> Outcome { unreachable!() } - fn execute_xcm_in_credit( - _origin: impl Into, + fn prepare_and_execute( + _origin: impl Into, message: Xcm, - _hash: XcmHash, + _id: &mut XcmHash, weight_limit: Weight, _weight_credit: Weight, ) -> Outcome { @@ -856,21 +866,25 @@ impl ExecuteXcm for MockExec { }), ) => { if require_weight_at_most.all_lte(weight_limit) { - Outcome::Complete(*require_weight_at_most) + Outcome::Complete { + used: *require_weight_at_most, + } } else { - Outcome::Error(XcmError::WeightLimitReached(*require_weight_at_most)) + Outcome::Error { + error: XcmError::WeightLimitReached(*require_weight_at_most), + } } } // use 1000 to decide that it's not supported. - _ => Outcome::Incomplete( - Weight::from_parts(1000, 1000).min(weight_limit), - XcmError::Unimplemented, - ), + _ => Outcome::Incomplete { + used: Weight::from_parts(1000, 1000).min(weight_limit), + error: XcmError::Unimplemented, + }, }; o } - fn charge_fees(_location: impl Into, _fees: MultiAssets) -> XcmResult { + fn charge_fees(_location: impl Into, _fees: Assets) -> XcmResult { Err(XcmError::Unimplemented) } } @@ -888,7 +902,7 @@ impl orml_xtokens::Config for Test { type Balance = Balance; type CurrencyId = CurrencyId; type CurrencyIdConvert = CurrencyIdConvert; - type AccountIdToMultiLocation = AccountIdToMultiLocation; + type AccountIdToLocation = AccountIdToLocation; type SelfLocation = SelfLocation; type XcmExecutor = MockExec; type Weigher = FixedWeightBounds; @@ -896,8 +910,10 @@ impl orml_xtokens::Config for Test { type UniversalLocation = UniversalLocation; type MaxAssetsForTransfer = MaxAssetsForTransfer; type MinXcmFee = ParachainMinFee; - type MultiLocationsFilter = Everything; + type LocationsFilter = Everything; type ReserveProvider = AbsoluteReserveProvider; + type RateLimiter = (); + type RateLimiterId = (); } parameter_types!( diff --git a/runtime/common/src/precompile/xtokens.rs b/runtime/common/src/precompile/xtokens.rs index 70ea64d247..b63bebe8c2 100644 --- a/runtime/common/src/precompile/xtokens.rs +++ b/runtime/common/src/precompile/xtokens.rs @@ -32,7 +32,7 @@ use sp_runtime::{traits::Convert, RuntimeDebug}; use sp_std::{marker::PhantomData, prelude::*}; use xcm::{ prelude::*, - v3::{MultiAsset, MultiAssets, MultiLocation}, + v4::{Asset, Assets, Location}, }; /// The `Xtokens` impl precompile. @@ -86,7 +86,7 @@ where let amount = input.balance_at(3)?; let dest_bytes: &[u8] = &input.bytes_at(4)?[..]; - let dest: MultiLocation = decode_multi_location(dest_bytes).ok_or(PrecompileFailure::Revert { + let dest: Location = decode_location(dest_bytes).ok_or(PrecompileFailure::Revert { exit_status: ExitRevert::Reverted, output: "invalid dest".into(), })?; @@ -129,13 +129,13 @@ where let from = input.account_id_at(1)?; let asset_bytes: &[u8] = &input.bytes_at(2)?[..]; - let asset: MultiAsset = decode_multi_asset(asset_bytes).ok_or(PrecompileFailure::Revert { + let asset: Asset = decode_asset(asset_bytes).ok_or(PrecompileFailure::Revert { exit_status: ExitRevert::Reverted, output: "invalid multi asset".into(), })?; let dest_bytes: &[u8] = &input.bytes_at(3)?[..]; - let dest: MultiLocation = decode_multi_location(dest_bytes).ok_or(PrecompileFailure::Revert { + let dest: Location = decode_location(dest_bytes).ok_or(PrecompileFailure::Revert { exit_status: ExitRevert::Reverted, output: "invalid dest".into(), })?; @@ -181,7 +181,7 @@ where let fee = input.balance_at(4)?; let dest_bytes: &[u8] = &input.bytes_at(5)?[..]; - let dest: MultiLocation = decode_multi_location(dest_bytes).ok_or(PrecompileFailure::Revert { + let dest: Location = decode_location(dest_bytes).ok_or(PrecompileFailure::Revert { exit_status: ExitRevert::Reverted, output: "invalid dest".into(), })?; @@ -224,19 +224,19 @@ where let from = input.account_id_at(1)?; let asset_bytes: &[u8] = &input.bytes_at(2)?[..]; - let asset: MultiAsset = decode_multi_asset(asset_bytes).ok_or(PrecompileFailure::Revert { + let asset: Asset = decode_asset(asset_bytes).ok_or(PrecompileFailure::Revert { exit_status: ExitRevert::Reverted, output: "invalid multi asset".into(), })?; let fee_bytes: &[u8] = &input.bytes_at(3)?[..]; - let fee: MultiAsset = decode_multi_asset(fee_bytes).ok_or(PrecompileFailure::Revert { + let fee: Asset = decode_asset(fee_bytes).ok_or(PrecompileFailure::Revert { exit_status: ExitRevert::Reverted, output: "invalid fee asset".into(), })?; let dest_bytes: &[u8] = &input.bytes_at(4)?[..]; - let dest: MultiLocation = decode_multi_location(dest_bytes).ok_or(PrecompileFailure::Revert { + let dest: Location = decode_location(dest_bytes).ok_or(PrecompileFailure::Revert { exit_status: ExitRevert::Reverted, output: "invalid dest".into(), })?; @@ -302,7 +302,7 @@ where let fee_item = input.u32_at(3)?; let dest_bytes: &[u8] = &input.bytes_at(4)?[..]; - let dest: MultiLocation = decode_multi_location(dest_bytes).ok_or(PrecompileFailure::Revert { + let dest: Location = decode_location(dest_bytes).ok_or(PrecompileFailure::Revert { exit_status: ExitRevert::Reverted, output: "invalid dest".into(), })?; @@ -345,19 +345,19 @@ where let from = input.account_id_at(1)?; let assets_bytes: &[u8] = &input.bytes_at(2)?[..]; - let assets: MultiAssets = decode_multi_assets(assets_bytes).ok_or(PrecompileFailure::Revert { + let assets: Assets = decode_assets(assets_bytes).ok_or(PrecompileFailure::Revert { exit_status: ExitRevert::Reverted, output: "invalid multi assets".into(), })?; let fee_item = input.u32_at(3)?; - let fee: &MultiAsset = assets.get(fee_item as usize).ok_or(PrecompileFailure::Revert { + let fee: &Asset = assets.get(fee_item as usize).ok_or(PrecompileFailure::Revert { exit_status: ExitRevert::Reverted, output: "invalid fee index".into(), })?; let dest_bytes: &[u8] = &input.bytes_at(4)?[..]; - let dest: MultiLocation = decode_multi_location(dest_bytes).ok_or(PrecompileFailure::Revert { + let dest: Location = decode_location(dest_bytes).ok_or(PrecompileFailure::Revert { exit_status: ExitRevert::Reverted, output: "invalid dest".into(), })?; @@ -400,16 +400,16 @@ where } } -fn decode_multi_asset(mut bytes: &[u8]) -> Option { - VersionedMultiAsset::decode(&mut bytes).ok()?.try_into().ok() +fn decode_asset(mut bytes: &[u8]) -> Option { + VersionedAsset::decode(&mut bytes).ok()?.try_into().ok() } -fn decode_multi_assets(mut bytes: &[u8]) -> Option { - VersionedMultiAssets::decode(&mut bytes).ok()?.try_into().ok() +fn decode_assets(mut bytes: &[u8]) -> Option { + VersionedAssets::decode(&mut bytes).ok()?.try_into().ok() } -fn decode_multi_location(mut bytes: &[u8]) -> Option { - VersionedMultiLocation::decode(&mut bytes).ok()?.try_into().ok() +fn decode_location(mut bytes: &[u8]) -> Option { + VersionedLocation::decode(&mut bytes).ok()?.try_into().ok() } struct Pricer(PhantomData); @@ -437,7 +437,7 @@ where let amount = input.balance_at(3)?; let mut dest_bytes: &[u8] = &input.bytes_at(4)?[..]; - let dest = VersionedMultiLocation::decode(&mut dest_bytes).map_err(|_| PrecompileFailure::Revert { + let dest = VersionedLocation::decode(&mut dest_bytes).map_err(|_| PrecompileFailure::Revert { exit_status: ExitRevert::Reverted, output: "invalid dest".into(), })?; @@ -450,13 +450,13 @@ where } Action::TransferMultiAsset => { let mut asset_bytes: &[u8] = &input.bytes_at(2)?[..]; - let asset = VersionedMultiAsset::decode(&mut asset_bytes).map_err(|_| PrecompileFailure::Revert { + let asset = VersionedAsset::decode(&mut asset_bytes).map_err(|_| PrecompileFailure::Revert { exit_status: ExitRevert::Reverted, output: "invalid multi asset".into(), })?; let mut dest_bytes: &[u8] = &input.bytes_at(3)?[..]; - let dest = VersionedMultiLocation::decode(&mut dest_bytes).map_err(|_| PrecompileFailure::Revert { + let dest = VersionedLocation::decode(&mut dest_bytes).map_err(|_| PrecompileFailure::Revert { exit_status: ExitRevert::Reverted, output: "invalid dest".into(), })?; @@ -472,7 +472,7 @@ where let amount = input.balance_at(3)?; let mut dest_bytes: &[u8] = &input.bytes_at(5)?[..]; - let dest = VersionedMultiLocation::decode(&mut dest_bytes).map_err(|_| PrecompileFailure::Revert { + let dest = VersionedLocation::decode(&mut dest_bytes).map_err(|_| PrecompileFailure::Revert { exit_status: ExitRevert::Reverted, output: "invalid dest".into(), })?; @@ -485,13 +485,13 @@ where } Action::TransferMultiAssetWithFee => { let mut asset_bytes: &[u8] = &input.bytes_at(2)?[..]; - let asset = VersionedMultiAsset::decode(&mut asset_bytes).map_err(|_| PrecompileFailure::Revert { + let asset = VersionedAsset::decode(&mut asset_bytes).map_err(|_| PrecompileFailure::Revert { exit_status: ExitRevert::Reverted, output: "invalid multi asset".into(), })?; let mut dest_bytes: &[u8] = &input.bytes_at(4)?[..]; - let dest = VersionedMultiLocation::decode(&mut dest_bytes).map_err(|_| PrecompileFailure::Revert { + let dest = VersionedLocation::decode(&mut dest_bytes).map_err(|_| PrecompileFailure::Revert { exit_status: ExitRevert::Reverted, output: "invalid dest".into(), })?; @@ -529,7 +529,7 @@ where let fee_item = input.u32_at(3)?; let mut dest_bytes: &[u8] = &input.bytes_at(4)?[..]; - let dest = VersionedMultiLocation::decode(&mut dest_bytes).map_err(|_| PrecompileFailure::Revert { + let dest = VersionedLocation::decode(&mut dest_bytes).map_err(|_| PrecompileFailure::Revert { exit_status: ExitRevert::Reverted, output: "invalid dest".into(), })?; @@ -543,16 +543,15 @@ where } Action::TransferMultiAssets => { let mut assets_bytes: &[u8] = &input.bytes_at(2)?[..]; - let assets = - VersionedMultiAssets::decode(&mut assets_bytes).map_err(|_| PrecompileFailure::Revert { - exit_status: ExitRevert::Reverted, - output: "invalid multi asset".into(), - })?; + let assets = VersionedAssets::decode(&mut assets_bytes).map_err(|_| PrecompileFailure::Revert { + exit_status: ExitRevert::Reverted, + output: "invalid multi asset".into(), + })?; let fee_item = input.u32_at(3)?; let mut dest_bytes: &[u8] = &input.bytes_at(4)?[..]; - let dest = VersionedMultiLocation::decode(&mut dest_bytes).map_err(|_| PrecompileFailure::Revert { + let dest = VersionedLocation::decode(&mut dest_bytes).map_err(|_| PrecompileFailure::Revert { exit_status: ExitRevert::Reverted, output: "invalid dest".into(), })?; @@ -587,19 +586,19 @@ mod tests { caller: alice_evm_addr(), apparent_value: Default::default(), }; - let dest: VersionedMultiLocation = VersionedMultiLocation::V3(MultiLocation::new( + let dest: VersionedLocation = VersionedLocation::V4(Location::new( 1, - X2( + [ Parachain(2002), Junction::AccountId32 { network: None, id: BOB.into(), }, - ), + ], )); assert_eq!( dest.encode(), - hex!("03010200491f01000202020202020202020202020202020202020202020202020202020202020202") + hex!("04010200491f01000202020202020202020202020202020202020202020202020202020202020202") ); let weight = WeightLimit::Unlimited; @@ -653,10 +652,10 @@ mod tests { caller: alice_evm_addr(), apparent_value: Default::default(), }; - let asset: VersionedMultiAsset = (Here, 1_000_000_000_000u128).into(); - assert_eq!(asset.encode(), hex!("0300000000070010a5d4e8")); + let asset: VersionedAsset = (Here, 1_000_000_000_000u128).into(); + assert_eq!(asset.encode(), hex!("04000000070010a5d4e8")); - let dest: VersionedMultiLocation = VersionedMultiLocation::V3( + let dest: VersionedLocation = VersionedLocation::V4( Junction::AccountId32 { network: None, id: BOB.into(), @@ -665,7 +664,7 @@ mod tests { ); assert_eq!( dest.encode(), - hex!("03000101000202020202020202020202020202020202020202020202020202020202020202") + hex!("04000101000202020202020202020202020202020202020202020202020202020202020202") ); let weight = WeightLimit::Limited(Weight::from_parts(100_000, 64 * 1024)); @@ -718,7 +717,7 @@ mod tests { caller: alice_evm_addr(), apparent_value: Default::default(), }; - let dest: VersionedMultiLocation = VersionedMultiLocation::V3( + let dest: VersionedLocation = VersionedLocation::V4( Junction::AccountId32 { network: None, id: BOB.into(), @@ -727,7 +726,7 @@ mod tests { ); assert_eq!( dest.encode(), - hex!("03000101000202020202020202020202020202020202020202020202020202020202020202") + hex!("04000101000202020202020202020202020202020202020202020202020202020202020202") ); let weight = WeightLimit::Limited(Weight::from_parts(100_000, 64 * 1024)); @@ -780,13 +779,13 @@ mod tests { caller: alice_evm_addr(), apparent_value: Default::default(), }; - let asset: VersionedMultiAsset = (Here, 1_000_000_000_000u128).into(); - assert_eq!(asset.encode(), hex!("0300000000070010a5d4e8")); + let asset: VersionedAsset = (Here, 1_000_000_000_000u128).into(); + assert_eq!(asset.encode(), hex!("04000000070010a5d4e8")); - let fee: VersionedMultiAsset = (Here, 1_000_000).into(); - assert_eq!(fee.encode(), hex!("030000000002093d00")); + let fee: VersionedAsset = (Here, 1_000_000).into(); + assert_eq!(fee.encode(), hex!("0400000002093d00")); - let dest: VersionedMultiLocation = VersionedMultiLocation::V3( + let dest: VersionedLocation = VersionedLocation::V4( Junction::AccountId32 { network: None, id: BOB.into(), @@ -795,7 +794,7 @@ mod tests { ); assert_eq!( dest.encode(), - hex!("03000101000202020202020202020202020202020202020202020202020202020202020202") + hex!("04000101000202020202020202020202020202020202020202020202020202020202020202") ); let weight = WeightLimit::Limited(Weight::from_parts(100_000, 64 * 1024)); @@ -854,7 +853,7 @@ mod tests { caller: alice_evm_addr(), apparent_value: Default::default(), }; - let dest: VersionedMultiLocation = VersionedMultiLocation::V3( + let dest: VersionedLocation = VersionedLocation::V4( Junction::AccountId32 { network: None, id: BOB.into(), @@ -863,7 +862,7 @@ mod tests { ); assert_eq!( dest.encode(), - hex!("03000101000202020202020202020202020202020202020202020202020202020202020202") + hex!("04000101000202020202020202020202020202020202020202020202020202020202020202") ); let weight = WeightLimit::Limited(Weight::from_parts(100_000, 64 * 1024)); @@ -927,11 +926,10 @@ mod tests { caller: alice_evm_addr(), apparent_value: Default::default(), }; - let assets: VersionedMultiAssets = - VersionedMultiAssets::from(MultiAssets::from((Here, 1_000_000_000_000u128))); - assert_eq!(assets.encode(), hex!("030400000000070010a5d4e8")); + let assets: VersionedAssets = VersionedAssets::from(Assets::from((Here, 1_000_000_000_000u128))); + assert_eq!(assets.encode(), hex!("0404000000070010a5d4e8")); - let dest: VersionedMultiLocation = VersionedMultiLocation::V3( + let dest: VersionedLocation = VersionedLocation::V4( Junction::AccountId32 { network: None, id: BOB.into(), @@ -940,7 +938,7 @@ mod tests { ); assert_eq!( dest.encode(), - hex!("03000101000202020202020202020202020202020202020202020202020202020202020202") + hex!("04000101000202020202020202020202020202020202020202020202020202020202020202") ); let weight = WeightLimit::Limited(Weight::from_parts(100_000, 64 * 1024)); diff --git a/runtime/common/src/xcm_config.rs b/runtime/common/src/xcm_config.rs index bd6aa786fc..3660e7001c 100644 --- a/runtime/common/src/xcm_config.rs +++ b/runtime/common/src/xcm_config.rs @@ -33,7 +33,7 @@ use xcm_builder::{ TakeRevenue, TakeWeightCredit, TrailingSetTopicAsId, WithComputedOrigin, }; -/// Type for specifying how a `MultiLocation` can be converted into an `AccountId`. This is used +/// Type for specifying how a `Location` can be converted into an `AccountId`. This is used /// when determining ownership of accounts for asset transacting and when attempting to use XCM /// `Transact` in order to determine the dispatch RuntimeOrigin. pub type LocationToAccountId = ( @@ -95,12 +95,12 @@ impl TakeRevenue for ToTreasury where AcalaTreasuryAccount: Get, - CurrencyIdConvert: Convert>, + CurrencyIdConvert: Convert>, Currencies: MultiCurrency, { - fn take_revenue(revenue: MultiAsset) { - if let MultiAsset { - id: Concrete(location), + fn take_revenue(revenue: Asset) { + if let Asset { + id: AssetId(location), fun: Fungible(amount), } = revenue { @@ -114,19 +114,19 @@ where } } -pub struct AccountIdToMultiLocation; -impl Convert for AccountIdToMultiLocation { - fn convert(account: AccountId) -> MultiLocation { - X1(AccountId32 { +pub struct AccountIdToLocation; +impl Convert for AccountIdToLocation { + fn convert(account: AccountId) -> Location { + AccountId32 { network: None, id: account.into(), - }) + } .into() } } parameter_types! { - pub const RelayLocation: MultiLocation = MultiLocation::parent(); + pub const RelayLocation: Location = Location::parent(); } // define assets that can be trusted to teleport by remotes diff --git a/runtime/common/src/xcm_impl.rs b/runtime/common/src/xcm_impl.rs index ef5e376738..cfde56f8bf 100644 --- a/runtime/common/src/xcm_impl.rs +++ b/runtime/common/src/xcm_impl.rs @@ -26,24 +26,24 @@ use primitives::{evm::EvmAddress, Balance, CurrencyId}; use sp_core::bounded::BoundedVec; use sp_runtime::{traits::Convert, FixedPointNumber, FixedU128}; use sp_std::{marker::PhantomData, prelude::*}; -use xcm::{prelude::*, v3::Weight as XcmWeight}; +use xcm::v4::{prelude::*, Assets, Weight as XcmWeight}; use xcm_builder::TakeRevenue; use xcm_executor::{ traits::{DropAssets, WeightTrader, XcmAssetTransfers}, - Assets, + AssetsInHolding, }; -pub fn local_currency_location(key: CurrencyId) -> Option { - Some(MultiLocation::new( +pub fn local_currency_location(key: CurrencyId) -> Option { + Some(Location::new( 0, - X1(Junction::from(BoundedVec::try_from(key.encode()).ok()?)), + Junction::from(BoundedVec::try_from(key.encode()).ok()?), )) } -pub fn native_currency_location(para_id: u32, key: Vec) -> Option { - Some(MultiLocation::new( +pub fn native_currency_location(para_id: u32, key: Vec) -> Option { + Some(Location::new( 1, - X2(Parachain(para_id), Junction::from(BoundedVec::try_from(key).ok()?)), + [Parachain(para_id), Junction::from(BoundedVec::try_from(key).ok()?)], )) } @@ -81,17 +81,17 @@ impl DropAssets for AcalaDropAssets where X: DropAssets, T: TakeRevenue, - C: Convert>, + C: Convert>, NC: Get, NB: Get, GK: GetByKey, { - fn drop_assets(origin: &MultiLocation, assets: Assets, context: &XcmContext) -> XcmWeight { - let multi_assets: Vec = assets.into(); - let mut asset_traps: Vec = vec![]; + fn drop_assets(origin: &Location, assets: AssetsInHolding, context: &XcmContext) -> XcmWeight { + let multi_assets: Vec = assets.into(); + let mut asset_traps: Vec = vec![]; for asset in multi_assets { - if let MultiAsset { - id: Concrete(location), + if let Asset { + id: AssetId(location), fun: Fungible(amount), } = asset.clone() { @@ -125,7 +125,7 @@ pub struct FixedRateOfAsset, R: TakeRevenue, M: BuyWeightRa weight: XcmWeight, amount: u128, ratio: FixedU128, - multi_location: Option, + location: Option, _marker: PhantomData<(FixedRate, R, M)>, } @@ -135,12 +135,17 @@ impl, R: TakeRevenue, M: BuyWeightRate> WeightTrader for Fi weight: XcmWeight::zero(), amount: 0, ratio: Default::default(), - multi_location: None, + location: None, _marker: PhantomData, } } - fn buy_weight(&mut self, weight: XcmWeight, payment: Assets, _context: &XcmContext) -> Result { + fn buy_weight( + &mut self, + weight: XcmWeight, + payment: AssetsInHolding, + _context: &XcmContext, + ) -> Result { log::trace!(target: "xcm::weight", "buy_weight weight: {:?}, payment: {:?}", weight, payment); // only support first fungible assets now. @@ -150,44 +155,43 @@ impl, R: TakeRevenue, M: BuyWeightRate> WeightTrader for Fi .next() .map_or(Err(XcmError::TooExpensive), |v| Ok(v.0))?; - if let AssetId::Concrete(ref multi_location) = asset_id { - log::debug!(target: "xcm::weight", "buy_weight multi_location: {:?}", multi_location); - - if let Some(ratio) = M::calculate_rate(*multi_location) { - // The WEIGHT_REF_TIME_PER_SECOND is non-zero. - let weight_ratio = - FixedU128::saturating_from_rational(weight.ref_time() as u128, WEIGHT_REF_TIME_PER_SECOND as u128); - let amount = ratio.saturating_mul_int(weight_ratio.saturating_mul_int(FixedRate::get())); - - let required = MultiAsset { - id: *asset_id, - fun: Fungible(amount), - }; - - log::trace!( - target: "xcm::weight", "buy_weight payment: {:?}, required: {:?}, fixed_rate: {:?}, ratio: {:?}, weight_ratio: {:?}", - payment, required, FixedRate::get(), ratio, weight_ratio - ); - let unused = payment - .clone() - .checked_sub(required) - .map_err(|_| XcmError::TooExpensive)?; - self.weight = self.weight.saturating_add(weight); - self.amount = self.amount.saturating_add(amount); - self.ratio = ratio; - self.multi_location = Some(*multi_location); - return Ok(unused); - } + let AssetId(ref location) = asset_id; + log::debug!(target: "xcm::weight", "buy_weight location: {:?}", location); + + if let Some(ratio) = M::calculate_rate(location.clone()) { + // The WEIGHT_REF_TIME_PER_SECOND is non-zero. + let weight_ratio = + FixedU128::saturating_from_rational(weight.ref_time() as u128, WEIGHT_REF_TIME_PER_SECOND as u128); + let amount = ratio.saturating_mul_int(weight_ratio.saturating_mul_int(FixedRate::get())); + + let required = Asset { + id: asset_id.clone(), + fun: Fungible(amount), + }; + + log::trace!( + target: "xcm::weight", "buy_weight payment: {:?}, required: {:?}, fixed_rate: {:?}, ratio: {:?}, weight_ratio: {:?}", + payment, required, FixedRate::get(), ratio, weight_ratio + ); + let unused = payment + .clone() + .checked_sub(required) + .map_err(|_| XcmError::TooExpensive)?; + self.weight = self.weight.saturating_add(weight); + self.amount = self.amount.saturating_add(amount); + self.ratio = ratio; + self.location = Some(location.clone()); + return Ok(unused); } log::trace!(target: "xcm::weight", "no concrete fungible asset"); Err(XcmError::TooExpensive) } - fn refund_weight(&mut self, weight: XcmWeight, _context: &XcmContext) -> Option { + fn refund_weight(&mut self, weight: XcmWeight, _context: &XcmContext) -> Option { log::trace!( - target: "xcm::weight", "refund_weight weight: {:?}, weight: {:?}, amount: {:?}, ratio: {:?}, multi_location: {:?}", - weight, self.weight, self.amount, self.ratio, self.multi_location + target: "xcm::weight", "refund_weight weight: {:?}, weight: {:?}, amount: {:?}, ratio: {:?}, location: {:?}", + weight, self.weight, self.amount, self.ratio, self.location ); let weight = weight.min(self.weight); let weight_ratio = @@ -200,14 +204,8 @@ impl, R: TakeRevenue, M: BuyWeightRate> WeightTrader for Fi self.amount = self.amount.saturating_sub(amount); log::trace!(target: "xcm::weight", "refund_weight amount: {:?}", amount); - if amount > 0 && self.multi_location.is_some() { - Some( - ( - *self.multi_location.as_ref().expect("checked is non-empty; qed"), - amount, - ) - .into(), - ) + if amount > 0 && self.location.is_some() { + Some((self.location.clone().expect("checked is non-empty; qed"), amount).into()) } else { None } @@ -216,15 +214,9 @@ impl, R: TakeRevenue, M: BuyWeightRate> WeightTrader for Fi impl, R: TakeRevenue, M: BuyWeightRate> Drop for FixedRateOfAsset { fn drop(&mut self) { - log::trace!(target: "xcm::weight", "take revenue, weight: {:?}, amount: {:?}, multi_location: {:?}", self.weight, self.amount, self.multi_location); - if self.amount > 0 && self.multi_location.is_some() { - R::take_revenue( - ( - *self.multi_location.as_ref().expect("checked is non-empty; qed"), - self.amount, - ) - .into(), - ); + log::trace!(target: "xcm::weight", "take revenue, weight: {:?}, amount: {:?}, location: {:?}", self.weight, self.amount, self.location); + if self.amount > 0 && self.location.is_some() { + R::take_revenue((self.location.clone().expect("checked is non-empty; qed"), self.amount).into()); } } } @@ -248,7 +240,7 @@ impl< } fn execute( - origin: impl Into, + origin: impl Into, weighed_message: Self::Prepared, message_hash: &mut XcmHash, weight_credit: XcmWeight, @@ -270,7 +262,7 @@ impl< res } - fn charge_fees(origin: impl Into, fees: MultiAssets) -> XcmResult { + fn charge_fees(origin: impl Into, fees: Assets) -> XcmResult { xcm_executor::XcmExecutor::::charge_fees(origin, fees) } } @@ -292,16 +284,10 @@ where AccountId: From<[u8; 32]> + Into<[u8; 32]> + Clone, AddressMapping: module_support::AddressMapping, { - fn convert_location(location: &MultiLocation) -> Option { - let key = match location { - MultiLocation { - parents: 0, - interior: X1(AccountKey20 { key, network: None }), - } => key, - MultiLocation { - parents: 0, - interior: X1(AccountKey20 { key, network }), - } if *network == Network::get() => key, + fn convert_location(location: &Location) -> Option { + let key = match location.unpack() { + (0, [Junction::AccountKey20 { key, network: None }]) => key, + (0, [Junction::AccountKey20 { key, network }]) if *network == Network::get() => key, _ => return None, }; @@ -319,14 +305,14 @@ mod tests { pub struct MockNoneBuyWeightRate; impl BuyWeightRate for MockNoneBuyWeightRate { - fn calculate_rate(_: MultiLocation) -> Option { + fn calculate_rate(_: Location) -> Option { None } } pub struct MockFixedBuyWeightRate>(PhantomData); impl> BuyWeightRate for MockFixedBuyWeightRate { - fn calculate_rate(_: MultiLocation) -> Option { + fn calculate_rate(_: Location) -> Option { Some(T::get()) } } @@ -405,7 +391,7 @@ mod tests { #[test] fn buy_weight_rate_mock_works() { new_test_ext().execute_with(|| { - let asset: MultiAsset = (Parent, 100).into(); + let asset: Asset = (Parent, 100).into(); let assets: Assets = asset.into(); let mut trader = >::new(); let ctx = XcmContext { @@ -415,7 +401,7 @@ mod tests { }; let buy_weight = trader.buy_weight( XcmWeight::from_parts(WEIGHT_REF_TIME_PER_SECOND, 0), - assets.clone(), + assets.clone().into(), &ctx, ); assert_noop!(buy_weight, XcmError::TooExpensive); @@ -423,12 +409,12 @@ mod tests { let mut trader = >>::new(); let buy_weight = trader.buy_weight( XcmWeight::from_parts(WEIGHT_REF_TIME_PER_SECOND, 0), - assets.clone(), + assets.clone().into(), &ctx, ); - let asset: MultiAsset = (Parent, 90).into(); + let asset: Asset = (Parent, 90).into(); let assets: Assets = asset.into(); - assert_ok!(buy_weight, assets.clone()); + assert_ok!(buy_weight, assets.clone().into()); }); } } diff --git a/runtime/integration-tests/src/dex.rs b/runtime/integration-tests/src/dex.rs index 39aa7e2666..39233f3a16 100644 --- a/runtime/integration-tests/src/dex.rs +++ b/runtime/integration-tests/src/dex.rs @@ -221,12 +221,12 @@ fn test_trading_pair() { assert_ok!(AssetRegistry::register_foreign_asset( RuntimeOrigin::root(), Box::new( - MultiLocation::new( + Location::new( 1, - X2( + [ Parachain(2002), Junction::from(BoundedVec::try_from(KAR.encode()).unwrap()) - ) + ] ) .into() ), diff --git a/runtime/integration-tests/src/honzon.rs b/runtime/integration-tests/src/honzon.rs index cee8322fd3..3733c9fe2d 100644 --- a/runtime/integration-tests/src/honzon.rs +++ b/runtime/integration-tests/src/honzon.rs @@ -730,6 +730,17 @@ fn cdp_engine_minimum_collateral_amount_works() { assert_eq!(relaychain_minimum_collateral_amount, cent(KSM)); } + // Native add shares cannot be below the minimum share + assert_noop!( + CdpEngine::adjust_position( + &AccountId::from(ALICE), + NATIVE_CURRENCY, + (NativeTokenExistentialDeposit::get() - 1) as i128, + 0i128, + ), + orml_rewards::Error::::ShareBelowMinimal + ); + // Native collateral cannot be below the minimum when debit is 0 assert_noop!( CdpEngine::adjust_position( @@ -741,6 +752,17 @@ fn cdp_engine_minimum_collateral_amount_works() { module_cdp_engine::Error::::CollateralAmountBelowMinimum ); + // Other token add shares cannot be below the minimum share + assert_noop!( + CdpEngine::adjust_position( + &AccountId::from(ALICE), + RELAY_CHAIN_CURRENCY, + (ExistentialDeposits::get(&RELAY_CHAIN_CURRENCY) - 1) as i128, + 0i128, + ), + orml_rewards::Error::::ShareBelowMinimal + ); + // Other token collaterals cannot be below the minimum when debit is 0 assert_noop!( CdpEngine::adjust_position( diff --git a/runtime/integration-tests/src/runtime.rs b/runtime/integration-tests/src/runtime.rs index bc1af3961a..baa917a116 100644 --- a/runtime/integration-tests/src/runtime.rs +++ b/runtime/integration-tests/src/runtime.rs @@ -36,50 +36,50 @@ fn currency_id_convert() { assert_eq!( CurrencyIdConvert::convert(RELAY_CHAIN_CURRENCY), - Some(MultiLocation::parent()) + Some(Location::parent()) ); assert_eq!( CurrencyIdConvert::convert(NATIVE_CURRENCY), - Some(MultiLocation::sibling_parachain_general_key( + Some(Location::sibling_parachain_general_key( id, NATIVE_CURRENCY.encode().try_into().unwrap() )) ); assert_eq!( CurrencyIdConvert::convert(USD_CURRENCY), - Some(MultiLocation::sibling_parachain_general_key( + Some(Location::sibling_parachain_general_key( id, USD_CURRENCY.encode().try_into().unwrap() )) ); assert_eq!( CurrencyIdConvert::convert(LIQUID_CURRENCY), - Some(MultiLocation::sibling_parachain_general_key( + Some(Location::sibling_parachain_general_key( id, LIQUID_CURRENCY.encode().try_into().unwrap() )) ); assert_eq!( - CurrencyIdConvert::convert(MultiLocation::parent()), + CurrencyIdConvert::convert(Location::parent()), Some(RELAY_CHAIN_CURRENCY) ); assert_eq!( - CurrencyIdConvert::convert(MultiLocation::sibling_parachain_general_key( + CurrencyIdConvert::convert(Location::sibling_parachain_general_key( id, NATIVE_CURRENCY.encode().try_into().unwrap() )), Some(NATIVE_CURRENCY) ); assert_eq!( - CurrencyIdConvert::convert(MultiLocation::sibling_parachain_general_key( + CurrencyIdConvert::convert(Location::sibling_parachain_general_key( id, USD_CURRENCY.encode().try_into().unwrap() )), Some(USD_CURRENCY) ); assert_eq!( - CurrencyIdConvert::convert(MultiLocation::sibling_parachain_general_key( + CurrencyIdConvert::convert(Location::sibling_parachain_general_key( id, LIQUID_CURRENCY.encode().try_into().unwrap() )), @@ -95,43 +95,43 @@ fn currency_id_convert() { assert_eq!(CurrencyIdConvert::convert(TAP), None); assert_eq!( - CurrencyIdConvert::convert(MultiLocation::sibling_parachain_general_key( + CurrencyIdConvert::convert(Location::sibling_parachain_general_key( id, KAR.encode().try_into().unwrap() )), None ); assert_eq!( - CurrencyIdConvert::convert(MultiLocation::sibling_parachain_general_key( + CurrencyIdConvert::convert(Location::sibling_parachain_general_key( id, KUSD.encode().try_into().unwrap() )), None ); assert_eq!( - CurrencyIdConvert::convert(MultiLocation::sibling_parachain_general_key( + CurrencyIdConvert::convert(Location::sibling_parachain_general_key( id, KSM.encode().try_into().unwrap() )), None ); assert_eq!( - CurrencyIdConvert::convert(MultiLocation::sibling_parachain_general_key( + CurrencyIdConvert::convert(Location::sibling_parachain_general_key( id, LKSM.encode().try_into().unwrap() )), None ); assert_eq!( - CurrencyIdConvert::convert(MultiLocation::sibling_parachain_general_key( + CurrencyIdConvert::convert(Location::sibling_parachain_general_key( id, TAP.encode().try_into().unwrap() )), None ); - let native_currency: MultiAsset = ( - MultiLocation::sibling_parachain_general_key(id, NATIVE_CURRENCY.encode().try_into().unwrap()), + let native_currency: Asset = ( + Location::sibling_parachain_general_key(id, NATIVE_CURRENCY.encode().try_into().unwrap()), 1, ) .into(); @@ -147,56 +147,56 @@ fn currency_id_convert() { assert_eq!(CurrencyIdConvert::convert(TAP), None); assert_eq!( - CurrencyIdConvert::convert(MultiLocation::sibling_parachain_general_key( + CurrencyIdConvert::convert(Location::sibling_parachain_general_key( id, ACA.encode().try_into().unwrap() )), None ); assert_eq!( - CurrencyIdConvert::convert(MultiLocation::sibling_parachain_general_key( + CurrencyIdConvert::convert(Location::sibling_parachain_general_key( id, AUSD.encode().try_into().unwrap() )), None ); assert_eq!( - CurrencyIdConvert::convert(MultiLocation::sibling_parachain_general_key( + CurrencyIdConvert::convert(Location::sibling_parachain_general_key( id, DOT.encode().try_into().unwrap() )), None ); assert_eq!( - CurrencyIdConvert::convert(MultiLocation::sibling_parachain_general_key( + CurrencyIdConvert::convert(Location::sibling_parachain_general_key( id, LDOT.encode().try_into().unwrap() )), None ); assert_eq!( - CurrencyIdConvert::convert(MultiLocation::sibling_parachain_general_key( + CurrencyIdConvert::convert(Location::sibling_parachain_general_key( id, TAP.encode().try_into().unwrap() )), None ); assert_eq!( - CurrencyIdConvert::convert(MultiLocation::sibling_parachain_general_key( + CurrencyIdConvert::convert(Location::sibling_parachain_general_key( id, TAI.encode().try_into().unwrap() )), Some(TAI) ); assert_eq!( - CurrencyIdConvert::convert(MultiLocation::sibling_parachain_general_key( + CurrencyIdConvert::convert(Location::sibling_parachain_general_key( parachains::bifrost::ID, parachains::bifrost::BNC_KEY.to_vec().try_into().unwrap() )), Some(BNC) ); assert_eq!( - CurrencyIdConvert::convert(MultiLocation::sibling_parachain_general_key( + CurrencyIdConvert::convert(Location::sibling_parachain_general_key( parachains::bifrost::ID, parachains::bifrost::VSKSM_KEY.to_vec().try_into().unwrap() )), @@ -205,21 +205,21 @@ fn currency_id_convert() { assert_eq!( CurrencyIdConvert::convert(BNC), - Some(MultiLocation::sibling_parachain_general_key( + Some(Location::sibling_parachain_general_key( parachains::bifrost::ID, parachains::bifrost::BNC_KEY.to_vec().try_into().unwrap() )) ); assert_eq!( CurrencyIdConvert::convert(VSKSM), - Some(MultiLocation::sibling_parachain_general_key( + Some(Location::sibling_parachain_general_key( parachains::bifrost::ID, parachains::bifrost::VSKSM_KEY.to_vec().try_into().unwrap() )) ); - let native_currency: MultiAsset = ( - MultiLocation::sibling_parachain_general_key(id, NATIVE_CURRENCY.encode().try_into().unwrap()), + let native_currency: Asset = ( + Location::sibling_parachain_general_key(id, NATIVE_CURRENCY.encode().try_into().unwrap()), 1, ) .into(); @@ -235,50 +235,50 @@ fn currency_id_convert() { assert_eq!(CurrencyIdConvert::convert(TAI), None); assert_eq!( - CurrencyIdConvert::convert(MultiLocation::sibling_parachain_general_key( + CurrencyIdConvert::convert(Location::sibling_parachain_general_key( id, KAR.encode().try_into().unwrap() )), None ); assert_eq!( - CurrencyIdConvert::convert(MultiLocation::sibling_parachain_general_key( + CurrencyIdConvert::convert(Location::sibling_parachain_general_key( id, KUSD.encode().try_into().unwrap() )), None ); assert_eq!( - CurrencyIdConvert::convert(MultiLocation::sibling_parachain_general_key( + CurrencyIdConvert::convert(Location::sibling_parachain_general_key( id, KSM.encode().try_into().unwrap() )), None ); assert_eq!( - CurrencyIdConvert::convert(MultiLocation::sibling_parachain_general_key( + CurrencyIdConvert::convert(Location::sibling_parachain_general_key( id, LKSM.encode().try_into().unwrap() )), None ); assert_eq!( - CurrencyIdConvert::convert(MultiLocation::sibling_parachain_general_key( + CurrencyIdConvert::convert(Location::sibling_parachain_general_key( id, TAI.encode().try_into().unwrap() )), None ); assert_eq!( - CurrencyIdConvert::convert(MultiLocation::sibling_parachain_general_key( + CurrencyIdConvert::convert(Location::sibling_parachain_general_key( id, TAP.encode().try_into().unwrap() )), Some(TAP) ); - let native_currency: MultiAsset = ( - MultiLocation::sibling_parachain_general_key(id, NATIVE_CURRENCY.encode().try_into().unwrap()), + let native_currency: Asset = ( + Location::sibling_parachain_general_key(id, NATIVE_CURRENCY.encode().try_into().unwrap()), 1, ) .into(); @@ -297,23 +297,23 @@ fn parachain_subaccounts_are_unique() { ); assert_eq!( - create_x2_parachain_multilocation(0), - MultiLocation::new( + create_x2_parachain_location(0), + Location::new( 1, - X1(Junction::AccountId32 { + [Junction::AccountId32 { network: None, id: hex_literal::hex!["d7b8926b326dd349355a9a7cca6606c1e0eb6fd2b506066b518c7155ff0d8297"].into(), - }) + }] ), ); assert_eq!( - create_x2_parachain_multilocation(1), - MultiLocation::new( + create_x2_parachain_location(1), + Location::new( 1, - X1(Junction::AccountId32 { + [Junction::AccountId32 { network: None, id: hex_literal::hex!["74d37d762e06c6841a5dad64463a9afe0684f7e45245f6a7296ca613cca74669"].into(), - }) + }] ), ); }); @@ -490,7 +490,7 @@ mod mandala_only_tests { bytes.len() ), Ok(ValidTransaction { - priority: 51967622776640000, + priority: 54694050570500000, requires: vec![], provides: vec![], longevity: 18_446_744_073_709_551_615, diff --git a/runtime/integration-tests/src/setup.rs b/runtime/integration-tests/src/setup.rs index 8fcb7766a3..7e63367936 100644 --- a/runtime/integration-tests/src/setup.rs +++ b/runtime/integration-tests/src/setup.rs @@ -30,7 +30,7 @@ pub use runtime_common::{ cent, dollar, millicent, FixedRateOfAsset, MaxTipsOfPriority, ProxyType, Ratio, TipPerWeightStep, ACA, AUSD, DOT, LDOT, }; -pub use xcm::v3::{prelude::*, Weight as XcmWeight}; +pub use xcm::v4::{prelude::*, Weight as XcmWeight}; pub use xcm_executor::XcmExecutor; pub use module_support::{ @@ -56,8 +56,6 @@ pub use sp_runtime::{ Perbill, Permill, }; -pub use xcm::v3::prelude::*; - #[cfg(feature = "with-mandala-runtime")] pub use mandala_imports::*; #[cfg(feature = "with-mandala-runtime")] @@ -65,7 +63,7 @@ mod mandala_imports { pub use mandala_runtime::xcm_config::*; use mandala_runtime::AlternativeFeeSurplus; pub use mandala_runtime::{ - create_x2_parachain_multilocation, get_all_module_accounts, AcalaOracle, AcalaSwap, AccountId, AggregatedDex, + create_x2_parachain_location, get_all_module_accounts, AcalaOracle, AcalaSwap, AccountId, AggregatedDex, AssetRegistry, AuctionManager, Aura, Authority, AuthoritysOriginId, Authorship, Balance, Balances, BlockNumber, CDPEnginePalletId, CDPTreasuryPalletId, CdpEngine, CdpTreasury, CollatorSelection, CreateClassDeposit, CreateTokenDeposit, Currencies, CurrencyId, DataDepositPerByte, DealWithFees, DefaultDebitExchangeRate, @@ -111,7 +109,7 @@ mod karura_imports { pub use karura_runtime::xcm_config::*; use karura_runtime::AlternativeFeeSurplus; pub use karura_runtime::{ - constants::parachains, create_x2_parachain_multilocation, get_all_module_accounts, AcalaOracle, AcalaSwap, + constants::parachains, create_x2_parachain_location, get_all_module_accounts, AcalaOracle, AcalaSwap, AccountId, AggregatedDex, AssetRegistry, AuctionManager, Aura, Authority, AuthoritysOriginId, Balance, Balances, BlockNumber, CDPEnginePalletId, CDPTreasuryPalletId, CdpEngine, CdpTreasury, CreateClassDeposit, CreateTokenDeposit, Currencies, CurrencyId, DataDepositPerByte, DefaultDebitExchangeRate, DefaultExchangeRate, @@ -155,7 +153,7 @@ mod acala_imports { pub use acala_runtime::xcm_config::*; use acala_runtime::AlternativeFeeSurplus; pub use acala_runtime::{ - constants::parachains, create_x2_parachain_multilocation, get_all_module_accounts, AcalaFoundationAccounts, + constants::parachains, create_x2_parachain_location, get_all_module_accounts, AcalaFoundationAccounts, AcalaOracle, AcalaSwap, AccountId, AggregatedDex, AssetRegistry, AuctionManager, Aura, Authority, AuthoritysOriginId, Balance, Balances, BlockNumber, CDPEnginePalletId, CDPTreasuryPalletId, CdpEngine, CdpTreasury, CreateClassDeposit, CreateTokenDeposit, Currencies, CurrencyId, DataDepositPerByte, diff --git a/runtime/integration-tests/src/stable_asset.rs b/runtime/integration-tests/src/stable_asset.rs index aae712ecea..e3b3e0d918 100644 --- a/runtime/integration-tests/src/stable_asset.rs +++ b/runtime/integration-tests/src/stable_asset.rs @@ -392,12 +392,12 @@ fn three_usd_pool_works() { assert_ok!(AssetRegistry::register_foreign_asset( RuntimeOrigin::root(), Box::new( - MultiLocation::new( + Location::new( 1, - X2( + [ Parachain(1000), Junction::from(BoundedVec::try_from("USDT".as_bytes().to_vec()).unwrap()) - ) + ] ) .into() ), diff --git a/runtime/integration-tests/src/treasury.rs b/runtime/integration-tests/src/treasury.rs index c4255af5ad..6d97fa8e25 100644 --- a/runtime/integration-tests/src/treasury.rs +++ b/runtime/integration-tests/src/treasury.rs @@ -35,10 +35,10 @@ fn treasury_should_take_xcm_execution_revenue() { let shallow_weight = 600_000_000; #[cfg(feature = "with-acala-runtime")] let shallow_weight = 600_000_000; - let origin = MultiLocation::parent(); + let origin = Location::parent(); // receive relay chain token - let asset: MultiAsset = (MultiLocation::parent(), dot_amount).into(); + let asset: Asset = (Location::parent(), dot_amount).into(); let mut msg = Xcm(vec![ ReserveAssetDeposited(asset.clone().into()), BuyExecution { @@ -47,10 +47,10 @@ fn treasury_should_take_xcm_execution_revenue() { }, DepositAsset { assets: AllCounted(u32::max_value()).into(), - beneficiary: X1(Junction::AccountId32 { + beneficiary: Junction::AccountId32 { network: None, id: ALICE, - }) + } .into(), }, ]); @@ -62,10 +62,12 @@ fn treasury_should_take_xcm_execution_revenue() { assert_eq!(Tokens::free_balance(RELAY_CHAIN_CURRENCY, &TreasuryAccount::get()), 0); let weight_limit = debt; - let hash = msg.using_encoded(sp_io::hashing::blake2_256); + let mut hash = msg.using_encoded(sp_io::hashing::blake2_256); assert_eq!( - XcmExecutor::::execute_xcm(origin, msg, hash, weight_limit), - Outcome::Complete(Weight::from_parts(shallow_weight, 0)) + XcmExecutor::::prepare_and_execute(origin, msg, &mut hash, weight_limit, Weight::zero()), + Outcome::Complete { + used: Weight::from_parts(shallow_weight, 0) + } ); assert_eq!(Tokens::free_balance(RELAY_CHAIN_CURRENCY, &ALICE.into()), actual_amount); diff --git a/runtime/karura/Cargo.toml b/runtime/karura/Cargo.toml index e63c2c6e67..d6bd2cb3e0 100644 --- a/runtime/karura/Cargo.toml +++ b/runtime/karura/Cargo.toml @@ -296,6 +296,7 @@ runtime-benchmarks = [ "xcm-executor/runtime-benchmarks", "orml-authority/runtime-benchmarks", + "orml-oracle/runtime-benchmarks", "orml-parameters/runtime-benchmarks", "orml-tokens/runtime-benchmarks", "orml-vesting/runtime-benchmarks", diff --git a/runtime/karura/src/lib.rs b/runtime/karura/src/lib.rs index 364c062e92..5239109867 100644 --- a/runtime/karura/src/lib.rs +++ b/runtime/karura/src/lib.rs @@ -115,7 +115,7 @@ use runtime_common::{ RuntimeBlockLength, RuntimeBlockWeights, TechnicalCommitteeInstance, TechnicalCommitteeMembershipInstance, TimeStampedPrice, TipPerWeightStep, KAR, KSM, KUSD, LKSM, TAI, }; -use xcm::v3::prelude::*; +use xcm::v4::prelude::*; /// Import the stable_asset pallet. pub use nutsfinance_stable_asset; @@ -236,7 +236,8 @@ impl Contains for BaseCallFilter { | pallet_xcm::Call::reserve_transfer_assets { .. } | pallet_xcm::Call::limited_reserve_transfer_assets { .. } | pallet_xcm::Call::limited_teleport_assets { .. } - | pallet_xcm::Call::transfer_assets { .. } => { + | pallet_xcm::Call::transfer_assets { .. } + | pallet_xcm::Call::claim_assets { .. } => { return false; } pallet_xcm::Call::force_xcm_version { .. } @@ -284,6 +285,11 @@ impl frame_system::Config for Runtime { type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode; type MaxConsumers = ConstU32<16>; type RuntimeTask = (); + type SingleBlockMigrations = (); + type MultiBlockMigrator = (); + type PreInherents = (); + type PostInherents = (); + type PostTransactions = (); } impl pallet_aura::Config for Runtime { @@ -378,7 +384,6 @@ impl pallet_balances::Config for Runtime { type RuntimeHoldReason = RuntimeHoldReason; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = MaxReserves; type MaxFreezes = (); } @@ -572,7 +577,7 @@ impl SortedMembers for GeneralCouncilProvider { } fn sorted_members() -> Vec { - GeneralCouncil::members() + pallet_collective::Members::::get() // GeneralCouncil::members() } #[cfg(feature = "runtime-benchmarks")] @@ -749,6 +754,15 @@ parameter_types! { pub const MaxFeedValues: u32 = 10; // max 10 values allowd to feed in one call. } +#[cfg(feature = "runtime-benchmarks")] +pub struct BenchmarkHelper; +#[cfg(feature = "runtime-benchmarks")] +impl orml_oracle::BenchmarkHelper for BenchmarkHelper { + fn get_currency_id_value_pairs() -> sp_runtime::BoundedVec<(CurrencyId, Price), MaxFeedValues> { + sp_runtime::BoundedVec::default() + } +} + type AcalaDataProvider = orml_oracle::Instance1; impl orml_oracle::Config for Runtime { type RuntimeEvent = RuntimeEvent; @@ -762,6 +776,8 @@ impl orml_oracle::Config for Runtime { type MaxHasDispatchedSize = ConstU32<20>; type WeightInfo = (); type MaxFeedValues = MaxFeedValues; + #[cfg(feature = "runtime-benchmarks")] + type BenchmarkHelper = BenchmarkHelper; } create_median_value_data_provider!( @@ -1291,11 +1307,26 @@ impl module_asset_registry::Config for Runtime { type WeightInfo = weights::module_asset_registry::WeightInfo; } +parameter_type_with_key! { + pub MinimalShares: |pool_id: PoolId| -> Balance { + match pool_id { + PoolId::Loans(currency_id) | PoolId::Dex(currency_id) | PoolId::Earning(currency_id) => { + if *currency_id == GetNativeCurrencyId::get() { + NativeTokenExistentialDeposit::get() + } else { + ExistentialDeposits::get(currency_id) + } + } + } + }; +} + impl orml_rewards::Config for Runtime { type Share = Balance; type Balance = Balance; type PoolId = PoolId; type CurrencyId = CurrencyId; + type MinimalShares = MinimalShares; type Handler = Incentives; } @@ -1582,20 +1613,20 @@ impl module_homa::Config for Runtime { type WeightInfo = weights::module_homa::WeightInfo; } -pub fn create_x2_parachain_multilocation(index: u16) -> MultiLocation { - MultiLocation::new( +pub fn create_x2_parachain_location(index: u16) -> Location { + Location::new( 1, - X1(AccountId32 { + AccountId32 { network: None, id: Utility::derivative_account_id(ParachainInfo::get().into_account_truncating(), index).into(), - }), + }, ) } -pub struct SubAccountIndexMultiLocationConvertor; -impl Convert for SubAccountIndexMultiLocationConvertor { - fn convert(sub_account_index: u16) -> MultiLocation { - create_x2_parachain_multilocation(sub_account_index) +pub struct SubAccountIndexLocationConvertor; +impl Convert for SubAccountIndexLocationConvertor { + fn convert(sub_account_index: u16) -> Location { + create_x2_parachain_location(sub_account_index) } } @@ -1609,11 +1640,11 @@ impl module_xcm_interface::Config for Runtime { type StakingCurrencyId = GetStakingCurrencyId; type ParachainAccount = ParachainAccount; type RelayChainUnbondingSlashingSpans = ConstU32<5>; - type SovereignSubAccountLocationConvert = SubAccountIndexMultiLocationConvertor; + type SovereignSubAccountLocationConvert = SubAccountIndexLocationConvertor; type RelayChainCallBuilder = RelayChainCallBuilder; type XcmTransfer = XTokens; type SelfLocation = xcm_config::SelfLocation; - type AccountIdToMultiLocation = runtime_common::xcm_config::AccountIdToMultiLocation; + type AccountIdToLocation = runtime_common::xcm_config::AccountIdToLocation; } impl orml_unknown_tokens::Config for Runtime { @@ -1967,7 +1998,7 @@ impl_runtime_apis! { Executive::execute_block(block) } - fn initialize_block(header: &::Header) { + fn initialize_block(header: &::Header) -> sp_runtime::ExtrinsicInclusionMode { Executive::initialize_block(header) } } diff --git a/runtime/karura/src/weights/module_aggregated_dex.rs b/runtime/karura/src/weights/module_aggregated_dex.rs index b314b07f73..f2b9008cb0 100644 --- a/runtime/karura/src/weights/module_aggregated_dex.rs +++ b/runtime/karura/src/weights/module_aggregated_dex.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_aggregated_dex //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-26-6`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-40-129`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("karura-dev"), DB CACHE: 1024 // Executed Command: @@ -60,10 +60,10 @@ impl module_aggregated_dex::WeightInfo for WeightInfo module_aggregated_dex::WeightInfo for WeightInfo Weight { // Proof Size summary in bytes: // Measured: `1810 + u * (112 ±0)` - // Estimated: `6234 + u * (643 ±18)` - // Minimum execution time: 97_706 nanoseconds. - Weight::from_parts(66_659_974, 6234) - // Standard Error: 71_978 - .saturating_add(Weight::from_parts(17_112_054, 0).saturating_mul(u.into())) + // Estimated: `6234 + u * (643 ±19)` + // Minimum execution time: 95_298 nanoseconds. + Weight::from_parts(64_956_571, 6234) + // Standard Error: 61_099 + .saturating_add(Weight::from_parts(16_534_619, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes(2)) @@ -100,10 +100,10 @@ impl module_aggregated_dex::WeightInfo for WeightInfo module_asset_registry::WeightInfo for WeightInfo module_asset_registry::WeightInfo for WeightInfo module_asset_registry::WeightInfo for WeightInfo module_asset_registry::WeightInfo for WeightInfo module_asset_registry::WeightInfo for WeightInfo Weight { // Proof Size summary in bytes: - // Measured: `6814` - // Estimated: `20179` - // Minimum execution time: 199_476 nanoseconds. - Weight::from_parts(202_794_000, 20179) + // Measured: `6679` + // Estimated: `20044` + // Minimum execution time: 204_076 nanoseconds. + Weight::from_parts(206_795_000, 20044) .saturating_add(T::DbWeight::get().reads(11)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -128,8 +128,8 @@ impl module_asset_registry::WeightInfo for WeightInfo module_asset_registry::WeightInfo for WeightInfo module_asset_registry::WeightInfo for WeightInfo module_auction_manager::WeightInfo for WeightInfo< // Proof Size summary in bytes: // Measured: `2830` // Estimated: `8770` - // Minimum execution time: 88_145 nanoseconds. - Weight::from_parts(90_824_000, 8770) + // Minimum execution time: 85_958 nanoseconds. + Weight::from_parts(88_993_000, 8770) .saturating_add(T::DbWeight::get().reads(14)) .saturating_add(T::DbWeight::get().writes(8)) } diff --git a/runtime/karura/src/weights/module_cdp_engine.rs b/runtime/karura/src/weights/module_cdp_engine.rs index d26d74e519..4cdba53d7a 100644 --- a/runtime/karura/src/weights/module_cdp_engine.rs +++ b/runtime/karura/src/weights/module_cdp_engine.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_cdp_engine //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-26-6`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-40-129`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("karura-dev"), DB CACHE: 1024 // Executed Command: @@ -57,6 +57,8 @@ impl module_cdp_engine::WeightInfo for WeightInfo { // Proof: `EmergencyShutdown::IsShutdown` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) // Storage: `CdpEngine::CollateralParams` (r:4 w:0) // Proof: `CdpEngine::CollateralParams` (`max_values`: None, `max_size`: Some(135), added: 2610, mode: `MaxEncodedLen`) + // Storage: `System::InherentsApplied` (r:0 w:1) + // Proof: `System::InherentsApplied` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) // Storage: `System::ParentHash` (r:0 w:1) // Proof: `System::ParentHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) // Storage: `System::Digest` (r:0 w:1) @@ -76,13 +78,13 @@ impl module_cdp_engine::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1018 + c * (90 ±0)` // Estimated: `3691 + c * (2515 ±13)` - // Minimum execution time: 20_161 nanoseconds. - Weight::from_parts(22_098_297, 3691) - // Standard Error: 48_371 - .saturating_add(Weight::from_parts(5_839_132, 0).saturating_mul(c.into())) + // Minimum execution time: 20_211 nanoseconds. + Weight::from_parts(22_116_191, 3691) + // Standard Error: 43_547 + .saturating_add(Weight::from_parts(5_787_450, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) - .saturating_add(T::DbWeight::get().writes(9)) + .saturating_add(T::DbWeight::get().writes(10)) .saturating_add(Weight::from_parts(0, 2515).saturating_mul(c.into())) } // Storage: `CdpEngine::CollateralParams` (r:1 w:1) @@ -91,8 +93,8 @@ impl module_cdp_engine::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1173` // Estimated: `3600` - // Minimum execution time: 24_405 nanoseconds. - Weight::from_parts(24_879_000, 3600) + // Minimum execution time: 22_947 nanoseconds. + Weight::from_parts(23_389_000, 3600) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -151,10 +153,10 @@ impl module_cdp_engine::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `3585` // Estimated: `9525` - // Minimum execution time: 178_356 nanoseconds. - Weight::from_parts(180_328_651, 9525) - // Standard Error: 19_168 - .saturating_add(Weight::from_parts(9_642_997, 0).saturating_mul(b.into())) + // Minimum execution time: 174_305 nanoseconds. + Weight::from_parts(176_979_400, 9525) + // Standard Error: 40_517 + .saturating_add(Weight::from_parts(9_604_887, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(28)) .saturating_add(T::DbWeight::get().writes(15)) .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(b.into()))) @@ -207,10 +209,10 @@ impl module_cdp_engine::WeightInfo for WeightInfo { // Proof: `AggregatedDex::AggregatedSwapPaths` (`max_values`: None, `max_size`: None, mode: `Measured`) fn liquidate_by_dex() -> Weight { // Proof Size summary in bytes: - // Measured: `4463` + // Measured: `4425` // Estimated: `16722` - // Minimum execution time: 272_111 nanoseconds. - Weight::from_parts(278_744_000, 16722) + // Minimum execution time: 261_383 nanoseconds. + Weight::from_parts(269_046_000, 16722) .saturating_add(T::DbWeight::get().reads(36)) .saturating_add(T::DbWeight::get().writes(16)) } @@ -240,8 +242,8 @@ impl module_cdp_engine::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2774` // Estimated: `6239` - // Minimum execution time: 99_416 nanoseconds. - Weight::from_parts(102_773_000, 6239) + // Minimum execution time: 98_905 nanoseconds. + Weight::from_parts(100_972_000, 6239) .saturating_add(T::DbWeight::get().reads(14)) .saturating_add(T::DbWeight::get().writes(8)) } @@ -251,8 +253,8 @@ impl module_cdp_engine::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1173` // Estimated: `1686` - // Minimum execution time: 14_831 nanoseconds. - Weight::from_parts(15_302_000, 1686) + // Minimum execution time: 14_545 nanoseconds. + Weight::from_parts(14_972_000, 1686) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -262,8 +264,8 @@ impl module_cdp_engine::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1218` // Estimated: `1686` - // Minimum execution time: 15_629 nanoseconds. - Weight::from_parts(16_119_000, 1686) + // Minimum execution time: 15_463 nanoseconds. + Weight::from_parts(15_940_000, 1686) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/karura/src/weights/module_cdp_treasury.rs b/runtime/karura/src/weights/module_cdp_treasury.rs index 3efcf0103b..b05e3bb76a 100644 --- a/runtime/karura/src/weights/module_cdp_treasury.rs +++ b/runtime/karura/src/weights/module_cdp_treasury.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_cdp_treasury //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-26-6`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-40-129`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("karura-dev"), DB CACHE: 1024 // Executed Command: @@ -70,10 +70,10 @@ impl module_cdp_treasury::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `2011` // Estimated: `3612` - // Minimum execution time: 40_974 nanoseconds. - Weight::from_parts(39_610_293, 3612) - // Standard Error: 15_999 - .saturating_add(Weight::from_parts(9_358_133, 0).saturating_mul(b.into())) + // Minimum execution time: 40_885 nanoseconds. + Weight::from_parts(39_696_124, 3612) + // Standard Error: 15_940 + .saturating_add(Weight::from_parts(9_278_705, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(6)) .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(b.into()))) @@ -104,10 +104,10 @@ impl module_cdp_treasury::WeightInfo for WeightInfo // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) fn exchange_collateral_to_stable() -> Weight { // Proof Size summary in bytes: - // Measured: `3947` + // Measured: `3909` // Estimated: `16722` - // Minimum execution time: 199_722 nanoseconds. - Weight::from_parts(206_185_000, 16722) + // Minimum execution time: 193_443 nanoseconds. + Weight::from_parts(199_650_000, 16722) .saturating_add(T::DbWeight::get().reads(23)) .saturating_add(T::DbWeight::get().writes(7)) } @@ -117,8 +117,8 @@ impl module_cdp_treasury::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `965` // Estimated: `0` - // Minimum execution time: 13_246 nanoseconds. - Weight::from_parts(13_641_000, 0) + // Minimum execution time: 12_779 nanoseconds. + Weight::from_parts(13_254_000, 0) .saturating_add(T::DbWeight::get().writes(1)) } // Storage: `Tokens::Accounts` (r:2 w:2) @@ -129,8 +129,8 @@ impl module_cdp_treasury::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `1436` // Estimated: `6234` - // Minimum execution time: 37_494 nanoseconds. - Weight::from_parts(38_678_000, 6234) + // Minimum execution time: 36_466 nanoseconds. + Weight::from_parts(37_386_000, 6234) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } diff --git a/runtime/karura/src/weights/module_collator_selection.rs b/runtime/karura/src/weights/module_collator_selection.rs index 2b9e28306b..d150a6167d 100644 --- a/runtime/karura/src/weights/module_collator_selection.rs +++ b/runtime/karura/src/weights/module_collator_selection.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_collator_selection //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-26-6`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-40-129`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("karura-dev"), DB CACHE: 1024 // Executed Command: @@ -54,10 +54,10 @@ impl module_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `965` // Estimated: `0` - // Minimum execution time: 11_541 nanoseconds. - Weight::from_parts(12_152_604, 0) - // Standard Error: 1_883 - .saturating_add(Weight::from_parts(12_364, 0).saturating_mul(b.into())) + // Minimum execution time: 11_316 nanoseconds. + Weight::from_parts(11_836_654, 0) + // Standard Error: 1_802 + .saturating_add(Weight::from_parts(20_956, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().writes(1)) } // Storage: `CollatorSelection::DesiredCandidates` (r:0 w:1) @@ -66,8 +66,8 @@ impl module_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `965` // Estimated: `0` - // Minimum execution time: 11_299 nanoseconds. - Weight::from_parts(11_716_000, 0) + // Minimum execution time: 11_047 nanoseconds. + Weight::from_parts(11_513_000, 0) .saturating_add(T::DbWeight::get().writes(1)) } // Storage: `CollatorSelection::CandidacyBond` (r:0 w:1) @@ -76,8 +76,8 @@ impl module_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `965` // Estimated: `0` - // Minimum execution time: 11_240 nanoseconds. - Weight::from_parts(11_660_000, 0) + // Minimum execution time: 11_177 nanoseconds. + Weight::from_parts(11_429_000, 0) .saturating_add(T::DbWeight::get().writes(1)) } // Storage: `CollatorSelection::NonCandidates` (r:1 w:1) @@ -99,10 +99,10 @@ impl module_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `2293 + c * (60 ±0)` // Estimated: `5704 + c * (61 ±0)` - // Minimum execution time: 54_131 nanoseconds. - Weight::from_parts(54_809_196, 5704) - // Standard Error: 3_461 - .saturating_add(Weight::from_parts(468_446, 0).saturating_mul(c.into())) + // Minimum execution time: 53_238 nanoseconds. + Weight::from_parts(53_328_156, 5704) + // Standard Error: 4_137 + .saturating_add(Weight::from_parts(476_724, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(Weight::from_parts(0, 61).saturating_mul(c.into())) @@ -122,10 +122,10 @@ impl module_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `1806 + c * (55 ±0)` // Estimated: `5263 + c * (55 ±0)` - // Minimum execution time: 29_151 nanoseconds. - Weight::from_parts(34_224_313, 5263) - // Standard Error: 3_271 - .saturating_add(Weight::from_parts(427_796, 0).saturating_mul(c.into())) + // Minimum execution time: 29_562 nanoseconds. + Weight::from_parts(33_988_694, 5263) + // Standard Error: 3_511 + .saturating_add(Weight::from_parts(425_403, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(Weight::from_parts(0, 55).saturating_mul(c.into())) @@ -141,10 +141,10 @@ impl module_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `1596 + c * (39 ±0)` // Estimated: `3086 + c * (39 ±0)` - // Minimum execution time: 23_681 nanoseconds. - Weight::from_parts(22_968_301, 3086) - // Standard Error: 1_813 - .saturating_add(Weight::from_parts(335_394, 0).saturating_mul(c.into())) + // Minimum execution time: 23_064 nanoseconds. + Weight::from_parts(22_638_579, 3086) + // Standard Error: 2_199 + .saturating_add(Weight::from_parts(331_379, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(Weight::from_parts(0, 39).saturating_mul(c.into())) @@ -159,8 +159,8 @@ impl module_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `3161` // Estimated: `4646` - // Minimum execution time: 57_526 nanoseconds. - Weight::from_parts(60_059_000, 4646) + // Minimum execution time: 56_889 nanoseconds. + Weight::from_parts(58_969_000, 4646) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -172,8 +172,8 @@ impl module_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `2106` // Estimated: `6196` - // Minimum execution time: 61_460 nanoseconds. - Weight::from_parts(62_646_000, 6196) + // Minimum execution time: 59_208 nanoseconds. + Weight::from_parts(60_710_000, 6196) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -185,8 +185,8 @@ impl module_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `2655` // Estimated: `3086` - // Minimum execution time: 22_137 nanoseconds. - Weight::from_parts(24_002_000, 3086) + // Minimum execution time: 22_624 nanoseconds. + Weight::from_parts(23_701_000, 3086) .saturating_add(T::DbWeight::get().reads(2)) } // Storage: `Session::Validators` (r:1 w:0) @@ -201,12 +201,12 @@ impl module_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `1379 + c * (64 ±0)` // Estimated: `3086 + c * (64 ±0)` - // Minimum execution time: 19_444 nanoseconds. - Weight::from_parts(14_404_158, 3086) - // Standard Error: 1_615 - .saturating_add(Weight::from_parts(8_664, 0).saturating_mul(r.into())) - // Standard Error: 1_615 - .saturating_add(Weight::from_parts(1_263_128, 0).saturating_mul(c.into())) + // Minimum execution time: 20_335 nanoseconds. + Weight::from_parts(14_607_437, 3086) + // Standard Error: 1_880 + .saturating_add(Weight::from_parts(9_997, 0).saturating_mul(r.into())) + // Standard Error: 1_880 + .saturating_add(Weight::from_parts(1_329_582, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) .saturating_add(Weight::from_parts(0, 64).saturating_mul(c.into())) @@ -225,10 +225,10 @@ impl module_collator_selection::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `3426 + c * (49 ±0)` // Estimated: `3509 + c * (2519 ±0)` - // Minimum execution time: 31_260 nanoseconds. - Weight::from_parts(349_391_735, 3509) - // Standard Error: 13_690 - .saturating_add(Weight::from_parts(3_890_753, 0).saturating_mul(c.into())) + // Minimum execution time: 30_529 nanoseconds. + Weight::from_parts(339_894_413, 3509) + // Standard Error: 14_098 + .saturating_add(Weight::from_parts(3_782_617, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(48)) diff --git a/runtime/karura/src/weights/module_currencies.rs b/runtime/karura/src/weights/module_currencies.rs index c733415a32..d4e19de6da 100644 --- a/runtime/karura/src/weights/module_currencies.rs +++ b/runtime/karura/src/weights/module_currencies.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_currencies //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-26-6`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-40-129`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("karura-dev"), DB CACHE: 1024 // Executed Command: @@ -57,8 +57,8 @@ impl module_currencies::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1578` // Estimated: `6234` - // Minimum execution time: 45_930 nanoseconds. - Weight::from_parts(46_952_000, 6234) + // Minimum execution time: 43_789 nanoseconds. + Weight::from_parts(44_659_000, 6234) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -70,8 +70,8 @@ impl module_currencies::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1412` // Estimated: `3593` - // Minimum execution time: 57_362 nanoseconds. - Weight::from_parts(58_799_000, 3593) + // Minimum execution time: 55_379 nanoseconds. + Weight::from_parts(56_160_000, 3593) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -85,8 +85,8 @@ impl module_currencies::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1128` // Estimated: `3612` - // Minimum execution time: 26_568 nanoseconds. - Weight::from_parts(27_502_000, 3612) + // Minimum execution time: 25_311 nanoseconds. + Weight::from_parts(25_887_000, 3612) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -96,8 +96,8 @@ impl module_currencies::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1268` // Estimated: `3593` - // Minimum execution time: 28_996 nanoseconds. - Weight::from_parts(29_910_000, 3593) + // Minimum execution time: 28_126 nanoseconds. + Weight::from_parts(28_876_000, 3593) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -109,8 +109,8 @@ impl module_currencies::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1408` // Estimated: `3593` - // Minimum execution time: 33_363 nanoseconds. - Weight::from_parts(33_810_000, 3593) + // Minimum execution time: 31_002 nanoseconds. + Weight::from_parts(32_012_000, 3593) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -123,10 +123,10 @@ impl module_currencies::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1453 + c * (79 ±0)` // Estimated: `3612 + c * (2622 ±0)` - // Minimum execution time: 37_883 nanoseconds. - Weight::from_parts(20_135_652, 3612) - // Standard Error: 24_280 - .saturating_add(Weight::from_parts(18_937_624, 0).saturating_mul(c.into())) + // Minimum execution time: 36_245 nanoseconds. + Weight::from_parts(19_833_607, 3612) + // Standard Error: 25_441 + .saturating_add(Weight::from_parts(17_802_605, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -143,8 +143,8 @@ impl module_currencies::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1432` // Estimated: `4765` - // Minimum execution time: 31_489 nanoseconds. - Weight::from_parts(32_240_000, 4765) + // Minimum execution time: 29_792 nanoseconds. + Weight::from_parts(30_767_000, 4765) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -158,8 +158,8 @@ impl module_currencies::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1537` // Estimated: `4765` - // Minimum execution time: 32_984 nanoseconds. - Weight::from_parts(34_282_000, 4765) + // Minimum execution time: 31_187 nanoseconds. + Weight::from_parts(32_071_000, 4765) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } diff --git a/runtime/karura/src/weights/module_dex.rs b/runtime/karura/src/weights/module_dex.rs index d56d053290..129d3839ee 100644 --- a/runtime/karura/src/weights/module_dex.rs +++ b/runtime/karura/src/weights/module_dex.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_dex //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-26-6`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-40-129`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("karura-dev"), DB CACHE: 1024 // Executed Command: @@ -53,8 +53,8 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1074` // Estimated: `3660` - // Minimum execution time: 15_959 nanoseconds. - Weight::from_parts(16_487_000, 3660) + // Minimum execution time: 15_593 nanoseconds. + Weight::from_parts(15_943_000, 3660) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -64,8 +64,8 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1111` // Estimated: `3660` - // Minimum execution time: 17_194 nanoseconds. - Weight::from_parts(17_607_000, 3660) + // Minimum execution time: 16_448 nanoseconds. + Weight::from_parts(16_986_000, 3660) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -79,8 +79,8 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1116` // Estimated: `3660` - // Minimum execution time: 23_114 nanoseconds. - Weight::from_parts(23_336_000, 3660) + // Minimum execution time: 22_370 nanoseconds. + Weight::from_parts(23_019_000, 3660) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -90,8 +90,8 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `915` // Estimated: `3660` - // Minimum execution time: 10_997 nanoseconds. - Weight::from_parts(11_336_000, 3660) + // Minimum execution time: 10_584 nanoseconds. + Weight::from_parts(11_032_000, 3660) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -111,8 +111,8 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1708` // Estimated: `3660` - // Minimum execution time: 44_058 nanoseconds. - Weight::from_parts(44_831_000, 3660) + // Minimum execution time: 41_825 nanoseconds. + Weight::from_parts(43_270_000, 3660) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(6)) } @@ -128,8 +128,8 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1867` // Estimated: `6234` - // Minimum execution time: 87_369 nanoseconds. - Weight::from_parts(89_665_000, 6234) + // Minimum execution time: 84_089 nanoseconds. + Weight::from_parts(85_638_000, 6234) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(5)) } @@ -147,8 +147,8 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2062` // Estimated: `6272` - // Minimum execution time: 63_845 nanoseconds. - Weight::from_parts(65_343_000, 6272) + // Minimum execution time: 61_816 nanoseconds. + Weight::from_parts(63_135_000, 6272) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(5)) } @@ -168,8 +168,8 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2200` // Estimated: `8856` - // Minimum execution time: 106_865 nanoseconds. - Weight::from_parts(109_010_000, 8856) + // Minimum execution time: 101_565 nanoseconds. + Weight::from_parts(103_440_000, 8856) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(6)) } @@ -193,8 +193,8 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2607` // Estimated: `11478` - // Minimum execution time: 140_739 nanoseconds. - Weight::from_parts(144_382_000, 11478) + // Minimum execution time: 134_425 nanoseconds. + Weight::from_parts(137_904_000, 11478) .saturating_add(T::DbWeight::get().reads(11)) .saturating_add(T::DbWeight::get().writes(9)) } @@ -210,8 +210,8 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2134` // Estimated: `8856` - // Minimum execution time: 98_823 nanoseconds. - Weight::from_parts(102_503_000, 8856) + // Minimum execution time: 97_154 nanoseconds. + Weight::from_parts(98_814_000, 8856) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(6)) } @@ -233,8 +233,8 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2547` // Estimated: `11478` - // Minimum execution time: 149_663 nanoseconds. - Weight::from_parts(154_062_000, 11478) + // Minimum execution time: 143_142 nanoseconds. + Weight::from_parts(146_721_000, 11478) .saturating_add(T::DbWeight::get().reads(11)) .saturating_add(T::DbWeight::get().writes(9)) } @@ -251,10 +251,10 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1810 + u * (112 ±0)` // Estimated: `6234 + u * (643 ±18)` - // Minimum execution time: 86_985 nanoseconds. - Weight::from_parts(69_326_705, 6234) - // Standard Error: 57_978 - .saturating_add(Weight::from_parts(10_286_532, 0).saturating_mul(u.into())) + // Minimum execution time: 84_306 nanoseconds. + Weight::from_parts(66_156_863, 6234) + // Standard Error: 56_488 + .saturating_add(Weight::from_parts(10_354_275, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes(2)) @@ -274,10 +274,10 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1810 + u * (112 ±0)` // Estimated: `6234 + u * (643 ±18)` - // Minimum execution time: 87_320 nanoseconds. - Weight::from_parts(68_094_654, 6234) - // Standard Error: 54_723 - .saturating_add(Weight::from_parts(10_756_958, 0).saturating_mul(u.into())) + // Minimum execution time: 84_182 nanoseconds. + Weight::from_parts(64_800_898, 6234) + // Standard Error: 51_699 + .saturating_add(Weight::from_parts(10_875_444, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes(2)) @@ -300,8 +300,8 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2201` // Estimated: `6234` - // Minimum execution time: 96_360 nanoseconds. - Weight::from_parts(97_864_000, 6234) + // Minimum execution time: 93_287 nanoseconds. + Weight::from_parts(95_635_000, 6234) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(4)) } @@ -311,8 +311,8 @@ impl module_dex::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1248` // Estimated: `3660` - // Minimum execution time: 20_971 nanoseconds. - Weight::from_parts(21_480_000, 3660) + // Minimum execution time: 20_424 nanoseconds. + Weight::from_parts(21_045_000, 3660) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/karura/src/weights/module_dex_oracle.rs b/runtime/karura/src/weights/module_dex_oracle.rs index 0317eed509..ccfb895fa7 100644 --- a/runtime/karura/src/weights/module_dex_oracle.rs +++ b/runtime/karura/src/weights/module_dex_oracle.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_dex_oracle //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-26-6`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-40-129`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("karura-dev"), DB CACHE: 1024 // Executed Command: @@ -57,6 +57,8 @@ impl module_dex_oracle::WeightInfo for WeightInfo { // Proof: `Dex::LiquidityPool` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) // Storage: `DexOracle::Cumulatives` (r:3 w:3) // Proof: `DexOracle::Cumulatives` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `System::InherentsApplied` (r:0 w:1) + // Proof: `System::InherentsApplied` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) // Storage: `System::ParentHash` (r:0 w:1) // Proof: `System::ParentHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) // Storage: `System::Digest` (r:0 w:1) @@ -77,16 +79,16 @@ impl module_dex_oracle::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `169 + n * (377 ±0) + u * (249 ±0)` // Estimated: `4851 + n * (2864 ±2) + u * (346 ±2)` - // Minimum execution time: 13_778 nanoseconds. - Weight::from_parts(14_313_000, 4851) - // Standard Error: 142_362 - .saturating_add(Weight::from_parts(9_838_712, 0).saturating_mul(n.into())) - // Standard Error: 142_362 - .saturating_add(Weight::from_parts(4_531_542, 0).saturating_mul(u.into())) + // Minimum execution time: 13_887 nanoseconds. + Weight::from_parts(14_473_000, 4851) + // Standard Error: 141_261 + .saturating_add(Weight::from_parts(9_738_135, 0).saturating_mul(n.into())) + // Standard Error: 141_261 + .saturating_add(Weight::from_parts(4_465_031, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into()))) - .saturating_add(T::DbWeight::get().writes(2)) + .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(u.into()))) .saturating_add(Weight::from_parts(0, 2864).saturating_mul(n.into())) @@ -104,8 +106,8 @@ impl module_dex_oracle::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `956` // Estimated: `4421` - // Minimum execution time: 19_003 nanoseconds. - Weight::from_parts(19_664_000, 4421) + // Minimum execution time: 18_674 nanoseconds. + Weight::from_parts(19_030_000, 4421) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -117,8 +119,8 @@ impl module_dex_oracle::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `927` // Estimated: `4392` - // Minimum execution time: 11_606 nanoseconds. - Weight::from_parts(12_099_000, 4392) + // Minimum execution time: 11_530 nanoseconds. + Weight::from_parts(11_830_000, 4392) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -128,8 +130,8 @@ impl module_dex_oracle::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `927` // Estimated: `4392` - // Minimum execution time: 11_468 nanoseconds. - Weight::from_parts(11_845_000, 4392) + // Minimum execution time: 11_035 nanoseconds. + Weight::from_parts(11_384_000, 4392) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/karura/src/weights/module_emergency_shutdown.rs b/runtime/karura/src/weights/module_emergency_shutdown.rs index 3a6326ed49..b800427297 100644 --- a/runtime/karura/src/weights/module_emergency_shutdown.rs +++ b/runtime/karura/src/weights/module_emergency_shutdown.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_emergency_shutdown //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-26-6`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-40-129`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("karura-dev"), DB CACHE: 1024 // Executed Command: @@ -56,10 +56,10 @@ impl module_emergency_shutdown::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `1286` // Estimated: `3600` - // Minimum execution time: 17_630 nanoseconds. - Weight::from_parts(18_603_808, 3600) - // Standard Error: 10_654 - .saturating_add(Weight::from_parts(400_284, 0).saturating_mul(c.into())) + // Minimum execution time: 17_300 nanoseconds. + Weight::from_parts(18_206_655, 3600) + // Standard Error: 11_256 + .saturating_add(Weight::from_parts(409_641, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -73,8 +73,8 @@ impl module_emergency_shutdown::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `1310` // Estimated: `3600` - // Minimum execution time: 17_646 nanoseconds. - Weight::from_parts(18_003_000, 3600) + // Minimum execution time: 17_225 nanoseconds. + Weight::from_parts(17_733_000, 3600) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -93,10 +93,10 @@ impl module_emergency_shutdown::WeightInfo for WeightIn // Proof Size summary in bytes: // Measured: `2059 + c * (33 ±0)` // Estimated: `3612` - // Minimum execution time: 47_810 nanoseconds. - Weight::from_parts(50_185_527, 3612) - // Standard Error: 33_860 - .saturating_add(Weight::from_parts(1_756_630, 0).saturating_mul(c.into())) + // Minimum execution time: 46_576 nanoseconds. + Weight::from_parts(48_826_808, 3612) + // Standard Error: 29_455 + .saturating_add(Weight::from_parts(1_662_703, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } diff --git a/runtime/karura/src/weights/module_evm.rs b/runtime/karura/src/weights/module_evm.rs index e63adc839c..4a6d9638ef 100644 --- a/runtime/karura/src/weights/module_evm.rs +++ b/runtime/karura/src/weights/module_evm.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_evm //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-26-6`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-40-129`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("karura-dev"), DB CACHE: 1024 // Executed Command: @@ -69,8 +69,8 @@ impl module_evm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1626` // Estimated: `7566` - // Minimum execution time: 128_175 nanoseconds. - Weight::from_parts(130_168_000, 7566) + // Minimum execution time: 128_091 nanoseconds. + Weight::from_parts(130_479_000, 7566) .saturating_add(T::DbWeight::get().reads(13)) .saturating_add(T::DbWeight::get().writes(9)) } @@ -96,8 +96,8 @@ impl module_evm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1626` // Estimated: `7566` - // Minimum execution time: 124_132 nanoseconds. - Weight::from_parts(126_152_000, 7566) + // Minimum execution time: 124_111 nanoseconds. + Weight::from_parts(127_683_000, 7566) .saturating_add(T::DbWeight::get().reads(13)) .saturating_add(T::DbWeight::get().writes(9)) } @@ -123,8 +123,8 @@ impl module_evm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1595` // Estimated: `7535` - // Minimum execution time: 154_500 nanoseconds. - Weight::from_parts(157_466_000, 7535) + // Minimum execution time: 151_606 nanoseconds. + Weight::from_parts(155_095_000, 7535) .saturating_add(T::DbWeight::get().reads(13)) .saturating_add(T::DbWeight::get().writes(10)) } @@ -148,8 +148,8 @@ impl module_evm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1543` // Estimated: `7483` - // Minimum execution time: 156_029 nanoseconds. - Weight::from_parts(159_246_000, 7483) + // Minimum execution time: 148_707 nanoseconds. + Weight::from_parts(151_730_000, 7483) .saturating_add(T::DbWeight::get().reads(12)) .saturating_add(T::DbWeight::get().writes(9)) } @@ -173,8 +173,8 @@ impl module_evm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2400` // Estimated: `8340` - // Minimum execution time: 123_445 nanoseconds. - Weight::from_parts(125_166_000, 8340) + // Minimum execution time: 120_982 nanoseconds. + Weight::from_parts(123_618_000, 8340) .saturating_add(T::DbWeight::get().reads(12)) .saturating_add(T::DbWeight::get().writes(6)) } @@ -186,8 +186,8 @@ impl module_evm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1810` // Estimated: `5275` - // Minimum execution time: 87_116 nanoseconds. - Weight::from_parts(88_383_000, 5275) + // Minimum execution time: 87_371 nanoseconds. + Weight::from_parts(88_589_000, 5275) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -199,8 +199,8 @@ impl module_evm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2281` // Estimated: `5746` - // Minimum execution time: 123_795 nanoseconds. - Weight::from_parts(124_757_000, 5746) + // Minimum execution time: 121_472 nanoseconds. + Weight::from_parts(122_793_000, 5746) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -210,8 +210,8 @@ impl module_evm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1668` // Estimated: `5133` - // Minimum execution time: 23_760 nanoseconds. - Weight::from_parts(24_478_000, 5133) + // Minimum execution time: 22_958 nanoseconds. + Weight::from_parts(23_720_000, 5133) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -221,8 +221,8 @@ impl module_evm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1402` // Estimated: `3633` - // Minimum execution time: 91_571 nanoseconds. - Weight::from_parts(92_416_000, 3633) + // Minimum execution time: 90_644 nanoseconds. + Weight::from_parts(91_429_000, 3633) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -232,8 +232,8 @@ impl module_evm::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1490` // Estimated: `3633` - // Minimum execution time: 92_463 nanoseconds. - Weight::from_parts(94_014_000, 3633) + // Minimum execution time: 92_308 nanoseconds. + Weight::from_parts(93_381_000, 3633) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -256,12 +256,12 @@ impl module_evm::WeightInfo for WeightInfo { /// The range of component `c` is `[0, 61440]`. fn set_code(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2416` - // Estimated: `8356` - // Minimum execution time: 148_790 nanoseconds. - Weight::from_parts(144_928_814, 8356) - // Standard Error: 13 - .saturating_add(Weight::from_parts(5_430, 0).saturating_mul(c.into())) + // Measured: `2493` + // Estimated: `8433` + // Minimum execution time: 147_977 nanoseconds. + Weight::from_parts(143_406_112, 8433) + // Standard Error: 15 + .saturating_add(Weight::from_parts(5_693, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(10)) .saturating_add(T::DbWeight::get().writes(9)) } @@ -289,10 +289,10 @@ impl module_evm::WeightInfo for WeightInfo { // Proof: `EVM::Codes` (`max_values`: None, `max_size`: None, mode: `Measured`) fn selfdestruct() -> Weight { // Proof Size summary in bytes: - // Measured: `2609` - // Estimated: `6074` - // Minimum execution time: 170_394 nanoseconds. - Weight::from_parts(173_480_000, 6074) + // Measured: `2647` + // Estimated: `6112` + // Minimum execution time: 169_926 nanoseconds. + Weight::from_parts(172_697_000, 6112) .saturating_add(T::DbWeight::get().reads(11)) .saturating_add(T::DbWeight::get().writes(8)) } diff --git a/runtime/karura/src/weights/module_evm_accounts.rs b/runtime/karura/src/weights/module_evm_accounts.rs index aa35e0a87b..d605a0f44f 100644 --- a/runtime/karura/src/weights/module_evm_accounts.rs +++ b/runtime/karura/src/weights/module_evm_accounts.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_evm_accounts //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-26-6`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-40-129`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("karura-dev"), DB CACHE: 1024 // Executed Command: @@ -61,8 +61,8 @@ impl module_evm_accounts::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `1483` // Estimated: `3593` - // Minimum execution time: 74_152 nanoseconds. - Weight::from_parts(75_153_000, 3593) + // Minimum execution time: 74_639 nanoseconds. + Weight::from_parts(75_825_000, 3593) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -74,8 +74,8 @@ impl module_evm_accounts::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `1107` // Estimated: `3525` - // Minimum execution time: 19_012 nanoseconds. - Weight::from_parts(19_464_000, 3525) + // Minimum execution time: 18_704 nanoseconds. + Weight::from_parts(19_123_000, 3525) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } diff --git a/runtime/karura/src/weights/module_homa.rs b/runtime/karura/src/weights/module_homa.rs index 128d6106fe..5e4a953179 100644 --- a/runtime/karura/src/weights/module_homa.rs +++ b/runtime/karura/src/weights/module_homa.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_homa //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-26-6`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-40-129`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("karura-dev"), DB CACHE: 1024 // Executed Command: @@ -57,10 +57,10 @@ impl module_homa::WeightInfo for WeightInfo { // Proof: `Homa::BumpEraFrequency` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn on_initialize() -> Weight { // Proof Size summary in bytes: - // Measured: `861` - // Estimated: `2346` - // Minimum execution time: 6_565 nanoseconds. - Weight::from_parts(6_797_000, 2346) + // Measured: `823` + // Estimated: `2308` + // Minimum execution time: 6_240 nanoseconds. + Weight::from_parts(6_498_000, 2308) .saturating_add(T::DbWeight::get().reads(4)) } // Storage: `ParachainSystem::ValidationData` (r:1 w:0) @@ -113,10 +113,10 @@ impl module_homa::WeightInfo for WeightInfo { // Proof: `Homa::TotalVoidLiquid` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn on_initialize_with_bump_era() -> Weight { // Proof Size summary in bytes: - // Measured: `3000` - // Estimated: `13890` - // Minimum execution time: 285_821 nanoseconds. - Weight::from_parts(296_090_000, 13890) + // Measured: `2962` + // Estimated: `13852` + // Minimum execution time: 314_492 nanoseconds. + Weight::from_parts(320_994_000, 13852) .saturating_add(T::DbWeight::get().reads(34)) .saturating_add(T::DbWeight::get().writes(19)) } @@ -138,10 +138,10 @@ impl module_homa::WeightInfo for WeightInfo { // Proof: `Homa::EstimatedRewardRatePerEra` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn mint() -> Weight { // Proof Size summary in bytes: - // Measured: `1707` + // Measured: `1669` // Estimated: `8856` - // Minimum execution time: 64_296 nanoseconds. - Weight::from_parts(66_048_000, 8856) + // Minimum execution time: 61_857 nanoseconds. + Weight::from_parts(63_336_000, 8856) .saturating_add(T::DbWeight::get().reads(10)) .saturating_add(T::DbWeight::get().writes(7)) } @@ -153,10 +153,10 @@ impl module_homa::WeightInfo for WeightInfo { // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn request_redeem() -> Weight { // Proof Size summary in bytes: - // Measured: `1616` + // Measured: `1578` // Estimated: `6234` - // Minimum execution time: 44_065 nanoseconds. - Weight::from_parts(45_405_000, 6234) + // Minimum execution time: 41_391 nanoseconds. + Weight::from_parts(42_368_000, 6234) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) } @@ -179,12 +179,12 @@ impl module_homa::WeightInfo for WeightInfo { /// The range of component `n` is `[1, 50]`. fn fast_match_redeems(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1956 + n * (295 ±0)` + // Measured: `1918 + n * (295 ±0)` // Estimated: `6234 + n * (2770 ±0)` - // Minimum execution time: 79_641 nanoseconds. - Weight::from_parts(29_338_961, 6234) - // Standard Error: 29_738 - .saturating_add(Weight::from_parts(43_846_508, 0).saturating_mul(n.into())) + // Minimum execution time: 73_671 nanoseconds. + Weight::from_parts(18_909_780, 6234) + // Standard Error: 39_639 + .saturating_add(Weight::from_parts(42_812_818, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(5)) @@ -205,10 +205,10 @@ impl module_homa::WeightInfo for WeightInfo { // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) fn claim_redemption() -> Weight { // Proof Size summary in bytes: - // Measured: `1826` - // Estimated: `7766` - // Minimum execution time: 62_964 nanoseconds. - Weight::from_parts(64_527_000, 7766) + // Measured: `1989` + // Estimated: `7929` + // Minimum execution time: 60_313 nanoseconds. + Weight::from_parts(61_178_000, 7929) .saturating_add(T::DbWeight::get().reads(9)) .saturating_add(T::DbWeight::get().writes(6)) } @@ -222,10 +222,10 @@ impl module_homa::WeightInfo for WeightInfo { // Proof: `Homa::SoftBondedCapPerSubAccount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn update_homa_params() -> Weight { // Proof Size summary in bytes: - // Measured: `1145` - // Estimated: `2630` - // Minimum execution time: 22_912 nanoseconds. - Weight::from_parts(23_412_000, 2630) + // Measured: `1107` + // Estimated: `2592` + // Minimum execution time: 21_105 nanoseconds. + Weight::from_parts(21_607_000, 2592) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(4)) } @@ -239,8 +239,8 @@ impl module_homa::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1179` // Estimated: `2664` - // Minimum execution time: 18_881 nanoseconds. - Weight::from_parts(19_547_000, 2664) + // Minimum execution time: 18_456 nanoseconds. + Weight::from_parts(18_906_000, 2664) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -251,12 +251,12 @@ impl module_homa::WeightInfo for WeightInfo { /// The range of component `n` is `[0, 10]`. fn reset_ledgers(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1145` - // Estimated: `2630 + n * (2475 ±0)` - // Minimum execution time: 4_037 nanoseconds. - Weight::from_parts(10_701_840, 2630) - // Standard Error: 39_023 - .saturating_add(Weight::from_parts(6_312_388, 0).saturating_mul(n.into())) + // Measured: `1107` + // Estimated: `2592 + n * (2475 ±0)` + // Minimum execution time: 4_055 nanoseconds. + Weight::from_parts(10_022_005, 2592) + // Standard Error: 34_659 + .saturating_add(Weight::from_parts(5_951_966, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -267,10 +267,10 @@ impl module_homa::WeightInfo for WeightInfo { // Proof: `Homa::RelayChainCurrentEra` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn reset_current_era() -> Weight { // Proof Size summary in bytes: - // Measured: `1145` - // Estimated: `2630` - // Minimum execution time: 14_237 nanoseconds. - Weight::from_parts(14_900_000, 2630) + // Measured: `1107` + // Estimated: `2592` + // Minimum execution time: 13_366 nanoseconds. + Weight::from_parts(13_840_000, 2592) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/karura/src/weights/module_honzon.rs b/runtime/karura/src/weights/module_honzon.rs index 6b0b9047ae..380f34ab58 100644 --- a/runtime/karura/src/weights/module_honzon.rs +++ b/runtime/karura/src/weights/module_honzon.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_honzon //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-26-6`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-40-129`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("karura-dev"), DB CACHE: 1024 // Executed Command: @@ -55,8 +55,8 @@ impl module_honzon::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1448` // Estimated: `3633` - // Minimum execution time: 34_003 nanoseconds. - Weight::from_parts(34_774_000, 3633) + // Minimum execution time: 33_138 nanoseconds. + Weight::from_parts(33_715_000, 3633) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -68,8 +68,8 @@ impl module_honzon::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1668` // Estimated: `3633` - // Minimum execution time: 38_106 nanoseconds. - Weight::from_parts(39_097_000, 3633) + // Minimum execution time: 37_263 nanoseconds. + Weight::from_parts(37_778_000, 3633) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -82,10 +82,10 @@ impl module_honzon::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1287 + c * (176 ±0)` // Estimated: `3633 + c * (2622 ±0)` - // Minimum execution time: 18_443 nanoseconds. - Weight::from_parts(24_484_177, 3633) - // Standard Error: 188_342 - .saturating_add(Weight::from_parts(6_434_255, 0).saturating_mul(c.into())) + // Minimum execution time: 18_248 nanoseconds. + Weight::from_parts(24_231_244, 3633) + // Standard Error: 185_788 + .saturating_add(Weight::from_parts(6_200_898, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) @@ -121,8 +121,8 @@ impl module_honzon::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2435` // Estimated: `8856` - // Minimum execution time: 111_495 nanoseconds. - Weight::from_parts(116_263_000, 8856) + // Minimum execution time: 109_228 nanoseconds. + Weight::from_parts(111_371_000, 8856) .saturating_add(T::DbWeight::get().reads(17)) .saturating_add(T::DbWeight::get().writes(9)) } @@ -154,8 +154,8 @@ impl module_honzon::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2780` // Estimated: `8720` - // Minimum execution time: 95_245 nanoseconds. - Weight::from_parts(98_042_000, 8720) + // Minimum execution time: 95_224 nanoseconds. + Weight::from_parts(97_498_000, 8720) .saturating_add(T::DbWeight::get().reads(16)) .saturating_add(T::DbWeight::get().writes(7)) } @@ -207,10 +207,10 @@ impl module_honzon::WeightInfo for WeightInfo { // Proof: `Homa::TotalVoidLiquid` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn close_loan_has_debit_by_dex() -> Weight { // Proof Size summary in bytes: - // Measured: `5457` + // Measured: `5419` // Estimated: `21966` - // Minimum execution time: 316_635 nanoseconds. - Weight::from_parts(326_660_000, 21966) + // Minimum execution time: 308_261 nanoseconds. + Weight::from_parts(316_684_000, 21966) .saturating_add(T::DbWeight::get().reads(39)) .saturating_add(T::DbWeight::get().writes(15)) } @@ -250,8 +250,8 @@ impl module_honzon::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `4743` // Estimated: `11478` - // Minimum execution time: 229_322 nanoseconds. - Weight::from_parts(234_785_000, 11478) + // Minimum execution time: 228_883 nanoseconds. + Weight::from_parts(233_057_000, 11478) .saturating_add(T::DbWeight::get().reads(27)) .saturating_add(T::DbWeight::get().writes(12)) } @@ -289,10 +289,10 @@ impl module_honzon::WeightInfo for WeightInfo { // Proof: `Loans::TotalPositions` (`max_values`: None, `max_size`: Some(83), added: 2558, mode: `MaxEncodedLen`) fn shrink_position_debit() -> Weight { // Proof Size summary in bytes: - // Measured: `4615` + // Measured: `4577` // Estimated: `19344` - // Minimum execution time: 261_525 nanoseconds. - Weight::from_parts(266_776_000, 19344) + // Minimum execution time: 256_139 nanoseconds. + Weight::from_parts(262_932_000, 19344) .saturating_add(T::DbWeight::get().reads(29)) .saturating_add(T::DbWeight::get().writes(13)) } @@ -322,10 +322,10 @@ impl module_honzon::WeightInfo for WeightInfo { // Proof: `Homa::TotalVoidLiquid` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn transfer_debit() -> Weight { // Proof Size summary in bytes: - // Measured: `2955` - // Estimated: `8895` - // Minimum execution time: 142_049 nanoseconds. - Weight::from_parts(146_411_000, 8895) + // Measured: `2917` + // Estimated: `8857` + // Minimum execution time: 136_444 nanoseconds. + Weight::from_parts(140_891_000, 8857) .saturating_add(T::DbWeight::get().reads(20)) .saturating_add(T::DbWeight::get().writes(6)) } @@ -349,10 +349,10 @@ impl module_honzon::WeightInfo for WeightInfo { // Proof: `CdpEngine::DebitExchangeRate` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) fn precompile_get_current_collateral_ratio() -> Weight { // Proof Size summary in bytes: - // Measured: `2054` - // Estimated: `7994` - // Minimum execution time: 40_584 nanoseconds. - Weight::from_parts(41_990_000, 7994) + // Measured: `2016` + // Estimated: `7956` + // Minimum execution time: 39_668 nanoseconds. + Weight::from_parts(40_496_000, 7956) .saturating_add(T::DbWeight::get().reads(11)) } } diff --git a/runtime/karura/src/weights/module_honzon_bridge.rs b/runtime/karura/src/weights/module_honzon_bridge.rs index d8109d3c15..cf37d1ca5c 100644 --- a/runtime/karura/src/weights/module_honzon_bridge.rs +++ b/runtime/karura/src/weights/module_honzon_bridge.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_honzon_bridge //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-26-6`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-40-129`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("karura-dev"), DB CACHE: 1024 // Executed Command: @@ -53,8 +53,8 @@ impl module_honzon_bridge::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `965` // Estimated: `0` - // Minimum execution time: 12_320 nanoseconds. - Weight::from_parts(12_962_000, 0) + // Minimum execution time: 11_972 nanoseconds. + Weight::from_parts(12_273_000, 0) .saturating_add(T::DbWeight::get().writes(1)) } // Storage: `HonzonBridge::BridgedStableCoinCurrencyId` (r:1 w:0) @@ -63,8 +63,8 @@ impl module_honzon_bridge::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `1119` // Estimated: `1528` - // Minimum execution time: 14_710 nanoseconds. - Weight::from_parts(15_497_000, 1528) + // Minimum execution time: 14_538 nanoseconds. + Weight::from_parts(14_854_000, 1528) .saturating_add(T::DbWeight::get().reads(1)) } // Storage: `HonzonBridge::BridgedStableCoinCurrencyId` (r:1 w:0) @@ -73,8 +73,8 @@ impl module_honzon_bridge::WeightInfo for WeightInfo // Proof Size summary in bytes: // Measured: `1119` // Estimated: `1528` - // Minimum execution time: 14_874 nanoseconds. - Weight::from_parts(15_276_000, 1528) + // Minimum execution time: 14_461 nanoseconds. + Weight::from_parts(14_777_000, 1528) .saturating_add(T::DbWeight::get().reads(1)) } } diff --git a/runtime/karura/src/weights/module_idle_scheduler.rs b/runtime/karura/src/weights/module_idle_scheduler.rs index cc8ab5525d..92604dd5d2 100644 --- a/runtime/karura/src/weights/module_idle_scheduler.rs +++ b/runtime/karura/src/weights/module_idle_scheduler.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_idle_scheduler //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-26-6`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-40-129`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("karura-dev"), DB CACHE: 1024 // Executed Command: @@ -57,8 +57,8 @@ impl module_idle_scheduler::WeightInfo for WeightInfo module_idle_scheduler::WeightInfo for WeightInfo module_idle_scheduler::WeightInfo for WeightInfo module_idle_scheduler::WeightInfo for WeightInfo module_incentives::WeightInfo for WeightInfo { fn on_initialize(c: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `1262 + c * (206 ±0)` - // Estimated: `4757 + c * (5027 ±5)` - // Minimum execution time: 8_745 nanoseconds. - Weight::from_parts(12_433_464, 4757) - // Standard Error: 121_600 - .saturating_add(Weight::from_parts(16_505_495, 0).saturating_mul(c.into())) + // Estimated: `4757 + c * (5027 ±0)` + // Minimum execution time: 8_581 nanoseconds. + Weight::from_parts(12_178_957, 4757) + // Standard Error: 117_653 + .saturating_add(Weight::from_parts(16_162_217, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(c.into()))) .saturating_add(Weight::from_parts(0, 5027).saturating_mul(c.into())) @@ -82,8 +82,8 @@ impl module_incentives::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1841` // Estimated: `6234` - // Minimum execution time: 55_514 nanoseconds. - Weight::from_parts(56_665_000, 6234) + // Minimum execution time: 53_209 nanoseconds. + Weight::from_parts(54_763_000, 6234) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(5)) } @@ -99,8 +99,8 @@ impl module_incentives::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1848` // Estimated: `6234` - // Minimum execution time: 56_679 nanoseconds. - Weight::from_parts(58_174_000, 6234) + // Minimum execution time: 54_714 nanoseconds. + Weight::from_parts(56_127_000, 6234) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) } @@ -122,8 +122,8 @@ impl module_incentives::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1893` // Estimated: `5358` - // Minimum execution time: 86_244 nanoseconds. - Weight::from_parts(88_623_000, 5358) + // Minimum execution time: 83_162 nanoseconds. + Weight::from_parts(85_566_000, 5358) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(4)) } @@ -134,10 +134,10 @@ impl module_incentives::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `751 + c * (85 ±0)` // Estimated: `1997 + c * (2475 ±0)` - // Minimum execution time: 3_977 nanoseconds. - Weight::from_parts(6_637_450, 1997) - // Standard Error: 85_204 - .saturating_add(Weight::from_parts(6_662_122, 0).saturating_mul(c.into())) + // Minimum execution time: 4_023 nanoseconds. + Weight::from_parts(6_753_458, 1997) + // Standard Error: 87_479 + .saturating_add(Weight::from_parts(6_268_203, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) .saturating_add(Weight::from_parts(0, 2475).saturating_mul(c.into())) @@ -149,10 +149,10 @@ impl module_incentives::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `676 + c * (10 ±0)` // Estimated: `1698 + c * (2475 ±0)` - // Minimum execution time: 4_042 nanoseconds. - Weight::from_parts(4_763_829, 1698) - // Standard Error: 16_210 - .saturating_add(Weight::from_parts(2_028_334, 0).saturating_mul(c.into())) + // Minimum execution time: 3_950 nanoseconds. + Weight::from_parts(4_652_969, 1698) + // Standard Error: 15_055 + .saturating_add(Weight::from_parts(1_895_983, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) .saturating_add(Weight::from_parts(0, 2475).saturating_mul(c.into())) @@ -163,8 +163,8 @@ impl module_incentives::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1007` // Estimated: `4472` - // Minimum execution time: 14_900 nanoseconds. - Weight::from_parts(15_198_000, 4472) + // Minimum execution time: 14_406 nanoseconds. + Weight::from_parts(14_906_000, 4472) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/karura/src/weights/module_nft.rs b/runtime/karura/src/weights/module_nft.rs index 1d39b8c964..d97a6703e1 100644 --- a/runtime/karura/src/weights/module_nft.rs +++ b/runtime/karura/src/weights/module_nft.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_nft //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-26-6`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-40-129`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("karura-dev"), DB CACHE: 1024 // Executed Command: @@ -61,8 +61,8 @@ impl module_nft::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `385` // Estimated: `6196` - // Minimum execution time: 77_753 nanoseconds. - Weight::from_parts(79_477_000, 6196) + // Minimum execution time: 75_236 nanoseconds. + Weight::from_parts(75_966_000, 6196) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(6)) } @@ -83,10 +83,10 @@ impl module_nft::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2496` // Estimated: `6196` - // Minimum execution time: 100_670 nanoseconds. - Weight::from_parts(71_132_716, 6196) - // Standard Error: 12_077 - .saturating_add(Weight::from_parts(22_987_455, 0).saturating_mul(i.into())) + // Minimum execution time: 96_858 nanoseconds. + Weight::from_parts(59_718_987, 6196) + // Standard Error: 20_623 + .saturating_add(Weight::from_parts(23_141_936, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(5)) .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(i.into()))) @@ -105,8 +105,8 @@ impl module_nft::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `4845` // Estimated: `8310` - // Minimum execution time: 108_362 nanoseconds. - Weight::from_parts(109_972_000, 8310) + // Minimum execution time: 104_493 nanoseconds. + Weight::from_parts(106_244_000, 8310) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(7)) } @@ -124,8 +124,8 @@ impl module_nft::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `4744` // Estimated: `8209` - // Minimum execution time: 70_450 nanoseconds. - Weight::from_parts(71_673_000, 8209) + // Minimum execution time: 68_654 nanoseconds. + Weight::from_parts(69_469_000, 8209) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(5)) } @@ -144,10 +144,10 @@ impl module_nft::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `4744` // Estimated: `8209` - // Minimum execution time: 71_555 nanoseconds. - Weight::from_parts(71_910_000, 8209) - // Standard Error: 2 - .saturating_add(Weight::from_parts(1_653, 0).saturating_mul(b.into())) + // Minimum execution time: 69_233 nanoseconds. + Weight::from_parts(70_157_000, 8209) + // Standard Error: 3 + .saturating_add(Weight::from_parts(1_692, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(5)) } @@ -167,8 +167,8 @@ impl module_nft::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2831` // Estimated: `6296` - // Minimum execution time: 100_881 nanoseconds. - Weight::from_parts(102_627_000, 6296) + // Minimum execution time: 97_233 nanoseconds. + Weight::from_parts(98_933_000, 6296) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(6)) } @@ -178,8 +178,8 @@ impl module_nft::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2339` // Estimated: `5804` - // Minimum execution time: 17_731 nanoseconds. - Weight::from_parts(18_413_000, 5804) + // Minimum execution time: 17_660 nanoseconds. + Weight::from_parts(18_023_000, 5804) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/karura/src/weights/module_prices.rs b/runtime/karura/src/weights/module_prices.rs index 990a9cd949..90484d8b53 100644 --- a/runtime/karura/src/weights/module_prices.rs +++ b/runtime/karura/src/weights/module_prices.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_prices //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-26-6`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-40-129`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("karura-dev"), DB CACHE: 1024 // Executed Command: @@ -57,8 +57,8 @@ impl module_prices::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1388` // Estimated: `4853` - // Minimum execution time: 23_400 nanoseconds. - Weight::from_parts(24_356_000, 4853) + // Minimum execution time: 23_466 nanoseconds. + Weight::from_parts(23_992_000, 4853) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -68,8 +68,8 @@ impl module_prices::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1091` // Estimated: `3532` - // Minimum execution time: 17_617 nanoseconds. - Weight::from_parts(18_051_000, 3532) + // Minimum execution time: 17_125 nanoseconds. + Weight::from_parts(17_858_000, 3532) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/karura/src/weights/module_session_manager.rs b/runtime/karura/src/weights/module_session_manager.rs index 48a67fb444..618fb0c08a 100644 --- a/runtime/karura/src/weights/module_session_manager.rs +++ b/runtime/karura/src/weights/module_session_manager.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_session_manager //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-26-6`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-40-129`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("karura-dev"), DB CACHE: 1024 // Executed Command: @@ -59,8 +59,8 @@ impl module_session_manager::WeightInfo for WeightInfo< // Proof Size summary in bytes: // Measured: `1524` // Estimated: `3009` - // Minimum execution time: 19_931 nanoseconds. - Weight::from_parts(20_649_000, 3009) + // Minimum execution time: 19_505 nanoseconds. + Weight::from_parts(20_033_000, 3009) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -70,8 +70,8 @@ impl module_session_manager::WeightInfo for WeightInfo< // Proof Size summary in bytes: // Measured: `809` // Estimated: `3485` - // Minimum execution time: 5_630 nanoseconds. - Weight::from_parts(5_909_000, 3485) + // Minimum execution time: 5_477 nanoseconds. + Weight::from_parts(5_775_000, 3485) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -85,8 +85,8 @@ impl module_session_manager::WeightInfo for WeightInfo< // Proof Size summary in bytes: // Measured: `809` // Estimated: `3485` - // Minimum execution time: 6_026 nanoseconds. - Weight::from_parts(6_261_000, 3485) + // Minimum execution time: 5_916 nanoseconds. + Weight::from_parts(6_316_000, 3485) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -98,8 +98,8 @@ impl module_session_manager::WeightInfo for WeightInfo< // Proof Size summary in bytes: // Measured: `769` // Estimated: `1489` - // Minimum execution time: 3_973 nanoseconds. - Weight::from_parts(4_232_000, 1489) + // Minimum execution time: 4_046 nanoseconds. + Weight::from_parts(4_235_000, 1489) .saturating_add(T::DbWeight::get().reads(2)) } // Storage: `SessionManager::DurationOffset` (r:1 w:0) @@ -110,8 +110,8 @@ impl module_session_manager::WeightInfo for WeightInfo< // Proof Size summary in bytes: // Measured: `769` // Estimated: `1489` - // Minimum execution time: 3_949 nanoseconds. - Weight::from_parts(4_137_000, 1489) + // Minimum execution time: 4_061 nanoseconds. + Weight::from_parts(4_244_000, 1489) .saturating_add(T::DbWeight::get().reads(2)) } } diff --git a/runtime/karura/src/weights/module_transaction_pause.rs b/runtime/karura/src/weights/module_transaction_pause.rs index 166ae93146..133b068af1 100644 --- a/runtime/karura/src/weights/module_transaction_pause.rs +++ b/runtime/karura/src/weights/module_transaction_pause.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_transaction_pause //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-26-6`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-40-129`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("karura-dev"), DB CACHE: 1024 // Executed Command: @@ -53,8 +53,8 @@ impl module_transaction_pause::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `1140` // Estimated: `4605` - // Minimum execution time: 15_604 nanoseconds. - Weight::from_parts(16_243_000, 4605) + // Minimum execution time: 15_018 nanoseconds. + Weight::from_parts(15_473_000, 4605) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -64,8 +64,8 @@ impl module_transaction_pause::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `1191` // Estimated: `4656` - // Minimum execution time: 16_500 nanoseconds. - Weight::from_parts(17_342_000, 4656) + // Minimum execution time: 16_335 nanoseconds. + Weight::from_parts(16_978_000, 4656) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -75,8 +75,8 @@ impl module_transaction_pause::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `1140` // Estimated: `4605` - // Minimum execution time: 15_475 nanoseconds. - Weight::from_parts(15_957_000, 4605) + // Minimum execution time: 15_059 nanoseconds. + Weight::from_parts(15_343_000, 4605) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -86,8 +86,8 @@ impl module_transaction_pause::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `1201` // Estimated: `4666` - // Minimum execution time: 16_820 nanoseconds. - Weight::from_parts(17_291_000, 4666) + // Minimum execution time: 16_562 nanoseconds. + Weight::from_parts(17_104_000, 4666) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/karura/src/weights/module_transaction_payment.rs b/runtime/karura/src/weights/module_transaction_payment.rs index ebeea607fd..fb6e4fb023 100644 --- a/runtime/karura/src/weights/module_transaction_payment.rs +++ b/runtime/karura/src/weights/module_transaction_payment.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for module_transaction_payment //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-26-6`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-40-129`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("karura-dev"), DB CACHE: 1024 // Executed Command: @@ -55,8 +55,8 @@ impl module_transaction_payment::WeightInfo for WeightI // Proof Size summary in bytes: // Measured: `1406` // Estimated: `3633` - // Minimum execution time: 30_893 nanoseconds. - Weight::from_parts(31_598_000, 3633) + // Minimum execution time: 30_215 nanoseconds. + Weight::from_parts(30_853_000, 3633) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -82,8 +82,8 @@ impl module_transaction_payment::WeightInfo for WeightI // Proof Size summary in bytes: // Measured: `2221` // Estimated: `9000` - // Minimum execution time: 102_926 nanoseconds. - Weight::from_parts(105_969_000, 9000) + // Minimum execution time: 98_326 nanoseconds. + Weight::from_parts(100_259_000, 9000) .saturating_add(T::DbWeight::get().reads(10)) .saturating_add(T::DbWeight::get().writes(6)) } @@ -105,8 +105,8 @@ impl module_transaction_payment::WeightInfo for WeightI // Proof Size summary in bytes: // Measured: `1778` // Estimated: `6234` - // Minimum execution time: 88_698 nanoseconds. - Weight::from_parts(90_520_000, 6234) + // Minimum execution time: 85_444 nanoseconds. + Weight::from_parts(87_224_000, 6234) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(7)) } @@ -114,22 +114,22 @@ impl module_transaction_payment::WeightInfo for WeightI // Proof Size summary in bytes: // Measured: `666` // Estimated: `0` - // Minimum execution time: 7_966 nanoseconds. - Weight::from_parts(8_275_000, 0) + // Minimum execution time: 7_491 nanoseconds. + Weight::from_parts(7_784_000, 0) } fn with_fee_currency() -> Weight { // Proof Size summary in bytes: // Measured: `666` // Estimated: `0` - // Minimum execution time: 8_626 nanoseconds. - Weight::from_parts(9_050_000, 0) + // Minimum execution time: 8_233 nanoseconds. + Weight::from_parts(8_842_000, 0) } fn with_fee_aggregated_path() -> Weight { // Proof Size summary in bytes: // Measured: `666` // Estimated: `0` - // Minimum execution time: 8_943 nanoseconds. - Weight::from_parts(9_360_000, 0) + // Minimum execution time: 8_690 nanoseconds. + Weight::from_parts(9_100_000, 0) } // Storage: `TransactionPayment::NextFeeMultiplier` (r:1 w:1) // Proof: `TransactionPayment::NextFeeMultiplier` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) @@ -137,8 +137,8 @@ impl module_transaction_payment::WeightInfo for WeightI // Proof Size summary in bytes: // Measured: `923` // Estimated: `2408` - // Minimum execution time: 8_570 nanoseconds. - Weight::from_parts(8_815_000, 2408) + // Minimum execution time: 8_038 nanoseconds. + Weight::from_parts(8_227_000, 2408) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/karura/src/weights/nutsfinance_stable_asset.rs b/runtime/karura/src/weights/nutsfinance_stable_asset.rs index 2e88b1f224..df82457bd2 100644 --- a/runtime/karura/src/weights/nutsfinance_stable_asset.rs +++ b/runtime/karura/src/weights/nutsfinance_stable_asset.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for nutsfinance_stable_asset //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-26-6`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-40-129`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("karura-dev"), DB CACHE: 1024 // Executed Command: @@ -57,8 +57,8 @@ impl nutsfinance_stable_asset::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `1313` // Estimated: `4778` - // Minimum execution time: 24_038 nanoseconds. - Weight::from_parts(24_431_000, 4778) + // Minimum execution time: 23_149 nanoseconds. + Weight::from_parts(23_884_000, 4778) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -68,8 +68,8 @@ impl nutsfinance_stable_asset::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `1506` // Estimated: `4971` - // Minimum execution time: 19_864 nanoseconds. - Weight::from_parts(20_540_000, 4971) + // Minimum execution time: 19_334 nanoseconds. + Weight::from_parts(20_052_000, 4971) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -79,8 +79,8 @@ impl nutsfinance_stable_asset::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `1506` // Estimated: `4971` - // Minimum execution time: 18_970 nanoseconds. - Weight::from_parts(19_723_000, 4971) + // Minimum execution time: 18_726 nanoseconds. + Weight::from_parts(19_360_000, 4971) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -90,8 +90,8 @@ impl nutsfinance_stable_asset::WeightInfo for WeightInf // Proof Size summary in bytes: // Measured: `1506` // Estimated: `4971` - // Minimum execution time: 19_091 nanoseconds. - Weight::from_parts(19_749_000, 4971) + // Minimum execution time: 18_812 nanoseconds. + Weight::from_parts(19_139_000, 4971) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -114,12 +114,12 @@ impl nutsfinance_stable_asset::WeightInfo for WeightInf /// The range of component `u` is `[2, 5]`. fn mint(u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2298 + u * (186 ±0)` + // Measured: `2336 + u * (167 ±0)` // Estimated: `6196 + u * (5244 ±0)` - // Minimum execution time: 148_877 nanoseconds. - Weight::from_parts(90_587_560, 6196) - // Standard Error: 183_135 - .saturating_add(Weight::from_parts(32_655_975, 0).saturating_mul(u.into())) + // Minimum execution time: 146_058 nanoseconds. + Weight::from_parts(89_767_877, 6196) + // Standard Error: 207_175 + .saturating_add(Weight::from_parts(31_614_808, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes(4)) @@ -145,12 +145,12 @@ impl nutsfinance_stable_asset::WeightInfo for WeightInf /// The range of component `u` is `[2, 5]`. fn swap(u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2490 + u * (183 ±0)` - // Estimated: `5965 + u * (2622 ±0)` - // Minimum execution time: 1_939_376 nanoseconds. - Weight::from_parts(501_429_221, 5965) - // Standard Error: 5_013_641 - .saturating_add(Weight::from_parts(764_812_854, 0).saturating_mul(u.into())) + // Measured: `2528 + u * (164 ±0)` + // Estimated: `5994 + u * (2622 ±0)` + // Minimum execution time: 1_889_585 nanoseconds. + Weight::from_parts(545_074_575, 5994) + // Standard Error: 5_409_267 + .saturating_add(Weight::from_parts(726_124_110, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes(6)) @@ -175,12 +175,12 @@ impl nutsfinance_stable_asset::WeightInfo for WeightInf /// The range of component `u` is `[2, 5]`. fn redeem_proportion(u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2467 + u * (247 ±0)` - // Estimated: `5946 + u * (5244 ±0)` - // Minimum execution time: 175_735 nanoseconds. - Weight::from_parts(116_259_763, 5946) - // Standard Error: 187_840 - .saturating_add(Weight::from_parts(33_700_455, 0).saturating_mul(u.into())) + // Measured: `2505 + u * (228 ±0)` + // Estimated: `5975 + u * (5244 ±0)` + // Minimum execution time: 172_498 nanoseconds. + Weight::from_parts(113_168_810, 5975) + // Standard Error: 164_148 + .saturating_add(Weight::from_parts(33_173_262, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes(3)) @@ -204,12 +204,12 @@ impl nutsfinance_stable_asset::WeightInfo for WeightInf /// The range of component `u` is `[2, 5]`. fn redeem_single(u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1560 + u * (244 ±0)` - // Estimated: `5081 + u * (1016 ±20)` - // Minimum execution time: 1_514_979 nanoseconds. - Weight::from_parts(756_731_955, 5081) - // Standard Error: 1_471_959 - .saturating_add(Weight::from_parts(395_950_983, 0).saturating_mul(u.into())) + // Measured: `1598 + u * (225 ±0)` + // Estimated: `5110 + u * (1016 ±0)` + // Minimum execution time: 1_479_493 nanoseconds. + Weight::from_parts(806_038_511, 5110) + // Standard Error: 1_260_080 + .saturating_add(Weight::from_parts(356_752_802, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into()))) .saturating_add(Weight::from_parts(0, 1016).saturating_mul(u.into())) @@ -233,12 +233,12 @@ impl nutsfinance_stable_asset::WeightInfo for WeightInf /// The range of component `u` is `[2, 5]`. fn redeem_multi(u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2467 + u * (247 ±0)` - // Estimated: `5946 + u * (5244 ±0)` - // Minimum execution time: 151_748 nanoseconds. - Weight::from_parts(99_538_404, 5946) - // Standard Error: 186_295 - .saturating_add(Weight::from_parts(29_723_387, 0).saturating_mul(u.into())) + // Measured: `2505 + u * (228 ±0)` + // Estimated: `5975 + u * (5244 ±0)` + // Minimum execution time: 149_230 nanoseconds. + Weight::from_parts(97_928_824, 5975) + // Standard Error: 200_508 + .saturating_add(Weight::from_parts(28_906_789, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes(3)) diff --git a/runtime/karura/src/weights/orml_auction.rs b/runtime/karura/src/weights/orml_auction.rs index eb1399c111..065000cbac 100644 --- a/runtime/karura/src/weights/orml_auction.rs +++ b/runtime/karura/src/weights/orml_auction.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for orml_auction //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-26-6`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-40-129`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("karura-dev"), DB CACHE: 1024 // Executed Command: @@ -63,8 +63,8 @@ impl orml_auction::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2470` // Estimated: `8856` - // Minimum execution time: 89_209 nanoseconds. - Weight::from_parts(90_829_000, 8856) + // Minimum execution time: 85_650 nanoseconds. + Weight::from_parts(88_194_000, 8856) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(8)) } @@ -97,10 +97,10 @@ impl orml_auction::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `2600 + c * (981 ±0)` // Estimated: `6330 + c * (2614 ±0)` - // Minimum execution time: 93_116 nanoseconds. - Weight::from_parts(54_965_635, 6330) - // Standard Error: 16_461 - .saturating_add(Weight::from_parts(40_572_235, 0).saturating_mul(c.into())) + // Minimum execution time: 91_749 nanoseconds. + Weight::from_parts(49_388_579, 6330) + // Standard Error: 22_150 + .saturating_add(Weight::from_parts(40_045_318, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(13)) .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(7)) diff --git a/runtime/karura/src/weights/orml_authority.rs b/runtime/karura/src/weights/orml_authority.rs index 54bbcdbbc6..2a1e3302f3 100644 --- a/runtime/karura/src/weights/orml_authority.rs +++ b/runtime/karura/src/weights/orml_authority.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for orml_authority //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-26-6`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-40-129`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("karura-dev"), DB CACHE: 1024 // Executed Command: @@ -51,8 +51,8 @@ impl orml_authority::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `965` // Estimated: `0` - // Minimum execution time: 13_498 nanoseconds. - Weight::from_parts(14_185_000, 0) + // Minimum execution time: 13_031 nanoseconds. + Weight::from_parts(13_315_000, 0) } // Storage: `Authority::NextTaskIndex` (r:1 w:1) // Proof: `Authority::NextTaskIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) @@ -64,8 +64,8 @@ impl orml_authority::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1111` // Estimated: `11318` - // Minimum execution time: 25_581 nanoseconds. - Weight::from_parts(26_236_000, 11318) + // Minimum execution time: 24_137 nanoseconds. + Weight::from_parts(25_080_000, 11318) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -79,8 +79,8 @@ impl orml_authority::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1111` // Estimated: `11318` - // Minimum execution time: 26_409 nanoseconds. - Weight::from_parts(26_857_000, 11318) + // Minimum execution time: 25_254 nanoseconds. + Weight::from_parts(25_936_000, 11318) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -92,8 +92,8 @@ impl orml_authority::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1188` // Estimated: `21646` - // Minimum execution time: 34_450 nanoseconds. - Weight::from_parts(35_314_000, 21646) + // Minimum execution time: 32_250 nanoseconds. + Weight::from_parts(33_192_000, 21646) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -105,8 +105,8 @@ impl orml_authority::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1188` // Estimated: `21646` - // Minimum execution time: 34_243 nanoseconds. - Weight::from_parts(35_101_000, 21646) + // Minimum execution time: 32_125 nanoseconds. + Weight::from_parts(32_936_000, 21646) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -118,8 +118,8 @@ impl orml_authority::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1188` // Estimated: `11318` - // Minimum execution time: 27_514 nanoseconds. - Weight::from_parts(28_359_000, 11318) + // Minimum execution time: 26_070 nanoseconds. + Weight::from_parts(26_754_000, 11318) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -129,8 +129,8 @@ impl orml_authority::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `965` // Estimated: `965` - // Minimum execution time: 13_775 nanoseconds. - Weight::from_parts(14_288_000, 965) + // Minimum execution time: 13_675 nanoseconds. + Weight::from_parts(14_059_000, 965) .saturating_add(T::DbWeight::get().writes(1)) } // Storage: `Authority::SavedCalls` (r:1 w:1) @@ -139,8 +139,8 @@ impl orml_authority::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1306` // Estimated: `4771` - // Minimum execution time: 18_956 nanoseconds. - Weight::from_parts(19_431_000, 4771) + // Minimum execution time: 18_673 nanoseconds. + Weight::from_parts(19_278_000, 4771) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -150,8 +150,8 @@ impl orml_authority::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1306` // Estimated: `4771` - // Minimum execution time: 22_843 nanoseconds. - Weight::from_parts(23_593_000, 4771) + // Minimum execution time: 22_508 nanoseconds. + Weight::from_parts(22_858_000, 4771) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/karura/src/weights/orml_oracle.rs b/runtime/karura/src/weights/orml_oracle.rs index 06e4faeec2..6f676e5df9 100644 --- a/runtime/karura/src/weights/orml_oracle.rs +++ b/runtime/karura/src/weights/orml_oracle.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for orml_oracle //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-26-6`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-40-129`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("karura-dev"), DB CACHE: 1024 // Executed Command: @@ -62,10 +62,10 @@ impl orml_oracle::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1204 + c * (16 ±0)` // Estimated: `3086 + c * (2550 ±0)` - // Minimum execution time: 16_193 nanoseconds. - Weight::from_parts(18_111_773, 3086) - // Standard Error: 44_376 - .saturating_add(Weight::from_parts(5_921_089, 0).saturating_mul(c.into())) + // Minimum execution time: 15_849 nanoseconds. + Weight::from_parts(17_688_161, 3086) + // Standard Error: 41_289 + .saturating_add(Weight::from_parts(5_801_886, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -78,8 +78,8 @@ impl orml_oracle::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `840` // Estimated: `0` - // Minimum execution time: 6_198 nanoseconds. - Weight::from_parts(6_389_000, 0) + // Minimum execution time: 6_200 nanoseconds. + Weight::from_parts(6_437_000, 0) .saturating_add(T::DbWeight::get().writes(1)) } } diff --git a/runtime/karura/src/weights/orml_tokens.rs b/runtime/karura/src/weights/orml_tokens.rs index 0f2793ccab..e09111f462 100644 --- a/runtime/karura/src/weights/orml_tokens.rs +++ b/runtime/karura/src/weights/orml_tokens.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for orml_tokens //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-26-6`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-40-129`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("karura-dev"), DB CACHE: 1024 // Executed Command: @@ -57,8 +57,8 @@ impl orml_tokens::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1578` // Estimated: `6234` - // Minimum execution time: 43_931 nanoseconds. - Weight::from_parts(44_830_000, 6234) + // Minimum execution time: 41_533 nanoseconds. + Weight::from_parts(42_854_000, 6234) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -72,8 +72,8 @@ impl orml_tokens::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1578` // Estimated: `6234` - // Minimum execution time: 46_445 nanoseconds. - Weight::from_parts(47_324_000, 6234) + // Minimum execution time: 44_512 nanoseconds. + Weight::from_parts(45_518_000, 6234) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -85,8 +85,8 @@ impl orml_tokens::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1296` // Estimated: `6234` - // Minimum execution time: 32_743 nanoseconds. - Weight::from_parts(33_598_000, 6234) + // Minimum execution time: 30_766 nanoseconds. + Weight::from_parts(31_647_000, 6234) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -98,8 +98,8 @@ impl orml_tokens::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1432` // Estimated: `6234` - // Minimum execution time: 35_710 nanoseconds. - Weight::from_parts(36_312_000, 6234) + // Minimum execution time: 33_551 nanoseconds. + Weight::from_parts(34_577_000, 6234) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -113,8 +113,8 @@ impl orml_tokens::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1128` // Estimated: `3612` - // Minimum execution time: 26_165 nanoseconds. - Weight::from_parts(26_954_000, 3612) + // Minimum execution time: 24_755 nanoseconds. + Weight::from_parts(25_351_000, 3612) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } diff --git a/runtime/karura/src/weights/orml_vesting.rs b/runtime/karura/src/weights/orml_vesting.rs index 15aff67704..49d213f4d0 100644 --- a/runtime/karura/src/weights/orml_vesting.rs +++ b/runtime/karura/src/weights/orml_vesting.rs @@ -18,9 +18,9 @@ //! Autogenerated weights for orml_vesting //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-02-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-26-6`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-40-129`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! WASM-EXECUTION: Compiled, CHAIN: Some("karura-dev"), DB CACHE: 1024 // Executed Command: @@ -63,8 +63,8 @@ impl orml_vesting::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1654` // Estimated: `6315` - // Minimum execution time: 38_466 nanoseconds. - Weight::from_parts(39_168_000, 6315) + // Minimum execution time: 37_315 nanoseconds. + Weight::from_parts(38_223_000, 6315) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(3)) } @@ -83,10 +83,10 @@ impl orml_vesting::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1794` // Estimated: `6315` - // Minimum execution time: 38_916 nanoseconds. - Weight::from_parts(40_687_614, 6315) - // Standard Error: 568 - .saturating_add(Weight::from_parts(5_201, 0).saturating_mul(i.into())) + // Minimum execution time: 39_104 nanoseconds. + Weight::from_parts(40_485_740, 6315) + // Standard Error: 542 + .saturating_add(Weight::from_parts(6_547, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } @@ -103,10 +103,10 @@ impl orml_vesting::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1266` // Estimated: `4764` - // Minimum execution time: 31_260 nanoseconds. - Weight::from_parts(32_379_694, 4764) - // Standard Error: 377 - .saturating_add(Weight::from_parts(40_811, 0).saturating_mul(i.into())) + // Minimum execution time: 30_950 nanoseconds. + Weight::from_parts(31_945_520, 4764) + // Standard Error: 446 + .saturating_add(Weight::from_parts(40_967, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } diff --git a/runtime/karura/src/weights/pallet_xcm.rs b/runtime/karura/src/weights/pallet_xcm.rs index 78fdc0d5c2..f6e92391e1 100644 --- a/runtime/karura/src/weights/pallet_xcm.rs +++ b/runtime/karura/src/weights/pallet_xcm.rs @@ -352,4 +352,14 @@ impl pallet_xcm::WeightInfo for WeightInfo { .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } + fn claim_assets() -> Weight { + // Proof Size summary in bytes: + // Measured: `7576` + // Estimated: `11041` + // Minimum execution time: 24_595_000 picoseconds. + Weight::from_parts(24_907_000, 0) + .saturating_add(Weight::from_parts(0, 11041)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } } diff --git a/runtime/karura/src/xcm_config.rs b/runtime/karura/src/xcm_config.rs index ce12c6c0de..137a56eb4c 100644 --- a/runtime/karura/src/xcm_config.rs +++ b/runtime/karura/src/xcm_config.rs @@ -50,8 +50,8 @@ use xcm_builder::{ parameter_types! { pub const RelayNetwork: NetworkId = NetworkId::Kusama; pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into(); - pub UniversalLocation: InteriorMultiLocation = X2(GlobalConsensus(RelayNetwork::get()), Parachain(ParachainInfo::parachain_id().into())); - pub NftPalletLocation: InteriorMultiLocation = X1(PalletInstance(121)); + pub UniversalLocation: InteriorLocation = [GlobalConsensus(RelayNetwork::get()), Parachain(ParachainInfo::parachain_id().into())].into(); + pub NftPalletLocation: InteriorLocation = PalletInstance(121).into(); pub CheckingAccount: AccountId = PolkadotXcm::check_account(); } @@ -74,7 +74,7 @@ parameter_types! { pub const UnitWeightCost: XcmWeight = XcmWeight::from_parts(200_000_000, 0); pub const MaxInstructions: u32 = 100; pub KsmPerSecond: (AssetId, u128, u128) = ( - MultiLocation::parent().into(), + Location::parent().into(), ksm_per_second(), 0 ); @@ -102,9 +102,9 @@ parameter_types! { 0 ); pub PHAPerSecond: (AssetId, u128, u128) = ( - MultiLocation::new( + Location::new( 1, - X1(Parachain(parachains::phala::ID)), + Parachain(parachains::phala::ID), ).into(), // PHA:KSM = 400:1 ksm_per_second() * 400, @@ -279,16 +279,16 @@ impl pallet_message_queue::Config for Runtime { } parameter_types! { - pub SelfLocation: MultiLocation = MultiLocation::new(1, X1(Parachain(ParachainInfo::get().into()))); + pub SelfLocation: Location = Location::new(1, Parachain(ParachainInfo::get().into())); pub const BaseXcmWeight: XcmWeight = XcmWeight::from_parts(100_000_000, 0); pub const MaxAssetsForTransfer: usize = 2; } parameter_type_with_key! { - pub ParachainMinFee: |location: MultiLocation| -> Option { + pub ParachainMinFee: |location: Location| -> Option { #[allow(clippy::match_ref_pats)] // false positive match (location.parents, location.first_interior()) { - (1, Some(Parachain(parachains::asset_hub_kusama::ID))) => Some(XcmInterface::get_parachain_fee(*location)), + (1, Some(Parachain(parachains::asset_hub_kusama::ID))) => Some(XcmInterface::get_parachain_fee(location.clone())), _ => None, } }; @@ -299,7 +299,7 @@ impl orml_xtokens::Config for Runtime { type Balance = Balance; type CurrencyId = CurrencyId; type CurrencyIdConvert = CurrencyIdConvert; - type AccountIdToMultiLocation = runtime_common::xcm_config::AccountIdToMultiLocation; + type AccountIdToLocation = runtime_common::xcm_config::AccountIdToLocation; type XcmExecutor = XcmExecutor; type Weigher = FixedWeightBounds; type BaseXcmWeight = BaseXcmWeight; @@ -307,8 +307,10 @@ impl orml_xtokens::Config for Runtime { type UniversalLocation = UniversalLocation; type MaxAssetsForTransfer = MaxAssetsForTransfer; type MinXcmFee = ParachainMinFee; - type MultiLocationsFilter = Everything; + type LocationsFilter = Everything; type ReserveProvider = AbsoluteReserveProvider; + type RateLimiter = (); + type RateLimiterId = (); } pub type LocalAssetTransactor = ( @@ -327,12 +329,12 @@ pub type LocalAssetTransactor = ( pub struct CurrencyIdConvert; -impl Convert> for CurrencyIdConvert { - fn convert(id: CurrencyId) -> Option { +impl Convert> for CurrencyIdConvert { + fn convert(id: CurrencyId) -> Option { use primitives::TokenSymbol::*; use CurrencyId::{Erc20, ForeignAsset, StableAssetPoolToken, Token}; match id { - Token(KSM) => Some(MultiLocation::parent()), + Token(KSM) => Some(Location::parent()), Token(KAR) | Token(KUSD) | Token(LKSM) | Token(TAI) => { native_currency_location(ParachainInfo::get().into(), id.encode()) } @@ -345,42 +347,39 @@ impl Convert> for CurrencyIdConvert { // Bifrost Voucher Slot KSM Token(VSKSM) => native_currency_location(parachains::bifrost::ID, parachains::bifrost::VSKSM_KEY.to_vec()), // Phala Native token - Token(PHA) => Some(MultiLocation::new(1, X1(Parachain(parachains::phala::ID)))), + Token(PHA) => Some(Location::new(1, Parachain(parachains::phala::ID))), // Kintsugi Native token Token(KINT) => native_currency_location(parachains::kintsugi::ID, parachains::kintsugi::KINT_KEY.to_vec()), // Kintsugi wrapped BTC Token(KBTC) => native_currency_location(parachains::kintsugi::ID, parachains::kintsugi::KBTC_KEY.to_vec()), - ForeignAsset(foreign_asset_id) => AssetIdMaps::::get_multi_location(foreign_asset_id), + ForeignAsset(foreign_asset_id) => AssetIdMaps::::get_location(foreign_asset_id), _ => None, } } } -impl Convert> for CurrencyIdConvert { - fn convert(location: MultiLocation) -> Option { +impl Convert> for CurrencyIdConvert { + fn convert(location: Location) -> Option { use primitives::TokenSymbol::*; use CurrencyId::{Erc20, StableAssetPoolToken, Token}; - if location == MultiLocation::parent() { + if location == Location::parent() { return Some(Token(KSM)); } - if let Some(currency_id) = AssetIdMaps::::get_currency_id(location) { + if let Some(currency_id) = AssetIdMaps::::get_currency_id(location.clone()) { return Some(currency_id); } - match location { - MultiLocation { - parents: 1, - interior: X2(Parachain(para_id), GeneralKey { data, length }), - } => { - match (para_id, &data[..data.len().min(length as usize)]) { - (parachains::bifrost::ID, parachains::bifrost::BNC_KEY) => Some(Token(BNC)), - (parachains::bifrost::ID, parachains::bifrost::VSKSM_KEY) => Some(Token(VSKSM)), - (parachains::kintsugi::ID, parachains::kintsugi::KINT_KEY) => Some(Token(KINT)), - (parachains::kintsugi::ID, parachains::kintsugi::KBTC_KEY) => Some(Token(KBTC)), - - (id, key) if id == u32::from(ParachainInfo::get()) => { + match location.unpack() { + (1, [Parachain(para_id), GeneralKey { data, length }]) => { + match (para_id, &data[..data.len().min(*length as usize)]) { + (¶chains::bifrost::ID, parachains::bifrost::BNC_KEY) => Some(Token(BNC)), + (¶chains::bifrost::ID, parachains::bifrost::VSKSM_KEY) => Some(Token(VSKSM)), + (¶chains::kintsugi::ID, parachains::kintsugi::KINT_KEY) => Some(Token(KINT)), + (¶chains::kintsugi::ID, parachains::kintsugi::KBTC_KEY) => Some(Token(KBTC)), + + (id, key) if *id == u32::from(ParachainInfo::get()) => { // Karura if let Ok(currency_id) = CurrencyId::decode(&mut &*key) { // check `currency_id` is cross-chain asset @@ -398,16 +397,10 @@ impl Convert> for CurrencyIdConvert { _ => None, } } - MultiLocation { - parents: 1, - interior: X1(Parachain(parachains::phala::ID)), - } => Some(Token(PHA)), + (1, [Parachain(parachains::phala::ID)]) => Some(Token(PHA)), // adapt for re-anchor canonical location: https://github.com/paritytech/polkadot/pull/4470 - MultiLocation { - parents: 0, - interior: X1(GeneralKey { data, length }), - } => { - let key = &data[..data.len().min(length as usize)]; + (0, [GeneralKey { data, length }]) => { + let key = &data[..data.len().min(*length as usize)]; let currency_id = CurrencyId::decode(&mut &*key).ok()?; match currency_id { Token(KAR) | Token(KUSD) | Token(LKSM) | Token(TAI) => Some(currency_id), @@ -421,15 +414,9 @@ impl Convert> for CurrencyIdConvert { } } -impl Convert> for CurrencyIdConvert { - fn convert(asset: MultiAsset) -> Option { - if let MultiAsset { - id: Concrete(location), .. - } = asset - { - Self::convert(location) - } else { - None - } +impl Convert> for CurrencyIdConvert { + fn convert(asset: Asset) -> Option { + let AssetId(location) = asset.id; + Self::convert(location) } } diff --git a/runtime/mandala/Cargo.toml b/runtime/mandala/Cargo.toml index dfd334e1fc..54f9088559 100644 --- a/runtime/mandala/Cargo.toml +++ b/runtime/mandala/Cargo.toml @@ -318,6 +318,7 @@ runtime-benchmarks = [ "acala-service/runtime-benchmarks", "orml-authority/runtime-benchmarks", + "orml-oracle/runtime-benchmarks", "orml-parameters/runtime-benchmarks", "orml-tokens/runtime-benchmarks", "orml-vesting/runtime-benchmarks", diff --git a/runtime/mandala/src/benchmarking/asset_registry.rs b/runtime/mandala/src/benchmarking/asset_registry.rs index 875fc1d713..89cbfaeda0 100644 --- a/runtime/mandala/src/benchmarking/asset_registry.rs +++ b/runtime/mandala/src/benchmarking/asset_registry.rs @@ -26,7 +26,7 @@ use module_support::AddressMapping; use orml_benchmarking::runtime_benchmarks; use primitives::currency::AssetMetadata; use sp_std::{boxed::Box, str::FromStr, vec}; -use xcm::{v3::MultiLocation, VersionedMultiLocation}; +use xcm::{prelude::*, v4::Location}; pub fn alice() -> AccountId { ::AddressMapping::get_account_id(&alice_evm_addr()) @@ -61,10 +61,10 @@ runtime_benchmarks! { { Runtime, module_asset_registry } register_foreign_asset { - let location = VersionedMultiLocation::V3(MultiLocation { - parents: 0, - interior: xcm::v3::Junctions::X1(xcm::v3::Junction::Parachain(1000)), - }); + let location = VersionedLocation::V4(Location::new( + 0, + [Parachain(1000)], + )); let asset_metadata = AssetMetadata { name: b"Token Name".to_vec(), symbol: b"TN".to_vec(), @@ -74,10 +74,10 @@ runtime_benchmarks! { }: _(RawOrigin::Root, Box::new(location), Box::new(asset_metadata)) update_foreign_asset { - let location = VersionedMultiLocation::V3(MultiLocation { - parents: 0, - interior: xcm::v3::Junctions::X1(xcm::v3::Junction::Parachain(1000)), - }); + let location = VersionedLocation::V4(Location::new( + 0, + [Parachain(1000)], + )); let asset_metadata = AssetMetadata { name: b"Token Name".to_vec(), symbol: b"TN".to_vec(), diff --git a/runtime/mandala/src/benchmarking/incentives.rs b/runtime/mandala/src/benchmarking/incentives.rs index 5f28ee9665..1d6bdd056b 100644 --- a/runtime/mandala/src/benchmarking/incentives.rs +++ b/runtime/mandala/src/benchmarking/incentives.rs @@ -23,7 +23,7 @@ use super::{ utils::{dollar, set_balance, NATIVE, STABLECOIN, STAKING}, }; use frame_benchmarking::whitelisted_caller; -use frame_support::traits::OnInitialize; +use frame_support::{assert_ok, traits::OnInitialize}; use frame_system::RawOrigin; use module_support::PoolId; use orml_benchmarking::runtime_benchmarks; @@ -75,7 +75,7 @@ runtime_benchmarks! { let caller: AccountId = whitelisted_caller(); let pool_id = PoolId::Loans(STAKING); - Rewards::add_share(&caller, &pool_id, 100); + assert_ok!(Rewards::add_share(&caller, &pool_id, dollar(NATIVE))); Currencies::deposit(NATIVE, &Incentives::account_id(), 80 * dollar(NATIVE))?; Rewards::accumulate_reward(&pool_id, NATIVE, 80 * dollar(NATIVE))?; }: _(RawOrigin::Signed(caller), pool_id) diff --git a/runtime/mandala/src/benchmarking/utils.rs b/runtime/mandala/src/benchmarking/utils.rs index 95a04b98dd..8fab1440d7 100644 --- a/runtime/mandala/src/benchmarking/utils.rs +++ b/runtime/mandala/src/benchmarking/utils.rs @@ -85,7 +85,8 @@ pub fn feed_price(prices: Vec<(CurrencyId, Price)>) -> DispatchResult { for i in 0..MinimumCount::get() { let oracle: AccountId = account("oracle", 0, i); if !OperatorMembershipAcala::contains(&oracle) { - OperatorMembershipAcala::add_member(RawOrigin::Root.into(), MultiAddress::Id(oracle.clone()))?; + OperatorMembershipAcala::add_member(RawOrigin::Root.into(), MultiAddress::Id(oracle.clone())) + .map_or_else(|e| Err(e.error), |_| Ok(()))?; } AcalaOracle::feed_values(RawOrigin::Signed(oracle).into(), prices.to_vec().try_into().unwrap()) .map_or_else(|e| Err(e.error), |_| Ok(()))?; diff --git a/runtime/mandala/src/lib.rs b/runtime/mandala/src/lib.rs index c631604c12..9b2982f9ce 100644 --- a/runtime/mandala/src/lib.rs +++ b/runtime/mandala/src/lib.rs @@ -245,6 +245,11 @@ impl frame_system::Config for Runtime { type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode; type MaxConsumers = ConstU32<16>; type RuntimeTask = (); + type SingleBlockMigrations = (); + type MultiBlockMigrator = (); + type PreInherents = (); + type PostInherents = (); + type PostTransactions = (); } impl pallet_aura::Config for Runtime { @@ -355,7 +360,6 @@ impl pallet_balances::Config for Runtime { type RuntimeHoldReason = RuntimeHoldReason; type RuntimeFreezeReason = RuntimeFreezeReason; type FreezeIdentifier = (); - type MaxHolds = MaxReserves; type MaxFreezes = (); } @@ -534,7 +538,7 @@ impl pallet_multisig::Config for Runtime { pub struct GeneralCouncilProvider; impl SortedMembers for GeneralCouncilProvider { fn sorted_members() -> Vec { - GeneralCouncil::members() + pallet_collective::Members::::get() // GeneralCouncil::members() } #[cfg(feature = "runtime-benchmarks")] @@ -723,7 +727,7 @@ impl orml_authority::Config for Runtime { pub struct PaymentsDisputeResolver; impl orml_payments::DisputeResolver for PaymentsDisputeResolver { fn get_resolver_account() -> AccountId { - Sudo::key().expect("Sudo key not set!") + TreasuryAccount::get() } } @@ -737,7 +741,7 @@ impl orml_payments::FeeHandler for PaymentsFeeHandler { ) -> (AccountId, Percent) { // we do not charge any fee const MARKETPLACE_FEE_PERCENT: Percent = Percent::from_percent(0); - let fee_receiver = Sudo::key().expect("Sudo key not set!"); + let fee_receiver = TreasuryAccount::get(); (fee_receiver, MARKETPLACE_FEE_PERCENT) } } @@ -797,6 +801,15 @@ parameter_types! { pub const MaxFeedValues: u32 = 10; // max 10 values allowd to feed in one call. } +#[cfg(feature = "runtime-benchmarks")] +pub struct BenchmarkHelper; +#[cfg(feature = "runtime-benchmarks")] +impl orml_oracle::BenchmarkHelper for BenchmarkHelper { + fn get_currency_id_value_pairs() -> sp_runtime::BoundedVec<(CurrencyId, Price), MaxFeedValues> { + sp_runtime::BoundedVec::default() + } +} + type AcalaDataProvider = orml_oracle::Instance1; impl orml_oracle::Config for Runtime { type RuntimeEvent = RuntimeEvent; @@ -810,6 +823,8 @@ impl orml_oracle::Config for Runtime { type MaxHasDispatchedSize = ConstU32<40>; type WeightInfo = weights::orml_oracle::WeightInfo; type MaxFeedValues = MaxFeedValues; + #[cfg(feature = "runtime-benchmarks")] + type BenchmarkHelper = BenchmarkHelper; } create_median_value_data_provider!( @@ -1352,11 +1367,26 @@ impl module_asset_registry::Config for Runtime { type WeightInfo = weights::module_asset_registry::WeightInfo; } +parameter_type_with_key! { + pub MinimalShares: |pool_id: PoolId| -> Balance { + match pool_id { + PoolId::Loans(currency_id) | PoolId::Dex(currency_id) | PoolId::Earning(currency_id) => { + if *currency_id == GetNativeCurrencyId::get() { + NativeTokenExistentialDeposit::get() + } else { + ExistentialDeposits::get(currency_id) + } + } + } + }; +} + impl orml_rewards::Config for Runtime { type Share = Balance; type Balance = Balance; type PoolId = PoolId; type CurrencyId = CurrencyId; + type MinimalShares = MinimalShares; type Handler = Incentives; } @@ -1382,13 +1412,13 @@ parameter_types! { pub DefaultExchangeRate: ExchangeRate = ExchangeRate::saturating_from_rational(10, 100); // 1 : 10 } -pub fn create_x2_parachain_multilocation(index: u16) -> MultiLocation { - MultiLocation::new( +pub fn create_x2_parachain_location(index: u16) -> Location { + Location::new( 1, - X1(AccountId32 { + AccountId32 { network: None, id: Utility::derivative_account_id(ParachainInfo::get().into_account_truncating(), index).into(), - }), + }, ) } @@ -1423,10 +1453,10 @@ parameter_types! { pub ParachainAccount: AccountId = ParachainInfo::get().into_account_truncating(); } -pub struct SubAccountIndexMultiLocationConvertor; -impl Convert for SubAccountIndexMultiLocationConvertor { - fn convert(sub_account_index: u16) -> MultiLocation { - create_x2_parachain_multilocation(sub_account_index) +pub struct SubAccountIndexLocationConvertor; +impl Convert for SubAccountIndexLocationConvertor { + fn convert(sub_account_index: u16) -> Location { + create_x2_parachain_location(sub_account_index) } } @@ -1436,11 +1466,11 @@ impl module_xcm_interface::Config for Runtime { type StakingCurrencyId = GetStakingCurrencyId; type ParachainAccount = ParachainAccount; type RelayChainUnbondingSlashingSpans = ConstU32<5>; - type SovereignSubAccountLocationConvert = SubAccountIndexMultiLocationConvertor; + type SovereignSubAccountLocationConvert = SubAccountIndexLocationConvertor; type RelayChainCallBuilder = RelayChainCallBuilder; type XcmTransfer = XTokens; type SelfLocation = xcm_config::SelfLocation; - type AccountIdToMultiLocation = xcm_config::AccountIdToMultiLocation; + type AccountIdToLocation = xcm_config::AccountIdToLocation; } parameter_types! { @@ -2166,7 +2196,7 @@ impl_runtime_apis! { Executive::execute_block(block) } - fn initialize_block(header: &::Header) { + fn initialize_block(header: &::Header) -> sp_runtime::ExtrinsicInclusionMode { Executive::initialize_block(header) } } diff --git a/runtime/mandala/src/weights/module_aggregated_dex.rs b/runtime/mandala/src/weights/module_aggregated_dex.rs index a789ba59f5..a5da0fe322 100644 --- a/runtime/mandala/src/weights/module_aggregated_dex.rs +++ b/runtime/mandala/src/weights/module_aggregated_dex.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for module_aggregated_dex //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,63 +47,63 @@ use sp_std::marker::PhantomData; /// Weight functions for module_aggregated_dex. pub struct WeightInfo(PhantomData); impl module_aggregated_dex::WeightInfo for WeightInfo { - // Storage: Dex TradingPairStatuses (r:3 w:0) - // Proof: Dex TradingPairStatuses (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - // Storage: Dex LiquidityPool (r:3 w:3) - // Proof: Dex LiquidityPool (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:2 w:2) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) + // Storage: `Dex::TradingPairStatuses` (r:3 w:0) + // Proof: `Dex::TradingPairStatuses` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + // Storage: `Dex::LiquidityPool` (r:3 w:3) + // Proof: `Dex::LiquidityPool` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:2 w:2) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) /// The range of component `u` is `[2, 4]`. fn swap_with_exact_supply(u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2602 + u * (108 ±0)` - // Estimated: `17078 + u * (1270 ±19)` - // Minimum execution time: 93_581 nanoseconds. - Weight::from_parts(72_459_455, 17078) - // Standard Error: 77_915 - .saturating_add(Weight::from_parts(12_315_823, 0).saturating_mul(u.into())) + // Measured: `2838 + u * (108 ±0)` + // Estimated: `6234 + u * (643 ±18)` + // Minimum execution time: 93_033 nanoseconds. + Weight::from_parts(69_857_937, 6234) + // Standard Error: 78_650 + .saturating_add(Weight::from_parts(13_046_047, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into()))) - .saturating_add(Weight::from_parts(0, 1270).saturating_mul(u.into())) + .saturating_add(Weight::from_parts(0, 643).saturating_mul(u.into())) } - // Storage: Dex TradingPairStatuses (r:3 w:0) - // Proof: Dex TradingPairStatuses (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - // Storage: Dex LiquidityPool (r:3 w:3) - // Proof: Dex LiquidityPool (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:2 w:2) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) + // Storage: `Dex::TradingPairStatuses` (r:3 w:0) + // Proof: `Dex::TradingPairStatuses` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + // Storage: `Dex::LiquidityPool` (r:3 w:3) + // Proof: `Dex::LiquidityPool` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:2 w:2) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) /// The range of component `u` is `[2, 4]`. fn swap_with_exact_target(u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2602 + u * (108 ±0)` - // Estimated: `17078 + u * (1270 ±19)` - // Minimum execution time: 102_410 nanoseconds. - Weight::from_parts(69_607_812, 17078) - // Standard Error: 86_638 - .saturating_add(Weight::from_parts(18_464_761, 0).saturating_mul(u.into())) + // Measured: `2838 + u * (108 ±0)` + // Estimated: `6234 + u * (643 ±18)` + // Minimum execution time: 101_821 nanoseconds. + Weight::from_parts(68_009_551, 6234) + // Standard Error: 87_788 + .saturating_add(Weight::from_parts(18_345_055, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into()))) - .saturating_add(Weight::from_parts(0, 1270).saturating_mul(u.into())) + .saturating_add(Weight::from_parts(0, 643).saturating_mul(u.into())) } - // Storage: AggregatedDex AggregatedSwapPaths (r:0 w:6) - // Proof Skipped: AggregatedDex AggregatedSwapPaths (max_values: None, max_size: None, mode: Measured) - /// The range of component `n` is `[0, 7]`. + // Storage: `AggregatedDex::AggregatedSwapPaths` (r:0 w:5) + // Proof: `AggregatedDex::AggregatedSwapPaths` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `n` is `[0, 6]`. fn update_aggregated_swap_paths(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `666` // Estimated: `666` - // Minimum execution time: 5_753 nanoseconds. - Weight::from_parts(5_357_943, 666) - // Standard Error: 10_407 - .saturating_add(Weight::from_parts(1_631_908, 0).saturating_mul(n.into())) + // Minimum execution time: 4_125 nanoseconds. + Weight::from_parts(3_758_952, 666) + // Standard Error: 11_425 + .saturating_add(Weight::from_parts(1_475_993, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into()))) } } diff --git a/runtime/mandala/src/weights/module_asset_registry.rs b/runtime/mandala/src/weights/module_asset_registry.rs index 3adf3008f1..83cf428f22 100644 --- a/runtime/mandala/src/weights/module_asset_registry.rs +++ b/runtime/mandala/src/weights/module_asset_registry.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for module_asset_registry //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,109 +47,111 @@ use sp_std::marker::PhantomData; /// Weight functions for module_asset_registry. pub struct WeightInfo(PhantomData); impl module_asset_registry::WeightInfo for WeightInfo { - // Storage: AssetRegistry NextForeignAssetId (r:1 w:1) - // Proof Skipped: AssetRegistry NextForeignAssetId (max_values: Some(1), max_size: None, mode: Measured) - // Storage: AssetRegistry LocationToCurrencyIds (r:1 w:1) - // Proof Skipped: AssetRegistry LocationToCurrencyIds (max_values: None, max_size: None, mode: Measured) - // Storage: AssetRegistry ForeignAssetLocations (r:1 w:1) - // Proof Skipped: AssetRegistry ForeignAssetLocations (max_values: None, max_size: None, mode: Measured) - // Storage: AssetRegistry AssetMetadatas (r:1 w:1) - // Proof Skipped: AssetRegistry AssetMetadatas (max_values: None, max_size: None, mode: Measured) + // Storage: `AssetRegistry::NextForeignAssetId` (r:1 w:1) + // Proof: `AssetRegistry::NextForeignAssetId` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `AssetRegistry::LocationToCurrencyIds` (r:1 w:1) + // Proof: `AssetRegistry::LocationToCurrencyIds` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `AssetRegistry::ForeignAssetLocations` (r:1 w:1) + // Proof: `AssetRegistry::ForeignAssetLocations` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `AssetRegistry::AssetMetadatas` (r:1 w:1) + // Proof: `AssetRegistry::AssetMetadatas` (`max_values`: None, `max_size`: None, mode: `Measured`) fn register_foreign_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `1107` - // Estimated: `16308` - // Minimum execution time: 28_493 nanoseconds. - Weight::from_parts(29_458_000, 16308) + // Measured: `1143` + // Estimated: `4608` + // Minimum execution time: 21_869 nanoseconds. + Weight::from_parts(22_452_000, 4608) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) } - // Storage: AssetRegistry ForeignAssetLocations (r:1 w:1) - // Proof Skipped: AssetRegistry ForeignAssetLocations (max_values: None, max_size: None, mode: Measured) - // Storage: AssetRegistry AssetMetadatas (r:1 w:1) - // Proof Skipped: AssetRegistry AssetMetadatas (max_values: None, max_size: None, mode: Measured) + // Storage: `AssetRegistry::ForeignAssetLocations` (r:1 w:1) + // Proof: `AssetRegistry::ForeignAssetLocations` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `AssetRegistry::AssetMetadatas` (r:1 w:1) + // Proof: `AssetRegistry::AssetMetadatas` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_foreign_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `1263` - // Estimated: `9456` - // Minimum execution time: 28_136 nanoseconds. - Weight::from_parts(28_816_000, 9456) + // Measured: `1299` + // Estimated: `4764` + // Minimum execution time: 21_947 nanoseconds. + Weight::from_parts(22_647_000, 4764) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } - // Storage: AssetRegistry NextStableAssetId (r:1 w:1) - // Proof Skipped: AssetRegistry NextStableAssetId (max_values: Some(1), max_size: None, mode: Measured) - // Storage: AssetRegistry AssetMetadatas (r:1 w:1) - // Proof Skipped: AssetRegistry AssetMetadatas (max_values: None, max_size: None, mode: Measured) + // Storage: `AssetRegistry::NextStableAssetId` (r:1 w:1) + // Proof: `AssetRegistry::NextStableAssetId` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `AssetRegistry::AssetMetadatas` (r:1 w:1) + // Proof: `AssetRegistry::AssetMetadatas` (`max_values`: None, `max_size`: None, mode: `Measured`) fn register_stable_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `1107` - // Estimated: `7164` - // Minimum execution time: 23_248 nanoseconds. - Weight::from_parts(24_209_000, 7164) + // Measured: `1143` + // Estimated: `4608` + // Minimum execution time: 16_438 nanoseconds. + Weight::from_parts(16_997_000, 4608) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } - // Storage: AssetRegistry AssetMetadatas (r:1 w:1) - // Proof Skipped: AssetRegistry AssetMetadatas (max_values: None, max_size: None, mode: Measured) + // Storage: `AssetRegistry::AssetMetadatas` (r:1 w:1) + // Proof: `AssetRegistry::AssetMetadatas` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_stable_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `1201` - // Estimated: `4666` - // Minimum execution time: 23_454 nanoseconds. - Weight::from_parts(23_926_000, 4666) + // Measured: `1237` + // Estimated: `4702` + // Minimum execution time: 17_539 nanoseconds. + Weight::from_parts(18_024_000, 4702) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: EVM Accounts (r:2 w:0) - // Proof Skipped: EVM Accounts (max_values: None, max_size: None, mode: Measured) - // Storage: EVM Codes (r:1 w:0) - // Proof Skipped: EVM Codes (max_values: None, max_size: None, mode: Measured) - // Storage: EVM AccountStorages (r:5 w:0) - // Proof Skipped: EVM AccountStorages (max_values: None, max_size: None, mode: Measured) - // Storage: AssetRegistry AssetMetadatas (r:1 w:1) - // Proof Skipped: AssetRegistry AssetMetadatas (max_values: None, max_size: None, mode: Measured) - // Storage: AssetRegistry Erc20IdToAddress (r:1 w:1) - // Proof Skipped: AssetRegistry Erc20IdToAddress (max_values: None, max_size: None, mode: Measured) + // Storage: `EVM::Accounts` (r:2 w:0) + // Proof: `EVM::Accounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `System::Digest` (r:1 w:0) + // Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `EVM::Codes` (r:1 w:0) + // Proof: `EVM::Codes` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `EVM::AccountStorages` (r:5 w:0) + // Proof: `EVM::AccountStorages` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `AssetRegistry::AssetMetadatas` (r:1 w:1) + // Proof: `AssetRegistry::AssetMetadatas` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `AssetRegistry::Erc20IdToAddress` (r:1 w:1) + // Proof: `AssetRegistry::Erc20IdToAddress` (`max_values`: None, `max_size`: None, mode: `Measured`) fn register_erc20_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `7716` - // Estimated: `68280` - // Minimum execution time: 208_499 nanoseconds. - Weight::from_parts(213_169_000, 68280) - .saturating_add(T::DbWeight::get().reads(10)) + // Measured: `7617` + // Estimated: `20982` + // Minimum execution time: 207_102 nanoseconds. + Weight::from_parts(210_688_000, 20982) + .saturating_add(T::DbWeight::get().reads(11)) .saturating_add(T::DbWeight::get().writes(2)) } - // Storage: AssetRegistry AssetMetadatas (r:1 w:1) - // Proof Skipped: AssetRegistry AssetMetadatas (max_values: None, max_size: None, mode: Measured) + // Storage: `AssetRegistry::AssetMetadatas` (r:1 w:1) + // Proof: `AssetRegistry::AssetMetadatas` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_erc20_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `1352` - // Estimated: `4817` - // Minimum execution time: 32_387 nanoseconds. - Weight::from_parts(33_379_000, 4817) + // Measured: `1388` + // Estimated: `4853` + // Minimum execution time: 26_675 nanoseconds. + Weight::from_parts(27_417_000, 4853) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: AssetRegistry AssetMetadatas (r:1 w:1) - // Proof Skipped: AssetRegistry AssetMetadatas (max_values: None, max_size: None, mode: Measured) + // Storage: `AssetRegistry::AssetMetadatas` (r:1 w:1) + // Proof: `AssetRegistry::AssetMetadatas` (`max_values`: None, `max_size`: None, mode: `Measured`) fn register_native_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `1107` - // Estimated: `4572` - // Minimum execution time: 21_161 nanoseconds. - Weight::from_parts(21_900_000, 4572) + // Measured: `1143` + // Estimated: `4608` + // Minimum execution time: 15_738 nanoseconds. + Weight::from_parts(16_094_000, 4608) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: AssetRegistry AssetMetadatas (r:1 w:1) - // Proof Skipped: AssetRegistry AssetMetadatas (max_values: None, max_size: None, mode: Measured) + // Storage: `AssetRegistry::AssetMetadatas` (r:1 w:1) + // Proof: `AssetRegistry::AssetMetadatas` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_native_asset() -> Weight { // Proof Size summary in bytes: - // Measured: `1176` - // Estimated: `4641` - // Minimum execution time: 22_204 nanoseconds. - Weight::from_parts(22_916_000, 4641) + // Measured: `1212` + // Estimated: `4677` + // Minimum execution time: 17_078 nanoseconds. + Weight::from_parts(17_412_000, 4677) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/mandala/src/weights/module_auction_manager.rs b/runtime/mandala/src/weights/module_auction_manager.rs index 016fe5145c..fc29cbeb4d 100644 --- a/runtime/mandala/src/weights/module_auction_manager.rs +++ b/runtime/mandala/src/weights/module_auction_manager.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for module_auction_manager //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,32 +47,32 @@ use sp_std::marker::PhantomData; /// Weight functions for module_auction_manager. pub struct WeightInfo(PhantomData); impl module_auction_manager::WeightInfo for WeightInfo { - // Storage: EmergencyShutdown IsShutdown (r:1 w:0) - // Proof: EmergencyShutdown IsShutdown (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) - // Storage: AuctionManager CollateralAuctions (r:1 w:1) - // Proof: AuctionManager CollateralAuctions (max_values: None, max_size: Some(139), added: 2614, mode: MaxEncodedLen) - // Storage: Auction Auctions (r:1 w:1) - // Proof: Auction Auctions (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) - // Storage: Prices LockedPrice (r:2 w:0) - // Proof: Prices LockedPrice (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: AssetRegistry AssetMetadatas (r:1 w:0) - // Proof Skipped: AssetRegistry AssetMetadatas (max_values: None, max_size: None, mode: Measured) - // Storage: Tokens Accounts (r:2 w:2) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: System Account (r:2 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: AuctionManager TotalCollateralInAuction (r:1 w:1) - // Proof: AuctionManager TotalCollateralInAuction (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: AuctionManager TotalTargetInAuction (r:1 w:1) - // Proof: AuctionManager TotalTargetInAuction (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - // Storage: Auction AuctionEndTime (r:0 w:1) - // Proof: Auction AuctionEndTime (max_values: None, max_size: Some(32), added: 2507, mode: MaxEncodedLen) + // Storage: `EmergencyShutdown::IsShutdown` (r:1 w:0) + // Proof: `EmergencyShutdown::IsShutdown` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + // Storage: `AuctionManager::CollateralAuctions` (r:1 w:1) + // Proof: `AuctionManager::CollateralAuctions` (`max_values`: None, `max_size`: Some(139), added: 2614, mode: `MaxEncodedLen`) + // Storage: `Auction::Auctions` (r:1 w:1) + // Proof: `Auction::Auctions` (`max_values`: None, `max_size`: Some(70), added: 2545, mode: `MaxEncodedLen`) + // Storage: `Prices::LockedPrice` (r:2 w:0) + // Proof: `Prices::LockedPrice` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `AssetRegistry::AssetMetadatas` (r:1 w:0) + // Proof: `AssetRegistry::AssetMetadatas` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Tokens::Accounts` (r:2 w:2) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:2 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `AuctionManager::TotalCollateralInAuction` (r:1 w:1) + // Proof: `AuctionManager::TotalCollateralInAuction` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `AuctionManager::TotalTargetInAuction` (r:1 w:1) + // Proof: `AuctionManager::TotalTargetInAuction` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + // Storage: `Auction::AuctionEndTime` (r:0 w:1) + // Proof: `Auction::AuctionEndTime` (`max_values`: None, `max_size`: Some(32), added: 2507, mode: `MaxEncodedLen`) fn cancel_collateral_auction() -> Weight { // Proof Size summary in bytes: - // Measured: `3494` - // Estimated: `39121` - // Minimum execution time: 105_456 nanoseconds. - Weight::from_parts(108_186_000, 39121) + // Measured: `3563` + // Estimated: `7028` + // Minimum execution time: 84_197 nanoseconds. + Weight::from_parts(86_850_000, 7028) .saturating_add(T::DbWeight::get().reads(12)) .saturating_add(T::DbWeight::get().writes(8)) } diff --git a/runtime/mandala/src/weights/module_cdp_engine.rs b/runtime/mandala/src/weights/module_cdp_engine.rs index dd5f6c15fa..315dab9547 100644 --- a/runtime/mandala/src/weights/module_cdp_engine.rs +++ b/runtime/mandala/src/weights/module_cdp_engine.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for module_cdp_engine //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,224 +47,228 @@ use sp_std::marker::PhantomData; /// Weight functions for module_cdp_engine. pub struct WeightInfo(PhantomData); impl module_cdp_engine::WeightInfo for WeightInfo { - // Storage: Aura CurrentSlot (r:1 w:1) - // Proof: Aura CurrentSlot (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - // Storage: Aura Authorities (r:1 w:0) - // Proof: Aura Authorities (max_values: Some(1), max_size: Some(1025), added: 1520, mode: MaxEncodedLen) - // Storage: CdpEngine LastAccumulationSecs (r:1 w:1) - // Proof: CdpEngine LastAccumulationSecs (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - // Storage: EmergencyShutdown IsShutdown (r:1 w:0) - // Proof: EmergencyShutdown IsShutdown (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) - // Storage: CdpEngine CollateralParams (r:5 w:0) - // Proof: CdpEngine CollateralParams (max_values: None, max_size: Some(135), added: 2610, mode: MaxEncodedLen) - // Storage: Loans TotalPositions (r:3 w:0) - // Proof: Loans TotalPositions (max_values: None, max_size: Some(83), added: 2558, mode: MaxEncodedLen) - // Storage: System ParentHash (r:0 w:1) - // Proof: System ParentHash (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - // Storage: System Digest (r:0 w:1) - // Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured) - // Storage: System BlockHash (r:0 w:1) - // Proof: System BlockHash (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) - // Storage: unknown `0x3a65787472696e7369635f696e646578` (r:0 w:1) - // Proof Skipped: unknown `0x3a65787472696e7369635f696e646578` (r:0 w:1) - // Storage: Timestamp Now (r:0 w:1) - // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - // Storage: Timestamp DidUpdate (r:0 w:1) - // Proof: Timestamp DidUpdate (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) - /// The range of component `c` is `[0, 5]`. + // Storage: `Aura::CurrentSlot` (r:1 w:1) + // Proof: `Aura::CurrentSlot` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + // Storage: `Aura::Authorities` (r:1 w:0) + // Proof: `Aura::Authorities` (`max_values`: Some(1), `max_size`: Some(1025), added: 1520, mode: `MaxEncodedLen`) + // Storage: `CdpEngine::LastAccumulationSecs` (r:1 w:1) + // Proof: `CdpEngine::LastAccumulationSecs` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + // Storage: `EmergencyShutdown::IsShutdown` (r:1 w:0) + // Proof: `EmergencyShutdown::IsShutdown` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + // Storage: `CdpEngine::CollateralParams` (r:4 w:0) + // Proof: `CdpEngine::CollateralParams` (`max_values`: None, `max_size`: Some(135), added: 2610, mode: `MaxEncodedLen`) + // Storage: `Loans::TotalPositions` (r:2 w:0) + // Proof: `Loans::TotalPositions` (`max_values`: None, `max_size`: Some(83), added: 2558, mode: `MaxEncodedLen`) + // Storage: `System::InherentsApplied` (r:0 w:1) + // Proof: `System::InherentsApplied` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + // Storage: `System::ParentHash` (r:0 w:1) + // Proof: `System::ParentHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + // Storage: `System::Digest` (r:0 w:1) + // Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `System::BlockHash` (r:0 w:1) + // Proof: `System::BlockHash` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + // Storage: UNKNOWN KEY `0x3a65787472696e7369635f696e646578` (r:0 w:1) + // Proof: UNKNOWN KEY `0x3a65787472696e7369635f696e646578` (r:0 w:1) + // Storage: UNKNOWN KEY `0x3a696e747261626c6f636b5f656e74726f7079` (r:0 w:1) + // Proof: UNKNOWN KEY `0x3a696e747261626c6f636b5f656e74726f7079` (r:0 w:1) + // Storage: `Timestamp::Now` (r:0 w:1) + // Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + // Storage: `Timestamp::DidUpdate` (r:0 w:1) + // Proof: `Timestamp::DidUpdate` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + /// The range of component `c` is `[0, 4]`. fn on_initialize(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1471 + c * (47 ±0)` - // Estimated: `30952 + c * (642 ±1)` - // Minimum execution time: 44_681 nanoseconds. - Weight::from_parts(49_236_785, 30952) - // Standard Error: 69_544 - .saturating_add(Weight::from_parts(4_021_915, 0).saturating_mul(c.into())) - .saturating_add(T::DbWeight::get().reads(11)) - .saturating_add(T::DbWeight::get().writes(8)) - .saturating_add(Weight::from_parts(0, 642).saturating_mul(c.into())) + // Measured: `1306 + c * (67 ±0)` + // Estimated: `9607 + c * (753 ±27)` + // Minimum execution time: 34_286 nanoseconds. + Weight::from_parts(37_586_777, 9607) + // Standard Error: 83_085 + .saturating_add(Weight::from_parts(4_238_723, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(9)) + .saturating_add(T::DbWeight::get().writes(10)) + .saturating_add(Weight::from_parts(0, 753).saturating_mul(c.into())) } - // Storage: CdpEngine CollateralParams (r:1 w:1) - // Proof: CdpEngine CollateralParams (max_values: None, max_size: Some(135), added: 2610, mode: MaxEncodedLen) + // Storage: `CdpEngine::CollateralParams` (r:1 w:1) + // Proof: `CdpEngine::CollateralParams` (`max_values`: None, `max_size`: Some(135), added: 2610, mode: `MaxEncodedLen`) fn set_collateral_params() -> Weight { // Proof Size summary in bytes: - // Measured: `1332` + // Measured: `1368` // Estimated: `3600` - // Minimum execution time: 38_981 nanoseconds. - Weight::from_parts(39_906_000, 3600) + // Minimum execution time: 25_396 nanoseconds. + Weight::from_parts(26_105_000, 3600) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: EmergencyShutdown IsShutdown (r:1 w:0) - // Proof: EmergencyShutdown IsShutdown (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) - // Storage: Loans Positions (r:1 w:1) - // Proof: Loans Positions (max_values: None, max_size: Some(123), added: 2598, mode: MaxEncodedLen) - // Storage: Prices LockedPrice (r:2 w:0) - // Proof: Prices LockedPrice (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: AcalaOracle Values (r:1 w:0) - // Proof: AcalaOracle Values (max_values: None, max_size: Some(75), added: 2550, mode: MaxEncodedLen) - // Storage: AssetRegistry AssetMetadatas (r:2 w:0) - // Proof Skipped: AssetRegistry AssetMetadatas (max_values: None, max_size: None, mode: Measured) - // Storage: CdpEngine DebitExchangeRate (r:1 w:0) - // Proof: CdpEngine DebitExchangeRate (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: CdpEngine CollateralParams (r:1 w:0) - // Proof: CdpEngine CollateralParams (max_values: None, max_size: Some(135), added: 2610, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:2 w:2) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: System Account (r:3 w:3) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: EvmAccounts EvmAddresses (r:1 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: CdpTreasury DebitPool (r:1 w:1) - // Proof: CdpTreasury DebitPool (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - // Storage: Rewards SharesAndWithdrawnRewards (r:1 w:1) - // Proof Skipped: Rewards SharesAndWithdrawnRewards (max_values: None, max_size: None, mode: Measured) - // Storage: Rewards PoolInfos (r:1 w:1) - // Proof Skipped: Rewards PoolInfos (max_values: None, max_size: None, mode: Measured) - // Storage: Loans TotalPositions (r:1 w:1) - // Proof: Loans TotalPositions (max_values: None, max_size: Some(83), added: 2558, mode: MaxEncodedLen) - // Storage: AuctionManager TotalCollateralInAuction (r:1 w:1) - // Proof: AuctionManager TotalCollateralInAuction (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Dex TradingPairStatuses (r:2 w:0) - // Proof: Dex TradingPairStatuses (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - // Storage: Dex LiquidityPool (r:1 w:0) - // Proof: Dex LiquidityPool (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen) - // Storage: StableAsset Pools (r:1 w:0) - // Proof Skipped: StableAsset Pools (max_values: None, max_size: None, mode: Measured) - // Storage: AggregatedDex AggregatedSwapPaths (r:1 w:0) - // Proof Skipped: AggregatedDex AggregatedSwapPaths (max_values: None, max_size: None, mode: Measured) - // Storage: CdpEngine LiquidationContracts (r:1 w:0) - // Proof: CdpEngine LiquidationContracts (max_values: Some(1), max_size: Some(201), added: 696, mode: MaxEncodedLen) - // Storage: CdpTreasury ExpectedCollateralAuctionSize (r:1 w:0) - // Proof: CdpTreasury ExpectedCollateralAuctionSize (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: AuctionManager TotalTargetInAuction (r:1 w:1) - // Proof: AuctionManager TotalTargetInAuction (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - // Storage: Auction AuctionsIndex (r:1 w:1) - // Proof: Auction AuctionsIndex (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - // Storage: AuctionManager CollateralAuctions (r:0 w:50) - // Proof: AuctionManager CollateralAuctions (max_values: None, max_size: Some(139), added: 2614, mode: MaxEncodedLen) - // Storage: Auction AuctionEndTime (r:0 w:50) - // Proof: Auction AuctionEndTime (max_values: None, max_size: Some(32), added: 2507, mode: MaxEncodedLen) - // Storage: Auction Auctions (r:0 w:50) - // Proof: Auction Auctions (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) + // Storage: `EmergencyShutdown::IsShutdown` (r:1 w:0) + // Proof: `EmergencyShutdown::IsShutdown` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + // Storage: `Loans::Positions` (r:1 w:1) + // Proof: `Loans::Positions` (`max_values`: None, `max_size`: Some(123), added: 2598, mode: `MaxEncodedLen`) + // Storage: `Prices::LockedPrice` (r:2 w:0) + // Proof: `Prices::LockedPrice` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `AcalaOracle::Values` (r:1 w:0) + // Proof: `AcalaOracle::Values` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`) + // Storage: `AssetRegistry::AssetMetadatas` (r:2 w:0) + // Proof: `AssetRegistry::AssetMetadatas` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `CdpEngine::DebitExchangeRate` (r:1 w:0) + // Proof: `CdpEngine::DebitExchangeRate` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `CdpEngine::CollateralParams` (r:1 w:0) + // Proof: `CdpEngine::CollateralParams` (`max_values`: None, `max_size`: Some(135), added: 2610, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:2 w:2) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:3 w:3) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `EvmAccounts::EvmAddresses` (r:1 w:0) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `CdpTreasury::DebitPool` (r:1 w:1) + // Proof: `CdpTreasury::DebitPool` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + // Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1) + // Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Rewards::PoolInfos` (r:1 w:1) + // Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Loans::TotalPositions` (r:1 w:1) + // Proof: `Loans::TotalPositions` (`max_values`: None, `max_size`: Some(83), added: 2558, mode: `MaxEncodedLen`) + // Storage: `AuctionManager::TotalCollateralInAuction` (r:1 w:1) + // Proof: `AuctionManager::TotalCollateralInAuction` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Dex::TradingPairStatuses` (r:2 w:0) + // Proof: `Dex::TradingPairStatuses` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + // Storage: `Dex::LiquidityPool` (r:1 w:0) + // Proof: `Dex::LiquidityPool` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) + // Storage: `StableAsset::Pools` (r:1 w:0) + // Proof: `StableAsset::Pools` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `AggregatedDex::AggregatedSwapPaths` (r:1 w:0) + // Proof: `AggregatedDex::AggregatedSwapPaths` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `CdpEngine::LiquidationContracts` (r:1 w:0) + // Proof: `CdpEngine::LiquidationContracts` (`max_values`: Some(1), `max_size`: Some(201), added: 696, mode: `MaxEncodedLen`) + // Storage: `CdpTreasury::ExpectedCollateralAuctionSize` (r:1 w:0) + // Proof: `CdpTreasury::ExpectedCollateralAuctionSize` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `AuctionManager::TotalTargetInAuction` (r:1 w:1) + // Proof: `AuctionManager::TotalTargetInAuction` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + // Storage: `Auction::AuctionsIndex` (r:1 w:1) + // Proof: `Auction::AuctionsIndex` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + // Storage: `AuctionManager::CollateralAuctions` (r:0 w:50) + // Proof: `AuctionManager::CollateralAuctions` (`max_values`: None, `max_size`: Some(139), added: 2614, mode: `MaxEncodedLen`) + // Storage: `Auction::AuctionEndTime` (r:0 w:50) + // Proof: `Auction::AuctionEndTime` (`max_values`: None, `max_size`: Some(32), added: 2507, mode: `MaxEncodedLen`) + // Storage: `Auction::Auctions` (r:0 w:50) + // Proof: `Auction::Auctions` (`max_values`: None, `max_size`: Some(70), added: 2545, mode: `MaxEncodedLen`) /// The range of component `b` is `[1, 50]`. fn liquidate_by_auction(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `4862` - // Estimated: `111198` - // Minimum execution time: 230_858 nanoseconds. - Weight::from_parts(237_835_581, 111198) - // Standard Error: 25_671 - .saturating_add(Weight::from_parts(13_562_630, 0).saturating_mul(b.into())) + // Measured: `4881` + // Estimated: `10821` + // Minimum execution time: 190_069 nanoseconds. + Weight::from_parts(196_157_501, 10821) + // Standard Error: 16_407 + .saturating_add(Weight::from_parts(9_539_821, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(29)) .saturating_add(T::DbWeight::get().writes(15)) .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(b.into()))) } - // Storage: EmergencyShutdown IsShutdown (r:1 w:0) - // Proof: EmergencyShutdown IsShutdown (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) - // Storage: Loans Positions (r:1 w:1) - // Proof: Loans Positions (max_values: None, max_size: Some(123), added: 2598, mode: MaxEncodedLen) - // Storage: Prices LockedPrice (r:2 w:0) - // Proof: Prices LockedPrice (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: AcalaOracle Values (r:1 w:0) - // Proof: AcalaOracle Values (max_values: None, max_size: Some(75), added: 2550, mode: MaxEncodedLen) - // Storage: AssetRegistry AssetMetadatas (r:2 w:0) - // Proof Skipped: AssetRegistry AssetMetadatas (max_values: None, max_size: None, mode: Measured) - // Storage: Homa TotalStakingBonded (r:1 w:0) - // Proof Skipped: Homa TotalStakingBonded (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa ToBondPool (r:1 w:0) - // Proof Skipped: Homa ToBondPool (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Tokens TotalIssuance (r:1 w:0) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Homa TotalVoidLiquid (r:1 w:0) - // Proof Skipped: Homa TotalVoidLiquid (max_values: Some(1), max_size: None, mode: Measured) - // Storage: CdpEngine DebitExchangeRate (r:1 w:0) - // Proof: CdpEngine DebitExchangeRate (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: CdpEngine CollateralParams (r:1 w:0) - // Proof: CdpEngine CollateralParams (max_values: None, max_size: Some(135), added: 2610, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:6 w:6) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: System Account (r:4 w:3) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: EvmAccounts EvmAddresses (r:1 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: CdpTreasury DebitPool (r:1 w:1) - // Proof: CdpTreasury DebitPool (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - // Storage: Rewards SharesAndWithdrawnRewards (r:1 w:1) - // Proof Skipped: Rewards SharesAndWithdrawnRewards (max_values: None, max_size: None, mode: Measured) - // Storage: Rewards PoolInfos (r:1 w:1) - // Proof Skipped: Rewards PoolInfos (max_values: None, max_size: None, mode: Measured) - // Storage: Loans TotalPositions (r:1 w:1) - // Proof: Loans TotalPositions (max_values: None, max_size: Some(83), added: 2558, mode: MaxEncodedLen) - // Storage: AuctionManager TotalCollateralInAuction (r:1 w:0) - // Proof: AuctionManager TotalCollateralInAuction (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Dex TradingPairStatuses (r:3 w:0) - // Proof: Dex TradingPairStatuses (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - // Storage: Dex LiquidityPool (r:2 w:2) - // Proof: Dex LiquidityPool (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen) - // Storage: StableAsset Pools (r:1 w:0) - // Proof Skipped: StableAsset Pools (max_values: None, max_size: None, mode: Measured) - // Storage: AggregatedDex AggregatedSwapPaths (r:1 w:0) - // Proof Skipped: AggregatedDex AggregatedSwapPaths (max_values: None, max_size: None, mode: Measured) + // Storage: `EmergencyShutdown::IsShutdown` (r:1 w:0) + // Proof: `EmergencyShutdown::IsShutdown` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + // Storage: `Loans::Positions` (r:1 w:1) + // Proof: `Loans::Positions` (`max_values`: None, `max_size`: Some(123), added: 2598, mode: `MaxEncodedLen`) + // Storage: `Prices::LockedPrice` (r:2 w:0) + // Proof: `Prices::LockedPrice` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `AcalaOracle::Values` (r:1 w:0) + // Proof: `AcalaOracle::Values` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`) + // Storage: `AssetRegistry::AssetMetadatas` (r:2 w:0) + // Proof: `AssetRegistry::AssetMetadatas` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Homa::TotalStakingBonded` (r:1 w:0) + // Proof: `Homa::TotalStakingBonded` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::ToBondPool` (r:1 w:0) + // Proof: `Homa::ToBondPool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Tokens::TotalIssuance` (r:1 w:0) + // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Homa::TotalVoidLiquid` (r:1 w:0) + // Proof: `Homa::TotalVoidLiquid` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `CdpEngine::DebitExchangeRate` (r:1 w:0) + // Proof: `CdpEngine::DebitExchangeRate` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `CdpEngine::CollateralParams` (r:1 w:0) + // Proof: `CdpEngine::CollateralParams` (`max_values`: None, `max_size`: Some(135), added: 2610, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:6 w:6) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:4 w:3) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `EvmAccounts::EvmAddresses` (r:1 w:0) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `CdpTreasury::DebitPool` (r:1 w:1) + // Proof: `CdpTreasury::DebitPool` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + // Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1) + // Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Rewards::PoolInfos` (r:1 w:1) + // Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Loans::TotalPositions` (r:1 w:1) + // Proof: `Loans::TotalPositions` (`max_values`: None, `max_size`: Some(83), added: 2558, mode: `MaxEncodedLen`) + // Storage: `AuctionManager::TotalCollateralInAuction` (r:1 w:0) + // Proof: `AuctionManager::TotalCollateralInAuction` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Dex::TradingPairStatuses` (r:3 w:0) + // Proof: `Dex::TradingPairStatuses` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + // Storage: `Dex::LiquidityPool` (r:2 w:2) + // Proof: `Dex::LiquidityPool` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) + // Storage: `StableAsset::Pools` (r:1 w:0) + // Proof: `StableAsset::Pools` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `AggregatedDex::AggregatedSwapPaths` (r:1 w:0) + // Proof: `AggregatedDex::AggregatedSwapPaths` (`max_values`: None, `max_size`: None, mode: `Measured`) fn liquidate_by_dex() -> Weight { // Proof Size summary in bytes: - // Measured: `5683` - // Estimated: `150493` - // Minimum execution time: 332_621 nanoseconds. - Weight::from_parts(343_596_000, 150493) + // Measured: `5661` + // Estimated: `16722` + // Minimum execution time: 271_574 nanoseconds. + Weight::from_parts(277_118_000, 16722) .saturating_add(T::DbWeight::get().reads(36)) .saturating_add(T::DbWeight::get().writes(16)) } - // Storage: EmergencyShutdown IsShutdown (r:1 w:0) - // Proof: EmergencyShutdown IsShutdown (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) - // Storage: Loans Positions (r:1 w:1) - // Proof: Loans Positions (max_values: None, max_size: Some(123), added: 2598, mode: MaxEncodedLen) - // Storage: Prices LockedPrice (r:2 w:0) - // Proof: Prices LockedPrice (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: AssetRegistry AssetMetadatas (r:1 w:0) - // Proof Skipped: AssetRegistry AssetMetadatas (max_values: None, max_size: None, mode: Measured) - // Storage: CdpEngine DebitExchangeRate (r:1 w:0) - // Proof: CdpEngine DebitExchangeRate (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:2 w:2) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: System Account (r:2 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: CdpTreasury DebitPool (r:1 w:1) - // Proof: CdpTreasury DebitPool (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - // Storage: Rewards SharesAndWithdrawnRewards (r:1 w:1) - // Proof Skipped: Rewards SharesAndWithdrawnRewards (max_values: None, max_size: None, mode: Measured) - // Storage: Rewards PoolInfos (r:1 w:1) - // Proof Skipped: Rewards PoolInfos (max_values: None, max_size: None, mode: Measured) - // Storage: Loans TotalPositions (r:1 w:1) - // Proof: Loans TotalPositions (max_values: None, max_size: Some(83), added: 2558, mode: MaxEncodedLen) + // Storage: `EmergencyShutdown::IsShutdown` (r:1 w:0) + // Proof: `EmergencyShutdown::IsShutdown` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + // Storage: `Loans::Positions` (r:1 w:1) + // Proof: `Loans::Positions` (`max_values`: None, `max_size`: Some(123), added: 2598, mode: `MaxEncodedLen`) + // Storage: `Prices::LockedPrice` (r:2 w:0) + // Proof: `Prices::LockedPrice` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `AssetRegistry::AssetMetadatas` (r:1 w:0) + // Proof: `AssetRegistry::AssetMetadatas` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `CdpEngine::DebitExchangeRate` (r:1 w:0) + // Proof: `CdpEngine::DebitExchangeRate` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:2 w:2) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:2 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `CdpTreasury::DebitPool` (r:1 w:1) + // Proof: `CdpTreasury::DebitPool` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + // Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1) + // Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Rewards::PoolInfos` (r:1 w:1) + // Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Loans::TotalPositions` (r:1 w:1) + // Proof: `Loans::TotalPositions` (`max_values`: None, `max_size`: Some(83), added: 2558, mode: `MaxEncodedLen`) fn settle() -> Weight { // Proof Size summary in bytes: - // Measured: `3690` - // Estimated: `53624` - // Minimum execution time: 127_256 nanoseconds. - Weight::from_parts(130_551_000, 53624) + // Measured: `3759` + // Estimated: `7224` + // Minimum execution time: 100_767 nanoseconds. + Weight::from_parts(103_791_000, 7224) .saturating_add(T::DbWeight::get().reads(14)) .saturating_add(T::DbWeight::get().writes(8)) } - // Storage: CdpEngine LiquidationContracts (r:1 w:1) - // Proof: CdpEngine LiquidationContracts (max_values: Some(1), max_size: Some(201), added: 696, mode: MaxEncodedLen) + // Storage: `CdpEngine::LiquidationContracts` (r:1 w:1) + // Proof: `CdpEngine::LiquidationContracts` (`max_values`: Some(1), `max_size`: Some(201), added: 696, mode: `MaxEncodedLen`) fn register_liquidation_contract() -> Weight { // Proof Size summary in bytes: - // Measured: `1211` + // Measured: `1247` // Estimated: `1686` - // Minimum execution time: 20_772 nanoseconds. - Weight::from_parts(21_773_000, 1686) + // Minimum execution time: 14_962 nanoseconds. + Weight::from_parts(15_576_000, 1686) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: CdpEngine LiquidationContracts (r:1 w:1) - // Proof: CdpEngine LiquidationContracts (max_values: Some(1), max_size: Some(201), added: 696, mode: MaxEncodedLen) + // Storage: `CdpEngine::LiquidationContracts` (r:1 w:1) + // Proof: `CdpEngine::LiquidationContracts` (`max_values`: Some(1), `max_size`: Some(201), added: 696, mode: `MaxEncodedLen`) fn deregister_liquidation_contract() -> Weight { // Proof Size summary in bytes: - // Measured: `1252` + // Measured: `1288` // Estimated: `1686` - // Minimum execution time: 20_982 nanoseconds. - Weight::from_parts(21_601_000, 1686) + // Minimum execution time: 15_637 nanoseconds. + Weight::from_parts(16_119_000, 1686) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/mandala/src/weights/module_cdp_treasury.rs b/runtime/mandala/src/weights/module_cdp_treasury.rs index 9a318da7fd..55a8d716f8 100644 --- a/runtime/mandala/src/weights/module_cdp_treasury.rs +++ b/runtime/mandala/src/weights/module_cdp_treasury.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for module_cdp_treasury //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,92 +47,92 @@ use sp_std::marker::PhantomData; /// Weight functions for module_cdp_treasury. pub struct WeightInfo(PhantomData); impl module_cdp_treasury::WeightInfo for WeightInfo { - // Storage: Tokens Accounts (r:1 w:0) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: AuctionManager TotalCollateralInAuction (r:1 w:1) - // Proof: AuctionManager TotalCollateralInAuction (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: CdpTreasury ExpectedCollateralAuctionSize (r:1 w:0) - // Proof: CdpTreasury ExpectedCollateralAuctionSize (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: AuctionManager TotalTargetInAuction (r:1 w:1) - // Proof: AuctionManager TotalTargetInAuction (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - // Storage: Auction AuctionsIndex (r:1 w:1) - // Proof: Auction AuctionsIndex (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: AuctionManager CollateralAuctions (r:0 w:50) - // Proof: AuctionManager CollateralAuctions (max_values: None, max_size: Some(139), added: 2614, mode: MaxEncodedLen) - // Storage: Auction AuctionEndTime (r:0 w:50) - // Proof: Auction AuctionEndTime (max_values: None, max_size: Some(32), added: 2507, mode: MaxEncodedLen) - // Storage: Auction Auctions (r:0 w:50) - // Proof: Auction Auctions (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) + // Storage: `Tokens::Accounts` (r:1 w:0) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `AuctionManager::TotalCollateralInAuction` (r:1 w:1) + // Proof: `AuctionManager::TotalCollateralInAuction` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `CdpTreasury::ExpectedCollateralAuctionSize` (r:1 w:0) + // Proof: `CdpTreasury::ExpectedCollateralAuctionSize` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `AuctionManager::TotalTargetInAuction` (r:1 w:1) + // Proof: `AuctionManager::TotalTargetInAuction` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + // Storage: `Auction::AuctionsIndex` (r:1 w:1) + // Proof: `Auction::AuctionsIndex` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `AuctionManager::CollateralAuctions` (r:0 w:50) + // Proof: `AuctionManager::CollateralAuctions` (`max_values`: None, `max_size`: Some(139), added: 2614, mode: `MaxEncodedLen`) + // Storage: `Auction::AuctionEndTime` (r:0 w:50) + // Proof: `Auction::AuctionEndTime` (`max_values`: None, `max_size`: Some(32), added: 2507, mode: `MaxEncodedLen`) + // Storage: `Auction::Auctions` (r:0 w:50) + // Proof: `Auction::Auctions` (`max_values`: None, `max_size`: Some(70), added: 2545, mode: `MaxEncodedLen`) /// The range of component `b` is `[1, 50]`. fn auction_collateral(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2814` - // Estimated: `17259` - // Minimum execution time: 54_551 nanoseconds. - Weight::from_parts(55_725_931, 17259) - // Standard Error: 23_040 - .saturating_add(Weight::from_parts(13_556_095, 0).saturating_mul(b.into())) + // Measured: `2816` + // Estimated: `3612` + // Minimum execution time: 43_228 nanoseconds. + Weight::from_parts(42_131_463, 3612) + // Standard Error: 13_311 + .saturating_add(Weight::from_parts(9_224_010, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(6)) .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(b.into()))) } - // Storage: Tokens Accounts (r:8 w:8) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: AuctionManager TotalCollateralInAuction (r:1 w:0) - // Proof: AuctionManager TotalCollateralInAuction (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Dex TradingPairStatuses (r:3 w:0) - // Proof: Dex TradingPairStatuses (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - // Storage: Dex LiquidityPool (r:3 w:1) - // Proof: Dex LiquidityPool (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen) - // Storage: StableAsset Pools (r:2 w:1) - // Proof Skipped: StableAsset Pools (max_values: None, max_size: None, mode: Measured) - // Storage: AggregatedDex AggregatedSwapPaths (r:1 w:0) - // Proof Skipped: AggregatedDex AggregatedSwapPaths (max_values: None, max_size: None, mode: Measured) - // Storage: Homa TotalStakingBonded (r:1 w:0) - // Proof Skipped: Homa TotalStakingBonded (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa ToBondPool (r:1 w:0) - // Proof Skipped: Homa ToBondPool (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Tokens TotalIssuance (r:2 w:1) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Homa TotalVoidLiquid (r:1 w:0) - // Proof Skipped: Homa TotalVoidLiquid (max_values: Some(1), max_size: None, mode: Measured) - // Storage: System Account (r:3 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: EvmAccounts EvmAddresses (r:1 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: AssetRegistry AssetMetadatas (r:1 w:0) - // Proof Skipped: AssetRegistry AssetMetadatas (max_values: None, max_size: None, mode: Measured) + // Storage: `Tokens::Accounts` (r:8 w:8) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `AuctionManager::TotalCollateralInAuction` (r:1 w:0) + // Proof: `AuctionManager::TotalCollateralInAuction` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Dex::TradingPairStatuses` (r:3 w:0) + // Proof: `Dex::TradingPairStatuses` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + // Storage: `Dex::LiquidityPool` (r:3 w:1) + // Proof: `Dex::LiquidityPool` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) + // Storage: `StableAsset::Pools` (r:2 w:1) + // Proof: `StableAsset::Pools` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `AggregatedDex::AggregatedSwapPaths` (r:1 w:0) + // Proof: `AggregatedDex::AggregatedSwapPaths` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Homa::TotalStakingBonded` (r:1 w:0) + // Proof: `Homa::TotalStakingBonded` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::ToBondPool` (r:1 w:0) + // Proof: `Homa::ToBondPool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Tokens::TotalIssuance` (r:2 w:1) + // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Homa::TotalVoidLiquid` (r:1 w:0) + // Proof: `Homa::TotalVoidLiquid` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `System::Account` (r:3 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `EvmAccounts::EvmAddresses` (r:1 w:0) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `AssetRegistry::AssetMetadatas` (r:1 w:0) + // Proof: `AssetRegistry::AssetMetadatas` (`max_values`: None, `max_size`: None, mode: `Measured`) fn exchange_collateral_to_stable() -> Weight { // Proof Size summary in bytes: - // Measured: `5642` - // Estimated: `112866` - // Minimum execution time: 380_584 nanoseconds. - Weight::from_parts(383_023_000, 112866) + // Measured: `5624` + // Estimated: `21966` + // Minimum execution time: 329_496 nanoseconds. + Weight::from_parts(338_514_000, 21966) .saturating_add(T::DbWeight::get().reads(28)) .saturating_add(T::DbWeight::get().writes(12)) } - // Storage: CdpTreasury ExpectedCollateralAuctionSize (r:0 w:1) - // Proof: CdpTreasury ExpectedCollateralAuctionSize (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) + // Storage: `CdpTreasury::ExpectedCollateralAuctionSize` (r:0 w:1) + // Proof: `CdpTreasury::ExpectedCollateralAuctionSize` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) fn set_expected_collateral_auction_size() -> Weight { // Proof Size summary in bytes: - // Measured: `965` + // Measured: `1001` // Estimated: `0` - // Minimum execution time: 18_358 nanoseconds. - Weight::from_parts(18_999_000, 0) + // Minimum execution time: 13_174 nanoseconds. + Weight::from_parts(13_532_000, 0) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: Tokens Accounts (r:2 w:2) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: System Account (r:2 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + // Storage: `Tokens::Accounts` (r:2 w:2) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:2 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn extract_surplus_to_treasury() -> Weight { // Proof Size summary in bytes: - // Measured: `2467` - // Estimated: `12430` - // Minimum execution time: 55_189 nanoseconds. - Weight::from_parts(56_646_000, 12430) + // Measured: `2503` + // Estimated: `6234` + // Minimum execution time: 41_331 nanoseconds. + Weight::from_parts(43_015_000, 6234) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } diff --git a/runtime/mandala/src/weights/module_collator_selection.rs b/runtime/mandala/src/weights/module_collator_selection.rs index 0af4ce7b65..00830a638a 100644 --- a/runtime/mandala/src/weights/module_collator_selection.rs +++ b/runtime/mandala/src/weights/module_collator_selection.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for module_collator_selection //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,189 +47,189 @@ use sp_std::marker::PhantomData; /// Weight functions for module_collator_selection. pub struct WeightInfo(PhantomData); impl module_collator_selection::WeightInfo for WeightInfo { - // Storage: CollatorSelection Invulnerables (r:0 w:1) - // Proof: CollatorSelection Invulnerables (max_values: Some(1), max_size: Some(1601), added: 2096, mode: MaxEncodedLen) + // Storage: `CollatorSelection::Invulnerables` (r:0 w:1) + // Proof: `CollatorSelection::Invulnerables` (`max_values`: Some(1), `max_size`: Some(1601), added: 2096, mode: `MaxEncodedLen`) /// The range of component `b` is `[1, 50]`. fn set_invulnerables(b: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `965` + // Measured: `1001` // Estimated: `0` - // Minimum execution time: 15_688 nanoseconds. - Weight::from_parts(16_394_819, 0) - // Standard Error: 734 - .saturating_add(Weight::from_parts(42_767, 0).saturating_mul(b.into())) + // Minimum execution time: 11_649 nanoseconds. + Weight::from_parts(12_062_250, 0) + // Standard Error: 390 + .saturating_add(Weight::from_parts(14_611, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: CollatorSelection DesiredCandidates (r:0 w:1) - // Proof: CollatorSelection DesiredCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + // Storage: `CollatorSelection::DesiredCandidates` (r:0 w:1) + // Proof: `CollatorSelection::DesiredCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn set_desired_candidates() -> Weight { // Proof Size summary in bytes: - // Measured: `965` + // Measured: `1001` // Estimated: `0` - // Minimum execution time: 14_643 nanoseconds. - Weight::from_parts(14_977_000, 0) + // Minimum execution time: 11_403 nanoseconds. + Weight::from_parts(11_628_000, 0) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: CollatorSelection CandidacyBond (r:0 w:1) - // Proof: CollatorSelection CandidacyBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + // Storage: `CollatorSelection::CandidacyBond` (r:0 w:1) + // Proof: `CollatorSelection::CandidacyBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) fn set_candidacy_bond() -> Weight { // Proof Size summary in bytes: - // Measured: `965` + // Measured: `1001` // Estimated: `0` - // Minimum execution time: 15_175 nanoseconds. - Weight::from_parts(15_452_000, 0) + // Minimum execution time: 11_387 nanoseconds. + Weight::from_parts(11_733_000, 0) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: CollatorSelection NonCandidates (r:1 w:1) - // Proof: CollatorSelection NonCandidates (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) - // Storage: CollatorSelection CandidacyBond (r:1 w:0) - // Proof: CollatorSelection CandidacyBond (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - // Storage: CollatorSelection Candidates (r:1 w:1) - // Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(6402), added: 6897, mode: MaxEncodedLen) - // Storage: CollatorSelection DesiredCandidates (r:1 w:0) - // Proof: CollatorSelection DesiredCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - // Storage: CollatorSelection Invulnerables (r:1 w:0) - // Proof: CollatorSelection Invulnerables (max_values: Some(1), max_size: Some(1601), added: 2096, mode: MaxEncodedLen) - // Storage: Session NextKeys (r:1 w:0) - // Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured) - // Storage: Balances Reserves (r:1 w:1) - // Proof: Balances Reserves (max_values: None, max_size: Some(168), added: 2643, mode: MaxEncodedLen) + // Storage: `CollatorSelection::NonCandidates` (r:1 w:1) + // Proof: `CollatorSelection::NonCandidates` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + // Storage: `CollatorSelection::CandidacyBond` (r:1 w:0) + // Proof: `CollatorSelection::CandidacyBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + // Storage: `CollatorSelection::Candidates` (r:1 w:1) + // Proof: `CollatorSelection::Candidates` (`max_values`: Some(1), `max_size`: Some(6402), added: 6897, mode: `MaxEncodedLen`) + // Storage: `CollatorSelection::DesiredCandidates` (r:1 w:0) + // Proof: `CollatorSelection::DesiredCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + // Storage: `CollatorSelection::Invulnerables` (r:1 w:0) + // Proof: `CollatorSelection::Invulnerables` (`max_values`: Some(1), `max_size`: Some(1601), added: 2096, mode: `MaxEncodedLen`) + // Storage: `Session::NextKeys` (r:1 w:0) + // Proof: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Balances::Reserves` (r:1 w:1) + // Proof: `Balances::Reserves` (`max_values`: None, `max_size`: Some(168), added: 2643, mode: `MaxEncodedLen`) /// The range of component `c` is `[5, 200]`. fn register_as_candidate(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `3362 + c * (36 ±0)` - // Estimated: `27799 + c * (37 ±0)` - // Minimum execution time: 60_929 nanoseconds. - Weight::from_parts(74_700_538, 27799) - // Standard Error: 2_892 - .saturating_add(Weight::from_parts(193_170, 0).saturating_mul(c.into())) + // Measured: `3431 + c * (36 ±0)` + // Estimated: `7887 + c * (37 ±0)` + // Minimum execution time: 55_319 nanoseconds. + Weight::from_parts(68_040_667, 7887) + // Standard Error: 2_771 + .saturating_add(Weight::from_parts(180_202, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(Weight::from_parts(0, 37).saturating_mul(c.into())) } - // Storage: CollatorSelection Candidates (r:1 w:1) - // Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(6402), added: 6897, mode: MaxEncodedLen) - // Storage: CollatorSelection DesiredCandidates (r:1 w:0) - // Proof: CollatorSelection DesiredCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - // Storage: CollatorSelection Invulnerables (r:1 w:0) - // Proof: CollatorSelection Invulnerables (max_values: Some(1), max_size: Some(1601), added: 2096, mode: MaxEncodedLen) - // Storage: Session NextKeys (r:1 w:0) - // Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured) - // Storage: Balances Reserves (r:1 w:0) - // Proof: Balances Reserves (max_values: None, max_size: Some(168), added: 2643, mode: MaxEncodedLen) + // Storage: `CollatorSelection::Candidates` (r:1 w:1) + // Proof: `CollatorSelection::Candidates` (`max_values`: Some(1), `max_size`: Some(6402), added: 6897, mode: `MaxEncodedLen`) + // Storage: `CollatorSelection::DesiredCandidates` (r:1 w:0) + // Proof: `CollatorSelection::DesiredCandidates` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + // Storage: `CollatorSelection::Invulnerables` (r:1 w:0) + // Proof: `CollatorSelection::Invulnerables` (`max_values`: Some(1), `max_size`: Some(1601), added: 2096, mode: `MaxEncodedLen`) + // Storage: `Session::NextKeys` (r:1 w:0) + // Proof: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Balances::Reserves` (r:1 w:0) + // Proof: `Balances::Reserves` (`max_values`: None, `max_size`: Some(168), added: 2643, mode: `MaxEncodedLen`) /// The range of component `c` is `[1, 200]`. fn register_candidate(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2589 + c * (35 ±0)` - // Estimated: `21964 + c * (37 ±0)` - // Minimum execution time: 36_884 nanoseconds. - Weight::from_parts(50_703_115, 21964) - // Standard Error: 2_480 - .saturating_add(Weight::from_parts(176_341, 0).saturating_mul(c.into())) + // Measured: `2658 + c * (35 ±0)` + // Estimated: `7887 + c * (37 ±0)` + // Minimum execution time: 30_345 nanoseconds. + Weight::from_parts(43_110_313, 7887) + // Standard Error: 2_331 + .saturating_add(Weight::from_parts(164_515, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(Weight::from_parts(0, 37).saturating_mul(c.into())) } - // Storage: CollatorSelection Candidates (r:1 w:1) - // Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(6402), added: 6897, mode: MaxEncodedLen) - // Storage: Session CurrentIndex (r:1 w:0) - // Proof Skipped: Session CurrentIndex (max_values: Some(1), max_size: None, mode: Measured) - // Storage: CollatorSelection NonCandidates (r:0 w:1) - // Proof: CollatorSelection NonCandidates (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + // Storage: `CollatorSelection::Candidates` (r:1 w:1) + // Proof: `CollatorSelection::Candidates` (`max_values`: Some(1), `max_size`: Some(6402), added: 6897, mode: `MaxEncodedLen`) + // Storage: `Session::CurrentIndex` (r:1 w:0) + // Proof: `Session::CurrentIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `CollatorSelection::NonCandidates` (r:0 w:1) + // Proof: `CollatorSelection::NonCandidates` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) /// The range of component `c` is `[6, 200]`. fn leave_intent(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1922 + c * (32 ±0)` - // Estimated: `11180 + c * (33 ±0)` - // Minimum execution time: 28_827 nanoseconds. - Weight::from_parts(36_176_710, 11180) - // Standard Error: 1_475 - .saturating_add(Weight::from_parts(146_883, 0).saturating_mul(c.into())) + // Measured: `1991 + c * (32 ±0)` + // Estimated: `7887 + c * (33 ±0)` + // Minimum execution time: 24_284 nanoseconds. + Weight::from_parts(30_563_309, 7887) + // Standard Error: 1_354 + .saturating_add(Weight::from_parts(131_393, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(Weight::from_parts(0, 33).saturating_mul(c.into())) } - // Storage: CollatorSelection NonCandidates (r:1 w:1) - // Proof: CollatorSelection NonCandidates (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) - // Storage: Session CurrentIndex (r:1 w:0) - // Proof Skipped: Session CurrentIndex (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Balances Reserves (r:1 w:1) - // Proof: Balances Reserves (max_values: None, max_size: Some(168), added: 2643, mode: MaxEncodedLen) + // Storage: `CollatorSelection::NonCandidates` (r:1 w:1) + // Proof: `CollatorSelection::NonCandidates` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + // Storage: `Session::CurrentIndex` (r:1 w:0) + // Proof: `Session::CurrentIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Balances::Reserves` (r:1 w:1) + // Proof: `Balances::Reserves` (`max_values`: None, `max_size`: Some(168), added: 2643, mode: `MaxEncodedLen`) fn withdraw_bond() -> Weight { // Proof Size summary in bytes: - // Measured: `3697` - // Estimated: `12324` - // Minimum execution time: 66_179 nanoseconds. - Weight::from_parts(67_432_000, 12324) + // Measured: `3766` + // Estimated: `5251` + // Minimum execution time: 66_147 nanoseconds. + Weight::from_parts(67_122_000, 5251) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } - // Storage: System Account (r:1 w:0) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: CollatorSelection SessionPoints (r:1 w:0) - // Proof: CollatorSelection SessionPoints (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + // Storage: `System::Account` (r:1 w:0) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `CollatorSelection::SessionPoints` (r:1 w:0) + // Proof: `CollatorSelection::SessionPoints` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) fn note_author() -> Weight { // Proof Size summary in bytes: - // Measured: `1966` - // Estimated: `7102` - // Minimum execution time: 28_145 nanoseconds. - Weight::from_parts(29_209_000, 7102) + // Measured: `2002` + // Estimated: `3593` + // Minimum execution time: 26_786 nanoseconds. + Weight::from_parts(27_664_000, 3593) .saturating_add(T::DbWeight::get().reads(2)) } - // Storage: CollatorSelection Candidates (r:1 w:0) - // Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(6402), added: 6897, mode: MaxEncodedLen) - // Storage: CollatorSelection Invulnerables (r:1 w:0) - // Proof: CollatorSelection Invulnerables (max_values: Some(1), max_size: Some(1601), added: 2096, mode: MaxEncodedLen) + // Storage: `CollatorSelection::Candidates` (r:1 w:0) + // Proof: `CollatorSelection::Candidates` (`max_values`: Some(1), `max_size`: Some(6402), added: 6897, mode: `MaxEncodedLen`) + // Storage: `CollatorSelection::Invulnerables` (r:1 w:0) + // Proof: `CollatorSelection::Invulnerables` (`max_values`: Some(1), `max_size`: Some(1601), added: 2096, mode: `MaxEncodedLen`) fn new_session() -> Weight { // Proof Size summary in bytes: - // Measured: `7489` - // Estimated: `10973` - // Minimum execution time: 39_967 nanoseconds. - Weight::from_parts(41_614_000, 10973) + // Measured: `7525` + // Estimated: `7887` + // Minimum execution time: 37_453 nanoseconds. + Weight::from_parts(38_926_000, 7887) .saturating_add(T::DbWeight::get().reads(2)) } - // Storage: Session Validators (r:1 w:0) - // Proof Skipped: Session Validators (max_values: Some(1), max_size: None, mode: Measured) - // Storage: CollatorSelection Candidates (r:1 w:0) - // Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(6402), added: 6897, mode: MaxEncodedLen) - // Storage: CollatorSelection SessionPoints (r:0 w:200) - // Proof: CollatorSelection SessionPoints (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + // Storage: `Session::Validators` (r:1 w:0) + // Proof: `Session::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `CollatorSelection::Candidates` (r:1 w:0) + // Proof: `CollatorSelection::Candidates` (`max_values`: Some(1), `max_size`: Some(6402), added: 6897, mode: `MaxEncodedLen`) + // Storage: `CollatorSelection::SessionPoints` (r:0 w:200) + // Proof: `CollatorSelection::SessionPoints` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) /// The range of component `r` is `[5, 200]`. /// The range of component `c` is `[5, 200]`. fn start_session(_r: u32, c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1378 + c * (64 ±0)` - // Estimated: `10748 + c * (64 ±0)` - // Minimum execution time: 22_032 nanoseconds. - Weight::from_parts(14_914_736, 10748) - // Standard Error: 2_644 - .saturating_add(Weight::from_parts(1_475_719, 0).saturating_mul(c.into())) + // Measured: `1448 + c * (64 ±0)` + // Estimated: `7887 + c * (64 ±0)` + // Minimum execution time: 20_188 nanoseconds. + Weight::from_parts(12_712_601, 7887) + // Standard Error: 2_437 + .saturating_add(Weight::from_parts(1_451_317, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) .saturating_add(Weight::from_parts(0, 64).saturating_mul(c.into())) } - // Storage: CollatorSelection SessionPoints (r:201 w:200) - // Proof: CollatorSelection SessionPoints (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) - // Storage: CollatorSelection Candidates (r:1 w:1) - // Proof: CollatorSelection Candidates (max_values: Some(1), max_size: Some(6402), added: 6897, mode: MaxEncodedLen) - // Storage: Session CurrentIndex (r:1 w:0) - // Proof Skipped: Session CurrentIndex (max_values: Some(1), max_size: None, mode: Measured) - // Storage: CollatorSelection NonCandidates (r:0 w:3) - // Proof: CollatorSelection NonCandidates (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + // Storage: `CollatorSelection::SessionPoints` (r:201 w:200) + // Proof: `CollatorSelection::SessionPoints` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + // Storage: `CollatorSelection::Candidates` (r:1 w:1) + // Proof: `CollatorSelection::Candidates` (`max_values`: Some(1), `max_size`: Some(6402), added: 6897, mode: `MaxEncodedLen`) + // Storage: `Session::CurrentIndex` (r:1 w:0) + // Proof: `Session::CurrentIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `CollatorSelection::NonCandidates` (r:0 w:3) + // Proof: `CollatorSelection::NonCandidates` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) /// The range of component `r` is `[5, 200]`. /// The range of component `c` is `[5, 200]`. fn end_session(_r: u32, c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `8246 + c * (49 ±0)` - // Estimated: `3509 + c * (2656 ±0)` - // Minimum execution time: 33_428 nanoseconds. - Weight::from_parts(3_137_799_914, 3509) - // Standard Error: 48_740 - .saturating_add(Weight::from_parts(4_513_816, 0).saturating_mul(c.into())) + // Measured: `8315 + c * (49 ±0)` + // Estimated: `3509 + c * (2519 ±0)` + // Minimum execution time: 31_171 nanoseconds. + Weight::from_parts(2_310_725_630, 3509) + // Standard Error: 41_790 + .saturating_add(Weight::from_parts(4_243_190, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(198)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) - .saturating_add(Weight::from_parts(0, 2656).saturating_mul(c.into())) + .saturating_add(Weight::from_parts(0, 2519).saturating_mul(c.into())) } } diff --git a/runtime/mandala/src/weights/module_currencies.rs b/runtime/mandala/src/weights/module_currencies.rs index 85f26bce13..7bc3a3b786 100644 --- a/runtime/mandala/src/weights/module_currencies.rs +++ b/runtime/mandala/src/weights/module_currencies.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for module_currencies //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,119 +47,119 @@ use sp_std::marker::PhantomData; /// Weight functions for module_currencies. pub struct WeightInfo(PhantomData); impl module_currencies::WeightInfo for WeightInfo { - // Storage: Tokens Accounts (r:2 w:2) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: EvmAccounts EvmAddresses (r:1 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + // Storage: `Tokens::Accounts` (r:2 w:2) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `EvmAccounts::EvmAddresses` (r:1 w:0) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn transfer_non_native_currency() -> Weight { // Proof Size summary in bytes: - // Measured: `2490` - // Estimated: `13352` - // Minimum execution time: 61_327 nanoseconds. - Weight::from_parts(63_245_000, 13352) + // Measured: `2559` + // Estimated: `6234` + // Minimum execution time: 47_857 nanoseconds. + Weight::from_parts(48_516_000, 6234) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: EvmAccounts EvmAddresses (r:1 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `EvmAccounts::EvmAddresses` (r:1 w:0) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) fn transfer_native_currency() -> Weight { // Proof Size summary in bytes: - // Measured: `1974` - // Estimated: `7118` - // Minimum execution time: 47_302 nanoseconds. - Weight::from_parts(48_325_000, 7118) + // Measured: `2121` + // Estimated: `3593` + // Minimum execution time: 59_229 nanoseconds. + Weight::from_parts(60_067_000, 3593) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: Tokens Accounts (r:1 w:1) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: Tokens TotalIssuance (r:1 w:1) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + // Storage: `Tokens::Accounts` (r:1 w:1) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `Tokens::TotalIssuance` (r:1 w:1) + // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn update_balance_non_native_currency() -> Weight { // Proof Size summary in bytes: - // Measured: `2005` - // Estimated: `10737` - // Minimum execution time: 39_192 nanoseconds. - Weight::from_parts(40_506_000, 10737) + // Measured: `2041` + // Estimated: `3612` + // Minimum execution time: 30_051 nanoseconds. + Weight::from_parts(30_734_000, 3612) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn update_balance_native_currency_creating() -> Weight { // Proof Size summary in bytes: - // Measured: `1704` + // Measured: `1773` // Estimated: `3593` - // Minimum execution time: 35_056 nanoseconds. - Weight::from_parts(35_694_000, 3593) + // Minimum execution time: 29_629 nanoseconds. + Weight::from_parts(30_280_000, 3593) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: EvmAccounts EvmAddresses (r:1 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `EvmAccounts::EvmAddresses` (r:1 w:0) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) fn update_balance_native_currency_killing() -> Weight { // Proof Size summary in bytes: - // Measured: `1843` - // Estimated: `7118` - // Minimum execution time: 34_773 nanoseconds. - Weight::from_parts(35_614_000, 7118) + // Measured: `1912` + // Estimated: `3593` + // Minimum execution time: 33_224 nanoseconds. + Weight::from_parts(33_929_000, 3593) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: Tokens Accounts (r:4 w:4) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: System Account (r:3 w:3) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + // Storage: `Tokens::Accounts` (r:4 w:4) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:3 w:3) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// The range of component `c` is `[1, 3]`. fn sweep_dust(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1877 + c * (339 ±0)` - // Estimated: `4602 + c * (5225 ±0)` - // Minimum execution time: 45_126 nanoseconds. - Weight::from_parts(22_185_988, 4602) - // Standard Error: 51_470 - .saturating_add(Weight::from_parts(24_739_875, 0).saturating_mul(c.into())) + // Measured: `1913 + c * (339 ±0)` + // Estimated: `3612 + c * (2622 ±0)` + // Minimum execution time: 38_434 nanoseconds. + Weight::from_parts(19_529_506, 3612) + // Standard Error: 35_673 + .saturating_add(Weight::from_parts(20_305_483, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(c.into()))) - .saturating_add(Weight::from_parts(0, 5225).saturating_mul(c.into())) + .saturating_add(Weight::from_parts(0, 2622).saturating_mul(c.into())) } - // Storage: Tokens Locks (r:1 w:1) - // Proof: Tokens Locks (max_values: None, max_size: Some(1300), added: 3775, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:1 w:1) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + // Storage: `Tokens::Locks` (r:1 w:1) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1300), added: 3775, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:1 w:1) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn force_set_lock() -> Weight { // Proof Size summary in bytes: - // Measured: `2206` - // Estimated: `11970` - // Minimum execution time: 40_963 nanoseconds. - Weight::from_parts(41_635_000, 11970) + // Measured: `2242` + // Estimated: `4765` + // Minimum execution time: 33_897 nanoseconds. + Weight::from_parts(34_619_000, 4765) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } - // Storage: Tokens Locks (r:1 w:1) - // Proof: Tokens Locks (max_values: None, max_size: Some(1300), added: 3775, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:1 w:1) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + // Storage: `Tokens::Locks` (r:1 w:1) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1300), added: 3775, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:1 w:1) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn force_remove_lock() -> Weight { // Proof Size summary in bytes: - // Measured: `2311` - // Estimated: `11970` - // Minimum execution time: 41_527 nanoseconds. - Weight::from_parts(42_537_000, 11970) + // Measured: `2347` + // Estimated: `4765` + // Minimum execution time: 35_270 nanoseconds. + Weight::from_parts(36_298_000, 4765) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } diff --git a/runtime/mandala/src/weights/module_dex.rs b/runtime/mandala/src/weights/module_dex.rs index a13f21c6eb..ab01e6ba90 100644 --- a/runtime/mandala/src/weights/module_dex.rs +++ b/runtime/mandala/src/weights/module_dex.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for module_dex //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,272 +47,272 @@ use sp_std::marker::PhantomData; /// Weight functions for module_dex. pub struct WeightInfo(PhantomData); impl module_dex::WeightInfo for WeightInfo { - // Storage: Dex TradingPairStatuses (r:1 w:1) - // Proof: Dex TradingPairStatuses (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) + // Storage: `Dex::TradingPairStatuses` (r:1 w:1) + // Proof: `Dex::TradingPairStatuses` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) fn enable_trading_pair() -> Weight { // Proof Size summary in bytes: - // Measured: `1180` + // Measured: `1200` // Estimated: `3660` - // Minimum execution time: 23_677 nanoseconds. - Weight::from_parts(24_388_000, 3660) + // Minimum execution time: 18_643 nanoseconds. + Weight::from_parts(19_065_000, 3660) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: Dex TradingPairStatuses (r:1 w:1) - // Proof: Dex TradingPairStatuses (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) + // Storage: `Dex::TradingPairStatuses` (r:1 w:1) + // Proof: `Dex::TradingPairStatuses` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) fn disable_trading_pair() -> Weight { // Proof Size summary in bytes: - // Measured: `1180` + // Measured: `1200` // Estimated: `3660` - // Minimum execution time: 23_665 nanoseconds. - Weight::from_parts(24_300_000, 3660) + // Minimum execution time: 18_275 nanoseconds. + Weight::from_parts(18_864_000, 3660) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: Dex TradingPairStatuses (r:1 w:1) - // Proof: Dex TradingPairStatuses (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - // Storage: Tokens TotalIssuance (r:1 w:0) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Dex ProvisioningPool (r:1 w:0) - // Proof: Dex ProvisioningPool (max_values: None, max_size: Some(166), added: 2641, mode: MaxEncodedLen) + // Storage: `Dex::TradingPairStatuses` (r:1 w:1) + // Proof: `Dex::TradingPairStatuses` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + // Storage: `Tokens::TotalIssuance` (r:1 w:0) + // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Dex::ProvisioningPool` (r:1 w:0) + // Proof: `Dex::ProvisioningPool` (`max_values`: None, `max_size`: Some(166), added: 2641, mode: `MaxEncodedLen`) fn list_provisioning() -> Weight { // Proof Size summary in bytes: - // Measured: `1340` - // Estimated: `10823` - // Minimum execution time: 34_816 nanoseconds. - Weight::from_parts(35_943_000, 10823) + // Measured: `1360` + // Estimated: `3660` + // Minimum execution time: 27_957 nanoseconds. + Weight::from_parts(28_380_000, 3660) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: Dex TradingPairStatuses (r:1 w:1) - // Proof: Dex TradingPairStatuses (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) + // Storage: `Dex::TradingPairStatuses` (r:1 w:1) + // Proof: `Dex::TradingPairStatuses` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) fn update_provisioning_parameters() -> Weight { // Proof Size summary in bytes: - // Measured: `985` + // Measured: `969` // Estimated: `3660` - // Minimum execution time: 16_197 nanoseconds. - Weight::from_parts(16_936_000, 3660) + // Minimum execution time: 13_153 nanoseconds. + Weight::from_parts(13_548_000, 3660) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: Dex TradingPairStatuses (r:1 w:1) - // Proof: Dex TradingPairStatuses (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:1 w:1) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: Tokens TotalIssuance (r:1 w:1) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Dex LiquidityPool (r:1 w:1) - // Proof: Dex LiquidityPool (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen) - // Storage: Dex InitialShareExchangeRates (r:0 w:1) - // Proof: Dex InitialShareExchangeRates (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen) + // Storage: `Dex::TradingPairStatuses` (r:1 w:1) + // Proof: `Dex::TradingPairStatuses` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:1 w:1) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `Tokens::TotalIssuance` (r:1 w:1) + // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Dex::LiquidityPool` (r:1 w:1) + // Proof: `Dex::LiquidityPool` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) + // Storage: `Dex::InitialShareExchangeRates` (r:0 w:1) + // Proof: `Dex::InitialShareExchangeRates` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) fn end_provisioning() -> Weight { // Proof Size summary in bytes: - // Measured: `2587` - // Estimated: `17988` - // Minimum execution time: 60_323 nanoseconds. - Weight::from_parts(62_514_000, 17988) + // Measured: `2607` + // Estimated: `3660` + // Minimum execution time: 47_453 nanoseconds. + Weight::from_parts(48_463_000, 3660) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(6)) } - // Storage: Dex TradingPairStatuses (r:1 w:1) - // Proof: Dex TradingPairStatuses (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - // Storage: Dex ProvisioningPool (r:1 w:1) - // Proof: Dex ProvisioningPool (max_values: None, max_size: Some(166), added: 2641, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:2 w:2) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) + // Storage: `Dex::TradingPairStatuses` (r:1 w:1) + // Proof: `Dex::TradingPairStatuses` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + // Storage: `Dex::ProvisioningPool` (r:1 w:1) + // Proof: `Dex::ProvisioningPool` (`max_values`: None, `max_size`: Some(166), added: 2641, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:2 w:2) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) fn add_provision() -> Weight { // Proof Size summary in bytes: - // Measured: `2607` - // Estimated: `17118` - // Minimum execution time: 96_627 nanoseconds. - Weight::from_parts(98_740_000, 17118) + // Measured: `2843` + // Estimated: `6234` + // Minimum execution time: 90_569 nanoseconds. + Weight::from_parts(91_816_000, 6234) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(5)) } - // Storage: Dex TradingPairStatuses (r:1 w:0) - // Proof: Dex TradingPairStatuses (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - // Storage: Dex ProvisioningPool (r:2 w:1) - // Proof: Dex ProvisioningPool (max_values: None, max_size: Some(166), added: 2641, mode: MaxEncodedLen) - // Storage: Dex InitialShareExchangeRates (r:1 w:1) - // Proof: Dex InitialShareExchangeRates (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:2 w:2) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + // Storage: `Dex::TradingPairStatuses` (r:1 w:0) + // Proof: `Dex::TradingPairStatuses` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + // Storage: `Dex::ProvisioningPool` (r:2 w:1) + // Proof: `Dex::ProvisioningPool` (`max_values`: None, `max_size`: Some(166), added: 2641, mode: `MaxEncodedLen`) + // Storage: `Dex::InitialShareExchangeRates` (r:1 w:1) + // Proof: `Dex::InitialShareExchangeRates` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:2 w:2) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn claim_dex_share() -> Weight { // Proof Size summary in bytes: - // Measured: `2978` - // Estimated: `23350` - // Minimum execution time: 81_015 nanoseconds. - Weight::from_parts(84_317_000, 23350) + // Measured: `2998` + // Estimated: `6272` + // Minimum execution time: 67_056 nanoseconds. + Weight::from_parts(68_994_000, 6272) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(5)) } - // Storage: Dex TradingPairStatuses (r:1 w:0) - // Proof: Dex TradingPairStatuses (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - // Storage: Dex LiquidityPool (r:1 w:1) - // Proof: Dex LiquidityPool (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen) - // Storage: Tokens TotalIssuance (r:1 w:1) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:3 w:3) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: EvmAccounts EvmAddresses (r:1 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) + // Storage: `Dex::TradingPairStatuses` (r:1 w:0) + // Proof: `Dex::TradingPairStatuses` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + // Storage: `Dex::LiquidityPool` (r:1 w:1) + // Proof: `Dex::LiquidityPool` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) + // Storage: `Tokens::TotalIssuance` (r:1 w:1) + // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:3 w:3) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `EvmAccounts::EvmAddresses` (r:1 w:0) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) fn add_liquidity() -> Weight { // Proof Size summary in bytes: - // Measured: `3034` - // Estimated: `26757` - // Minimum execution time: 114_391 nanoseconds. - Weight::from_parts(118_334_000, 26757) + // Measured: `3165` + // Estimated: `8856` + // Minimum execution time: 110_200 nanoseconds. + Weight::from_parts(113_197_000, 8856) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(6)) } - // Storage: Dex TradingPairStatuses (r:1 w:0) - // Proof: Dex TradingPairStatuses (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - // Storage: Dex LiquidityPool (r:1 w:1) - // Proof: Dex LiquidityPool (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen) - // Storage: Tokens TotalIssuance (r:1 w:1) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:4 w:4) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: EvmAccounts EvmAddresses (r:1 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: Rewards PoolInfos (r:1 w:1) - // Proof Skipped: Rewards PoolInfos (max_values: None, max_size: None, mode: Measured) - // Storage: Rewards SharesAndWithdrawnRewards (r:1 w:1) - // Proof Skipped: Rewards SharesAndWithdrawnRewards (max_values: None, max_size: None, mode: Measured) + // Storage: `Dex::TradingPairStatuses` (r:1 w:0) + // Proof: `Dex::TradingPairStatuses` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + // Storage: `Dex::LiquidityPool` (r:1 w:1) + // Proof: `Dex::LiquidityPool` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) + // Storage: `Tokens::TotalIssuance` (r:1 w:1) + // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:4 w:4) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `EvmAccounts::EvmAddresses` (r:1 w:0) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `Rewards::PoolInfos` (r:1 w:1) + // Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1) + // Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`) fn add_liquidity_and_stake() -> Weight { // Proof Size summary in bytes: - // Measured: `3474` - // Estimated: `43257` - // Minimum execution time: 157_071 nanoseconds. - Weight::from_parts(162_022_000, 43257) + // Measured: `3605` + // Estimated: `11478` + // Minimum execution time: 142_461 nanoseconds. + Weight::from_parts(144_933_000, 11478) .saturating_add(T::DbWeight::get().reads(11)) .saturating_add(T::DbWeight::get().writes(9)) } - // Storage: Dex LiquidityPool (r:1 w:1) - // Proof: Dex LiquidityPool (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen) - // Storage: Tokens TotalIssuance (r:1 w:1) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:3 w:3) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + // Storage: `Dex::LiquidityPool` (r:1 w:1) + // Proof: `Dex::LiquidityPool` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) + // Storage: `Tokens::TotalIssuance` (r:1 w:1) + // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:3 w:3) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn remove_liquidity() -> Weight { // Proof Size summary in bytes: - // Measured: `2828` - // Estimated: `19572` - // Minimum execution time: 105_526 nanoseconds. - Weight::from_parts(108_816_000, 19572) + // Measured: `3080` + // Estimated: `8856` + // Minimum execution time: 102_467 nanoseconds. + Weight::from_parts(105_483_000, 8856) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(6)) } - // Storage: Dex LiquidityPool (r:1 w:1) - // Proof: Dex LiquidityPool (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen) - // Storage: Tokens TotalIssuance (r:1 w:1) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Rewards SharesAndWithdrawnRewards (r:1 w:1) - // Proof Skipped: Rewards SharesAndWithdrawnRewards (max_values: None, max_size: None, mode: Measured) - // Storage: Tokens Accounts (r:4 w:4) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: System Account (r:2 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Rewards PoolInfos (r:1 w:1) - // Proof Skipped: Rewards PoolInfos (max_values: None, max_size: None, mode: Measured) - // Storage: EvmAccounts EvmAddresses (r:1 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) + // Storage: `Dex::LiquidityPool` (r:1 w:1) + // Proof: `Dex::LiquidityPool` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) + // Storage: `Tokens::TotalIssuance` (r:1 w:1) + // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1) + // Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Tokens::Accounts` (r:4 w:4) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:2 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Rewards::PoolInfos` (r:1 w:1) + // Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `EvmAccounts::EvmAddresses` (r:1 w:0) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) fn remove_liquidity_by_unstake() -> Weight { // Proof Size summary in bytes: - // Measured: `3632` - // Estimated: `42516` - // Minimum execution time: 171_125 nanoseconds. - Weight::from_parts(174_985_000, 42516) + // Measured: `3779` + // Estimated: `11478` + // Minimum execution time: 150_564 nanoseconds. + Weight::from_parts(152_551_000, 11478) .saturating_add(T::DbWeight::get().reads(11)) .saturating_add(T::DbWeight::get().writes(9)) } - // Storage: Dex TradingPairStatuses (r:3 w:0) - // Proof: Dex TradingPairStatuses (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - // Storage: Dex LiquidityPool (r:3 w:3) - // Proof: Dex LiquidityPool (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:2 w:2) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) + // Storage: `Dex::TradingPairStatuses` (r:3 w:0) + // Proof: `Dex::TradingPairStatuses` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + // Storage: `Dex::LiquidityPool` (r:3 w:3) + // Proof: `Dex::LiquidityPool` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:2 w:2) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) /// The range of component `u` is `[2, 4]`. fn swap_with_exact_supply(u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2602 + u * (108 ±0)` - // Estimated: `17078 + u * (1270 ±18)` - // Minimum execution time: 90_439 nanoseconds. - Weight::from_parts(68_886_704, 17078) - // Standard Error: 76_532 - .saturating_add(Weight::from_parts(12_325_417, 0).saturating_mul(u.into())) + // Measured: `2838 + u * (108 ±0)` + // Estimated: `6234 + u * (643 ±19)` + // Minimum execution time: 89_781 nanoseconds. + Weight::from_parts(66_696_308, 6234) + // Standard Error: 74_213 + .saturating_add(Weight::from_parts(12_809_217, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into()))) - .saturating_add(Weight::from_parts(0, 1270).saturating_mul(u.into())) + .saturating_add(Weight::from_parts(0, 643).saturating_mul(u.into())) } - // Storage: Dex TradingPairStatuses (r:3 w:0) - // Proof: Dex TradingPairStatuses (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - // Storage: Dex LiquidityPool (r:3 w:3) - // Proof: Dex LiquidityPool (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:2 w:2) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) + // Storage: `Dex::TradingPairStatuses` (r:3 w:0) + // Proof: `Dex::TradingPairStatuses` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + // Storage: `Dex::LiquidityPool` (r:3 w:3) + // Proof: `Dex::LiquidityPool` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:2 w:2) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) /// The range of component `u` is `[2, 4]`. fn swap_with_exact_target(u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2602 + u * (108 ±0)` - // Estimated: `17078 + u * (1270 ±18)` - // Minimum execution time: 90_307 nanoseconds. - Weight::from_parts(69_243_875, 17078) - // Standard Error: 79_659 - .saturating_add(Weight::from_parts(12_265_695, 0).saturating_mul(u.into())) + // Measured: `2838 + u * (108 ±0)` + // Estimated: `6234 + u * (643 ±19)` + // Minimum execution time: 89_650 nanoseconds. + Weight::from_parts(67_390_443, 6234) + // Standard Error: 81_401 + .saturating_add(Weight::from_parts(12_625_344, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into()))) - .saturating_add(Weight::from_parts(0, 1270).saturating_mul(u.into())) + .saturating_add(Weight::from_parts(0, 643).saturating_mul(u.into())) } - // Storage: Dex TradingPairStatuses (r:1 w:0) - // Proof: Dex TradingPairStatuses (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - // Storage: Dex InitialShareExchangeRates (r:1 w:0) - // Proof: Dex InitialShareExchangeRates (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen) - // Storage: Dex ProvisioningPool (r:1 w:1) - // Proof: Dex ProvisioningPool (max_values: None, max_size: Some(166), added: 2641, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:2 w:2) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: EvmAccounts EvmAddresses (r:1 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) + // Storage: `Dex::TradingPairStatuses` (r:1 w:0) + // Proof: `Dex::TradingPairStatuses` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + // Storage: `Dex::InitialShareExchangeRates` (r:1 w:0) + // Proof: `Dex::InitialShareExchangeRates` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) + // Storage: `Dex::ProvisioningPool` (r:1 w:1) + // Proof: `Dex::ProvisioningPool` (`max_values`: None, `max_size`: Some(166), added: 2641, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:2 w:2) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `EvmAccounts::EvmAddresses` (r:1 w:0) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) fn refund_provision() -> Weight { // Proof Size summary in bytes: - // Measured: `3039` - // Estimated: `24234` - // Minimum execution time: 101_945 nanoseconds. - Weight::from_parts(103_554_000, 24234) + // Measured: `3170` + // Estimated: `6234` + // Minimum execution time: 98_955 nanoseconds. + Weight::from_parts(101_480_000, 6234) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(4)) } - // Storage: Dex TradingPairStatuses (r:1 w:1) - // Proof: Dex TradingPairStatuses (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) + // Storage: `Dex::TradingPairStatuses` (r:1 w:1) + // Proof: `Dex::TradingPairStatuses` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) fn abort_provisioning() -> Weight { // Proof Size summary in bytes: - // Measured: `1318` + // Measured: `1338` // Estimated: `3660` - // Minimum execution time: 29_131 nanoseconds. - Weight::from_parts(30_190_000, 3660) + // Minimum execution time: 22_673 nanoseconds. + Weight::from_parts(23_292_000, 3660) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/mandala/src/weights/module_dex_oracle.rs b/runtime/mandala/src/weights/module_dex_oracle.rs index beef20834b..a560f55d2a 100644 --- a/runtime/mandala/src/weights/module_dex_oracle.rs +++ b/runtime/mandala/src/weights/module_dex_oracle.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for module_dex_oracle //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,87 +47,91 @@ use sp_std::marker::PhantomData; /// Weight functions for module_dex_oracle. pub struct WeightInfo(PhantomData); impl module_dex_oracle::WeightInfo for WeightInfo { - // Storage: Aura CurrentSlot (r:1 w:1) - // Proof: Aura CurrentSlot (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - // Storage: Aura Authorities (r:1 w:0) - // Proof: Aura Authorities (max_values: Some(1), max_size: Some(1025), added: 1520, mode: MaxEncodedLen) - // Storage: DexOracle AveragePrices (r:4 w:3) - // Proof Skipped: DexOracle AveragePrices (max_values: None, max_size: None, mode: Measured) - // Storage: Dex LiquidityPool (r:3 w:0) - // Proof: Dex LiquidityPool (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen) - // Storage: DexOracle Cumulatives (r:3 w:3) - // Proof Skipped: DexOracle Cumulatives (max_values: None, max_size: None, mode: Measured) - // Storage: System ParentHash (r:0 w:1) - // Proof: System ParentHash (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) - // Storage: System Digest (r:0 w:1) - // Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured) - // Storage: System BlockHash (r:0 w:1) - // Proof: System BlockHash (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) - // Storage: unknown `0x3a65787472696e7369635f696e646578` (r:0 w:1) - // Proof Skipped: unknown `0x3a65787472696e7369635f696e646578` (r:0 w:1) - // Storage: Timestamp Now (r:0 w:1) - // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - // Storage: Timestamp DidUpdate (r:0 w:1) - // Proof: Timestamp DidUpdate (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) + // Storage: `Aura::CurrentSlot` (r:1 w:1) + // Proof: `Aura::CurrentSlot` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + // Storage: `Aura::Authorities` (r:1 w:0) + // Proof: `Aura::Authorities` (`max_values`: Some(1), `max_size`: Some(1025), added: 1520, mode: `MaxEncodedLen`) + // Storage: `DexOracle::AveragePrices` (r:4 w:3) + // Proof: `DexOracle::AveragePrices` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Dex::LiquidityPool` (r:3 w:0) + // Proof: `Dex::LiquidityPool` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) + // Storage: `DexOracle::Cumulatives` (r:3 w:3) + // Proof: `DexOracle::Cumulatives` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `System::InherentsApplied` (r:0 w:1) + // Proof: `System::InherentsApplied` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + // Storage: `System::ParentHash` (r:0 w:1) + // Proof: `System::ParentHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`) + // Storage: `System::Digest` (r:0 w:1) + // Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `System::BlockHash` (r:0 w:1) + // Proof: `System::BlockHash` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + // Storage: UNKNOWN KEY `0x3a65787472696e7369635f696e646578` (r:0 w:1) + // Proof: UNKNOWN KEY `0x3a65787472696e7369635f696e646578` (r:0 w:1) + // Storage: UNKNOWN KEY `0x3a696e747261626c6f636b5f656e74726f7079` (r:0 w:1) + // Proof: UNKNOWN KEY `0x3a696e747261626c6f636b5f656e74726f7079` (r:0 w:1) + // Storage: `Timestamp::Now` (r:0 w:1) + // Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + // Storage: `Timestamp::DidUpdate` (r:0 w:1) + // Proof: `Timestamp::DidUpdate` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) /// The range of component `n` is `[0, 3]`. /// The range of component `u` is `[0, 3]`. fn on_initialize_with_update_average_prices(n: u32, u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `169 + n * (377 ±0) + u * (249 ±0)` - // Estimated: `16751 + n * (4487 ±2) + u * (1301 ±2)` - // Minimum execution time: 16_871 nanoseconds. - Weight::from_parts(17_559_000, 16751) - // Standard Error: 158_229 - .saturating_add(Weight::from_parts(11_169_488, 0).saturating_mul(n.into())) - // Standard Error: 158_229 - .saturating_add(Weight::from_parts(5_039_322, 0).saturating_mul(u.into())) + // Measured: `203 + n * (377 ±0) + u * (249 ±0)` + // Estimated: `4886 + n * (2864 ±33) + u * (346 ±33)` + // Minimum execution time: 13_884 nanoseconds. + Weight::from_parts(14_463_000, 4886) + // Standard Error: 147_155 + .saturating_add(Weight::from_parts(10_440_038, 0).saturating_mul(n.into())) + // Standard Error: 147_155 + .saturating_add(Weight::from_parts(4_618_173, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into()))) - .saturating_add(T::DbWeight::get().writes(1)) + .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(u.into()))) - .saturating_add(Weight::from_parts(0, 4487).saturating_mul(n.into())) - .saturating_add(Weight::from_parts(0, 1301).saturating_mul(u.into())) + .saturating_add(Weight::from_parts(0, 2864).saturating_mul(n.into())) + .saturating_add(Weight::from_parts(0, 346).saturating_mul(u.into())) } - // Storage: DexOracle AveragePrices (r:1 w:1) - // Proof Skipped: DexOracle AveragePrices (max_values: None, max_size: None, mode: Measured) - // Storage: Dex LiquidityPool (r:1 w:0) - // Proof: Dex LiquidityPool (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen) - // Storage: Timestamp Now (r:1 w:0) - // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - // Storage: DexOracle Cumulatives (r:0 w:1) - // Proof Skipped: DexOracle Cumulatives (max_values: None, max_size: None, mode: Measured) + // Storage: `DexOracle::AveragePrices` (r:1 w:1) + // Proof: `DexOracle::AveragePrices` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Dex::LiquidityPool` (r:1 w:0) + // Proof: `Dex::LiquidityPool` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) + // Storage: `Timestamp::Now` (r:1 w:0) + // Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + // Storage: `DexOracle::Cumulatives` (r:0 w:1) + // Proof: `DexOracle::Cumulatives` (`max_values`: None, `max_size`: None, mode: `Measured`) fn enable_average_price() -> Weight { // Proof Size summary in bytes: - // Measured: `957` - // Estimated: `10463` - // Minimum execution time: 22_207 nanoseconds. - Weight::from_parts(22_969_000, 10463) + // Measured: `990` + // Estimated: `4455` + // Minimum execution time: 19_313 nanoseconds. + Weight::from_parts(19_636_000, 4455) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } - // Storage: DexOracle AveragePrices (r:1 w:1) - // Proof Skipped: DexOracle AveragePrices (max_values: None, max_size: None, mode: Measured) - // Storage: DexOracle Cumulatives (r:0 w:1) - // Proof Skipped: DexOracle Cumulatives (max_values: None, max_size: None, mode: Measured) + // Storage: `DexOracle::AveragePrices` (r:1 w:1) + // Proof: `DexOracle::AveragePrices` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `DexOracle::Cumulatives` (r:0 w:1) + // Proof: `DexOracle::Cumulatives` (`max_values`: None, `max_size`: None, mode: `Measured`) fn disable_average_price() -> Weight { // Proof Size summary in bytes: - // Measured: `927` - // Estimated: `5319` - // Minimum execution time: 14_353 nanoseconds. - Weight::from_parts(15_198_000, 5319) + // Measured: `960` + // Estimated: `4425` + // Minimum execution time: 12_499 nanoseconds. + Weight::from_parts(12_818_000, 4425) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } - // Storage: DexOracle AveragePrices (r:1 w:1) - // Proof Skipped: DexOracle AveragePrices (max_values: None, max_size: None, mode: Measured) + // Storage: `DexOracle::AveragePrices` (r:1 w:1) + // Proof: `DexOracle::AveragePrices` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_average_price_interval() -> Weight { // Proof Size summary in bytes: - // Measured: `927` - // Estimated: `4392` - // Minimum execution time: 14_271 nanoseconds. - Weight::from_parts(14_765_000, 4392) + // Measured: `960` + // Estimated: `4425` + // Minimum execution time: 11_603 nanoseconds. + Weight::from_parts(12_058_000, 4425) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/mandala/src/weights/module_earning.rs b/runtime/mandala/src/weights/module_earning.rs index 89b3ec98ae..aba5cccc98 100644 --- a/runtime/mandala/src/weights/module_earning.rs +++ b/runtime/mandala/src/weights/module_earning.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for module_earning //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,85 +47,97 @@ use sp_std::marker::PhantomData; /// Weight functions for module_earning. pub struct WeightInfo(PhantomData); impl module_earning::WeightInfo for WeightInfo { - // Storage: Earning Ledger (r:1 w:1) - // Proof Skipped: Earning Ledger (max_values: None, max_size: None, mode: Measured) - // Storage: Balances Locks (r:1 w:1) - // Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) - // Storage: Rewards PoolInfos (r:1 w:1) - // Proof Skipped: Rewards PoolInfos (max_values: None, max_size: None, mode: Measured) - // Storage: Rewards SharesAndWithdrawnRewards (r:1 w:1) - // Proof Skipped: Rewards SharesAndWithdrawnRewards (max_values: None, max_size: None, mode: Measured) + // Storage: `Earning::Ledger` (r:1 w:1) + // Proof: `Earning::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Balances::Locks` (r:1 w:1) + // Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`) + // Storage: `Balances::Freezes` (r:1 w:0) + // Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + // Storage: `Rewards::PoolInfos` (r:1 w:1) + // Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1) + // Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`) fn bond() -> Weight { // Proof Size summary in bytes: - // Measured: `2224` - // Estimated: `21831` - // Minimum execution time: 47_057 nanoseconds. - Weight::from_parts(48_811_000, 21831) - .saturating_add(T::DbWeight::get().reads(4)) + // Measured: `2293` + // Estimated: `5758` + // Minimum execution time: 45_177 nanoseconds. + Weight::from_parts(46_166_000, 5758) + .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) } - // Storage: Earning Ledger (r:1 w:1) - // Proof Skipped: Earning Ledger (max_values: None, max_size: None, mode: Measured) - // Storage: Balances Locks (r:1 w:1) - // Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) - // Storage: Rewards SharesAndWithdrawnRewards (r:1 w:1) - // Proof Skipped: Rewards SharesAndWithdrawnRewards (max_values: None, max_size: None, mode: Measured) - // Storage: Rewards PoolInfos (r:1 w:1) - // Proof Skipped: Rewards PoolInfos (max_values: None, max_size: None, mode: Measured) + // Storage: `Parameters::Parameters` (r:1 w:0) + // Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(24), added: 2499, mode: `MaxEncodedLen`) + // Storage: `Earning::Ledger` (r:1 w:1) + // Proof: `Earning::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Balances::Locks` (r:1 w:1) + // Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`) + // Storage: `Balances::Freezes` (r:1 w:0) + // Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + // Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1) + // Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Rewards::PoolInfos` (r:1 w:1) + // Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`) fn unbond_instant() -> Weight { // Proof Size summary in bytes: - // Measured: `2867` - // Estimated: `23760` - // Minimum execution time: 77_710 nanoseconds. - Weight::from_parts(80_357_000, 23760) - .saturating_add(T::DbWeight::get().reads(4)) + // Measured: `2989` + // Estimated: `6454` + // Minimum execution time: 76_877 nanoseconds. + Weight::from_parts(78_176_000, 6454) + .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(4)) } - // Storage: Earning Ledger (r:1 w:1) - // Proof Skipped: Earning Ledger (max_values: None, max_size: None, mode: Measured) - // Storage: Balances Locks (r:1 w:1) - // Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) - // Storage: Rewards SharesAndWithdrawnRewards (r:1 w:1) - // Proof Skipped: Rewards SharesAndWithdrawnRewards (max_values: None, max_size: None, mode: Measured) - // Storage: Rewards PoolInfos (r:1 w:1) - // Proof Skipped: Rewards PoolInfos (max_values: None, max_size: None, mode: Measured) + // Storage: `Earning::Ledger` (r:1 w:1) + // Proof: `Earning::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Balances::Locks` (r:1 w:1) + // Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`) + // Storage: `Balances::Freezes` (r:1 w:0) + // Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + // Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1) + // Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Rewards::PoolInfos` (r:1 w:1) + // Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`) fn unbond() -> Weight { // Proof Size summary in bytes: - // Measured: `2561` - // Estimated: `22842` - // Minimum execution time: 55_267 nanoseconds. - Weight::from_parts(57_083_000, 22842) - .saturating_add(T::DbWeight::get().reads(4)) + // Measured: `2630` + // Estimated: `6095` + // Minimum execution time: 50_770 nanoseconds. + Weight::from_parts(51_535_000, 6095) + .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) } - // Storage: Earning Ledger (r:1 w:1) - // Proof Skipped: Earning Ledger (max_values: None, max_size: None, mode: Measured) - // Storage: Balances Locks (r:1 w:1) - // Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) - // Storage: Rewards PoolInfos (r:1 w:1) - // Proof Skipped: Rewards PoolInfos (max_values: None, max_size: None, mode: Measured) - // Storage: Rewards SharesAndWithdrawnRewards (r:1 w:1) - // Proof Skipped: Rewards SharesAndWithdrawnRewards (max_values: None, max_size: None, mode: Measured) + // Storage: `Earning::Ledger` (r:1 w:1) + // Proof: `Earning::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Balances::Locks` (r:1 w:1) + // Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`) + // Storage: `Balances::Freezes` (r:1 w:0) + // Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + // Storage: `Rewards::PoolInfos` (r:1 w:1) + // Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1) + // Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`) fn rebond() -> Weight { // Proof Size summary in bytes: - // Measured: `2813` - // Estimated: `23598` - // Minimum execution time: 54_681 nanoseconds. - Weight::from_parts(55_812_000, 23598) - .saturating_add(T::DbWeight::get().reads(4)) + // Measured: `2882` + // Estimated: `6347` + // Minimum execution time: 50_247 nanoseconds. + Weight::from_parts(51_269_000, 6347) + .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) } - // Storage: Earning Ledger (r:1 w:1) - // Proof Skipped: Earning Ledger (max_values: None, max_size: None, mode: Measured) - // Storage: Balances Locks (r:1 w:1) - // Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + // Storage: `Earning::Ledger` (r:1 w:1) + // Proof: `Earning::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Balances::Locks` (r:1 w:1) + // Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`) + // Storage: `Balances::Freezes` (r:1 w:0) + // Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) fn withdraw_unbonded() -> Weight { // Proof Size summary in bytes: - // Measured: `2463` - // Estimated: `10692` - // Minimum execution time: 45_442 nanoseconds. - Weight::from_parts(46_821_000, 10692) - .saturating_add(T::DbWeight::get().reads(2)) + // Measured: `2532` + // Estimated: `5997` + // Minimum execution time: 43_089 nanoseconds. + Weight::from_parts(44_412_000, 5997) + .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(2)) } } diff --git a/runtime/mandala/src/weights/module_emergency_shutdown.rs b/runtime/mandala/src/weights/module_emergency_shutdown.rs index 46f616cd81..e8e5fa5c70 100644 --- a/runtime/mandala/src/weights/module_emergency_shutdown.rs +++ b/runtime/mandala/src/weights/module_emergency_shutdown.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for module_emergency_shutdown //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,71 +47,71 @@ use sp_std::marker::PhantomData; /// Weight functions for module_emergency_shutdown. pub struct WeightInfo(PhantomData); impl module_emergency_shutdown::WeightInfo for WeightInfo { - // Storage: EmergencyShutdown IsShutdown (r:1 w:1) - // Proof: EmergencyShutdown IsShutdown (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) - // Storage: CdpEngine CollateralParams (r:4 w:0) - // Proof: CdpEngine CollateralParams (max_values: None, max_size: Some(135), added: 2610, mode: MaxEncodedLen) - // Storage: AcalaOracle Values (r:2 w:0) - // Proof: AcalaOracle Values (max_values: None, max_size: Some(75), added: 2550, mode: MaxEncodedLen) - // Storage: AssetRegistry AssetMetadatas (r:2 w:0) - // Proof Skipped: AssetRegistry AssetMetadatas (max_values: None, max_size: None, mode: Measured) - /// The range of component `c` is `[0, 5]`. + // Storage: `EmergencyShutdown::IsShutdown` (r:1 w:1) + // Proof: `EmergencyShutdown::IsShutdown` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + // Storage: `CdpEngine::CollateralParams` (r:3 w:0) + // Proof: `CdpEngine::CollateralParams` (`max_values`: None, `max_size`: Some(135), added: 2610, mode: `MaxEncodedLen`) + // Storage: `AcalaOracle::Values` (r:1 w:0) + // Proof: `AcalaOracle::Values` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`) + // Storage: `AssetRegistry::AssetMetadatas` (r:1 w:0) + // Proof: `AssetRegistry::AssetMetadatas` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `c` is `[0, 4]`. fn emergency_shutdown(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1838 + c * (38 ±0)` - // Estimated: `26767 + c * (43 ±0)` - // Minimum execution time: 39_993 nanoseconds. - Weight::from_parts(41_432_076, 26767) - // Standard Error: 23_153 - .saturating_add(Weight::from_parts(1_650_027, 0).saturating_mul(c.into())) - .saturating_add(T::DbWeight::get().reads(9)) + // Measured: `1774 + c * (43 ±0)` + // Estimated: `8820 + c * (45 ±0)` + // Minimum execution time: 29_266 nanoseconds. + Weight::from_parts(30_556_963, 8820) + // Standard Error: 19_117 + .saturating_add(Weight::from_parts(1_269_194, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(1)) - .saturating_add(Weight::from_parts(0, 43).saturating_mul(c.into())) + .saturating_add(Weight::from_parts(0, 45).saturating_mul(c.into())) } - // Storage: EmergencyShutdown IsShutdown (r:1 w:0) - // Proof: EmergencyShutdown IsShutdown (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) - // Storage: CdpEngine CollateralParams (r:4 w:0) - // Proof: CdpEngine CollateralParams (max_values: None, max_size: Some(135), added: 2610, mode: MaxEncodedLen) - // Storage: AuctionManager TotalCollateralInAuction (r:3 w:0) - // Proof: AuctionManager TotalCollateralInAuction (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Loans TotalPositions (r:3 w:0) - // Proof: Loans TotalPositions (max_values: None, max_size: Some(83), added: 2558, mode: MaxEncodedLen) - // Storage: EmergencyShutdown CanRefund (r:0 w:1) - // Proof: EmergencyShutdown CanRefund (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) + // Storage: `EmergencyShutdown::IsShutdown` (r:1 w:0) + // Proof: `EmergencyShutdown::IsShutdown` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + // Storage: `CdpEngine::CollateralParams` (r:3 w:0) + // Proof: `CdpEngine::CollateralParams` (`max_values`: None, `max_size`: Some(135), added: 2610, mode: `MaxEncodedLen`) + // Storage: `AuctionManager::TotalCollateralInAuction` (r:2 w:0) + // Proof: `AuctionManager::TotalCollateralInAuction` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Loans::TotalPositions` (r:2 w:0) + // Proof: `Loans::TotalPositions` (`max_values`: None, `max_size`: Some(83), added: 2558, mode: `MaxEncodedLen`) + // Storage: `EmergencyShutdown::CanRefund` (r:0 w:1) + // Proof: `EmergencyShutdown::CanRefund` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) fn open_collateral_refund() -> Weight { // Proof Size summary in bytes: - // Measured: `1481` - // Estimated: `30196` - // Minimum execution time: 38_230 nanoseconds. - Weight::from_parts(38_620_000, 30196) - .saturating_add(T::DbWeight::get().reads(11)) + // Measured: `1469` + // Estimated: `8820` + // Minimum execution time: 27_949 nanoseconds. + Weight::from_parts(28_884_000, 8820) + .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: EmergencyShutdown CanRefund (r:1 w:0) - // Proof: EmergencyShutdown CanRefund (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) - // Storage: Tokens TotalIssuance (r:1 w:1) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: CdpEngine CollateralParams (r:4 w:0) - // Proof: CdpEngine CollateralParams (max_values: None, max_size: Some(135), added: 2610, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:7 w:7) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: EvmAccounts EvmAddresses (r:1 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:0) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - /// The range of component `c` is `[0, 5]`. + // Storage: `EmergencyShutdown::CanRefund` (r:1 w:0) + // Proof: `EmergencyShutdown::CanRefund` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + // Storage: `Tokens::TotalIssuance` (r:1 w:1) + // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `CdpEngine::CollateralParams` (r:3 w:0) + // Proof: `CdpEngine::CollateralParams` (`max_values`: None, `max_size`: Some(135), added: 2610, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:5 w:5) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `EvmAccounts::EvmAddresses` (r:1 w:0) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:0) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// The range of component `c` is `[0, 4]`. fn refund_collaterals(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2927 + c * (104 ±0)` - // Estimated: `34063 + c * (2043 ±23)` - // Minimum execution time: 72_642 nanoseconds. - Weight::from_parts(65_164_285, 34063) - // Standard Error: 265_900 - .saturating_add(Weight::from_parts(24_602_796, 0).saturating_mul(c.into())) - .saturating_add(T::DbWeight::get().reads(11)) + // Measured: `2948 + c * (115 ±0)` + // Estimated: `8820 + c * (1770 ±28)` + // Minimum execution time: 57_485 nanoseconds. + Weight::from_parts(54_704_508, 8820) + // Standard Error: 220_304 + .saturating_add(Weight::from_parts(15_187_774, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(9)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(1)) - .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(c.into()))) - .saturating_add(Weight::from_parts(0, 2043).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) + .saturating_add(Weight::from_parts(0, 1770).saturating_mul(c.into())) } } diff --git a/runtime/mandala/src/weights/module_evm.rs b/runtime/mandala/src/weights/module_evm.rs index 50712f9efa..a9e369a224 100644 --- a/runtime/mandala/src/weights/module_evm.rs +++ b/runtime/mandala/src/weights/module_evm.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for module_evm //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,242 +47,252 @@ use sp_std::marker::PhantomData; /// Weight functions for module_evm. pub struct WeightInfo(PhantomData); impl module_evm::WeightInfo for WeightInfo { - // Storage: EvmAccounts EvmAddresses (r:1 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: EvmAccounts Accounts (r:2 w:0) - // Proof: EvmAccounts Accounts (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Balances Reserves (r:2 w:2) - // Proof: Balances Reserves (max_values: None, max_size: Some(168), added: 2643, mode: MaxEncodedLen) - // Storage: EVM Accounts (r:2 w:2) - // Proof Skipped: EVM Accounts (max_values: None, max_size: None, mode: Measured) - // Storage: EVM CodeInfos (r:2 w:1) - // Proof Skipped: EVM CodeInfos (max_values: None, max_size: None, mode: Measured) - // Storage: EVM ContractStorageSizes (r:1 w:1) - // Proof Skipped: EVM ContractStorageSizes (max_values: None, max_size: None, mode: Measured) - // Storage: EVM Codes (r:0 w:1) - // Proof Skipped: EVM Codes (max_values: None, max_size: None, mode: Measured) + // Storage: `EvmAccounts::EvmAddresses` (r:1 w:0) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `EVM::Accounts` (r:2 w:2) + // Proof: `EVM::Accounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `EvmAccounts::Accounts` (r:2 w:0) + // Proof: `EvmAccounts::Accounts` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:2 w:2) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Balances::Reserves` (r:2 w:2) + // Proof: `Balances::Reserves` (`max_values`: None, `max_size`: Some(168), added: 2643, mode: `MaxEncodedLen`) + // Storage: `EVM::CodeInfos` (r:2 w:1) + // Proof: `EVM::CodeInfos` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `EVM::AccountStorages` (r:1 w:0) + // Proof: `EVM::AccountStorages` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `EVM::ContractStorageSizes` (r:1 w:1) + // Proof: `EVM::ContractStorageSizes` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `EVM::Codes` (r:0 w:1) + // Proof: `EVM::Codes` (`max_values`: None, `max_size`: None, mode: `Measured`) fn create() -> Weight { // Proof Size summary in bytes: - // Measured: `3483` - // Estimated: `51334` - // Minimum execution time: 161_293 nanoseconds. - Weight::from_parts(164_420_000, 51334) - .saturating_add(T::DbWeight::get().reads(12)) + // Measured: `3591` + // Estimated: `9531` + // Minimum execution time: 138_774 nanoseconds. + Weight::from_parts(141_601_000, 9531) + .saturating_add(T::DbWeight::get().reads(13)) .saturating_add(T::DbWeight::get().writes(9)) } - // Storage: EvmAccounts EvmAddresses (r:1 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: EvmAccounts Accounts (r:2 w:0) - // Proof: EvmAccounts Accounts (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Balances Reserves (r:2 w:2) - // Proof: Balances Reserves (max_values: None, max_size: Some(168), added: 2643, mode: MaxEncodedLen) - // Storage: EVM Accounts (r:2 w:2) - // Proof Skipped: EVM Accounts (max_values: None, max_size: None, mode: Measured) - // Storage: EVM CodeInfos (r:2 w:1) - // Proof Skipped: EVM CodeInfos (max_values: None, max_size: None, mode: Measured) - // Storage: EVM ContractStorageSizes (r:1 w:1) - // Proof Skipped: EVM ContractStorageSizes (max_values: None, max_size: None, mode: Measured) - // Storage: EVM Codes (r:0 w:1) - // Proof Skipped: EVM Codes (max_values: None, max_size: None, mode: Measured) + // Storage: `EvmAccounts::EvmAddresses` (r:1 w:0) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `EVM::Accounts` (r:2 w:2) + // Proof: `EVM::Accounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `EvmAccounts::Accounts` (r:2 w:0) + // Proof: `EvmAccounts::Accounts` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:2 w:2) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Balances::Reserves` (r:2 w:2) + // Proof: `Balances::Reserves` (`max_values`: None, `max_size`: Some(168), added: 2643, mode: `MaxEncodedLen`) + // Storage: `EVM::CodeInfos` (r:2 w:1) + // Proof: `EVM::CodeInfos` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `EVM::AccountStorages` (r:1 w:0) + // Proof: `EVM::AccountStorages` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `EVM::ContractStorageSizes` (r:1 w:1) + // Proof: `EVM::ContractStorageSizes` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `EVM::Codes` (r:0 w:1) + // Proof: `EVM::Codes` (`max_values`: None, `max_size`: None, mode: `Measured`) fn create2() -> Weight { // Proof Size summary in bytes: - // Measured: `3483` - // Estimated: `51334` - // Minimum execution time: 155_979 nanoseconds. - Weight::from_parts(159_740_000, 51334) - .saturating_add(T::DbWeight::get().reads(12)) + // Measured: `3591` + // Estimated: `9531` + // Minimum execution time: 133_311 nanoseconds. + Weight::from_parts(137_004_000, 9531) + .saturating_add(T::DbWeight::get().reads(13)) .saturating_add(T::DbWeight::get().writes(9)) } - // Storage: EvmAccounts Accounts (r:2 w:0) - // Proof: EvmAccounts Accounts (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: EVM NetworkContractIndex (r:1 w:1) - // Proof Skipped: EVM NetworkContractIndex (max_values: Some(1), max_size: None, mode: Measured) - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Balances Reserves (r:2 w:2) - // Proof: Balances Reserves (max_values: None, max_size: Some(168), added: 2643, mode: MaxEncodedLen) - // Storage: EVM Accounts (r:2 w:2) - // Proof Skipped: EVM Accounts (max_values: None, max_size: None, mode: Measured) - // Storage: EVM CodeInfos (r:2 w:1) - // Proof Skipped: EVM CodeInfos (max_values: None, max_size: None, mode: Measured) - // Storage: EVM ContractStorageSizes (r:1 w:1) - // Proof Skipped: EVM ContractStorageSizes (max_values: None, max_size: None, mode: Measured) - // Storage: EVM Codes (r:0 w:1) - // Proof Skipped: EVM Codes (max_values: None, max_size: None, mode: Measured) + // Storage: `EvmAccounts::Accounts` (r:2 w:0) + // Proof: `EvmAccounts::Accounts` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `EVM::NetworkContractIndex` (r:1 w:1) + // Proof: `EVM::NetworkContractIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `System::Account` (r:2 w:2) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Balances::Reserves` (r:2 w:2) + // Proof: `Balances::Reserves` (`max_values`: None, `max_size`: Some(168), added: 2643, mode: `MaxEncodedLen`) + // Storage: `EVM::Accounts` (r:2 w:2) + // Proof: `EVM::Accounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `EVM::CodeInfos` (r:2 w:1) + // Proof: `EVM::CodeInfos` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `EVM::AccountStorages` (r:1 w:0) + // Proof: `EVM::AccountStorages` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `EVM::ContractStorageSizes` (r:1 w:1) + // Proof: `EVM::ContractStorageSizes` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `EVM::Codes` (r:0 w:1) + // Proof: `EVM::Codes` (`max_values`: None, `max_size`: None, mode: `Measured`) fn create_nft_contract() -> Weight { // Proof Size summary in bytes: - // Measured: `3649` - // Estimated: `53607` - // Minimum execution time: 176_057 nanoseconds. - Weight::from_parts(179_884_000, 53607) - .saturating_add(T::DbWeight::get().reads(12)) + // Measured: `3759` + // Estimated: `9699` + // Minimum execution time: 164_646 nanoseconds. + Weight::from_parts(167_335_000, 9699) + .saturating_add(T::DbWeight::get().reads(13)) .saturating_add(T::DbWeight::get().writes(10)) } - // Storage: EVM Accounts (r:2 w:2) - // Proof Skipped: EVM Accounts (max_values: None, max_size: None, mode: Measured) - // Storage: EvmAccounts Accounts (r:2 w:0) - // Proof: EvmAccounts Accounts (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Balances Reserves (r:2 w:2) - // Proof: Balances Reserves (max_values: None, max_size: Some(168), added: 2643, mode: MaxEncodedLen) - // Storage: EVM CodeInfos (r:2 w:1) - // Proof Skipped: EVM CodeInfos (max_values: None, max_size: None, mode: Measured) - // Storage: EVM ContractStorageSizes (r:1 w:1) - // Proof Skipped: EVM ContractStorageSizes (max_values: None, max_size: None, mode: Measured) - // Storage: EVM Codes (r:0 w:1) - // Proof Skipped: EVM Codes (max_values: None, max_size: None, mode: Measured) + // Storage: `EVM::Accounts` (r:2 w:2) + // Proof: `EVM::Accounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `EvmAccounts::Accounts` (r:2 w:0) + // Proof: `EvmAccounts::Accounts` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:2 w:2) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Balances::Reserves` (r:2 w:2) + // Proof: `Balances::Reserves` (`max_values`: None, `max_size`: Some(168), added: 2643, mode: `MaxEncodedLen`) + // Storage: `EVM::CodeInfos` (r:2 w:1) + // Proof: `EVM::CodeInfos` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `EVM::AccountStorages` (r:1 w:0) + // Proof: `EVM::AccountStorages` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `EVM::ContractStorageSizes` (r:1 w:1) + // Proof: `EVM::ContractStorageSizes` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `EVM::Codes` (r:0 w:1) + // Proof: `EVM::Codes` (`max_values`: None, `max_size`: None, mode: `Measured`) fn create_predeploy_contract() -> Weight { // Proof Size summary in bytes: - // Measured: `3820` - // Estimated: `49157` - // Minimum execution time: 179_259 nanoseconds. - Weight::from_parts(184_986_000, 49157) - .saturating_add(T::DbWeight::get().reads(11)) + // Measured: `3930` + // Estimated: `9870` + // Minimum execution time: 163_932 nanoseconds. + Weight::from_parts(166_386_000, 9870) + .saturating_add(T::DbWeight::get().reads(12)) .saturating_add(T::DbWeight::get().writes(9)) } - // Storage: EvmAccounts EvmAddresses (r:1 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: EVM Accounts (r:2 w:1) - // Proof Skipped: EVM Accounts (max_values: None, max_size: None, mode: Measured) - // Storage: EvmAccounts Accounts (r:2 w:0) - // Proof: EvmAccounts Accounts (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Balances Reserves (r:2 w:2) - // Proof: Balances Reserves (max_values: None, max_size: Some(168), added: 2643, mode: MaxEncodedLen) - // Storage: EVM Codes (r:1 w:0) - // Proof Skipped: EVM Codes (max_values: None, max_size: None, mode: Measured) - // Storage: EVM ContractStorageSizes (r:1 w:1) - // Proof Skipped: EVM ContractStorageSizes (max_values: None, max_size: None, mode: Measured) + // Storage: `EvmAccounts::EvmAddresses` (r:1 w:0) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `EVM::Accounts` (r:2 w:1) + // Proof: `EVM::Accounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `EvmAccounts::Accounts` (r:2 w:0) + // Proof: `EvmAccounts::Accounts` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:2 w:2) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Balances::Reserves` (r:2 w:2) + // Proof: `Balances::Reserves` (`max_values`: None, `max_size`: Some(168), added: 2643, mode: `MaxEncodedLen`) + // Storage: `System::Digest` (r:1 w:0) + // Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `EVM::Codes` (r:1 w:0) + // Proof: `EVM::Codes` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `EVM::ContractStorageSizes` (r:1 w:1) + // Proof: `EVM::ContractStorageSizes` (`max_values`: None, `max_size`: None, mode: `Measured`) fn call() -> Weight { // Proof Size summary in bytes: - // Measured: `4215` - // Estimated: `47572` - // Minimum execution time: 149_615 nanoseconds. - Weight::from_parts(151_782_000, 47572) - .saturating_add(T::DbWeight::get().reads(11)) + // Measured: `4284` + // Estimated: `10224` + // Minimum execution time: 131_121 nanoseconds. + Weight::from_parts(134_446_000, 10224) + .saturating_add(T::DbWeight::get().reads(12)) .saturating_add(T::DbWeight::get().writes(6)) } - // Storage: EVM Accounts (r:1 w:1) - // Proof Skipped: EVM Accounts (max_values: None, max_size: None, mode: Measured) - // Storage: EvmAccounts EvmAddresses (r:1 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) + // Storage: `EVM::Accounts` (r:1 w:1) + // Proof: `EVM::Accounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `EvmAccounts::EvmAddresses` (r:1 w:0) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) fn transfer_maintainer() -> Weight { // Proof Size summary in bytes: - // Measured: `2532` - // Estimated: `9522` - // Minimum execution time: 103_061 nanoseconds. - Weight::from_parts(104_687_000, 9522) + // Measured: `2446` + // Estimated: `5911` + // Minimum execution time: 88_573 nanoseconds. + Weight::from_parts(89_939_000, 5911) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: EvmAccounts EvmAddresses (r:1 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: EVM Accounts (r:1 w:1) - // Proof Skipped: EVM Accounts (max_values: None, max_size: None, mode: Measured) + // Storage: `EvmAccounts::EvmAddresses` (r:1 w:0) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `EVM::Accounts` (r:1 w:1) + // Proof: `EVM::Accounts` (`max_values`: None, `max_size`: None, mode: `Measured`) fn publish_contract() -> Weight { // Proof Size summary in bytes: - // Measured: `3666` - // Estimated: `10656` - // Minimum execution time: 125_760 nanoseconds. - Weight::from_parts(127_551_000, 10656) + // Measured: `3658` + // Estimated: `7123` + // Minimum execution time: 126_629 nanoseconds. + Weight::from_parts(128_567_000, 7123) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: EVM Accounts (r:1 w:1) - // Proof Skipped: EVM Accounts (max_values: None, max_size: None, mode: Measured) + // Storage: `EVM::Accounts` (r:1 w:1) + // Proof: `EVM::Accounts` (`max_values`: None, `max_size`: None, mode: `Measured`) fn publish_free() -> Weight { // Proof Size summary in bytes: - // Measured: `2423` - // Estimated: `5888` - // Minimum execution time: 31_908 nanoseconds. - Weight::from_parts(33_061_000, 5888) + // Measured: `2304` + // Estimated: `5769` + // Minimum execution time: 26_287 nanoseconds. + Weight::from_parts(27_068_000, 5769) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: Balances Reserves (r:1 w:1) - // Proof: Balances Reserves (max_values: None, max_size: Some(168), added: 2643, mode: MaxEncodedLen) + // Storage: `Balances::Reserves` (r:1 w:1) + // Proof: `Balances::Reserves` (`max_values`: None, `max_size`: Some(168), added: 2643, mode: `MaxEncodedLen`) fn enable_contract_development() -> Weight { // Proof Size summary in bytes: - // Measured: `2160` + // Measured: `2229` // Estimated: `3633` - // Minimum execution time: 106_580 nanoseconds. - Weight::from_parts(107_679_000, 3633) + // Minimum execution time: 93_818 nanoseconds. + Weight::from_parts(94_547_000, 3633) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: Balances Reserves (r:1 w:1) - // Proof: Balances Reserves (max_values: None, max_size: Some(168), added: 2643, mode: MaxEncodedLen) + // Storage: `Balances::Reserves` (r:1 w:1) + // Proof: `Balances::Reserves` (`max_values`: None, `max_size`: Some(168), added: 2643, mode: `MaxEncodedLen`) fn disable_contract_development() -> Weight { // Proof Size summary in bytes: - // Measured: `2232` + // Measured: `2301` // Estimated: `3633` - // Minimum execution time: 109_092 nanoseconds. - Weight::from_parts(109_806_000, 3633) + // Minimum execution time: 95_481 nanoseconds. + Weight::from_parts(96_533_000, 3633) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: EVM Accounts (r:1 w:1) - // Proof Skipped: EVM Accounts (max_values: None, max_size: None, mode: Measured) - // Storage: EvmAccounts EvmAddresses (r:1 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: EVM CodeInfos (r:2 w:2) - // Proof Skipped: EVM CodeInfos (max_values: None, max_size: None, mode: Measured) - // Storage: EvmAccounts Accounts (r:2 w:0) - // Proof: EvmAccounts Accounts (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: Balances Reserves (r:2 w:2) - // Proof: Balances Reserves (max_values: None, max_size: Some(168), added: 2643, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: EVM ContractStorageSizes (r:1 w:1) - // Proof Skipped: EVM ContractStorageSizes (max_values: None, max_size: None, mode: Measured) - // Storage: EVM Codes (r:0 w:2) - // Proof Skipped: EVM Codes (max_values: None, max_size: None, mode: Measured) + // Storage: `EVM::Accounts` (r:1 w:1) + // Proof: `EVM::Accounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `EvmAccounts::EvmAddresses` (r:1 w:0) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `EVM::CodeInfos` (r:2 w:2) + // Proof: `EVM::CodeInfos` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `EvmAccounts::Accounts` (r:2 w:0) + // Proof: `EvmAccounts::Accounts` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `Balances::Reserves` (r:2 w:2) + // Proof: `Balances::Reserves` (`max_values`: None, `max_size`: Some(168), added: 2643, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `EVM::ContractStorageSizes` (r:1 w:1) + // Proof: `EVM::ContractStorageSizes` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `EVM::Codes` (r:0 w:2) + // Proof: `EVM::Codes` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `c` is `[0, 61440]`. fn set_code(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `4216` - // Estimated: `49212` - // Minimum execution time: 183_869 nanoseconds. - Weight::from_parts(182_039_353, 49212) - // Standard Error: 13 - .saturating_add(Weight::from_parts(5_655, 0).saturating_mul(c.into())) + // Measured: `4202` + // Estimated: `10157` + // Minimum execution time: 155_320 nanoseconds. + Weight::from_parts(151_963_249, 10157) + // Standard Error: 12 + .saturating_add(Weight::from_parts(5_472, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(10)) .saturating_add(T::DbWeight::get().writes(9)) } - // Storage: EvmAccounts EvmAddresses (r:2 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: EVM Accounts (r:1 w:1) - // Proof Skipped: EVM Accounts (max_values: None, max_size: None, mode: Measured) - // Storage: EvmAccounts Accounts (r:2 w:0) - // Proof: EvmAccounts Accounts (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: EVM CodeInfos (r:1 w:1) - // Proof Skipped: EVM CodeInfos (max_values: None, max_size: None, mode: Measured) - // Storage: EVM ContractStorageSizes (r:1 w:1) - // Proof Skipped: EVM ContractStorageSizes (max_values: None, max_size: None, mode: Measured) - // Storage: IdleScheduler NextTaskId (r:1 w:1) - // Proof Skipped: IdleScheduler NextTaskId (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Balances Reserves (r:1 w:1) - // Proof: Balances Reserves (max_values: None, max_size: Some(168), added: 2643, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:1 w:0) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: IdleScheduler Tasks (r:0 w:1) - // Proof Skipped: IdleScheduler Tasks (max_values: None, max_size: None, mode: Measured) - // Storage: EVM Codes (r:0 w:1) - // Proof Skipped: EVM Codes (max_values: None, max_size: None, mode: Measured) + // Storage: `EvmAccounts::EvmAddresses` (r:2 w:0) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `EVM::Accounts` (r:1 w:1) + // Proof: `EVM::Accounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `EvmAccounts::Accounts` (r:2 w:0) + // Proof: `EvmAccounts::Accounts` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `EVM::CodeInfos` (r:1 w:1) + // Proof: `EVM::CodeInfos` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `EVM::ContractStorageSizes` (r:1 w:1) + // Proof: `EVM::ContractStorageSizes` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `IdleScheduler::NextTaskId` (r:1 w:1) + // Proof: `IdleScheduler::NextTaskId` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Balances::Reserves` (r:1 w:1) + // Proof: `Balances::Reserves` (`max_values`: None, `max_size`: Some(168), added: 2643, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:1 w:0) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `IdleScheduler::Tasks` (r:0 w:1) + // Proof: `IdleScheduler::Tasks` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `EVM::Codes` (r:0 w:1) + // Proof: `EVM::Codes` (`max_values`: None, `max_size`: None, mode: `Measured`) fn selfdestruct() -> Weight { // Proof Size summary in bytes: - // Measured: `4829` - // Estimated: `63812` - // Minimum execution time: 201_987 nanoseconds. - Weight::from_parts(205_772_000, 63812) + // Measured: `4776` + // Estimated: `8241` + // Minimum execution time: 177_970 nanoseconds. + Weight::from_parts(180_653_000, 8241) .saturating_add(T::DbWeight::get().reads(11)) .saturating_add(T::DbWeight::get().writes(8)) } diff --git a/runtime/mandala/src/weights/module_evm_accounts.rs b/runtime/mandala/src/weights/module_evm_accounts.rs index 9d8f10491f..57c6da69a5 100644 --- a/runtime/mandala/src/weights/module_evm_accounts.rs +++ b/runtime/mandala/src/weights/module_evm_accounts.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for module_evm_accounts //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,35 +47,35 @@ use sp_std::marker::PhantomData; /// Weight functions for module_evm_accounts. pub struct WeightInfo(PhantomData); impl module_evm_accounts::WeightInfo for WeightInfo { - // Storage: EvmAccounts EvmAddresses (r:1 w:1) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: EvmAccounts Accounts (r:1 w:1) - // Proof: EvmAccounts Accounts (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: EVM ChainId (r:1 w:0) - // Proof Skipped: EVM ChainId (max_values: Some(1), max_size: None, mode: Measured) - // Storage: System BlockHash (r:1 w:0) - // Proof: System BlockHash (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:0) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + // Storage: `EvmAccounts::EvmAddresses` (r:1 w:1) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `EvmAccounts::Accounts` (r:1 w:1) + // Proof: `EvmAccounts::Accounts` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `EVM::ChainId` (r:1 w:0) + // Proof: `EVM::ChainId` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `System::BlockHash` (r:1 w:0) + // Proof: `System::BlockHash` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:0) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn claim_account() -> Weight { // Proof Size summary in bytes: - // Measured: `2167` - // Estimated: `17804` - // Minimum execution time: 86_403 nanoseconds. - Weight::from_parts(88_236_000, 17804) + // Measured: `2236` + // Estimated: `3721` + // Minimum execution time: 77_589 nanoseconds. + Weight::from_parts(78_537_000, 3721) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } - // Storage: EvmAccounts EvmAddresses (r:1 w:1) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: EvmAccounts Accounts (r:0 w:1) - // Proof: EvmAccounts Accounts (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) + // Storage: `EvmAccounts::EvmAddresses` (r:1 w:1) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `EvmAccounts::Accounts` (r:0 w:1) + // Proof: `EvmAccounts::Accounts` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) fn claim_default_account() -> Weight { // Proof Size summary in bytes: - // Measured: `1074` + // Measured: `1143` // Estimated: `3525` - // Minimum execution time: 22_579 nanoseconds. - Weight::from_parts(22_904_000, 3525) + // Minimum execution time: 18_959 nanoseconds. + Weight::from_parts(19_311_000, 3525) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } diff --git a/runtime/mandala/src/weights/module_homa.rs b/runtime/mandala/src/weights/module_homa.rs index e3e3c25054..813bd2fd32 100644 --- a/runtime/mandala/src/weights/module_homa.rs +++ b/runtime/mandala/src/weights/module_homa.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for module_homa //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,226 +47,228 @@ use sp_std::marker::PhantomData; /// Weight functions for module_homa. pub struct WeightInfo(PhantomData); impl module_homa::WeightInfo for WeightInfo { - // Storage: ParachainSystem ValidationData (r:1 w:0) - // Proof Skipped: ParachainSystem ValidationData (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa LastEraBumpedBlock (r:1 w:0) - // Proof Skipped: Homa LastEraBumpedBlock (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa BumpEraFrequency (r:1 w:0) - // Proof Skipped: Homa BumpEraFrequency (max_values: Some(1), max_size: None, mode: Measured) + // Storage: `ParachainSystem::ValidationData` (r:1 w:0) + // Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `ParachainSystem::LastRelayChainBlockNumber` (r:1 w:0) + // Proof: `ParachainSystem::LastRelayChainBlockNumber` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::LastEraBumpedBlock` (r:1 w:0) + // Proof: `Homa::LastEraBumpedBlock` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::BumpEraFrequency` (r:1 w:0) + // Proof: `Homa::BumpEraFrequency` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn on_initialize() -> Weight { // Proof Size summary in bytes: - // Measured: `828` - // Estimated: `6939` - // Minimum execution time: 7_403 nanoseconds. - Weight::from_parts(7_711_000, 6939) - .saturating_add(T::DbWeight::get().reads(3)) + // Measured: `823` + // Estimated: `2308` + // Minimum execution time: 6_375 nanoseconds. + Weight::from_parts(6_618_000, 2308) + .saturating_add(T::DbWeight::get().reads(4)) } - // Storage: ParachainSystem ValidationData (r:1 w:0) - // Proof Skipped: ParachainSystem ValidationData (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa LastEraBumpedBlock (r:1 w:1) - // Proof Skipped: Homa LastEraBumpedBlock (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa BumpEraFrequency (r:1 w:0) - // Proof Skipped: Homa BumpEraFrequency (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa RelayChainCurrentEra (r:1 w:1) - // Proof Skipped: Homa RelayChainCurrentEra (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa EstimatedRewardRatePerEra (r:1 w:0) - // Proof Skipped: Homa EstimatedRewardRatePerEra (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa StakingLedgers (r:2 w:1) - // Proof Skipped: Homa StakingLedgers (max_values: None, max_size: None, mode: Measured) - // Storage: Homa TotalStakingBonded (r:1 w:1) - // Proof Skipped: Homa TotalStakingBonded (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa CommissionRate (r:1 w:0) - // Proof Skipped: Homa CommissionRate (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Tokens TotalIssuance (r:2 w:2) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:3 w:3) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: XcmInterface XcmDestWeightAndFee (r:4 w:0) - // Proof Skipped: XcmInterface XcmDestWeightAndFee (max_values: None, max_size: None, mode: Measured) - // Storage: ParachainInfo ParachainId (r:1 w:0) - // Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - // Storage: ParachainSystem HostConfiguration (r:1 w:0) - // Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured) - // Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) - // Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa UnclaimedRedemption (r:1 w:1) - // Proof Skipped: Homa UnclaimedRedemption (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa ToBondPool (r:1 w:1) - // Proof Skipped: Homa ToBondPool (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa SoftBondedCapPerSubAccount (r:1 w:0) - // Proof Skipped: Homa SoftBondedCapPerSubAccount (max_values: Some(1), max_size: None, mode: Measured) - // Storage: EVM XcmOrigin (r:1 w:1) - // Proof Skipped: EVM XcmOrigin (max_values: Some(1), max_size: None, mode: Measured) - // Storage: UnknownTokens ConcreteFungibleBalances (r:1 w:0) - // Proof Skipped: UnknownTokens ConcreteFungibleBalances (max_values: None, max_size: None, mode: Measured) - // Storage: Homa RedeemRequests (r:2 w:1) - // Proof Skipped: Homa RedeemRequests (max_values: None, max_size: None, mode: Measured) - // Storage: Homa Unbondings (r:1 w:1) - // Proof Skipped: Homa Unbondings (max_values: None, max_size: None, mode: Measured) - // Storage: Homa TotalVoidLiquid (r:0 w:1) - // Proof Skipped: Homa TotalVoidLiquid (max_values: Some(1), max_size: None, mode: Measured) + // Storage: `ParachainSystem::ValidationData` (r:1 w:0) + // Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::LastEraBumpedBlock` (r:1 w:1) + // Proof: `Homa::LastEraBumpedBlock` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::BumpEraFrequency` (r:1 w:0) + // Proof: `Homa::BumpEraFrequency` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::RelayChainCurrentEra` (r:1 w:1) + // Proof: `Homa::RelayChainCurrentEra` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::EstimatedRewardRatePerEra` (r:1 w:0) + // Proof: `Homa::EstimatedRewardRatePerEra` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::StakingLedgers` (r:2 w:1) + // Proof: `Homa::StakingLedgers` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Homa::TotalStakingBonded` (r:1 w:1) + // Proof: `Homa::TotalStakingBonded` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::CommissionRate` (r:1 w:0) + // Proof: `Homa::CommissionRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Tokens::TotalIssuance` (r:2 w:2) + // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:3 w:3) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:2 w:2) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `XcmInterface::XcmDestWeightAndFee` (r:4 w:0) + // Proof: `XcmInterface::XcmDestWeightAndFee` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `ParachainInfo::ParachainId` (r:1 w:0) + // Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + // Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + // Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + // Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::UnclaimedRedemption` (r:1 w:1) + // Proof: `Homa::UnclaimedRedemption` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::ToBondPool` (r:1 w:1) + // Proof: `Homa::ToBondPool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::SoftBondedCapPerSubAccount` (r:1 w:0) + // Proof: `Homa::SoftBondedCapPerSubAccount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `EVM::XcmOrigin` (r:1 w:1) + // Proof: `EVM::XcmOrigin` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `UnknownTokens::ConcreteFungibleBalances` (r:1 w:0) + // Proof: `UnknownTokens::ConcreteFungibleBalances` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Homa::RedeemRequests` (r:2 w:1) + // Proof: `Homa::RedeemRequests` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Homa::Unbondings` (r:1 w:1) + // Proof: `Homa::Unbondings` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Homa::TotalVoidLiquid` (r:0 w:1) + // Proof: `Homa::TotalVoidLiquid` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn on_initialize_with_bump_era() -> Weight { // Proof Size summary in bytes: - // Measured: `4026` - // Estimated: `148114` - // Minimum execution time: 287_138 nanoseconds. - Weight::from_parts(299_332_000, 148114) + // Measured: `4057` + // Estimated: `14947` + // Minimum execution time: 207_924 nanoseconds. + Weight::from_parts(215_712_000, 14947) .saturating_add(T::DbWeight::get().reads(31)) .saturating_add(T::DbWeight::get().writes(18)) } - // Storage: Homa TotalStakingBonded (r:1 w:0) - // Proof Skipped: Homa TotalStakingBonded (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa ToBondPool (r:1 w:1) - // Proof Skipped: Homa ToBondPool (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa SoftBondedCapPerSubAccount (r:1 w:0) - // Proof Skipped: Homa SoftBondedCapPerSubAccount (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Tokens Accounts (r:3 w:3) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Tokens TotalIssuance (r:1 w:1) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Homa TotalVoidLiquid (r:1 w:1) - // Proof Skipped: Homa TotalVoidLiquid (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa EstimatedRewardRatePerEra (r:1 w:0) - // Proof Skipped: Homa EstimatedRewardRatePerEra (max_values: Some(1), max_size: None, mode: Measured) + // Storage: `Homa::TotalStakingBonded` (r:1 w:0) + // Proof: `Homa::TotalStakingBonded` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::ToBondPool` (r:1 w:1) + // Proof: `Homa::ToBondPool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::SoftBondedCapPerSubAccount` (r:1 w:0) + // Proof: `Homa::SoftBondedCapPerSubAccount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Tokens::Accounts` (r:3 w:3) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Tokens::TotalIssuance` (r:1 w:1) + // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Homa::TotalVoidLiquid` (r:1 w:1) + // Proof: `Homa::TotalVoidLiquid` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::EstimatedRewardRatePerEra` (r:1 w:0) + // Proof: `Homa::EstimatedRewardRatePerEra` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn mint() -> Weight { // Proof Size summary in bytes: - // Measured: `2758` - // Estimated: `37196` - // Minimum execution time: 93_462 nanoseconds. - Weight::from_parts(96_653_000, 37196) + // Measured: `2789` + // Estimated: `8856` + // Minimum execution time: 66_320 nanoseconds. + Weight::from_parts(67_850_000, 8856) .saturating_add(T::DbWeight::get().reads(10)) .saturating_add(T::DbWeight::get().writes(7)) } - // Storage: Homa RedeemRequests (r:1 w:1) - // Proof Skipped: Homa RedeemRequests (max_values: None, max_size: None, mode: Measured) - // Storage: Tokens Accounts (r:2 w:2) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + // Storage: `Homa::RedeemRequests` (r:1 w:1) + // Proof: `Homa::RedeemRequests` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Tokens::Accounts` (r:2 w:2) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn request_redeem() -> Weight { // Proof Size summary in bytes: - // Measured: `2633` - // Estimated: `15925` - // Minimum execution time: 62_223 nanoseconds. - Weight::from_parts(64_321_000, 15925) + // Measured: `2664` + // Estimated: `6234` + // Minimum execution time: 46_485 nanoseconds. + Weight::from_parts(47_363_000, 6234) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) } - // Storage: Homa RedeemRequests (r:50 w:50) - // Proof Skipped: Homa RedeemRequests (max_values: None, max_size: None, mode: Measured) - // Storage: Homa ToBondPool (r:1 w:1) - // Proof Skipped: Homa ToBondPool (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa TotalStakingBonded (r:1 w:0) - // Proof Skipped: Homa TotalStakingBonded (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Tokens TotalIssuance (r:1 w:1) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Homa TotalVoidLiquid (r:1 w:0) - // Proof Skipped: Homa TotalVoidLiquid (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa FastMatchFeeRate (r:1 w:0) - // Proof Skipped: Homa FastMatchFeeRate (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Tokens Accounts (r:52 w:52) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: System Account (r:51 w:51) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + // Storage: `Homa::RedeemRequests` (r:50 w:50) + // Proof: `Homa::RedeemRequests` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Homa::ToBondPool` (r:1 w:1) + // Proof: `Homa::ToBondPool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::TotalStakingBonded` (r:1 w:0) + // Proof: `Homa::TotalStakingBonded` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Tokens::TotalIssuance` (r:1 w:1) + // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Homa::TotalVoidLiquid` (r:1 w:0) + // Proof: `Homa::TotalVoidLiquid` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::FastMatchFeeRate` (r:1 w:0) + // Proof: `Homa::FastMatchFeeRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Tokens::Accounts` (r:52 w:52) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:51 w:51) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// The range of component `n` is `[1, 50]`. fn fast_match_redeems(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `3451 + n * (328 ±0)` - // Estimated: `37134 + n * (9355 ±0)` - // Minimum execution time: 103_192 nanoseconds. - Weight::from_parts(38_524_886, 37134) - // Standard Error: 35_629 - .saturating_add(Weight::from_parts(59_346_095, 0).saturating_mul(n.into())) + // Measured: `3482 + n * (328 ±0)` + // Estimated: `6234 + n * (2806 ±0)` + // Minimum execution time: 78_954 nanoseconds. + Weight::from_parts(29_288_782, 6234) + // Standard Error: 38_786 + .saturating_add(Weight::from_parts(43_090_890, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(5)) .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(n.into()))) - .saturating_add(Weight::from_parts(0, 9355).saturating_mul(n.into())) + .saturating_add(Weight::from_parts(0, 2806).saturating_mul(n.into())) } - // Storage: Homa RelayChainCurrentEra (r:1 w:0) - // Proof Skipped: Homa RelayChainCurrentEra (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa Unbondings (r:2 w:1) - // Proof Skipped: Homa Unbondings (max_values: None, max_size: None, mode: Measured) - // Storage: Homa UnclaimedRedemption (r:1 w:1) - // Proof Skipped: Homa UnclaimedRedemption (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Tokens Accounts (r:2 w:2) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: EvmAccounts EvmAddresses (r:1 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) + // Storage: `Homa::RelayChainCurrentEra` (r:1 w:0) + // Proof: `Homa::RelayChainCurrentEra` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::Unbondings` (r:2 w:1) + // Proof: `Homa::Unbondings` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Homa::UnclaimedRedemption` (r:1 w:1) + // Proof: `Homa::UnclaimedRedemption` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Tokens::Accounts` (r:2 w:2) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:2 w:2) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `EvmAccounts::EvmAddresses` (r:1 w:0) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) fn claim_redemption() -> Weight { // Proof Size summary in bytes: - // Measured: `2785` - // Estimated: `33220` - // Minimum execution time: 84_487 nanoseconds. - Weight::from_parts(87_289_000, 33220) + // Measured: `3017` + // Estimated: `8957` + // Minimum execution time: 64_414 nanoseconds. + Weight::from_parts(66_033_000, 8957) .saturating_add(T::DbWeight::get().reads(9)) .saturating_add(T::DbWeight::get().writes(6)) } - // Storage: Homa EstimatedRewardRatePerEra (r:1 w:1) - // Proof Skipped: Homa EstimatedRewardRatePerEra (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa CommissionRate (r:1 w:1) - // Proof Skipped: Homa CommissionRate (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa FastMatchFeeRate (r:1 w:1) - // Proof Skipped: Homa FastMatchFeeRate (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa SoftBondedCapPerSubAccount (r:0 w:1) - // Proof Skipped: Homa SoftBondedCapPerSubAccount (max_values: Some(1), max_size: None, mode: Measured) + // Storage: `Homa::EstimatedRewardRatePerEra` (r:1 w:1) + // Proof: `Homa::EstimatedRewardRatePerEra` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::CommissionRate` (r:1 w:1) + // Proof: `Homa::CommissionRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::FastMatchFeeRate` (r:1 w:1) + // Proof: `Homa::FastMatchFeeRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::SoftBondedCapPerSubAccount` (r:0 w:1) + // Proof: `Homa::SoftBondedCapPerSubAccount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn update_homa_params() -> Weight { // Proof Size summary in bytes: - // Measured: `1112` - // Estimated: `8903` - // Minimum execution time: 36_691 nanoseconds. - Weight::from_parts(37_411_000, 8903) + // Measured: `1143` + // Estimated: `2628` + // Minimum execution time: 21_471 nanoseconds. + Weight::from_parts(21_943_000, 2628) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(4)) } - // Storage: ParachainSystem ValidationData (r:1 w:0) - // Proof Skipped: ParachainSystem ValidationData (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa LastEraBumpedBlock (r:0 w:1) - // Proof Skipped: Homa LastEraBumpedBlock (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa BumpEraFrequency (r:0 w:1) - // Proof Skipped: Homa BumpEraFrequency (max_values: Some(1), max_size: None, mode: Measured) + // Storage: `ParachainSystem::ValidationData` (r:1 w:0) + // Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::LastEraBumpedBlock` (r:0 w:1) + // Proof: `Homa::LastEraBumpedBlock` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::BumpEraFrequency` (r:0 w:1) + // Proof: `Homa::BumpEraFrequency` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn update_bump_era_params() -> Weight { // Proof Size summary in bytes: - // Measured: `1179` - // Estimated: `5022` - // Minimum execution time: 27_511 nanoseconds. - Weight::from_parts(28_478_000, 5022) + // Measured: `1215` + // Estimated: `2700` + // Minimum execution time: 18_883 nanoseconds. + Weight::from_parts(19_341_000, 2700) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } - // Storage: Homa StakingLedgers (r:10 w:10) - // Proof Skipped: Homa StakingLedgers (max_values: None, max_size: None, mode: Measured) - // Storage: Homa TotalStakingBonded (r:1 w:1) - // Proof Skipped: Homa TotalStakingBonded (max_values: Some(1), max_size: None, mode: Measured) + // Storage: `Homa::StakingLedgers` (r:10 w:10) + // Proof: `Homa::StakingLedgers` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Homa::TotalStakingBonded` (r:1 w:1) + // Proof: `Homa::TotalStakingBonded` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// The range of component `n` is `[0, 10]`. fn reset_ledgers(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1112` - // Estimated: `4699 + n * (2475 ±0)` - // Minimum execution time: 6_123 nanoseconds. - Weight::from_parts(14_144_021, 4699) - // Standard Error: 46_980 - .saturating_add(Weight::from_parts(10_700_120, 0).saturating_mul(n.into())) + // Measured: `1143` + // Estimated: `2628 + n * (2475 ±0)` + // Minimum execution time: 4_185 nanoseconds. + Weight::from_parts(10_357_799, 2628) + // Standard Error: 36_166 + .saturating_add(Weight::from_parts(5_846_091, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into()))) .saturating_add(Weight::from_parts(0, 2475).saturating_mul(n.into())) } - // Storage: Homa RelayChainCurrentEra (r:1 w:1) - // Proof Skipped: Homa RelayChainCurrentEra (max_values: Some(1), max_size: None, mode: Measured) + // Storage: `Homa::RelayChainCurrentEra` (r:1 w:1) + // Proof: `Homa::RelayChainCurrentEra` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn reset_current_era() -> Weight { // Proof Size summary in bytes: - // Measured: `1112` - // Estimated: `2597` - // Minimum execution time: 20_038 nanoseconds. - Weight::from_parts(20_566_000, 2597) + // Measured: `1143` + // Estimated: `2628` + // Minimum execution time: 13_766 nanoseconds. + Weight::from_parts(14_213_000, 2628) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/mandala/src/weights/module_honzon.rs b/runtime/mandala/src/weights/module_honzon.rs index 7022ec784e..3a5133409e 100644 --- a/runtime/mandala/src/weights/module_honzon.rs +++ b/runtime/mandala/src/weights/module_honzon.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for module_honzon //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,314 +47,314 @@ use sp_std::marker::PhantomData; /// Weight functions for module_honzon. pub struct WeightInfo(PhantomData); impl module_honzon::WeightInfo for WeightInfo { - // Storage: Honzon Authorization (r:1 w:1) - // Proof: Honzon Authorization (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: Balances Reserves (r:1 w:1) - // Proof: Balances Reserves (max_values: None, max_size: Some(168), added: 2643, mode: MaxEncodedLen) + // Storage: `Honzon::Authorization` (r:1 w:1) + // Proof: `Honzon::Authorization` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `Balances::Reserves` (r:1 w:1) + // Proof: `Balances::Reserves` (`max_values`: None, `max_size`: Some(168), added: 2643, mode: `MaxEncodedLen`) fn authorize() -> Weight { // Proof Size summary in bytes: - // Measured: `2137` - // Estimated: `7245` - // Minimum execution time: 41_488 nanoseconds. - Weight::from_parts(42_187_000, 7245) + // Measured: `2206` + // Estimated: `3633` + // Minimum execution time: 36_831 nanoseconds. + Weight::from_parts(37_427_000, 3633) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } - // Storage: Honzon Authorization (r:1 w:1) - // Proof: Honzon Authorization (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: Balances Reserves (r:1 w:1) - // Proof: Balances Reserves (max_values: None, max_size: Some(168), added: 2643, mode: MaxEncodedLen) + // Storage: `Honzon::Authorization` (r:1 w:1) + // Proof: `Honzon::Authorization` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `Balances::Reserves` (r:1 w:1) + // Proof: `Balances::Reserves` (`max_values`: None, `max_size`: Some(168), added: 2643, mode: `MaxEncodedLen`) fn unauthorize() -> Weight { // Proof Size summary in bytes: - // Measured: `2341` - // Estimated: `7245` - // Minimum execution time: 45_039 nanoseconds. - Weight::from_parts(45_880_000, 7245) + // Measured: `2410` + // Estimated: `3633` + // Minimum execution time: 39_778 nanoseconds. + Weight::from_parts(40_832_000, 3633) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } - // Storage: Honzon Authorization (r:5 w:5) - // Proof: Honzon Authorization (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: Balances Reserves (r:1 w:1) - // Proof: Balances Reserves (max_values: None, max_size: Some(168), added: 2643, mode: MaxEncodedLen) - /// The range of component `c` is `[0, 5]`. + // Storage: `Honzon::Authorization` (r:4 w:4) + // Proof: `Honzon::Authorization` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `Balances::Reserves` (r:1 w:1) + // Proof: `Balances::Reserves` (`max_values`: None, `max_size`: Some(168), added: 2643, mode: `MaxEncodedLen`) + /// The range of component `c` is `[0, 4]`. fn unauthorize_all(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2263 + c * (77 ±0)` - // Estimated: `4623 + c * (2622 ±0)` - // Minimum execution time: 23_848 nanoseconds. - Weight::from_parts(32_911_946, 4623) - // Standard Error: 178_246 - .saturating_add(Weight::from_parts(5_503_416, 0).saturating_mul(c.into())) + // Measured: `1692 + c * (290 ±0)` + // Estimated: `3633 + c * (2622 ±0)` + // Minimum execution time: 19_416 nanoseconds. + Weight::from_parts(26_111_241, 3633) + // Standard Error: 208_450 + .saturating_add(Weight::from_parts(7_186_587, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) .saturating_add(Weight::from_parts(0, 2622).saturating_mul(c.into())) } - // Storage: EmergencyShutdown IsShutdown (r:1 w:0) - // Proof: EmergencyShutdown IsShutdown (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) - // Storage: CdpEngine CollateralParams (r:1 w:0) - // Proof: CdpEngine CollateralParams (max_values: None, max_size: Some(135), added: 2610, mode: MaxEncodedLen) - // Storage: Loans Positions (r:1 w:1) - // Proof: Loans Positions (max_values: None, max_size: Some(123), added: 2598, mode: MaxEncodedLen) - // Storage: Rewards PoolInfos (r:1 w:1) - // Proof Skipped: Rewards PoolInfos (max_values: None, max_size: None, mode: Measured) - // Storage: Rewards SharesAndWithdrawnRewards (r:1 w:1) - // Proof Skipped: Rewards SharesAndWithdrawnRewards (max_values: None, max_size: None, mode: Measured) - // Storage: Loans TotalPositions (r:1 w:1) - // Proof: Loans TotalPositions (max_values: None, max_size: Some(83), added: 2558, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: CdpEngine DebitExchangeRate (r:1 w:0) - // Proof: CdpEngine DebitExchangeRate (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:1 w:1) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: Tokens TotalIssuance (r:1 w:1) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Prices LockedPrice (r:2 w:0) - // Proof: Prices LockedPrice (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: AcalaOracle Values (r:1 w:0) - // Proof: AcalaOracle Values (max_values: None, max_size: Some(75), added: 2550, mode: MaxEncodedLen) - // Storage: AssetRegistry AssetMetadatas (r:2 w:0) - // Proof Skipped: AssetRegistry AssetMetadatas (max_values: None, max_size: None, mode: Measured) + // Storage: `EmergencyShutdown::IsShutdown` (r:1 w:0) + // Proof: `EmergencyShutdown::IsShutdown` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + // Storage: `CdpEngine::CollateralParams` (r:1 w:0) + // Proof: `CdpEngine::CollateralParams` (`max_values`: None, `max_size`: Some(135), added: 2610, mode: `MaxEncodedLen`) + // Storage: `Loans::Positions` (r:1 w:1) + // Proof: `Loans::Positions` (`max_values`: None, `max_size`: Some(123), added: 2598, mode: `MaxEncodedLen`) + // Storage: `Rewards::PoolInfos` (r:1 w:1) + // Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1) + // Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Loans::TotalPositions` (r:1 w:1) + // Proof: `Loans::TotalPositions` (`max_values`: None, `max_size`: Some(83), added: 2558, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `CdpEngine::DebitExchangeRate` (r:1 w:0) + // Proof: `CdpEngine::DebitExchangeRate` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:1 w:1) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `Tokens::TotalIssuance` (r:1 w:1) + // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Prices::LockedPrice` (r:2 w:0) + // Proof: `Prices::LockedPrice` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `AcalaOracle::Values` (r:1 w:0) + // Proof: `AcalaOracle::Values` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`) + // Storage: `AssetRegistry::AssetMetadatas` (r:2 w:0) + // Proof: `AssetRegistry::AssetMetadatas` (`max_values`: None, `max_size`: None, mode: `Measured`) fn adjust_loan() -> Weight { // Proof Size summary in bytes: - // Measured: `3388` - // Estimated: `59139` - // Minimum execution time: 133_347 nanoseconds. - Weight::from_parts(137_731_000, 59139) + // Measured: `3640` + // Estimated: `9580` + // Minimum execution time: 126_716 nanoseconds. + Weight::from_parts(130_475_000, 9580) .saturating_add(T::DbWeight::get().reads(15)) .saturating_add(T::DbWeight::get().writes(7)) } - // Storage: EmergencyShutdown IsShutdown (r:1 w:0) - // Proof: EmergencyShutdown IsShutdown (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) - // Storage: Honzon Authorization (r:1 w:0) - // Proof: Honzon Authorization (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: Loans Positions (r:2 w:2) - // Proof: Loans Positions (max_values: None, max_size: Some(123), added: 2598, mode: MaxEncodedLen) - // Storage: CdpEngine DebitExchangeRate (r:1 w:0) - // Proof: CdpEngine DebitExchangeRate (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Prices LockedPrice (r:2 w:0) - // Proof: Prices LockedPrice (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: AcalaOracle Values (r:1 w:0) - // Proof: AcalaOracle Values (max_values: None, max_size: Some(75), added: 2550, mode: MaxEncodedLen) - // Storage: AssetRegistry AssetMetadatas (r:2 w:0) - // Proof Skipped: AssetRegistry AssetMetadatas (max_values: None, max_size: None, mode: Measured) - // Storage: CdpEngine CollateralParams (r:1 w:0) - // Proof: CdpEngine CollateralParams (max_values: None, max_size: Some(135), added: 2610, mode: MaxEncodedLen) - // Storage: Rewards SharesAndWithdrawnRewards (r:2 w:2) - // Proof Skipped: Rewards SharesAndWithdrawnRewards (max_values: None, max_size: None, mode: Measured) - // Storage: Rewards PoolInfos (r:1 w:1) - // Proof Skipped: Rewards PoolInfos (max_values: None, max_size: None, mode: Measured) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Loans TotalPositions (r:1 w:1) - // Proof: Loans TotalPositions (max_values: None, max_size: Some(83), added: 2558, mode: MaxEncodedLen) + // Storage: `EmergencyShutdown::IsShutdown` (r:1 w:0) + // Proof: `EmergencyShutdown::IsShutdown` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + // Storage: `Honzon::Authorization` (r:1 w:0) + // Proof: `Honzon::Authorization` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `Loans::Positions` (r:2 w:2) + // Proof: `Loans::Positions` (`max_values`: None, `max_size`: Some(123), added: 2598, mode: `MaxEncodedLen`) + // Storage: `CdpEngine::DebitExchangeRate` (r:1 w:0) + // Proof: `CdpEngine::DebitExchangeRate` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Prices::LockedPrice` (r:2 w:0) + // Proof: `Prices::LockedPrice` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `AcalaOracle::Values` (r:1 w:0) + // Proof: `AcalaOracle::Values` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`) + // Storage: `AssetRegistry::AssetMetadatas` (r:2 w:0) + // Proof: `AssetRegistry::AssetMetadatas` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `CdpEngine::CollateralParams` (r:1 w:0) + // Proof: `CdpEngine::CollateralParams` (`max_values`: None, `max_size`: Some(135), added: 2610, mode: `MaxEncodedLen`) + // Storage: `Rewards::SharesAndWithdrawnRewards` (r:2 w:2) + // Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Rewards::PoolInfos` (r:1 w:1) + // Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Loans::TotalPositions` (r:1 w:1) + // Proof: `Loans::TotalPositions` (`max_values`: None, `max_size`: Some(83), added: 2558, mode: `MaxEncodedLen`) fn transfer_loan_from() -> Weight { // Proof Size summary in bytes: - // Measured: `3487` - // Estimated: `60977` - // Minimum execution time: 112_267 nanoseconds. - Weight::from_parts(114_443_000, 60977) + // Measured: `3523` + // Estimated: `9463` + // Minimum execution time: 96_738 nanoseconds. + Weight::from_parts(98_652_000, 9463) .saturating_add(T::DbWeight::get().reads(16)) .saturating_add(T::DbWeight::get().writes(7)) } - // Storage: EmergencyShutdown IsShutdown (r:1 w:0) - // Proof: EmergencyShutdown IsShutdown (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) - // Storage: Loans Positions (r:1 w:1) - // Proof: Loans Positions (max_values: None, max_size: Some(123), added: 2598, mode: MaxEncodedLen) - // Storage: Prices LockedPrice (r:2 w:0) - // Proof: Prices LockedPrice (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: AcalaOracle Values (r:1 w:0) - // Proof: AcalaOracle Values (max_values: None, max_size: Some(75), added: 2550, mode: MaxEncodedLen) - // Storage: AssetRegistry AssetMetadatas (r:3 w:0) - // Proof Skipped: AssetRegistry AssetMetadatas (max_values: None, max_size: None, mode: Measured) - // Storage: CdpEngine DebitExchangeRate (r:1 w:0) - // Proof: CdpEngine DebitExchangeRate (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: CdpEngine CollateralParams (r:1 w:0) - // Proof: CdpEngine CollateralParams (max_values: None, max_size: Some(135), added: 2610, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:10 w:10) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: System Account (r:4 w:2) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: EvmAccounts EvmAddresses (r:1 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: CdpTreasury DebitPool (r:1 w:1) - // Proof: CdpTreasury DebitPool (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - // Storage: Rewards SharesAndWithdrawnRewards (r:1 w:1) - // Proof Skipped: Rewards SharesAndWithdrawnRewards (max_values: None, max_size: None, mode: Measured) - // Storage: Rewards PoolInfos (r:1 w:1) - // Proof Skipped: Rewards PoolInfos (max_values: None, max_size: None, mode: Measured) - // Storage: Loans TotalPositions (r:1 w:1) - // Proof: Loans TotalPositions (max_values: None, max_size: Some(83), added: 2558, mode: MaxEncodedLen) - // Storage: AuctionManager TotalCollateralInAuction (r:1 w:0) - // Proof: AuctionManager TotalCollateralInAuction (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Dex TradingPairStatuses (r:3 w:0) - // Proof: Dex TradingPairStatuses (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - // Storage: Dex LiquidityPool (r:3 w:1) - // Proof: Dex LiquidityPool (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen) - // Storage: StableAsset Pools (r:2 w:1) - // Proof Skipped: StableAsset Pools (max_values: None, max_size: None, mode: Measured) - // Storage: AggregatedDex AggregatedSwapPaths (r:1 w:0) - // Proof Skipped: AggregatedDex AggregatedSwapPaths (max_values: None, max_size: None, mode: Measured) - // Storage: Homa TotalStakingBonded (r:1 w:0) - // Proof Skipped: Homa TotalStakingBonded (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa ToBondPool (r:1 w:0) - // Proof Skipped: Homa ToBondPool (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Tokens TotalIssuance (r:2 w:1) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Homa TotalVoidLiquid (r:1 w:0) - // Proof Skipped: Homa TotalVoidLiquid (max_values: Some(1), max_size: None, mode: Measured) + // Storage: `EmergencyShutdown::IsShutdown` (r:1 w:0) + // Proof: `EmergencyShutdown::IsShutdown` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + // Storage: `Loans::Positions` (r:1 w:1) + // Proof: `Loans::Positions` (`max_values`: None, `max_size`: Some(123), added: 2598, mode: `MaxEncodedLen`) + // Storage: `Prices::LockedPrice` (r:2 w:0) + // Proof: `Prices::LockedPrice` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `AcalaOracle::Values` (r:1 w:0) + // Proof: `AcalaOracle::Values` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`) + // Storage: `AssetRegistry::AssetMetadatas` (r:3 w:0) + // Proof: `AssetRegistry::AssetMetadatas` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `CdpEngine::DebitExchangeRate` (r:1 w:0) + // Proof: `CdpEngine::DebitExchangeRate` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `CdpEngine::CollateralParams` (r:1 w:0) + // Proof: `CdpEngine::CollateralParams` (`max_values`: None, `max_size`: Some(135), added: 2610, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:10 w:10) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:4 w:2) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `EvmAccounts::EvmAddresses` (r:1 w:0) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `CdpTreasury::DebitPool` (r:1 w:1) + // Proof: `CdpTreasury::DebitPool` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + // Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1) + // Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Rewards::PoolInfos` (r:1 w:1) + // Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Loans::TotalPositions` (r:1 w:1) + // Proof: `Loans::TotalPositions` (`max_values`: None, `max_size`: Some(83), added: 2558, mode: `MaxEncodedLen`) + // Storage: `AuctionManager::TotalCollateralInAuction` (r:1 w:0) + // Proof: `AuctionManager::TotalCollateralInAuction` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Dex::TradingPairStatuses` (r:3 w:0) + // Proof: `Dex::TradingPairStatuses` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + // Storage: `Dex::LiquidityPool` (r:3 w:1) + // Proof: `Dex::LiquidityPool` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) + // Storage: `StableAsset::Pools` (r:2 w:1) + // Proof: `StableAsset::Pools` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `AggregatedDex::AggregatedSwapPaths` (r:1 w:0) + // Proof: `AggregatedDex::AggregatedSwapPaths` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Homa::TotalStakingBonded` (r:1 w:0) + // Proof: `Homa::TotalStakingBonded` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::ToBondPool` (r:1 w:0) + // Proof: `Homa::ToBondPool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Tokens::TotalIssuance` (r:2 w:1) + // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Homa::TotalVoidLiquid` (r:1 w:0) + // Proof: `Homa::TotalVoidLiquid` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn close_loan_has_debit_by_dex() -> Weight { // Proof Size summary in bytes: - // Measured: `6917` - // Estimated: `180946` - // Minimum execution time: 569_381 nanoseconds. - Weight::from_parts(576_990_000, 180946) + // Measured: `6932` + // Estimated: `27210` + // Minimum execution time: 514_586 nanoseconds. + Weight::from_parts(519_534_000, 27210) .saturating_add(T::DbWeight::get().reads(44)) .saturating_add(T::DbWeight::get().writes(20)) } - // Storage: CdpEngine CollateralParams (r:1 w:0) - // Proof: CdpEngine CollateralParams (max_values: None, max_size: Some(135), added: 2610, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:4 w:4) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: Tokens TotalIssuance (r:1 w:1) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: System Account (r:2 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Dex TradingPairStatuses (r:3 w:0) - // Proof: Dex TradingPairStatuses (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - // Storage: Dex LiquidityPool (r:3 w:2) - // Proof: Dex LiquidityPool (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen) - // Storage: StableAsset Pools (r:2 w:0) - // Proof Skipped: StableAsset Pools (max_values: None, max_size: None, mode: Measured) - // Storage: AggregatedDex AggregatedSwapPaths (r:1 w:0) - // Proof Skipped: AggregatedDex AggregatedSwapPaths (max_values: None, max_size: None, mode: Measured) - // Storage: CdpEngine DebitExchangeRate (r:1 w:0) - // Proof: CdpEngine DebitExchangeRate (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Loans Positions (r:1 w:1) - // Proof: Loans Positions (max_values: None, max_size: Some(123), added: 2598, mode: MaxEncodedLen) - // Storage: Rewards PoolInfos (r:1 w:1) - // Proof Skipped: Rewards PoolInfos (max_values: None, max_size: None, mode: Measured) - // Storage: Rewards SharesAndWithdrawnRewards (r:1 w:1) - // Proof Skipped: Rewards SharesAndWithdrawnRewards (max_values: None, max_size: None, mode: Measured) - // Storage: Loans TotalPositions (r:1 w:1) - // Proof: Loans TotalPositions (max_values: None, max_size: Some(83), added: 2558, mode: MaxEncodedLen) - // Storage: Prices LockedPrice (r:2 w:0) - // Proof: Prices LockedPrice (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: AcalaOracle Values (r:1 w:0) - // Proof: AcalaOracle Values (max_values: None, max_size: Some(75), added: 2550, mode: MaxEncodedLen) - // Storage: AssetRegistry AssetMetadatas (r:2 w:0) - // Proof Skipped: AssetRegistry AssetMetadatas (max_values: None, max_size: None, mode: Measured) + // Storage: `CdpEngine::CollateralParams` (r:1 w:0) + // Proof: `CdpEngine::CollateralParams` (`max_values`: None, `max_size`: Some(135), added: 2610, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:4 w:4) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `Tokens::TotalIssuance` (r:1 w:1) + // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:2 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Dex::TradingPairStatuses` (r:3 w:0) + // Proof: `Dex::TradingPairStatuses` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + // Storage: `Dex::LiquidityPool` (r:3 w:2) + // Proof: `Dex::LiquidityPool` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) + // Storage: `StableAsset::Pools` (r:2 w:0) + // Proof: `StableAsset::Pools` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `AggregatedDex::AggregatedSwapPaths` (r:1 w:0) + // Proof: `AggregatedDex::AggregatedSwapPaths` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `CdpEngine::DebitExchangeRate` (r:1 w:0) + // Proof: `CdpEngine::DebitExchangeRate` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Loans::Positions` (r:1 w:1) + // Proof: `Loans::Positions` (`max_values`: None, `max_size`: Some(123), added: 2598, mode: `MaxEncodedLen`) + // Storage: `Rewards::PoolInfos` (r:1 w:1) + // Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1) + // Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Loans::TotalPositions` (r:1 w:1) + // Proof: `Loans::TotalPositions` (`max_values`: None, `max_size`: Some(83), added: 2558, mode: `MaxEncodedLen`) + // Storage: `Prices::LockedPrice` (r:2 w:0) + // Proof: `Prices::LockedPrice` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `AcalaOracle::Values` (r:1 w:0) + // Proof: `AcalaOracle::Values` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`) + // Storage: `AssetRegistry::AssetMetadatas` (r:2 w:0) + // Proof: `AssetRegistry::AssetMetadatas` (`max_values`: None, `max_size`: None, mode: `Measured`) fn expand_position_collateral() -> Weight { // Proof Size summary in bytes: - // Measured: `5543` - // Estimated: `112871` - // Minimum execution time: 268_918 nanoseconds. - Weight::from_parts(274_805_000, 112871) + // Measured: `5563` + // Estimated: `11503` + // Minimum execution time: 229_683 nanoseconds. + Weight::from_parts(234_594_000, 11503) .saturating_add(T::DbWeight::get().reads(27)) .saturating_add(T::DbWeight::get().writes(12)) } - // Storage: CdpEngine CollateralParams (r:1 w:0) - // Proof: CdpEngine CollateralParams (max_values: None, max_size: Some(135), added: 2610, mode: MaxEncodedLen) - // Storage: Loans Positions (r:1 w:1) - // Proof: Loans Positions (max_values: None, max_size: Some(123), added: 2598, mode: MaxEncodedLen) - // Storage: Dex TradingPairStatuses (r:3 w:0) - // Proof: Dex TradingPairStatuses (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - // Storage: Dex LiquidityPool (r:3 w:1) - // Proof: Dex LiquidityPool (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen) - // Storage: StableAsset Pools (r:2 w:1) - // Proof Skipped: StableAsset Pools (max_values: None, max_size: None, mode: Measured) - // Storage: AggregatedDex AggregatedSwapPaths (r:1 w:0) - // Proof Skipped: AggregatedDex AggregatedSwapPaths (max_values: None, max_size: None, mode: Measured) - // Storage: Homa TotalStakingBonded (r:1 w:0) - // Proof Skipped: Homa TotalStakingBonded (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa ToBondPool (r:1 w:0) - // Proof Skipped: Homa ToBondPool (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Tokens TotalIssuance (r:3 w:2) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Homa TotalVoidLiquid (r:1 w:0) - // Proof Skipped: Homa TotalVoidLiquid (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Tokens Accounts (r:9 w:9) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: System Account (r:3 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: AssetRegistry AssetMetadatas (r:1 w:0) - // Proof Skipped: AssetRegistry AssetMetadatas (max_values: None, max_size: None, mode: Measured) - // Storage: CdpEngine DebitExchangeRate (r:1 w:0) - // Proof: CdpEngine DebitExchangeRate (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Rewards SharesAndWithdrawnRewards (r:1 w:1) - // Proof Skipped: Rewards SharesAndWithdrawnRewards (max_values: None, max_size: None, mode: Measured) - // Storage: Rewards PoolInfos (r:1 w:1) - // Proof Skipped: Rewards PoolInfos (max_values: None, max_size: None, mode: Measured) - // Storage: Loans TotalPositions (r:1 w:1) - // Proof: Loans TotalPositions (max_values: None, max_size: Some(83), added: 2558, mode: MaxEncodedLen) + // Storage: `CdpEngine::CollateralParams` (r:1 w:0) + // Proof: `CdpEngine::CollateralParams` (`max_values`: None, `max_size`: Some(135), added: 2610, mode: `MaxEncodedLen`) + // Storage: `Loans::Positions` (r:1 w:1) + // Proof: `Loans::Positions` (`max_values`: None, `max_size`: Some(123), added: 2598, mode: `MaxEncodedLen`) + // Storage: `Dex::TradingPairStatuses` (r:3 w:0) + // Proof: `Dex::TradingPairStatuses` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + // Storage: `Dex::LiquidityPool` (r:3 w:1) + // Proof: `Dex::LiquidityPool` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) + // Storage: `StableAsset::Pools` (r:2 w:1) + // Proof: `StableAsset::Pools` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `AggregatedDex::AggregatedSwapPaths` (r:1 w:0) + // Proof: `AggregatedDex::AggregatedSwapPaths` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Tokens::Accounts` (r:9 w:9) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `Homa::TotalStakingBonded` (r:1 w:0) + // Proof: `Homa::TotalStakingBonded` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::ToBondPool` (r:1 w:0) + // Proof: `Homa::ToBondPool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Tokens::TotalIssuance` (r:3 w:2) + // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Homa::TotalVoidLiquid` (r:1 w:0) + // Proof: `Homa::TotalVoidLiquid` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `System::Account` (r:3 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `AssetRegistry::AssetMetadatas` (r:1 w:0) + // Proof: `AssetRegistry::AssetMetadatas` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `CdpEngine::DebitExchangeRate` (r:1 w:0) + // Proof: `CdpEngine::DebitExchangeRate` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1) + // Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Rewards::PoolInfos` (r:1 w:1) + // Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Loans::TotalPositions` (r:1 w:1) + // Proof: `Loans::TotalPositions` (`max_values`: None, `max_size`: Some(83), added: 2558, mode: `MaxEncodedLen`) fn shrink_position_debit() -> Weight { // Proof Size summary in bytes: - // Measured: `6244` - // Estimated: `148271` - // Minimum execution time: 430_403 nanoseconds. - Weight::from_parts(434_077_000, 148271) + // Measured: `6226` + // Estimated: `24588` + // Minimum execution time: 377_620 nanoseconds. + Weight::from_parts(381_331_000, 24588) .saturating_add(T::DbWeight::get().reads(34)) .saturating_add(T::DbWeight::get().writes(18)) } - // Storage: Tokens Accounts (r:1 w:1) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: Tokens TotalIssuance (r:2 w:1) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: CdpEngine CollateralParams (r:2 w:0) - // Proof: CdpEngine CollateralParams (max_values: None, max_size: Some(135), added: 2610, mode: MaxEncodedLen) - // Storage: Loans Positions (r:2 w:2) - // Proof: Loans Positions (max_values: None, max_size: Some(123), added: 2598, mode: MaxEncodedLen) - // Storage: Loans TotalPositions (r:2 w:2) - // Proof: Loans TotalPositions (max_values: None, max_size: Some(83), added: 2558, mode: MaxEncodedLen) - // Storage: CdpEngine DebitExchangeRate (r:2 w:0) - // Proof: CdpEngine DebitExchangeRate (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Prices LockedPrice (r:3 w:0) - // Proof: Prices LockedPrice (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: AcalaOracle Values (r:1 w:0) - // Proof: AcalaOracle Values (max_values: None, max_size: Some(75), added: 2550, mode: MaxEncodedLen) - // Storage: AssetRegistry AssetMetadatas (r:2 w:0) - // Proof Skipped: AssetRegistry AssetMetadatas (max_values: None, max_size: None, mode: Measured) - // Storage: Homa TotalStakingBonded (r:1 w:0) - // Proof Skipped: Homa TotalStakingBonded (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa ToBondPool (r:1 w:0) - // Proof Skipped: Homa ToBondPool (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa TotalVoidLiquid (r:1 w:0) - // Proof Skipped: Homa TotalVoidLiquid (max_values: Some(1), max_size: None, mode: Measured) + // Storage: `Tokens::Accounts` (r:1 w:1) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `Tokens::TotalIssuance` (r:2 w:1) + // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `CdpEngine::CollateralParams` (r:2 w:0) + // Proof: `CdpEngine::CollateralParams` (`max_values`: None, `max_size`: Some(135), added: 2610, mode: `MaxEncodedLen`) + // Storage: `Loans::Positions` (r:2 w:2) + // Proof: `Loans::Positions` (`max_values`: None, `max_size`: Some(123), added: 2598, mode: `MaxEncodedLen`) + // Storage: `Loans::TotalPositions` (r:2 w:2) + // Proof: `Loans::TotalPositions` (`max_values`: None, `max_size`: Some(83), added: 2558, mode: `MaxEncodedLen`) + // Storage: `CdpEngine::DebitExchangeRate` (r:2 w:0) + // Proof: `CdpEngine::DebitExchangeRate` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Prices::LockedPrice` (r:3 w:0) + // Proof: `Prices::LockedPrice` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `AcalaOracle::Values` (r:1 w:0) + // Proof: `AcalaOracle::Values` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`) + // Storage: `AssetRegistry::AssetMetadatas` (r:2 w:0) + // Proof: `AssetRegistry::AssetMetadatas` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Homa::TotalStakingBonded` (r:1 w:0) + // Proof: `Homa::TotalStakingBonded` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::ToBondPool` (r:1 w:0) + // Proof: `Homa::ToBondPool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::TotalVoidLiquid` (r:1 w:0) + // Proof: `Homa::TotalVoidLiquid` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn transfer_debit() -> Weight { // Proof Size summary in bytes: - // Measured: `3328` - // Estimated: `70125` - // Minimum execution time: 169_658 nanoseconds. - Weight::from_parts(174_584_000, 70125) + // Measured: `3322` + // Estimated: `9262` + // Minimum execution time: 139_409 nanoseconds. + Weight::from_parts(142_753_000, 9262) .saturating_add(T::DbWeight::get().reads(20)) .saturating_add(T::DbWeight::get().writes(6)) } - // Storage: Loans Positions (r:1 w:0) - // Proof: Loans Positions (max_values: None, max_size: Some(123), added: 2598, mode: MaxEncodedLen) - // Storage: Prices LockedPrice (r:2 w:0) - // Proof: Prices LockedPrice (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: AcalaOracle Values (r:1 w:0) - // Proof: AcalaOracle Values (max_values: None, max_size: Some(75), added: 2550, mode: MaxEncodedLen) - // Storage: AssetRegistry AssetMetadatas (r:2 w:0) - // Proof Skipped: AssetRegistry AssetMetadatas (max_values: None, max_size: None, mode: Measured) - // Storage: Homa TotalStakingBonded (r:1 w:0) - // Proof Skipped: Homa TotalStakingBonded (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa ToBondPool (r:1 w:0) - // Proof Skipped: Homa ToBondPool (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Tokens TotalIssuance (r:1 w:0) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Homa TotalVoidLiquid (r:1 w:0) - // Proof Skipped: Homa TotalVoidLiquid (max_values: Some(1), max_size: None, mode: Measured) - // Storage: CdpEngine DebitExchangeRate (r:1 w:0) - // Proof: CdpEngine DebitExchangeRate (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) + // Storage: `Loans::Positions` (r:1 w:0) + // Proof: `Loans::Positions` (`max_values`: None, `max_size`: Some(123), added: 2598, mode: `MaxEncodedLen`) + // Storage: `Prices::LockedPrice` (r:2 w:0) + // Proof: `Prices::LockedPrice` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `AcalaOracle::Values` (r:1 w:0) + // Proof: `AcalaOracle::Values` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`) + // Storage: `AssetRegistry::AssetMetadatas` (r:2 w:0) + // Proof: `AssetRegistry::AssetMetadatas` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Homa::TotalStakingBonded` (r:1 w:0) + // Proof: `Homa::TotalStakingBonded` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::ToBondPool` (r:1 w:0) + // Proof: `Homa::ToBondPool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Tokens::TotalIssuance` (r:1 w:0) + // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Homa::TotalVoidLiquid` (r:1 w:0) + // Proof: `Homa::TotalVoidLiquid` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `CdpEngine::DebitExchangeRate` (r:1 w:0) + // Proof: `CdpEngine::DebitExchangeRate` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) fn precompile_get_current_collateral_ratio() -> Weight { // Proof Size summary in bytes: - // Measured: `2089` - // Estimated: `39017` - // Minimum execution time: 45_255 nanoseconds. - Weight::from_parts(46_423_000, 39017) + // Measured: `2084` + // Estimated: `8024` + // Minimum execution time: 41_279 nanoseconds. + Weight::from_parts(42_403_000, 8024) .saturating_add(T::DbWeight::get().reads(11)) } } diff --git a/runtime/mandala/src/weights/module_idle_scheduler.rs b/runtime/mandala/src/weights/module_idle_scheduler.rs index 7a6315f8fb..a1310d0928 100644 --- a/runtime/mandala/src/weights/module_idle_scheduler.rs +++ b/runtime/mandala/src/weights/module_idle_scheduler.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for module_idle_scheduler //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,51 +47,55 @@ use sp_std::marker::PhantomData; /// Weight functions for module_idle_scheduler. pub struct WeightInfo(PhantomData); impl module_idle_scheduler::WeightInfo for WeightInfo { - // Storage: ParachainSystem ValidationData (r:1 w:0) - // Proof Skipped: ParachainSystem ValidationData (max_values: Some(1), max_size: None, mode: Measured) - // Storage: IdleScheduler PreviousRelayBlockNumber (r:0 w:1) - // Proof Skipped: IdleScheduler PreviousRelayBlockNumber (max_values: Some(1), max_size: None, mode: Measured) + // Storage: `ParachainSystem::ValidationData` (r:1 w:0) + // Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `ParachainSystem::LastRelayChainBlockNumber` (r:1 w:0) + // Proof: `ParachainSystem::LastRelayChainBlockNumber` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `IdleScheduler::PreviousRelayBlockNumber` (r:0 w:1) + // Proof: `IdleScheduler::PreviousRelayBlockNumber` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn on_initialize() -> Weight { // Proof Size summary in bytes: // Measured: `681` - // Estimated: `2847` - // Minimum execution time: 4_500 nanoseconds. - Weight::from_parts(4_656_000, 2847) - .saturating_add(T::DbWeight::get().reads(1)) + // Estimated: `2166` + // Minimum execution time: 4_287 nanoseconds. + Weight::from_parts(4_428_000, 2166) + .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: ParachainSystem ValidationData (r:1 w:0) - // Proof Skipped: ParachainSystem ValidationData (max_values: Some(1), max_size: None, mode: Measured) - // Storage: IdleScheduler PreviousRelayBlockNumber (r:1 w:0) - // Proof Skipped: IdleScheduler PreviousRelayBlockNumber (max_values: Some(1), max_size: None, mode: Measured) + // Storage: `ParachainSystem::ValidationData` (r:1 w:0) + // Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `ParachainSystem::LastRelayChainBlockNumber` (r:1 w:0) + // Proof: `ParachainSystem::LastRelayChainBlockNumber` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `IdleScheduler::PreviousRelayBlockNumber` (r:1 w:0) + // Proof: `IdleScheduler::PreviousRelayBlockNumber` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn on_idle_base() -> Weight { // Proof Size summary in bytes: // Measured: `757` - // Estimated: `4484` - // Minimum execution time: 9_580 nanoseconds. - Weight::from_parts(10_079_000, 4484) - .saturating_add(T::DbWeight::get().reads(2)) + // Estimated: `2242` + // Minimum execution time: 5_893 nanoseconds. + Weight::from_parts(6_119_000, 2242) + .saturating_add(T::DbWeight::get().reads(3)) } - // Storage: IdleScheduler Tasks (r:0 w:1) - // Proof Skipped: IdleScheduler Tasks (max_values: None, max_size: None, mode: Measured) + // Storage: `IdleScheduler::Tasks` (r:0 w:1) + // Proof: `IdleScheduler::Tasks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn clear_tasks() -> Weight { // Proof Size summary in bytes: - // Measured: `833` - // Estimated: `833` - // Minimum execution time: 11_513 nanoseconds. - Weight::from_parts(12_052_000, 833) + // Measured: `869` + // Estimated: `869` + // Minimum execution time: 9_241 nanoseconds. + Weight::from_parts(9_677_000, 869) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: IdleScheduler NextTaskId (r:1 w:1) - // Proof Skipped: IdleScheduler NextTaskId (max_values: Some(1), max_size: None, mode: Measured) - // Storage: IdleScheduler Tasks (r:0 w:1) - // Proof Skipped: IdleScheduler Tasks (max_values: None, max_size: None, mode: Measured) + // Storage: `IdleScheduler::NextTaskId` (r:1 w:1) + // Proof: `IdleScheduler::NextTaskId` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `IdleScheduler::Tasks` (r:0 w:1) + // Proof: `IdleScheduler::Tasks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn schedule_task() -> Weight { // Proof Size summary in bytes: - // Measured: `1041` - // Estimated: `3567` - // Minimum execution time: 20_680 nanoseconds. - Weight::from_parts(21_391_000, 3567) + // Measured: `1077` + // Estimated: `2562` + // Minimum execution time: 16_526 nanoseconds. + Weight::from_parts(16_991_000, 2562) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } diff --git a/runtime/mandala/src/weights/module_incentives.rs b/runtime/mandala/src/weights/module_incentives.rs index 16ed01a515..eea546de48 100644 --- a/runtime/mandala/src/weights/module_incentives.rs +++ b/runtime/mandala/src/weights/module_incentives.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for module_incentives //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,115 +47,125 @@ use sp_std::marker::PhantomData; /// Weight functions for module_incentives. pub struct WeightInfo(PhantomData); impl module_incentives::WeightInfo for WeightInfo { - // Storage: EmergencyShutdown IsShutdown (r:1 w:0) - // Proof: EmergencyShutdown IsShutdown (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) - // Storage: Rewards PoolInfos (r:6 w:0) - // Proof Skipped: Rewards PoolInfos (max_values: None, max_size: None, mode: Measured) - // Storage: Incentives IncentiveRewardAmounts (r:10 w:0) - // Proof Skipped: Incentives IncentiveRewardAmounts (max_values: None, max_size: None, mode: Measured) - // Storage: System Account (r:2 w:0) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - /// The range of component `c` is `[0, 5]`. + // Storage: `EmergencyShutdown::IsShutdown` (r:1 w:0) + // Proof: `EmergencyShutdown::IsShutdown` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`) + // Storage: `Rewards::PoolInfos` (r:5 w:0) + // Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Incentives::IncentiveRewardAmounts` (r:8 w:0) + // Proof: `Incentives::IncentiveRewardAmounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `System::Account` (r:1 w:0) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + /// The range of component `c` is `[0, 4]`. fn on_initialize(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2264 + c * (79 ±0)` - // Estimated: `16017 + c * (7794 ±0)` - // Minimum execution time: 9_960 nanoseconds. - Weight::from_parts(15_417_049, 16017) - // Standard Error: 107_672 - .saturating_add(Weight::from_parts(15_913_455, 0).saturating_mul(c.into())) - .saturating_add(T::DbWeight::get().reads(3)) + // Measured: `1476 + c * (384 ±0)` + // Estimated: `5007 + c * (5027 ±13)` + // Minimum execution time: 8_876 nanoseconds. + Weight::from_parts(13_180_776, 5007) + // Standard Error: 141_214 + .saturating_add(Weight::from_parts(17_160_748, 0).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(c.into()))) - .saturating_add(Weight::from_parts(0, 7794).saturating_mul(c.into())) + .saturating_add(Weight::from_parts(0, 5027).saturating_mul(c.into())) } - // Storage: Tokens Accounts (r:2 w:2) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: EvmAccounts EvmAddresses (r:1 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Rewards PoolInfos (r:1 w:1) - // Proof Skipped: Rewards PoolInfos (max_values: None, max_size: None, mode: Measured) - // Storage: Rewards SharesAndWithdrawnRewards (r:1 w:1) - // Proof Skipped: Rewards SharesAndWithdrawnRewards (max_values: None, max_size: None, mode: Measured) + // Storage: `Tokens::Accounts` (r:2 w:2) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `EvmAccounts::EvmAddresses` (r:1 w:0) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Rewards::PoolInfos` (r:1 w:1) + // Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1) + // Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`) fn deposit_dex_share() -> Weight { // Proof Size summary in bytes: - // Measured: `2786` - // Estimated: `25854` - // Minimum execution time: 76_603 nanoseconds. - Weight::from_parts(78_709_000, 25854) + // Measured: `2855` + // Estimated: `6320` + // Minimum execution time: 57_714 nanoseconds. + Weight::from_parts(59_727_000, 6320) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(5)) } - // Storage: Rewards SharesAndWithdrawnRewards (r:1 w:1) - // Proof Skipped: Rewards SharesAndWithdrawnRewards (max_values: None, max_size: None, mode: Measured) - // Storage: Tokens Accounts (r:2 w:2) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:0) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Rewards PoolInfos (r:1 w:1) - // Proof Skipped: Rewards PoolInfos (max_values: None, max_size: None, mode: Measured) + // Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1) + // Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Tokens::Accounts` (r:2 w:2) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:0) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Rewards::PoolInfos` (r:1 w:1) + // Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`) fn withdraw_dex_share() -> Weight { // Proof Size summary in bytes: - // Measured: `2909` - // Estimated: `22575` - // Minimum execution time: 76_238 nanoseconds. - Weight::from_parts(80_096_000, 22575) + // Measured: `2945` + // Estimated: `6410` + // Minimum execution time: 59_407 nanoseconds. + Weight::from_parts(60_017_000, 6410) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(4)) } - // Storage: Rewards SharesAndWithdrawnRewards (r:1 w:1) - // Proof Skipped: Rewards SharesAndWithdrawnRewards (max_values: None, max_size: None, mode: Measured) - // Storage: Rewards PoolInfos (r:1 w:1) - // Proof Skipped: Rewards PoolInfos (max_values: None, max_size: None, mode: Measured) - // Storage: Incentives PendingMultiRewards (r:1 w:1) - // Proof Skipped: Incentives PendingMultiRewards (max_values: None, max_size: None, mode: Measured) - // Storage: Incentives ClaimRewardDeductionRates (r:1 w:0) - // Proof Skipped: Incentives ClaimRewardDeductionRates (max_values: None, max_size: None, mode: Measured) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: EvmAccounts EvmAddresses (r:1 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) + // Storage: `Rewards::SharesAndWithdrawnRewards` (r:1 w:1) + // Proof: `Rewards::SharesAndWithdrawnRewards` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Rewards::PoolInfos` (r:1 w:1) + // Proof: `Rewards::PoolInfos` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Incentives::PendingMultiRewards` (r:1 w:1) + // Proof: `Incentives::PendingMultiRewards` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Incentives::ClaimRewardDeductionRates` (r:1 w:0) + // Proof: `Incentives::ClaimRewardDeductionRates` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Incentives::ClaimRewardDeductionCurrency` (r:1 w:0) + // Proof: `Incentives::ClaimRewardDeductionCurrency` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `EvmAccounts::EvmAddresses` (r:1 w:0) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) fn claim_rewards() -> Weight { // Proof Size summary in bytes: - // Measured: `2486` - // Estimated: `30922` - // Minimum execution time: 80_325 nanoseconds. - Weight::from_parts(82_504_000, 30922) - .saturating_add(T::DbWeight::get().reads(6)) + // Measured: `2633` + // Estimated: `6098` + // Minimum execution time: 85_320 nanoseconds. + Weight::from_parts(87_046_000, 6098) + .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(4)) } - // Storage: Incentives IncentiveRewardAmounts (r:5 w:5) - // Proof Skipped: Incentives IncentiveRewardAmounts (max_values: None, max_size: None, mode: Measured) - /// The range of component `c` is `[0, 5]`. + // Storage: `Incentives::IncentiveRewardAmounts` (r:4 w:4) + // Proof: `Incentives::IncentiveRewardAmounts` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `c` is `[0, 4]`. fn update_incentive_rewards(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1007` - // Estimated: `1997 + c * (2475 ±0)` - // Minimum execution time: 6_082 nanoseconds. - Weight::from_parts(10_310_364, 1997) - // Standard Error: 85_060 - .saturating_add(Weight::from_parts(7_871_042, 0).saturating_mul(c.into())) + // Measured: `760 + c * (94 ±0)` + // Estimated: `2033 + c * (2475 ±0)` + // Minimum execution time: 4_125 nanoseconds. + Weight::from_parts(6_933_776, 2033) + // Standard Error: 88_503 + .saturating_add(Weight::from_parts(6_366_351, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) .saturating_add(Weight::from_parts(0, 2475).saturating_mul(c.into())) } - // Storage: Incentives ClaimRewardDeductionRates (r:5 w:5) - // Proof Skipped: Incentives ClaimRewardDeductionRates (max_values: None, max_size: None, mode: Measured) - /// The range of component `c` is `[0, 5]`. + // Storage: `Incentives::ClaimRewardDeductionRates` (r:4 w:4) + // Proof: `Incentives::ClaimRewardDeductionRates` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// The range of component `c` is `[0, 4]`. fn update_claim_reward_deduction_rates(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `708` + // Measured: `676 + c * (10 ±0)` // Estimated: `1698 + c * (2475 ±0)` - // Minimum execution time: 5_853 nanoseconds. - Weight::from_parts(6_850_923, 1698) - // Standard Error: 15_019 - .saturating_add(Weight::from_parts(2_031_860, 0).saturating_mul(c.into())) + // Minimum execution time: 4_075 nanoseconds. + Weight::from_parts(4_940_310, 1698) + // Standard Error: 18_969 + .saturating_add(Weight::from_parts(1_948_461, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) .saturating_add(Weight::from_parts(0, 2475).saturating_mul(c.into())) } + // Storage: `Incentives::ClaimRewardDeductionCurrency` (r:1 w:1) + // Proof: `Incentives::ClaimRewardDeductionCurrency` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_claim_reward_deduction_currency() -> Weight { - Weight::from_parts(914_000, 0) + // Proof Size summary in bytes: + // Measured: `1043` + // Estimated: `4508` + // Minimum execution time: 15_019 nanoseconds. + Weight::from_parts(15_502_000, 4508) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) } } diff --git a/runtime/mandala/src/weights/module_liquid_crowdloan.rs b/runtime/mandala/src/weights/module_liquid_crowdloan.rs index 0034688605..1b6f5f97b3 100644 --- a/runtime/mandala/src/weights/module_liquid_crowdloan.rs +++ b/runtime/mandala/src/weights/module_liquid_crowdloan.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for module_liquid_crowdloan //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-06-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-35-142`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -30,9 +30,8 @@ // --chain=dev // --steps=50 // --repeat=20 -// --pallet=module_liquid_crowdloan +// --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,48 +47,50 @@ use sp_std::marker::PhantomData; /// Weight functions for module_liquid_crowdloan. pub struct WeightInfo(PhantomData); impl module_liquid_crowdloan::WeightInfo for WeightInfo { - // Storage: Tokens Accounts (r:3 w:3) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: Tokens TotalIssuance (r:1 w:1) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: EvmAccounts EvmAddresses (r:2 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + // Storage: `LiquidCrowdloan::RedeemCurrencyId` (r:1 w:0) + // Proof: `LiquidCrowdloan::RedeemCurrencyId` (`max_values`: Some(1), `max_size`: Some(43), added: 538, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:3 w:3) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `Tokens::TotalIssuance` (r:1 w:1) + // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `EvmAccounts::EvmAddresses` (r:2 w:0) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn redeem() -> Weight { // Proof Size summary in bytes: - // Measured: `2927` - // Estimated: `22041` - // Minimum execution time: 86_706 nanoseconds. - Weight::from_parts(88_388_000, 22041) - .saturating_add(T::DbWeight::get().reads(7)) + // Measured: `2964` + // Estimated: `8856` + // Minimum execution time: 69_452 nanoseconds. + Weight::from_parts(70_667_000, 8856) + .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(5)) } - // Storage: XcmInterface XcmDestWeightAndFee (r:1 w:0) - // Proof Skipped: XcmInterface XcmDestWeightAndFee (max_values: None, max_size: None, mode: Measured) - // Storage: ParachainInfo ParachainId (r:1 w:0) - // Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - // Storage: ParachainSystem HostConfiguration (r:1 w:0) - // Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured) - // Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) - // Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured) + // Storage: `XcmInterface::XcmDestWeightAndFee` (r:1 w:0) + // Proof: `XcmInterface::XcmDestWeightAndFee` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `ParachainInfo::ParachainId` (r:1 w:0) + // Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + // Storage: `ParachainSystem::HostConfiguration` (r:1 w:0) + // Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1) + // Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn transfer_from_crowdloan_vault() -> Weight { // Proof Size summary in bytes: // Measured: `1255` - // Estimated: `11689` - // Minimum execution time: 32_468 nanoseconds. - Weight::from_parts(33_256_000, 11689) + // Estimated: `4720` + // Minimum execution time: 25_881 nanoseconds. + Weight::from_parts(26_857_000, 4720) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(1)) } - + // Storage: `LiquidCrowdloan::RedeemCurrencyId` (r:0 w:1) + // Proof: `LiquidCrowdloan::RedeemCurrencyId` (`max_values`: Some(1), `max_size`: Some(43), added: 538, mode: `MaxEncodedLen`) fn set_redeem_currency_id() -> Weight { // Proof Size summary in bytes: - // Measured: `1255` - // Estimated: `11689` - // Minimum execution time: 32_468 nanoseconds. - Weight::from_parts(33_256_000, 11689) - .saturating_add(T::DbWeight::get().reads(4)) + // Measured: `1001` + // Estimated: `0` + // Minimum execution time: 11_747 nanoseconds. + Weight::from_parts(11_946_000, 0) .saturating_add(T::DbWeight::get().writes(1)) } } diff --git a/runtime/mandala/src/weights/module_nft.rs b/runtime/mandala/src/weights/module_nft.rs index 64a716e8ec..64ef8a6ad9 100644 --- a/runtime/mandala/src/weights/module_nft.rs +++ b/runtime/mandala/src/weights/module_nft.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for module_nft //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,141 +47,139 @@ use sp_std::marker::PhantomData; /// Weight functions for module_nft. pub struct WeightInfo(PhantomData); impl module_nft::WeightInfo for WeightInfo { - // Storage: OrmlNFT NextClassId (r:1 w:1) - // Proof Skipped: OrmlNFT NextClassId (max_values: Some(1), max_size: None, mode: Measured) - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Balances Reserves (r:1 w:1) - // Proof: Balances Reserves (max_values: None, max_size: Some(168), added: 2643, mode: MaxEncodedLen) - // Storage: Proxy Proxies (r:1 w:1) - // Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen) - // Storage: OrmlNFT Classes (r:0 w:1) - // Proof Skipped: OrmlNFT Classes (max_values: None, max_size: None, mode: Measured) + // Storage: `OrmlNFT::NextClassId` (r:1 w:1) + // Proof: `OrmlNFT::NextClassId` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `System::Account` (r:2 w:2) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Balances::Reserves` (r:1 w:1) + // Proof: `Balances::Reserves` (`max_values`: None, `max_size`: Some(168), added: 2643, mode: `MaxEncodedLen`) + // Storage: `Proxy::Proxies` (r:1 w:1) + // Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`) + // Storage: `OrmlNFT::Classes` (r:0 w:1) + // Proof: `OrmlNFT::Classes` (`max_values`: None, `max_size`: None, mode: `Measured`) fn create_class() -> Weight { // Proof Size summary in bytes: // Measured: `716` - // Estimated: `17452` - // Minimum execution time: 78_464 nanoseconds. - Weight::from_parts(80_077_000, 17452) + // Estimated: `6196` + // Minimum execution time: 78_315 nanoseconds. + Weight::from_parts(79_998_000, 6196) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(6)) } - // Storage: OrmlNFT Classes (r:1 w:1) - // Proof Skipped: OrmlNFT Classes (max_values: None, max_size: None, mode: Measured) - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Balances Reserves (r:1 w:1) - // Proof: Balances Reserves (max_values: None, max_size: Some(168), added: 2643, mode: MaxEncodedLen) - // Storage: OrmlNFT NextTokenId (r:1 w:1) - // Proof Skipped: OrmlNFT NextTokenId (max_values: None, max_size: None, mode: Measured) - // Storage: OrmlNFT Tokens (r:0 w:999) - // Proof Skipped: OrmlNFT Tokens (max_values: None, max_size: None, mode: Measured) - // Storage: OrmlNFT TokensByOwner (r:0 w:999) - // Proof Skipped: OrmlNFT TokensByOwner (max_values: None, max_size: None, mode: Measured) + // Storage: `OrmlNFT::Classes` (r:1 w:1) + // Proof: `OrmlNFT::Classes` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `System::Account` (r:2 w:2) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Balances::Reserves` (r:1 w:1) + // Proof: `Balances::Reserves` (`max_values`: None, `max_size`: Some(168), added: 2643, mode: `MaxEncodedLen`) + // Storage: `OrmlNFT::NextTokenId` (r:1 w:1) + // Proof: `OrmlNFT::NextTokenId` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `OrmlNFT::Tokens` (r:0 w:999) + // Proof: `OrmlNFT::Tokens` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `OrmlNFT::TokensByOwner` (r:0 w:999) + // Proof: `OrmlNFT::TokensByOwner` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `i` is `[1, 1000]`. fn mint(i: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `2903` - // Estimated: `28371` - // Minimum execution time: 95_574 nanoseconds. - Weight::from_parts(45_413_603, 28371) - // Standard Error: 8_021 - .saturating_add(Weight::from_parts(23_698_863, 0).saturating_mul(i.into())) + // Estimated: `6368` + // Minimum execution time: 100_289 nanoseconds. + Weight::from_parts(55_726_035, 6368) + // Standard Error: 15_795 + .saturating_add(Weight::from_parts(23_413_028, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(5)) .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(i.into()))) } - // Storage: OrmlNFT Classes (r:1 w:0) - // Proof Skipped: OrmlNFT Classes (max_values: None, max_size: None, mode: Measured) - // Storage: OrmlNFT Tokens (r:1 w:1) - // Proof Skipped: OrmlNFT Tokens (max_values: None, max_size: None, mode: Measured) - // Storage: Balances Reserves (r:2 w:2) - // Proof: Balances Reserves (max_values: None, max_size: Some(168), added: 2643, mode: MaxEncodedLen) - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: EvmAccounts EvmAddresses (r:1 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: OrmlNFT TokensByOwner (r:0 w:2) - // Proof Skipped: OrmlNFT TokensByOwner (max_values: None, max_size: None, mode: Measured) + // Storage: `OrmlNFT::Classes` (r:1 w:0) + // Proof: `OrmlNFT::Classes` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `OrmlNFT::Tokens` (r:1 w:1) + // Proof: `OrmlNFT::Tokens` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `System::Account` (r:2 w:2) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Balances::Reserves` (r:2 w:2) + // Proof: `Balances::Reserves` (`max_values`: None, `max_size`: Some(168), added: 2643, mode: `MaxEncodedLen`) + // Storage: `OrmlNFT::TokensByOwner` (r:0 w:2) + // Proof: `OrmlNFT::TokensByOwner` (`max_values`: None, `max_size`: None, mode: `Measured`) fn transfer() -> Weight { // Proof Size summary in bytes: - // Measured: `5219` - // Estimated: `38584` - // Minimum execution time: 102_869 nanoseconds. - Weight::from_parts(105_560_000, 38584) - .saturating_add(T::DbWeight::get().reads(7)) + // Measured: `5215` + // Estimated: `8680` + // Minimum execution time: 106_905 nanoseconds. + Weight::from_parts(107_936_000, 8680) + .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(7)) } - // Storage: OrmlNFT Classes (r:1 w:1) - // Proof Skipped: OrmlNFT Classes (max_values: None, max_size: None, mode: Measured) - // Storage: OrmlNFT Tokens (r:1 w:1) - // Proof Skipped: OrmlNFT Tokens (max_values: None, max_size: None, mode: Measured) - // Storage: Balances Reserves (r:1 w:1) - // Proof: Balances Reserves (max_values: None, max_size: Some(168), added: 2643, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: OrmlNFT TokensByOwner (r:0 w:1) - // Proof Skipped: OrmlNFT TokensByOwner (max_values: None, max_size: None, mode: Measured) + // Storage: `OrmlNFT::Classes` (r:1 w:1) + // Proof: `OrmlNFT::Classes` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `OrmlNFT::Tokens` (r:1 w:1) + // Proof: `OrmlNFT::Tokens` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Balances::Reserves` (r:1 w:1) + // Proof: `Balances::Reserves` (`max_values`: None, `max_size`: Some(168), added: 2643, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `OrmlNFT::TokensByOwner` (r:0 w:1) + // Proof: `OrmlNFT::TokensByOwner` (`max_values`: None, `max_size`: None, mode: `Measured`) fn burn() -> Weight { // Proof Size summary in bytes: // Measured: `5113` - // Estimated: `29495` - // Minimum execution time: 75_039 nanoseconds. - Weight::from_parts(76_612_000, 29495) + // Estimated: `8578` + // Minimum execution time: 73_013 nanoseconds. + Weight::from_parts(74_277_000, 8578) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(5)) } - // Storage: OrmlNFT Classes (r:1 w:1) - // Proof Skipped: OrmlNFT Classes (max_values: None, max_size: None, mode: Measured) - // Storage: OrmlNFT Tokens (r:1 w:1) - // Proof Skipped: OrmlNFT Tokens (max_values: None, max_size: None, mode: Measured) - // Storage: Balances Reserves (r:1 w:1) - // Proof: Balances Reserves (max_values: None, max_size: Some(168), added: 2643, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: OrmlNFT TokensByOwner (r:0 w:1) - // Proof Skipped: OrmlNFT TokensByOwner (max_values: None, max_size: None, mode: Measured) + // Storage: `OrmlNFT::Classes` (r:1 w:1) + // Proof: `OrmlNFT::Classes` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `OrmlNFT::Tokens` (r:1 w:1) + // Proof: `OrmlNFT::Tokens` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Balances::Reserves` (r:1 w:1) + // Proof: `Balances::Reserves` (`max_values`: None, `max_size`: Some(168), added: 2643, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `OrmlNFT::TokensByOwner` (r:0 w:1) + // Proof: `OrmlNFT::TokensByOwner` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `b` is `[0, 3670016]`. fn burn_with_remark(b: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `5113` - // Estimated: `29495` - // Minimum execution time: 75_896 nanoseconds. - Weight::from_parts(76_913_000, 29495) + // Estimated: `8578` + // Minimum execution time: 73_130 nanoseconds. + Weight::from_parts(73_819_000, 8578) // Standard Error: 2 - .saturating_add(Weight::from_parts(1_739, 0).saturating_mul(b.into())) + .saturating_add(Weight::from_parts(1_672, 0).saturating_mul(b.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(5)) } - // Storage: OrmlNFT Classes (r:1 w:1) - // Proof Skipped: OrmlNFT Classes (max_values: None, max_size: None, mode: Measured) - // Storage: Balances Reserves (r:1 w:1) - // Proof: Balances Reserves (max_values: None, max_size: Some(168), added: 2643, mode: MaxEncodedLen) - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Proxy Proxies (r:1 w:1) - // Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen) - // Storage: EvmAccounts EvmAddresses (r:1 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: OrmlNFT NextTokenId (r:0 w:1) - // Proof Skipped: OrmlNFT NextTokenId (max_values: None, max_size: None, mode: Measured) + // Storage: `OrmlNFT::Classes` (r:1 w:1) + // Proof: `OrmlNFT::Classes` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Balances::Reserves` (r:1 w:1) + // Proof: `Balances::Reserves` (`max_values`: None, `max_size`: Some(168), added: 2643, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:2 w:2) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Proxy::Proxies` (r:1 w:1) + // Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`) + // Storage: `EvmAccounts::EvmAddresses` (r:1 w:0) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `OrmlNFT::NextTokenId` (r:0 w:1) + // Proof: `OrmlNFT::NextTokenId` (`max_values`: None, `max_size`: None, mode: `Measured`) fn destroy_class() -> Weight { // Proof Size summary in bytes: // Measured: `3177` - // Estimated: `27879` - // Minimum execution time: 92_244 nanoseconds. - Weight::from_parts(94_406_000, 27879) + // Estimated: `6642` + // Minimum execution time: 99_428 nanoseconds. + Weight::from_parts(101_769_000, 6642) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(6)) } - // Storage: OrmlNFT Classes (r:1 w:1) - // Proof Skipped: OrmlNFT Classes (max_values: None, max_size: None, mode: Measured) + // Storage: `OrmlNFT::Classes` (r:1 w:1) + // Proof: `OrmlNFT::Classes` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_class_properties() -> Weight { // Proof Size summary in bytes: // Measured: `2339` // Estimated: `5804` - // Minimum execution time: 20_234 nanoseconds. - Weight::from_parts(20_645_000, 5804) + // Minimum execution time: 17_635 nanoseconds. + Weight::from_parts(18_149_000, 5804) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/mandala/src/weights/module_nominees_election.rs b/runtime/mandala/src/weights/module_nominees_election.rs index bb98419ec5..e9f524c68a 100644 --- a/runtime/mandala/src/weights/module_nominees_election.rs +++ b/runtime/mandala/src/weights/module_nominees_election.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for module_nominees_election //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,115 +47,117 @@ use sp_std::marker::PhantomData; /// Weight functions for module_nominees_election. pub struct WeightInfo(PhantomData); impl module_nominees_election::WeightInfo for WeightInfo { - // Storage: NomineesElection Ledger (r:1 w:1) - // Proof Skipped: NomineesElection Ledger (max_values: None, max_size: None, mode: Measured) - // Storage: Tokens Accounts (r:1 w:1) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: Tokens Locks (r:1 w:1) - // Proof: Tokens Locks (max_values: None, max_size: Some(1300), added: 3775, mode: MaxEncodedLen) - // Storage: NomineesElection Nominations (r:1 w:0) - // Proof Skipped: NomineesElection Nominations (max_values: None, max_size: None, mode: Measured) + // Storage: `NomineesElection::Ledger` (r:1 w:1) + // Proof: `NomineesElection::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Tokens::Accounts` (r:1 w:1) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `Tokens::Locks` (r:1 w:1) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1300), added: 3775, mode: `MaxEncodedLen`) + // Storage: `NomineesElection::Nominations` (r:1 w:0) + // Proof: `NomineesElection::Nominations` (`max_values`: None, `max_size`: None, mode: `Measured`) fn bond() -> Weight { // Proof Size summary in bytes: - // Measured: `2390` - // Estimated: `20087` - // Minimum execution time: 51_752 nanoseconds. - Weight::from_parts(52_724_000, 20087) + // Measured: `2426` + // Estimated: `5891` + // Minimum execution time: 42_505 nanoseconds. + Weight::from_parts(43_748_000, 5891) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } - // Storage: NomineesElection CurrentEra (r:1 w:0) - // Proof Skipped: NomineesElection CurrentEra (max_values: Some(1), max_size: None, mode: Measured) - // Storage: NomineesElection Ledger (r:1 w:1) - // Proof Skipped: NomineesElection Ledger (max_values: None, max_size: None, mode: Measured) - // Storage: Tokens Locks (r:1 w:1) - // Proof: Tokens Locks (max_values: None, max_size: Some(1300), added: 3775, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:1 w:1) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: NomineesElection Nominations (r:1 w:0) - // Proof Skipped: NomineesElection Nominations (max_values: None, max_size: None, mode: Measured) + // Storage: `NomineesElection::CurrentEra` (r:1 w:0) + // Proof: `NomineesElection::CurrentEra` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `NomineesElection::Ledger` (r:1 w:1) + // Proof: `NomineesElection::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Tokens::Locks` (r:1 w:1) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1300), added: 3775, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:1 w:1) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `NomineesElection::Nominations` (r:1 w:0) + // Proof: `NomineesElection::Nominations` (`max_values`: None, `max_size`: None, mode: `Measured`) fn unbond() -> Weight { // Proof Size summary in bytes: - // Measured: `1864` - // Estimated: `22384` - // Minimum execution time: 44_308 nanoseconds. - Weight::from_parts(45_826_000, 22384) + // Measured: `1900` + // Estimated: `5365` + // Minimum execution time: 37_198 nanoseconds. + Weight::from_parts(37_955_000, 5365) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(3)) } - // Storage: NomineesElection Ledger (r:1 w:1) - // Proof Skipped: NomineesElection Ledger (max_values: None, max_size: None, mode: Measured) - // Storage: Tokens Locks (r:1 w:1) - // Proof: Tokens Locks (max_values: None, max_size: Some(1300), added: 3775, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:1 w:1) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: NomineesElection Nominations (r:1 w:0) - // Proof Skipped: NomineesElection Nominations (max_values: None, max_size: None, mode: Measured) + // Storage: `NomineesElection::Ledger` (r:1 w:1) + // Proof: `NomineesElection::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Tokens::Locks` (r:1 w:1) + // Proof: `Tokens::Locks` (`max_values`: None, `max_size`: Some(1300), added: 3775, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:1 w:1) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `NomineesElection::Nominations` (r:1 w:0) + // Proof: `NomineesElection::Nominations` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `c` is `[1, 7]`. - fn rebond(_c: u32, ) -> Weight { + fn rebond(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1884` - // Estimated: `19075` - // Minimum execution time: 46_789 nanoseconds. - Weight::from_parts(48_810_907, 19075) + // Measured: `1920` + // Estimated: `5385` + // Minimum execution time: 38_312 nanoseconds. + Weight::from_parts(39_489_871, 5385) + // Standard Error: 8_500 + .saturating_add(Weight::from_parts(51_131, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } - // Storage: NomineesElection CurrentEra (r:1 w:0) - // Proof Skipped: NomineesElection CurrentEra (max_values: Some(1), max_size: None, mode: Measured) - // Storage: NomineesElection Ledger (r:1 w:0) - // Proof Skipped: NomineesElection Ledger (max_values: None, max_size: None, mode: Measured) + // Storage: `NomineesElection::CurrentEra` (r:1 w:0) + // Proof: `NomineesElection::CurrentEra` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `NomineesElection::Ledger` (r:1 w:0) + // Proof: `NomineesElection::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `c` is `[1, 7]`. fn withdraw_unbonded(c: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `1012` - // Estimated: `6974` - // Minimum execution time: 15_408 nanoseconds. - Weight::from_parts(16_119_782, 6974) - // Standard Error: 4_544 - .saturating_add(Weight::from_parts(27_741, 0).saturating_mul(c.into())) + // Estimated: `4477` + // Minimum execution time: 12_833 nanoseconds. + Weight::from_parts(13_428_726, 4477) + // Standard Error: 2_718 + .saturating_add(Weight::from_parts(10_670, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) } - // Storage: NomineesElection Ledger (r:1 w:0) - // Proof Skipped: NomineesElection Ledger (max_values: None, max_size: None, mode: Measured) - // Storage: NomineesElection Nominations (r:1 w:1) - // Proof Skipped: NomineesElection Nominations (max_values: None, max_size: None, mode: Measured) - // Storage: NomineesElection Votes (r:7 w:7) - // Proof Skipped: NomineesElection Votes (max_values: None, max_size: None, mode: Measured) + // Storage: `NomineesElection::Ledger` (r:1 w:0) + // Proof: `NomineesElection::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `NomineesElection::Nominations` (r:1 w:1) + // Proof: `NomineesElection::Nominations` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `NomineesElection::Votes` (r:7 w:7) + // Proof: `NomineesElection::Votes` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `c` is `[1, 7]`. fn nominate(c: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `944` - // Estimated: `10752 + c * (2475 ±0)` - // Minimum execution time: 18_083 nanoseconds. - Weight::from_parts(16_982_237, 10752) - // Standard Error: 5_923 - .saturating_add(Weight::from_parts(1_985_018, 0).saturating_mul(c.into())) + // Estimated: `4409 + c * (2475 ±0)` + // Minimum execution time: 15_435 nanoseconds. + Weight::from_parts(14_435_638, 4409) + // Standard Error: 4_274 + .saturating_add(Weight::from_parts(1_610_409, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) .saturating_add(Weight::from_parts(0, 2475).saturating_mul(c.into())) } - // Storage: NomineesElection Ledger (r:1 w:0) - // Proof Skipped: NomineesElection Ledger (max_values: None, max_size: None, mode: Measured) - // Storage: NomineesElection Nominations (r:1 w:1) - // Proof Skipped: NomineesElection Nominations (max_values: None, max_size: None, mode: Measured) - // Storage: NomineesElection Votes (r:7 w:7) - // Proof Skipped: NomineesElection Votes (max_values: None, max_size: None, mode: Measured) + // Storage: `NomineesElection::Ledger` (r:1 w:0) + // Proof: `NomineesElection::Ledger` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `NomineesElection::Nominations` (r:1 w:1) + // Proof: `NomineesElection::Nominations` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `NomineesElection::Votes` (r:7 w:7) + // Proof: `NomineesElection::Votes` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `c` is `[1, 7]`. fn chill(c: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `1030 + c * (95 ±0)` - // Estimated: `11013 + c * (2760 ±0)` - // Minimum execution time: 20_718 nanoseconds. - Weight::from_parts(18_784_416, 11013) - // Standard Error: 13_881 - .saturating_add(Weight::from_parts(3_723_048, 0).saturating_mul(c.into())) + // Estimated: `4496 + c * (2570 ±0)` + // Minimum execution time: 18_571 nanoseconds. + Weight::from_parts(16_544_031, 4496) + // Standard Error: 14_536 + .saturating_add(Weight::from_parts(3_358_687, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) - .saturating_add(Weight::from_parts(0, 2760).saturating_mul(c.into())) + .saturating_add(Weight::from_parts(0, 2570).saturating_mul(c.into())) } } diff --git a/runtime/mandala/src/weights/module_prices.rs b/runtime/mandala/src/weights/module_prices.rs index 729b916727..49c4b86bf5 100644 --- a/runtime/mandala/src/weights/module_prices.rs +++ b/runtime/mandala/src/weights/module_prices.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for module_prices //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,29 +47,29 @@ use sp_std::marker::PhantomData; /// Weight functions for module_prices. pub struct WeightInfo(PhantomData); impl module_prices::WeightInfo for WeightInfo { - // Storage: AcalaOracle Values (r:1 w:0) - // Proof: AcalaOracle Values (max_values: None, max_size: Some(75), added: 2550, mode: MaxEncodedLen) - // Storage: AssetRegistry AssetMetadatas (r:1 w:0) - // Proof Skipped: AssetRegistry AssetMetadatas (max_values: None, max_size: None, mode: Measured) - // Storage: Prices LockedPrice (r:0 w:1) - // Proof: Prices LockedPrice (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) + // Storage: `AcalaOracle::Values` (r:1 w:0) + // Proof: `AcalaOracle::Values` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`) + // Storage: `AssetRegistry::AssetMetadatas` (r:1 w:0) + // Proof: `AssetRegistry::AssetMetadatas` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Prices::LockedPrice` (r:0 w:1) + // Proof: `Prices::LockedPrice` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) fn lock_price() -> Weight { // Proof Size summary in bytes: - // Measured: `1457` - // Estimated: `8462` - // Minimum execution time: 28_688 nanoseconds. - Weight::from_parts(29_297_000, 8462) + // Measured: `1460` + // Estimated: `4925` + // Minimum execution time: 23_062 nanoseconds. + Weight::from_parts(23_660_000, 4925) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: Prices LockedPrice (r:1 w:1) - // Proof: Prices LockedPrice (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) + // Storage: `Prices::LockedPrice` (r:1 w:1) + // Proof: `Prices::LockedPrice` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) fn unlock_price() -> Weight { // Proof Size summary in bytes: - // Measured: `1091` + // Measured: `1160` // Estimated: `3532` - // Minimum execution time: 22_042 nanoseconds. - Weight::from_parts(22_870_000, 3532) + // Minimum execution time: 17_337 nanoseconds. + Weight::from_parts(17_763_000, 3532) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/mandala/src/weights/module_session_manager.rs b/runtime/mandala/src/weights/module_session_manager.rs index 5e6e4baf7e..9c958d672d 100644 --- a/runtime/mandala/src/weights/module_session_manager.rs +++ b/runtime/mandala/src/weights/module_session_manager.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for module_session_manager //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,71 +47,71 @@ use sp_std::marker::PhantomData; /// Weight functions for module_session_manager. pub struct WeightInfo(PhantomData); impl module_session_manager::WeightInfo for WeightInfo { - // Storage: Session CurrentIndex (r:1 w:0) - // Proof Skipped: Session CurrentIndex (max_values: Some(1), max_size: None, mode: Measured) - // Storage: SessionManager SessionDuration (r:1 w:0) - // Proof: SessionManager SessionDuration (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - // Storage: SessionManager DurationOffset (r:1 w:0) - // Proof: SessionManager DurationOffset (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - // Storage: SessionManager SessionDurationChanges (r:0 w:1) - // Proof: SessionManager SessionDurationChanges (max_values: None, max_size: Some(20), added: 2495, mode: MaxEncodedLen) + // Storage: `Session::CurrentIndex` (r:1 w:0) + // Proof: `Session::CurrentIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `SessionManager::SessionDuration` (r:1 w:0) + // Proof: `SessionManager::SessionDuration` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + // Storage: `SessionManager::DurationOffset` (r:1 w:0) + // Proof: `SessionManager::DurationOffset` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + // Storage: `SessionManager::SessionDurationChanges` (r:0 w:1) + // Proof: `SessionManager::SessionDurationChanges` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`) fn schedule_session_duration() -> Weight { // Proof Size summary in bytes: - // Measured: `1491` - // Estimated: `5954` - // Minimum execution time: 24_897 nanoseconds. - Weight::from_parts(25_431_000, 5954) + // Measured: `1560` + // Estimated: `3045` + // Minimum execution time: 19_740 nanoseconds. + Weight::from_parts(20_320_000, 3045) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: SessionManager SessionDurationChanges (r:1 w:1) - // Proof: SessionManager SessionDurationChanges (max_values: None, max_size: Some(20), added: 2495, mode: MaxEncodedLen) + // Storage: `SessionManager::SessionDurationChanges` (r:1 w:1) + // Proof: `SessionManager::SessionDurationChanges` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`) fn on_initialize_skip() -> Weight { // Proof Size summary in bytes: // Measured: `809` // Estimated: `3485` - // Minimum execution time: 5_784 nanoseconds. - Weight::from_parts(6_198_000, 3485) + // Minimum execution time: 5_787 nanoseconds. + Weight::from_parts(5_994_000, 3485) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: SessionManager SessionDurationChanges (r:1 w:1) - // Proof: SessionManager SessionDurationChanges (max_values: None, max_size: Some(20), added: 2495, mode: MaxEncodedLen) - // Storage: SessionManager DurationOffset (r:0 w:1) - // Proof: SessionManager DurationOffset (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - // Storage: SessionManager SessionDuration (r:0 w:1) - // Proof: SessionManager SessionDuration (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + // Storage: `SessionManager::SessionDurationChanges` (r:1 w:1) + // Proof: `SessionManager::SessionDurationChanges` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`) + // Storage: `SessionManager::DurationOffset` (r:0 w:1) + // Proof: `SessionManager::DurationOffset` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + // Storage: `SessionManager::SessionDuration` (r:0 w:1) + // Proof: `SessionManager::SessionDuration` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn on_initialize() -> Weight { // Proof Size summary in bytes: // Measured: `809` // Estimated: `3485` - // Minimum execution time: 7_005 nanoseconds. - Weight::from_parts(7_208_000, 3485) + // Minimum execution time: 6_025 nanoseconds. + Weight::from_parts(6_505_000, 3485) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(3)) } - // Storage: SessionManager DurationOffset (r:1 w:0) - // Proof: SessionManager DurationOffset (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - // Storage: SessionManager SessionDuration (r:1 w:0) - // Proof: SessionManager SessionDuration (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + // Storage: `SessionManager::DurationOffset` (r:1 w:0) + // Proof: `SessionManager::DurationOffset` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + // Storage: `SessionManager::SessionDuration` (r:1 w:0) + // Proof: `SessionManager::SessionDuration` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn estimate_current_session_progress() -> Weight { // Proof Size summary in bytes: // Measured: `769` - // Estimated: `2978` - // Minimum execution time: 5_038 nanoseconds. - Weight::from_parts(5_100_000, 2978) + // Estimated: `1489` + // Minimum execution time: 4_319 nanoseconds. + Weight::from_parts(4_461_000, 1489) .saturating_add(T::DbWeight::get().reads(2)) } - // Storage: SessionManager DurationOffset (r:1 w:0) - // Proof: SessionManager DurationOffset (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - // Storage: SessionManager SessionDuration (r:1 w:0) - // Proof: SessionManager SessionDuration (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + // Storage: `SessionManager::DurationOffset` (r:1 w:0) + // Proof: `SessionManager::DurationOffset` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) + // Storage: `SessionManager::SessionDuration` (r:1 w:0) + // Proof: `SessionManager::SessionDuration` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn estimate_next_session_rotation() -> Weight { // Proof Size summary in bytes: // Measured: `769` - // Estimated: `2978` - // Minimum execution time: 5_007 nanoseconds. - Weight::from_parts(5_154_000, 2978) + // Estimated: `1489` + // Minimum execution time: 4_198 nanoseconds. + Weight::from_parts(4_408_000, 1489) .saturating_add(T::DbWeight::get().reads(2)) } } diff --git a/runtime/mandala/src/weights/module_transaction_pause.rs b/runtime/mandala/src/weights/module_transaction_pause.rs index 157cac1eb6..cb4d8a29d4 100644 --- a/runtime/mandala/src/weights/module_transaction_pause.rs +++ b/runtime/mandala/src/weights/module_transaction_pause.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for module_transaction_pause //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,47 +47,47 @@ use sp_std::marker::PhantomData; /// Weight functions for module_transaction_pause. pub struct WeightInfo(PhantomData); impl module_transaction_pause::WeightInfo for WeightInfo { - // Storage: TransactionPause PausedTransactions (r:1 w:1) - // Proof Skipped: TransactionPause PausedTransactions (max_values: None, max_size: None, mode: Measured) + // Storage: `TransactionPause::PausedTransactions` (r:1 w:1) + // Proof: `TransactionPause::PausedTransactions` (`max_values`: None, `max_size`: None, mode: `Measured`) fn pause_transaction() -> Weight { // Proof Size summary in bytes: - // Measured: `1140` - // Estimated: `4605` - // Minimum execution time: 20_637 nanoseconds. - Weight::from_parts(21_156_000, 4605) + // Measured: `1176` + // Estimated: `4641` + // Minimum execution time: 15_406 nanoseconds. + Weight::from_parts(15_618_000, 4641) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: TransactionPause PausedTransactions (r:1 w:1) - // Proof Skipped: TransactionPause PausedTransactions (max_values: None, max_size: None, mode: Measured) + // Storage: `TransactionPause::PausedTransactions` (r:1 w:1) + // Proof: `TransactionPause::PausedTransactions` (`max_values`: None, `max_size`: None, mode: `Measured`) fn unpause_transaction() -> Weight { // Proof Size summary in bytes: - // Measured: `1191` - // Estimated: `4656` - // Minimum execution time: 22_079 nanoseconds. - Weight::from_parts(22_754_000, 4656) + // Measured: `1227` + // Estimated: `4692` + // Minimum execution time: 16_618 nanoseconds. + Weight::from_parts(17_249_000, 4692) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: TransactionPause PausedEvmPrecompiles (r:1 w:1) - // Proof Skipped: TransactionPause PausedEvmPrecompiles (max_values: None, max_size: None, mode: Measured) + // Storage: `TransactionPause::PausedEvmPrecompiles` (r:1 w:1) + // Proof: `TransactionPause::PausedEvmPrecompiles` (`max_values`: None, `max_size`: None, mode: `Measured`) fn pause_evm_precompile() -> Weight { // Proof Size summary in bytes: - // Measured: `1140` - // Estimated: `4605` - // Minimum execution time: 20_398 nanoseconds. - Weight::from_parts(20_900_000, 4605) + // Measured: `1176` + // Estimated: `4641` + // Minimum execution time: 15_324 nanoseconds. + Weight::from_parts(15_794_000, 4641) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: TransactionPause PausedEvmPrecompiles (r:1 w:1) - // Proof Skipped: TransactionPause PausedEvmPrecompiles (max_values: None, max_size: None, mode: Measured) + // Storage: `TransactionPause::PausedEvmPrecompiles` (r:1 w:1) + // Proof: `TransactionPause::PausedEvmPrecompiles` (`max_values`: None, `max_size`: None, mode: `Measured`) fn unpause_evm_precompile() -> Weight { // Proof Size summary in bytes: - // Measured: `1201` - // Estimated: `4666` - // Minimum execution time: 21_350 nanoseconds. - Weight::from_parts(22_405_000, 4666) + // Measured: `1237` + // Estimated: `4702` + // Minimum execution time: 17_039 nanoseconds. + Weight::from_parts(17_483_000, 4702) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/mandala/src/weights/module_transaction_payment.rs b/runtime/mandala/src/weights/module_transaction_payment.rs index 9f5a8ca14d..a9f42b721a 100644 --- a/runtime/mandala/src/weights/module_transaction_payment.rs +++ b/runtime/mandala/src/weights/module_transaction_payment.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for module_transaction_payment //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,107 +47,107 @@ use sp_std::marker::PhantomData; /// Weight functions for module_transaction_payment. pub struct WeightInfo(PhantomData); impl module_transaction_payment::WeightInfo for WeightInfo { - // Storage: Balances Reserves (r:1 w:1) - // Proof: Balances Reserves (max_values: None, max_size: Some(168), added: 2643, mode: MaxEncodedLen) - // Storage: TransactionPayment AlternativeFeeSwapPath (r:0 w:1) - // Proof: TransactionPayment AlternativeFeeSwapPath (max_values: None, max_size: Some(213), added: 2688, mode: MaxEncodedLen) + // Storage: `Balances::Reserves` (r:1 w:1) + // Proof: `Balances::Reserves` (`max_values`: None, `max_size`: Some(168), added: 2643, mode: `MaxEncodedLen`) + // Storage: `TransactionPayment::AlternativeFeeSwapPath` (r:0 w:1) + // Proof: `TransactionPayment::AlternativeFeeSwapPath` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_alternative_fee_swap_path() -> Weight { // Proof Size summary in bytes: - // Measured: `2061` + // Measured: `2130` // Estimated: `3633` - // Minimum execution time: 34_829 nanoseconds. - Weight::from_parts(35_642_000, 3633) + // Minimum execution time: 32_381 nanoseconds. + Weight::from_parts(32_822_000, 3633) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(2)) } - // Storage: TransactionPayment PoolSize (r:1 w:1) - // Proof: TransactionPayment PoolSize (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Dex TradingPairStatuses (r:3 w:0) - // Proof: Dex TradingPairStatuses (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - // Storage: Dex LiquidityPool (r:2 w:0) - // Proof: Dex LiquidityPool (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen) - // Storage: StableAsset Pools (r:1 w:0) - // Proof Skipped: StableAsset Pools (max_values: None, max_size: None, mode: Measured) - // Storage: AggregatedDex AggregatedSwapPaths (r:1 w:0) - // Proof Skipped: AggregatedDex AggregatedSwapPaths (max_values: None, max_size: None, mode: Measured) - // Storage: Tokens Accounts (r:2 w:2) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: TransactionPayment TokenExchangeRate (r:0 w:1) - // Proof: TransactionPayment TokenExchangeRate (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: TransactionPayment SwapBalanceThreshold (r:0 w:1) - // Proof: TransactionPayment SwapBalanceThreshold (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) + // Storage: `TransactionPayment::PoolSize` (r:1 w:1) + // Proof: `TransactionPayment::PoolSize` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Dex::TradingPairStatuses` (r:3 w:0) + // Proof: `Dex::TradingPairStatuses` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + // Storage: `Dex::LiquidityPool` (r:2 w:0) + // Proof: `Dex::LiquidityPool` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) + // Storage: `StableAsset::Pools` (r:1 w:0) + // Proof: `StableAsset::Pools` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `AggregatedDex::AggregatedSwapPaths` (r:1 w:0) + // Proof: `AggregatedDex::AggregatedSwapPaths` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Tokens::Accounts` (r:2 w:2) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `TransactionPayment::TokenExchangeRate` (r:0 w:1) + // Proof: `TransactionPayment::TokenExchangeRate` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `TransactionPayment::SwapBalanceThreshold` (r:0 w:1) + // Proof: `TransactionPayment::SwapBalanceThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) fn enable_charge_fee_pool() -> Weight { // Proof Size summary in bytes: - // Measured: `3044` - // Estimated: `41569` - // Minimum execution time: 113_226 nanoseconds. - Weight::from_parts(117_359_000, 41569) + // Measured: `3247` + // Estimated: `9000` + // Minimum execution time: 105_460 nanoseconds. + Weight::from_parts(107_588_000, 9000) .saturating_add(T::DbWeight::get().reads(11)) .saturating_add(T::DbWeight::get().writes(6)) } - // Storage: TransactionPayment TokenExchangeRate (r:1 w:1) - // Proof: TransactionPayment TokenExchangeRate (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:2 w:2) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: EvmAccounts EvmAddresses (r:1 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: TransactionPayment SwapBalanceThreshold (r:0 w:1) - // Proof: TransactionPayment SwapBalanceThreshold (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: TransactionPayment GlobalFeeSwapPath (r:0 w:1) - // Proof: TransactionPayment GlobalFeeSwapPath (max_values: None, max_size: Some(224), added: 2699, mode: MaxEncodedLen) - // Storage: TransactionPayment PoolSize (r:0 w:1) - // Proof: TransactionPayment PoolSize (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) + // Storage: `TransactionPayment::TokenExchangeRate` (r:1 w:1) + // Proof: `TransactionPayment::TokenExchangeRate` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `Tokens::Accounts` (r:2 w:2) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `EvmAccounts::EvmAddresses` (r:1 w:0) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `TransactionPayment::SwapBalanceThreshold` (r:0 w:1) + // Proof: `TransactionPayment::SwapBalanceThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `TransactionPayment::GlobalFeeSwapPath` (r:0 w:1) + // Proof: `TransactionPayment::GlobalFeeSwapPath` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `TransactionPayment::PoolSize` (r:0 w:1) + // Proof: `TransactionPayment::PoolSize` (`max_values`: None, `max_size`: None, mode: `Measured`) fn disable_charge_fee_pool() -> Weight { // Proof Size summary in bytes: - // Measured: `2670` - // Estimated: `16884` - // Minimum execution time: 87_567 nanoseconds. - Weight::from_parts(90_356_000, 16884) + // Measured: `2817` + // Estimated: `6282` + // Minimum execution time: 88_116 nanoseconds. + Weight::from_parts(89_676_000, 6282) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(7)) } - // Storage: TransactionPause PausedTransactions (r:1 w:0) - // Proof Skipped: TransactionPause PausedTransactions (max_values: None, max_size: None, mode: Measured) + // Storage: `TransactionPause::PausedTransactions` (r:1 w:0) + // Proof: `TransactionPause::PausedTransactions` (`max_values`: None, `max_size`: None, mode: `Measured`) fn with_fee_path() -> Weight { // Proof Size summary in bytes: // Measured: `841` // Estimated: `4306` - // Minimum execution time: 13_469 nanoseconds. - Weight::from_parts(14_120_000, 4306) + // Minimum execution time: 11_295 nanoseconds. + Weight::from_parts(11_456_000, 4306) .saturating_add(T::DbWeight::get().reads(1)) } - // Storage: TransactionPause PausedTransactions (r:1 w:0) - // Proof Skipped: TransactionPause PausedTransactions (max_values: None, max_size: None, mode: Measured) + // Storage: `TransactionPause::PausedTransactions` (r:1 w:0) + // Proof: `TransactionPause::PausedTransactions` (`max_values`: None, `max_size`: None, mode: `Measured`) fn with_fee_currency() -> Weight { // Proof Size summary in bytes: // Measured: `841` // Estimated: `4306` - // Minimum execution time: 14_008 nanoseconds. - Weight::from_parts(15_019_000, 4306) + // Minimum execution time: 11_926 nanoseconds. + Weight::from_parts(12_435_000, 4306) .saturating_add(T::DbWeight::get().reads(1)) } - // Storage: TransactionPause PausedTransactions (r:1 w:0) - // Proof Skipped: TransactionPause PausedTransactions (max_values: None, max_size: None, mode: Measured) + // Storage: `TransactionPause::PausedTransactions` (r:1 w:0) + // Proof: `TransactionPause::PausedTransactions` (`max_values`: None, `max_size`: None, mode: `Measured`) fn with_fee_aggregated_path() -> Weight { // Proof Size summary in bytes: // Measured: `841` // Estimated: `4306` - // Minimum execution time: 15_148 nanoseconds. - Weight::from_parts(16_360_000, 4306) + // Minimum execution time: 12_814 nanoseconds. + Weight::from_parts(13_263_000, 4306) .saturating_add(T::DbWeight::get().reads(1)) } - // Storage: TransactionPayment NextFeeMultiplier (r:1 w:1) - // Proof: TransactionPayment NextFeeMultiplier (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + // Storage: `TransactionPayment::NextFeeMultiplier` (r:1 w:1) + // Proof: `TransactionPayment::NextFeeMultiplier` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) fn on_finalize() -> Weight { // Proof Size summary in bytes: - // Measured: `923` - // Estimated: `1501` - // Minimum execution time: 10_337 nanoseconds. - Weight::from_parts(10_605_000, 1501) + // Measured: `959` + // Estimated: `2444` + // Minimum execution time: 8_285 nanoseconds. + Weight::from_parts(8_584_000, 2444) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/mandala/src/weights/nutsfinance_stable_asset.rs b/runtime/mandala/src/weights/nutsfinance_stable_asset.rs index 5cdc926a74..9e30171000 100644 --- a/runtime/mandala/src/weights/nutsfinance_stable_asset.rs +++ b/runtime/mandala/src/weights/nutsfinance_stable_asset.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for nutsfinance_stable_asset //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,202 +47,202 @@ use sp_std::marker::PhantomData; /// Weight functions for nutsfinance_stable_asset. pub struct WeightInfo(PhantomData); impl nutsfinance_stable_asset::WeightInfo for WeightInfo { - // Storage: StableAsset PoolCount (r:1 w:1) - // Proof Skipped: StableAsset PoolCount (max_values: Some(1), max_size: None, mode: Measured) - // Storage: StableAsset Pools (r:1 w:1) - // Proof Skipped: StableAsset Pools (max_values: None, max_size: None, mode: Measured) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + // Storage: `StableAsset::PoolCount` (r:1 w:1) + // Proof: `StableAsset::PoolCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `StableAsset::Pools` (r:1 w:1) + // Proof: `StableAsset::Pools` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn create_pool() -> Weight { // Proof Size summary in bytes: - // Measured: `1879` - // Estimated: `12301` - // Minimum execution time: 34_287 nanoseconds. - Weight::from_parts(34_917_000, 12301) + // Measured: `1915` + // Estimated: `5380` + // Minimum execution time: 24_951 nanoseconds. + Weight::from_parts(25_686_000, 5380) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } - // Storage: StableAsset Pools (r:1 w:1) - // Proof Skipped: StableAsset Pools (max_values: None, max_size: None, mode: Measured) + // Storage: `StableAsset::Pools` (r:1 w:1) + // Proof: `StableAsset::Pools` (`max_values`: None, `max_size`: None, mode: `Measured`) fn modify_a() -> Weight { // Proof Size summary in bytes: - // Measured: `1506` - // Estimated: `4971` - // Minimum execution time: 26_772 nanoseconds. - Weight::from_parts(27_910_000, 4971) + // Measured: `1542` + // Estimated: `5007` + // Minimum execution time: 20_128 nanoseconds. + Weight::from_parts(20_826_000, 5007) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: StableAsset Pools (r:1 w:1) - // Proof Skipped: StableAsset Pools (max_values: None, max_size: None, mode: Measured) + // Storage: `StableAsset::Pools` (r:1 w:1) + // Proof: `StableAsset::Pools` (`max_values`: None, `max_size`: None, mode: `Measured`) fn modify_fees() -> Weight { // Proof Size summary in bytes: - // Measured: `1506` - // Estimated: `4971` - // Minimum execution time: 25_656 nanoseconds. - Weight::from_parts(26_763_000, 4971) + // Measured: `1542` + // Estimated: `5007` + // Minimum execution time: 19_416 nanoseconds. + Weight::from_parts(19_904_000, 5007) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: StableAsset Pools (r:1 w:1) - // Proof Skipped: StableAsset Pools (max_values: None, max_size: None, mode: Measured) + // Storage: `StableAsset::Pools` (r:1 w:1) + // Proof: `StableAsset::Pools` (`max_values`: None, `max_size`: None, mode: `Measured`) fn modify_recipients() -> Weight { // Proof Size summary in bytes: - // Measured: `1506` - // Estimated: `4971` - // Minimum execution time: 25_742 nanoseconds. - Weight::from_parts(26_716_000, 4971) + // Measured: `1542` + // Estimated: `5007` + // Minimum execution time: 19_652 nanoseconds. + Weight::from_parts(20_179_000, 5007) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: StableAsset Pools (r:1 w:1) - // Proof Skipped: StableAsset Pools (max_values: None, max_size: None, mode: Measured) - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:10 w:10) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: Homa TotalStakingBonded (r:1 w:0) - // Proof Skipped: Homa TotalStakingBonded (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa ToBondPool (r:1 w:0) - // Proof Skipped: Homa ToBondPool (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Tokens TotalIssuance (r:2 w:1) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Homa TotalVoidLiquid (r:1 w:0) - // Proof Skipped: Homa TotalVoidLiquid (max_values: Some(1), max_size: None, mode: Measured) - // Storage: AssetRegistry AssetMetadatas (r:1 w:0) - // Proof Skipped: AssetRegistry AssetMetadatas (max_values: None, max_size: None, mode: Measured) + // Storage: `StableAsset::Pools` (r:1 w:1) + // Proof: `StableAsset::Pools` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `System::Account` (r:2 w:2) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:10 w:10) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `Homa::TotalStakingBonded` (r:1 w:0) + // Proof: `Homa::TotalStakingBonded` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::ToBondPool` (r:1 w:0) + // Proof: `Homa::ToBondPool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Tokens::TotalIssuance` (r:2 w:1) + // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Homa::TotalVoidLiquid` (r:1 w:0) + // Proof: `Homa::TotalVoidLiquid` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `AssetRegistry::AssetMetadatas` (r:1 w:0) + // Proof: `AssetRegistry::AssetMetadatas` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `u` is `[2, 5]`. fn mint(u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `3281 + u * (222 ±0)` - // Estimated: `37799 + u * (7250 ±2)` - // Minimum execution time: 162_357 nanoseconds. - Weight::from_parts(77_215_243, 37799) - // Standard Error: 407_378 - .saturating_add(Weight::from_parts(48_370_556, 0).saturating_mul(u.into())) + // Measured: `3676 + u * (150 ±0)` + // Estimated: `7153 + u * (5244 ±0)` + // Minimum execution time: 152_719 nanoseconds. + Weight::from_parts(84_441_531, 7153) + // Standard Error: 330_775 + .saturating_add(Weight::from_parts(38_606_336, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes(4)) .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(u.into()))) - .saturating_add(Weight::from_parts(0, 7250).saturating_mul(u.into())) + .saturating_add(Weight::from_parts(0, 5244).saturating_mul(u.into())) } - // Storage: StableAsset Pools (r:1 w:1) - // Proof Skipped: StableAsset Pools (max_values: None, max_size: None, mode: Measured) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:6 w:3) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: Homa TotalStakingBonded (r:1 w:0) - // Proof Skipped: Homa TotalStakingBonded (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa ToBondPool (r:1 w:0) - // Proof Skipped: Homa ToBondPool (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Tokens TotalIssuance (r:2 w:1) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Homa TotalVoidLiquid (r:1 w:0) - // Proof Skipped: Homa TotalVoidLiquid (max_values: Some(1), max_size: None, mode: Measured) - // Storage: AssetRegistry AssetMetadatas (r:1 w:0) - // Proof Skipped: AssetRegistry AssetMetadatas (max_values: None, max_size: None, mode: Measured) + // Storage: `StableAsset::Pools` (r:1 w:1) + // Proof: `StableAsset::Pools` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:6 w:3) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `Homa::TotalStakingBonded` (r:1 w:0) + // Proof: `Homa::TotalStakingBonded` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::ToBondPool` (r:1 w:0) + // Proof: `Homa::ToBondPool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Tokens::TotalIssuance` (r:2 w:1) + // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Homa::TotalVoidLiquid` (r:1 w:0) + // Proof: `Homa::TotalVoidLiquid` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `AssetRegistry::AssetMetadatas` (r:1 w:0) + // Proof: `AssetRegistry::AssetMetadatas` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `u` is `[2, 5]`. fn swap(u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `3206 + u * (221 ±0)` - // Estimated: `37437 + u * (4628 ±0)` - // Minimum execution time: 1_503_507 nanoseconds. - Weight::from_parts(177_409_847, 37437) - // Standard Error: 4_291_354 - .saturating_add(Weight::from_parts(722_027_873, 0).saturating_mul(u.into())) + // Measured: `3601 + u * (150 ±0)` + // Estimated: `7078 + u * (2622 ±0)` + // Minimum execution time: 1_883_941 nanoseconds. + Weight::from_parts(529_092_908, 7078) + // Standard Error: 5_305_635 + .saturating_add(Weight::from_parts(727_569_129, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes(6)) - .saturating_add(Weight::from_parts(0, 4628).saturating_mul(u.into())) + .saturating_add(Weight::from_parts(0, 2622).saturating_mul(u.into())) } - // Storage: StableAsset Pools (r:1 w:1) - // Proof Skipped: StableAsset Pools (max_values: None, max_size: None, mode: Measured) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:10 w:10) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: Homa TotalStakingBonded (r:1 w:0) - // Proof Skipped: Homa TotalStakingBonded (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa ToBondPool (r:1 w:0) - // Proof Skipped: Homa ToBondPool (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Tokens TotalIssuance (r:2 w:1) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Homa TotalVoidLiquid (r:1 w:0) - // Proof Skipped: Homa TotalVoidLiquid (max_values: Some(1), max_size: None, mode: Measured) - // Storage: AssetRegistry AssetMetadatas (r:1 w:0) - // Proof Skipped: AssetRegistry AssetMetadatas (max_values: None, max_size: None, mode: Measured) + // Storage: `StableAsset::Pools` (r:1 w:1) + // Proof: `StableAsset::Pools` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:10 w:10) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `Homa::TotalStakingBonded` (r:1 w:0) + // Proof: `Homa::TotalStakingBonded` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::ToBondPool` (r:1 w:0) + // Proof: `Homa::ToBondPool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Tokens::TotalIssuance` (r:2 w:1) + // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Homa::TotalVoidLiquid` (r:1 w:0) + // Proof: `Homa::TotalVoidLiquid` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `AssetRegistry::AssetMetadatas` (r:1 w:0) + // Proof: `AssetRegistry::AssetMetadatas` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `u` is `[2, 5]`. fn redeem_proportion(u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `3148 + u * (286 ±0)` - // Estimated: `34520 + u * (7575 ±32)` - // Minimum execution time: 179_787 nanoseconds. - Weight::from_parts(104_746_434, 34520) - // Standard Error: 274_234 - .saturating_add(Weight::from_parts(42_109_989, 0).saturating_mul(u.into())) + // Measured: `3543 + u * (214 ±0)` + // Estimated: `7019 + u * (5244 ±0)` + // Minimum execution time: 175_924 nanoseconds. + Weight::from_parts(109_940_177, 7019) + // Standard Error: 224_097 + .saturating_add(Weight::from_parts(36_980_838, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(u.into()))) - .saturating_add(Weight::from_parts(0, 7575).saturating_mul(u.into())) + .saturating_add(Weight::from_parts(0, 5244).saturating_mul(u.into())) } - // Storage: StableAsset Pools (r:1 w:0) - // Proof Skipped: StableAsset Pools (max_values: None, max_size: None, mode: Measured) - // Storage: System Account (r:1 w:0) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:4 w:0) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: Homa TotalStakingBonded (r:1 w:0) - // Proof Skipped: Homa TotalStakingBonded (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa ToBondPool (r:1 w:0) - // Proof Skipped: Homa ToBondPool (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Tokens TotalIssuance (r:1 w:0) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Homa TotalVoidLiquid (r:1 w:0) - // Proof Skipped: Homa TotalVoidLiquid (max_values: Some(1), max_size: None, mode: Measured) + // Storage: `StableAsset::Pools` (r:1 w:0) + // Proof: `StableAsset::Pools` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `System::Account` (r:1 w:0) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:4 w:0) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `Homa::TotalStakingBonded` (r:1 w:0) + // Proof: `Homa::TotalStakingBonded` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::ToBondPool` (r:1 w:0) + // Proof: `Homa::ToBondPool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Tokens::TotalIssuance` (r:1 w:0) + // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Homa::TotalVoidLiquid` (r:1 w:0) + // Proof: `Homa::TotalVoidLiquid` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// The range of component `u` is `[2, 5]`. fn redeem_single(u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2428 + u * (227 ±0)` - // Estimated: `29963 + u * (1536 ±0)` - // Minimum execution time: 1_007_389 nanoseconds. - Weight::from_parts(482_408_904, 29963) - // Standard Error: 1_007_245 - .saturating_add(Weight::from_parts(264_804_569, 0).saturating_mul(u.into())) + // Measured: `2469 + u * (225 ±0)` + // Estimated: `5994 + u * (1016 ±0)` + // Minimum execution time: 1_477_461 nanoseconds. + Weight::from_parts(769_943_755, 5994) + // Standard Error: 1_397_120 + .saturating_add(Weight::from_parts(367_874_186, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into()))) - .saturating_add(Weight::from_parts(0, 1536).saturating_mul(u.into())) + .saturating_add(Weight::from_parts(0, 1016).saturating_mul(u.into())) } - // Storage: StableAsset Pools (r:1 w:1) - // Proof Skipped: StableAsset Pools (max_values: None, max_size: None, mode: Measured) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:10 w:10) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: Homa TotalStakingBonded (r:1 w:0) - // Proof Skipped: Homa TotalStakingBonded (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Homa ToBondPool (r:1 w:0) - // Proof Skipped: Homa ToBondPool (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Tokens TotalIssuance (r:2 w:1) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Homa TotalVoidLiquid (r:1 w:0) - // Proof Skipped: Homa TotalVoidLiquid (max_values: Some(1), max_size: None, mode: Measured) - // Storage: AssetRegistry AssetMetadatas (r:1 w:0) - // Proof Skipped: AssetRegistry AssetMetadatas (max_values: None, max_size: None, mode: Measured) + // Storage: `StableAsset::Pools` (r:1 w:1) + // Proof: `StableAsset::Pools` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:10 w:10) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `Homa::TotalStakingBonded` (r:1 w:0) + // Proof: `Homa::TotalStakingBonded` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Homa::ToBondPool` (r:1 w:0) + // Proof: `Homa::ToBondPool` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Tokens::TotalIssuance` (r:2 w:1) + // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Homa::TotalVoidLiquid` (r:1 w:0) + // Proof: `Homa::TotalVoidLiquid` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `AssetRegistry::AssetMetadatas` (r:1 w:0) + // Proof: `AssetRegistry::AssetMetadatas` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `u` is `[2, 5]`. fn redeem_multi(u: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `3148 + u * (286 ±0)` - // Estimated: `34520 + u * (7575 ±0)` - // Minimum execution time: 157_315 nanoseconds. - Weight::from_parts(67_302_617, 34520) - // Standard Error: 449_610 - .saturating_add(Weight::from_parts(50_748_202, 0).saturating_mul(u.into())) + // Measured: `3543 + u * (214 ±0)` + // Estimated: `7019 + u * (5244 ±0)` + // Minimum execution time: 153_228 nanoseconds. + Weight::from_parts(73_294_527, 7019) + // Standard Error: 407_836 + .saturating_add(Weight::from_parts(45_105_629, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes(3)) .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(u.into()))) - .saturating_add(Weight::from_parts(0, 7575).saturating_mul(u.into())) + .saturating_add(Weight::from_parts(0, 5244).saturating_mul(u.into())) } } diff --git a/runtime/mandala/src/weights/orml_auction.rs b/runtime/mandala/src/weights/orml_auction.rs index d8d4a81162..85be118b28 100644 --- a/runtime/mandala/src/weights/orml_auction.rs +++ b/runtime/mandala/src/weights/orml_auction.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for orml_auction //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,66 +47,66 @@ use sp_std::marker::PhantomData; /// Weight functions for orml_auction. pub struct WeightInfo(PhantomData); impl orml_auction::WeightInfo for WeightInfo { - // Storage: Auction Auctions (r:1 w:1) - // Proof: Auction Auctions (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) - // Storage: AuctionManager CollateralAuctions (r:1 w:1) - // Proof: AuctionManager CollateralAuctions (max_values: None, max_size: Some(139), added: 2614, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:3 w:3) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: EvmAccounts EvmAddresses (r:1 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: Auction AuctionEndTime (r:0 w:2) - // Proof: Auction AuctionEndTime (max_values: None, max_size: Some(32), added: 2507, mode: MaxEncodedLen) + // Storage: `Auction::Auctions` (r:1 w:1) + // Proof: `Auction::Auctions` (`max_values`: None, `max_size`: Some(70), added: 2545, mode: `MaxEncodedLen`) + // Storage: `AuctionManager::CollateralAuctions` (r:1 w:1) + // Proof: `AuctionManager::CollateralAuctions` (`max_values`: None, `max_size`: Some(139), added: 2614, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:3 w:3) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `EvmAccounts::EvmAddresses` (r:1 w:0) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `Auction::AuctionEndTime` (r:0 w:2) + // Proof: `Auction::AuctionEndTime` (`max_values`: None, `max_size`: Some(32), added: 2507, mode: `MaxEncodedLen`) fn bid_collateral_auction() -> Weight { // Proof Size summary in bytes: - // Measured: `3482` - // Estimated: `23113` - // Minimum execution time: 113_605 nanoseconds. - Weight::from_parts(117_095_000, 23113) + // Measured: `3551` + // Estimated: `8856` + // Minimum execution time: 90_161 nanoseconds. + Weight::from_parts(92_742_000, 8856) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(8)) } - // Storage: Auction AuctionEndTime (r:101 w:100) - // Proof: Auction AuctionEndTime (max_values: None, max_size: Some(32), added: 2507, mode: MaxEncodedLen) - // Storage: Auction Auctions (r:100 w:100) - // Proof: Auction Auctions (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) - // Storage: AuctionManager CollateralAuctions (r:100 w:100) - // Proof: AuctionManager CollateralAuctions (max_values: None, max_size: Some(139), added: 2614, mode: MaxEncodedLen) - // Storage: Tokens Accounts (r:2 w:1) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: AuctionManager TotalCollateralInAuction (r:1 w:1) - // Proof: AuctionManager TotalCollateralInAuction (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: Dex TradingPairStatuses (r:2 w:0) - // Proof: Dex TradingPairStatuses (max_values: None, max_size: Some(195), added: 2670, mode: MaxEncodedLen) - // Storage: Dex LiquidityPool (r:1 w:0) - // Proof: Dex LiquidityPool (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen) - // Storage: StableAsset Pools (r:1 w:0) - // Proof Skipped: StableAsset Pools (max_values: None, max_size: None, mode: Measured) - // Storage: AggregatedDex AggregatedSwapPaths (r:1 w:0) - // Proof Skipped: AggregatedDex AggregatedSwapPaths (max_values: None, max_size: None, mode: Measured) - // Storage: CdpTreasury DebitPool (r:1 w:1) - // Proof: CdpTreasury DebitPool (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) - // Storage: Tokens TotalIssuance (r:1 w:1) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: AuctionManager TotalTargetInAuction (r:1 w:1) - // Proof: AuctionManager TotalTargetInAuction (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + // Storage: `Auction::AuctionEndTime` (r:101 w:100) + // Proof: `Auction::AuctionEndTime` (`max_values`: None, `max_size`: Some(32), added: 2507, mode: `MaxEncodedLen`) + // Storage: `Auction::Auctions` (r:100 w:100) + // Proof: `Auction::Auctions` (`max_values`: None, `max_size`: Some(70), added: 2545, mode: `MaxEncodedLen`) + // Storage: `AuctionManager::CollateralAuctions` (r:100 w:100) + // Proof: `AuctionManager::CollateralAuctions` (`max_values`: None, `max_size`: Some(139), added: 2614, mode: `MaxEncodedLen`) + // Storage: `Tokens::Accounts` (r:2 w:1) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `AuctionManager::TotalCollateralInAuction` (r:1 w:1) + // Proof: `AuctionManager::TotalCollateralInAuction` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `Dex::TradingPairStatuses` (r:2 w:0) + // Proof: `Dex::TradingPairStatuses` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`) + // Storage: `Dex::LiquidityPool` (r:1 w:0) + // Proof: `Dex::LiquidityPool` (`max_values`: None, `max_size`: Some(126), added: 2601, mode: `MaxEncodedLen`) + // Storage: `StableAsset::Pools` (r:1 w:0) + // Proof: `StableAsset::Pools` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `AggregatedDex::AggregatedSwapPaths` (r:1 w:0) + // Proof: `AggregatedDex::AggregatedSwapPaths` (`max_values`: None, `max_size`: None, mode: `Measured`) + // Storage: `CdpTreasury::DebitPool` (r:1 w:1) + // Proof: `CdpTreasury::DebitPool` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) + // Storage: `Tokens::TotalIssuance` (r:1 w:1) + // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:2 w:2) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `AuctionManager::TotalTargetInAuction` (r:1 w:1) + // Proof: `AuctionManager::TotalTargetInAuction` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`) /// The range of component `c` is `[1, 100]`. fn on_finalize(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `3573 + c * (979 ±0)` - // Estimated: `51976 + c * (9624 ±0)` - // Minimum execution time: 119_698 nanoseconds. - Weight::from_parts(75_697_856, 51976) - // Standard Error: 23_733 - .saturating_add(Weight::from_parts(51_039_900, 0).saturating_mul(c.into())) + // Measured: `3560 + c * (979 ±0)` + // Estimated: `7028 + c * (2614 ±0)` + // Minimum execution time: 101_489 nanoseconds. + Weight::from_parts(56_112_111, 7028) + // Standard Error: 22_105 + .saturating_add(Weight::from_parts(43_354_872, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(14)) .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(7)) .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(c.into()))) - .saturating_add(Weight::from_parts(0, 9624).saturating_mul(c.into())) + .saturating_add(Weight::from_parts(0, 2614).saturating_mul(c.into())) } } diff --git a/runtime/mandala/src/weights/orml_authority.rs b/runtime/mandala/src/weights/orml_authority.rs index d62204dac7..ca58cb662a 100644 --- a/runtime/mandala/src/weights/orml_authority.rs +++ b/runtime/mandala/src/weights/orml_authority.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for orml_authority //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -50,109 +49,109 @@ pub struct WeightInfo(PhantomData); impl orml_authority::WeightInfo for WeightInfo { fn dispatch_as() -> Weight { // Proof Size summary in bytes: - // Measured: `965` + // Measured: `1001` // Estimated: `0` - // Minimum execution time: 17_142 nanoseconds. - Weight::from_parts(17_657_000, 0) + // Minimum execution time: 12_988 nanoseconds. + Weight::from_parts(13_357_000, 0) } - // Storage: Authority NextTaskIndex (r:1 w:1) - // Proof Skipped: Authority NextTaskIndex (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Scheduler Lookup (r:1 w:1) - // Proof: Scheduler Lookup (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) - // Storage: Scheduler Agenda (r:1 w:1) - // Proof: Scheduler Agenda (max_values: None, max_size: Some(39213), added: 41688, mode: MaxEncodedLen) + // Storage: `Authority::NextTaskIndex` (r:1 w:1) + // Proof: `Authority::NextTaskIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Scheduler::Lookup` (r:1 w:1) + // Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + // Storage: `Scheduler::Agenda` (r:1 w:1) + // Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(39213), added: 41688, mode: `MaxEncodedLen`) fn schedule_dispatch_without_delay() -> Weight { // Proof Size summary in bytes: - // Measured: `1111` - // Estimated: `48787` - // Minimum execution time: 32_486 nanoseconds. - Weight::from_parts(33_355_000, 48787) + // Measured: `1147` + // Estimated: `42678` + // Minimum execution time: 24_897 nanoseconds. + Weight::from_parts(25_488_000, 42678) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } - // Storage: Authority NextTaskIndex (r:1 w:1) - // Proof Skipped: Authority NextTaskIndex (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Scheduler Lookup (r:1 w:1) - // Proof: Scheduler Lookup (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) - // Storage: Scheduler Agenda (r:1 w:1) - // Proof: Scheduler Agenda (max_values: None, max_size: Some(39213), added: 41688, mode: MaxEncodedLen) + // Storage: `Authority::NextTaskIndex` (r:1 w:1) + // Proof: `Authority::NextTaskIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Scheduler::Lookup` (r:1 w:1) + // Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + // Storage: `Scheduler::Agenda` (r:1 w:1) + // Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(39213), added: 41688, mode: `MaxEncodedLen`) fn schedule_dispatch_with_delay() -> Weight { // Proof Size summary in bytes: - // Measured: `1111` - // Estimated: `48787` - // Minimum execution time: 33_246 nanoseconds. - Weight::from_parts(34_508_000, 48787) + // Measured: `1147` + // Estimated: `42678` + // Minimum execution time: 25_353 nanoseconds. + Weight::from_parts(26_007_000, 42678) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } - // Storage: Scheduler Lookup (r:1 w:1) - // Proof: Scheduler Lookup (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) - // Storage: Scheduler Agenda (r:2 w:2) - // Proof: Scheduler Agenda (max_values: None, max_size: Some(39213), added: 41688, mode: MaxEncodedLen) + // Storage: `Scheduler::Lookup` (r:1 w:1) + // Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + // Storage: `Scheduler::Agenda` (r:2 w:2) + // Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(39213), added: 41688, mode: `MaxEncodedLen`) fn fast_track_scheduled_dispatch() -> Weight { // Proof Size summary in bytes: - // Measured: `1188` - // Estimated: `87879` - // Minimum execution time: 43_873 nanoseconds. - Weight::from_parts(44_470_000, 87879) + // Measured: `1224` + // Estimated: `84366` + // Minimum execution time: 32_453 nanoseconds. + Weight::from_parts(33_281_000, 84366) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } - // Storage: Scheduler Lookup (r:1 w:1) - // Proof: Scheduler Lookup (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) - // Storage: Scheduler Agenda (r:2 w:2) - // Proof: Scheduler Agenda (max_values: None, max_size: Some(39213), added: 41688, mode: MaxEncodedLen) + // Storage: `Scheduler::Lookup` (r:1 w:1) + // Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + // Storage: `Scheduler::Agenda` (r:2 w:2) + // Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(39213), added: 41688, mode: `MaxEncodedLen`) fn delay_scheduled_dispatch() -> Weight { // Proof Size summary in bytes: - // Measured: `1188` - // Estimated: `87879` - // Minimum execution time: 43_551 nanoseconds. - Weight::from_parts(44_252_000, 87879) + // Measured: `1224` + // Estimated: `84366` + // Minimum execution time: 32_644 nanoseconds. + Weight::from_parts(33_214_000, 84366) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } - // Storage: Scheduler Lookup (r:1 w:1) - // Proof: Scheduler Lookup (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) - // Storage: Scheduler Agenda (r:1 w:1) - // Proof: Scheduler Agenda (max_values: None, max_size: Some(39213), added: 41688, mode: MaxEncodedLen) + // Storage: `Scheduler::Lookup` (r:1 w:1) + // Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) + // Storage: `Scheduler::Agenda` (r:1 w:1) + // Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(39213), added: 41688, mode: `MaxEncodedLen`) fn cancel_scheduled_dispatch() -> Weight { // Proof Size summary in bytes: - // Measured: `1188` - // Estimated: `46191` - // Minimum execution time: 33_898 nanoseconds. - Weight::from_parts(34_644_000, 46191) + // Measured: `1224` + // Estimated: `42678` + // Minimum execution time: 26_185 nanoseconds. + Weight::from_parts(26_650_000, 42678) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) } - // Storage: Authority SavedCalls (r:0 w:1) - // Proof Skipped: Authority SavedCalls (max_values: None, max_size: None, mode: Measured) + // Storage: `Authority::SavedCalls` (r:0 w:1) + // Proof: `Authority::SavedCalls` (`max_values`: None, `max_size`: None, mode: `Measured`) fn authorize_call() -> Weight { // Proof Size summary in bytes: - // Measured: `965` - // Estimated: `965` - // Minimum execution time: 17_143 nanoseconds. - Weight::from_parts(17_633_000, 965) + // Measured: `1001` + // Estimated: `1001` + // Minimum execution time: 13_891 nanoseconds. + Weight::from_parts(14_308_000, 1001) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: Authority SavedCalls (r:1 w:1) - // Proof Skipped: Authority SavedCalls (max_values: None, max_size: None, mode: Measured) + // Storage: `Authority::SavedCalls` (r:1 w:1) + // Proof: `Authority::SavedCalls` (`max_values`: None, `max_size`: None, mode: `Measured`) fn remove_authorized_call() -> Weight { // Proof Size summary in bytes: - // Measured: `1306` - // Estimated: `4771` - // Minimum execution time: 22_508 nanoseconds. - Weight::from_parts(23_104_000, 4771) + // Measured: `1342` + // Estimated: `4807` + // Minimum execution time: 19_037 nanoseconds. + Weight::from_parts(19_481_000, 4807) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } - // Storage: Authority SavedCalls (r:1 w:1) - // Proof Skipped: Authority SavedCalls (max_values: None, max_size: None, mode: Measured) + // Storage: `Authority::SavedCalls` (r:1 w:1) + // Proof: `Authority::SavedCalls` (`max_values`: None, `max_size`: None, mode: `Measured`) fn trigger_call() -> Weight { // Proof Size summary in bytes: - // Measured: `1306` - // Estimated: `4771` - // Minimum execution time: 28_812 nanoseconds. - Weight::from_parts(29_221_000, 4771) + // Measured: `1342` + // Estimated: `4807` + // Minimum execution time: 22_652 nanoseconds. + Weight::from_parts(23_025_000, 4807) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } diff --git a/runtime/mandala/src/weights/orml_oracle.rs b/runtime/mandala/src/weights/orml_oracle.rs index f19e13cc46..2f4f3d4d31 100644 --- a/runtime/mandala/src/weights/orml_oracle.rs +++ b/runtime/mandala/src/weights/orml_oracle.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for orml_oracle //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,39 +47,39 @@ use sp_std::marker::PhantomData; /// Weight functions for orml_oracle. pub struct WeightInfo(PhantomData); impl orml_oracle::WeightInfo for WeightInfo { - // Storage: AcalaOracle HasDispatched (r:1 w:1) - // Proof: AcalaOracle HasDispatched (max_values: Some(1), max_size: Some(1281), added: 1776, mode: MaxEncodedLen) - // Storage: Timestamp Now (r:1 w:0) - // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - // Storage: OperatorMembershipAcala Members (r:1 w:0) - // Proof: OperatorMembershipAcala Members (max_values: Some(1), max_size: Some(1601), added: 2096, mode: MaxEncodedLen) - // Storage: AcalaOracle RawValues (r:5 w:5) - // Proof: AcalaOracle RawValues (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen) - // Storage: AcalaOracle Values (r:5 w:5) - // Proof: AcalaOracle Values (max_values: None, max_size: Some(75), added: 2550, mode: MaxEncodedLen) - /// The range of component `c` is `[0, 5]`. + // Storage: `AcalaOracle::HasDispatched` (r:1 w:1) + // Proof: `AcalaOracle::HasDispatched` (`max_values`: Some(1), `max_size`: Some(1281), added: 1776, mode: `MaxEncodedLen`) + // Storage: `Timestamp::Now` (r:1 w:0) + // Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) + // Storage: `OperatorMembershipAcala::Members` (r:1 w:0) + // Proof: `OperatorMembershipAcala::Members` (`max_values`: Some(1), `max_size`: Some(1601), added: 2096, mode: `MaxEncodedLen`) + // Storage: `AcalaOracle::RawValues` (r:4 w:4) + // Proof: `AcalaOracle::RawValues` (`max_values`: None, `max_size`: Some(115), added: 2590, mode: `MaxEncodedLen`) + // Storage: `AcalaOracle::Values` (r:4 w:4) + // Proof: `AcalaOracle::Values` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`) + /// The range of component `c` is `[0, 4]`. fn feed_values(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1356` - // Estimated: `9325 + c * (5140 ±0)` - // Minimum execution time: 21_578 nanoseconds. - Weight::from_parts(24_597_803, 9325) - // Standard Error: 49_969 - .saturating_add(Weight::from_parts(9_767_342, 0).saturating_mul(c.into())) + // Measured: `1283 + c * (25 ±0)` + // Estimated: `3086 + c * (2590 ±0)` + // Minimum execution time: 16_234 nanoseconds. + Weight::from_parts(18_643_550, 3086) + // Standard Error: 61_602 + .saturating_add(Weight::from_parts(9_377_300, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(c.into()))) - .saturating_add(Weight::from_parts(0, 5140).saturating_mul(c.into())) + .saturating_add(Weight::from_parts(0, 2590).saturating_mul(c.into())) } - // Storage: AcalaOracle HasDispatched (r:0 w:1) - // Proof: AcalaOracle HasDispatched (max_values: Some(1), max_size: Some(1281), added: 1776, mode: MaxEncodedLen) + // Storage: `AcalaOracle::HasDispatched` (r:0 w:1) + // Proof: `AcalaOracle::HasDispatched` (`max_values`: Some(1), `max_size`: Some(1281), added: 1776, mode: `MaxEncodedLen`) fn on_finalize() -> Weight { // Proof Size summary in bytes: - // Measured: `840` + // Measured: `876` // Estimated: `0` - // Minimum execution time: 7_444 nanoseconds. - Weight::from_parts(7_740_000, 0) + // Minimum execution time: 6_569 nanoseconds. + Weight::from_parts(6_756_000, 0) .saturating_add(T::DbWeight::get().writes(1)) } } diff --git a/runtime/mandala/src/weights/orml_tokens.rs b/runtime/mandala/src/weights/orml_tokens.rs index 0b0213001c..134145b0c5 100644 --- a/runtime/mandala/src/weights/orml_tokens.rs +++ b/runtime/mandala/src/weights/orml_tokens.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for orml_tokens //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,74 +47,74 @@ use sp_std::marker::PhantomData; /// Weight functions for orml_tokens. pub struct WeightInfo(PhantomData); impl orml_tokens::WeightInfo for WeightInfo { - // Storage: Tokens Accounts (r:2 w:2) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: EvmAccounts EvmAddresses (r:1 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + // Storage: `Tokens::Accounts` (r:2 w:2) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `EvmAccounts::EvmAddresses` (r:1 w:0) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn transfer() -> Weight { // Proof Size summary in bytes: - // Measured: `2490` - // Estimated: `13352` - // Minimum execution time: 57_359 nanoseconds. - Weight::from_parts(58_824_000, 13352) + // Measured: `2559` + // Estimated: `6234` + // Minimum execution time: 46_069 nanoseconds. + Weight::from_parts(47_563_000, 6234) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } - // Storage: Tokens Accounts (r:2 w:2) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: EvmAccounts EvmAddresses (r:1 w:0) - // Proof: EvmAccounts EvmAddresses (max_values: None, max_size: Some(60), added: 2535, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + // Storage: `Tokens::Accounts` (r:2 w:2) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `EvmAccounts::EvmAddresses` (r:1 w:0) + // Proof: `EvmAccounts::EvmAddresses` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn transfer_all() -> Weight { // Proof Size summary in bytes: - // Measured: `2490` - // Estimated: `13352` - // Minimum execution time: 60_265 nanoseconds. - Weight::from_parts(61_624_000, 13352) + // Measured: `2559` + // Estimated: `6234` + // Minimum execution time: 48_531 nanoseconds. + Weight::from_parts(49_453_000, 6234) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } - // Storage: Tokens Accounts (r:2 w:2) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + // Storage: `Tokens::Accounts` (r:2 w:2) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn transfer_keep_alive() -> Weight { // Proof Size summary in bytes: - // Measured: `2169` - // Estimated: `9827` - // Minimum execution time: 43_429 nanoseconds. - Weight::from_parts(44_419_000, 9827) + // Measured: `2205` + // Estimated: `6234` + // Minimum execution time: 33_856 nanoseconds. + Weight::from_parts(34_486_000, 6234) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } - // Storage: Tokens Accounts (r:2 w:2) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: System Account (r:2 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + // Storage: `Tokens::Accounts` (r:2 w:2) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:2 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn force_transfer() -> Weight { // Proof Size summary in bytes: - // Measured: `2339` - // Estimated: `12430` - // Minimum execution time: 46_539 nanoseconds. - Weight::from_parts(48_169_000, 12430) + // Measured: `2375` + // Estimated: `6234` + // Minimum execution time: 37_657 nanoseconds. + Weight::from_parts(38_382_000, 6234) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } - // Storage: Tokens Accounts (r:1 w:1) - // Proof: Tokens Accounts (max_values: None, max_size: Some(147), added: 2622, mode: MaxEncodedLen) - // Storage: Tokens TotalIssuance (r:1 w:1) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + // Storage: `Tokens::Accounts` (r:1 w:1) + // Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(147), added: 2622, mode: `MaxEncodedLen`) + // Storage: `Tokens::TotalIssuance` (r:1 w:1) + // Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn set_balance() -> Weight { // Proof Size summary in bytes: - // Measured: `2005` - // Estimated: `10737` - // Minimum execution time: 38_133 nanoseconds. - Weight::from_parts(39_374_000, 10737) + // Measured: `2041` + // Estimated: `3612` + // Minimum execution time: 29_603 nanoseconds. + Weight::from_parts(30_211_000, 3612) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } diff --git a/runtime/mandala/src/weights/orml_vesting.rs b/runtime/mandala/src/weights/orml_vesting.rs index de6aeb2ae2..41ec309472 100644 --- a/runtime/mandala/src/weights/orml_vesting.rs +++ b/runtime/mandala/src/weights/orml_vesting.rs @@ -18,10 +18,10 @@ //! Autogenerated weights for orml_vesting //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `ip-172-31-43-79`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.1 +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `ip-172-31-38-126`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` +//! WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: // target/production/acala @@ -32,7 +32,6 @@ // --repeat=20 // --pallet=* // --extrinsic=* -// --execution=wasm // --wasm-execution=compiled // --heap-pages=4096 // --template=./templates/runtime-weight-template.hbs @@ -48,51 +47,67 @@ use sp_std::marker::PhantomData; /// Weight functions for orml_vesting. pub struct WeightInfo(PhantomData); impl orml_vesting::WeightInfo for WeightInfo { - // Storage: ParachainSystem ValidationData (r:1 w:0) - // Proof Skipped: ParachainSystem ValidationData (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Vesting VestingSchedules (r:1 w:1) - // Proof: Vesting VestingSchedules (max_values: None, max_size: Some(2850), added: 5325, mode: MaxEncodedLen) + // Storage: `ParachainSystem::ValidationData` (r:1 w:0) + // Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `ParachainSystem::LastRelayChainBlockNumber` (r:1 w:0) + // Proof: `ParachainSystem::LastRelayChainBlockNumber` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Vesting::VestingSchedules` (r:1 w:1) + // Proof: `Vesting::VestingSchedules` (`max_values`: None, `max_size`: Some(2850), added: 5325, mode: `MaxEncodedLen`) + // Storage: `Balances::Locks` (r:1 w:1) + // Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`) + // Storage: `Balances::Freezes` (r:1 w:0) + // Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn vested_transfer() -> Weight { // Proof Size summary in bytes: - // Measured: `1320` - // Estimated: `9120` - // Minimum execution time: 25_461 nanoseconds. - Weight::from_parts(26_501_000, 9120) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(1)) + // Measured: `2257` + // Estimated: `6315` + // Minimum execution time: 38_952 nanoseconds. + Weight::from_parts(39_938_000, 6315) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) } - // Storage: ParachainSystem ValidationData (r:1 w:0) - // Proof Skipped: ParachainSystem ValidationData (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Vesting VestingSchedules (r:1 w:1) - // Proof: Vesting VestingSchedules (max_values: None, max_size: Some(2850), added: 5325, mode: MaxEncodedLen) - // Storage: Balances Locks (r:1 w:1) - // Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + // Storage: `ParachainSystem::ValidationData` (r:1 w:0) + // Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `ParachainSystem::LastRelayChainBlockNumber` (r:1 w:0) + // Proof: `ParachainSystem::LastRelayChainBlockNumber` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) + // Storage: `Vesting::VestingSchedules` (r:1 w:1) + // Proof: `Vesting::VestingSchedules` (`max_values`: None, `max_size`: Some(2850), added: 5325, mode: `MaxEncodedLen`) + // Storage: `Balances::Locks` (r:1 w:1) + // Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`) + // Storage: `Balances::Freezes` (r:1 w:0) + // Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) /// The range of component `i` is `[1, 100]`. fn claim(i: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2228` - // Estimated: `14792` - // Minimum execution time: 39_660 nanoseconds. - Weight::from_parts(41_151_000, 14792) - // Standard Error: 652 - .saturating_add(Weight::from_parts(2_483, 0).saturating_mul(i.into())) - .saturating_add(T::DbWeight::get().reads(3)) + // Measured: `2297` + // Estimated: `6315` + // Minimum execution time: 40_382 nanoseconds. + Weight::from_parts(41_597_801, 6315) + // Standard Error: 487 + .saturating_add(Weight::from_parts(3_628, 0).saturating_mul(i.into())) + .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) } - // Storage: System Account (r:1 w:0) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Vesting VestingSchedules (r:0 w:1) - // Proof: Vesting VestingSchedules (max_values: None, max_size: Some(2850), added: 5325, mode: MaxEncodedLen) + // Storage: `System::Account` (r:1 w:1) + // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) + // Storage: `Balances::Locks` (r:1 w:1) + // Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`) + // Storage: `Balances::Freezes` (r:1 w:0) + // Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) + // Storage: `Vesting::VestingSchedules` (r:0 w:1) + // Proof: `Vesting::VestingSchedules` (`max_values`: None, `max_size`: Some(2850), added: 5325, mode: `MaxEncodedLen`) /// The range of component `i` is `[1, 100]`. fn update_vesting_schedules(i: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1653` - // Estimated: `3593` - // Minimum execution time: 20_373 nanoseconds. - Weight::from_parts(21_791_803, 3593) - // Standard Error: 483 - .saturating_add(Weight::from_parts(50_546, 0).saturating_mul(i.into())) - .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().writes(1)) + // Measured: `1902` + // Estimated: `4764` + // Minimum execution time: 31_748 nanoseconds. + Weight::from_parts(32_809_109, 4764) + // Standard Error: 417 + .saturating_add(Weight::from_parts(40_547, 0).saturating_mul(i.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(3)) } } diff --git a/runtime/mandala/src/weights/pallet_xcm.rs b/runtime/mandala/src/weights/pallet_xcm.rs index 78fdc0d5c2..f6e92391e1 100644 --- a/runtime/mandala/src/weights/pallet_xcm.rs +++ b/runtime/mandala/src/weights/pallet_xcm.rs @@ -352,4 +352,14 @@ impl pallet_xcm::WeightInfo for WeightInfo { .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } + fn claim_assets() -> Weight { + // Proof Size summary in bytes: + // Measured: `7576` + // Estimated: `11041` + // Minimum execution time: 24_595_000 picoseconds. + Weight::from_parts(24_907_000, 0) + .saturating_add(Weight::from_parts(0, 11041)) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } } diff --git a/runtime/mandala/src/xcm_config.rs b/runtime/mandala/src/xcm_config.rs index 3b59e23af9..7a136d284b 100644 --- a/runtime/mandala/src/xcm_config.rs +++ b/runtime/mandala/src/xcm_config.rs @@ -49,10 +49,10 @@ use xcm_builder::{ }; parameter_types! { - pub const DotLocation: MultiLocation = MultiLocation::parent(); + pub const DotLocation: Location = Location::parent(); pub const RelayNetwork: NetworkId = NetworkId::Polkadot; pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into(); - pub UniversalLocation: InteriorMultiLocation = X2(GlobalConsensus(RelayNetwork::get()), Parachain(ParachainInfo::parachain_id().into())); + pub UniversalLocation: InteriorLocation = [GlobalConsensus(RelayNetwork::get()), Parachain(ParachainInfo::parachain_id().into())].into(); pub CheckingAccount: AccountId = PolkadotXcm::check_account(); } @@ -75,7 +75,7 @@ parameter_types! { pub UnitWeightCost: XcmWeight = XcmWeight::from_parts(1_000_000, 0); pub const MaxInstructions: u32 = 100; pub DotPerSecond: (AssetId, u128, u128) = ( - MultiLocation::parent().into(), + Location::parent().into(), dot_per_second(), 0 ); @@ -233,12 +233,12 @@ pub type LocalAssetTransactor = MultiCurrencyAdapter< >; pub struct CurrencyIdConvert; -impl Convert> for CurrencyIdConvert { - fn convert(id: CurrencyId) -> Option { +impl Convert> for CurrencyIdConvert { + fn convert(id: CurrencyId) -> Option { use primitives::TokenSymbol::*; use CurrencyId::{Erc20, ForeignAsset, StableAssetPoolToken, Token}; match id { - Token(DOT) => Some(MultiLocation::parent()), + Token(DOT) => Some(Location::parent()), Token(ACA) | Token(AUSD) | Token(LDOT) | Token(TAI) => { native_currency_location(ParachainInfo::get().into(), id.encode()) } @@ -246,31 +246,30 @@ impl Convert> for CurrencyIdConvert { native_currency_location(ParachainInfo::get().into(), id.encode()) } StableAssetPoolToken(_pool_id) => native_currency_location(ParachainInfo::get().into(), id.encode()), - ForeignAsset(foreign_asset_id) => AssetIdMaps::::get_multi_location(foreign_asset_id), + ForeignAsset(foreign_asset_id) => AssetIdMaps::::get_location(foreign_asset_id), _ => None, } } } -impl Convert> for CurrencyIdConvert { - fn convert(location: MultiLocation) -> Option { +impl Convert> for CurrencyIdConvert { + fn convert(location: Location) -> Option { use primitives::TokenSymbol::*; use CurrencyId::{Erc20, StableAssetPoolToken, Token}; - if location == MultiLocation::parent() { + if location == Location::parent() { return Some(Token(DOT)); } - if let Some(currency_id) = AssetIdMaps::::get_currency_id(location) { + if let Some(currency_id) = AssetIdMaps::::get_currency_id(location.clone()) { return Some(currency_id); } - match location { - MultiLocation { - parents, - interior: X2(Parachain(para_id), GeneralKey { data, length }), - } if parents == 1 && ParaId::from(para_id) == ParachainInfo::get() => { + match location.unpack() { + (parents, [Parachain(para_id), GeneralKey { data, length }]) + if parents == 1 && ParaId::from(*para_id) == ParachainInfo::get() => + { // decode the general key - let key = &data[..data.len().min(length as usize)]; + let key = &data[..data.len().min(*length as usize)]; if let Ok(currency_id) = CurrencyId::decode(&mut &*key) { // check if `currency_id` is cross-chain asset match currency_id { @@ -284,11 +283,8 @@ impl Convert> for CurrencyIdConvert { } } // adapt for re-anchor canonical location: https://github.com/paritytech/polkadot/pull/4470 - MultiLocation { - parents: 0, - interior: X1(GeneralKey { data, length }), - } => { - let key = &data[..data.len().min(length as usize)]; + (0, [GeneralKey { data, length }]) => { + let key = &data[..data.len().min(*length as usize)]; if let Ok(currency_id) = CurrencyId::decode(&mut &*key) { match currency_id { Token(ACA) | Token(AUSD) | Token(LDOT) | Token(TAI) => Some(currency_id), @@ -304,38 +300,32 @@ impl Convert> for CurrencyIdConvert { } } } -impl Convert> for CurrencyIdConvert { - fn convert(asset: MultiAsset) -> Option { - if let MultiAsset { - id: Concrete(location), .. - } = asset - { - Self::convert(location) - } else { - None - } +impl Convert> for CurrencyIdConvert { + fn convert(asset: Asset) -> Option { + let AssetId(location) = asset.id; + Self::convert(location) } } -pub struct AccountIdToMultiLocation; -impl Convert for AccountIdToMultiLocation { - fn convert(account: AccountId) -> MultiLocation { - X1(AccountId32 { +pub struct AccountIdToLocation; +impl Convert for AccountIdToLocation { + fn convert(account: AccountId) -> Location { + AccountId32 { network: None, id: account.into(), - }) + } .into() } } parameter_types! { - pub SelfLocation: MultiLocation = MultiLocation::new(1, X1(Parachain(ParachainInfo::get().into()))); + pub SelfLocation: Location = Location::new(1, Parachain(ParachainInfo::get().into())); pub const BaseXcmWeight: XcmWeight = XcmWeight::from_parts(100_000_000, 0); pub const MaxAssetsForTransfer: usize = 2; } parameter_type_with_key! { - pub ParachainMinFee: |_location: MultiLocation| -> Option { + pub ParachainMinFee: |_location: Location| -> Option { None }; } @@ -345,7 +335,7 @@ impl orml_xtokens::Config for Runtime { type Balance = Balance; type CurrencyId = CurrencyId; type CurrencyIdConvert = CurrencyIdConvert; - type AccountIdToMultiLocation = AccountIdToMultiLocation; + type AccountIdToLocation = AccountIdToLocation; type SelfLocation = SelfLocation; type XcmExecutor = XcmExecutor; type Weigher = FixedWeightBounds; @@ -353,6 +343,8 @@ impl orml_xtokens::Config for Runtime { type UniversalLocation = UniversalLocation; type MaxAssetsForTransfer = MaxAssetsForTransfer; type MinXcmFee = ParachainMinFee; - type MultiLocationsFilter = Everything; + type LocationsFilter = Everything; type ReserveProvider = AbsoluteReserveProvider; + type RateLimiter = (); + type RateLimiterId = (); } diff --git a/ts-tests/tests/test-balance.ts b/ts-tests/tests/test-balance.ts index a4e6e5a90a..b7f9e3426e 100644 --- a/ts-tests/tests/test-balance.ts +++ b/ts-tests/tests/test-balance.ts @@ -12,8 +12,8 @@ describeWithAcala("Acala RPC (Balance)", (context) => { }); step("genesis balance is setup correctly", async function () { - expect((await context.provider.getBalance(alice.getAddress())).toString()).to.equal("8999999995937426817000000"); - expect((await context.provider.getBalance(alice.getAddress(), "latest")).toString()).to.equal("8999999995937426817000000"); + expect((await context.provider.getBalance(alice.getAddress())).toString()).to.equal("8999999995966306204000000"); + expect((await context.provider.getBalance(alice.getAddress(), "latest")).toString()).to.equal("8999999995966306204000000"); expect((await context.provider.getBalance(alice.getAddress(), "latest")).toString()) .to.equal((await context.provider.api.query.system.account(alice.substrateAddress)).data.free.toString() + "000000"); @@ -22,13 +22,13 @@ describeWithAcala("Acala RPC (Balance)", (context) => { step("balance to be updated after transfer", async function () { this.timeout(15000); - expect((await context.provider.getBalance(alice.getAddress())).toString()).to.equal("8999999995937426817000000"); - expect((await context.provider.getBalance(alice_stash.getAddress())).toString()).to.equal("10100000995937431778000000"); + expect((await context.provider.getBalance(alice.getAddress())).toString()).to.equal("8999999995966306204000000"); + expect((await context.provider.getBalance(alice_stash.getAddress())).toString()).to.equal("10100000995966311093000000"); await transfer(context, alice.substrateAddress, alice_stash.substrateAddress, 1000); - expect((await context.provider.getBalance(alice.getAddress())).toString()).to.equal("8999999992037566906000000"); - expect((await context.provider.getBalance(alice_stash.getAddress())).toString()).to.equal("10100000995937432778000000"); - expect((await context.provider.getBalance(alice.getAddress(), "latest")).toString()).to.equal("8999999992037566906000000"); + expect((await context.provider.getBalance(alice.getAddress())).toString()).to.equal("8999999992161450733000000"); + expect((await context.provider.getBalance(alice_stash.getAddress())).toString()).to.equal("10100000995966312093000000"); + expect((await context.provider.getBalance(alice.getAddress(), "latest")).toString()).to.equal("8999999992161450733000000"); expect((await context.provider.getBalance(alice_stash.getAddress(), "earliest")).toString()).to.equal("0"); }); }); diff --git a/ts-tests/tests/test-evm-call-fill-block.ts b/ts-tests/tests/test-evm-call-fill-block.ts index 3af4d4fd28..20921d1b6b 100644 --- a/ts-tests/tests/test-evm-call-fill-block.ts +++ b/ts-tests/tests/test-evm-call-fill-block.ts @@ -48,6 +48,6 @@ describeWithAcala("Acala RPC (EVM call fill block)", (context) => { const evmCreateEvents = events.events.filter((item) => context.provider.api.events.evm.Executed.is(item.event)); - expect(evmCreateEvents.length).to.equal(283); + expect(evmCreateEvents.length).to.closeTo(275, 10); }); }); diff --git a/ts-tests/tests/test-mempool-priority.ts b/ts-tests/tests/test-mempool-priority.ts index adab3fb823..cb79b32ca6 100644 --- a/ts-tests/tests/test-mempool-priority.ts +++ b/ts-tests/tests/test-mempool-priority.ts @@ -85,7 +85,7 @@ describeWithAcala("Acala RPC (Mempool Priority Order)", (context) => { ] } }; - const priorityRegex = /^65,813,8\d\d,\d{3},\d{3},\d{3}$/; + const priorityRegex = /^72,811,2\d\d,\d{3},\d{3},\d{3}$/; expect(operationalTransactionvalidity.toHuman()).to.satisfy((x: any) => { return x === expected || (