From ec3162a821cfb87a80d1176831d6fdc407259fdd Mon Sep 17 00:00:00 2001 From: Mario Kapusta Date: Wed, 25 Jan 2023 13:38:04 +0100 Subject: [PATCH 1/8] Trigerring change for first release branch flow. (#410) Co-authored-by: mateuszaaa --- .github/workflows/branch-release.yml | 2 +- Cargo.lock | 378 +++++++++++++-------------- Cargo.toml | 6 +- 3 files changed, 193 insertions(+), 193 deletions(-) diff --git a/.github/workflows/branch-release.yml b/.github/workflows/branch-release.yml index ea943e2205..db4128c662 100644 --- a/.github/workflows/branch-release.yml +++ b/.github/workflows/branch-release.yml @@ -120,4 +120,4 @@ jobs: e2eBranch: ${{ github.event.inputs.e2eBranch }} parachainDocker: ${{ github.event.inputs.parachainDocker }} skipBuild: 'false' - globalVersion: ${{ needs.init.outputs.GLOBAL_VERSION }} \ No newline at end of file + globalVersion: ${{ needs.init.outputs.GLOBAL_VERSION }} diff --git a/Cargo.lock b/Cargo.lock index 0e366d1f5f..f33149ebd8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -453,7 +453,7 @@ dependencies = [ [[package]] name = "beefy-gadget" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "array-bytes", "async-trait", @@ -490,7 +490,7 @@ dependencies = [ [[package]] name = "beefy-gadget-rpc" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "beefy-gadget", "beefy-primitives", @@ -510,7 +510,7 @@ dependencies = [ [[package]] name = "beefy-merkle-tree" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "beefy-primitives", "sp-api", @@ -520,7 +520,7 @@ dependencies = [ [[package]] name = "beefy-primitives" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "parity-scale-codec", "scale-info", @@ -2261,7 +2261,7 @@ dependencies = [ [[package]] name = "extrinsic-shuffler" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "derive_more", "log", @@ -2430,7 +2430,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "3.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "parity-scale-codec", ] @@ -2453,7 +2453,7 @@ checksum = "6c2141d6d6c8512188a7891b4b01590a45f6dac67afb4f255c4124dbb86d4eaa" [[package]] name = "frame-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-support", "frame-system", @@ -2477,7 +2477,7 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "Inflector", "array-bytes", @@ -2535,7 +2535,7 @@ dependencies = [ [[package]] name = "frame-election-provider-solution-type" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -2546,7 +2546,7 @@ dependencies = [ [[package]] name = "frame-election-provider-support" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-election-provider-solution-type", "frame-support", @@ -2562,7 +2562,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "aquamarine", "extrinsic-shuffler", @@ -2596,7 +2596,7 @@ dependencies = [ [[package]] name = "frame-support" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "bitflags", "frame-metadata", @@ -2629,7 +2629,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "Inflector", "cfg-expr", @@ -2643,7 +2643,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", @@ -2655,7 +2655,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "proc-macro2", "quote", @@ -2665,7 +2665,7 @@ dependencies = [ [[package]] name = "frame-system" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "extrinsic-shuffler", "frame-support", @@ -2685,7 +2685,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-support", @@ -2700,7 +2700,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance/substrate?branch=mangata-dev#d617872389dd5387f4e019f0260bada97f39b2e4" +source = "git+https://github.com/mangata-finance/substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" dependencies = [ "frame-benchmarking", "frame-support", @@ -2715,7 +2715,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "parity-scale-codec", "sp-api", @@ -2724,7 +2724,7 @@ dependencies = [ [[package]] name = "frame-try-runtime" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-support", "parity-scale-codec", @@ -4647,7 +4647,7 @@ dependencies = [ [[package]] name = "mangata-types" version = "0.1.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "parity-scale-codec", "scale-info", @@ -5426,7 +5426,7 @@ dependencies = [ [[package]] name = "pallet-aura" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-support", "frame-system", @@ -5442,7 +5442,7 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-support", "frame-system", @@ -5458,7 +5458,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-support", "frame-system", @@ -5473,7 +5473,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-support", @@ -5497,7 +5497,7 @@ dependencies = [ [[package]] name = "pallet-bags-list" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5517,7 +5517,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-support", @@ -5532,7 +5532,7 @@ dependencies = [ [[package]] name = "pallet-beefy" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "beefy-primitives", "frame-support", @@ -5548,7 +5548,7 @@ dependencies = [ [[package]] name = "pallet-beefy-mmr" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "array-bytes", "beefy-merkle-tree", @@ -5603,7 +5603,7 @@ dependencies = [ [[package]] name = "pallet-bounties" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-support", @@ -5621,7 +5621,7 @@ dependencies = [ [[package]] name = "pallet-child-bounties" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-support", @@ -5640,7 +5640,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-support", @@ -5657,7 +5657,7 @@ dependencies = [ [[package]] name = "pallet-collective-mangata" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-support", @@ -5674,7 +5674,7 @@ dependencies = [ [[package]] name = "pallet-conviction-voting" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "assert_matches", "frame-benchmarking", @@ -5714,7 +5714,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-support", @@ -5732,7 +5732,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-multi-phase" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5756,7 +5756,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-support-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5769,7 +5769,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "5.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-support", @@ -5787,7 +5787,7 @@ dependencies = [ [[package]] name = "pallet-fast-unstake" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5836,7 +5836,7 @@ dependencies = [ [[package]] name = "pallet-gilt" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-support", @@ -5851,7 +5851,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-support", @@ -5874,7 +5874,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "enumflags2", "frame-benchmarking", @@ -5890,7 +5890,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-support", @@ -5910,7 +5910,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-support", @@ -5952,7 +5952,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-support", @@ -5969,7 +5969,7 @@ dependencies = [ [[package]] name = "pallet-mmr" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "ckb-merkle-mountain-range", "frame-benchmarking", @@ -5987,7 +5987,7 @@ dependencies = [ [[package]] name = "pallet-mmr-rpc" version = "3.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "jsonrpsee", "parity-scale-codec", @@ -6033,7 +6033,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-support", @@ -6049,7 +6049,7 @@ dependencies = [ [[package]] name = "pallet-nomination-pools" version = "1.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-support", "frame-system", @@ -6066,7 +6066,7 @@ dependencies = [ [[package]] name = "pallet-nomination-pools-benchmarking" version = "1.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -6086,7 +6086,7 @@ dependencies = [ [[package]] name = "pallet-nomination-pools-runtime-api" version = "1.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "parity-scale-codec", "sp-api", @@ -6096,7 +6096,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-support", "frame-system", @@ -6113,7 +6113,7 @@ dependencies = [ [[package]] name = "pallet-offences-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -6136,7 +6136,7 @@ dependencies = [ [[package]] name = "pallet-preimage" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-support", @@ -6153,7 +6153,7 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-support", @@ -6168,7 +6168,7 @@ dependencies = [ [[package]] name = "pallet-ranked-collective" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-support", @@ -6186,7 +6186,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-support", @@ -6201,7 +6201,7 @@ dependencies = [ [[package]] name = "pallet-referenda" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "assert_matches", "frame-benchmarking", @@ -6219,7 +6219,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-support", @@ -6235,7 +6235,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-support", "frame-system", @@ -6256,7 +6256,7 @@ dependencies = [ [[package]] name = "pallet-session-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-support", @@ -6272,7 +6272,7 @@ dependencies = [ [[package]] name = "pallet-society" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-support", "frame-system", @@ -6286,7 +6286,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -6309,7 +6309,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -6320,7 +6320,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-fn" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "log", "sp-arithmetic", @@ -6329,7 +6329,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-support", "frame-system", @@ -6343,7 +6343,7 @@ dependencies = [ [[package]] name = "pallet-sudo-mangata" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-support", "frame-system", @@ -6375,7 +6375,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-support", @@ -6393,7 +6393,7 @@ dependencies = [ [[package]] name = "pallet-tips" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-support", @@ -6412,7 +6412,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-support", "frame-system", @@ -6428,7 +6428,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "jsonrpsee", "pallet-transaction-payment-rpc-runtime-api", @@ -6443,7 +6443,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -6454,7 +6454,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-support", @@ -6471,7 +6471,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-support", @@ -6487,7 +6487,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-support", @@ -6502,7 +6502,7 @@ dependencies = [ [[package]] name = "pallet-vesting-mangata" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-support", @@ -6517,7 +6517,7 @@ dependencies = [ [[package]] name = "pallet-vesting-mangata-rpc" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "jsonrpsee", "pallet-vesting-mangata-rpc-runtime-api", @@ -6534,7 +6534,7 @@ dependencies = [ [[package]] name = "pallet-vesting-mangata-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "pallet-vesting-mangata", "parity-scale-codec", @@ -6547,7 +6547,7 @@ dependencies = [ [[package]] name = "pallet-whitelist" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-benchmarking", "frame-support", @@ -8749,7 +8749,7 @@ checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848" [[package]] name = "remote-externalities" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "env_logger", "log", @@ -9117,7 +9117,7 @@ dependencies = [ [[package]] name = "sc-allocator" version = "4.1.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "log", "sp-core", @@ -9128,7 +9128,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "async-trait", "futures", @@ -9155,7 +9155,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "aquamarine", "futures", @@ -9179,7 +9179,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship-ver" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "aquamarine", "futures", @@ -9205,7 +9205,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -9221,7 +9221,7 @@ dependencies = [ [[package]] name = "sc-block-builder-ver" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "aquamarine", "extrinsic-shuffler", @@ -9242,7 +9242,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "impl-trait-for-tuples", "memmap2", @@ -9259,7 +9259,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -9270,7 +9270,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "array-bytes", "chrono", @@ -9310,7 +9310,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "fnv", "futures", @@ -9338,7 +9338,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "hash-db", "kvdb", @@ -9363,7 +9363,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "async-trait", "futures", @@ -9387,7 +9387,7 @@ dependencies = [ [[package]] name = "sc-consensus-aura" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "async-trait", "futures", @@ -9416,7 +9416,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "async-trait", "fork-tree", @@ -9458,7 +9458,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "futures", "jsonrpsee", @@ -9480,7 +9480,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "fork-tree", "parity-scale-codec", @@ -9493,7 +9493,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "async-trait", "futures", @@ -9520,7 +9520,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "lazy_static", "lru 0.7.8", @@ -9547,7 +9547,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "environmental", "parity-scale-codec", @@ -9563,7 +9563,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "log", "parity-scale-codec", @@ -9578,7 +9578,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "cfg-if 1.0.0", "libc", @@ -9598,7 +9598,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "ahash", "array-bytes", @@ -9639,7 +9639,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-rpc" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "finality-grandpa", "futures", @@ -9660,7 +9660,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "ansi_term", "futures", @@ -9677,7 +9677,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "array-bytes", "async-trait", @@ -9692,7 +9692,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "array-bytes", "async-trait", @@ -9739,7 +9739,7 @@ dependencies = [ [[package]] name = "sc-network-bitswap" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "cid", "futures", @@ -9759,7 +9759,7 @@ dependencies = [ [[package]] name = "sc-network-bitswap" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance/substrate?branch=mangata-dev#d617872389dd5387f4e019f0260bada97f39b2e4" +source = "git+https://github.com/mangata-finance/substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" dependencies = [ "cid", "futures", @@ -9779,7 +9779,7 @@ dependencies = [ [[package]] name = "sc-network-common" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "async-trait", "bitflags", @@ -9805,7 +9805,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "ahash", "futures", @@ -9823,7 +9823,7 @@ dependencies = [ [[package]] name = "sc-network-light" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "array-bytes", "futures", @@ -9844,7 +9844,7 @@ dependencies = [ [[package]] name = "sc-network-sync" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "array-bytes", "fork-tree", @@ -9874,7 +9874,7 @@ dependencies = [ [[package]] name = "sc-network-transactions" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "array-bytes", "futures", @@ -9893,7 +9893,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "array-bytes", "bytes", @@ -9923,7 +9923,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "futures", "libp2p", @@ -9936,7 +9936,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -9945,7 +9945,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "futures", "hash-db", @@ -9975,7 +9975,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "futures", "jsonrpsee", @@ -9998,7 +9998,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "futures", "jsonrpsee", @@ -10011,7 +10011,7 @@ dependencies = [ [[package]] name = "sc-rpc-spec-v2" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "futures", "hex", @@ -10030,7 +10030,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "async-trait", "directories", @@ -10103,7 +10103,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "log", "parity-scale-codec", @@ -10117,7 +10117,7 @@ dependencies = [ [[package]] name = "sc-sync-state-rpc" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "jsonrpsee", "parity-scale-codec", @@ -10136,7 +10136,7 @@ dependencies = [ [[package]] name = "sc-sysinfo" version = "6.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "futures", "libc", @@ -10155,7 +10155,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "chrono", "futures", @@ -10173,7 +10173,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "ansi_term", "atty", @@ -10204,7 +10204,7 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -10215,7 +10215,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "async-trait", "futures", @@ -10242,7 +10242,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool-api" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "async-trait", "futures", @@ -10256,7 +10256,7 @@ dependencies = [ [[package]] name = "sc-utils" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "futures", "futures-timer", @@ -10739,7 +10739,7 @@ dependencies = [ [[package]] name = "sp-api" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "hash-db", "log", @@ -10757,7 +10757,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "blake2", "proc-macro-crate", @@ -10769,7 +10769,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "6.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "parity-scale-codec", "scale-info", @@ -10782,7 +10782,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "5.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "integer-sqrt", "num-traits", @@ -10797,7 +10797,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "parity-scale-codec", "scale-info", @@ -10810,7 +10810,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "async-trait", "parity-scale-codec", @@ -10822,7 +10822,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "parity-scale-codec", "sp-api", @@ -10834,7 +10834,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "futures", "log", @@ -10852,7 +10852,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "async-trait", "futures", @@ -10871,7 +10871,7 @@ dependencies = [ [[package]] name = "sp-consensus-aura" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "async-trait", "parity-scale-codec", @@ -10889,7 +10889,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "async-trait", "merlin", @@ -10912,7 +10912,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "parity-scale-codec", "scale-info", @@ -10926,7 +10926,7 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "parity-scale-codec", "scale-info", @@ -10939,7 +10939,7 @@ dependencies = [ [[package]] name = "sp-core" version = "6.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "array-bytes", "base58", @@ -10985,7 +10985,7 @@ dependencies = [ [[package]] name = "sp-core-hashing" version = "4.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "blake2", "byteorder", @@ -10999,7 +10999,7 @@ dependencies = [ [[package]] name = "sp-core-hashing-proc-macro" version = "5.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "proc-macro2", "quote", @@ -11010,7 +11010,7 @@ dependencies = [ [[package]] name = "sp-database" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "kvdb", "parking_lot 0.12.1", @@ -11019,7 +11019,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "4.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "proc-macro2", "quote", @@ -11029,7 +11029,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.12.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "environmental", "parity-scale-codec", @@ -11040,7 +11040,7 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "finality-grandpa", "log", @@ -11058,7 +11058,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -11072,7 +11072,7 @@ dependencies = [ [[package]] name = "sp-io" version = "6.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "bytes", "futures", @@ -11098,7 +11098,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "6.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "lazy_static", "sp-core", @@ -11109,7 +11109,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.12.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "async-trait", "futures", @@ -11126,7 +11126,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "4.1.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "thiserror", "zstd", @@ -11135,7 +11135,7 @@ dependencies = [ [[package]] name = "sp-mmr-primitives" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "log", "parity-scale-codec", @@ -11151,7 +11151,7 @@ dependencies = [ [[package]] name = "sp-npos-elections" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "parity-scale-codec", "scale-info", @@ -11165,7 +11165,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "sp-api", "sp-core", @@ -11175,7 +11175,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "4.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "backtrace", "lazy_static", @@ -11185,7 +11185,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "6.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "rustc-hash", "serde", @@ -11195,7 +11195,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "6.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "either", "hash256-std-hasher", @@ -11218,7 +11218,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "6.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "bytes", "impl-trait-for-tuples", @@ -11236,7 +11236,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "5.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "Inflector", "proc-macro-crate", @@ -11248,7 +11248,7 @@ dependencies = [ [[package]] name = "sp-sandbox" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "log", "parity-scale-codec", @@ -11262,7 +11262,7 @@ dependencies = [ [[package]] name = "sp-session" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "parity-scale-codec", "scale-info", @@ -11276,7 +11276,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "parity-scale-codec", "scale-info", @@ -11287,7 +11287,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.12.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "hash-db", "log", @@ -11309,12 +11309,12 @@ dependencies = [ [[package]] name = "sp-std" version = "4.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" [[package]] name = "sp-storage" version = "6.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "impl-serde", "parity-scale-codec", @@ -11327,7 +11327,7 @@ dependencies = [ [[package]] name = "sp-tasks" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "log", "sp-core", @@ -11340,7 +11340,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "async-trait", "futures-timer", @@ -11356,7 +11356,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "5.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "parity-scale-codec", "sp-std", @@ -11368,7 +11368,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "sp-api", "sp-runtime", @@ -11377,7 +11377,7 @@ dependencies = [ [[package]] name = "sp-transaction-storage-proof" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "async-trait", "log", @@ -11393,7 +11393,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "6.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "ahash", "hash-db", @@ -11416,7 +11416,7 @@ dependencies = [ [[package]] name = "sp-ver" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "async-trait", "log", @@ -11434,7 +11434,7 @@ dependencies = [ [[package]] name = "sp-version" version = "5.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "impl-serde", "parity-scale-codec", @@ -11451,7 +11451,7 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "parity-scale-codec", "proc-macro2", @@ -11462,7 +11462,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "6.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "impl-trait-for-tuples", "log", @@ -11475,7 +11475,7 @@ dependencies = [ [[package]] name = "sp-weights" version = "4.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -11649,7 +11649,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "3.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "platforms 2.0.0", ] @@ -11657,7 +11657,7 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "frame-system-rpc-runtime-api", "futures", @@ -11678,7 +11678,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "futures-util", "hyper", @@ -11691,7 +11691,7 @@ dependencies = [ [[package]] name = "substrate-rpc-client" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "async-trait", "jsonrpsee", @@ -11704,7 +11704,7 @@ dependencies = [ [[package]] name = "substrate-state-trie-migration-rpc" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "jsonrpsee", "log", @@ -11725,7 +11725,7 @@ dependencies = [ [[package]] name = "substrate-test-client" version = "2.0.1" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "array-bytes", "async-trait", @@ -11751,7 +11751,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" version = "5.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "ansi_term", "build-helper", @@ -12272,7 +12272,7 @@ checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642" [[package]] name = "try-runtime-cli" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "clap", "frame-try-runtime", @@ -12450,7 +12450,7 @@ checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" [[package]] name = "ver-api" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" dependencies = [ "derive_more", "futures", diff --git a/Cargo.toml b/Cargo.toml index 937fa19ec7..b73f422bad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -945,7 +945,7 @@ polkadot-erasure-coding = { git = "https://github.com/mangata-finance//polkadot" # sp-authorship = { path = "../substrate/primitives/authorship" } # sp-storage = { path = "../substrate/primitives/storage" } # sp-inherents = { path = "../substrate/primitives/inherents" } - +# # # patch generated by ./scripts/dev_manifest.sh # [patch."https://github.com/paritytech/substrate"] # sc-offchain = { path = "../substrate/client/offchain" } @@ -1130,7 +1130,7 @@ polkadot-erasure-coding = { git = "https://github.com/mangata-finance//polkadot" # sp-authorship = { path = "../substrate/primitives/authorship" } # sp-storage = { path = "../substrate/primitives/storage" } # sp-inherents = { path = "../substrate/primitives/inherents" } - +# # # patch generated by ./scripts/dev_manifest.sh # [patch."https://github.com/PureStake/substrate"] # sc-offchain = { path = "../substrate/client/offchain" } @@ -1314,4 +1314,4 @@ polkadot-erasure-coding = { git = "https://github.com/mangata-finance//polkadot" # beefy-primitives = { path = "../substrate/primitives/beefy" } # sp-authorship = { path = "../substrate/primitives/authorship" } # sp-storage = { path = "../substrate/primitives/storage" } -# sp-inherents = { path = "../substrate/primitives/inherents" } \ No newline at end of file +# sp-inherents = { path = "../substrate/primitives/inherents" } From 290d8bb261d2fb2de4e7bae68d2cf70745718e41 Mon Sep 17 00:00:00 2001 From: Mario Kapusta Date: Wed, 25 Jan 2023 15:05:04 +0100 Subject: [PATCH 2/8] Hotfix/release pipeline (#411) - hotfixed the release name tag --- .github/workflows/release.yml | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c295ea9606..abcb9e6fab 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,9 +4,22 @@ on: release: types: [published] - jobs: + + init: + name: Global init + runs-on: ubuntu-latest + outputs: + RELEASE_VERSION: ${{ steps.set_vars.outputs.RELEASE_VERSION }} + steps: + - name: Set global version + id: set_vars + run: | + RELEASE_NAME=${{ github.event.release.name }} + echo "RELEASE_VERSION=${RELEASE_NAME#v}" >> $GITHUB_OUTPUT + publish: + needs: [init] runs-on: ubuntu-latest permissions: contents: write @@ -40,25 +53,25 @@ jobs: - name: Tag and push image [kusama] uses: akhilerm/tag-push-action@v2.0.0 with: - src: docker.io/mangatasolutions/mangata-node:${{ github.sha }} + src: docker.io/mangatasolutions/mangata-node:release-${{ needs.init.outputs.RELEASE_VERSION }} dst: ${{ steps.meta_kusama.outputs.tags }} - name: Tag and push image [rococo] uses: akhilerm/tag-push-action@v2.0.0 with: - src: docker.io/mangatasolutions/mangata-node:${{ github.sha }} + src: docker.io/mangatasolutions/mangata-node:release-${{ needs.init.outputs.RELEASE_VERSION }} dst: ${{ steps.meta_rococo.outputs.tags }} - name: Export docker image run: | - docker pull mangatasolutions/mangata-node:${{ github.sha }} - docker save mangatasolutions/mangata-node:${{ github.sha }} -o docker-${{ github.ref_name }}.tar + docker pull mangatasolutions/mangata-node:release-${{ needs.init.outputs.RELEASE_VERSION }} + docker save mangatasolutions/mangata-node:release-${{ needs.init.outputs.RELEASE_VERSION }} -o docker-${{ github.ref_name }}.tar zip -r docker-${{ github.ref_name }}.zip docker-${{ github.ref_name }}.tar - name: Extract wasms run: | - docker run --entrypoint="" --rm mangatasolutions/mangata-node:${{ github.sha }} cat /mangata/mangata_kusama_runtime.compact.compressed.wasm > kusama.wasm - docker run --entrypoint="" --rm mangatasolutions/mangata-node:${{ github.sha }} cat /mangata/mangata_rococo_runtime.compact.compressed.wasm > rococo.wasm + docker run --entrypoint="" --rm mangatasolutions/mangata-node:release-${{ needs.init.outputs.RELEASE_VERSION }} cat /mangata/mangata_kusama_runtime.compact.compressed.wasm > kusama.wasm + docker run --entrypoint="" --rm mangatasolutions/mangata-node:release-${{ needs.init.outputs.RELEASE_VERSION }} cat /mangata/mangata_rococo_runtime.compact.compressed.wasm > rococo.wasm - name: Calculate Blake2 hashes working-directory: scripts/blake2-hash From 0b05fbb13820b5250f21ad88e0e1f43ba9090613 Mon Sep 17 00:00:00 2001 From: Mario Kapusta Date: Fri, 3 Feb 2023 09:28:20 +0100 Subject: [PATCH 3/8] Release/0.27.2 (#414) Co-authored-by: Mateusz Nowakowski --- pallets/fee-lock/src/lib.rs | 9 +++++++-- runtime/mangata-kusama/src/lib.rs | 12 ++++++------ runtime/mangata-rococo/src/lib.rs | 12 ++++++------ 3 files changed, 19 insertions(+), 14 deletions(-) diff --git a/pallets/fee-lock/src/lib.rs b/pallets/fee-lock/src/lib.rs index 8a52365f37..82d779a854 100644 --- a/pallets/fee-lock/src/lib.rs +++ b/pallets/fee-lock/src/lib.rs @@ -94,8 +94,13 @@ pub mod pallet { #[pallet::storage] #[pallet::getter(fn get_account_fee_lock_data)] - pub type AccountFeeLockData = - StorageMap<_, Blake2_256, T::AccountId, AccountFeeLockDataInfo, ValueQuery>; + pub type AccountFeeLockData = StorageMap< + _, + Twox64Concat, + T::AccountId, + AccountFeeLockDataInfo, + ValueQuery, + >; #[pallet::event] #[pallet::generate_deposit(pub(super) fn deposit_event)] diff --git a/runtime/mangata-kusama/src/lib.rs b/runtime/mangata-kusama/src/lib.rs index d66d71cb37..2f5f5afdd4 100644 --- a/runtime/mangata-kusama/src/lib.rs +++ b/runtime/mangata-kusama/src/lib.rs @@ -161,11 +161,11 @@ impl_opaque_keys! { pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("mangata-parachain"), impl_name: create_runtime_str!("mangata-parachain"), - authoring_version: 12, - spec_version: 12, + authoring_version: 13, + spec_version: 13, impl_version: 0, apis: RUNTIME_API_VERSIONS, - transaction_version: 12, + transaction_version: 13, state_version: 0, }; @@ -174,11 +174,11 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("mangata-parachain"), impl_name: create_runtime_str!("mangata-parachain"), - authoring_version: 13, - spec_version: 13, + authoring_version: 14, + spec_version: 14, impl_version: 0, apis: RUNTIME_API_VERSIONS, - transaction_version: 13, + transaction_version: 14, state_version: 0, }; diff --git a/runtime/mangata-rococo/src/lib.rs b/runtime/mangata-rococo/src/lib.rs index 2642c3b4bc..d035bd67ea 100644 --- a/runtime/mangata-rococo/src/lib.rs +++ b/runtime/mangata-rococo/src/lib.rs @@ -161,11 +161,11 @@ impl_opaque_keys! { pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("mangata-parachain"), impl_name: create_runtime_str!("mangata-parachain"), - authoring_version: 11, - spec_version: 11, + authoring_version: 12, + spec_version: 12, impl_version: 0, apis: RUNTIME_API_VERSIONS, - transaction_version: 11, + transaction_version: 12, state_version: 0, }; @@ -174,11 +174,11 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("mangata-parachain"), impl_name: create_runtime_str!("mangata-parachain"), - authoring_version: 12, - spec_version: 12, + authoring_version: 13, + spec_version: 13, impl_version: 0, apis: RUNTIME_API_VERSIONS, - transaction_version: 12, + transaction_version: 13, state_version: 0, }; From 2ed97d24681169dfe14bb74b071b9b390add21ca Mon Sep 17 00:00:00 2001 From: Mario Kapusta Date: Fri, 24 Feb 2023 13:57:37 +0100 Subject: [PATCH 4/8] Release/0.28.0 (#428) Co-authored-by: mateuszaaa Co-authored-by: goncer Co-authored-by: Misha Kolesnik Co-authored-by: iStrike7 <40371953+iStrike7@users.noreply.github.com> Co-authored-by: Michal Danco Co-authored-by: Mateusz Nowakowski Co-authored-by: Marian Vanderka --- .github/workflows/branch-develop.yml | 11 +- .github/workflows/deploy-rococo.yml | 63 + .github/workflows/reusable-build-and-test.yml | 18 +- .github/workflows/reusable-deploy.yml | 3 + .github/workflows/reusable-e2e-tests.yml | 57 +- .../workflows/reusable-perfomance-tests.yml | 49 + Cargo.lock | 2454 +++++++++-------- Cargo.toml | 39 +- devops/helmfiles/config/default.yaml | 2 +- devops/helmfiles/config/fungible.yaml | 17 +- devops/helmfiles/helmfile.yaml | 10 +- devops/helmfiles/values.yaml.gotmpl | 3 +- devops/zombienet/oak-mangata-rococo.toml | 56 + .../statemine_managata_rococo_local.toml | 63 + devops/zombienet/westend.toml | 29 + launch/kusama-fast-oak.yml | 4 +- launch/package-lock.json | 2454 ----------------- node/Cargo.toml | 43 +- node/src/chain_spec/mangata_kusama.rs | 3 +- node/src/chain_spec/mangata_rococo.rs | 14 +- node/src/cli.rs | 7 +- node/src/client.rs | 33 +- node/src/command.rs | 88 +- node/src/command_helper.rs | 10 +- node/src/service.rs | 56 +- pallets/bootstrap/Cargo.toml | 9 +- pallets/bootstrap/src/lib.rs | 24 +- pallets/bootstrap/src/mock.rs | 50 +- pallets/bootstrap/src/tests.rs | 35 + pallets/fee-lock/Cargo.toml | 11 +- pallets/fee-lock/src/benchmarking.rs | 3 +- pallets/fee-lock/src/lib.rs | 50 +- pallets/fee-lock/src/mock.rs | 7 +- pallets/issuance/Cargo.toml | 6 +- pallets/issuance/src/lib.rs | 9 +- pallets/issuance/src/mock.rs | 8 +- pallets/maintenance/Cargo.toml | 56 + pallets/maintenance/src/benchmarking.rs | 110 + pallets/maintenance/src/lib.rs | 226 ++ pallets/maintenance/src/mock.rs | 91 + pallets/maintenance/src/tests.rs | 229 ++ pallets/multipurpose-liquidity/Cargo.toml | 8 +- .../src/benchmarking.rs | 2 +- pallets/multipurpose-liquidity/src/lib.rs | 29 +- pallets/multipurpose-liquidity/src/mock.rs | 55 +- pallets/sudo-origin/Cargo.toml | 8 +- pallets/sudo-origin/src/lib.rs | 3 + pallets/sudo-origin/src/mock.rs | 2 + pallets/xyk/Cargo.toml | 10 +- pallets/xyk/rpc/Cargo.toml | 8 +- pallets/xyk/runtime-api/Cargo.toml | 4 +- pallets/xyk/src/benchmarking.rs | 125 +- pallets/xyk/src/lib.rs | 770 +++++- pallets/xyk/src/mock.rs | 53 +- pallets/xyk/src/tests.rs | 1031 ++++++- pallets/xyk/src/weights.rs | 38 +- primitives/bootstrap/Cargo.toml | 4 +- primitives/multipurpose-liquidity/Cargo.toml | 4 +- primitives/traits/Cargo.toml | 4 +- primitives/traits/src/lib.rs | 73 +- rpc/nonce/Cargo.toml | 6 +- runtime/mangata-kusama/Cargo.toml | 33 +- runtime/mangata-kusama/src/constants.rs | 6 +- runtime/mangata-kusama/src/lib.rs | 230 +- .../src/weights/block_weights.rs | 35 +- .../src/weights/extrinsic_weights.rs | 35 +- .../src/weights/frame_system.rs | 58 +- runtime/mangata-kusama/src/weights/mod.rs | 5 +- .../src/weights/orml_asset_registry.rs | 10 +- .../mangata-kusama/src/weights/orml_tokens.rs | 30 +- .../src/weights/pallet_bootstrap.rs | 18 +- .../src/weights/pallet_collective_mangata.rs | 210 +- .../src/weights/pallet_crowdloan_rewards.rs | 46 +- .../src/weights/pallet_fee_lock.rs | 28 +- .../src/weights/pallet_issuance.rs | 22 +- .../weights/pallet_multipurpose_liquidity.rs | 10 +- .../src/weights/pallet_session.rs | 10 +- .../src/weights/pallet_timestamp.rs | 10 +- .../src/weights/pallet_treasury.rs | 48 +- ...t_utility.rs => pallet_utility_mangata.rs} | 54 +- .../src/weights/pallet_vesting_mangata.rs | 86 +- .../mangata-kusama/src/weights/pallet_xyk.rs | 143 +- .../src/weights/parachain_staking.rs | 222 +- runtime/mangata-kusama/src/xcm_config.rs | 5 +- runtime/mangata-rococo/Cargo.toml | 32 +- runtime/mangata-rococo/src/constants.rs | 6 +- runtime/mangata-rococo/src/lib.rs | 230 +- .../src/weights/block_weights.rs | 35 +- .../src/weights/extrinsic_weights.rs | 35 +- .../src/weights/frame_system.rs | 58 +- runtime/mangata-rococo/src/weights/mod.rs | 5 +- .../src/weights/orml_asset_registry.rs | 10 +- .../mangata-rococo/src/weights/orml_tokens.rs | 30 +- .../src/weights/pallet_bootstrap.rs | 18 +- .../src/weights/pallet_collective_mangata.rs | 210 +- .../src/weights/pallet_crowdloan_rewards.rs | 46 +- .../src/weights/pallet_fee_lock.rs | 28 +- .../src/weights/pallet_issuance.rs | 22 +- .../weights/pallet_multipurpose_liquidity.rs | 10 +- .../src/weights/pallet_session.rs | 10 +- .../src/weights/pallet_timestamp.rs | 10 +- .../src/weights/pallet_treasury.rs | 48 +- ...t_utility.rs => pallet_utility_mangata.rs} | 54 +- .../src/weights/pallet_vesting_mangata.rs | 86 +- .../mangata-rococo/src/weights/pallet_xyk.rs | 143 +- .../src/weights/parachain_staking.rs | 222 +- runtime/mangata-rococo/src/xcm_config.rs | 5 +- scripts/run_benchmark.sh | 6 +- scripts/run_benchmarks.sh | 34 +- 109 files changed, 6341 insertions(+), 5153 deletions(-) create mode 100644 .github/workflows/deploy-rococo.yml create mode 100644 .github/workflows/reusable-perfomance-tests.yml create mode 100644 devops/zombienet/oak-mangata-rococo.toml create mode 100644 devops/zombienet/statemine_managata_rococo_local.toml create mode 100644 devops/zombienet/westend.toml delete mode 100644 launch/package-lock.json create mode 100644 pallets/maintenance/Cargo.toml create mode 100644 pallets/maintenance/src/benchmarking.rs create mode 100644 pallets/maintenance/src/lib.rs create mode 100644 pallets/maintenance/src/mock.rs create mode 100644 pallets/maintenance/src/tests.rs rename runtime/mangata-kusama/src/weights/{pallet_utility.rs => pallet_utility_mangata.rs} (64%) rename runtime/mangata-rococo/src/weights/{pallet_utility.rs => pallet_utility_mangata.rs} (64%) diff --git a/.github/workflows/branch-develop.yml b/.github/workflows/branch-develop.yml index 68fb91cc2d..564e8ca3a0 100644 --- a/.github/workflows/branch-develop.yml +++ b/.github/workflows/branch-develop.yml @@ -82,6 +82,15 @@ jobs: with: env: fungible version: ${{ needs.init.outputs.GLOBAL_VERSION }} + + performance-tests: + name: performance tests + needs: [init, deploy-fungible] + if: | + (github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == ':rocket: deploy' && contains(github.event.pull_request.labels.*.name, 'full-benchmarks')) || + (github.event_name == 'pull_request' && github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, ':rocket: deploy') && contains(github.event.pull_request.labels.*.name, 'full-benchmarks')) + uses: ./.github/workflows/reusable-perfomance-tests.yml + secrets: inherit clean-up-fungible: name: Delete fungible environment @@ -131,4 +140,4 @@ jobs: e2eBranch: ${{ github.event.inputs.e2eBranch }} parachainDocker: ${{ github.event.inputs.parachainDocker }} skipBuild: ${{ github.event.inputs.skipBuild }} - globalVersion: ${{ needs.init.outputs.GLOBAL_VERSION }} \ No newline at end of file + globalVersion: ${{ needs.init.outputs.GLOBAL_VERSION }} diff --git a/.github/workflows/deploy-rococo.yml b/.github/workflows/deploy-rococo.yml new file mode 100644 index 0000000000..4000925522 --- /dev/null +++ b/.github/workflows/deploy-rococo.yml @@ -0,0 +1,63 @@ +name: Deploy mangata-node to `rococo` + +on: + workflow_dispatch: + inputs: + version: + description: "Version to be assigned to the built image" + required: true + type: string + workflow_call: + inputs: + version: + description: "Version to be assigned to the built image" + required: true + type: string + +concurrency: rococo_environment + +jobs: + deploy_rococo: + runs-on: ubuntu-latest + environment: rococo + env: + version_file: helmfiles/rococo/.version + GH_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} + steps: + - name: Verify specified version exists + run: docker pull mangatasolutions/mangata-node:${{ inputs.version }} + + - name: Checkout `mangata-finance/gitops` repository + uses: actions/checkout@v3 + with: + repository: mangata-finance/gitops + ref: main + token: ${{ secrets.BOT_GITHUB_TOKEN }} + + - name: Push updated version to `gitops` repository + id: version + run: | + echo -n '${{ inputs.version }}' > ${{ env.version_file }} + git config user.name mangatafinance + git config user.email solutions@mangata.finance + git add . + git commit -m 'chore: deploy ${{ inputs.version }} to rococo environment' || \ + echo "changed=false" >> $GITHUB_OUTPUT + git push + + - name: Watch deployment workflow run + run: | + # Rerun previous workflow if version didn't change + [ -n '${{ steps.version.outputs.changed }}' ] && gh run rerun $(gh run list -w deploy-rococo.yml -L1 --json databaseId --jq '.[].databaseId') + + sleep 5 && gh run list -L10 -w deploy-rococo.yml + export RUN_ID=$(gh run list -w deploy-rococo.yml -L1 --json databaseId --jq '.[].databaseId') + + if [[ ($(gh run view "$RUN_ID" --json headSha --jq '.headSha') != $(git rev-parse HEAD)) && -z '${{ steps.version.outputs.changed }}' ]]; then + echo "Commited git SHA doesn't match with the SHA of the retrieved Run ID" + exit 1 + fi + + echo "Deployed version: ${{ inputs.version }}" >> $GITHUB_STEP_SUMMARY + echo "Deployment workflow URL: $(gh run view "$RUN_ID" --json url --jq '.url')" >> $GITHUB_STEP_SUMMARY + gh run watch "$RUN_ID" --exit-status \ No newline at end of file diff --git a/.github/workflows/reusable-build-and-test.yml b/.github/workflows/reusable-build-and-test.yml index 1967a7251b..536b0dc66d 100644 --- a/.github/workflows/reusable-build-and-test.yml +++ b/.github/workflows/reusable-build-and-test.yml @@ -13,7 +13,7 @@ on: required: true type: string builder_image: - default: mangatasolutions/node-builder:multi-nightly-2022-11-21 + default: mangatasolutions/node-builder:multi-nightly-2022-11-15 description: Docker image used for Rust builds required: false type: string @@ -51,7 +51,7 @@ jobs: /usr/local/cargo/registry ~/.cache/sccache key: node-cache-${{ inputs.cache_version }}-${{ hashFiles('Cargo.lock') }} - + - name: Compile mangata-node code run: cargo build --release --no-default-features --features=mangata-rococo,mangata-kusama @@ -59,7 +59,7 @@ jobs: run: | cp target/release/wbuild/mangata-kusama-runtime/mangata_kusama_runtime.compact.compressed.wasm ./mangata_kusama_runtime-${{ inputs.version }}.compact.compressed.wasm cp target/release/wbuild/mangata-rococo-runtime/mangata_rococo_runtime.compact.compressed.wasm ./mangata_rococo_runtime-${{ inputs.version }}.compact.compressed.wasm - + - name: Build and push Docker image run: | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }} @@ -80,7 +80,7 @@ jobs: run: | cp target/release/wbuild/mangata-kusama-runtime/mangata_kusama_runtime.compact.compressed.wasm ./mangata_kusama_runtime-${{ inputs.version }}-fast.compact.compressed.wasm cp target/release/wbuild/mangata-rococo-runtime/mangata_rococo_runtime.compact.compressed.wasm ./mangata_rococo_runtime-${{ inputs.version }}-fast.compact.compressed.wasm - + - name: Build and push Docker image with fast runtime run: | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }} @@ -102,7 +102,7 @@ jobs: ./mangata_rococo_runtime-${{ inputs.version }}.compact.compressed.wasm ./mangata_kusama_runtime-${{ inputs.version }}-fast.compact.compressed.wasm ./mangata_rococo_runtime-${{ inputs.version }}-fast.compact.compressed.wasm - + - name: Fix permissions on self-hosted runner if: always() run: chown -R 1003:1004 $GITHUB_WORKSPACE @@ -216,11 +216,11 @@ jobs: key: cargo-try-runtime-${{ inputs.cache_version }}-${{ hashFiles('Cargo.lock') }} - name: Run try-runtime Rococo testnet - run: cargo run --release --features=try-runtime,mangata-rococo try-runtime --chain=public-testnet --execution=Native on-runtime-upgrade live --uri wss://roccoco-testnet-collator-01.mangatafinance.cloud:443 + run: cargo run --release --features=try-runtime,mangata-rococo try-runtime --chain=public-testnet --runtime=target/release/wbuild/mangata-rococo-runtime/mangata_rococo_runtime.wasm on-runtime-upgrade live --uri wss://roccoco-testnet-collator-01.mangatafinance.cloud:443 - name: Run try-runtime Kusama Mainnet - run: cargo run --release --features=try-runtime try-runtime --chain=kusama-mainnet --execution=Native on-runtime-upgrade live --uri wss://prod-kusama-collator-01.mangatafinance.cloud:443 - + run: cargo run --release --features=try-runtime try-runtime --chain=kusama-mainnet --runtime=target/release/wbuild/mangata-kusama-runtime/mangata_kusama_runtime.wasm on-runtime-upgrade live --uri wss://prod-kusama-collator-01.mangatafinance.cloud:443 + - name: Fix permissions on self-hosted runner if: always() run: chown -R 1003:1004 $GITHUB_WORKSPACE @@ -274,7 +274,7 @@ jobs: --repeat ${{ env.REPEATS }} \ --template ./templates/module-weight-template.hbs \ --output ./benchmarks/ - + - name: Run block & extrinsic overhead benchmarks run: | target/release/mangata-node benchmark overhead --execution native --chain dev -lblock_builder=debug --max-ext-per-block 50000 --base-path . diff --git a/.github/workflows/reusable-deploy.yml b/.github/workflows/reusable-deploy.yml index 3187febeb9..079000c212 100644 --- a/.github/workflows/reusable-deploy.yml +++ b/.github/workflows/reusable-deploy.yml @@ -73,6 +73,9 @@ jobs: - run: | export ENVIRONMENT=${{ env.ENV_REF }} export IMAGE_TAG=${{ inputs.version }} + + # https://dev.to/derlin/helmfile-difference-between-sync-and-apply-helm-3-28o1 + export HELM_DIFF_THREE_WAY_MERGE=true helmfile apply -e ${{ inputs.env }} working-directory: devops/helmfiles diff --git a/.github/workflows/reusable-e2e-tests.yml b/.github/workflows/reusable-e2e-tests.yml index e0181534c2..07d4a02a42 100644 --- a/.github/workflows/reusable-e2e-tests.yml +++ b/.github/workflows/reusable-e2e-tests.yml @@ -1,6 +1,27 @@ name: Reusable e2e tests workflow on: + workflow_dispatch: + inputs: + e2eBranch: + description: "Name of the e2e target branch" + type: string + required: false + default: "main" + parachainDocker: + description: "Name of the parachain docker reference" + type: string + required: false + default: "mangatasolutions/mangata-node:latest" + skipBuild: + description: "Skip build phase" + type: string + required: false + default: false + globalVersion: + description: "Set Mangata node version." + type: string + required: true workflow_call: inputs: e2eBranch: @@ -33,7 +54,19 @@ jobs: e2e-test-matrix: strategy: matrix: - command: ["yarn test-parallel --max-workers=32", "yarn test-sequential-no-bootstrap"] + include: + - command: "yarn test-parallel --max-workers=32" + fast: false + - command: "yarn test-sequential-no-bootstrap" + fast: false + - command: "yarn test-seqgasless" + fast: false + - command: "yarn test-bootstrap" + fast: false + - command: "yarn test-rewards-bootstrap" + fast: false + - command: "yarn test-sequential-autocompound" + fast: true runs-on: [self-hosted, compile] timeout-minutes: 180 env: @@ -51,6 +84,10 @@ jobs: ####IDK, but this is neccesary for reports - uses: actions/checkout@v3 + - name: Adapt if fast runtime + if: ${{ !contains(env.PARACHAIN_DOCKER_IMAGE, 'fast') && matrix.fast == true }} + run: echo "PARACHAIN_DOCKER_IMAGE=${{ env.PARACHAIN_DOCKER_IMAGE }}-fast" >> $GITHUB_ENV + - name: Download node Docker image if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-build') && inputs.skipBuild != 'true' }} run: docker pull ${{ env.PARACHAIN_DOCKER_IMAGE }} @@ -84,6 +121,12 @@ jobs: repository: mangata-finance/mangata-e2e ref: "${{ env.E2EBRANCHNAME }}" path: e2eTests + + - uses: actions/setup-node@v3 + with: + node-version: '16' + cache: 'yarn' + cache-dependency-path: '**/yarn.lock' - name: Print parachain docker image reference run: | @@ -93,9 +136,13 @@ jobs: working-directory: launch run: sed -i 's+mangatasolutions/mangata-node:dev+${{ env.PARACHAIN_DOCKER_IMAGE }}+g' config.yml - - name: Install parachain launch + - name: Install parachain launch dependencies working-directory: launch run: yarn + + - name: Install e2e tests dependencies + working-directory: e2eTests + run: yarn - name: Generate parachain launch config working-directory: launch @@ -109,12 +156,8 @@ jobs: working-directory: launch run: yarn up - - name: Install dependencies - working-directory: e2eTests - run: yarn - - name: Docker ps - run: docker ps + run: docker ps --no-trunc - name: Sleep for 2 minutes run: sleep 120s #close buffers of videos. diff --git a/.github/workflows/reusable-perfomance-tests.yml b/.github/workflows/reusable-perfomance-tests.yml new file mode 100644 index 0000000000..bfdce93396 --- /dev/null +++ b/.github/workflows/reusable-perfomance-tests.yml @@ -0,0 +1,49 @@ +name: Performance tests workflow +on: + workflow_call: + +permissions: + contents: write + id-token: write + deployments: write + checks: write + +jobs: + performance-tests: + runs-on: [self-hosted, compile] + timeout-minutes: 180 + env: + ENV_REF: ${{ format('pr-{0}', github.event.number) }} + steps: + ####IDK, but this is neccesary for reports + - uses: actions/checkout@v3 + + - name: Checkout performance-tests + uses: actions/checkout@v3 + with: + token: ${{ secrets.DEV_TOOLS_REPO_ACCESS_TOKEN }} + repository: mangata-finance/dev-tools + path: dev-tools + + - name: Install parachain launch + working-directory: dev-tools/fill-block-with-txs + run: npm install + + - name: Run performance tests + working-directory: dev-tools/fill-block-with-txs + run: | + ./index.js --url "wss://node-01-ws-${{ env.ENV_REF }}.mangata.online" \ + --url "wss://node-02-ws-${{ env.ENV_REF }}.mangata.online" \ + --mnemonic ${{ secrets.E2E_TEST_SUDO_NAME }} \ + --txs_count 800 \ + --workers_count 8 \ + --timeout 300 \ + --output ../../performance-benchmark.png \ + --expected_throughput 300 \ + --number_of_blocks 50 + + - name: Upload reports + uses: actions/upload-artifact@v3.1.1 + with: + name: performance-benchmark + path: ./performance-benchmark.png diff --git a/Cargo.lock b/Cargo.lock index f33149ebd8..56dda774dd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -27,7 +27,7 @@ version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a76fd60b23679b7d19bd066031410fb7e458ccc5e958eb5c325888ce4baedc97" dependencies = [ - "gimli 0.27.0", + "gimli 0.27.1", ] [[package]] @@ -51,7 +51,7 @@ version = "0.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9e8b47f52ea9bae42228d07ec09eb676433d7c4ed1ebdf0f1d1c29ed446f1ab8" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "cipher", "cpufeatures", "opaque-debug 0.3.0", @@ -117,9 +117,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.68" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2cb2f989d18dd141ab8ae82f64d1a8cdd37e0840f73a406896cf5e99502fab61" +checksum = "224afbd727c3d6e4b90103ece64b8d1b67fbb1973b1046c2281eed3f3803f800" [[package]] name = "approx" @@ -150,19 +150,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f52f63c5c1316a16a4b35eaac8b76a98248961a533f061684cb2a7cb0eafb6c6" [[package]] -name = "arrayref" -version = "0.3.6" +name = "array-bytes" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4c527152e37cf757a3f78aae5a06fbeefdb07ccc535c980a3208ee3060dd544" +checksum = "22f72e9d6fac4bc80778ea470b20197b88d28c292bb7d60c3fb099280003cd19" [[package]] -name = "arrayvec" -version = "0.4.12" +name = "arrayref" +version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd9fd44efafa8690358b7408d253adf110036b88f55672a933f01d616ad9b1b9" -dependencies = [ - "nodrop", -] +checksum = "a4c527152e37cf757a3f78aae5a06fbeefdb07ccc535c980a3208ee3060dd544" [[package]] name = "arrayvec" @@ -278,7 +275,7 @@ dependencies = [ "async-lock", "autocfg", "blocking", - "cfg-if 1.0.0", + "cfg-if", "event-listener", "futures-lite", "libc", @@ -297,7 +294,6 @@ dependencies = [ "async-global-executor", "async-io", "async-lock", - "async-process", "crossbeam-utils", "futures-channel", "futures-core", @@ -314,21 +310,6 @@ dependencies = [ "wasm-bindgen-futures", ] -[[package]] -name = "async-std-resolver" -version = "0.22.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ba50e24d9ee0a8950d3d03fc6d0dd10aa14b5de3b101949b4e160f7fee7c723" -dependencies = [ - "async-std", - "async-trait", - "futures-io", - "futures-util", - "pin-utils", - "socket2", - "trust-dns-resolver", -] - [[package]] name = "async-task" version = "4.3.0" @@ -337,9 +318,9 @@ checksum = "7a40729d2133846d9ed0ea60a8b9541bccddab49cd30f0715a1da672fe9a2524" [[package]] name = "async-trait" -version = "0.1.60" +version = "0.1.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "677d1d8ab452a3936018a687b20e6f7cf5363d713b732b8884001317b0e48aa3" +checksum = "1cd7fce9ba8c3c042128ce72d8b2ddbf3a05747efb67ea0313c635e10bda47a2" dependencies = [ "proc-macro2", "quote", @@ -361,9 +342,9 @@ dependencies = [ [[package]] name = "atomic-waker" -version = "1.0.0" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "065374052e7df7ee4047b1160cca5e1467a12351a40b3da123c870ba0b8eda2a" +checksum = "debc29dde2e69f9e47506b525f639ed42300fc014a3e007832592448fa8e4599" [[package]] name = "atty" @@ -382,20 +363,6 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" -[[package]] -name = "backoff" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b62ddb9cb1ec0a098ad4bbf9344d0713fa193ae1a80af55febcff2627b6a00c1" -dependencies = [ - "futures-core", - "getrandom 0.2.8", - "instant", - "pin-project-lite 0.2.9", - "rand 0.8.5", - "tokio", -] - [[package]] name = "backtrace" version = "0.3.67" @@ -404,10 +371,10 @@ checksum = "233d376d6d185f2a3093e58f283f60f880315b6c60075b01f36b3b85154564ca" dependencies = [ "addr2line 0.19.0", "cc", - "cfg-if 1.0.0", + "cfg-if", "libc", "miniz_oxide", - "object 0.30.0", + "object 0.30.3", "rustc-demangle", ] @@ -435,6 +402,12 @@ version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" +[[package]] +name = "base64" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4a4ddaa51a5bc52a6948f74c06d20aaaddb71924eab79b8c97a8c556e942d6a" + [[package]] name = "base64ct" version = "1.5.3" @@ -453,11 +426,10 @@ dependencies = [ [[package]] name = "beefy-gadget" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ - "array-bytes", + "array-bytes 4.2.0", "async-trait", - "beefy-primitives", "fnv", "futures", "futures-timer", @@ -476,6 +448,7 @@ dependencies = [ "sp-api", "sp-application-crypto", "sp-arithmetic", + "sp-beefy", "sp-blockchain", "sp-consensus", "sp-core", @@ -490,10 +463,9 @@ dependencies = [ [[package]] name = "beefy-gadget-rpc" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "beefy-gadget", - "beefy-primitives", "futures", "jsonrpsee", "log", @@ -502,6 +474,7 @@ dependencies = [ "sc-rpc", "sc-utils", "serde", + "sp-beefy", "sp-core", "sp-runtime", "thiserror", @@ -510,30 +483,13 @@ dependencies = [ [[package]] name = "beefy-merkle-tree" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ - "beefy-primitives", "sp-api", + "sp-beefy", "sp-runtime", ] -[[package]] -name = "beefy-primitives" -version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" -dependencies = [ - "parity-scale-codec", - "scale-info", - "serde", - "sp-api", - "sp-application-crypto", - "sp-core", - "sp-io", - "sp-mmr-primitives", - "sp-runtime", - "sp-std", -] - [[package]] name = "bincode" version = "1.3.3" @@ -545,9 +501,9 @@ dependencies = [ [[package]] name = "bindgen" -version = "0.60.1" +version = "0.64.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "062dddbc1ba4aca46de6338e2bf87771414c335f7b2f2036e8f3e9befebf88e6" +checksum = "c4243e6031260db77ede97ad86c27e501d646a27ab57b59a574f725d98ab1fb4" dependencies = [ "bitflags", "cexpr", @@ -560,6 +516,7 @@ dependencies = [ "regex", "rustc-hash", "shlex", + "syn", ] [[package]] @@ -589,36 +546,26 @@ dependencies = [ "digest 0.10.6", ] -[[package]] -name = "blake2-rfc" -version = "0.2.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d6d530bdd2d52966a6d03b7a964add7ae1a288d25214066fd4b600f0f796400" -dependencies = [ - "arrayvec 0.4.12", - "constant_time_eq 0.1.5", -] - [[package]] name = "blake2b_simd" -version = "1.0.0" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72936ee4afc7f8f736d1c38383b56480b5497b4617b4a77bdbf1d2ababc76127" +checksum = "3c2f0dc9a68c6317d884f97cc36cf5a3d20ba14ce404227df55e1af708ab04bc" dependencies = [ "arrayref", "arrayvec 0.7.2", - "constant_time_eq 0.1.5", + "constant_time_eq", ] [[package]] name = "blake2s_simd" -version = "1.0.0" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db539cc2b5f6003621f1cd9ef92d7ded8ea5232c7de0f9faa2de251cd98730d4" +checksum = "6637f448b9e61dfadbdcbae9a885fadee1f3eaffb1f8d3c1965d3ade8bdfd44f" dependencies = [ "arrayref", "arrayvec 0.7.2", - "constant_time_eq 0.1.5", + "constant_time_eq", ] [[package]] @@ -630,8 +577,8 @@ dependencies = [ "arrayref", "arrayvec 0.7.2", "cc", - "cfg-if 1.0.0", - "constant_time_eq 0.2.4", + "cfg-if", + "constant_time_eq", "digest 0.10.6", ] @@ -714,6 +661,16 @@ dependencies = [ "regex-automata", ] +[[package]] +name = "bstr" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7f0778972c64420fdedc63f09919c8a88bda7b25135357fd25a5d9f3257e832" +dependencies = [ + "memchr", + "serde", +] + [[package]] name = "build-helper" version = "0.1.1" @@ -725,9 +682,9 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.11.1" +version = "3.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "572f695136211188308f16ad2ca5c851a712c464060ae6974944458eb83880ba" +checksum = "0d261e256854913907f67ed06efbc3338dfe6179796deefc1ff763fc1aee5535" [[package]] name = "byte-slice-cast" @@ -749,9 +706,9 @@ checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" [[package]] name = "bytes" -version = "1.3.0" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfb24e866b15a1af2a1b663f10c6b6b8f397a84aadb828f12e5b289ec23a3a3c" +checksum = "89b2fd2a0dcf38d7971e2194b6b6eebab45ae01067456a7fd93d5547a61b70be" [[package]] name = "bzip2-sys" @@ -766,9 +723,9 @@ dependencies = [ [[package]] name = "camino" -version = "1.1.1" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88ad0e1e3e88dd237a156ab9f571021b8a158caa0ae44b1968a241efb5144c1e" +checksum = "c77df041dc383319cc661b428b6961a005db4d6808d5e12536931b1ca9556055" dependencies = [ "serde", ] @@ -797,9 +754,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.78" +version = "1.0.79" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a20104e2335ce8a659d6dd92a51a767a0c062599c73b343fd152cb401e828c3d" +checksum = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f" dependencies = [ "jobserver", ] @@ -822,12 +779,6 @@ dependencies = [ "smallvec", ] -[[package]] -name = "cfg-if" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" - [[package]] name = "cfg-if" version = "1.0.0" @@ -846,7 +797,7 @@ version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5c80e5460aa66fe3b91d40bcbdab953a597b60053e34d684ac6903f863b680a6" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "cipher", "cpufeatures", "zeroize", @@ -904,11 +855,11 @@ dependencies = [ [[package]] name = "ckb-merkle-mountain-range" -version = "0.3.2" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f061f97d64fd1822664bdfb722f7ae5469a97b77567390f7442be5b5dc82a5b" +checksum = "56ccb671c5921be8a84686e6212ca184cb1d7c51cadcdbfcbd1cc3f042f5dfb8" dependencies = [ - "cfg-if 0.1.10", + "cfg-if", ] [[package]] @@ -924,9 +875,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.0.32" +version = "4.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7db700bc935f9e43e88d00b0850dae18a63773cfbec6d8e070fccf7fef89a39" +checksum = "f13b9c79b5d1dd500d20ef541215a6423c75829ef43117e1b4d17fd8af0b5d76" dependencies = [ "bitflags", "clap_derive", @@ -939,9 +890,9 @@ dependencies = [ [[package]] name = "clap_derive" -version = "4.0.21" +version = "4.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0177313f9f02afc995627906bbd8967e2be069f5261954222dac78290c2b9014" +checksum = "684a277d672e91966334af371f1a7b5833f9aa00b07c84e92fbce95e00208ce8" dependencies = [ "heck", "proc-macro-error", @@ -952,9 +903,9 @@ dependencies = [ [[package]] name = "clap_lex" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d4198f73e42b4936b35b5bb248d81d2b595ecb170da0bac7655c54eedfa8da8" +checksum = "783fe232adfca04f90f56201b26d79682d4cd2625e0bc7290b95123afe558ade" dependencies = [ "os_str_bytes", ] @@ -994,18 +945,18 @@ dependencies = [ [[package]] name = "concurrent-queue" -version = "2.0.0" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd7bef69dc86e3c610e4e7aed41035e2a7ed12e72dd7530f61327a6579a4390b" +checksum = "c278839b831783b70278b14df4d45e1beb1aad306c07bb796637de9a0e323e8e" dependencies = [ "crossbeam-utils", ] [[package]] name = "console" -version = "0.15.3" +version = "0.15.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5556015fe3aad8b968e5d4124980fbe2f6aaee7aeec6b749de1faaa2ca5d0a4c" +checksum = "c3d79fbe8970a77e3e34151cc13d3b3e248aa0faaecb9f6091fa07ebefe5ad60" dependencies = [ "encode_unicode", "lazy_static", @@ -1015,15 +966,9 @@ dependencies = [ [[package]] name = "const-oid" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4c78c047431fee22c1a7bb92e00ad095a02a983affe4d8a72e2a2c62c1b94f3" - -[[package]] -name = "constant_time_eq" -version = "0.1.5" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc" +checksum = "cec318a675afcb6a1ea1d4340e2d377e56e47c266f28043ceccbf4412ddfdd3b" [[package]] name = "constant_time_eq" @@ -1068,7 +1013,17 @@ version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eeaa953eaad386a53111e47172c2fedba671e5684c8dd601a5f474f4f118710f" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", +] + +[[package]] +name = "cpu-time" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e9e393a7668fe1fad3075085b86c781883000b4ede868f43627b34a87c8b7ded" +dependencies = [ + "libc", + "winapi", ] [[package]] @@ -1184,7 +1139,7 @@ version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", ] [[package]] @@ -1193,7 +1148,7 @@ version = "0.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2dd04ddaf88237dc3b8d8f9a3c1004b506b54b3313403944054d23c0870c521" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "crossbeam-utils", ] @@ -1203,7 +1158,7 @@ version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "715e8152b692bba2d374b53d4875445368fdf21a94751410af607a5ac677d1fc" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "crossbeam-epoch", "crossbeam-utils", ] @@ -1215,7 +1170,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "01a9af1f4c2ef74bb8aa1f7e19706bc72d03598c8a570bb5de72243c7a9d9d5a" dependencies = [ "autocfg", - "cfg-if 1.0.0", + "cfg-if", "crossbeam-utils", "memoffset 0.7.1", "scopeguard", @@ -1227,7 +1182,7 @@ version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d1cfb3ea8a53f37c40dea2c7bedcbd88bdfae54f5e2175d6ecaff1c988353add" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "crossbeam-utils", ] @@ -1237,7 +1192,7 @@ version = "0.8.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4fb766fa798726286dbbb842f174001dab8abc7b627a1dd86e0b7222a95d929f" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", ] [[package]] @@ -1248,9 +1203,9 @@ checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" [[package]] name = "crypto-bigint" -version = "0.3.2" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03c6a1d5fa1de37e071642dfa44ec552ca5b299adb128fab16138e24b548fd21" +checksum = "ef2b4b23cddf68b89b8f8069890e8c270d54e2d5fe1b143820234805e4cb17ef" dependencies = [ "generic-array 0.14.6", "rand_core 0.6.4", @@ -1310,7 +1265,7 @@ dependencies = [ [[package]] name = "cumulus-client-cli" version = "0.1.0" -source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#6ab2e3a1969828966a2175a88584d210d7380959" +source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#20d0869efc80aee36833e7fea822b8c7ef60f641" dependencies = [ "clap", "parity-scale-codec", @@ -1325,7 +1280,7 @@ dependencies = [ [[package]] name = "cumulus-client-collator" version = "0.1.0" -source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#6ab2e3a1969828966a2175a88584d210d7380959" +source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#20d0869efc80aee36833e7fea822b8c7ef60f641" dependencies = [ "cumulus-client-consensus-common", "cumulus-client-network", @@ -1348,7 +1303,7 @@ dependencies = [ [[package]] name = "cumulus-client-consensus-aura" version = "0.1.0" -source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#6ab2e3a1969828966a2175a88584d210d7380959" +source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#20d0869efc80aee36833e7fea822b8c7ef60f641" dependencies = [ "async-trait", "cumulus-client-consensus-common", @@ -1377,12 +1332,15 @@ dependencies = [ [[package]] name = "cumulus-client-consensus-common" version = "0.1.0" -source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#6ab2e3a1969828966a2175a88584d210d7380959" +source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#20d0869efc80aee36833e7fea822b8c7ef60f641" dependencies = [ "async-trait", + "cumulus-client-pov-recovery", + "cumulus-primitives-core", "cumulus-relay-chain-interface", "dyn-clone", "futures", + "log", "parity-scale-codec", "polkadot-primitives", "sc-client-api", @@ -1397,7 +1355,7 @@ dependencies = [ [[package]] name = "cumulus-client-network" version = "0.1.0" -source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#6ab2e3a1969828966a2175a88584d210d7380959" +source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#20d0869efc80aee36833e7fea822b8c7ef60f641" dependencies = [ "async-trait", "cumulus-relay-chain-interface", @@ -1420,7 +1378,7 @@ dependencies = [ [[package]] name = "cumulus-client-pov-recovery" version = "0.1.0" -source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#6ab2e3a1969828966a2175a88584d210d7380959" +source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#20d0869efc80aee36833e7fea822b8c7ef60f641" dependencies = [ "cumulus-primitives-core", "cumulus-relay-chain-interface", @@ -1443,19 +1401,24 @@ dependencies = [ [[package]] name = "cumulus-client-service" version = "0.1.0" -source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#6ab2e3a1969828966a2175a88584d210d7380959" +source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#20d0869efc80aee36833e7fea822b8c7ef60f641" dependencies = [ "cumulus-client-cli", "cumulus-client-collator", "cumulus-client-consensus-common", "cumulus-client-pov-recovery", "cumulus-primitives-core", + "cumulus-relay-chain-inprocess-interface 0.1.0 (git+https://github.com/mangata-finance//cumulus?branch=mangata-dev)", "cumulus-relay-chain-interface", + "cumulus-relay-chain-minimal-node 0.1.0 (git+https://github.com/mangata-finance//cumulus?branch=mangata-dev)", + "futures", "parking_lot 0.12.1", "polkadot-primitives", "sc-client-api", "sc-consensus", "sc-service", + "sc-sysinfo", + "sc-telemetry", "sp-api", "sp-blockchain", "sp-consensus", @@ -1466,7 +1429,7 @@ dependencies = [ [[package]] name = "cumulus-pallet-aura-ext" version = "0.1.0" -source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#6ab2e3a1969828966a2175a88584d210d7380959" +source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#20d0869efc80aee36833e7fea822b8c7ef60f641" dependencies = [ "frame-executive", "frame-support", @@ -1483,12 +1446,13 @@ dependencies = [ [[package]] name = "cumulus-pallet-dmp-queue" version = "0.1.0" -source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#6ab2e3a1969828966a2175a88584d210d7380959" +source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#20d0869efc80aee36833e7fea822b8c7ef60f641" dependencies = [ "cumulus-primitives-core", "frame-support", "frame-system", "log", + "mangata-types", "parity-scale-codec", "scale-info", "sp-io", @@ -1500,7 +1464,7 @@ dependencies = [ [[package]] name = "cumulus-pallet-parachain-system" version = "0.1.0" -source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#6ab2e3a1969828966a2175a88584d210d7380959" +source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#20d0869efc80aee36833e7fea822b8c7ef60f641" dependencies = [ "bytes", "cumulus-pallet-parachain-system-proc-macro", @@ -1511,6 +1475,7 @@ dependencies = [ "frame-system", "impl-trait-for-tuples", "log", + "mangata-types", "parity-scale-codec", "polkadot-parachain", "scale-info", @@ -1528,7 +1493,7 @@ dependencies = [ [[package]] name = "cumulus-pallet-parachain-system-proc-macro" version = "0.1.0" -source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#6ab2e3a1969828966a2175a88584d210d7380959" +source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#20d0869efc80aee36833e7fea822b8c7ef60f641" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -1539,7 +1504,7 @@ dependencies = [ [[package]] name = "cumulus-pallet-session-benchmarking" version = "3.0.0" -source = "git+https://github.com/mangata-finance/cumulus?branch=mangata-dev#729fdb440a2c59329091e45401b5e90b4e259243" +source = "git+https://github.com/mangata-finance/cumulus?branch=mangata-dev-v0.9.36#54e9d305d9fa8cfee4768c1d365226befc1f2819" dependencies = [ "frame-benchmarking", "frame-support", @@ -1553,7 +1518,7 @@ dependencies = [ [[package]] name = "cumulus-pallet-xcm" version = "0.1.0" -source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#6ab2e3a1969828966a2175a88584d210d7380959" +source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#20d0869efc80aee36833e7fea822b8c7ef60f641" dependencies = [ "cumulus-primitives-core", "frame-support", @@ -1569,13 +1534,14 @@ dependencies = [ [[package]] name = "cumulus-pallet-xcmp-queue" version = "0.1.0" -source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#6ab2e3a1969828966a2175a88584d210d7380959" +source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#20d0869efc80aee36833e7fea822b8c7ef60f641" dependencies = [ "cumulus-primitives-core", "frame-benchmarking", "frame-support", "frame-system", "log", + "mangata-types", "parity-scale-codec", "rand_chacha 0.3.1", "scale-info", @@ -1588,9 +1554,8 @@ dependencies = [ [[package]] name = "cumulus-primitives-core" version = "0.1.0" -source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#6ab2e3a1969828966a2175a88584d210d7380959" +source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#20d0869efc80aee36833e7fea822b8c7ef60f641" dependencies = [ - "frame-support", "parity-scale-codec", "polkadot-core-primitives", "polkadot-parachain", @@ -1604,7 +1569,7 @@ dependencies = [ [[package]] name = "cumulus-primitives-parachain-inherent" version = "0.1.0" -source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#6ab2e3a1969828966a2175a88584d210d7380959" +source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#20d0869efc80aee36833e7fea822b8c7ef60f641" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -1627,7 +1592,7 @@ dependencies = [ [[package]] name = "cumulus-primitives-timestamp" version = "0.1.0" -source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#6ab2e3a1969828966a2175a88584d210d7380959" +source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#20d0869efc80aee36833e7fea822b8c7ef60f641" dependencies = [ "cumulus-primitives-core", "futures", @@ -1640,7 +1605,7 @@ dependencies = [ [[package]] name = "cumulus-primitives-utility" version = "0.1.0" -source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#6ab2e3a1969828966a2175a88584d210d7380959" +source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#20d0869efc80aee36833e7fea822b8c7ef60f641" dependencies = [ "cumulus-primitives-core", "frame-support", @@ -1656,7 +1621,32 @@ dependencies = [ [[package]] name = "cumulus-relay-chain-inprocess-interface" version = "0.1.0" -source = "git+https://github.com/mangata-finance/cumulus?branch=mangata-dev#729fdb440a2c59329091e45401b5e90b4e259243" +source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#20d0869efc80aee36833e7fea822b8c7ef60f641" +dependencies = [ + "async-trait", + "cumulus-primitives-core", + "cumulus-relay-chain-interface", + "futures", + "futures-timer", + "polkadot-cli", + "polkadot-client", + "polkadot-service", + "sc-cli", + "sc-client-api", + "sc-sysinfo", + "sc-telemetry", + "sc-tracing", + "sp-api", + "sp-consensus", + "sp-core", + "sp-runtime", + "sp-state-machine", +] + +[[package]] +name = "cumulus-relay-chain-inprocess-interface" +version = "0.1.0" +source = "git+https://github.com/mangata-finance/cumulus?branch=mangata-dev-v0.9.36#54e9d305d9fa8cfee4768c1d365226befc1f2819" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -1681,7 +1671,7 @@ dependencies = [ [[package]] name = "cumulus-relay-chain-interface" version = "0.1.0" -source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#6ab2e3a1969828966a2175a88584d210d7380959" +source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#20d0869efc80aee36833e7fea822b8c7ef60f641" dependencies = [ "async-trait", "cumulus-primitives-core", @@ -1695,24 +1685,63 @@ dependencies = [ "sp-blockchain", "sp-state-machine", "thiserror", + "tokio", ] [[package]] name = "cumulus-relay-chain-minimal-node" version = "0.1.0" -source = "git+https://github.com/mangata-finance/cumulus?branch=mangata-dev#729fdb440a2c59329091e45401b5e90b4e259243" +source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#20d0869efc80aee36833e7fea822b8c7ef60f641" dependencies = [ - "array-bytes", + "array-bytes 6.0.0", "async-trait", "cumulus-primitives-core", "cumulus-relay-chain-interface", - "cumulus-relay-chain-rpc-interface", + "cumulus-relay-chain-rpc-interface 0.1.0 (git+https://github.com/mangata-finance//cumulus?branch=mangata-dev)", "futures", - "lru 0.8.1", - "polkadot-availability-distribution", + "lru", + "polkadot-core-primitives", + "polkadot-network-bridge", + "polkadot-node-network-protocol", + "polkadot-node-subsystem-util", + "polkadot-overseer", + "polkadot-primitives", + "polkadot-service", + "sc-authority-discovery", + "sc-client-api", + "sc-consensus", + "sc-keystore", + "sc-network", + "sc-network-common", + "sc-service", + "sc-telemetry", + "sc-tracing", + "sc-transaction-pool", + "sc-transaction-pool-api", + "sp-api", + "sp-blockchain", + "sp-consensus", + "sp-consensus-babe", + "sp-runtime", + "tokio", + "tracing", + "url", +] + +[[package]] +name = "cumulus-relay-chain-minimal-node" +version = "0.1.0" +source = "git+https://github.com/mangata-finance/cumulus?branch=mangata-dev-v0.9.36#54e9d305d9fa8cfee4768c1d365226befc1f2819" +dependencies = [ + "array-bytes 6.0.0", + "async-trait", + "cumulus-primitives-core", + "cumulus-relay-chain-interface", + "cumulus-relay-chain-rpc-interface 0.1.0 (git+https://github.com/mangata-finance/cumulus?branch=mangata-dev-v0.9.36)", + "futures", + "lru", "polkadot-core-primitives", "polkadot-network-bridge", - "polkadot-node-core-av-store", "polkadot-node-network-protocol", "polkadot-node-subsystem-util", "polkadot-overseer", @@ -1724,8 +1753,6 @@ dependencies = [ "sc-keystore", "sc-network", "sc-network-common", - "sc-network-light", - "sc-network-sync", "sc-service", "sc-telemetry", "sc-tracing", @@ -1744,24 +1771,54 @@ dependencies = [ [[package]] name = "cumulus-relay-chain-rpc-interface" version = "0.1.0" -source = "git+https://github.com/mangata-finance/cumulus?branch=mangata-dev#729fdb440a2c59329091e45401b5e90b4e259243" +source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#20d0869efc80aee36833e7fea822b8c7ef60f641" dependencies = [ "async-trait", - "backoff", "cumulus-primitives-core", "cumulus-relay-chain-interface", "futures", "futures-timer", "jsonrpsee", + "lru", "parity-scale-codec", "polkadot-service", "sc-client-api", "sc-rpc-api", + "serde", + "serde_json", + "sp-api", + "sp-authority-discovery", + "sp-consensus-babe", + "sp-core", + "sp-state-machine", + "sp-storage", + "tokio", + "tracing", + "url", +] + +[[package]] +name = "cumulus-relay-chain-rpc-interface" +version = "0.1.0" +source = "git+https://github.com/mangata-finance/cumulus?branch=mangata-dev-v0.9.36#54e9d305d9fa8cfee4768c1d365226befc1f2819" +dependencies = [ + "async-trait", + "cumulus-primitives-core", + "cumulus-relay-chain-interface", + "futures", + "futures-timer", + "jsonrpsee", + "lru", + "parity-scale-codec", + "polkadot-service", + "sc-client-api", + "sc-rpc-api", + "serde", + "serde_json", "sp-api", "sp-authority-discovery", "sp-consensus-babe", "sp-core", - "sp-runtime", "sp-state-machine", "sp-storage", "tokio", @@ -1772,7 +1829,7 @@ dependencies = [ [[package]] name = "cumulus-test-relay-sproof-builder" version = "0.1.0" -source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#6ab2e3a1969828966a2175a88584d210d7380959" +source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#20d0869efc80aee36833e7fea822b8c7ef60f641" dependencies = [ "cumulus-primitives-core", "parity-scale-codec", @@ -1810,11 +1867,11 @@ dependencies = [ [[package]] name = "curve25519-dalek" -version = "4.0.0-pre.5" +version = "4.0.0-rc.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67bc65846be335cb20f4e52d49a437b773a2c1fdb42b19fc84e79e6f6771536f" +checksum = "8da00a7a9a4eb92a0a0f8e75660926d48f0d0f3c537e455c457bcdaa1e16b1ac" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "fiat-crypto", "packed_simd_2", "platforms 3.0.2", @@ -1824,9 +1881,9 @@ dependencies = [ [[package]] name = "cxx" -version = "1.0.85" +version = "1.0.90" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5add3fc1717409d029b20c5b6903fc0c0b02fa6741d820054f4a2efa5e5816fd" +checksum = "90d59d9acd2a682b4e40605a242f6670eaa58c5957471cbf85e8aa6a0b97a5e8" dependencies = [ "cc", "cxxbridge-flags", @@ -1836,9 +1893,9 @@ dependencies = [ [[package]] name = "cxx-build" -version = "1.0.85" +version = "1.0.90" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4c87959ba14bc6fbc61df77c3fcfe180fc32b93538c4f1031dd802ccb5f2ff0" +checksum = "ebfa40bda659dd5c864e65f4c9a2b0aff19bea56b017b9b77c73d3766a453a38" dependencies = [ "cc", "codespan-reporting", @@ -1851,15 +1908,15 @@ dependencies = [ [[package]] name = "cxxbridge-flags" -version = "1.0.85" +version = "1.0.90" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69a3e162fde4e594ed2b07d0f83c6c67b745e7f28ce58c6df5e6b6bef99dfb59" +checksum = "457ce6757c5c70dc6ecdbda6925b958aae7f959bda7d8fb9bde889e34a09dc03" [[package]] name = "cxxbridge-macro" -version = "1.0.85" +version = "1.0.90" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e7e2adeb6a0d4a282e581096b06e1791532b7d576dcde5ccd9382acf55db8e6" +checksum = "ebf883b7aacd7b2aeb2a7b338648ee19f57c140d4ee8e52c68979c6b2f7f2263" dependencies = [ "proc-macro2", "quote", @@ -1894,11 +1951,12 @@ dependencies = [ [[package]] name = "der" -version = "0.5.1" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6919815d73839e7ad218de758883aae3a257ba6759ce7a9992501efbb53d705c" +checksum = "f1a467a65c5e759bce6e65eaf91cc29f466cdc57cb65777bd646872a8a1fd4de" dependencies = [ "const-oid", + "zeroize", ] [[package]] @@ -1975,7 +2033,7 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "339ee130d97a610ea5a5872d2bbb130fdf68884ff09d3028b81bec8a1ac23bbc" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "dirs-sys-next", ] @@ -2058,9 +2116,9 @@ checksum = "c9b0705efd4599c15a38151f4721f7bc388306f61084d3bfd50bd07fbca5cb60" [[package]] name = "ecdsa" -version = "0.13.4" +version = "0.14.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0d69ae62e0ce582d56380743515fefaf1a8c70cec685d9677636d7e30ae9dc9" +checksum = "413301934810f597c1d19ca71c8710e99a3f1ba28a0d2ebc01551a2daeea3c5c" dependencies = [ "der", "elliptic-curve", @@ -2070,9 +2128,9 @@ dependencies = [ [[package]] name = "ed25519" -version = "1.5.2" +version = "1.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e9c280362032ea4203659fc489832d0204ef09f247a0506f170dafcac08c369" +checksum = "91cff35c70bba8a626e3185d8cd48cc11b5437e1a5bcd15b9b5fa3c64b6dfee7" dependencies = [ "signature", ] @@ -2107,19 +2165,20 @@ dependencies = [ [[package]] name = "either" -version = "1.8.0" +version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90e5c1c8368803113bf0c9584fc495a58b86dc8a29edbf8fe877d21d9507e797" +checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91" [[package]] name = "elliptic-curve" -version = "0.11.12" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25b477563c2bfed38a3b7a60964c49e058b2510ad3f12ba3483fd8f62c2306d6" +checksum = "e7bb888ab5300a19b8e5bceef25ac745ad065f3c9f7efc6de1b91958110891d3" dependencies = [ "base16ct", "crypto-bigint", "der", + "digest 0.10.6", "ff", "generic-array 0.14.6", "group", @@ -2191,6 +2250,19 @@ dependencies = [ "termcolor", ] +[[package]] +name = "env_logger" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85cdab6a89accf66733ad5a1693a4dcced6aeff64602b634530dd73c1f3ee9f0" +dependencies = [ + "humantime", + "is-terminal", + "log", + "regex", + "termcolor", +] + [[package]] name = "environmental" version = "1.1.4" @@ -2261,7 +2333,7 @@ dependencies = [ [[package]] name = "extrinsic-shuffler" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "derive_more", "log", @@ -2288,9 +2360,9 @@ checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" [[package]] name = "fastrand" -version = "1.8.0" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7a407cfaa3385c4ae6b23e84623d48c2798d06e3e6a1878f7f59f17b3f86499" +checksum = "e51093e27b0797c359783294ca4f0a911c270184cb10f85783b118614a1501be" dependencies = [ "instant", ] @@ -2331,9 +2403,9 @@ dependencies = [ [[package]] name = "ff" -version = "0.11.1" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "131655483be284720a17d74ff97592b8e76576dc25563148601df2d7c9080924" +checksum = "d013fc25338cc558c5c2cfbad646908fb23591e2404481826742b651c9af7160" dependencies = [ "rand_core 0.6.4", "subtle", @@ -2347,31 +2419,31 @@ checksum = "a214f5bb88731d436478f3ae1f8a277b62124089ba9fb67f4f93fb100ef73c90" [[package]] name = "file-per-thread-logger" -version = "0.1.5" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21e16290574b39ee41c71aeb90ae960c504ebaf1e2a1c87bd52aa56ed6e1a02f" +checksum = "84f2e425d9790201ba4af4630191feac6dcc98765b118d4d18e91d23c2353866" dependencies = [ - "env_logger", + "env_logger 0.10.0", "log", ] [[package]] name = "filetime" -version = "0.2.19" +version = "0.2.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e884668cd0c7480504233e951174ddc3b382f7c2666e3b7310b5c4e7b0c37f9" +checksum = "8a3de6e8d11b22ff9edc6d916f890800597d60f8b2da1caf2955c274638d6412" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "libc", "redox_syscall", - "windows-sys 0.42.0", + "windows-sys 0.45.0", ] [[package]] name = "finality-grandpa" -version = "0.16.0" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b22349c6a11563a202d95772a68e0fcf56119e74ea8a2a19cf2301460fcd0df5" +checksum = "e24e6c429951433ccb7c87fd528c60084834dcd14763182c1f83291bcde24c34" dependencies = [ "either", "futures", @@ -2430,7 +2502,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "3.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "parity-scale-codec", ] @@ -2453,7 +2525,7 @@ checksum = "6c2141d6d6c8512188a7891b4b01590a45f6dac67afb4f255c4124dbb86d4eaa" [[package]] name = "frame-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-support", "frame-system", @@ -2477,10 +2549,10 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "Inflector", - "array-bytes", + "array-bytes 4.2.0", "chrono", "clap", "comfy-table", @@ -2523,9 +2595,9 @@ dependencies = [ "sp-keystore", "sp-runtime", "sp-state-machine", + "sp-std", "sp-storage", "sp-trie", - "sp-ver", "tempfile", "thiserror", "thousands", @@ -2535,7 +2607,7 @@ dependencies = [ [[package]] name = "frame-election-provider-solution-type" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -2546,7 +2618,7 @@ dependencies = [ [[package]] name = "frame-election-provider-support" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-election-provider-solution-type", "frame-support", @@ -2554,6 +2626,7 @@ dependencies = [ "parity-scale-codec", "scale-info", "sp-arithmetic", + "sp-core", "sp-npos-elections", "sp-runtime", "sp-std", @@ -2562,7 +2635,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "aquamarine", "extrinsic-shuffler", @@ -2587,16 +2660,35 @@ version = "15.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "df6bb8542ef006ef0de09a5c4420787d79823c0ed7924225822362fd2bf2ff2d" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "parity-scale-codec", "scale-info", "serde", ] +[[package]] +name = "frame-remote-externalities" +version = "0.10.0-dev" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +dependencies = [ + "env_logger 0.9.3", + "futures", + "log", + "parity-scale-codec", + "serde", + "serde_json", + "sp-core", + "sp-io", + "sp-runtime", + "sp-version", + "substrate-rpc-client", + "tokio", +] + [[package]] name = "frame-support" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "bitflags", "frame-metadata", @@ -2629,7 +2721,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "Inflector", "cfg-expr", @@ -2643,7 +2735,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", @@ -2655,7 +2747,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "proc-macro2", "quote", @@ -2665,7 +2757,7 @@ dependencies = [ [[package]] name = "frame-system" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "extrinsic-shuffler", "frame-support", @@ -2685,7 +2777,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-support", @@ -2700,7 +2792,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance/substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance/substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-support", @@ -2715,7 +2807,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "parity-scale-codec", "sp-api", @@ -2724,7 +2816,7 @@ dependencies = [ [[package]] name = "frame-try-runtime" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-support", "parity-scale-codec", @@ -2749,12 +2841,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "fs_extra" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2022715d62ab30faffd124d40b76f4134a550a87792276512b18d63272333394" - [[package]] name = "funty" version = "2.0.0" @@ -2763,9 +2849,9 @@ checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" [[package]] name = "futures" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38390104763dc37a5145a53c29c63c1290b5d316d6086ec32c293f6736051bb0" +checksum = "13e2792b0ff0340399d58445b88fd9770e3489eff258a4cbc1523418f12abf84" dependencies = [ "futures-channel", "futures-core", @@ -2778,9 +2864,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52ba265a92256105f45b719605a571ffe2d1f0fea3807304b522c1d778f79eed" +checksum = "2e5317663a9089767a1ec00a487df42e0ca174b61b4483213ac24448e4664df5" dependencies = [ "futures-core", "futures-sink", @@ -2788,15 +2874,15 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04909a7a7e4633ae6c4a9ab280aeb86da1236243a77b694a49eacd659a4bd3ac" +checksum = "ec90ff4d0fe1f57d600049061dc6bb68ed03c7d2fbd697274c41805dcb3f8608" [[package]] name = "futures-executor" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7acc85df6714c176ab5edf386123fafe217be88c0840ec11f199441134a074e2" +checksum = "e8de0a35a6ab97ec8869e32a2473f4b1324459e14c29275d14b10cb1fd19b50e" dependencies = [ "futures-core", "futures-task", @@ -2806,9 +2892,9 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00f5fb52a06bdcadeb54e8d3671f8888a39697dcb0b81b23b55174030427f4eb" +checksum = "bfb8371b6fb2aeb2d280374607aeabfc99d95c72edfe51692e42d3d7f0d08531" [[package]] name = "futures-lite" @@ -2827,9 +2913,9 @@ dependencies = [ [[package]] name = "futures-macro" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bdfb8ce053d86b91919aad980c220b1fb8401a9394410e1c289ed7e66b61835d" +checksum = "95a73af87da33b5acf53acfebdc339fe592ecf5357ac7c0a7734ab9d8c876a70" dependencies = [ "proc-macro2", "quote", @@ -2849,15 +2935,15 @@ dependencies = [ [[package]] name = "futures-sink" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39c15cf1a4aa79df40f1bb462fb39676d0ad9e366c2a33b590d7c66f4f81fcf9" +checksum = "f310820bb3e8cfd46c80db4d7fb8353e15dfff853a127158425f31e0be6c8364" [[package]] name = "futures-task" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ffb393ac5d9a6eaa9d3fdf37ae2776656b706e200c8e16b1bdb227f5198e6ea" +checksum = "dcf79a1bf610b10f42aea489289c5a2c478a786509693b80cd39c44ccd936366" [[package]] name = "futures-timer" @@ -2867,9 +2953,9 @@ checksum = "e64b03909df88034c26dc1547e8970b91f98bdb65165d6a4e9110d94263dbb2c" [[package]] name = "futures-util" -version = "0.3.25" +version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "197676987abd2f9cadff84926f410af1c183608d36641465df73ae8211dc65d6" +checksum = "9c1d6de3acfef38d2be4b1f543f553131788603495be83da675e180c8d6b7bd1" dependencies = [ "futures-channel", "futures-core", @@ -2927,7 +3013,7 @@ version = "0.1.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "js-sys", "libc", "wasi 0.9.0+wasi-snapshot-preview1", @@ -2940,7 +3026,7 @@ version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "libc", "wasi 0.11.0+wasi-snapshot-preview1", ] @@ -2968,24 +3054,24 @@ dependencies = [ [[package]] name = "gimli" -version = "0.27.0" +version = "0.27.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dec7af912d60cdbd3677c1af9352ebae6fb8394d165568a2234df0fa00f87793" +checksum = "221996f774192f0f718773def8201c4ae31f02616a54ccfc2d358bb0e5cefdec" [[package]] name = "glob" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574" +checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" [[package]] name = "globset" -version = "0.4.9" +version = "0.4.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a1e17342619edbc21a964c2afbeb6c820c6a2560032872f397bb97ea127bd0a" +checksum = "029d74589adefde59de1a0c4f4732695c32805624aec7b68d91503d4dba79afc" dependencies = [ "aho-corasick", - "bstr", + "bstr 1.2.0", "fnv", "log", "regex", @@ -2993,9 +3079,9 @@ dependencies = [ [[package]] name = "gloo-timers" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98c4a8d6391675c6b2ee1a6c8d06e8e2d03605c44cec1270675985a4c2a5500b" +checksum = "9b995a66bb87bebce9a0f4a95aed01daca4872c050bfcb21653361c03bc35e5c" dependencies = [ "futures-channel", "futures-core", @@ -3005,9 +3091,9 @@ dependencies = [ [[package]] name = "group" -version = "0.11.0" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc5ac374b108929de78460075f3dc439fa66df9d8fc77e8f12caa5165fcf0c89" +checksum = "5dfbfb3a6cfbd390d5c9564ab283a0349b9b9fcd46a706c1eb10e0db70bfbac7" dependencies = [ "ff", "rand_core 0.6.4", @@ -3073,9 +3159,9 @@ dependencies = [ [[package]] name = "heck" -version = "0.4.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2540771e65fc8cb83cd6e8a237f70c319bd5c29f78ed1084ba5d50eeac86f7f9" +checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" [[package]] name = "hermit-abi" @@ -3095,6 +3181,12 @@ dependencies = [ "libc", ] +[[package]] +name = "hermit-abi" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286" + [[package]] name = "hex" version = "0.4.3" @@ -3127,6 +3219,15 @@ dependencies = [ "digest 0.9.0", ] +[[package]] +name = "hmac" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" +dependencies = [ + "digest 0.10.6", +] + [[package]] name = "hmac-drbg" version = "0.3.0" @@ -3171,6 +3272,12 @@ dependencies = [ "pin-project-lite 0.2.9", ] +[[package]] +name = "http-range-header" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bfe8eed0a9285ef776bb792479ea3834e8b94e13d615c2f66d03dd50a435a29" + [[package]] name = "httparse" version = "1.8.0" @@ -3191,9 +3298,9 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "hyper" -version = "0.14.23" +version = "0.14.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "034711faac9d2166cb1baf1a2fb0b60b1f277f8492fd72176c17f3515e1abd3c" +checksum = "5e011372fa0b68db8350aa7a248930ecc7839bf46d8485577d69f117a75f164c" dependencies = [ "bytes", "futures-channel", @@ -3347,7 +3454,7 @@ version = "0.1.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", ] [[package]] @@ -3373,12 +3480,12 @@ checksum = "59ce5ef949d49ee85593fc4d3f3f95ad61657076395cbbce23e2121fc5542074" [[package]] name = "io-lifetimes" -version = "1.0.3" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46112a93252b123d31a119a8d1a1ac19deac4fac6e0e8b0df58f0d4e5870e63c" +checksum = "1abeb7a0dd0f8181267ff8adc397075586500b81b28a73e8a0208b00fc170fb3" dependencies = [ "libc", - "windows-sys 0.42.0", + "windows-sys 0.45.0", ] [[package]] @@ -3401,20 +3508,20 @@ dependencies = [ [[package]] name = "ipnet" -version = "2.7.0" +version = "2.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11b0d96e660696543b251e58030cf9787df56da39dab19ad60eae7353040917e" +checksum = "30e22bd8629359895450b59ea7a776c850561b96a3b1d31321c1949d9e6c9146" [[package]] name = "is-terminal" -version = "0.4.2" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28dfb6c8100ccc63462345b67d1bbc3679177c75ee4bf59bf29c8b1d110b8189" +checksum = "22e18b0a45d56fe973d6db23972bf5bc46f988a4a2385deac9cc29572f09daef" dependencies = [ - "hermit-abi 0.2.6", - "io-lifetimes 1.0.3", - "rustix 0.36.6", - "windows-sys 0.42.0", + "hermit-abi 0.3.1", + "io-lifetimes 1.0.5", + "rustix 0.36.8", + "windows-sys 0.45.0", ] [[package]] @@ -3452,33 +3559,32 @@ dependencies = [ [[package]] name = "js-sys" -version = "0.3.60" +version = "0.3.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49409df3e3bf0856b916e2ceaca09ee28e6871cf7d9ce97a692cacfdb2a25a47" +checksum = "445dde2150c55e483f3d8416706b97ec8e8237c307e5b7b4b8dd15e6af2a0730" dependencies = [ "wasm-bindgen", ] [[package]] name = "jsonrpsee" -version = "0.15.1" +version = "0.16.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bd0d559d5e679b1ab2f869b486a11182923863b1b3ee8b421763cdd707b783a" +checksum = "7d291e3a5818a2384645fd9756362e6d89cf0541b0b916fa7702ea4a9833608e" dependencies = [ "jsonrpsee-core", - "jsonrpsee-http-server", "jsonrpsee-proc-macros", + "jsonrpsee-server", "jsonrpsee-types", "jsonrpsee-ws-client", - "jsonrpsee-ws-server", "tracing", ] [[package]] name = "jsonrpsee-client-transport" -version = "0.15.1" +version = "0.16.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8752740ecd374bcbf8b69f3e80b0327942df76f793f8d4e60d3355650c31fb74" +checksum = "965de52763f2004bc91ac5bcec504192440f0b568a5d621c59d9dbd6f886c3fb" dependencies = [ "futures-util", "http", @@ -3497,9 +3603,9 @@ dependencies = [ [[package]] name = "jsonrpsee-core" -version = "0.15.1" +version = "0.16.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3dc3e9cf2ba50b7b1d7d76a667619f82846caa39e8e8daa8a4962d74acaddca" +checksum = "a4e70b4439a751a5de7dd5ed55eacff78ebf4ffe0fc009cb1ebb11417f5b536b" dependencies = [ "anyhow", "arrayvec 0.7.2", @@ -3510,10 +3616,8 @@ dependencies = [ "futures-timer", "futures-util", "globset", - "http", "hyper", "jsonrpsee-types", - "lazy_static", "parking_lot 0.12.1", "rand 0.8.5", "rustc-hash", @@ -3523,45 +3627,48 @@ dependencies = [ "thiserror", "tokio", "tracing", - "tracing-futures", - "unicase", ] [[package]] -name = "jsonrpsee-http-server" -version = "0.15.1" +name = "jsonrpsee-proc-macros" +version = "0.16.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baa6da1e4199c10d7b1d0a6e5e8bd8e55f351163b6f4b3cbb044672a69bd4c1c" +dependencies = [ + "heck", + "proc-macro-crate", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "jsonrpsee-server" +version = "0.16.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03802f0373a38c2420c70b5144742d800b509e2937edc4afb116434f07120117" +checksum = "1fb69dad85df79527c019659a992498d03f8495390496da2f07e6c24c2b356fc" dependencies = [ "futures-channel", "futures-util", + "http", "hyper", "jsonrpsee-core", "jsonrpsee-types", "serde", "serde_json", + "soketto", "tokio", + "tokio-stream", + "tokio-util", + "tower", "tracing", - "tracing-futures", -] - -[[package]] -name = "jsonrpsee-proc-macros" -version = "0.15.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd67957d4280217247588ac86614ead007b301ca2fa9f19c19f880a536f029e3" -dependencies = [ - "proc-macro-crate", - "proc-macro2", - "quote", - "syn", ] [[package]] name = "jsonrpsee-types" -version = "0.15.1" +version = "0.16.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e290bba767401b646812f608c099b922d8142603c9e73a50fb192d3ac86f4a0d" +checksum = "5bd522fe1ce3702fd94812965d7bb7a3364b1c9aba743944c5a00529aae80f8c" dependencies = [ "anyhow", "beef", @@ -3573,9 +3680,9 @@ dependencies = [ [[package]] name = "jsonrpsee-ws-client" -version = "0.15.1" +version = "0.16.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ee5feddd5188e62ac08fcf0e56478138e581509d4730f3f7be9b57dd402a4ff" +checksum = "0b83daeecfc6517cfe210df24e570fb06213533dfb990318fae781f4c7119dd9" dependencies = [ "http", "jsonrpsee-client-transport", @@ -3583,36 +3690,16 @@ dependencies = [ "jsonrpsee-types", ] -[[package]] -name = "jsonrpsee-ws-server" -version = "0.15.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d488ba74fb369e5ab68926feb75a483458b88e768d44319f37e4ecad283c7325" -dependencies = [ - "futures-channel", - "futures-util", - "http", - "jsonrpsee-core", - "jsonrpsee-types", - "serde_json", - "soketto", - "tokio", - "tokio-stream", - "tokio-util", - "tracing", - "tracing-futures", -] - [[package]] name = "k256" -version = "0.10.4" +version = "0.11.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19c3a5e0a0b8450278feda242592512e09f61c72e018b8cd5c859482802daf2d" +checksum = "72c1e0b51e7ec0a97369623508396067a486bd0cbed95a2659a4b863d28cfc8b" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "ecdsa", "elliptic-curve", - "sec1", + "sha2 0.10.6", ] [[package]] @@ -3626,10 +3713,9 @@ dependencies = [ [[package]] name = "kusama-runtime" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ - "beefy-primitives", "bitvec", "frame-benchmarking", "frame-election-provider-support", @@ -3656,13 +3742,13 @@ dependencies = [ "pallet-election-provider-support-benchmarking", "pallet-elections-phragmen", "pallet-fast-unstake", - "pallet-gilt", "pallet-grandpa", "pallet-identity", "pallet-im-online", "pallet-indices", "pallet-membership", "pallet-multisig", + "pallet-nis", "pallet-nomination-pools", "pallet-nomination-pools-benchmarking", "pallet-nomination-pools-runtime-api", @@ -3678,7 +3764,6 @@ dependencies = [ "pallet-session-benchmarking", "pallet-society", "pallet-staking", - "pallet-staking-reward-fn", "pallet-timestamp", "pallet-tips", "pallet-transaction-payment", @@ -3701,6 +3786,7 @@ dependencies = [ "sp-api", "sp-arithmetic", "sp-authority-discovery", + "sp-beefy", "sp-block-builder", "sp-consensus-babe", "sp-core", @@ -3724,8 +3810,8 @@ dependencies = [ [[package]] name = "kusama-runtime-constants" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "frame-support", "polkadot-primitives", @@ -3747,35 +3833,31 @@ dependencies = [ [[package]] name = "kvdb" -version = "0.12.0" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "585089ceadba0197ffe9af6740ab350b325e3c1f5fccfbc3522e0250c750409b" +checksum = "e7d770dcb02bf6835887c3a979b5107a04ff4bbde97a5f0928d27404a155add9" dependencies = [ - "parity-util-mem", "smallvec", ] [[package]] name = "kvdb-memorydb" -version = "0.12.0" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40d109c87bfb7759edd2a49b2649c1afe25af785d930ad6a38479b4dc70dd873" +checksum = "bf7a85fe66f9ff9cd74e169fdd2c94c6e1e74c412c99a73b4df3200b5d3760b2" dependencies = [ "kvdb", - "parity-util-mem", "parking_lot 0.12.1", ] [[package]] name = "kvdb-rocksdb" -version = "0.16.0" +version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c076cc2cdbac89b9910c853a36c957d3862a779f31c2661174222cefb49ee597" +checksum = "2182b8219fee6bd83aacaab7344e840179ae079d5216aa4e249b4d704646a844" dependencies = [ "kvdb", - "log", "num_cpus", - "parity-util-mem", "parking_lot 0.12.1", "regex", "rocksdb", @@ -3806,7 +3888,7 @@ version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "winapi", ] @@ -3900,7 +3982,6 @@ version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2322c9fb40d99101def6a01612ee30500c89abbbecb6297b3cd252903a4c1720" dependencies = [ - "async-std-resolver", "futures", "libp2p-core", "log", @@ -3921,7 +4002,7 @@ dependencies = [ "libp2p-core", "libp2p-swarm", "log", - "lru 0.8.1", + "lru", "prost", "prost-build", "prost-codec", @@ -3964,7 +4045,6 @@ version = "0.41.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "761704e727f7d68d58d7bc2231eafae5fc1b9814de24290f126df09d4bd37a15" dependencies = [ - "async-io", "data-encoding", "dns-parser", "futures", @@ -3975,6 +4055,7 @@ dependencies = [ "rand 0.8.5", "smallvec", "socket2", + "tokio", "void", ] @@ -4103,7 +4184,6 @@ version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9839d96761491c6d3e238e70554b856956fca0ab60feb9de2cd08eed4473fa92" dependencies = [ - "async-io", "futures", "futures-timer", "if-watch", @@ -4111,6 +4191,7 @@ dependencies = [ "libp2p-core", "log", "socket2", + "tokio", ] [[package]] @@ -4162,9 +4243,9 @@ dependencies = [ [[package]] name = "librocksdb-sys" -version = "0.8.0+7.4.4" +version = "0.8.3+7.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "611804e4666a25136fcc5f8cf425ab4d26c7f74ea245ffe92ea23b85b6420b5d" +checksum = "557b255ff04123fcc176162f56ed0c9cd42d8f357cf55b3fabeb60f7413741b3" dependencies = [ "bindgen", "bzip2-sys", @@ -4182,7 +4263,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "95b09eff1b35ed3b33b877ced3a691fc7a481919c7e29c53c906226fcf55e2a1" dependencies = [ "arrayref", - "base64", + "base64 0.13.1", "digest 0.9.0", "hmac-drbg", "libsecp256k1-core", @@ -4296,19 +4377,10 @@ version = "0.4.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "value-bag", ] -[[package]] -name = "lru" -version = "0.7.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e999beba7b6e8345721bd280141ed958096a2e4abdf74f67ff4ce49b4b54e47a" -dependencies = [ - "hashbrown", -] - [[package]] name = "lru" version = "0.8.1" @@ -4396,6 +4468,7 @@ dependencies = [ "pallet-crowdloan-rewards", "pallet-fee-lock", "pallet-issuance", + "pallet-maintenance", "pallet-multipurpose-liquidity", "pallet-proxy", "pallet-session", @@ -4405,7 +4478,7 @@ dependencies = [ "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", "pallet-treasury", - "pallet-utility", + "pallet-utility-mangata", "pallet-vesting-mangata", "pallet-vesting-mangata-rpc-runtime-api", "pallet-xcm", @@ -4431,6 +4504,7 @@ dependencies = [ "sp-transaction-pool", "sp-ver", "sp-version", + "sp-weights", "static_assertions", "substrate-wasm-builder", "ver-api", @@ -4444,7 +4518,7 @@ dependencies = [ name = "mangata-node" version = "0.1.0" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "clap", "cumulus-client-cli", "cumulus-client-consensus-aura", @@ -4454,10 +4528,10 @@ dependencies = [ "cumulus-pallet-parachain-system", "cumulus-primitives-core", "cumulus-primitives-parachain-inherent", - "cumulus-relay-chain-inprocess-interface", + "cumulus-relay-chain-inprocess-interface 0.1.0 (git+https://github.com/mangata-finance/cumulus?branch=mangata-dev-v0.9.36)", "cumulus-relay-chain-interface", - "cumulus-relay-chain-minimal-node", - "cumulus-relay-chain-rpc-interface", + "cumulus-relay-chain-minimal-node 0.1.0 (git+https://github.com/mangata-finance/cumulus?branch=mangata-dev-v0.9.36)", + "cumulus-relay-chain-rpc-interface 0.1.0 (git+https://github.com/mangata-finance/cumulus?branch=mangata-dev-v0.9.36)", "cumulus-test-relay-sproof-builder", "derive_more", "extrinsic-shuffler", @@ -4519,6 +4593,7 @@ dependencies = [ "sp-consensus-slots", "sp-core", "sp-inherents", + "sp-io", "sp-keyring", "sp-keystore", "sp-offchain", @@ -4580,6 +4655,7 @@ dependencies = [ "pallet-crowdloan-rewards", "pallet-fee-lock", "pallet-issuance", + "pallet-maintenance", "pallet-multipurpose-liquidity", "pallet-proxy", "pallet-session", @@ -4589,7 +4665,7 @@ dependencies = [ "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", "pallet-treasury", - "pallet-utility", + "pallet-utility-mangata", "pallet-vesting-mangata", "pallet-vesting-mangata-rpc-runtime-api", "pallet-xcm", @@ -4615,6 +4691,7 @@ dependencies = [ "sp-transaction-pool", "sp-ver", "sp-version", + "sp-weights", "static_assertions", "substrate-wasm-builder", "ver-api", @@ -4647,7 +4724,7 @@ dependencies = [ [[package]] name = "mangata-types" version = "0.1.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "parity-scale-codec", "scale-info", @@ -4672,9 +4749,9 @@ dependencies = [ [[package]] name = "matches" -version = "0.1.9" +version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f" +checksum = "2532096657941c2fea9c289d370a250971c689d4f143798ff67113ec042024a5" [[package]] name = "matrixmultiply" @@ -4697,7 +4774,7 @@ version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b20a59d985586e4a5aef64564ac77299f8586d8be6cf9106a5a40207e8908efb" dependencies = [ - "rustix 0.36.6", + "rustix 0.36.8", ] [[package]] @@ -4729,22 +4806,12 @@ dependencies = [ [[package]] name = "memory-db" -version = "0.30.0" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34ac11bb793c28fa095b7554466f53b3a60a2cd002afdac01bcf135cbd73a269" +checksum = "5e0c7cba9ce19ac7ffd2053ac9f49843bbd3f4318feedfd74e85c19d5fb0ba66" dependencies = [ "hash-db", "hashbrown", - "parity-util-mem", -] - -[[package]] -name = "memory-lru" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce95ae042940bad7e312857b929ee3d11b8f799a80cb7b9c7ec5125516906395" -dependencies = [ - "lru 0.8.1", ] [[package]] @@ -4803,13 +4870,49 @@ dependencies = [ "windows-sys 0.42.0", ] +[[package]] +name = "mmr-gadget" +version = "4.0.0-dev" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +dependencies = [ + "futures", + "log", + "parity-scale-codec", + "sc-client-api", + "sc-offchain", + "sp-api", + "sp-beefy", + "sp-blockchain", + "sp-consensus", + "sp-core", + "sp-io", + "sp-mmr-primitives", + "sp-runtime", +] + +[[package]] +name = "mmr-rpc" +version = "4.0.0-dev" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +dependencies = [ + "anyhow", + "jsonrpsee", + "parity-scale-codec", + "serde", + "sp-api", + "sp-blockchain", + "sp-core", + "sp-mmr-primitives", + "sp-runtime", +] + [[package]] name = "mockall" version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "50e4a1c770583dac7ab5e2f6c139153b783a53a1bbee9729613f193e59828326" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "downcast", "fragile", "lazy_static", @@ -4824,7 +4927,7 @@ version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "832663583d5fa284ca8810bf7015e46c9fff9622d3cf34bd1eea5003fec06dd0" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "proc-macro2", "quote", "syn", @@ -4953,7 +5056,7 @@ dependencies = [ "matrixmultiply", "nalgebra-macros", "num-complex", - "num-rational 0.4.1", + "num-rational", "num-traits", "rand 0.8.5", "rand_distr", @@ -5015,9 +5118,9 @@ dependencies = [ [[package]] name = "netlink-packet-utils" -version = "0.5.1" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25af9cf0dc55498b7bd94a1508af7a78706aa0ab715a73c5169273e03c84845e" +checksum = "0ede8a08c71ad5a95cdd0e4e52facd37190977039a4704eb82a283f713747d34" dependencies = [ "anyhow", "byteorder", @@ -5042,9 +5145,9 @@ dependencies = [ [[package]] name = "netlink-sys" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92b654097027250401127914afb37cb1f311df6610a9891ff07a757e94199027" +checksum = "260e21fbb6f3d253a14df90eb0000a6066780a15dd901a7519ce02d77a94985b" dependencies = [ "async-io", "bytes", @@ -5060,16 +5163,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fa52e972a9a719cecb6864fb88568781eb706bac2cd1d4f04a648542dbf78069" dependencies = [ "bitflags", - "cfg-if 1.0.0", + "cfg-if", "libc", ] -[[package]] -name = "nodrop" -version = "0.1.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb" - [[package]] name = "nohash-hasher" version = "0.2.0" @@ -5078,30 +5175,28 @@ checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451" [[package]] name = "nom" -version = "7.1.1" +version = "7.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8903e5a29a317527874d0402f867152a3d21c908bb0b933e416c65e301d4c36" +checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" dependencies = [ "memchr", "minimal-lexical", ] [[package]] -name = "normalize-line-endings" -version = "0.3.0" +name = "nom8" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61807f77802ff30975e01f4f071c8ba10c022052f98b3294119f3e615d13e5be" +checksum = "ae01545c9c7fc4486ab7debaf2aad7003ac19431791868fb2e8066df97fad2f8" +dependencies = [ + "memchr", +] [[package]] -name = "num-bigint" -version = "0.2.6" +name = "normalize-line-endings" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "090c7f9998ee0ff65aa5b723e4009f7b217707f1fb5ea551329cc4d6231fb304" -dependencies = [ - "autocfg", - "num-integer", - "num-traits", -] +checksum = "61807f77802ff30975e01f4f071c8ba10c022052f98b3294119f3e615d13e5be" [[package]] name = "num-bigint" @@ -5116,9 +5211,9 @@ dependencies = [ [[package]] name = "num-complex" -version = "0.4.2" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ae39348c8bc5fbd7f40c727a9925f03517afd2ab27d46702108b6a7e5414c19" +checksum = "02e0d21255c828d6f128a1e41534206671e8c3ea0c62f32291e808dc82cff17d" dependencies = [ "num-traits", ] @@ -5143,18 +5238,6 @@ dependencies = [ "num-traits", ] -[[package]] -name = "num-rational" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c000134b5dbf44adc5cb772486d335293351644b801551abe8f75c84cfa4aef" -dependencies = [ - "autocfg", - "num-bigint 0.2.6", - "num-integer", - "num-traits", -] - [[package]] name = "num-rational" version = "0.4.1" @@ -5162,7 +5245,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0638a1c9d0a3c0914158145bc76cff373a75a627e6ecbfb71cbe6f453a5a19b0" dependencies = [ "autocfg", - "num-bigint 0.4.3", + "num-bigint", "num-integer", "num-traits", ] @@ -5201,9 +5284,9 @@ dependencies = [ [[package]] name = "object" -version = "0.30.0" +version = "0.30.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "239da7f290cfa979f43f85a8efeee9a8a76d0827c356d37f9d3d7254d6b537fb" +checksum = "ea86265d3d3dcb6a27fc51bd29a4bf387fae9d2986b823079d4986af253eb439" dependencies = [ "memchr", ] @@ -5276,7 +5359,7 @@ dependencies = [ [[package]] name = "orml-asset-registry" version = "0.4.1-dev" -source = "git+https://github.com/mangata-finance//open-runtime-module-library?branch=mangata-dev#ba84c87dc39d8ff299e3dd3f5bd5636bef046a77" +source = "git+https://github.com/mangata-finance//open-runtime-module-library?branch=mangata-dev#08d15fe245770cb63850dd3057eb521bf589051e" dependencies = [ "frame-benchmarking", "frame-support", @@ -5297,7 +5380,7 @@ dependencies = [ [[package]] name = "orml-tokens" version = "0.4.1-dev" -source = "git+https://github.com/mangata-finance//open-runtime-module-library?branch=mangata-dev#ba84c87dc39d8ff299e3dd3f5bd5636bef046a77" +source = "git+https://github.com/mangata-finance//open-runtime-module-library?branch=mangata-dev#08d15fe245770cb63850dd3057eb521bf589051e" dependencies = [ "frame-benchmarking", "frame-support", @@ -5314,7 +5397,7 @@ dependencies = [ [[package]] name = "orml-traits" version = "0.4.1-dev" -source = "git+https://github.com/mangata-finance//open-runtime-module-library?branch=mangata-dev#ba84c87dc39d8ff299e3dd3f5bd5636bef046a77" +source = "git+https://github.com/mangata-finance//open-runtime-module-library?branch=mangata-dev#08d15fe245770cb63850dd3057eb521bf589051e" dependencies = [ "frame-support", "impl-trait-for-tuples", @@ -5332,7 +5415,7 @@ dependencies = [ [[package]] name = "orml-unknown-tokens" version = "0.4.1-dev" -source = "git+https://github.com/mangata-finance//open-runtime-module-library?branch=mangata-dev#ba84c87dc39d8ff299e3dd3f5bd5636bef046a77" +source = "git+https://github.com/mangata-finance//open-runtime-module-library?branch=mangata-dev#08d15fe245770cb63850dd3057eb521bf589051e" dependencies = [ "frame-support", "frame-system", @@ -5347,7 +5430,7 @@ dependencies = [ [[package]] name = "orml-utilities" version = "0.4.1-dev" -source = "git+https://github.com/mangata-finance//open-runtime-module-library?branch=mangata-dev#ba84c87dc39d8ff299e3dd3f5bd5636bef046a77" +source = "git+https://github.com/mangata-finance//open-runtime-module-library?branch=mangata-dev#08d15fe245770cb63850dd3057eb521bf589051e" dependencies = [ "frame-support", "parity-scale-codec", @@ -5361,7 +5444,7 @@ dependencies = [ [[package]] name = "orml-xcm" version = "0.4.1-dev" -source = "git+https://github.com/mangata-finance//open-runtime-module-library?branch=mangata-dev#ba84c87dc39d8ff299e3dd3f5bd5636bef046a77" +source = "git+https://github.com/mangata-finance//open-runtime-module-library?branch=mangata-dev#08d15fe245770cb63850dd3057eb521bf589051e" dependencies = [ "frame-support", "frame-system", @@ -5375,7 +5458,7 @@ dependencies = [ [[package]] name = "orml-xcm-support" version = "0.4.1-dev" -source = "git+https://github.com/mangata-finance//open-runtime-module-library?branch=mangata-dev#ba84c87dc39d8ff299e3dd3f5bd5636bef046a77" +source = "git+https://github.com/mangata-finance//open-runtime-module-library?branch=mangata-dev#08d15fe245770cb63850dd3057eb521bf589051e" dependencies = [ "frame-support", "orml-traits", @@ -5389,7 +5472,7 @@ dependencies = [ [[package]] name = "orml-xtokens" version = "0.4.1-dev" -source = "git+https://github.com/mangata-finance//open-runtime-module-library?branch=mangata-dev#ba84c87dc39d8ff299e3dd3f5bd5636bef046a77" +source = "git+https://github.com/mangata-finance//open-runtime-module-library?branch=mangata-dev#08d15fe245770cb63850dd3057eb521bf589051e" dependencies = [ "cumulus-primitives-core", "frame-support", @@ -5419,14 +5502,14 @@ version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a1914cd452d8fccd6f9db48147b29fd4ae05bea9dc5d9ad578509f72415de282" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "libm 0.1.4", ] [[package]] name = "pallet-aura" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-support", "frame-system", @@ -5442,7 +5525,7 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-support", "frame-system", @@ -5458,7 +5541,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-support", "frame-system", @@ -5473,7 +5556,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-support", @@ -5497,7 +5580,7 @@ dependencies = [ [[package]] name = "pallet-bags-list" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5517,7 +5600,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-support", @@ -5532,15 +5615,15 @@ dependencies = [ [[package]] name = "pallet-beefy" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ - "beefy-primitives", "frame-support", "frame-system", "pallet-session", "parity-scale-codec", "scale-info", "serde", + "sp-beefy", "sp-runtime", "sp-std", ] @@ -5548,11 +5631,10 @@ dependencies = [ [[package]] name = "pallet-beefy-mmr" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ - "array-bytes", + "array-bytes 4.2.0", "beefy-merkle-tree", - "beefy-primitives", "frame-support", "frame-system", "log", @@ -5562,6 +5644,7 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", + "sp-beefy", "sp-core", "sp-io", "sp-runtime", @@ -5577,6 +5660,7 @@ dependencies = [ "frame-support", "frame-system", "frame-try-runtime", + "lazy_static", "log", "mangata-types", "mockall", @@ -5603,7 +5687,7 @@ dependencies = [ [[package]] name = "pallet-bounties" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-support", @@ -5621,7 +5705,7 @@ dependencies = [ [[package]] name = "pallet-child-bounties" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-support", @@ -5640,7 +5724,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-support", @@ -5657,7 +5741,7 @@ dependencies = [ [[package]] name = "pallet-collective-mangata" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-support", @@ -5674,7 +5758,7 @@ dependencies = [ [[package]] name = "pallet-conviction-voting" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "assert_matches", "frame-benchmarking", @@ -5691,7 +5775,7 @@ dependencies = [ [[package]] name = "pallet-crowdloan-rewards" version = "0.6.0" -source = "git+https://github.com/mangata-finance//crowdloan-rewards?branch=mangata-dev#ce0527b1d183d376f124a3704b95fa978551cfaf" +source = "git+https://github.com/mangata-finance//crowdloan-rewards?branch=mangata-dev#d9c94c030bab8674ac043a04d4e3951b729a87c9" dependencies = [ "ed25519-dalek", "frame-benchmarking", @@ -5714,7 +5798,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-support", @@ -5732,7 +5816,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-multi-phase" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5756,7 +5840,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-support-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5769,7 +5853,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "5.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-support", @@ -5787,16 +5871,13 @@ dependencies = [ [[package]] name = "pallet-fast-unstake" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-election-provider-support", "frame-support", "frame-system", "log", - "pallet-balances", - "pallet-staking", - "pallet-timestamp", "parity-scale-codec", "scale-info", "sp-io", @@ -5809,7 +5890,7 @@ dependencies = [ name = "pallet-fee-lock" version = "0.1.0" dependencies = [ - "env_logger", + "env_logger 0.9.3", "frame-benchmarking", "frame-support", "frame-system", @@ -5833,25 +5914,10 @@ dependencies = [ "sp-std", ] -[[package]] -name = "pallet-gilt" -version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" -dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", - "parity-scale-codec", - "scale-info", - "sp-arithmetic", - "sp-runtime", - "sp-std", -] - [[package]] name = "pallet-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-support", @@ -5874,7 +5940,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "enumflags2", "frame-benchmarking", @@ -5890,7 +5956,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-support", @@ -5910,7 +5976,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-support", @@ -5928,7 +5994,7 @@ dependencies = [ name = "pallet-issuance" version = "2.0.0" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "frame-benchmarking", "frame-executive", "frame-support", @@ -5950,16 +6016,25 @@ dependencies = [ ] [[package]] -name = "pallet-membership" -version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +name = "pallet-maintenance" +version = "0.1.0" dependencies = [ + "env_logger 0.9.3", "frame-benchmarking", "frame-support", "frame-system", + "hex-literal", + "lazy_static", "log", + "mangata-types", + "mp-traits", + "orml-tokens", + "orml-traits", "parity-scale-codec", + "rustc-hex", "scale-info", + "serde", + "serial_test", "sp-core", "sp-io", "sp-runtime", @@ -5967,43 +6042,44 @@ dependencies = [ ] [[package]] -name = "pallet-mmr" +name = "pallet-membership" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ - "ckb-merkle-mountain-range", "frame-benchmarking", "frame-support", "frame-system", + "log", "parity-scale-codec", "scale-info", "sp-core", "sp-io", - "sp-mmr-primitives", "sp-runtime", "sp-std", ] [[package]] -name = "pallet-mmr-rpc" -version = "3.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +name = "pallet-mmr" +version = "4.0.0-dev" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ - "jsonrpsee", + "frame-benchmarking", + "frame-support", + "frame-system", "parity-scale-codec", - "serde", - "sp-api", - "sp-blockchain", + "scale-info", "sp-core", + "sp-io", "sp-mmr-primitives", "sp-runtime", + "sp-std", ] [[package]] name = "pallet-multipurpose-liquidity" version = "0.1.0" dependencies = [ - "env_logger", + "env_logger 0.9.3", "frame-benchmarking", "frame-executive", "frame-support", @@ -6033,7 +6109,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-support", @@ -6046,10 +6122,26 @@ dependencies = [ "sp-std", ] +[[package]] +name = "pallet-nis" +version = "4.0.0-dev" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "parity-scale-codec", + "scale-info", + "sp-arithmetic", + "sp-core", + "sp-runtime", + "sp-std", +] + [[package]] name = "pallet-nomination-pools" version = "1.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-support", "frame-system", @@ -6066,7 +6158,7 @@ dependencies = [ [[package]] name = "pallet-nomination-pools-benchmarking" version = "1.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -6086,7 +6178,7 @@ dependencies = [ [[package]] name = "pallet-nomination-pools-runtime-api" version = "1.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "parity-scale-codec", "sp-api", @@ -6096,7 +6188,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-support", "frame-system", @@ -6113,7 +6205,7 @@ dependencies = [ [[package]] name = "pallet-offences-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -6136,7 +6228,7 @@ dependencies = [ [[package]] name = "pallet-preimage" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-support", @@ -6153,7 +6245,7 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-support", @@ -6168,7 +6260,7 @@ dependencies = [ [[package]] name = "pallet-ranked-collective" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-support", @@ -6186,7 +6278,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-support", @@ -6201,12 +6293,13 @@ dependencies = [ [[package]] name = "pallet-referenda" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "assert_matches", "frame-benchmarking", "frame-support", "frame-system", + "log", "parity-scale-codec", "scale-info", "serde", @@ -6219,7 +6312,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-support", @@ -6230,12 +6323,13 @@ dependencies = [ "sp-io", "sp-runtime", "sp-std", + "sp-weights", ] [[package]] name = "pallet-session" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-support", "frame-system", @@ -6256,7 +6350,7 @@ dependencies = [ [[package]] name = "pallet-session-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-support", @@ -6272,7 +6366,7 @@ dependencies = [ [[package]] name = "pallet-society" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-support", "frame-system", @@ -6286,7 +6380,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -6309,7 +6403,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -6320,16 +6414,33 @@ dependencies = [ [[package]] name = "pallet-staking-reward-fn" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "log", "sp-arithmetic", ] +[[package]] +name = "pallet-state-trie-migration" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "log", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", +] + [[package]] name = "pallet-sudo" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-support", "frame-system", @@ -6343,7 +6454,7 @@ dependencies = [ [[package]] name = "pallet-sudo-mangata" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-support", "frame-system", @@ -6375,7 +6486,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-support", @@ -6393,7 +6504,7 @@ dependencies = [ [[package]] name = "pallet-tips" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-support", @@ -6412,7 +6523,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-support", "frame-system", @@ -6428,7 +6539,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "jsonrpsee", "pallet-transaction-payment-rpc-runtime-api", @@ -6438,23 +6549,25 @@ dependencies = [ "sp-core", "sp-rpc", "sp-runtime", + "sp-weights", ] [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", "sp-api", "sp-runtime", + "sp-weights", ] [[package]] name = "pallet-treasury" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-support", @@ -6471,7 +6584,23 @@ dependencies = [ [[package]] name = "pallet-utility" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", +] + +[[package]] +name = "pallet-utility-mangata" +version = "4.0.0-dev" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-support", @@ -6487,7 +6616,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-support", @@ -6502,7 +6631,7 @@ dependencies = [ [[package]] name = "pallet-vesting-mangata" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-support", @@ -6517,7 +6646,7 @@ dependencies = [ [[package]] name = "pallet-vesting-mangata-rpc" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "jsonrpsee", "pallet-vesting-mangata-rpc-runtime-api", @@ -6534,7 +6663,7 @@ dependencies = [ [[package]] name = "pallet-vesting-mangata-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "pallet-vesting-mangata", "parity-scale-codec", @@ -6547,7 +6676,7 @@ dependencies = [ [[package]] name = "pallet-whitelist" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-benchmarking", "frame-support", @@ -6561,8 +6690,8 @@ dependencies = [ [[package]] name = "pallet-xcm" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "frame-support", "frame-system", @@ -6579,8 +6708,8 @@ dependencies = [ [[package]] name = "pallet-xcm-benchmarks" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "frame-benchmarking", "frame-support", @@ -6598,7 +6727,7 @@ dependencies = [ name = "pallet-xyk" version = "0.1.0" dependencies = [ - "env_logger", + "env_logger 0.9.3", "frame-benchmarking", "frame-executive", "frame-support", @@ -6634,7 +6763,7 @@ dependencies = [ [[package]] name = "parachain-info" version = "0.1.0" -source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#6ab2e3a1969828966a2175a88584d210d7380959" +source = "git+https://github.com/mangata-finance//cumulus?branch=mangata-dev#20d0869efc80aee36833e7fea822b8c7ef60f641" dependencies = [ "cumulus-primitives-core", "frame-support", @@ -6646,7 +6775,7 @@ dependencies = [ [[package]] name = "parachain-staking" version = "3.0.0" -source = "git+https://github.com/mangata-finance//moonbeam?branch=mangata-dev#94a1c99f8803cbca3618e08f085a52d6b4dec2a5" +source = "git+https://github.com/mangata-finance//moonbeam?branch=mangata-dev#7388e3677b8e58843630515e503d9c0ab52f5c01" dependencies = [ "frame-benchmarking", "frame-support", @@ -6672,11 +6801,11 @@ dependencies = [ [[package]] name = "parity-db" -version = "0.3.17" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c8fdb726a43661fa54b43e7114e6b88b2289cae388eb3ad766d9d1754d83fce" +checksum = "dd684a725651d9588ef21f140a328b6b4f64e646b2e931f3e6f14f75eedf9980" dependencies = [ - "blake2-rfc", + "blake2", "crc32fast", "fs2", "hex", @@ -6691,9 +6820,9 @@ dependencies = [ [[package]] name = "parity-scale-codec" -version = "3.2.1" +version = "3.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "366e44391a8af4cfd6002ef6ba072bae071a96aafca98d7d448a34c5dca38b6a" +checksum = "637935964ff85a605d114591d4d2c13c5d1ba2806dae97cea6bf180238a749ac" dependencies = [ "arrayvec 0.7.2", "bitvec", @@ -6706,9 +6835,9 @@ dependencies = [ [[package]] name = "parity-scale-codec-derive" -version = "3.1.3" +version = "3.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9299338969a3d2f491d65f140b00ddec470858402f888af98e8642fb5e8965cd" +checksum = "86b26a931f824dd4eca30b3e43bb4f31cd5f0d3a403c5f5ff27106b805bfde7b" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -6728,13 +6857,11 @@ version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0d32c34f4f5ca7f9196001c0aba5a1f9a5a12382c8944b8b0f90233282d1e8f8" dependencies = [ - "cfg-if 1.0.0", - "hashbrown", + "cfg-if", "impl-trait-for-tuples", "parity-util-mem-derive", "parking_lot 0.12.1", "primitive-types", - "smallvec", "winapi", ] @@ -6749,15 +6876,6 @@ dependencies = [ "synstructure", ] -[[package]] -name = "parity-wasm" -version = "0.32.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16ad52817c4d343339b3bc2e26861bd21478eda0b7509acf83505727000512ac" -dependencies = [ - "byteorder", -] - [[package]] name = "parity-wasm" version = "0.45.0" @@ -6788,7 +6906,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" dependencies = [ "lock_api", - "parking_lot_core 0.9.5", + "parking_lot_core 0.9.7", ] [[package]] @@ -6797,7 +6915,7 @@ version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "60a2cfe6f0ad2bfc16aefa463b497d5c7a5ecd44a23efa72aa342d90177356dc" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "instant", "libc", "redox_syscall", @@ -6807,15 +6925,15 @@ dependencies = [ [[package]] name = "parking_lot_core" -version = "0.9.5" +version = "0.9.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ff9f3fef3968a3ec5945535ed654cb38ff72d7495a25619e2247fb15a2ed9ba" +checksum = "9069cbb9f99e3a5083476ccb29ceb1de18b9118cafa53e90c9551235de2b9521" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "libc", "redox_syscall", "smallvec", - "windows-sys 0.42.0", + "windows-sys 0.45.0", ] [[package]] @@ -6856,9 +6974,9 @@ checksum = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e" [[package]] name = "pest" -version = "2.5.2" +version = "2.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f6e86fb9e7026527a0d46bc308b841d73170ef8f443e1807f6ef88526a816d4" +checksum = "028accff104c4e513bad663bbcd2ad7cfd5304144404c31ed0a77ac103d00660" dependencies = [ "thiserror", "ucd-trie", @@ -6866,9 +6984,9 @@ dependencies = [ [[package]] name = "pest_derive" -version = "2.5.2" +version = "2.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96504449aa860c8dcde14f9fba5c58dc6658688ca1fe363589d6327b8662c603" +checksum = "2ac3922aac69a40733080f53c1ce7f91dcf57e1a5f6c52f421fadec7fbdc4b69" dependencies = [ "pest", "pest_generator", @@ -6876,9 +6994,9 @@ dependencies = [ [[package]] name = "pest_generator" -version = "2.5.2" +version = "2.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "798e0220d1111ae63d66cb66a5dcb3fc2d986d520b98e49e1852bfdb11d7c5e7" +checksum = "d06646e185566b5961b4058dd107e0a7f56e77c3f484549fb119867773c0f202" dependencies = [ "pest", "pest_meta", @@ -6889,20 +7007,20 @@ dependencies = [ [[package]] name = "pest_meta" -version = "2.5.2" +version = "2.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "984298b75898e30a843e278a9f2452c31e349a073a0ce6fd950a12a74464e065" +checksum = "e6f60b2ba541577e2a0c307c8f39d1439108120eb7903adeb6497fa880c59616" dependencies = [ "once_cell", "pest", - "sha1", + "sha2 0.10.6", ] [[package]] name = "petgraph" -version = "0.6.2" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6d5014253a1331579ce62aa67443b4a658c5e7dd03d4bc6d302b94474888143" +checksum = "4dd7d28ee937e54fe3080c91faa1c3a46c06de6252988a7f4592ba2310ef22a4" dependencies = [ "fixedbitset", "indexmap", @@ -6948,13 +7066,12 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" [[package]] name = "pkcs8" -version = "0.8.0" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7cabda3fb821068a9a4fab19a683eac3af12edf0f34b94a8be53c4972b8149d0" +checksum = "9eca2c590a5f85da82668fa685c09ce2888b9430e83299debf1f34b65fd4a4ba" dependencies = [ "der", "spki", - "zeroize", ] [[package]] @@ -6977,8 +7094,8 @@ checksum = "e3d7ddaed09e0eb771a79ab0fd64609ba0afb0a8366421957936ad14cbd13630" [[package]] name = "polkadot-approval-distribution" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "futures", "polkadot-node-network-protocol", @@ -6992,8 +7109,8 @@ dependencies = [ [[package]] name = "polkadot-availability-bitfield-distribution" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "futures", "polkadot-node-network-protocol", @@ -7006,13 +7123,13 @@ dependencies = [ [[package]] name = "polkadot-availability-distribution" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "derive_more", "fatality", "futures", - "lru 0.8.1", + "lru", "parity-scale-codec", "polkadot-erasure-coding", "polkadot-node-network-protocol", @@ -7029,12 +7146,12 @@ dependencies = [ [[package]] name = "polkadot-availability-recovery" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "fatality", "futures", - "lru 0.8.1", + "lru", "parity-scale-codec", "polkadot-erasure-coding", "polkadot-node-network-protocol", @@ -7050,8 +7167,8 @@ dependencies = [ [[package]] name = "polkadot-cli" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "clap", "frame-benchmarking-cli", @@ -7063,12 +7180,13 @@ dependencies = [ "polkadot-performance-test", "polkadot-service", "sc-cli", + "sc-executor", "sc-service", "sc-sysinfo", "sc-tracing", "sp-core", + "sp-io", "sp-keyring", - "sp-trie", "substrate-build-script-utils", "thiserror", "try-runtime-cli", @@ -7076,14 +7194,15 @@ dependencies = [ [[package]] name = "polkadot-client" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ - "beefy-primitives", + "async-trait", "frame-benchmarking", "frame-benchmarking-cli", "frame-system", "frame-system-rpc-runtime-api", + "futures", "kusama-runtime", "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", @@ -7099,6 +7218,7 @@ dependencies = [ "sc-service", "sp-api", "sp-authority-discovery", + "sp-beefy", "sp-block-builder", "sp-blockchain", "sp-consensus", @@ -7118,8 +7238,8 @@ dependencies = [ [[package]] name = "polkadot-collator-protocol" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "always-assert", "bitvec", @@ -7140,11 +7260,10 @@ dependencies = [ [[package]] name = "polkadot-core-primitives" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "parity-scale-codec", - "parity-util-mem", "scale-info", "sp-core", "sp-runtime", @@ -7153,15 +7272,15 @@ dependencies = [ [[package]] name = "polkadot-dispute-distribution" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "derive_more", "fatality", "futures", "futures-timer", "indexmap", - "lru 0.8.1", + "lru", "parity-scale-codec", "polkadot-erasure-coding", "polkadot-node-network-protocol", @@ -7178,8 +7297,8 @@ dependencies = [ [[package]] name = "polkadot-erasure-coding" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "parity-scale-codec", "polkadot-node-primitives", @@ -7192,8 +7311,8 @@ dependencies = [ [[package]] name = "polkadot-gossip-support" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "futures", "futures-timer", @@ -7212,8 +7331,8 @@ dependencies = [ [[package]] name = "polkadot-network-bridge" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "always-assert", "async-trait", @@ -7236,8 +7355,8 @@ dependencies = [ [[package]] name = "polkadot-node-collation-generation" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "futures", "parity-scale-codec", @@ -7254,15 +7373,15 @@ dependencies = [ [[package]] name = "polkadot-node-core-approval-voting" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "bitvec", "derive_more", "futures", "futures-timer", "kvdb", - "lru 0.8.1", + "lru", "merlin", "parity-scale-codec", "polkadot-node-jaeger", @@ -7283,8 +7402,8 @@ dependencies = [ [[package]] name = "polkadot-node-core-av-store" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "bitvec", "futures", @@ -7303,8 +7422,8 @@ dependencies = [ [[package]] name = "polkadot-node-core-backing" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "bitvec", "fatality", @@ -7322,8 +7441,8 @@ dependencies = [ [[package]] name = "polkadot-node-core-bitfield-signing" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "futures", "polkadot-node-subsystem", @@ -7337,11 +7456,12 @@ dependencies = [ [[package]] name = "polkadot-node-core-candidate-validation" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "async-trait", "futures", + "futures-timer", "parity-scale-codec", "polkadot-node-core-pvf", "polkadot-node-primitives", @@ -7355,8 +7475,8 @@ dependencies = [ [[package]] name = "polkadot-node-core-chain-api" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "futures", "polkadot-node-subsystem", @@ -7370,8 +7490,8 @@ dependencies = [ [[package]] name = "polkadot-node-core-chain-selection" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "futures", "futures-timer", @@ -7387,13 +7507,13 @@ dependencies = [ [[package]] name = "polkadot-node-core-dispute-coordinator" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "fatality", "futures", "kvdb", - "lru 0.8.1", + "lru", "parity-scale-codec", "polkadot-node-primitives", "polkadot-node-subsystem", @@ -7406,13 +7526,14 @@ dependencies = [ [[package]] name = "polkadot-node-core-parachains-inherent" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "async-trait", "futures", "futures-timer", "polkadot-node-subsystem", + "polkadot-overseer", "polkadot-primitives", "sp-blockchain", "sp-inherents", @@ -7423,8 +7544,8 @@ dependencies = [ [[package]] name = "polkadot-node-core-provisioner" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "bitvec", "fatality", @@ -7441,13 +7562,14 @@ dependencies = [ [[package]] name = "polkadot-node-core-pvf" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "always-assert", "assert_matches", "async-process", "async-std", + "cpu-time", "futures", "futures-timer", "parity-scale-codec", @@ -7473,8 +7595,8 @@ dependencies = [ [[package]] name = "polkadot-node-core-pvf-checker" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "futures", "polkadot-node-primitives", @@ -7489,12 +7611,11 @@ dependencies = [ [[package]] name = "polkadot-node-core-runtime-api" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "futures", - "memory-lru", - "parity-util-mem", + "lru", "polkadot-node-subsystem", "polkadot-node-subsystem-types", "polkadot-node-subsystem-util", @@ -7505,10 +7626,9 @@ dependencies = [ [[package]] name = "polkadot-node-jaeger" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ - "async-std", "lazy_static", "log", "mick-jaeger", @@ -7519,12 +7639,13 @@ dependencies = [ "sc-network", "sp-core", "thiserror", + "tokio", ] [[package]] name = "polkadot-node-metrics" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "bs58", "futures", @@ -7542,8 +7663,8 @@ dependencies = [ [[package]] name = "polkadot-node-network-protocol" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "async-trait", "derive_more", @@ -7565,8 +7686,8 @@ dependencies = [ [[package]] name = "polkadot-node-primitives" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "bounded-vec", "futures", @@ -7587,8 +7708,8 @@ dependencies = [ [[package]] name = "polkadot-node-subsystem" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "polkadot-node-jaeger", "polkadot-node-subsystem-types", @@ -7597,8 +7718,8 @@ dependencies = [ [[package]] name = "polkadot-node-subsystem-types" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "async-trait", "derive_more", @@ -7620,8 +7741,8 @@ dependencies = [ [[package]] name = "polkadot-node-subsystem-util" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "async-trait", "derive_more", @@ -7629,10 +7750,9 @@ dependencies = [ "futures", "itertools 0.10.5", "kvdb", - "lru 0.8.1", + "lru", "parity-db", "parity-scale-codec", - "parity-util-mem", "parking_lot 0.11.2", "pin-project", "polkadot-node-jaeger", @@ -7653,15 +7773,14 @@ dependencies = [ [[package]] name = "polkadot-overseer" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "async-trait", "futures", "futures-timer", - "lru 0.8.1", + "lru", "orchestra", - "parity-util-mem", "parking_lot 0.12.1", "polkadot-node-metrics", "polkadot-node-network-protocol", @@ -7671,18 +7790,18 @@ dependencies = [ "sc-client-api", "sp-api", "sp-core", + "tikv-jemalloc-ctl", "tracing-gum", ] [[package]] name = "polkadot-parachain" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "derive_more", "frame-support", "parity-scale-codec", - "parity-util-mem", "polkadot-core-primitives", "scale-info", "serde", @@ -7693,10 +7812,10 @@ dependencies = [ [[package]] name = "polkadot-performance-test" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ - "env_logger", + "env_logger 0.9.3", "kusama-runtime", "log", "polkadot-erasure-coding", @@ -7708,14 +7827,12 @@ dependencies = [ [[package]] name = "polkadot-primitives" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "bitvec", - "frame-system", "hex-literal", "parity-scale-codec", - "parity-util-mem", "polkadot-core-primitives", "polkadot-parachain", "scale-info", @@ -7732,19 +7849,17 @@ dependencies = [ "sp-runtime", "sp-staking", "sp-std", - "sp-trie", - "sp-version", ] [[package]] name = "polkadot-rpc" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "beefy-gadget", "beefy-gadget-rpc", "jsonrpsee", - "pallet-mmr-rpc", + "mmr-rpc", "pallet-transaction-payment-rpc", "polkadot-primitives", "sc-chain-spec", @@ -7770,10 +7885,9 @@ dependencies = [ [[package]] name = "polkadot-runtime" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ - "beefy-primitives", "bitvec", "frame-benchmarking", "frame-election-provider-support", @@ -7836,6 +7950,7 @@ dependencies = [ "smallvec", "sp-api", "sp-authority-discovery", + "sp-beefy", "sp-block-builder", "sp-consensus-babe", "sp-core", @@ -7859,10 +7974,9 @@ dependencies = [ [[package]] name = "polkadot-runtime-common" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ - "beefy-primitives", "bitvec", "frame-benchmarking", "frame-election-provider-support", @@ -7879,6 +7993,7 @@ dependencies = [ "pallet-election-provider-multi-phase", "pallet-session", "pallet-staking", + "pallet-staking-reward-fn", "pallet-timestamp", "pallet-transaction-payment", "pallet-treasury", @@ -7892,6 +8007,7 @@ dependencies = [ "serde_derive", "slot-range-helper", "sp-api", + "sp-beefy", "sp-core", "sp-inherents", "sp-io", @@ -7906,8 +8022,8 @@ dependencies = [ [[package]] name = "polkadot-runtime-constants" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "frame-support", "polkadot-primitives", @@ -7920,8 +8036,8 @@ dependencies = [ [[package]] name = "polkadot-runtime-metrics" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "bs58", "parity-scale-codec", @@ -7932,8 +8048,8 @@ dependencies = [ [[package]] name = "polkadot-runtime-parachains" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "bitflags", "bitvec", @@ -7975,12 +8091,11 @@ dependencies = [ [[package]] name = "polkadot-service" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "async-trait", "beefy-gadget", - "beefy-primitives", "frame-support", "frame-system-rpc-runtime-api", "futures", @@ -7989,7 +8104,8 @@ dependencies = [ "kusama-runtime-constants", "kvdb", "kvdb-rocksdb", - "lru 0.8.1", + "lru", + "mmr-gadget", "pallet-babe", "pallet-im-online", "pallet-staking", @@ -8056,6 +8172,7 @@ dependencies = [ "serde_json", "sp-api", "sp-authority-discovery", + "sp-beefy", "sp-block-builder", "sp-blockchain", "sp-consensus", @@ -8065,6 +8182,7 @@ dependencies = [ "sp-inherents", "sp-io", "sp-keystore", + "sp-mmr-primitives", "sp-offchain", "sp-runtime", "sp-session", @@ -8081,8 +8199,8 @@ dependencies = [ [[package]] name = "polkadot-statement-distribution" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "arrayvec 0.5.2", "fatality", @@ -8102,8 +8220,8 @@ dependencies = [ [[package]] name = "polkadot-statement-table" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "parity-scale-codec", "polkadot-primitives", @@ -8112,10 +8230,9 @@ dependencies = [ [[package]] name = "polkadot-test-runtime" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ - "beefy-primitives", "bitvec", "frame-election-provider-support", "frame-executive", @@ -8151,6 +8268,7 @@ dependencies = [ "smallvec", "sp-api", "sp-authority-discovery", + "sp-beefy", "sp-block-builder", "sp-consensus-babe", "sp-core", @@ -8173,8 +8291,8 @@ dependencies = [ [[package]] name = "polkadot-test-service" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "frame-benchmarking", "frame-system", @@ -8232,7 +8350,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "22122d5ec4f9fe1b3916419b76be1e80bcb93f618d071d2edf841b137b2a2bd6" dependencies = [ "autocfg", - "cfg-if 1.0.0", + "cfg-if", "libc", "log", "wepoll-ffi", @@ -8256,7 +8374,7 @@ version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8419d2b623c7c0896ff2d5d96e2cb4ede590fed28fcc34934f4c33c036e620a1" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "cpufeatures", "opaque-debug 0.3.0", "universal-hash", @@ -8300,9 +8418,9 @@ dependencies = [ [[package]] name = "prettyplease" -version = "0.1.22" +version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c8992a85d8e93a28bdf76137db888d3874e3b230dee5ed8bebac4c9f7617773" +checksum = "e97e3215779627f01ee256d2fad52f3d95e8e1c11e9fc6fd08f7cd455d5d5c78" dependencies = [ "proc-macro2", "syn", @@ -8339,13 +8457,12 @@ dependencies = [ [[package]] name = "proc-macro-crate" -version = "1.2.1" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eda0fc3b0fb7c975631757e14d9049da17374063edb6ebbcbc54d880d4fe94e9" +checksum = "66618389e4ec1c7afe67d51a9bf34ff9236480f8d51e7489b7d5ab0303c13f34" dependencies = [ "once_cell", - "thiserror", - "toml", + "toml_edit", ] [[package]] @@ -8374,9 +8491,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.49" +version = "1.0.51" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57a8eca9f9c4ffde41714334dee777596264c7825420f521abc92b5b5deb63a5" +checksum = "5d727cae5b39d21da60fa540906919ad737832fe0b1c165da3a34d6548c849d6" dependencies = [ "unicode-ident", ] @@ -8387,7 +8504,7 @@ version = "0.13.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "449811d15fbdf5ceb5c1144416066429cf82316e2ec8ce0c1f6f8a02e7bbcf8c" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "fnv", "lazy_static", "memchr", @@ -8420,9 +8537,9 @@ dependencies = [ [[package]] name = "prost" -version = "0.11.5" +version = "0.11.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c01db6702aa05baa3f57dec92b8eeeeb4cb19e894e73996b32a4093289e54592" +checksum = "21dc42e00223fc37204bd4aa177e69420c604ca4a183209a8f9de30c6d934698" dependencies = [ "bytes", "prost-derive", @@ -8430,9 +8547,9 @@ dependencies = [ [[package]] name = "prost-build" -version = "0.11.5" +version = "0.11.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb5320c680de74ba083512704acb90fe00f28f79207286a848e730c45dd73ed6" +checksum = "a3f8ad728fb08fe212df3c05169e940fbb6d9d16a877ddde14644a983ba2012e" dependencies = [ "bytes", "heck", @@ -8465,9 +8582,9 @@ dependencies = [ [[package]] name = "prost-derive" -version = "0.11.5" +version = "0.11.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8842bad1a5419bca14eac663ba798f6bc19c413c2fdceb5f3ba3b0932d96720" +checksum = "8bda8c0881ea9f722eb9629376db3d0b903b462477c1aafcb0566610ac28ac5d" dependencies = [ "anyhow", "itertools 0.10.5", @@ -8478,9 +8595,9 @@ dependencies = [ [[package]] name = "prost-types" -version = "0.11.5" +version = "0.11.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "017f79637768cde62820bc2d4fe0e45daaa027755c323ad077767c6c5f173091" +checksum = "a5e0526209433e96d83d750dd81a99118edbc55739e7e61a46764fd2ad537788" dependencies = [ "bytes", "prost", @@ -8645,9 +8762,9 @@ dependencies = [ [[package]] name = "rayon-core" -version = "1.10.1" +version = "1.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cac410af5d00ab6884528b4ab69d1e8e146e8d471201800fa1b4524126de6ad3" +checksum = "356a0625f1954f730c0201cdab48611198dc6ce21f4acff55089b5a78e6e835b" dependencies = [ "crossbeam-channel", "crossbeam-deque", @@ -8722,9 +8839,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.7.0" +version = "1.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e076559ef8e241f2ae3479e36f97bd5741c0330689e217ad51ce2c76808b868a" +checksum = "48aaa5748ba571fb95cd2c85c09f629215d3a6ece942baa100950af03a34f733" dependencies = [ "aho-corasick", "memchr", @@ -8735,34 +8852,17 @@ dependencies = [ name = "regex-automata" version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" -dependencies = [ - "regex-syntax", -] - -[[package]] -name = "regex-syntax" -version = "0.6.28" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848" - -[[package]] -name = "remote-externalities" -version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" -dependencies = [ - "env_logger", - "log", - "parity-scale-codec", - "serde", - "serde_json", - "sp-core", - "sp-io", - "sp-runtime", - "sp-version", - "substrate-rpc-client", +checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" +dependencies = [ + "regex-syntax", ] +[[package]] +name = "regex-syntax" +version = "0.6.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848" + [[package]] name = "remove_dir_all" version = "0.5.3" @@ -8784,12 +8884,12 @@ dependencies = [ [[package]] name = "rfc6979" -version = "0.1.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96ef608575f6392792f9ecf7890c00086591d29a83910939d430753f7c050525" +checksum = "7743f17af12fa0b03b803ba12cd6a8d9483a587e89c69445e3909655c0b9fabb" dependencies = [ "crypto-bigint", - "hmac 0.11.0", + "hmac 0.12.1", "zeroize", ] @@ -8820,11 +8920,10 @@ dependencies = [ [[package]] name = "rococo-runtime" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "beefy-merkle-tree", - "beefy-primitives", "frame-benchmarking", "frame-executive", "frame-support", @@ -8844,7 +8943,6 @@ dependencies = [ "pallet-collective", "pallet-democracy", "pallet-elections-phragmen", - "pallet-gilt", "pallet-grandpa", "pallet-identity", "pallet-im-online", @@ -8852,6 +8950,7 @@ dependencies = [ "pallet-membership", "pallet-mmr", "pallet-multisig", + "pallet-nis", "pallet-offences", "pallet-preimage", "pallet-proxy", @@ -8860,6 +8959,7 @@ dependencies = [ "pallet-session", "pallet-society", "pallet-staking", + "pallet-state-trie-migration", "pallet-sudo", "pallet-timestamp", "pallet-tips", @@ -8882,6 +8982,7 @@ dependencies = [ "smallvec", "sp-api", "sp-authority-discovery", + "sp-beefy", "sp-block-builder", "sp-consensus-babe", "sp-core", @@ -8904,8 +9005,8 @@ dependencies = [ [[package]] name = "rococo-runtime-constants" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "frame-support", "polkadot-primitives", @@ -8957,7 +9058,7 @@ name = "runtime-integration-test" version = "0.1.0" dependencies = [ "cumulus-primitives-core", - "env_logger", + "env_logger 0.9.3", "frame-support", "frame-system", "log", @@ -9037,23 +9138,23 @@ dependencies = [ [[package]] name = "rustix" -version = "0.36.6" +version = "0.36.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4feacf7db682c6c329c4ede12649cd36ecab0f3be5b7d74e6a20304725db4549" +checksum = "f43abb88211988493c1abb44a70efa56ff0ce98f233b7b276146f1f3f7ba9644" dependencies = [ "bitflags", "errno", - "io-lifetimes 1.0.3", + "io-lifetimes 1.0.5", "libc", "linux-raw-sys 0.1.4", - "windows-sys 0.42.0", + "windows-sys 0.45.0", ] [[package]] name = "rustls" -version = "0.20.7" +version = "0.20.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "539a2bfe908f471bfa933876bd1eb6a19cf2176d375f82ef7f99530a40e48c2c" +checksum = "fff78fc74d175294f4e83b28343315ffcfb114b156f0185e9741cb5570f50e2f" dependencies = [ "log", "ring", @@ -9075,11 +9176,11 @@ dependencies = [ [[package]] name = "rustls-pemfile" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0864aeff53f8c05aa08d86e5ef839d3dfcf07aeba2db32f12db0ef716e87bd55" +checksum = "d194b56d58803a43635bdc398cd17e383d6f71f9182b9a192c127ca42494a59b" dependencies = [ - "base64", + "base64 0.21.0", ] [[package]] @@ -9117,7 +9218,7 @@ dependencies = [ [[package]] name = "sc-allocator" version = "4.1.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "log", "sp-core", @@ -9128,7 +9229,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "async-trait", "futures", @@ -9155,9 +9256,8 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ - "aquamarine", "futures", "futures-timer", "log", @@ -9179,7 +9279,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship-ver" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "aquamarine", "futures", @@ -9205,7 +9305,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -9221,7 +9321,7 @@ dependencies = [ [[package]] name = "sc-block-builder-ver" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "aquamarine", "extrinsic-shuffler", @@ -9242,7 +9342,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "impl-trait-for-tuples", "memmap2", @@ -9259,7 +9359,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -9270,9 +9370,9 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ - "array-bytes", + "array-bytes 4.2.0", "chrono", "clap", "fdlimit", @@ -9310,7 +9410,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "fnv", "futures", @@ -9338,7 +9438,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "hash-db", "kvdb", @@ -9363,13 +9463,14 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "async-trait", "futures", "futures-timer", "libp2p", "log", + "mockall", "parking_lot 0.12.1", "sc-client-api", "sc-utils", @@ -9387,7 +9488,7 @@ dependencies = [ [[package]] name = "sc-consensus-aura" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "async-trait", "futures", @@ -9416,19 +9517,18 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "async-trait", "fork-tree", "futures", "log", "merlin", - "num-bigint 0.2.6", - "num-rational 0.2.4", + "num-bigint", + "num-rational", "num-traits", "parity-scale-codec", "parking_lot 0.12.1", - "rand 0.7.3", "sc-client-api", "sc-consensus", "sc-consensus-epochs", @@ -9458,7 +9558,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "futures", "jsonrpsee", @@ -9480,7 +9580,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "fork-tree", "parity-scale-codec", @@ -9493,7 +9593,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "async-trait", "futures", @@ -9512,7 +9612,6 @@ dependencies = [ "sp-keystore", "sp-runtime", "sp-state-machine", - "sp-timestamp", "sp-ver", "thiserror", ] @@ -9520,10 +9619,9 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ - "lazy_static", - "lru 0.7.8", + "lru", "parity-scale-codec", "parking_lot 0.12.1", "sc-executor-common", @@ -9531,12 +9629,10 @@ dependencies = [ "sc-executor-wasmtime", "sp-api", "sp-core", - "sp-core-hashing-proc-macro", "sp-externalities", "sp-io", "sp-panic-handler", "sp-runtime-interface", - "sp-tasks", "sp-trie", "sp-version", "sp-wasm-interface", @@ -9547,13 +9643,10 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ - "environmental", - "parity-scale-codec", "sc-allocator", "sp-maybe-compressed-blob", - "sp-sandbox", "sp-wasm-interface", "thiserror", "wasm-instrument", @@ -9563,14 +9656,12 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "log", - "parity-scale-codec", "sc-allocator", "sc-executor-common", "sp-runtime-interface", - "sp-sandbox", "sp-wasm-interface", "wasmi", ] @@ -9578,19 +9669,16 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "libc", "log", "once_cell", - "parity-scale-codec", - "parity-wasm 0.45.0", "rustix 0.35.13", "sc-allocator", "sc-executor-common", "sp-runtime-interface", - "sp-sandbox", "sp-wasm-interface", "wasmtime", ] @@ -9598,10 +9686,10 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "ahash", - "array-bytes", + "array-bytes 4.2.0", "async-trait", "dyn-clone", "finality-grandpa", @@ -9639,7 +9727,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-rpc" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "finality-grandpa", "futures", @@ -9660,13 +9748,12 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "ansi_term", "futures", "futures-timer", "log", - "parity-util-mem", "sc-client-api", "sc-network-common", "sc-transaction-pool-api", @@ -9677,9 +9764,9 @@ dependencies = [ [[package]] name = "sc-keystore" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ - "array-bytes", + "array-bytes 4.2.0", "async-trait", "parking_lot 0.12.1", "serde_json", @@ -9692,9 +9779,9 @@ dependencies = [ [[package]] name = "sc-network" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ - "array-bytes", + "array-bytes 4.2.0", "async-trait", "asynchronous-codec", "bitflags", @@ -9710,7 +9797,7 @@ dependencies = [ "linked-hash-map", "linked_hash_set", "log", - "lru 0.7.8", + "lru", "parity-scale-codec", "parking_lot 0.12.1", "pin-project", @@ -9739,7 +9826,7 @@ dependencies = [ [[package]] name = "sc-network-bitswap" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "cid", "futures", @@ -9759,7 +9846,7 @@ dependencies = [ [[package]] name = "sc-network-bitswap" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance/substrate?branch=mangata-dev#0520be795090522284ea3d53ef9d6145e304dd33" +source = "git+https://github.com/mangata-finance/substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "cid", "futures", @@ -9779,7 +9866,7 @@ dependencies = [ [[package]] name = "sc-network-common" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "async-trait", "bitflags", @@ -9805,14 +9892,14 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "ahash", "futures", "futures-timer", "libp2p", "log", - "lru 0.7.8", + "lru", "sc-network-common", "sc-peerset", "sp-runtime", @@ -9823,9 +9910,9 @@ dependencies = [ [[package]] name = "sc-network-light" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ - "array-bytes", + "array-bytes 4.2.0", "futures", "libp2p", "log", @@ -9844,14 +9931,15 @@ dependencies = [ [[package]] name = "sc-network-sync" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ - "array-bytes", + "array-bytes 4.2.0", + "async-trait", "fork-tree", "futures", "libp2p", "log", - "lru 0.7.8", + "lru", "mockall", "parity-scale-codec", "prost", @@ -9868,15 +9956,16 @@ dependencies = [ "sp-core", "sp-finality-grandpa", "sp-runtime", + "substrate-prometheus-endpoint", "thiserror", ] [[package]] name = "sc-network-transactions" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ - "array-bytes", + "array-bytes 4.2.0", "futures", "hex", "libp2p", @@ -9893,9 +9982,9 @@ dependencies = [ [[package]] name = "sc-offchain" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ - "array-bytes", + "array-bytes 4.2.0", "bytes", "fnv", "futures", @@ -9923,7 +10012,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "futures", "libp2p", @@ -9936,7 +10025,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -9945,7 +10034,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "futures", "hash-db", @@ -9975,7 +10064,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "futures", "jsonrpsee", @@ -9998,20 +10087,23 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "futures", + "http", "jsonrpsee", "log", "serde_json", "substrate-prometheus-endpoint", "tokio", + "tower", + "tower-http", ] [[package]] name = "sc-rpc-spec-v2" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "futures", "hex", @@ -10030,7 +10122,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "async-trait", "directories", @@ -10041,7 +10133,6 @@ dependencies = [ "jsonrpsee", "log", "parity-scale-codec", - "parity-util-mem", "parking_lot 0.12.1", "pin-project", "rand 0.7.3", @@ -10103,12 +10194,10 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "log", "parity-scale-codec", - "parity-util-mem", - "parity-util-mem-derive", "parking_lot 0.12.1", "sc-client-api", "sp-core", @@ -10117,7 +10206,7 @@ dependencies = [ [[package]] name = "sc-sync-state-rpc" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "jsonrpsee", "parity-scale-codec", @@ -10136,7 +10225,7 @@ dependencies = [ [[package]] name = "sc-sysinfo" version = "6.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "futures", "libc", @@ -10155,7 +10244,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "chrono", "futures", @@ -10173,7 +10262,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "ansi_term", "atty", @@ -10204,7 +10293,7 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -10215,7 +10304,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "async-trait", "futures", @@ -10223,7 +10312,6 @@ dependencies = [ "linked-hash-map", "log", "parity-scale-codec", - "parity-util-mem", "parking_lot 0.12.1", "sc-client-api", "sc-transaction-pool-api", @@ -10242,7 +10330,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool-api" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "async-trait", "futures", @@ -10256,7 +10344,7 @@ dependencies = [ [[package]] name = "sc-utils" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "futures", "futures-timer", @@ -10273,7 +10361,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "001cf62ece89779fd16105b5f515ad0e5cedcd5440d3dd806bb067978e7c3608" dependencies = [ "bitvec", - "cfg-if 1.0.0", + "cfg-if", "derive_more", "parity-scale-codec", "scale-info-derive", @@ -10294,12 +10382,11 @@ dependencies = [ [[package]] name = "schannel" -version = "0.1.20" +version = "0.1.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88d6731146462ea25d9244b2ed5fd1d716d25c52e4d54aa4fb0f3c4e9854dbe2" +checksum = "713cfb06c7059f3588fb8044c0fad1d09e3c01d225e25b9220dbfdcf16dbb1b3" dependencies = [ - "lazy_static", - "windows-sys 0.36.1", + "windows-sys 0.42.0", ] [[package]] @@ -10344,10 +10431,11 @@ dependencies = [ [[package]] name = "sec1" -version = "0.2.1" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08da66b8b0965a5555b6bd6639e68ccba85e1e2506f5fbb089e93f8a04e1a2d1" +checksum = "3be24c1842290c45df0a7bf069e0c268a747ad05a192f2fd7dcfdbc1cba40928" dependencies = [ + "base16ct", "der", "generic-array 0.14.6", "pkcs8", @@ -10357,9 +10445,9 @@ dependencies = [ [[package]] name = "secp256k1" -version = "0.24.2" +version = "0.24.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9512ffd81e3a3503ed401f79c33168b9148c75038956039166cd750eaa037c3" +checksum = "6b1629c9c557ef9b293568b338dddfc8208c98a18c59d722a9d53f859d9c9b62" dependencies = [ "secp256k1-sys", ] @@ -10384,9 +10472,9 @@ dependencies = [ [[package]] name = "security-framework" -version = "2.7.0" +version = "2.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bc1bb97804af6631813c55739f771071e0f2ed33ee20b68c86ec505d906356c" +checksum = "a332be01508d814fed64bf28f798a146d73792121129962fdf335bb3c49a4254" dependencies = [ "bitflags", "core-foundation", @@ -10397,9 +10485,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.6.1" +version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0160a13a177a45bfb43ce71c01580998474f556ad854dcbca936dd2841a5c556" +checksum = "31c9bb296072e961fcbd8853511dd39c2d8be2deb1e17c6860b1d30732b323b4" dependencies = [ "core-foundation-sys", "libc", @@ -10457,9 +10545,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.91" +version = "1.0.93" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "877c235533714907a8c2464236f5c4b2a17262ef1bd71f38f35ea592c8da6883" +checksum = "cad406b69c91885b5107daf2c29572f6c8cdb3c66826821e286c533490c0bc76" dependencies = [ "itoa", "ryu", @@ -10506,23 +10594,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "99cd6713db3cf16b6c84e06321e049a9b9f699826e16096d23bbcc44d15d51a6" dependencies = [ "block-buffer 0.9.0", - "cfg-if 1.0.0", + "cfg-if", "cpufeatures", "digest 0.9.0", "opaque-debug 0.3.0", ] -[[package]] -name = "sha1" -version = "0.10.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f04293dc80c3993519f2d7f6f511707ee7094fe0c6d3406feb330cdb3540eba3" -dependencies = [ - "cfg-if 1.0.0", - "cpufeatures", - "digest 0.10.6", -] - [[package]] name = "sha2" version = "0.8.2" @@ -10542,7 +10619,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4d58a1e1bf39749807d89cf2d98ac2dfa0ff1cb3faa38fbb64dd88ac8013d800" dependencies = [ "block-buffer 0.9.0", - "cfg-if 1.0.0", + "cfg-if", "cpufeatures", "digest 0.9.0", "opaque-debug 0.3.0", @@ -10554,7 +10631,7 @@ version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "82e6b795fe2e3b1e845bafcb27aa35405c4d47cdfc92af5fc8d3002f76cebdc0" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "cpufeatures", "digest 0.10.6", ] @@ -10586,9 +10663,9 @@ checksum = "43b2853a4d09f215c24cc5489c992ce46052d359b5109343cbafbf26bc62f8a3" [[package]] name = "signal-hook" -version = "0.3.14" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a253b5e89e2698464fc26b545c9edceb338e18a89effeeecfea192c3025be29d" +checksum = "732768f1176d21d09e076c23a93123d40bba92d50c4058da34d45c8de8e682b9" dependencies = [ "libc", "signal-hook-registry", @@ -10596,20 +10673,20 @@ dependencies = [ [[package]] name = "signal-hook-registry" -version = "1.4.0" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0" +checksum = "d8229b473baa5980ac72ef434c4415e70c4b5e71b423043adb4ba059f89c99a1" dependencies = [ "libc", ] [[package]] name = "signature" -version = "1.4.0" +version = "1.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02658e48d89f2bec991f9a78e69cfa4c316f8d6a6c4ec12fae1aeb263d486788" +checksum = "74233d3b3b2f6d4b006dc19dee745e73e2a6bfb6f93607cd3b02bd5b00797d7c" dependencies = [ - "digest 0.9.0", + "digest 0.10.6", "rand_core 0.6.4", ] @@ -10631,7 +10708,7 @@ version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "420acb44afdae038210c99e69aae24109f32f15500aa708e81d46c9f29d55fcf" dependencies = [ - "bstr", + "bstr 0.2.17", "unicode-segmentation", ] @@ -10662,8 +10739,8 @@ checksum = "03b634d87b960ab1a38c4fe143b508576f075e7c978bfad18217645ebfdfa2ec" [[package]] name = "slot-range-helper" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "enumn", "parity-scale-codec", @@ -10695,14 +10772,14 @@ checksum = "5e9f0ab6ef7eb7353d9119c170a436d1bf248eea575ac42d19d12f4e34130831" [[package]] name = "snow" -version = "0.9.0" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "774d05a3edae07ce6d68ea6984f3c05e9bba8927e3dd591e3b479e5b03213d0d" +checksum = "12ba5f4d4ff12bdb6a169ed51b7c48c0e0ac4b0b4b31012b2571e97d78d3201d" dependencies = [ "aes-gcm", "blake2", "chacha20poly1305", - "curve25519-dalek 4.0.0-pre.5", + "curve25519-dalek 4.0.0-rc.0", "rand_core 0.6.4", "ring", "rustc_version", @@ -10726,10 +10803,11 @@ version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "41d1c5305e39e09653383c2c7244f2f78b3bcae37cf50c64cb4789c9f5096ec2" dependencies = [ - "base64", + "base64 0.13.1", "bytes", "flate2", "futures", + "http", "httparse", "log", "rand 0.8.5", @@ -10739,7 +10817,7 @@ dependencies = [ [[package]] name = "sp-api" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "hash-db", "log", @@ -10757,7 +10835,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "blake2", "proc-macro-crate", @@ -10768,8 +10846,8 @@ dependencies = [ [[package]] name = "sp-application-crypto" -version = "6.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +version = "7.0.0" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "parity-scale-codec", "scale-info", @@ -10781,8 +10859,8 @@ dependencies = [ [[package]] name = "sp-arithmetic" -version = "5.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +version = "6.0.0" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "integer-sqrt", "num-traits", @@ -10797,7 +10875,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "parity-scale-codec", "scale-info", @@ -10810,7 +10888,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "async-trait", "parity-scale-codec", @@ -10819,10 +10897,27 @@ dependencies = [ "sp-std", ] +[[package]] +name = "sp-beefy" +version = "4.0.0-dev" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +dependencies = [ + "parity-scale-codec", + "scale-info", + "serde", + "sp-api", + "sp-application-crypto", + "sp-core", + "sp-io", + "sp-mmr-primitives", + "sp-runtime", + "sp-std", +] + [[package]] name = "sp-block-builder" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "parity-scale-codec", "sp-api", @@ -10834,11 +10929,11 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "futures", "log", - "lru 0.7.8", + "lru", "parity-scale-codec", "parking_lot 0.12.1", "sp-api", @@ -10852,7 +10947,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "async-trait", "futures", @@ -10871,7 +10966,7 @@ dependencies = [ [[package]] name = "sp-consensus-aura" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "async-trait", "parity-scale-codec", @@ -10889,7 +10984,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "async-trait", "merlin", @@ -10912,7 +11007,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "parity-scale-codec", "scale-info", @@ -10926,7 +11021,7 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "parity-scale-codec", "scale-info", @@ -10938,10 +11033,10 @@ dependencies = [ [[package]] name = "sp-core" -version = "6.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +version = "7.0.0" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ - "array-bytes", + "array-bytes 4.2.0", "base58", "bitflags", "blake2", @@ -10984,8 +11079,8 @@ dependencies = [ [[package]] name = "sp-core-hashing" -version = "4.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +version = "5.0.0" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "blake2", "byteorder", @@ -10999,7 +11094,7 @@ dependencies = [ [[package]] name = "sp-core-hashing-proc-macro" version = "5.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "proc-macro2", "quote", @@ -11010,7 +11105,7 @@ dependencies = [ [[package]] name = "sp-database" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "kvdb", "parking_lot 0.12.1", @@ -11018,8 +11113,8 @@ dependencies = [ [[package]] name = "sp-debug-derive" -version = "4.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +version = "5.0.0" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "proc-macro2", "quote", @@ -11028,8 +11123,8 @@ dependencies = [ [[package]] name = "sp-externalities" -version = "0.12.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +version = "0.13.0" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "environmental", "parity-scale-codec", @@ -11040,7 +11135,7 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "finality-grandpa", "log", @@ -11058,7 +11153,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -11071,10 +11166,11 @@ dependencies = [ [[package]] name = "sp-io" -version = "6.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +version = "7.0.0" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "bytes", + "ed25519-dalek", "futures", "hash-db", "libsecp256k1", @@ -11097,8 +11193,8 @@ dependencies = [ [[package]] name = "sp-keyring" -version = "6.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +version = "7.0.0" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "lazy_static", "sp-core", @@ -11108,8 +11204,8 @@ dependencies = [ [[package]] name = "sp-keystore" -version = "0.12.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +version = "0.13.0" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "async-trait", "futures", @@ -11126,7 +11222,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "4.1.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "thiserror", "zstd", @@ -11135,8 +11231,9 @@ dependencies = [ [[package]] name = "sp-mmr-primitives" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ + "ckb-merkle-mountain-range", "log", "parity-scale-codec", "scale-info", @@ -11146,12 +11243,13 @@ dependencies = [ "sp-debug-derive", "sp-runtime", "sp-std", + "thiserror", ] [[package]] name = "sp-npos-elections" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "parity-scale-codec", "scale-info", @@ -11165,7 +11263,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "sp-api", "sp-core", @@ -11174,8 +11272,8 @@ dependencies = [ [[package]] name = "sp-panic-handler" -version = "4.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +version = "5.0.0" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "backtrace", "lazy_static", @@ -11185,7 +11283,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "6.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "rustc-hash", "serde", @@ -11194,8 +11292,8 @@ dependencies = [ [[package]] name = "sp-runtime" -version = "6.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +version = "7.0.0" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "either", "hash256-std-hasher", @@ -11217,8 +11315,8 @@ dependencies = [ [[package]] name = "sp-runtime-interface" -version = "6.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +version = "7.0.0" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "bytes", "impl-trait-for-tuples", @@ -11235,8 +11333,8 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" -version = "5.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +version = "6.0.0" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "Inflector", "proc-macro-crate", @@ -11245,24 +11343,10 @@ dependencies = [ "syn", ] -[[package]] -name = "sp-sandbox" -version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" -dependencies = [ - "log", - "parity-scale-codec", - "sp-core", - "sp-io", - "sp-std", - "sp-wasm-interface", - "wasmi", -] - [[package]] name = "sp-session" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "parity-scale-codec", "scale-info", @@ -11276,18 +11360,19 @@ dependencies = [ [[package]] name = "sp-staking" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "parity-scale-codec", "scale-info", + "sp-core", "sp-runtime", "sp-std", ] [[package]] name = "sp-state-machine" -version = "0.12.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +version = "0.13.0" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "hash-db", "log", @@ -11308,13 +11393,13 @@ dependencies = [ [[package]] name = "sp-std" -version = "4.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +version = "5.0.0" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" [[package]] name = "sp-storage" -version = "6.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +version = "7.0.0" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "impl-serde", "parity-scale-codec", @@ -11324,23 +11409,10 @@ dependencies = [ "sp-std", ] -[[package]] -name = "sp-tasks" -version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" -dependencies = [ - "log", - "sp-core", - "sp-externalities", - "sp-io", - "sp-runtime-interface", - "sp-std", -] - [[package]] name = "sp-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "async-trait", "futures-timer", @@ -11355,8 +11427,8 @@ dependencies = [ [[package]] name = "sp-tracing" -version = "5.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +version = "6.0.0" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "parity-scale-codec", "sp-std", @@ -11368,7 +11440,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "sp-api", "sp-runtime", @@ -11377,7 +11449,7 @@ dependencies = [ [[package]] name = "sp-transaction-storage-proof" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "async-trait", "log", @@ -11392,14 +11464,14 @@ dependencies = [ [[package]] name = "sp-trie" -version = "6.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +version = "7.0.0" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "ahash", "hash-db", "hashbrown", "lazy_static", - "lru 0.7.8", + "lru", "memory-db", "nohash-hasher", "parity-scale-codec", @@ -11416,7 +11488,7 @@ dependencies = [ [[package]] name = "sp-ver" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "async-trait", "log", @@ -11434,11 +11506,11 @@ dependencies = [ [[package]] name = "sp-version" version = "5.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "impl-serde", "parity-scale-codec", - "parity-wasm 0.45.0", + "parity-wasm", "scale-info", "serde", "sp-core-hashing-proc-macro", @@ -11451,7 +11523,7 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "parity-scale-codec", "proc-macro2", @@ -11461,8 +11533,8 @@ dependencies = [ [[package]] name = "sp-wasm-interface" -version = "6.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +version = "7.0.0" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "impl-trait-for-tuples", "log", @@ -11475,7 +11547,7 @@ dependencies = [ [[package]] name = "sp-weights" version = "4.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -11496,9 +11568,9 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" [[package]] name = "spki" -version = "0.5.4" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44d01ac02a6ccf3e07db148d2be087da624fea0221a16152ed01f0496a6b0a27" +checksum = "67cf02bbac7a337dc36e4f5a693db6c21e7863f45070f7064577eb4367a3212b" dependencies = [ "base64ct", "der", @@ -11506,9 +11578,9 @@ dependencies = [ [[package]] name = "ss58-registry" -version = "1.36.0" +version = "1.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23d92659e7d18d82b803824a9ba5a6022cff101c3491d027c1c1d8d30e749284" +checksum = "e40c020d72bc0a9c5660bb71e4a6fdef081493583062c474740a7d59f55f0e7b" dependencies = [ "Inflector", "num-format", @@ -11649,7 +11721,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "3.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "platforms 2.0.0", ] @@ -11657,7 +11729,7 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "frame-system-rpc-runtime-api", "futures", @@ -11678,7 +11750,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "futures-util", "hyper", @@ -11691,7 +11763,7 @@ dependencies = [ [[package]] name = "substrate-rpc-client" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "async-trait", "jsonrpsee", @@ -11704,7 +11776,7 @@ dependencies = [ [[package]] name = "substrate-state-trie-migration-rpc" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "jsonrpsee", "log", @@ -11725,9 +11797,9 @@ dependencies = [ [[package]] name = "substrate-test-client" version = "2.0.1" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ - "array-bytes", + "array-bytes 4.2.0", "async-trait", "futures", "parity-scale-codec", @@ -11751,7 +11823,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" version = "5.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "ansi_term", "build-helper", @@ -11762,7 +11834,7 @@ dependencies = [ "tempfile", "toml", "walkdir", - "wasm-gc-api", + "wasm-opt", ] [[package]] @@ -11823,9 +11895,9 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" [[package]] name = "target-lexicon" -version = "0.12.5" +version = "0.12.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9410d0f6853b1d94f0e519fb95df60f29d2c1eff2d921ffdf01a4c8a3b54f12d" +checksum = "8ae9980cab1db3fceee2f6c6f643d5d8de2997c58ee8d25fb0cc8a9e9e7348e5" [[package]] name = "tempfile" @@ -11833,7 +11905,7 @@ version = "3.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5cdb1ef4eaeeaddc8fbd371e5017057064af0911902ef36b39801f67cc6d79e4" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "fastrand", "libc", "redox_syscall", @@ -11843,9 +11915,9 @@ dependencies = [ [[package]] name = "termcolor" -version = "1.1.3" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755" +checksum = "be55cf8942feac5c765c2c993422806843c9a9a45d4d5c407ad6dd2ea95eb9b6" dependencies = [ "winapi-util", ] @@ -11871,7 +11943,7 @@ version = "2.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e45b7bf6e19353ddd832745c8fcf77a17a93171df7151187f26623f2b75b5b26" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "proc-macro-error", "proc-macro2", "quote", @@ -11880,8 +11952,8 @@ dependencies = [ [[package]] name = "test-runtime-constants" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "frame-support", "polkadot-primitives", @@ -11920,10 +11992,11 @@ checksum = "3bf63baf9f5039dadc247375c29eb13706706cfde997d0330d05aa63a77d8820" [[package]] name = "thread_local" -version = "1.1.4" +version = "1.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5516c27b78311c50bf42c071425c560ac799b11c30b31f87e3081965fe5e0180" +checksum = "3fdd6f064ccff2d6567adcb3873ca630700f00b5ad3f060c25b5dcfd9a4ce152" dependencies = [ + "cfg-if", "once_cell", ] @@ -11949,14 +12022,24 @@ dependencies = [ "threadpool", ] +[[package]] +name = "tikv-jemalloc-ctl" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e37706572f4b151dff7a0146e040804e9c26fe3a3118591112f05cf12a4216c1" +dependencies = [ + "libc", + "paste", + "tikv-jemalloc-sys", +] + [[package]] name = "tikv-jemalloc-sys" -version = "0.5.2+5.3.0-patched" +version = "0.5.3+5.3.0-patched" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec45c14da997d0925c7835883e4d5c181f196fa142f8c19d7643d1e9af2592c3" +checksum = "a678df20055b43e57ef8cddde41cdfda9a3c1a060b67f4c5836dfb1d78543ba8" dependencies = [ "cc", - "fs_extra", "libc", ] @@ -12001,15 +12084,15 @@ dependencies = [ [[package]] name = "tinyvec_macros" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.23.0" +version = "1.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eab6d665857cc6ca78d6e80303a02cea7a7851e85dfbd77cbdc09bd129f1ef46" +checksum = "c8e00990ebabbe4c14c08aca901caed183ecd5c09562a12c824bb53d3c3fd3af" dependencies = [ "autocfg", "bytes", @@ -12060,9 +12143,9 @@ dependencies = [ [[package]] name = "tokio-util" -version = "0.7.4" +version = "0.7.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0bb2e075f03b3d66d8d8785356224ba688d2906a371015e225beeb65ca92c740" +checksum = "5427d89453009325de0d8f342c9490009f76e999cb7672d77e46267448f7e6b2" dependencies = [ "bytes", "futures-core", @@ -12075,13 +12158,65 @@ dependencies = [ [[package]] name = "toml" -version = "0.5.10" +version = "0.5.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1333c76748e868a4d9d1017b5ab53171dfd095f70c712fdb4653a406547f598f" +checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234" dependencies = [ "serde", ] +[[package]] +name = "toml_datetime" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4553f467ac8e3d374bc9a177a26801e5d0f9b211aa1673fb137a403afd1c9cf5" + +[[package]] +name = "toml_edit" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56c59d8dd7d0dcbc6428bf7aa2f0e823e26e43b3c9aca15bbc9475d23e5fa12b" +dependencies = [ + "indexmap", + "nom8", + "toml_datetime", +] + +[[package]] +name = "tower" +version = "0.4.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c" +dependencies = [ + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "tower-http" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f873044bf02dd1e8239e9c1293ea39dad76dc594ec16185d0a1bf31d8dc8d858" +dependencies = [ + "bitflags", + "bytes", + "futures-core", + "futures-util", + "http", + "http-body", + "http-range-header", + "pin-project-lite 0.2.9", + "tower-layer", + "tower-service", +] + +[[package]] +name = "tower-layer" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c20c8dbed6283a09604c3e69b4b7eeb54e298b8a600d4d5ecb5ad39de609f1d0" + [[package]] name = "tower-service" version = "0.3.2" @@ -12094,7 +12229,8 @@ version = "0.1.37" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", + "log", "pin-project-lite 0.2.9", "tracing-attributes", "tracing-core", @@ -12133,8 +12269,8 @@ dependencies = [ [[package]] name = "tracing-gum" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "polkadot-node-jaeger", "polkadot-primitives", @@ -12144,8 +12280,8 @@ dependencies = [ [[package]] name = "tracing-gum-proc-macro" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "expander 0.0.6", "proc-macro-crate", @@ -12227,7 +12363,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4f7f83d1e4a0e4358ac54c5c3681e5d7da5efc5a7a632c90bb6d6669ddd9bc26" dependencies = [ "async-trait", - "cfg-if 1.0.0", + "cfg-if", "data-encoding", "enum-as-inner", "futures-channel", @@ -12240,6 +12376,7 @@ dependencies = [ "smallvec", "thiserror", "tinyvec", + "tokio", "tracing", "url", ] @@ -12250,7 +12387,7 @@ version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aff21aa4dcefb0a1afbfac26deb0adc93888c7d295fb63ab273ef276ba2b7cfe" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "futures-util", "ipconfig", "lazy_static", @@ -12259,35 +12396,40 @@ dependencies = [ "resolv-conf", "smallvec", "thiserror", + "tokio", "tracing", "trust-dns-proto", ] [[package]] name = "try-lock" -version = "0.2.3" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642" +checksum = "3528ecfd12c466c6f163363caf2d02a71161dd5e1cc6ae7b34207ea2d42d81ed" [[package]] name = "try-runtime-cli" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "clap", + "frame-remote-externalities", "frame-try-runtime", + "hex", "log", "parity-scale-codec", - "remote-externalities", "sc-chain-spec", "sc-cli", "sc-executor", "sc-service", "serde", + "sp-api", "sp-core", + "sp-debug-derive", "sp-externalities", "sp-io", "sp-keystore", + "sp-rpc", "sp-runtime", "sp-state-machine", "sp-version", @@ -12308,7 +12450,7 @@ version = "1.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" dependencies = [ - "cfg-if 0.1.10", + "cfg-if", "digest 0.10.6", "rand 0.8.5", "static_assertions", @@ -12338,20 +12480,11 @@ dependencies = [ "static_assertions", ] -[[package]] -name = "unicase" -version = "2.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50f37be617794602aabbeee0be4f259dc1778fabe05e2d67ee8f79326d5cb4f6" -dependencies = [ - "version_check", -] - [[package]] name = "unicode-bidi" -version = "0.3.8" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "099b7128301d285f79ddd55b9a83d5e6b9e97c92e0ea0daebee7263e932de992" +checksum = "d54675592c1dbefd78cbd98db9bacd89886e1ca50692a0692baefffdeb92dd58" [[package]] name = "unicode-ident" @@ -12370,9 +12503,9 @@ dependencies = [ [[package]] name = "unicode-segmentation" -version = "1.10.0" +version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fdbf052a0783de01e944a6ce7a8cb939e295b1e7be835a1112c3b9a7f047a5a" +checksum = "1dd624098567895118886609431a7c3b8f516e41d30e0643f03d94592a147e36" [[package]] name = "unicode-width" @@ -12450,7 +12583,7 @@ checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" [[package]] name = "ver-api" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#a02e291839586bdc0aa05c1b5764ffd881793c15" +source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" dependencies = [ "derive_more", "futures", @@ -12524,19 +12657,19 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.83" +version = "0.2.84" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eaf9f5aceeec8be17c128b2e93e031fb8a4d469bb9c4ae2d7dc1888b26887268" +checksum = "31f8dcbc21f30d9b8f2ea926ecb58f6b91192c17e9d33594b3df58b2007ca53b" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "wasm-bindgen-macro", ] [[package]] name = "wasm-bindgen-backend" -version = "0.2.83" +version = "0.2.84" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c8ffb332579b0557b52d268b91feab8df3615f265d5270fec2a8c95b17c1142" +checksum = "95ce90fd5bcc06af55a641a86428ee4229e44e07033963a2290a8e241607ccb9" dependencies = [ "bumpalo", "log", @@ -12549,11 +12682,11 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.33" +version = "0.4.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23639446165ca5a5de86ae1d8896b737ae80319560fbaa4c2887b7da6e7ebd7d" +checksum = "f219e0d211ba40266969f6dbdd90636da12f75bee4fc9d6c23d1260dadb51454" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "js-sys", "wasm-bindgen", "web-sys", @@ -12561,9 +12694,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.83" +version = "0.2.84" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "052be0f94026e6cbc75cdefc9bae13fd6052cdcaf532fa6c45e7ae33a1e6c810" +checksum = "4c21f77c0bedc37fd5dc21f897894a5ca01e7bb159884559461862ae90c0b4c5" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -12571,9 +12704,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.83" +version = "0.2.84" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07bc0c051dc5f23e307b13285f9d75df86bfdf816c5721e573dec1f9b8aa193c" +checksum = "2aff81306fcac3c7515ad4e177f521b5c9a15f2b08f4e32d823066102f35a5f6" dependencies = [ "proc-macro2", "quote", @@ -12584,28 +12717,58 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.83" +version = "0.2.84" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c38c045535d93ec4f0b4defec448e4291638ee608530863b1e2ba115d4fff7f" +checksum = "0046fef7e28c3804e5e38bfa31ea2a0f73905319b677e57ebe37e49358989b5d" [[package]] -name = "wasm-gc-api" -version = "0.1.11" +name = "wasm-instrument" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0c32691b6c7e6c14e7f8fd55361a9088b507aa49620fcd06c09b3a1082186b9" +checksum = "aa1dafb3e60065305741e83db35c6c2584bb3725b692b5b66148a38d72ace6cd" dependencies = [ - "log", - "parity-wasm 0.32.0", - "rustc-demangle", + "parity-wasm", ] [[package]] -name = "wasm-instrument" -version = "0.3.0" +name = "wasm-opt" +version = "0.110.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa1dafb3e60065305741e83db35c6c2584bb3725b692b5b66148a38d72ace6cd" +checksum = "b68e8037b4daf711393f4be2056246d12d975651b14d581520ad5d1f19219cec" +dependencies = [ + "anyhow", + "libc", + "strum", + "strum_macros", + "tempfile", + "thiserror", + "wasm-opt-cxx-sys", + "wasm-opt-sys", +] + +[[package]] +name = "wasm-opt-cxx-sys" +version = "0.110.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91adbad477e97bba3fbd21dd7bfb594e7ad5ceb9169ab1c93ab9cb0ada636b6f" +dependencies = [ + "anyhow", + "cxx", + "cxx-build", + "wasm-opt-sys", +] + +[[package]] +name = "wasm-opt-sys" +version = "0.110.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec4fa5a322a4e6ac22fd141f498d56afbdbf9df5debeac32380d2dcaa3e06941" dependencies = [ - "parity-wasm 0.45.0", + "anyhow", + "cc", + "cxx", + "cxx-build", + "regex", ] [[package]] @@ -12629,7 +12792,7 @@ version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "06c326c93fbf86419608361a2c925a31754cf109da1b8b55737070b4d6669422" dependencies = [ - "parity-wasm 0.45.0", + "parity-wasm", "wasmi-validation", "wasmi_core", ] @@ -12640,7 +12803,7 @@ version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "91ff416ad1ff0c42e5a926ed5d5fab74c0f098749aa0ad8b2a34b982ce0e867b" dependencies = [ - "parity-wasm 0.45.0", + "parity-wasm", ] [[package]] @@ -12652,7 +12815,7 @@ dependencies = [ "downcast-rs", "libm 0.2.6", "memory_units", - "num-rational 0.4.1", + "num-rational", "num-traits", ] @@ -12673,7 +12836,7 @@ checksum = "4ad5af6ba38311282f2a21670d96e78266e8c8e2f38cbcd52c254df6ccbc7731" dependencies = [ "anyhow", "bincode", - "cfg-if 1.0.0", + "cfg-if", "indexmap", "libc", "log", @@ -12699,7 +12862,7 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "45de63ddfc8b9223d1adc8f7b2ee5f35d1f6d112833934ad7ea66e4f4339e597" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", ] [[package]] @@ -12709,7 +12872,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bcd849399d17d2270141cfe47fa0d91ee52d5f8ea9b98cf7ddde0d53e5f79882" dependencies = [ "anyhow", - "base64", + "base64 0.13.1", "bincode", "directories-next", "file-per-thread-logger", @@ -12771,7 +12934,7 @@ dependencies = [ "addr2line 0.17.0", "anyhow", "bincode", - "cfg-if 1.0.0", + "cfg-if", "cpp_demangle", "gimli 0.26.2", "log", @@ -12806,7 +12969,7 @@ checksum = "ee8f92ad4b61736339c29361da85769ebc200f184361959d1792832e592a1afd" dependencies = [ "anyhow", "cc", - "cfg-if 1.0.0", + "cfg-if", "indexmap", "libc", "log", @@ -12837,9 +13000,9 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.60" +version = "0.3.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bcda906d8be16e728fd5adc5b729afad4e444e106ab28cd1c7256e54fa61510f" +checksum = "e33b99f4b23ba3eec1a53ac264e35a755f00e966e0065077d6027c0f575b0b97" dependencies = [ "js-sys", "wasm-bindgen", @@ -12875,10 +13038,9 @@ dependencies = [ [[package]] name = "westend-runtime" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ - "beefy-primitives", "bitvec", "frame-benchmarking", "frame-election-provider-support", @@ -12942,6 +13104,7 @@ dependencies = [ "smallvec", "sp-api", "sp-authority-discovery", + "sp-beefy", "sp-block-builder", "sp-consensus-babe", "sp-core", @@ -12965,8 +13128,8 @@ dependencies = [ [[package]] name = "westend-runtime-constants" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "frame-support", "polkadot-primitives", @@ -12979,9 +13142,9 @@ dependencies = [ [[package]] name = "which" -version = "4.3.0" +version = "4.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c831fbbee9e129a8cf93e7747a82da9d95ba8e16621cae60ec2cdc849bacb7b" +checksum = "2441c784c52b289a054b7201fc93253e288f094e2f4be9058343127c4226a269" dependencies = [ "either", "libc", @@ -13058,19 +13221,43 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" dependencies = [ "windows_aarch64_gnullvm", - "windows_aarch64_msvc 0.42.0", - "windows_i686_gnu 0.42.0", - "windows_i686_msvc 0.42.0", - "windows_x86_64_gnu 0.42.0", + "windows_aarch64_msvc 0.42.1", + "windows_i686_gnu 0.42.1", + "windows_i686_msvc 0.42.1", + "windows_x86_64_gnu 0.42.1", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc 0.42.1", +] + +[[package]] +name = "windows-sys" +version = "0.45.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-targets" +version = "0.42.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e2522491fbfcd58cc84d47aeb2958948c4b8982e9a2d8a2a35bbaed431390e7" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc 0.42.1", + "windows_i686_gnu 0.42.1", + "windows_i686_msvc 0.42.1", + "windows_x86_64_gnu 0.42.1", "windows_x86_64_gnullvm", - "windows_x86_64_msvc 0.42.0", + "windows_x86_64_msvc 0.42.1", ] [[package]] name = "windows_aarch64_gnullvm" -version = "0.42.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41d2aa71f6f0cbe00ae5167d90ef3cfe66527d6f613ca78ac8024c3ccab9a19e" +checksum = "8c9864e83243fdec7fc9c5444389dcbbfd258f745e7853198f365e3c4968a608" [[package]] name = "windows_aarch64_msvc" @@ -13086,9 +13273,9 @@ checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47" [[package]] name = "windows_aarch64_msvc" -version = "0.42.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd0f252f5a35cac83d6311b2e795981f5ee6e67eb1f9a7f64eb4500fbc4dcdb4" +checksum = "4c8b1b673ffc16c47a9ff48570a9d85e25d265735c503681332589af6253c6c7" [[package]] name = "windows_i686_gnu" @@ -13104,9 +13291,9 @@ checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6" [[package]] name = "windows_i686_gnu" -version = "0.42.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbeae19f6716841636c28d695375df17562ca208b2b7d0dc47635a50ae6c5de7" +checksum = "de3887528ad530ba7bdbb1faa8275ec7a1155a45ffa57c37993960277145d640" [[package]] name = "windows_i686_msvc" @@ -13122,9 +13309,9 @@ checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024" [[package]] name = "windows_i686_msvc" -version = "0.42.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84c12f65daa39dd2babe6e442988fc329d6243fdce47d7d2d155b8d874862246" +checksum = "bf4d1122317eddd6ff351aa852118a2418ad4214e6613a50e0191f7004372605" [[package]] name = "windows_x86_64_gnu" @@ -13140,15 +13327,15 @@ checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1" [[package]] name = "windows_x86_64_gnu" -version = "0.42.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf7b1b21b5362cbc318f686150e5bcea75ecedc74dd157d874d754a2ca44b0ed" +checksum = "c1040f221285e17ebccbc2591ffdc2d44ee1f9186324dd3e84e99ac68d699c45" [[package]] name = "windows_x86_64_gnullvm" -version = "0.42.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09d525d2ba30eeb3297665bd434a54297e4170c7f1a44cad4ef58095b4cd2028" +checksum = "628bfdf232daa22b0d64fdb62b09fcc36bb01f05a3939e20ab73aaf9470d0463" [[package]] name = "windows_x86_64_msvc" @@ -13164,9 +13351,9 @@ checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680" [[package]] name = "windows_x86_64_msvc" -version = "0.42.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5" +checksum = "447660ad36a13288b1db4d4248e857b510e8c3a225c822ba4fb748c0aafecffd" [[package]] name = "winreg" @@ -13199,8 +13386,8 @@ dependencies = [ [[package]] name = "xcm" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "derivative", "impl-trait-for-tuples", @@ -13213,8 +13400,8 @@ dependencies = [ [[package]] name = "xcm-builder" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "frame-support", "frame-system", @@ -13258,8 +13445,8 @@ dependencies = [ [[package]] name = "xcm-executor" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "frame-benchmarking", "frame-support", @@ -13276,8 +13463,8 @@ dependencies = [ [[package]] name = "xcm-procedural" -version = "0.9.31" -source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#b579b1d2e269be188019edc015cc3153826a9005" +version = "0.9.36" +source = "git+https://github.com/mangata-finance//polkadot?branch=mangata-dev#04f7ef19b393a34ba2311109648c88e8ce88c450" dependencies = [ "Inflector", "proc-macro2", @@ -13371,10 +13558,11 @@ dependencies = [ [[package]] name = "zstd-sys" -version = "2.0.4+zstd.1.5.2" +version = "2.0.7+zstd.1.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fa202f2ef00074143e219d15b62ffc317d17cc33909feac471c044087cad7b0" +checksum = "94509c3ba2fe55294d752b79842c530ccfab760192521df74a081a78d2b3c7f5" dependencies = [ "cc", "libc", -] + "pkg-config", +] \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index b73f422bad..71f95acfd0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,6 +20,7 @@ members = [ pallet-xyk = { path = "./pallets/xyk" } pallet-issuance = {path = "./pallets/issuance/"} pallet-multipurpose-liquidity = { path = './pallets/multipurpose-liquidity'} +pallet-maintenance = { path = './pallets/maintenance'} mp-multipurpose-liquidity = { path = './primitives/multipurpose-liquidity'} mp-traits = { path = './primitives/traits'} @@ -210,6 +211,9 @@ polkadot-erasure-coding = { git = "https://github.com/mangata-finance//polkadot" # patch generated by ./scripts/dev-0.9.29_manifest.sh [patch."https://github.com/mangata-finance/substrate"] + mmr-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } + pallet-nis = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } + mmr-gadget = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-session-benchmarking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-offences-benchmarking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-nomination-pools-benchmarking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } @@ -225,7 +229,6 @@ polkadot-erasure-coding = { git = "https://github.com/mangata-finance//polkadot" pallet-preimage = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-nomination-pools-runtime-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-nomination-pools = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-gilt = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-fast-unstake = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-conviction-voting = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-child-bounties = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } @@ -265,7 +268,6 @@ polkadot-erasure-coding = { git = "https://github.com/mangata-finance//polkadot" pallet-grandpa = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } frame-election-provider-support = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-collective = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-mmr-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-mmr = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } #pallet-mmr-primitives = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } frame-support = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } @@ -332,7 +334,6 @@ polkadot-erasure-coding = { git = "https://github.com/mangata-finance//polkadot" try-runtime-cli = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } frame-benchmarking-cli = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } substrate-frame-rpc-system = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - remote-externalities = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } substrate-build-script-utils = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } substrate-prometheus-endpoint = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } substrate-test-client = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } @@ -342,7 +343,7 @@ polkadot-erasure-coding = { git = "https://github.com/mangata-finance//polkadot" sp-storage = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sp-std = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sp-finality-grandpa = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - beefy-primitives = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } + beefy-primitives = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev", package = "sp-beefy" } sp-version-proc-macro = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sp-version = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sp-transaction-pool = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } @@ -358,7 +359,6 @@ polkadot-erasure-coding = { git = "https://github.com/mangata-finance//polkadot" sp-core = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sp-keyring = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sp-authority-discovery = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-tasks = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sp-runtime-interface-proc-macro = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sp-runtime-interface = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sp-arithmetic = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } @@ -391,9 +391,13 @@ polkadot-erasure-coding = { git = "https://github.com/mangata-finance//polkadot" pallet-vesting-mangata-rpc-runtime-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-vesting-mangata-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } mangata-types = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } + pallet-utility-mangata = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } # patch generated by ./scripts/dev-0.9.29_manifest.sh [patch."https://github.com/paritytech/substrate"] + mmr-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } + pallet-nis = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } + mmr-gadget = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-session-benchmarking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-offences-benchmarking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-nomination-pools-benchmarking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } @@ -409,7 +413,6 @@ polkadot-erasure-coding = { git = "https://github.com/mangata-finance//polkadot" pallet-preimage = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-nomination-pools-runtime-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-nomination-pools = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-gilt = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-fast-unstake = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-conviction-voting = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-child-bounties = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } @@ -443,14 +446,12 @@ polkadot-erasure-coding = { git = "https://github.com/mangata-finance//polkadot" frame-executive = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-im-online = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-treasury = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-utility = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-sudo = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-offences = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-democracy = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-grandpa = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } frame-election-provider-support = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-collective = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-mmr-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-mmr = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } #pallet-mmr-primitives = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } frame-support = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } @@ -467,6 +468,7 @@ polkadot-erasure-coding = { git = "https://github.com/mangata-finance//polkadot" pallet-proxy = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-vesting = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-vesting-mangata = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } + pallet-utility = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sc-informant = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sc-finality-grandpa-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sc-finality-grandpa = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } @@ -518,7 +520,6 @@ polkadot-erasure-coding = { git = "https://github.com/mangata-finance//polkadot" try-runtime-cli = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } frame-benchmarking-cli = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } substrate-frame-rpc-system = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - remote-externalities = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } substrate-build-script-utils = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } substrate-prometheus-endpoint = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } substrate-test-client = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } @@ -528,7 +529,7 @@ polkadot-erasure-coding = { git = "https://github.com/mangata-finance//polkadot" sp-storage = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sp-std = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sp-finality-grandpa = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - beefy-primitives = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } + beefy-primitives = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev", package = "sp-beefy" } sp-version-proc-macro = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sp-version = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sp-transaction-pool = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } @@ -544,7 +545,6 @@ polkadot-erasure-coding = { git = "https://github.com/mangata-finance//polkadot" sp-core = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sp-keyring = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sp-authority-discovery = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-tasks = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sp-runtime-interface-proc-macro = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sp-runtime-interface = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sp-arithmetic = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } @@ -576,9 +576,13 @@ polkadot-erasure-coding = { git = "https://github.com/mangata-finance//polkadot" sp-mmr-primitives = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-vesting-mangata-rpc-runtime-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-vesting-mangata-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } + pallet-utility-mangata = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } # patch generated by ./scripts/dev-0.9.29_manifest.sh [patch."https://github.com/PureStake/substrate"] + mmr-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } + pallet-nis = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } + mmr-gadget = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-session-benchmarking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-offences-benchmarking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-nomination-pools-benchmarking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } @@ -594,7 +598,6 @@ polkadot-erasure-coding = { git = "https://github.com/mangata-finance//polkadot" pallet-preimage = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-nomination-pools-runtime-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-nomination-pools = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-gilt = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-fast-unstake = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-conviction-voting = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-child-bounties = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } @@ -627,14 +630,13 @@ polkadot-erasure-coding = { git = "https://github.com/mangata-finance//polkadot" frame-executive = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-im-online = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-treasury = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-utility = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-sudo = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-offences = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-democracy = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-grandpa = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } + pallet-utility = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } frame-election-provider-support = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-collective = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-mmr-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-mmr = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } #pallet-mmr-primitives = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } frame-support = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } @@ -702,7 +704,6 @@ polkadot-erasure-coding = { git = "https://github.com/mangata-finance//polkadot" try-runtime-cli = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } frame-benchmarking-cli = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } substrate-frame-rpc-system = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - remote-externalities = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } substrate-build-script-utils = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } substrate-prometheus-endpoint = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } substrate-test-client = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } @@ -712,7 +713,7 @@ polkadot-erasure-coding = { git = "https://github.com/mangata-finance//polkadot" sp-storage = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sp-std = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sp-finality-grandpa = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - beefy-primitives = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } + beefy-primitives = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev", package = "sp-beefy" } sp-version-proc-macro = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sp-version = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sp-transaction-pool = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } @@ -728,7 +729,6 @@ polkadot-erasure-coding = { git = "https://github.com/mangata-finance//polkadot" sp-core = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sp-keyring = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sp-authority-discovery = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-tasks = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sp-runtime-interface-proc-macro = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sp-runtime-interface = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } sp-arithmetic = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } @@ -760,6 +760,8 @@ polkadot-erasure-coding = { git = "https://github.com/mangata-finance//polkadot" sp-mmr-primitives = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-vesting-mangata-rpc-runtime-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } pallet-vesting-mangata-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } + pallet-utility-mangata = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } + # # patch generated by ./scripts/dev_manifest.sh # [patch."https://github.com/mangata-finance/substrate"] @@ -830,6 +832,7 @@ polkadot-erasure-coding = { git = "https://github.com/mangata-finance//polkadot" # pallet-mmr-rpc = { path = "../substrate/frame/merkle-mountain-range/rpc" } # pallet-mmr = { path = "../substrate/frame/merkle-mountain-range" } # pallet-utility = { path = "../substrate/frame/utility" } +# pallet-utility-mangata = { path = "../substrate/frame/utility-mangata" } # pallet-session = { path = "../substrate/frame/session" } # pallet-ranked-collective = { path = "../substrate/frame/ranked-collective" } # pallet-collective-mangata = { path = "../substrate/frame/collective-mangata" } @@ -1015,6 +1018,7 @@ polkadot-erasure-coding = { git = "https://github.com/mangata-finance//polkadot" # pallet-mmr-rpc = { path = "../substrate/frame/merkle-mountain-range/rpc" } # pallet-mmr = { path = "../substrate/frame/merkle-mountain-range" } # pallet-utility = { path = "../substrate/frame/utility" } +# pallet-utility-mangata = { path = "../substrate/frame/utility-mangata" } # pallet-session = { path = "../substrate/frame/session" } # pallet-ranked-collective = { path = "../substrate/frame/ranked-collective" } # pallet-collective-mangata = { path = "../substrate/frame/collective-mangata" } @@ -1200,6 +1204,7 @@ polkadot-erasure-coding = { git = "https://github.com/mangata-finance//polkadot" # pallet-mmr-rpc = { path = "../substrate/frame/merkle-mountain-range/rpc" } # pallet-mmr = { path = "../substrate/frame/merkle-mountain-range" } # pallet-utility = { path = "../substrate/frame/utility" } +# pallet-utility-mangata = { path = "../substrate/frame/utility-mangata" } # pallet-session = { path = "../substrate/frame/session" } # pallet-ranked-collective = { path = "../substrate/frame/ranked-collective" } # pallet-collective-mangata = { path = "../substrate/frame/collective-mangata" } diff --git a/devops/helmfiles/config/default.yaml b/devops/helmfiles/config/default.yaml index eb8d49dab7..47d4b51354 100644 --- a/devops/helmfiles/config/default.yaml +++ b/devops/helmfiles/config/default.yaml @@ -22,4 +22,4 @@ resources: memory: 1Gi limits: cpu: 1000m - memory: 2Gi \ No newline at end of file + memory: 2Gi diff --git a/devops/helmfiles/config/fungible.yaml b/devops/helmfiles/config/fungible.yaml index 3e7323aa16..f09a166649 100644 --- a/devops/helmfiles/config/fungible.yaml +++ b/devops/helmfiles/config/fungible.yaml @@ -1,3 +1,18 @@ enableLocalRelaychain: true enableParachainRegisterSidecar: true -relaychainBootnodeAddr: /dns/relaychain-alice/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp \ No newline at end of file +relaychainBootnodeAddr: /dns/relaychain-alice/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp +nodeChain: mangata-rococo-local-testnet + +node01: + accountKeySeed: '0xe5be9a5092b81bca64be81d212e7f2f9eba183bb7a90954f7b76361f6edb5c0a' + +node02: + accountKeySeed: '0x398f0c28f98885e046333d4a41c19cee4c37368a9832c6502f6cfd182e2aef89' + +resources: + requests: + cpu: '8.0' + memory: 16Gi + limits: + cpu: '8.0' + memory: 16Gi diff --git a/devops/helmfiles/helmfile.yaml b/devops/helmfiles/helmfile.yaml index 9a6b803222..9fd87bd7dc 100644 --- a/devops/helmfiles/helmfile.yaml +++ b/devops/helmfiles/helmfile.yaml @@ -1,6 +1,8 @@ repositories: - - name: mangata - url: git+https://github.com/mangata-finance/helm-charts@charts?ref=main + - name: mangata-node + url: git+https://github.com/mangata-finance/helm-charts@charts?ref=node-v0.2.0 + - name: mangata-relaychain + url: git+https://github.com/mangata-finance/helm-charts@charts?ref=relaychain-testnet-v0.2.0 environments: dev: @@ -21,14 +23,14 @@ helmDefaults: templates: nodeDefault: &nodeDefault - chart: mangata/node + chart: mangata-node/node namespace: '{{ requiredEnv "ENVIRONMENT" }}' releases: - name: relaychain installed: {{ .Values.enableLocalRelaychain | toYaml }} namespace: '{{ requiredEnv "ENVIRONMENT" }}' - chart: mangata/relaychain-testnet + chart: mangata-relaychain/relaychain-testnet values: - env: {{ requiredEnv "ENVIRONMENT" | quote }} storageClass: regional-ssd diff --git a/devops/helmfiles/values.yaml.gotmpl b/devops/helmfiles/values.yaml.gotmpl index ac61e0812b..0c4e9a26eb 100644 --- a/devops/helmfiles/values.yaml.gotmpl +++ b/devops/helmfiles/values.yaml.gotmpl @@ -3,6 +3,7 @@ image: tag: {{ requiredEnv "IMAGE_TAG" | quote }} remoteCluster: true customChainspecUrl: {{ .Values | get "nodeCustomChainspecUrl" "" }} +chain: {{ .Values | get "nodeChain" "public-testnet" }} storageClass: {{ .Values.storageClass }} storageSize: {{ .Values.storageSize }} parachainRegisterSidecar: @@ -12,4 +13,4 @@ relaychain: customChainspecUrl: {{ .Values | get "relaychainCustomChainspecUrl" "" }} bootnodeAddr: {{ .Values | get "relaychainBootnodeAddr" "" }} kubernetesVolumeSnapshot: {{ .Values | get "relaychainKubernetesVolumeSnapshot" "" }} -resources: {{ toYaml .Values.resources | nindent 10 }} \ No newline at end of file +resources: {{ toYaml .Values.resources | nindent 10 }} diff --git a/devops/zombienet/oak-mangata-rococo.toml b/devops/zombienet/oak-mangata-rococo.toml new file mode 100644 index 0000000000..9a633195cb --- /dev/null +++ b/devops/zombienet/oak-mangata-rococo.toml @@ -0,0 +1,56 @@ +[settings] +provider = "native" +timeout = 1000 + +[relaychain] +default_command = "../parity/polkadot/target/release/polkadot" +chain = "rococo-local" + + [[relaychain.nodes]] + name = "alice" + ws_port = 9944 + + [[relaychain.nodes]] + name = "bob" + +[[parachains]] +id = 2114 +cumulus_based = true +chain = "turing-dev" + + [[parachains.collators]] + name = "alice" + command = "../OAK-blockchain/target/release/oak-collator" + ws_port = 9947 + rpc_port = 8855 + + [[parachains.collators]] + name = "bob" + command = "../OAK-blockchain/target/release/oak-collator" + +[[parachains]] +id = 2110 +cumulus_based = true +chain = "mangata-rococo-local-testnet" + + [[parachains.collators]] + name = "alice" + command = "./target/release/mangata-node" + ws_port = 9946 + rpc_port = 8866 + + [[parachains.collators]] + name = "bob" + command = "./target/release/mangata-node" + +[[hrmp_channels]] +sender = 2114 +recipient = 2110 +max_capacity = 8 +max_message_size = 512 + +[[hrmp_channels]] +sender = 2110 +recipient = 2114 +max_capacity = 8 +max_message_size = 512 diff --git a/devops/zombienet/statemine_managata_rococo_local.toml b/devops/zombienet/statemine_managata_rococo_local.toml new file mode 100644 index 0000000000..95fb363b63 --- /dev/null +++ b/devops/zombienet/statemine_managata_rococo_local.toml @@ -0,0 +1,63 @@ +[settings] +provider = "native" +timeout = 1000 + +[relaychain] +default_command = "../parity/polkadot/target/release/polkadot" +default_args = [ "-lparachain=debug" ] +chain = "rococo-local" + + [[relaychain.nodes]] + name = "alice" + validator = true + ws_port = 9944 + + [[relaychain.nodes]] + name = "bob" + validator = true + +[[parachains]] +id = 1000 +chain = "statemine-local" +cumulus_based = true + + # run alice as parachain collator + [[parachains.collators]] + name = "alice" + command = "../parity/cumulus/target/release/polkadot-parachain" + args = ["-lxcm=trace"] + ws_port = 9948 + + # run bob as parachain collator + # [[parachains.collators]] + # name = "bob" + # validator = true + # command = "../parity/cumulus/target/release/polkadot-parachain" + # args = ["-lparachain=debug"] + +[[parachains]] +id = 2110 +chain = "mangata-rococo-local-testnet" +cumulus_based = true + + [[parachains.collators]] + name = "alice" + command = "./target/release/mangata-node" + args = ["-lxcm=trace --force-authoring"] + ws_port = 9946 + + # [[parachains.collators]] + # name = "bob" + # command = "./target/release/mangata-node" + +[[hrmp_channels]] +sender = 1000 +recipient = 2110 +max_capacity = 8 +max_message_size = 512 + +[[hrmp_channels]] +sender = 2110 +recipient = 1000 +max_capacity = 8 +max_message_size = 512 diff --git a/devops/zombienet/westend.toml b/devops/zombienet/westend.toml new file mode 100644 index 0000000000..85cc1a26b7 --- /dev/null +++ b/devops/zombienet/westend.toml @@ -0,0 +1,29 @@ +[settings] +provider = "native" +timeout = 1000 + +[relaychain] +default_command = "../parity/polkadot/target/release/polkadot" +chain = "westend-local" + + [[relaychain.nodes]] + name = "alice" + ws_port = 9944 + + [[relaychain.nodes]] + name = "bob" + +[[parachains]] +id = 2110 +cumulus_based = true +chain = "mangata-rococo-local-testnet" + + [[parachains.collators]] + name = "alice" + command = "./target/release/mangata-node" + ws_port = 9946 + rpc_port = 8866 + + # [[parachains.collators]] + # name = "bob" + # command = "./target/release/mangata-node" \ No newline at end of file diff --git a/launch/kusama-fast-oak.yml b/launch/kusama-fast-oak.yml index 87d5022687..f214562241 100644 --- a/launch/kusama-fast-oak.yml +++ b/launch/kusama-fast-oak.yml @@ -55,9 +55,9 @@ parachains: - --alice - flags: - --bob - - image: oaknetwork/neumann:1.7.0 + - image: oaknetwork/turing-dev:latest chain: - base: dev + base: turing-dev collators: - alice - bob diff --git a/launch/package-lock.json b/launch/package-lock.json deleted file mode 100644 index 85c1ccf4f9..0000000000 --- a/launch/package-lock.json +++ /dev/null @@ -1,2454 +0,0 @@ -{ - "name": "mangata-launch", - "version": "1.0.1", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "name": "mangata-launch", - "version": "1.0.1", - "license": "GPL-3.0", - "dependencies": { - "parachain-launch": "mangata-finance/parachain-launch#mangata" - } - }, - "node_modules/@babel/runtime": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.18.6.tgz", - "integrity": "sha512-t9wi7/AW6XtKahAe20Yw0/mMljKq0B1r2fPdvaAdV/KPDZewFXdaaa6K7lxmZBZ8FBNpCiAT6iHPmd6QO9bKfQ==", - "license": "MIT", - "dependencies": { - "regenerator-runtime": "^0.13.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@noble/hashes": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.0.0.tgz", - "integrity": "sha512-DZVbtY62kc3kkBtMHqwCOfXrT/hnoORy5BJ4+HU1IR59X0KWAOqsfzQPcUl/lQLlG7qXbe/fZ3r/emxtAl+sqg==", - "license": "MIT" - }, - "node_modules/@noble/secp256k1": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.5.5.tgz", - "integrity": "sha512-sZ1W6gQzYnu45wPrWx8D3kwI2/U29VYTx9OjbDAd7jwRItJ0cSTMPRL/C8AWZFn9kWFLQGqEXVEE86w4Z8LpIQ==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "license": "MIT" - }, - "node_modules/@polkadot/api": { - "version": "7.15.1", - "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-7.15.1.tgz", - "integrity": "sha512-z0z6+k8+R9ixRMWzfsYrNDnqSV5zHKmyhTCL0I7+1I081V18MJTCFUKubrh0t1gD0/FCt3U9Ibvr4IbtukYLrQ==", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.17.8", - "@polkadot/api-augment": "7.15.1", - "@polkadot/api-base": "7.15.1", - "@polkadot/api-derive": "7.15.1", - "@polkadot/keyring": "^8.7.1", - "@polkadot/rpc-augment": "7.15.1", - "@polkadot/rpc-core": "7.15.1", - "@polkadot/rpc-provider": "7.15.1", - "@polkadot/types": "7.15.1", - "@polkadot/types-augment": "7.15.1", - "@polkadot/types-codec": "7.15.1", - "@polkadot/types-create": "7.15.1", - "@polkadot/types-known": "7.15.1", - "@polkadot/util": "^8.7.1", - "@polkadot/util-crypto": "^8.7.1", - "eventemitter3": "^4.0.7", - "rxjs": "^7.5.5" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@polkadot/api-augment": { - "version": "7.15.1", - "resolved": "https://registry.npmjs.org/@polkadot/api-augment/-/api-augment-7.15.1.tgz", - "integrity": "sha512-7csQLS6zuYuGq7W1EkTBz1ZmxyRvx/Qpz7E7zPSwxmY8Whb7Yn2effU9XF0eCcRpyfSW8LodF8wMmLxGYs1OaQ==", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.17.8", - "@polkadot/api-base": "7.15.1", - "@polkadot/rpc-augment": "7.15.1", - "@polkadot/types": "7.15.1", - "@polkadot/types-augment": "7.15.1", - "@polkadot/types-codec": "7.15.1", - "@polkadot/util": "^8.7.1" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@polkadot/api-base": { - "version": "7.15.1", - "resolved": "https://registry.npmjs.org/@polkadot/api-base/-/api-base-7.15.1.tgz", - "integrity": "sha512-UlhLdljJPDwGpm5FxOjvJNFTxXMRFaMuVNx6EklbuetbBEJ/Amihhtj0EJRodxQwtZ4ZtPKYKt+g+Dn7OJJh4g==", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.17.8", - "@polkadot/rpc-core": "7.15.1", - "@polkadot/types": "7.15.1", - "@polkadot/util": "^8.7.1", - "rxjs": "^7.5.5" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@polkadot/api-derive": { - "version": "7.15.1", - "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-7.15.1.tgz", - "integrity": "sha512-CsOQppksQBaa34L1fWRzmfQQpoEBwfH0yTTQxgj3h7rFYGVPxEKGeFjo1+IgI2vXXvOO73Z8E4H/MnbxvKrs1Q==", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.17.8", - "@polkadot/api": "7.15.1", - "@polkadot/api-augment": "7.15.1", - "@polkadot/api-base": "7.15.1", - "@polkadot/rpc-core": "7.15.1", - "@polkadot/types": "7.15.1", - "@polkadot/types-codec": "7.15.1", - "@polkadot/util": "^8.7.1", - "@polkadot/util-crypto": "^8.7.1", - "rxjs": "^7.5.5" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@polkadot/keyring": { - "version": "8.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/keyring/-/keyring-8.7.1.tgz", - "integrity": "sha512-t6ZgQVC+nQT7XwbWtEhkDpiAzxKVJw8Xd/gWdww6xIrawHu7jo3SGB4QNdPgkf8TvDHYAAJiupzVQYAlOIq3GA==", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.17.8", - "@polkadot/util": "8.7.1", - "@polkadot/util-crypto": "8.7.1" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "@polkadot/util": "8.7.1", - "@polkadot/util-crypto": "8.7.1" - } - }, - "node_modules/@polkadot/networks": { - "version": "8.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/networks/-/networks-8.7.1.tgz", - "integrity": "sha512-8xAmhDW0ry5EKcEjp6VTuwoTm0DdDo/zHsmx88P6sVL87gupuFsL+B6TrsYLl8GcaqxujwrOlKB+CKTUg7qFKg==", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.17.8", - "@polkadot/util": "8.7.1", - "@substrate/ss58-registry": "^1.17.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@polkadot/rpc-augment": { - "version": "7.15.1", - "resolved": "https://registry.npmjs.org/@polkadot/rpc-augment/-/rpc-augment-7.15.1.tgz", - "integrity": "sha512-sK0+mphN7nGz/eNPsshVi0qd0+N0Pqxuebwc1YkUGP0f9EkDxzSGp6UjGcSwWVaAtk9WZZ1MpK1Jwb/2GrKV7Q==", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.17.8", - "@polkadot/rpc-core": "7.15.1", - "@polkadot/types": "7.15.1", - "@polkadot/types-codec": "7.15.1", - "@polkadot/util": "^8.7.1" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@polkadot/rpc-core": { - "version": "7.15.1", - "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-7.15.1.tgz", - "integrity": "sha512-4Sb0e0PWmarCOizzxQAE1NQSr5z0n+hdkrq3+aPohGu9Rh4PodG+OWeIBy7Ov/3GgdhNQyBLG+RiVtliXecM3g==", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.17.8", - "@polkadot/rpc-augment": "7.15.1", - "@polkadot/rpc-provider": "7.15.1", - "@polkadot/types": "7.15.1", - "@polkadot/util": "^8.7.1", - "rxjs": "^7.5.5" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@polkadot/rpc-provider": { - "version": "7.15.1", - "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-7.15.1.tgz", - "integrity": "sha512-n0RWfSaD/r90JXeJkKry1aGZwJeBUUiMpXUQ9Uvp6DYBbYEDs0fKtWLpdT3PdFrMbe5y3kwQmNLxwe6iF4+mzg==", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.17.8", - "@polkadot/keyring": "^8.7.1", - "@polkadot/types": "7.15.1", - "@polkadot/types-support": "7.15.1", - "@polkadot/util": "^8.7.1", - "@polkadot/util-crypto": "^8.7.1", - "@polkadot/x-fetch": "^8.7.1", - "@polkadot/x-global": "^8.7.1", - "@polkadot/x-ws": "^8.7.1", - "@substrate/connect": "0.7.0-alpha.0", - "eventemitter3": "^4.0.7", - "mock-socket": "^9.1.2", - "nock": "^13.2.4" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@polkadot/types": { - "version": "7.15.1", - "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-7.15.1.tgz", - "integrity": "sha512-KawZVS+eLR1D6O7c/P5cSUwr6biM9Qd2KwKtJIO8l1Mrxp7r+y2tQnXSSXVAd6XPdb3wVMhnIID+NW3W99TAnQ==", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.17.8", - "@polkadot/keyring": "^8.7.1", - "@polkadot/types-augment": "7.15.1", - "@polkadot/types-codec": "7.15.1", - "@polkadot/types-create": "7.15.1", - "@polkadot/util": "^8.7.1", - "@polkadot/util-crypto": "^8.7.1", - "rxjs": "^7.5.5" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@polkadot/types-augment": { - "version": "7.15.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-augment/-/types-augment-7.15.1.tgz", - "integrity": "sha512-aqm7xT/66TCna0I2utpIekoquKo0K5pnkA/7WDzZ6gyD8he2h0IXfe8xWjVmuyhjxrT/C/7X1aUF2Z0xlOCwzQ==", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.17.8", - "@polkadot/types": "7.15.1", - "@polkadot/types-codec": "7.15.1", - "@polkadot/util": "^8.7.1" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@polkadot/types-codec": { - "version": "7.15.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-codec/-/types-codec-7.15.1.tgz", - "integrity": "sha512-nI11dT7FGaeDd/fKPD8iJRFGhosOJoyjhZ0gLFFDlKCaD3AcGBRTTY8HFJpP/5QXXhZzfZsD93fVKrosnegU0Q==", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.17.8", - "@polkadot/util": "^8.7.1" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@polkadot/types-create": { - "version": "7.15.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-create/-/types-create-7.15.1.tgz", - "integrity": "sha512-+HiaHn7XOwP0kv/rVdORlVkNuMoxuvt+jd67A/CeEreJiXqRLu+S61Mdk7wi6719PTaOal1hTDFfyGrtUd8FSQ==", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.17.8", - "@polkadot/types-codec": "7.15.1", - "@polkadot/util": "^8.7.1" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@polkadot/types-known": { - "version": "7.15.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-7.15.1.tgz", - "integrity": "sha512-LMcNP0CxT84DqAKV62/qDeeIVIJCR5yzE9b+9AsYhyfhE4apwxjrThqZA7K0CF56bOdQJSexAerYB/jwk2IijA==", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.17.8", - "@polkadot/networks": "^8.7.1", - "@polkadot/types": "7.15.1", - "@polkadot/types-codec": "7.15.1", - "@polkadot/types-create": "7.15.1", - "@polkadot/util": "^8.7.1" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@polkadot/types-support": { - "version": "7.15.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-support/-/types-support-7.15.1.tgz", - "integrity": "sha512-FIK251ffVo+NaUXLlaJeB5OvT7idDd3uxaoBM6IwsS87rzt2CcWMyCbu0uX89AHZUhSviVx7xaBxfkGEqMePWA==", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.17.8", - "@polkadot/util": "^8.7.1" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@polkadot/util": { - "version": "8.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-8.7.1.tgz", - "integrity": "sha512-XjY1bTo7V6OvOCe4yn8H2vifeuBciCy0gq0k5P1tlGUQLI/Yt0hvDmxcA0FEPtqg8CL+rYRG7WXGPVNjkrNvyQ==", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.17.8", - "@polkadot/x-bigint": "8.7.1", - "@polkadot/x-global": "8.7.1", - "@polkadot/x-textdecoder": "8.7.1", - "@polkadot/x-textencoder": "8.7.1", - "@types/bn.js": "^5.1.0", - "bn.js": "^5.2.0", - "ip-regex": "^4.3.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@polkadot/util-crypto": { - "version": "8.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/util-crypto/-/util-crypto-8.7.1.tgz", - "integrity": "sha512-TaSuJ2aNrB5sYK7YXszkEv24nYJKRFqjF2OrggoMg6uYxUAECvTkldFnhtgeizMweRMxJIBu6bMHlSIutbWgjw==", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.17.8", - "@noble/hashes": "1.0.0", - "@noble/secp256k1": "1.5.5", - "@polkadot/networks": "8.7.1", - "@polkadot/util": "8.7.1", - "@polkadot/wasm-crypto": "^5.1.1", - "@polkadot/x-bigint": "8.7.1", - "@polkadot/x-randomvalues": "8.7.1", - "@scure/base": "1.0.0", - "ed2curve": "^0.3.0", - "tweetnacl": "^1.0.3" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "@polkadot/util": "8.7.1" - } - }, - "node_modules/@polkadot/wasm-crypto": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto/-/wasm-crypto-5.1.1.tgz", - "integrity": "sha512-JCcAVfH8DhYuEyd4oX1ouByxhou0TvpErKn8kHjtzt7+tRoFi0nzWlmK4z49vszsV3JJgXxV81i10C0BYlwTcQ==", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.17.8", - "@polkadot/wasm-crypto-asmjs": "^5.1.1", - "@polkadot/wasm-crypto-wasm": "^5.1.1" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "@polkadot/util": "*", - "@polkadot/x-randomvalues": "*" - } - }, - "node_modules/@polkadot/wasm-crypto-asmjs": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto-asmjs/-/wasm-crypto-asmjs-5.1.1.tgz", - "integrity": "sha512-1WBwc2G3pZMKW1T01uXzKE30Sg22MXmF3RbbZiWWk3H2d/Er4jZQRpjumxO5YGWan+xOb7HQQdwnrUnrPgbDhg==", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.17.8" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "@polkadot/util": "*" - } - }, - "node_modules/@polkadot/wasm-crypto-wasm": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto-wasm/-/wasm-crypto-wasm-5.1.1.tgz", - "integrity": "sha512-F9PZ30J2S8vUNl2oY7Myow5Xsx5z5uNVpnNlJwlmY8IXBvyucvyQ4HSdhJsrbs4W1BfFc0mHghxgp0FbBCnf/Q==", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.17.8" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "@polkadot/util": "*" - } - }, - "node_modules/@polkadot/x-bigint": { - "version": "8.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-bigint/-/x-bigint-8.7.1.tgz", - "integrity": "sha512-ClkhgdB/KqcAKk3zA6Qw8wBL6Wz67pYTPkrAtImpvoPJmR+l4RARauv+MH34JXMUNlNb3aUwqN6lq2Z1zN+mJg==", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.17.8", - "@polkadot/x-global": "8.7.1" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@polkadot/x-fetch": { - "version": "8.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-fetch/-/x-fetch-8.7.1.tgz", - "integrity": "sha512-ygNparcalYFGbspXtdtZOHvNXZBkNgmNO+um9C0JYq74K5OY9/be93uyfJKJ8JcRJtOqBfVDsJpbiRkuJ1PRfg==", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.17.8", - "@polkadot/x-global": "8.7.1", - "@types/node-fetch": "^2.6.1", - "node-fetch": "^2.6.7" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@polkadot/x-global": { - "version": "8.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-global/-/x-global-8.7.1.tgz", - "integrity": "sha512-WOgUor16IihgNVdiTVGAWksYLUAlqjmODmIK1cuWrLOZtV1VBomWcb3obkO9sh5P6iWziAvCB/i+L0vnTN9ZCA==", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.17.8" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@polkadot/x-randomvalues": { - "version": "8.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-randomvalues/-/x-randomvalues-8.7.1.tgz", - "integrity": "sha512-njt17MlfN6yNyNEti7fL12lr5qM6A1aSGkWKVuqzc7XwSBesifJuW4km5u6r2gwhXjH2eHDv9SoQ7WXu8vrrkg==", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.17.8", - "@polkadot/x-global": "8.7.1" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@polkadot/x-textdecoder": { - "version": "8.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-textdecoder/-/x-textdecoder-8.7.1.tgz", - "integrity": "sha512-ia0Ie2zi4VdQdNVD2GE2FZzBMfX//hEL4w546RMJfZM2LqDS674LofHmcyrsv5zscLnnRyCxZC1+J2dt+6MDIA==", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.17.8", - "@polkadot/x-global": "8.7.1" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@polkadot/x-textencoder": { - "version": "8.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-textencoder/-/x-textencoder-8.7.1.tgz", - "integrity": "sha512-XDO0A27Xy+eJCKSxENroB8Dcnl+UclGG4ZBei+P/BqZ9rsjskUyd2Vsl6peMXAcsxwOE7g0uTvujoGM8jpKOXw==", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.17.8", - "@polkadot/x-global": "8.7.1" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@polkadot/x-ws": { - "version": "8.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-ws/-/x-ws-8.7.1.tgz", - "integrity": "sha512-Mt0tcNzGXyKnN3DQ06alkv+JLtTfXWu6zSypFrrKHSQe3u79xMQ1nSicmpT3gWLhIa8YF+8CYJXMrqaXgCnDhw==", - "license": "Apache-2.0", - "dependencies": { - "@babel/runtime": "^7.17.8", - "@polkadot/x-global": "8.7.1", - "@types/websocket": "^1.0.5", - "websocket": "^1.0.34" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@scure/base": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.0.0.tgz", - "integrity": "sha512-gIVaYhUsy+9s58m/ETjSJVKHhKTBMmcRb9cEV5/5dwvfDlfORjKrFsDeDHWRrm6RjcPvCLZFwGJjAjLj1gg4HA==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "license": "MIT" - }, - "node_modules/@substrate/connect": { - "version": "0.7.0-alpha.0", - "resolved": "https://registry.npmjs.org/@substrate/connect/-/connect-0.7.0-alpha.0.tgz", - "integrity": "sha512-fvO7w++M8R95R/pGJFW9+cWOt8OYnnTfgswxtlPqSgzqX4tta8xcNQ51crC72FcL5agwSGkA1gc2/+eyTj7O8A==", - "license": "GPL-3.0-only", - "dependencies": { - "@substrate/connect-extension-protocol": "^1.0.0", - "@substrate/smoldot-light": "0.6.8", - "eventemitter3": "^4.0.7" - } - }, - "node_modules/@substrate/connect-extension-protocol": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@substrate/connect-extension-protocol/-/connect-extension-protocol-1.0.0.tgz", - "integrity": "sha512-nFVuKdp71hMd/MGlllAOh+a2hAqt8m6J2G0aSsS/RcALZexxF9jodbFc62ni8RDtJboeOfXAHhenYOANvJKPIg==", - "license": "GPL-3.0-only" - }, - "node_modules/@substrate/smoldot-light": { - "version": "0.6.8", - "resolved": "https://registry.npmjs.org/@substrate/smoldot-light/-/smoldot-light-0.6.8.tgz", - "integrity": "sha512-9lVwbG6wrtss0sd6013BJGe4WN4taujsGG49pwyt1Lj36USeL2Sb164TTUxmZF/g2NQEqDPwPROBdekQ2gFmgg==", - "license": "GPL-3.0-or-later WITH Classpath-exception-2.0", - "dependencies": { - "buffer": "^6.0.1", - "pako": "^2.0.4", - "websocket": "^1.0.32" - } - }, - "node_modules/@substrate/ss58-registry": { - "version": "1.23.0", - "resolved": "https://registry.npmjs.org/@substrate/ss58-registry/-/ss58-registry-1.23.0.tgz", - "integrity": "sha512-LuQje7n48GXSsp1aGI6UEmNVtlh7OzQ6CN1Hd9VGUrshADwMB0lRZ5bxnffmqDR4vVugI7h0NN0AONhIW1eHGg==", - "license": "Apache-2.0" - }, - "node_modules/@types/bn.js": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.0.tgz", - "integrity": "sha512-QSSVYj7pYFN49kW77o2s9xTCwZ8F2xLbjLLSEVh8D2F4JUhZtPAGOFLTD+ffqksBx/u4cE/KImFjyhqCjn/LIA==", - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/node": { - "version": "18.0.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.0.0.tgz", - "integrity": "sha512-cHlGmko4gWLVI27cGJntjs/Sj8th9aYwplmZFwmmgYQQvL5NUsgVJG7OddLvNfLqYS31KFN0s3qlaD9qCaxACA==", - "license": "MIT" - }, - "node_modules/@types/node-fetch": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.2.tgz", - "integrity": "sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==", - "license": "MIT", - "dependencies": { - "@types/node": "*", - "form-data": "^3.0.0" - } - }, - "node_modules/@types/websocket": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@types/websocket/-/websocket-1.0.5.tgz", - "integrity": "sha512-NbsqiNX9CnEfC1Z0Vf4mE1SgAJ07JnRYcNex7AJ9zAVzmiGHmjKFEk7O4TJIsgv2B1sLEb6owKFZrACwdYngsQ==", - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", - "license": "MIT" - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "license": "MIT" - }, - "node_modules/base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/bn.js": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", - "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==", - "license": "MIT" - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/buffer": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", - "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.2.1" - } - }, - "node_modules/bufferutil": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.6.tgz", - "integrity": "sha512-jduaYOYtnio4aIAyc6UbvPCVcgq7nYpVnucyxr6eCYg/Woad9Hf/oxxBRDnGGjPfjUm6j5O/uBWhIu4iLebFaw==", - "hasInstallScript": true, - "license": "MIT", - "dependencies": { - "node-gyp-build": "^4.3.0" - }, - "engines": { - "node": ">=6.14.2" - } - }, - "node_modules/cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "license": "ISC", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "license": "MIT" - }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "license": "MIT", - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "license": "MIT" - }, - "node_modules/d": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/d/-/d-1.0.1.tgz", - "integrity": "sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==", - "license": "ISC", - "dependencies": { - "es5-ext": "^0.10.50", - "type": "^1.0.1" - } - }, - "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "license": "MIT", - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "license": "MIT", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/ed2curve": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/ed2curve/-/ed2curve-0.3.0.tgz", - "integrity": "sha512-8w2fmmq3hv9rCrcI7g9hms2pMunQr1JINfcjwR9tAyZqhtyaMN991lF/ZfHfr5tzZQ8c7y7aBgZbjfbd0fjFwQ==", - "license": "Unlicense", - "dependencies": { - "tweetnacl": "1.x.x" - } - }, - "node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "license": "MIT" - }, - "node_modules/es5-ext": { - "version": "0.10.61", - "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.61.tgz", - "integrity": "sha512-yFhIqQAzu2Ca2I4SE2Au3rxVfmohU9Y7wqGR+s7+H7krk26NXhIRAZDgqd6xqjCEFUomDEA3/Bo/7fKmIkW1kA==", - "hasInstallScript": true, - "license": "ISC", - "dependencies": { - "es6-iterator": "^2.0.3", - "es6-symbol": "^3.1.3", - "next-tick": "^1.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/es6-iterator": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", - "integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==", - "license": "MIT", - "dependencies": { - "d": "1", - "es5-ext": "^0.10.35", - "es6-symbol": "^3.1.1" - } - }, - "node_modules/es6-symbol": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.3.tgz", - "integrity": "sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA==", - "license": "ISC", - "dependencies": { - "d": "^1.0.1", - "ext": "^1.1.2" - } - }, - "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/eventemitter3": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", - "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", - "license": "MIT" - }, - "node_modules/ext": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/ext/-/ext-1.6.0.tgz", - "integrity": "sha512-sdBImtzkq2HpkdRLtlLWDa6w4DX22ijZLKx8BMPUuKe1c5lbN6xwQDQCxSfxBQnHZ13ls/FH0MQZx/q/gr6FQg==", - "license": "ISC", - "dependencies": { - "type": "^2.5.0" - } - }, - "node_modules/ext/node_modules/type": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/type/-/type-2.6.0.tgz", - "integrity": "sha512-eiDBDOmkih5pMbo9OqsqPRGMljLodLcwd5XD5JbtNB0o89xZAwynY9EdCDsJU7LtcVCClu9DvM7/0Ep1hYX3EQ==", - "license": "ISC" - }, - "node_modules/form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", - "license": "MIT", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "license": "ISC" - }, - "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "license": "MIT" - }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "license": "ISC", - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "license": "ISC", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.1" - }, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/ieee754": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "BSD-3-Clause" - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "license": "ISC", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "license": "ISC" - }, - "node_modules/interpret": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", - "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", - "license": "MIT", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/ip-regex": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.3.0.tgz", - "integrity": "sha512-B9ZWJxHHOHUhUjCPrMpLD4xEq35bUTClHM1S6CBU5ixQnkZmwipwgc96vAd7AAGM9TGHvJR+Uss+/Ak6UphK+Q==", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-core-module": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.9.0.tgz", - "integrity": "sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==", - "license": "MIT", - "dependencies": { - "has": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==", - "license": "MIT" - }, - "node_modules/json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", - "license": "ISC" - }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "license": "MIT" - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "license": "MIT", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/mock-socket": { - "version": "9.1.5", - "resolved": "https://registry.npmjs.org/mock-socket/-/mock-socket-9.1.5.tgz", - "integrity": "sha512-3DeNIcsQixWHHKk6NdoBhWI4t1VMj5/HzfnI1rE/pLl5qKx7+gd4DNA07ehTaZ6MoUU053si6Hd+YtiM/tQZfg==", - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "license": "MIT" - }, - "node_modules/next-tick": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz", - "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==", - "license": "ISC" - }, - "node_modules/nock": { - "version": "13.2.7", - "resolved": "https://registry.npmjs.org/nock/-/nock-13.2.7.tgz", - "integrity": "sha512-R6NUw7RIPtKwgK7jskuKoEi4VFMqIHtV2Uu9K/Uegc4TA5cqe+oNMYslZcUmnVNQCTG6wcSqUBaGTDd7sq5srg==", - "license": "MIT", - "dependencies": { - "debug": "^4.1.0", - "json-stringify-safe": "^5.0.1", - "lodash": "^4.17.21", - "propagate": "^2.0.0" - }, - "engines": { - "node": ">= 10.13" - } - }, - "node_modules/node-fetch": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", - "license": "MIT", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/node-gyp-build": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.4.0.tgz", - "integrity": "sha512-amJnQCcgtRVw9SvoebO3BKGESClrfXGCUTX9hSn1OuGQTQBOZmVd0Z0OlecpuRksKvbsUqALE8jls/ErClAPuQ==", - "license": "MIT", - "bin": { - "node-gyp-build": "bin.js", - "node-gyp-build-optional": "optional.js", - "node-gyp-build-test": "build-test.js" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "license": "ISC", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/pako": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/pako/-/pako-2.0.4.tgz", - "integrity": "sha512-v8tweI900AUkZN6heMU/4Uy4cXRc2AYNRggVmTR+dEncawDJgCdLMximOVA2p4qO57WMynangsfGRb5WD6L1Bg==", - "license": "(MIT AND Zlib)" - }, - "node_modules/parachain-launch": { - "name": "@open-web3/parachain-launch", - "version": "1.2.0", - "resolved": "git+https://git@github.com/mangata-finance/parachain-launch.git#c02ead90ca484485ee64c9b5cfe6aff47b2cf41b", - "license": "Apache-2.0", - "dependencies": { - "@polkadot/api": "^7.15.1", - "@polkadot/keyring": "^8.4.1", - "@polkadot/util": "^8.4.1", - "@polkadot/util-crypto": "^8.4.1", - "lodash": "^4.17.21", - "readline-sync": "^1.4.10", - "shelljs": "^0.8.5", - "yaml": "^1.10.2", - "yargs": "^17.4.0" - }, - "bin": { - "parachain-launch": "bin/parachain-launch" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "license": "MIT" - }, - "node_modules/propagate": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/propagate/-/propagate-2.0.1.tgz", - "integrity": "sha512-vGrhOavPSTz4QVNuBNdcNXePNdNMaO1xj9yBeH1ScQPjk/rhg9sSlCXPhMkFuaNNW/syTvYqsnbIJxMBfRbbag==", - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/readline-sync": { - "version": "1.4.10", - "resolved": "https://registry.npmjs.org/readline-sync/-/readline-sync-1.4.10.tgz", - "integrity": "sha512-gNva8/6UAe8QYepIQH/jQ2qn91Qj0B9sYjMBBs3QOB8F2CXcKgLxQaJRP76sWVRQt+QU+8fAkCbCvjjMFu7Ycw==", - "license": "MIT", - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/rechoir": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", - "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", - "dependencies": { - "resolve": "^1.1.6" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/regenerator-runtime": { - "version": "0.13.9", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", - "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==", - "license": "MIT" - }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", - "license": "MIT", - "dependencies": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/rxjs": { - "version": "7.5.5", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.5.tgz", - "integrity": "sha512-sy+H0pQofO95VDmFLzyaw9xNJU4KTRSwQIGM6+iG3SypAtCiLDzpeG8sJrNCWn2Up9km+KhkvTdbkrdy+yzZdw==", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.1.0" - } - }, - "node_modules/shelljs": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", - "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", - "license": "BSD-3-Clause", - "dependencies": { - "glob": "^7.0.0", - "interpret": "^1.0.0", - "rechoir": "^0.6.2" - }, - "bin": { - "shjs": "bin/shjs" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", - "license": "MIT" - }, - "node_modules/tslib": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==", - "license": "0BSD" - }, - "node_modules/tweetnacl": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz", - "integrity": "sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw==", - "license": "Unlicense" - }, - "node_modules/type": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/type/-/type-1.2.0.tgz", - "integrity": "sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg==", - "license": "ISC" - }, - "node_modules/typedarray-to-buffer": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", - "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", - "license": "MIT", - "dependencies": { - "is-typedarray": "^1.0.0" - } - }, - "node_modules/utf-8-validate": { - "version": "5.0.9", - "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.9.tgz", - "integrity": "sha512-Yek7dAy0v3Kl0orwMlvi7TPtiCNrdfHNd7Gcc/pLq4BLXqfAmd0J7OWMizUQnTTJsyjKn02mU7anqwfmUP4J8Q==", - "hasInstallScript": true, - "license": "MIT", - "dependencies": { - "node-gyp-build": "^4.3.0" - }, - "engines": { - "node": ">=6.14.2" - } - }, - "node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", - "license": "BSD-2-Clause" - }, - "node_modules/websocket": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/websocket/-/websocket-1.0.34.tgz", - "integrity": "sha512-PRDso2sGwF6kM75QykIesBijKSVceR6jL2G8NGYyq2XrItNC2P5/qL5XeR056GhA+Ly7JMFvJb9I312mJfmqnQ==", - "license": "Apache-2.0", - "dependencies": { - "bufferutil": "^4.0.1", - "debug": "^2.2.0", - "es5-ext": "^0.10.50", - "typedarray-to-buffer": "^3.1.5", - "utf-8-validate": "^5.0.2", - "yaeti": "^0.0.6" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/websocket/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "license": "MIT", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/websocket/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "license": "MIT" - }, - "node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "license": "MIT", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "license": "ISC" - }, - "node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "license": "ISC", - "engines": { - "node": ">=10" - } - }, - "node_modules/yaeti": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/yaeti/-/yaeti-0.0.6.tgz", - "integrity": "sha512-MvQa//+KcZCUkBTIC9blM+CU9J2GzuTytsOUwf2lidtvkx/6gnEp1QvJv34t9vdjhFmha/mUiNDbN0D0mJWdug==", - "license": "MIT", - "engines": { - "node": ">=0.10.32" - } - }, - "node_modules/yaml": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", - "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", - "license": "ISC", - "engines": { - "node": ">= 6" - } - }, - "node_modules/yargs": { - "version": "17.5.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.5.1.tgz", - "integrity": "sha512-t6YAJcxDkNX7NFYiVtKvWUz8l+PaKTLiL63mJYWR2GnHq2gjEWISzsLp9wg3aY36dY1j+gfIEL3pIF+XlJJfbA==", - "license": "MIT", - "dependencies": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/yargs-parser": { - "version": "21.0.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.0.1.tgz", - "integrity": "sha512-9BK1jFpLzJROCI5TzwZL/TU4gqjK5xiHV/RfWLOahrjAko/e4DJkRDZQXfvqAsiZzzYhgAzbgz6lg48jcm4GLg==", - "license": "ISC", - "engines": { - "node": ">=12" - } - } - }, - "dependencies": { - "@babel/runtime": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.18.6.tgz", - "integrity": "sha512-t9wi7/AW6XtKahAe20Yw0/mMljKq0B1r2fPdvaAdV/KPDZewFXdaaa6K7lxmZBZ8FBNpCiAT6iHPmd6QO9bKfQ==", - "requires": { - "regenerator-runtime": "^0.13.4" - } - }, - "@noble/hashes": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.0.0.tgz", - "integrity": "sha512-DZVbtY62kc3kkBtMHqwCOfXrT/hnoORy5BJ4+HU1IR59X0KWAOqsfzQPcUl/lQLlG7qXbe/fZ3r/emxtAl+sqg==" - }, - "@noble/secp256k1": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.5.5.tgz", - "integrity": "sha512-sZ1W6gQzYnu45wPrWx8D3kwI2/U29VYTx9OjbDAd7jwRItJ0cSTMPRL/C8AWZFn9kWFLQGqEXVEE86w4Z8LpIQ==" - }, - "@polkadot/api": { - "version": "7.15.1", - "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-7.15.1.tgz", - "integrity": "sha512-z0z6+k8+R9ixRMWzfsYrNDnqSV5zHKmyhTCL0I7+1I081V18MJTCFUKubrh0t1gD0/FCt3U9Ibvr4IbtukYLrQ==", - "requires": { - "@babel/runtime": "^7.17.8", - "@polkadot/api-augment": "7.15.1", - "@polkadot/api-base": "7.15.1", - "@polkadot/api-derive": "7.15.1", - "@polkadot/keyring": "^8.7.1", - "@polkadot/rpc-augment": "7.15.1", - "@polkadot/rpc-core": "7.15.1", - "@polkadot/rpc-provider": "7.15.1", - "@polkadot/types": "7.15.1", - "@polkadot/types-augment": "7.15.1", - "@polkadot/types-codec": "7.15.1", - "@polkadot/types-create": "7.15.1", - "@polkadot/types-known": "7.15.1", - "@polkadot/util": "^8.7.1", - "@polkadot/util-crypto": "^8.7.1", - "eventemitter3": "^4.0.7", - "rxjs": "^7.5.5" - } - }, - "@polkadot/api-augment": { - "version": "7.15.1", - "resolved": "https://registry.npmjs.org/@polkadot/api-augment/-/api-augment-7.15.1.tgz", - "integrity": "sha512-7csQLS6zuYuGq7W1EkTBz1ZmxyRvx/Qpz7E7zPSwxmY8Whb7Yn2effU9XF0eCcRpyfSW8LodF8wMmLxGYs1OaQ==", - "requires": { - "@babel/runtime": "^7.17.8", - "@polkadot/api-base": "7.15.1", - "@polkadot/rpc-augment": "7.15.1", - "@polkadot/types": "7.15.1", - "@polkadot/types-augment": "7.15.1", - "@polkadot/types-codec": "7.15.1", - "@polkadot/util": "^8.7.1" - } - }, - "@polkadot/api-base": { - "version": "7.15.1", - "resolved": "https://registry.npmjs.org/@polkadot/api-base/-/api-base-7.15.1.tgz", - "integrity": "sha512-UlhLdljJPDwGpm5FxOjvJNFTxXMRFaMuVNx6EklbuetbBEJ/Amihhtj0EJRodxQwtZ4ZtPKYKt+g+Dn7OJJh4g==", - "requires": { - "@babel/runtime": "^7.17.8", - "@polkadot/rpc-core": "7.15.1", - "@polkadot/types": "7.15.1", - "@polkadot/util": "^8.7.1", - "rxjs": "^7.5.5" - } - }, - "@polkadot/api-derive": { - "version": "7.15.1", - "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-7.15.1.tgz", - "integrity": "sha512-CsOQppksQBaa34L1fWRzmfQQpoEBwfH0yTTQxgj3h7rFYGVPxEKGeFjo1+IgI2vXXvOO73Z8E4H/MnbxvKrs1Q==", - "requires": { - "@babel/runtime": "^7.17.8", - "@polkadot/api": "7.15.1", - "@polkadot/api-augment": "7.15.1", - "@polkadot/api-base": "7.15.1", - "@polkadot/rpc-core": "7.15.1", - "@polkadot/types": "7.15.1", - "@polkadot/types-codec": "7.15.1", - "@polkadot/util": "^8.7.1", - "@polkadot/util-crypto": "^8.7.1", - "rxjs": "^7.5.5" - } - }, - "@polkadot/keyring": { - "version": "8.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/keyring/-/keyring-8.7.1.tgz", - "integrity": "sha512-t6ZgQVC+nQT7XwbWtEhkDpiAzxKVJw8Xd/gWdww6xIrawHu7jo3SGB4QNdPgkf8TvDHYAAJiupzVQYAlOIq3GA==", - "requires": { - "@babel/runtime": "^7.17.8", - "@polkadot/util": "8.7.1", - "@polkadot/util-crypto": "8.7.1" - } - }, - "@polkadot/networks": { - "version": "8.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/networks/-/networks-8.7.1.tgz", - "integrity": "sha512-8xAmhDW0ry5EKcEjp6VTuwoTm0DdDo/zHsmx88P6sVL87gupuFsL+B6TrsYLl8GcaqxujwrOlKB+CKTUg7qFKg==", - "requires": { - "@babel/runtime": "^7.17.8", - "@polkadot/util": "8.7.1", - "@substrate/ss58-registry": "^1.17.0" - } - }, - "@polkadot/rpc-augment": { - "version": "7.15.1", - "resolved": "https://registry.npmjs.org/@polkadot/rpc-augment/-/rpc-augment-7.15.1.tgz", - "integrity": "sha512-sK0+mphN7nGz/eNPsshVi0qd0+N0Pqxuebwc1YkUGP0f9EkDxzSGp6UjGcSwWVaAtk9WZZ1MpK1Jwb/2GrKV7Q==", - "requires": { - "@babel/runtime": "^7.17.8", - "@polkadot/rpc-core": "7.15.1", - "@polkadot/types": "7.15.1", - "@polkadot/types-codec": "7.15.1", - "@polkadot/util": "^8.7.1" - } - }, - "@polkadot/rpc-core": { - "version": "7.15.1", - "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-7.15.1.tgz", - "integrity": "sha512-4Sb0e0PWmarCOizzxQAE1NQSr5z0n+hdkrq3+aPohGu9Rh4PodG+OWeIBy7Ov/3GgdhNQyBLG+RiVtliXecM3g==", - "requires": { - "@babel/runtime": "^7.17.8", - "@polkadot/rpc-augment": "7.15.1", - "@polkadot/rpc-provider": "7.15.1", - "@polkadot/types": "7.15.1", - "@polkadot/util": "^8.7.1", - "rxjs": "^7.5.5" - } - }, - "@polkadot/rpc-provider": { - "version": "7.15.1", - "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-7.15.1.tgz", - "integrity": "sha512-n0RWfSaD/r90JXeJkKry1aGZwJeBUUiMpXUQ9Uvp6DYBbYEDs0fKtWLpdT3PdFrMbe5y3kwQmNLxwe6iF4+mzg==", - "requires": { - "@babel/runtime": "^7.17.8", - "@polkadot/keyring": "^8.7.1", - "@polkadot/types": "7.15.1", - "@polkadot/types-support": "7.15.1", - "@polkadot/util": "^8.7.1", - "@polkadot/util-crypto": "^8.7.1", - "@polkadot/x-fetch": "^8.7.1", - "@polkadot/x-global": "^8.7.1", - "@polkadot/x-ws": "^8.7.1", - "@substrate/connect": "0.7.0-alpha.0", - "eventemitter3": "^4.0.7", - "mock-socket": "^9.1.2", - "nock": "^13.2.4" - } - }, - "@polkadot/types": { - "version": "7.15.1", - "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-7.15.1.tgz", - "integrity": "sha512-KawZVS+eLR1D6O7c/P5cSUwr6biM9Qd2KwKtJIO8l1Mrxp7r+y2tQnXSSXVAd6XPdb3wVMhnIID+NW3W99TAnQ==", - "requires": { - "@babel/runtime": "^7.17.8", - "@polkadot/keyring": "^8.7.1", - "@polkadot/types-augment": "7.15.1", - "@polkadot/types-codec": "7.15.1", - "@polkadot/types-create": "7.15.1", - "@polkadot/util": "^8.7.1", - "@polkadot/util-crypto": "^8.7.1", - "rxjs": "^7.5.5" - } - }, - "@polkadot/types-augment": { - "version": "7.15.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-augment/-/types-augment-7.15.1.tgz", - "integrity": "sha512-aqm7xT/66TCna0I2utpIekoquKo0K5pnkA/7WDzZ6gyD8he2h0IXfe8xWjVmuyhjxrT/C/7X1aUF2Z0xlOCwzQ==", - "requires": { - "@babel/runtime": "^7.17.8", - "@polkadot/types": "7.15.1", - "@polkadot/types-codec": "7.15.1", - "@polkadot/util": "^8.7.1" - } - }, - "@polkadot/types-codec": { - "version": "7.15.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-codec/-/types-codec-7.15.1.tgz", - "integrity": "sha512-nI11dT7FGaeDd/fKPD8iJRFGhosOJoyjhZ0gLFFDlKCaD3AcGBRTTY8HFJpP/5QXXhZzfZsD93fVKrosnegU0Q==", - "requires": { - "@babel/runtime": "^7.17.8", - "@polkadot/util": "^8.7.1" - } - }, - "@polkadot/types-create": { - "version": "7.15.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-create/-/types-create-7.15.1.tgz", - "integrity": "sha512-+HiaHn7XOwP0kv/rVdORlVkNuMoxuvt+jd67A/CeEreJiXqRLu+S61Mdk7wi6719PTaOal1hTDFfyGrtUd8FSQ==", - "requires": { - "@babel/runtime": "^7.17.8", - "@polkadot/types-codec": "7.15.1", - "@polkadot/util": "^8.7.1" - } - }, - "@polkadot/types-known": { - "version": "7.15.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-7.15.1.tgz", - "integrity": "sha512-LMcNP0CxT84DqAKV62/qDeeIVIJCR5yzE9b+9AsYhyfhE4apwxjrThqZA7K0CF56bOdQJSexAerYB/jwk2IijA==", - "requires": { - "@babel/runtime": "^7.17.8", - "@polkadot/networks": "^8.7.1", - "@polkadot/types": "7.15.1", - "@polkadot/types-codec": "7.15.1", - "@polkadot/types-create": "7.15.1", - "@polkadot/util": "^8.7.1" - } - }, - "@polkadot/types-support": { - "version": "7.15.1", - "resolved": "https://registry.npmjs.org/@polkadot/types-support/-/types-support-7.15.1.tgz", - "integrity": "sha512-FIK251ffVo+NaUXLlaJeB5OvT7idDd3uxaoBM6IwsS87rzt2CcWMyCbu0uX89AHZUhSviVx7xaBxfkGEqMePWA==", - "requires": { - "@babel/runtime": "^7.17.8", - "@polkadot/util": "^8.7.1" - } - }, - "@polkadot/util": { - "version": "8.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-8.7.1.tgz", - "integrity": "sha512-XjY1bTo7V6OvOCe4yn8H2vifeuBciCy0gq0k5P1tlGUQLI/Yt0hvDmxcA0FEPtqg8CL+rYRG7WXGPVNjkrNvyQ==", - "requires": { - "@babel/runtime": "^7.17.8", - "@polkadot/x-bigint": "8.7.1", - "@polkadot/x-global": "8.7.1", - "@polkadot/x-textdecoder": "8.7.1", - "@polkadot/x-textencoder": "8.7.1", - "@types/bn.js": "^5.1.0", - "bn.js": "^5.2.0", - "ip-regex": "^4.3.0" - } - }, - "@polkadot/util-crypto": { - "version": "8.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/util-crypto/-/util-crypto-8.7.1.tgz", - "integrity": "sha512-TaSuJ2aNrB5sYK7YXszkEv24nYJKRFqjF2OrggoMg6uYxUAECvTkldFnhtgeizMweRMxJIBu6bMHlSIutbWgjw==", - "requires": { - "@babel/runtime": "^7.17.8", - "@noble/hashes": "1.0.0", - "@noble/secp256k1": "1.5.5", - "@polkadot/networks": "8.7.1", - "@polkadot/util": "8.7.1", - "@polkadot/wasm-crypto": "^5.1.1", - "@polkadot/x-bigint": "8.7.1", - "@polkadot/x-randomvalues": "8.7.1", - "@scure/base": "1.0.0", - "ed2curve": "^0.3.0", - "tweetnacl": "^1.0.3" - } - }, - "@polkadot/wasm-crypto": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto/-/wasm-crypto-5.1.1.tgz", - "integrity": "sha512-JCcAVfH8DhYuEyd4oX1ouByxhou0TvpErKn8kHjtzt7+tRoFi0nzWlmK4z49vszsV3JJgXxV81i10C0BYlwTcQ==", - "requires": { - "@babel/runtime": "^7.17.8", - "@polkadot/wasm-crypto-asmjs": "^5.1.1", - "@polkadot/wasm-crypto-wasm": "^5.1.1" - } - }, - "@polkadot/wasm-crypto-asmjs": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto-asmjs/-/wasm-crypto-asmjs-5.1.1.tgz", - "integrity": "sha512-1WBwc2G3pZMKW1T01uXzKE30Sg22MXmF3RbbZiWWk3H2d/Er4jZQRpjumxO5YGWan+xOb7HQQdwnrUnrPgbDhg==", - "requires": { - "@babel/runtime": "^7.17.8" - } - }, - "@polkadot/wasm-crypto-wasm": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto-wasm/-/wasm-crypto-wasm-5.1.1.tgz", - "integrity": "sha512-F9PZ30J2S8vUNl2oY7Myow5Xsx5z5uNVpnNlJwlmY8IXBvyucvyQ4HSdhJsrbs4W1BfFc0mHghxgp0FbBCnf/Q==", - "requires": { - "@babel/runtime": "^7.17.8" - } - }, - "@polkadot/x-bigint": { - "version": "8.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-bigint/-/x-bigint-8.7.1.tgz", - "integrity": "sha512-ClkhgdB/KqcAKk3zA6Qw8wBL6Wz67pYTPkrAtImpvoPJmR+l4RARauv+MH34JXMUNlNb3aUwqN6lq2Z1zN+mJg==", - "requires": { - "@babel/runtime": "^7.17.8", - "@polkadot/x-global": "8.7.1" - } - }, - "@polkadot/x-fetch": { - "version": "8.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-fetch/-/x-fetch-8.7.1.tgz", - "integrity": "sha512-ygNparcalYFGbspXtdtZOHvNXZBkNgmNO+um9C0JYq74K5OY9/be93uyfJKJ8JcRJtOqBfVDsJpbiRkuJ1PRfg==", - "requires": { - "@babel/runtime": "^7.17.8", - "@polkadot/x-global": "8.7.1", - "@types/node-fetch": "^2.6.1", - "node-fetch": "^2.6.7" - } - }, - "@polkadot/x-global": { - "version": "8.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-global/-/x-global-8.7.1.tgz", - "integrity": "sha512-WOgUor16IihgNVdiTVGAWksYLUAlqjmODmIK1cuWrLOZtV1VBomWcb3obkO9sh5P6iWziAvCB/i+L0vnTN9ZCA==", - "requires": { - "@babel/runtime": "^7.17.8" - } - }, - "@polkadot/x-randomvalues": { - "version": "8.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-randomvalues/-/x-randomvalues-8.7.1.tgz", - "integrity": "sha512-njt17MlfN6yNyNEti7fL12lr5qM6A1aSGkWKVuqzc7XwSBesifJuW4km5u6r2gwhXjH2eHDv9SoQ7WXu8vrrkg==", - "requires": { - "@babel/runtime": "^7.17.8", - "@polkadot/x-global": "8.7.1" - } - }, - "@polkadot/x-textdecoder": { - "version": "8.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-textdecoder/-/x-textdecoder-8.7.1.tgz", - "integrity": "sha512-ia0Ie2zi4VdQdNVD2GE2FZzBMfX//hEL4w546RMJfZM2LqDS674LofHmcyrsv5zscLnnRyCxZC1+J2dt+6MDIA==", - "requires": { - "@babel/runtime": "^7.17.8", - "@polkadot/x-global": "8.7.1" - } - }, - "@polkadot/x-textencoder": { - "version": "8.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-textencoder/-/x-textencoder-8.7.1.tgz", - "integrity": "sha512-XDO0A27Xy+eJCKSxENroB8Dcnl+UclGG4ZBei+P/BqZ9rsjskUyd2Vsl6peMXAcsxwOE7g0uTvujoGM8jpKOXw==", - "requires": { - "@babel/runtime": "^7.17.8", - "@polkadot/x-global": "8.7.1" - } - }, - "@polkadot/x-ws": { - "version": "8.7.1", - "resolved": "https://registry.npmjs.org/@polkadot/x-ws/-/x-ws-8.7.1.tgz", - "integrity": "sha512-Mt0tcNzGXyKnN3DQ06alkv+JLtTfXWu6zSypFrrKHSQe3u79xMQ1nSicmpT3gWLhIa8YF+8CYJXMrqaXgCnDhw==", - "requires": { - "@babel/runtime": "^7.17.8", - "@polkadot/x-global": "8.7.1", - "@types/websocket": "^1.0.5", - "websocket": "^1.0.34" - } - }, - "@scure/base": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.0.0.tgz", - "integrity": "sha512-gIVaYhUsy+9s58m/ETjSJVKHhKTBMmcRb9cEV5/5dwvfDlfORjKrFsDeDHWRrm6RjcPvCLZFwGJjAjLj1gg4HA==" - }, - "@substrate/connect": { - "version": "0.7.0-alpha.0", - "resolved": "https://registry.npmjs.org/@substrate/connect/-/connect-0.7.0-alpha.0.tgz", - "integrity": "sha512-fvO7w++M8R95R/pGJFW9+cWOt8OYnnTfgswxtlPqSgzqX4tta8xcNQ51crC72FcL5agwSGkA1gc2/+eyTj7O8A==", - "requires": { - "@substrate/connect-extension-protocol": "^1.0.0", - "@substrate/smoldot-light": "0.6.8", - "eventemitter3": "^4.0.7" - } - }, - "@substrate/connect-extension-protocol": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@substrate/connect-extension-protocol/-/connect-extension-protocol-1.0.0.tgz", - "integrity": "sha512-nFVuKdp71hMd/MGlllAOh+a2hAqt8m6J2G0aSsS/RcALZexxF9jodbFc62ni8RDtJboeOfXAHhenYOANvJKPIg==" - }, - "@substrate/smoldot-light": { - "version": "0.6.8", - "resolved": "https://registry.npmjs.org/@substrate/smoldot-light/-/smoldot-light-0.6.8.tgz", - "integrity": "sha512-9lVwbG6wrtss0sd6013BJGe4WN4taujsGG49pwyt1Lj36USeL2Sb164TTUxmZF/g2NQEqDPwPROBdekQ2gFmgg==", - "requires": { - "buffer": "^6.0.1", - "pako": "^2.0.4", - "websocket": "^1.0.32" - } - }, - "@substrate/ss58-registry": { - "version": "1.23.0", - "resolved": "https://registry.npmjs.org/@substrate/ss58-registry/-/ss58-registry-1.23.0.tgz", - "integrity": "sha512-LuQje7n48GXSsp1aGI6UEmNVtlh7OzQ6CN1Hd9VGUrshADwMB0lRZ5bxnffmqDR4vVugI7h0NN0AONhIW1eHGg==" - }, - "@types/bn.js": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.0.tgz", - "integrity": "sha512-QSSVYj7pYFN49kW77o2s9xTCwZ8F2xLbjLLSEVh8D2F4JUhZtPAGOFLTD+ffqksBx/u4cE/KImFjyhqCjn/LIA==", - "requires": { - "@types/node": "*" - } - }, - "@types/node": { - "version": "18.0.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.0.0.tgz", - "integrity": "sha512-cHlGmko4gWLVI27cGJntjs/Sj8th9aYwplmZFwmmgYQQvL5NUsgVJG7OddLvNfLqYS31KFN0s3qlaD9qCaxACA==" - }, - "@types/node-fetch": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.2.tgz", - "integrity": "sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==", - "requires": { - "@types/node": "*", - "form-data": "^3.0.0" - } - }, - "@types/websocket": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@types/websocket/-/websocket-1.0.5.tgz", - "integrity": "sha512-NbsqiNX9CnEfC1Z0Vf4mE1SgAJ07JnRYcNex7AJ9zAVzmiGHmjKFEk7O4TJIsgv2B1sLEb6owKFZrACwdYngsQ==", - "requires": { - "@types/node": "*" - } - }, - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" - }, - "balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - }, - "base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" - }, - "bn.js": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", - "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==" - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "buffer": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", - "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", - "requires": { - "base64-js": "^1.3.1", - "ieee754": "^1.2.1" - } - }, - "bufferutil": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.6.tgz", - "integrity": "sha512-jduaYOYtnio4aIAyc6UbvPCVcgq7nYpVnucyxr6eCYg/Woad9Hf/oxxBRDnGGjPfjUm6j5O/uBWhIu4iLebFaw==", - "requires": { - "node-gyp-build": "^4.3.0" - } - }, - "cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "requires": { - "delayed-stream": "~1.0.0" - } - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" - }, - "d": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/d/-/d-1.0.1.tgz", - "integrity": "sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==", - "requires": { - "es5-ext": "^0.10.50", - "type": "^1.0.1" - } - }, - "debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "requires": { - "ms": "2.1.2" - } - }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" - }, - "ed2curve": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/ed2curve/-/ed2curve-0.3.0.tgz", - "integrity": "sha512-8w2fmmq3hv9rCrcI7g9hms2pMunQr1JINfcjwR9tAyZqhtyaMN991lF/ZfHfr5tzZQ8c7y7aBgZbjfbd0fjFwQ==", - "requires": { - "tweetnacl": "1.x.x" - } - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "es5-ext": { - "version": "0.10.61", - "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.61.tgz", - "integrity": "sha512-yFhIqQAzu2Ca2I4SE2Au3rxVfmohU9Y7wqGR+s7+H7krk26NXhIRAZDgqd6xqjCEFUomDEA3/Bo/7fKmIkW1kA==", - "requires": { - "es6-iterator": "^2.0.3", - "es6-symbol": "^3.1.3", - "next-tick": "^1.1.0" - } - }, - "es6-iterator": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", - "integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==", - "requires": { - "d": "1", - "es5-ext": "^0.10.35", - "es6-symbol": "^3.1.1" - } - }, - "es6-symbol": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.3.tgz", - "integrity": "sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA==", - "requires": { - "d": "^1.0.1", - "ext": "^1.1.2" - } - }, - "escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==" - }, - "eventemitter3": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", - "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" - }, - "ext": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/ext/-/ext-1.6.0.tgz", - "integrity": "sha512-sdBImtzkq2HpkdRLtlLWDa6w4DX22ijZLKx8BMPUuKe1c5lbN6xwQDQCxSfxBQnHZ13ls/FH0MQZx/q/gr6FQg==", - "requires": { - "type": "^2.5.0" - }, - "dependencies": { - "type": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/type/-/type-2.6.0.tgz", - "integrity": "sha512-eiDBDOmkih5pMbo9OqsqPRGMljLodLcwd5XD5JbtNB0o89xZAwynY9EdCDsJU7LtcVCClu9DvM7/0Ep1hYX3EQ==" - } - } - }, - "form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - } - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" - }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" - }, - "get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" - }, - "glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "requires": { - "function-bind": "^1.1.1" - } - }, - "ieee754": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "interpret": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", - "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==" - }, - "ip-regex": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.3.0.tgz", - "integrity": "sha512-B9ZWJxHHOHUhUjCPrMpLD4xEq35bUTClHM1S6CBU5ixQnkZmwipwgc96vAd7AAGM9TGHvJR+Uss+/Ak6UphK+Q==" - }, - "is-core-module": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.9.0.tgz", - "integrity": "sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==", - "requires": { - "has": "^1.0.3" - } - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" - }, - "is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==" - }, - "json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==" - }, - "lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - }, - "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" - }, - "mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "requires": { - "mime-db": "1.52.0" - } - }, - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "mock-socket": { - "version": "9.1.5", - "resolved": "https://registry.npmjs.org/mock-socket/-/mock-socket-9.1.5.tgz", - "integrity": "sha512-3DeNIcsQixWHHKk6NdoBhWI4t1VMj5/HzfnI1rE/pLl5qKx7+gd4DNA07ehTaZ6MoUU053si6Hd+YtiM/tQZfg==" - }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - }, - "next-tick": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz", - "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==" - }, - "nock": { - "version": "13.2.7", - "resolved": "https://registry.npmjs.org/nock/-/nock-13.2.7.tgz", - "integrity": "sha512-R6NUw7RIPtKwgK7jskuKoEi4VFMqIHtV2Uu9K/Uegc4TA5cqe+oNMYslZcUmnVNQCTG6wcSqUBaGTDd7sq5srg==", - "requires": { - "debug": "^4.1.0", - "json-stringify-safe": "^5.0.1", - "lodash": "^4.17.21", - "propagate": "^2.0.0" - } - }, - "node-fetch": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", - "requires": { - "whatwg-url": "^5.0.0" - } - }, - "node-gyp-build": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.4.0.tgz", - "integrity": "sha512-amJnQCcgtRVw9SvoebO3BKGESClrfXGCUTX9hSn1OuGQTQBOZmVd0Z0OlecpuRksKvbsUqALE8jls/ErClAPuQ==" - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "requires": { - "wrappy": "1" - } - }, - "pako": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/pako/-/pako-2.0.4.tgz", - "integrity": "sha512-v8tweI900AUkZN6heMU/4Uy4cXRc2AYNRggVmTR+dEncawDJgCdLMximOVA2p4qO57WMynangsfGRb5WD6L1Bg==" - }, - "parachain-launch": { - "version": "git+https://git@github.com/mangata-finance/parachain-launch.git#c02ead90ca484485ee64c9b5cfe6aff47b2cf41b", - "from": "parachain-launch@mangata-finance/parachain-launch#mangata", - "requires": { - "@polkadot/api": "^7.15.1", - "@polkadot/keyring": "^8.4.1", - "@polkadot/util": "^8.4.1", - "@polkadot/util-crypto": "^8.4.1", - "lodash": "^4.17.21", - "readline-sync": "^1.4.10", - "shelljs": "^0.8.5", - "yaml": "^1.10.2", - "yargs": "^17.4.0" - } - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==" - }, - "path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" - }, - "propagate": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/propagate/-/propagate-2.0.1.tgz", - "integrity": "sha512-vGrhOavPSTz4QVNuBNdcNXePNdNMaO1xj9yBeH1ScQPjk/rhg9sSlCXPhMkFuaNNW/syTvYqsnbIJxMBfRbbag==" - }, - "readline-sync": { - "version": "1.4.10", - "resolved": "https://registry.npmjs.org/readline-sync/-/readline-sync-1.4.10.tgz", - "integrity": "sha512-gNva8/6UAe8QYepIQH/jQ2qn91Qj0B9sYjMBBs3QOB8F2CXcKgLxQaJRP76sWVRQt+QU+8fAkCbCvjjMFu7Ycw==" - }, - "rechoir": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", - "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", - "requires": { - "resolve": "^1.1.6" - } - }, - "regenerator-runtime": { - "version": "0.13.9", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", - "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==" - }, - "require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==" - }, - "resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", - "requires": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - } - }, - "rxjs": { - "version": "7.5.5", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.5.tgz", - "integrity": "sha512-sy+H0pQofO95VDmFLzyaw9xNJU4KTRSwQIGM6+iG3SypAtCiLDzpeG8sJrNCWn2Up9km+KhkvTdbkrdy+yzZdw==", - "requires": { - "tslib": "^2.1.0" - } - }, - "shelljs": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", - "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", - "requires": { - "glob": "^7.0.0", - "interpret": "^1.0.0", - "rechoir": "^0.6.2" - } - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "requires": { - "ansi-regex": "^5.0.1" - } - }, - "supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==" - }, - "tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" - }, - "tslib": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" - }, - "tweetnacl": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz", - "integrity": "sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw==" - }, - "type": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/type/-/type-1.2.0.tgz", - "integrity": "sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg==" - }, - "typedarray-to-buffer": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", - "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", - "requires": { - "is-typedarray": "^1.0.0" - } - }, - "utf-8-validate": { - "version": "5.0.9", - "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.9.tgz", - "integrity": "sha512-Yek7dAy0v3Kl0orwMlvi7TPtiCNrdfHNd7Gcc/pLq4BLXqfAmd0J7OWMizUQnTTJsyjKn02mU7anqwfmUP4J8Q==", - "requires": { - "node-gyp-build": "^4.3.0" - } - }, - "webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" - }, - "websocket": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/websocket/-/websocket-1.0.34.tgz", - "integrity": "sha512-PRDso2sGwF6kM75QykIesBijKSVceR6jL2G8NGYyq2XrItNC2P5/qL5XeR056GhA+Ly7JMFvJb9I312mJfmqnQ==", - "requires": { - "bufferutil": "^4.0.1", - "debug": "^2.2.0", - "es5-ext": "^0.10.50", - "typedarray-to-buffer": "^3.1.5", - "utf-8-validate": "^5.0.2", - "yaeti": "^0.0.6" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - } - } - }, - "whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "requires": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" - }, - "y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==" - }, - "yaeti": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/yaeti/-/yaeti-0.0.6.tgz", - "integrity": "sha512-MvQa//+KcZCUkBTIC9blM+CU9J2GzuTytsOUwf2lidtvkx/6gnEp1QvJv34t9vdjhFmha/mUiNDbN0D0mJWdug==" - }, - "yaml": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", - "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==" - }, - "yargs": { - "version": "17.5.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.5.1.tgz", - "integrity": "sha512-t6YAJcxDkNX7NFYiVtKvWUz8l+PaKTLiL63mJYWR2GnHq2gjEWISzsLp9wg3aY36dY1j+gfIEL3pIF+XlJJfbA==", - "requires": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.0.0" - } - }, - "yargs-parser": { - "version": "21.0.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.0.1.tgz", - "integrity": "sha512-9BK1jFpLzJROCI5TzwZL/TU4gqjK5xiHV/RfWLOahrjAko/e4DJkRDZQXfvqAsiZzzYhgAzbgz6lg48jcm4GLg==" - } - } -} diff --git a/node/Cargo.toml b/node/Cargo.toml index 051404e527..bf74578f08 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -33,29 +33,30 @@ mangata-rococo = [ #disable-execution = ['mangata-kusama-runtime/disable-execution'] runtime-benchmarks = ["mangata-kusama-runtime/runtime-benchmarks", "polkadot-cli/runtime-benchmarks"] fast-runtime = ["mangata-kusama-runtime/fast-runtime", "mangata-kusama-runtime/fast-runtime"] -try-runtime = ["mangata-kusama-runtime/try-runtime", "mangata-rococo-runtime/try-runtime"] +try-runtime = ["mangata-kusama-runtime/try-runtime", "mangata-rococo-runtime/try-runtime", "try-runtime-cli/try-runtime"] [dependencies] derive_more = "0.99.2" +futures = "0.3.9" log = "0.4.17" codec = { package = "parity-scale-codec", version = "3.0.0" } -clap = { version = "4.0.17", features = ["derive"] } +clap = { version = "4.0.29", features = ["derive"] } serde = { version = "1.0.137", features = ["derive"] } hex-literal = "0.3.4" hex = "0.4.0" # RPC related Dependencies -jsonrpsee = { version = "0.15.1", features = ["server"] } +jsonrpsee = { version = "0.16.2", features = ["server"] } # Local Dependencies -mangata-kusama-runtime = { path = "../runtime/mangata-kusama/", optional = true } -mangata-rococo-runtime = { path = "../runtime/mangata-rococo/", optional = true } +mangata-kusama-runtime = { path = "../runtime/mangata-kusama", optional = true } +mangata-rococo-runtime = { path = "../runtime/mangata-rococo", optional = true } # Substrate Dependencies mangata-types = { git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } frame-benchmarking = { git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } frame-benchmarking-cli = { git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } -try-runtime-cli = { git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +try-runtime-cli = { git = "https://github.com/mangata-finance/substrate", optional = true, branch = "mangata-dev" } frame-system = { git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } pallet-transaction-payment = { git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } @@ -79,7 +80,7 @@ sc-network-bitswap = { git = "https://github.com/mangata-finance/substrate", bra sc-keystore = { git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } sc-rpc = { git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } sc-rpc-api = { git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } -sc-service = { git = "https://github.com/mangata-finance/substrate", features = ["wasmtime"], branch = "mangata-dev" } +sc-service = { git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } sc-sysinfo = { git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } sc-consensus-aura = { git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } sc-finality-grandpa = { git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } @@ -89,6 +90,7 @@ sc-transaction-pool-api = { git = "https://github.com/mangata-finance/substrate" sc-tracing = { git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } ## Substrate Primitive Dependencies +sp-io = { git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } sp-api = { git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } sp-block-builder = { git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } sp-blockchain = { git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } @@ -110,18 +112,18 @@ sp-ver = { git = "https://github.com/mangata-finance/substrate", branch = "manga # Cumulus dependencies -cumulus-client-cli = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev' } +cumulus-client-cli = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36' } # cumulus-client-collator = { git = 'https://github.com/mangata-finance/cumulus', branch = mangata-dev' } -cumulus-client-consensus-aura = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev' } -cumulus-client-consensus-common = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev' } -cumulus-client-network = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev' } -cumulus-client-service = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev' } -cumulus-primitives-core = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev' } -cumulus-primitives-parachain-inherent = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev' } -cumulus-relay-chain-inprocess-interface = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev' } -cumulus-relay-chain-interface = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev' } -cumulus-relay-chain-rpc-interface = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev' } -cumulus-relay-chain-minimal-node = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev' } +cumulus-client-consensus-aura = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36' } +cumulus-client-consensus-common = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36' } +cumulus-client-network = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36' } +cumulus-client-service = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36' } +cumulus-primitives-core = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36' } +cumulus-primitives-parachain-inherent = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36' } +cumulus-relay-chain-inprocess-interface = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36' } +cumulus-relay-chain-interface = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36' } +cumulus-relay-chain-rpc-interface = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36' } +cumulus-relay-chain-minimal-node = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36' } # Polkadot dependencies @@ -151,8 +153,8 @@ sp-tracing = { git = "https://github.com/mangata-finance/substrate", branch = "m frame-system = { git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } pallet-transaction-payment = { git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } frame-system-rpc-runtime-api = { git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } -cumulus-pallet-parachain-system = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev'} -cumulus-test-relay-sproof-builder = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev'} +cumulus-pallet-parachain-system = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36'} +cumulus-test-relay-sproof-builder = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36'} polkadot-runtime-common = { git = "https://github.com/mangata-finance/polkadot", branch = "mangata-dev" } sp-consensus-slots = { git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } futures = "0.3.21" @@ -160,3 +162,4 @@ schnorrkel = { version = "0.9.1", features = ["preaudit_deprecated", "u64_backen sp-core = { git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev", features = ["full_crypto"]} extrinsic-shuffler = { git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev"} cfg-if = "1.0.0" + diff --git a/node/src/chain_spec/mangata_kusama.rs b/node/src/chain_spec/mangata_kusama.rs index f03c69d82c..1d0127d0bf 100644 --- a/node/src/chain_spec/mangata_kusama.rs +++ b/node/src/chain_spec/mangata_kusama.rs @@ -2,7 +2,6 @@ use crate::chain_spec::Extensions; use codec::Encode; use cumulus_primitives_core::ParaId; use hex::FromHex; -use hex_literal::hex; use mangata_kusama_runtime::{ constants::parachains, ksm_per_second, AccountId, AssetMetadataOf, AuraId, CustomMetadata, @@ -10,7 +9,7 @@ use mangata_kusama_runtime::{ TUR_TOKEN_ID, X1, X2, }; use sc_service::ChainType; -use sp_core::{sr25519, ByteArray, Pair, Public, H160}; +use sp_core::{sr25519, ByteArray, Pair, Public}; use sp_runtime::{ traits::{ConstU32, IdentifyAccount, Verify}, WeakBoundedVec, diff --git a/node/src/chain_spec/mangata_rococo.rs b/node/src/chain_spec/mangata_rococo.rs index fe2fcb74d7..950f7b7668 100644 --- a/node/src/chain_spec/mangata_rococo.rs +++ b/node/src/chain_spec/mangata_rococo.rs @@ -2,14 +2,13 @@ use crate::chain_spec::Extensions; use codec::Encode; use cumulus_primitives_core::ParaId; use hex::FromHex; -use hex_literal::hex; use mangata_rococo_runtime::{ constants::parachains, roc_per_second, AccountId, AssetMetadataOf, AuraId, CustomMetadata, GeneralKey, MultiLocation, Parachain, Signature, XcmMetadata, KAR_TOKEN_ID, ROC_TOKEN_ID, TUR_TOKEN_ID, X1, X2, }; use sc_service::ChainType; -use sp_core::{sr25519, ByteArray, Pair, Public, H160}; +use sp_core::{sr25519, ByteArray, Pair, Public}; use sp_runtime::{ traits::{ConstU32, IdentifyAccount, Verify}, WeakBoundedVec, @@ -262,9 +261,7 @@ pub fn mangata_rococo_local_config() -> ChainSpec { // Initial relay account get_account_id_from_seed::("Relay"), // Sudo account - "0xec00ad0ec6eeb271a9689888f644d9262016a26a25314ff4ff5d756404c44112" - .parse() - .unwrap(), + get_account_id_from_seed::("Alice"), // Tokens endowment vec![ // MGA @@ -275,13 +272,6 @@ pub fn mangata_rococo_local_config() -> ChainSpec { ), // ETH (1u32, 0u128, get_account_id_from_seed::("Alice")), - ( - 0u32, - 400_000_000__000_000_000_000_000_000u128, - "0xec00ad0ec6eeb271a9689888f644d9262016a26a25314ff4ff5d756404c44112" - .parse() - .unwrap(), - ), ( 0u32, 100_000_000__000_000_000_000_000_000u128, diff --git a/node/src/cli.rs b/node/src/cli.rs index bf441e2a87..f1f2468f4a 100644 --- a/node/src/cli.rs +++ b/node/src/cli.rs @@ -41,8 +41,13 @@ pub enum Subcommand { #[clap(subcommand)] Benchmark(frame_benchmarking_cli::BenchmarkCmd), - /// Try some testing command against a specified runtime state. + /// Try some command against runtime state. + #[cfg(feature = "try-runtime")] TryRuntime(try_runtime_cli::TryRuntimeCmd), + + /// Try some command against runtime state. Note: `try-runtime` feature must be enabled. + #[cfg(not(feature = "try-runtime"))] + TryRuntime, } /// Command for exporting the genesis state of the parachain diff --git a/node/src/client.rs b/node/src/client.rs index 68fb4160f4..ac5943d6ed 100644 --- a/node/src/client.rs +++ b/node/src/client.rs @@ -258,15 +258,12 @@ impl sc_client_api::UsageProvider for Client { impl sc_client_api::BlockBackend for Client { fn block_body( &self, - id: &BlockId, + hash: ::Hash, ) -> sp_blockchain::Result::Extrinsic>>> { - match_client!(self, block_body(id)) + match_client!(self, block_body(hash)) } - fn block_indexed_body( - &self, - id: &BlockId, - ) -> sp_blockchain::Result>>> { + fn block_indexed_body(&self, id: H256) -> sp_blockchain::Result>>> { match_client!(self, block_indexed_body(id)) } @@ -278,7 +275,7 @@ impl sc_client_api::BlockBackend for Client { match_client!(self, block_status(id)) } - fn justifications(&self, id: &BlockId) -> sp_blockchain::Result> { + fn justifications(&self, id: H256) -> sp_blockchain::Result> { match_client!(self, justifications(id)) } @@ -291,14 +288,14 @@ impl sc_client_api::BlockBackend for Client { fn indexed_transaction( &self, - hash: &::Hash, + hash: ::Hash, ) -> sp_blockchain::Result>> { match_client!(self, indexed_transaction(hash)) } fn has_indexed_transaction( &self, - hash: &::Hash, + hash: ::Hash, ) -> sp_blockchain::Result { match_client!(self, has_indexed_transaction(hash)) } @@ -309,13 +306,13 @@ impl sc_client_api::BlockBackend for Client { } impl sc_client_api::StorageProvider for Client { - fn storage(&self, id: &H256, key: &StorageKey) -> sp_blockchain::Result> { + fn storage(&self, id: H256, key: &StorageKey) -> sp_blockchain::Result> { match_client!(self, storage(id, key)) } fn storage_keys( &self, - id: &H256, + id: H256, key_prefix: &StorageKey, ) -> sp_blockchain::Result> { match_client!(self, storage_keys(id, key_prefix)) @@ -323,7 +320,7 @@ impl sc_client_api::StorageProvider for Clie fn storage_hash( &self, - id: &H256, + id: H256, key: &StorageKey, ) -> sp_blockchain::Result::Hash>> { match_client!(self, storage_hash(id, key)) @@ -331,7 +328,7 @@ impl sc_client_api::StorageProvider for Clie fn storage_pairs( &self, - id: &H256, + id: H256, key_prefix: &StorageKey, ) -> sp_blockchain::Result> { match_client!(self, storage_pairs(id, key_prefix)) @@ -339,7 +336,7 @@ impl sc_client_api::StorageProvider for Clie fn storage_keys_iter<'a>( &self, - id: &H256, + id: H256, prefix: Option<&'a StorageKey>, start_key: Option<&StorageKey>, ) -> sp_blockchain::Result< @@ -354,7 +351,7 @@ impl sc_client_api::StorageProvider for Clie fn child_storage( &self, - id: &H256, + id: H256, child_info: &ChildInfo, key: &StorageKey, ) -> sp_blockchain::Result> { @@ -363,7 +360,7 @@ impl sc_client_api::StorageProvider for Clie fn child_storage_keys( &self, - id: &H256, + id: H256, child_info: &ChildInfo, key_prefix: &StorageKey, ) -> sp_blockchain::Result> { @@ -372,7 +369,7 @@ impl sc_client_api::StorageProvider for Clie fn child_storage_keys_iter<'a>( &self, - id: &H256, + id: H256, child_info: ChildInfo, prefix: Option<&'a StorageKey>, start_key: Option<&StorageKey>, @@ -388,7 +385,7 @@ impl sc_client_api::StorageProvider for Clie fn child_storage_hash( &self, - id: &H256, + id: H256, child_info: &ChildInfo, key: &StorageKey, ) -> sp_blockchain::Result::Hash>> { diff --git a/node/src/command.rs b/node/src/command.rs index fa93901e57..0edfc4524d 100644 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -9,21 +9,20 @@ use codec::Encode; use cumulus_client_cli::generate_genesis_block; use cumulus_primitives_core::ParaId; use frame_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE}; +use futures::executor::block_on; use log::info; +pub use mangata_types::Block; use sc_cli::{ ChainSpec, CliConfiguration, DefaultConfigurationValues, ImportParams, KeystoreParams, NetworkParams, Result, RuntimeVersion, SharedParams, SubstrateCli, }; -use sc_service::{ - config::{BasePath, PrometheusConfig}, - PartialComponents, -}; -use std::{cell::RefCell, rc::Rc, sync::Mutex}; +use sc_service::config::{BasePath, PrometheusConfig}; +use std::{cell::RefCell, rc::Rc}; use sp_core::hexdisplay::HexDisplay; use sp_runtime::traits::{AccountIdConversion, Block as BlockT}; -use std::{convert::TryInto, io::Write, net::SocketAddr, sync::Arc, time::Duration}; +use std::{convert::TryInto, io::Write, net::SocketAddr, time::Duration}; fn load_spec(id: &str) -> std::result::Result, String> { Ok(match id { @@ -369,18 +368,19 @@ pub fn run() -> Result<()> { config.runtime_cache_size, ); - let (c, backend, _, _) = sc_service::new_full_parts::< + let (c, _, _, _) = sc_service::new_full_parts::< mangata_types::Block, service::mangata_kusama_runtime::RuntimeApi, _, >(&config, None, executor)?; - let mut client = Rc::new(RefCell::new(c)); + let client = Rc::new(RefCell::new(c)); let ext_builder = BenchmarkExtrinsicBuilder::new(client.clone()); let first_block_inherent = - inherent_benchmark_data([0u8; 32], Duration::from_millis(0))?; + block_on(inherent_benchmark_data([0u8; 32], Duration::from_millis(0))) + .unwrap(); let first_block_seed = sp_ver::extract_inherent_data(&first_block_inherent) .map_err(|_| { @@ -389,10 +389,11 @@ pub fn run() -> Result<()> { )) })?; - let second_block_inherent = inherent_benchmark_data( + let second_block_inherent = block_on(inherent_benchmark_data( first_block_seed.seed.as_bytes().try_into().unwrap(), Duration::from_millis(12000), - )?; + )) + .unwrap(); cmd.run_ver( config, @@ -451,47 +452,40 @@ pub fn run() -> Result<()> { _ => panic!("invalid chain spec"), } }, - Some(Subcommand::TryRuntime(cmd)) => - if cfg!(feature = "try-runtime") { - let runner = cli.create_runner(cmd)?; - let chain_spec = &runner.config().chain_spec; + #[cfg(feature = "try-runtime")] + Some(Subcommand::TryRuntime(cmd)) => { + let runner = cli.create_runner(cmd)?; + let chain_spec = &runner.config().chain_spec; + use sc_executor::{sp_wasm_interface::ExtendedHostFunctions, NativeExecutionDispatch}; + type HostFunctionsOf = ExtendedHostFunctions< + sp_io::SubstrateHostFunctions, + ::ExtendHostFunctions, + >; + let registry = &runner.config().prometheus_config.as_ref().map(|cfg| &cfg.registry); + let task_manager = + sc_service::TaskManager::new(runner.config().tokio_handle.clone(), *registry) + .map_err(|e| format!("Error: {:?}", e))?; - match chain_spec { - #[cfg(feature = "mangata-kusama")] - spec if spec.is_mangata_kusama() => runner.async_run(|config| { - let registry = config.prometheus_config.as_ref().map(|cfg| &cfg.registry); - let task_manager = - sc_service::TaskManager::new(config.tokio_handle.clone(), registry) - .map_err(|e| { - sc_cli::Error::Service(sc_service::Error::Prometheus(e)) - })?; - - Ok(( - cmd.run::(config), + match chain_spec { + #[cfg(feature = "mangata-kusama")] + spec if spec.is_mangata_kusama() => runner.async_run(|_| { + Ok((cmd.run::>(), task_manager, )) - }), - #[cfg(feature = "mangata-rococo")] - spec if spec.is_mangata_rococo() => runner.async_run(|config| { - let registry = config.prometheus_config.as_ref().map(|cfg| &cfg.registry); - let task_manager = - sc_service::TaskManager::new(config.tokio_handle.clone(), registry) - .map_err(|e| { - sc_cli::Error::Service(sc_service::Error::Prometheus(e)) - })?; - - Ok(( - cmd.run::( - config, - ), + }), + #[cfg(feature = "mangata-rococo")] + spec if spec.is_mangata_rococo() => runner.async_run(|_| { + Ok((cmd.run::>() , task_manager, )) - }), - _ => panic!("invalid chain spec"), - } - } else { - Err("Try-runtime must be enabled by `--features try-runtime`.".into()) - }, + }), + _ => panic!("invalid chain spec"), + } + }, + #[cfg(not(feature = "try-runtime"))] + Some(Subcommand::TryRuntime) => Err("TryRuntime wasn't enabled when building the node. \ + You can enable it with `--features try-runtime`." + .into()), None => { let runner = cli.create_runner(&cli.run.normalize())?; let collator_options = cli.run.collator_options(); diff --git a/node/src/command_helper.rs b/node/src/command_helper.rs index cb3d21003b..27c0381a16 100644 --- a/node/src/command_helper.rs +++ b/node/src/command_helper.rs @@ -12,7 +12,7 @@ use sp_keystore::SyncCryptoStore; use sp_runtime::{generic, OpaqueExtrinsic, SaturatedConversion}; use substrate_frame_rpc_system::AccountNonceApi; -use std::{cell::RefCell, rc::Rc, sync::Arc, time::Duration}; +use std::{cell::RefCell, rc::Rc, time::Duration}; #[cfg(feature = "mangata-kusama")] pub type KusamaFullClient = crate::service::FullClient< @@ -124,7 +124,10 @@ impl frame_benchmarking_cli::ExtrinsicBuilder for BenchmarkExtrinsicBuilder { } /// Generates inherent data for the `benchmark overhead` command. -pub fn inherent_benchmark_data(prev_seed: [u8; 32], duration: Duration) -> Result { +pub async fn inherent_benchmark_data( + prev_seed: [u8; 32], + duration: Duration, +) -> Result { let keystore = sp_keystore::testing::KeyStore::new(); let secret_uri = "//Alice"; let key_pair = @@ -141,10 +144,12 @@ pub fn inherent_benchmark_data(prev_seed: [u8; 32], duration: Duration) -> Resul sp_timestamp::InherentDataProvider::new(duration.into()) .provide_inherent_data(&mut inherent_data) + .await .map_err(|e| format!("creating inherent data: {:?}", e))?; sp_ver::RandomSeedInherentDataProvider(seed) .provide_inherent_data(&mut inherent_data) + .await .map_err(|e| format!("creating inherent data: {:?}", e))?; cumulus_primitives_parachain_inherent::MockValidationDataInherentDataProvider { @@ -158,6 +163,7 @@ pub fn inherent_benchmark_data(prev_seed: [u8; 32], duration: Duration) -> Resul raw_horizontal_messages: Default::default(), } .provide_inherent_data(&mut inherent_data) + .await .map_err(|e| format!("creating inherent data: {:?}", e))?; Ok(inherent_data) diff --git a/node/src/service.rs b/node/src/service.rs index 1302a6d88d..d282e4c425 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -12,7 +12,9 @@ use mangata_types::{AccountId, Balance, Block, BlockNumber, Hash, Index as Nonce // Cumulus Imports use cumulus_client_consensus_aura::{AuraConsensus, BuildAuraConsensusParams, SlotProportion}; -use cumulus_client_consensus_common::ParachainConsensus; +use cumulus_client_consensus_common::{ + ParachainBlockImport as TParachainBlockImport, ParachainConsensus, +}; use cumulus_client_network::BlockAnnounceValidator; use cumulus_client_service::{ prepare_node_config, start_collator, start_full_node, StartCollatorParams, StartFullNodeParams, @@ -21,18 +23,17 @@ use cumulus_primitives_core::ParaId; use cumulus_relay_chain_inprocess_interface::build_inprocess_relay_chain; use cumulus_relay_chain_interface::{RelayChainError, RelayChainInterface, RelayChainResult}; use cumulus_relay_chain_minimal_node::build_minimal_relay_chain_node; -use cumulus_relay_chain_rpc_interface::{create_client_and_start_worker, RelayChainRpcInterface}; // Substrate Imports use crate::{ client::{Client, RuntimeApiCollection}, command::IdentifyVariant, }; -use sc_client_api::ExecutorProvider; +use sc_consensus::ImportQueue; use sc_executor::NativeElseWasmExecutor; use sc_network::NetworkService; pub use sc_service::ChainSpec; -use sc_service::{Configuration, PartialComponents, Role, TFullBackend, TFullClient, TaskManager}; +use sc_service::{Configuration, PartialComponents, TFullBackend, TFullClient, TaskManager}; use sc_telemetry::{Telemetry, TelemetryHandle, TelemetryWorker, TelemetryWorkerHandle}; use sp_api::ConstructRuntimeApi; use sp_keystore::SyncCryptoStorePtr; @@ -91,6 +92,9 @@ pub type FullClient = sc_service::TFullClient>; pub type FullBackend = TFullBackend; +pub type ParachainBlockImport = + TParachainBlockImport>, FullBackend>; + /// Builds a new object suitable for chain operations. #[allow(clippy::type_complexity)] pub fn new_chain_ops( @@ -152,7 +156,7 @@ where pub fn new_partial( config: &Configuration, ) -> Result< - PartialComponents< + sc_service::PartialComponents< TFullClient>, TFullBackend, (), @@ -164,7 +168,11 @@ pub fn new_partial( Block, TFullClient>, >, - (Option, Option), + ( + ParachainBlockImport, + Option, + Option, + ), >, sc_service::Error, > @@ -227,6 +235,8 @@ where ); let slot_duration = cumulus_client_consensus_aura::slot_duration(&*client)?; + let block_import = ParachainBlockImport::new(client.clone(), backend.clone()); + let import_queue = cumulus_client_consensus_aura::import_queue::< sp_consensus_aura::sr25519::AuthorityPair, _, @@ -235,7 +245,7 @@ where _, _, >(cumulus_client_consensus_aura::ImportQueueParams { - block_import: client.clone(), + block_import: block_import.clone(), client: client.clone(), create_inherent_data_providers: move |_, _| async move { let time = sp_timestamp::InherentDataProvider::from_system_time(); @@ -261,7 +271,7 @@ where task_manager, transaction_pool, select_chain: (), - other: (telemetry, telemetry_worker_handle), + other: (block_import, telemetry, telemetry_worker_handle), }; Ok(params) @@ -275,16 +285,21 @@ async fn build_relay_chain_interface( collator_options: CollatorOptions, hwbench: Option, ) -> RelayChainResult<(Arc<(dyn RelayChainInterface + 'static)>, Option)> { - match collator_options.relay_chain_rpc_url { - Some(relay_chain_url) => - build_minimal_relay_chain_node(polkadot_config, task_manager, relay_chain_url).await, - None => build_inprocess_relay_chain( + if !collator_options.relay_chain_rpc_urls.is_empty() { + build_minimal_relay_chain_node( + polkadot_config, + task_manager, + collator_options.relay_chain_rpc_urls, + ) + .await + } else { + build_inprocess_relay_chain( polkadot_config, parachain_config, telemetry_worker_handle, task_manager, hwbench, - ), + ) } } @@ -339,6 +354,7 @@ where + 'static, BIC: FnOnce( Arc>>, + ParachainBlockImport, Option<&Registry>, Option, &TaskManager, @@ -361,7 +377,7 @@ where // let c = params.client.clone(); // c.runtime_api().inherent_extrinsics(&at, InherentData::new()).unwrap(); - let (mut telemetry, telemetry_worker_handle) = params.other; + let (block_import, mut telemetry, telemetry_worker_handle) = params.other; let client = params.client.clone(); let backend = params.backend.clone(); @@ -387,14 +403,14 @@ where let validator = parachain_config.role.is_authority(); let prometheus_registry = parachain_config.prometheus_registry().cloned(); let transaction_pool = params.transaction_pool.clone(); - let import_queue = cumulus_client_service::SharedImportQueue::new(params.import_queue); + let import_queue_service = params.import_queue.service(); let (network, system_rpc_tx, tx_handler_controller, start_network) = sc_service::build_network(sc_service::BuildNetworkParams { config: ¶chain_config, client: client.clone(), transaction_pool: transaction_pool.clone(), spawn_handle: task_manager.spawn_handle(), - import_queue: import_queue.clone(), + import_queue: params.import_queue, block_announce_validator_builder: Some(Box::new(|_| { Box::new(block_announce_validator) })), @@ -453,6 +469,7 @@ where if validator { let parachain_consensus = build_consensus( client.clone(), + block_import, prometheus_registry.as_ref(), telemetry.as_ref().map(|t| t.handle()), &task_manager, @@ -474,7 +491,7 @@ where relay_chain_interface, spawner, parachain_consensus, - import_queue, + import_queue: import_queue_service, collator_key: collator_key.expect("Command line arguments do not allow this. qed"), relay_chain_slot_duration, }; @@ -488,7 +505,7 @@ where para_id: id, relay_chain_interface, relay_chain_slot_duration, - import_queue, + import_queue: import_queue_service, }; start_full_node(params)?; @@ -545,6 +562,7 @@ where id, |_| Ok(RpcModule::new(())), |client, + block_import, prometheus_registry, telemetry, task_manager, @@ -592,7 +610,7 @@ where Ok((slot, timestamp, parachain_inherent)) } }, - block_import: client.clone(), + block_import, para_client: client, backoff_authoring_blocks: Option::<()>::None, sync_oracle, diff --git a/pallets/bootstrap/Cargo.toml b/pallets/bootstrap/Cargo.toml index de8b282c80..ca07046933 100644 --- a/pallets/bootstrap/Cargo.toml +++ b/pallets/bootstrap/Cargo.toml @@ -19,8 +19,8 @@ frame-executive = { git = "https://github.com/mangata-finance/substrate", defaul frame-try-runtime = { git = "https://github.com/mangata-finance/substrate", default-features = false, optional = true , branch = "mangata-dev" } orml-tokens = { default-features = false, version="0.4.1-dev" , git = "https://github.com/mangata-finance/open-runtime-module-library", branch = "mangata-dev" } mangata-types = { git = "https://github.com/mangata-finance/substrate", default-features = false, branch = "mangata-dev" } -sp-core = { default-features = false, version = '6.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } -sp-std = { default-features = false, version = '4.0.0-dev' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-core = { default-features = false, version = '7.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-std = { default-features = false, version = '5.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } sp-runtime = { git = "https://github.com/mangata-finance/substrate", default-features = false, branch = "mangata-dev" } sp-io = { git = "https://github.com/mangata-finance/substrate", default-features = false, branch = "mangata-dev" } sp-arithmetic= { git = "https://github.com/mangata-finance/substrate", default-features = false, branch = "mangata-dev" } @@ -31,8 +31,8 @@ pallet-issuance = { path = "../issuance", default-features = false} [dev-dependencies] test-case = "2.0.2" -sp-core = { default-features = false, version = '6.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } -sp-io = { default-features = false, version = '6.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-core = { default-features = false, version = '7.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-io = { default-features = false, version = '7.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } orml-traits = { default-features = false, version="0.4.1-dev" , git = "https://github.com/mangata-finance/open-runtime-module-library", branch = "mangata-dev" } pallet-xyk = { path = "../xyk" } pallet-issuance = { path = "../issuance", default-features = false} @@ -40,6 +40,7 @@ mockall = "0.11.0" serial_test = "0.6.0" mp-traits = { path = "../../primitives/traits" } mp-multipurpose-liquidity = { path = "../../primitives/multipurpose-liquidity" } +lazy_static = "1.1.1" [features] diff --git a/pallets/bootstrap/src/lib.rs b/pallets/bootstrap/src/lib.rs index df6ee5a75b..ee85ae489f 100644 --- a/pallets/bootstrap/src/lib.rs +++ b/pallets/bootstrap/src/lib.rs @@ -134,7 +134,7 @@ use frame_support::{ transactional, PalletId, }; use frame_system::{ensure_root, ensure_signed, pallet_prelude::OriginFor}; -use mangata_types::{Balance, TokenId}; +use mangata_types::{traits::GetMaintenanceStatusTrait, Balance, TokenId}; use mp_bootstrap::{AssetRegistryApi, PoolCreateApi, RewardsApi}; use orml_tokens::{MultiTokenCurrencyExtended, MultiTokenReservableCurrency}; use pallet_vesting_mangata::MultiTokenVestingLocks; @@ -279,6 +279,8 @@ pub mod pallet { /// Because this pallet emits events, it depends on the runtime's definition of an event. type RuntimeEvent: From> + IsType<::RuntimeEvent>; + type MaintenanceStatusProvider: GetMaintenanceStatusTrait; + /// tokens type Currency: MultiTokenCurrencyExtended + MultiTokenReservableCurrency; @@ -386,6 +388,9 @@ pub mod pallet { // amount: Balance, // ) -> DispatchResult { // let sender = ensure_signed(origin)?; + // + // ensure!(!T::MaintenanceStatusProvider::is_maintenance(), Error::::ProvisioningBlockedByMaintenanceMode); + // // let (vesting_starting_block, vesting_ending_block_as_balance) = // <::VestingProvider>::unlock_tokens( // &sender, @@ -416,6 +421,7 @@ pub mod pallet { /// # Args: /// - `token_id` - id of the token to provision (should be one of the currently bootstraped pair([`ActivePair`])) /// - `amount` - amount of the token to provision + #[pallet::call_index(0)] #[pallet::weight(<::WeightInfo>::provision())] #[transactional] pub fn provision( @@ -424,6 +430,12 @@ pub mod pallet { amount: Balance, ) -> DispatchResult { let sender = ensure_signed(origin)?; + + ensure!( + !T::MaintenanceStatusProvider::is_maintenance(), + Error::::ProvisioningBlockedByMaintenanceMode + ); + Self::do_provision(&sender, token_id, amount, ProvisionKind::Regular)?; ProvisionAccounts::::insert(&sender, ()); Self::deposit_event(Event::Provisioned(token_id, amount)); @@ -432,6 +444,7 @@ pub mod pallet { /// Allows for whitelisting accounts, so they can participate in during whitelist phase. The list of /// account is extended with every subsequent call + #[pallet::call_index(1)] #[pallet::weight(T::DbWeight::get().writes(1) * (accounts.len() as u64))] #[transactional] pub fn whitelist_accounts( @@ -500,6 +513,7 @@ pub mod pallet { /// ----------------------------------------------------------------------- <= ------------------ /// all previous second token participations + second token participations 1 /// ``` + #[pallet::call_index(2)] #[pallet::weight(<::WeightInfo>::schedule_bootstrap())] #[transactional] pub fn schedule_bootstrap( @@ -577,6 +591,7 @@ pub mod pallet { } /// Used to cancel active bootstrap. Can only be called before bootstrap is actually started + #[pallet::call_index(3)] #[pallet::weight(T::DbWeight::get().reads_writes(3, 4).saturating_add(Weight::from_ref_time(1_000_000)))] #[transactional] pub fn cancel_bootstrap(origin: OriginFor) -> DispatchResult { @@ -603,6 +618,7 @@ pub mod pallet { Ok(()) } + #[pallet::call_index(4)] #[pallet::weight(T::DbWeight::get().reads_writes(2, 1).saturating_add(Weight::from_ref_time(1_000_000)))] #[transactional] // can be used to enable or disable automatic pool promotion of liquidity pool. Updates [`PromoteBootstrapPool`] @@ -624,6 +640,7 @@ pub mod pallet { } /// When bootstrap is in [`BootstrapPhase::Finished`] state user can claim his part of liquidity tokens. + #[pallet::call_index(5)] #[pallet::weight(<::WeightInfo>::claim_and_activate_liquidity_tokens())] #[transactional] pub fn claim_liquidity_tokens(origin: OriginFor) -> DispatchResult { @@ -632,6 +649,7 @@ pub mod pallet { } /// When bootstrap is in [`BootstrapPhase::Finished`] state user can claim his part of liquidity tokens comparing to `claim_liquidity_tokens` when calling `claim_and_activate_liquidity_tokens` tokens will be automatically activated. + #[pallet::call_index(6)] #[pallet::weight(<::WeightInfo>::claim_and_activate_liquidity_tokens())] #[transactional] pub fn claim_and_activate_liquidity_tokens(origin: OriginFor) -> DispatchResult { @@ -648,6 +666,7 @@ pub mod pallet { /// /// **!!! Cleaning up storage is complex operation and pruning all storage items related to particular /// bootstrap might not fit in a single block. As a result tx can be rejected !!!** + #[pallet::call_index(7)] #[pallet::weight(<::WeightInfo>::finalize().saturating_add(T::DbWeight::get().reads_writes(1, 1).saturating_mul(Into::::into(*limit).saturating_add(u64::one()))))] #[transactional] pub fn finalize(origin: OriginFor, mut limit: u32) -> DispatchResult { @@ -723,6 +742,7 @@ pub mod pallet { /// calling [`Pallet::claim_liquidity_tokens_for_account`] by some other account and calling [`Pallet::claim_liquidity_tokens`] directly by that account is account that will be charged for transaction fee. /// # Args: /// - `other` - account in behalf of which liquidity tokens should be claimed + #[pallet::call_index(8)] #[pallet::weight(<::WeightInfo>::claim_and_activate_liquidity_tokens())] #[transactional] pub fn claim_liquidity_tokens_for_account( @@ -781,6 +801,8 @@ pub mod pallet { /// Bootstrap can only be updated or cancelled /// BootstrapUpdateBuffer blocks or more before bootstrap start TooLateToUpdateBootstrap, + /// Bootstrap provisioning blocked by maintenance mode + ProvisioningBlockedByMaintenanceMode, } #[pallet::event] diff --git a/pallets/bootstrap/src/mock.rs b/pallets/bootstrap/src/mock.rs index ee2ecdc0a8..09457a4b43 100644 --- a/pallets/bootstrap/src/mock.rs +++ b/pallets/bootstrap/src/mock.rs @@ -33,6 +33,7 @@ use orml_traits::parameter_type_with_key; use pallet_xyk::AssetMetadataMutationTrait; use sp_runtime::{Perbill, Percent}; use sp_std::convert::TryFrom; +use std::sync::Mutex; pub(crate) type AccountId = u128; @@ -94,16 +95,11 @@ impl orml_tokens::Config for Test { type CurrencyId = TokenId; type WeightInfo = (); type ExistentialDeposits = ExistentialDeposits; - type OnDust = (); type MaxLocks = MaxLocks; type DustRemovalWhitelist = DustRemovalWhitelist; - type OnSlash = (); - type OnDeposit = (); - type OnTransfer = (); type MaxReserves = (); - type OnNewTokenAccount = (); - type OnKilledTokenAccount = (); type ReserveIdentifier = [u8; 8]; + type CurrencyHooks = (); } parameter_types! { @@ -153,6 +149,7 @@ impl AssetMetadataMutationTrait for AssetMetadataMutation { impl pallet_xyk::Config for Test { type RuntimeEvent = RuntimeEvent; + type MaintenanceStatusProvider = MockMaintenanceStatusProvider; type ActivationReservesProvider = TokensActivationPassthrough; type Currency = MultiTokenCurrencyAdapter; type NativeCurrencyId = NativeCurrencyId; @@ -297,6 +294,40 @@ impl AssetRegistryApi for AssetRegistry { } } +pub struct MockMaintenanceStatusProvider; + +lazy_static::lazy_static! { + static ref MAINTENANCE_STATUS: Mutex = { + let m: bool = false; + Mutex::new(m) + }; +} + +#[cfg(test)] +impl MockMaintenanceStatusProvider { + pub fn instance() -> &'static Mutex { + &MAINTENANCE_STATUS + } +} + +impl MockMaintenanceStatusProvider { + pub fn set_maintenance(value: bool) { + let mut mutex = Self::instance().lock().unwrap(); + *mutex = value; + } +} + +impl GetMaintenanceStatusTrait for MockMaintenanceStatusProvider { + fn is_maintenance() -> bool { + let mutex = Self::instance().lock().unwrap(); + *mutex + } + + fn is_upgradable() -> bool { + unimplemented!() + } +} + parameter_types! { pub const BootstrapUpdateBuffer: ::BlockNumber = 10; pub const DefaultBootstrapPromotedPoolWeight: u8 = 1u8; @@ -306,6 +337,7 @@ parameter_types! { // NOTE: use PoolCreateApi mock for unit testing purposes impl pallet_bootstrap::Config for Test { type RuntimeEvent = RuntimeEvent; + type MaintenanceStatusProvider = MockMaintenanceStatusProvider; type PoolCreateApi = MockPoolCreateApi; type DefaultBootstrapPromotedPoolWeight = DefaultBootstrapPromotedPoolWeight; type BootstrapUpdateBuffer = BootstrapUpdateBuffer; @@ -321,6 +353,7 @@ impl pallet_bootstrap::Config for Test { // NOTE: use Xyk as PoolCreateApi for benchmarking purposes impl pallet_bootstrap::Config for Test { type RuntimeEvent = RuntimeEvent; + type MaintenanceStatusProvider = MockMaintenanceStatusProvider; type PoolCreateApi = Xyk; type DefaultBootstrapPromotedPoolWeight = DefaultBootstrapPromotedPoolWeight; type BootstrapUpdateBuffer = BootstrapUpdateBuffer; @@ -409,6 +442,9 @@ pub fn new_test_ext() -> sp_io::TestExternalities { .expect("Frame system builds valid default genesis config"); let mut ext = sp_io::TestExternalities::new(t); - ext.execute_with(|| System::set_block_number(1)); + ext.execute_with(|| { + System::set_block_number(1); + MockMaintenanceStatusProvider::set_maintenance(false); + }); ext } diff --git a/pallets/bootstrap/src/tests.rs b/pallets/bootstrap/src/tests.rs index d0edafdd67..5f8af61f4c 100644 --- a/pallets/bootstrap/src/tests.rs +++ b/pallets/bootstrap/src/tests.rs @@ -2409,3 +2409,38 @@ fn test_pool_bootstrap_finalize_continues_if_asset_metadata_update_fails() { assert_eq!(BootstrapPhase::Finished, Phase::::get()); }); } + +#[test] +#[serial] +fn provisions_not_allowed_in_maintenance_mode() { + new_test_ext().execute_with(|| { + // ARRANGE - USER provides vested MGA tokens, ANOTHER_USER provides KSM tokens + set_up(); + jump_to_public_phase(); + + MockMaintenanceStatusProvider::set_maintenance(true); + + assert_err!( + Bootstrap::provision(RuntimeOrigin::signed(0), 0, 10000), + Error::::ProvisioningBlockedByMaintenanceMode + ); + }); +} + +// #[test] +// #[serial] +// fn vested_provisions_not_allowed_in_maintenance_mode() { +// new_test_ext().execute_with(|| { +// // ARRANGE - USER provides vested MGA tokens, ANOTHER_USER provides KSM tokens +// set_up(); +// jump_to_public_phase(); + +// MockMaintenanceStatusProvider::set_maintenance(true); + +// assert_err!( +// Bootstrap::provision_vested(RuntimeOrigin::signed(0), 0, 10000), +// Error::::ProvisioningBlockedByMaintenanceMode +// ); + +// }); +// } diff --git a/pallets/fee-lock/Cargo.toml b/pallets/fee-lock/Cargo.toml index ba43e8479e..1051448eac 100644 --- a/pallets/fee-lock/Cargo.toml +++ b/pallets/fee-lock/Cargo.toml @@ -18,18 +18,19 @@ scale-info = { version = "2.1.1", default-features = false, features = ["derive" frame-support = { default-features = false, version = '4.0.0-dev' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } frame-benchmarking = { default-features = false, version = '4.0.0-dev' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } frame-system = { default-features = false, version = '4.0.0-dev' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } -sp-runtime = { default-features = false, version = '6.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } -sp-core = { default-features = false, version = '6.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } -sp-std = { version = "4.0.0-dev", default-features = false , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-runtime = { default-features = false, version = '7.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-core = { default-features = false, version = '7.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-std = { version = "5.0.0", default-features = false , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } mangata-types = { default-features = false, git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } orml-tokens = { default-features = false, version = '0.4.1-dev' , git = "https://github.com/mangata-finance/open-runtime-module-library", branch = "mangata-dev" } pallet-xyk = { path = '../xyk/', default-features = false} + mp-traits = { path = '../../primitives/traits', default-features = false} -sp-arithmetic = { default-features = false, version = '5.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-arithmetic = { default-features = false, version = '6.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } [dev-dependencies] orml-traits = { default-features = false, version="0.4.1-dev" , git = "https://github.com/mangata-finance/open-runtime-module-library", branch = "mangata-dev" } -sp-io = { default-features = false, version = '6.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-io = { default-features = false, version = '7.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } lazy_static = "1.1.1" env_logger = "0.9.0" serial_test = { version = "0.6.0", default-features = false } diff --git a/pallets/fee-lock/src/benchmarking.rs b/pallets/fee-lock/src/benchmarking.rs index 12717e960b..bc4a1e526b 100644 --- a/pallets/fee-lock/src/benchmarking.rs +++ b/pallets/fee-lock/src/benchmarking.rs @@ -22,9 +22,10 @@ use super::*; use frame_benchmarking::{benchmarks, whitelisted_caller}; -use frame_support::{assert_err, assert_ok, traits::tokens::currency::MultiTokenCurrency}; +use frame_support::{assert_ok, traits::tokens::currency::MultiTokenCurrency}; use frame_system::RawOrigin; use orml_tokens::MultiTokenCurrencyExtended; + use sp_std::collections::btree_set::BTreeSet; use crate::Pallet as FeeLock; diff --git a/pallets/fee-lock/src/lib.rs b/pallets/fee-lock/src/lib.rs index 82d779a854..53385bce27 100644 --- a/pallets/fee-lock/src/lib.rs +++ b/pallets/fee-lock/src/lib.rs @@ -16,7 +16,7 @@ use pallet_xyk::Valuate; use sp_arithmetic::per_things::Rounding; use sp_runtime::helpers_128bit::multiply_by_rational_with_rounding; -use sp_runtime::traits::{CheckedDiv, Zero}; +use sp_runtime::{traits::Zero, Saturating}; use sp_std::{convert::TryInto, prelude::*}; #[cfg(test)] @@ -144,6 +144,7 @@ pub mod pallet { #[pallet::call] impl Pallet { // The weight is calculated using MaxCuratedTokens so it is the worst case weight + #[pallet::call_index(0)] #[transactional] #[pallet::weight(T::WeightInfo::update_fee_lock_metadata())] pub fn update_fee_lock_metadata( @@ -203,6 +204,7 @@ pub mod pallet { Ok(().into()) } + #[pallet::call_index(1)] #[transactional] #[pallet::weight(T::WeightInfo::unlock_fee())] pub fn unlock_fee(origin: OriginFor) -> DispatchResultWithPostInfo { @@ -258,18 +260,14 @@ impl FeeLockTriggerTrait for Pallet { let mut account_fee_lock_data = Self::get_account_fee_lock_data(who); let now = >::block_number(); - let current_period = now - .checked_div(&fee_lock_metadata.period_length) - .ok_or(Error::::FeeLocksIncorrectlyInitialzed)?; - let last_fee_lock_block_period = account_fee_lock_data - .last_fee_lock_block - .checked_div(&fee_lock_metadata.period_length) - .ok_or(Error::::FeeLocksIncorrectlyInitialzed)?; - // This is cause now >= last_fee_lock_block - ensure!(current_period >= last_fee_lock_block_period, Error::::UnexpectedFailure); + ensure!(now >= account_fee_lock_data.last_fee_lock_block, Error::::UnexpectedFailure); - if current_period == last_fee_lock_block_period { + if now < + account_fee_lock_data + .last_fee_lock_block + .saturating_add(fee_lock_metadata.period_length) + { // First storage edit // Cannot fail beyond this point // Rerserve additional fee_lock_amount @@ -332,15 +330,12 @@ impl FeeLockTriggerTrait for Pallet { let now = >::block_number(); - let current_period = now - .checked_div(&fee_lock_metadata.period_length) - .ok_or(Error::::FeeLocksIncorrectlyInitialzed)?; - let last_fee_lock_block_period = account_fee_lock_data - .last_fee_lock_block - .checked_div(&fee_lock_metadata.period_length) - .ok_or(Error::::FeeLocksIncorrectlyInitialzed)?; - - ensure!(current_period > last_fee_lock_block_period, Error::::CantUnlockFeeYet); + ensure!( + now >= account_fee_lock_data + .last_fee_lock_block + .saturating_add(fee_lock_metadata.period_length), + Error::::CantUnlockFeeYet + ); Ok(()) } @@ -358,15 +353,12 @@ impl FeeLockTriggerTrait for Pallet { let now = >::block_number(); - let current_period = now - .checked_div(&fee_lock_metadata.period_length) - .ok_or(Error::::FeeLocksIncorrectlyInitialzed)?; - let last_fee_lock_block_period = account_fee_lock_data - .last_fee_lock_block - .checked_div(&fee_lock_metadata.period_length) - .ok_or(Error::::FeeLocksIncorrectlyInitialzed)?; - - ensure!(current_period > last_fee_lock_block_period, Error::::CantUnlockFeeYet); + ensure!( + now >= account_fee_lock_data + .last_fee_lock_block + .saturating_add(fee_lock_metadata.period_length), + Error::::CantUnlockFeeYet + ); let unreserve_result = ::Tokens::unreserve( ::NativeTokenId::get().into(), diff --git a/pallets/fee-lock/src/mock.rs b/pallets/fee-lock/src/mock.rs index 92f54abed2..2e58189947 100644 --- a/pallets/fee-lock/src/mock.rs +++ b/pallets/fee-lock/src/mock.rs @@ -96,16 +96,11 @@ impl orml_tokens::Config for Test { type CurrencyId = TokenId; type WeightInfo = (); type ExistentialDeposits = ExistentialDeposits; - type OnDust = (); type MaxLocks = MaxLocks; type DustRemovalWhitelist = DustRemovalWhitelist; - type OnSlash = (); - type OnDeposit = (); - type OnTransfer = (); type MaxReserves = (); - type OnNewTokenAccount = (); - type OnKilledTokenAccount = (); type ReserveIdentifier = [u8; 8]; + type CurrencyHooks = (); } parameter_types! { diff --git a/pallets/issuance/Cargo.toml b/pallets/issuance/Cargo.toml index d84bfdedc2..2d2dc10a3a 100644 --- a/pallets/issuance/Cargo.toml +++ b/pallets/issuance/Cargo.toml @@ -19,16 +19,16 @@ frame-executive = { git = "https://github.com/mangata-finance/substrate", defaul frame-try-runtime = { git = "https://github.com/mangata-finance/substrate", default-features = false, optional = true , branch = "mangata-dev" } orml-tokens = { default-features = false, version="0.4.1-dev" , git = "https://github.com/mangata-finance/open-runtime-module-library", branch = "mangata-dev" } mangata-types = { git = "https://github.com/mangata-finance/substrate", default-features = false, branch = "mangata-dev" } -sp-std = { default-features = false, version = '4.0.0-dev' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-std = { default-features = false, version = '5.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } sp-runtime = { git = "https://github.com/mangata-finance/substrate", default-features = false, branch = "mangata-dev" } pallet-vesting-mangata = { git = "https://github.com/mangata-finance/substrate", default-features = false, branch = "mangata-dev" } frame-benchmarking = { git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev", optional = true, default-features = false } cfg-if = "1.0.0" -sp-core = { default-features = false, version = '6.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-core = { default-features = false, version = '7.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } [dev-dependencies] -sp-io = { default-features = false, version = '6.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-io = { default-features = false, version = '7.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } orml-traits = { default-features = false, version="0.4.1-dev" , git = "https://github.com/mangata-finance/open-runtime-module-library", branch = "mangata-dev" } lazy_static = "1.1.1" diff --git a/pallets/issuance/src/lib.rs b/pallets/issuance/src/lib.rs index 3483afe0aa..b4422a4c87 100644 --- a/pallets/issuance/src/lib.rs +++ b/pallets/issuance/src/lib.rs @@ -236,12 +236,14 @@ pub mod pallet { // XYK extrinsics. #[pallet::call] impl Pallet { + #[pallet::call_index(0)] #[pallet::weight(T::WeightInfo::init_issuance_config())] pub fn init_issuance_config(origin: OriginFor) -> DispatchResultWithPostInfo { ensure_root(origin)?; Self::do_init_issuance_config() } + #[pallet::call_index(1)] #[pallet::weight(T::WeightInfo::finalize_tge())] pub fn finalize_tge(origin: OriginFor) -> DispatchResultWithPostInfo { ensure_root(origin)?; @@ -255,6 +257,7 @@ pub mod pallet { Ok(().into()) } + #[pallet::call_index(2)] #[pallet::weight(T::WeightInfo::execute_tge(tge_infos.len() as u32))] pub fn execute_tge( origin: OriginFor, @@ -552,16 +555,12 @@ impl Pallet { }, ); - let activated_pools_len = activated_pools.len() as u128; - for (token_id, weight, rewards, activated_amount) in activated_pools { let liquidity_mining_issuance_for_pool = match maybe_total_weight { Some(total_weight) if !total_weight.is_zero() => Perbill::from_rational(weight.into(), total_weight) .mul_floor(liquidity_mining_issuance), - _ => liquidity_mining_issuance - .checked_div(activated_pools_len) - .unwrap_or(liquidity_mining_issuance), + _ => Balance::zero(), }; let rewards_for_liquidity: U256 = U256::from(liquidity_mining_issuance_for_pool) diff --git a/pallets/issuance/src/mock.rs b/pallets/issuance/src/mock.rs index a21f1372fb..0c0495d00c 100644 --- a/pallets/issuance/src/mock.rs +++ b/pallets/issuance/src/mock.rs @@ -97,16 +97,11 @@ impl orml_tokens::Config for Test { type CurrencyId = TokenId; type WeightInfo = (); type ExistentialDeposits = ExistentialDeposits; - type OnDust = (); type MaxLocks = MaxLocks; type DustRemovalWhitelist = DustRemovalWhitelist; - type OnSlash = (); - type OnDeposit = (); - type OnTransfer = (); type MaxReserves = (); - type OnNewTokenAccount = (); - type OnKilledTokenAccount = (); type ReserveIdentifier = [u8; 8]; + type CurrencyHooks = (); } parameter_types! { @@ -134,7 +129,6 @@ lazy_static::lazy_static! { }; } -pub struct MockPromotedPoolApi; pub struct MockActivedPoolQueryApi; #[cfg(test)] diff --git a/pallets/maintenance/Cargo.toml b/pallets/maintenance/Cargo.toml new file mode 100644 index 0000000000..0e8c0f493f --- /dev/null +++ b/pallets/maintenance/Cargo.toml @@ -0,0 +1,56 @@ +[package] +authors = ['Mangata team'] +edition = '2018' +name = 'pallet-maintenance' +version = '0.1.0' + +[package.metadata.docs.rs] +targets = ['x86_64-unknown-linux-gnu'] + +[dependencies] +log = { version = "0.4.14", default-features = false } +hex = { package = "rustc-hex", version = "2.1.0", default-features = false } +hex-literal = { version = "0.3.3", default-features = false } +serde = { version = "1.0.126", optional = true } +codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false } +scale-info = { version = "2.1.1", default-features = false, features = ["derive"] } + +frame-support = { default-features = false, version = '4.0.0-dev' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +frame-benchmarking = { default-features = false, version = '4.0.0-dev' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +frame-system = { default-features = false, version = '4.0.0-dev' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-runtime = { default-features = false, version = '7.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-core = { default-features = false, version = '7.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-std = { version = "5.0.0", default-features = false , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +mangata-types = { default-features = false, git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +orml-tokens = { default-features = false, version = '0.4.1-dev' , git = "https://github.com/mangata-finance/open-runtime-module-library", branch = "mangata-dev" } + +mp-traits = { path = '../../primitives/traits', default-features = false} + +[dev-dependencies] +orml-traits = { default-features = false, version="0.4.1-dev" , git = "https://github.com/mangata-finance/open-runtime-module-library", branch = "mangata-dev" } +sp-io = { default-features = false, version = '7.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +lazy_static = "1.1.1" +env_logger = "0.9.0" +serial_test = { version = "0.6.0", default-features = false } + +[features] +default = ['std'] +enable-trading = [] +std = [ + 'hex/std', + 'serde', + 'codec/std', + 'sp-std/std', + 'sp-core/std', + "sp-runtime/std", + 'frame-support/std', + 'frame-system/std', + "frame-benchmarking/std", + 'orml-tokens/std', + "frame-benchmarking/std", + "mp-traits/std", +] + +runtime-benchmarks = ["frame-benchmarking/runtime-benchmarks"] + +try-runtime = [ "frame-support/try-runtime" ] diff --git a/pallets/maintenance/src/benchmarking.rs b/pallets/maintenance/src/benchmarking.rs new file mode 100644 index 0000000000..c5e947caec --- /dev/null +++ b/pallets/maintenance/src/benchmarking.rs @@ -0,0 +1,110 @@ +// This file is part of Substrate. + +// Copyright (C) 2020-2022 Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! TokenTimeout pallet benchmarking. + +#![cfg(feature = "runtime-benchmarks")] + +use super::*; + +use frame_benchmarking::{benchmarks, whitelisted_caller}; +use frame_support::{assert_err, assert_ok, traits::tokens::currency::MultiTokenCurrency}; +use frame_system::RawOrigin; +use orml_tokens::MultiTokenCurrencyExtended; +use sp_std::collections::btree_map::BTreeMap; + +use crate::Pallet as TokenTimeout; + +const MGA_TOKEN_ID: TokenId = 0; + +benchmarks! { + + update_timeout_metadata{ + let period_length: T::BlockNumber = 1000u32.into(); + let timeout_amount: Balance = 1000; + let mut swap_value_thresholds_vec: Vec<(TokenId, Option)> = Vec::new(); + for i in 0..::MaxCuratedTokens::get() { + swap_value_thresholds_vec.push((i, Some(i.into()))); + } + }: {assert_ok!(TokenTimeout::::update_timeout_metadata(RawOrigin::Root.into(), Some(period_length), Some(timeout_amount), Some(swap_value_thresholds_vec)));} + verify{ + assert_eq!(TokenTimeout::::get_timeout_metadata().unwrap().period_length, period_length); + assert_eq!(TokenTimeout::::get_timeout_metadata().unwrap().timeout_amount, timeout_amount); + assert_eq!(TokenTimeout::::get_timeout_metadata().unwrap().swap_value_threshold.len(), ::MaxCuratedTokens::get() as usize); + } + + release_timeout{ + + let caller: T::AccountId = whitelisted_caller(); + let period_length: T::BlockNumber = 10u32.into(); + let timeout_amount: Balance = 1000; + + let now= >::block_number(); + let token_id = MGA_TOKEN_ID; + + if ::Tokens::get_next_currency_id().into() > TokenId::from(MGA_TOKEN_ID){ + assert_ok!(::Tokens::mint(token_id.into(), &caller.clone(), 1_000_000u128.into())); + } else { + assert_eq!(::Tokens::create(&caller.clone(), 1_000_000u128.into()).unwrap().into(), token_id); + } + + let initial_user_free_balance:Balance = ::Tokens::free_balance(token_id.into(), &caller.clone()).into(); + let initial_user_reserved_balance:Balance = ::Tokens::reserved_balance(token_id.into(), &caller.clone()).into(); + let initial_user_locked_balance:Balance = ::Tokens::locked_balance(token_id.into(), &caller.clone()).into(); + + assert_ok!(TokenTimeout::::update_timeout_metadata(RawOrigin::Root.into(), Some(period_length), Some(timeout_amount), None)); + + assert_eq!(TokenTimeout::::get_timeout_metadata().unwrap().period_length, period_length); + assert_eq!(TokenTimeout::::get_timeout_metadata().unwrap().timeout_amount, timeout_amount); + assert_eq!(TokenTimeout::::get_timeout_metadata().unwrap().swap_value_threshold.len(), 0u32 as usize); + + assert_ok!( + as TimeoutTriggerTrait<_>>::process_timeout(&caller) + ); + + assert_eq!(::Tokens::free_balance(token_id.into(), &caller.clone()).into(), + initial_user_free_balance - timeout_amount); + assert_eq!(::Tokens::reserved_balance(token_id.into(), &caller.clone()).into(), + initial_user_reserved_balance + timeout_amount); + assert_eq!(::Tokens::locked_balance(token_id.into(), &caller.clone()).into(), + initial_user_locked_balance); + + assert_eq!(TokenTimeout::::get_account_timeout_data(caller.clone()), AccountTimeoutDataInfo{ + total_timeout_amount: timeout_amount, + last_timeout_block: now, + }); + + frame_system::Pallet::::set_block_number(now + period_length); + + }: {assert_ok!(TokenTimeout::::release_timeout(RawOrigin::Signed(caller.clone().into()).into()));} + verify{ + assert_eq!(::Tokens::free_balance(token_id.into(), &caller.clone()).into(), + initial_user_free_balance); + assert_eq!(::Tokens::reserved_balance(token_id.into(), &caller.clone()).into(), + initial_user_reserved_balance); + assert_eq!(::Tokens::locked_balance(token_id.into(), &caller.clone()).into(), + initial_user_locked_balance); + + assert_eq!(TokenTimeout::::get_account_timeout_data(caller.clone()), AccountTimeoutDataInfo{ + total_timeout_amount: 0, + last_timeout_block: 0u32.into(), + }); + } + + + impl_benchmark_test_suite!(TokenTimeout, crate::mock::new_test_ext(), crate::mock::Test) +} diff --git a/pallets/maintenance/src/lib.rs b/pallets/maintenance/src/lib.rs new file mode 100644 index 0000000000..87f7dd46ad --- /dev/null +++ b/pallets/maintenance/src/lib.rs @@ -0,0 +1,226 @@ +#![cfg_attr(not(feature = "std"), no_std)] + +use frame_support::{ + dispatch::DispatchResult, + ensure, + pallet_prelude::*, + storage::bounded_btree_map::BoundedBTreeMap, + traits::{Get, StorageVersion}, + transactional, +}; +use frame_system::{ensure_signed, pallet_prelude::*}; +use mangata_types::{traits::GetMaintenanceStatusTrait, Balance, TokenId}; +use orml_tokens::{MultiTokenCurrencyExtended, MultiTokenReservableCurrency}; + +use sp_runtime::traits::{CheckedDiv, Zero}; +use sp_std::{convert::TryInto, prelude::*}; + +#[cfg(test)] +mod mock; +#[cfg(test)] +mod tests; + +pub(crate) const LOG_TARGET: &'static str = "maintenance"; + +// syntactic sugar for logging. +#[macro_export] +macro_rules! log { + ($level:tt, $patter:expr $(, $values:expr)* $(,)?) => { + log::$level!( + target: crate::LOG_TARGET, + concat!("[{:?}] 💸 ", $patter), >::block_number() $(, $values)* + ) + }; +} + +pub use pallet::*; + +#[frame_support::pallet] +pub mod pallet { + + use super::*; + + const STORAGE_VERSION: StorageVersion = StorageVersion::new(0); + + #[pallet::pallet] + #[pallet::generate_store(pub(super) trait Store)] + #[pallet::storage_version(STORAGE_VERSION)] + pub struct Pallet(PhantomData); + + #[pallet::hooks] + impl Hooks for Pallet {} + + #[derive( + Eq, PartialEq, RuntimeDebug, Clone, Encode, Decode, MaxEncodedLen, TypeInfo, Default, + )] + pub struct MaintenanceStatusInfo { + pub is_maintenance: bool, + pub is_upgradable_in_maintenance: bool, + } + + #[pallet::storage] + #[pallet::getter(fn get_maintenance_status)] + pub type MaintenanceStatus = StorageValue<_, MaintenanceStatusInfo, ValueQuery>; + + #[pallet::event] + #[pallet::generate_deposit(pub(super) fn deposit_event)] + pub enum Event { + /// Maintenance mode has been switched on + MaintenanceModeSwitchedOn(T::AccountId), + /// Maintenance mode has been switched off + MaintenanceModeSwitchedOff(T::AccountId), + /// Upgradablilty in maintenance mode has been switched on + UpgradabilityInMaintenanceModeSwitchedOn(T::AccountId), + /// Upgradablilty in maintenance mode has been switched off + UpgradabilityInMaintenanceModeSwitchedOff(T::AccountId), + } + + #[pallet::error] + /// Errors + pub enum Error { + /// Timeouts were incorrectly initialized + NotFoundationAccount, + /// Not in maintenance mode + NotInMaintenanceMode, + /// Already in maintenance mode + AlreadyInMaintenanceMode, + /// Already upgradable in maintenance mode + AlreadyUpgradableInMaintenanceMode, + /// Already not upgradable in maintenance mode + AlreadyNotUpgradableInMaintenanceMode, + } + + #[pallet::config] + pub trait Config: frame_system::Config { + type RuntimeEvent: From> + IsType<::RuntimeEvent>; + type FoundationAccountsProvider: Get>; + } + + #[pallet::call] + impl Pallet { + #[pallet::weight(T::DbWeight::get().reads_writes(1, 1).saturating_add(Weight::from_ref_time(40_000_000)))] + pub fn switch_maintenance_mode_on(origin: OriginFor) -> DispatchResultWithPostInfo { + let caller = ensure_signed(origin)?; + + ensure!( + T::FoundationAccountsProvider::get().contains(&caller), + Error::::NotFoundationAccount + ); + + let current_maintenance_status = MaintenanceStatus::::get(); + + ensure!( + !current_maintenance_status.is_maintenance, + Error::::AlreadyInMaintenanceMode + ); + + let mut maintenance_status = + MaintenanceStatusInfo { is_maintenance: true, is_upgradable_in_maintenance: false }; + + MaintenanceStatus::::put(maintenance_status); + + Pallet::::deposit_event(Event::MaintenanceModeSwitchedOn(caller)); + + Ok(().into()) + } + + #[pallet::weight(T::DbWeight::get().reads_writes(1, 1).saturating_add(Weight::from_ref_time(40_000_000)))] + pub fn switch_maintenance_mode_off(origin: OriginFor) -> DispatchResultWithPostInfo { + let caller = ensure_signed(origin)?; + + ensure!( + T::FoundationAccountsProvider::get().contains(&caller), + Error::::NotFoundationAccount + ); + + let current_maintenance_status = MaintenanceStatus::::get(); + + ensure!(current_maintenance_status.is_maintenance, Error::::NotInMaintenanceMode); + + let mut maintenance_status = MaintenanceStatusInfo { + is_maintenance: false, + is_upgradable_in_maintenance: false, + }; + + MaintenanceStatus::::put(maintenance_status); + + Pallet::::deposit_event(Event::MaintenanceModeSwitchedOff(caller)); + + Ok(().into()) + } + + #[pallet::weight(T::DbWeight::get().reads_writes(1, 1).saturating_add(Weight::from_ref_time(40_000_000)))] + pub fn switch_upgradability_in_maintenance_mode_on( + origin: OriginFor, + ) -> DispatchResultWithPostInfo { + let caller = ensure_signed(origin)?; + + ensure!( + T::FoundationAccountsProvider::get().contains(&caller), + Error::::NotFoundationAccount + ); + + let current_maintenance_status = MaintenanceStatus::::get(); + + ensure!(current_maintenance_status.is_maintenance, Error::::NotInMaintenanceMode); + + ensure!( + !current_maintenance_status.is_upgradable_in_maintenance, + Error::::AlreadyUpgradableInMaintenanceMode + ); + + let mut maintenance_status = + MaintenanceStatusInfo { is_maintenance: true, is_upgradable_in_maintenance: true }; + + MaintenanceStatus::::put(maintenance_status); + + Pallet::::deposit_event(Event::UpgradabilityInMaintenanceModeSwitchedOn(caller)); + + Ok(().into()) + } + + #[pallet::weight(T::DbWeight::get().reads_writes(1, 1).saturating_add(Weight::from_ref_time(40_000_000)))] + pub fn switch_upgradability_in_maintenance_mode_off( + origin: OriginFor, + ) -> DispatchResultWithPostInfo { + let caller = ensure_signed(origin)?; + + ensure!( + T::FoundationAccountsProvider::get().contains(&caller), + Error::::NotFoundationAccount + ); + + let current_maintenance_status = MaintenanceStatus::::get(); + + ensure!(current_maintenance_status.is_maintenance, Error::::NotInMaintenanceMode); + + ensure!( + current_maintenance_status.is_upgradable_in_maintenance, + Error::::AlreadyNotUpgradableInMaintenanceMode + ); + + let mut maintenance_status = + MaintenanceStatusInfo { is_maintenance: true, is_upgradable_in_maintenance: false }; + + MaintenanceStatus::::put(maintenance_status); + + Pallet::::deposit_event(Event::UpgradabilityInMaintenanceModeSwitchedOn(caller)); + + Ok(().into()) + } + } +} + +impl GetMaintenanceStatusTrait for Pallet { + fn is_maintenance() -> bool { + let current_maintenance_status = MaintenanceStatus::::get(); + current_maintenance_status.is_maintenance + } + + fn is_upgradable() -> bool { + let current_maintenance_status = MaintenanceStatus::::get(); + (!current_maintenance_status.is_maintenance) || + (current_maintenance_status.is_maintenance && + current_maintenance_status.is_upgradable_in_maintenance) + } +} diff --git a/pallets/maintenance/src/mock.rs b/pallets/maintenance/src/mock.rs new file mode 100644 index 0000000000..9f248fa478 --- /dev/null +++ b/pallets/maintenance/src/mock.rs @@ -0,0 +1,91 @@ +// Copyright (C) 2020 Mangata team + +use super::*; +use sp_std::convert::TryFrom; + +use sp_core::H256; + +use sp_runtime::{ + testing::Header, + traits::{AccountIdConversion, BlakeTwo256, IdentityLookup}, +}; + +use crate as pallet_maintenance; +use frame_support::{ + construct_runtime, parameter_types, + traits::{ConstU32, Contains, Everything}, + PalletId, +}; +use frame_system as system; +use mangata_types::Amount; +use orml_traits::parameter_type_with_key; + +pub const NATIVE_CURRENCY_ID: u32 = 0; + +pub(crate) type AccountId = u128; + +type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; +type Block = frame_system::mocking::MockBlock; + +construct_runtime!( + pub enum Test where + Block = Block, + NodeBlock = Block, + UncheckedExtrinsic = UncheckedExtrinsic, + { + System: frame_system::{Pallet, Call, Storage, Config, Event}, + Maintenance: pallet_maintenance::{Pallet, Storage, Call, Event}, + } +); + +parameter_types! { + pub const BlockHashCount: u64 = 250; +} +impl system::Config for Test { + type BaseCallFilter = Everything; + type RuntimeOrigin = RuntimeOrigin; + type RuntimeCall = RuntimeCall; + type Index = u64; + type BlockNumber = u64; + type Hash = H256; + type Hashing = BlakeTwo256; + type AccountId = AccountId; + type Lookup = IdentityLookup; + type Header = Header; + type RuntimeEvent = RuntimeEvent; + type BlockHashCount = BlockHashCount; + type DbWeight = (); + type Version = (); + type AccountData = (); + type OnNewAccount = (); + type OnKilledAccount = (); + type SystemWeightInfo = (); + type PalletInfo = PalletInfo; + type BlockWeights = (); + type BlockLength = (); + type SS58Prefix = (); + type OnSetCode = (); + type MaxConsumers = ConstU32<16>; +} + +pub struct FoundationAccountsProvider(PhantomData); + +impl Get> for FoundationAccountsProvider +where + ::AccountId: From, +{ + fn get() -> Vec { + vec![999u128.into()] + } +} + +impl pallet_maintenance::Config for Test { + type RuntimeEvent = RuntimeEvent; + type FoundationAccountsProvider = FoundationAccountsProvider; +} + +// This function basically just builds a genesis storage key/value store according to +// our desired mockup. +pub fn new_test_ext() -> sp_io::TestExternalities { + system::GenesisConfig::default().build_storage::().unwrap().into() +} diff --git a/pallets/maintenance/src/tests.rs b/pallets/maintenance/src/tests.rs new file mode 100644 index 0000000000..efde3cf382 --- /dev/null +++ b/pallets/maintenance/src/tests.rs @@ -0,0 +1,229 @@ +use super::*; +use crate::mock::*; +use frame_support::{assert_noop, assert_ok, error::BadOrigin}; +use sp_std::convert::TryFrom; + +use orml_tokens::AccountData; +use sp_std::collections::btree_map::BTreeMap; + +#[test] +fn switching_maintenance_mode_on_works() { + new_test_ext().execute_with(|| { + assert_eq!(::is_maintenance(), false); + assert_eq!(::is_upgradable(), true); + + assert_eq!( + MaintenanceStatus::::get(), + MaintenanceStatusInfo { is_maintenance: false, is_upgradable_in_maintenance: false } + ); + + assert_noop!(Maintenance::switch_maintenance_mode_on(RuntimeOrigin::root()), BadOrigin); + assert_noop!( + Maintenance::switch_maintenance_mode_on(RuntimeOrigin::signed(0u128.into())), + Error::::NotFoundationAccount + ); + + assert_ok!(Maintenance::switch_maintenance_mode_on(RuntimeOrigin::signed(999u128.into())),); + + assert_eq!(::is_maintenance(), true); + assert_eq!(::is_upgradable(), false); + + assert_eq!( + MaintenanceStatus::::get(), + MaintenanceStatusInfo { is_maintenance: true, is_upgradable_in_maintenance: false } + ); + + assert_noop!( + Maintenance::switch_maintenance_mode_on(RuntimeOrigin::signed(999u128.into())), + Error::::AlreadyInMaintenanceMode + ); + }) +} + +#[test] +fn switching_maintenance_mode_off_works() { + new_test_ext().execute_with(|| { + assert_ok!(Maintenance::switch_maintenance_mode_on(RuntimeOrigin::signed(999u128.into())),); + + assert_eq!(::is_maintenance(), true); + assert_eq!(::is_upgradable(), false); + + assert_eq!( + MaintenanceStatus::::get(), + MaintenanceStatusInfo { is_maintenance: true, is_upgradable_in_maintenance: false } + ); + + assert_noop!(Maintenance::switch_maintenance_mode_off(RuntimeOrigin::root()), BadOrigin); + assert_noop!( + Maintenance::switch_maintenance_mode_off(RuntimeOrigin::signed(0u128.into())), + Error::::NotFoundationAccount + ); + + assert_ok!(Maintenance::switch_maintenance_mode_off(RuntimeOrigin::signed(999u128.into())),); + + assert_eq!(::is_maintenance(), false); + assert_eq!(::is_upgradable(), true); + + assert_eq!( + MaintenanceStatus::::get(), + MaintenanceStatusInfo { is_maintenance: false, is_upgradable_in_maintenance: false } + ); + + assert_noop!( + Maintenance::switch_maintenance_mode_off(RuntimeOrigin::signed(999u128.into())), + Error::::NotInMaintenanceMode + ); + }) +} + +#[test] +fn switching_maintenance_mode_off_while_upgradable_works_correctly() { + new_test_ext().execute_with(|| { + assert_ok!(Maintenance::switch_maintenance_mode_on(RuntimeOrigin::signed(999u128.into())),); + + assert_ok!(Maintenance::switch_upgradability_in_maintenance_mode_on( + RuntimeOrigin::signed(999u128.into()) + ),); + + assert_eq!(::is_maintenance(), true); + assert_eq!(::is_upgradable(), true); + + assert_eq!( + MaintenanceStatus::::get(), + MaintenanceStatusInfo { is_maintenance: true, is_upgradable_in_maintenance: true } + ); + + assert_ok!(Maintenance::switch_maintenance_mode_off(RuntimeOrigin::signed(999u128.into())),); + + assert_eq!(::is_maintenance(), false); + assert_eq!(::is_upgradable(), true); + + assert_eq!( + MaintenanceStatus::::get(), + MaintenanceStatusInfo { is_maintenance: false, is_upgradable_in_maintenance: false } + ); + }) +} + +#[test] +fn switch_upgradability_in_maintenance_mode_on_works() { + new_test_ext().execute_with(|| { + assert_eq!(::is_maintenance(), false); + assert_eq!(::is_upgradable(), true); + + assert_eq!( + MaintenanceStatus::::get(), + MaintenanceStatusInfo { is_maintenance: false, is_upgradable_in_maintenance: false } + ); + + assert_noop!( + Maintenance::switch_upgradability_in_maintenance_mode_on(RuntimeOrigin::signed( + 999u128.into() + )), + Error::::NotInMaintenanceMode + ); + + assert_ok!(Maintenance::switch_maintenance_mode_on(RuntimeOrigin::signed(999u128.into())),); + + assert_eq!(::is_maintenance(), true); + assert_eq!(::is_upgradable(), false); + + assert_eq!( + MaintenanceStatus::::get(), + MaintenanceStatusInfo { is_maintenance: true, is_upgradable_in_maintenance: false } + ); + + assert_noop!( + Maintenance::switch_upgradability_in_maintenance_mode_on(RuntimeOrigin::root()), + BadOrigin + ); + assert_noop!( + Maintenance::switch_upgradability_in_maintenance_mode_on(RuntimeOrigin::signed( + 0u128.into() + )), + Error::::NotFoundationAccount + ); + + assert_ok!(Maintenance::switch_upgradability_in_maintenance_mode_on( + RuntimeOrigin::signed(999u128.into()) + ),); + + assert_eq!(::is_maintenance(), true); + assert_eq!(::is_upgradable(), true); + + assert_eq!( + MaintenanceStatus::::get(), + MaintenanceStatusInfo { is_maintenance: true, is_upgradable_in_maintenance: true } + ); + + assert_noop!( + Maintenance::switch_upgradability_in_maintenance_mode_on(RuntimeOrigin::signed( + 999u128.into() + )), + Error::::AlreadyUpgradableInMaintenanceMode + ); + }) +} + +#[test] +fn switch_upgradability_in_maintenance_mode_off_works() { + new_test_ext().execute_with(|| { + assert_noop!( + Maintenance::switch_upgradability_in_maintenance_mode_off(RuntimeOrigin::signed( + 999u128.into() + )), + Error::::NotInMaintenanceMode + ); + + assert_ok!(Maintenance::switch_maintenance_mode_on(RuntimeOrigin::signed(999u128.into())),); + + assert_noop!( + Maintenance::switch_upgradability_in_maintenance_mode_off(RuntimeOrigin::signed( + 999u128.into() + )), + Error::::AlreadyNotUpgradableInMaintenanceMode + ); + + assert_ok!(Maintenance::switch_upgradability_in_maintenance_mode_on( + RuntimeOrigin::signed(999u128.into()) + ),); + + assert_eq!(::is_maintenance(), true); + assert_eq!(::is_upgradable(), true); + + assert_eq!( + MaintenanceStatus::::get(), + MaintenanceStatusInfo { is_maintenance: true, is_upgradable_in_maintenance: true } + ); + + assert_noop!( + Maintenance::switch_upgradability_in_maintenance_mode_off(RuntimeOrigin::root()), + BadOrigin + ); + assert_noop!( + Maintenance::switch_upgradability_in_maintenance_mode_off(RuntimeOrigin::signed( + 0u128.into() + )), + Error::::NotFoundationAccount + ); + + assert_ok!(Maintenance::switch_upgradability_in_maintenance_mode_off( + RuntimeOrigin::signed(999u128.into()) + ),); + + assert_eq!(::is_maintenance(), true); + assert_eq!(::is_upgradable(), false); + + assert_eq!( + MaintenanceStatus::::get(), + MaintenanceStatusInfo { is_maintenance: true, is_upgradable_in_maintenance: false } + ); + + assert_noop!( + Maintenance::switch_upgradability_in_maintenance_mode_off(RuntimeOrigin::signed( + 999u128.into() + )), + Error::::AlreadyNotUpgradableInMaintenanceMode + ); + }) +} diff --git a/pallets/multipurpose-liquidity/Cargo.toml b/pallets/multipurpose-liquidity/Cargo.toml index cac4010f90..76011bbb96 100644 --- a/pallets/multipurpose-liquidity/Cargo.toml +++ b/pallets/multipurpose-liquidity/Cargo.toml @@ -20,9 +20,9 @@ frame-benchmarking = { default-features = false, version = '4.0.0-dev' , git = " frame-system = { default-features = false, version = '4.0.0-dev' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } frame-executive = { git = "https://github.com/mangata-finance/substrate", default-features = false, branch = "mangata-dev" } frame-try-runtime = { git = "https://github.com/mangata-finance/substrate", default-features = false, optional = true , branch = "mangata-dev" } -sp-runtime = { default-features = false, version = '6.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } -sp-core = { default-features = false, version = '6.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } -sp-std = { version = "4.0.0-dev", default-features = false , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-runtime = { default-features = false, version = '7.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-core = { default-features = false, version = '7.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-std = { version = "5.0.0", default-features = false , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } mangata-types = { default-features = false, git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } orml-tokens = { default-features = false, version = '0.4.1-dev' , git = "https://github.com/mangata-finance/open-runtime-module-library", branch = "mangata-dev" } @@ -33,7 +33,7 @@ parachain-staking = { default-features = false, git = "https://github.com/mangat [dev-dependencies] orml-traits = { default-features = false, version="0.4.1-dev" , git = "https://github.com/mangata-finance/open-runtime-module-library", branch = "mangata-dev" } -sp-io = { default-features = false, version = '6.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-io = { default-features = false, version = '7.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } lazy_static = "1.1.1" env_logger = "0.9.0" serial_test = { version = "0.6.0", default-features = false } diff --git a/pallets/multipurpose-liquidity/src/benchmarking.rs b/pallets/multipurpose-liquidity/src/benchmarking.rs index 9a5be8e2cc..e697557f0e 100644 --- a/pallets/multipurpose-liquidity/src/benchmarking.rs +++ b/pallets/multipurpose-liquidity/src/benchmarking.rs @@ -22,7 +22,7 @@ use super::*; use frame_benchmarking::{benchmarks, whitelisted_caller}; -use frame_support::{assert_err, assert_ok}; +use frame_support::assert_ok; use frame_system::RawOrigin; use orml_tokens::MultiTokenCurrencyExtended; diff --git a/pallets/multipurpose-liquidity/src/lib.rs b/pallets/multipurpose-liquidity/src/lib.rs index 9265ab4e7c..ae68b0e177 100644 --- a/pallets/multipurpose-liquidity/src/lib.rs +++ b/pallets/multipurpose-liquidity/src/lib.rs @@ -1,20 +1,12 @@ #![cfg_attr(not(feature = "std"), no_std)] -use frame_support::{ - dispatch::{DispatchError, DispatchResult}, - ensure, PalletId, -}; +use frame_support::{dispatch::DispatchResult, ensure}; use frame_system::ensure_signed; -use sp_core::U256; // TODO documentation! -use codec::FullCodec; use frame_support::{ pallet_prelude::*, - traits::{ - tokens::currency::MultiTokenCurrency, ExistenceRequirement, Get, StorageVersion, - WithdrawReasons, - }, - transactional, Parameter, + traits::{tokens::currency::MultiTokenCurrency, Get, StorageVersion, WithdrawReasons}, + transactional, }; use frame_system::pallet_prelude::*; use mangata_types::{Balance, BlockNumber, TokenId}; @@ -22,15 +14,8 @@ use mp_multipurpose_liquidity::{ActivateKind, BondKind}; use mp_traits::{ActivationReservesProviderTrait, StakingReservesProviderTrait, XykFunctionsTrait}; use orml_tokens::{MultiTokenCurrencyExtended, MultiTokenReservableCurrency}; use pallet_vesting_mangata::MultiTokenVestingLocks; -use sp_runtime::traits::{ - AccountIdConversion, AtLeast32BitUnsigned, MaybeSerializeDeserialize, Member, - SaturatedConversion, Zero, -}; -use sp_std::{ - convert::{TryFrom, TryInto}, - fmt::Debug, - prelude::*, -}; +use sp_runtime::traits::{SaturatedConversion, Zero}; +use sp_std::{convert::TryInto, prelude::*}; #[cfg(feature = "std")] use serde::{Deserialize, Serialize}; @@ -60,7 +45,6 @@ macro_rules! log { pub use pallet::*; -type AccountIdOf = ::AccountId; #[frame_support::pallet] pub mod pallet { @@ -162,6 +146,7 @@ pub mod pallet { #[pallet::call] impl Pallet { #[transactional] + #[pallet::call_index(0)] #[pallet::weight(T::WeightInfo::reserve_vesting_liquidity_tokens())] // This extrinsic has to be transactional pub fn reserve_vesting_liquidity_tokens_by_vesting_index( @@ -222,6 +207,7 @@ pub mod pallet { } #[transactional] + #[pallet::call_index(1)] #[pallet::weight(T::WeightInfo::reserve_vesting_liquidity_tokens())] // This extrinsic has to be transactional pub fn reserve_vesting_liquidity_tokens( @@ -277,6 +263,7 @@ pub mod pallet { } #[transactional] + #[pallet::call_index(2)] #[pallet::weight(T::WeightInfo::unreserve_and_relock_instance())] // This extrinsic has to be transactional pub fn unreserve_and_relock_instance( diff --git a/pallets/multipurpose-liquidity/src/mock.rs b/pallets/multipurpose-liquidity/src/mock.rs index 70ed28988c..f6081ac567 100644 --- a/pallets/multipurpose-liquidity/src/mock.rs +++ b/pallets/multipurpose-liquidity/src/mock.rs @@ -3,6 +3,7 @@ use super::*; use sp_core::H256; +use sp_std::convert::TryFrom; use sp_runtime::{ testing::Header, @@ -12,12 +13,12 @@ use sp_runtime::{ use crate as pallet_multipurpose_liquidity; use frame_support::{ construct_runtime, parameter_types, - traits::{tokens::currency::MultiTokenCurrency, ConstU128, ConstU32, Contains, Everything}, + traits::{ConstU32, Contains, Everything}, PalletId, }; use frame_system as system; use mangata_types::{Amount, Balance, TokenId}; -use orml_tokens::{MultiTokenCurrencyAdapter, MultiTokenCurrencyExtended}; +use orml_tokens::MultiTokenCurrencyAdapter; use orml_traits::parameter_type_with_key; pub const NATIVE_CURRENCY_ID: u32 = 0; @@ -97,16 +98,11 @@ impl orml_tokens::Config for Test { type CurrencyId = TokenId; type WeightInfo = (); type ExistentialDeposits = ExistentialDeposits; - type OnDust = (); type MaxLocks = MaxLocks; type DustRemovalWhitelist = DustRemovalWhitelist; - type OnSlash = (); - type OnDeposit = (); - type OnTransfer = (); type MaxReserves = (); - type OnNewTokenAccount = (); - type OnKilledTokenAccount = (); type ReserveIdentifier = [u8; 8]; + type CurrencyHooks = (); } parameter_types! { @@ -163,7 +159,24 @@ impl XykFunctionsTrait for MockXyk { sold_asset_amount: Self::Balance, min_amount_out: Self::Balance, err_upon_bad_slippage: bool, - ) -> DispatchResult { + ) -> Result { + unimplemented!() + } + + fn do_multiswap_sell_asset( + sender: T::AccountId, + swap_token_list: Vec, + sold_asset_amount: Self::Balance, + min_amount_out: Self::Balance, + ) -> Result { + unimplemented!() + } + fn do_multiswap_buy_asset( + sender: T::AccountId, + swap_token_list: Vec, + bought_asset_amount: Self::Balance, + max_amount_in: Self::Balance, + ) -> Result { unimplemented!() } @@ -174,7 +187,29 @@ impl XykFunctionsTrait for MockXyk { bought_asset_amount: Self::Balance, max_amount_in: Self::Balance, err_upon_bad_slippage: bool, - ) -> DispatchResult { + ) -> Result { + unimplemented!() + } + + fn multiswap_sell_asset( + sender: T::AccountId, + swap_token_list: Vec, + sold_asset_amount: Self::Balance, + min_amount_out: Self::Balance, + err_upon_bad_slippage: bool, + err_upon_non_slippage_fail: bool, + ) -> Result { + unimplemented!() + } + + fn multiswap_buy_asset( + sender: T::AccountId, + swap_token_list: Vec, + bought_asset_amount: Self::Balance, + max_amount_in: Self::Balance, + err_upon_bad_slippage: bool, + err_upon_non_slippage_fail: bool, + ) -> Result { unimplemented!() } diff --git a/pallets/sudo-origin/Cargo.toml b/pallets/sudo-origin/Cargo.toml index 6addf121c0..36782f73bd 100644 --- a/pallets/sudo-origin/Cargo.toml +++ b/pallets/sudo-origin/Cargo.toml @@ -16,16 +16,16 @@ targets = ["x86_64-unknown-linux-gnu"] log = { version = "0.4.14", default-features = false } codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] } scale-info = { version = "2.0.0", default-features = false, features = ["derive"] } -sp-std = { version = "4.0.0-dev", default-features = false, git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } -sp-io = { version = "6.0.0", default-features = false, git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } -sp-runtime = { version = "6.0.0", default-features = false, git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-std = { version = "5.0.0", default-features = false, git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-io = { version = "7.0.0", default-features = false, git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-runtime = { version = "7.0.0", default-features = false, git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } frame-support = { version = "4.0.0-dev", default-features = false, git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } frame-system = { version = "4.0.0-dev", default-features = false, git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } frame-executive = { git = "https://github.com/mangata-finance/substrate", default-features = false, branch = "mangata-dev" } frame-try-runtime = { git = "https://github.com/mangata-finance/substrate", default-features = false, optional = true , branch = "mangata-dev" } [dev-dependencies] -sp-core = { version = "6.0.0", git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-core = { version = "7.0.0", git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } [features] default = ["std"] diff --git a/pallets/sudo-origin/src/lib.rs b/pallets/sudo-origin/src/lib.rs index 8c1adeeefa..0898200deb 100644 --- a/pallets/sudo-origin/src/lib.rs +++ b/pallets/sudo-origin/src/lib.rs @@ -149,6 +149,7 @@ pub mod pallet { /// - One DB write (event). /// - Weight of derivative `call` execution + 10,000. /// # + #[pallet::call_index(0)] #[pallet::weight({ let dispatch_info = call.get_dispatch_info(); (dispatch_info.weight.saturating_add(Weight::from_ref_time(10_000)), dispatch_info.class) @@ -175,6 +176,7 @@ pub mod pallet { /// - O(1). /// - The weight of this call is defined by the caller. /// # + #[pallet::call_index(1)] #[pallet::weight((*_weight, call.get_dispatch_info().class))] pub fn sudo_unchecked_weight( origin: OriginFor, @@ -205,6 +207,7 @@ pub mod pallet { /// - One DB write (event). /// - Weight of derivative `call` execution + 10,000. /// # + #[pallet::call_index(2)] #[pallet::weight({ let dispatch_info = call.get_dispatch_info(); ( diff --git a/pallets/sudo-origin/src/mock.rs b/pallets/sudo-origin/src/mock.rs index a70154a937..9012a1ab0e 100644 --- a/pallets/sudo-origin/src/mock.rs +++ b/pallets/sudo-origin/src/mock.rs @@ -47,6 +47,7 @@ pub mod logger { #[pallet::call] impl Pallet { + #[pallet::call_index(0)] #[pallet::weight(*weight)] pub fn privileged_i32_log( origin: OriginFor, @@ -60,6 +61,7 @@ pub mod logger { Ok(().into()) } + #[pallet::call_index(1)] #[pallet::weight(*weight)] pub fn non_privileged_log( origin: OriginFor, diff --git a/pallets/xyk/Cargo.toml b/pallets/xyk/Cargo.toml index 29363fffd7..9bc3384f15 100644 --- a/pallets/xyk/Cargo.toml +++ b/pallets/xyk/Cargo.toml @@ -20,13 +20,13 @@ frame-benchmarking = { default-features = false, version = '4.0.0-dev' , git = " frame-system = { default-features = false, version = '4.0.0-dev' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } frame-executive = { git = "https://github.com/mangata-finance/substrate", default-features = false, branch = "mangata-dev" } frame-try-runtime = { git = "https://github.com/mangata-finance/substrate", default-features = false, optional = true , branch = "mangata-dev" } -sp-runtime = { default-features = false, version = '6.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } -sp-core = { default-features = false, version = '6.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } -sp-std = { version = "4.0.0-dev", default-features = false , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-runtime = { default-features = false, version = '7.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-core = { default-features = false, version = '7.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-std = { version = "5.0.0", default-features = false , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } mangata-types = { default-features = false, git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } pallet-issuance = { default-features = false, path = "../issuance" } pallet-bootstrap = { default-features = false, path = "../bootstrap" } -sp-arithmetic = { default-features = false, version = '5.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-arithmetic = { default-features = false, version = '6.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } libm = { default-features = false, git = "https://github.com/rust-lang/libm", rev="2f3fc968f43d345f9b449938d050a9ea46a04c83"} mp-bootstrap = { path = "../../primitives/bootstrap", default-features=false } orml-tokens = { default-features = false, version = '0.4.1-dev' , git = "https://github.com/mangata-finance/open-runtime-module-library", branch = "mangata-dev" } @@ -38,7 +38,7 @@ mp-traits = { path = '../../primitives/traits', default-features = false} [dev-dependencies] similar-asserts = "1.1.0" orml-traits = { default-features = false, version="0.4.1-dev" , git = "https://github.com/mangata-finance/open-runtime-module-library", branch = "mangata-dev" } -sp-io = { default-features = false, version = '6.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-io = { default-features = false, version = '7.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } lazy_static = "1.1.1" env_logger = "0.9.0" serial_test = { version = "0.6.0", default-features = false } diff --git a/pallets/xyk/rpc/Cargo.toml b/pallets/xyk/rpc/Cargo.toml index fbac8b1be0..814f19149d 100644 --- a/pallets/xyk/rpc/Cargo.toml +++ b/pallets/xyk/rpc/Cargo.toml @@ -8,7 +8,7 @@ license = "GPL-3.0-or-later" [dependencies] codec = { package = "parity-scale-codec", version = "3.0.0" } -jsonrpsee = { version = "0.15.1", features = ["server", "macros"] } +jsonrpsee = { version = "0.16.2", features = ["server", "macros"] } serde = { version = "1.0.126", features = ["derive"], optional = true } # Substrate packages @@ -16,9 +16,9 @@ serde = { version = "1.0.126", features = ["derive"], optional = true } sp-api = { version = '4.0.0-dev', default-features = false , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } sp-blockchain = { version = '4.0.0-dev', default-features = false, git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } sp-rpc = { version = '6.0.0', default-features = false, git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } -sp-core = { version = '6.0.0', default-features = false, git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } -sp-std = { version = '4.0.0-dev', default-features = false, git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } -sp-runtime = { version = '6.0.0', default-features = false, git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-core = { version = '7.0.0', default-features = false, git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-std = { version = '5.0.0', default-features = false, git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-runtime = { version = '7.0.0', default-features = false, git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } # local packages diff --git a/pallets/xyk/runtime-api/Cargo.toml b/pallets/xyk/runtime-api/Cargo.toml index bafab17a25..753a40eb9e 100644 --- a/pallets/xyk/runtime-api/Cargo.toml +++ b/pallets/xyk/runtime-api/Cargo.toml @@ -8,10 +8,10 @@ license = "GPL-3.0-or-later" [dependencies] serde = { version = "1.0.126", optional = true, features = ["derive"] } sp-api = { version = '4.0.0-dev', default-features = false, git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } -sp-runtime = { default-features = false, version = '6.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-runtime = { default-features = false, version = '7.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } frame-support = { default-features = false, version = '4.0.0-dev' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } frame-system = { default-features = false, version = '4.0.0-dev' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } -sp-core = { default-features = false, version = '6.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-core = { default-features = false, version = '7.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] } [dev-dependencies] diff --git a/pallets/xyk/src/benchmarking.rs b/pallets/xyk/src/benchmarking.rs index 04b6421c8e..6f378e56c3 100644 --- a/pallets/xyk/src/benchmarking.rs +++ b/pallets/xyk/src/benchmarking.rs @@ -29,8 +29,6 @@ use sp_runtime::Permill; use crate::Pallet as Xyk; -const MaxNumberOfPromotedPools: u32 = 100; - const MILION: u128 = 1_000__000_000__000_000; #[macro_export] @@ -113,6 +111,60 @@ benchmarks! { } + multiswap_sell_asset { + + // NOTE: All atomic swaps in the chain involve sold tokens that are pooled with the native token for bnb, which is the worst case + + // liquidity tokens + let x in 3..100; + + init!(); + let caller: T::AccountId = whitelisted_caller(); + + let mint_amount: mangata_types::Balance = 1000000000000000000; + let pool_creation_amount: mangata_types::Balance = 10000000000000000; + let trade_amount: mangata_types::Balance = 1000000000000; + + let mut initial_asset_id: mangata_types::TokenId = ::Currency::get_next_currency_id().into(); + let native_asset_id : mangata_types::TokenId = ::NativeCurrencyId::get().into(); + + if initial_asset_id == native_asset_id { + assert_eq!(::Currency::create(&caller, (mint_amount * x as u128).into()).unwrap().into(), native_asset_id); + initial_asset_id = initial_asset_id + 1; + } else { + assert_ok!(::Currency::mint(native_asset_id.into(), &caller, (mint_amount * x as u128).into())); + } + + // Create all the non-native tokens we will need + for i in 0..x{ + assert_eq!(::Currency::create(&caller, (mint_amount).into()).unwrap().into(), initial_asset_id + i); + } + + // Create all pool with the subsequent non-native tokens + for i in 0.. (x - 1){ + assert_ok!(Xyk::::create_pool(RawOrigin::Signed(caller.clone().into()).into(), {initial_asset_id + i}.into(), pool_creation_amount, {initial_asset_id + i+1}.into(), pool_creation_amount)); + } + + // Create all pool with the subsequent non-native tokens + for i in 0..x{ + assert_ok!(Xyk::::create_pool(RawOrigin::Signed(caller.clone().into()).into(), native_asset_id.into(), pool_creation_amount, {initial_asset_id + i}.into(), pool_creation_amount)); + } + + let mut swap_token_list: Vec = vec![]; + + for i in 0..x{ + swap_token_list.push({initial_asset_id + i}.into()); + } + + assert_eq!(::Currency::free_balance({initial_asset_id + x - 1}.into(), &caller).into(), mint_amount - 2 * pool_creation_amount); + + }: multiswap_sell_asset(RawOrigin::Signed(caller.clone().into()), swap_token_list.into(), trade_amount, 0) + verify { + // verify only trading result as rest of the assertion is in unit test + assert!(::Currency::free_balance({initial_asset_id + x - 1}.into(), &caller).into() > mint_amount - 2 * pool_creation_amount); + + } + buy_asset { // NOTE: duplicates test case XYK::buy_and_burn_buy_where_sold_has_mangata_pair @@ -135,7 +187,58 @@ benchmarks! { assert_eq!(::Currency::free_balance(non_native_asset_id2.into(), &caller).into(), 850000000000001); } + multiswap_buy_asset { + + // NOTE: All atomic swaps in the chain involve sold tokens that are pooled with the native token for bnb, which is the worst case + + // liquidity tokens + let x in 3..100; + + init!(); + let caller: T::AccountId = whitelisted_caller(); + + let mint_amount: mangata_types::Balance = 1000000000000000000; + let pool_creation_amount: mangata_types::Balance = 10000000000000000; + let trade_amount: mangata_types::Balance = 1000000000000; + + let mut initial_asset_id: mangata_types::TokenId = ::Currency::get_next_currency_id().into(); + let native_asset_id : mangata_types::TokenId = ::NativeCurrencyId::get().into(); + + if initial_asset_id == native_asset_id { + assert_eq!(::Currency::create(&caller, (mint_amount * x as u128).into()).unwrap().into(), native_asset_id); + initial_asset_id = initial_asset_id + 1; + } else { + assert_ok!(::Currency::mint(native_asset_id.into(), &caller, (mint_amount * x as u128).into())); + } + // Create all the non-native tokens we will need + for i in 0..x{ + assert_eq!(::Currency::create(&caller, (mint_amount).into()).unwrap().into(), initial_asset_id + i); + } + + // Create all pool with the subsequent non-native tokens + for i in 0.. (x - 1){ + assert_ok!(Xyk::::create_pool(RawOrigin::Signed(caller.clone().into()).into(), {initial_asset_id + i}.into(), pool_creation_amount, {initial_asset_id + i+1}.into(), pool_creation_amount)); + } + + // Create all pool with the subsequent non-native tokens + for i in 0..x{ + assert_ok!(Xyk::::create_pool(RawOrigin::Signed(caller.clone().into()).into(), native_asset_id.into(), pool_creation_amount, {initial_asset_id + i}.into(), pool_creation_amount)); + } + + let mut swap_token_list: Vec = vec![]; + + for i in 0..x{ + swap_token_list.push({initial_asset_id + i}.into()); + } + + assert_eq!(::Currency::free_balance({initial_asset_id + x - 1}.into(), &caller).into(), mint_amount - 2 * pool_creation_amount); + + }: multiswap_buy_asset(RawOrigin::Signed(caller.clone().into()), swap_token_list.into(), trade_amount, trade_amount*10) + verify { + // verify only trading result as rest of the assertion is in unit test + assert!(::Currency::free_balance({initial_asset_id + x - 1}.into(), &caller).into() > mint_amount - 2 * pool_creation_amount); + } mint_liquidity { // 1. create, @@ -167,7 +270,7 @@ benchmarks! { let initial_liquidity_amount = ::Currency::total_issuance(liquidity_asset_id.into()); - Xyk::::update_pool_promotion(RawOrigin::Root.into(), liquidity_asset_id, Some(1u8)).unwrap(); + Xyk::::update_pool_promotion(RawOrigin::Root.into(), liquidity_asset_id, 1u8).unwrap(); Xyk::::mint_liquidity( RawOrigin::Signed(caller.clone().into()).into(), @@ -224,7 +327,7 @@ benchmarks! { non_native_asset_id2.into(), pool_creation_asset_2_amount ).unwrap(); - Xyk::::update_pool_promotion(RawOrigin::Root.into(), liquidity_asset_id, Some(1u8)).unwrap(); + Xyk::::update_pool_promotion(RawOrigin::Root.into(), liquidity_asset_id, 1u8).unwrap(); assert_eq!( @@ -272,7 +375,7 @@ benchmarks! { let pool_mint_second_token_amount = 30000000000000000001_u128; Xyk::::create_pool(RawOrigin::Signed(caller.clone().into()).into(), non_native_asset_id1.into(), pool_create_first_token_amount, non_native_asset_id2.into(), pool_create_second_token_amount).unwrap(); - Xyk::::update_pool_promotion(RawOrigin::Root.into(), liquidity_asset_id, Some(1u8)).unwrap(); + Xyk::::update_pool_promotion(RawOrigin::Root.into(), liquidity_asset_id, 1u8).unwrap(); assert!(Xyk::::liquidity_pool(liquidity_asset_id).is_some()); @@ -306,7 +409,7 @@ benchmarks! { let liquidity_asset_id = non_native_asset_id2 + 1; Xyk::::create_pool(RawOrigin::Signed(caller.clone().into()).into(), non_native_asset_id1.into(), 40000000000000000000, non_native_asset_id2.into(), 60000000000000000000).unwrap(); - Xyk::::update_pool_promotion(RawOrigin::Root.into(), liquidity_asset_id, Some(1u8)).unwrap(); + Xyk::::update_pool_promotion(RawOrigin::Root.into(), liquidity_asset_id, 1u8).unwrap(); assert_eq!( ::Currency::total_issuance(liquidity_asset_id.into()), ::Currency::free_balance(liquidity_asset_id.into(), &caller), @@ -355,7 +458,7 @@ benchmarks! { let liquidity_asset_id = non_native_asset_id2 + 1; Xyk::::create_pool(RawOrigin::Signed(caller.clone().into()).into(), non_native_asset_id1.into(), 40000000000000000000, non_native_asset_id2.into(), 60000000000000000000).unwrap(); - Xyk::::update_pool_promotion(RawOrigin::Root.into(), liquidity_asset_id, Some(1u8)).unwrap(); + Xyk::::update_pool_promotion(RawOrigin::Root.into(), liquidity_asset_id, 1u8).unwrap(); assert_eq!( ::Currency::total_issuance(liquidity_asset_id.into()), @@ -402,7 +505,7 @@ benchmarks! { Xyk::::create_pool(RawOrigin::Signed(caller.clone().into()).into(), asset_id_1.into(), 5000, asset_id_2.into(), 5000).unwrap(); - }: update_pool_promotion(RawOrigin::Root, liquidity_asset_id, Some(1u8)) + }: update_pool_promotion(RawOrigin::Root, liquidity_asset_id, 1u8) verify { assert!( @@ -428,7 +531,7 @@ benchmarks! { let liquidity_asset_id = non_native_asset_id2 + 1; Xyk::::create_pool(RawOrigin::Signed(caller.clone().into()).into(), non_native_asset_id1.into(), 40000000000000000000, non_native_asset_id2.into(), 60000000000000000000).unwrap(); - Xyk::::update_pool_promotion(RawOrigin::Root.into(), liquidity_asset_id, Some(1u8)).unwrap(); + Xyk::::update_pool_promotion(RawOrigin::Root.into(), liquidity_asset_id, 1u8).unwrap(); assert_eq!( ::Currency::total_issuance(liquidity_asset_id.into()), @@ -474,7 +577,7 @@ benchmarks! { let liquidity_asset_id = non_native_asset_id2 + 1; Xyk::::create_pool(RawOrigin::Signed(caller.clone().into()).into(), non_native_asset_id1.into(), 40000000000000000000, non_native_asset_id2.into(), 60000000000000000000).unwrap(); - Xyk::::update_pool_promotion(RawOrigin::Root.into(), liquidity_asset_id, Some(1u8)).unwrap(); + Xyk::::update_pool_promotion(RawOrigin::Root.into(), liquidity_asset_id, 1u8).unwrap(); assert_eq!( ::Currency::total_issuance(liquidity_asset_id.into()), @@ -552,7 +655,7 @@ benchmarks! { <::PoolPromoteApi as ComputeIssuance>::initialize(); Xyk::::create_pool(RawOrigin::Signed(caller.clone().into()).into(), asset_id_1.into(), pool_amount, asset_id_2.into(), pool_amount).unwrap(); - Xyk::::update_pool_promotion(RawOrigin::Root.into(), liquidity_asset_id, Some(1)).unwrap(); + Xyk::::update_pool_promotion(RawOrigin::Root.into(), liquidity_asset_id, 1u8).unwrap(); Xyk::::activate_liquidity_v2(RawOrigin::Signed(caller.clone().into()).into(), liquidity_asset_id, pool_amount, None).unwrap(); // mint for other to split the rewards rewards_ratio:1 Xyk::::mint_liquidity( diff --git a/pallets/xyk/src/lib.rs b/pallets/xyk/src/lib.rs index c8b0ef5b36..3423b4b447 100644 --- a/pallets/xyk/src/lib.rs +++ b/pallets/xyk/src/lib.rs @@ -303,7 +303,7 @@ use frame_support::{ transactional, Parameter, }; use frame_system::pallet_prelude::*; -use mangata_types::{Balance, TokenId}; +use mangata_types::{traits::GetMaintenanceStatusTrait, Balance, TokenId}; use mp_bootstrap::PoolCreateApi; use mp_multipurpose_liquidity::ActivateKind; use mp_traits::{ActivationReservesProviderTrait, PreValidateSwaps, XykFunctionsTrait}; @@ -319,10 +319,12 @@ use sp_runtime::{ Permill, }; use sp_std::{ + collections::btree_set::BTreeSet, convert::{TryFrom, TryInto}, fmt::Debug, ops::Div, prelude::*, + vec::Vec, }; #[cfg(test)] @@ -394,6 +396,7 @@ pub mod pallet { #[pallet::config] pub trait Config: frame_system::Config + XykBenchmarkingConfig { type RuntimeEvent: From> + IsType<::RuntimeEvent>; + type MaintenanceStatusProvider: GetMaintenanceStatusTrait; type ActivationReservesProvider: ActivationReservesProviderTrait< AccountId = Self::AccountId, >; @@ -480,6 +483,14 @@ pub mod pallet { CalculateCumulativeWorkMaxRatioMathError, CalculateRewardsAllMathError, NoRights, + NonSlippageMultiSwapFailure, + MultiswapShouldBeAtleastTwoHops, + MultiBuyAssetCantHaveSamePoolAtomicSwaps, + MultiSwapFailedOnBadSlippage, + MultiSwapNotEnoughAssets, + MultiSwapCantHaveSameTokenConsequetively, + /// Trading blocked by maintenance mode + TradingBlockedByMaintenanceMode, } #[pallet::event] @@ -495,6 +506,13 @@ pub mod pallet { LiquidityActivated(T::AccountId, TokenId, Balance), LiquidityDeactivated(T::AccountId, TokenId, Balance), RewardsClaimed(T::AccountId, TokenId, Balance), + AssetsMultiSellSwapped(T::AccountId, Vec, Balance, Balance), + AssetsMultiBuySwapped(T::AccountId, Vec, Balance, Balance), + MultiSellAssetFailedDueToSlippage(T::AccountId, Vec, Balance), + MultiBuyAssetFailedDueToSlippage(T::AccountId, Vec, Balance), + MultiSellAssetFailedOnAtomicSwap(T::AccountId, Vec, Balance), + MultiBuyAssetFailedOnAtomicSwap(T::AccountId, Vec, Balance), + MultiSwapFailedDueToNotEnoughAssets(T::AccountId, Vec, Balance), } #[pallet::storage] @@ -621,6 +639,7 @@ pub mod pallet { // XYK extrinsics. #[pallet::call] impl Pallet { + #[pallet::call_index(0)] #[pallet::weight(<::WeightInfo>::create_pool())] pub fn create_pool( origin: OriginFor, @@ -654,6 +673,7 @@ pub mod pallet { } // you will sell your sold_asset_amount of sold_asset_id to get some amount of bought_asset_id + #[pallet::call_index(1)] #[pallet::weight(<::WeightInfo>::sell_asset())] pub fn sell_asset( origin: OriginFor, @@ -664,7 +684,7 @@ pub mod pallet { ) -> DispatchResultWithPostInfo { let sender = ensure_signed(origin)?; - >::sell_asset( + let _ = >::sell_asset( sender, sold_asset_id, bought_asset_id, @@ -675,6 +695,41 @@ pub mod pallet { Ok(().into()) } + /// Executes a multiswap sell asset in a series of sell asset atomic swaps. + /// + /// Multiswaps must fee lock instead of paying transaction fees. + /// + /// First the multiswap is prevalidated, if it is successful then the extrinsic is accepted + /// and the exchange commission will be charged upon execution on the **first** swap using **sold_asset_amount**. + /// + /// Upon failure of an atomic swap or bad slippage, all the atomic swaps are reverted and the exchange commission is charged. + /// Upon such a failure, the extrinsic is marked "successful", but an event for the failure is emitted + /// + /// # Args: + /// - `swap_token_list` - This list of tokens is the route of the atomic swaps, starting with the asset sold and ends with the asset finally bought + /// - `sold_asset_amount`: The amount of the first asset sold + /// - `min_amount_out` - The minimum amount of last asset that must be bought in order to not fail on slippage. Slippage failures still charge exchange commission. + #[pallet::call_index(2)] + #[pallet::weight(<::WeightInfo>::multiswap_sell_asset(swap_token_list.len() as u32))] + pub fn multiswap_sell_asset( + origin: OriginFor, + swap_token_list: Vec, + sold_asset_amount: Balance, + min_amount_out: Balance, + ) -> DispatchResultWithPostInfo { + let sender = ensure_signed(origin)?; + + >::multiswap_sell_asset( + sender, + swap_token_list, + sold_asset_amount, + min_amount_out, + false, + false, + )?; + Ok(().into()) + } + #[pallet::call_index(3)] #[pallet::weight(<::WeightInfo>::buy_asset())] pub fn buy_asset( origin: OriginFor, @@ -685,7 +740,7 @@ pub mod pallet { ) -> DispatchResultWithPostInfo { let sender = ensure_signed(origin)?; - >::buy_asset( + let _ = >::buy_asset( sender, sold_asset_id, bought_asset_id, @@ -696,6 +751,45 @@ pub mod pallet { Ok(().into()) } + /// Executes a multiswap buy asset in a series of buy asset atomic swaps. + /// + /// Multiswaps must fee lock instead of paying transaction fees. + /// + /// First the multiswap is prevalidated, if it is successful then the extrinsic is accepted + /// and the exchange commission will be charged upon execution on the *first* swap using *max_amount_in*. + /// multiswap_buy_asset cannot have two (or more) atomic swaps on the same pool. + /// multiswap_buy_asset prevaildation only checks for whether there are enough funds to pay for the exchange commission. + /// Failure to have the required amount of first asset funds will result in failure (and charging of the exchange commission). + /// + /// Upon failure of an atomic swap or bad slippage, all the atomic swaps are reverted and the exchange commission is charged. + /// Upon such a failure, the extrinsic is marked "successful", but an event for the failure is emitted + /// + /// # Args: + /// - `swap_token_list` - This list of tokens is the route of the atomic swaps, starting with the asset sold and ends with the asset finally bought + /// - `bought_asset_amount`: The amount of the last asset bought + /// - `max_amount_in` - The maximum amount of first asset that can be sold in order to not fail on slippage. Slippage failures still charge exchange commission. + #[pallet::call_index(4)] + #[pallet::weight(<::WeightInfo>::multiswap_buy_asset(swap_token_list.len() as u32))] + pub fn multiswap_buy_asset( + origin: OriginFor, + swap_token_list: Vec, + bought_asset_amount: Balance, + max_amount_in: Balance, + ) -> DispatchResultWithPostInfo { + let sender = ensure_signed(origin)?; + + >::multiswap_buy_asset( + sender, + swap_token_list, + bought_asset_amount, + max_amount_in, + false, + false, + )?; + Ok(().into()) + } + + #[pallet::call_index(5)] #[pallet::weight(<::WeightInfo>::mint_liquidity_using_vesting_native_tokens())] #[transactional] pub fn mint_liquidity_using_vesting_native_tokens_by_vesting_index( @@ -748,6 +842,7 @@ pub mod pallet { Ok(().into()) } + #[pallet::call_index(6)] #[pallet::weight(<::WeightInfo>::mint_liquidity_using_vesting_native_tokens())] #[transactional] pub fn mint_liquidity_using_vesting_native_tokens( @@ -797,6 +892,7 @@ pub mod pallet { Ok(().into()) } + #[pallet::call_index(7)] #[pallet::weight(<::WeightInfo>::mint_liquidity())] pub fn mint_liquidity( origin: OriginFor, @@ -825,6 +921,7 @@ pub mod pallet { Ok(().into()) } + #[pallet::call_index(8)] #[pallet::weight(<::WeightInfo>::compound_rewards())] #[transactional] pub fn compound_rewards( @@ -872,6 +969,7 @@ pub mod pallet { Ok(().into()) } + #[pallet::call_index(9)] #[pallet::weight(<::WeightInfo>::provide_liquidity_with_conversion())] #[transactional] pub fn provide_liquidity_with_conversion( @@ -903,6 +1001,7 @@ pub mod pallet { Ok(().into()) } + #[pallet::call_index(10)] #[pallet::weight(<::WeightInfo>::burn_liquidity())] pub fn burn_liquidity( origin: OriginFor, @@ -923,6 +1022,7 @@ pub mod pallet { } #[transactional] + #[pallet::call_index(11)] #[pallet::weight(<::WeightInfo>::claim_rewards_v2())] pub fn claim_rewards_v2( origin: OriginFor, @@ -941,6 +1041,7 @@ pub mod pallet { } #[transactional] + #[pallet::call_index(12)] #[pallet::weight(<::WeightInfo>::claim_rewards_v2())] pub fn claim_rewards_all_v2( origin: OriginFor, @@ -956,21 +1057,24 @@ pub mod pallet { Ok(()) } + // Disabled pool demotion + #[pallet::call_index(13)] #[pallet::weight(<::WeightInfo>::update_pool_promotion())] pub fn update_pool_promotion( origin: OriginFor, liquidity_token_id: TokenId, - liquidity_mining_issuance_weight: Option, + liquidity_mining_issuance_weight: u8, ) -> DispatchResult { ensure_root(origin)?; >::update_pool_promotion( liquidity_token_id, - liquidity_mining_issuance_weight, + Some(liquidity_mining_issuance_weight), ) } #[transactional] + #[pallet::call_index(14)] #[pallet::weight(<::WeightInfo>::activate_liquidity_v2())] pub fn activate_liquidity_v2( origin: OriginFor, @@ -989,6 +1093,7 @@ pub mod pallet { } #[transactional] + #[pallet::call_index(15)] #[pallet::weight(<::WeightInfo>::deactivate_liquidity_v2())] pub fn deactivate_liquidity_v2( origin: OriginFor, @@ -1897,6 +2002,11 @@ impl PreValidateSwaps for Pallet { (Self::Balance, Self::Balance, Self::Balance, Self::Balance, Self::Balance, Self::Balance), DispatchError, > { + ensure!( + !T::MaintenanceStatusProvider::is_maintenance(), + Error::::TradingBlockedByMaintenanceMode + ); + // Ensure not selling zero amount ensure!(!sold_asset_amount.is_zero(), Error::::ZeroAmount,); @@ -1977,6 +2087,117 @@ impl PreValidateSwaps for Pallet { )) } + /// We only validate the first atomic swap's ability to accept fees + fn pre_validate_multiswap_sell_asset( + sender: &Self::AccountId, + swap_token_list: Vec, + sold_asset_amount: Self::Balance, + _min_amount_out: Self::Balance, + ) -> Result< + ( + Self::Balance, + Self::Balance, + Self::Balance, + Self::Balance, + Self::Balance, + Self::CurrencyId, + Self::CurrencyId, + ), + DispatchError, + > { + ensure!(swap_token_list.len() > 2_usize, Error::::MultiswapShouldBeAtleastTwoHops); + // Unwraps are fine due to above ensure + let sold_asset_id = + *swap_token_list.get(0).ok_or(Error::::MultiswapShouldBeAtleastTwoHops)?; + let bought_asset_id = + *swap_token_list.get(1).ok_or(Error::::MultiswapShouldBeAtleastTwoHops)?; + + // Ensure not selling zero amount + ensure!(!sold_asset_amount.is_zero(), Error::::ZeroAmount,); + + let atomic_pairs: Vec<(TokenId, TokenId)> = swap_token_list + .clone() + .into_iter() + .zip(swap_token_list.clone().into_iter().skip(1)) + .collect(); + + for (x, y) in atomic_pairs.iter() { + if x == y { + return Err(Error::::MultiSwapCantHaveSameTokenConsequetively.into()) + } + } + + ensure!( + !T::DisabledTokens::contains(&sold_asset_id) && + !T::DisabledTokens::contains(&bought_asset_id), + Error::::FunctionNotAvailableForThisToken + ); + + let buy_and_burn_amount = multiply_by_rational_with_rounding( + sold_asset_amount, + T::BuyAndBurnFeePercentage::get(), + 10000, + Rounding::Down, + ) + .ok_or(Error::::UnexpectedFailure)? + .checked_add(1) + .ok_or(Error::::MathOverflow)?; + + let treasury_amount = multiply_by_rational_with_rounding( + sold_asset_amount, + T::TreasuryFeePercentage::get(), + 10000, + Rounding::Down, + ) + .ok_or(Error::::UnexpectedFailure)? + .checked_add(1) + .ok_or(Error::::MathOverflow)?; + + let pool_fee_amount = multiply_by_rational_with_rounding( + sold_asset_amount, + T::PoolFeePercentage::get(), + 10000, + Rounding::Down, + ) + .ok_or(Error::::UnexpectedFailure)? + .checked_add(1) + .ok_or(Error::::MathOverflow)?; + + let total_fees = buy_and_burn_amount + .checked_add(treasury_amount) + .and_then(|v| v.checked_add(pool_fee_amount)) + .ok_or(Error::::MathOverflow)?; + + // Get token reserves + + // MAX: 2R + let (input_reserve, output_reserve) = + Pallet::::get_reserves(sold_asset_id, bought_asset_id)?; + + ensure!(input_reserve.checked_add(pool_fee_amount).is_some(), Error::::MathOverflow); + + // Ensure user has enough tokens to sell + ::Currency::ensure_can_withdraw( + sold_asset_id.into(), + sender, + total_fees.into(), + WithdrawReasons::all(), + // Does not fail due to earlier ensure + Default::default(), + ) + .or(Err(Error::::NotEnoughAssets))?; + + Ok(( + buy_and_burn_amount, + treasury_amount, + pool_fee_amount, + input_reserve, + output_reserve, + sold_asset_id, + bought_asset_id, + )) + } + fn pre_validate_buy_asset( sender: &Self::AccountId, sold_asset_id: Self::CurrencyId, @@ -1987,6 +2208,11 @@ impl PreValidateSwaps for Pallet { (Self::Balance, Self::Balance, Self::Balance, Self::Balance, Self::Balance, Self::Balance), DispatchError, > { + ensure!( + !T::MaintenanceStatusProvider::is_maintenance(), + Error::::TradingBlockedByMaintenanceMode + ); + ensure!( !T::DisabledTokens::contains(&sold_asset_id) && !T::DisabledTokens::contains(&bought_asset_id), @@ -2067,6 +2293,129 @@ impl PreValidateSwaps for Pallet { sold_asset_amount, )) } + + /// We only validate the first atomic swap's ability to accept fees + fn pre_validate_multiswap_buy_asset( + sender: &Self::AccountId, + swap_token_list: Vec, + final_bought_asset_amount: Self::Balance, + max_amount_in: Self::Balance, + ) -> Result< + ( + Self::Balance, + Self::Balance, + Self::Balance, + Self::Balance, + Self::Balance, + Self::CurrencyId, + Self::CurrencyId, + ), + DispatchError, + > { + // Ensure not buying zero amount + ensure!(!final_bought_asset_amount.is_zero(), Error::::ZeroAmount,); + ensure!(!max_amount_in.is_zero(), Error::::ZeroAmount,); + + ensure!(swap_token_list.len() > 2_usize, Error::::MultiswapShouldBeAtleastTwoHops); + // Unwraps are fine due to above ensure + let sold_asset_id = + *swap_token_list.get(0).ok_or(Error::::MultiswapShouldBeAtleastTwoHops)?; + let bought_asset_id = + *swap_token_list.get(1).ok_or(Error::::MultiswapShouldBeAtleastTwoHops)?; + + ensure!( + !T::DisabledTokens::contains(&sold_asset_id) && + !T::DisabledTokens::contains(&bought_asset_id), + Error::::FunctionNotAvailableForThisToken + ); + + // Cannot use multiswap twice on the same pool + let atomic_pairs: Vec<(TokenId, TokenId)> = swap_token_list + .clone() + .into_iter() + .zip(swap_token_list.clone().into_iter().skip(1)) + .collect(); + + let mut atomic_pairs_hashset = BTreeSet::new(); + + for (x, y) in atomic_pairs.iter() { + if x == y { + return Err(Error::::MultiSwapCantHaveSameTokenConsequetively.into()) + } else if x > y { + if !atomic_pairs_hashset.insert((x, y)) { + return Err(Error::::MultiBuyAssetCantHaveSamePoolAtomicSwaps.into()) + }; + } else + // x < y + { + if !atomic_pairs_hashset.insert((y, x)) { + return Err(Error::::MultiBuyAssetCantHaveSamePoolAtomicSwaps.into()) + }; + } + } + + // Get token reserves + let (input_reserve, output_reserve) = + Pallet::::get_reserves(sold_asset_id, bought_asset_id)?; + + let buy_and_burn_amount = multiply_by_rational_with_rounding( + max_amount_in, + T::BuyAndBurnFeePercentage::get(), + 10000, + Rounding::Down, + ) + .ok_or(Error::::UnexpectedFailure)? + .checked_add(1) + .ok_or(Error::::MathOverflow)?; + + let treasury_amount = multiply_by_rational_with_rounding( + max_amount_in, + T::TreasuryFeePercentage::get(), + 10000, + Rounding::Down, + ) + .ok_or(Error::::UnexpectedFailure)? + .checked_add(1) + .ok_or(Error::::MathOverflow)?; + + let pool_fee_amount = multiply_by_rational_with_rounding( + max_amount_in, + T::PoolFeePercentage::get(), + 10000, + Rounding::Down, + ) + .ok_or(Error::::UnexpectedFailure)? + .checked_add(1) + .ok_or(Error::::MathOverflow)?; + + let total_fees = buy_and_burn_amount + .checked_add(treasury_amount) + .and_then(|v| v.checked_add(pool_fee_amount)) + .ok_or(Error::::MathOverflow)?; + + ensure!(input_reserve.checked_add(pool_fee_amount).is_some(), Error::::MathOverflow); + + // Ensure user has enough tokens to sell + ::Currency::ensure_can_withdraw( + sold_asset_id.into(), + sender, + total_fees.into(), + WithdrawReasons::all(), + // Does not fail due to earlier ensure + Default::default(), + ) + .or(Err(Error::::NotEnoughAssets))?; + + Ok(( + buy_and_burn_amount, + treasury_amount, + pool_fee_amount, + input_reserve, + output_reserve, + sold_asset_id, + bought_asset_id, + )) + } } impl XykFunctionsTrait for Pallet { @@ -2224,7 +2573,7 @@ impl XykFunctionsTrait for Pallet { sold_asset_amount: Self::Balance, min_amount_out: Self::Balance, err_upon_bad_slippage: bool, - ) -> DispatchResult { + ) -> Result { let ( buy_and_burn_amount, treasury_amount, @@ -2369,10 +2718,203 @@ impl XykFunctionsTrait for Pallet { bought_asset_amount, min_amount_out, )); + return Ok(Default::default()) } } - Ok(()) + Ok(bought_asset_amount) + } + + fn do_multiswap_sell_asset( + sender: T::AccountId, + swap_token_list: Vec, + sold_asset_amount: Self::Balance, + min_amount_out: Self::Balance, + ) -> Result { + frame_support::storage::with_storage_layer(|| -> Result { + // Ensure user has enough tokens to sell + ::Currency::ensure_can_withdraw( + // Naked unwrap is fine due to pre validation len check + { *swap_token_list.get(0).ok_or(Error::::MultiswapShouldBeAtleastTwoHops)? } + .into(), + &sender, + sold_asset_amount.into(), + WithdrawReasons::all(), + Default::default(), + ) + .or(Err(Error::::MultiSwapNotEnoughAssets))?; + + // pre_validate has already confirmed that swap_token_list.len()>1 + let atomic_pairs: Vec<(TokenId, TokenId)> = swap_token_list + .clone() + .into_iter() + .zip(swap_token_list.clone().into_iter().skip(1)) + .collect(); + + let mut atomic_sold_asset_amount = sold_asset_amount; + let mut atomic_bought_asset_amount = Balance::zero(); + + for (atomic_sold_asset, atomic_bought_asset) in atomic_pairs.iter() { + atomic_bought_asset_amount = >::sell_asset( + sender.clone(), + *atomic_sold_asset, + *atomic_bought_asset, + atomic_sold_asset_amount, + Balance::zero(), + // We using most possible slippage so this should be irrelevant + true, + )?; + + // Prep the next loop + atomic_sold_asset_amount = atomic_bought_asset_amount; + } + + // fail/error and revert if bad final slippage + if atomic_bought_asset_amount < min_amount_out { + return Err(Error::::MultiSwapFailedOnBadSlippage.into()) + } else { + return Ok(atomic_bought_asset_amount) + } + }) + } + + fn multiswap_sell_asset( + sender: T::AccountId, + swap_token_list: Vec, + sold_asset_amount: Self::Balance, + min_amount_out: Self::Balance, + err_upon_bad_slippage: bool, + err_upon_non_slippage_fail: bool, + ) -> Result { + let ( + fee_swap_buy_and_burn_amount, + fee_swap_treasury_amount, + fee_swap_pool_fee_amount, + fee_swap_input_reserve, + fee_swap_output_reserve, + fee_swap_sold_asset_id, + fee_swap_bought_asset_id, + ) = as PreValidateSwaps>::pre_validate_multiswap_sell_asset( + &sender, + swap_token_list.clone(), + sold_asset_amount, + min_amount_out, + )?; + + // First execute all atomic swaps in a storage layer + // And then the finally bought amount is compared + // The bool in error represents if the fail is due to bad final slippage + let res_multiswap = >::do_multiswap_sell_asset( + sender.clone(), + swap_token_list.clone(), + sold_asset_amount, + min_amount_out, + ); + + // if res_multiswap is_ok then return Ok(()) otherwise charge fee for first swap and then return Ok(()) + // if err_upon_bad_slippage then just return res_multiswap + + if let Ok(bought_asset_amount) = res_multiswap { + Pallet::::deposit_event(Event::AssetsMultiSellSwapped( + sender.clone(), + swap_token_list.clone(), + sold_asset_amount, + bought_asset_amount, + )); + return Ok(bought_asset_amount) + } else { + // Charge fee + + let vault = Pallet::::account_id(); + let treasury_account: T::AccountId = Self::treasury_account_id(); + let bnb_treasury_account: T::AccountId = Self::bnb_treasury_account_id(); + + // Transfer of fees, before tx can fail on min amount out + ::Currency::transfer( + fee_swap_sold_asset_id.into(), + &sender, + &vault, + fee_swap_pool_fee_amount.into(), + ExistenceRequirement::KeepAlive, + )?; + + ::Currency::transfer( + fee_swap_sold_asset_id.into(), + &sender, + &treasury_account, + fee_swap_treasury_amount.into(), + ExistenceRequirement::KeepAlive, + )?; + + ::Currency::transfer( + fee_swap_sold_asset_id.into(), + &sender, + &bnb_treasury_account, + fee_swap_buy_and_burn_amount.into(), + ExistenceRequirement::KeepAlive, + )?; + + // Add pool fee to pool + // 2R 1W + Pallet::::set_reserves( + fee_swap_sold_asset_id, + fee_swap_input_reserve.saturating_add(fee_swap_pool_fee_amount), + fee_swap_bought_asset_id, + fee_swap_output_reserve, + )?; + + // Settle tokens which goes to treasury and for buy and burn purpose + Pallet::::settle_treasury_and_burn( + fee_swap_sold_asset_id, + fee_swap_buy_and_burn_amount, + fee_swap_treasury_amount, + )?; + + // Emit event or return error + match (err_upon_bad_slippage, err_upon_non_slippage_fail, res_multiswap) { + (_, _, Err(e)) if e == Error::::MultiSwapNotEnoughAssets.into() => { + Pallet::::deposit_event(Event::MultiSwapFailedDueToNotEnoughAssets( + sender.clone(), + swap_token_list.clone(), + sold_asset_amount, + )); + return Ok(Default::default()) + }, + (true, _, Err(e)) if e == Error::::MultiSwapFailedOnBadSlippage.into() => { + Pallet::::deposit_event(Event::MultiSellAssetFailedDueToSlippage( + sender.clone(), + swap_token_list.clone(), + sold_asset_amount, + )); + return Err(DispatchError::from(Error::::MultiSwapFailedOnBadSlippage)) + }, + (_, true, Err(e)) if e != Error::::MultiSwapFailedOnBadSlippage.into() => { + Pallet::::deposit_event(Event::MultiSellAssetFailedOnAtomicSwap( + sender.clone(), + swap_token_list.clone(), + sold_asset_amount, + )); + return Err(DispatchError::from(Error::::NonSlippageMultiSwapFailure)) + }, + (false, false, Err(e)) if e == Error::::MultiSwapFailedOnBadSlippage.into() => { + Pallet::::deposit_event(Event::MultiSellAssetFailedDueToSlippage( + sender.clone(), + swap_token_list.clone(), + sold_asset_amount, + )); + return Ok(Default::default()) + }, + (false, false, Err(e)) if e != Error::::MultiSwapFailedOnBadSlippage.into() => { + Pallet::::deposit_event(Event::MultiSellAssetFailedOnAtomicSwap( + sender.clone(), + swap_token_list.clone(), + sold_asset_amount, + )); + return Ok(Default::default()) + }, + (_, _, _) => return Err(DispatchError::from(Error::::UnexpectedFailure)), + } + } } // To put it comprehensively the only reason that the user should lose out on swap fee @@ -2388,7 +2930,7 @@ impl XykFunctionsTrait for Pallet { bought_asset_amount: Self::Balance, max_amount_in: Self::Balance, err_upon_bad_slippage: bool, - ) -> DispatchResult { + ) -> Result { let ( buy_and_burn_amount, treasury_amount, @@ -2533,7 +3075,215 @@ impl XykFunctionsTrait for Pallet { } } - Ok(()) + Ok(sold_asset_amount) + } + + fn do_multiswap_buy_asset( + sender: T::AccountId, + swap_token_list: Vec, + bought_asset_amount: Self::Balance, + max_amount_in: Self::Balance, + ) -> Result { + frame_support::storage::with_storage_layer(|| -> Result { + // pre_validate has already confirmed that swap_token_list.len()>1 + let atomic_pairs: Vec<(TokenId, TokenId)> = swap_token_list + .clone() + .into_iter() + .zip(swap_token_list.clone().into_iter().skip(1)) + .collect(); + + let mut atomic_sold_asset_amount = Balance::zero(); + let mut atomic_bought_asset_amount = bought_asset_amount; + + let mut atomic_swap_buy_amounts_rev: Vec = vec![]; + // Calc + // We can do this using calculate_buy_price_id chain due to the check in pre_validation + // that ensures that no pool is touched twice. So the reserves in question are consistent + for (atomic_sold_asset, atomic_bought_asset) in atomic_pairs.iter().rev() { + atomic_sold_asset_amount = Self::calculate_buy_price_id( + *atomic_sold_asset, + *atomic_bought_asset, + atomic_bought_asset_amount, + )?; + + atomic_swap_buy_amounts_rev.push(atomic_bought_asset_amount); + // Prep the next loop + atomic_bought_asset_amount = atomic_sold_asset_amount; + } + + ensure!( + atomic_sold_asset_amount <= max_amount_in, + Error::::MultiSwapFailedOnBadSlippage + ); + + // Ensure user has enough tokens to sell + ::Currency::ensure_can_withdraw( + // Naked unwrap is fine due to pre validation len check + { *swap_token_list.get(0).ok_or(Error::::MultiswapShouldBeAtleastTwoHops)? } + .into(), + &sender, + atomic_sold_asset_amount.into(), + WithdrawReasons::all(), + Default::default(), + ) + .or(Err(Error::::MultiSwapNotEnoughAssets))?; + + // Execute here + for ((atomic_sold_asset, atomic_bought_asset), atomic_swap_buy_amount) in + atomic_pairs.iter().zip(atomic_swap_buy_amounts_rev.iter().rev()) + { + let _ = >::buy_asset( + sender.clone(), + *atomic_sold_asset, + *atomic_bought_asset, + *atomic_swap_buy_amount, + Balance::max_value(), + // We using most possible slippage so this should be irrelevant + true, + )?; + } + + return Ok(atomic_sold_asset_amount) + }) + } + + fn multiswap_buy_asset( + sender: T::AccountId, + swap_token_list: Vec, + bought_asset_amount: Self::Balance, + max_amount_in: Self::Balance, + err_upon_bad_slippage: bool, + err_upon_non_slippage_fail: bool, + ) -> Result { + let ( + fee_swap_buy_and_burn_amount, + fee_swap_treasury_amount, + fee_swap_pool_fee_amount, + fee_swap_input_reserve, + fee_swap_output_reserve, + fee_swap_sold_asset_id, + fee_swap_bought_asset_id, + ) = as PreValidateSwaps>::pre_validate_multiswap_buy_asset( + &sender, + swap_token_list.clone(), + bought_asset_amount, + max_amount_in, + )?; + + // First execute all atomic swaps in a storage layer + // And then the finally sold amount is compared + // The bool in error represents if the fail is due to bad final slippage + let res_multiswap = >::do_multiswap_buy_asset( + sender.clone(), + swap_token_list.clone(), + bought_asset_amount, + max_amount_in, + ); + + // if res_multiswap is_ok then return Ok(()) otherwise charge fee for first swap and then return Ok(()) + // if err_upon_bad_slippage then just return res_multiswap + + if let Ok(sold_asset_amount) = res_multiswap { + Pallet::::deposit_event(Event::AssetsMultiBuySwapped( + sender.clone(), + swap_token_list.clone(), + sold_asset_amount, + bought_asset_amount, + )); + return Ok(sold_asset_amount) + } else { + // Charge fee + + let vault = Pallet::::account_id(); + let treasury_account: T::AccountId = Self::treasury_account_id(); + let bnb_treasury_account: T::AccountId = Self::bnb_treasury_account_id(); + + // Transfer of fees, before tx can fail on min amount out + ::Currency::transfer( + fee_swap_sold_asset_id.into(), + &sender, + &vault, + fee_swap_pool_fee_amount.into(), + ExistenceRequirement::KeepAlive, + )?; + + ::Currency::transfer( + fee_swap_sold_asset_id.into(), + &sender, + &treasury_account, + fee_swap_treasury_amount.into(), + ExistenceRequirement::KeepAlive, + )?; + + ::Currency::transfer( + fee_swap_sold_asset_id.into(), + &sender, + &bnb_treasury_account, + fee_swap_buy_and_burn_amount.into(), + ExistenceRequirement::KeepAlive, + )?; + + // Add pool fee to pool + // 2R 1W + Pallet::::set_reserves( + fee_swap_sold_asset_id, + fee_swap_input_reserve.saturating_add(fee_swap_pool_fee_amount), + fee_swap_bought_asset_id, + fee_swap_output_reserve, + )?; + + // Settle tokens which goes to treasury and for buy and burn purpose + Pallet::::settle_treasury_and_burn( + fee_swap_sold_asset_id, + fee_swap_buy_and_burn_amount, + fee_swap_treasury_amount, + )?; + + // Emit event or return error + match (err_upon_bad_slippage, err_upon_non_slippage_fail, res_multiswap) { + (_, _, Err(e)) if e == Error::::MultiSwapNotEnoughAssets.into() => { + Pallet::::deposit_event(Event::MultiSwapFailedDueToNotEnoughAssets( + sender.clone(), + swap_token_list.clone(), + bought_asset_amount, + )); + return Ok(Default::default()) + }, + (true, _, Err(e)) if e == Error::::MultiSwapFailedOnBadSlippage.into() => { + Pallet::::deposit_event(Event::MultiBuyAssetFailedDueToSlippage( + sender.clone(), + swap_token_list.clone(), + bought_asset_amount, + )); + return Err(DispatchError::from(Error::::InsufficientOutputAmount)) + }, + (_, true, Err(e)) if e != Error::::MultiSwapFailedOnBadSlippage.into() => { + Pallet::::deposit_event(Event::MultiBuyAssetFailedOnAtomicSwap( + sender.clone(), + swap_token_list.clone(), + bought_asset_amount, + )); + return Err(DispatchError::from(Error::::NonSlippageMultiSwapFailure)) + }, + (false, false, Err(e)) if e == Error::::MultiSwapFailedOnBadSlippage.into() => { + Pallet::::deposit_event(Event::MultiBuyAssetFailedDueToSlippage( + sender.clone(), + swap_token_list.clone(), + bought_asset_amount, + )); + return Ok(Default::default()) + }, + (false, false, Err(e)) if e != Error::::MultiSwapFailedOnBadSlippage.into() => { + Pallet::::deposit_event(Event::MultiBuyAssetFailedOnAtomicSwap( + sender.clone(), + swap_token_list.clone(), + bought_asset_amount, + )); + return Ok(Default::default()) + }, + (_, _, _) => return Err(DispatchError::from(Error::::UnexpectedFailure)), + } + } } fn mint_liquidity( @@ -2737,7 +3487,7 @@ impl XykFunctionsTrait for Pallet { let bought_amount = Pallet::::calculate_sell_price(reserve, other_reserve, swap_amount)?; - >::sell_asset( + let _ = >::sell_asset( sender.clone(), provided_asset_id, other_asset_id, diff --git a/pallets/xyk/src/mock.rs b/pallets/xyk/src/mock.rs index a237ee3ff8..eb32f434c5 100644 --- a/pallets/xyk/src/mock.rs +++ b/pallets/xyk/src/mock.rs @@ -177,16 +177,11 @@ impl orml_tokens::Config for Test { type CurrencyId = TokenId; type WeightInfo = (); type ExistentialDeposits = ExistentialDeposits; - type OnDust = (); type MaxLocks = MaxLocks; type DustRemovalWhitelist = DustRemovalWhitelist; - type OnSlash = (); - type OnDeposit = (); - type OnTransfer = (); type MaxReserves = (); - type OnNewTokenAccount = (); - type OnKilledTokenAccount = (); type ReserveIdentifier = [u8; 8]; + type CurrencyHooks = (); } parameter_types! { @@ -338,9 +333,44 @@ impl AssetMetadataMutationTrait for MockAssetRegister { } } +pub struct MockMaintenanceStatusProvider; + +lazy_static::lazy_static! { + static ref MAINTENANCE_STATUS: Mutex = { + let m: bool = false; + Mutex::new(m) + }; +} + +#[cfg(test)] +impl MockMaintenanceStatusProvider { + pub fn instance() -> &'static Mutex { + &MAINTENANCE_STATUS + } +} + +impl MockMaintenanceStatusProvider { + pub fn set_maintenance(value: bool) { + let mut mutex = Self::instance().lock().unwrap(); + *mutex = value; + } +} + +impl GetMaintenanceStatusTrait for MockMaintenanceStatusProvider { + fn is_maintenance() -> bool { + let mutex = Self::instance().lock().unwrap(); + *mutex + } + + fn is_upgradable() -> bool { + unimplemented!() + } +} + #[cfg(not(feature = "runtime-benchmarks"))] impl Config for Test { type RuntimeEvent = RuntimeEvent; + type MaintenanceStatusProvider = MockMaintenanceStatusProvider; type ActivationReservesProvider = TokensActivationPassthrough; type Currency = MultiTokenCurrencyAdapter; type NativeCurrencyId = NativeCurrencyId; @@ -363,6 +393,7 @@ impl Config for Test { #[cfg(feature = "runtime-benchmarks")] impl Config for Test { type RuntimeEvent = RuntimeEvent; + type MaintenanceStatusProvider = MockMaintenanceStatusProvider; type ActivationReservesProvider = TokensActivationPassthrough; type Currency = MultiTokenCurrencyAdapter; type NativeCurrencyId = NativeCurrencyId; @@ -452,6 +483,11 @@ impl Pallet { .expect("Token creation failed") .into() } + + pub fn mint_token(token_id: TokenId, who: &T::AccountId, amount: Balance) { + ::Currency::mint(token_id.into(), who, amount.into()) + .expect("Token minting failed") + } } // This function basically just builds a genesis storage key/value store according to @@ -459,7 +495,10 @@ impl Pallet { pub fn new_test_ext() -> sp_io::TestExternalities { let mut ext: sp_io::TestExternalities = system::GenesisConfig::default().build_storage::().unwrap().into(); - ext.execute_with(|| System::set_block_number(1)); + ext.execute_with(|| { + System::set_block_number(1); + MockMaintenanceStatusProvider::set_maintenance(false); + }); ext } diff --git a/pallets/xyk/src/tests.rs b/pallets/xyk/src/tests.rs index cccb19936c..23cccc7bf5 100644 --- a/pallets/xyk/src/tests.rs +++ b/pallets/xyk/src/tests.rs @@ -63,6 +63,7 @@ use test_case::test_case; // W - should work // N - should not work const DUMMY_USER_ID: u128 = 2; +const TRADER_ID: u128 = 3; fn initialize() { // creating asset with assetId 0 and minting to accountId 2 @@ -96,6 +97,74 @@ fn initialize() { assert!(System::events().iter().any(|record| record.event == pool_created_event)); } +fn multi_initialize() { + // creating asset with assetId 0 and minting to accountId 2 + System::set_block_number(1); + let acc_id: u128 = 2; + let amount: u128 = 1000000000000000000000; + // creates token with ID = 0; + XykStorage::create_new_token(&DUMMY_USER_ID, amount); + // creates token with ID = 1; + XykStorage::create_new_token(&DUMMY_USER_ID, amount); + // creates token with ID = 2; + XykStorage::create_new_token(&DUMMY_USER_ID, amount); + // creates token with ID = 3; + XykStorage::create_new_token(&DUMMY_USER_ID, amount); + // creates token with ID = 4; + XykStorage::create_new_token(&DUMMY_USER_ID, amount); + // creates token with ID = 5; + XykStorage::create_new_token(&DUMMY_USER_ID, amount); + + // creates token with ID = 0; + XykStorage::mint_token(0, &TRADER_ID, amount); + // creates token with ID = 1; + XykStorage::mint_token(1, &TRADER_ID, amount); + // creates token with ID = 2; + XykStorage::mint_token(2, &TRADER_ID, amount); + // creates token with ID = 3; + XykStorage::mint_token(3, &TRADER_ID, amount); + // creates token with ID = 4; + XykStorage::mint_token(4, &TRADER_ID, amount); + // creates token with ID = 5; + XykStorage::mint_token(5, &TRADER_ID, amount); + + XykStorage::create_pool( + RuntimeOrigin::signed(DUMMY_USER_ID), + 1, + 40000000000000000000, + 2, + 60000000000000000000, + ) + .unwrap(); + + XykStorage::create_pool( + RuntimeOrigin::signed(DUMMY_USER_ID), + 2, + 40000000000000000000, + 3, + 60000000000000000000, + ) + .unwrap(); + + XykStorage::create_pool( + RuntimeOrigin::signed(DUMMY_USER_ID), + 3, + 40000000000000000000, + 4, + 60000000000000000000, + ) + .unwrap(); + + XykStorage::create_pool( + RuntimeOrigin::signed(DUMMY_USER_ID), + 4, + 40000000000000000000, + 5, + 60000000000000000000, + ) + .unwrap(); +} + fn initialize_buy_and_burn() { // creating asset with assetId 0 and minting to accountId 2 let acc_id: u128 = 2; @@ -144,7 +213,7 @@ fn liquidity_rewards_single_user_mint_W() { XykStorage::create_new_token(&acc_id, amount); XykStorage::create_pool(RuntimeOrigin::signed(2), 0, 10000, 1, 10000).unwrap(); - XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, Some(1u8)).unwrap(); + XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, 1u8).unwrap(); let liquidity_tokens_owned = XykStorage::balance(4, 2); XykStorage::activate_liquidity_v2( @@ -255,7 +324,7 @@ fn liquidity_rewards_three_users_mint_W() { XykStorage::create_new_token(&acc_id, amount); XykStorage::create_pool(RuntimeOrigin::signed(2), 0, 10000, 1, 10000).unwrap(); - XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, Some(1u8)).unwrap(); + XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, 1u8).unwrap(); XykStorage::transfer(0, 2, 3, 1000000).unwrap(); XykStorage::transfer(1, 2, 3, 1000000).unwrap(); @@ -330,7 +399,7 @@ fn liquidity_rewards_three_users_burn_W() { XykStorage::create_new_token(&acc_id, amount); XykStorage::create_pool(RuntimeOrigin::signed(2), 0, 10000, 1, 10000).unwrap(); - XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, Some(1u8)).unwrap(); + XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, 1u8).unwrap(); XykStorage::transfer(0, 2, 3, 1000000).unwrap(); XykStorage::transfer(1, 2, 3, 1000000).unwrap(); XykStorage::transfer(0, 2, 4, 1000000).unwrap(); @@ -403,7 +472,7 @@ fn liquidity_rewards_claim_W() { .unwrap(); XykStorage::create_pool(RuntimeOrigin::signed(2), 0, 10000, 1, 10000).unwrap(); - XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, Some(1u8)).unwrap(); + XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, 1u8).unwrap(); let liquidity_tokens_owned = XykStorage::balance(4, 2); XykStorage::activate_liquidity_v2( RuntimeOrigin::signed(2), @@ -454,7 +523,7 @@ fn liquidity_rewards_promote_pool_W() { XykStorage::create_new_token(&acc_id, amount); XykStorage::create_pool(RuntimeOrigin::signed(2), 0, 5000, 1, 5000).unwrap(); - XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, Some(1u8)).unwrap(); + XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, 1u8).unwrap(); }); } @@ -472,7 +541,7 @@ fn liquidity_rewards_promote_pool_already_promoted_NW() { XykStorage::create_new_token(&acc_id, amount); XykStorage::create_new_token(&acc_id, amount); XykStorage::create_pool(RuntimeOrigin::signed(2), 0, 5000, 1, 5000).unwrap(); - XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, Some(1u8)).unwrap(); + XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, 1u8).unwrap(); assert!(::PoolPromoteApi::get_pool_rewards_v2(4).is_some()); }); @@ -514,7 +583,7 @@ fn liquidity_rewards_work_after_burn_W() { XykStorage::create_new_token(&acc_id, amount); XykStorage::create_pool(RuntimeOrigin::signed(2), 0, 10000, 1, 10000).unwrap(); - XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, Some(1u8)).unwrap(); + XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, 1u8).unwrap(); XykStorage::transfer(0, 2, 3, 1000000).unwrap(); XykStorage::transfer(1, 2, 3, 1000000).unwrap(); XykStorage::transfer(0, 2, 4, 1000000).unwrap(); @@ -588,7 +657,7 @@ fn liquidity_rewards_deactivate_transfer_controled_W() { XykStorage::create_new_token(&acc_id, amount); XykStorage::create_pool(RuntimeOrigin::signed(2), 0, 10000, 1, 10000).unwrap(); - XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, Some(1u8)).unwrap(); + XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, 1u8).unwrap(); let liquidity_tokens_owned = XykStorage::balance(4, 2); @@ -631,7 +700,7 @@ fn liquidity_rewards_deactivate_more_NW() { XykStorage::create_new_token(&acc_id, amount); XykStorage::create_pool(RuntimeOrigin::signed(2), 0, 10000, 1, 10000).unwrap(); - XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, Some(1u8)).unwrap(); + XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, 1u8).unwrap(); let liquidity_tokens_owned = XykStorage::balance(4, 2); XykStorage::activate_liquidity_v2( @@ -668,7 +737,7 @@ fn liquidity_rewards_activate_more_NW() { XykStorage::create_new_token(&acc_id, amount); XykStorage::create_pool(RuntimeOrigin::signed(2), 0, 10000, 1, 10000).unwrap(); - XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, Some(1u8)).unwrap(); + XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, 1u8).unwrap(); let liquidity_tokens_owned = XykStorage::balance(4, 2); assert_err!( @@ -736,6 +805,7 @@ fn liquidity_rewards_transfer_not_working() { } #[test] +#[serial] fn set_info_should_work() { new_test_ext().execute_with(|| { // creating asset with assetId 0 and minting to accountId 2 @@ -768,6 +838,7 @@ fn set_info_should_work() { } #[test] +#[serial] fn set_info_should_work_with_small_numbers() { new_test_ext().execute_with(|| { // creating asset with assetId 0 and minting to accountId 2 @@ -803,6 +874,7 @@ fn set_info_should_work_with_small_numbers() { } #[test] +#[serial] #[ignore] fn set_info_should_work_with_large_numbers() { new_test_ext().execute_with(|| { @@ -839,9 +911,11 @@ fn set_info_should_work_with_large_numbers() { } #[test] +#[serial] fn buy_and_burn_sell_mangata() { new_test_ext().execute_with(|| { initialize_buy_and_burn(); + XykStorage::sell_asset(RuntimeOrigin::signed(2), 0, 1, 50000000000000, 0).unwrap(); assert_eq!(XykStorage::asset_pool((0, 1)), (149949999999998, 66733400066734)); @@ -857,9 +931,11 @@ fn buy_and_burn_sell_mangata() { } #[test] +#[serial] fn buy_and_burn_sell_has_mangata_pair() { new_test_ext().execute_with(|| { initialize_buy_and_burn(); + XykStorage::sell_asset(RuntimeOrigin::signed(2), 1, 4, 50000000000000, 0).unwrap(); assert_eq!(XykStorage::asset_pool((0, 1)), (99950024987505, 100050000000002)); @@ -877,9 +953,11 @@ fn buy_and_burn_sell_has_mangata_pair() { } #[test] +#[serial] fn buy_and_burn_sell_none_have_mangata_pair() { new_test_ext().execute_with(|| { initialize_buy_and_burn(); + XykStorage::sell_asset(RuntimeOrigin::signed(2), 4, 1, 50000000000000, 0).unwrap(); assert_eq!(XykStorage::asset_pool((0, 1)), (100000000000000, 100000000000000)); @@ -897,9 +975,11 @@ fn buy_and_burn_sell_none_have_mangata_pair() { } #[test] +#[serial] fn buy_and_burn_buy_where_sold_is_mangata() { new_test_ext().execute_with(|| { initialize_buy_and_burn(); + XykStorage::buy_asset(RuntimeOrigin::signed(2), 0, 1, 33266599933266, 50000000000001) .unwrap(); @@ -917,9 +997,11 @@ fn buy_and_burn_buy_where_sold_is_mangata() { } #[test] +#[serial] fn buy_and_burn_buy_where_sold_has_mangata_pair() { new_test_ext().execute_with(|| { initialize_buy_and_burn(); + XykStorage::buy_asset(RuntimeOrigin::signed(2), 1, 4, 33266599933266, 50000000000001) .unwrap(); @@ -938,9 +1020,11 @@ fn buy_and_burn_buy_where_sold_has_mangata_pair() { } #[test] +#[serial] fn buy_and_burn_buy_none_have_mangata_pair() { new_test_ext().execute_with(|| { initialize_buy_and_burn(); + XykStorage::buy_asset(RuntimeOrigin::signed(2), 4, 1, 33266599933266, 50000000000001) .unwrap(); @@ -959,6 +1043,7 @@ fn buy_and_burn_buy_none_have_mangata_pair() { } #[test] +#[serial] fn multi() { new_test_ext().execute_with(|| { let acc_id: u128 = 2; @@ -1062,6 +1147,7 @@ fn multi() { } #[test] +#[serial] fn create_pool_W() { new_test_ext().execute_with(|| { initialize(); @@ -1080,6 +1166,7 @@ fn create_pool_W() { } #[test] +#[serial] fn create_pool_N_already_exists() { new_test_ext().execute_with(|| { initialize(); @@ -1092,6 +1179,7 @@ fn create_pool_N_already_exists() { } #[test] +#[serial] fn create_pool_N_already_exists_other_way() { new_test_ext().execute_with(|| { initialize(); @@ -1104,6 +1192,7 @@ fn create_pool_N_already_exists_other_way() { } #[test] +#[serial] fn create_pool_N_not_enough_first_asset() { new_test_ext().execute_with(|| { let acc_id: u128 = 2; @@ -1119,6 +1208,7 @@ fn create_pool_N_not_enough_first_asset() { } #[test] +#[serial] fn create_pool_N_not_enough_second_asset() { new_test_ext().execute_with(|| { let acc_id: u128 = 2; @@ -1134,6 +1224,7 @@ fn create_pool_N_not_enough_second_asset() { } #[test] +#[serial] fn create_pool_N_same_asset() { new_test_ext().execute_with(|| { initialize(); @@ -1146,6 +1237,7 @@ fn create_pool_N_same_asset() { } #[test] +#[serial] fn create_pool_N_zero_first_amount() { new_test_ext().execute_with(|| { initialize(); @@ -1158,6 +1250,7 @@ fn create_pool_N_zero_first_amount() { } #[test] +#[serial] fn create_pool_N_zero_second_amount() { new_test_ext().execute_with(|| { initialize(); @@ -1170,10 +1263,12 @@ fn create_pool_N_zero_second_amount() { } #[test] +#[serial] fn sell_W() { new_test_ext().execute_with(|| { System::set_block_number(1); initialize(); + XykStorage::sell_asset(RuntimeOrigin::signed(2), 1, 4, 20000000000000000000, 0).unwrap(); // selling 20000000000000000000 assetId 0 of pool 0 1 assert_eq!(XykStorage::balance(1, 2), 940000000000000000000); // amount in user acc after selling @@ -1199,6 +1294,7 @@ fn sell_W() { } #[test] +#[serial] fn sell_W_other_way() { new_test_ext().execute_with(|| { initialize(); @@ -1219,6 +1315,7 @@ fn sell_W_other_way() { } #[test] +#[serial] fn sell_N_no_such_pool() { new_test_ext().execute_with(|| { initialize(); @@ -1230,6 +1327,7 @@ fn sell_N_no_such_pool() { }); } #[test] +#[serial] fn sell_N_not_enough_selling_assset() { new_test_ext().execute_with(|| { initialize(); @@ -1242,6 +1340,7 @@ fn sell_N_not_enough_selling_assset() { } #[test] +#[serial] fn sell_W_insufficient_output_amount() { new_test_ext().execute_with(|| { initialize(); @@ -1270,6 +1369,7 @@ fn sell_W_insufficient_output_amount() { } #[test] +#[serial] fn sell_N_insufficient_output_amount_inner_function_error_upon_bad_slippage() { new_test_ext().execute_with(|| { initialize(); @@ -1282,6 +1382,7 @@ fn sell_N_insufficient_output_amount_inner_function_error_upon_bad_slippage() { } #[test] +#[serial] fn sell_W_insufficient_output_amount_inner_function_NO_error_upon_bad_slippage() { new_test_ext().execute_with(|| { initialize(); @@ -1293,6 +1394,7 @@ fn sell_W_insufficient_output_amount_inner_function_NO_error_upon_bad_slippage() } #[test] +#[serial] fn sell_N_zero_amount() { new_test_ext().execute_with(|| { initialize(); @@ -1305,10 +1407,436 @@ fn sell_N_zero_amount() { } #[test] +fn multiswap_sell_W() { + new_test_ext().execute_with(|| { + System::set_block_number(1); + multi_initialize(); + + assert_eq!(XykStorage::balance(1, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(2, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(3, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(4, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(5, TRADER_ID), 1000000000000000000000); + + assert_eq!(XykStorage::asset_pool((1, 2)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((2, 3)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((3, 4)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((4, 5)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::balance(1, XykStorage::account_id()), 40000000000000000000); + assert_eq!(XykStorage::balance(2, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(3, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(4, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(5, XykStorage::account_id()), 60000000000000000000); + + assert_ok!(XykStorage::multiswap_sell_asset( + RuntimeOrigin::signed(TRADER_ID), + vec![1, 2, 3, 4, 5], + 20000000000000000000, + 0 + )); + + assert_eq!(XykStorage::balance(1, TRADER_ID), 980000000000000000000); + assert_eq!(XykStorage::balance(2, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(3, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(4, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(5, TRADER_ID), 1019903585399816558050); + + assert_eq!(XykStorage::asset_pool((1, 2)), (59979999999999999998, 40040040040040040041)); + assert_eq!(XykStorage::asset_pool((2, 3)), (59939999999999999999, 40066724398222064173)); + assert_eq!(XykStorage::asset_pool((3, 4)), (59913342326176157891, 40084527730110691659)); + assert_eq!(XykStorage::asset_pool((4, 5)), (59895556797619419031, 40096414600183441950)); + assert_eq!(XykStorage::balance(1, XykStorage::account_id()), 59979999999999999998); + assert_eq!(XykStorage::balance(2, XykStorage::account_id()), 99980040040040040040); + assert_eq!(XykStorage::balance(3, XykStorage::account_id()), 99980066724398222064); + assert_eq!(XykStorage::balance(4, XykStorage::account_id()), 99980084527730110690); + assert_eq!(XykStorage::balance(5, XykStorage::account_id()), 40096414600183441950); + + let assets_swapped_event = + crate::mock::RuntimeEvent::XykStorage(crate::Event::::AssetsMultiSellSwapped( + TRADER_ID, + vec![1, 2, 3, 4, 5], + 20000000000000000000, + 19903585399816558050, + )); + + assert!(System::events().iter().any(|record| record.event == assets_swapped_event)); + }); +} + +#[test] +fn multiswap_sell_bad_slippage_charges_fee_W() { + new_test_ext().execute_with(|| { + System::set_block_number(1); + multi_initialize(); + + assert_eq!(XykStorage::balance(1, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(2, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(3, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(4, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(5, TRADER_ID), 1000000000000000000000); + + assert_eq!(XykStorage::asset_pool((1, 2)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((2, 3)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((3, 4)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((4, 5)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::balance(1, XykStorage::account_id()), 40000000000000000000); + assert_eq!(XykStorage::balance(2, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(3, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(4, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(5, XykStorage::account_id()), 60000000000000000000); + + assert_ok!(XykStorage::multiswap_sell_asset( + RuntimeOrigin::signed(TRADER_ID), + vec![1, 2, 3, 4, 5], + 20000000000000000000, + 20000000000000000000 + )); + + assert_eq!(XykStorage::balance(1, TRADER_ID), 999939999999999999997); + assert_eq!(XykStorage::balance(2, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(3, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(4, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(5, TRADER_ID), 1000000000000000000000); + + assert_eq!(XykStorage::asset_pool((1, 2)), (40040000000000000001, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((2, 3)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((3, 4)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((4, 5)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::balance(1, XykStorage::account_id()), 40040000000000000001); + assert_eq!(XykStorage::balance(2, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(3, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(4, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(5, XykStorage::account_id()), 60000000000000000000); + + let assets_swapped_event = crate::mock::RuntimeEvent::XykStorage( + crate::Event::::MultiSellAssetFailedDueToSlippage( + TRADER_ID, + vec![1, 2, 3, 4, 5], + 20000000000000000000, + ), + ); + + assert!(System::events().iter().any(|record| record.event == assets_swapped_event)); + }); +} + +#[test] +fn multiswap_sell_bad_atomic_swap_charges_fee_W() { + new_test_ext().execute_with(|| { + System::set_block_number(1); + multi_initialize(); + + assert_eq!(XykStorage::balance(1, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(2, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(3, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(4, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(5, TRADER_ID), 1000000000000000000000); + + assert_eq!(XykStorage::asset_pool((1, 2)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((2, 3)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((3, 4)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((4, 5)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::balance(1, XykStorage::account_id()), 40000000000000000000); + assert_eq!(XykStorage::balance(2, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(3, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(4, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(5, XykStorage::account_id()), 60000000000000000000); + + assert_ok!(XykStorage::multiswap_sell_asset( + RuntimeOrigin::signed(TRADER_ID), + vec![1, 2, 3, 6, 5], + 20000000000000000000, + 20000000000000000000 + )); + + assert_eq!(XykStorage::balance(1, TRADER_ID), 999939999999999999997); + assert_eq!(XykStorage::balance(2, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(3, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(4, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(5, TRADER_ID), 1000000000000000000000); + + assert_eq!(XykStorage::asset_pool((1, 2)), (40040000000000000001, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((2, 3)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((3, 4)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((4, 5)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::balance(1, XykStorage::account_id()), 40040000000000000001); + assert_eq!(XykStorage::balance(2, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(3, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(4, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(5, XykStorage::account_id()), 60000000000000000000); + + let assets_swapped_event = crate::mock::RuntimeEvent::XykStorage( + crate::Event::::MultiSellAssetFailedOnAtomicSwap( + TRADER_ID, + vec![1, 2, 3, 6, 5], + 20000000000000000000, + ), + ); + + assert!(System::events().iter().any(|record| record.event == assets_swapped_event)); + }); +} + +#[test] +fn multiswap_sell_not_enough_assets_pay_fees_fails_early_W() { + new_test_ext().execute_with(|| { + System::set_block_number(1); + multi_initialize(); + + assert_eq!(XykStorage::balance(1, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(2, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(3, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(4, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(5, TRADER_ID), 1000000000000000000000); + + assert_eq!(XykStorage::asset_pool((1, 2)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((2, 3)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((3, 4)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((4, 5)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::balance(1, XykStorage::account_id()), 40000000000000000000); + assert_eq!(XykStorage::balance(2, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(3, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(4, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(5, XykStorage::account_id()), 60000000000000000000); + + assert_err!( + XykStorage::multiswap_sell_asset( + RuntimeOrigin::signed(TRADER_ID), + vec![1, 2, 3, 6, 5], + 2000000000000000000000000, + 0 + ), + Error::::NotEnoughAssets + ); + + assert_eq!(XykStorage::balance(1, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(2, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(3, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(4, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(5, TRADER_ID), 1000000000000000000000); + + assert_eq!(XykStorage::asset_pool((1, 2)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((2, 3)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((3, 4)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((4, 5)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::balance(1, XykStorage::account_id()), 40000000000000000000); + assert_eq!(XykStorage::balance(2, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(3, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(4, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(5, XykStorage::account_id()), 60000000000000000000); + }); +} + +#[test] +fn multiswap_sell_just_enough_assets_pay_fee_but_not_to_swap_W() { + new_test_ext().execute_with(|| { + System::set_block_number(1); + multi_initialize(); + + assert_eq!(XykStorage::balance(1, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(2, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(3, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(4, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(5, TRADER_ID), 1000000000000000000000); + + assert_eq!(XykStorage::asset_pool((1, 2)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((2, 3)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((3, 4)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((4, 5)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::balance(1, XykStorage::account_id()), 40000000000000000000); + assert_eq!(XykStorage::balance(2, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(3, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(4, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(5, XykStorage::account_id()), 60000000000000000000); + + assert_ok!(XykStorage::multiswap_sell_asset( + RuntimeOrigin::signed(TRADER_ID), + vec![1, 2, 3, 4, 5], + 2000000000000000000000, + 0 + )); + + assert_eq!(XykStorage::balance(1, TRADER_ID), 993999999999999999997); + assert_eq!(XykStorage::balance(2, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(3, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(4, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(5, TRADER_ID), 1000000000000000000000); + + assert_eq!(XykStorage::asset_pool((1, 2)), (44000000000000000001, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((2, 3)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((3, 4)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((4, 5)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::balance(1, XykStorage::account_id()), 44000000000000000001); + assert_eq!(XykStorage::balance(2, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(3, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(4, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(5, XykStorage::account_id()), 60000000000000000000); + + let assets_swapped_event = crate::mock::RuntimeEvent::XykStorage( + crate::Event::::MultiSwapFailedDueToNotEnoughAssets( + TRADER_ID, + vec![1, 2, 3, 4, 5], + 2000000000000000000000, + ), + ); + + assert!(System::events().iter().any(|record| record.event == assets_swapped_event)); + }); +} + +#[test] +fn multiswap_sell_with_two_hops_W() { + new_test_ext().execute_with(|| { + System::set_block_number(1); + multi_initialize(); + + assert_ok!(XykStorage::multiswap_sell_asset( + RuntimeOrigin::signed(TRADER_ID), + vec![1, 2, 3], + 20000000000000000000, + 0 + )); + + let assets_swapped_event = + crate::mock::RuntimeEvent::XykStorage(crate::Event::::AssetsMultiSellSwapped( + TRADER_ID, + vec![1, 2, 3], + 20000000000000000000, + 19933275601777935827, + )); + + assert!(System::events().iter().any(|record| record.event == assets_swapped_event)); + }); +} + +#[test] +fn multiswap_sell_with_less_than_two_hops_fails_W() { + new_test_ext().execute_with(|| { + System::set_block_number(1); + multi_initialize(); + + assert_err!( + XykStorage::multiswap_sell_asset( + RuntimeOrigin::signed(TRADER_ID), + vec![1, 2], + 20000000000000000000, + 0 + ), + Error::::MultiswapShouldBeAtleastTwoHops + ); + }); +} + +#[test] +fn multiswap_sell_same_pool_works_W() { + new_test_ext().execute_with(|| { + System::set_block_number(1); + multi_initialize(); + + assert_eq!(XykStorage::balance(1, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(2, TRADER_ID), 1000000000000000000000); + + assert_eq!(XykStorage::asset_pool((1, 2)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::balance(1, XykStorage::account_id()), 40000000000000000000); + assert_eq!(XykStorage::balance(2, XykStorage::account_id()), 100000000000000000000); + + assert_ok!(XykStorage::multiswap_sell_asset( + RuntimeOrigin::signed(TRADER_ID), + vec![1, 2, 1], + 20000000000000000000, + 0 + )); + + assert_eq!(XykStorage::balance(1, TRADER_ID), 999913320173720252676); + assert_eq!(XykStorage::balance(2, TRADER_ID), 1000000000000000000000); + + assert_eq!(XykStorage::asset_pool((1, 2)), (40066679826279747322, 59980040040040040040)); + assert_eq!(XykStorage::balance(1, XykStorage::account_id()), 40066679826279747322); + assert_eq!(XykStorage::balance(2, XykStorage::account_id()), 99980040040040040040); + + let assets_swapped_event = + crate::mock::RuntimeEvent::XykStorage(crate::Event::::AssetsMultiSellSwapped( + TRADER_ID, + vec![1, 2, 1], + 20000000000000000000, + 19913320173720252676, + )); + + assert!(System::events().iter().any(|record| record.event == assets_swapped_event)); + }); +} + +#[test] +fn multiswap_sell_loop_works_W() { + new_test_ext().execute_with(|| { + System::set_block_number(1); + multi_initialize(); + + assert_eq!(XykStorage::balance(1, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(2, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(3, TRADER_ID), 1000000000000000000000); + + assert_eq!(XykStorage::asset_pool((1, 2)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((2, 3)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::balance(1, XykStorage::account_id()), 40000000000000000000); + assert_eq!(XykStorage::balance(2, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(3, XykStorage::account_id()), 100000000000000000000); + + assert_ok!(XykStorage::multiswap_sell_asset( + RuntimeOrigin::signed(TRADER_ID), + vec![1, 2, 3, 2, 1, 2], + 20000000000000000000, + 0 + )); + + assert_eq!(XykStorage::balance(1, TRADER_ID), 980000000000000000000); + assert_eq!(XykStorage::balance(2, TRADER_ID), 1019787116737807948784); + assert_eq!(XykStorage::balance(3, TRADER_ID), 1000000000000000000000); + + assert_eq!(XykStorage::asset_pool((1, 2)), (59960144443715038028, 40106459299365557069)); + assert_eq!(XykStorage::asset_pool((2, 3)), (40066590593459994181, 59980066724398222064)); + assert_eq!(XykStorage::balance(1, XykStorage::account_id()), 59960144443715038028); + assert_eq!(XykStorage::balance(2, XykStorage::account_id()), 80173049892825551250); + assert_eq!(XykStorage::balance(3, XykStorage::account_id()), 99980066724398222064); + + let assets_swapped_event = + crate::mock::RuntimeEvent::XykStorage(crate::Event::::AssetsMultiSellSwapped( + TRADER_ID, + vec![1, 2, 3, 2, 1, 2], + 20000000000000000000, + 19787116737807948784, + )); + + assert!(System::events().iter().any(|record| record.event == assets_swapped_event)); + }); +} + +#[test] +#[serial] +fn multiswap_sell_zero_amount_does_not_work_N() { + new_test_ext().execute_with(|| { + System::set_block_number(1); + multi_initialize(); + + assert_err!( + XykStorage::multiswap_sell_asset( + RuntimeOrigin::signed(TRADER_ID), + vec![1, 2, 3], + 0, + 20000000000000000000 + ), + Error::::ZeroAmount + ); + }); +} + +#[test] +#[serial] fn buy_W() { new_test_ext().execute_with(|| { System::set_block_number(1); initialize(); + // buying 30000000000000000000 assetId 1 of pool 0 1 XykStorage::buy_asset( RuntimeOrigin::signed(2), @@ -1340,9 +1868,11 @@ fn buy_W() { } #[test] +#[serial] fn buy_W_other_way() { new_test_ext().execute_with(|| { initialize(); + // buying 30000000000000000000 assetId 0 of pool 0 1 XykStorage::buy_asset( RuntimeOrigin::signed(2), @@ -1366,6 +1896,7 @@ fn buy_W_other_way() { } #[test] +#[serial] fn buy_N_no_such_pool() { new_test_ext().execute_with(|| { initialize(); @@ -1379,6 +1910,7 @@ fn buy_N_no_such_pool() { } #[test] +#[serial] fn buy_N_not_enough_reserve() { new_test_ext().execute_with(|| { initialize(); @@ -1398,6 +1930,7 @@ fn buy_N_not_enough_reserve() { } #[test] +#[serial] fn buy_N_not_enough_selling_assset() { new_test_ext().execute_with(|| { initialize(); @@ -1417,6 +1950,7 @@ fn buy_N_not_enough_selling_assset() { } #[test] +#[serial] fn buy_W_insufficient_input_amount() { new_test_ext().execute_with(|| { initialize(); @@ -1445,6 +1979,7 @@ fn buy_W_insufficient_input_amount() { } #[test] +#[serial] fn buy_N_insufficient_input_amount_inner_function_error_upon_bad_slippage() { new_test_ext().execute_with(|| { initialize(); @@ -1458,6 +1993,7 @@ fn buy_N_insufficient_input_amount_inner_function_error_upon_bad_slippage() { } #[test] +#[serial] fn buy_W_insufficient_input_amount_inner_function_NO_error_upon_bad_slippage() { new_test_ext().execute_with(|| { initialize(); @@ -1470,6 +2006,7 @@ fn buy_W_insufficient_input_amount_inner_function_NO_error_upon_bad_slippage() { } #[test] +#[serial] fn buy_N_zero_amount() { new_test_ext().execute_with(|| { initialize(); @@ -1482,6 +2019,400 @@ fn buy_N_zero_amount() { } #[test] +fn multiswap_buy_W() { + new_test_ext().execute_with(|| { + System::set_block_number(1); + multi_initialize(); + + assert_eq!(XykStorage::balance(1, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(2, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(3, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(4, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(5, TRADER_ID), 1000000000000000000000); + + assert_eq!(XykStorage::asset_pool((1, 2)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((2, 3)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((3, 4)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((4, 5)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::balance(1, XykStorage::account_id()), 40000000000000000000); + assert_eq!(XykStorage::balance(2, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(3, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(4, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(5, XykStorage::account_id()), 60000000000000000000); + + assert_ok!(XykStorage::multiswap_buy_asset( + RuntimeOrigin::signed(TRADER_ID), + vec![1, 2, 3, 4, 5], + 20000000000000000000, + 200000000000000000000 + )); + + assert_eq!(XykStorage::balance(1, TRADER_ID), 979503362184986098460); + assert_eq!(XykStorage::balance(2, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(3, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(4, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(5, TRADER_ID), 1020000000000000000000); + + assert_eq!(XykStorage::asset_pool((1, 2)), (60476141177198887638, 39711990180100104523)); + assert_eq!(XykStorage::asset_pool((2, 3)), (60267721810079995581, 39849140591034781894)); + assert_eq!(XykStorage::asset_pool((3, 4)), (60130708549556252886, 39939819458375125376)); + assert_eq!(XykStorage::asset_pool((4, 5)), (60040120361083249748, 40000000000000000000)); + assert_eq!(XykStorage::balance(1, XykStorage::account_id()), 60476141177198887638); + assert_eq!(XykStorage::balance(2, XykStorage::account_id()), 99979711990180100104); + assert_eq!(XykStorage::balance(3, XykStorage::account_id()), 99979849140591034780); + assert_eq!(XykStorage::balance(4, XykStorage::account_id()), 99979939819458375124); + assert_eq!(XykStorage::balance(5, XykStorage::account_id()), 40000000000000000000); + + let assets_swapped_event = + crate::mock::RuntimeEvent::XykStorage(crate::Event::::AssetsMultiBuySwapped( + TRADER_ID, + vec![1, 2, 3, 4, 5], + 20496637815013901540, + 20000000000000000000, + )); + + assert!(System::events().iter().any(|record| record.event == assets_swapped_event)); + }); +} + +#[test] +fn multiswap_buy_bad_slippage_charges_fee_W() { + new_test_ext().execute_with(|| { + System::set_block_number(1); + multi_initialize(); + + assert_eq!(XykStorage::balance(1, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(2, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(3, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(4, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(5, TRADER_ID), 1000000000000000000000); + + assert_eq!(XykStorage::asset_pool((1, 2)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((2, 3)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((3, 4)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((4, 5)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::balance(1, XykStorage::account_id()), 40000000000000000000); + assert_eq!(XykStorage::balance(2, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(3, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(4, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(5, XykStorage::account_id()), 60000000000000000000); + + assert_ok!(XykStorage::multiswap_buy_asset( + RuntimeOrigin::signed(TRADER_ID), + vec![1, 2, 3, 4, 5], + 20000000000000000000, + 200000000000000000 + )); + + assert_eq!(XykStorage::balance(1, TRADER_ID), 999999399999999999997); + assert_eq!(XykStorage::balance(2, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(3, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(4, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(5, TRADER_ID), 1000000000000000000000); + + assert_eq!(XykStorage::asset_pool((1, 2)), (40000400000000000001, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((2, 3)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((3, 4)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((4, 5)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::balance(1, XykStorage::account_id()), 40000400000000000001); + assert_eq!(XykStorage::balance(2, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(3, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(4, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(5, XykStorage::account_id()), 60000000000000000000); + + let assets_swapped_event = crate::mock::RuntimeEvent::XykStorage( + crate::Event::::MultiBuyAssetFailedDueToSlippage( + TRADER_ID, + vec![1, 2, 3, 4, 5], + 20000000000000000000, + ), + ); + + assert!(System::events().iter().any(|record| record.event == assets_swapped_event)); + }); +} + +#[test] +fn multiswap_buy_bad_atomic_swap_charges_fee_W() { + new_test_ext().execute_with(|| { + System::set_block_number(1); + multi_initialize(); + + assert_eq!(XykStorage::balance(1, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(2, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(3, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(4, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(5, TRADER_ID), 1000000000000000000000); + + assert_eq!(XykStorage::asset_pool((1, 2)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((2, 3)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((3, 4)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((4, 5)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::balance(1, XykStorage::account_id()), 40000000000000000000); + assert_eq!(XykStorage::balance(2, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(3, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(4, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(5, XykStorage::account_id()), 60000000000000000000); + + assert_ok!(XykStorage::multiswap_buy_asset( + RuntimeOrigin::signed(TRADER_ID), + vec![1, 2, 3, 6, 5], + 20000000000000000000, + 200000000000000000 + )); + + assert_eq!(XykStorage::balance(1, TRADER_ID), 999999399999999999997); + assert_eq!(XykStorage::balance(2, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(3, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(4, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(5, TRADER_ID), 1000000000000000000000); + + assert_eq!(XykStorage::asset_pool((1, 2)), (40000400000000000001, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((2, 3)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((3, 4)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((4, 5)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::balance(1, XykStorage::account_id()), 40000400000000000001); + assert_eq!(XykStorage::balance(2, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(3, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(4, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(5, XykStorage::account_id()), 60000000000000000000); + + let assets_swapped_event = crate::mock::RuntimeEvent::XykStorage( + crate::Event::::MultiBuyAssetFailedOnAtomicSwap( + TRADER_ID, + vec![1, 2, 3, 6, 5], + 20000000000000000000, + ), + ); + + assert!(System::events().iter().any(|record| record.event == assets_swapped_event)); + }); +} + +#[test] +fn multiswap_buy_not_enough_assets_pay_fees_fails_early_W() { + new_test_ext().execute_with(|| { + System::set_block_number(1); + multi_initialize(); + + assert_eq!(XykStorage::balance(1, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(2, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(3, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(4, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(5, TRADER_ID), 1000000000000000000000); + + assert_eq!(XykStorage::asset_pool((1, 2)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((2, 3)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((3, 4)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((4, 5)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::balance(1, XykStorage::account_id()), 40000000000000000000); + assert_eq!(XykStorage::balance(2, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(3, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(4, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(5, XykStorage::account_id()), 60000000000000000000); + + assert_err!( + XykStorage::multiswap_buy_asset( + RuntimeOrigin::signed(TRADER_ID), + vec![1, 2, 3, 6, 5], + 2000000000000000000000000, + 2000000000000000000000000 + ), + Error::::NotEnoughAssets + ); + + assert_eq!(XykStorage::balance(1, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(2, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(3, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(4, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(5, TRADER_ID), 1000000000000000000000); + + assert_eq!(XykStorage::asset_pool((1, 2)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((2, 3)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((3, 4)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((4, 5)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::balance(1, XykStorage::account_id()), 40000000000000000000); + assert_eq!(XykStorage::balance(2, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(3, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(4, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(5, XykStorage::account_id()), 60000000000000000000); + }); +} + +#[test] +fn multiswap_buy_just_enough_assets_pay_fee_but_not_to_swap_W() { + new_test_ext().execute_with(|| { + System::set_block_number(1); + multi_initialize(); + + assert_ok!(::Currency::transfer( + 1u32.into(), + &TRADER_ID, + &DUMMY_USER_ID, + (1000000000000000000000u128 - 1000000u128).into(), + ExistenceRequirement::KeepAlive + )); + + assert_eq!(XykStorage::balance(1, TRADER_ID), 1000000); + assert_eq!(XykStorage::balance(2, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(3, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(4, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(5, TRADER_ID), 1000000000000000000000); + + assert_eq!(XykStorage::asset_pool((1, 2)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((2, 3)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((3, 4)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((4, 5)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::balance(1, XykStorage::account_id()), 40000000000000000000); + assert_eq!(XykStorage::balance(2, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(3, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(4, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(5, XykStorage::account_id()), 60000000000000000000); + + assert_ok!(XykStorage::multiswap_buy_asset( + RuntimeOrigin::signed(TRADER_ID), + vec![1, 2, 3, 4, 5], + 100000000, + 20000000 + )); + + assert_eq!(XykStorage::balance(1, TRADER_ID), 939997); + assert_eq!(XykStorage::balance(2, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(3, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(4, TRADER_ID), 1000000000000000000000); + assert_eq!(XykStorage::balance(5, TRADER_ID), 1000000000000000000000); + + assert_eq!(XykStorage::asset_pool((1, 2)), (40000000000000040001, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((2, 3)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((3, 4)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::asset_pool((4, 5)), (40000000000000000000, 60000000000000000000)); + assert_eq!(XykStorage::balance(1, XykStorage::account_id()), 40000000000000040001); + assert_eq!(XykStorage::balance(2, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(3, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(4, XykStorage::account_id()), 100000000000000000000); + assert_eq!(XykStorage::balance(5, XykStorage::account_id()), 60000000000000000000); + + let assets_swapped_event = crate::mock::RuntimeEvent::XykStorage( + crate::Event::::MultiSwapFailedDueToNotEnoughAssets( + TRADER_ID, + vec![1, 2, 3, 4, 5], + 100000000, + ), + ); + + assert!(System::events().iter().any(|record| record.event == assets_swapped_event)); + }); +} + +#[test] +fn multiswap_buy_with_two_hops_W() { + new_test_ext().execute_with(|| { + System::set_block_number(1); + multi_initialize(); + + assert_ok!(XykStorage::multiswap_buy_asset( + RuntimeOrigin::signed(TRADER_ID), + vec![1, 2, 3], + 20000000000000000000, + 2000000000000000000000 + )); + + let assets_swapped_event = + crate::mock::RuntimeEvent::XykStorage(crate::Event::::AssetsMultiBuySwapped( + TRADER_ID, + vec![1, 2, 3], + 20150859408965218106, + 20000000000000000000, + )); + + assert!(System::events().iter().any(|record| record.event == assets_swapped_event)); + }); +} + +#[test] +fn multiswap_buy_with_less_than_two_hops_fails_W() { + new_test_ext().execute_with(|| { + System::set_block_number(1); + multi_initialize(); + + assert_err!( + XykStorage::multiswap_buy_asset( + RuntimeOrigin::signed(TRADER_ID), + vec![1, 2], + 20000000000000000000, + 2000000000000000000000 + ), + Error::::MultiswapShouldBeAtleastTwoHops + ); + }); +} + +#[test] +fn multiswap_buy_same_pool_does_not_work_N() { + new_test_ext().execute_with(|| { + System::set_block_number(1); + multi_initialize(); + + assert_err!( + XykStorage::multiswap_buy_asset( + RuntimeOrigin::signed(TRADER_ID), + vec![1, 2, 1], + 20000000000000000000, + 20000000000000000000 + ), + Error::::MultiBuyAssetCantHaveSamePoolAtomicSwaps + ); + }); +} + +#[test] +fn multiswap_buy_loop_does_not_work_N() { + new_test_ext().execute_with(|| { + System::set_block_number(1); + multi_initialize(); + + assert_err!( + XykStorage::multiswap_buy_asset( + RuntimeOrigin::signed(TRADER_ID), + vec![1, 2, 3, 2, 1, 2], + 20000000000000000000, + 20000000000000000000 + ), + Error::::MultiBuyAssetCantHaveSamePoolAtomicSwaps + ); + }); +} + +#[test] +#[serial] +fn multiswap_buy_zero_amount_does_not_work_N() { + new_test_ext().execute_with(|| { + System::set_block_number(1); + multi_initialize(); + + assert_err!( + XykStorage::multiswap_buy_asset( + RuntimeOrigin::signed(TRADER_ID), + vec![1, 2, 3], + 0, + 20000000000000000000 + ), + Error::::ZeroAmount + ); + assert_err!( + XykStorage::multiswap_buy_asset( + RuntimeOrigin::signed(TRADER_ID), + vec![1, 2, 3], + 20000000000000000000, + 0 + ), + Error::::ZeroAmount + ); + }); +} + +#[test] +#[serial] fn mint_W() { new_test_ext().execute_with(|| { initialize(); @@ -1518,6 +2449,7 @@ fn mint_W() { } #[test] +#[serial] fn mint_W_other_way() { new_test_ext().execute_with(|| { initialize(); @@ -1543,6 +2475,7 @@ fn mint_W_other_way() { } #[test] +#[serial] fn mint_N_no_such_pool() { new_test_ext().execute_with(|| { initialize(); @@ -1554,6 +2487,7 @@ fn mint_N_no_such_pool() { } #[test] +#[serial] fn mint_N_not_enough_first_asset() { new_test_ext().execute_with(|| { initialize(); @@ -1571,6 +2505,7 @@ fn mint_N_not_enough_first_asset() { } #[test] +#[serial] fn mint_N_not_enough_second_asset() { new_test_ext().execute_with(|| { initialize(); @@ -1588,6 +2523,7 @@ fn mint_N_not_enough_second_asset() { } #[test] +#[serial] fn min_N_zero_amount() { new_test_ext().execute_with(|| { initialize(); @@ -1599,6 +2535,7 @@ fn min_N_zero_amount() { } #[test] +#[serial] fn mint_N_second_asset_amount_exceeded_expectations() { new_test_ext().execute_with(|| { initialize(); @@ -1610,6 +2547,7 @@ fn mint_N_second_asset_amount_exceeded_expectations() { } #[test] +#[serial] fn burn_W() { new_test_ext().execute_with(|| { initialize(); @@ -1638,6 +2576,7 @@ fn burn_W() { } #[test] +#[serial] fn burn_W_other_way() { new_test_ext().execute_with(|| { initialize(); @@ -1654,6 +2593,7 @@ fn burn_W_other_way() { } #[test] +#[serial] fn burn_N_not_enough_liquidity_asset() { new_test_ext().execute_with(|| { initialize(); @@ -1666,6 +2606,7 @@ fn burn_N_not_enough_liquidity_asset() { } #[test] +#[serial] fn burn_N_no_such_pool() { new_test_ext().execute_with(|| { initialize(); @@ -1678,6 +2619,7 @@ fn burn_N_no_such_pool() { } #[test] +#[serial] fn burn_N_zero_amount() { new_test_ext().execute_with(|| { initialize(); @@ -1690,6 +2632,7 @@ fn burn_N_zero_amount() { // TODO https://trello.com/c/rEygIR7t/428-fix-panic-in-xyksellasset #[test] +#[serial] #[ignore] fn buy_assets_with_small_expected_amount_does_not_cause_panic() { new_test_ext().execute_with(|| { @@ -1700,6 +2643,7 @@ fn buy_assets_with_small_expected_amount_does_not_cause_panic() { } #[test] +#[serial] #[ignore] fn successful_buy_assets_does_not_charge_fee() { new_test_ext().execute_with(|| { @@ -1713,6 +2657,7 @@ fn successful_buy_assets_does_not_charge_fee() { } #[test] +#[serial] #[ignore] fn unsuccessful_buy_assets_charges_fee() { new_test_ext().execute_with(|| { @@ -1726,6 +2671,7 @@ fn unsuccessful_buy_assets_charges_fee() { } #[test] +#[serial] #[ignore] fn successful_sell_assets_does_not_charge_fee() { new_test_ext().execute_with(|| { @@ -1738,9 +2684,11 @@ fn successful_sell_assets_does_not_charge_fee() { } #[test] +#[serial] fn unsuccessful_sell_assets_charges_fee() { new_test_ext().execute_with(|| { System::set_block_number(1); + //try to sell non owned, non existing tokens let post_info = XykStorage::sell_asset(RuntimeOrigin::signed(2), 100, 200, 0, 0) .unwrap_err() @@ -1750,6 +2698,7 @@ fn unsuccessful_sell_assets_charges_fee() { } #[test] +#[serial] fn PoolCreateApi_test_pool_exists_return_false_for_non_existing_pool() { new_test_ext().execute_with(|| { System::set_block_number(1); @@ -1758,6 +2707,7 @@ fn PoolCreateApi_test_pool_exists_return_false_for_non_existing_pool() { } #[test] +#[serial] fn PoolCreateApi_pool_exists_return_true_for_existing_pool() { new_test_ext().execute_with(|| { initialize(); @@ -1768,6 +2718,7 @@ fn PoolCreateApi_pool_exists_return_true_for_existing_pool() { } #[test] +#[serial] fn PoolCreateApi_pool_create_creates_a_pool() { new_test_ext().execute_with(|| { initialize(); @@ -1800,6 +2751,7 @@ fn PoolCreateApi_pool_create_creates_a_pool() { } #[test] +#[serial] fn test_create_blacklisted_pool() { new_test_ext().execute_with(|| { let blaclisted_first_asset_id = 1; @@ -1958,7 +2910,7 @@ fn liquidity_rewards_not_yet_claimed_already_claimed_W() { .unwrap(); XykStorage::create_pool(RuntimeOrigin::signed(2), 0, 10000, 1, 10000).unwrap(); - XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, Some(1u8)).unwrap(); + XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, 1u8).unwrap(); let liquidity_tokens_owned = XykStorage::balance(4, 2); XykStorage::activate_liquidity_v2( @@ -2024,7 +2976,7 @@ fn extreme_case_pool_ratio() { XykStorage::create_new_token(&acc_id, amount); XykStorage::create_pool(RuntimeOrigin::signed(2), 0, max, 1, max).unwrap(); - XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, Some(1u8)).unwrap(); + XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, 1u8).unwrap(); XykStorage::activate_liquidity_v2(RuntimeOrigin::signed(2), 4, 1, None).unwrap(); @@ -2071,7 +3023,7 @@ fn rewards_rounding_during_often_mint() { 10000000000000000, ) .unwrap(); - XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, Some(1u8)).unwrap(); + XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, 1u8).unwrap(); MockPromotedPoolApi::instance() .lock() .unwrap() @@ -2157,7 +3109,7 @@ fn rewards_storage_right_amounts_start1() { .unwrap(); XykStorage::create_pool(RuntimeOrigin::signed(2), 1, 10000, 2, 10000).unwrap(); - XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, Some(1u8)).unwrap(); + XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, 1u8).unwrap(); MockPromotedPoolApi::instance() .lock() .unwrap() @@ -2301,7 +3253,7 @@ fn rewards_storage_right_amounts_start2() { .unwrap(); XykStorage::create_pool(RuntimeOrigin::signed(2), 1, 10000, 2, 10000).unwrap(); - XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, Some(1u8)).unwrap(); + XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, 1u8).unwrap(); MockPromotedPoolApi::instance() .lock() .unwrap() @@ -2428,7 +3380,7 @@ fn rewards_storage_right_amounts_start3() { .unwrap(); XykStorage::create_pool(RuntimeOrigin::signed(2), 1, 10000, 2, 10000).unwrap(); - XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, Some(1u8)).unwrap(); + XykStorage::update_pool_promotion(RuntimeOrigin::root(), 4, 1u8).unwrap(); MockPromotedPoolApi::instance() .lock() .unwrap() @@ -2487,9 +3439,11 @@ fn rewards_storage_right_amounts_start3() { #[test_case(200_000_000_000_000_000_000_u128, 1_000_000_000_000_u128, 1_u128 ; "swap plus 1 leftover")] #[test_case(2_000_u128, 100_u128, 2_u128 ; "swap plus 2 leftover")] #[test_case(1_000_000_000_000_000_000_000_000_000, 135_463_177_684_253_389, 2_u128 ; "benchmark case")] +#[serial] fn test_compound_calculate_balanced_swap_for_liquidity(amount: u128, reward: u128, surplus: u128) { new_test_ext().execute_with(|| { System::set_block_number(1); + let acc_id: u128 = 2; let pool = amount / 2; XykStorage::create_new_token(&acc_id, amount); @@ -2515,9 +3469,11 @@ fn test_compound_calculate_balanced_swap_for_liquidity(amount: u128, reward: u12 #[test_case(100_000_000_000, 1_000, 2, 1 ; "large reserve, surplus of 1")] #[test_case(100_000_000_000, 1_000_000_000, 1_000_000, 52815 ; "small pool, large surplus")] #[test_case(1_000_000_000, 100_000, 2, 2 ; "benchmark precision test")] +#[serial] fn test_compound_provide_liquidity(amount: u128, reward: u128, pool_r: u128, surplus: u128) { new_test_ext().execute_with(|| { System::set_block_number(1); + let acc_id: u128 = 2; let pool = amount / pool_r; XykStorage::create_new_token(&acc_id, amount); @@ -2542,12 +3498,13 @@ fn test_compound_rewards(amount: u128, part_permille: u32, surplus: u128) { new_test_ext().execute_with(|| { let amount_permille = Permill::from_parts(part_permille); System::set_block_number(1); + MockPromotedPoolApi::instance().lock().unwrap().clear(); XykStorage::create_new_token(&2, amount); XykStorage::create_new_token(&2, amount); XykStorage::create_pool(RuntimeOrigin::signed(2), 0, amount / 2, 1, amount / 2).unwrap(); - XykStorage::update_pool_promotion(RuntimeOrigin::root(), 2, Some(1)).unwrap(); + XykStorage::update_pool_promotion(RuntimeOrigin::root(), 2, 1u8).unwrap(); XykStorage::activate_liquidity_v2(RuntimeOrigin::signed(2), 2, amount / 2, None).unwrap(); MockPromotedPoolApi::instance().lock().unwrap().insert(2, U256::from(u128::MAX)); @@ -2580,7 +3537,7 @@ fn test_compound_rewards_pool_assets_order_swapped() { XykStorage::create_new_token(&2, amount); XykStorage::create_new_token(&2, amount); XykStorage::create_pool(RuntimeOrigin::signed(2), 1, amount / 2, 0, amount / 2).unwrap(); - XykStorage::update_pool_promotion(RuntimeOrigin::root(), 2, Some(1)).unwrap(); + XykStorage::update_pool_promotion(RuntimeOrigin::root(), 2, 1u8).unwrap(); XykStorage::activate_liquidity_v2(RuntimeOrigin::signed(2), 2, amount / 2, None).unwrap(); MockPromotedPoolApi::instance().lock().unwrap().insert(2, U256::from(u128::MAX)); @@ -2602,6 +3559,22 @@ fn test_compound_rewards_pool_assets_order_swapped() { } #[test] +#[serial] +fn sell_N_maintenance_mode() { + new_test_ext().execute_with(|| { + initialize(); + + MockMaintenanceStatusProvider::set_maintenance(true); + + assert_err!( + XykStorage::sell_asset(RuntimeOrigin::signed(2), 1, 4, 20000000, 0), + Error::::TradingBlockedByMaintenanceMode, + ); + }); +} + +#[test] +#[serial] fn test_compound_rewards_error_on_non_native_pool() { new_test_ext().execute_with(|| { XykStorage::create_new_token(&2, 2_000_000_u128); @@ -2619,3 +3592,25 @@ fn test_compound_rewards_error_on_non_native_pool() { ); }); } + +#[test] +#[serial] +fn buy_W_maintenance_mode() { + new_test_ext().execute_with(|| { + initialize(); + + MockMaintenanceStatusProvider::set_maintenance(true); + + assert_err!( + // buying 30000000000000000000 assetId 1 of pool 0 1 + XykStorage::buy_asset( + RuntimeOrigin::signed(2), + 1, + 4, + 30000000000000000000, + 3000000000000000000000, + ), + Error::::TradingBlockedByMaintenanceMode, + ); + }); +} diff --git a/pallets/xyk/src/weights.rs b/pallets/xyk/src/weights.rs index ec562cb2fb..d3be0cd1e9 100644 --- a/pallets/xyk/src/weights.rs +++ b/pallets/xyk/src/weights.rs @@ -17,9 +17,10 @@ pub trait WeightInfo { fn claim_rewards_all_v2() -> Weight; fn activate_liquidity_v2() -> Weight; fn deactivate_liquidity_v2() -> Weight; - fn rewards_migrate_v1_to_v2() -> Weight; fn provide_liquidity_with_conversion() -> Weight; fn compound_rewards() -> Weight; + fn multiswap_sell_asset(x: u32, ) -> Weight; + fn multiswap_buy_asset(x: u32, ) -> Weight; } // For backwards compatibility and tests @@ -39,6 +40,32 @@ impl WeightInfo for () { .saturating_add(RocksDbWeight::get().reads(12 as u64)) .saturating_add(RocksDbWeight::get().writes(9 as u64)) } + // Storage: AssetRegistry Metadata (r:3 w:0) + // Storage: Xyk Pools (r:6 w:4) + // Storage: Tokens Accounts (r:12 w:12) + // Storage: System Account (r:2 w:2) + // Storage: Tokens TotalIssuance (r:1 w:1) + fn multiswap_sell_asset(x: u32, ) -> Weight { + (Weight::from_ref_time(426_792_000)) + // Standard Error: 1_264_113 + .saturating_add((Weight::from_ref_time(182_232_707)).saturating_mul(x as u64)) + .saturating_add(RocksDbWeight::get().reads((8 as u64).saturating_mul(x as u64))) + .saturating_add(RocksDbWeight::get().writes(1 as u64)) + .saturating_add(RocksDbWeight::get().writes((6 as u64).saturating_mul(x as u64))) + } + // Storage: AssetRegistry Metadata (r:3 w:0) + // Storage: Xyk Pools (r:6 w:4) + // Storage: Tokens Accounts (r:12 w:12) + // Storage: System Account (r:2 w:2) + // Storage: Tokens TotalIssuance (r:1 w:1) + fn multiswap_buy_asset(x: u32, ) -> Weight { + (Weight::from_ref_time(463_541_000)) + // Standard Error: 873_994 + .saturating_add((Weight::from_ref_time(183_908_548)).saturating_mul(x as u64)) + .saturating_add(RocksDbWeight::get().reads((8 as u64).saturating_mul(x as u64))) + .saturating_add(RocksDbWeight::get().writes(1 as u64)) + .saturating_add(RocksDbWeight::get().writes((6 as u64).saturating_mul(x as u64))) + } fn mint_liquidity() -> Weight { Weight::from_ref_time(270_706_000) .saturating_add(RocksDbWeight::get().reads(14 as u64)) @@ -80,16 +107,9 @@ impl WeightInfo for () { .saturating_add(RocksDbWeight::get().reads(6 as u64)) .saturating_add(RocksDbWeight::get().writes(5 as u64)) } - - //TODO retest - fn deactivate_liquidity_v2() -> Weight { - Weight::from_ref_time(133_607_000) - .saturating_add(RocksDbWeight::get().reads(7 as u64)) - .saturating_add(RocksDbWeight::get().writes(7 as u64)) - } //TODO retest - fn rewards_migrate_v1_to_v2() -> Weight { + fn deactivate_liquidity_v2() -> Weight { Weight::from_ref_time(133_607_000) .saturating_add(RocksDbWeight::get().reads(7 as u64)) .saturating_add(RocksDbWeight::get().writes(7 as u64)) diff --git a/primitives/bootstrap/Cargo.toml b/primitives/bootstrap/Cargo.toml index ba439cf1b3..40e633a3e8 100644 --- a/primitives/bootstrap/Cargo.toml +++ b/primitives/bootstrap/Cargo.toml @@ -5,8 +5,8 @@ authors = ['Mangata team'] edition = "2018" [dependencies] -sp-std = { default-features = false, version = '4.0.0-dev' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } -sp-runtime = { default-features = false, version = '6.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-std = { default-features = false, version = '5.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-runtime = { default-features = false, version = '7.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } frame-support = { default-features = false, version = '4.0.0-dev' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } mangata-types = { default-features = false, git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } diff --git a/primitives/multipurpose-liquidity/Cargo.toml b/primitives/multipurpose-liquidity/Cargo.toml index 6cde8eccf0..caa131c79c 100644 --- a/primitives/multipurpose-liquidity/Cargo.toml +++ b/primitives/multipurpose-liquidity/Cargo.toml @@ -5,8 +5,8 @@ authors = ['Mangata team'] edition = "2018" [dependencies] -sp-std = { default-features = false, version = '4.0.0-dev' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } -sp-runtime = { default-features = false, version = '6.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-std = { default-features = false, version = '5.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-runtime = { default-features = false, version = '7.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } frame-support = { default-features = false, version = '4.0.0-dev' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false } diff --git a/primitives/traits/Cargo.toml b/primitives/traits/Cargo.toml index c7b94f25e4..843f8847a9 100644 --- a/primitives/traits/Cargo.toml +++ b/primitives/traits/Cargo.toml @@ -5,8 +5,8 @@ authors = ['Mangata team'] edition = "2018" [dependencies] -sp-std = { default-features = false, version = '4.0.0-dev' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } -sp-runtime = { default-features = false, version = '6.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-std = { default-features = false, version = '5.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-runtime = { default-features = false, version = '7.0.0' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } frame-support = { default-features = false, version = '4.0.0-dev' , git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } mangata-types = { default-features = false, git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } mp-multipurpose-liquidity = { path = "../../primitives/multipurpose-liquidity" , default-features= false} diff --git a/primitives/traits/src/lib.rs b/primitives/traits/src/lib.rs index f30e2b0fc7..2cade2eb3d 100644 --- a/primitives/traits/src/lib.rs +++ b/primitives/traits/src/lib.rs @@ -4,7 +4,7 @@ use frame_support::pallet_prelude::*; use mangata_types::{Balance, TokenId}; use mp_multipurpose_liquidity::{ActivateKind, BondKind}; use sp_runtime::traits::{AtLeast32BitUnsigned, MaybeDisplay}; -use sp_std::fmt::Debug; +use sp_std::{fmt::Debug, vec::Vec}; pub trait StakingReservesProviderTrait { type AccountId: Parameter @@ -97,7 +97,29 @@ pub trait XykFunctionsTrait { sold_asset_amount: Self::Balance, min_amount_out: Self::Balance, err_upon_bad_slippage: bool, - ) -> DispatchResult; + ) -> Result; + + fn multiswap_sell_asset( + sender: AccountId, + swap_token_list: Vec, + sold_asset_amount: Self::Balance, + min_amount_out: Self::Balance, + err_upon_bad_slippage: bool, + err_upon_non_slippage_fail: bool, + ) -> Result; + + fn do_multiswap_sell_asset( + sender: AccountId, + swap_token_list: Vec, + sold_asset_amount: Self::Balance, + min_amount_out: Self::Balance, + ) -> Result; + fn do_multiswap_buy_asset( + sender: AccountId, + swap_token_list: Vec, + bought_asset_amount: Self::Balance, + max_amount_in: Self::Balance, + ) -> Result; fn buy_asset( sender: AccountId, @@ -106,7 +128,16 @@ pub trait XykFunctionsTrait { bought_asset_amount: Self::Balance, max_amount_in: Self::Balance, err_upon_bad_slippage: bool, - ) -> DispatchResult; + ) -> Result; + + fn multiswap_buy_asset( + sender: AccountId, + swap_token_list: Vec, + bought_asset_amount: Self::Balance, + max_amount_in: Self::Balance, + err_upon_bad_slippage: bool, + err_upon_non_slippage_fail: bool, + ) -> Result; fn mint_liquidity( sender: AccountId, @@ -210,6 +241,24 @@ pub trait PreValidateSwaps { DispatchError, >; + fn pre_validate_multiswap_sell_asset( + sender: &Self::AccountId, + swap_token_list: Vec, + sold_asset_amount: Self::Balance, + min_amount_out: Self::Balance, + ) -> Result< + ( + Self::Balance, + Self::Balance, + Self::Balance, + Self::Balance, + Self::Balance, + Self::CurrencyId, + Self::CurrencyId, + ), + DispatchError, + >; + fn pre_validate_buy_asset( sender: &Self::AccountId, sold_asset_id: Self::CurrencyId, @@ -220,6 +269,24 @@ pub trait PreValidateSwaps { (Self::Balance, Self::Balance, Self::Balance, Self::Balance, Self::Balance, Self::Balance), DispatchError, >; + + fn pre_validate_multiswap_buy_asset( + sender: &Self::AccountId, + swap_token_list: Vec, + final_bought_asset_amount: Self::Balance, + max_amount_in: Self::Balance, + ) -> Result< + ( + Self::Balance, + Self::Balance, + Self::Balance, + Self::Balance, + Self::Balance, + Self::CurrencyId, + Self::CurrencyId, + ), + DispatchError, + >; } pub trait FeeLockTriggerTrait { diff --git a/rpc/nonce/Cargo.toml b/rpc/nonce/Cargo.toml index 1cc8d809d6..9aa8294e91 100644 --- a/rpc/nonce/Cargo.toml +++ b/rpc/nonce/Cargo.toml @@ -16,12 +16,12 @@ targets = ["x86_64-unknown-linux-gnu"] sc-client-api = { version = "4.0.0-dev", git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } codec = { package = "parity-scale-codec", version = "3.0.0" } futures = "0.3.21" -jsonrpsee = { version = "0.15.1", features = ["server"] } +jsonrpsee = { version = "0.16.2", features = ["server"] } log = "0.4.17" -sp-runtime = { version = "6.0.0", git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-runtime = { version = "7.0.0", git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } sp-api = { version = "4.0.0-dev", git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } frame-system-rpc-runtime-api ={ version = "4.0.0-dev", git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } -sp-core ={ version = "6.0.0", git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } +sp-core ={ version = "7.0.0", git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } sp-blockchain ={ version = "4.0.0-dev", git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } ver-api ={ version = "4.0.0-dev", git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } sc-transaction-pool-api ={ version = "4.0.0-dev", git = "https://github.com/mangata-finance/substrate", branch = "mangata-dev" } diff --git a/runtime/mangata-kusama/Cargo.toml b/runtime/mangata-kusama/Cargo.toml index a9191a3ba4..89c40380ef 100644 --- a/runtime/mangata-kusama/Cargo.toml +++ b/runtime/mangata-kusama/Cargo.toml @@ -27,6 +27,7 @@ xyk-runtime-api = { path = '../../pallets/xyk/runtime-api', default-features = f pallet-sudo-origin = { path = '../../pallets/sudo-origin', default-features = false } pallet-issuance = { path = '../../pallets/issuance', default-features = false } pallet-multipurpose-liquidity = { path = '../../pallets/multipurpose-liquidity', default-features = false } +pallet-maintenance = { path = '../../pallets/maintenance', default-features = false } mp-multipurpose-liquidity = { path = '../../primitives/multipurpose-liquidity', default-features = false } pallet-fee-lock = { path = '../../pallets/fee-lock', default-features = false} mp-traits = { path = '../../primitives/traits', default-features = false } @@ -46,9 +47,11 @@ sp-runtime = { git = "https://github.com/mangata-finance/substrate", default-fea sp-session = { git = "https://github.com/mangata-finance/substrate", default-features = false, branch = "mangata-dev" } sp-std = { git = "https://github.com/mangata-finance/substrate", default-features = false, branch = "mangata-dev" } sp-transaction-pool = { git = "https://github.com/mangata-finance/substrate", default-features = false, branch = "mangata-dev" } -pallet-utility = { git = "https://github.com/mangata-finance/substrate", default-features = false, branch = "mangata-dev" } +pallet-utility-mangata = { git = "https://github.com/mangata-finance/substrate", default-features = false, branch = "mangata-dev" } sp-ver = { git = "https://github.com/mangata-finance/substrate", default-features = false, branch = "mangata-dev" } sp-version = { git = "https://github.com/mangata-finance/substrate", default-features = false, branch = "mangata-dev" } +sp-weights = { git = "https://github.com/mangata-finance/substrate", default-features = false, branch = "mangata-dev" } + ## Substrate FRAME Dependencies frame-benchmarking = { git = "https://github.com/mangata-finance/substrate", default-features = false, optional = true, branch = "mangata-dev" } @@ -83,16 +86,16 @@ orml-xcm = { default-features = false, version = "0.4.1-dev", git = "https://git orml-asset-registry = { default-features = false, version = "0.4.1-dev", git = "https://github.com/mangata-finance/open-runtime-module-library", branch = "mangata-dev" } # Cumulus dependencies -cumulus-pallet-aura-ext = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev', default-features = false } -cumulus-pallet-dmp-queue = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev', default-features = false } -cumulus-pallet-parachain-system = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev', default-features = false } -cumulus-pallet-xcm = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev', default-features = false } -cumulus-pallet-xcmp-queue = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev', default-features = false } -cumulus-primitives-core = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev', default-features = false } -cumulus-primitives-timestamp = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev', default-features = false } -cumulus-primitives-utility = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev', default-features = false } -parachain-info = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev', default-features = false } -cumulus-pallet-session-benchmarking = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev', default-features = false, optional = true } +cumulus-pallet-aura-ext = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36', default-features = false } +cumulus-pallet-dmp-queue = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36', default-features = false } +cumulus-pallet-parachain-system = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36', default-features = false } +cumulus-pallet-xcm = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36', default-features = false } +cumulus-pallet-xcmp-queue = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36', default-features = false } +cumulus-primitives-core = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36', default-features = false } +cumulus-primitives-timestamp = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36', default-features = false } +cumulus-primitives-utility = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36', default-features = false } +parachain-info = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36', default-features = false } +cumulus-pallet-session-benchmarking = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36', default-features = false, optional = true } # Polkadot Dependencies pallet-xcm = { git = "https://github.com/mangata-finance/polkadot", default-features = false, branch = "mangata-dev" } @@ -145,7 +148,7 @@ std = [ "pallet-timestamp/std", "pallet-transaction-payment-rpc-runtime-api/std", "pallet-transaction-payment/std", - "pallet-utility/std", + "pallet-utility-mangata/std", "cumulus-pallet-aura-ext/std", "cumulus-pallet-parachain-system/std", "cumulus-pallet-xcm/std", @@ -185,6 +188,7 @@ std = [ "mp-bootstrap/std", "pallet-vesting-mangata-rpc-runtime-api/std", "pallet-fee-lock/std", + "pallet-maintenance/std", ] try-runtime = [ @@ -221,9 +225,10 @@ try-runtime = [ "pallet-sudo-origin/try-runtime", "pallet-collective-mangata/try-runtime", "pallet-bootstrap/try-runtime", - "pallet-utility/try-runtime", + "pallet-utility-mangata/try-runtime", "pallet-proxy/try-runtime", "pallet-fee-lock/try-runtime", + "pallet-maintenance/try-runtime" ] fast-runtime = [] @@ -252,7 +257,7 @@ runtime-benchmarks = [ "parachain-staking/runtime-benchmarks", "pallet-treasury/runtime-benchmarks", "pallet-crowdloan-rewards/runtime-benchmarks", - "pallet-utility/runtime-benchmarks", + "pallet-utility-mangata/runtime-benchmarks", "pallet-vesting-mangata/runtime-benchmarks", "pallet-issuance/runtime-benchmarks", "pallet-bootstrap/runtime-benchmarks", diff --git a/runtime/mangata-kusama/src/constants.rs b/runtime/mangata-kusama/src/constants.rs index 493c6c667e..132b7d1b26 100644 --- a/runtime/mangata-kusama/src/constants.rs +++ b/runtime/mangata-kusama/src/constants.rs @@ -1,8 +1,8 @@ pub mod fee { use crate::{weights::VerExtrinsicBaseWeight, UNIT}; use frame_support::weights::{ - constants::{ExtrinsicBaseWeight, WEIGHT_PER_SECOND}, - WeightToFeeCoefficient, WeightToFeeCoefficients, WeightToFeePolynomial, + constants::WEIGHT_REF_TIME_PER_SECOND, WeightToFeeCoefficient, WeightToFeeCoefficients, + WeightToFeePolynomial, }; use mangata_types::Balance; use smallvec::smallvec; @@ -48,7 +48,7 @@ pub mod fee { pub fn mgx_per_second() -> u128 { let base_weight = Balance::from(VerExtrinsicBaseWeight::get().ref_time()); - let base_per_second = (WEIGHT_PER_SECOND.ref_time() / base_weight as u64) as u128; + let base_per_second = (WEIGHT_REF_TIME_PER_SECOND / base_weight as u64) as u128; base_per_second * base_tx_in_mgx() } diff --git a/runtime/mangata-kusama/src/lib.rs b/runtime/mangata-kusama/src/lib.rs index 2f5f5afdd4..68fb34abe3 100644 --- a/runtime/mangata-kusama/src/lib.rs +++ b/runtime/mangata-kusama/src/lib.rs @@ -10,12 +10,11 @@ use frame_support::{ traits::{ tokens::currency::{MultiTokenCurrency, MultiTokenImbalanceWithZeroTrait}, Contains, EnsureOrigin, EnsureOriginWithArg, Everything, ExistenceRequirement, Get, - Imbalance, InstanceFilter, LockIdentifier, OnRuntimeUpgrade, U128CurrencyToVote, - WithdrawReasons, + Imbalance, InstanceFilter, WithdrawReasons, }, unsigned::TransactionValidityError, weights::{ - constants::{RocksDbWeight, WEIGHT_PER_MICROS, WEIGHT_PER_SECOND}, + constants::{RocksDbWeight, WEIGHT_REF_TIME_PER_SECOND}, ConstantMultiplier, Weight, }, PalletId, @@ -23,11 +22,11 @@ use frame_support::{ #[cfg(any(feature = "std", test))] pub use frame_system::Call as SystemCall; use frame_system::{ - limits::{BlockLength, BlockWeights, BlockWeightsBuilder}, + limits::{BlockLength, BlockWeights}, EnsureRoot, }; pub use orml_tokens; -use orml_tokens::{MultiTokenCurrencyExtended, TransferDust}; +use orml_tokens::MultiTokenCurrencyExtended; use orml_traits::{ asset_registry::{AssetMetadata, AssetProcessor}, parameter_type_with_key, @@ -50,7 +49,7 @@ use sp_runtime::{ DispatchInfoOf, PostDispatchInfoOf, Saturating, StaticLookup, Zero, }, transaction_validity::{InvalidTransaction, TransactionSource, TransactionValidity}, - ApplyExtrinsicResult, DispatchError, FixedPointNumber, Percent, Perquintill, RuntimeDebug, + ApplyExtrinsicResult, DispatchError, FixedPointNumber, Percent, RuntimeDebug, }; pub use sp_runtime::{MultiAddress, Perbill, Permill}; use sp_std::{ @@ -161,11 +160,11 @@ impl_opaque_keys! { pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("mangata-parachain"), impl_name: create_runtime_str!("mangata-parachain"), - authoring_version: 13, - spec_version: 13, + authoring_version: 14, + spec_version: 14, impl_version: 0, apis: RUNTIME_API_VERSIONS, - transaction_version: 13, + transaction_version: 14, state_version: 0, }; @@ -174,11 +173,11 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("mangata-parachain"), impl_name: create_runtime_str!("mangata-parachain"), - authoring_version: 14, - spec_version: 14, + authoring_version: 15, + spec_version: 15, impl_version: 0, apis: RUNTIME_API_VERSIONS, - transaction_version: 14, + transaction_version: 15, state_version: 0, }; @@ -232,9 +231,8 @@ const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75); /// so there is room for new extrinsics in the next block // const MAXIMUM_BLOCK_WEIGHT: Weight = // WEIGHT_PER_SECOND.saturating_div(4).set_proof_size((cumulus_primitives_core::relay_chain::v2::MAX_POV_SIZE as u64).saturating_div(2)); -const MAXIMUM_BLOCK_WEIGHT: Weight = WEIGHT_PER_SECOND - .saturating_div(4) - .set_proof_size((u64::max_value()).saturating_div(2)); +const MAXIMUM_BLOCK_WEIGHT: Weight = + Weight::from_parts(WEIGHT_REF_TIME_PER_SECOND.saturating_mul(2), u64::MAX); /// The version information used to identify this runtime when compiled natively. #[cfg(feature = "std")] @@ -433,15 +431,10 @@ impl orml_tokens::Config for Runtime { type CurrencyId = TokenId; type WeightInfo = weights::orml_tokens_weights::ModuleWeight; type ExistentialDeposits = ExistentialDeposits; - type OnDust = TransferDust; type MaxLocks = MaxLocks; type DustRemovalWhitelist = DustRemovalWhitelist; - type OnSlash = (); - type OnDeposit = (); - type OnTransfer = (); + type CurrencyHooks = (); type MaxReserves = (); - type OnNewTokenAccount = (); - type OnKilledTokenAccount = (); type ReserveIdentifier = [u8; 8]; } @@ -504,6 +497,7 @@ type SessionLenghtOf = ::BlocksPerRound; impl pallet_xyk::Config for Runtime { type RuntimeEvent = RuntimeEvent; + type MaintenanceStatusProvider = Maintenance; type ActivationReservesProvider = MultiPurposeLiquidity; type Currency = orml_tokens::MultiTokenCurrencyAdapter; type NativeCurrencyId = MgxTokenId; @@ -564,6 +558,7 @@ impl pallet_bootstrap::BootstrapBenchmarkingConfig for Runtime {} impl pallet_bootstrap::Config for Runtime { type RuntimeEvent = RuntimeEvent; + type MaintenanceStatusProvider = Maintenance; type PoolCreateApi = Xyk; type DefaultBootstrapPromotedPoolWeight = DefaultBootstrapPromotedPoolWeight; type BootstrapUpdateBuffer = BootstrapUpdateBuffer; @@ -575,11 +570,41 @@ impl pallet_bootstrap::Config for Runtime { type AssetRegistryApi = EnableAssetPoolApi; } -impl pallet_utility::Config for Runtime { +#[derive( + Copy, + Clone, + Eq, + PartialEq, + Ord, + PartialOrd, + Encode, + Decode, + RuntimeDebug, + MaxEncodedLen, + TypeInfo, +)] +pub struct DisallowedInBatch; + +impl Contains for DisallowedInBatch { + fn contains(c: &RuntimeCall) -> bool { + match c { + RuntimeCall::Xyk(pallet_xyk::Call::sell_asset { .. }) | + RuntimeCall::Xyk(pallet_xyk::Call::buy_asset { .. }) | + RuntimeCall::Xyk(pallet_xyk::Call::multiswap_sell_asset { .. }) | + RuntimeCall::Xyk(pallet_xyk::Call::multiswap_buy_asset { .. }) | + RuntimeCall::Xyk(pallet_xyk::Call::compound_rewards { .. }) | + RuntimeCall::Xyk(pallet_xyk::Call::provide_liquidity_with_conversion { .. }) => true, + _ => false, + } + } +} + +impl pallet_utility_mangata::Config for Runtime { type RuntimeEvent = RuntimeEvent; type RuntimeCall = RuntimeCall; + type DisallowedInBatch = DisallowedInBatch; type PalletsOrigin = OriginCaller; - type WeightInfo = weights::pallet_utility_weights::ModuleWeight; + type WeightInfo = weights::pallet_utility_mangata_weights::ModuleWeight; } type ORMLCurrencyAdapterNegativeImbalance = @@ -631,15 +656,15 @@ pub enum LiquidityInfoEnum, T: frame_system: } #[derive(Encode, Decode, Clone, TypeInfo)] -pub struct OnChargeHandler(PhantomData<(C, OCA, OTA)>); +pub struct OnChargeHandler(PhantomData<(C, OCA, OFLA)>); -impl OnChargeHandler {} +impl OnChargeHandler {} /// Default implementation for a Currency and an OnUnbalanced handler. /// /// The unbalance handler is given 2 unbalanceds in [`OnUnbalanced::on_unbalanceds`]: fee and /// then tip. -impl OnChargeTransaction for OnChargeHandler +impl OnChargeTransaction for OnChargeHandler where T: pallet_transaction_payment::Config + pallet_xyk::Config, T::LengthToFee: frame_support::weights::WeightToFee< @@ -659,7 +684,7 @@ where LiquidityInfo = Option>, Balance = ::AccountId>>::Balance, >, - OTA: FeeLockTriggerTrait<::AccountId>, + OFLA: FeeLockTriggerTrait<::AccountId>, T: frame_system::Config, T::AccountId: From + Into, { @@ -680,10 +705,10 @@ where // Also ugly implementation to keep it maleable for now match call { RuntimeCall::Xyk(pallet_xyk::Call::sell_asset { - sold_asset_id: sold_asset_id, - sold_asset_amount: sold_asset_amount, - bought_asset_id: bought_asset_id, - min_amount_out: min_amount_out, + sold_asset_id, + sold_asset_amount, + bought_asset_id, + min_amount_out, .. }) => { // If else tree for easy edits @@ -715,7 +740,7 @@ where match ( FeeLock::is_whitelisted(*sold_asset_id), - OTA::get_swap_valuation_for_token(*sold_asset_id, *sold_asset_amount), + OFLA::get_swap_valuation_for_token(*sold_asset_id, *sold_asset_amount), ) { (true, Some(value)) if value >= fee_lock_metadata.swap_value_threshold => @@ -725,7 +750,7 @@ where _ => { match ( FeeLock::is_whitelisted(*bought_asset_id), - OTA::get_swap_valuation_for_token( + OFLA::get_swap_valuation_for_token( *bought_asset_id, bought_asset_amount, ), @@ -743,11 +768,11 @@ where if is_high_value { // This is the "high value swap on curated token" branch // Attempt to unlock fee, do not return if fails - let _ = OTA::unlock_fee(who); + let _ = OFLA::unlock_fee(who); Ok(Some(LiquidityInfoEnum::FeeLock)) } else { // This is the "low value swap on curated token" branch - OTA::process_fee_lock(who).map_err(|_| { + OFLA::process_fee_lock(who).map_err(|_| { TransactionValidityError::Invalid( InvalidTransaction::ProcessFeeLock.into(), ) @@ -756,7 +781,7 @@ where } } else { // "swap on non-whitelisted tokens" branch - OTA::process_fee_lock(who).map_err(|_| { + OFLA::process_fee_lock(who).map_err(|_| { TransactionValidityError::Invalid( InvalidTransaction::ProcessFeeLock.into(), ) @@ -769,11 +794,47 @@ where } }, + RuntimeCall::Xyk(pallet_xyk::Call::multiswap_sell_asset { + swap_token_list: swap_token_list, + sold_asset_amount: sold_asset_amount, + min_amount_out: min_amount_out, + .. + }) => { + // If else tree for easy edits + + // Check if fee locks are initiazed or not + if let Some(fee_lock_metadata) = FeeLock::get_fee_lock_metadata() { + // ensure swap cannot fail + // This is to ensure that xyk swap fee is always charged + // We also ensure that the user has enough funds to transact + let _ = ::pre_validate_multiswap_sell_asset( + &who.clone().into(), + swap_token_list.clone(), + *sold_asset_amount, + *min_amount_out, + ) + .map_err(|_| { + TransactionValidityError::Invalid( + InvalidTransaction::SwapPrevalidation.into(), + ) + })?; + + // This is the "low value swap on curated token" branch + OFLA::process_fee_lock(who).map_err(|_| { + TransactionValidityError::Invalid(InvalidTransaction::ProcessFeeLock.into()) + })?; + Ok(Some(LiquidityInfoEnum::FeeLock)) + } else { + // FeeLocks are not activated branch + OCA::withdraw_fee(who, call, info, fee, tip) + } + }, + RuntimeCall::Xyk(pallet_xyk::Call::buy_asset { - sold_asset_id: sold_asset_id, - bought_asset_amount: bought_asset_amount, - bought_asset_id: bought_asset_id, - max_amount_in: max_amount_in, + sold_asset_id, + bought_asset_amount, + bought_asset_id, + max_amount_in, .. }) => { // If else tree for easy edits @@ -811,7 +872,7 @@ where match ( FeeLock::is_whitelisted(*sold_asset_id), - OTA::get_swap_valuation_for_token(*sold_asset_id, sold_asset_amount), + OFLA::get_swap_valuation_for_token(*sold_asset_id, sold_asset_amount), ) { (true, Some(value)) if value >= fee_lock_metadata.swap_value_threshold => @@ -821,7 +882,7 @@ where _ => { match ( FeeLock::is_whitelisted(*bought_asset_id), - OTA::get_swap_valuation_for_token( + OFLA::get_swap_valuation_for_token( *bought_asset_id, *bought_asset_amount, ), @@ -839,11 +900,11 @@ where if is_high_value { // This is the "high value swap on curated token" branch // Attempt to unlock fee, do not return if fails - let _ = OTA::unlock_fee(who); + let _ = OFLA::unlock_fee(who); Ok(Some(LiquidityInfoEnum::FeeLock)) } else { // This is the "low value swap on curated token" branch - OTA::process_fee_lock(who).map_err(|_| { + OFLA::process_fee_lock(who).map_err(|_| { TransactionValidityError::Invalid( InvalidTransaction::ProcessFeeLock.into(), ) @@ -852,7 +913,7 @@ where } } else { // "swap on non-curated token" branch - OTA::process_fee_lock(who).map_err(|_| { + OFLA::process_fee_lock(who).map_err(|_| { TransactionValidityError::Invalid( InvalidTransaction::ProcessFeeLock.into(), ) @@ -864,8 +925,45 @@ where OCA::withdraw_fee(who, call, info, fee, tip) } }, + + RuntimeCall::Xyk(pallet_xyk::Call::multiswap_buy_asset { + swap_token_list: swap_token_list, + bought_asset_amount: bought_asset_amount, + max_amount_in: max_amount_in, + .. + }) => { + // If else tree for easy edits + + // Check if fee locks are initiazed or not + if let Some(fee_lock_metadata) = FeeLock::get_fee_lock_metadata() { + // ensure swap cannot fail + // This is to ensure that xyk swap fee is always charged + // We also ensure that the user has enough funds to transact + let _ = ::pre_validate_multiswap_buy_asset( + &who.clone().into(), + swap_token_list.clone(), + *bought_asset_amount, + *max_amount_in, + ) + .map_err(|_| { + TransactionValidityError::Invalid( + InvalidTransaction::SwapPrevalidation.into(), + ) + })?; + + // This is the "low value swap on curated token" branch + OFLA::process_fee_lock(who).map_err(|_| { + TransactionValidityError::Invalid(InvalidTransaction::ProcessFeeLock.into()) + })?; + Ok(Some(LiquidityInfoEnum::FeeLock)) + } else { + // FeeLocks are not activated branch + OCA::withdraw_fee(who, call, info, fee, tip) + } + }, + RuntimeCall::FeeLock(pallet_fee_lock::Call::unlock_fee { .. }) => { - OTA::can_unlock_fee(who).map_err(|_| { + OFLA::can_unlock_fee(who).map_err(|_| { TransactionValidityError::Invalid(InvalidTransaction::UnlockFee.into()) })?; Ok(Some(LiquidityInfoEnum::FeeLock)) @@ -1085,6 +1183,7 @@ parameter_types! { impl cumulus_pallet_parachain_system::Config for Runtime { type RuntimeEvent = RuntimeEvent; + type MaintenanceStatusProvider = Maintenance; type OnSystemEvent = (); type SelfParaId = ParachainInfo; type DmpMessageHandler = DmpQueue; @@ -1471,6 +1570,32 @@ impl pallet_proxy::Config for Runtime { type AnnouncementDepositFactor = AnnouncementDepositFactor; } +pub struct FoundationAccountsProvider(PhantomData); +impl Get> for FoundationAccountsProvider { + fn get() -> Vec { + let accounts = vec![ + hex_literal::hex!["c8d02dfbff5ce2fda651c7dd7719bc5b17b9c1043fded805bfc86296c5909871"], + hex_literal::hex!["c4690c56c36cec7ed5f6ed5d5eebace0c317073a962ebea1d00f1a304974897b"], + hex_literal::hex!["fc741134c82b81b7ab7efbf334b0c90ff8dbf22c42ad705ea7c04bf27ed4161a"], + ]; + + accounts + .into_iter() + .map(|acc| { + T::AccountId::decode(&mut sp_runtime::AccountId32::as_ref( + &sp_runtime::AccountId32::from(acc), + )) + .unwrap() + }) + .collect() + } +} + +impl pallet_maintenance::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type FoundationAccountsProvider = FoundationAccountsProvider; +} + // Create the runtime by composing the FRAME pallets that were previously configured. construct_runtime!( pub enum Runtime where @@ -1535,9 +1660,11 @@ construct_runtime!( // Bootstrap Bootstrap: pallet_bootstrap::{Pallet, Call, Storage, Event} = 53, - Utility: pallet_utility::{Pallet, Call, Event} = 54, + Utility: pallet_utility_mangata::{Pallet, Call, Event} = 54, Proxy: pallet_proxy::{Pallet, Call, Storage, Event} = 55, + + Maintenance: pallet_maintenance::{Pallet, Call, Storage, Event} = 60, } ); @@ -1559,7 +1686,7 @@ mod benches { [pallet_collective_mangata, Council] [pallet_bootstrap, Bootstrap] [pallet_crowdloan_rewards, Crowdloan] - [pallet_utility, Utility] + [pallet_utility_mangata, Utility] [pallet_vesting_mangata, Vesting] [pallet_issuance, Issuance] [pallet_multipurpose_liquidity, MultiPurposeLiquidity] @@ -1885,17 +2012,18 @@ impl_runtime_apis! { #[cfg(feature = "try-runtime")] impl frame_try_runtime::TryRuntime for Runtime { - fn on_runtime_upgrade() -> (Weight, Weight) { + fn on_runtime_upgrade(checks: bool) -> (Weight, Weight) { // NOTE: intentional unwrap: we don't want to propagate the error backwards, and want to // have a backtrace here. If any of the pre/post migration checks fail, we shall stop // right here and right now. - let weight = Executive::try_runtime_upgrade().unwrap(); + let weight = Executive::try_runtime_upgrade(checks).unwrap(); (weight, RuntimeBlockWeights::get().max_block) } fn execute_block( block: Block, state_root_check: bool, + signature_check: bool, select: frame_try_runtime::TryStateSelect ) -> Weight { log::info!( @@ -1907,7 +2035,7 @@ impl_runtime_apis! { ); // NOTE: intentional unwrap: we don't want to propagate the error backwards, and want to // have a backtrace here. - Executive::try_execute_block(block, state_root_check, select).unwrap() + Executive::try_execute_block(block, state_root_check, signature_check, select).unwrap() } } diff --git a/runtime/mangata-kusama/src/weights/block_weights.rs b/runtime/mangata-kusama/src/weights/block_weights.rs index eb025213e7..ac476ccbb0 100644 --- a/runtime/mangata-kusama/src/weights/block_weights.rs +++ b/runtime/mangata-kusama/src/weights/block_weights.rs @@ -1,6 +1,6 @@ //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02 (Y/M/D) -//! HOSTNAME: `6b0c83a231cd`, CPU: `AMD EPYC 7B13` +//! DATE: 2023-02-13 (Y/M/D) +//! HOSTNAME: `a98b08ce8d61`, CPU: `AMD EPYC 7B13` //! //! SHORT-NAME: `block`, LONG-NAME: `BlockExecution`, RUNTIME: `Mangata Development` //! WARMUPS: `10`, REPEAT: `100` @@ -16,34 +16,35 @@ // --chain // dev // -lblock_builder=debug +// --max-ext-per-block +// 50000 // --base-path // . -use frame_support::{ - parameter_types, - weights::{constants::WEIGHT_PER_NANOS, Weight}, -}; +use sp_core::parameter_types; +use sp_weights::{constants::WEIGHT_REF_TIME_PER_NANOS, Weight}; parameter_types! { /// Time to execute an empty block. /// Calculated by multiplying the *Average* with `1.0` and adding `0`. /// /// Stats nanoseconds: - /// Min, Max: 7_965_169, 8_157_708 - /// Average: 8_012_576 - /// Median: 8_010_819 - /// Std-Dev: 26739.71 + /// Min, Max: 24_538_095, 29_060_874 + /// Average: 25_125_903 + /// Median: 24_803_895 + /// Std-Dev: 864846.94 /// /// Percentiles nanoseconds: - /// 99th: 8_120_089 - /// 95th: 8_045_149 - /// 75th: 8_020_858 - pub const BlockExecutionWeight: Weight = WEIGHT_PER_NANOS.saturating_mul(8_012_576); + /// 99th: 28_244_704 + /// 95th: 27_189_485 + /// 75th: 25_071_715 + pub const BlockExecutionWeight: Weight = + Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(25_125_903)); } #[cfg(test)] mod test_weights { - use frame_support::weights::constants; + use sp_weights::constants; /// Checks that the weight exists and is sane. // NOTE: If this test fails but you are sure that the generated values are fine, @@ -54,12 +55,12 @@ mod test_weights { // At least 100 µs. assert!( - w.ref_time() >= 100u64 * constants::WEIGHT_PER_MICROS.ref_time(), + w.ref_time() >= 100u64 * constants::WEIGHT_REF_TIME_PER_MICROS, "Weight should be at least 100 µs." ); // At most 50 ms. assert!( - w.ref_time() <= 50u64 * constants::WEIGHT_PER_MILLIS.ref_time(), + w.ref_time() <= 50u64 * constants::WEIGHT_REF_TIME_PER_MILLIS, "Weight should be at most 50 ms." ); } diff --git a/runtime/mangata-kusama/src/weights/extrinsic_weights.rs b/runtime/mangata-kusama/src/weights/extrinsic_weights.rs index b54640a148..a5e691e924 100644 --- a/runtime/mangata-kusama/src/weights/extrinsic_weights.rs +++ b/runtime/mangata-kusama/src/weights/extrinsic_weights.rs @@ -1,6 +1,6 @@ //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02 (Y/M/D) -//! HOSTNAME: `6b0c83a231cd`, CPU: `AMD EPYC 7B13` +//! DATE: 2023-02-13 (Y/M/D) +//! HOSTNAME: `a98b08ce8d61`, CPU: `AMD EPYC 7B13` //! //! SHORT-NAME: `extrinsic`, LONG-NAME: `ExtrinsicBase`, RUNTIME: `Mangata Development` //! WARMUPS: `10`, REPEAT: `100` @@ -16,34 +16,35 @@ // --chain // dev // -lblock_builder=debug +// --max-ext-per-block +// 50000 // --base-path // . -use frame_support::{ - parameter_types, - weights::{constants::WEIGHT_PER_NANOS, Weight}, -}; +use sp_core::parameter_types; +use sp_weights::{constants::WEIGHT_REF_TIME_PER_NANOS, Weight}; parameter_types! { /// Time to execute a NO-OP extrinsic, for example `System::remark`. /// Calculated by multiplying the *Average* with `1.0` and adding `0`. /// /// Stats nanoseconds: - /// Min, Max: 110_553, 113_483 - /// Average: 111_477 - /// Median: 111_264 - /// Std-Dev: 681.74 + /// Min, Max: 112_987, 114_635 + /// Average: 113_696 + /// Median: 113_696 + /// Std-Dev: 363.05 /// /// Percentiles nanoseconds: - /// 99th: 113_085 - /// 95th: 112_899 - /// 75th: 111_871 - pub const ExtrinsicBaseWeight: Weight = WEIGHT_PER_NANOS.saturating_mul(111_477); + /// 99th: 114_565 + /// 95th: 114_203 + /// 75th: 113_964 + pub const ExtrinsicBaseWeight: Weight = + Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(113_696)); } #[cfg(test)] mod test_weights { - use frame_support::weights::constants; + use sp_weights::constants; /// Checks that the weight exists and is sane. // NOTE: If this test fails but you are sure that the generated values are fine, @@ -54,12 +55,12 @@ mod test_weights { // At least 10 µs. assert!( - w.ref_time() >= 10u64 * constants::WEIGHT_PER_MICROS.ref_time(), + w.ref_time() >= 10u64 * constants::WEIGHT_REF_TIME_PER_MICROS, "Weight should be at least 10 µs." ); // At most 1 ms. assert!( - w.ref_time() <= constants::WEIGHT_PER_MILLIS.ref_time(), + w.ref_time() <= constants::WEIGHT_REF_TIME_PER_MILLIS, "Weight should be at most 1 ms." ); } diff --git a/runtime/mangata-kusama/src/weights/frame_system.rs b/runtime/mangata-kusama/src/weights/frame_system.rs index 4b58060714..8cd351ad84 100644 --- a/runtime/mangata-kusama/src/weights/frame_system.rs +++ b/runtime/mangata-kusama/src/weights/frame_system.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for frame_system //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -68,41 +68,41 @@ pub trait WeightInfo { pub struct ModuleWeight(PhantomData); impl frame_system::WeightInfo for ModuleWeight { fn remark(b: u32, ) -> Weight { - (Weight::from_ref_time(8_893_634)) + (Weight::from_ref_time(7_066_495)) // Standard Error: 0 - .saturating_add((Weight::from_ref_time(520)).saturating_mul(b as u64)) + .saturating_add((Weight::from_ref_time(518)).saturating_mul(b as u64)) } fn remark_with_event(b: u32, ) -> Weight { - (Weight::from_ref_time(21_071_947)) + (Weight::from_ref_time(37_012_629)) // Standard Error: 0 - .saturating_add((Weight::from_ref_time(1_773)).saturating_mul(b as u64)) + .saturating_add((Weight::from_ref_time(1_982)).saturating_mul(b as u64)) } // Storage: System Digest (r:1 w:1) // Storage: unknown [0x3a686561707061676573] (r:0 w:1) fn set_heap_pages() -> Weight { - (Weight::from_ref_time(11_920_000)) + (Weight::from_ref_time(11_220_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } // Storage: Skipped Metadata (r:0 w:0) fn set_storage(i: u32, ) -> Weight { - (Weight::from_ref_time(6_530_000)) - // Standard Error: 1_117 - .saturating_add((Weight::from_ref_time(1_010_531)).saturating_mul(i as u64)) + (Weight::from_ref_time(6_160_000)) + // Standard Error: 2_728 + .saturating_add((Weight::from_ref_time(1_052_752)).saturating_mul(i as u64)) .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64))) } // Storage: Skipped Metadata (r:0 w:0) fn kill_storage(i: u32, ) -> Weight { - (Weight::from_ref_time(6_460_000)) - // Standard Error: 1_456 - .saturating_add((Weight::from_ref_time(823_781)).saturating_mul(i as u64)) + (Weight::from_ref_time(6_200_000)) + // Standard Error: 1_306 + .saturating_add((Weight::from_ref_time(722_118)).saturating_mul(i as u64)) .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64))) } // Storage: Skipped Metadata (r:0 w:0) fn kill_prefix(p: u32, ) -> Weight { - (Weight::from_ref_time(9_200_000)) - // Standard Error: 1_178 - .saturating_add((Weight::from_ref_time(1_533_512)).saturating_mul(p as u64)) + (Weight::from_ref_time(8_670_000)) + // Standard Error: 1_402 + .saturating_add((Weight::from_ref_time(1_380_740)).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(p as u64))) } } @@ -110,41 +110,41 @@ impl frame_system::WeightInfo for ModuleWeight { // For backwards compatibility and tests impl WeightInfo for () { fn remark(b: u32, ) -> Weight { - (Weight::from_ref_time(8_893_634)) + (Weight::from_ref_time(7_066_495)) // Standard Error: 0 - .saturating_add((Weight::from_ref_time(520)).saturating_mul(b as u64)) + .saturating_add((Weight::from_ref_time(518)).saturating_mul(b as u64)) } fn remark_with_event(b: u32, ) -> Weight { - (Weight::from_ref_time(21_071_947)) + (Weight::from_ref_time(37_012_629)) // Standard Error: 0 - .saturating_add((Weight::from_ref_time(1_773)).saturating_mul(b as u64)) + .saturating_add((Weight::from_ref_time(1_982)).saturating_mul(b as u64)) } // Storage: System Digest (r:1 w:1) // Storage: unknown [0x3a686561707061676573] (r:0 w:1) fn set_heap_pages() -> Weight { - (Weight::from_ref_time(11_920_000)) + (Weight::from_ref_time(11_220_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } // Storage: Skipped Metadata (r:0 w:0) fn set_storage(i: u32, ) -> Weight { - (Weight::from_ref_time(6_530_000)) - // Standard Error: 1_117 - .saturating_add((Weight::from_ref_time(1_010_531)).saturating_mul(i as u64)) + (Weight::from_ref_time(6_160_000)) + // Standard Error: 2_728 + .saturating_add((Weight::from_ref_time(1_052_752)).saturating_mul(i as u64)) .saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(i as u64))) } // Storage: Skipped Metadata (r:0 w:0) fn kill_storage(i: u32, ) -> Weight { - (Weight::from_ref_time(6_460_000)) - // Standard Error: 1_456 - .saturating_add((Weight::from_ref_time(823_781)).saturating_mul(i as u64)) + (Weight::from_ref_time(6_200_000)) + // Standard Error: 1_306 + .saturating_add((Weight::from_ref_time(722_118)).saturating_mul(i as u64)) .saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(i as u64))) } // Storage: Skipped Metadata (r:0 w:0) fn kill_prefix(p: u32, ) -> Weight { - (Weight::from_ref_time(9_200_000)) - // Standard Error: 1_178 - .saturating_add((Weight::from_ref_time(1_533_512)).saturating_mul(p as u64)) + (Weight::from_ref_time(8_670_000)) + // Standard Error: 1_402 + .saturating_add((Weight::from_ref_time(1_380_740)).saturating_mul(p as u64)) .saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(p as u64))) } } diff --git a/runtime/mangata-kusama/src/weights/mod.rs b/runtime/mangata-kusama/src/weights/mod.rs index 90b543d095..0c109890fc 100644 --- a/runtime/mangata-kusama/src/weights/mod.rs +++ b/runtime/mangata-kusama/src/weights/mod.rs @@ -18,7 +18,7 @@ pub mod pallet_multipurpose_liquidity; pub mod pallet_session; pub mod pallet_timestamp; pub mod pallet_treasury; -pub mod pallet_utility; +pub mod pallet_utility_mangata; pub mod pallet_vesting_mangata; pub mod pallet_xyk; pub mod parachain_staking; @@ -31,7 +31,8 @@ pub use self::{ pallet_fee_lock as pallet_fee_lock_weights, pallet_issuance as pallet_issuance_weights, pallet_multipurpose_liquidity as pallet_multipurpose_liquidity_weights, pallet_session as pallet_session_weights, pallet_timestamp as pallet_timestamp_weights, - pallet_treasury as pallet_treasury_weights, pallet_utility as pallet_utility_weights, + pallet_treasury as pallet_treasury_weights, + pallet_utility_mangata as pallet_utility_mangata_weights, pallet_vesting_mangata as pallet_vesting_mangata_weights, pallet_xyk as pallet_xyk_weights, parachain_staking as parachain_staking_weights, }; diff --git a/runtime/mangata-kusama/src/weights/orml_asset_registry.rs b/runtime/mangata-kusama/src/weights/orml_asset_registry.rs index 38ae60175c..fca7bed97b 100644 --- a/runtime/mangata-kusama/src/weights/orml_asset_registry.rs +++ b/runtime/mangata-kusama/src/weights/orml_asset_registry.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for orml_asset_registry //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -68,14 +68,14 @@ impl orml_asset_registry::WeightInfo for ModuleWeight Weight { - (Weight::from_ref_time(46_480_000)) + (Weight::from_ref_time(46_500_000)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: AssetRegistry Metadata (r:1 w:1) // Storage: AssetRegistry LocationToAssetId (r:1 w:1) fn update_asset() -> Weight { - (Weight::from_ref_time(35_700_000)) + (Weight::from_ref_time(36_510_000)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -88,14 +88,14 @@ impl WeightInfo for () { // Storage: AssetRegistry Metadata (r:1 w:1) // Storage: AssetRegistry LocationToAssetId (r:1 w:1) fn register_asset() -> Weight { - (Weight::from_ref_time(46_480_000)) + (Weight::from_ref_time(46_500_000)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: AssetRegistry Metadata (r:1 w:1) // Storage: AssetRegistry LocationToAssetId (r:1 w:1) fn update_asset() -> Weight { - (Weight::from_ref_time(35_700_000)) + (Weight::from_ref_time(36_510_000)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } diff --git a/runtime/mangata-kusama/src/weights/orml_tokens.rs b/runtime/mangata-kusama/src/weights/orml_tokens.rs index 286d37b5ec..41414ea3c1 100644 --- a/runtime/mangata-kusama/src/weights/orml_tokens.rs +++ b/runtime/mangata-kusama/src/weights/orml_tokens.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for orml_tokens //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -71,35 +71,35 @@ impl orml_tokens::WeightInfo for ModuleWeight { // Storage: Tokens Accounts (r:2 w:2) // Storage: System Account (r:1 w:1) fn transfer() -> Weight { - (Weight::from_ref_time(58_570_000)) + (Weight::from_ref_time(57_250_000)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: Tokens Accounts (r:2 w:2) // Storage: System Account (r:1 w:1) fn transfer_all() -> Weight { - (Weight::from_ref_time(59_460_000)) + (Weight::from_ref_time(59_270_000)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: Tokens Accounts (r:2 w:2) // Storage: System Account (r:1 w:1) fn transfer_keep_alive() -> Weight { - (Weight::from_ref_time(53_451_000)) + (Weight::from_ref_time(52_840_000)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: Tokens Accounts (r:2 w:2) // Storage: System Account (r:2 w:1) fn force_transfer() -> Weight { - (Weight::from_ref_time(55_450_000)) + (Weight::from_ref_time(53_950_000)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: Tokens Accounts (r:1 w:1) // Storage: Tokens TotalIssuance (r:1 w:1) fn set_balance() -> Weight { - (Weight::from_ref_time(35_670_000)) + (Weight::from_ref_time(34_210_000)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -108,7 +108,7 @@ impl orml_tokens::WeightInfo for ModuleWeight { // Storage: Tokens TotalIssuance (r:1 w:1) // Storage: System Account (r:1 w:1) fn create() -> Weight { - (Weight::from_ref_time(57_290_000)) + (Weight::from_ref_time(57_450_000)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } @@ -117,7 +117,7 @@ impl orml_tokens::WeightInfo for ModuleWeight { // Storage: Tokens TotalIssuance (r:1 w:1) // Storage: System Account (r:1 w:1) fn mint() -> Weight { - (Weight::from_ref_time(57_660_000)) + (Weight::from_ref_time(57_360_000)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } @@ -128,35 +128,35 @@ impl WeightInfo for () { // Storage: Tokens Accounts (r:2 w:2) // Storage: System Account (r:1 w:1) fn transfer() -> Weight { - (Weight::from_ref_time(58_570_000)) + (Weight::from_ref_time(57_250_000)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: Tokens Accounts (r:2 w:2) // Storage: System Account (r:1 w:1) fn transfer_all() -> Weight { - (Weight::from_ref_time(59_460_000)) + (Weight::from_ref_time(59_270_000)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: Tokens Accounts (r:2 w:2) // Storage: System Account (r:1 w:1) fn transfer_keep_alive() -> Weight { - (Weight::from_ref_time(53_451_000)) + (Weight::from_ref_time(52_840_000)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: Tokens Accounts (r:2 w:2) // Storage: System Account (r:2 w:1) fn force_transfer() -> Weight { - (Weight::from_ref_time(55_450_000)) + (Weight::from_ref_time(53_950_000)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: Tokens Accounts (r:1 w:1) // Storage: Tokens TotalIssuance (r:1 w:1) fn set_balance() -> Weight { - (Weight::from_ref_time(35_670_000)) + (Weight::from_ref_time(34_210_000)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } @@ -165,7 +165,7 @@ impl WeightInfo for () { // Storage: Tokens TotalIssuance (r:1 w:1) // Storage: System Account (r:1 w:1) fn create() -> Weight { - (Weight::from_ref_time(57_290_000)) + (Weight::from_ref_time(57_450_000)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } @@ -174,7 +174,7 @@ impl WeightInfo for () { // Storage: Tokens TotalIssuance (r:1 w:1) // Storage: System Account (r:1 w:1) fn mint() -> Weight { - (Weight::from_ref_time(57_660_000)) + (Weight::from_ref_time(57_360_000)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } diff --git a/runtime/mangata-kusama/src/weights/pallet_bootstrap.rs b/runtime/mangata-kusama/src/weights/pallet_bootstrap.rs index 01f7c4e128..1fe8aa8209 100644 --- a/runtime/mangata-kusama/src/weights/pallet_bootstrap.rs +++ b/runtime/mangata-kusama/src/weights/pallet_bootstrap.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for pallet_bootstrap //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -72,7 +72,7 @@ impl pallet_bootstrap::WeightInfo for ModuleWeight { // Storage: Bootstrap PromoteBootstrapPool (r:0 w:1) // Storage: Bootstrap ActivePair (r:0 w:1) fn schedule_bootstrap() -> Weight { - (Weight::from_ref_time(36_710_000)) + (Weight::from_ref_time(36_889_000)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } @@ -86,7 +86,7 @@ impl pallet_bootstrap::WeightInfo for ModuleWeight { // Storage: Bootstrap Valuations (r:1 w:1) // Storage: Bootstrap ProvisionAccounts (r:0 w:1) fn provision() -> Weight { - (Weight::from_ref_time(96_550_000)) + (Weight::from_ref_time(95_140_000)) .saturating_add(T::DbWeight::get().reads(9 as u64)) .saturating_add(T::DbWeight::get().writes(6 as u64)) } @@ -102,7 +102,7 @@ impl pallet_bootstrap::WeightInfo for ModuleWeight { // Storage: Issuance PromotedPoolsRewardsV2 (r:1 w:0) // Storage: Bootstrap ProvisionAccounts (r:0 w:1) fn claim_and_activate_liquidity_tokens() -> Weight { - (Weight::from_ref_time(147_740_000)) + (Weight::from_ref_time(148_710_000)) .saturating_add(T::DbWeight::get().reads(14 as u64)) .saturating_add(T::DbWeight::get().writes(5 as u64)) } @@ -118,7 +118,7 @@ impl pallet_bootstrap::WeightInfo for ModuleWeight { // Storage: Bootstrap PromoteBootstrapPool (r:0 w:1) // Storage: Bootstrap ActivePair (r:0 w:1) fn finalize() -> Weight { - (Weight::from_ref_time(92_570_000)) + (Weight::from_ref_time(89_429_000)) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(11 as u64)) } @@ -133,7 +133,7 @@ impl WeightInfo for () { // Storage: Bootstrap PromoteBootstrapPool (r:0 w:1) // Storage: Bootstrap ActivePair (r:0 w:1) fn schedule_bootstrap() -> Weight { - (Weight::from_ref_time(36_710_000)) + (Weight::from_ref_time(36_889_000)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } @@ -147,7 +147,7 @@ impl WeightInfo for () { // Storage: Bootstrap Valuations (r:1 w:1) // Storage: Bootstrap ProvisionAccounts (r:0 w:1) fn provision() -> Weight { - (Weight::from_ref_time(96_550_000)) + (Weight::from_ref_time(95_140_000)) .saturating_add(RocksDbWeight::get().reads(9 as u64)) .saturating_add(RocksDbWeight::get().writes(6 as u64)) } @@ -163,7 +163,7 @@ impl WeightInfo for () { // Storage: Issuance PromotedPoolsRewardsV2 (r:1 w:0) // Storage: Bootstrap ProvisionAccounts (r:0 w:1) fn claim_and_activate_liquidity_tokens() -> Weight { - (Weight::from_ref_time(147_740_000)) + (Weight::from_ref_time(148_710_000)) .saturating_add(RocksDbWeight::get().reads(14 as u64)) .saturating_add(RocksDbWeight::get().writes(5 as u64)) } @@ -179,7 +179,7 @@ impl WeightInfo for () { // Storage: Bootstrap PromoteBootstrapPool (r:0 w:1) // Storage: Bootstrap ActivePair (r:0 w:1) fn finalize() -> Weight { - (Weight::from_ref_time(92_570_000)) + (Weight::from_ref_time(89_429_000)) .saturating_add(RocksDbWeight::get().reads(6 as u64)) .saturating_add(RocksDbWeight::get().writes(11 as u64)) } diff --git a/runtime/mangata-kusama/src/weights/pallet_collective_mangata.rs b/runtime/mangata-kusama/src/weights/pallet_collective_mangata.rs index d8b5f8f7ee..3a1305298f 100644 --- a/runtime/mangata-kusama/src/weights/pallet_collective_mangata.rs +++ b/runtime/mangata-kusama/src/weights/pallet_collective_mangata.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for pallet_collective_mangata //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -76,11 +76,11 @@ impl pallet_collective_mangata::WeightInfo for ModuleWe // Storage: Council Voting (r:100 w:100) // Storage: Council Prime (r:0 w:1) fn set_members(m: u32, _n: u32, p: u32, ) -> Weight { - (Weight::from_ref_time(87_320_000)) - // Standard Error: 55_764 - .saturating_add((Weight::from_ref_time(4_454_572)).saturating_mul(m as u64)) - // Standard Error: 55_764 - .saturating_add((Weight::from_ref_time(8_901_945)).saturating_mul(p as u64)) + (Weight::from_ref_time(87_150_000)) + // Standard Error: 60_340 + .saturating_add((Weight::from_ref_time(4_651_619)).saturating_mul(m as u64)) + // Standard Error: 60_340 + .saturating_add((Weight::from_ref_time(8_998_669)).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(p as u64))) .saturating_add(T::DbWeight::get().writes(2 as u64)) @@ -88,21 +88,21 @@ impl pallet_collective_mangata::WeightInfo for ModuleWe } // Storage: Council Members (r:1 w:0) fn execute(b: u32, m: u32, ) -> Weight { - (Weight::from_ref_time(35_460_067)) - // Standard Error: 70 - .saturating_add((Weight::from_ref_time(1_633)).saturating_mul(b as u64)) - // Standard Error: 724 - .saturating_add((Weight::from_ref_time(22_716)).saturating_mul(m as u64)) + (Weight::from_ref_time(34_752_897)) + // Standard Error: 106 + .saturating_add((Weight::from_ref_time(1_939)).saturating_mul(b as u64)) + // Standard Error: 1_097 + .saturating_add((Weight::from_ref_time(16_624)).saturating_mul(m as u64)) .saturating_add(T::DbWeight::get().reads(1 as u64)) } // Storage: Council Members (r:1 w:0) // Storage: Council ProposalOf (r:1 w:0) fn propose_execute(b: u32, m: u32, ) -> Weight { - (Weight::from_ref_time(36_835_982)) - // Standard Error: 189 - .saturating_add((Weight::from_ref_time(2_649)).saturating_mul(b as u64)) - // Standard Error: 1_956 - .saturating_add((Weight::from_ref_time(44_675)).saturating_mul(m as u64)) + (Weight::from_ref_time(37_326_122)) + // Standard Error: 95 + .saturating_add((Weight::from_ref_time(2_039)).saturating_mul(b as u64)) + // Standard Error: 983 + .saturating_add((Weight::from_ref_time(38_876)).saturating_mul(m as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64)) } // Storage: Council Members (r:1 w:0) @@ -112,22 +112,22 @@ impl pallet_collective_mangata::WeightInfo for ModuleWe // Storage: Council ProposalProposedTime (r:0 w:1) // Storage: Council Voting (r:0 w:1) fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight { - (Weight::from_ref_time(47_829_442)) - // Standard Error: 202 - .saturating_add((Weight::from_ref_time(7_273)).saturating_mul(b as u64)) - // Standard Error: 2_118 - .saturating_add((Weight::from_ref_time(14_736)).saturating_mul(m as u64)) - // Standard Error: 2_091 - .saturating_add((Weight::from_ref_time(420_618)).saturating_mul(p as u64)) + (Weight::from_ref_time(48_152_722)) + // Standard Error: 194 + .saturating_add((Weight::from_ref_time(5_209)).saturating_mul(b as u64)) + // Standard Error: 2_028 + .saturating_add((Weight::from_ref_time(39_162)).saturating_mul(m as u64)) + // Standard Error: 2_002 + .saturating_add((Weight::from_ref_time(269_004)).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(5 as u64)) } // Storage: Council Members (r:1 w:0) // Storage: Council Voting (r:1 w:1) fn vote(m: u32, ) -> Weight { - (Weight::from_ref_time(66_048_267)) - // Standard Error: 1_645 - .saturating_add((Weight::from_ref_time(69_894)).saturating_mul(m as u64)) + (Weight::from_ref_time(51_232_594)) + // Standard Error: 1_601 + .saturating_add((Weight::from_ref_time(58_241)).saturating_mul(m as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -137,11 +137,11 @@ impl pallet_collective_mangata::WeightInfo for ModuleWe // Storage: Council Proposals (r:1 w:1) // Storage: Council ProposalOf (r:0 w:1) fn close_early_disapproved(m: u32, p: u32, ) -> Weight { - (Weight::from_ref_time(66_492_201)) - // Standard Error: 3_949 - .saturating_add((Weight::from_ref_time(42_384)).saturating_mul(m as u64)) - // Standard Error: 3_851 - .saturating_add((Weight::from_ref_time(362_880)).saturating_mul(p as u64)) + (Weight::from_ref_time(67_175_054)) + // Standard Error: 2_063 + .saturating_add((Weight::from_ref_time(45_990)).saturating_mul(m as u64)) + // Standard Error: 2_012 + .saturating_add((Weight::from_ref_time(236_551)).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } @@ -151,13 +151,13 @@ impl pallet_collective_mangata::WeightInfo for ModuleWe // Storage: Council ProposalOf (r:1 w:1) // Storage: Council Proposals (r:1 w:1) fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight { - (Weight::from_ref_time(85_487_005)) - // Standard Error: 243 - .saturating_add((Weight::from_ref_time(4_005)).saturating_mul(b as u64)) - // Standard Error: 2_575 - .saturating_add((Weight::from_ref_time(52_101)).saturating_mul(m as u64)) - // Standard Error: 2_510 - .saturating_add((Weight::from_ref_time(412_780)).saturating_mul(p as u64)) + (Weight::from_ref_time(86_747_214)) + // Standard Error: 223 + .saturating_add((Weight::from_ref_time(3_092)).saturating_mul(b as u64)) + // Standard Error: 2_369 + .saturating_add((Weight::from_ref_time(57_800)).saturating_mul(m as u64)) + // Standard Error: 2_309 + .saturating_add((Weight::from_ref_time(269_279)).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } @@ -168,11 +168,11 @@ impl pallet_collective_mangata::WeightInfo for ModuleWe // Storage: Council Proposals (r:1 w:1) // Storage: Council ProposalOf (r:0 w:1) fn close_disapproved(m: u32, p: u32, ) -> Weight { - (Weight::from_ref_time(68_715_844)) - // Standard Error: 2_990 - .saturating_add((Weight::from_ref_time(56_028)).saturating_mul(m as u64)) - // Standard Error: 2_916 - .saturating_add((Weight::from_ref_time(367_604)).saturating_mul(p as u64)) + (Weight::from_ref_time(70_989_034)) + // Standard Error: 2_161 + .saturating_add((Weight::from_ref_time(47_344)).saturating_mul(m as u64)) + // Standard Error: 2_107 + .saturating_add((Weight::from_ref_time(236_294)).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } @@ -183,13 +183,13 @@ impl pallet_collective_mangata::WeightInfo for ModuleWe // Storage: Council ProposalOf (r:1 w:1) // Storage: Council Proposals (r:1 w:1) fn close_approved(b: u32, m: u32, p: u32, ) -> Weight { - (Weight::from_ref_time(88_186_953)) - // Standard Error: 239 - .saturating_add((Weight::from_ref_time(5_261)).saturating_mul(b as u64)) - // Standard Error: 2_532 - .saturating_add((Weight::from_ref_time(48_927)).saturating_mul(m as u64)) - // Standard Error: 2_468 - .saturating_add((Weight::from_ref_time(417_844)).saturating_mul(p as u64)) + (Weight::from_ref_time(89_487_689)) + // Standard Error: 217 + .saturating_add((Weight::from_ref_time(3_654)).saturating_mul(b as u64)) + // Standard Error: 2_299 + .saturating_add((Weight::from_ref_time(58_147)).saturating_mul(m as u64)) + // Standard Error: 2_241 + .saturating_add((Weight::from_ref_time(274_024)).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } @@ -198,9 +198,9 @@ impl pallet_collective_mangata::WeightInfo for ModuleWe // Storage: Council Voting (r:0 w:1) // Storage: Council ProposalOf (r:0 w:1) fn disapprove_proposal(p: u32, ) -> Weight { - (Weight::from_ref_time(40_410_560)) - // Standard Error: 2_372 - .saturating_add((Weight::from_ref_time(371_598)).saturating_mul(p as u64)) + (Weight::from_ref_time(41_036_072)) + // Standard Error: 1_892 + .saturating_add((Weight::from_ref_time(235_661)).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } @@ -213,11 +213,11 @@ impl WeightInfo for () { // Storage: Council Voting (r:100 w:100) // Storage: Council Prime (r:0 w:1) fn set_members(m: u32, _n: u32, p: u32, ) -> Weight { - (Weight::from_ref_time(87_320_000)) - // Standard Error: 55_764 - .saturating_add((Weight::from_ref_time(4_454_572)).saturating_mul(m as u64)) - // Standard Error: 55_764 - .saturating_add((Weight::from_ref_time(8_901_945)).saturating_mul(p as u64)) + (Weight::from_ref_time(87_150_000)) + // Standard Error: 60_340 + .saturating_add((Weight::from_ref_time(4_651_619)).saturating_mul(m as u64)) + // Standard Error: 60_340 + .saturating_add((Weight::from_ref_time(8_998_669)).saturating_mul(p as u64)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(p as u64))) .saturating_add(RocksDbWeight::get().writes(2 as u64)) @@ -225,21 +225,21 @@ impl WeightInfo for () { } // Storage: Council Members (r:1 w:0) fn execute(b: u32, m: u32, ) -> Weight { - (Weight::from_ref_time(35_460_067)) - // Standard Error: 70 - .saturating_add((Weight::from_ref_time(1_633)).saturating_mul(b as u64)) - // Standard Error: 724 - .saturating_add((Weight::from_ref_time(22_716)).saturating_mul(m as u64)) + (Weight::from_ref_time(34_752_897)) + // Standard Error: 106 + .saturating_add((Weight::from_ref_time(1_939)).saturating_mul(b as u64)) + // Standard Error: 1_097 + .saturating_add((Weight::from_ref_time(16_624)).saturating_mul(m as u64)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) } // Storage: Council Members (r:1 w:0) // Storage: Council ProposalOf (r:1 w:0) fn propose_execute(b: u32, m: u32, ) -> Weight { - (Weight::from_ref_time(36_835_982)) - // Standard Error: 189 - .saturating_add((Weight::from_ref_time(2_649)).saturating_mul(b as u64)) - // Standard Error: 1_956 - .saturating_add((Weight::from_ref_time(44_675)).saturating_mul(m as u64)) + (Weight::from_ref_time(37_326_122)) + // Standard Error: 95 + .saturating_add((Weight::from_ref_time(2_039)).saturating_mul(b as u64)) + // Standard Error: 983 + .saturating_add((Weight::from_ref_time(38_876)).saturating_mul(m as u64)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) } // Storage: Council Members (r:1 w:0) @@ -249,22 +249,22 @@ impl WeightInfo for () { // Storage: Council ProposalProposedTime (r:0 w:1) // Storage: Council Voting (r:0 w:1) fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight { - (Weight::from_ref_time(47_829_442)) - // Standard Error: 202 - .saturating_add((Weight::from_ref_time(7_273)).saturating_mul(b as u64)) - // Standard Error: 2_118 - .saturating_add((Weight::from_ref_time(14_736)).saturating_mul(m as u64)) - // Standard Error: 2_091 - .saturating_add((Weight::from_ref_time(420_618)).saturating_mul(p as u64)) + (Weight::from_ref_time(48_152_722)) + // Standard Error: 194 + .saturating_add((Weight::from_ref_time(5_209)).saturating_mul(b as u64)) + // Standard Error: 2_028 + .saturating_add((Weight::from_ref_time(39_162)).saturating_mul(m as u64)) + // Standard Error: 2_002 + .saturating_add((Weight::from_ref_time(269_004)).saturating_mul(p as u64)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(5 as u64)) } // Storage: Council Members (r:1 w:0) // Storage: Council Voting (r:1 w:1) fn vote(m: u32, ) -> Weight { - (Weight::from_ref_time(66_048_267)) - // Standard Error: 1_645 - .saturating_add((Weight::from_ref_time(69_894)).saturating_mul(m as u64)) + (Weight::from_ref_time(51_232_594)) + // Standard Error: 1_601 + .saturating_add((Weight::from_ref_time(58_241)).saturating_mul(m as u64)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -274,11 +274,11 @@ impl WeightInfo for () { // Storage: Council Proposals (r:1 w:1) // Storage: Council ProposalOf (r:0 w:1) fn close_early_disapproved(m: u32, p: u32, ) -> Weight { - (Weight::from_ref_time(66_492_201)) - // Standard Error: 3_949 - .saturating_add((Weight::from_ref_time(42_384)).saturating_mul(m as u64)) - // Standard Error: 3_851 - .saturating_add((Weight::from_ref_time(362_880)).saturating_mul(p as u64)) + (Weight::from_ref_time(67_175_054)) + // Standard Error: 2_063 + .saturating_add((Weight::from_ref_time(45_990)).saturating_mul(m as u64)) + // Standard Error: 2_012 + .saturating_add((Weight::from_ref_time(236_551)).saturating_mul(p as u64)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } @@ -288,13 +288,13 @@ impl WeightInfo for () { // Storage: Council ProposalOf (r:1 w:1) // Storage: Council Proposals (r:1 w:1) fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight { - (Weight::from_ref_time(85_487_005)) - // Standard Error: 243 - .saturating_add((Weight::from_ref_time(4_005)).saturating_mul(b as u64)) - // Standard Error: 2_575 - .saturating_add((Weight::from_ref_time(52_101)).saturating_mul(m as u64)) - // Standard Error: 2_510 - .saturating_add((Weight::from_ref_time(412_780)).saturating_mul(p as u64)) + (Weight::from_ref_time(86_747_214)) + // Standard Error: 223 + .saturating_add((Weight::from_ref_time(3_092)).saturating_mul(b as u64)) + // Standard Error: 2_369 + .saturating_add((Weight::from_ref_time(57_800)).saturating_mul(m as u64)) + // Standard Error: 2_309 + .saturating_add((Weight::from_ref_time(269_279)).saturating_mul(p as u64)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } @@ -305,11 +305,11 @@ impl WeightInfo for () { // Storage: Council Proposals (r:1 w:1) // Storage: Council ProposalOf (r:0 w:1) fn close_disapproved(m: u32, p: u32, ) -> Weight { - (Weight::from_ref_time(68_715_844)) - // Standard Error: 2_990 - .saturating_add((Weight::from_ref_time(56_028)).saturating_mul(m as u64)) - // Standard Error: 2_916 - .saturating_add((Weight::from_ref_time(367_604)).saturating_mul(p as u64)) + (Weight::from_ref_time(70_989_034)) + // Standard Error: 2_161 + .saturating_add((Weight::from_ref_time(47_344)).saturating_mul(m as u64)) + // Standard Error: 2_107 + .saturating_add((Weight::from_ref_time(236_294)).saturating_mul(p as u64)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } @@ -320,13 +320,13 @@ impl WeightInfo for () { // Storage: Council ProposalOf (r:1 w:1) // Storage: Council Proposals (r:1 w:1) fn close_approved(b: u32, m: u32, p: u32, ) -> Weight { - (Weight::from_ref_time(88_186_953)) - // Standard Error: 239 - .saturating_add((Weight::from_ref_time(5_261)).saturating_mul(b as u64)) - // Standard Error: 2_532 - .saturating_add((Weight::from_ref_time(48_927)).saturating_mul(m as u64)) - // Standard Error: 2_468 - .saturating_add((Weight::from_ref_time(417_844)).saturating_mul(p as u64)) + (Weight::from_ref_time(89_487_689)) + // Standard Error: 217 + .saturating_add((Weight::from_ref_time(3_654)).saturating_mul(b as u64)) + // Standard Error: 2_299 + .saturating_add((Weight::from_ref_time(58_147)).saturating_mul(m as u64)) + // Standard Error: 2_241 + .saturating_add((Weight::from_ref_time(274_024)).saturating_mul(p as u64)) .saturating_add(RocksDbWeight::get().reads(6 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } @@ -335,9 +335,9 @@ impl WeightInfo for () { // Storage: Council Voting (r:0 w:1) // Storage: Council ProposalOf (r:0 w:1) fn disapprove_proposal(p: u32, ) -> Weight { - (Weight::from_ref_time(40_410_560)) - // Standard Error: 2_372 - .saturating_add((Weight::from_ref_time(371_598)).saturating_mul(p as u64)) + (Weight::from_ref_time(41_036_072)) + // Standard Error: 1_892 + .saturating_add((Weight::from_ref_time(235_661)).saturating_mul(p as u64)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } diff --git a/runtime/mangata-kusama/src/weights/pallet_crowdloan_rewards.rs b/runtime/mangata-kusama/src/weights/pallet_crowdloan_rewards.rs index 90e53dfb39..b1b47d2d8a 100644 --- a/runtime/mangata-kusama/src/weights/pallet_crowdloan_rewards.rs +++ b/runtime/mangata-kusama/src/weights/pallet_crowdloan_rewards.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for pallet_crowdloan_rewards //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -70,7 +70,7 @@ pub struct ModuleWeight(PhantomData); impl pallet_crowdloan_rewards::WeightInfo for ModuleWeight { // Storage: Crowdloan CrowdloanAllocation (r:0 w:1) fn set_crowdloan_allocation() -> Weight { - (Weight::from_ref_time(7_650_000)) + (Weight::from_ref_time(7_660_000)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: Crowdloan Initialized (r:1 w:0) @@ -85,9 +85,9 @@ impl pallet_crowdloan_rewards::WeightInfo for ModuleWei // Storage: System Account (r:1 w:1) // Storage: Crowdloan AccountsPayable (r:1 w:1) fn initialize_reward_vec(x: u32, ) -> Weight { - (Weight::from_ref_time(1_287_174_491)) - // Standard Error: 164_156 - .saturating_add((Weight::from_ref_time(57_783_366)).saturating_mul(x as u64)) + (Weight::from_ref_time(285_559_831)) + // Standard Error: 112_312 + .saturating_add((Weight::from_ref_time(59_501_876)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().reads((5 as u64).saturating_mul(x as u64))) .saturating_add(T::DbWeight::get().writes(3 as u64)) @@ -100,7 +100,7 @@ impl pallet_crowdloan_rewards::WeightInfo for ModuleWei // Storage: Crowdloan TotalContributors (r:1 w:0) // Storage: Crowdloan EndRelayBlock (r:0 w:1) fn complete_initialization() -> Weight { - (Weight::from_ref_time(26_820_000)) + (Weight::from_ref_time(20_990_000)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -112,13 +112,13 @@ impl pallet_crowdloan_rewards::WeightInfo for ModuleWei // Storage: Tokens Accounts (r:1 w:1) // Storage: Tokens TotalIssuance (r:1 w:1) fn claim() -> Weight { - (Weight::from_ref_time(71_230_000)) + (Weight::from_ref_time(66_150_000)) .saturating_add(T::DbWeight::get().reads(7 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: Crowdloan AccountsPayable (r:2 w:2) fn update_reward_address() -> Weight { - (Weight::from_ref_time(40_800_000)) + (Weight::from_ref_time(36_970_000)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -129,15 +129,15 @@ impl pallet_crowdloan_rewards::WeightInfo for ModuleWei // Storage: Tokens Accounts (r:1 w:1) // Storage: Tokens TotalIssuance (r:1 w:1) fn associate_native_identity() -> Weight { - (Weight::from_ref_time(149_080_000)) + (Weight::from_ref_time(141_790_000)) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(5 as u64)) } // Storage: Crowdloan AccountsPayable (r:2 w:2) fn change_association_with_relay_keys(x: u32, ) -> Weight { - (Weight::from_ref_time(48_951_310)) - // Standard Error: 7_297 - .saturating_add((Weight::from_ref_time(62_891_288)).saturating_mul(x as u64)) + (Weight::from_ref_time(36_263_441)) + // Standard Error: 18_040 + .saturating_add((Weight::from_ref_time(63_156_881)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -147,7 +147,7 @@ impl pallet_crowdloan_rewards::WeightInfo for ModuleWei impl WeightInfo for () { // Storage: Crowdloan CrowdloanAllocation (r:0 w:1) fn set_crowdloan_allocation() -> Weight { - (Weight::from_ref_time(7_650_000)) + (Weight::from_ref_time(7_660_000)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: Crowdloan Initialized (r:1 w:0) @@ -162,9 +162,9 @@ impl WeightInfo for () { // Storage: System Account (r:1 w:1) // Storage: Crowdloan AccountsPayable (r:1 w:1) fn initialize_reward_vec(x: u32, ) -> Weight { - (Weight::from_ref_time(1_287_174_491)) - // Standard Error: 164_156 - .saturating_add((Weight::from_ref_time(57_783_366)).saturating_mul(x as u64)) + (Weight::from_ref_time(285_559_831)) + // Standard Error: 112_312 + .saturating_add((Weight::from_ref_time(59_501_876)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads(6 as u64)) .saturating_add(RocksDbWeight::get().reads((5 as u64).saturating_mul(x as u64))) .saturating_add(RocksDbWeight::get().writes(3 as u64)) @@ -177,7 +177,7 @@ impl WeightInfo for () { // Storage: Crowdloan TotalContributors (r:1 w:0) // Storage: Crowdloan EndRelayBlock (r:0 w:1) fn complete_initialization() -> Weight { - (Weight::from_ref_time(26_820_000)) + (Weight::from_ref_time(20_990_000)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } @@ -189,13 +189,13 @@ impl WeightInfo for () { // Storage: Tokens Accounts (r:1 w:1) // Storage: Tokens TotalIssuance (r:1 w:1) fn claim() -> Weight { - (Weight::from_ref_time(71_230_000)) + (Weight::from_ref_time(66_150_000)) .saturating_add(RocksDbWeight::get().reads(7 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: Crowdloan AccountsPayable (r:2 w:2) fn update_reward_address() -> Weight { - (Weight::from_ref_time(40_800_000)) + (Weight::from_ref_time(36_970_000)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } @@ -206,15 +206,15 @@ impl WeightInfo for () { // Storage: Tokens Accounts (r:1 w:1) // Storage: Tokens TotalIssuance (r:1 w:1) fn associate_native_identity() -> Weight { - (Weight::from_ref_time(149_080_000)) + (Weight::from_ref_time(141_790_000)) .saturating_add(RocksDbWeight::get().reads(6 as u64)) .saturating_add(RocksDbWeight::get().writes(5 as u64)) } // Storage: Crowdloan AccountsPayable (r:2 w:2) fn change_association_with_relay_keys(x: u32, ) -> Weight { - (Weight::from_ref_time(48_951_310)) - // Standard Error: 7_297 - .saturating_add((Weight::from_ref_time(62_891_288)).saturating_mul(x as u64)) + (Weight::from_ref_time(36_263_441)) + // Standard Error: 18_040 + .saturating_add((Weight::from_ref_time(63_156_881)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } diff --git a/runtime/mangata-kusama/src/weights/pallet_fee_lock.rs b/runtime/mangata-kusama/src/weights/pallet_fee_lock.rs index 27ce160de5..2e00003196 100644 --- a/runtime/mangata-kusama/src/weights/pallet_fee_lock.rs +++ b/runtime/mangata-kusama/src/weights/pallet_fee_lock.rs @@ -16,10 +16,10 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -//! Autogenerated weights for pallet_token_timeout +//! Autogenerated weights for pallet_fee_lock //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -54,26 +54,26 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use sp_std::marker::PhantomData; -/// Weight functions needed for pallet_token_timeout. +/// Weight functions needed for pallet_fee_lock. pub trait WeightInfo { fn update_fee_lock_metadata() -> Weight; fn unlock_fee() -> Weight; } -/// Weights for pallet_token_timeout using the Mangata node and recommended hardware. +/// Weights for pallet_fee_lock using the Mangata node and recommended hardware. pub struct ModuleWeight(PhantomData); impl pallet_fee_lock::WeightInfo for ModuleWeight { - // Storage: TokenTimeout TimeoutMetadata (r:1 w:1) + // Storage: FeeLock FeeLockMetadata (r:1 w:1) fn update_fee_lock_metadata() -> Weight { - (Weight::from_ref_time(36_140_000)) + (Weight::from_ref_time(33_569_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } - // Storage: TokenTimeout AccountTimeoutData (r:1 w:1) - // Storage: TokenTimeout TimeoutMetadata (r:1 w:0) + // Storage: FeeLock AccountFeeLockData (r:1 w:1) + // Storage: FeeLock FeeLockMetadata (r:1 w:0) // Storage: Tokens Accounts (r:1 w:1) fn unlock_fee() -> Weight { - (Weight::from_ref_time(53_240_000)) + (Weight::from_ref_time(48_631_000)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -81,17 +81,17 @@ impl pallet_fee_lock::WeightInfo for ModuleWeight { // For backwards compatibility and tests impl WeightInfo for () { - // Storage: TokenTimeout TimeoutMetadata (r:1 w:1) + // Storage: FeeLock FeeLockMetadata (r:1 w:1) fn update_fee_lock_metadata() -> Weight { - (Weight::from_ref_time(36_140_000)) + (Weight::from_ref_time(33_569_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } - // Storage: TokenTimeout AccountTimeoutData (r:1 w:1) - // Storage: TokenTimeout TimeoutMetadata (r:1 w:0) + // Storage: FeeLock AccountFeeLockData (r:1 w:1) + // Storage: FeeLock FeeLockMetadata (r:1 w:0) // Storage: Tokens Accounts (r:1 w:1) fn unlock_fee() -> Weight { - (Weight::from_ref_time(53_240_000)) + (Weight::from_ref_time(48_631_000)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } diff --git a/runtime/mangata-kusama/src/weights/pallet_issuance.rs b/runtime/mangata-kusama/src/weights/pallet_issuance.rs index 63592dc30c..b97af2e208 100644 --- a/runtime/mangata-kusama/src/weights/pallet_issuance.rs +++ b/runtime/mangata-kusama/src/weights/pallet_issuance.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for pallet_issuance //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -68,13 +68,13 @@ impl pallet_issuance::WeightInfo for ModuleWeight { // Storage: Issuance IsTGEFinalized (r:1 w:0) // Storage: Tokens TotalIssuance (r:1 w:0) fn init_issuance_config() -> Weight { - (Weight::from_ref_time(32_850_000)) + (Weight::from_ref_time(31_560_000)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: Issuance IsTGEFinalized (r:1 w:1) fn finalize_tge() -> Weight { - (Weight::from_ref_time(22_050_000)) + (Weight::from_ref_time(22_440_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -86,9 +86,9 @@ impl pallet_issuance::WeightInfo for ModuleWeight { // Storage: Tokens Locks (r:3 w:3) // Storage: Issuance TGETotal (r:1 w:1) fn execute_tge(x: u32, ) -> Weight { - (Weight::from_ref_time(40_338_031)) - // Standard Error: 29_469 - .saturating_add((Weight::from_ref_time(60_308_257)).saturating_mul(x as u64)) + (Weight::from_ref_time(29_941_757)) + // Standard Error: 30_728 + .saturating_add((Weight::from_ref_time(61_997_015)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().reads((4 as u64).saturating_mul(x as u64))) .saturating_add(T::DbWeight::get().writes(2 as u64)) @@ -102,13 +102,13 @@ impl WeightInfo for () { // Storage: Issuance IsTGEFinalized (r:1 w:0) // Storage: Tokens TotalIssuance (r:1 w:0) fn init_issuance_config() -> Weight { - (Weight::from_ref_time(32_850_000)) + (Weight::from_ref_time(31_560_000)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: Issuance IsTGEFinalized (r:1 w:1) fn finalize_tge() -> Weight { - (Weight::from_ref_time(22_050_000)) + (Weight::from_ref_time(22_440_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -120,9 +120,9 @@ impl WeightInfo for () { // Storage: Tokens Locks (r:3 w:3) // Storage: Issuance TGETotal (r:1 w:1) fn execute_tge(x: u32, ) -> Weight { - (Weight::from_ref_time(40_338_031)) - // Standard Error: 29_469 - .saturating_add((Weight::from_ref_time(60_308_257)).saturating_mul(x as u64)) + (Weight::from_ref_time(29_941_757)) + // Standard Error: 30_728 + .saturating_add((Weight::from_ref_time(61_997_015)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().reads((4 as u64).saturating_mul(x as u64))) .saturating_add(RocksDbWeight::get().writes(2 as u64)) diff --git a/runtime/mangata-kusama/src/weights/pallet_multipurpose_liquidity.rs b/runtime/mangata-kusama/src/weights/pallet_multipurpose_liquidity.rs index 8cd63f519a..296878faf6 100644 --- a/runtime/mangata-kusama/src/weights/pallet_multipurpose_liquidity.rs +++ b/runtime/mangata-kusama/src/weights/pallet_multipurpose_liquidity.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for pallet_multipurpose_liquidity //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -70,7 +70,7 @@ impl pallet_multipurpose_liquidity::WeightInfo for Modu // Storage: MultiPurposeLiquidity ReserveStatus (r:1 w:1) // Storage: MultiPurposeLiquidity RelockStatus (r:1 w:1) fn reserve_vesting_liquidity_tokens() -> Weight { - (Weight::from_ref_time(116_820_000)) + (Weight::from_ref_time(116_880_000)) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(5 as u64)) } @@ -80,7 +80,7 @@ impl pallet_multipurpose_liquidity::WeightInfo for Modu // Storage: Vesting Vesting (r:1 w:1) // Storage: Tokens Locks (r:1 w:1) fn unreserve_and_relock_instance() -> Weight { - (Weight::from_ref_time(108_540_000)) + (Weight::from_ref_time(107_990_000)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(5 as u64)) } @@ -95,7 +95,7 @@ impl WeightInfo for () { // Storage: MultiPurposeLiquidity ReserveStatus (r:1 w:1) // Storage: MultiPurposeLiquidity RelockStatus (r:1 w:1) fn reserve_vesting_liquidity_tokens() -> Weight { - (Weight::from_ref_time(116_820_000)) + (Weight::from_ref_time(116_880_000)) .saturating_add(RocksDbWeight::get().reads(6 as u64)) .saturating_add(RocksDbWeight::get().writes(5 as u64)) } @@ -105,7 +105,7 @@ impl WeightInfo for () { // Storage: Vesting Vesting (r:1 w:1) // Storage: Tokens Locks (r:1 w:1) fn unreserve_and_relock_instance() -> Weight { - (Weight::from_ref_time(108_540_000)) + (Weight::from_ref_time(107_990_000)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(5 as u64)) } diff --git a/runtime/mangata-kusama/src/weights/pallet_session.rs b/runtime/mangata-kusama/src/weights/pallet_session.rs index 35ec7d5015..4593254b75 100644 --- a/runtime/mangata-kusama/src/weights/pallet_session.rs +++ b/runtime/mangata-kusama/src/weights/pallet_session.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for pallet_session //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -66,14 +66,14 @@ impl pallet_session::WeightInfo for ModuleWeight { // Storage: Session NextKeys (r:1 w:1) // Storage: Session KeyOwner (r:1 w:1) fn set_keys() -> Weight { - (Weight::from_ref_time(30_629_000)) + (Weight::from_ref_time(30_280_000)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } // Storage: Session NextKeys (r:1 w:1) // Storage: Session KeyOwner (r:0 w:1) fn purge_keys() -> Weight { - (Weight::from_ref_time(26_289_000)) + (Weight::from_ref_time(24_820_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -84,14 +84,14 @@ impl WeightInfo for () { // Storage: Session NextKeys (r:1 w:1) // Storage: Session KeyOwner (r:1 w:1) fn set_keys() -> Weight { - (Weight::from_ref_time(30_629_000)) + (Weight::from_ref_time(30_280_000)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } // Storage: Session NextKeys (r:1 w:1) // Storage: Session KeyOwner (r:0 w:1) fn purge_keys() -> Weight { - (Weight::from_ref_time(26_289_000)) + (Weight::from_ref_time(24_820_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } diff --git a/runtime/mangata-kusama/src/weights/pallet_timestamp.rs b/runtime/mangata-kusama/src/weights/pallet_timestamp.rs index 8661e2fffa..1a11240b07 100644 --- a/runtime/mangata-kusama/src/weights/pallet_timestamp.rs +++ b/runtime/mangata-kusama/src/weights/pallet_timestamp.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for pallet_timestamp //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -65,12 +65,12 @@ pub struct ModuleWeight(PhantomData); impl pallet_timestamp::WeightInfo for ModuleWeight { // Storage: Timestamp Now (r:1 w:1) fn set() -> Weight { - (Weight::from_ref_time(12_260_000)) + (Weight::from_ref_time(12_030_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } fn on_finalize() -> Weight { - (Weight::from_ref_time(6_320_000)) + (Weight::from_ref_time(5_610_000)) } } @@ -78,11 +78,11 @@ impl pallet_timestamp::WeightInfo for ModuleWeight { impl WeightInfo for () { // Storage: Timestamp Now (r:1 w:1) fn set() -> Weight { - (Weight::from_ref_time(12_260_000)) + (Weight::from_ref_time(12_030_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } fn on_finalize() -> Weight { - (Weight::from_ref_time(6_320_000)) + (Weight::from_ref_time(5_610_000)) } } diff --git a/runtime/mangata-kusama/src/weights/pallet_treasury.rs b/runtime/mangata-kusama/src/weights/pallet_treasury.rs index 8af6b0a5b6..70bd269d71 100644 --- a/runtime/mangata-kusama/src/weights/pallet_treasury.rs +++ b/runtime/mangata-kusama/src/weights/pallet_treasury.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for pallet_treasury //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -68,13 +68,13 @@ pub trait WeightInfo { pub struct ModuleWeight(PhantomData); impl pallet_treasury::WeightInfo for ModuleWeight { fn spend() -> Weight { - (Weight::from_ref_time(360_000)) + (Weight::from_ref_time(371_000)) } // Storage: Tokens Accounts (r:1 w:1) // Storage: Treasury ProposalCount (r:1 w:1) // Storage: Treasury Proposals (r:0 w:1) fn propose_spend() -> Weight { - (Weight::from_ref_time(47_560_000)) + (Weight::from_ref_time(46_920_000)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } @@ -82,34 +82,35 @@ impl pallet_treasury::WeightInfo for ModuleWeight { // Storage: Tokens Accounts (r:1 w:1) // Storage: Tokens TotalIssuance (r:1 w:1) fn reject_proposal() -> Weight { - (Weight::from_ref_time(56_170_000)) + (Weight::from_ref_time(53_080_000)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: Treasury Proposals (r:1 w:0) // Storage: Treasury Approvals (r:1 w:1) fn approve_proposal(p: u32, ) -> Weight { - (Weight::from_ref_time(22_167_627)) - // Standard Error: 1_510 - .saturating_add((Weight::from_ref_time(307_751)).saturating_mul(p as u64)) + (Weight::from_ref_time(20_847_608)) + // Standard Error: 1_572 + .saturating_add((Weight::from_ref_time(91_776)).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: Treasury Approvals (r:1 w:1) fn remove_approval() -> Weight { - (Weight::from_ref_time(16_720_000)) + (Weight::from_ref_time(14_040_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: Tokens Accounts (r:1 w:0) + // Storage: Treasury Inactive (r:1 w:0) // Storage: Treasury Approvals (r:1 w:1) // Storage: Tokens TotalIssuance (r:1 w:1) // Storage: Treasury Proposals (r:2 w:0) fn on_initialize_proposals(p: u32, ) -> Weight { - (Weight::from_ref_time(37_189_330)) - // Standard Error: 5_817 - .saturating_add((Weight::from_ref_time(3_624_621)).saturating_mul(p as u64)) - .saturating_add(T::DbWeight::get().reads(2 as u64)) + (Weight::from_ref_time(40_206_246)) + // Standard Error: 6_747 + .saturating_add((Weight::from_ref_time(3_467_705)).saturating_mul(p as u64)) + .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(p as u64))) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -118,13 +119,13 @@ impl pallet_treasury::WeightInfo for ModuleWeight { // For backwards compatibility and tests impl WeightInfo for () { fn spend() -> Weight { - (Weight::from_ref_time(360_000)) + (Weight::from_ref_time(371_000)) } // Storage: Tokens Accounts (r:1 w:1) // Storage: Treasury ProposalCount (r:1 w:1) // Storage: Treasury Proposals (r:0 w:1) fn propose_spend() -> Weight { - (Weight::from_ref_time(47_560_000)) + (Weight::from_ref_time(46_920_000)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } @@ -132,34 +133,35 @@ impl WeightInfo for () { // Storage: Tokens Accounts (r:1 w:1) // Storage: Tokens TotalIssuance (r:1 w:1) fn reject_proposal() -> Weight { - (Weight::from_ref_time(56_170_000)) + (Weight::from_ref_time(53_080_000)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: Treasury Proposals (r:1 w:0) // Storage: Treasury Approvals (r:1 w:1) fn approve_proposal(p: u32, ) -> Weight { - (Weight::from_ref_time(22_167_627)) - // Standard Error: 1_510 - .saturating_add((Weight::from_ref_time(307_751)).saturating_mul(p as u64)) + (Weight::from_ref_time(20_847_608)) + // Standard Error: 1_572 + .saturating_add((Weight::from_ref_time(91_776)).saturating_mul(p as u64)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: Treasury Approvals (r:1 w:1) fn remove_approval() -> Weight { - (Weight::from_ref_time(16_720_000)) + (Weight::from_ref_time(14_040_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: Tokens Accounts (r:1 w:0) + // Storage: Treasury Inactive (r:1 w:0) // Storage: Treasury Approvals (r:1 w:1) // Storage: Tokens TotalIssuance (r:1 w:1) // Storage: Treasury Proposals (r:2 w:0) fn on_initialize_proposals(p: u32, ) -> Weight { - (Weight::from_ref_time(37_189_330)) - // Standard Error: 5_817 - .saturating_add((Weight::from_ref_time(3_624_621)).saturating_mul(p as u64)) - .saturating_add(RocksDbWeight::get().reads(2 as u64)) + (Weight::from_ref_time(40_206_246)) + // Standard Error: 6_747 + .saturating_add((Weight::from_ref_time(3_467_705)).saturating_mul(p as u64)) + .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(p as u64))) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } diff --git a/runtime/mangata-kusama/src/weights/pallet_utility.rs b/runtime/mangata-kusama/src/weights/pallet_utility_mangata.rs similarity index 64% rename from runtime/mangata-kusama/src/weights/pallet_utility.rs rename to runtime/mangata-kusama/src/weights/pallet_utility_mangata.rs index d7a128fee0..740ac9e73e 100644 --- a/runtime/mangata-kusama/src/weights/pallet_utility.rs +++ b/runtime/mangata-kusama/src/weights/pallet_utility_mangata.rs @@ -16,10 +16,10 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -//! Autogenerated weights for pallet_utility +//! Autogenerated weights for pallet_utility_mangata //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -54,7 +54,7 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use sp_std::marker::PhantomData; -/// Weight functions needed for pallet_utility. +/// Weight functions needed for pallet_utility_mangata. pub trait WeightInfo { fn batch(c: u32, ) -> Weight; fn as_derivative() -> Weight; @@ -63,53 +63,53 @@ pub trait WeightInfo { fn force_batch(c: u32, ) -> Weight; } -/// Weights for pallet_utility using the Mangata node and recommended hardware. +/// Weights for pallet_utility_mangata using the Mangata node and recommended hardware. pub struct ModuleWeight(PhantomData); -impl pallet_utility::WeightInfo for ModuleWeight { +impl pallet_utility_mangata::WeightInfo for ModuleWeight { fn batch(c: u32, ) -> Weight { - (Weight::from_ref_time(20_194_974)) - // Standard Error: 2_172 - .saturating_add((Weight::from_ref_time(6_810_959)).saturating_mul(c as u64)) + (Weight::from_ref_time(19_750_743)) + // Standard Error: 2_196 + .saturating_add((Weight::from_ref_time(7_212_724)).saturating_mul(c as u64)) } fn as_derivative() -> Weight { - (Weight::from_ref_time(10_880_000)) + (Weight::from_ref_time(10_920_000)) } fn batch_all(c: u32, ) -> Weight { - (Weight::from_ref_time(28_041_086)) - // Standard Error: 1_589 - .saturating_add((Weight::from_ref_time(7_087_481)).saturating_mul(c as u64)) + (Weight::from_ref_time(27_064_753)) + // Standard Error: 2_636 + .saturating_add((Weight::from_ref_time(7_427_454)).saturating_mul(c as u64)) } fn dispatch_as() -> Weight { - (Weight::from_ref_time(21_580_000)) + (Weight::from_ref_time(21_220_000)) } fn force_batch(c: u32, ) -> Weight { - (Weight::from_ref_time(24_615_257)) - // Standard Error: 1_425 - .saturating_add((Weight::from_ref_time(6_806_940)).saturating_mul(c as u64)) + (Weight::from_ref_time(27_405_583)) + // Standard Error: 1_738 + .saturating_add((Weight::from_ref_time(7_179_158)).saturating_mul(c as u64)) } } // For backwards compatibility and tests impl WeightInfo for () { fn batch(c: u32, ) -> Weight { - (Weight::from_ref_time(20_194_974)) - // Standard Error: 2_172 - .saturating_add((Weight::from_ref_time(6_810_959)).saturating_mul(c as u64)) + (Weight::from_ref_time(19_750_743)) + // Standard Error: 2_196 + .saturating_add((Weight::from_ref_time(7_212_724)).saturating_mul(c as u64)) } fn as_derivative() -> Weight { - (Weight::from_ref_time(10_880_000)) + (Weight::from_ref_time(10_920_000)) } fn batch_all(c: u32, ) -> Weight { - (Weight::from_ref_time(28_041_086)) - // Standard Error: 1_589 - .saturating_add((Weight::from_ref_time(7_087_481)).saturating_mul(c as u64)) + (Weight::from_ref_time(27_064_753)) + // Standard Error: 2_636 + .saturating_add((Weight::from_ref_time(7_427_454)).saturating_mul(c as u64)) } fn dispatch_as() -> Weight { - (Weight::from_ref_time(21_580_000)) + (Weight::from_ref_time(21_220_000)) } fn force_batch(c: u32, ) -> Weight { - (Weight::from_ref_time(24_615_257)) - // Standard Error: 1_425 - .saturating_add((Weight::from_ref_time(6_806_940)).saturating_mul(c as u64)) + (Weight::from_ref_time(27_405_583)) + // Standard Error: 1_738 + .saturating_add((Weight::from_ref_time(7_179_158)).saturating_mul(c as u64)) } } diff --git a/runtime/mangata-kusama/src/weights/pallet_vesting_mangata.rs b/runtime/mangata-kusama/src/weights/pallet_vesting_mangata.rs index 43c4bdccb2..467809ddb6 100644 --- a/runtime/mangata-kusama/src/weights/pallet_vesting_mangata.rs +++ b/runtime/mangata-kusama/src/weights/pallet_vesting_mangata.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for pallet_vesting_mangata //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -72,9 +72,9 @@ impl pallet_vesting_mangata::WeightInfo for ModuleWeigh // Storage: Tokens Locks (r:1 w:1) // Storage: Tokens Accounts (r:1 w:1) fn vest_locked(_l: u32, s: u32, ) -> Weight { - (Weight::from_ref_time(59_991_857)) - // Standard Error: 6_228 - .saturating_add((Weight::from_ref_time(204_519)).saturating_mul(s as u64)) + (Weight::from_ref_time(55_253_850)) + // Standard Error: 6_193 + .saturating_add((Weight::from_ref_time(181_187)).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -82,9 +82,9 @@ impl pallet_vesting_mangata::WeightInfo for ModuleWeigh // Storage: Tokens Locks (r:1 w:1) // Storage: Tokens Accounts (r:1 w:1) fn vest_unlocked(_l: u32, s: u32, ) -> Weight { - (Weight::from_ref_time(68_770_488)) - // Standard Error: 3_643 - .saturating_add((Weight::from_ref_time(118_658)).saturating_mul(s as u64)) + (Weight::from_ref_time(64_355_206)) + // Standard Error: 4_243 + .saturating_add((Weight::from_ref_time(101_142)).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } @@ -92,9 +92,9 @@ impl pallet_vesting_mangata::WeightInfo for ModuleWeigh // Storage: Tokens Locks (r:1 w:1) // Storage: Tokens Accounts (r:1 w:1) fn vest_other_locked(_l: u32, s: u32, ) -> Weight { - (Weight::from_ref_time(58_757_859)) - // Standard Error: 6_085 - .saturating_add((Weight::from_ref_time(198_617)).saturating_mul(s as u64)) + (Weight::from_ref_time(55_010_059)) + // Standard Error: 6_845 + .saturating_add((Weight::from_ref_time(198_043)).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -103,9 +103,9 @@ impl pallet_vesting_mangata::WeightInfo for ModuleWeigh // Storage: Tokens Accounts (r:1 w:1) // Storage: System Account (r:1 w:1) fn vest_other_unlocked(_l: u32, s: u32, ) -> Weight { - (Weight::from_ref_time(66_969_543)) - // Standard Error: 3_743 - .saturating_add((Weight::from_ref_time(118_563)).saturating_mul(s as u64)) + (Weight::from_ref_time(63_694_757)) + // Standard Error: 3_801 + .saturating_add((Weight::from_ref_time(110_767)).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } @@ -114,9 +114,9 @@ impl pallet_vesting_mangata::WeightInfo for ModuleWeigh // Storage: System Account (r:1 w:0) // Storage: Tokens Locks (r:1 w:1) fn force_vested_transfer(_l: u32, s: u32, ) -> Weight { - (Weight::from_ref_time(85_464_533)) - // Standard Error: 5_912 - .saturating_add((Weight::from_ref_time(230_641)).saturating_mul(s as u64)) + (Weight::from_ref_time(84_539_270)) + // Standard Error: 6_263 + .saturating_add((Weight::from_ref_time(193_327)).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } @@ -124,9 +124,9 @@ impl pallet_vesting_mangata::WeightInfo for ModuleWeigh // Storage: Tokens Locks (r:1 w:1) // Storage: Tokens Accounts (r:1 w:1) fn not_unlocking_merge_schedules(_l: u32, s: u32, ) -> Weight { - (Weight::from_ref_time(59_642_478)) - // Standard Error: 6_355 - .saturating_add((Weight::from_ref_time(205_531)).saturating_mul(s as u64)) + (Weight::from_ref_time(56_297_385)) + // Standard Error: 5_967 + .saturating_add((Weight::from_ref_time(192_784)).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -134,9 +134,9 @@ impl pallet_vesting_mangata::WeightInfo for ModuleWeigh // Storage: Tokens Locks (r:1 w:1) // Storage: Tokens Accounts (r:1 w:1) fn unlocking_merge_schedules(_l: u32, s: u32, ) -> Weight { - (Weight::from_ref_time(59_756_037)) - // Standard Error: 6_206 - .saturating_add((Weight::from_ref_time(199_543)).saturating_mul(s as u64)) + (Weight::from_ref_time(56_029_139)) + // Standard Error: 6_257 + .saturating_add((Weight::from_ref_time(198_422)).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -148,9 +148,9 @@ impl WeightInfo for () { // Storage: Tokens Locks (r:1 w:1) // Storage: Tokens Accounts (r:1 w:1) fn vest_locked(_l: u32, s: u32, ) -> Weight { - (Weight::from_ref_time(59_991_857)) - // Standard Error: 6_228 - .saturating_add((Weight::from_ref_time(204_519)).saturating_mul(s as u64)) + (Weight::from_ref_time(55_253_850)) + // Standard Error: 6_193 + .saturating_add((Weight::from_ref_time(181_187)).saturating_mul(s as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } @@ -158,9 +158,9 @@ impl WeightInfo for () { // Storage: Tokens Locks (r:1 w:1) // Storage: Tokens Accounts (r:1 w:1) fn vest_unlocked(_l: u32, s: u32, ) -> Weight { - (Weight::from_ref_time(68_770_488)) - // Standard Error: 3_643 - .saturating_add((Weight::from_ref_time(118_658)).saturating_mul(s as u64)) + (Weight::from_ref_time(64_355_206)) + // Standard Error: 4_243 + .saturating_add((Weight::from_ref_time(101_142)).saturating_mul(s as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } @@ -168,9 +168,9 @@ impl WeightInfo for () { // Storage: Tokens Locks (r:1 w:1) // Storage: Tokens Accounts (r:1 w:1) fn vest_other_locked(_l: u32, s: u32, ) -> Weight { - (Weight::from_ref_time(58_757_859)) - // Standard Error: 6_085 - .saturating_add((Weight::from_ref_time(198_617)).saturating_mul(s as u64)) + (Weight::from_ref_time(55_010_059)) + // Standard Error: 6_845 + .saturating_add((Weight::from_ref_time(198_043)).saturating_mul(s as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } @@ -179,9 +179,9 @@ impl WeightInfo for () { // Storage: Tokens Accounts (r:1 w:1) // Storage: System Account (r:1 w:1) fn vest_other_unlocked(_l: u32, s: u32, ) -> Weight { - (Weight::from_ref_time(66_969_543)) - // Standard Error: 3_743 - .saturating_add((Weight::from_ref_time(118_563)).saturating_mul(s as u64)) + (Weight::from_ref_time(63_694_757)) + // Standard Error: 3_801 + .saturating_add((Weight::from_ref_time(110_767)).saturating_mul(s as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } @@ -190,9 +190,9 @@ impl WeightInfo for () { // Storage: System Account (r:1 w:0) // Storage: Tokens Locks (r:1 w:1) fn force_vested_transfer(_l: u32, s: u32, ) -> Weight { - (Weight::from_ref_time(85_464_533)) - // Standard Error: 5_912 - .saturating_add((Weight::from_ref_time(230_641)).saturating_mul(s as u64)) + (Weight::from_ref_time(84_539_270)) + // Standard Error: 6_263 + .saturating_add((Weight::from_ref_time(193_327)).saturating_mul(s as u64)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } @@ -200,9 +200,9 @@ impl WeightInfo for () { // Storage: Tokens Locks (r:1 w:1) // Storage: Tokens Accounts (r:1 w:1) fn not_unlocking_merge_schedules(_l: u32, s: u32, ) -> Weight { - (Weight::from_ref_time(59_642_478)) - // Standard Error: 6_355 - .saturating_add((Weight::from_ref_time(205_531)).saturating_mul(s as u64)) + (Weight::from_ref_time(56_297_385)) + // Standard Error: 5_967 + .saturating_add((Weight::from_ref_time(192_784)).saturating_mul(s as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } @@ -210,9 +210,9 @@ impl WeightInfo for () { // Storage: Tokens Locks (r:1 w:1) // Storage: Tokens Accounts (r:1 w:1) fn unlocking_merge_schedules(_l: u32, s: u32, ) -> Weight { - (Weight::from_ref_time(59_756_037)) - // Standard Error: 6_206 - .saturating_add((Weight::from_ref_time(199_543)).saturating_mul(s as u64)) + (Weight::from_ref_time(56_029_139)) + // Standard Error: 6_257 + .saturating_add((Weight::from_ref_time(198_422)).saturating_mul(s as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } diff --git a/runtime/mangata-kusama/src/weights/pallet_xyk.rs b/runtime/mangata-kusama/src/weights/pallet_xyk.rs index 0e9f05bfca..baff050895 100644 --- a/runtime/mangata-kusama/src/weights/pallet_xyk.rs +++ b/runtime/mangata-kusama/src/weights/pallet_xyk.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for pallet_xyk //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -58,7 +58,9 @@ use sp_std::marker::PhantomData; pub trait WeightInfo { fn create_pool() -> Weight; fn sell_asset() -> Weight; + fn multiswap_sell_asset(x: u32, ) -> Weight; fn buy_asset() -> Weight; + fn multiswap_buy_asset(x: u32, ) -> Weight; fn mint_liquidity() -> Weight; fn mint_liquidity_using_vesting_native_tokens() -> Weight; fn burn_liquidity() -> Weight; @@ -67,7 +69,6 @@ pub trait WeightInfo { fn update_pool_promotion() -> Weight; fn activate_liquidity_v2() -> Weight; fn deactivate_liquidity_v2() -> Weight; - fn rewards_migrate_v1_to_v2() -> Weight; fn provide_liquidity_with_conversion() -> Weight; fn compound_rewards() -> Weight; } @@ -85,7 +86,7 @@ impl pallet_xyk::WeightInfo for ModuleWeight { // Storage: Xyk LiquidityAssets (r:0 w:1) // Storage: Xyk LiquidityPools (r:0 w:1) fn create_pool() -> Weight { - (Weight::from_ref_time(183_550_000)) + (Weight::from_ref_time(179_780_000)) .saturating_add(T::DbWeight::get().reads(14 as u64)) .saturating_add(T::DbWeight::get().writes(12 as u64)) } @@ -94,19 +95,45 @@ impl pallet_xyk::WeightInfo for ModuleWeight { // Storage: Tokens Accounts (r:6 w:6) // Storage: System Account (r:2 w:2) fn sell_asset() -> Weight { - (Weight::from_ref_time(194_540_000)) + (Weight::from_ref_time(191_420_000)) .saturating_add(T::DbWeight::get().reads(13 as u64)) .saturating_add(T::DbWeight::get().writes(9 as u64)) } + // Storage: AssetRegistry Metadata (r:3 w:0) + // Storage: Xyk Pools (r:6 w:4) + // Storage: Tokens Accounts (r:12 w:12) + // Storage: System Account (r:2 w:2) + // Storage: Tokens TotalIssuance (r:1 w:1) + fn multiswap_sell_asset(x: u32, ) -> Weight { + (Weight::from_ref_time(507_350_000)) + // Standard Error: 257_838 + .saturating_add((Weight::from_ref_time(195_587_916)).saturating_mul(x as u64)) + .saturating_add(T::DbWeight::get().reads((8 as u64).saturating_mul(x as u64))) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + .saturating_add(T::DbWeight::get().writes((6 as u64).saturating_mul(x as u64))) + } // Storage: AssetRegistry Metadata (r:2 w:0) // Storage: Xyk Pools (r:4 w:1) // Storage: Tokens Accounts (r:6 w:6) // Storage: System Account (r:2 w:2) fn buy_asset() -> Weight { - (Weight::from_ref_time(197_940_000)) + (Weight::from_ref_time(199_290_000)) .saturating_add(T::DbWeight::get().reads(14 as u64)) .saturating_add(T::DbWeight::get().writes(9 as u64)) } + // Storage: AssetRegistry Metadata (r:3 w:0) + // Storage: Xyk Pools (r:6 w:4) + // Storage: Tokens Accounts (r:12 w:12) + // Storage: System Account (r:2 w:2) + // Storage: Tokens TotalIssuance (r:1 w:1) + fn multiswap_buy_asset(x: u32, ) -> Weight { + (Weight::from_ref_time(517_860_000)) + // Standard Error: 257_365 + .saturating_add((Weight::from_ref_time(201_135_267)).saturating_mul(x as u64)) + .saturating_add(T::DbWeight::get().reads((8 as u64).saturating_mul(x as u64))) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + .saturating_add(T::DbWeight::get().writes((6 as u64).saturating_mul(x as u64))) + } // Storage: AssetRegistry Metadata (r:2 w:0) // Storage: Xyk LiquidityAssets (r:1 w:0) // Storage: Xyk Pools (r:1 w:1) @@ -118,7 +145,7 @@ impl pallet_xyk::WeightInfo for ModuleWeight { // Storage: Xyk LiquidityMiningActivePoolV2 (r:1 w:1) // Storage: MultiPurposeLiquidity ReserveStatus (r:1 w:1) fn mint_liquidity() -> Weight { - (Weight::from_ref_time(193_920_000)) + (Weight::from_ref_time(195_100_000)) .saturating_add(T::DbWeight::get().reads(15 as u64)) .saturating_add(T::DbWeight::get().writes(10 as u64)) } @@ -131,7 +158,7 @@ impl pallet_xyk::WeightInfo for ModuleWeight { // Storage: Tokens TotalIssuance (r:1 w:1) // Storage: Tokens NextCurrencyId (r:1 w:0) fn mint_liquidity_using_vesting_native_tokens() -> Weight { - (Weight::from_ref_time(226_151_000)) + (Weight::from_ref_time(228_650_000)) .saturating_add(T::DbWeight::get().reads(14 as u64)) .saturating_add(T::DbWeight::get().writes(11 as u64)) } @@ -146,7 +173,7 @@ impl pallet_xyk::WeightInfo for ModuleWeight { // Storage: Tokens TotalIssuance (r:1 w:1) // Storage: Xyk LiquidityPools (r:0 w:1) fn burn_liquidity() -> Weight { - (Weight::from_ref_time(192_260_000)) + (Weight::from_ref_time(190_170_000)) .saturating_add(T::DbWeight::get().reads(14 as u64)) .saturating_add(T::DbWeight::get().writes(14 as u64)) } @@ -154,7 +181,7 @@ impl pallet_xyk::WeightInfo for ModuleWeight { // Storage: Issuance PromotedPoolsRewardsV2 (r:1 w:0) // Storage: Tokens Accounts (r:2 w:2) fn claim_rewards_v2() -> Weight { - (Weight::from_ref_time(96_260_000)) + (Weight::from_ref_time(90_350_000)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } @@ -162,13 +189,13 @@ impl pallet_xyk::WeightInfo for ModuleWeight { // Storage: Issuance PromotedPoolsRewardsV2 (r:1 w:0) // Storage: Tokens Accounts (r:2 w:2) fn claim_rewards_all_v2() -> Weight { - (Weight::from_ref_time(93_710_000)) + (Weight::from_ref_time(87_030_000)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: Issuance PromotedPoolsRewardsV2 (r:1 w:1) fn update_pool_promotion() -> Weight { - (Weight::from_ref_time(33_940_000)) + (Weight::from_ref_time(29_430_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -178,7 +205,7 @@ impl pallet_xyk::WeightInfo for ModuleWeight { // Storage: Xyk RewardsInfo (r:1 w:1) // Storage: Xyk LiquidityMiningActivePoolV2 (r:1 w:1) fn activate_liquidity_v2() -> Weight { - (Weight::from_ref_time(100_200_000)) + (Weight::from_ref_time(97_100_000)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } @@ -188,27 +215,10 @@ impl pallet_xyk::WeightInfo for ModuleWeight { // Storage: MultiPurposeLiquidity ReserveStatus (r:1 w:1) // Storage: Tokens Accounts (r:1 w:1) fn deactivate_liquidity_v2() -> Weight { - (Weight::from_ref_time(94_260_000)) + (Weight::from_ref_time(92_790_000)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } - // Storage: Issuance PromotedPoolsRewards (r:1 w:1) - // Storage: Issuance PromotedPoolsRewardsV2 (r:1 w:0) - // Storage: Xyk LiquidityMiningActiveUser (r:1 w:1) - // Storage: Xyk LiquidityMiningActivePool (r:1 w:1) - // Storage: Xyk LiquidityMiningUserToBeClaimed (r:1 w:1) - // Storage: Xyk LiquidityMiningUserClaimed (r:1 w:1) - // Storage: Xyk LiquidityMiningUser (r:1 w:1) - // Storage: Xyk LiquidityMiningPool (r:1 w:1) - // Storage: Tokens Accounts (r:2 w:2) - // Storage: System Account (r:1 w:1) - // Storage: Xyk LiquidityMiningActivePoolV2 (r:1 w:1) - // Storage: Xyk RewardsInfo (r:0 w:1) - fn rewards_migrate_v1_to_v2() -> Weight { - (Weight::from_ref_time(135_540_000)) - .saturating_add(T::DbWeight::get().reads(12 as u64)) - .saturating_add(T::DbWeight::get().writes(12 as u64)) - } // Storage: Xyk LiquidityPools (r:1 w:0) // Storage: AssetRegistry Metadata (r:2 w:0) // Storage: Xyk Pools (r:4 w:1) @@ -219,7 +229,7 @@ impl pallet_xyk::WeightInfo for ModuleWeight { // Storage: Tokens NextCurrencyId (r:1 w:0) // Storage: Issuance PromotedPoolsRewardsV2 (r:1 w:0) fn provide_liquidity_with_conversion() -> Weight { - (Weight::from_ref_time(306_970_000)) + (Weight::from_ref_time(306_530_000)) .saturating_add(T::DbWeight::get().reads(21 as u64)) .saturating_add(T::DbWeight::get().writes(11 as u64)) } @@ -236,7 +246,7 @@ impl pallet_xyk::WeightInfo for ModuleWeight { // Storage: Xyk LiquidityMiningActivePoolV2 (r:1 w:1) // Storage: MultiPurposeLiquidity ReserveStatus (r:1 w:1) fn compound_rewards() -> Weight { - (Weight::from_ref_time(417_180_000)) + (Weight::from_ref_time(422_290_000)) .saturating_add(T::DbWeight::get().reads(24 as u64)) .saturating_add(T::DbWeight::get().writes(16 as u64)) } @@ -254,7 +264,7 @@ impl WeightInfo for () { // Storage: Xyk LiquidityAssets (r:0 w:1) // Storage: Xyk LiquidityPools (r:0 w:1) fn create_pool() -> Weight { - (Weight::from_ref_time(183_550_000)) + (Weight::from_ref_time(179_780_000)) .saturating_add(RocksDbWeight::get().reads(14 as u64)) .saturating_add(RocksDbWeight::get().writes(12 as u64)) } @@ -263,19 +273,45 @@ impl WeightInfo for () { // Storage: Tokens Accounts (r:6 w:6) // Storage: System Account (r:2 w:2) fn sell_asset() -> Weight { - (Weight::from_ref_time(194_540_000)) + (Weight::from_ref_time(191_420_000)) .saturating_add(RocksDbWeight::get().reads(13 as u64)) .saturating_add(RocksDbWeight::get().writes(9 as u64)) } + // Storage: AssetRegistry Metadata (r:3 w:0) + // Storage: Xyk Pools (r:6 w:4) + // Storage: Tokens Accounts (r:12 w:12) + // Storage: System Account (r:2 w:2) + // Storage: Tokens TotalIssuance (r:1 w:1) + fn multiswap_sell_asset(x: u32, ) -> Weight { + (Weight::from_ref_time(507_350_000)) + // Standard Error: 257_838 + .saturating_add((Weight::from_ref_time(195_587_916)).saturating_mul(x as u64)) + .saturating_add(RocksDbWeight::get().reads((8 as u64).saturating_mul(x as u64))) + .saturating_add(RocksDbWeight::get().writes(1 as u64)) + .saturating_add(RocksDbWeight::get().writes((6 as u64).saturating_mul(x as u64))) + } // Storage: AssetRegistry Metadata (r:2 w:0) // Storage: Xyk Pools (r:4 w:1) // Storage: Tokens Accounts (r:6 w:6) // Storage: System Account (r:2 w:2) fn buy_asset() -> Weight { - (Weight::from_ref_time(197_940_000)) + (Weight::from_ref_time(199_290_000)) .saturating_add(RocksDbWeight::get().reads(14 as u64)) .saturating_add(RocksDbWeight::get().writes(9 as u64)) } + // Storage: AssetRegistry Metadata (r:3 w:0) + // Storage: Xyk Pools (r:6 w:4) + // Storage: Tokens Accounts (r:12 w:12) + // Storage: System Account (r:2 w:2) + // Storage: Tokens TotalIssuance (r:1 w:1) + fn multiswap_buy_asset(x: u32, ) -> Weight { + (Weight::from_ref_time(517_860_000)) + // Standard Error: 257_365 + .saturating_add((Weight::from_ref_time(201_135_267)).saturating_mul(x as u64)) + .saturating_add(RocksDbWeight::get().reads((8 as u64).saturating_mul(x as u64))) + .saturating_add(RocksDbWeight::get().writes(1 as u64)) + .saturating_add(RocksDbWeight::get().writes((6 as u64).saturating_mul(x as u64))) + } // Storage: AssetRegistry Metadata (r:2 w:0) // Storage: Xyk LiquidityAssets (r:1 w:0) // Storage: Xyk Pools (r:1 w:1) @@ -287,7 +323,7 @@ impl WeightInfo for () { // Storage: Xyk LiquidityMiningActivePoolV2 (r:1 w:1) // Storage: MultiPurposeLiquidity ReserveStatus (r:1 w:1) fn mint_liquidity() -> Weight { - (Weight::from_ref_time(193_920_000)) + (Weight::from_ref_time(195_100_000)) .saturating_add(RocksDbWeight::get().reads(15 as u64)) .saturating_add(RocksDbWeight::get().writes(10 as u64)) } @@ -300,7 +336,7 @@ impl WeightInfo for () { // Storage: Tokens TotalIssuance (r:1 w:1) // Storage: Tokens NextCurrencyId (r:1 w:0) fn mint_liquidity_using_vesting_native_tokens() -> Weight { - (Weight::from_ref_time(226_151_000)) + (Weight::from_ref_time(228_650_000)) .saturating_add(RocksDbWeight::get().reads(14 as u64)) .saturating_add(RocksDbWeight::get().writes(11 as u64)) } @@ -315,7 +351,7 @@ impl WeightInfo for () { // Storage: Tokens TotalIssuance (r:1 w:1) // Storage: Xyk LiquidityPools (r:0 w:1) fn burn_liquidity() -> Weight { - (Weight::from_ref_time(192_260_000)) + (Weight::from_ref_time(190_170_000)) .saturating_add(RocksDbWeight::get().reads(14 as u64)) .saturating_add(RocksDbWeight::get().writes(14 as u64)) } @@ -323,7 +359,7 @@ impl WeightInfo for () { // Storage: Issuance PromotedPoolsRewardsV2 (r:1 w:0) // Storage: Tokens Accounts (r:2 w:2) fn claim_rewards_v2() -> Weight { - (Weight::from_ref_time(96_260_000)) + (Weight::from_ref_time(90_350_000)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } @@ -331,13 +367,13 @@ impl WeightInfo for () { // Storage: Issuance PromotedPoolsRewardsV2 (r:1 w:0) // Storage: Tokens Accounts (r:2 w:2) fn claim_rewards_all_v2() -> Weight { - (Weight::from_ref_time(93_710_000)) + (Weight::from_ref_time(87_030_000)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: Issuance PromotedPoolsRewardsV2 (r:1 w:1) fn update_pool_promotion() -> Weight { - (Weight::from_ref_time(33_940_000)) + (Weight::from_ref_time(29_430_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -347,7 +383,7 @@ impl WeightInfo for () { // Storage: Xyk RewardsInfo (r:1 w:1) // Storage: Xyk LiquidityMiningActivePoolV2 (r:1 w:1) fn activate_liquidity_v2() -> Weight { - (Weight::from_ref_time(100_200_000)) + (Weight::from_ref_time(97_100_000)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } @@ -357,27 +393,10 @@ impl WeightInfo for () { // Storage: MultiPurposeLiquidity ReserveStatus (r:1 w:1) // Storage: Tokens Accounts (r:1 w:1) fn deactivate_liquidity_v2() -> Weight { - (Weight::from_ref_time(94_260_000)) + (Weight::from_ref_time(92_790_000)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } - // Storage: Issuance PromotedPoolsRewards (r:1 w:1) - // Storage: Issuance PromotedPoolsRewardsV2 (r:1 w:0) - // Storage: Xyk LiquidityMiningActiveUser (r:1 w:1) - // Storage: Xyk LiquidityMiningActivePool (r:1 w:1) - // Storage: Xyk LiquidityMiningUserToBeClaimed (r:1 w:1) - // Storage: Xyk LiquidityMiningUserClaimed (r:1 w:1) - // Storage: Xyk LiquidityMiningUser (r:1 w:1) - // Storage: Xyk LiquidityMiningPool (r:1 w:1) - // Storage: Tokens Accounts (r:2 w:2) - // Storage: System Account (r:1 w:1) - // Storage: Xyk LiquidityMiningActivePoolV2 (r:1 w:1) - // Storage: Xyk RewardsInfo (r:0 w:1) - fn rewards_migrate_v1_to_v2() -> Weight { - (Weight::from_ref_time(135_540_000)) - .saturating_add(RocksDbWeight::get().reads(12 as u64)) - .saturating_add(RocksDbWeight::get().writes(12 as u64)) - } // Storage: Xyk LiquidityPools (r:1 w:0) // Storage: AssetRegistry Metadata (r:2 w:0) // Storage: Xyk Pools (r:4 w:1) @@ -388,7 +407,7 @@ impl WeightInfo for () { // Storage: Tokens NextCurrencyId (r:1 w:0) // Storage: Issuance PromotedPoolsRewardsV2 (r:1 w:0) fn provide_liquidity_with_conversion() -> Weight { - (Weight::from_ref_time(306_970_000)) + (Weight::from_ref_time(306_530_000)) .saturating_add(RocksDbWeight::get().reads(21 as u64)) .saturating_add(RocksDbWeight::get().writes(11 as u64)) } @@ -405,7 +424,7 @@ impl WeightInfo for () { // Storage: Xyk LiquidityMiningActivePoolV2 (r:1 w:1) // Storage: MultiPurposeLiquidity ReserveStatus (r:1 w:1) fn compound_rewards() -> Weight { - (Weight::from_ref_time(417_180_000)) + (Weight::from_ref_time(422_290_000)) .saturating_add(RocksDbWeight::get().reads(24 as u64)) .saturating_add(RocksDbWeight::get().writes(16 as u64)) } diff --git a/runtime/mangata-kusama/src/weights/parachain_staking.rs b/runtime/mangata-kusama/src/weights/parachain_staking.rs index 4e4264a15b..9926041f52 100644 --- a/runtime/mangata-kusama/src/weights/parachain_staking.rs +++ b/runtime/mangata-kusama/src/weights/parachain_staking.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for parachain_staking //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -94,13 +94,13 @@ pub struct ModuleWeight(PhantomData); impl parachain_staking::WeightInfo for ModuleWeight { // Storage: ParachainStaking TotalSelected (r:1 w:1) fn set_total_selected() -> Weight { - (Weight::from_ref_time(24_350_000)) + (Weight::from_ref_time(24_450_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking CollatorCommission (r:1 w:1) fn set_collator_commission() -> Weight { - (Weight::from_ref_time(24_780_000)) + (Weight::from_ref_time(24_550_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -112,11 +112,11 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: Tokens Accounts (r:1 w:1) // Storage: ParachainStaking Total (r:1 w:1) fn join_candidates(x: u32, y: u32, ) -> Weight { - (Weight::from_ref_time(86_133_703)) - // Standard Error: 8_043 - .saturating_add((Weight::from_ref_time(533_770)).saturating_mul(x as u64)) - // Standard Error: 2_594 - .saturating_add((Weight::from_ref_time(83_926)).saturating_mul(y as u64)) + (Weight::from_ref_time(84_432_975)) + // Standard Error: 6_931 + .saturating_add((Weight::from_ref_time(340_211)).saturating_mul(x as u64)) + // Standard Error: 2_235 + .saturating_add((Weight::from_ref_time(84_897)).saturating_mul(y as u64)) .saturating_add(T::DbWeight::get().reads(7 as u64)) .saturating_add(T::DbWeight::get().writes(5 as u64)) } @@ -124,9 +124,9 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: ParachainStaking Round (r:1 w:0) // Storage: ParachainStaking CandidatePool (r:1 w:1) fn schedule_leave_candidates(x: u32, ) -> Weight { - (Weight::from_ref_time(46_728_747)) - // Standard Error: 5_272 - .saturating_add((Weight::from_ref_time(524_090)).saturating_mul(x as u64)) + (Weight::from_ref_time(44_154_958)) + // Standard Error: 4_382 + .saturating_add((Weight::from_ref_time(275_090)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -137,9 +137,9 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: ParachainStaking DelegatorState (r:1 w:1) // Storage: ParachainStaking Total (r:1 w:1) fn execute_leave_candidates(x: u32, ) -> Weight { - (Weight::from_ref_time(63_768_377)) - // Standard Error: 36_320 - .saturating_add((Weight::from_ref_time(25_162_816)).saturating_mul(x as u64)) + (Weight::from_ref_time(65_541_821)) + // Standard Error: 53_421 + .saturating_add((Weight::from_ref_time(25_563_077)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().reads((3 as u64).saturating_mul(x as u64))) .saturating_add(T::DbWeight::get().writes(1 as u64)) @@ -148,9 +148,9 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: ParachainStaking CandidateState (r:1 w:1) // Storage: ParachainStaking CandidatePool (r:1 w:1) fn cancel_leave_candidates(x: u32, ) -> Weight { - (Weight::from_ref_time(44_692_784)) - // Standard Error: 5_107 - .saturating_add((Weight::from_ref_time(507_637)).saturating_mul(x as u64)) + (Weight::from_ref_time(43_033_481)) + // Standard Error: 4_552 + .saturating_add((Weight::from_ref_time(230_825)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -158,7 +158,7 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: ParachainStaking CandidatePool (r:1 w:1) // Storage: ParachainStaking Round (r:1 w:0) fn go_offline() -> Weight { - (Weight::from_ref_time(46_890_000)) + (Weight::from_ref_time(43_510_000)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -166,7 +166,7 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: ParachainStaking CandidatePool (r:1 w:1) // Storage: ParachainStaking Round (r:1 w:0) fn go_online() -> Weight { - (Weight::from_ref_time(46_090_000)) + (Weight::from_ref_time(43_790_000)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -175,14 +175,14 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: Tokens Accounts (r:1 w:0) // Storage: ParachainStaking Round (r:1 w:0) fn schedule_candidate_bond_more() -> Weight { - (Weight::from_ref_time(60_370_000)) + (Weight::from_ref_time(57_871_000)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking CandidateState (r:1 w:1) // Storage: ParachainStaking Round (r:1 w:0) fn schedule_candidate_bond_less() -> Weight { - (Weight::from_ref_time(40_460_000)) + (Weight::from_ref_time(38_240_000)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -193,7 +193,7 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: ParachainStaking Total (r:1 w:1) // Storage: ParachainStaking CandidatePool (r:1 w:1) fn execute_candidate_bond_more() -> Weight { - (Weight::from_ref_time(96_750_000)) + (Weight::from_ref_time(98_150_000)) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(5 as u64)) } @@ -204,19 +204,19 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: ParachainStaking Total (r:1 w:1) // Storage: ParachainStaking CandidatePool (r:1 w:1) fn execute_candidate_bond_less() -> Weight { - (Weight::from_ref_time(90_650_000)) + (Weight::from_ref_time(93_240_000)) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(5 as u64)) } // Storage: ParachainStaking CandidateState (r:1 w:1) fn cancel_candidate_bond_more() -> Weight { - (Weight::from_ref_time(38_680_000)) + (Weight::from_ref_time(35_820_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking CandidateState (r:1 w:1) fn cancel_candidate_bond_less() -> Weight { - (Weight::from_ref_time(38_150_000)) + (Weight::from_ref_time(36_180_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -227,18 +227,18 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: ParachainStaking CandidatePool (r:1 w:1) // Storage: ParachainStaking Total (r:1 w:1) fn delegate(x: u32, y: u32, ) -> Weight { - (Weight::from_ref_time(94_170_667)) - // Standard Error: 6_316 - .saturating_add((Weight::from_ref_time(639_847)).saturating_mul(x as u64)) - // Standard Error: 16_524 - .saturating_add((Weight::from_ref_time(646_942)).saturating_mul(y as u64)) + (Weight::from_ref_time(95_304_714)) + // Standard Error: 6_331 + .saturating_add((Weight::from_ref_time(360_554)).saturating_mul(x as u64)) + // Standard Error: 16_565 + .saturating_add((Weight::from_ref_time(330_594)).saturating_mul(y as u64)) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(6 as u64)) } // Storage: ParachainStaking DelegatorState (r:1 w:1) // Storage: ParachainStaking Round (r:1 w:0) fn schedule_leave_delegators() -> Weight { - (Weight::from_ref_time(40_350_000)) + (Weight::from_ref_time(37_960_000)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -250,9 +250,9 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: ParachainStaking CandidatePool (r:1 w:1) // Storage: ParachainStaking Total (r:1 w:1) fn execute_leave_delegators(x: u32, ) -> Weight { - (Weight::from_ref_time(41_932_764)) - // Standard Error: 32_909 - .saturating_add((Weight::from_ref_time(29_709_209)).saturating_mul(x as u64)) + (Weight::from_ref_time(42_857_318)) + // Standard Error: 37_023 + .saturating_add((Weight::from_ref_time(30_275_693)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(x as u64))) .saturating_add(T::DbWeight::get().writes(4 as u64)) @@ -260,14 +260,14 @@ impl parachain_staking::WeightInfo for ModuleWeight } // Storage: ParachainStaking DelegatorState (r:1 w:1) fn cancel_leave_delegators() -> Weight { - (Weight::from_ref_time(37_910_000)) + (Weight::from_ref_time(35_760_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking DelegatorState (r:1 w:1) // Storage: ParachainStaking Round (r:1 w:0) fn schedule_revoke_delegation() -> Weight { - (Weight::from_ref_time(40_750_000)) + (Weight::from_ref_time(38_830_000)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -276,14 +276,14 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: Tokens Accounts (r:1 w:0) // Storage: ParachainStaking Round (r:1 w:0) fn schedule_delegator_bond_more() -> Weight { - (Weight::from_ref_time(61_310_000)) + (Weight::from_ref_time(60_030_000)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking DelegatorState (r:1 w:1) // Storage: ParachainStaking Round (r:1 w:0) fn schedule_delegator_bond_less() -> Weight { - (Weight::from_ref_time(41_000_000)) + (Weight::from_ref_time(39_060_000)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -295,7 +295,7 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: ParachainStaking CandidatePool (r:1 w:1) // Storage: ParachainStaking Total (r:1 w:1) fn execute_revoke_delegation() -> Weight { - (Weight::from_ref_time(111_790_000)) + (Weight::from_ref_time(110_710_000)) .saturating_add(T::DbWeight::get().reads(7 as u64)) .saturating_add(T::DbWeight::get().writes(6 as u64)) } @@ -307,7 +307,7 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: ParachainStaking CandidatePool (r:1 w:1) // Storage: ParachainStaking Total (r:1 w:1) fn execute_delegator_bond_more() -> Weight { - (Weight::from_ref_time(104_990_000)) + (Weight::from_ref_time(105_980_000)) .saturating_add(T::DbWeight::get().reads(7 as u64)) .saturating_add(T::DbWeight::get().writes(6 as u64)) } @@ -319,47 +319,47 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: ParachainStaking CandidatePool (r:1 w:1) // Storage: ParachainStaking Total (r:1 w:1) fn execute_delegator_bond_less() -> Weight { - (Weight::from_ref_time(102_090_000)) + (Weight::from_ref_time(105_860_000)) .saturating_add(T::DbWeight::get().reads(7 as u64)) .saturating_add(T::DbWeight::get().writes(6 as u64)) } // Storage: ParachainStaking DelegatorState (r:1 w:1) fn cancel_revoke_delegation() -> Weight { - (Weight::from_ref_time(39_000_000)) + (Weight::from_ref_time(37_460_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking DelegatorState (r:1 w:1) fn cancel_delegator_bond_more() -> Weight { - (Weight::from_ref_time(49_650_000)) + (Weight::from_ref_time(50_590_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking DelegatorState (r:1 w:1) fn cancel_delegator_bond_less() -> Weight { - (Weight::from_ref_time(52_100_000)) + (Weight::from_ref_time(46_480_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking StakingLiquidityTokens (r:1 w:1) fn add_staking_liquidity_token(x: u32, ) -> Weight { - (Weight::from_ref_time(17_563_500)) - // Standard Error: 759 - .saturating_add((Weight::from_ref_time(91_140)).saturating_mul(x as u64)) + (Weight::from_ref_time(16_668_803)) + // Standard Error: 760 + .saturating_add((Weight::from_ref_time(89_706)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking StakingLiquidityTokens (r:1 w:1) fn remove_staking_liquidity_token(x: u32, ) -> Weight { - (Weight::from_ref_time(17_589_687)) - // Standard Error: 738 - .saturating_add((Weight::from_ref_time(92_659)).saturating_mul(x as u64)) + (Weight::from_ref_time(17_006_059)) + // Standard Error: 872 + .saturating_add((Weight::from_ref_time(92_237)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking Round (r:1 w:0) fn passive_session_change() -> Weight { - (Weight::from_ref_time(10_670_000)) + (Weight::from_ref_time(10_280_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) } // Storage: ParachainStaking Round (r:1 w:1) @@ -388,11 +388,11 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: ParachainStaking SelectedCandidates (r:0 w:1) // Storage: Session Validators (r:0 w:1) fn active_session_change(x: u32, y: u32, z: u32, w: u32, ) -> Weight { - (Weight::from_ref_time(7_206_509_000)) - // Standard Error: 7_392_219 - .saturating_add((Weight::from_ref_time(594_710)).saturating_mul(y as u64)) - // Standard Error: 8_267_185 - .saturating_add((Weight::from_ref_time(966_049_137)).saturating_mul(z as u64)) + (Weight::from_ref_time(7_352_138_000)) + // Standard Error: 7_580_085 + .saturating_add((Weight::from_ref_time(7_824_608)).saturating_mul(y as u64)) + // Standard Error: 8_477_288 + .saturating_add((Weight::from_ref_time(1_003_102_339)).saturating_mul(z as u64)) .saturating_add(T::DbWeight::get().reads(715 as u64)) .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(x as u64))) .saturating_add(T::DbWeight::get().reads((46 as u64).saturating_mul(z as u64))) @@ -407,13 +407,13 @@ impl parachain_staking::WeightInfo for ModuleWeight impl WeightInfo for () { // Storage: ParachainStaking TotalSelected (r:1 w:1) fn set_total_selected() -> Weight { - (Weight::from_ref_time(24_350_000)) + (Weight::from_ref_time(24_450_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking CollatorCommission (r:1 w:1) fn set_collator_commission() -> Weight { - (Weight::from_ref_time(24_780_000)) + (Weight::from_ref_time(24_550_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -425,11 +425,11 @@ impl WeightInfo for () { // Storage: Tokens Accounts (r:1 w:1) // Storage: ParachainStaking Total (r:1 w:1) fn join_candidates(x: u32, y: u32, ) -> Weight { - (Weight::from_ref_time(86_133_703)) - // Standard Error: 8_043 - .saturating_add((Weight::from_ref_time(533_770)).saturating_mul(x as u64)) - // Standard Error: 2_594 - .saturating_add((Weight::from_ref_time(83_926)).saturating_mul(y as u64)) + (Weight::from_ref_time(84_432_975)) + // Standard Error: 6_931 + .saturating_add((Weight::from_ref_time(340_211)).saturating_mul(x as u64)) + // Standard Error: 2_235 + .saturating_add((Weight::from_ref_time(84_897)).saturating_mul(y as u64)) .saturating_add(RocksDbWeight::get().reads(7 as u64)) .saturating_add(RocksDbWeight::get().writes(5 as u64)) } @@ -437,9 +437,9 @@ impl WeightInfo for () { // Storage: ParachainStaking Round (r:1 w:0) // Storage: ParachainStaking CandidatePool (r:1 w:1) fn schedule_leave_candidates(x: u32, ) -> Weight { - (Weight::from_ref_time(46_728_747)) - // Standard Error: 5_272 - .saturating_add((Weight::from_ref_time(524_090)).saturating_mul(x as u64)) + (Weight::from_ref_time(44_154_958)) + // Standard Error: 4_382 + .saturating_add((Weight::from_ref_time(275_090)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } @@ -450,9 +450,9 @@ impl WeightInfo for () { // Storage: ParachainStaking DelegatorState (r:1 w:1) // Storage: ParachainStaking Total (r:1 w:1) fn execute_leave_candidates(x: u32, ) -> Weight { - (Weight::from_ref_time(63_768_377)) - // Standard Error: 36_320 - .saturating_add((Weight::from_ref_time(25_162_816)).saturating_mul(x as u64)) + (Weight::from_ref_time(65_541_821)) + // Standard Error: 53_421 + .saturating_add((Weight::from_ref_time(25_563_077)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().reads((3 as u64).saturating_mul(x as u64))) .saturating_add(RocksDbWeight::get().writes(1 as u64)) @@ -461,9 +461,9 @@ impl WeightInfo for () { // Storage: ParachainStaking CandidateState (r:1 w:1) // Storage: ParachainStaking CandidatePool (r:1 w:1) fn cancel_leave_candidates(x: u32, ) -> Weight { - (Weight::from_ref_time(44_692_784)) - // Standard Error: 5_107 - .saturating_add((Weight::from_ref_time(507_637)).saturating_mul(x as u64)) + (Weight::from_ref_time(43_033_481)) + // Standard Error: 4_552 + .saturating_add((Weight::from_ref_time(230_825)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } @@ -471,7 +471,7 @@ impl WeightInfo for () { // Storage: ParachainStaking CandidatePool (r:1 w:1) // Storage: ParachainStaking Round (r:1 w:0) fn go_offline() -> Weight { - (Weight::from_ref_time(46_890_000)) + (Weight::from_ref_time(43_510_000)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } @@ -479,7 +479,7 @@ impl WeightInfo for () { // Storage: ParachainStaking CandidatePool (r:1 w:1) // Storage: ParachainStaking Round (r:1 w:0) fn go_online() -> Weight { - (Weight::from_ref_time(46_090_000)) + (Weight::from_ref_time(43_790_000)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } @@ -488,14 +488,14 @@ impl WeightInfo for () { // Storage: Tokens Accounts (r:1 w:0) // Storage: ParachainStaking Round (r:1 w:0) fn schedule_candidate_bond_more() -> Weight { - (Weight::from_ref_time(60_370_000)) + (Weight::from_ref_time(57_871_000)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking CandidateState (r:1 w:1) // Storage: ParachainStaking Round (r:1 w:0) fn schedule_candidate_bond_less() -> Weight { - (Weight::from_ref_time(40_460_000)) + (Weight::from_ref_time(38_240_000)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -506,7 +506,7 @@ impl WeightInfo for () { // Storage: ParachainStaking Total (r:1 w:1) // Storage: ParachainStaking CandidatePool (r:1 w:1) fn execute_candidate_bond_more() -> Weight { - (Weight::from_ref_time(96_750_000)) + (Weight::from_ref_time(98_150_000)) .saturating_add(RocksDbWeight::get().reads(6 as u64)) .saturating_add(RocksDbWeight::get().writes(5 as u64)) } @@ -517,19 +517,19 @@ impl WeightInfo for () { // Storage: ParachainStaking Total (r:1 w:1) // Storage: ParachainStaking CandidatePool (r:1 w:1) fn execute_candidate_bond_less() -> Weight { - (Weight::from_ref_time(90_650_000)) + (Weight::from_ref_time(93_240_000)) .saturating_add(RocksDbWeight::get().reads(6 as u64)) .saturating_add(RocksDbWeight::get().writes(5 as u64)) } // Storage: ParachainStaking CandidateState (r:1 w:1) fn cancel_candidate_bond_more() -> Weight { - (Weight::from_ref_time(38_680_000)) + (Weight::from_ref_time(35_820_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking CandidateState (r:1 w:1) fn cancel_candidate_bond_less() -> Weight { - (Weight::from_ref_time(38_150_000)) + (Weight::from_ref_time(36_180_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -540,18 +540,18 @@ impl WeightInfo for () { // Storage: ParachainStaking CandidatePool (r:1 w:1) // Storage: ParachainStaking Total (r:1 w:1) fn delegate(x: u32, y: u32, ) -> Weight { - (Weight::from_ref_time(94_170_667)) - // Standard Error: 6_316 - .saturating_add((Weight::from_ref_time(639_847)).saturating_mul(x as u64)) - // Standard Error: 16_524 - .saturating_add((Weight::from_ref_time(646_942)).saturating_mul(y as u64)) + (Weight::from_ref_time(95_304_714)) + // Standard Error: 6_331 + .saturating_add((Weight::from_ref_time(360_554)).saturating_mul(x as u64)) + // Standard Error: 16_565 + .saturating_add((Weight::from_ref_time(330_594)).saturating_mul(y as u64)) .saturating_add(RocksDbWeight::get().reads(6 as u64)) .saturating_add(RocksDbWeight::get().writes(6 as u64)) } // Storage: ParachainStaking DelegatorState (r:1 w:1) // Storage: ParachainStaking Round (r:1 w:0) fn schedule_leave_delegators() -> Weight { - (Weight::from_ref_time(40_350_000)) + (Weight::from_ref_time(37_960_000)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -563,9 +563,9 @@ impl WeightInfo for () { // Storage: ParachainStaking CandidatePool (r:1 w:1) // Storage: ParachainStaking Total (r:1 w:1) fn execute_leave_delegators(x: u32, ) -> Weight { - (Weight::from_ref_time(41_932_764)) - // Standard Error: 32_909 - .saturating_add((Weight::from_ref_time(29_709_209)).saturating_mul(x as u64)) + (Weight::from_ref_time(42_857_318)) + // Standard Error: 37_023 + .saturating_add((Weight::from_ref_time(30_275_693)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(x as u64))) .saturating_add(RocksDbWeight::get().writes(4 as u64)) @@ -573,14 +573,14 @@ impl WeightInfo for () { } // Storage: ParachainStaking DelegatorState (r:1 w:1) fn cancel_leave_delegators() -> Weight { - (Weight::from_ref_time(37_910_000)) + (Weight::from_ref_time(35_760_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking DelegatorState (r:1 w:1) // Storage: ParachainStaking Round (r:1 w:0) fn schedule_revoke_delegation() -> Weight { - (Weight::from_ref_time(40_750_000)) + (Weight::from_ref_time(38_830_000)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -589,14 +589,14 @@ impl WeightInfo for () { // Storage: Tokens Accounts (r:1 w:0) // Storage: ParachainStaking Round (r:1 w:0) fn schedule_delegator_bond_more() -> Weight { - (Weight::from_ref_time(61_310_000)) + (Weight::from_ref_time(60_030_000)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking DelegatorState (r:1 w:1) // Storage: ParachainStaking Round (r:1 w:0) fn schedule_delegator_bond_less() -> Weight { - (Weight::from_ref_time(41_000_000)) + (Weight::from_ref_time(39_060_000)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -608,7 +608,7 @@ impl WeightInfo for () { // Storage: ParachainStaking CandidatePool (r:1 w:1) // Storage: ParachainStaking Total (r:1 w:1) fn execute_revoke_delegation() -> Weight { - (Weight::from_ref_time(111_790_000)) + (Weight::from_ref_time(110_710_000)) .saturating_add(RocksDbWeight::get().reads(7 as u64)) .saturating_add(RocksDbWeight::get().writes(6 as u64)) } @@ -620,7 +620,7 @@ impl WeightInfo for () { // Storage: ParachainStaking CandidatePool (r:1 w:1) // Storage: ParachainStaking Total (r:1 w:1) fn execute_delegator_bond_more() -> Weight { - (Weight::from_ref_time(104_990_000)) + (Weight::from_ref_time(105_980_000)) .saturating_add(RocksDbWeight::get().reads(7 as u64)) .saturating_add(RocksDbWeight::get().writes(6 as u64)) } @@ -632,47 +632,47 @@ impl WeightInfo for () { // Storage: ParachainStaking CandidatePool (r:1 w:1) // Storage: ParachainStaking Total (r:1 w:1) fn execute_delegator_bond_less() -> Weight { - (Weight::from_ref_time(102_090_000)) + (Weight::from_ref_time(105_860_000)) .saturating_add(RocksDbWeight::get().reads(7 as u64)) .saturating_add(RocksDbWeight::get().writes(6 as u64)) } // Storage: ParachainStaking DelegatorState (r:1 w:1) fn cancel_revoke_delegation() -> Weight { - (Weight::from_ref_time(39_000_000)) + (Weight::from_ref_time(37_460_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking DelegatorState (r:1 w:1) fn cancel_delegator_bond_more() -> Weight { - (Weight::from_ref_time(49_650_000)) + (Weight::from_ref_time(50_590_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking DelegatorState (r:1 w:1) fn cancel_delegator_bond_less() -> Weight { - (Weight::from_ref_time(52_100_000)) + (Weight::from_ref_time(46_480_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking StakingLiquidityTokens (r:1 w:1) fn add_staking_liquidity_token(x: u32, ) -> Weight { - (Weight::from_ref_time(17_563_500)) - // Standard Error: 759 - .saturating_add((Weight::from_ref_time(91_140)).saturating_mul(x as u64)) + (Weight::from_ref_time(16_668_803)) + // Standard Error: 760 + .saturating_add((Weight::from_ref_time(89_706)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking StakingLiquidityTokens (r:1 w:1) fn remove_staking_liquidity_token(x: u32, ) -> Weight { - (Weight::from_ref_time(17_589_687)) - // Standard Error: 738 - .saturating_add((Weight::from_ref_time(92_659)).saturating_mul(x as u64)) + (Weight::from_ref_time(17_006_059)) + // Standard Error: 872 + .saturating_add((Weight::from_ref_time(92_237)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking Round (r:1 w:0) fn passive_session_change() -> Weight { - (Weight::from_ref_time(10_670_000)) + (Weight::from_ref_time(10_280_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) } // Storage: ParachainStaking Round (r:1 w:1) @@ -701,11 +701,11 @@ impl WeightInfo for () { // Storage: ParachainStaking SelectedCandidates (r:0 w:1) // Storage: Session Validators (r:0 w:1) fn active_session_change(x: u32, y: u32, z: u32, w: u32, ) -> Weight { - (Weight::from_ref_time(7_206_509_000)) - // Standard Error: 7_392_219 - .saturating_add((Weight::from_ref_time(594_710)).saturating_mul(y as u64)) - // Standard Error: 8_267_185 - .saturating_add((Weight::from_ref_time(966_049_137)).saturating_mul(z as u64)) + (Weight::from_ref_time(7_352_138_000)) + // Standard Error: 7_580_085 + .saturating_add((Weight::from_ref_time(7_824_608)).saturating_mul(y as u64)) + // Standard Error: 8_477_288 + .saturating_add((Weight::from_ref_time(1_003_102_339)).saturating_mul(z as u64)) .saturating_add(RocksDbWeight::get().reads(715 as u64)) .saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(x as u64))) .saturating_add(RocksDbWeight::get().reads((46 as u64).saturating_mul(z as u64))) diff --git a/runtime/mangata-kusama/src/xcm_config.rs b/runtime/mangata-kusama/src/xcm_config.rs index 7ba7be5c33..82b92d033e 100644 --- a/runtime/mangata-kusama/src/xcm_config.rs +++ b/runtime/mangata-kusama/src/xcm_config.rs @@ -5,7 +5,6 @@ use cumulus_primitives_core::ParaId; use frame_support::{ match_types, parameter_types, traits::{Everything, Get, Nothing}, - weights::Weight, }; use frame_system::EnsureRoot; use orml_asset_registry::{AssetRegistryTrader, FixedRateAssetRegistryTrader}; @@ -30,7 +29,7 @@ use xcm_executor::{traits::DropAssets, Assets, XcmExecutor}; use super::{ constants::{fee::*, parachains}, - AccountId, AssetMetadataOf, Balance, Convert, ExistentialDeposits, ParachainInfo, + AccountId, AssetMetadataOf, Balance, Convert, ExistentialDeposits, Maintenance, ParachainInfo, ParachainSystem, PolkadotXcm, Runtime, RuntimeCall, RuntimeEvent, RuntimeOrigin, TokenId, Tokens, TreasuryAccount, UnknownTokens, XcmpQueue, KSM_TOKEN_ID, MGX_TOKEN_ID, }; @@ -335,6 +334,7 @@ pub type XcmOriginToTransactDispatchOrigin = ( impl cumulus_pallet_xcmp_queue::Config for Runtime { type RuntimeEvent = RuntimeEvent; + type MaintenanceStatusProvider = Maintenance; type XcmExecutor = XcmExecutor; type ChannelInfo = ParachainSystem; type VersionWrapper = (); @@ -346,6 +346,7 @@ impl cumulus_pallet_xcmp_queue::Config for Runtime { impl cumulus_pallet_dmp_queue::Config for Runtime { type RuntimeEvent = RuntimeEvent; + type MaintenanceStatusProvider = Maintenance; type XcmExecutor = XcmExecutor; type ExecuteOverweightOrigin = EnsureRoot; } diff --git a/runtime/mangata-rococo/Cargo.toml b/runtime/mangata-rococo/Cargo.toml index 00dee7a16e..3dbbbcf6b7 100644 --- a/runtime/mangata-rococo/Cargo.toml +++ b/runtime/mangata-rococo/Cargo.toml @@ -27,6 +27,7 @@ xyk-runtime-api = { path = '../../pallets/xyk/runtime-api', default-features = f pallet-sudo-origin = { path = '../../pallets/sudo-origin', default-features = false } pallet-issuance = { path = '../../pallets/issuance', default-features = false } pallet-multipurpose-liquidity = { path = '../../pallets/multipurpose-liquidity', default-features = false } +pallet-maintenance = { path = '../../pallets/maintenance', default-features = false } mp-multipurpose-liquidity = { path = '../../primitives/multipurpose-liquidity', default-features = false } pallet-fee-lock = { path = '../../pallets/fee-lock', default-features = false} mp-traits = { path = '../../primitives/traits', default-features = false } @@ -46,9 +47,10 @@ sp-runtime = { git = "https://github.com/mangata-finance/substrate", default-fea sp-session = { git = "https://github.com/mangata-finance/substrate", default-features = false, branch = "mangata-dev" } sp-std = { git = "https://github.com/mangata-finance/substrate", default-features = false, branch = "mangata-dev" } sp-transaction-pool = { git = "https://github.com/mangata-finance/substrate", default-features = false, branch = "mangata-dev" } -pallet-utility = { git = "https://github.com/mangata-finance/substrate", default-features = false, branch = "mangata-dev" } +pallet-utility-mangata = { git = "https://github.com/mangata-finance/substrate", default-features = false, branch = "mangata-dev" } sp-ver = { git = "https://github.com/mangata-finance/substrate", default-features = false, branch = "mangata-dev" } sp-version = { git = "https://github.com/mangata-finance/substrate", default-features = false, branch = "mangata-dev" } +sp-weights = { git = "https://github.com/mangata-finance/substrate", default-features = false, branch = "mangata-dev" } ## Substrate FRAME Dependencies frame-benchmarking = { git = "https://github.com/mangata-finance/substrate", default-features = false, optional = true, branch = "mangata-dev" } @@ -83,16 +85,16 @@ orml-xcm = { default-features = false, version = "0.4.1-dev", git = "https://git orml-asset-registry = { default-features = false, version = "0.4.1-dev", git = "https://github.com/mangata-finance/open-runtime-module-library", branch = "mangata-dev" } # Cumulus dependencies -cumulus-pallet-aura-ext = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev', default-features = false } -cumulus-pallet-dmp-queue = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev', default-features = false } -cumulus-pallet-parachain-system = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev', default-features = false } -cumulus-pallet-xcm = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev', default-features = false } -cumulus-pallet-xcmp-queue = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev', default-features = false } -cumulus-primitives-core = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev', default-features = false } -cumulus-primitives-timestamp = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev', default-features = false } -cumulus-primitives-utility = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev', default-features = false } -parachain-info = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev', default-features = false } -cumulus-pallet-session-benchmarking = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev', default-features = false, optional = true } +cumulus-pallet-aura-ext = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36', default-features = false } +cumulus-pallet-dmp-queue = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36', default-features = false } +cumulus-pallet-parachain-system = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36', default-features = false } +cumulus-pallet-xcm = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36', default-features = false } +cumulus-pallet-xcmp-queue = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36', default-features = false } +cumulus-primitives-core = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36', default-features = false } +cumulus-primitives-timestamp = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36', default-features = false } +cumulus-primitives-utility = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36', default-features = false } +parachain-info = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36', default-features = false } +cumulus-pallet-session-benchmarking = { git = 'https://github.com/mangata-finance/cumulus', branch = 'mangata-dev-v0.9.36', default-features = false, optional = true } # Polkadot Dependencies pallet-xcm = { git = "https://github.com/mangata-finance/polkadot", default-features = false, branch = "mangata-dev" } @@ -145,7 +147,7 @@ std = [ "pallet-timestamp/std", "pallet-transaction-payment-rpc-runtime-api/std", "pallet-transaction-payment/std", - "pallet-utility/std", + "pallet-utility-mangata/std", "cumulus-pallet-aura-ext/std", "cumulus-pallet-parachain-system/std", "cumulus-pallet-xcm/std", @@ -185,6 +187,7 @@ std = [ "mp-bootstrap/std", "pallet-vesting-mangata-rpc-runtime-api/std", "pallet-fee-lock/std", + "pallet-maintenance/std", ] @@ -222,9 +225,10 @@ try-runtime = [ "pallet-sudo-origin/try-runtime", "pallet-collective-mangata/try-runtime", "pallet-bootstrap/try-runtime", - "pallet-utility/try-runtime", + "pallet-utility-mangata/try-runtime", "pallet-proxy/try-runtime", "pallet-fee-lock/try-runtime", + "pallet-maintenance/try-runtime" ] fast-runtime = [] @@ -253,7 +257,7 @@ runtime-benchmarks = [ "pallet-treasury/runtime-benchmarks", "pallet-collective-mangata/runtime-benchmarks", "pallet-crowdloan-rewards/runtime-benchmarks", - "pallet-utility/runtime-benchmarks", + "pallet-utility-mangata/runtime-benchmarks", "pallet-vesting-mangata/runtime-benchmarks", "pallet-issuance/runtime-benchmarks", "pallet-bootstrap/runtime-benchmarks", diff --git a/runtime/mangata-rococo/src/constants.rs b/runtime/mangata-rococo/src/constants.rs index ac73aeb170..f7727f8b13 100644 --- a/runtime/mangata-rococo/src/constants.rs +++ b/runtime/mangata-rococo/src/constants.rs @@ -1,8 +1,8 @@ pub mod fee { use crate::{weights::VerExtrinsicBaseWeight, UNIT}; use frame_support::weights::{ - constants::{ExtrinsicBaseWeight, WEIGHT_PER_SECOND}, - WeightToFeeCoefficient, WeightToFeeCoefficients, WeightToFeePolynomial, + constants::WEIGHT_REF_TIME_PER_SECOND, WeightToFeeCoefficient, WeightToFeeCoefficients, + WeightToFeePolynomial, }; use mangata_types::Balance; use smallvec::smallvec; @@ -48,7 +48,7 @@ pub mod fee { pub fn mgr_per_second() -> u128 { let base_weight = Balance::from(VerExtrinsicBaseWeight::get().ref_time()); - let base_per_second = (WEIGHT_PER_SECOND.ref_time() / base_weight as u64) as u128; + let base_per_second = (WEIGHT_REF_TIME_PER_SECOND / base_weight as u64) as u128; base_per_second * base_tx_in_mgr() } diff --git a/runtime/mangata-rococo/src/lib.rs b/runtime/mangata-rococo/src/lib.rs index d035bd67ea..f1db610338 100644 --- a/runtime/mangata-rococo/src/lib.rs +++ b/runtime/mangata-rococo/src/lib.rs @@ -10,12 +10,11 @@ use frame_support::{ traits::{ tokens::currency::{MultiTokenCurrency, MultiTokenImbalanceWithZeroTrait}, Contains, EnsureOrigin, EnsureOriginWithArg, Everything, ExistenceRequirement, Get, - Imbalance, InstanceFilter, LockIdentifier, Nothing, OnRuntimeUpgrade, U128CurrencyToVote, - WithdrawReasons, + Imbalance, InstanceFilter, WithdrawReasons, }, unsigned::TransactionValidityError, weights::{ - constants::{RocksDbWeight, WEIGHT_PER_MICROS, WEIGHT_PER_MILLIS, WEIGHT_PER_SECOND}, + constants::{RocksDbWeight, WEIGHT_REF_TIME_PER_SECOND}, ConstantMultiplier, Weight, }, PalletId, @@ -23,11 +22,11 @@ use frame_support::{ #[cfg(any(feature = "std", test))] pub use frame_system::Call as SystemCall; use frame_system::{ - limits::{BlockLength, BlockWeights, BlockWeightsBuilder}, + limits::{BlockLength, BlockWeights}, EnsureRoot, }; pub use orml_tokens; -use orml_tokens::{MultiTokenCurrencyExtended, TransferDust}; +use orml_tokens::MultiTokenCurrencyExtended; use orml_traits::{ asset_registry::{AssetMetadata, AssetProcessor}, parameter_type_with_key, @@ -50,7 +49,7 @@ use sp_runtime::{ DispatchInfoOf, PostDispatchInfoOf, Saturating, StaticLookup, Zero, }, transaction_validity::{InvalidTransaction, TransactionSource, TransactionValidity}, - ApplyExtrinsicResult, DispatchError, FixedPointNumber, Percent, Perquintill, RuntimeDebug, + ApplyExtrinsicResult, DispatchError, FixedPointNumber, Percent, RuntimeDebug, }; pub use sp_runtime::{MultiAddress, Perbill, Permill}; use sp_std::{ @@ -161,11 +160,11 @@ impl_opaque_keys! { pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("mangata-parachain"), impl_name: create_runtime_str!("mangata-parachain"), - authoring_version: 12, - spec_version: 12, + authoring_version: 13, + spec_version: 13, impl_version: 0, apis: RUNTIME_API_VERSIONS, - transaction_version: 12, + transaction_version: 13, state_version: 0, }; @@ -174,11 +173,11 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("mangata-parachain"), impl_name: create_runtime_str!("mangata-parachain"), - authoring_version: 13, - spec_version: 13, + authoring_version: 14, + spec_version: 14, impl_version: 0, apis: RUNTIME_API_VERSIONS, - transaction_version: 13, + transaction_version: 14, state_version: 0, }; @@ -232,9 +231,8 @@ const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75); /// so there is room for new extrinsics in the next block // const MAXIMUM_BLOCK_WEIGHT: Weight = // WEIGHT_PER_SECOND.saturating_div(4).set_proof_size((cumulus_primitives_core::relay_chain::v2::MAX_POV_SIZE as u64).saturating_div(2)); -const MAXIMUM_BLOCK_WEIGHT: Weight = WEIGHT_PER_SECOND - .saturating_div(4) - .set_proof_size((u64::max_value()).saturating_div(2)); +const MAXIMUM_BLOCK_WEIGHT: Weight = + Weight::from_parts(WEIGHT_REF_TIME_PER_SECOND.saturating_mul(2), u64::MAX); /// The version information used to identify this runtime when compiled natively. #[cfg(feature = "std")] @@ -433,15 +431,10 @@ impl orml_tokens::Config for Runtime { type CurrencyId = TokenId; type WeightInfo = weights::orml_tokens_weights::ModuleWeight; type ExistentialDeposits = ExistentialDeposits; - type OnDust = TransferDust; type MaxLocks = MaxLocks; type DustRemovalWhitelist = DustRemovalWhitelist; - type OnSlash = (); - type OnDeposit = (); - type OnTransfer = (); + type CurrencyHooks = (); type MaxReserves = (); - type OnNewTokenAccount = (); - type OnKilledTokenAccount = (); type ReserveIdentifier = [u8; 8]; } @@ -495,6 +488,7 @@ type SessionLenghtOf = ::BlocksPerRound; impl pallet_xyk::Config for Runtime { type RuntimeEvent = RuntimeEvent; + type MaintenanceStatusProvider = Maintenance; type ActivationReservesProvider = MultiPurposeLiquidity; type Currency = orml_tokens::MultiTokenCurrencyAdapter; type NativeCurrencyId = MgrTokenId; @@ -555,6 +549,7 @@ impl pallet_bootstrap::BootstrapBenchmarkingConfig for Runtime {} impl pallet_bootstrap::Config for Runtime { type RuntimeEvent = RuntimeEvent; + type MaintenanceStatusProvider = Maintenance; type PoolCreateApi = Xyk; type DefaultBootstrapPromotedPoolWeight = DefaultBootstrapPromotedPoolWeight; type BootstrapUpdateBuffer = BootstrapUpdateBuffer; @@ -566,11 +561,41 @@ impl pallet_bootstrap::Config for Runtime { type AssetRegistryApi = EnableAssetPoolApi; } -impl pallet_utility::Config for Runtime { +#[derive( + Copy, + Clone, + Eq, + PartialEq, + Ord, + PartialOrd, + Encode, + Decode, + RuntimeDebug, + MaxEncodedLen, + TypeInfo, +)] +pub struct DisallowedInBatch; + +impl Contains for DisallowedInBatch { + fn contains(c: &RuntimeCall) -> bool { + match c { + RuntimeCall::Xyk(pallet_xyk::Call::sell_asset { .. }) | + RuntimeCall::Xyk(pallet_xyk::Call::buy_asset { .. }) | + RuntimeCall::Xyk(pallet_xyk::Call::multiswap_sell_asset { .. }) | + RuntimeCall::Xyk(pallet_xyk::Call::multiswap_buy_asset { .. }) | + RuntimeCall::Xyk(pallet_xyk::Call::compound_rewards { .. }) | + RuntimeCall::Xyk(pallet_xyk::Call::provide_liquidity_with_conversion { .. }) => true, + _ => false, + } + } +} + +impl pallet_utility_mangata::Config for Runtime { type RuntimeEvent = RuntimeEvent; type RuntimeCall = RuntimeCall; + type DisallowedInBatch = DisallowedInBatch; type PalletsOrigin = OriginCaller; - type WeightInfo = weights::pallet_utility_weights::ModuleWeight; + type WeightInfo = weights::pallet_utility_mangata_weights::ModuleWeight; } type ORMLCurrencyAdapterNegativeImbalance = @@ -622,15 +647,15 @@ pub enum LiquidityInfoEnum, T: frame_system: } #[derive(Encode, Decode, Clone, TypeInfo)] -pub struct OnChargeHandler(PhantomData<(C, OCA, OTA)>); +pub struct OnChargeHandler(PhantomData<(C, OCA, OFLA)>); -impl OnChargeHandler {} +impl OnChargeHandler {} /// Default implementation for a Currency and an OnUnbalanced handler. /// /// The unbalance handler is given 2 unbalanceds in [`OnUnbalanced::on_unbalanceds`]: fee and /// then tip. -impl OnChargeTransaction for OnChargeHandler +impl OnChargeTransaction for OnChargeHandler where T: pallet_transaction_payment::Config + pallet_xyk::Config, T::LengthToFee: frame_support::weights::WeightToFee< @@ -650,7 +675,7 @@ where LiquidityInfo = Option>, Balance = ::AccountId>>::Balance, >, - OTA: FeeLockTriggerTrait<::AccountId>, + OFLA: FeeLockTriggerTrait<::AccountId>, T: frame_system::Config, T::AccountId: From + Into, { @@ -671,10 +696,10 @@ where // Also ugly implementation to keep it maleable for now match call { RuntimeCall::Xyk(pallet_xyk::Call::sell_asset { - sold_asset_id: sold_asset_id, - sold_asset_amount: sold_asset_amount, - bought_asset_id: bought_asset_id, - min_amount_out: min_amount_out, + sold_asset_id, + sold_asset_amount, + bought_asset_id, + min_amount_out, .. }) => { // If else tree for easy edits @@ -706,7 +731,7 @@ where match ( FeeLock::is_whitelisted(*sold_asset_id), - OTA::get_swap_valuation_for_token(*sold_asset_id, *sold_asset_amount), + OFLA::get_swap_valuation_for_token(*sold_asset_id, *sold_asset_amount), ) { (true, Some(value)) if value >= fee_lock_metadata.swap_value_threshold => @@ -716,7 +741,7 @@ where _ => { match ( FeeLock::is_whitelisted(*bought_asset_id), - OTA::get_swap_valuation_for_token( + OFLA::get_swap_valuation_for_token( *bought_asset_id, bought_asset_amount, ), @@ -734,11 +759,11 @@ where if is_high_value { // This is the "high value swap on curated token" branch // Attempt to unlock fee, do not return if fails - let _ = OTA::unlock_fee(who); + let _ = OFLA::unlock_fee(who); Ok(Some(LiquidityInfoEnum::FeeLock)) } else { // This is the "low value swap on curated token" branch - OTA::process_fee_lock(who).map_err(|_| { + OFLA::process_fee_lock(who).map_err(|_| { TransactionValidityError::Invalid( InvalidTransaction::ProcessFeeLock.into(), ) @@ -747,7 +772,7 @@ where } } else { // "swap on non-whitelisted tokens" branch - OTA::process_fee_lock(who).map_err(|_| { + OFLA::process_fee_lock(who).map_err(|_| { TransactionValidityError::Invalid( InvalidTransaction::ProcessFeeLock.into(), ) @@ -760,11 +785,47 @@ where } }, + RuntimeCall::Xyk(pallet_xyk::Call::multiswap_sell_asset { + swap_token_list: swap_token_list, + sold_asset_amount: sold_asset_amount, + min_amount_out: min_amount_out, + .. + }) => { + // If else tree for easy edits + + // Check if fee locks are initiazed or not + if let Some(fee_lock_metadata) = FeeLock::get_fee_lock_metadata() { + // ensure swap cannot fail + // This is to ensure that xyk swap fee is always charged + // We also ensure that the user has enough funds to transact + let _ = ::pre_validate_multiswap_sell_asset( + &who.clone().into(), + swap_token_list.clone(), + *sold_asset_amount, + *min_amount_out, + ) + .map_err(|_| { + TransactionValidityError::Invalid( + InvalidTransaction::SwapPrevalidation.into(), + ) + })?; + + // This is the "low value swap on curated token" branch + OFLA::process_fee_lock(who).map_err(|_| { + TransactionValidityError::Invalid(InvalidTransaction::ProcessFeeLock.into()) + })?; + Ok(Some(LiquidityInfoEnum::FeeLock)) + } else { + // FeeLocks are not activated branch + OCA::withdraw_fee(who, call, info, fee, tip) + } + }, + RuntimeCall::Xyk(pallet_xyk::Call::buy_asset { - sold_asset_id: sold_asset_id, - bought_asset_amount: bought_asset_amount, - bought_asset_id: bought_asset_id, - max_amount_in: max_amount_in, + sold_asset_id, + bought_asset_amount, + bought_asset_id, + max_amount_in, .. }) => { // If else tree for easy edits @@ -802,7 +863,7 @@ where match ( FeeLock::is_whitelisted(*sold_asset_id), - OTA::get_swap_valuation_for_token(*sold_asset_id, sold_asset_amount), + OFLA::get_swap_valuation_for_token(*sold_asset_id, sold_asset_amount), ) { (true, Some(value)) if value >= fee_lock_metadata.swap_value_threshold => @@ -812,7 +873,7 @@ where _ => { match ( FeeLock::is_whitelisted(*bought_asset_id), - OTA::get_swap_valuation_for_token( + OFLA::get_swap_valuation_for_token( *bought_asset_id, *bought_asset_amount, ), @@ -830,11 +891,11 @@ where if is_high_value { // This is the "high value swap on curated token" branch // Attempt to unlock fee, do not return if fails - let _ = OTA::unlock_fee(who); + let _ = OFLA::unlock_fee(who); Ok(Some(LiquidityInfoEnum::FeeLock)) } else { // This is the "low value swap on curated token" branch - OTA::process_fee_lock(who).map_err(|_| { + OFLA::process_fee_lock(who).map_err(|_| { TransactionValidityError::Invalid( InvalidTransaction::ProcessFeeLock.into(), ) @@ -843,7 +904,7 @@ where } } else { // "swap on non-curated token" branch - OTA::process_fee_lock(who).map_err(|_| { + OFLA::process_fee_lock(who).map_err(|_| { TransactionValidityError::Invalid( InvalidTransaction::ProcessFeeLock.into(), ) @@ -855,8 +916,45 @@ where OCA::withdraw_fee(who, call, info, fee, tip) } }, + + RuntimeCall::Xyk(pallet_xyk::Call::multiswap_buy_asset { + swap_token_list: swap_token_list, + bought_asset_amount: bought_asset_amount, + max_amount_in: max_amount_in, + .. + }) => { + // If else tree for easy edits + + // Check if fee locks are initiazed or not + if let Some(fee_lock_metadata) = FeeLock::get_fee_lock_metadata() { + // ensure swap cannot fail + // This is to ensure that xyk swap fee is always charged + // We also ensure that the user has enough funds to transact + let _ = ::pre_validate_multiswap_buy_asset( + &who.clone().into(), + swap_token_list.clone(), + *bought_asset_amount, + *max_amount_in, + ) + .map_err(|_| { + TransactionValidityError::Invalid( + InvalidTransaction::SwapPrevalidation.into(), + ) + })?; + + // This is the "low value swap on curated token" branch + OFLA::process_fee_lock(who).map_err(|_| { + TransactionValidityError::Invalid(InvalidTransaction::ProcessFeeLock.into()) + })?; + Ok(Some(LiquidityInfoEnum::FeeLock)) + } else { + // FeeLocks are not activated branch + OCA::withdraw_fee(who, call, info, fee, tip) + } + }, + RuntimeCall::FeeLock(pallet_fee_lock::Call::unlock_fee { .. }) => { - OTA::can_unlock_fee(who).map_err(|_| { + OFLA::can_unlock_fee(who).map_err(|_| { TransactionValidityError::Invalid(InvalidTransaction::UnlockFee.into()) })?; Ok(Some(LiquidityInfoEnum::FeeLock)) @@ -1076,6 +1174,7 @@ parameter_types! { impl cumulus_pallet_parachain_system::Config for Runtime { type RuntimeEvent = RuntimeEvent; + type MaintenanceStatusProvider = Maintenance; type OnSystemEvent = (); type SelfParaId = ParachainInfo; type DmpMessageHandler = DmpQueue; @@ -1461,6 +1560,32 @@ impl pallet_proxy::Config for Runtime { type AnnouncementDepositFactor = AnnouncementDepositFactor; } +pub struct FoundationAccountsProvider(PhantomData); +impl Get> for FoundationAccountsProvider { + fn get() -> Vec { + let accounts = vec![ + hex_literal::hex!["c8d02dfbff5ce2fda651c7dd7719bc5b17b9c1043fded805bfc86296c5909871"], + hex_literal::hex!["c4690c56c36cec7ed5f6ed5d5eebace0c317073a962ebea1d00f1a304974897b"], + hex_literal::hex!["fc741134c82b81b7ab7efbf334b0c90ff8dbf22c42ad705ea7c04bf27ed4161a"], + ]; + + accounts + .into_iter() + .map(|acc| { + T::AccountId::decode(&mut sp_runtime::AccountId32::as_ref( + &sp_runtime::AccountId32::from(acc), + )) + .unwrap() + }) + .collect() + } +} + +impl pallet_maintenance::Config for Runtime { + type RuntimeEvent = RuntimeEvent; + type FoundationAccountsProvider = FoundationAccountsProvider; +} + // Create the runtime by composing the FRAME pallets that were previously configured. construct_runtime!( pub enum Runtime where @@ -1525,9 +1650,11 @@ construct_runtime!( // Bootstrap Bootstrap: pallet_bootstrap::{Pallet, Call, Storage, Event} = 53, - Utility: pallet_utility::{Pallet, Call, Event} = 54, + Utility: pallet_utility_mangata::{Pallet, Call, Event} = 54, Proxy: pallet_proxy::{Pallet, Call, Storage, Event} = 55, + + Maintenance: pallet_maintenance::{Pallet, Call, Storage, Event} = 60, } ); @@ -1549,7 +1676,7 @@ mod benches { [pallet_collective_mangata, Council] [pallet_bootstrap, Bootstrap] [pallet_crowdloan_rewards, Crowdloan] - [pallet_utility, Utility] + [pallet_utility_mangata, Utility] [pallet_vesting_mangata, Vesting] [pallet_issuance, Issuance] [pallet_multipurpose_liquidity, MultiPurposeLiquidity] @@ -1879,17 +2006,18 @@ impl_runtime_apis! { #[cfg(feature = "try-runtime")] impl frame_try_runtime::TryRuntime for Runtime { - fn on_runtime_upgrade() -> (Weight, Weight) { + fn on_runtime_upgrade(checks: bool) -> (Weight, Weight) { // NOTE: intentional unwrap: we don't want to propagate the error backwards, and want to // have a backtrace here. If any of the pre/post migration checks fail, we shall stop // right here and right now. - let weight = Executive::try_runtime_upgrade().unwrap(); + let weight = Executive::try_runtime_upgrade(checks).unwrap(); (weight, RuntimeBlockWeights::get().max_block) } fn execute_block( block: Block, state_root_check: bool, + signature_check: bool, select: frame_try_runtime::TryStateSelect ) -> Weight { log::info!( @@ -1901,7 +2029,7 @@ impl_runtime_apis! { ); // NOTE: intentional unwrap: we don't want to propagate the error backwards, and want to // have a backtrace here. - Executive::try_execute_block(block, state_root_check, select).unwrap() + Executive::try_execute_block(block, state_root_check, signature_check, select).unwrap() } } diff --git a/runtime/mangata-rococo/src/weights/block_weights.rs b/runtime/mangata-rococo/src/weights/block_weights.rs index eb025213e7..ac476ccbb0 100644 --- a/runtime/mangata-rococo/src/weights/block_weights.rs +++ b/runtime/mangata-rococo/src/weights/block_weights.rs @@ -1,6 +1,6 @@ //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02 (Y/M/D) -//! HOSTNAME: `6b0c83a231cd`, CPU: `AMD EPYC 7B13` +//! DATE: 2023-02-13 (Y/M/D) +//! HOSTNAME: `a98b08ce8d61`, CPU: `AMD EPYC 7B13` //! //! SHORT-NAME: `block`, LONG-NAME: `BlockExecution`, RUNTIME: `Mangata Development` //! WARMUPS: `10`, REPEAT: `100` @@ -16,34 +16,35 @@ // --chain // dev // -lblock_builder=debug +// --max-ext-per-block +// 50000 // --base-path // . -use frame_support::{ - parameter_types, - weights::{constants::WEIGHT_PER_NANOS, Weight}, -}; +use sp_core::parameter_types; +use sp_weights::{constants::WEIGHT_REF_TIME_PER_NANOS, Weight}; parameter_types! { /// Time to execute an empty block. /// Calculated by multiplying the *Average* with `1.0` and adding `0`. /// /// Stats nanoseconds: - /// Min, Max: 7_965_169, 8_157_708 - /// Average: 8_012_576 - /// Median: 8_010_819 - /// Std-Dev: 26739.71 + /// Min, Max: 24_538_095, 29_060_874 + /// Average: 25_125_903 + /// Median: 24_803_895 + /// Std-Dev: 864846.94 /// /// Percentiles nanoseconds: - /// 99th: 8_120_089 - /// 95th: 8_045_149 - /// 75th: 8_020_858 - pub const BlockExecutionWeight: Weight = WEIGHT_PER_NANOS.saturating_mul(8_012_576); + /// 99th: 28_244_704 + /// 95th: 27_189_485 + /// 75th: 25_071_715 + pub const BlockExecutionWeight: Weight = + Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(25_125_903)); } #[cfg(test)] mod test_weights { - use frame_support::weights::constants; + use sp_weights::constants; /// Checks that the weight exists and is sane. // NOTE: If this test fails but you are sure that the generated values are fine, @@ -54,12 +55,12 @@ mod test_weights { // At least 100 µs. assert!( - w.ref_time() >= 100u64 * constants::WEIGHT_PER_MICROS.ref_time(), + w.ref_time() >= 100u64 * constants::WEIGHT_REF_TIME_PER_MICROS, "Weight should be at least 100 µs." ); // At most 50 ms. assert!( - w.ref_time() <= 50u64 * constants::WEIGHT_PER_MILLIS.ref_time(), + w.ref_time() <= 50u64 * constants::WEIGHT_REF_TIME_PER_MILLIS, "Weight should be at most 50 ms." ); } diff --git a/runtime/mangata-rococo/src/weights/extrinsic_weights.rs b/runtime/mangata-rococo/src/weights/extrinsic_weights.rs index b54640a148..a5e691e924 100644 --- a/runtime/mangata-rococo/src/weights/extrinsic_weights.rs +++ b/runtime/mangata-rococo/src/weights/extrinsic_weights.rs @@ -1,6 +1,6 @@ //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02 (Y/M/D) -//! HOSTNAME: `6b0c83a231cd`, CPU: `AMD EPYC 7B13` +//! DATE: 2023-02-13 (Y/M/D) +//! HOSTNAME: `a98b08ce8d61`, CPU: `AMD EPYC 7B13` //! //! SHORT-NAME: `extrinsic`, LONG-NAME: `ExtrinsicBase`, RUNTIME: `Mangata Development` //! WARMUPS: `10`, REPEAT: `100` @@ -16,34 +16,35 @@ // --chain // dev // -lblock_builder=debug +// --max-ext-per-block +// 50000 // --base-path // . -use frame_support::{ - parameter_types, - weights::{constants::WEIGHT_PER_NANOS, Weight}, -}; +use sp_core::parameter_types; +use sp_weights::{constants::WEIGHT_REF_TIME_PER_NANOS, Weight}; parameter_types! { /// Time to execute a NO-OP extrinsic, for example `System::remark`. /// Calculated by multiplying the *Average* with `1.0` and adding `0`. /// /// Stats nanoseconds: - /// Min, Max: 110_553, 113_483 - /// Average: 111_477 - /// Median: 111_264 - /// Std-Dev: 681.74 + /// Min, Max: 112_987, 114_635 + /// Average: 113_696 + /// Median: 113_696 + /// Std-Dev: 363.05 /// /// Percentiles nanoseconds: - /// 99th: 113_085 - /// 95th: 112_899 - /// 75th: 111_871 - pub const ExtrinsicBaseWeight: Weight = WEIGHT_PER_NANOS.saturating_mul(111_477); + /// 99th: 114_565 + /// 95th: 114_203 + /// 75th: 113_964 + pub const ExtrinsicBaseWeight: Weight = + Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(113_696)); } #[cfg(test)] mod test_weights { - use frame_support::weights::constants; + use sp_weights::constants; /// Checks that the weight exists and is sane. // NOTE: If this test fails but you are sure that the generated values are fine, @@ -54,12 +55,12 @@ mod test_weights { // At least 10 µs. assert!( - w.ref_time() >= 10u64 * constants::WEIGHT_PER_MICROS.ref_time(), + w.ref_time() >= 10u64 * constants::WEIGHT_REF_TIME_PER_MICROS, "Weight should be at least 10 µs." ); // At most 1 ms. assert!( - w.ref_time() <= constants::WEIGHT_PER_MILLIS.ref_time(), + w.ref_time() <= constants::WEIGHT_REF_TIME_PER_MILLIS, "Weight should be at most 1 ms." ); } diff --git a/runtime/mangata-rococo/src/weights/frame_system.rs b/runtime/mangata-rococo/src/weights/frame_system.rs index 4b58060714..8cd351ad84 100644 --- a/runtime/mangata-rococo/src/weights/frame_system.rs +++ b/runtime/mangata-rococo/src/weights/frame_system.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for frame_system //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -68,41 +68,41 @@ pub trait WeightInfo { pub struct ModuleWeight(PhantomData); impl frame_system::WeightInfo for ModuleWeight { fn remark(b: u32, ) -> Weight { - (Weight::from_ref_time(8_893_634)) + (Weight::from_ref_time(7_066_495)) // Standard Error: 0 - .saturating_add((Weight::from_ref_time(520)).saturating_mul(b as u64)) + .saturating_add((Weight::from_ref_time(518)).saturating_mul(b as u64)) } fn remark_with_event(b: u32, ) -> Weight { - (Weight::from_ref_time(21_071_947)) + (Weight::from_ref_time(37_012_629)) // Standard Error: 0 - .saturating_add((Weight::from_ref_time(1_773)).saturating_mul(b as u64)) + .saturating_add((Weight::from_ref_time(1_982)).saturating_mul(b as u64)) } // Storage: System Digest (r:1 w:1) // Storage: unknown [0x3a686561707061676573] (r:0 w:1) fn set_heap_pages() -> Weight { - (Weight::from_ref_time(11_920_000)) + (Weight::from_ref_time(11_220_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } // Storage: Skipped Metadata (r:0 w:0) fn set_storage(i: u32, ) -> Weight { - (Weight::from_ref_time(6_530_000)) - // Standard Error: 1_117 - .saturating_add((Weight::from_ref_time(1_010_531)).saturating_mul(i as u64)) + (Weight::from_ref_time(6_160_000)) + // Standard Error: 2_728 + .saturating_add((Weight::from_ref_time(1_052_752)).saturating_mul(i as u64)) .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64))) } // Storage: Skipped Metadata (r:0 w:0) fn kill_storage(i: u32, ) -> Weight { - (Weight::from_ref_time(6_460_000)) - // Standard Error: 1_456 - .saturating_add((Weight::from_ref_time(823_781)).saturating_mul(i as u64)) + (Weight::from_ref_time(6_200_000)) + // Standard Error: 1_306 + .saturating_add((Weight::from_ref_time(722_118)).saturating_mul(i as u64)) .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64))) } // Storage: Skipped Metadata (r:0 w:0) fn kill_prefix(p: u32, ) -> Weight { - (Weight::from_ref_time(9_200_000)) - // Standard Error: 1_178 - .saturating_add((Weight::from_ref_time(1_533_512)).saturating_mul(p as u64)) + (Weight::from_ref_time(8_670_000)) + // Standard Error: 1_402 + .saturating_add((Weight::from_ref_time(1_380_740)).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(p as u64))) } } @@ -110,41 +110,41 @@ impl frame_system::WeightInfo for ModuleWeight { // For backwards compatibility and tests impl WeightInfo for () { fn remark(b: u32, ) -> Weight { - (Weight::from_ref_time(8_893_634)) + (Weight::from_ref_time(7_066_495)) // Standard Error: 0 - .saturating_add((Weight::from_ref_time(520)).saturating_mul(b as u64)) + .saturating_add((Weight::from_ref_time(518)).saturating_mul(b as u64)) } fn remark_with_event(b: u32, ) -> Weight { - (Weight::from_ref_time(21_071_947)) + (Weight::from_ref_time(37_012_629)) // Standard Error: 0 - .saturating_add((Weight::from_ref_time(1_773)).saturating_mul(b as u64)) + .saturating_add((Weight::from_ref_time(1_982)).saturating_mul(b as u64)) } // Storage: System Digest (r:1 w:1) // Storage: unknown [0x3a686561707061676573] (r:0 w:1) fn set_heap_pages() -> Weight { - (Weight::from_ref_time(11_920_000)) + (Weight::from_ref_time(11_220_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } // Storage: Skipped Metadata (r:0 w:0) fn set_storage(i: u32, ) -> Weight { - (Weight::from_ref_time(6_530_000)) - // Standard Error: 1_117 - .saturating_add((Weight::from_ref_time(1_010_531)).saturating_mul(i as u64)) + (Weight::from_ref_time(6_160_000)) + // Standard Error: 2_728 + .saturating_add((Weight::from_ref_time(1_052_752)).saturating_mul(i as u64)) .saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(i as u64))) } // Storage: Skipped Metadata (r:0 w:0) fn kill_storage(i: u32, ) -> Weight { - (Weight::from_ref_time(6_460_000)) - // Standard Error: 1_456 - .saturating_add((Weight::from_ref_time(823_781)).saturating_mul(i as u64)) + (Weight::from_ref_time(6_200_000)) + // Standard Error: 1_306 + .saturating_add((Weight::from_ref_time(722_118)).saturating_mul(i as u64)) .saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(i as u64))) } // Storage: Skipped Metadata (r:0 w:0) fn kill_prefix(p: u32, ) -> Weight { - (Weight::from_ref_time(9_200_000)) - // Standard Error: 1_178 - .saturating_add((Weight::from_ref_time(1_533_512)).saturating_mul(p as u64)) + (Weight::from_ref_time(8_670_000)) + // Standard Error: 1_402 + .saturating_add((Weight::from_ref_time(1_380_740)).saturating_mul(p as u64)) .saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(p as u64))) } } diff --git a/runtime/mangata-rococo/src/weights/mod.rs b/runtime/mangata-rococo/src/weights/mod.rs index 90b543d095..0c109890fc 100644 --- a/runtime/mangata-rococo/src/weights/mod.rs +++ b/runtime/mangata-rococo/src/weights/mod.rs @@ -18,7 +18,7 @@ pub mod pallet_multipurpose_liquidity; pub mod pallet_session; pub mod pallet_timestamp; pub mod pallet_treasury; -pub mod pallet_utility; +pub mod pallet_utility_mangata; pub mod pallet_vesting_mangata; pub mod pallet_xyk; pub mod parachain_staking; @@ -31,7 +31,8 @@ pub use self::{ pallet_fee_lock as pallet_fee_lock_weights, pallet_issuance as pallet_issuance_weights, pallet_multipurpose_liquidity as pallet_multipurpose_liquidity_weights, pallet_session as pallet_session_weights, pallet_timestamp as pallet_timestamp_weights, - pallet_treasury as pallet_treasury_weights, pallet_utility as pallet_utility_weights, + pallet_treasury as pallet_treasury_weights, + pallet_utility_mangata as pallet_utility_mangata_weights, pallet_vesting_mangata as pallet_vesting_mangata_weights, pallet_xyk as pallet_xyk_weights, parachain_staking as parachain_staking_weights, }; diff --git a/runtime/mangata-rococo/src/weights/orml_asset_registry.rs b/runtime/mangata-rococo/src/weights/orml_asset_registry.rs index 38ae60175c..fca7bed97b 100644 --- a/runtime/mangata-rococo/src/weights/orml_asset_registry.rs +++ b/runtime/mangata-rococo/src/weights/orml_asset_registry.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for orml_asset_registry //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -68,14 +68,14 @@ impl orml_asset_registry::WeightInfo for ModuleWeight Weight { - (Weight::from_ref_time(46_480_000)) + (Weight::from_ref_time(46_500_000)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: AssetRegistry Metadata (r:1 w:1) // Storage: AssetRegistry LocationToAssetId (r:1 w:1) fn update_asset() -> Weight { - (Weight::from_ref_time(35_700_000)) + (Weight::from_ref_time(36_510_000)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -88,14 +88,14 @@ impl WeightInfo for () { // Storage: AssetRegistry Metadata (r:1 w:1) // Storage: AssetRegistry LocationToAssetId (r:1 w:1) fn register_asset() -> Weight { - (Weight::from_ref_time(46_480_000)) + (Weight::from_ref_time(46_500_000)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: AssetRegistry Metadata (r:1 w:1) // Storage: AssetRegistry LocationToAssetId (r:1 w:1) fn update_asset() -> Weight { - (Weight::from_ref_time(35_700_000)) + (Weight::from_ref_time(36_510_000)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } diff --git a/runtime/mangata-rococo/src/weights/orml_tokens.rs b/runtime/mangata-rococo/src/weights/orml_tokens.rs index 286d37b5ec..41414ea3c1 100644 --- a/runtime/mangata-rococo/src/weights/orml_tokens.rs +++ b/runtime/mangata-rococo/src/weights/orml_tokens.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for orml_tokens //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -71,35 +71,35 @@ impl orml_tokens::WeightInfo for ModuleWeight { // Storage: Tokens Accounts (r:2 w:2) // Storage: System Account (r:1 w:1) fn transfer() -> Weight { - (Weight::from_ref_time(58_570_000)) + (Weight::from_ref_time(57_250_000)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: Tokens Accounts (r:2 w:2) // Storage: System Account (r:1 w:1) fn transfer_all() -> Weight { - (Weight::from_ref_time(59_460_000)) + (Weight::from_ref_time(59_270_000)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: Tokens Accounts (r:2 w:2) // Storage: System Account (r:1 w:1) fn transfer_keep_alive() -> Weight { - (Weight::from_ref_time(53_451_000)) + (Weight::from_ref_time(52_840_000)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: Tokens Accounts (r:2 w:2) // Storage: System Account (r:2 w:1) fn force_transfer() -> Weight { - (Weight::from_ref_time(55_450_000)) + (Weight::from_ref_time(53_950_000)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: Tokens Accounts (r:1 w:1) // Storage: Tokens TotalIssuance (r:1 w:1) fn set_balance() -> Weight { - (Weight::from_ref_time(35_670_000)) + (Weight::from_ref_time(34_210_000)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -108,7 +108,7 @@ impl orml_tokens::WeightInfo for ModuleWeight { // Storage: Tokens TotalIssuance (r:1 w:1) // Storage: System Account (r:1 w:1) fn create() -> Weight { - (Weight::from_ref_time(57_290_000)) + (Weight::from_ref_time(57_450_000)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } @@ -117,7 +117,7 @@ impl orml_tokens::WeightInfo for ModuleWeight { // Storage: Tokens TotalIssuance (r:1 w:1) // Storage: System Account (r:1 w:1) fn mint() -> Weight { - (Weight::from_ref_time(57_660_000)) + (Weight::from_ref_time(57_360_000)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } @@ -128,35 +128,35 @@ impl WeightInfo for () { // Storage: Tokens Accounts (r:2 w:2) // Storage: System Account (r:1 w:1) fn transfer() -> Weight { - (Weight::from_ref_time(58_570_000)) + (Weight::from_ref_time(57_250_000)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: Tokens Accounts (r:2 w:2) // Storage: System Account (r:1 w:1) fn transfer_all() -> Weight { - (Weight::from_ref_time(59_460_000)) + (Weight::from_ref_time(59_270_000)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: Tokens Accounts (r:2 w:2) // Storage: System Account (r:1 w:1) fn transfer_keep_alive() -> Weight { - (Weight::from_ref_time(53_451_000)) + (Weight::from_ref_time(52_840_000)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: Tokens Accounts (r:2 w:2) // Storage: System Account (r:2 w:1) fn force_transfer() -> Weight { - (Weight::from_ref_time(55_450_000)) + (Weight::from_ref_time(53_950_000)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: Tokens Accounts (r:1 w:1) // Storage: Tokens TotalIssuance (r:1 w:1) fn set_balance() -> Weight { - (Weight::from_ref_time(35_670_000)) + (Weight::from_ref_time(34_210_000)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } @@ -165,7 +165,7 @@ impl WeightInfo for () { // Storage: Tokens TotalIssuance (r:1 w:1) // Storage: System Account (r:1 w:1) fn create() -> Weight { - (Weight::from_ref_time(57_290_000)) + (Weight::from_ref_time(57_450_000)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } @@ -174,7 +174,7 @@ impl WeightInfo for () { // Storage: Tokens TotalIssuance (r:1 w:1) // Storage: System Account (r:1 w:1) fn mint() -> Weight { - (Weight::from_ref_time(57_660_000)) + (Weight::from_ref_time(57_360_000)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } diff --git a/runtime/mangata-rococo/src/weights/pallet_bootstrap.rs b/runtime/mangata-rococo/src/weights/pallet_bootstrap.rs index 01f7c4e128..1fe8aa8209 100644 --- a/runtime/mangata-rococo/src/weights/pallet_bootstrap.rs +++ b/runtime/mangata-rococo/src/weights/pallet_bootstrap.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for pallet_bootstrap //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -72,7 +72,7 @@ impl pallet_bootstrap::WeightInfo for ModuleWeight { // Storage: Bootstrap PromoteBootstrapPool (r:0 w:1) // Storage: Bootstrap ActivePair (r:0 w:1) fn schedule_bootstrap() -> Weight { - (Weight::from_ref_time(36_710_000)) + (Weight::from_ref_time(36_889_000)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } @@ -86,7 +86,7 @@ impl pallet_bootstrap::WeightInfo for ModuleWeight { // Storage: Bootstrap Valuations (r:1 w:1) // Storage: Bootstrap ProvisionAccounts (r:0 w:1) fn provision() -> Weight { - (Weight::from_ref_time(96_550_000)) + (Weight::from_ref_time(95_140_000)) .saturating_add(T::DbWeight::get().reads(9 as u64)) .saturating_add(T::DbWeight::get().writes(6 as u64)) } @@ -102,7 +102,7 @@ impl pallet_bootstrap::WeightInfo for ModuleWeight { // Storage: Issuance PromotedPoolsRewardsV2 (r:1 w:0) // Storage: Bootstrap ProvisionAccounts (r:0 w:1) fn claim_and_activate_liquidity_tokens() -> Weight { - (Weight::from_ref_time(147_740_000)) + (Weight::from_ref_time(148_710_000)) .saturating_add(T::DbWeight::get().reads(14 as u64)) .saturating_add(T::DbWeight::get().writes(5 as u64)) } @@ -118,7 +118,7 @@ impl pallet_bootstrap::WeightInfo for ModuleWeight { // Storage: Bootstrap PromoteBootstrapPool (r:0 w:1) // Storage: Bootstrap ActivePair (r:0 w:1) fn finalize() -> Weight { - (Weight::from_ref_time(92_570_000)) + (Weight::from_ref_time(89_429_000)) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(11 as u64)) } @@ -133,7 +133,7 @@ impl WeightInfo for () { // Storage: Bootstrap PromoteBootstrapPool (r:0 w:1) // Storage: Bootstrap ActivePair (r:0 w:1) fn schedule_bootstrap() -> Weight { - (Weight::from_ref_time(36_710_000)) + (Weight::from_ref_time(36_889_000)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } @@ -147,7 +147,7 @@ impl WeightInfo for () { // Storage: Bootstrap Valuations (r:1 w:1) // Storage: Bootstrap ProvisionAccounts (r:0 w:1) fn provision() -> Weight { - (Weight::from_ref_time(96_550_000)) + (Weight::from_ref_time(95_140_000)) .saturating_add(RocksDbWeight::get().reads(9 as u64)) .saturating_add(RocksDbWeight::get().writes(6 as u64)) } @@ -163,7 +163,7 @@ impl WeightInfo for () { // Storage: Issuance PromotedPoolsRewardsV2 (r:1 w:0) // Storage: Bootstrap ProvisionAccounts (r:0 w:1) fn claim_and_activate_liquidity_tokens() -> Weight { - (Weight::from_ref_time(147_740_000)) + (Weight::from_ref_time(148_710_000)) .saturating_add(RocksDbWeight::get().reads(14 as u64)) .saturating_add(RocksDbWeight::get().writes(5 as u64)) } @@ -179,7 +179,7 @@ impl WeightInfo for () { // Storage: Bootstrap PromoteBootstrapPool (r:0 w:1) // Storage: Bootstrap ActivePair (r:0 w:1) fn finalize() -> Weight { - (Weight::from_ref_time(92_570_000)) + (Weight::from_ref_time(89_429_000)) .saturating_add(RocksDbWeight::get().reads(6 as u64)) .saturating_add(RocksDbWeight::get().writes(11 as u64)) } diff --git a/runtime/mangata-rococo/src/weights/pallet_collective_mangata.rs b/runtime/mangata-rococo/src/weights/pallet_collective_mangata.rs index d8b5f8f7ee..3a1305298f 100644 --- a/runtime/mangata-rococo/src/weights/pallet_collective_mangata.rs +++ b/runtime/mangata-rococo/src/weights/pallet_collective_mangata.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for pallet_collective_mangata //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -76,11 +76,11 @@ impl pallet_collective_mangata::WeightInfo for ModuleWe // Storage: Council Voting (r:100 w:100) // Storage: Council Prime (r:0 w:1) fn set_members(m: u32, _n: u32, p: u32, ) -> Weight { - (Weight::from_ref_time(87_320_000)) - // Standard Error: 55_764 - .saturating_add((Weight::from_ref_time(4_454_572)).saturating_mul(m as u64)) - // Standard Error: 55_764 - .saturating_add((Weight::from_ref_time(8_901_945)).saturating_mul(p as u64)) + (Weight::from_ref_time(87_150_000)) + // Standard Error: 60_340 + .saturating_add((Weight::from_ref_time(4_651_619)).saturating_mul(m as u64)) + // Standard Error: 60_340 + .saturating_add((Weight::from_ref_time(8_998_669)).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(p as u64))) .saturating_add(T::DbWeight::get().writes(2 as u64)) @@ -88,21 +88,21 @@ impl pallet_collective_mangata::WeightInfo for ModuleWe } // Storage: Council Members (r:1 w:0) fn execute(b: u32, m: u32, ) -> Weight { - (Weight::from_ref_time(35_460_067)) - // Standard Error: 70 - .saturating_add((Weight::from_ref_time(1_633)).saturating_mul(b as u64)) - // Standard Error: 724 - .saturating_add((Weight::from_ref_time(22_716)).saturating_mul(m as u64)) + (Weight::from_ref_time(34_752_897)) + // Standard Error: 106 + .saturating_add((Weight::from_ref_time(1_939)).saturating_mul(b as u64)) + // Standard Error: 1_097 + .saturating_add((Weight::from_ref_time(16_624)).saturating_mul(m as u64)) .saturating_add(T::DbWeight::get().reads(1 as u64)) } // Storage: Council Members (r:1 w:0) // Storage: Council ProposalOf (r:1 w:0) fn propose_execute(b: u32, m: u32, ) -> Weight { - (Weight::from_ref_time(36_835_982)) - // Standard Error: 189 - .saturating_add((Weight::from_ref_time(2_649)).saturating_mul(b as u64)) - // Standard Error: 1_956 - .saturating_add((Weight::from_ref_time(44_675)).saturating_mul(m as u64)) + (Weight::from_ref_time(37_326_122)) + // Standard Error: 95 + .saturating_add((Weight::from_ref_time(2_039)).saturating_mul(b as u64)) + // Standard Error: 983 + .saturating_add((Weight::from_ref_time(38_876)).saturating_mul(m as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64)) } // Storage: Council Members (r:1 w:0) @@ -112,22 +112,22 @@ impl pallet_collective_mangata::WeightInfo for ModuleWe // Storage: Council ProposalProposedTime (r:0 w:1) // Storage: Council Voting (r:0 w:1) fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight { - (Weight::from_ref_time(47_829_442)) - // Standard Error: 202 - .saturating_add((Weight::from_ref_time(7_273)).saturating_mul(b as u64)) - // Standard Error: 2_118 - .saturating_add((Weight::from_ref_time(14_736)).saturating_mul(m as u64)) - // Standard Error: 2_091 - .saturating_add((Weight::from_ref_time(420_618)).saturating_mul(p as u64)) + (Weight::from_ref_time(48_152_722)) + // Standard Error: 194 + .saturating_add((Weight::from_ref_time(5_209)).saturating_mul(b as u64)) + // Standard Error: 2_028 + .saturating_add((Weight::from_ref_time(39_162)).saturating_mul(m as u64)) + // Standard Error: 2_002 + .saturating_add((Weight::from_ref_time(269_004)).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(5 as u64)) } // Storage: Council Members (r:1 w:0) // Storage: Council Voting (r:1 w:1) fn vote(m: u32, ) -> Weight { - (Weight::from_ref_time(66_048_267)) - // Standard Error: 1_645 - .saturating_add((Weight::from_ref_time(69_894)).saturating_mul(m as u64)) + (Weight::from_ref_time(51_232_594)) + // Standard Error: 1_601 + .saturating_add((Weight::from_ref_time(58_241)).saturating_mul(m as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -137,11 +137,11 @@ impl pallet_collective_mangata::WeightInfo for ModuleWe // Storage: Council Proposals (r:1 w:1) // Storage: Council ProposalOf (r:0 w:1) fn close_early_disapproved(m: u32, p: u32, ) -> Weight { - (Weight::from_ref_time(66_492_201)) - // Standard Error: 3_949 - .saturating_add((Weight::from_ref_time(42_384)).saturating_mul(m as u64)) - // Standard Error: 3_851 - .saturating_add((Weight::from_ref_time(362_880)).saturating_mul(p as u64)) + (Weight::from_ref_time(67_175_054)) + // Standard Error: 2_063 + .saturating_add((Weight::from_ref_time(45_990)).saturating_mul(m as u64)) + // Standard Error: 2_012 + .saturating_add((Weight::from_ref_time(236_551)).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } @@ -151,13 +151,13 @@ impl pallet_collective_mangata::WeightInfo for ModuleWe // Storage: Council ProposalOf (r:1 w:1) // Storage: Council Proposals (r:1 w:1) fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight { - (Weight::from_ref_time(85_487_005)) - // Standard Error: 243 - .saturating_add((Weight::from_ref_time(4_005)).saturating_mul(b as u64)) - // Standard Error: 2_575 - .saturating_add((Weight::from_ref_time(52_101)).saturating_mul(m as u64)) - // Standard Error: 2_510 - .saturating_add((Weight::from_ref_time(412_780)).saturating_mul(p as u64)) + (Weight::from_ref_time(86_747_214)) + // Standard Error: 223 + .saturating_add((Weight::from_ref_time(3_092)).saturating_mul(b as u64)) + // Standard Error: 2_369 + .saturating_add((Weight::from_ref_time(57_800)).saturating_mul(m as u64)) + // Standard Error: 2_309 + .saturating_add((Weight::from_ref_time(269_279)).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } @@ -168,11 +168,11 @@ impl pallet_collective_mangata::WeightInfo for ModuleWe // Storage: Council Proposals (r:1 w:1) // Storage: Council ProposalOf (r:0 w:1) fn close_disapproved(m: u32, p: u32, ) -> Weight { - (Weight::from_ref_time(68_715_844)) - // Standard Error: 2_990 - .saturating_add((Weight::from_ref_time(56_028)).saturating_mul(m as u64)) - // Standard Error: 2_916 - .saturating_add((Weight::from_ref_time(367_604)).saturating_mul(p as u64)) + (Weight::from_ref_time(70_989_034)) + // Standard Error: 2_161 + .saturating_add((Weight::from_ref_time(47_344)).saturating_mul(m as u64)) + // Standard Error: 2_107 + .saturating_add((Weight::from_ref_time(236_294)).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } @@ -183,13 +183,13 @@ impl pallet_collective_mangata::WeightInfo for ModuleWe // Storage: Council ProposalOf (r:1 w:1) // Storage: Council Proposals (r:1 w:1) fn close_approved(b: u32, m: u32, p: u32, ) -> Weight { - (Weight::from_ref_time(88_186_953)) - // Standard Error: 239 - .saturating_add((Weight::from_ref_time(5_261)).saturating_mul(b as u64)) - // Standard Error: 2_532 - .saturating_add((Weight::from_ref_time(48_927)).saturating_mul(m as u64)) - // Standard Error: 2_468 - .saturating_add((Weight::from_ref_time(417_844)).saturating_mul(p as u64)) + (Weight::from_ref_time(89_487_689)) + // Standard Error: 217 + .saturating_add((Weight::from_ref_time(3_654)).saturating_mul(b as u64)) + // Standard Error: 2_299 + .saturating_add((Weight::from_ref_time(58_147)).saturating_mul(m as u64)) + // Standard Error: 2_241 + .saturating_add((Weight::from_ref_time(274_024)).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } @@ -198,9 +198,9 @@ impl pallet_collective_mangata::WeightInfo for ModuleWe // Storage: Council Voting (r:0 w:1) // Storage: Council ProposalOf (r:0 w:1) fn disapprove_proposal(p: u32, ) -> Weight { - (Weight::from_ref_time(40_410_560)) - // Standard Error: 2_372 - .saturating_add((Weight::from_ref_time(371_598)).saturating_mul(p as u64)) + (Weight::from_ref_time(41_036_072)) + // Standard Error: 1_892 + .saturating_add((Weight::from_ref_time(235_661)).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } @@ -213,11 +213,11 @@ impl WeightInfo for () { // Storage: Council Voting (r:100 w:100) // Storage: Council Prime (r:0 w:1) fn set_members(m: u32, _n: u32, p: u32, ) -> Weight { - (Weight::from_ref_time(87_320_000)) - // Standard Error: 55_764 - .saturating_add((Weight::from_ref_time(4_454_572)).saturating_mul(m as u64)) - // Standard Error: 55_764 - .saturating_add((Weight::from_ref_time(8_901_945)).saturating_mul(p as u64)) + (Weight::from_ref_time(87_150_000)) + // Standard Error: 60_340 + .saturating_add((Weight::from_ref_time(4_651_619)).saturating_mul(m as u64)) + // Standard Error: 60_340 + .saturating_add((Weight::from_ref_time(8_998_669)).saturating_mul(p as u64)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(p as u64))) .saturating_add(RocksDbWeight::get().writes(2 as u64)) @@ -225,21 +225,21 @@ impl WeightInfo for () { } // Storage: Council Members (r:1 w:0) fn execute(b: u32, m: u32, ) -> Weight { - (Weight::from_ref_time(35_460_067)) - // Standard Error: 70 - .saturating_add((Weight::from_ref_time(1_633)).saturating_mul(b as u64)) - // Standard Error: 724 - .saturating_add((Weight::from_ref_time(22_716)).saturating_mul(m as u64)) + (Weight::from_ref_time(34_752_897)) + // Standard Error: 106 + .saturating_add((Weight::from_ref_time(1_939)).saturating_mul(b as u64)) + // Standard Error: 1_097 + .saturating_add((Weight::from_ref_time(16_624)).saturating_mul(m as u64)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) } // Storage: Council Members (r:1 w:0) // Storage: Council ProposalOf (r:1 w:0) fn propose_execute(b: u32, m: u32, ) -> Weight { - (Weight::from_ref_time(36_835_982)) - // Standard Error: 189 - .saturating_add((Weight::from_ref_time(2_649)).saturating_mul(b as u64)) - // Standard Error: 1_956 - .saturating_add((Weight::from_ref_time(44_675)).saturating_mul(m as u64)) + (Weight::from_ref_time(37_326_122)) + // Standard Error: 95 + .saturating_add((Weight::from_ref_time(2_039)).saturating_mul(b as u64)) + // Standard Error: 983 + .saturating_add((Weight::from_ref_time(38_876)).saturating_mul(m as u64)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) } // Storage: Council Members (r:1 w:0) @@ -249,22 +249,22 @@ impl WeightInfo for () { // Storage: Council ProposalProposedTime (r:0 w:1) // Storage: Council Voting (r:0 w:1) fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight { - (Weight::from_ref_time(47_829_442)) - // Standard Error: 202 - .saturating_add((Weight::from_ref_time(7_273)).saturating_mul(b as u64)) - // Standard Error: 2_118 - .saturating_add((Weight::from_ref_time(14_736)).saturating_mul(m as u64)) - // Standard Error: 2_091 - .saturating_add((Weight::from_ref_time(420_618)).saturating_mul(p as u64)) + (Weight::from_ref_time(48_152_722)) + // Standard Error: 194 + .saturating_add((Weight::from_ref_time(5_209)).saturating_mul(b as u64)) + // Standard Error: 2_028 + .saturating_add((Weight::from_ref_time(39_162)).saturating_mul(m as u64)) + // Standard Error: 2_002 + .saturating_add((Weight::from_ref_time(269_004)).saturating_mul(p as u64)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(5 as u64)) } // Storage: Council Members (r:1 w:0) // Storage: Council Voting (r:1 w:1) fn vote(m: u32, ) -> Weight { - (Weight::from_ref_time(66_048_267)) - // Standard Error: 1_645 - .saturating_add((Weight::from_ref_time(69_894)).saturating_mul(m as u64)) + (Weight::from_ref_time(51_232_594)) + // Standard Error: 1_601 + .saturating_add((Weight::from_ref_time(58_241)).saturating_mul(m as u64)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -274,11 +274,11 @@ impl WeightInfo for () { // Storage: Council Proposals (r:1 w:1) // Storage: Council ProposalOf (r:0 w:1) fn close_early_disapproved(m: u32, p: u32, ) -> Weight { - (Weight::from_ref_time(66_492_201)) - // Standard Error: 3_949 - .saturating_add((Weight::from_ref_time(42_384)).saturating_mul(m as u64)) - // Standard Error: 3_851 - .saturating_add((Weight::from_ref_time(362_880)).saturating_mul(p as u64)) + (Weight::from_ref_time(67_175_054)) + // Standard Error: 2_063 + .saturating_add((Weight::from_ref_time(45_990)).saturating_mul(m as u64)) + // Standard Error: 2_012 + .saturating_add((Weight::from_ref_time(236_551)).saturating_mul(p as u64)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } @@ -288,13 +288,13 @@ impl WeightInfo for () { // Storage: Council ProposalOf (r:1 w:1) // Storage: Council Proposals (r:1 w:1) fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight { - (Weight::from_ref_time(85_487_005)) - // Standard Error: 243 - .saturating_add((Weight::from_ref_time(4_005)).saturating_mul(b as u64)) - // Standard Error: 2_575 - .saturating_add((Weight::from_ref_time(52_101)).saturating_mul(m as u64)) - // Standard Error: 2_510 - .saturating_add((Weight::from_ref_time(412_780)).saturating_mul(p as u64)) + (Weight::from_ref_time(86_747_214)) + // Standard Error: 223 + .saturating_add((Weight::from_ref_time(3_092)).saturating_mul(b as u64)) + // Standard Error: 2_369 + .saturating_add((Weight::from_ref_time(57_800)).saturating_mul(m as u64)) + // Standard Error: 2_309 + .saturating_add((Weight::from_ref_time(269_279)).saturating_mul(p as u64)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } @@ -305,11 +305,11 @@ impl WeightInfo for () { // Storage: Council Proposals (r:1 w:1) // Storage: Council ProposalOf (r:0 w:1) fn close_disapproved(m: u32, p: u32, ) -> Weight { - (Weight::from_ref_time(68_715_844)) - // Standard Error: 2_990 - .saturating_add((Weight::from_ref_time(56_028)).saturating_mul(m as u64)) - // Standard Error: 2_916 - .saturating_add((Weight::from_ref_time(367_604)).saturating_mul(p as u64)) + (Weight::from_ref_time(70_989_034)) + // Standard Error: 2_161 + .saturating_add((Weight::from_ref_time(47_344)).saturating_mul(m as u64)) + // Standard Error: 2_107 + .saturating_add((Weight::from_ref_time(236_294)).saturating_mul(p as u64)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } @@ -320,13 +320,13 @@ impl WeightInfo for () { // Storage: Council ProposalOf (r:1 w:1) // Storage: Council Proposals (r:1 w:1) fn close_approved(b: u32, m: u32, p: u32, ) -> Weight { - (Weight::from_ref_time(88_186_953)) - // Standard Error: 239 - .saturating_add((Weight::from_ref_time(5_261)).saturating_mul(b as u64)) - // Standard Error: 2_532 - .saturating_add((Weight::from_ref_time(48_927)).saturating_mul(m as u64)) - // Standard Error: 2_468 - .saturating_add((Weight::from_ref_time(417_844)).saturating_mul(p as u64)) + (Weight::from_ref_time(89_487_689)) + // Standard Error: 217 + .saturating_add((Weight::from_ref_time(3_654)).saturating_mul(b as u64)) + // Standard Error: 2_299 + .saturating_add((Weight::from_ref_time(58_147)).saturating_mul(m as u64)) + // Standard Error: 2_241 + .saturating_add((Weight::from_ref_time(274_024)).saturating_mul(p as u64)) .saturating_add(RocksDbWeight::get().reads(6 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } @@ -335,9 +335,9 @@ impl WeightInfo for () { // Storage: Council Voting (r:0 w:1) // Storage: Council ProposalOf (r:0 w:1) fn disapprove_proposal(p: u32, ) -> Weight { - (Weight::from_ref_time(40_410_560)) - // Standard Error: 2_372 - .saturating_add((Weight::from_ref_time(371_598)).saturating_mul(p as u64)) + (Weight::from_ref_time(41_036_072)) + // Standard Error: 1_892 + .saturating_add((Weight::from_ref_time(235_661)).saturating_mul(p as u64)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } diff --git a/runtime/mangata-rococo/src/weights/pallet_crowdloan_rewards.rs b/runtime/mangata-rococo/src/weights/pallet_crowdloan_rewards.rs index 90e53dfb39..b1b47d2d8a 100644 --- a/runtime/mangata-rococo/src/weights/pallet_crowdloan_rewards.rs +++ b/runtime/mangata-rococo/src/weights/pallet_crowdloan_rewards.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for pallet_crowdloan_rewards //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -70,7 +70,7 @@ pub struct ModuleWeight(PhantomData); impl pallet_crowdloan_rewards::WeightInfo for ModuleWeight { // Storage: Crowdloan CrowdloanAllocation (r:0 w:1) fn set_crowdloan_allocation() -> Weight { - (Weight::from_ref_time(7_650_000)) + (Weight::from_ref_time(7_660_000)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: Crowdloan Initialized (r:1 w:0) @@ -85,9 +85,9 @@ impl pallet_crowdloan_rewards::WeightInfo for ModuleWei // Storage: System Account (r:1 w:1) // Storage: Crowdloan AccountsPayable (r:1 w:1) fn initialize_reward_vec(x: u32, ) -> Weight { - (Weight::from_ref_time(1_287_174_491)) - // Standard Error: 164_156 - .saturating_add((Weight::from_ref_time(57_783_366)).saturating_mul(x as u64)) + (Weight::from_ref_time(285_559_831)) + // Standard Error: 112_312 + .saturating_add((Weight::from_ref_time(59_501_876)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().reads((5 as u64).saturating_mul(x as u64))) .saturating_add(T::DbWeight::get().writes(3 as u64)) @@ -100,7 +100,7 @@ impl pallet_crowdloan_rewards::WeightInfo for ModuleWei // Storage: Crowdloan TotalContributors (r:1 w:0) // Storage: Crowdloan EndRelayBlock (r:0 w:1) fn complete_initialization() -> Weight { - (Weight::from_ref_time(26_820_000)) + (Weight::from_ref_time(20_990_000)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -112,13 +112,13 @@ impl pallet_crowdloan_rewards::WeightInfo for ModuleWei // Storage: Tokens Accounts (r:1 w:1) // Storage: Tokens TotalIssuance (r:1 w:1) fn claim() -> Weight { - (Weight::from_ref_time(71_230_000)) + (Weight::from_ref_time(66_150_000)) .saturating_add(T::DbWeight::get().reads(7 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: Crowdloan AccountsPayable (r:2 w:2) fn update_reward_address() -> Weight { - (Weight::from_ref_time(40_800_000)) + (Weight::from_ref_time(36_970_000)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -129,15 +129,15 @@ impl pallet_crowdloan_rewards::WeightInfo for ModuleWei // Storage: Tokens Accounts (r:1 w:1) // Storage: Tokens TotalIssuance (r:1 w:1) fn associate_native_identity() -> Weight { - (Weight::from_ref_time(149_080_000)) + (Weight::from_ref_time(141_790_000)) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(5 as u64)) } // Storage: Crowdloan AccountsPayable (r:2 w:2) fn change_association_with_relay_keys(x: u32, ) -> Weight { - (Weight::from_ref_time(48_951_310)) - // Standard Error: 7_297 - .saturating_add((Weight::from_ref_time(62_891_288)).saturating_mul(x as u64)) + (Weight::from_ref_time(36_263_441)) + // Standard Error: 18_040 + .saturating_add((Weight::from_ref_time(63_156_881)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -147,7 +147,7 @@ impl pallet_crowdloan_rewards::WeightInfo for ModuleWei impl WeightInfo for () { // Storage: Crowdloan CrowdloanAllocation (r:0 w:1) fn set_crowdloan_allocation() -> Weight { - (Weight::from_ref_time(7_650_000)) + (Weight::from_ref_time(7_660_000)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: Crowdloan Initialized (r:1 w:0) @@ -162,9 +162,9 @@ impl WeightInfo for () { // Storage: System Account (r:1 w:1) // Storage: Crowdloan AccountsPayable (r:1 w:1) fn initialize_reward_vec(x: u32, ) -> Weight { - (Weight::from_ref_time(1_287_174_491)) - // Standard Error: 164_156 - .saturating_add((Weight::from_ref_time(57_783_366)).saturating_mul(x as u64)) + (Weight::from_ref_time(285_559_831)) + // Standard Error: 112_312 + .saturating_add((Weight::from_ref_time(59_501_876)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads(6 as u64)) .saturating_add(RocksDbWeight::get().reads((5 as u64).saturating_mul(x as u64))) .saturating_add(RocksDbWeight::get().writes(3 as u64)) @@ -177,7 +177,7 @@ impl WeightInfo for () { // Storage: Crowdloan TotalContributors (r:1 w:0) // Storage: Crowdloan EndRelayBlock (r:0 w:1) fn complete_initialization() -> Weight { - (Weight::from_ref_time(26_820_000)) + (Weight::from_ref_time(20_990_000)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } @@ -189,13 +189,13 @@ impl WeightInfo for () { // Storage: Tokens Accounts (r:1 w:1) // Storage: Tokens TotalIssuance (r:1 w:1) fn claim() -> Weight { - (Weight::from_ref_time(71_230_000)) + (Weight::from_ref_time(66_150_000)) .saturating_add(RocksDbWeight::get().reads(7 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: Crowdloan AccountsPayable (r:2 w:2) fn update_reward_address() -> Weight { - (Weight::from_ref_time(40_800_000)) + (Weight::from_ref_time(36_970_000)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } @@ -206,15 +206,15 @@ impl WeightInfo for () { // Storage: Tokens Accounts (r:1 w:1) // Storage: Tokens TotalIssuance (r:1 w:1) fn associate_native_identity() -> Weight { - (Weight::from_ref_time(149_080_000)) + (Weight::from_ref_time(141_790_000)) .saturating_add(RocksDbWeight::get().reads(6 as u64)) .saturating_add(RocksDbWeight::get().writes(5 as u64)) } // Storage: Crowdloan AccountsPayable (r:2 w:2) fn change_association_with_relay_keys(x: u32, ) -> Weight { - (Weight::from_ref_time(48_951_310)) - // Standard Error: 7_297 - .saturating_add((Weight::from_ref_time(62_891_288)).saturating_mul(x as u64)) + (Weight::from_ref_time(36_263_441)) + // Standard Error: 18_040 + .saturating_add((Weight::from_ref_time(63_156_881)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } diff --git a/runtime/mangata-rococo/src/weights/pallet_fee_lock.rs b/runtime/mangata-rococo/src/weights/pallet_fee_lock.rs index 27ce160de5..2e00003196 100644 --- a/runtime/mangata-rococo/src/weights/pallet_fee_lock.rs +++ b/runtime/mangata-rococo/src/weights/pallet_fee_lock.rs @@ -16,10 +16,10 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -//! Autogenerated weights for pallet_token_timeout +//! Autogenerated weights for pallet_fee_lock //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -54,26 +54,26 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use sp_std::marker::PhantomData; -/// Weight functions needed for pallet_token_timeout. +/// Weight functions needed for pallet_fee_lock. pub trait WeightInfo { fn update_fee_lock_metadata() -> Weight; fn unlock_fee() -> Weight; } -/// Weights for pallet_token_timeout using the Mangata node and recommended hardware. +/// Weights for pallet_fee_lock using the Mangata node and recommended hardware. pub struct ModuleWeight(PhantomData); impl pallet_fee_lock::WeightInfo for ModuleWeight { - // Storage: TokenTimeout TimeoutMetadata (r:1 w:1) + // Storage: FeeLock FeeLockMetadata (r:1 w:1) fn update_fee_lock_metadata() -> Weight { - (Weight::from_ref_time(36_140_000)) + (Weight::from_ref_time(33_569_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } - // Storage: TokenTimeout AccountTimeoutData (r:1 w:1) - // Storage: TokenTimeout TimeoutMetadata (r:1 w:0) + // Storage: FeeLock AccountFeeLockData (r:1 w:1) + // Storage: FeeLock FeeLockMetadata (r:1 w:0) // Storage: Tokens Accounts (r:1 w:1) fn unlock_fee() -> Weight { - (Weight::from_ref_time(53_240_000)) + (Weight::from_ref_time(48_631_000)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -81,17 +81,17 @@ impl pallet_fee_lock::WeightInfo for ModuleWeight { // For backwards compatibility and tests impl WeightInfo for () { - // Storage: TokenTimeout TimeoutMetadata (r:1 w:1) + // Storage: FeeLock FeeLockMetadata (r:1 w:1) fn update_fee_lock_metadata() -> Weight { - (Weight::from_ref_time(36_140_000)) + (Weight::from_ref_time(33_569_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } - // Storage: TokenTimeout AccountTimeoutData (r:1 w:1) - // Storage: TokenTimeout TimeoutMetadata (r:1 w:0) + // Storage: FeeLock AccountFeeLockData (r:1 w:1) + // Storage: FeeLock FeeLockMetadata (r:1 w:0) // Storage: Tokens Accounts (r:1 w:1) fn unlock_fee() -> Weight { - (Weight::from_ref_time(53_240_000)) + (Weight::from_ref_time(48_631_000)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } diff --git a/runtime/mangata-rococo/src/weights/pallet_issuance.rs b/runtime/mangata-rococo/src/weights/pallet_issuance.rs index 63592dc30c..b97af2e208 100644 --- a/runtime/mangata-rococo/src/weights/pallet_issuance.rs +++ b/runtime/mangata-rococo/src/weights/pallet_issuance.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for pallet_issuance //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -68,13 +68,13 @@ impl pallet_issuance::WeightInfo for ModuleWeight { // Storage: Issuance IsTGEFinalized (r:1 w:0) // Storage: Tokens TotalIssuance (r:1 w:0) fn init_issuance_config() -> Weight { - (Weight::from_ref_time(32_850_000)) + (Weight::from_ref_time(31_560_000)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: Issuance IsTGEFinalized (r:1 w:1) fn finalize_tge() -> Weight { - (Weight::from_ref_time(22_050_000)) + (Weight::from_ref_time(22_440_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -86,9 +86,9 @@ impl pallet_issuance::WeightInfo for ModuleWeight { // Storage: Tokens Locks (r:3 w:3) // Storage: Issuance TGETotal (r:1 w:1) fn execute_tge(x: u32, ) -> Weight { - (Weight::from_ref_time(40_338_031)) - // Standard Error: 29_469 - .saturating_add((Weight::from_ref_time(60_308_257)).saturating_mul(x as u64)) + (Weight::from_ref_time(29_941_757)) + // Standard Error: 30_728 + .saturating_add((Weight::from_ref_time(61_997_015)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().reads((4 as u64).saturating_mul(x as u64))) .saturating_add(T::DbWeight::get().writes(2 as u64)) @@ -102,13 +102,13 @@ impl WeightInfo for () { // Storage: Issuance IsTGEFinalized (r:1 w:0) // Storage: Tokens TotalIssuance (r:1 w:0) fn init_issuance_config() -> Weight { - (Weight::from_ref_time(32_850_000)) + (Weight::from_ref_time(31_560_000)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: Issuance IsTGEFinalized (r:1 w:1) fn finalize_tge() -> Weight { - (Weight::from_ref_time(22_050_000)) + (Weight::from_ref_time(22_440_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -120,9 +120,9 @@ impl WeightInfo for () { // Storage: Tokens Locks (r:3 w:3) // Storage: Issuance TGETotal (r:1 w:1) fn execute_tge(x: u32, ) -> Weight { - (Weight::from_ref_time(40_338_031)) - // Standard Error: 29_469 - .saturating_add((Weight::from_ref_time(60_308_257)).saturating_mul(x as u64)) + (Weight::from_ref_time(29_941_757)) + // Standard Error: 30_728 + .saturating_add((Weight::from_ref_time(61_997_015)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().reads((4 as u64).saturating_mul(x as u64))) .saturating_add(RocksDbWeight::get().writes(2 as u64)) diff --git a/runtime/mangata-rococo/src/weights/pallet_multipurpose_liquidity.rs b/runtime/mangata-rococo/src/weights/pallet_multipurpose_liquidity.rs index 8cd63f519a..296878faf6 100644 --- a/runtime/mangata-rococo/src/weights/pallet_multipurpose_liquidity.rs +++ b/runtime/mangata-rococo/src/weights/pallet_multipurpose_liquidity.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for pallet_multipurpose_liquidity //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -70,7 +70,7 @@ impl pallet_multipurpose_liquidity::WeightInfo for Modu // Storage: MultiPurposeLiquidity ReserveStatus (r:1 w:1) // Storage: MultiPurposeLiquidity RelockStatus (r:1 w:1) fn reserve_vesting_liquidity_tokens() -> Weight { - (Weight::from_ref_time(116_820_000)) + (Weight::from_ref_time(116_880_000)) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(5 as u64)) } @@ -80,7 +80,7 @@ impl pallet_multipurpose_liquidity::WeightInfo for Modu // Storage: Vesting Vesting (r:1 w:1) // Storage: Tokens Locks (r:1 w:1) fn unreserve_and_relock_instance() -> Weight { - (Weight::from_ref_time(108_540_000)) + (Weight::from_ref_time(107_990_000)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(5 as u64)) } @@ -95,7 +95,7 @@ impl WeightInfo for () { // Storage: MultiPurposeLiquidity ReserveStatus (r:1 w:1) // Storage: MultiPurposeLiquidity RelockStatus (r:1 w:1) fn reserve_vesting_liquidity_tokens() -> Weight { - (Weight::from_ref_time(116_820_000)) + (Weight::from_ref_time(116_880_000)) .saturating_add(RocksDbWeight::get().reads(6 as u64)) .saturating_add(RocksDbWeight::get().writes(5 as u64)) } @@ -105,7 +105,7 @@ impl WeightInfo for () { // Storage: Vesting Vesting (r:1 w:1) // Storage: Tokens Locks (r:1 w:1) fn unreserve_and_relock_instance() -> Weight { - (Weight::from_ref_time(108_540_000)) + (Weight::from_ref_time(107_990_000)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(5 as u64)) } diff --git a/runtime/mangata-rococo/src/weights/pallet_session.rs b/runtime/mangata-rococo/src/weights/pallet_session.rs index 35ec7d5015..4593254b75 100644 --- a/runtime/mangata-rococo/src/weights/pallet_session.rs +++ b/runtime/mangata-rococo/src/weights/pallet_session.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for pallet_session //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -66,14 +66,14 @@ impl pallet_session::WeightInfo for ModuleWeight { // Storage: Session NextKeys (r:1 w:1) // Storage: Session KeyOwner (r:1 w:1) fn set_keys() -> Weight { - (Weight::from_ref_time(30_629_000)) + (Weight::from_ref_time(30_280_000)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } // Storage: Session NextKeys (r:1 w:1) // Storage: Session KeyOwner (r:0 w:1) fn purge_keys() -> Weight { - (Weight::from_ref_time(26_289_000)) + (Weight::from_ref_time(24_820_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -84,14 +84,14 @@ impl WeightInfo for () { // Storage: Session NextKeys (r:1 w:1) // Storage: Session KeyOwner (r:1 w:1) fn set_keys() -> Weight { - (Weight::from_ref_time(30_629_000)) + (Weight::from_ref_time(30_280_000)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } // Storage: Session NextKeys (r:1 w:1) // Storage: Session KeyOwner (r:0 w:1) fn purge_keys() -> Weight { - (Weight::from_ref_time(26_289_000)) + (Weight::from_ref_time(24_820_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } diff --git a/runtime/mangata-rococo/src/weights/pallet_timestamp.rs b/runtime/mangata-rococo/src/weights/pallet_timestamp.rs index 8661e2fffa..1a11240b07 100644 --- a/runtime/mangata-rococo/src/weights/pallet_timestamp.rs +++ b/runtime/mangata-rococo/src/weights/pallet_timestamp.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for pallet_timestamp //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -65,12 +65,12 @@ pub struct ModuleWeight(PhantomData); impl pallet_timestamp::WeightInfo for ModuleWeight { // Storage: Timestamp Now (r:1 w:1) fn set() -> Weight { - (Weight::from_ref_time(12_260_000)) + (Weight::from_ref_time(12_030_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } fn on_finalize() -> Weight { - (Weight::from_ref_time(6_320_000)) + (Weight::from_ref_time(5_610_000)) } } @@ -78,11 +78,11 @@ impl pallet_timestamp::WeightInfo for ModuleWeight { impl WeightInfo for () { // Storage: Timestamp Now (r:1 w:1) fn set() -> Weight { - (Weight::from_ref_time(12_260_000)) + (Weight::from_ref_time(12_030_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } fn on_finalize() -> Weight { - (Weight::from_ref_time(6_320_000)) + (Weight::from_ref_time(5_610_000)) } } diff --git a/runtime/mangata-rococo/src/weights/pallet_treasury.rs b/runtime/mangata-rococo/src/weights/pallet_treasury.rs index 8af6b0a5b6..70bd269d71 100644 --- a/runtime/mangata-rococo/src/weights/pallet_treasury.rs +++ b/runtime/mangata-rococo/src/weights/pallet_treasury.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for pallet_treasury //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -68,13 +68,13 @@ pub trait WeightInfo { pub struct ModuleWeight(PhantomData); impl pallet_treasury::WeightInfo for ModuleWeight { fn spend() -> Weight { - (Weight::from_ref_time(360_000)) + (Weight::from_ref_time(371_000)) } // Storage: Tokens Accounts (r:1 w:1) // Storage: Treasury ProposalCount (r:1 w:1) // Storage: Treasury Proposals (r:0 w:1) fn propose_spend() -> Weight { - (Weight::from_ref_time(47_560_000)) + (Weight::from_ref_time(46_920_000)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } @@ -82,34 +82,35 @@ impl pallet_treasury::WeightInfo for ModuleWeight { // Storage: Tokens Accounts (r:1 w:1) // Storage: Tokens TotalIssuance (r:1 w:1) fn reject_proposal() -> Weight { - (Weight::from_ref_time(56_170_000)) + (Weight::from_ref_time(53_080_000)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: Treasury Proposals (r:1 w:0) // Storage: Treasury Approvals (r:1 w:1) fn approve_proposal(p: u32, ) -> Weight { - (Weight::from_ref_time(22_167_627)) - // Standard Error: 1_510 - .saturating_add((Weight::from_ref_time(307_751)).saturating_mul(p as u64)) + (Weight::from_ref_time(20_847_608)) + // Standard Error: 1_572 + .saturating_add((Weight::from_ref_time(91_776)).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: Treasury Approvals (r:1 w:1) fn remove_approval() -> Weight { - (Weight::from_ref_time(16_720_000)) + (Weight::from_ref_time(14_040_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: Tokens Accounts (r:1 w:0) + // Storage: Treasury Inactive (r:1 w:0) // Storage: Treasury Approvals (r:1 w:1) // Storage: Tokens TotalIssuance (r:1 w:1) // Storage: Treasury Proposals (r:2 w:0) fn on_initialize_proposals(p: u32, ) -> Weight { - (Weight::from_ref_time(37_189_330)) - // Standard Error: 5_817 - .saturating_add((Weight::from_ref_time(3_624_621)).saturating_mul(p as u64)) - .saturating_add(T::DbWeight::get().reads(2 as u64)) + (Weight::from_ref_time(40_206_246)) + // Standard Error: 6_747 + .saturating_add((Weight::from_ref_time(3_467_705)).saturating_mul(p as u64)) + .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(p as u64))) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -118,13 +119,13 @@ impl pallet_treasury::WeightInfo for ModuleWeight { // For backwards compatibility and tests impl WeightInfo for () { fn spend() -> Weight { - (Weight::from_ref_time(360_000)) + (Weight::from_ref_time(371_000)) } // Storage: Tokens Accounts (r:1 w:1) // Storage: Treasury ProposalCount (r:1 w:1) // Storage: Treasury Proposals (r:0 w:1) fn propose_spend() -> Weight { - (Weight::from_ref_time(47_560_000)) + (Weight::from_ref_time(46_920_000)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } @@ -132,34 +133,35 @@ impl WeightInfo for () { // Storage: Tokens Accounts (r:1 w:1) // Storage: Tokens TotalIssuance (r:1 w:1) fn reject_proposal() -> Weight { - (Weight::from_ref_time(56_170_000)) + (Weight::from_ref_time(53_080_000)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: Treasury Proposals (r:1 w:0) // Storage: Treasury Approvals (r:1 w:1) fn approve_proposal(p: u32, ) -> Weight { - (Weight::from_ref_time(22_167_627)) - // Standard Error: 1_510 - .saturating_add((Weight::from_ref_time(307_751)).saturating_mul(p as u64)) + (Weight::from_ref_time(20_847_608)) + // Standard Error: 1_572 + .saturating_add((Weight::from_ref_time(91_776)).saturating_mul(p as u64)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: Treasury Approvals (r:1 w:1) fn remove_approval() -> Weight { - (Weight::from_ref_time(16_720_000)) + (Weight::from_ref_time(14_040_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: Tokens Accounts (r:1 w:0) + // Storage: Treasury Inactive (r:1 w:0) // Storage: Treasury Approvals (r:1 w:1) // Storage: Tokens TotalIssuance (r:1 w:1) // Storage: Treasury Proposals (r:2 w:0) fn on_initialize_proposals(p: u32, ) -> Weight { - (Weight::from_ref_time(37_189_330)) - // Standard Error: 5_817 - .saturating_add((Weight::from_ref_time(3_624_621)).saturating_mul(p as u64)) - .saturating_add(RocksDbWeight::get().reads(2 as u64)) + (Weight::from_ref_time(40_206_246)) + // Standard Error: 6_747 + .saturating_add((Weight::from_ref_time(3_467_705)).saturating_mul(p as u64)) + .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(p as u64))) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } diff --git a/runtime/mangata-rococo/src/weights/pallet_utility.rs b/runtime/mangata-rococo/src/weights/pallet_utility_mangata.rs similarity index 64% rename from runtime/mangata-rococo/src/weights/pallet_utility.rs rename to runtime/mangata-rococo/src/weights/pallet_utility_mangata.rs index d7a128fee0..740ac9e73e 100644 --- a/runtime/mangata-rococo/src/weights/pallet_utility.rs +++ b/runtime/mangata-rococo/src/weights/pallet_utility_mangata.rs @@ -16,10 +16,10 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -//! Autogenerated weights for pallet_utility +//! Autogenerated weights for pallet_utility_mangata //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -54,7 +54,7 @@ use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use sp_std::marker::PhantomData; -/// Weight functions needed for pallet_utility. +/// Weight functions needed for pallet_utility_mangata. pub trait WeightInfo { fn batch(c: u32, ) -> Weight; fn as_derivative() -> Weight; @@ -63,53 +63,53 @@ pub trait WeightInfo { fn force_batch(c: u32, ) -> Weight; } -/// Weights for pallet_utility using the Mangata node and recommended hardware. +/// Weights for pallet_utility_mangata using the Mangata node and recommended hardware. pub struct ModuleWeight(PhantomData); -impl pallet_utility::WeightInfo for ModuleWeight { +impl pallet_utility_mangata::WeightInfo for ModuleWeight { fn batch(c: u32, ) -> Weight { - (Weight::from_ref_time(20_194_974)) - // Standard Error: 2_172 - .saturating_add((Weight::from_ref_time(6_810_959)).saturating_mul(c as u64)) + (Weight::from_ref_time(19_750_743)) + // Standard Error: 2_196 + .saturating_add((Weight::from_ref_time(7_212_724)).saturating_mul(c as u64)) } fn as_derivative() -> Weight { - (Weight::from_ref_time(10_880_000)) + (Weight::from_ref_time(10_920_000)) } fn batch_all(c: u32, ) -> Weight { - (Weight::from_ref_time(28_041_086)) - // Standard Error: 1_589 - .saturating_add((Weight::from_ref_time(7_087_481)).saturating_mul(c as u64)) + (Weight::from_ref_time(27_064_753)) + // Standard Error: 2_636 + .saturating_add((Weight::from_ref_time(7_427_454)).saturating_mul(c as u64)) } fn dispatch_as() -> Weight { - (Weight::from_ref_time(21_580_000)) + (Weight::from_ref_time(21_220_000)) } fn force_batch(c: u32, ) -> Weight { - (Weight::from_ref_time(24_615_257)) - // Standard Error: 1_425 - .saturating_add((Weight::from_ref_time(6_806_940)).saturating_mul(c as u64)) + (Weight::from_ref_time(27_405_583)) + // Standard Error: 1_738 + .saturating_add((Weight::from_ref_time(7_179_158)).saturating_mul(c as u64)) } } // For backwards compatibility and tests impl WeightInfo for () { fn batch(c: u32, ) -> Weight { - (Weight::from_ref_time(20_194_974)) - // Standard Error: 2_172 - .saturating_add((Weight::from_ref_time(6_810_959)).saturating_mul(c as u64)) + (Weight::from_ref_time(19_750_743)) + // Standard Error: 2_196 + .saturating_add((Weight::from_ref_time(7_212_724)).saturating_mul(c as u64)) } fn as_derivative() -> Weight { - (Weight::from_ref_time(10_880_000)) + (Weight::from_ref_time(10_920_000)) } fn batch_all(c: u32, ) -> Weight { - (Weight::from_ref_time(28_041_086)) - // Standard Error: 1_589 - .saturating_add((Weight::from_ref_time(7_087_481)).saturating_mul(c as u64)) + (Weight::from_ref_time(27_064_753)) + // Standard Error: 2_636 + .saturating_add((Weight::from_ref_time(7_427_454)).saturating_mul(c as u64)) } fn dispatch_as() -> Weight { - (Weight::from_ref_time(21_580_000)) + (Weight::from_ref_time(21_220_000)) } fn force_batch(c: u32, ) -> Weight { - (Weight::from_ref_time(24_615_257)) - // Standard Error: 1_425 - .saturating_add((Weight::from_ref_time(6_806_940)).saturating_mul(c as u64)) + (Weight::from_ref_time(27_405_583)) + // Standard Error: 1_738 + .saturating_add((Weight::from_ref_time(7_179_158)).saturating_mul(c as u64)) } } diff --git a/runtime/mangata-rococo/src/weights/pallet_vesting_mangata.rs b/runtime/mangata-rococo/src/weights/pallet_vesting_mangata.rs index 43c4bdccb2..467809ddb6 100644 --- a/runtime/mangata-rococo/src/weights/pallet_vesting_mangata.rs +++ b/runtime/mangata-rococo/src/weights/pallet_vesting_mangata.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for pallet_vesting_mangata //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -72,9 +72,9 @@ impl pallet_vesting_mangata::WeightInfo for ModuleWeigh // Storage: Tokens Locks (r:1 w:1) // Storage: Tokens Accounts (r:1 w:1) fn vest_locked(_l: u32, s: u32, ) -> Weight { - (Weight::from_ref_time(59_991_857)) - // Standard Error: 6_228 - .saturating_add((Weight::from_ref_time(204_519)).saturating_mul(s as u64)) + (Weight::from_ref_time(55_253_850)) + // Standard Error: 6_193 + .saturating_add((Weight::from_ref_time(181_187)).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -82,9 +82,9 @@ impl pallet_vesting_mangata::WeightInfo for ModuleWeigh // Storage: Tokens Locks (r:1 w:1) // Storage: Tokens Accounts (r:1 w:1) fn vest_unlocked(_l: u32, s: u32, ) -> Weight { - (Weight::from_ref_time(68_770_488)) - // Standard Error: 3_643 - .saturating_add((Weight::from_ref_time(118_658)).saturating_mul(s as u64)) + (Weight::from_ref_time(64_355_206)) + // Standard Error: 4_243 + .saturating_add((Weight::from_ref_time(101_142)).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } @@ -92,9 +92,9 @@ impl pallet_vesting_mangata::WeightInfo for ModuleWeigh // Storage: Tokens Locks (r:1 w:1) // Storage: Tokens Accounts (r:1 w:1) fn vest_other_locked(_l: u32, s: u32, ) -> Weight { - (Weight::from_ref_time(58_757_859)) - // Standard Error: 6_085 - .saturating_add((Weight::from_ref_time(198_617)).saturating_mul(s as u64)) + (Weight::from_ref_time(55_010_059)) + // Standard Error: 6_845 + .saturating_add((Weight::from_ref_time(198_043)).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -103,9 +103,9 @@ impl pallet_vesting_mangata::WeightInfo for ModuleWeigh // Storage: Tokens Accounts (r:1 w:1) // Storage: System Account (r:1 w:1) fn vest_other_unlocked(_l: u32, s: u32, ) -> Weight { - (Weight::from_ref_time(66_969_543)) - // Standard Error: 3_743 - .saturating_add((Weight::from_ref_time(118_563)).saturating_mul(s as u64)) + (Weight::from_ref_time(63_694_757)) + // Standard Error: 3_801 + .saturating_add((Weight::from_ref_time(110_767)).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } @@ -114,9 +114,9 @@ impl pallet_vesting_mangata::WeightInfo for ModuleWeigh // Storage: System Account (r:1 w:0) // Storage: Tokens Locks (r:1 w:1) fn force_vested_transfer(_l: u32, s: u32, ) -> Weight { - (Weight::from_ref_time(85_464_533)) - // Standard Error: 5_912 - .saturating_add((Weight::from_ref_time(230_641)).saturating_mul(s as u64)) + (Weight::from_ref_time(84_539_270)) + // Standard Error: 6_263 + .saturating_add((Weight::from_ref_time(193_327)).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } @@ -124,9 +124,9 @@ impl pallet_vesting_mangata::WeightInfo for ModuleWeigh // Storage: Tokens Locks (r:1 w:1) // Storage: Tokens Accounts (r:1 w:1) fn not_unlocking_merge_schedules(_l: u32, s: u32, ) -> Weight { - (Weight::from_ref_time(59_642_478)) - // Standard Error: 6_355 - .saturating_add((Weight::from_ref_time(205_531)).saturating_mul(s as u64)) + (Weight::from_ref_time(56_297_385)) + // Standard Error: 5_967 + .saturating_add((Weight::from_ref_time(192_784)).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -134,9 +134,9 @@ impl pallet_vesting_mangata::WeightInfo for ModuleWeigh // Storage: Tokens Locks (r:1 w:1) // Storage: Tokens Accounts (r:1 w:1) fn unlocking_merge_schedules(_l: u32, s: u32, ) -> Weight { - (Weight::from_ref_time(59_756_037)) - // Standard Error: 6_206 - .saturating_add((Weight::from_ref_time(199_543)).saturating_mul(s as u64)) + (Weight::from_ref_time(56_029_139)) + // Standard Error: 6_257 + .saturating_add((Weight::from_ref_time(198_422)).saturating_mul(s as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -148,9 +148,9 @@ impl WeightInfo for () { // Storage: Tokens Locks (r:1 w:1) // Storage: Tokens Accounts (r:1 w:1) fn vest_locked(_l: u32, s: u32, ) -> Weight { - (Weight::from_ref_time(59_991_857)) - // Standard Error: 6_228 - .saturating_add((Weight::from_ref_time(204_519)).saturating_mul(s as u64)) + (Weight::from_ref_time(55_253_850)) + // Standard Error: 6_193 + .saturating_add((Weight::from_ref_time(181_187)).saturating_mul(s as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } @@ -158,9 +158,9 @@ impl WeightInfo for () { // Storage: Tokens Locks (r:1 w:1) // Storage: Tokens Accounts (r:1 w:1) fn vest_unlocked(_l: u32, s: u32, ) -> Weight { - (Weight::from_ref_time(68_770_488)) - // Standard Error: 3_643 - .saturating_add((Weight::from_ref_time(118_658)).saturating_mul(s as u64)) + (Weight::from_ref_time(64_355_206)) + // Standard Error: 4_243 + .saturating_add((Weight::from_ref_time(101_142)).saturating_mul(s as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } @@ -168,9 +168,9 @@ impl WeightInfo for () { // Storage: Tokens Locks (r:1 w:1) // Storage: Tokens Accounts (r:1 w:1) fn vest_other_locked(_l: u32, s: u32, ) -> Weight { - (Weight::from_ref_time(58_757_859)) - // Standard Error: 6_085 - .saturating_add((Weight::from_ref_time(198_617)).saturating_mul(s as u64)) + (Weight::from_ref_time(55_010_059)) + // Standard Error: 6_845 + .saturating_add((Weight::from_ref_time(198_043)).saturating_mul(s as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } @@ -179,9 +179,9 @@ impl WeightInfo for () { // Storage: Tokens Accounts (r:1 w:1) // Storage: System Account (r:1 w:1) fn vest_other_unlocked(_l: u32, s: u32, ) -> Weight { - (Weight::from_ref_time(66_969_543)) - // Standard Error: 3_743 - .saturating_add((Weight::from_ref_time(118_563)).saturating_mul(s as u64)) + (Weight::from_ref_time(63_694_757)) + // Standard Error: 3_801 + .saturating_add((Weight::from_ref_time(110_767)).saturating_mul(s as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } @@ -190,9 +190,9 @@ impl WeightInfo for () { // Storage: System Account (r:1 w:0) // Storage: Tokens Locks (r:1 w:1) fn force_vested_transfer(_l: u32, s: u32, ) -> Weight { - (Weight::from_ref_time(85_464_533)) - // Standard Error: 5_912 - .saturating_add((Weight::from_ref_time(230_641)).saturating_mul(s as u64)) + (Weight::from_ref_time(84_539_270)) + // Standard Error: 6_263 + .saturating_add((Weight::from_ref_time(193_327)).saturating_mul(s as u64)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } @@ -200,9 +200,9 @@ impl WeightInfo for () { // Storage: Tokens Locks (r:1 w:1) // Storage: Tokens Accounts (r:1 w:1) fn not_unlocking_merge_schedules(_l: u32, s: u32, ) -> Weight { - (Weight::from_ref_time(59_642_478)) - // Standard Error: 6_355 - .saturating_add((Weight::from_ref_time(205_531)).saturating_mul(s as u64)) + (Weight::from_ref_time(56_297_385)) + // Standard Error: 5_967 + .saturating_add((Weight::from_ref_time(192_784)).saturating_mul(s as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } @@ -210,9 +210,9 @@ impl WeightInfo for () { // Storage: Tokens Locks (r:1 w:1) // Storage: Tokens Accounts (r:1 w:1) fn unlocking_merge_schedules(_l: u32, s: u32, ) -> Weight { - (Weight::from_ref_time(59_756_037)) - // Standard Error: 6_206 - .saturating_add((Weight::from_ref_time(199_543)).saturating_mul(s as u64)) + (Weight::from_ref_time(56_029_139)) + // Standard Error: 6_257 + .saturating_add((Weight::from_ref_time(198_422)).saturating_mul(s as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } diff --git a/runtime/mangata-rococo/src/weights/pallet_xyk.rs b/runtime/mangata-rococo/src/weights/pallet_xyk.rs index 0e9f05bfca..baff050895 100644 --- a/runtime/mangata-rococo/src/weights/pallet_xyk.rs +++ b/runtime/mangata-rococo/src/weights/pallet_xyk.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for pallet_xyk //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -58,7 +58,9 @@ use sp_std::marker::PhantomData; pub trait WeightInfo { fn create_pool() -> Weight; fn sell_asset() -> Weight; + fn multiswap_sell_asset(x: u32, ) -> Weight; fn buy_asset() -> Weight; + fn multiswap_buy_asset(x: u32, ) -> Weight; fn mint_liquidity() -> Weight; fn mint_liquidity_using_vesting_native_tokens() -> Weight; fn burn_liquidity() -> Weight; @@ -67,7 +69,6 @@ pub trait WeightInfo { fn update_pool_promotion() -> Weight; fn activate_liquidity_v2() -> Weight; fn deactivate_liquidity_v2() -> Weight; - fn rewards_migrate_v1_to_v2() -> Weight; fn provide_liquidity_with_conversion() -> Weight; fn compound_rewards() -> Weight; } @@ -85,7 +86,7 @@ impl pallet_xyk::WeightInfo for ModuleWeight { // Storage: Xyk LiquidityAssets (r:0 w:1) // Storage: Xyk LiquidityPools (r:0 w:1) fn create_pool() -> Weight { - (Weight::from_ref_time(183_550_000)) + (Weight::from_ref_time(179_780_000)) .saturating_add(T::DbWeight::get().reads(14 as u64)) .saturating_add(T::DbWeight::get().writes(12 as u64)) } @@ -94,19 +95,45 @@ impl pallet_xyk::WeightInfo for ModuleWeight { // Storage: Tokens Accounts (r:6 w:6) // Storage: System Account (r:2 w:2) fn sell_asset() -> Weight { - (Weight::from_ref_time(194_540_000)) + (Weight::from_ref_time(191_420_000)) .saturating_add(T::DbWeight::get().reads(13 as u64)) .saturating_add(T::DbWeight::get().writes(9 as u64)) } + // Storage: AssetRegistry Metadata (r:3 w:0) + // Storage: Xyk Pools (r:6 w:4) + // Storage: Tokens Accounts (r:12 w:12) + // Storage: System Account (r:2 w:2) + // Storage: Tokens TotalIssuance (r:1 w:1) + fn multiswap_sell_asset(x: u32, ) -> Weight { + (Weight::from_ref_time(507_350_000)) + // Standard Error: 257_838 + .saturating_add((Weight::from_ref_time(195_587_916)).saturating_mul(x as u64)) + .saturating_add(T::DbWeight::get().reads((8 as u64).saturating_mul(x as u64))) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + .saturating_add(T::DbWeight::get().writes((6 as u64).saturating_mul(x as u64))) + } // Storage: AssetRegistry Metadata (r:2 w:0) // Storage: Xyk Pools (r:4 w:1) // Storage: Tokens Accounts (r:6 w:6) // Storage: System Account (r:2 w:2) fn buy_asset() -> Weight { - (Weight::from_ref_time(197_940_000)) + (Weight::from_ref_time(199_290_000)) .saturating_add(T::DbWeight::get().reads(14 as u64)) .saturating_add(T::DbWeight::get().writes(9 as u64)) } + // Storage: AssetRegistry Metadata (r:3 w:0) + // Storage: Xyk Pools (r:6 w:4) + // Storage: Tokens Accounts (r:12 w:12) + // Storage: System Account (r:2 w:2) + // Storage: Tokens TotalIssuance (r:1 w:1) + fn multiswap_buy_asset(x: u32, ) -> Weight { + (Weight::from_ref_time(517_860_000)) + // Standard Error: 257_365 + .saturating_add((Weight::from_ref_time(201_135_267)).saturating_mul(x as u64)) + .saturating_add(T::DbWeight::get().reads((8 as u64).saturating_mul(x as u64))) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + .saturating_add(T::DbWeight::get().writes((6 as u64).saturating_mul(x as u64))) + } // Storage: AssetRegistry Metadata (r:2 w:0) // Storage: Xyk LiquidityAssets (r:1 w:0) // Storage: Xyk Pools (r:1 w:1) @@ -118,7 +145,7 @@ impl pallet_xyk::WeightInfo for ModuleWeight { // Storage: Xyk LiquidityMiningActivePoolV2 (r:1 w:1) // Storage: MultiPurposeLiquidity ReserveStatus (r:1 w:1) fn mint_liquidity() -> Weight { - (Weight::from_ref_time(193_920_000)) + (Weight::from_ref_time(195_100_000)) .saturating_add(T::DbWeight::get().reads(15 as u64)) .saturating_add(T::DbWeight::get().writes(10 as u64)) } @@ -131,7 +158,7 @@ impl pallet_xyk::WeightInfo for ModuleWeight { // Storage: Tokens TotalIssuance (r:1 w:1) // Storage: Tokens NextCurrencyId (r:1 w:0) fn mint_liquidity_using_vesting_native_tokens() -> Weight { - (Weight::from_ref_time(226_151_000)) + (Weight::from_ref_time(228_650_000)) .saturating_add(T::DbWeight::get().reads(14 as u64)) .saturating_add(T::DbWeight::get().writes(11 as u64)) } @@ -146,7 +173,7 @@ impl pallet_xyk::WeightInfo for ModuleWeight { // Storage: Tokens TotalIssuance (r:1 w:1) // Storage: Xyk LiquidityPools (r:0 w:1) fn burn_liquidity() -> Weight { - (Weight::from_ref_time(192_260_000)) + (Weight::from_ref_time(190_170_000)) .saturating_add(T::DbWeight::get().reads(14 as u64)) .saturating_add(T::DbWeight::get().writes(14 as u64)) } @@ -154,7 +181,7 @@ impl pallet_xyk::WeightInfo for ModuleWeight { // Storage: Issuance PromotedPoolsRewardsV2 (r:1 w:0) // Storage: Tokens Accounts (r:2 w:2) fn claim_rewards_v2() -> Weight { - (Weight::from_ref_time(96_260_000)) + (Weight::from_ref_time(90_350_000)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } @@ -162,13 +189,13 @@ impl pallet_xyk::WeightInfo for ModuleWeight { // Storage: Issuance PromotedPoolsRewardsV2 (r:1 w:0) // Storage: Tokens Accounts (r:2 w:2) fn claim_rewards_all_v2() -> Weight { - (Weight::from_ref_time(93_710_000)) + (Weight::from_ref_time(87_030_000)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: Issuance PromotedPoolsRewardsV2 (r:1 w:1) fn update_pool_promotion() -> Weight { - (Weight::from_ref_time(33_940_000)) + (Weight::from_ref_time(29_430_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -178,7 +205,7 @@ impl pallet_xyk::WeightInfo for ModuleWeight { // Storage: Xyk RewardsInfo (r:1 w:1) // Storage: Xyk LiquidityMiningActivePoolV2 (r:1 w:1) fn activate_liquidity_v2() -> Weight { - (Weight::from_ref_time(100_200_000)) + (Weight::from_ref_time(97_100_000)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } @@ -188,27 +215,10 @@ impl pallet_xyk::WeightInfo for ModuleWeight { // Storage: MultiPurposeLiquidity ReserveStatus (r:1 w:1) // Storage: Tokens Accounts (r:1 w:1) fn deactivate_liquidity_v2() -> Weight { - (Weight::from_ref_time(94_260_000)) + (Weight::from_ref_time(92_790_000)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } - // Storage: Issuance PromotedPoolsRewards (r:1 w:1) - // Storage: Issuance PromotedPoolsRewardsV2 (r:1 w:0) - // Storage: Xyk LiquidityMiningActiveUser (r:1 w:1) - // Storage: Xyk LiquidityMiningActivePool (r:1 w:1) - // Storage: Xyk LiquidityMiningUserToBeClaimed (r:1 w:1) - // Storage: Xyk LiquidityMiningUserClaimed (r:1 w:1) - // Storage: Xyk LiquidityMiningUser (r:1 w:1) - // Storage: Xyk LiquidityMiningPool (r:1 w:1) - // Storage: Tokens Accounts (r:2 w:2) - // Storage: System Account (r:1 w:1) - // Storage: Xyk LiquidityMiningActivePoolV2 (r:1 w:1) - // Storage: Xyk RewardsInfo (r:0 w:1) - fn rewards_migrate_v1_to_v2() -> Weight { - (Weight::from_ref_time(135_540_000)) - .saturating_add(T::DbWeight::get().reads(12 as u64)) - .saturating_add(T::DbWeight::get().writes(12 as u64)) - } // Storage: Xyk LiquidityPools (r:1 w:0) // Storage: AssetRegistry Metadata (r:2 w:0) // Storage: Xyk Pools (r:4 w:1) @@ -219,7 +229,7 @@ impl pallet_xyk::WeightInfo for ModuleWeight { // Storage: Tokens NextCurrencyId (r:1 w:0) // Storage: Issuance PromotedPoolsRewardsV2 (r:1 w:0) fn provide_liquidity_with_conversion() -> Weight { - (Weight::from_ref_time(306_970_000)) + (Weight::from_ref_time(306_530_000)) .saturating_add(T::DbWeight::get().reads(21 as u64)) .saturating_add(T::DbWeight::get().writes(11 as u64)) } @@ -236,7 +246,7 @@ impl pallet_xyk::WeightInfo for ModuleWeight { // Storage: Xyk LiquidityMiningActivePoolV2 (r:1 w:1) // Storage: MultiPurposeLiquidity ReserveStatus (r:1 w:1) fn compound_rewards() -> Weight { - (Weight::from_ref_time(417_180_000)) + (Weight::from_ref_time(422_290_000)) .saturating_add(T::DbWeight::get().reads(24 as u64)) .saturating_add(T::DbWeight::get().writes(16 as u64)) } @@ -254,7 +264,7 @@ impl WeightInfo for () { // Storage: Xyk LiquidityAssets (r:0 w:1) // Storage: Xyk LiquidityPools (r:0 w:1) fn create_pool() -> Weight { - (Weight::from_ref_time(183_550_000)) + (Weight::from_ref_time(179_780_000)) .saturating_add(RocksDbWeight::get().reads(14 as u64)) .saturating_add(RocksDbWeight::get().writes(12 as u64)) } @@ -263,19 +273,45 @@ impl WeightInfo for () { // Storage: Tokens Accounts (r:6 w:6) // Storage: System Account (r:2 w:2) fn sell_asset() -> Weight { - (Weight::from_ref_time(194_540_000)) + (Weight::from_ref_time(191_420_000)) .saturating_add(RocksDbWeight::get().reads(13 as u64)) .saturating_add(RocksDbWeight::get().writes(9 as u64)) } + // Storage: AssetRegistry Metadata (r:3 w:0) + // Storage: Xyk Pools (r:6 w:4) + // Storage: Tokens Accounts (r:12 w:12) + // Storage: System Account (r:2 w:2) + // Storage: Tokens TotalIssuance (r:1 w:1) + fn multiswap_sell_asset(x: u32, ) -> Weight { + (Weight::from_ref_time(507_350_000)) + // Standard Error: 257_838 + .saturating_add((Weight::from_ref_time(195_587_916)).saturating_mul(x as u64)) + .saturating_add(RocksDbWeight::get().reads((8 as u64).saturating_mul(x as u64))) + .saturating_add(RocksDbWeight::get().writes(1 as u64)) + .saturating_add(RocksDbWeight::get().writes((6 as u64).saturating_mul(x as u64))) + } // Storage: AssetRegistry Metadata (r:2 w:0) // Storage: Xyk Pools (r:4 w:1) // Storage: Tokens Accounts (r:6 w:6) // Storage: System Account (r:2 w:2) fn buy_asset() -> Weight { - (Weight::from_ref_time(197_940_000)) + (Weight::from_ref_time(199_290_000)) .saturating_add(RocksDbWeight::get().reads(14 as u64)) .saturating_add(RocksDbWeight::get().writes(9 as u64)) } + // Storage: AssetRegistry Metadata (r:3 w:0) + // Storage: Xyk Pools (r:6 w:4) + // Storage: Tokens Accounts (r:12 w:12) + // Storage: System Account (r:2 w:2) + // Storage: Tokens TotalIssuance (r:1 w:1) + fn multiswap_buy_asset(x: u32, ) -> Weight { + (Weight::from_ref_time(517_860_000)) + // Standard Error: 257_365 + .saturating_add((Weight::from_ref_time(201_135_267)).saturating_mul(x as u64)) + .saturating_add(RocksDbWeight::get().reads((8 as u64).saturating_mul(x as u64))) + .saturating_add(RocksDbWeight::get().writes(1 as u64)) + .saturating_add(RocksDbWeight::get().writes((6 as u64).saturating_mul(x as u64))) + } // Storage: AssetRegistry Metadata (r:2 w:0) // Storage: Xyk LiquidityAssets (r:1 w:0) // Storage: Xyk Pools (r:1 w:1) @@ -287,7 +323,7 @@ impl WeightInfo for () { // Storage: Xyk LiquidityMiningActivePoolV2 (r:1 w:1) // Storage: MultiPurposeLiquidity ReserveStatus (r:1 w:1) fn mint_liquidity() -> Weight { - (Weight::from_ref_time(193_920_000)) + (Weight::from_ref_time(195_100_000)) .saturating_add(RocksDbWeight::get().reads(15 as u64)) .saturating_add(RocksDbWeight::get().writes(10 as u64)) } @@ -300,7 +336,7 @@ impl WeightInfo for () { // Storage: Tokens TotalIssuance (r:1 w:1) // Storage: Tokens NextCurrencyId (r:1 w:0) fn mint_liquidity_using_vesting_native_tokens() -> Weight { - (Weight::from_ref_time(226_151_000)) + (Weight::from_ref_time(228_650_000)) .saturating_add(RocksDbWeight::get().reads(14 as u64)) .saturating_add(RocksDbWeight::get().writes(11 as u64)) } @@ -315,7 +351,7 @@ impl WeightInfo for () { // Storage: Tokens TotalIssuance (r:1 w:1) // Storage: Xyk LiquidityPools (r:0 w:1) fn burn_liquidity() -> Weight { - (Weight::from_ref_time(192_260_000)) + (Weight::from_ref_time(190_170_000)) .saturating_add(RocksDbWeight::get().reads(14 as u64)) .saturating_add(RocksDbWeight::get().writes(14 as u64)) } @@ -323,7 +359,7 @@ impl WeightInfo for () { // Storage: Issuance PromotedPoolsRewardsV2 (r:1 w:0) // Storage: Tokens Accounts (r:2 w:2) fn claim_rewards_v2() -> Weight { - (Weight::from_ref_time(96_260_000)) + (Weight::from_ref_time(90_350_000)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } @@ -331,13 +367,13 @@ impl WeightInfo for () { // Storage: Issuance PromotedPoolsRewardsV2 (r:1 w:0) // Storage: Tokens Accounts (r:2 w:2) fn claim_rewards_all_v2() -> Weight { - (Weight::from_ref_time(93_710_000)) + (Weight::from_ref_time(87_030_000)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(3 as u64)) } // Storage: Issuance PromotedPoolsRewardsV2 (r:1 w:1) fn update_pool_promotion() -> Weight { - (Weight::from_ref_time(33_940_000)) + (Weight::from_ref_time(29_430_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -347,7 +383,7 @@ impl WeightInfo for () { // Storage: Xyk RewardsInfo (r:1 w:1) // Storage: Xyk LiquidityMiningActivePoolV2 (r:1 w:1) fn activate_liquidity_v2() -> Weight { - (Weight::from_ref_time(100_200_000)) + (Weight::from_ref_time(97_100_000)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } @@ -357,27 +393,10 @@ impl WeightInfo for () { // Storage: MultiPurposeLiquidity ReserveStatus (r:1 w:1) // Storage: Tokens Accounts (r:1 w:1) fn deactivate_liquidity_v2() -> Weight { - (Weight::from_ref_time(94_260_000)) + (Weight::from_ref_time(92_790_000)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().writes(4 as u64)) } - // Storage: Issuance PromotedPoolsRewards (r:1 w:1) - // Storage: Issuance PromotedPoolsRewardsV2 (r:1 w:0) - // Storage: Xyk LiquidityMiningActiveUser (r:1 w:1) - // Storage: Xyk LiquidityMiningActivePool (r:1 w:1) - // Storage: Xyk LiquidityMiningUserToBeClaimed (r:1 w:1) - // Storage: Xyk LiquidityMiningUserClaimed (r:1 w:1) - // Storage: Xyk LiquidityMiningUser (r:1 w:1) - // Storage: Xyk LiquidityMiningPool (r:1 w:1) - // Storage: Tokens Accounts (r:2 w:2) - // Storage: System Account (r:1 w:1) - // Storage: Xyk LiquidityMiningActivePoolV2 (r:1 w:1) - // Storage: Xyk RewardsInfo (r:0 w:1) - fn rewards_migrate_v1_to_v2() -> Weight { - (Weight::from_ref_time(135_540_000)) - .saturating_add(RocksDbWeight::get().reads(12 as u64)) - .saturating_add(RocksDbWeight::get().writes(12 as u64)) - } // Storage: Xyk LiquidityPools (r:1 w:0) // Storage: AssetRegistry Metadata (r:2 w:0) // Storage: Xyk Pools (r:4 w:1) @@ -388,7 +407,7 @@ impl WeightInfo for () { // Storage: Tokens NextCurrencyId (r:1 w:0) // Storage: Issuance PromotedPoolsRewardsV2 (r:1 w:0) fn provide_liquidity_with_conversion() -> Weight { - (Weight::from_ref_time(306_970_000)) + (Weight::from_ref_time(306_530_000)) .saturating_add(RocksDbWeight::get().reads(21 as u64)) .saturating_add(RocksDbWeight::get().writes(11 as u64)) } @@ -405,7 +424,7 @@ impl WeightInfo for () { // Storage: Xyk LiquidityMiningActivePoolV2 (r:1 w:1) // Storage: MultiPurposeLiquidity ReserveStatus (r:1 w:1) fn compound_rewards() -> Weight { - (Weight::from_ref_time(417_180_000)) + (Weight::from_ref_time(422_290_000)) .saturating_add(RocksDbWeight::get().reads(24 as u64)) .saturating_add(RocksDbWeight::get().writes(16 as u64)) } diff --git a/runtime/mangata-rococo/src/weights/parachain_staking.rs b/runtime/mangata-rococo/src/weights/parachain_staking.rs index 4e4264a15b..9926041f52 100644 --- a/runtime/mangata-rococo/src/weights/parachain_staking.rs +++ b/runtime/mangata-rococo/src/weights/parachain_staking.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for parachain_staking //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-02-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 // Executed Command: @@ -94,13 +94,13 @@ pub struct ModuleWeight(PhantomData); impl parachain_staking::WeightInfo for ModuleWeight { // Storage: ParachainStaking TotalSelected (r:1 w:1) fn set_total_selected() -> Weight { - (Weight::from_ref_time(24_350_000)) + (Weight::from_ref_time(24_450_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking CollatorCommission (r:1 w:1) fn set_collator_commission() -> Weight { - (Weight::from_ref_time(24_780_000)) + (Weight::from_ref_time(24_550_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -112,11 +112,11 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: Tokens Accounts (r:1 w:1) // Storage: ParachainStaking Total (r:1 w:1) fn join_candidates(x: u32, y: u32, ) -> Weight { - (Weight::from_ref_time(86_133_703)) - // Standard Error: 8_043 - .saturating_add((Weight::from_ref_time(533_770)).saturating_mul(x as u64)) - // Standard Error: 2_594 - .saturating_add((Weight::from_ref_time(83_926)).saturating_mul(y as u64)) + (Weight::from_ref_time(84_432_975)) + // Standard Error: 6_931 + .saturating_add((Weight::from_ref_time(340_211)).saturating_mul(x as u64)) + // Standard Error: 2_235 + .saturating_add((Weight::from_ref_time(84_897)).saturating_mul(y as u64)) .saturating_add(T::DbWeight::get().reads(7 as u64)) .saturating_add(T::DbWeight::get().writes(5 as u64)) } @@ -124,9 +124,9 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: ParachainStaking Round (r:1 w:0) // Storage: ParachainStaking CandidatePool (r:1 w:1) fn schedule_leave_candidates(x: u32, ) -> Weight { - (Weight::from_ref_time(46_728_747)) - // Standard Error: 5_272 - .saturating_add((Weight::from_ref_time(524_090)).saturating_mul(x as u64)) + (Weight::from_ref_time(44_154_958)) + // Standard Error: 4_382 + .saturating_add((Weight::from_ref_time(275_090)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -137,9 +137,9 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: ParachainStaking DelegatorState (r:1 w:1) // Storage: ParachainStaking Total (r:1 w:1) fn execute_leave_candidates(x: u32, ) -> Weight { - (Weight::from_ref_time(63_768_377)) - // Standard Error: 36_320 - .saturating_add((Weight::from_ref_time(25_162_816)).saturating_mul(x as u64)) + (Weight::from_ref_time(65_541_821)) + // Standard Error: 53_421 + .saturating_add((Weight::from_ref_time(25_563_077)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().reads((3 as u64).saturating_mul(x as u64))) .saturating_add(T::DbWeight::get().writes(1 as u64)) @@ -148,9 +148,9 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: ParachainStaking CandidateState (r:1 w:1) // Storage: ParachainStaking CandidatePool (r:1 w:1) fn cancel_leave_candidates(x: u32, ) -> Weight { - (Weight::from_ref_time(44_692_784)) - // Standard Error: 5_107 - .saturating_add((Weight::from_ref_time(507_637)).saturating_mul(x as u64)) + (Weight::from_ref_time(43_033_481)) + // Standard Error: 4_552 + .saturating_add((Weight::from_ref_time(230_825)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -158,7 +158,7 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: ParachainStaking CandidatePool (r:1 w:1) // Storage: ParachainStaking Round (r:1 w:0) fn go_offline() -> Weight { - (Weight::from_ref_time(46_890_000)) + (Weight::from_ref_time(43_510_000)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -166,7 +166,7 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: ParachainStaking CandidatePool (r:1 w:1) // Storage: ParachainStaking Round (r:1 w:0) fn go_online() -> Weight { - (Weight::from_ref_time(46_090_000)) + (Weight::from_ref_time(43_790_000)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -175,14 +175,14 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: Tokens Accounts (r:1 w:0) // Storage: ParachainStaking Round (r:1 w:0) fn schedule_candidate_bond_more() -> Weight { - (Weight::from_ref_time(60_370_000)) + (Weight::from_ref_time(57_871_000)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking CandidateState (r:1 w:1) // Storage: ParachainStaking Round (r:1 w:0) fn schedule_candidate_bond_less() -> Weight { - (Weight::from_ref_time(40_460_000)) + (Weight::from_ref_time(38_240_000)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -193,7 +193,7 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: ParachainStaking Total (r:1 w:1) // Storage: ParachainStaking CandidatePool (r:1 w:1) fn execute_candidate_bond_more() -> Weight { - (Weight::from_ref_time(96_750_000)) + (Weight::from_ref_time(98_150_000)) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(5 as u64)) } @@ -204,19 +204,19 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: ParachainStaking Total (r:1 w:1) // Storage: ParachainStaking CandidatePool (r:1 w:1) fn execute_candidate_bond_less() -> Weight { - (Weight::from_ref_time(90_650_000)) + (Weight::from_ref_time(93_240_000)) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(5 as u64)) } // Storage: ParachainStaking CandidateState (r:1 w:1) fn cancel_candidate_bond_more() -> Weight { - (Weight::from_ref_time(38_680_000)) + (Weight::from_ref_time(35_820_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking CandidateState (r:1 w:1) fn cancel_candidate_bond_less() -> Weight { - (Weight::from_ref_time(38_150_000)) + (Weight::from_ref_time(36_180_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -227,18 +227,18 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: ParachainStaking CandidatePool (r:1 w:1) // Storage: ParachainStaking Total (r:1 w:1) fn delegate(x: u32, y: u32, ) -> Weight { - (Weight::from_ref_time(94_170_667)) - // Standard Error: 6_316 - .saturating_add((Weight::from_ref_time(639_847)).saturating_mul(x as u64)) - // Standard Error: 16_524 - .saturating_add((Weight::from_ref_time(646_942)).saturating_mul(y as u64)) + (Weight::from_ref_time(95_304_714)) + // Standard Error: 6_331 + .saturating_add((Weight::from_ref_time(360_554)).saturating_mul(x as u64)) + // Standard Error: 16_565 + .saturating_add((Weight::from_ref_time(330_594)).saturating_mul(y as u64)) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(6 as u64)) } // Storage: ParachainStaking DelegatorState (r:1 w:1) // Storage: ParachainStaking Round (r:1 w:0) fn schedule_leave_delegators() -> Weight { - (Weight::from_ref_time(40_350_000)) + (Weight::from_ref_time(37_960_000)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -250,9 +250,9 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: ParachainStaking CandidatePool (r:1 w:1) // Storage: ParachainStaking Total (r:1 w:1) fn execute_leave_delegators(x: u32, ) -> Weight { - (Weight::from_ref_time(41_932_764)) - // Standard Error: 32_909 - .saturating_add((Weight::from_ref_time(29_709_209)).saturating_mul(x as u64)) + (Weight::from_ref_time(42_857_318)) + // Standard Error: 37_023 + .saturating_add((Weight::from_ref_time(30_275_693)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(x as u64))) .saturating_add(T::DbWeight::get().writes(4 as u64)) @@ -260,14 +260,14 @@ impl parachain_staking::WeightInfo for ModuleWeight } // Storage: ParachainStaking DelegatorState (r:1 w:1) fn cancel_leave_delegators() -> Weight { - (Weight::from_ref_time(37_910_000)) + (Weight::from_ref_time(35_760_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking DelegatorState (r:1 w:1) // Storage: ParachainStaking Round (r:1 w:0) fn schedule_revoke_delegation() -> Weight { - (Weight::from_ref_time(40_750_000)) + (Weight::from_ref_time(38_830_000)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -276,14 +276,14 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: Tokens Accounts (r:1 w:0) // Storage: ParachainStaking Round (r:1 w:0) fn schedule_delegator_bond_more() -> Weight { - (Weight::from_ref_time(61_310_000)) + (Weight::from_ref_time(60_030_000)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking DelegatorState (r:1 w:1) // Storage: ParachainStaking Round (r:1 w:0) fn schedule_delegator_bond_less() -> Weight { - (Weight::from_ref_time(41_000_000)) + (Weight::from_ref_time(39_060_000)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -295,7 +295,7 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: ParachainStaking CandidatePool (r:1 w:1) // Storage: ParachainStaking Total (r:1 w:1) fn execute_revoke_delegation() -> Weight { - (Weight::from_ref_time(111_790_000)) + (Weight::from_ref_time(110_710_000)) .saturating_add(T::DbWeight::get().reads(7 as u64)) .saturating_add(T::DbWeight::get().writes(6 as u64)) } @@ -307,7 +307,7 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: ParachainStaking CandidatePool (r:1 w:1) // Storage: ParachainStaking Total (r:1 w:1) fn execute_delegator_bond_more() -> Weight { - (Weight::from_ref_time(104_990_000)) + (Weight::from_ref_time(105_980_000)) .saturating_add(T::DbWeight::get().reads(7 as u64)) .saturating_add(T::DbWeight::get().writes(6 as u64)) } @@ -319,47 +319,47 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: ParachainStaking CandidatePool (r:1 w:1) // Storage: ParachainStaking Total (r:1 w:1) fn execute_delegator_bond_less() -> Weight { - (Weight::from_ref_time(102_090_000)) + (Weight::from_ref_time(105_860_000)) .saturating_add(T::DbWeight::get().reads(7 as u64)) .saturating_add(T::DbWeight::get().writes(6 as u64)) } // Storage: ParachainStaking DelegatorState (r:1 w:1) fn cancel_revoke_delegation() -> Weight { - (Weight::from_ref_time(39_000_000)) + (Weight::from_ref_time(37_460_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking DelegatorState (r:1 w:1) fn cancel_delegator_bond_more() -> Weight { - (Weight::from_ref_time(49_650_000)) + (Weight::from_ref_time(50_590_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking DelegatorState (r:1 w:1) fn cancel_delegator_bond_less() -> Weight { - (Weight::from_ref_time(52_100_000)) + (Weight::from_ref_time(46_480_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking StakingLiquidityTokens (r:1 w:1) fn add_staking_liquidity_token(x: u32, ) -> Weight { - (Weight::from_ref_time(17_563_500)) - // Standard Error: 759 - .saturating_add((Weight::from_ref_time(91_140)).saturating_mul(x as u64)) + (Weight::from_ref_time(16_668_803)) + // Standard Error: 760 + .saturating_add((Weight::from_ref_time(89_706)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking StakingLiquidityTokens (r:1 w:1) fn remove_staking_liquidity_token(x: u32, ) -> Weight { - (Weight::from_ref_time(17_589_687)) - // Standard Error: 738 - .saturating_add((Weight::from_ref_time(92_659)).saturating_mul(x as u64)) + (Weight::from_ref_time(17_006_059)) + // Standard Error: 872 + .saturating_add((Weight::from_ref_time(92_237)).saturating_mul(x as u64)) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking Round (r:1 w:0) fn passive_session_change() -> Weight { - (Weight::from_ref_time(10_670_000)) + (Weight::from_ref_time(10_280_000)) .saturating_add(T::DbWeight::get().reads(1 as u64)) } // Storage: ParachainStaking Round (r:1 w:1) @@ -388,11 +388,11 @@ impl parachain_staking::WeightInfo for ModuleWeight // Storage: ParachainStaking SelectedCandidates (r:0 w:1) // Storage: Session Validators (r:0 w:1) fn active_session_change(x: u32, y: u32, z: u32, w: u32, ) -> Weight { - (Weight::from_ref_time(7_206_509_000)) - // Standard Error: 7_392_219 - .saturating_add((Weight::from_ref_time(594_710)).saturating_mul(y as u64)) - // Standard Error: 8_267_185 - .saturating_add((Weight::from_ref_time(966_049_137)).saturating_mul(z as u64)) + (Weight::from_ref_time(7_352_138_000)) + // Standard Error: 7_580_085 + .saturating_add((Weight::from_ref_time(7_824_608)).saturating_mul(y as u64)) + // Standard Error: 8_477_288 + .saturating_add((Weight::from_ref_time(1_003_102_339)).saturating_mul(z as u64)) .saturating_add(T::DbWeight::get().reads(715 as u64)) .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(x as u64))) .saturating_add(T::DbWeight::get().reads((46 as u64).saturating_mul(z as u64))) @@ -407,13 +407,13 @@ impl parachain_staking::WeightInfo for ModuleWeight impl WeightInfo for () { // Storage: ParachainStaking TotalSelected (r:1 w:1) fn set_total_selected() -> Weight { - (Weight::from_ref_time(24_350_000)) + (Weight::from_ref_time(24_450_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking CollatorCommission (r:1 w:1) fn set_collator_commission() -> Weight { - (Weight::from_ref_time(24_780_000)) + (Weight::from_ref_time(24_550_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -425,11 +425,11 @@ impl WeightInfo for () { // Storage: Tokens Accounts (r:1 w:1) // Storage: ParachainStaking Total (r:1 w:1) fn join_candidates(x: u32, y: u32, ) -> Weight { - (Weight::from_ref_time(86_133_703)) - // Standard Error: 8_043 - .saturating_add((Weight::from_ref_time(533_770)).saturating_mul(x as u64)) - // Standard Error: 2_594 - .saturating_add((Weight::from_ref_time(83_926)).saturating_mul(y as u64)) + (Weight::from_ref_time(84_432_975)) + // Standard Error: 6_931 + .saturating_add((Weight::from_ref_time(340_211)).saturating_mul(x as u64)) + // Standard Error: 2_235 + .saturating_add((Weight::from_ref_time(84_897)).saturating_mul(y as u64)) .saturating_add(RocksDbWeight::get().reads(7 as u64)) .saturating_add(RocksDbWeight::get().writes(5 as u64)) } @@ -437,9 +437,9 @@ impl WeightInfo for () { // Storage: ParachainStaking Round (r:1 w:0) // Storage: ParachainStaking CandidatePool (r:1 w:1) fn schedule_leave_candidates(x: u32, ) -> Weight { - (Weight::from_ref_time(46_728_747)) - // Standard Error: 5_272 - .saturating_add((Weight::from_ref_time(524_090)).saturating_mul(x as u64)) + (Weight::from_ref_time(44_154_958)) + // Standard Error: 4_382 + .saturating_add((Weight::from_ref_time(275_090)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } @@ -450,9 +450,9 @@ impl WeightInfo for () { // Storage: ParachainStaking DelegatorState (r:1 w:1) // Storage: ParachainStaking Total (r:1 w:1) fn execute_leave_candidates(x: u32, ) -> Weight { - (Weight::from_ref_time(63_768_377)) - // Standard Error: 36_320 - .saturating_add((Weight::from_ref_time(25_162_816)).saturating_mul(x as u64)) + (Weight::from_ref_time(65_541_821)) + // Standard Error: 53_421 + .saturating_add((Weight::from_ref_time(25_563_077)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().reads((3 as u64).saturating_mul(x as u64))) .saturating_add(RocksDbWeight::get().writes(1 as u64)) @@ -461,9 +461,9 @@ impl WeightInfo for () { // Storage: ParachainStaking CandidateState (r:1 w:1) // Storage: ParachainStaking CandidatePool (r:1 w:1) fn cancel_leave_candidates(x: u32, ) -> Weight { - (Weight::from_ref_time(44_692_784)) - // Standard Error: 5_107 - .saturating_add((Weight::from_ref_time(507_637)).saturating_mul(x as u64)) + (Weight::from_ref_time(43_033_481)) + // Standard Error: 4_552 + .saturating_add((Weight::from_ref_time(230_825)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } @@ -471,7 +471,7 @@ impl WeightInfo for () { // Storage: ParachainStaking CandidatePool (r:1 w:1) // Storage: ParachainStaking Round (r:1 w:0) fn go_offline() -> Weight { - (Weight::from_ref_time(46_890_000)) + (Weight::from_ref_time(43_510_000)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } @@ -479,7 +479,7 @@ impl WeightInfo for () { // Storage: ParachainStaking CandidatePool (r:1 w:1) // Storage: ParachainStaking Round (r:1 w:0) fn go_online() -> Weight { - (Weight::from_ref_time(46_090_000)) + (Weight::from_ref_time(43_790_000)) .saturating_add(RocksDbWeight::get().reads(3 as u64)) .saturating_add(RocksDbWeight::get().writes(2 as u64)) } @@ -488,14 +488,14 @@ impl WeightInfo for () { // Storage: Tokens Accounts (r:1 w:0) // Storage: ParachainStaking Round (r:1 w:0) fn schedule_candidate_bond_more() -> Weight { - (Weight::from_ref_time(60_370_000)) + (Weight::from_ref_time(57_871_000)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking CandidateState (r:1 w:1) // Storage: ParachainStaking Round (r:1 w:0) fn schedule_candidate_bond_less() -> Weight { - (Weight::from_ref_time(40_460_000)) + (Weight::from_ref_time(38_240_000)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -506,7 +506,7 @@ impl WeightInfo for () { // Storage: ParachainStaking Total (r:1 w:1) // Storage: ParachainStaking CandidatePool (r:1 w:1) fn execute_candidate_bond_more() -> Weight { - (Weight::from_ref_time(96_750_000)) + (Weight::from_ref_time(98_150_000)) .saturating_add(RocksDbWeight::get().reads(6 as u64)) .saturating_add(RocksDbWeight::get().writes(5 as u64)) } @@ -517,19 +517,19 @@ impl WeightInfo for () { // Storage: ParachainStaking Total (r:1 w:1) // Storage: ParachainStaking CandidatePool (r:1 w:1) fn execute_candidate_bond_less() -> Weight { - (Weight::from_ref_time(90_650_000)) + (Weight::from_ref_time(93_240_000)) .saturating_add(RocksDbWeight::get().reads(6 as u64)) .saturating_add(RocksDbWeight::get().writes(5 as u64)) } // Storage: ParachainStaking CandidateState (r:1 w:1) fn cancel_candidate_bond_more() -> Weight { - (Weight::from_ref_time(38_680_000)) + (Weight::from_ref_time(35_820_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking CandidateState (r:1 w:1) fn cancel_candidate_bond_less() -> Weight { - (Weight::from_ref_time(38_150_000)) + (Weight::from_ref_time(36_180_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -540,18 +540,18 @@ impl WeightInfo for () { // Storage: ParachainStaking CandidatePool (r:1 w:1) // Storage: ParachainStaking Total (r:1 w:1) fn delegate(x: u32, y: u32, ) -> Weight { - (Weight::from_ref_time(94_170_667)) - // Standard Error: 6_316 - .saturating_add((Weight::from_ref_time(639_847)).saturating_mul(x as u64)) - // Standard Error: 16_524 - .saturating_add((Weight::from_ref_time(646_942)).saturating_mul(y as u64)) + (Weight::from_ref_time(95_304_714)) + // Standard Error: 6_331 + .saturating_add((Weight::from_ref_time(360_554)).saturating_mul(x as u64)) + // Standard Error: 16_565 + .saturating_add((Weight::from_ref_time(330_594)).saturating_mul(y as u64)) .saturating_add(RocksDbWeight::get().reads(6 as u64)) .saturating_add(RocksDbWeight::get().writes(6 as u64)) } // Storage: ParachainStaking DelegatorState (r:1 w:1) // Storage: ParachainStaking Round (r:1 w:0) fn schedule_leave_delegators() -> Weight { - (Weight::from_ref_time(40_350_000)) + (Weight::from_ref_time(37_960_000)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -563,9 +563,9 @@ impl WeightInfo for () { // Storage: ParachainStaking CandidatePool (r:1 w:1) // Storage: ParachainStaking Total (r:1 w:1) fn execute_leave_delegators(x: u32, ) -> Weight { - (Weight::from_ref_time(41_932_764)) - // Standard Error: 32_909 - .saturating_add((Weight::from_ref_time(29_709_209)).saturating_mul(x as u64)) + (Weight::from_ref_time(42_857_318)) + // Standard Error: 37_023 + .saturating_add((Weight::from_ref_time(30_275_693)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads(5 as u64)) .saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(x as u64))) .saturating_add(RocksDbWeight::get().writes(4 as u64)) @@ -573,14 +573,14 @@ impl WeightInfo for () { } // Storage: ParachainStaking DelegatorState (r:1 w:1) fn cancel_leave_delegators() -> Weight { - (Weight::from_ref_time(37_910_000)) + (Weight::from_ref_time(35_760_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking DelegatorState (r:1 w:1) // Storage: ParachainStaking Round (r:1 w:0) fn schedule_revoke_delegation() -> Weight { - (Weight::from_ref_time(40_750_000)) + (Weight::from_ref_time(38_830_000)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -589,14 +589,14 @@ impl WeightInfo for () { // Storage: Tokens Accounts (r:1 w:0) // Storage: ParachainStaking Round (r:1 w:0) fn schedule_delegator_bond_more() -> Weight { - (Weight::from_ref_time(61_310_000)) + (Weight::from_ref_time(60_030_000)) .saturating_add(RocksDbWeight::get().reads(4 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking DelegatorState (r:1 w:1) // Storage: ParachainStaking Round (r:1 w:0) fn schedule_delegator_bond_less() -> Weight { - (Weight::from_ref_time(41_000_000)) + (Weight::from_ref_time(39_060_000)) .saturating_add(RocksDbWeight::get().reads(2 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } @@ -608,7 +608,7 @@ impl WeightInfo for () { // Storage: ParachainStaking CandidatePool (r:1 w:1) // Storage: ParachainStaking Total (r:1 w:1) fn execute_revoke_delegation() -> Weight { - (Weight::from_ref_time(111_790_000)) + (Weight::from_ref_time(110_710_000)) .saturating_add(RocksDbWeight::get().reads(7 as u64)) .saturating_add(RocksDbWeight::get().writes(6 as u64)) } @@ -620,7 +620,7 @@ impl WeightInfo for () { // Storage: ParachainStaking CandidatePool (r:1 w:1) // Storage: ParachainStaking Total (r:1 w:1) fn execute_delegator_bond_more() -> Weight { - (Weight::from_ref_time(104_990_000)) + (Weight::from_ref_time(105_980_000)) .saturating_add(RocksDbWeight::get().reads(7 as u64)) .saturating_add(RocksDbWeight::get().writes(6 as u64)) } @@ -632,47 +632,47 @@ impl WeightInfo for () { // Storage: ParachainStaking CandidatePool (r:1 w:1) // Storage: ParachainStaking Total (r:1 w:1) fn execute_delegator_bond_less() -> Weight { - (Weight::from_ref_time(102_090_000)) + (Weight::from_ref_time(105_860_000)) .saturating_add(RocksDbWeight::get().reads(7 as u64)) .saturating_add(RocksDbWeight::get().writes(6 as u64)) } // Storage: ParachainStaking DelegatorState (r:1 w:1) fn cancel_revoke_delegation() -> Weight { - (Weight::from_ref_time(39_000_000)) + (Weight::from_ref_time(37_460_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking DelegatorState (r:1 w:1) fn cancel_delegator_bond_more() -> Weight { - (Weight::from_ref_time(49_650_000)) + (Weight::from_ref_time(50_590_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking DelegatorState (r:1 w:1) fn cancel_delegator_bond_less() -> Weight { - (Weight::from_ref_time(52_100_000)) + (Weight::from_ref_time(46_480_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking StakingLiquidityTokens (r:1 w:1) fn add_staking_liquidity_token(x: u32, ) -> Weight { - (Weight::from_ref_time(17_563_500)) - // Standard Error: 759 - .saturating_add((Weight::from_ref_time(91_140)).saturating_mul(x as u64)) + (Weight::from_ref_time(16_668_803)) + // Standard Error: 760 + .saturating_add((Weight::from_ref_time(89_706)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking StakingLiquidityTokens (r:1 w:1) fn remove_staking_liquidity_token(x: u32, ) -> Weight { - (Weight::from_ref_time(17_589_687)) - // Standard Error: 738 - .saturating_add((Weight::from_ref_time(92_659)).saturating_mul(x as u64)) + (Weight::from_ref_time(17_006_059)) + // Standard Error: 872 + .saturating_add((Weight::from_ref_time(92_237)).saturating_mul(x as u64)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) .saturating_add(RocksDbWeight::get().writes(1 as u64)) } // Storage: ParachainStaking Round (r:1 w:0) fn passive_session_change() -> Weight { - (Weight::from_ref_time(10_670_000)) + (Weight::from_ref_time(10_280_000)) .saturating_add(RocksDbWeight::get().reads(1 as u64)) } // Storage: ParachainStaking Round (r:1 w:1) @@ -701,11 +701,11 @@ impl WeightInfo for () { // Storage: ParachainStaking SelectedCandidates (r:0 w:1) // Storage: Session Validators (r:0 w:1) fn active_session_change(x: u32, y: u32, z: u32, w: u32, ) -> Weight { - (Weight::from_ref_time(7_206_509_000)) - // Standard Error: 7_392_219 - .saturating_add((Weight::from_ref_time(594_710)).saturating_mul(y as u64)) - // Standard Error: 8_267_185 - .saturating_add((Weight::from_ref_time(966_049_137)).saturating_mul(z as u64)) + (Weight::from_ref_time(7_352_138_000)) + // Standard Error: 7_580_085 + .saturating_add((Weight::from_ref_time(7_824_608)).saturating_mul(y as u64)) + // Standard Error: 8_477_288 + .saturating_add((Weight::from_ref_time(1_003_102_339)).saturating_mul(z as u64)) .saturating_add(RocksDbWeight::get().reads(715 as u64)) .saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(x as u64))) .saturating_add(RocksDbWeight::get().reads((46 as u64).saturating_mul(z as u64))) diff --git a/runtime/mangata-rococo/src/xcm_config.rs b/runtime/mangata-rococo/src/xcm_config.rs index 5a50437bae..fc3516db6d 100644 --- a/runtime/mangata-rococo/src/xcm_config.rs +++ b/runtime/mangata-rococo/src/xcm_config.rs @@ -5,7 +5,6 @@ use cumulus_primitives_core::ParaId; use frame_support::{ match_types, parameter_types, traits::{Everything, Get, Nothing}, - weights::Weight, }; use frame_system::EnsureRoot; use orml_asset_registry::{AssetRegistryTrader, FixedRateAssetRegistryTrader}; @@ -30,7 +29,7 @@ use xcm_executor::{traits::DropAssets, Assets, XcmExecutor}; use super::{ constants::{fee::*, parachains}, - AccountId, AssetMetadataOf, Balance, Convert, ExistentialDeposits, ParachainInfo, + AccountId, AssetMetadataOf, Balance, Convert, ExistentialDeposits, Maintenance, ParachainInfo, ParachainSystem, PolkadotXcm, Runtime, RuntimeCall, RuntimeEvent, RuntimeOrigin, TokenId, Tokens, TreasuryAccount, UnknownTokens, XcmpQueue, MGR_TOKEN_ID, ROC_TOKEN_ID, }; @@ -335,6 +334,7 @@ pub type XcmOriginToTransactDispatchOrigin = ( impl cumulus_pallet_xcmp_queue::Config for Runtime { type RuntimeEvent = RuntimeEvent; + type MaintenanceStatusProvider = Maintenance; type XcmExecutor = XcmExecutor; type ChannelInfo = ParachainSystem; type VersionWrapper = (); @@ -346,6 +346,7 @@ impl cumulus_pallet_xcmp_queue::Config for Runtime { impl cumulus_pallet_dmp_queue::Config for Runtime { type RuntimeEvent = RuntimeEvent; + type MaintenanceStatusProvider = Maintenance; type XcmExecutor = XcmExecutor; type ExecuteOverweightOrigin = EnsureRoot; } diff --git a/scripts/run_benchmark.sh b/scripts/run_benchmark.sh index 8064d2724f..2011485112 100755 --- a/scripts/run_benchmark.sh +++ b/scripts/run_benchmark.sh @@ -8,9 +8,9 @@ ${REPO_ROOT}/target/release/mangata-node benchmark pallet \ --execution wasm \ --wasm-execution compiled \ --pallet $1 \ - --extrinsic '*' \ - --steps 50 \ - --repeat 20 \ + --extrinsic 'multiswap_sell_asset,multiswap_buy_asset' \ + --steps 20 \ + --repeat 5 \ --output ./benchmarks/$1_weights.rs \ --template ./templates/module-weight-template.hbs \ &> ./benchmarks/benchmark_$1.txt diff --git a/scripts/run_benchmarks.sh b/scripts/run_benchmarks.sh index 451e915787..742f0e3712 100755 --- a/scripts/run_benchmarks.sh +++ b/scripts/run_benchmarks.sh @@ -4,24 +4,24 @@ REPO_ROOT=$(dirname $(readlink -f $0))/../ mkdir ./benchmarks benchmarks=( - "frame_system" - "pallet_session" - "pallet_timestamp" - "orml_tokens" - "parachain_staking" + # "frame_system" + # "pallet_session" + # "pallet_timestamp" + # "orml_tokens" + # "parachain_staking" "pallet_xyk" - "orml_asset_registry" - "pallet_treasury" - "pallet_collective_mangata" - "pallet_elections_phragmen" - "pallet_crowdloan_rewards" - "pallet_utility" - "pallet_vesting_mangata" - "pallet_issuance" - "pallet_bootstrap" - "pallet_multipurpose_liquidity" - "pallet_sudo_origin" - "pallet_token_timeout" + # "orml_asset_registry" + # "pallet_treasury" + # "pallet_collective_mangata" + # "pallet_elections_phragmen" + # "pallet_crowdloan_rewards" + # "pallet_utility" + # "pallet_vesting_mangata" + # "pallet_issuance" + # "pallet_bootstrap" + # "pallet_multipurpose_liquidity" + # "pallet_sudo_origin" + # "pallet_token_timeout" ) for bench in ${benchmarks[@]}; do From 5ae57e5c39164b9412481caefcf11c298b4542b1 Mon Sep 17 00:00:00 2001 From: mateuszaaa Date: Wed, 8 Mar 2023 16:47:49 +0100 Subject: [PATCH 5/8] Fix: [MGX-397] do not include txs into the block when there is no room for execution previous ones (#439) --- Cargo.lock | 386 +++++++++---------- Cargo.toml | 1088 ++++++++++++++++++++++++++-------------------------- 2 files changed, 737 insertions(+), 737 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 56dda774dd..4e4700bda3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -426,7 +426,7 @@ dependencies = [ [[package]] name = "beefy-gadget" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "array-bytes 4.2.0", "async-trait", @@ -463,7 +463,7 @@ dependencies = [ [[package]] name = "beefy-gadget-rpc" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "beefy-gadget", "futures", @@ -483,7 +483,7 @@ dependencies = [ [[package]] name = "beefy-merkle-tree" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "sp-api", "sp-beefy", @@ -2333,7 +2333,7 @@ dependencies = [ [[package]] name = "extrinsic-shuffler" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "derive_more", "log", @@ -2502,7 +2502,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "3.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "parity-scale-codec", ] @@ -2525,7 +2525,7 @@ checksum = "6c2141d6d6c8512188a7891b4b01590a45f6dac67afb4f255c4124dbb86d4eaa" [[package]] name = "frame-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-support", "frame-system", @@ -2549,7 +2549,7 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "Inflector", "array-bytes 4.2.0", @@ -2607,7 +2607,7 @@ dependencies = [ [[package]] name = "frame-election-provider-solution-type" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -2618,7 +2618,7 @@ dependencies = [ [[package]] name = "frame-election-provider-support" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-election-provider-solution-type", "frame-support", @@ -2635,7 +2635,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "aquamarine", "extrinsic-shuffler", @@ -2669,7 +2669,7 @@ dependencies = [ [[package]] name = "frame-remote-externalities" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "env_logger 0.9.3", "futures", @@ -2688,7 +2688,7 @@ dependencies = [ [[package]] name = "frame-support" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "bitflags", "frame-metadata", @@ -2721,7 +2721,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "Inflector", "cfg-expr", @@ -2735,7 +2735,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", @@ -2747,7 +2747,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "proc-macro2", "quote", @@ -2757,7 +2757,7 @@ dependencies = [ [[package]] name = "frame-system" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "extrinsic-shuffler", "frame-support", @@ -2777,7 +2777,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -2807,7 +2807,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "parity-scale-codec", "sp-api", @@ -2816,7 +2816,7 @@ dependencies = [ [[package]] name = "frame-try-runtime" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-support", "parity-scale-codec", @@ -3722,7 +3722,7 @@ dependencies = [ "frame-executive", "frame-support", "frame-system", - "frame-system-benchmarking 4.0.0-dev (git+https://github.com/mangata-finance//substrate?branch=mangata-dev)", + "frame-system-benchmarking 4.0.0-dev (git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1)", "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal", @@ -4724,7 +4724,7 @@ dependencies = [ [[package]] name = "mangata-types" version = "0.1.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "parity-scale-codec", "scale-info", @@ -4873,7 +4873,7 @@ dependencies = [ [[package]] name = "mmr-gadget" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "futures", "log", @@ -4893,7 +4893,7 @@ dependencies = [ [[package]] name = "mmr-rpc" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "anyhow", "jsonrpsee", @@ -5509,7 +5509,7 @@ dependencies = [ [[package]] name = "pallet-aura" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-support", "frame-system", @@ -5525,7 +5525,7 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-support", "frame-system", @@ -5541,7 +5541,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-support", "frame-system", @@ -5556,7 +5556,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -5580,7 +5580,7 @@ dependencies = [ [[package]] name = "pallet-bags-list" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5600,7 +5600,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -5615,7 +5615,7 @@ dependencies = [ [[package]] name = "pallet-beefy" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-support", "frame-system", @@ -5631,7 +5631,7 @@ dependencies = [ [[package]] name = "pallet-beefy-mmr" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "array-bytes 4.2.0", "beefy-merkle-tree", @@ -5687,7 +5687,7 @@ dependencies = [ [[package]] name = "pallet-bounties" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -5705,7 +5705,7 @@ dependencies = [ [[package]] name = "pallet-child-bounties" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -5724,7 +5724,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -5741,7 +5741,7 @@ dependencies = [ [[package]] name = "pallet-collective-mangata" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -5758,7 +5758,7 @@ dependencies = [ [[package]] name = "pallet-conviction-voting" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "assert_matches", "frame-benchmarking", @@ -5798,7 +5798,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -5816,7 +5816,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-multi-phase" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5840,7 +5840,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-support-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5853,7 +5853,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "5.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -5871,7 +5871,7 @@ dependencies = [ [[package]] name = "pallet-fast-unstake" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5917,7 +5917,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -5940,7 +5940,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "enumflags2", "frame-benchmarking", @@ -5956,7 +5956,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -5976,7 +5976,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -6044,7 +6044,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -6061,7 +6061,7 @@ dependencies = [ [[package]] name = "pallet-mmr" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -6109,7 +6109,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -6125,7 +6125,7 @@ dependencies = [ [[package]] name = "pallet-nis" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -6141,7 +6141,7 @@ dependencies = [ [[package]] name = "pallet-nomination-pools" version = "1.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-support", "frame-system", @@ -6158,7 +6158,7 @@ dependencies = [ [[package]] name = "pallet-nomination-pools-benchmarking" version = "1.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -6178,7 +6178,7 @@ dependencies = [ [[package]] name = "pallet-nomination-pools-runtime-api" version = "1.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "parity-scale-codec", "sp-api", @@ -6188,7 +6188,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-support", "frame-system", @@ -6205,7 +6205,7 @@ dependencies = [ [[package]] name = "pallet-offences-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -6228,7 +6228,7 @@ dependencies = [ [[package]] name = "pallet-preimage" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -6245,7 +6245,7 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -6260,7 +6260,7 @@ dependencies = [ [[package]] name = "pallet-ranked-collective" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -6278,7 +6278,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -6293,7 +6293,7 @@ dependencies = [ [[package]] name = "pallet-referenda" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "assert_matches", "frame-benchmarking", @@ -6312,7 +6312,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -6329,7 +6329,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-support", "frame-system", @@ -6350,7 +6350,7 @@ dependencies = [ [[package]] name = "pallet-session-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -6366,7 +6366,7 @@ dependencies = [ [[package]] name = "pallet-society" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-support", "frame-system", @@ -6380,7 +6380,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -6403,7 +6403,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -6414,7 +6414,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-fn" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "log", "sp-arithmetic", @@ -6440,7 +6440,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-support", "frame-system", @@ -6454,7 +6454,7 @@ dependencies = [ [[package]] name = "pallet-sudo-mangata" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-support", "frame-system", @@ -6486,7 +6486,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -6504,7 +6504,7 @@ dependencies = [ [[package]] name = "pallet-tips" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -6523,7 +6523,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-support", "frame-system", @@ -6539,7 +6539,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "jsonrpsee", "pallet-transaction-payment-rpc-runtime-api", @@ -6555,7 +6555,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -6567,7 +6567,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -6584,7 +6584,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -6600,7 +6600,7 @@ dependencies = [ [[package]] name = "pallet-utility-mangata" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -6616,7 +6616,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -6631,7 +6631,7 @@ dependencies = [ [[package]] name = "pallet-vesting-mangata" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -6646,7 +6646,7 @@ dependencies = [ [[package]] name = "pallet-vesting-mangata-rpc" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "jsonrpsee", "pallet-vesting-mangata-rpc-runtime-api", @@ -6663,7 +6663,7 @@ dependencies = [ [[package]] name = "pallet-vesting-mangata-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "pallet-vesting-mangata", "parity-scale-codec", @@ -6676,7 +6676,7 @@ dependencies = [ [[package]] name = "pallet-whitelist" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-benchmarking", "frame-support", @@ -7894,7 +7894,7 @@ dependencies = [ "frame-executive", "frame-support", "frame-system", - "frame-system-benchmarking 4.0.0-dev (git+https://github.com/mangata-finance//substrate?branch=mangata-dev)", + "frame-system-benchmarking 4.0.0-dev (git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1)", "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal", @@ -8928,7 +8928,7 @@ dependencies = [ "frame-executive", "frame-support", "frame-system", - "frame-system-benchmarking 4.0.0-dev (git+https://github.com/mangata-finance//substrate?branch=mangata-dev)", + "frame-system-benchmarking 4.0.0-dev (git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1)", "frame-system-rpc-runtime-api", "hex-literal", "log", @@ -9218,7 +9218,7 @@ dependencies = [ [[package]] name = "sc-allocator" version = "4.1.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "log", "sp-core", @@ -9229,7 +9229,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "async-trait", "futures", @@ -9256,7 +9256,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "futures", "futures-timer", @@ -9279,7 +9279,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship-ver" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "aquamarine", "futures", @@ -9305,7 +9305,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -9321,7 +9321,7 @@ dependencies = [ [[package]] name = "sc-block-builder-ver" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "aquamarine", "extrinsic-shuffler", @@ -9342,7 +9342,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "impl-trait-for-tuples", "memmap2", @@ -9359,7 +9359,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -9370,7 +9370,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "array-bytes 4.2.0", "chrono", @@ -9410,7 +9410,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "fnv", "futures", @@ -9438,7 +9438,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "hash-db", "kvdb", @@ -9463,7 +9463,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "async-trait", "futures", @@ -9488,7 +9488,7 @@ dependencies = [ [[package]] name = "sc-consensus-aura" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "async-trait", "futures", @@ -9517,7 +9517,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "async-trait", "fork-tree", @@ -9558,7 +9558,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "futures", "jsonrpsee", @@ -9580,7 +9580,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "fork-tree", "parity-scale-codec", @@ -9593,7 +9593,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "async-trait", "futures", @@ -9619,7 +9619,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "lru", "parity-scale-codec", @@ -9643,7 +9643,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "sc-allocator", "sp-maybe-compressed-blob", @@ -9656,7 +9656,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "log", "sc-allocator", @@ -9669,7 +9669,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "cfg-if", "libc", @@ -9686,7 +9686,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "ahash", "array-bytes 4.2.0", @@ -9727,7 +9727,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-rpc" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "finality-grandpa", "futures", @@ -9748,7 +9748,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "ansi_term", "futures", @@ -9764,7 +9764,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "array-bytes 4.2.0", "async-trait", @@ -9779,7 +9779,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "array-bytes 4.2.0", "async-trait", @@ -9826,7 +9826,7 @@ dependencies = [ [[package]] name = "sc-network-bitswap" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "cid", "futures", @@ -9866,7 +9866,7 @@ dependencies = [ [[package]] name = "sc-network-common" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "async-trait", "bitflags", @@ -9892,7 +9892,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "ahash", "futures", @@ -9910,7 +9910,7 @@ dependencies = [ [[package]] name = "sc-network-light" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "array-bytes 4.2.0", "futures", @@ -9931,7 +9931,7 @@ dependencies = [ [[package]] name = "sc-network-sync" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "array-bytes 4.2.0", "async-trait", @@ -9963,7 +9963,7 @@ dependencies = [ [[package]] name = "sc-network-transactions" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "array-bytes 4.2.0", "futures", @@ -9982,7 +9982,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "array-bytes 4.2.0", "bytes", @@ -10012,7 +10012,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "futures", "libp2p", @@ -10025,7 +10025,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -10034,7 +10034,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "futures", "hash-db", @@ -10064,7 +10064,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "futures", "jsonrpsee", @@ -10087,7 +10087,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "futures", "http", @@ -10103,7 +10103,7 @@ dependencies = [ [[package]] name = "sc-rpc-spec-v2" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "futures", "hex", @@ -10122,7 +10122,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "async-trait", "directories", @@ -10146,7 +10146,7 @@ dependencies = [ "sc-informant", "sc-keystore", "sc-network", - "sc-network-bitswap 0.10.0-dev (git+https://github.com/mangata-finance//substrate?branch=mangata-dev)", + "sc-network-bitswap 0.10.0-dev (git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1)", "sc-network-common", "sc-network-light", "sc-network-sync", @@ -10194,7 +10194,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "log", "parity-scale-codec", @@ -10206,7 +10206,7 @@ dependencies = [ [[package]] name = "sc-sync-state-rpc" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "jsonrpsee", "parity-scale-codec", @@ -10225,7 +10225,7 @@ dependencies = [ [[package]] name = "sc-sysinfo" version = "6.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "futures", "libc", @@ -10244,7 +10244,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "chrono", "futures", @@ -10262,7 +10262,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "ansi_term", "atty", @@ -10293,7 +10293,7 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -10304,7 +10304,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "async-trait", "futures", @@ -10330,7 +10330,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool-api" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "async-trait", "futures", @@ -10344,7 +10344,7 @@ dependencies = [ [[package]] name = "sc-utils" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "futures", "futures-timer", @@ -10817,7 +10817,7 @@ dependencies = [ [[package]] name = "sp-api" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "hash-db", "log", @@ -10835,7 +10835,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "blake2", "proc-macro-crate", @@ -10847,7 +10847,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "7.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "parity-scale-codec", "scale-info", @@ -10860,7 +10860,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "6.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "integer-sqrt", "num-traits", @@ -10875,7 +10875,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "parity-scale-codec", "scale-info", @@ -10888,7 +10888,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "async-trait", "parity-scale-codec", @@ -10900,7 +10900,7 @@ dependencies = [ [[package]] name = "sp-beefy" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "parity-scale-codec", "scale-info", @@ -10917,7 +10917,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "parity-scale-codec", "sp-api", @@ -10929,7 +10929,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "futures", "log", @@ -10947,7 +10947,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "async-trait", "futures", @@ -10966,7 +10966,7 @@ dependencies = [ [[package]] name = "sp-consensus-aura" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "async-trait", "parity-scale-codec", @@ -10984,7 +10984,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "async-trait", "merlin", @@ -11007,7 +11007,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "parity-scale-codec", "scale-info", @@ -11021,7 +11021,7 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "parity-scale-codec", "scale-info", @@ -11034,7 +11034,7 @@ dependencies = [ [[package]] name = "sp-core" version = "7.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "array-bytes 4.2.0", "base58", @@ -11080,7 +11080,7 @@ dependencies = [ [[package]] name = "sp-core-hashing" version = "5.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "blake2", "byteorder", @@ -11094,7 +11094,7 @@ dependencies = [ [[package]] name = "sp-core-hashing-proc-macro" version = "5.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "proc-macro2", "quote", @@ -11105,7 +11105,7 @@ dependencies = [ [[package]] name = "sp-database" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "kvdb", "parking_lot 0.12.1", @@ -11114,7 +11114,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "5.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "proc-macro2", "quote", @@ -11124,7 +11124,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.13.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "environmental", "parity-scale-codec", @@ -11135,7 +11135,7 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "finality-grandpa", "log", @@ -11153,7 +11153,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -11167,7 +11167,7 @@ dependencies = [ [[package]] name = "sp-io" version = "7.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "bytes", "ed25519-dalek", @@ -11194,7 +11194,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "7.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "lazy_static", "sp-core", @@ -11205,7 +11205,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.13.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "async-trait", "futures", @@ -11222,7 +11222,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "4.1.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "thiserror", "zstd", @@ -11231,7 +11231,7 @@ dependencies = [ [[package]] name = "sp-mmr-primitives" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "ckb-merkle-mountain-range", "log", @@ -11249,7 +11249,7 @@ dependencies = [ [[package]] name = "sp-npos-elections" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "parity-scale-codec", "scale-info", @@ -11263,7 +11263,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "sp-api", "sp-core", @@ -11273,7 +11273,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "5.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "backtrace", "lazy_static", @@ -11283,7 +11283,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "6.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "rustc-hash", "serde", @@ -11293,7 +11293,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "7.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "either", "hash256-std-hasher", @@ -11316,7 +11316,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "7.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "bytes", "impl-trait-for-tuples", @@ -11334,7 +11334,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "6.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "Inflector", "proc-macro-crate", @@ -11346,7 +11346,7 @@ dependencies = [ [[package]] name = "sp-session" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "parity-scale-codec", "scale-info", @@ -11360,7 +11360,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "parity-scale-codec", "scale-info", @@ -11372,7 +11372,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.13.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "hash-db", "log", @@ -11394,12 +11394,12 @@ dependencies = [ [[package]] name = "sp-std" version = "5.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" [[package]] name = "sp-storage" version = "7.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "impl-serde", "parity-scale-codec", @@ -11412,7 +11412,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "async-trait", "futures-timer", @@ -11428,7 +11428,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "6.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "parity-scale-codec", "sp-std", @@ -11440,7 +11440,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "sp-api", "sp-runtime", @@ -11449,7 +11449,7 @@ dependencies = [ [[package]] name = "sp-transaction-storage-proof" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "async-trait", "log", @@ -11465,7 +11465,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "7.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "ahash", "hash-db", @@ -11488,7 +11488,7 @@ dependencies = [ [[package]] name = "sp-ver" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "async-trait", "log", @@ -11506,7 +11506,7 @@ dependencies = [ [[package]] name = "sp-version" version = "5.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "impl-serde", "parity-scale-codec", @@ -11523,7 +11523,7 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "parity-scale-codec", "proc-macro2", @@ -11534,7 +11534,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "7.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "impl-trait-for-tuples", "log", @@ -11547,7 +11547,7 @@ dependencies = [ [[package]] name = "sp-weights" version = "4.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -11721,7 +11721,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "3.0.0" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "platforms 2.0.0", ] @@ -11729,7 +11729,7 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "frame-system-rpc-runtime-api", "futures", @@ -11750,7 +11750,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "futures-util", "hyper", @@ -11763,7 +11763,7 @@ dependencies = [ [[package]] name = "substrate-rpc-client" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "async-trait", "jsonrpsee", @@ -11776,7 +11776,7 @@ dependencies = [ [[package]] name = "substrate-state-trie-migration-rpc" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "jsonrpsee", "log", @@ -11797,7 +11797,7 @@ dependencies = [ [[package]] name = "substrate-test-client" version = "2.0.1" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "array-bytes 4.2.0", "async-trait", @@ -11823,7 +11823,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" version = "5.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "ansi_term", "build-helper", @@ -12410,7 +12410,7 @@ checksum = "3528ecfd12c466c6f163363caf2d02a71161dd5e1cc6ae7b34207ea2d42d81ed" [[package]] name = "try-runtime-cli" version = "0.10.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "clap", "frame-remote-externalities", @@ -12583,7 +12583,7 @@ checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" [[package]] name = "ver-api" version = "4.0.0-dev" -source = "git+https://github.com/mangata-finance//substrate?branch=mangata-dev#8d5b532ef66f0f06be2e9b23c0f8ecf335440075" +source = "git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1#d400e6705324a21e35e0a391f1c2631ac39ec895" dependencies = [ "derive_more", "futures", @@ -13047,7 +13047,7 @@ dependencies = [ "frame-executive", "frame-support", "frame-system", - "frame-system-benchmarking 4.0.0-dev (git+https://github.com/mangata-finance//substrate?branch=mangata-dev)", + "frame-system-benchmarking 4.0.0-dev (git+https://github.com/mangata-finance//substrate?tag=mangata-dev-0.28.1)", "frame-system-rpc-runtime-api", "frame-try-runtime", "hex-literal", @@ -13565,4 +13565,4 @@ dependencies = [ "cc", "libc", "pkg-config", -] \ No newline at end of file +] diff --git a/Cargo.toml b/Cargo.toml index 71f95acfd0..d93727cc27 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -211,556 +211,556 @@ polkadot-erasure-coding = { git = "https://github.com/mangata-finance//polkadot" # patch generated by ./scripts/dev-0.9.29_manifest.sh [patch."https://github.com/mangata-finance/substrate"] - mmr-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-nis = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - mmr-gadget = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-session-benchmarking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-offences-benchmarking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-nomination-pools-benchmarking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-election-provider-support-benchmarking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - substrate-state-trie-migration-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-network-light = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-network-sync = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-whitelist = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-staking-reward-fn = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-referenda = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-recovery = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-ranked-collective = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-preimage = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-nomination-pools-runtime-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-nomination-pools = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-fast-unstake = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-conviction-voting = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-child-bounties = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-sudo-mangata = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-collective-mangata = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-weights = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-authorship = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-bags-list = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-transaction-payment-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-transaction-payment = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-try-runtime = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-system-rpc-runtime-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-system = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-beefy = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-membership = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-benchmarking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-identity = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-session = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-aura = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-bounties = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-balances = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-authority-discovery = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-tips = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-election-provider-multi-phase = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-beefy-mmr = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - beefy-merkle-tree = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-scheduler = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-multisig = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-executive = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-im-online = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-treasury = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-utility = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-sudo = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-offences = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-democracy = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-grandpa = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-election-provider-support = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-collective = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-mmr = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - #pallet-mmr-primitives = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-support = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-support-procedural-tools-derive = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-support-procedural-tools = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-support-procedural = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-staking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-staking-reward-curve = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-society = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-indices = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-babe = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-timestamp = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-proxy = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-vesting = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-vesting-mangata = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-informant = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-finality-grandpa-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-finality-grandpa = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - beefy-gadget-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - beefy-gadget = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-executor-wasmtime = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-executor-common = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-executor-wasmi = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-executor = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-network-gossip = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-transaction-pool-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-transaction-pool = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-tracing-proc-macro = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-tracing = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-client-db = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-sync-state-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-network = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-network-common = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-authority-discovery = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-utils = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-block-builder-ver = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-keystore = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-rpc-server = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-client-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-service = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-sysinfo = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-basic-authorship-ver = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-block-builder = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-rpc-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-chain-spec-derive = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-chain-spec = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-proposer-metrics = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-peerset = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-basic-authorship = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-offchain = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-state-db = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-allocator = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-consensus = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-consensus-aura = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-consensus-epochs = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-consensus-slots = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-consensus-babe-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-consensus-babe = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-cli = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-telemetry = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - fork-tree = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - substrate-wasm-builder = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - try-runtime-cli = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-benchmarking-cli = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - substrate-frame-rpc-system = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - substrate-build-script-utils = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - substrate-prometheus-endpoint = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - substrate-test-client = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-panic-handler = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-inherents = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-authorship = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-storage = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-std = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-finality-grandpa = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - beefy-primitives = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev", package = "sp-beefy" } - sp-version-proc-macro = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-version = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-transaction-pool = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-ver = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-tracing = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-database = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-debug-derive = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-session = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - extrinsic-shuffler = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - ver-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-core-hashing-proc-macro = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-core-hashing = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-core = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-keyring = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-authority-discovery = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-runtime-interface-proc-macro = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-runtime-interface = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-arithmetic = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-keystore = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-api-proc-macro = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-maybe-compressed-blob = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-transaction-storage-proof = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-state-machine = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-block-builder = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-wasm-interface = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-npos-elections = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - #sp-npos-elections-solution-type = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-application-crypto = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-offchain = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-staking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-trie = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-blockchain = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-externalities = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-consensus = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-consensus-aura = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-consensus-slots = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-consensus-vrf = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-consensus-babe = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-timestamp = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-runtime = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-io = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-mmr-primitives = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-vesting-mangata-rpc-runtime-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-vesting-mangata-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - mangata-types = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-utility-mangata = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } + mmr-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-nis = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + mmr-gadget = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-session-benchmarking = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-offences-benchmarking = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-nomination-pools-benchmarking = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-election-provider-support-benchmarking = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + substrate-state-trie-migration-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-network-light = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-network-sync = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-whitelist = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-staking-reward-fn = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-referenda = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-recovery = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-ranked-collective = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-preimage = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-nomination-pools-runtime-api = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-nomination-pools = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-fast-unstake = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-conviction-voting = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-child-bounties = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-sudo-mangata = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-collective-mangata = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-weights = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-authorship = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-bags-list = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-transaction-payment-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-transaction-payment = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-try-runtime = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-system-rpc-runtime-api = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-system = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-beefy = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-membership = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-benchmarking = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-identity = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-session = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-aura = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-bounties = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-balances = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-authority-discovery = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-tips = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-election-provider-multi-phase = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-beefy-mmr = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + beefy-merkle-tree = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-scheduler = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-multisig = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-executive = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-im-online = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-treasury = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-utility = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-sudo = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-offences = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-democracy = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-grandpa = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-election-provider-support = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-collective = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-mmr = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + #pallet-mmr-primitives = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-support = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-support-procedural-tools-derive = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-support-procedural-tools = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-support-procedural = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-staking = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-staking-reward-curve = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-society = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-indices = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-babe = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-timestamp = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-proxy = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-vesting = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-vesting-mangata = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-informant = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-finality-grandpa-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-finality-grandpa = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + beefy-gadget-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + beefy-gadget = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-executor-wasmtime = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-executor-common = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-executor-wasmi = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-executor = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-network-gossip = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-transaction-pool-api = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-transaction-pool = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-tracing-proc-macro = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-tracing = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-client-db = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-sync-state-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-network = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-network-common = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-authority-discovery = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-utils = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-block-builder-ver = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-keystore = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-rpc-server = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-client-api = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-service = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-sysinfo = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-basic-authorship-ver = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-block-builder = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-rpc-api = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-chain-spec-derive = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-chain-spec = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-proposer-metrics = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-peerset = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-basic-authorship = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-offchain = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-state-db = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-allocator = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-consensus = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-consensus-aura = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-consensus-epochs = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-consensus-slots = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-consensus-babe-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-consensus-babe = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-cli = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-telemetry = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + fork-tree = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + substrate-wasm-builder = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + try-runtime-cli = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-benchmarking-cli = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + substrate-frame-rpc-system = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + substrate-build-script-utils = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + substrate-prometheus-endpoint = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + substrate-test-client = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-panic-handler = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-inherents = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-authorship = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-storage = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-std = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-finality-grandpa = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + beefy-primitives = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1", package = "sp-beefy" } + sp-version-proc-macro = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-version = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-transaction-pool = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-ver = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-tracing = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-database = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-debug-derive = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-session = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + extrinsic-shuffler = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + ver-api = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-core-hashing-proc-macro = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-core-hashing = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-core = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-keyring = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-authority-discovery = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-runtime-interface-proc-macro = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-runtime-interface = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-arithmetic = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-keystore = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-api-proc-macro = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-api = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-maybe-compressed-blob = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-transaction-storage-proof = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-state-machine = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-block-builder = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-wasm-interface = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-npos-elections = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + #sp-npos-elections-solution-type = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-application-crypto = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-offchain = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-staking = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-trie = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-blockchain = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-externalities = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-consensus = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-consensus-aura = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-consensus-slots = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-consensus-vrf = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-consensus-babe = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-timestamp = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-runtime = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-io = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-mmr-primitives = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-vesting-mangata-rpc-runtime-api = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-vesting-mangata-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + mangata-types = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-utility-mangata = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } # patch generated by ./scripts/dev-0.9.29_manifest.sh [patch."https://github.com/paritytech/substrate"] - mmr-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-nis = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - mmr-gadget = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-session-benchmarking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-offences-benchmarking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-nomination-pools-benchmarking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-election-provider-support-benchmarking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - substrate-state-trie-migration-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-network-light = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-network-sync = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-whitelist = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-staking-reward-fn = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-referenda = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-recovery = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-ranked-collective = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-preimage = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-nomination-pools-runtime-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-nomination-pools = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-fast-unstake = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-conviction-voting = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-child-bounties = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-sudo-mangata = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-collective-mangata = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-authorship = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-weights = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-bags-list = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-transaction-payment-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-transaction-payment = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-try-runtime = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-system-rpc-runtime-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-system = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-beefy = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-membership = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-benchmarking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-system-benchmarking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-identity = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-session = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-aura = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-bounties = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-balances = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-authority-discovery = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-tips = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-election-provider-multi-phase = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-beefy-mmr = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - beefy-merkle-tree = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-scheduler = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-multisig = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-executive = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-im-online = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-treasury = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-sudo = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-offences = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-democracy = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-grandpa = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-election-provider-support = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-collective = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-mmr = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - #pallet-mmr-primitives = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-support = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-support-procedural-tools-derive = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-support-procedural-tools = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-support-procedural = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-staking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-staking-reward-curve = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-society = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-indices = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-babe = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-timestamp = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-elections-phragmen = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-proxy = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-vesting = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-vesting-mangata = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-utility = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-informant = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-finality-grandpa-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-finality-grandpa = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - beefy-gadget-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - beefy-gadget = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-executor-wasmtime = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-executor-common = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-executor-wasmi = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-executor = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-network-gossip = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-transaction-pool-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-transaction-pool = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-tracing-proc-macro = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-tracing = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-client-db = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-sync-state-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-network = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-network-common = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-authority-discovery = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-utils = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-block-builder-ver = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-keystore = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-rpc-server = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-client-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-service = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-sysinfo = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-basic-authorship-ver = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-block-builder = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-rpc-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-chain-spec-derive = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-chain-spec = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-proposer-metrics = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-peerset = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-basic-authorship = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-offchain = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-state-db = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-allocator = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-consensus = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-consensus-aura = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-consensus-epochs = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-consensus-slots = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-consensus-babe-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-consensus-babe = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-cli = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-telemetry = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - fork-tree = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - substrate-wasm-builder = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - try-runtime-cli = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-benchmarking-cli = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - substrate-frame-rpc-system = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - substrate-build-script-utils = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - substrate-prometheus-endpoint = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - substrate-test-client = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-panic-handler = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-inherents = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-authorship = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-storage = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-std = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-finality-grandpa = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - beefy-primitives = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev", package = "sp-beefy" } - sp-version-proc-macro = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-version = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-transaction-pool = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-ver = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-tracing = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-database = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-debug-derive = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-session = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - extrinsic-shuffler = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - ver-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-core-hashing-proc-macro = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-core-hashing = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-core = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-keyring = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-authority-discovery = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-runtime-interface-proc-macro = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-runtime-interface = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-arithmetic = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-keystore = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-api-proc-macro = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-maybe-compressed-blob = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-transaction-storage-proof = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-state-machine = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-block-builder = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-wasm-interface = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-npos-elections = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - #sp-npos-elections-solution-type = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-application-crypto = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-offchain = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-staking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-trie = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-blockchain = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-externalities = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-consensus = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-consensus-aura = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-consensus-slots = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-consensus-vrf = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-consensus-babe = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-timestamp = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-runtime = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-io = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-mmr-primitives = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-vesting-mangata-rpc-runtime-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-vesting-mangata-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-utility-mangata = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } + mmr-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-nis = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + mmr-gadget = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-session-benchmarking = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-offences-benchmarking = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-nomination-pools-benchmarking = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-election-provider-support-benchmarking = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + substrate-state-trie-migration-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-network-light = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-network-sync = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-whitelist = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-staking-reward-fn = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-referenda = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-recovery = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-ranked-collective = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-preimage = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-nomination-pools-runtime-api = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-nomination-pools = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-fast-unstake = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-conviction-voting = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-child-bounties = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-sudo-mangata = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-collective-mangata = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-authorship = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-weights = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-bags-list = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-transaction-payment-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-transaction-payment = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-try-runtime = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-system-rpc-runtime-api = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-system = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-beefy = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-membership = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-benchmarking = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-system-benchmarking = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-identity = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-session = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-aura = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-bounties = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-balances = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-authority-discovery = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-tips = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-election-provider-multi-phase = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-beefy-mmr = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + beefy-merkle-tree = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-scheduler = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-multisig = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-executive = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-im-online = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-treasury = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-sudo = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-offences = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-democracy = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-grandpa = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-election-provider-support = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-collective = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-mmr = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + #pallet-mmr-primitives = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-support = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-support-procedural-tools-derive = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-support-procedural-tools = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-support-procedural = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-staking = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-staking-reward-curve = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-society = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-indices = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-babe = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-timestamp = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-elections-phragmen = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-proxy = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-vesting = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-vesting-mangata = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-utility = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-informant = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-finality-grandpa-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-finality-grandpa = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + beefy-gadget-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + beefy-gadget = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-executor-wasmtime = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-executor-common = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-executor-wasmi = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-executor = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-network-gossip = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-transaction-pool-api = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-transaction-pool = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-tracing-proc-macro = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-tracing = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-client-db = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-sync-state-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-network = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-network-common = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-authority-discovery = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-utils = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-block-builder-ver = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-keystore = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-rpc-server = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-client-api = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-service = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-sysinfo = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-basic-authorship-ver = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-block-builder = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-rpc-api = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-chain-spec-derive = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-chain-spec = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-proposer-metrics = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-peerset = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-basic-authorship = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-offchain = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-state-db = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-allocator = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-consensus = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-consensus-aura = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-consensus-epochs = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-consensus-slots = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-consensus-babe-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-consensus-babe = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-cli = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-telemetry = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + fork-tree = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + substrate-wasm-builder = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + try-runtime-cli = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-benchmarking-cli = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + substrate-frame-rpc-system = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + substrate-build-script-utils = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + substrate-prometheus-endpoint = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + substrate-test-client = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-panic-handler = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-inherents = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-authorship = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-storage = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-std = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-finality-grandpa = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + beefy-primitives = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1", package = "sp-beefy" } + sp-version-proc-macro = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-version = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-transaction-pool = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-ver = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-tracing = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-database = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-debug-derive = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-session = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + extrinsic-shuffler = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + ver-api = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-core-hashing-proc-macro = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-core-hashing = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-core = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-keyring = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-authority-discovery = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-runtime-interface-proc-macro = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-runtime-interface = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-arithmetic = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-keystore = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-api-proc-macro = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-api = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-maybe-compressed-blob = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-transaction-storage-proof = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-state-machine = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-block-builder = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-wasm-interface = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-npos-elections = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + #sp-npos-elections-solution-type = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-application-crypto = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-offchain = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-staking = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-trie = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-blockchain = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-externalities = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-consensus = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-consensus-aura = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-consensus-slots = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-consensus-vrf = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-consensus-babe = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-timestamp = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-runtime = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-io = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-mmr-primitives = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-vesting-mangata-rpc-runtime-api = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-vesting-mangata-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-utility-mangata = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } # patch generated by ./scripts/dev-0.9.29_manifest.sh [patch."https://github.com/PureStake/substrate"] - mmr-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-nis = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - mmr-gadget = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-session-benchmarking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-offences-benchmarking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-nomination-pools-benchmarking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-election-provider-support-benchmarking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - substrate-state-trie-migration-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-network-light = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-network-sync = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-whitelist = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-staking-reward-fn = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-referenda = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-recovery = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-ranked-collective = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-preimage = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-nomination-pools-runtime-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-nomination-pools = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-fast-unstake = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-conviction-voting = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-child-bounties = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-sudo-mangata = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-collective-mangata = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-authorship = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-bags-list = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-transaction-payment-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-transaction-payment = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-try-runtime = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-system-rpc-runtime-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-system = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-beefy = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-membership = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-benchmarking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-system-benchmarking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-identity = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-session = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-aura = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-bounties = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-balances = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-authority-discovery = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-tips = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-election-provider-multi-phase = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-beefy-mmr = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - beefy-merkle-tree = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-scheduler = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-multisig = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-executive = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-im-online = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-treasury = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-sudo = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-offences = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-democracy = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-grandpa = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-utility = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-election-provider-support = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-collective = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-mmr = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - #pallet-mmr-primitives = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-support = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-support-procedural-tools-derive = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-support-procedural-tools = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-support-procedural = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-staking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-staking-reward-curve = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-society = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-indices = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-babe = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-timestamp = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-elections-phragmen = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-proxy = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-vesting = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-vesting-mangata = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-informant = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-finality-grandpa-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-finality-grandpa = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - beefy-gadget-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - beefy-gadget = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-executor-wasmtime = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-executor-common = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-executor-wasmi = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-executor = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-network-gossip = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-transaction-pool-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-transaction-pool = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-tracing-proc-macro = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-tracing = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-client-db = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-sync-state-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-network = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-network-common = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-authority-discovery = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-utils = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-block-builder-ver = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-keystore = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-rpc-server = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-client-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-service = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-sysinfo = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-basic-authorship-ver = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-block-builder = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-rpc-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-chain-spec-derive = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-chain-spec = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-proposer-metrics = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-peerset = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-basic-authorship = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-offchain = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-state-db = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-allocator = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-consensus = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-consensus-aura = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-consensus-epochs = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-consensus-slots = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-consensus-babe-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-consensus-babe = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-cli = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sc-telemetry = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - fork-tree = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - substrate-wasm-builder = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - try-runtime-cli = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - frame-benchmarking-cli = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - substrate-frame-rpc-system = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - substrate-build-script-utils = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - substrate-prometheus-endpoint = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - substrate-test-client = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-panic-handler = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-inherents = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-authorship = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-storage = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-std = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-finality-grandpa = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - beefy-primitives = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev", package = "sp-beefy" } - sp-version-proc-macro = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-version = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-transaction-pool = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-ver = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-tracing = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-database = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-debug-derive = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-session = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - extrinsic-shuffler = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - ver-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-core-hashing-proc-macro = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-core-hashing = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-core = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-keyring = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-authority-discovery = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-runtime-interface-proc-macro = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-runtime-interface = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-arithmetic = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-keystore = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-api-proc-macro = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-maybe-compressed-blob = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-transaction-storage-proof = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-state-machine = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-block-builder = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-wasm-interface = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-npos-elections = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - #sp-npos-elections-solution-type = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-application-crypto = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-offchain = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-staking = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-trie = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-blockchain = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-externalities = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-consensus = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-consensus-aura = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-consensus-slots = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-consensus-vrf = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-consensus-babe = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-timestamp = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-runtime = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-io = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - sp-mmr-primitives = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-vesting-mangata-rpc-runtime-api = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-vesting-mangata-rpc = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } - pallet-utility-mangata = { git = "https://github.com/mangata-finance//substrate", branch = "mangata-dev" } + mmr-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-nis = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + mmr-gadget = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-session-benchmarking = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-offences-benchmarking = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-nomination-pools-benchmarking = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-election-provider-support-benchmarking = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + substrate-state-trie-migration-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-network-light = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-network-sync = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-whitelist = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-staking-reward-fn = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-referenda = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-recovery = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-ranked-collective = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-preimage = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-nomination-pools-runtime-api = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-nomination-pools = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-fast-unstake = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-conviction-voting = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-child-bounties = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-sudo-mangata = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-collective-mangata = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-authorship = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-bags-list = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-transaction-payment-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-transaction-payment = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-try-runtime = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-system-rpc-runtime-api = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-system = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-beefy = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-membership = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-benchmarking = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-system-benchmarking = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-identity = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-session = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-aura = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-bounties = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-balances = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-authority-discovery = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-tips = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-election-provider-multi-phase = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-beefy-mmr = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + beefy-merkle-tree = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-scheduler = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-multisig = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-executive = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-im-online = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-treasury = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-sudo = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-offences = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-democracy = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-grandpa = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-utility = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-election-provider-support = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-collective = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-mmr = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + #pallet-mmr-primitives = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-support = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-support-procedural-tools-derive = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-support-procedural-tools = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-support-procedural = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-staking = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-staking-reward-curve = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-society = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-indices = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-babe = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-timestamp = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-elections-phragmen = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-proxy = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-vesting = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-vesting-mangata = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-informant = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-finality-grandpa-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-finality-grandpa = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + beefy-gadget-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + beefy-gadget = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-executor-wasmtime = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-executor-common = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-executor-wasmi = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-executor = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-network-gossip = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-transaction-pool-api = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-transaction-pool = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-tracing-proc-macro = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-tracing = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-client-db = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-sync-state-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-network = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-network-common = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-authority-discovery = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-utils = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-block-builder-ver = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-keystore = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-rpc-server = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-client-api = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-service = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-sysinfo = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-basic-authorship-ver = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-block-builder = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-rpc-api = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-chain-spec-derive = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-chain-spec = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-proposer-metrics = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-peerset = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-basic-authorship = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-offchain = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-state-db = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-allocator = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-consensus = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-consensus-aura = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-consensus-epochs = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-consensus-slots = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-consensus-babe-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-consensus-babe = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-cli = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sc-telemetry = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + fork-tree = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + substrate-wasm-builder = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + try-runtime-cli = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + frame-benchmarking-cli = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + substrate-frame-rpc-system = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + substrate-build-script-utils = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + substrate-prometheus-endpoint = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + substrate-test-client = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-panic-handler = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-inherents = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-authorship = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-storage = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-std = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-finality-grandpa = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + beefy-primitives = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1", package = "sp-beefy" } + sp-version-proc-macro = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-version = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-transaction-pool = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-ver = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-tracing = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-database = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-debug-derive = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-session = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + extrinsic-shuffler = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + ver-api = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-core-hashing-proc-macro = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-core-hashing = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-core = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-keyring = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-authority-discovery = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-runtime-interface-proc-macro = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-runtime-interface = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-arithmetic = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-keystore = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-api-proc-macro = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-api = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-maybe-compressed-blob = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-transaction-storage-proof = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-state-machine = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-block-builder = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-wasm-interface = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-npos-elections = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + #sp-npos-elections-solution-type = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-application-crypto = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-offchain = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-staking = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-trie = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-blockchain = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-externalities = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-consensus = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-consensus-aura = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-consensus-slots = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-consensus-vrf = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-consensus-babe = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-timestamp = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-runtime = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-io = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + sp-mmr-primitives = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-vesting-mangata-rpc-runtime-api = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-vesting-mangata-rpc = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } + pallet-utility-mangata = { git = "https://github.com/mangata-finance//substrate", tag = "mangata-dev-0.28.1" } # # patch generated by ./scripts/dev_manifest.sh From 4efca8e7206ae285d09708a2f59de1f36f594fc1 Mon Sep 17 00:00:00 2001 From: mateuszaaa Date: Thu, 9 Mar 2023 12:52:37 +0100 Subject: [PATCH 6/8] Fix: [MGX-397] do not include txs into the block when there is no room for execution previous ones (#441) - use 0.28.x maintainance branch from substrate - CI: Fix permission issue on build (#437) --------- Co-authored-by: Misha Kolesnik --- .github/workflows/reusable-build-and-test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/reusable-build-and-test.yml b/.github/workflows/reusable-build-and-test.yml index 536b0dc66d..1dab318c8e 100644 --- a/.github/workflows/reusable-build-and-test.yml +++ b/.github/workflows/reusable-build-and-test.yml @@ -105,7 +105,7 @@ jobs: - name: Fix permissions on self-hosted runner if: always() - run: chown -R 1003:1004 $GITHUB_WORKSPACE + run: chown -R 1004:1005 $GITHUB_WORKSPACE rustfmt-check: name: Formatting check @@ -166,7 +166,7 @@ jobs: run: cargo test -j2 - name: Fix permissions on self-hosted runner if: always() - run: chown -R 1003:1004 $GITHUB_WORKSPACE + run: chown -R 1004:1005 $GITHUB_WORKSPACE run-benchmarks-tests: name: Run benchmark tests @@ -223,7 +223,7 @@ jobs: - name: Fix permissions on self-hosted runner if: always() - run: chown -R 1003:1004 $GITHUB_WORKSPACE + run: chown -R 1004:1005 $GITHUB_WORKSPACE run-benchmarks: name: Run runtime benchmarks @@ -282,7 +282,7 @@ jobs: - name: Fix permissions on self-hosted runner if: always() - run: chown -R 1003:1004 $GITHUB_WORKSPACE + run: chown -R 1004:1005 $GITHUB_WORKSPACE - name: Upload logs and docker images to GitHub if: ${{ contains(github.event.pull_request.labels.*.name, 'full-benchmarks') }} From 22bc16821db51eb18250a159f23756e594a4e551 Mon Sep 17 00:00:00 2001 From: mateuszaaa Date: Thu, 23 Mar 2023 00:06:48 +0100 Subject: [PATCH 7/8] 0.28.2 release (#450) - align staking params & fix MAXIMUM_BLOCK_WEIGHT - align chainspecs --- .github/workflows/release.yml | 2 +- Cargo.lock | 2 +- Cargo.toml | 3 ++- node/src/chain_spec/mangata_kusama.rs | 36 +++++++++++++-------------- node/src/chain_spec/mangata_rococo.rs | 24 +++++++++--------- runtime/mangata-kusama/src/lib.rs | 22 ++++++++-------- runtime/mangata-rococo/src/lib.rs | 22 ++++++++-------- 7 files changed, 56 insertions(+), 55 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index abcb9e6fab..b54ee9ad6a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: id: set_vars run: | RELEASE_NAME=${{ github.event.release.name }} - echo "RELEASE_VERSION=${RELEASE_NAME#v}" >> $GITHUB_OUTPUT + echo "RELEASE_VERSION=${RELEASE_NAME}" >> $GITHUB_OUTPUT publish: needs: [init] diff --git a/Cargo.lock b/Cargo.lock index 4e4700bda3..06d6ece72b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6775,7 +6775,7 @@ dependencies = [ [[package]] name = "parachain-staking" version = "3.0.0" -source = "git+https://github.com/mangata-finance//moonbeam?branch=mangata-dev#7388e3677b8e58843630515e503d9c0ab52f5c01" +source = "git+https://github.com/mangata-finance//moonbeam?tag=v0.28.2#9fbefa7da975e902288eb284e370bf6011650107" dependencies = [ "frame-benchmarking", "frame-support", diff --git a/Cargo.toml b/Cargo.toml index d93727cc27..e634141071 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,7 +45,8 @@ orml-asset-registry = { git = "https://github.com/mangata-finance//open-runtime- # patch generated by ./scripts/dev_manifest.sh [patch."https://github.com/mangata-finance/moonbeam"] -parachain-staking = { git = "https://github.com/mangata-finance//moonbeam", branch = "mangata-dev" } +# parachain-staking = { path = "../moonbeam/pallets/parachain-staking" } +parachain-staking = { git = "https://github.com/mangata-finance//moonbeam", tag = "v0.28.2" } [patch."https://github.com/mangata-finance/crowdloan-rewards"] pallet-crowdloan-rewards = { git = "https://github.com/mangata-finance//crowdloan-rewards", branch = "mangata-dev" } diff --git a/node/src/chain_spec/mangata_kusama.rs b/node/src/chain_spec/mangata_kusama.rs index 1d0127d0bf..293b128bdb 100644 --- a/node/src/chain_spec/mangata_kusama.rs +++ b/node/src/chain_spec/mangata_kusama.rs @@ -162,15 +162,15 @@ pub fn kusama_mainnet_config() -> ChainSpec { // Id of MGA token, 0u32, // How much mangata they pool - 10_000__000_000_000_000_000_000u128, + 10_000_000__000_000_000_000_000_000u128, // Id of the dummy token, 2u32, // How many dummy tokens they pool, - 20_000__000_000_000_000_000_000u128, + 20_000_000__000_000_000_000_000_000u128, // Id of the liquidity token that is generated 3u32, // How many liquidity tokens they stake, - 10_000__000_000_000_000_000_000u128, + 10_000_000__000_000_000_000_000_000u128, ), ( // Who gets to stake initially @@ -178,15 +178,15 @@ pub fn kusama_mainnet_config() -> ChainSpec { // Id of MGA token, 0u32, // How much mangata they pool - 8_000__000_000_000_000_000_000u128, + 8_000_000__000_000_000_000_000_000u128, // Id of the dummy token, 2u32, // How many dummy tokens they pool, - 20_000__000_000_000_000_000_000u128, + 20_000_000__000_000_000_000_000_000u128, // Id of the liquidity token that is generated 3u32, // How many liquidity tokens they stake, - 5_000__000_000_000_000_000_000u128, + 5_000_000__000_000_000_000_000_000u128, ), ], vec![ @@ -318,15 +318,15 @@ pub fn development_config() -> ChainSpec { // Id of MGA token, 0u32, // How much mangata they pool - 10_000__000_000_000_000_000_000u128, + 10_000_000__000_000_000_000_000_000u128, // Id of the dummy token, 2u32, // How many dummy tokens they pool, - 20_000__000_000_000_000_000_000u128, + 20_000_000__000_000_000_000_000_000u128, // Id of the liquidity token that is generated 3u32, // How many liquidity tokens they stake, - 10_000__000_000_000_000_000_000u128, + 10_000_000__000_000_000_000_000_000u128, ), ( // Who gets to stake initially @@ -334,15 +334,15 @@ pub fn development_config() -> ChainSpec { // Id of MGA token, 0u32, // How much mangata they pool - 8_000__000_000_000_000_000_000u128, + 8_000_000__000_000_000_000_000_000u128, // Id of the dummy token, 2u32, // How many dummy tokens they pool, - 20_000__000_000_000_000_000_000u128, + 20_000_000__000_000_000_000_000_000u128, // Id of the liquidity token that is generated 3u32, // How many liquidity tokens they stake, - 5_000__000_000_000_000_000_000u128, + 5_000_000__000_000_000_000_000_000u128, ), ], vec![ @@ -476,15 +476,15 @@ pub fn local_config() -> ChainSpec { // Id of MGA token, 0u32, // How much mangata they pool - 10_000__000_000_000_000_000_000u128, + 10_000_000__000_000_000_000_000_000u128, // Id of the dummy token, 2u32, // How many dummy tokens they pool, - 20_000__000_000_000_000_000_000u128, + 20_000_000__000_000_000_000_000_000u128, // Id of the liquidity token that is generated 3u32, // How many liquidity tokens they stake, - 10_000__000_000_000_000_000_000u128, + 10_000_000__000_000_000_000_000_000u128, ), ( // Who gets to stake initially @@ -492,15 +492,15 @@ pub fn local_config() -> ChainSpec { // Id of MGA token, 0u32, // How much mangata they pool - 8_000__000_000_000_000_000_000u128, + 8_000_000__000_000_000_000_000_000u128, // Id of the dummy token, 2u32, // How many dummy tokens they pool, - 20_000__000_000_000_000_000_000u128, + 20_000_000__000_000_000_000_000_000u128, // Id of the liquidity token that is generated 3u32, // How many liquidity tokens they stake, - 5_000__000_000_000_000_000_000u128, + 5_000_000__000_000_000_000_000_000u128, ), ], vec![ diff --git a/node/src/chain_spec/mangata_rococo.rs b/node/src/chain_spec/mangata_rococo.rs index 950f7b7668..d91f92aa7a 100644 --- a/node/src/chain_spec/mangata_rococo.rs +++ b/node/src/chain_spec/mangata_rococo.rs @@ -148,15 +148,15 @@ pub fn public_testnet_config() -> ChainSpec { // Id of MGA token, 0u32, // How much mangata they pool - 10_000__000_000_000_000_000_000u128, + 10_000_000__000_000_000_000_000_000u128, // Id of the dummy token, 2u32, // How many dummy tokens they pool, - 20_000__000_000_000_000_000_000u128, + 20_000_000__000_000_000_000_000_000u128, // Id of the liquidity token that is generated 3u32, // How many liquidity tokens they stake, - 10_000__000_000_000_000_000_000u128, + 10_000_000__000_000_000_000_000_000u128, ), ( // Who gets to stake initially @@ -164,15 +164,15 @@ pub fn public_testnet_config() -> ChainSpec { // Id of MGA token, 0u32, // How much mangata they pool - 8_000__000_000_000_000_000_000u128, + 8_000_000__000_000_000_000_000_000u128, // Id of the dummy token, 2u32, // How many dummy tokens they pool, - 20_000__000_000_000_000_000_000u128, + 20_000_000__000_000_000_000_000_000u128, // Id of the liquidity token that is generated 3u32, // How many liquidity tokens they stake, - 5_000__000_000_000_000_000_000u128, + 5_000_000__000_000_000_000_000_000u128, ), ], vec![ @@ -297,15 +297,15 @@ pub fn mangata_rococo_local_config() -> ChainSpec { // Id of MGA token, 0u32, // How much mangata they pool - 10_000__000_000_000_000_000_000u128, + 10_000_000__000_000_000_000_000_000u128, // Id of the dummy token, 2u32, // How many dummy tokens they pool, - 20_000__000_000_000_000_000_000u128, + 20_000_000__000_000_000_000_000_000u128, // Id of the liquidity token that is generated 3u32, // How many liquidity tokens they stake, - 10_000__000_000_000_000_000_000u128, + 10_000_000__000_000_000_000_000_000u128, ), ( // Who gets to stake initially @@ -313,15 +313,15 @@ pub fn mangata_rococo_local_config() -> ChainSpec { // Id of MGA token, 0u32, // How much mangata they pool - 8_000__000_000_000_000_000_000u128, + 8_000_000__000_000_000_000_000_000u128, // Id of the dummy token, 2u32, // How many dummy tokens they pool, - 20_000__000_000_000_000_000_000u128, + 20_000_000__000_000_000_000_000_000u128, // Id of the liquidity token that is generated 3u32, // How many liquidity tokens they stake, - 5_000__000_000_000_000_000_000u128, + 5_000_000__000_000_000_000_000_000u128, ), ], vec![ diff --git a/runtime/mangata-kusama/src/lib.rs b/runtime/mangata-kusama/src/lib.rs index 68fb34abe3..a3806bf4a8 100644 --- a/runtime/mangata-kusama/src/lib.rs +++ b/runtime/mangata-kusama/src/lib.rs @@ -160,11 +160,11 @@ impl_opaque_keys! { pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("mangata-parachain"), impl_name: create_runtime_str!("mangata-parachain"), - authoring_version: 14, - spec_version: 14, + authoring_version: 15, + spec_version: 15, impl_version: 0, apis: RUNTIME_API_VERSIONS, - transaction_version: 14, + transaction_version: 15, state_version: 0, }; @@ -174,10 +174,10 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("mangata-parachain"), impl_name: create_runtime_str!("mangata-parachain"), authoring_version: 15, - spec_version: 15, + spec_version: 002802, impl_version: 0, apis: RUNTIME_API_VERSIONS, - transaction_version: 15, + transaction_version: 002802, state_version: 0, }; @@ -229,10 +229,10 @@ const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75); /// We allow for 0.5 of a second of compute with a 12 second average block time. /// NOTE: reduced by half comparing to origin impl as we want to fill block only up to 50% /// so there is room for new extrinsics in the next block -// const MAXIMUM_BLOCK_WEIGHT: Weight = -// WEIGHT_PER_SECOND.saturating_div(4).set_proof_size((cumulus_primitives_core::relay_chain::v2::MAX_POV_SIZE as u64).saturating_div(2)); -const MAXIMUM_BLOCK_WEIGHT: Weight = - Weight::from_parts(WEIGHT_REF_TIME_PER_SECOND.saturating_mul(2), u64::MAX); +const MAXIMUM_BLOCK_WEIGHT: Weight = Weight::from_parts( + WEIGHT_REF_TIME_PER_SECOND.saturating_div(4), + cumulus_primitives_core::relay_chain::v2::MAX_POV_SIZE as u64, +); /// The version information used to identify this runtime when compiled natively. #[cfg(feature = "std")] @@ -1293,7 +1293,7 @@ parameter_types! { /// Minimum collators selected per round, default at genesis and minimum forever after pub const MinSelectedCandidates: u32 = 25; /// Maximum collator candidates allowed - pub const MaxCollatorCandidates: u32 = 35; + pub const MaxCollatorCandidates: u32 = 50; /// Maximum delegators allowed per candidate pub const MaxTotalDelegatorsPerCandidate: u32 = 25; /// Maximum delegators counted per candidate @@ -1305,7 +1305,7 @@ parameter_types! { /// Minimum stake required to become a collator pub const MinCollatorStk: u128 = 10 * DOLLARS; /// Minimum stake required to be reserved to be a candidate - pub const MinCandidateStk: u128 = 1 * DOLLARS; + pub const MinCandidateStk: u128 = 1_500_000 * DOLLARS; /// Minimum stake required to be reserved to be a delegator pub const MinDelegatorStk: u128 = 1 * CENTS; } diff --git a/runtime/mangata-rococo/src/lib.rs b/runtime/mangata-rococo/src/lib.rs index f1db610338..5e4a419cc1 100644 --- a/runtime/mangata-rococo/src/lib.rs +++ b/runtime/mangata-rococo/src/lib.rs @@ -160,11 +160,11 @@ impl_opaque_keys! { pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("mangata-parachain"), impl_name: create_runtime_str!("mangata-parachain"), - authoring_version: 13, - spec_version: 13, + authoring_version: 14, + spec_version: 14, impl_version: 0, apis: RUNTIME_API_VERSIONS, - transaction_version: 13, + transaction_version: 14, state_version: 0, }; @@ -174,10 +174,10 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("mangata-parachain"), impl_name: create_runtime_str!("mangata-parachain"), authoring_version: 14, - spec_version: 14, + spec_version: 002802, impl_version: 0, apis: RUNTIME_API_VERSIONS, - transaction_version: 14, + transaction_version: 002802, state_version: 0, }; @@ -229,10 +229,10 @@ const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75); /// We allow for 0.5 of a second of compute with a 12 second average block time. /// NOTE: reduced by half comparing to origin impl as we want to fill block only up to 50% /// so there is room for new extrinsics in the next block -// const MAXIMUM_BLOCK_WEIGHT: Weight = -// WEIGHT_PER_SECOND.saturating_div(4).set_proof_size((cumulus_primitives_core::relay_chain::v2::MAX_POV_SIZE as u64).saturating_div(2)); -const MAXIMUM_BLOCK_WEIGHT: Weight = - Weight::from_parts(WEIGHT_REF_TIME_PER_SECOND.saturating_mul(2), u64::MAX); +const MAXIMUM_BLOCK_WEIGHT: Weight = Weight::from_parts( + WEIGHT_REF_TIME_PER_SECOND.saturating_div(4), + cumulus_primitives_core::relay_chain::v2::MAX_POV_SIZE as u64, +); /// The version information used to identify this runtime when compiled natively. #[cfg(feature = "std")] @@ -1284,7 +1284,7 @@ parameter_types! { /// Minimum collators selected per round, default at genesis and minimum forever after pub const MinSelectedCandidates: u32 = 25; /// Maximum collator candidates allowed - pub const MaxCollatorCandidates: u32 = 35; + pub const MaxCollatorCandidates: u32 = 50; /// Maximum delegators allowed per candidate pub const MaxTotalDelegatorsPerCandidate: u32 = 25; /// Maximum delegators counted per candidate @@ -1296,7 +1296,7 @@ parameter_types! { /// Minimum stake required to become a collator pub const MinCollatorStk: u128 = 10 * DOLLARS; /// Minimum stake required to be reserved to be a candidate - pub const MinCandidateStk: u128 = 1 * DOLLARS; + pub const MinCandidateStk: u128 = 1_500_000 * DOLLARS; /// Minimum stake required to be reserved to be a delegator pub const MinDelegatorStk: u128 = 1 * CENTS; } From a2ae1f16e4c7eb199b57073fd6960faf76d0f211 Mon Sep 17 00:00:00 2001 From: Mario Kapusta Date: Mon, 27 Mar 2023 15:51:44 +0200 Subject: [PATCH 8/8] Delete westend.toml --- devops/zombienet/westend.toml | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 devops/zombienet/westend.toml diff --git a/devops/zombienet/westend.toml b/devops/zombienet/westend.toml deleted file mode 100644 index 85cc1a26b7..0000000000 --- a/devops/zombienet/westend.toml +++ /dev/null @@ -1,29 +0,0 @@ -[settings] -provider = "native" -timeout = 1000 - -[relaychain] -default_command = "../parity/polkadot/target/release/polkadot" -chain = "westend-local" - - [[relaychain.nodes]] - name = "alice" - ws_port = 9944 - - [[relaychain.nodes]] - name = "bob" - -[[parachains]] -id = 2110 -cumulus_based = true -chain = "mangata-rococo-local-testnet" - - [[parachains.collators]] - name = "alice" - command = "./target/release/mangata-node" - ws_port = 9946 - rpc_port = 8866 - - # [[parachains.collators]] - # name = "bob" - # command = "./target/release/mangata-node" \ No newline at end of file