diff --git a/Cargo.lock b/Cargo.lock
index 39b85bbe878..48edf7636da 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -157,6 +157,32 @@ version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9b34d609dfbaf33d6889b2b7106d3ca345eacad44200913df5ba02bfd31d2ba9"
+[[package]]
+name = "assets-rpc"
+version = "0.0.1"
+dependencies = [
+ "assets-runtime-api",
+ "composable-support",
+ "jsonrpc-core",
+ "jsonrpc-core-client",
+ "jsonrpc-derive",
+ "parity-scale-codec",
+ "scale-info",
+ "sp-api",
+ "sp-blockchain",
+ "sp-runtime",
+ "sp-std",
+]
+
+[[package]]
+name = "assets-runtime-api"
+version = "0.0.1"
+dependencies = [
+ "composable-support",
+ "parity-scale-codec",
+ "sp-api",
+]
+
[[package]]
name = "async-attributes"
version = "1.1.2"
@@ -274,7 +300,7 @@ dependencies = [
"async-io",
"async-lock",
"async-process",
- "crossbeam-utils 0.8.6",
+ "crossbeam-utils 0.8.7",
"futures-channel",
"futures-core",
"futures-io",
@@ -354,7 +380,7 @@ version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b88d82667eca772c4aa12f0f1348b3ae643424c8876448f3f7bd5787032e234c"
dependencies = [
- "autocfg 1.0.1",
+ "autocfg 1.1.0",
]
[[package]]
@@ -376,15 +402,18 @@ dependencies = [
[[package]]
name = "autocfg"
-version = "0.1.7"
+version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1d49d90015b3c36167a20fe2810c5cd875ad504b39cff3d4eae7977e6b7c1cb2"
+checksum = "0dde43e75fd43e8a1bf86103336bc699aa8d17ad1be60c76c0bdfd4828e19b78"
+dependencies = [
+ "autocfg 1.1.0",
+]
[[package]]
name = "autocfg"
-version = "1.0.1"
+version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
+checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
[[package]]
name = "backtrace"
@@ -454,7 +483,7 @@ source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.16#
dependencies = [
"beefy-primitives",
"fnv",
- "futures 0.3.19",
+ "futures 0.3.21",
"log 0.4.14",
"parity-scale-codec",
"parking_lot 0.11.2",
@@ -484,7 +513,7 @@ dependencies = [
"beefy-gadget",
"beefy-primitives",
"derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
"jsonrpc-core",
"jsonrpc-core-client",
"jsonrpc-derive",
@@ -685,9 +714,9 @@ dependencies = [
[[package]]
name = "block-buffer"
-version = "0.10.0"
+version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f1d36a02058e76b040de25a4464ba1c80935655595b661505c8b39b664828b95"
+checksum = "0bf7fe51849ea569fd452f37822f606a5cabb684dc918707a0193fd4664ff324"
dependencies = [
"generic-array 0.14.5",
]
@@ -992,7 +1021,7 @@ checksum = "ba2ae6de944143141f6155a473a6b02f66c7c3f9f47316f802f80204ebfe6e12"
dependencies = [
"camino",
"cargo-platform",
- "semver 1.0.4",
+ "semver 1.0.5",
"serde",
"serde_json",
]
@@ -1233,8 +1262,12 @@ dependencies = [
name = "composable-node"
version = "1.0.9"
dependencies = [
+ "assets-rpc",
+ "assets-runtime-api",
"common",
"composable-runtime",
+ "crowdloan-rewards-rpc",
+ "crowdloan-rewards-runtime-api",
"cumulus-client-cli",
"cumulus-client-collator",
"cumulus-client-consensus-aura",
@@ -1251,6 +1284,8 @@ dependencies = [
"hex",
"jsonrpc-core",
"log 0.4.14",
+ "pallet-assets",
+ "pallet-crowdloan-rewards",
"pallet-transaction-payment-rpc",
"pallet-transaction-payment-rpc-runtime-api",
"parity-scale-codec",
@@ -1259,6 +1294,7 @@ dependencies = [
"polkadot-parachain",
"polkadot-primitives",
"polkadot-service",
+ "primitives",
"sc-basic-authorship",
"sc-chain-spec",
"sc-cli",
@@ -1303,8 +1339,11 @@ dependencies = [
name = "composable-runtime"
version = "0.1.0"
dependencies = [
+ "assets-runtime-api",
"common",
+ "composable-support",
"composable-traits",
+ "crowdloan-rewards-runtime-api",
"cumulus-pallet-aura-ext",
"cumulus-pallet-dmp-queue",
"cumulus-pallet-parachain-system",
@@ -1334,6 +1373,7 @@ dependencies = [
"pallet-call-filter",
"pallet-collator-selection",
"pallet-collective",
+ "pallet-crowdloan-rewards",
"pallet-currency-factory",
"pallet-democracy 4.0.0-dev",
"pallet-governance-registry",
@@ -1414,7 +1454,6 @@ dependencies = [
"composable-support",
"frame-support",
"frame-system",
- "orml-traits",
"parity-scale-codec",
"plotters",
"proptest 1.0.0",
@@ -1449,9 +1488,9 @@ checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e"
[[package]]
name = "core-foundation"
-version = "0.9.2"
+version = "0.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6888e10551bb93e424d8df1d07f1a8b4fceb0001a3a4b048bfc47554946f47b3"
+checksum = "194a7a9e6de53fa55116934067c844d9d749312f75c6f6d0980e8c252f8c2146"
dependencies = [
"core-foundation-sys",
"libc",
@@ -1618,9 +1657,9 @@ dependencies = [
[[package]]
name = "crc32fast"
-version = "1.3.1"
+version = "1.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a2209c310e29876f7f0b2721e7e26b84aff178aa3da5d091f9bfbf47669e60e3"
+checksum = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d"
dependencies = [
"cfg-if 1.0.0",
]
@@ -1632,7 +1671,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e54ea8bc3fb1ee042f5aace6e3c6e025d3874866da222930f70ce62aceba0bfa"
dependencies = [
"cfg-if 1.0.0",
- "crossbeam-utils 0.8.6",
+ "crossbeam-utils 0.8.7",
]
[[package]]
@@ -1643,17 +1682,17 @@ checksum = "6455c0ca19f0d2fbf751b908d5c55c1f5cbc65e03c4225427254b46890bdde1e"
dependencies = [
"cfg-if 1.0.0",
"crossbeam-epoch",
- "crossbeam-utils 0.8.6",
+ "crossbeam-utils 0.8.7",
]
[[package]]
name = "crossbeam-epoch"
-version = "0.9.6"
+version = "0.9.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "97242a70df9b89a65d0b6df3c4bf5b9ce03c5b7309019777fbde37e7537f8762"
+checksum = "c00d6d2ea26e8b151d99093005cb442fb9a37aeaca582a03ec70946f49ab5ed9"
dependencies = [
"cfg-if 1.0.0",
- "crossbeam-utils 0.8.6",
+ "crossbeam-utils 0.8.7",
"lazy_static",
"memoffset",
"scopeguard",
@@ -1665,21 +1704,49 @@ version = "0.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8"
dependencies = [
- "autocfg 1.0.1",
+ "autocfg 1.1.0",
"cfg-if 0.1.10",
"lazy_static",
]
[[package]]
name = "crossbeam-utils"
-version = "0.8.6"
+version = "0.8.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cfcae03edb34f947e64acdb1c33ec169824e20657e9ecb61cef6c8c74dcb8120"
+checksum = "b5e5bed1f1c269533fa816a0a5492b3545209a205ca1a54842be180eb63a16a6"
dependencies = [
"cfg-if 1.0.0",
"lazy_static",
]
+[[package]]
+name = "crowdloan-rewards-rpc"
+version = "0.0.1"
+dependencies = [
+ "composable-support",
+ "composable-traits",
+ "crowdloan-rewards-runtime-api",
+ "frame-support",
+ "jsonrpc-core",
+ "jsonrpc-core-client",
+ "jsonrpc-derive",
+ "parity-scale-codec",
+ "scale-info",
+ "sp-api",
+ "sp-blockchain",
+ "sp-runtime",
+ "sp-std",
+]
+
+[[package]]
+name = "crowdloan-rewards-runtime-api"
+version = "0.0.1"
+dependencies = [
+ "composable-support",
+ "parity-scale-codec",
+ "sp-api",
+]
+
[[package]]
name = "crunchy"
version = "0.2.2"
@@ -1773,7 +1840,7 @@ dependencies = [
"cumulus-client-network",
"cumulus-primitives-core",
"cumulus-relay-chain-interface",
- "futures 0.3.19",
+ "futures 0.3.21",
"parity-scale-codec",
"parking_lot 0.10.2",
"polkadot-node-primitives",
@@ -1796,7 +1863,7 @@ dependencies = [
"async-trait",
"cumulus-client-consensus-common",
"cumulus-primitives-core",
- "futures 0.3.19",
+ "futures 0.3.21",
"parity-scale-codec",
"sc-client-api",
"sc-consensus",
@@ -1825,7 +1892,7 @@ dependencies = [
"async-trait",
"cumulus-relay-chain-interface",
"dyn-clone",
- "futures 0.3.19",
+ "futures 0.3.21",
"parity-scale-codec",
"polkadot-primitives",
"sc-client-api",
@@ -1846,7 +1913,7 @@ dependencies = [
"async-trait",
"cumulus-relay-chain-interface",
"derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"parity-scale-codec",
"parking_lot 0.11.2",
@@ -1870,7 +1937,7 @@ source = "git+https://github.com/paritytech/cumulus?branch=polkadot-v0.9.16#86f7
dependencies = [
"cumulus-primitives-core",
"cumulus-relay-chain-interface",
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"parity-scale-codec",
"polkadot-node-primitives",
@@ -2117,7 +2184,7 @@ dependencies = [
"async-trait",
"cumulus-primitives-core",
"derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
"parking_lot 0.11.2",
"polkadot-overseer",
"sc-client-api",
@@ -2138,7 +2205,7 @@ dependencies = [
"async-trait",
"cumulus-primitives-core",
"cumulus-relay-chain-interface",
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"parking_lot 0.11.2",
"polkadot-client",
@@ -2207,8 +2274,11 @@ checksum = "ef8ae57c4978a2acd8b869ce6b9ca1dfe817bff704c220209fdef2c0b75a01b9"
name = "dali-runtime"
version = "0.1.0"
dependencies = [
+ "assets-runtime-api",
"common",
+ "composable-support",
"composable-traits",
+ "crowdloan-rewards-runtime-api",
"cumulus-pallet-aura-ext",
"cumulus-pallet-dmp-queue",
"cumulus-pallet-parachain-system",
@@ -2372,7 +2442,7 @@ version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b697d66081d42af4fba142d56918a3cb21dc8eb63372c6b85d14f44fb9c5979b"
dependencies = [
- "block-buffer 0.10.0",
+ "block-buffer 0.10.2",
"crypto-common",
"generic-array 0.14.5",
]
@@ -2576,19 +2646,6 @@ dependencies = [
"syn 1.0.86",
]
-[[package]]
-name = "env_logger"
-version = "0.7.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36"
-dependencies = [
- "atty",
- "humantime 1.3.0",
- "log 0.4.14",
- "regex",
- "termcolor",
-]
-
[[package]]
name = "env_logger"
version = "0.8.4"
@@ -2596,7 +2653,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a19187fea3ac7e84da7dacf48de0c45d63c6a76f9490dae389aead16c243fce3"
dependencies = [
"atty",
- "humantime 2.1.0",
+ "humantime",
"log 0.4.14",
"regex",
"termcolor",
@@ -2609,7 +2666,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3"
dependencies = [
"atty",
- "humantime 2.1.0",
+ "humantime",
"log 0.4.14",
"regex",
"termcolor",
@@ -2699,7 +2756,7 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e43f2f1833d64e33f15592464d6fdd70f349dda7b1a53088eb83cd94014008c5"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
]
[[package]]
@@ -2754,11 +2811,11 @@ dependencies = [
[[package]]
name = "file-per-thread-logger"
-version = "0.1.4"
+version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4fdbe0d94371f9ce939b555dd342d0686cc4c0cadbcd4b61d70af5ff97eb4126"
+checksum = "21e16290574b39ee41c71aeb90ae960c504ebaf1e2a1c87bd52aa56ed6e1a02f"
dependencies = [
- "env_logger 0.7.1",
+ "env_logger 0.9.0",
"log 0.4.14",
]
@@ -2769,7 +2826,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e8ac3ff5224ef91f3c97e03eb1de2db82743427e91aaa5ac635f454f0b164f5a"
dependencies = [
"either",
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"log 0.4.14",
"num-traits",
@@ -3168,9 +3225,9 @@ checksum = "3a471a38ef8ed83cd6e40aa59c1ffe17db6855c18e3604d9c4ed8c08ebc28678"
[[package]]
name = "futures"
-version = "0.3.19"
+version = "0.3.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "28560757fe2bb34e79f907794bb6b22ae8b0e5c669b638a1132f2592b19035b4"
+checksum = "f73fe65f54d1e12b726f517d3e2135ca3125a437b6d998caf1962961f7172d9e"
dependencies = [
"futures-channel",
"futures-core",
@@ -3183,9 +3240,9 @@ dependencies = [
[[package]]
name = "futures-channel"
-version = "0.3.19"
+version = "0.3.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ba3dda0b6588335f360afc675d0564c17a77a2bda81ca178a4b6081bd86c7f0b"
+checksum = "c3083ce4b914124575708913bca19bfe887522d6e2e6d0952943f5eac4a74010"
dependencies = [
"futures-core",
"futures-sink",
@@ -3193,15 +3250,15 @@ dependencies = [
[[package]]
name = "futures-core"
-version = "0.3.19"
+version = "0.3.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d0c8ff0461b82559810cdccfde3215c3f373807f5e5232b71479bff7bb2583d7"
+checksum = "0c09fd04b7e4073ac7156a9539b57a484a8ea920f79c7c675d05d289ab6110d3"
[[package]]
name = "futures-executor"
-version = "0.3.19"
+version = "0.3.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "29d6d2ff5bb10fb95c85b8ce46538a2e5f5e7fdc755623a7d4529ab8a4ed9d2a"
+checksum = "9420b90cfa29e327d0429f19be13e7ddb68fa1cccb09d65e5706b8c7a749b8a6"
dependencies = [
"futures-core",
"futures-task",
@@ -3211,9 +3268,9 @@ dependencies = [
[[package]]
name = "futures-io"
-version = "0.3.19"
+version = "0.3.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b1f9d34af5a1aac6fb380f735fe510746c38067c5bf16c7fd250280503c971b2"
+checksum = "fc4045962a5a5e935ee2fdedaa4e08284547402885ab326734432bed5d12966b"
[[package]]
name = "futures-lite"
@@ -3232,9 +3289,9 @@ dependencies = [
[[package]]
name = "futures-macro"
-version = "0.3.19"
+version = "0.3.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6dbd947adfffb0efc70599b3ddcf7b5597bb5fa9e245eb99f62b3a5f7bb8bd3c"
+checksum = "33c1e13800337f4d4d7a316bf45a567dbcb6ffe087f16424852d97e97a91f512"
dependencies = [
"proc-macro2 1.0.36",
"quote 1.0.15",
@@ -3254,15 +3311,15 @@ dependencies = [
[[package]]
name = "futures-sink"
-version = "0.3.19"
+version = "0.3.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e3055baccb68d74ff6480350f8d6eb8fcfa3aa11bdc1a1ae3afdd0514617d508"
+checksum = "21163e139fa306126e6eedaf49ecdb4588f939600f0b1e770f4205ee4b7fa868"
[[package]]
name = "futures-task"
-version = "0.3.19"
+version = "0.3.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6ee7c6485c30167ce4dfb83ac568a849fe53274c831081476ee13e0dce1aad72"
+checksum = "57c66a976bf5909d801bbef33416c41372779507e7a6b3a5e25e4749c58f776a"
[[package]]
name = "futures-timer"
@@ -3272,9 +3329,9 @@ checksum = "e64b03909df88034c26dc1547e8970b91f98bdb65165d6a4e9110d94263dbb2c"
[[package]]
name = "futures-util"
-version = "0.3.19"
+version = "0.3.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d9b5cf40b47a271f77a8b1bec03ca09044d99d2372c0de244e66430761127164"
+checksum = "d8b7abd5d659d9b90c8cba917f6ec750a74e2dc23902ef9cd4cc8c8b22e6036a"
dependencies = [
"futures 0.1.31",
"futures-channel",
@@ -3593,9 +3650,9 @@ dependencies = [
[[package]]
name = "httparse"
-version = "1.5.1"
+version = "1.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "acd94fdbe1d4ff688b67b04eee2e17bd50995534a61539e45adfefb45e5e5503"
+checksum = "9100414882e15fb7feccb4897e5f0ff0ff1ca7d1a86a23208ada4d7a18e6c6c4"
[[package]]
name = "httpdate"
@@ -3603,15 +3660,6 @@ version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421"
-[[package]]
-name = "humantime"
-version = "1.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "df004cfca50ef23c36850aaaa59ad52cc70d0e90243c3c7737a4dd32dc7a3c4f"
-dependencies = [
- "quick-error 1.2.3",
-]
-
[[package]]
name = "humantime"
version = "2.1.0"
@@ -3741,7 +3789,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ae8ab7f67bad3240049cb24fb9cb0b4c2c6af4c245840917fbbdededeee91179"
dependencies = [
"async-io",
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-lite",
"if-addrs",
"ipnet",
@@ -3795,9 +3843,9 @@ dependencies = [
[[package]]
name = "impl-trait-for-tuples"
-version = "0.2.1"
+version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d5dacb10c5b3bb92d46ba347505a9041e676bb20ad220101326bffb0c93031ee"
+checksum = "11d7a9f6330b71fea57921c9b61c47ee6e84f72d394754eff6163ae67e7395eb"
dependencies = [
"proc-macro2 1.0.36",
"quote 1.0.15",
@@ -3816,7 +3864,7 @@ version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "282a6247722caba404c065016bbfa522806e51714c34f5dfc3e4a3a46fcb4223"
dependencies = [
- "autocfg 1.0.1",
+ "autocfg 1.1.0",
"hashbrown 0.11.2",
"serde",
]
@@ -3945,7 +3993,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d2b99d4207e2a04fb4581746903c2bb7eb376f88de9c699d0f3e10feeac0cd3a"
dependencies = [
"derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
"hyper 0.14.16",
"hyper-tls",
"jsonrpc-core",
@@ -3964,7 +4012,7 @@ version = "18.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "14f7f76aef2d054868398427f6c54943cf3d1caa9a7ec7d0c38d69df97a965eb"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-executor",
"futures-util",
"log 0.4.14",
@@ -3979,7 +4027,7 @@ version = "18.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b51da17abecbdab3e3d4f26b01c5ec075e88d3abe3ab3b05dc9aa69392764ec0"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"jsonrpc-client-transports",
]
@@ -4001,7 +4049,7 @@ version = "18.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e1dea6e07251d9ce6a552abfb5d7ad6bc290a4596c8dcc3d795fae2bbdc1f3ff"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"hyper 0.14.16",
"jsonrpc-core",
"jsonrpc-server-utils",
@@ -4017,7 +4065,7 @@ version = "18.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "382bb0206323ca7cda3dcd7e245cea86d37d02457a02a975e3378fb149a48845"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"jsonrpc-core",
"jsonrpc-server-utils",
"log 0.4.14",
@@ -4032,7 +4080,7 @@ version = "18.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "240f87695e6c6f62fb37f05c02c04953cf68d6408b8c1c89de85c7a0125b1011"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"jsonrpc-core",
"lazy_static",
"log 0.4.14",
@@ -4048,7 +4096,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fa4fdea130485b572c39a460d50888beb00afb3e35de23ccd7fad8ff19f0e0d4"
dependencies = [
"bytes 1.1.0",
- "futures 0.3.19",
+ "futures 0.3.21",
"globset",
"jsonrpc-core",
"lazy_static",
@@ -4065,7 +4113,7 @@ version = "18.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f892c7d766369475ab7b0669f417906302d7c0fb521285c0a0c92e52e7c8e946"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"jsonrpc-core",
"jsonrpc-server-utils",
"log 0.4.14",
@@ -4104,7 +4152,7 @@ version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3303cdf246e6ab76e2866fb3d9acb6c76a068b1b28bd923a1b7a8122257ad7b5"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"http",
"jsonrpsee-core",
"jsonrpsee-types 0.8.0",
@@ -4220,7 +4268,7 @@ dependencies = [
"arrayvec 0.7.2",
"async-trait",
"fnv",
- "futures 0.3.19",
+ "futures 0.3.21",
"http",
"jsonrpsee-types 0.4.1",
"log 0.4.14",
@@ -4456,9 +4504,9 @@ dependencies = [
[[package]]
name = "libm"
-version = "0.2.1"
+version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c7d73b3f436185384286bd8098d17ec07c9a7d2388a6599f824d8502b529702a"
+checksum = "33a33a362ce288760ec6a508b94caaec573ae7d3bbbd91b87aa0bad4456839db"
[[package]]
name = "libp2p"
@@ -4468,7 +4516,7 @@ checksum = "3bec54343492ba5940a6c555e512c6721139835d28c59bc22febece72dfd0d9d"
dependencies = [
"atomic",
"bytes 1.1.0",
- "futures 0.3.19",
+ "futures 0.3.21",
"lazy_static",
"libp2p-core",
"libp2p-deflate",
@@ -4503,17 +4551,18 @@ dependencies = [
[[package]]
name = "libp2p-core"
-version = "0.30.0"
+version = "0.30.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bef22d9bba1e8bcb7ec300073e6802943fe8abb8190431842262b5f1c30abba1"
+checksum = "86aad7d54df283db817becded03e611137698a6509d4237a96881976a162340c"
dependencies = [
"asn1_der",
"bs58",
"ed25519-dalek",
"either",
"fnv",
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
+ "instant",
"lazy_static",
"libsecp256k1",
"log 0.4.14",
@@ -4542,7 +4591,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "51a800adb195f33de63f4b17b63fe64cfc23bf2c6a0d3d0d5321328664e65197"
dependencies = [
"flate2",
- "futures 0.3.19",
+ "futures 0.3.21",
"libp2p-core",
]
@@ -4553,7 +4602,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bb8f89d15cb6e3c5bc22afff7513b11bab7856f2872d3cfba86f7f63a06bc498"
dependencies = [
"async-std-resolver",
- "futures 0.3.19",
+ "futures 0.3.21",
"libp2p-core",
"log 0.4.14",
"smallvec 1.8.0",
@@ -4568,7 +4617,7 @@ checksum = "aab3d7210901ea51b7bae2b581aa34521797af8c4ec738c980bda4a06434067f"
dependencies = [
"cuckoofilter",
"fnv",
- "futures 0.3.19",
+ "futures 0.3.21",
"libp2p-core",
"libp2p-swarm",
"log 0.4.14",
@@ -4589,7 +4638,7 @@ dependencies = [
"byteorder",
"bytes 1.1.0",
"fnv",
- "futures 0.3.19",
+ "futures 0.3.21",
"hex_fmt",
"libp2p-core",
"libp2p-swarm",
@@ -4610,7 +4659,7 @@ version = "0.31.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cca1275574183f288ff8b72d535d5ffa5ea9292ef7829af8b47dcb197c7b0dcd"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"libp2p-core",
"libp2p-swarm",
"log 0.4.14",
@@ -4632,7 +4681,7 @@ dependencies = [
"bytes 1.1.0",
"either",
"fnv",
- "futures 0.3.19",
+ "futures 0.3.21",
"libp2p-core",
"libp2p-swarm",
"log 0.4.14",
@@ -4656,7 +4705,7 @@ dependencies = [
"async-io",
"data-encoding",
"dns-parser",
- "futures 0.3.19",
+ "futures 0.3.21",
"if-watch",
"lazy_static",
"libp2p-core",
@@ -4690,7 +4739,7 @@ checksum = "7f2cd64ef597f40e14bfce0497f50ecb63dd6d201c61796daeb4227078834fbf"
dependencies = [
"asynchronous-codec 0.6.0",
"bytes 1.1.0",
- "futures 0.3.19",
+ "futures 0.3.21",
"libp2p-core",
"log 0.4.14",
"nohash-hasher",
@@ -4708,7 +4757,7 @@ checksum = "a8772c7a99088221bb7ca9c5c0574bf55046a7ab4c319f3619b275f28c8fb87a"
dependencies = [
"bytes 1.1.0",
"curve25519-dalek 3.2.0",
- "futures 0.3.19",
+ "futures 0.3.21",
"lazy_static",
"libp2p-core",
"log 0.4.14",
@@ -4728,7 +4777,7 @@ version = "0.31.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "80ef7b0ec5cf06530d9eb6cf59ae49d46a2c45663bde31c25a12f682664adbcf"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"libp2p-core",
"libp2p-swarm",
"log 0.4.14",
@@ -4745,7 +4794,7 @@ checksum = "5fba1a6ff33e4a274c89a3b1d78b9f34f32af13265cc5c46c16938262d4e945a"
dependencies = [
"asynchronous-codec 0.6.0",
"bytes 1.1.0",
- "futures 0.3.19",
+ "futures 0.3.21",
"libp2p-core",
"log 0.4.14",
"prost",
@@ -4760,7 +4809,7 @@ version = "0.22.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0f1a458bbda880107b5b36fcb9b5a1ef0c329685da0e203ed692a8ebe64cc92c"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"log 0.4.14",
"pin-project 1.0.10",
"rand 0.7.3",
@@ -4776,7 +4825,7 @@ checksum = "2852b61c90fa8ce3c8fcc2aba76e6cefc20d648f9df29157d6b3a916278ef3e3"
dependencies = [
"asynchronous-codec 0.6.0",
"bytes 1.1.0",
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"libp2p-core",
"libp2p-swarm",
@@ -4799,7 +4848,7 @@ checksum = "14a6d2b9e7677eff61dc3d2854876aaf3976d84a01ef6664b610c77a0c9407c5"
dependencies = [
"asynchronous-codec 0.6.0",
"bimap",
- "futures 0.3.19",
+ "futures 0.3.21",
"libp2p-core",
"libp2p-swarm",
"log 0.4.14",
@@ -4821,7 +4870,7 @@ checksum = "a877a4ced6d46bf84677e1974e8cf61fb434af73b2e96fb48d6cb6223a4634d8"
dependencies = [
"async-trait",
"bytes 1.1.0",
- "futures 0.3.19",
+ "futures 0.3.21",
"libp2p-core",
"libp2p-swarm",
"log 0.4.14",
@@ -4839,7 +4888,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3f5184a508f223bc100a12665517773fb8730e9f36fc09eefb670bf01b107ae9"
dependencies = [
"either",
- "futures 0.3.19",
+ "futures 0.3.21",
"libp2p-core",
"log 0.4.14",
"rand 0.7.3",
@@ -4865,7 +4914,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7399c5b6361ef525d41c11fcf51635724f832baf5819b30d3d873eabb4fbae4b"
dependencies = [
"async-io",
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"if-watch",
"ipnet",
@@ -4882,7 +4931,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b8b7563e46218165dfd60f64b96f7ce84590d75f53ecbdc74a7dd01450dc5973"
dependencies = [
"async-std",
- "futures 0.3.19",
+ "futures 0.3.21",
"libp2p-core",
"log 0.4.14",
]
@@ -4893,7 +4942,7 @@ version = "0.30.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1008a302b73c5020251f9708c653f5ed08368e530e247cc9cd2f109ff30042cf"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"js-sys",
"libp2p-core",
"parity-send-wrapper",
@@ -4908,7 +4957,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "22e12df82d1ed64969371a9e65ea92b91064658604cc2576c2757f18ead9a1cf"
dependencies = [
"either",
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-rustls",
"libp2p-core",
"log 0.4.14",
@@ -4925,7 +4974,7 @@ version = "0.34.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4e7362abb8867d7187e7e93df17f460d554c997fc5c8ac57dc1259057f6889af"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"libp2p-core",
"parking_lot 0.11.2",
"thiserror",
@@ -5217,7 +5266,7 @@ version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce"
dependencies = [
- "autocfg 1.0.1",
+ "autocfg 1.1.0",
]
[[package]]
@@ -5264,7 +5313,7 @@ version = "0.9.16"
source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
dependencies = [
"derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"thiserror",
"tracing",
@@ -5276,7 +5325,7 @@ version = "0.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fd2c2cc134e57461f0898b0e921f0a7819b5e3f3a4335b9aa390ce81a5f36fb9"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"rand 0.8.4",
"thrift",
]
@@ -5328,7 +5377,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a92518e98c078586bc6c934028adcca4c92a53d6a958196de835170a01d84e4b"
dependencies = [
"adler",
- "autocfg 1.0.1",
+ "autocfg 1.1.0",
]
[[package]]
@@ -5506,7 +5555,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "56a336acba8bc87c8876f6425407dbbe6c417bf478b22015f8fb0994ef3bc0ab"
dependencies = [
"bytes 1.1.0",
- "futures 0.3.19",
+ "futures 0.3.21",
"log 0.4.14",
"pin-project 1.0.10",
"smallvec 1.8.0",
@@ -5618,7 +5667,7 @@ version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "090c7f9998ee0ff65aa5b723e4009f7b217707f1fb5ea551329cc4d6231fb304"
dependencies = [
- "autocfg 1.0.1",
+ "autocfg 1.1.0",
"num-integer",
"num-traits",
]
@@ -5638,7 +5687,7 @@ version = "0.1.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db"
dependencies = [
- "autocfg 1.0.1",
+ "autocfg 1.1.0",
"num-traits",
]
@@ -5648,7 +5697,7 @@ version = "0.1.42"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b2021c8337a54d21aca0d59a92577a029af9431cb59b909b03252b9c164fad59"
dependencies = [
- "autocfg 1.0.1",
+ "autocfg 1.1.0",
"num-integer",
"num-traits",
]
@@ -5659,7 +5708,7 @@ version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5c000134b5dbf44adc5cb772486d335293351644b801551abe8f75c84cfa4aef"
dependencies = [
- "autocfg 1.0.1",
+ "autocfg 1.1.0",
"num-bigint",
"num-integer",
"num-traits",
@@ -5671,7 +5720,7 @@ version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "12ac428b1cb17fce6f731001d307d351ec70a6d202fc2e60f7d4c5e42d8f4f07"
dependencies = [
- "autocfg 1.0.1",
+ "autocfg 1.1.0",
"num-integer",
"num-traits",
]
@@ -5682,7 +5731,7 @@ version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d41702bd167c2df5520b384281bc111a4b5efcf7fbc4c9c222c815b07e0a6a6a"
dependencies = [
- "autocfg 1.0.1",
+ "autocfg 1.1.0",
"num-integer",
"num-traits",
]
@@ -5693,7 +5742,7 @@ version = "0.2.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290"
dependencies = [
- "autocfg 1.0.1",
+ "autocfg 1.1.0",
"libm",
]
@@ -5785,7 +5834,7 @@ version = "0.9.72"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7e46109c383602735fa0a2e48dd2b7c892b048e1bf69e5c3b1d804b7d9c203cb"
dependencies = [
- "autocfg 1.0.1",
+ "autocfg 1.1.0",
"cc",
"libc",
"pkg-config",
@@ -5938,6 +5987,7 @@ dependencies = [
"parity-scale-codec",
"proptest 0.9.6",
"scale-info",
+ "sp-api",
"sp-arithmetic",
"sp-core",
"sp-io",
@@ -6458,7 +6508,7 @@ dependencies = [
[[package]]
name = "pallet-elections-phragmen"
version = "5.0.0-dev"
-source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.16#4aeb95f7f38fcd519e2628f32f79044a8fef99d5"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.16#4aeb95f7f38fcd519e2628f32f79044a8fef99d5"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -7383,7 +7433,7 @@ version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9981e32fb75e004cc148f5fb70342f393830e0a4aa62e3cc93b50976218d42b6"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"libc",
"log 0.4.14",
"rand 0.7.3",
@@ -7671,8 +7721,11 @@ dependencies = [
name = "picasso-runtime"
version = "0.1.0"
dependencies = [
+ "assets-runtime-api",
"common",
+ "composable-support",
"composable-traits",
+ "crowdloan-rewards-runtime-api",
"cumulus-pallet-aura-ext",
"cumulus-pallet-dmp-queue",
"cumulus-pallet-parachain-system",
@@ -7879,7 +7932,7 @@ name = "polkadot-approval-distribution"
version = "0.9.16"
source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"polkadot-node-network-protocol",
"polkadot-node-primitives",
"polkadot-node-subsystem",
@@ -7893,7 +7946,7 @@ name = "polkadot-availability-bitfield-distribution"
version = "0.9.16"
source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"polkadot-node-network-protocol",
"polkadot-node-subsystem",
"polkadot-node-subsystem-util",
@@ -7907,7 +7960,7 @@ version = "0.9.16"
source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
dependencies = [
"derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
"lru 0.7.2",
"parity-scale-codec",
"polkadot-erasure-coding",
@@ -7928,7 +7981,7 @@ name = "polkadot-availability-recovery"
version = "0.9.16"
source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"lru 0.7.2",
"parity-scale-codec",
"polkadot-erasure-coding",
@@ -7949,7 +8002,7 @@ version = "0.9.16"
source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
dependencies = [
"frame-benchmarking-cli",
- "futures 0.3.19",
+ "futures 0.3.21",
"log 0.4.14",
"polkadot-node-core-pvf",
"polkadot-node-metrics",
@@ -8004,7 +8057,7 @@ source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab
dependencies = [
"always-assert",
"derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"polkadot-node-network-protocol",
"polkadot-node-primitives",
@@ -8037,7 +8090,7 @@ version = "0.9.16"
source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
dependencies = [
"derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
"lru 0.7.2",
"parity-scale-codec",
"polkadot-erasure-coding",
@@ -8072,7 +8125,7 @@ name = "polkadot-gossip-support"
version = "0.9.16"
source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"polkadot-node-network-protocol",
"polkadot-node-subsystem",
@@ -8093,7 +8146,7 @@ version = "0.9.16"
source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
dependencies = [
"async-trait",
- "futures 0.3.19",
+ "futures 0.3.21",
"parity-scale-codec",
"parking_lot 0.11.2",
"polkadot-node-network-protocol",
@@ -8111,7 +8164,7 @@ name = "polkadot-node-collation-generation"
version = "0.9.16"
source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"parity-scale-codec",
"polkadot-erasure-coding",
"polkadot-node-primitives",
@@ -8131,7 +8184,7 @@ source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab
dependencies = [
"bitvec",
"derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"kvdb",
"lru 0.7.2",
@@ -8158,7 +8211,7 @@ version = "0.9.16"
source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
dependencies = [
"bitvec",
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"kvdb",
"parity-scale-codec",
@@ -8178,7 +8231,7 @@ version = "0.9.16"
source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
dependencies = [
"bitvec",
- "futures 0.3.19",
+ "futures 0.3.21",
"polkadot-erasure-coding",
"polkadot-node-primitives",
"polkadot-node-subsystem",
@@ -8195,7 +8248,7 @@ name = "polkadot-node-core-bitfield-signing"
version = "0.9.16"
source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"polkadot-node-subsystem",
"polkadot-node-subsystem-util",
"polkadot-primitives",
@@ -8211,7 +8264,7 @@ version = "0.9.16"
source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
dependencies = [
"async-trait",
- "futures 0.3.19",
+ "futures 0.3.21",
"parity-scale-codec",
"polkadot-node-core-pvf",
"polkadot-node-primitives",
@@ -8228,7 +8281,7 @@ name = "polkadot-node-core-chain-api"
version = "0.9.16"
source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"polkadot-node-subsystem",
"polkadot-node-subsystem-util",
"polkadot-primitives",
@@ -8243,7 +8296,7 @@ name = "polkadot-node-core-chain-selection"
version = "0.9.16"
source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"kvdb",
"parity-scale-codec",
@@ -8260,7 +8313,7 @@ name = "polkadot-node-core-dispute-coordinator"
version = "0.9.16"
source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"kvdb",
"lru 0.7.2",
"parity-scale-codec",
@@ -8279,7 +8332,7 @@ version = "0.9.16"
source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
dependencies = [
"async-trait",
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"polkadot-node-subsystem",
"polkadot-primitives",
@@ -8296,7 +8349,7 @@ version = "0.9.16"
source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
dependencies = [
"bitvec",
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"polkadot-node-primitives",
"polkadot-node-subsystem",
@@ -8316,7 +8369,7 @@ dependencies = [
"assert_matches",
"async-process",
"async-std",
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"parity-scale-codec",
"pin-project 1.0.10",
@@ -8342,7 +8395,7 @@ name = "polkadot-node-core-pvf-checker"
version = "0.9.16"
source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"polkadot-node-primitives",
"polkadot-node-subsystem",
"polkadot-node-subsystem-util",
@@ -8358,7 +8411,7 @@ name = "polkadot-node-core-runtime-api"
version = "0.9.16"
source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"memory-lru",
"parity-util-mem",
"polkadot-node-subsystem",
@@ -8395,7 +8448,7 @@ version = "0.9.16"
source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
dependencies = [
"bs58",
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"log 0.4.14",
"metered-channel",
@@ -8415,7 +8468,7 @@ source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab
dependencies = [
"async-trait",
"derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
"parity-scale-codec",
"polkadot-node-jaeger",
"polkadot-node-primitives",
@@ -8432,7 +8485,7 @@ version = "0.9.16"
source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
dependencies = [
"bounded-vec",
- "futures 0.3.19",
+ "futures 0.3.21",
"parity-scale-codec",
"polkadot-parachain",
"polkadot-primitives",
@@ -8464,7 +8517,7 @@ version = "0.9.16"
source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
dependencies = [
"derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
"polkadot-node-jaeger",
"polkadot-node-network-protocol",
"polkadot-node-primitives",
@@ -8484,7 +8537,7 @@ source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab
dependencies = [
"async-trait",
"derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
"itertools",
"lru 0.7.2",
"metered-channel",
@@ -8510,7 +8563,7 @@ name = "polkadot-overseer"
version = "0.9.16"
source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"lru 0.7.2",
"parity-util-mem",
@@ -8532,7 +8585,7 @@ version = "0.9.16"
source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab002d7451766324a9f314fee11c9c53314350"
dependencies = [
"async-trait",
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"metered-channel",
"pin-project 1.0.10",
@@ -8852,7 +8905,7 @@ dependencies = [
"beefy-gadget",
"beefy-primitives",
"frame-system-rpc-runtime-api",
- "futures 0.3.19",
+ "futures 0.3.21",
"hex-literal",
"kusama-runtime",
"kvdb",
@@ -8951,7 +9004,7 @@ source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.16#41ab
dependencies = [
"arrayvec 0.5.2",
"derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
"indexmap",
"parity-scale-codec",
"polkadot-node-network-protocol",
@@ -9027,7 +9080,7 @@ dependencies = [
"custom_derive",
"enum_derive",
"env_logger 0.9.0",
- "futures 0.3.19",
+ "futures 0.3.21",
"jsonrpc-client-transports",
"jsonrpc-core",
"lazy_static",
@@ -9060,6 +9113,7 @@ dependencies = [
name = "primitives"
version = "0.1.0"
dependencies = [
+ "composable-support",
"composable-traits",
"parity-scale-codec",
"scale-info",
@@ -9315,7 +9369,7 @@ version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6d71dacdc3c88c1fde3885a3be3fbab9f35724e6ce99467f7d9c5026132184ca"
dependencies = [
- "autocfg 0.1.7",
+ "autocfg 0.1.8",
"libc",
"rand_chacha 0.1.1",
"rand_core 0.4.2",
@@ -9360,7 +9414,7 @@ version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "556d3a1ca6600bfcbab7c7c91ccb085ac7fbbcd70e008a98742e7847f4f7bcef"
dependencies = [
- "autocfg 0.1.7",
+ "autocfg 0.1.8",
"rand_core 0.3.1",
]
@@ -9494,7 +9548,7 @@ version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "abf9b09b01790cfe0364f52bf32995ea3c39f4d2dd011eac241d2914146d0b44"
dependencies = [
- "autocfg 0.1.7",
+ "autocfg 0.1.8",
"rand_core 0.4.2",
]
@@ -9537,7 +9591,7 @@ version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c06aca804d41dbc8ba42dfd964f0d01334eceb64314b9ecf7c5fad5188a06d90"
dependencies = [
- "autocfg 1.0.1",
+ "autocfg 1.1.0",
"crossbeam-deque",
"either",
"rayon-core",
@@ -9551,7 +9605,7 @@ checksum = "d78120e2c850279833f1dd3582f730c4ab53ed95aeaaaa862a2a5c71b1656d8e"
dependencies = [
"crossbeam-channel",
"crossbeam-deque",
- "crossbeam-utils 0.8.6",
+ "crossbeam-utils 0.8.7",
"lazy_static",
"num_cpus",
]
@@ -9924,7 +9978,7 @@ version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366"
dependencies = [
- "semver 1.0.4",
+ "semver 1.0.5",
]
[[package]]
@@ -10035,7 +10089,7 @@ version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4da5fcb054c46f5a5dff833b129285a93d3f0179531735e6c866e8cc307d2020"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"pin-project 0.4.29",
"static_assertions",
]
@@ -10097,7 +10151,7 @@ source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.16#
dependencies = [
"async-trait",
"derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"ip_network",
"libp2p",
@@ -10122,7 +10176,7 @@ name = "sc-basic-authorship"
version = "0.10.0-dev"
source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.16#d78e92de5aeaea1b4df48c639eb88d5b93cf19ef"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"log 0.4.14",
"parity-scale-codec",
@@ -10191,7 +10245,7 @@ source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.16#
dependencies = [
"chrono",
"fdlimit",
- "futures 0.3.19",
+ "futures 0.3.21",
"hex",
"libp2p",
"log 0.4.14",
@@ -10228,7 +10282,7 @@ version = "4.0.0-dev"
source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.16#d78e92de5aeaea1b4df48c639eb88d5b93cf19ef"
dependencies = [
"fnv",
- "futures 0.3.19",
+ "futures 0.3.21",
"hash-db",
"log 0.4.14",
"parity-scale-codec",
@@ -10281,7 +10335,7 @@ version = "0.10.0-dev"
source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.16#d78e92de5aeaea1b4df48c639eb88d5b93cf19ef"
dependencies = [
"async-trait",
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"libp2p",
"log 0.4.14",
@@ -10306,7 +10360,7 @@ source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.16#
dependencies = [
"async-trait",
"derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
"log 0.4.14",
"parity-scale-codec",
"sc-block-builder",
@@ -10336,7 +10390,7 @@ dependencies = [
"async-trait",
"derive_more",
"fork-tree",
- "futures 0.3.19",
+ "futures 0.3.21",
"log 0.4.14",
"merlin",
"num-bigint",
@@ -10377,7 +10431,7 @@ version = "0.10.0-dev"
source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.16#d78e92de5aeaea1b4df48c639eb88d5b93cf19ef"
dependencies = [
"derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
"jsonrpc-core",
"jsonrpc-core-client",
"jsonrpc-derive",
@@ -10416,7 +10470,7 @@ dependencies = [
"assert_matches",
"async-trait",
"derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
"jsonrpc-core",
"jsonrpc-core-client",
"jsonrpc-derive",
@@ -10450,7 +10504,7 @@ version = "0.10.0-dev"
source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.16#d78e92de5aeaea1b4df48c639eb88d5b93cf19ef"
dependencies = [
"async-trait",
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"log 0.4.14",
"parity-scale-codec",
@@ -10570,7 +10624,7 @@ dependencies = [
"dyn-clone",
"finality-grandpa",
"fork-tree",
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"log 0.4.14",
"parity-scale-codec",
@@ -10605,7 +10659,7 @@ source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.16#
dependencies = [
"derive_more",
"finality-grandpa",
- "futures 0.3.19",
+ "futures 0.3.21",
"jsonrpc-core",
"jsonrpc-core-client",
"jsonrpc-derive",
@@ -10628,7 +10682,7 @@ version = "0.10.0-dev"
source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.16#d78e92de5aeaea1b4df48c639eb88d5b93cf19ef"
dependencies = [
"ansi_term",
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"log 0.4.14",
"parity-util-mem",
@@ -10669,7 +10723,7 @@ dependencies = [
"either",
"fnv",
"fork-tree",
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"hex",
"ip_network",
@@ -10710,7 +10764,7 @@ name = "sc-network-gossip"
version = "0.10.0-dev"
source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.16#d78e92de5aeaea1b4df48c639eb88d5b93cf19ef"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"libp2p",
"log 0.4.14",
@@ -10728,7 +10782,7 @@ source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.16#
dependencies = [
"bytes 1.1.0",
"fnv",
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"hex",
"hyper 0.14.16",
@@ -10754,7 +10808,7 @@ name = "sc-peerset"
version = "4.0.0-dev"
source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.16#d78e92de5aeaea1b4df48c639eb88d5b93cf19ef"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"libp2p",
"log 0.4.14",
"sc-utils",
@@ -10776,7 +10830,7 @@ name = "sc-rpc"
version = "4.0.0-dev"
source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.16#d78e92de5aeaea1b4df48c639eb88d5b93cf19ef"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"hash-db",
"jsonrpc-core",
"jsonrpc-pubsub",
@@ -10807,7 +10861,7 @@ name = "sc-rpc-api"
version = "0.10.0-dev"
source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.16#d78e92de5aeaea1b4df48c639eb88d5b93cf19ef"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"jsonrpc-core",
"jsonrpc-core-client",
"jsonrpc-derive",
@@ -10832,7 +10886,7 @@ name = "sc-rpc-server"
version = "4.0.0-dev"
source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.16#d78e92de5aeaea1b4df48c639eb88d5b93cf19ef"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"jsonrpc-core",
"jsonrpc-http-server",
"jsonrpc-ipc-server",
@@ -10852,7 +10906,7 @@ dependencies = [
"async-trait",
"directories",
"exit-future",
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"hash-db",
"jsonrpc-core",
@@ -10950,7 +11004,7 @@ version = "4.0.0-dev"
source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.16#d78e92de5aeaea1b4df48c639eb88d5b93cf19ef"
dependencies = [
"chrono",
- "futures 0.3.19",
+ "futures 0.3.21",
"libp2p",
"log 0.4.14",
"parking_lot 0.11.2",
@@ -11009,7 +11063,7 @@ name = "sc-transaction-pool"
version = "4.0.0-dev"
source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.16#d78e92de5aeaea1b4df48c639eb88d5b93cf19ef"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"linked-hash-map",
"log 0.4.14",
@@ -11037,7 +11091,7 @@ version = "4.0.0-dev"
source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.16#d78e92de5aeaea1b4df48c639eb88d5b93cf19ef"
dependencies = [
"derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
"log 0.4.14",
"serde",
"sp-blockchain",
@@ -11050,7 +11104,7 @@ name = "sc-utils"
version = "4.0.0-dev"
source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.16#d78e92de5aeaea1b4df48c639eb88d5b93cf19ef"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"lazy_static",
"parking_lot 0.11.2",
@@ -11154,9 +11208,9 @@ dependencies = [
[[package]]
name = "security-framework"
-version = "2.6.0"
+version = "2.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3fed7948b6c68acbb6e20c334f55ad635dc0f75506963de4464289fbd3b051ac"
+checksum = "2dc14f172faf8a0194a3aded622712b0de276821addc574fa54fc0a1167e10dc"
dependencies = [
"bitflags",
"core-foundation",
@@ -11167,9 +11221,9 @@ dependencies = [
[[package]]
name = "security-framework-sys"
-version = "2.6.0"
+version = "2.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a57321bf8bc2362081b2599912d2961fe899c0efadf1b4b2f8d48b3e253bb96c"
+checksum = "0160a13a177a45bfb43ce71c01580998474f556ad854dcbca936dd2841a5c556"
dependencies = [
"core-foundation-sys",
"libc",
@@ -11204,9 +11258,9 @@ dependencies = [
[[package]]
name = "semver"
-version = "1.0.4"
+version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "568a8e6258aa33c13358f81fd834adb854c6f7c9468520910a9b1e8fac068012"
+checksum = "0486718e92ec9a68fbed73bb5ef687d71103b142595b406835649bebd33f72c7"
dependencies = [
"serde",
]
@@ -11590,7 +11644,7 @@ dependencies = [
"base64 0.13.0",
"bytes 1.1.0",
"flate2",
- "futures 0.3.19",
+ "futures 0.3.21",
"httparse",
"log 0.4.14",
"rand 0.8.4",
@@ -11702,7 +11756,7 @@ name = "sp-blockchain"
version = "4.0.0-dev"
source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.16#d78e92de5aeaea1b4df48c639eb88d5b93cf19ef"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"log 0.4.14",
"lru 0.7.2",
"parity-scale-codec",
@@ -11721,7 +11775,7 @@ version = "0.10.0-dev"
source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.16#d78e92de5aeaea1b4df48c639eb88d5b93cf19ef"
dependencies = [
"async-trait",
- "futures 0.3.19",
+ "futures 0.3.21",
"futures-timer",
"log 0.4.14",
"parity-scale-codec",
@@ -11810,7 +11864,7 @@ dependencies = [
"byteorder",
"dyn-clonable",
"ed25519-dalek",
- "futures 0.3.19",
+ "futures 0.3.21",
"hash-db",
"hash256-std-hasher",
"hex",
@@ -11938,7 +11992,7 @@ name = "sp-io"
version = "4.0.0"
source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.16#d78e92de5aeaea1b4df48c639eb88d5b93cf19ef"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"hash-db",
"libsecp256k1",
"log 0.4.14",
@@ -11975,7 +12029,7 @@ source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.16#
dependencies = [
"async-trait",
"derive_more",
- "futures 0.3.19",
+ "futures 0.3.21",
"merlin",
"parity-scale-codec",
"parking_lot 0.11.2",
@@ -12473,7 +12527,7 @@ version = "4.0.0-dev"
source = "git+https://github.com/composableFi/substrate?branch=polkadot-v0.9.16#d78e92de5aeaea1b4df48c639eb88d5b93cf19ef"
dependencies = [
"frame-system-rpc-runtime-api",
- "futures 0.3.19",
+ "futures 0.3.21",
"jsonrpc-core",
"jsonrpc-core-client",
"jsonrpc-derive",
@@ -12512,7 +12566,7 @@ dependencies = [
"cumulus-primitives-parachain-inherent",
"cumulus-test-relay-sproof-builder",
"frame-system",
- "futures 0.3.19",
+ "futures 0.3.21",
"jsonrpc-core",
"log 0.4.14",
"num-traits",
@@ -12578,7 +12632,7 @@ version = "0.1.0"
source = "git+https://github.com/polytope-labs/substrate-xt?branch=master#469a280526cac9a32a4bdae8280a0664080eb853"
dependencies = [
"frame-system",
- "futures 0.3.19",
+ "futures 0.3.21",
"jsonrpsee 0.8.0",
"parity-scale-codec",
"sc-client-api",
@@ -13047,9 +13101,9 @@ dependencies = [
[[package]]
name = "tracing-serde"
-version = "0.1.2"
+version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fb65ea441fbb84f9f6748fd496cf7f63ec9af5bca94dd86456978d055e8eb28b"
+checksum = "bc6b213177105856957181934e4920de57730fc69bf42c37ee5bb664d406d9e1"
dependencies = [
"serde",
"tracing-core",
@@ -13065,7 +13119,7 @@ dependencies = [
"chrono",
"lazy_static",
"matchers",
- "parking_lot 0.10.2",
+ "parking_lot 0.11.2",
"regex",
"serde",
"serde_json",
@@ -13316,9 +13370,9 @@ dependencies = [
[[package]]
name = "unicode-segmentation"
-version = "1.8.0"
+version = "1.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8895849a949e7845e06bd6dc1aa51731a103c42707010a5b591c0038fb73385b"
+checksum = "7e8820f5d777f6224dc4be3632222971ac30164d4a258d595640799554ebfd99"
[[package]]
name = "unicode-width"
@@ -13629,7 +13683,7 @@ version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "be0ecb0db480561e9a7642b5d3e4187c128914e58aa84330b9493e3eb68c5e7f"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"js-sys",
"parking_lot 0.11.2",
"pin-utils",
@@ -14205,7 +14259,7 @@ version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e7d9028f208dd5e63c614be69f115c1b53cacc1111437d4c765185856666c107"
dependencies = [
- "futures 0.3.19",
+ "futures 0.3.21",
"log 0.4.14",
"nohash-hasher",
"parking_lot 0.11.2",
diff --git a/Cargo.toml b/Cargo.toml
index 002621a7740..b16dc328bce 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,28 +13,30 @@ edition = "2018"
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
-composable-node = { path = "node", features = [ "composable", "dali" ] }
+composable-node = { path = "node", features = ["composable", "dali"] }
color-eyre = { version = "0.5.11", default-features = false }
[features]
-runtime-benchmarks = [ "composable-node/runtime-benchmarks" ]
-std = [ "composable-node/std" ]
-
-
+runtime-benchmarks = ["composable-node/runtime-benchmarks"]
+std = ["composable-node/std"]
[workspace]
exclude = ["frame/transaction-fee"]
members = [
- "runtime/common",
- "runtime/primitives",
"frame/*",
+
"node",
+
+ "runtime/common",
+ "runtime/primitives",
"runtime/picasso",
"runtime/dali",
"runtime/composable",
- "utils/price-feed",
+
"utils/parachain-utils",
- "integration-tests/simnode"
+ "utils/price-feed",
+
+ "integration-tests/simnode",
]
[profile.release]
@@ -46,161 +48,161 @@ inherits = "release"
lto = true
[patch."https://github.com/paritytech/substrate"]
-frame-benchmarking ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-frame-support ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-frame-support-procedural ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-frame-support-procedural-tools ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-frame-support-procedural-tools-derive ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-arithmetic ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-debug-derive ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-std ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-core ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-core-hashing ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-externalities ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-storage ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-runtime-interface ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-runtime-interface-proc-macro ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-tracing ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-wasm-interface ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-io ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-keystore ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-state-machine ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-panic-handler ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-trie ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-runtime ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-application-crypto ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-api ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-api-proc-macro ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-version ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-version-proc-macro ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-block-builder ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-client-api ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-substrate-prometheus-endpoint ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-executor ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-executor-common ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-allocator ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-maybe-compressed-blob ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-serializer ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-executor-wasmi ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-executor-wasmtime ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-tasks ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-substrate-wasm-builder ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-core-hashing-proc-macro ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-tracing ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-rpc-server ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-tracing-proc-macro ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-blockchain ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-consensus ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-inherents ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-database ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-rpc ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-frame-system ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-frame-system-rpc-runtime-api ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-babe ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-authorship ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-authorship ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-session ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-timestamp ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-timestamp ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-session ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-staking ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-consensus-babe ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-consensus-slots ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-consensus-vrf ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-frame-election-provider-support ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-npos-elections ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-npos-elections-solution-type ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-service ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-chain-spec ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-chain-spec-derive ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-network ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-fork-tree ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-consensus ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-utils ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-peerset ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-finality-grandpa ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-telemetry ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-client-db ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-state-db ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-informant ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-transaction-pool-api ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-keystore ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-offchain ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-offchain ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-transaction-pool ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-transaction-pool ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-rpc ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-rpc-api ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-block-builder ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-transaction-storage-proof ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-balances ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-transaction-payment ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-offences ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-staking ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-bags-list ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-staking-reward-curve ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-consensus-aura ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-keyring ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-frame-benchmarking-cli ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-cli ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-frame-executive ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-frame-system-benchmarking ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-aura ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-grandpa ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-randomness-collective-flip ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-sudo ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-transaction-payment-rpc-runtime-api ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-transaction-payment-rpc ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-basic-authorship ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-proposer-metrics ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-consensus-aura ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-consensus-slots ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-finality-grandpa ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-network-gossip ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-substrate-frame-rpc-system ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-substrate-build-script-utils ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-frame-try-runtime ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-authority-discovery ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sp-authority-discovery ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-bounties ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-treasury ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-collective ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-utility ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-democracy ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-scheduler ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-election-provider-multi-phase ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-gilt ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-identity ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-im-online ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-indices ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-membership ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-mmr ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-preimage ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-mmr-primitives ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-multisig ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-offences-benchmarking ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-proxy ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-recovery ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-session-benchmarking ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-society ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-tips ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-vesting ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-mmr-rpc ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-consensus-babe ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-consensus-epochs ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-consensus-babe-rpc ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-finality-grandpa-rpc ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-sync-state-rpc ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-authority-discovery ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-consensus-uncles ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-try-runtime-cli ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-remote-externalities ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-beefy-gadget ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-beefy-primitives ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-beefy-gadget-rpc ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-sc-consensus-manual-seal ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-beefy ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-beefy-mmr ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-beefy-merkle-tree ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-nicks ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
-pallet-staking-reward-fn ={git = "https://github.com/composableFi/substrate" ,branch = "polkadot-v0.9.16" }
+frame-benchmarking = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+frame-support = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+frame-support-procedural = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+frame-support-procedural-tools = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+frame-support-procedural-tools-derive = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-arithmetic = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-debug-derive = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-std = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-core = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-core-hashing = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-externalities = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-storage = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-runtime-interface = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-runtime-interface-proc-macro = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-tracing = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-wasm-interface = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-io = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-keystore = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-state-machine = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-panic-handler = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-trie = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-runtime = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-application-crypto = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-api = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-api-proc-macro = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-version = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-version-proc-macro = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-block-builder = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-client-api = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+substrate-prometheus-endpoint = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-executor = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-executor-common = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-allocator = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-maybe-compressed-blob = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-serializer = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-executor-wasmi = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-executor-wasmtime = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-tasks = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+substrate-wasm-builder = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-core-hashing-proc-macro = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-tracing = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-rpc-server = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-tracing-proc-macro = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-blockchain = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-consensus = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-inherents = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-database = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-rpc = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+frame-system = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+frame-system-rpc-runtime-api = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-babe = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-authorship = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-authorship = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-session = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-timestamp = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-timestamp = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-session = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-staking = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-consensus-babe = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-consensus-slots = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-consensus-vrf = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+frame-election-provider-support = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-npos-elections = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-npos-elections-solution-type = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-service = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-chain-spec = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-chain-spec-derive = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-network = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+fork-tree = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-consensus = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-utils = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-peerset = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-finality-grandpa = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-telemetry = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-client-db = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-state-db = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-informant = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-transaction-pool-api = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-keystore = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-offchain = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-offchain = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-transaction-pool = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-transaction-pool = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-rpc = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-rpc-api = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-block-builder = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-transaction-storage-proof = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-balances = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-transaction-payment = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-offences = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-staking = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-bags-list = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-staking-reward-curve = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-consensus-aura = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-keyring = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+frame-benchmarking-cli = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-cli = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+frame-executive = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+frame-system-benchmarking = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-aura = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-grandpa = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-randomness-collective-flip = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-sudo = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-transaction-payment-rpc = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-basic-authorship = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-proposer-metrics = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-consensus-aura = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-consensus-slots = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-finality-grandpa = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-network-gossip = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+substrate-frame-rpc-system = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+substrate-build-script-utils = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+frame-try-runtime = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-authority-discovery = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sp-authority-discovery = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-bounties = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-treasury = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-collective = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-utility = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-democracy = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-scheduler = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-election-provider-multi-phase = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-gilt = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-identity = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-im-online = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-indices = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-membership = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-mmr = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-preimage = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-mmr-primitives = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-multisig = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-offences-benchmarking = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-proxy = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-recovery = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-session-benchmarking = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-society = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-tips = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-vesting = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-mmr-rpc = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-consensus-babe = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-consensus-epochs = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-consensus-babe-rpc = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-finality-grandpa-rpc = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-sync-state-rpc = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-authority-discovery = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-consensus-uncles = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+try-runtime-cli = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+remote-externalities = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+beefy-gadget = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+beefy-primitives = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+beefy-gadget-rpc = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+sc-consensus-manual-seal = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-beefy = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-beefy-mmr = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+beefy-merkle-tree = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-nicks = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
+pallet-staking-reward-fn = { git = "https://github.com/composableFi/substrate", branch = "polkadot-v0.9.16" }
diff --git a/docs/rpc.md b/docs/rpc.md
new file mode 100644
index 00000000000..0302d622f36
--- /dev/null
+++ b/docs/rpc.md
@@ -0,0 +1,400 @@
+# Adding an RPC interface to a pallet
+
+Create 2 new crates beside the `src/` folder of the pallet you want to add the RPC to:
+
+```plaintext
+frame
+ pallet
+ src
+ Cargo.toml
+ rpc
+ src
+ Cargo.toml
+ runtime-api
+ src
+ Cargo.toml
+```
+
+## Runtime API Crate
+
+### In `Cargo.toml`
+
+```toml
+[package]
+name = "pallet-name-runtime-api"
+version = "0.0.1"
+authors = ["Composable Developers"]
+homepage = "https://composable.finance"
+edition = "2021"
+rust-version = "1.56"
+
+[package.metadata.docs.rs]
+targets = ["x86_64-unknown-linux-gnu"]
+
+[dependencies]
+sp-api = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
+codec = { default-features = false, features = ["derive"], package = "parity-scale-codec", version = "2.0.0" }
+
+# ...any other dependencies, as per usual
+
+[features]
+default = ["std"]
+std = ["sp-api/std"]
+
+```
+
+### In `lib.rs`
+
+```rust
+#![cfg_attr(not(feature = "std"), no_std)]
+#![allow(clippy::too_many_arguments)] // REVIEW: I'm not sure if these are actually necessary
+#![allow(clippy::unnecessary_mut_passed)] // REVIEW: I'm not sure if these are actually necessary
+
+sp_api::decl_runtime_apis! {
+ pub trait PalletNameRuntimeApi* ...any generic parameters... */>
+ where
+ GENERIC_PARAMETER: codec::Codec, // all parameters must implement `Codec`
+ {
+ fn rpc_function_name(/* ...parameters... */) -> ReturnType;
+
+ // as many rpcs as are needed for the pallet can all be defined here in the same trait
+ }
+}
+```
+
+## RPC Crate
+
+### In `Cargo.toml`
+
+```toml
+[package]
+name = "PALLET-NAME-rpc"
+version = "0.0.1"
+authors = ["Composable Developers"]
+homepage = "https://composable.finance"
+edition = "2021"
+rust-version = "1.56"
+
+[package.metadata.docs.rs]
+targets = ["x86_64-unknown-linux-gnu"]
+
+[dependencies]
+# substrate primitives
+sp-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
+sp-blockchain = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
+sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
+sp-std = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
+
+# SCALE
+scale-info = { version = "1.0", features = ["derive"] }
+codec = { version = "2.0.0", package = "parity-scale-codec", features = ["derive"] }
+
+# local
+pallet-name-runtime-api = { path = "../runtime-api" }
+
+# rpc
+jsonrpc-core = "18.0.0"
+jsonrpc-core-client = "18.0.0"
+jsonrpc-derive = "18.0.0"
+```
+
+Note that this crate will only be included in the node and not the runtime, so there is no need for a `std` feature.
+
+### In `lib.rs`
+
+Required imports:
+
+```rust
+use pallet_name_runtime_api::PalletNameRuntimeApi;
+use codec::Codec;
+use jsonrpc_core::{Error as RpcError, ErrorCode, Result as RpcResult};
+use jsonrpc_derive::rpc;
+use sp_api::ProvideRuntimeApi;
+use sp_blockchain::HeaderBackend;
+use sp_runtime::{generic::BlockId, traits::Block as BlockT};
+use sp_std::{sync::Arc, marker::PhantomData};
+```
+
+This defines the RPC itself. The name of the RPC needs to follow the pattern of `moduleName_functionName`.
+
+**Note**: Any types that either are or are a wrapper type around `u128/i128` will need to be wrapped in `composable_support::rpc_helpers::SafeRpcWrapper`.
+
+```rust
+#[rpc]
+pub trait PalletNameApi
+where
+ GENERIC_PARAMETER: Codec, // if the type is a u128/i128, this should be SafeRpcWrapperType instead of Codec (Codec is a supertrait of SafeRpcWrapperType)
+{
+ // the name of the rpc must be moduleName_functionName, where both module
+ // and function are camelCase and are seperated by an underscore.
+ #[rpc(name = "palletName_rpcFunctionName")]
+ fn rpc_function_name(
+ &self,
+ // any additional parameters here
+ // if the type is or wraps a 128 bit integer, it should be declared as follows:
+ u128_ish: SafeRpcWrapper* whatever the type is */>
+ at: Option, // `at` should be last
+ ) -> RpcResult;
+}
+```
+
+This is a struct that will implement the above API. It contains the client to make the RPC calls.
+
+If there are more generics, instead of adding more parameters (`PalletName`), just use a tuple instead: `PalletName {
+ client: Arc,
+ _marker: PhantomData,
+}
+
+impl PalletName {
+ pub fn new(client: Arc) -> Self {
+ Self { client, _marker: Default::default() }
+ }
+}
+```
+
+```rust
+impl
+ PalletNameApi<::Hash, /* ...any generic parameters... */>
+ for PalletName
+where
+ Block: BlockT,
+ // all generic parameters must have at least these bounds
+ // if the type is a u128/i128, this should be SafeRpcWrapperType instead of Codec (Codec is a supertrait of SafeRpcWrapperType)
+ GENERIC_PARAMETER: Codec + Send + Sync + 'static,
+ C: Send + Sync + 'static,
+ C: ProvideRuntimeApi,
+ C: HeaderBackend,
+ C::Api: PalletNameRuntimeApi,
+{
+ fn rpc_function_name(
+ &self,
+ // any additional parameters here
+ // if the type is or wraps a 128 bit integer, it should be declared as follows:
+ u128_ish: SafeRpcWrapper* whatever the type is */>
+ at: Option<::Hash>, // `at` should be last
+ ) -> RpcResult {
+ let api = self.client.runtime_api();
+ let at = BlockId::hash(at.unwrap_or_else(|| {
+ // If the block hash is not supplied assume the best block.
+ self.client.info().best_hash
+ }));
+
+ let runtime_api_result = api.rpc_function_name(&at, asset_id, account_id);
+ // TODO(benluelo): Review what error message & code to use
+ runtime_api_result.map_err(|e| {
+ RpcError {
+ code: ErrorCode::ServerError(9876), // No real reason for this value
+ message: "Something wrong".into(),
+ data: Some(format!("{:?}", e).into()),
+ }
+ })
+ }
+}
+```
+
+## In `node/`
+
+The RPC needs to be added to the node in order to be called. First, add both the above crates to `node/Cargo.toml`:
+
+```toml
+[dependencies]
+# ...stub...
+pallet-name-rpc = { path = "../frame/pallet-name/rpc" }
+pallet-name-runtime-api = { path = "../frame/pallet-name/runtime-api" }
+```
+
+Then, in `node/src/runtime.rs`, add a bound in both the definition and blanket impl for `HostRuntimeApis`:
+
+```rust
+pub trait HostRuntimeApis:
+ // ...stub...
+ + pallet_name_runtime_api::PalletNameRuntimeApi,
+ // ...stub...
+
+impl HostRuntimeApis for Api
+where
+ Api: // ...stub...
+ + pallet_name_runtime_api::PalletNameRuntimeApi,
+ // ...stub...
+```
+
+Then, in `node/src/rpc.rs`, in `fn create(...)`, add a bound to `C::Api`, and then within the function, add the RPC to the runtime:
+
+```rust
+pub fn create(deps: FullDeps) -> jsonrpc_core::IoHandler
+where
+ // ...stub...
+ C::Api: pallet_name_runtime_api::PalletNameRuntimeApi,
+ // ...stub...
+{
+ // ...stub...
+ io.extend_with(CrowdloanRewardsApi::to_delegate(CrowdloanRewards::new(client)));
+
+ io
+}
+```
+
+## Add to runtimes
+
+Within each runtime's `Cargo.toml`, add the runtime-api dependency:
+
+```toml
+# ...stub...
+[dependencies]
+pallet-name-runtime-api = { path = '../../frame/pallet-name/runtime-api', default-features = false }
+# ...stub...
+```
+
+And then in each runtime's `lib.rs`, in the `impl_runtime_apis!` macro, implement the API:
+
+```rust
+impl_runtime_apis! {
+ impl pallet_name_runtime_api::PalletNameRuntimeApi for Runtime {
+ fn rpc_function_name(/* ...rpc parameters... */) -> ReturnType {
+ // actual implementation here
+ }
+ }
+ // ...stub...
+}
+```
+
+Note that this assumes that the pallet has already been added to the runtime and the pallet's `Config` already implemented.
+
+## Integration Tests
+
+/home/ben/codeprojects/composable/integration-tests/runtime-tests/src/types/interfaces/definitions.ts
+
+### Type Definitions
+
+Create a folder here: `integration-tests/runtime-tests/src/types/interfaces/pallet-name`
+
+And then within that folder, create a file `defintions.ts` with the following structure:
+
+```typescript
+export default {
+ rpc: {
+ // the functionName part of the RPC call as defined in the `#[rpc(name="")]` annotation on the rust definition
+ rpcFunctionName: {
+ description: "Provide a short description of the RPC here.",
+ params: [
+ // define the paramaters in the same order as defined in the rust RPC
+ {
+ name: "parameter_name",
+ type: "ParameterType"
+ },
+ // see note below
+ {
+ name: "at",
+ type: "Hash",
+ isOptional: true,
+ },
+ ],
+ type: "ReturnType"
+ },
+ // if there are multiple RPCs, they can all be defined here
+ },
+ types: {
+ // define any custom types for the pallet here
+ // see the note below for more information
+ },
+};
+```
+
+Then, in `integration-tests/runtime-tests/src/types/interfaces/definitions.ts`, add the following line:
+
+```typescript
+export { default as palletName } from "./palletName/definitions";
+```
+
+Notes:
+
+* `at` is mandatory, and is defined as the last parameter in the rust RPC definition for a reason:
+ Most of the time when calling an RPC the block hash can be omitted, and the best hash will be assumed if one is not provided.
+
+ Having it as the last parameter makes calling the RPC simpler:
+
+ ```typescript
+ palletName.rpcFunctionName(param1, param2)
+ ```
+
+ Instead of:
+
+ ```typescript
+ palletName.rpcFunctionName(null, param1, param2)
+ ```
+
+ If `at` were defined first.
+
+ Technically, it is possible to define `at` anywhere in the RPC definition, but putting it last for all of them makes the RPCs simpler and more consistent.
+
+* If this is a preexisting pallet, they are most likely already defined in the type definitions for `crowdloanRewards` (for reasons that don't need to be covered in this document) and can just be moved over to this file.
+
+ Even if there are no types to declare, still define an empty object or else everything will explode.
+
+### Tests
+
+Create a folder here: `integration-tests/runtime-tests/src/tests/rpc/pallet-name`
+
+And then within that folder, create a file `rpcPalletName.ts` with the following structure:
+
+```typescript
+/* eslint-disable no-trailing-spaces */
+import { /* any custom defined types that are needed for the RPC */ } from '@composable/types/interfaces';
+import { expect } from 'chai';
+
+
+export class RpcPalletNameTests {
+ /**
+ *
+ */
+ public static runRpcPalletNameTests() {
+ describe('rpc.palletName.functionName Tests', function () {
+ it('STUB', async () => {
+ const result = await RpcPalletNameTests.rpcPalletNameTest(/* parameters */);
+ // see note below about bignumbers
+ // (this is just an example assertion)
+ expect(result).to.be.a["bignumber"].that.equals('0');
+ });
+ });
+ }
+
+ /**
+ *
+ */
+ private static async rpcPalletNameTest(/* parameters */) {
+ // api is a global variable
+ return await api.rpc.palletName.functionName(/* parameters */);
+ }
+}
+
+// Uncomment to debug
+// RpcPalletNameTests.runRpcPalletNameTests();
+```
+
+Finally, in `integration-tests/runtime-tests/src/test.ts`, import the above class and add it's tests to the `RPC Tests` test suite:
+
+```typescript
+// ...stub...
+import { RpcPalletNameTests } from '@composable/tests/rpc/palletName/rpcPalletNameTests'; // <- add this
+
+describe('Picasso Runtime Tests', function () {
+ // ...stub...
+ describe('RPC Tests', function () {
+ // ...stub...
+ RpcPalletNameTests.runRpcPalletNameTests() // <- add this
+ });
+});
+```
+
+Notes:
+
+* If the type being compared against is a `u128`/`i128` on the rust side and has been wrapped in `SafeRpcWrapper`, it will be a bn.js `BN` (big number) here. `chai-bn` is used for asssertions with `BN`s but typescript can't quite figure out that it's being used; using `["bignumber"]` instead of `.bignumber` circumvents the typechecker a bit and allows it to pass without a `@ts-ignore` comment.
+
+ Thanks Dominik for figuring this one out!
+
+## Additional Resources
+
+For a good overview of how custom RPCs work, see .
diff --git a/frame/assets/Cargo.toml b/frame/assets/Cargo.toml
index bc5256bf813..c3455e996f5 100644
--- a/frame/assets/Cargo.toml
+++ b/frame/assets/Cargo.toml
@@ -14,26 +14,26 @@ frame-benchmarking = { default-features = false, optional = true, git = 'https:/
frame-support = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
frame-system = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
+sp-api = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
+# sp-blockchain = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
sp-arithmetic = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
sp-io = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
sp-core = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
sp-std = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
-composable-traits = { path = "../composable-traits", default-features = false }
+# local
+composable-traits = { path = "../composable-traits", default-features = false }
orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library", rev = "2b1c9fb367ccb8e13601b2da43d1c5d9737b93c6", default-features = false }
-num-traits = { version = "0.2.14", default-features = false }
scale-info = { version = "1.0", default-features = false, features = ["derive"] }
-[dependencies.codec]
-default-features = false
-features = ["derive"]
-package = "parity-scale-codec"
-version = "2.0.0"
+# misc
+codec = { default-features = false, features = ["derive"], package = "parity-scale-codec", version = "2.0.0" }
+num-traits = { version = "0.2.14", default-features = false }
[dev-dependencies]
-pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
+pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16", default-features = false }
orml-tokens = { git = "https://github.com/open-web3-stack/open-runtime-module-library", rev = "2b1c9fb367ccb8e13601b2da43d1c5d9737b93c6", default-features = false }
governance-registry = { package = "pallet-governance-registry", path = "../governance-registry", default-features = false }
proptest = "0.9.6"
@@ -49,6 +49,7 @@ std = [
"codec/std",
"frame-support/std",
"sp-runtime/std",
+ "sp-api/std",
"orml-traits/std",
"num-traits/std",
]
diff --git a/frame/assets/rpc/Cargo.toml b/frame/assets/rpc/Cargo.toml
new file mode 100644
index 00000000000..8904d41b5e6
--- /dev/null
+++ b/frame/assets/rpc/Cargo.toml
@@ -0,0 +1,30 @@
+[package]
+name = "assets-rpc"
+version = "0.0.1"
+authors = ["Composable Developers"]
+homepage = "https://composable.finance"
+edition = "2021"
+rust-version = "1.56"
+
+[package.metadata.docs.rs]
+targets = ["x86_64-unknown-linux-gnu"]
+
+[dependencies]
+# substrate primitives
+sp-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
+sp-blockchain = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
+sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
+sp-std = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
+
+# local
+composable-support = { path = "../../composable-support" }
+assets-runtime-api = { path = "../runtime-api" }
+
+# SCALE
+scale-info = { version = "1.0", default-features = false, features = ["derive"] }
+codec = { default-features = false, features = ["derive"], package = "parity-scale-codec", version = "2.0.0" }
+
+# rpc
+jsonrpc-core = "18.0.0"
+jsonrpc-core-client = "18.0.0"
+jsonrpc-derive = "18.0.0"
\ No newline at end of file
diff --git a/frame/assets/rpc/src/lib.rs b/frame/assets/rpc/src/lib.rs
new file mode 100644
index 00000000000..f18f9fc7bfb
--- /dev/null
+++ b/frame/assets/rpc/src/lib.rs
@@ -0,0 +1,73 @@
+use assets_runtime_api::AssetsRuntimeApi;
+use codec::Codec;
+use composable_support::rpc_helpers::{SafeRpcWrapper, SafeRpcWrapperType};
+use jsonrpc_core::{Error as RpcError, ErrorCode, Result as RpcResult};
+use jsonrpc_derive::rpc;
+use sp_api::ProvideRuntimeApi;
+use sp_blockchain::HeaderBackend;
+use sp_runtime::{generic::BlockId, traits::Block as BlockT};
+use sp_std::sync::Arc;
+
+#[rpc]
+pub trait AssetsApi
+where
+ AssetId: SafeRpcWrapperType,
+ Balance: SafeRpcWrapperType,
+{
+ #[rpc(name = "assets_balanceOf")]
+ fn balance_of(
+ &self,
+ currency: SafeRpcWrapper,
+ account: AccountId,
+ at: Option,
+ ) -> RpcResult>;
+}
+
+pub struct Assets {
+ client: Arc,
+ _marker: sp_std::marker::PhantomData,
+}
+
+impl Assets {
+ pub fn new(client: Arc) -> Self {
+ Self { client, _marker: Default::default() }
+ }
+}
+
+impl
+ AssetsApi<::Hash, AssetId, AccountId, Balance>
+ for Assets
+where
+ Block: BlockT,
+ AssetId: Codec + Send + Sync + 'static + SafeRpcWrapperType,
+ AccountId: Codec + Send + Sync + 'static,
+ Balance: Send + Sync + 'static + SafeRpcWrapperType,
+ C: Send + Sync + 'static,
+ C: ProvideRuntimeApi,
+ C: HeaderBackend,
+ C::Api: AssetsRuntimeApi,
+{
+ fn balance_of(
+ &self,
+ asset_id: SafeRpcWrapper,
+ account_id: AccountId,
+ at: Option<::Hash>,
+ ) -> RpcResult> {
+ let api = self.client.runtime_api();
+
+ let at = BlockId::hash(at.unwrap_or_else(|| {
+ // If the block hash is not supplied assume the best block.
+ self.client.info().best_hash
+ }));
+
+ let runtime_api_result = api.balance_of(&at, asset_id, account_id);
+ // TODO(benluelo): Review what error message & code to use
+ runtime_api_result.map_err(|e| {
+ RpcError {
+ code: ErrorCode::ServerError(9876), // No real reason for this value
+ message: "Something wrong".into(),
+ data: Some(format!("{:?}", e).into()),
+ }
+ })
+ }
+}
diff --git a/frame/assets/runtime-api/Cargo.toml b/frame/assets/runtime-api/Cargo.toml
new file mode 100644
index 00000000000..d459090f4c4
--- /dev/null
+++ b/frame/assets/runtime-api/Cargo.toml
@@ -0,0 +1,19 @@
+[package]
+name = "assets-runtime-api"
+version = "0.0.1"
+authors = ["Composable Developers"]
+homepage = "https://composable.finance"
+edition = "2021"
+rust-version = "1.56"
+
+[package.metadata.docs.rs]
+targets = ["x86_64-unknown-linux-gnu"]
+
+[dependencies]
+sp-api = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
+codec = { default-features = false, features = ["derive"], package = "parity-scale-codec", version = "2.0.0" }
+composable-support = { path = "../../composable-support", default-features = false }
+
+[features]
+default = ["std"]
+std = ["sp-api/std", "codec/std", "composable-support/std"]
diff --git a/frame/assets/runtime-api/src/lib.rs b/frame/assets/runtime-api/src/lib.rs
new file mode 100644
index 00000000000..8229caec12e
--- /dev/null
+++ b/frame/assets/runtime-api/src/lib.rs
@@ -0,0 +1,20 @@
+#![cfg_attr(not(feature = "std"), no_std)]
+#![allow(clippy::too_many_arguments)]
+#![allow(clippy::unnecessary_mut_passed)]
+
+use codec::Codec;
+use composable_support::rpc_helpers::{SafeRpcWrapper, SafeRpcWrapperType};
+
+// Here we declare the runtime API. It is implemented it the `impl` block in
+// runtime amalgamator file (the `runtime/src/lib.rs`)
+sp_api::decl_runtime_apis! {
+ // REVIEW(benluelo): Should the AssetId type parameter be removed and then just use CurencyId directly?
+ pub trait AssetsRuntimeApi
+ where
+ AssetId: SafeRpcWrapperType,
+ AccountId: Codec,
+ Balance: SafeRpcWrapperType,
+ {
+ fn balance_of(asset_id: SafeRpcWrapper, account_id: AccountId) -> SafeRpcWrapper /* Balance */;
+ }
+}
diff --git a/frame/composable-support/Cargo.toml b/frame/composable-support/Cargo.toml
index a6ea8f071f8..1f07b047050 100644
--- a/frame/composable-support/Cargo.toml
+++ b/frame/composable-support/Cargo.toml
@@ -9,34 +9,32 @@ rust-version = "1.56"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
-[dev-dependencies]
-proptest = { version = "1.0" }
-serde_json = "1.0.45"
-
[dependencies]
frame-support = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
frame-system = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
+
sp-arithmetic = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
sp-std = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
+
+codec = { version = "2.0.0", package = "parity-scale-codec", default-features = false, features = ["derive"] }
scale-info = { version = "1.0", default-features = false, features = ["derive"] }
-sorted-vec = "0.7.0"
+
+sorted-vec = { version = "0.7.0", optional = true }
serde = { version = "1.0.130", features = [ "derive" ], optional = true }
is_sorted = { version = "0.1.1", default-features = false }
-[dependencies.codec]
-default-features = false
-features = ["derive"]
-package = "parity-scale-codec"
-version = "2.0.0"
+[dev-dependencies]
+proptest = { version = "1.0" }
+serde_json = "1.0.45"
[features]
default = ["std"]
std = [
"codec/std",
"frame-support/std",
- "frame-system/std",
- "sp-runtime/std",
"sp-std/std",
"scale-info/std",
+ "serde",
+ "sorted-vec",
]
diff --git a/frame/composable-support/src/lib.rs b/frame/composable-support/src/lib.rs
index 6c7d99386a4..7b8b3feed54 100644
--- a/frame/composable-support/src/lib.rs
+++ b/frame/composable-support/src/lib.rs
@@ -13,4 +13,5 @@
#![cfg_attr(not(feature = "std"), no_std)]
pub mod collections;
+pub mod rpc_helpers;
pub mod validation;
diff --git a/frame/composable-support/src/rpc_helpers.rs b/frame/composable-support/src/rpc_helpers.rs
new file mode 100644
index 00000000000..7c1a701c735
--- /dev/null
+++ b/frame/composable-support/src/rpc_helpers.rs
@@ -0,0 +1,79 @@
+use codec::{Codec, Decode, Encode};
+#[cfg(feature = "std")]
+use serde::{Deserialize, Deserializer, Serialize, Serializer};
+
+/// https://github.com/interlay/interbtc/blob/a7c0e69ac041176a2531bafb1c4e35cbc2f7e192/crates/oracle/rpc/runtime-api/src/lib.rs#L10
+#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
+#[derive(Debug, PartialEq, Eq, Encode, Decode)]
+pub struct SafeRpcWrapper(
+ #[cfg_attr(feature = "std", serde(serialize_with = "serialize_to_hex"))]
+ #[cfg_attr(feature = "std", serde(deserialize_with = "deserialize_from_hex"))]
+ pub T,
+);
+
+pub trait SafeRpcWrapperType
+where
+ Self: sp_std::fmt::LowerHex + FromHexStr + Codec,
+{
+}
+
+impl SafeRpcWrapperType for T where T: sp_std::fmt::LowerHex + FromHexStr + Codec {}
+
+pub trait FromHexStr: sp_std::marker::Sized {
+ type Err: sp_std::fmt::Display;
+
+ fn from_hex_str(src: &str) -> sp_std::result::Result;
+}
+
+#[derive(Debug)]
+pub enum FromHexStrErr {
+ No0xPrefix,
+ ParseIntError(sp_std::num::ParseIntError),
+}
+
+impl sp_std::fmt::Display for FromHexStrErr {
+ fn fmt(&self, f: &mut sp_std::fmt::Formatter<'_>) -> sp_std::fmt::Result {
+ match self {
+ FromHexStrErr::No0xPrefix => f.write_str("No `0x` prefix"),
+ FromHexStrErr::ParseIntError(parse_int_error) =>
+ f.write_fmt(format_args!("{}", parse_int_error)),
+ }
+ }
+}
+
+impl FromHexStr for u128 {
+ type Err = FromHexStrErr;
+
+ fn from_hex_str(src: &str) -> sp_std::result::Result {
+ match src.strip_prefix("0x") {
+ Some(stripped) =>
+ u128::from_str_radix(stripped, 16).map_err(FromHexStrErr::ParseIntError),
+ None => Err(FromHexStrErr::No0xPrefix),
+ }
+ }
+}
+
+#[cfg(feature = "std")]
+fn serialize_to_hex(
+ t: &T,
+ serializer: S,
+) -> Result {
+ serializer.serialize_str(&format!("{:#x}", t))
+}
+
+#[cfg(feature = "std")]
+fn deserialize_from_hex<'de, D: Deserializer<'de>, T: SafeRpcWrapperType>(
+ deserializer: D,
+) -> Result {
+ use serde::de::Error;
+ let hex_string = String::deserialize(deserializer)?;
+
+ T::from_hex_str(&hex_string).map_err(|err| {
+ D::Error::custom(format!(
+ "Unable to parse as 0x-prefixed hex string: {} (error: {})",
+ hex_string, err
+ ))
+ })
+}
+
+// TODO: tests?
diff --git a/frame/composable-traits/Cargo.toml b/frame/composable-traits/Cargo.toml
index 991cd5de616..3ad33a12fb0 100644
--- a/frame/composable-traits/Cargo.toml
+++ b/frame/composable-traits/Cargo.toml
@@ -5,23 +5,21 @@ authors = ["Composable Developers"]
homepage = "https://composable.finance"
edition = "2021"
-
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
-frame-support = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
-frame-system = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
-xcm = { default-features = false, package = "xcm", git = "https://github.com/paritytech/polkadot", branch = "release-v0.9.16" }
+frame-support = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
+frame-system = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
+xcm = { default-features = false, git = "https://github.com/paritytech/polkadot", branch = "release-v0.9.16" }
sp-arithmetic = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
-sp-std = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
-orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library", rev = "2b1c9fb367ccb8e13601b2da43d1c5d9737b93c6", default-features = false }
+sp-std = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
-composable-support = {default-features = false, path = "../composable-support"}
+composable-support = { default-features = false, path = "../composable-support" }
scale-info = { version = "1.0", default-features = false, features = ["derive"] }
serde = { version = '1', optional = true }
-plotters = {version = "0.3.1", optional = true}
+plotters = { version = "0.3.1", optional = true }
bitflags = "1.3.2"
[dev-dependencies]
@@ -48,4 +46,4 @@ std = [
visualization = ["plotters"]
[package.metadata.cargo-udeps.ignore]
-normal = ["plotters"]
\ No newline at end of file
+normal = ["plotters"]
diff --git a/frame/crowdloan-rewards/Cargo.toml b/frame/crowdloan-rewards/Cargo.toml
index 1d27e34e9f6..d25b97ff1a9 100644
--- a/frame/crowdloan-rewards/Cargo.toml
+++ b/frame/crowdloan-rewards/Cargo.toml
@@ -26,26 +26,27 @@ hex-literal = "0.3"
balances = { package = "pallet-balances", git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16", default-features = false, features = [ "std" ]}
[dependencies]
-### Benchmarking
+# Benchmarking
hex-literal = { version = "0.3.3", optional = true }
-libsecp256k1 = { version = "0.7.0", default-features = false, optional = true, features = [
- "hmac",
- "static-context",
-] }
+libsecp256k1 = { version = "0.7.0", default-features = false, optional = true, features = ["hmac","static-context"] }
frame-benchmarking = { default-features = false, optional = true, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
sp-application-crypto = { default-features = false, optional = true, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
+# FRAME
frame-support = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
frame-system = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
+# substrate primitives
sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
sp-arithmetic = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
sp-io = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
sp-core = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
sp-std = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
-scale-info = { version = "1.0", default-features = false, features = [
- "derive",
-] }
+
+# SCALE
+scale-info = { version = "1.0", default-features = false, features = ["derive"] }
+
+# misc
serde = { version = "1.0.130", optional = true }
rustc-hex = { version = "2.1.0", default-features = false }
hex = { version = "0.4", default-features = false, features = ["alloc"] }
diff --git a/frame/crowdloan-rewards/rpc/Cargo.toml b/frame/crowdloan-rewards/rpc/Cargo.toml
new file mode 100644
index 00000000000..dcfbaebdd02
--- /dev/null
+++ b/frame/crowdloan-rewards/rpc/Cargo.toml
@@ -0,0 +1,34 @@
+[package]
+name = "crowdloan-rewards-rpc"
+version = "0.0.1"
+authors = ["Composable Developers"]
+homepage = "https://composable.finance"
+edition = "2021"
+rust-version = "1.56"
+
+[package.metadata.docs.rs]
+targets = ["x86_64-unknown-linux-gnu"]
+
+[dependencies]
+# FRAME
+frame-support = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
+
+# substrate primitives
+sp-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
+sp-blockchain = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
+sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
+sp-std = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
+
+# local
+composable-traits = { path = "../../composable-traits" }
+composable-support = { path = "../../composable-support" }
+crowdloan-rewards-runtime-api = { path = "../runtime-api" }
+
+# SCALE
+codec = { features = ["derive"], package = "parity-scale-codec", version = "2.0.0" }
+scale-info = { version = "1.0", features = ["derive"] }
+
+# rpc
+jsonrpc-core = "18.0.0"
+jsonrpc-core-client = "18.0.0"
+jsonrpc-derive = "18.0.0"
diff --git a/frame/crowdloan-rewards/rpc/src/lib.rs b/frame/crowdloan-rewards/rpc/src/lib.rs
new file mode 100644
index 00000000000..c0439e320d0
--- /dev/null
+++ b/frame/crowdloan-rewards/rpc/src/lib.rs
@@ -0,0 +1,67 @@
+use composable_support::rpc_helpers::{SafeRpcWrapper, SafeRpcWrapperType};
+use crowdloan_rewards_runtime_api::CrowdloanRewardsRuntimeApi;
+use frame_support::{pallet_prelude::MaybeSerializeDeserialize, Parameter};
+use jsonrpc_core::{Error as RpcError, ErrorCode, Result as RpcResult};
+use jsonrpc_derive::rpc;
+use sp_api::ProvideRuntimeApi;
+use sp_blockchain::HeaderBackend;
+use sp_runtime::{generic::BlockId, traits::Block as BlockT};
+use sp_std::{marker::PhantomData, sync::Arc};
+
+#[rpc]
+pub trait CrowdloanRewardsApi
+where
+ Balance: SafeRpcWrapperType,
+{
+ #[rpc(name = "crowdloanRewards_amountAvailableToClaimFor")]
+ fn amount_available_to_claim_for(
+ &self,
+ account: AccountId,
+ at: Option,
+ ) -> RpcResult>;
+}
+
+/// A struct that implements the `CrowdloanRewardsApi`.
+pub struct CrowdloanRewards {
+ client: Arc,
+ _marker: PhantomData,
+}
+
+impl CrowdloanRewards {
+ /// Create new `CrowdloanRewards` instance with the given reference to the client.
+ pub fn new(client: Arc) -> Self {
+ Self { client, _marker: Default::default() }
+ }
+}
+
+impl CrowdloanRewardsApi<::Hash, AccountId, Balance>
+ for CrowdloanRewards
+where
+ Block: BlockT,
+ AccountId: Send + Sync + Parameter + MaybeSerializeDeserialize + Ord + 'static,
+ Balance: Send + Sync + 'static + SafeRpcWrapperType,
+ C: Send + Sync + ProvideRuntimeApi + HeaderBackend + 'static,
+ C::Api: CrowdloanRewardsRuntimeApi,
+{
+ fn amount_available_to_claim_for(
+ &self,
+ remote_account: AccountId,
+ at: Option<::Hash>,
+ ) -> RpcResult> {
+ let api = self.client.runtime_api();
+ let at = BlockId::hash(at.unwrap_or_else(|| {
+ // If the block hash is not supplied assume the best block.
+ self.client.info().best_hash
+ }));
+
+ let runtime_api_result = api.amount_available_to_claim_for(&at, remote_account);
+ // TODO(benluelo): Review what error message & code to use
+ runtime_api_result.map_err(|e| {
+ RpcError {
+ code: ErrorCode::ServerError(9876), // No real reason for this value
+ message: "Something wrong".into(),
+ data: Some(format!("{:?}", e).into()),
+ }
+ })
+ }
+}
diff --git a/frame/crowdloan-rewards/runtime-api/Cargo.toml b/frame/crowdloan-rewards/runtime-api/Cargo.toml
new file mode 100644
index 00000000000..934dfb86da1
--- /dev/null
+++ b/frame/crowdloan-rewards/runtime-api/Cargo.toml
@@ -0,0 +1,21 @@
+[package]
+name = "crowdloan-rewards-runtime-api"
+version = "0.0.1"
+authors = ["Composable Developers"]
+homepage = "https://composable.finance"
+edition = "2021"
+rust-version = "1.56"
+
+[package.metadata.docs.rs]
+targets = ["x86_64-unknown-linux-gnu"]
+
+[dependencies]
+composable-support = { path = "../../composable-support", default-features = false }
+sp-api = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
+codec = { default-features = false, features = ["derive"], package = "parity-scale-codec", version = "2.0.0" }
+
+
+# REVIEW: Does the runtime API need features?
+[features]
+default = ["std"]
+std = ["sp-api/std", "composable-support/std"]
diff --git a/frame/crowdloan-rewards/runtime-api/src/lib.rs b/frame/crowdloan-rewards/runtime-api/src/lib.rs
new file mode 100644
index 00000000000..609d96e44dd
--- /dev/null
+++ b/frame/crowdloan-rewards/runtime-api/src/lib.rs
@@ -0,0 +1,18 @@
+#![cfg_attr(not(feature = "std"), no_std)]
+#![allow(clippy::too_many_arguments)]
+#![allow(clippy::unnecessary_mut_passed)]
+
+use codec::Codec;
+use composable_support::rpc_helpers::{SafeRpcWrapper, SafeRpcWrapperType};
+
+// Here we declare the runtime API. It is implemented it the `impl` block in
+// runtime amalgamator file (the `runtime/src/lib.rs`)
+sp_api::decl_runtime_apis! {
+ pub trait CrowdloanRewardsRuntimeApi
+ where
+ AccountId: Codec,
+ Balance: SafeRpcWrapperType,
+ {
+ fn amount_available_to_claim_for(account: AccountId) -> SafeRpcWrapper;
+ }
+}
diff --git a/frame/crowdloan-rewards/src/lib.rs b/frame/crowdloan-rewards/src/lib.rs
index 8bd0565534b..cadeb1e8274 100644
--- a/frame/crowdloan-rewards/src/lib.rs
+++ b/frame/crowdloan-rewards/src/lib.rs
@@ -326,33 +326,11 @@ pub mod pallet {
remote_account: RemoteAccountOf,
reward_account: &T::AccountId,
) -> Result {
- let start = VestingBlockStart::::get().ok_or(Error::::NotInitialized)?;
Rewards::::try_mutate(remote_account, |reward| {
reward
.as_mut()
.map(|reward| {
- let upfront_payment = T::InitialPayment::get().mul_floor(reward.total);
- let should_have_claimed = {
- let current_block = frame_system::Pallet::::block_number();
- // Current point in time
- let vesting_point = current_block.saturating_sub(start);
- if vesting_point >= reward.vesting_period {
- // If the user is claiming when the period is over, he should
- // probably have already claimed everything.
- reward.total
- } else {
- let vesting_step = T::VestingStep::get();
- // Current window, rounded to previous window.
- let vesting_window = vesting_point - (vesting_point % vesting_step);
- // The user should have claimed the upfront payment + the vested
- // amount until this window point.
- let vested_reward = reward.total - upfront_payment;
- upfront_payment +
- (vested_reward
- .saturating_mul(T::Convert::convert(vesting_window)) /
- T::Convert::convert(reward.vesting_period))
- }
- };
+ let should_have_claimed = should_have_claimed::(reward)?;
let available_to_claim = should_have_claimed - reward.claimed;
ensure!(
available_to_claim > T::Balance::zero(),
@@ -368,6 +346,32 @@ pub mod pallet {
}
}
+ pub fn should_have_claimed(
+ reward: &Reward<::Balance, ::BlockNumber>,
+ ) -> Result {
+ let start = VestingBlockStart::::get().ok_or(Error::::NotInitialized)?;
+ let upfront_payment = T::InitialPayment::get().mul_floor(reward.total);
+
+ let current_block = frame_system::Pallet::::block_number();
+ // Current point in time
+ let vesting_point = current_block.saturating_sub(start);
+ if vesting_point >= reward.vesting_period {
+ // If the user is claiming when the period is over, he should
+ // probably have already claimed everything.
+ Ok(reward.total)
+ } else {
+ let vesting_step = T::VestingStep::get();
+ // Current window, rounded to previous window.
+ let vesting_window = vesting_point - (vesting_point % vesting_step);
+ // The user should have claimed the upfront payment + the vested
+ // amount until this window point.
+ let vested_reward = reward.total - upfront_payment;
+ Ok(upfront_payment +
+ (vested_reward.saturating_mul(T::Convert::convert(vesting_window)) /
+ T::Convert::convert(reward.vesting_period)))
+ }
+ }
+
pub fn get_remote_account(
proof: Proof<::RelayChainAccountId>,
reward_account: &::AccountId,
diff --git a/frame/currency-factory/Cargo.toml b/frame/currency-factory/Cargo.toml
index e02a7e8ee60..666e72992c0 100644
--- a/frame/currency-factory/Cargo.toml
+++ b/frame/currency-factory/Cargo.toml
@@ -16,20 +16,24 @@ package = "parity-scale-codec"
version = "2.0.0"
[dependencies]
+# FRAME
frame-support = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
frame-system = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
frame-benchmarking = { default-features = false, optional = true, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.16' }
+# substrate primitives
sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
sp-arithmetic = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
sp-io = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
sp-core = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
sp-std = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
-composable-traits = { path = "../composable-traits", default-features = false }
scale-info = { version = "1.0", default-features = false, features = ["derive"] }
+# local
+composable-traits = { path = "../composable-traits", default-features = false }
+
[dev-dependencies]
-pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.13" }
+pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
proptest = "0.9.6"
composable-tests-helpers = { version = "0.0.1", path = "../composable-tests-helpers", default-features = false }
diff --git a/frame/dutch-auction/Cargo.toml b/frame/dutch-auction/Cargo.toml
index 18c3a866a15..c5a88defc7a 100644
--- a/frame/dutch-auction/Cargo.toml
+++ b/frame/dutch-auction/Cargo.toml
@@ -22,7 +22,7 @@ sp-io = { default-features = false, git = "https://github.com/paritytech/substr
sp-core = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
sp-arithmetic = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16" }
smallvec = "1.7.0"
-serde = { version = "1.0.130", optional = true }
+serde = { version = "1.0.130", optional = true }
scale-info = { version = "1.0", default-features = false, features = ["derive"] }
orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library", rev = "2b1c9fb367ccb8e13601b2da43d1c5d9737b93c6", default-features = false }
num-traits = { version = "0.2.14", default-features = false }
@@ -58,11 +58,11 @@ std = [
"frame-system/std",
"frame-support/std",
"codec/std",
- "composable-traits/std",
+ "composable-traits/std",
]
runtime-benchmarks = [
"frame-benchmarking",
- "frame-support/runtime-benchmarks",
- "frame-system/runtime-benchmarks",
+ "frame-support/runtime-benchmarks",
+ "frame-system/runtime-benchmarks",
]
diff --git a/frame/lending/Cargo.toml b/frame/lending/Cargo.toml
index 4e3e92b4dcd..e9a1fcddb36 100644
--- a/frame/lending/Cargo.toml
+++ b/frame/lending/Cargo.toml
@@ -53,7 +53,7 @@ pallet-currency-factory = { path = "../currency-factory" }
pallet-liquidations = { path = "../liquidations" }
pallet-dutch-auction = { path = "../dutch-auction", default-features = false }
composable-tests-helpers = { path = "../composable-tests-helpers", default-features = false }
-pallet-assets = { path = '../assets', default-features = false}
+pallet-assets = { path = '../assets', default-features = false }
[features]
diff --git a/integration-tests/Cargo.toml b/integration-tests/Cargo.toml
index 3daf3f68097..417a792f522 100644
--- a/integration-tests/Cargo.toml
+++ b/integration-tests/Cargo.toml
@@ -14,7 +14,7 @@ normal = [
"pallet-bonded-finance",
"pallet-vault",
"session-benchmarking",
- "vault"
+ "vault",
]
[dependencies]
@@ -61,11 +61,11 @@ primitives = { path = "../runtime/primitives", default-features = false }
oracle = { package = "pallet-oracle", path = "../frame/oracle", default-features = false }
vault = { package = "pallet-vault", path = "../frame/vault", default-features = false }
currency-factory = { package = "pallet-currency-factory", path = "../frame/currency-factory", default-features = false }
-composable-traits = { path = "../frame/composable-traits" , default-features = false}
+composable-traits = { path = "../frame/composable-traits", default-features = false }
call-filter = { package = "pallet-call-filter", path = "../frame/call-filter", default-features = false }
-assets-registry = { package = "pallet-assets-registry", path = "../frame/assets-registry", default-features = false, optional = true}
-governance-registry = { package = "pallet-governance-registry", path = "../frame/governance-registry", default-features = false, optional = true}
-assets = { package = "pallet-assets", path = "../frame/assets", default-features = false, optional = true}
+assets-registry = { package = "pallet-assets-registry", path = "../frame/assets-registry", default-features = false, optional = true }
+governance-registry = { package = "pallet-governance-registry", path = "../frame/governance-registry", default-features = false, optional = true }
+assets = { package = "pallet-assets", path = "../frame/assets", default-features = false, optional = true }
# Used for the node template's RPCs
system-rpc-runtime-api = { package = "frame-system-rpc-runtime-api", git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16", default-features = false }
@@ -75,7 +75,9 @@ transaction-payment-rpc-runtime-api = { package = "pallet-transaction-payment-rp
benchmarking = { package = "frame-benchmarking", git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16", default-features = false, optional = true }
system-benchmarking = { package = "frame-system-benchmarking", git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.16", default-features = false, optional = true }
hex-literal = { version = "0.3.1", optional = true }
-codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
+codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = [
+ "derive",
+] }
# Parachain Utilities
cumulus-pallet-aura-ext = { git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.16", default-features = false }
@@ -125,9 +127,9 @@ std = [
"sp-block-builder/std",
"sp-transaction-pool/std",
"sp-inherents/std",
- "support/std",
+ "support/std",
"executive/std",
- "frame-system/std",
+ "frame-system/std",
"utility/std",
"authorship/std",
"balances/std",
@@ -198,8 +200,4 @@ runtime-benchmarks = [
"polkadot-runtime-parachains/runtime-benchmarks",
]
-develop = [
- "assets",
- "assets-registry",
- "governance-registry",
-]
\ No newline at end of file
+develop = ["assets", "assets-registry", "governance-registry"]
diff --git a/integration-tests/runtime-tests/.mocharc.json b/integration-tests/runtime-tests/.mocharc.json
index 2374a46832f..2975a964147 100644
--- a/integration-tests/runtime-tests/.mocharc.json
+++ b/integration-tests/runtime-tests/.mocharc.json
@@ -1,6 +1,5 @@
{
"diff": true,
- "extension": ["js", "cjs", "mjs"],
"package": "./package.json",
"reporter": "mochawesome",
"reporterOptions": {
@@ -14,9 +13,9 @@
"timeout": 2000,
"retries": 0,
"ui": "bdd",
- "watch-files": ["src/**/*.js", "src/**/*.ts"],
+ "watch-files": ["src/**/*.ts"],
"watch-ignore": ["lib/vendor"],
- "require": "src/utils/testSetup.js",
+ "require": "src/utils/testSetup.ts",
"full-trace": true,
"parallel": false
}
diff --git a/integration-tests/runtime-tests/package-lock.json b/integration-tests/runtime-tests/package-lock.json
index 882060b5329..78c14b95892 100644
--- a/integration-tests/runtime-tests/package-lock.json
+++ b/integration-tests/runtime-tests/package-lock.json
@@ -23,6 +23,7 @@
"@types/ramda": "^0.27.64",
"chai": "^4.3.4",
"chai-as-promised": "^7.1.1",
+ "chai-bn": "^0.3.1",
"minimist": "^1.2.5",
"mocha": "^8.4.0",
"mochawesome": "^7.0.1",
@@ -47,6 +48,18 @@
"node": ">=12.0.0"
}
},
+ "node_modules/@ampproject/remapping": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.0.2.tgz",
+ "integrity": "sha512-sE8Gx+qSDMLoJvb3QarJJlDQK7SSY4rK3hxp4XsiANeFOmjU46ZI7Y9adAQRJrmbz8zbtZkp3mJTT+rGxtF0XA==",
+ "dependencies": {
+ "@jridgewell/trace-mapping": "^0.2.2",
+ "sourcemap-codec": "1.4.8"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
"node_modules/@babel/code-frame": {
"version": "7.16.7",
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz",
@@ -67,25 +80,25 @@
}
},
"node_modules/@babel/core": {
- "version": "7.16.12",
- "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.16.12.tgz",
- "integrity": "sha512-dK5PtG1uiN2ikk++5OzSYsitZKny4wOCD0nrO4TqnW4BVBTQ2NGS3NgilvT/TEyxTST7LNyWV/T4tXDoD3fOgg==",
+ "version": "7.17.0",
+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.17.0.tgz",
+ "integrity": "sha512-x/5Ea+RO5MvF9ize5DeVICJoVrNv0Mi2RnIABrZEKYvPEpldXwauPkgvYA17cKa6WpU3LoYvYbuEMFtSNFsarA==",
"dependencies": {
+ "@ampproject/remapping": "^2.0.0",
"@babel/code-frame": "^7.16.7",
- "@babel/generator": "^7.16.8",
+ "@babel/generator": "^7.17.0",
"@babel/helper-compilation-targets": "^7.16.7",
"@babel/helper-module-transforms": "^7.16.7",
- "@babel/helpers": "^7.16.7",
- "@babel/parser": "^7.16.12",
+ "@babel/helpers": "^7.17.0",
+ "@babel/parser": "^7.17.0",
"@babel/template": "^7.16.7",
- "@babel/traverse": "^7.16.10",
- "@babel/types": "^7.16.8",
+ "@babel/traverse": "^7.17.0",
+ "@babel/types": "^7.17.0",
"convert-source-map": "^1.7.0",
"debug": "^4.1.0",
"gensync": "^1.0.0-beta.2",
"json5": "^2.1.2",
- "semver": "^6.3.0",
- "source-map": "^0.5.0"
+ "semver": "^6.3.0"
},
"engines": {
"node": ">=6.9.0"
@@ -109,20 +122,12 @@
"node": ">=6"
}
},
- "node_modules/@babel/core/node_modules/source-map": {
- "version": "0.5.7",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",
- "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=",
- "engines": {
- "node": ">=0.10.0"
- }
- },
"node_modules/@babel/generator": {
- "version": "7.16.8",
- "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.16.8.tgz",
- "integrity": "sha512-1ojZwE9+lOXzcWdWmO6TbUzDfqLD39CmEhN8+2cX9XkDo5yW1OpgfejfliysR2AWLpMamTiOiAp/mtroaymhpw==",
+ "version": "7.17.0",
+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.17.0.tgz",
+ "integrity": "sha512-I3Omiv6FGOC29dtlZhkfXO6pgkmukJSlT26QjVvS1DGZe/NzSVCPG41X0tS21oZkJYlovfj9qDWgKP+Cn4bXxw==",
"dependencies": {
- "@babel/types": "^7.16.8",
+ "@babel/types": "^7.17.0",
"jsesc": "^2.5.1",
"source-map": "^0.5.0"
},
@@ -269,13 +274,13 @@
}
},
"node_modules/@babel/helpers": {
- "version": "7.16.7",
- "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.16.7.tgz",
- "integrity": "sha512-9ZDoqtfY7AuEOt3cxchfii6C7GDyyMBffktR5B2jvWv8u2+efwvpnVKXMWzNehqy68tKgAfSwfdw/lWpthS2bw==",
+ "version": "7.17.0",
+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.17.0.tgz",
+ "integrity": "sha512-Xe/9NFxjPwELUvW2dsukcMZIp6XwPSbI4ojFBJuX5ramHuVE22SVcZIwqzdWo5uCgeTXW8qV97lMvSOjq+1+nQ==",
"dependencies": {
"@babel/template": "^7.16.7",
- "@babel/traverse": "^7.16.7",
- "@babel/types": "^7.16.7"
+ "@babel/traverse": "^7.17.0",
+ "@babel/types": "^7.17.0"
},
"engines": {
"node": ">=6.9.0"
@@ -359,9 +364,9 @@
}
},
"node_modules/@babel/parser": {
- "version": "7.16.12",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.16.12.tgz",
- "integrity": "sha512-VfaV15po8RiZssrkPweyvbGVSe4x2y+aciFCgn0n0/SJMR22cwofRV1mtnJQYcSB1wUTaA/X1LnA3es66MCO5A==",
+ "version": "7.17.0",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.17.0.tgz",
+ "integrity": "sha512-VKXSCQx5D8S04ej+Dqsr1CzYvvWgf20jIw2D+YhQCrIlr2UZGaDds23Y0xg75/skOxpLCRpUZvk/1EAVkGoDOw==",
"bin": {
"parser": "bin/babel-parser.js"
},
@@ -411,18 +416,18 @@
}
},
"node_modules/@babel/traverse": {
- "version": "7.16.10",
- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.16.10.tgz",
- "integrity": "sha512-yzuaYXoRJBGMlBhsMJoUW7G1UmSb/eXr/JHYM/MsOJgavJibLwASijW7oXBdw3NQ6T0bW7Ty5P/VarOs9cHmqw==",
+ "version": "7.17.0",
+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.17.0.tgz",
+ "integrity": "sha512-fpFIXvqD6kC7c7PUNnZ0Z8cQXlarCLtCUpt2S1Dx7PjoRtCFffvOkHHSom+m5HIxMZn5bIBVb71lhabcmjEsqg==",
"dependencies": {
"@babel/code-frame": "^7.16.7",
- "@babel/generator": "^7.16.8",
+ "@babel/generator": "^7.17.0",
"@babel/helper-environment-visitor": "^7.16.7",
"@babel/helper-function-name": "^7.16.7",
"@babel/helper-hoist-variables": "^7.16.7",
"@babel/helper-split-export-declaration": "^7.16.7",
- "@babel/parser": "^7.16.10",
- "@babel/types": "^7.16.8",
+ "@babel/parser": "^7.17.0",
+ "@babel/types": "^7.17.0",
"debug": "^4.1.0",
"globals": "^11.1.0"
},
@@ -439,9 +444,9 @@
}
},
"node_modules/@babel/types": {
- "version": "7.16.8",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.16.8.tgz",
- "integrity": "sha512-smN2DQc5s4M7fntyjGtyIPbRJv6wW4rU/94fmYJ7PKQuZkC0qGMHXJbg6sNGt12JmVr4k5YaptI/XtiLJBnmIg==",
+ "version": "7.17.0",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.17.0.tgz",
+ "integrity": "sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==",
"dependencies": {
"@babel/helper-validator-identifier": "^7.16.7",
"to-fast-properties": "^2.0.0"
@@ -638,6 +643,11 @@
"bn.js": "^4.11.9"
}
},
+ "node_modules/@ethersproject/bignumber/node_modules/bn.js": {
+ "version": "4.12.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
+ },
"node_modules/@ethersproject/bytes": {
"version": "5.5.0",
"resolved": "https://registry.npmjs.org/@ethersproject/bytes/-/bytes-5.5.0.tgz",
@@ -811,6 +821,11 @@
"hash.js": "1.1.7"
}
},
+ "node_modules/@ethersproject/signing-key/node_modules/bn.js": {
+ "version": "4.12.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
+ },
"node_modules/@ethersproject/strings": {
"version": "5.5.0",
"resolved": "https://registry.npmjs.org/@ethersproject/strings/-/strings-5.5.0.tgz",
@@ -897,6 +912,23 @@
"dev": true,
"license": "BSD-3-Clause"
},
+ "node_modules/@jridgewell/resolve-uri": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.0.4.tgz",
+ "integrity": "sha512-cz8HFjOFfUBtvN+NXYSFMHYRdxZMaEl0XypVrhzxBgadKIXhIkRd8aMeHhmF56Sl7SuS8OnUpQ73/k9LE4VnLg==",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/trace-mapping": {
+ "version": "0.2.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.2.5.tgz",
+ "integrity": "sha512-K+Eths78fXDFOvQ2hgJhCiI5s+g81r2yXmACBpbn+f2+Qt94PNoTgUcAXPT8DZkhXCsZRsHVWVtY5KIBMcpDqQ==",
+ "dependencies": {
+ "@jridgewell/resolve-uri": "^3.0.3",
+ "sourcemap-codec": "1.4.8"
+ }
+ },
"node_modules/@noble/hashes": {
"version": "0.5.7",
"resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-0.5.7.tgz",
@@ -943,23 +975,23 @@
}
},
"node_modules/@polkadot/api": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-7.5.1.tgz",
- "integrity": "sha512-/3AI4Kbznt289+swtiFEYiX+XR9d+qzHhL8XxEzcqQudw2ElrfpLTAx3RzTUEEeEfwwPGmNVWPWaG4egUPsosQ==",
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-7.6.1.tgz",
+ "integrity": "sha512-0VvWn8TIKX3o922ZjomsJEkysica1ScnjNYBG3+801gWG3WbCI+IdzdqazTkIMZL8r8HipmA4cjfS3Tdk+R9eg==",
"dependencies": {
"@babel/runtime": "^7.16.7",
- "@polkadot/api-augment": "7.5.1",
- "@polkadot/api-base": "7.5.1",
- "@polkadot/api-derive": "7.5.1",
+ "@polkadot/api-augment": "7.6.1",
+ "@polkadot/api-base": "7.6.1",
+ "@polkadot/api-derive": "7.6.1",
"@polkadot/keyring": "^8.3.3",
- "@polkadot/rpc-augment": "7.5.1",
- "@polkadot/rpc-core": "7.5.1",
- "@polkadot/rpc-provider": "7.5.1",
- "@polkadot/types": "7.5.1",
- "@polkadot/types-augment": "7.5.1",
- "@polkadot/types-codec": "7.5.1",
- "@polkadot/types-create": "7.5.1",
- "@polkadot/types-known": "7.5.1",
+ "@polkadot/rpc-augment": "7.6.1",
+ "@polkadot/rpc-core": "7.6.1",
+ "@polkadot/rpc-provider": "7.6.1",
+ "@polkadot/types": "7.6.1",
+ "@polkadot/types-augment": "7.6.1",
+ "@polkadot/types-codec": "7.6.1",
+ "@polkadot/types-create": "7.6.1",
+ "@polkadot/types-known": "7.6.1",
"@polkadot/util": "^8.3.3",
"@polkadot/util-crypto": "^8.3.3",
"eventemitter3": "^4.0.7",
@@ -970,16 +1002,16 @@
}
},
"node_modules/@polkadot/api-augment": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@polkadot/api-augment/-/api-augment-7.5.1.tgz",
- "integrity": "sha512-2sj+D8gvyo9ijqFFqJS5meaMVRllr5fWnE440nACsXIbcbHuXRWAF9tWdhESOIfue7hlFLo5plDdRfU7cSjIZQ==",
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@polkadot/api-augment/-/api-augment-7.6.1.tgz",
+ "integrity": "sha512-elkAVDzkcW909phGQNOM2M2ksfnjNeY67EnwIB0xBdFlfM7mVPdxqnAWHrBwbIsD3TdWzxtrNzWzyi7hvILt+A==",
"dependencies": {
"@babel/runtime": "^7.16.7",
- "@polkadot/api-base": "7.5.1",
- "@polkadot/rpc-augment": "7.5.1",
- "@polkadot/types": "7.5.1",
- "@polkadot/types-augment": "7.5.1",
- "@polkadot/types-codec": "7.5.1",
+ "@polkadot/api-base": "7.6.1",
+ "@polkadot/rpc-augment": "7.6.1",
+ "@polkadot/types": "7.6.1",
+ "@polkadot/types-augment": "7.6.1",
+ "@polkadot/types-codec": "7.6.1",
"@polkadot/util": "^8.3.3"
},
"engines": {
@@ -987,13 +1019,13 @@
}
},
"node_modules/@polkadot/api-base": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@polkadot/api-base/-/api-base-7.5.1.tgz",
- "integrity": "sha512-vqMjmMOQuYLSwfTHTgmvPBtF6eAgrlyuBw0t0IiaTDfjP6xRRGMDIVb7lJCqvYL0VrHmTC7X5MVbJn1SNUut9w==",
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@polkadot/api-base/-/api-base-7.6.1.tgz",
+ "integrity": "sha512-HbbbQSzTc5W0QtV/5JMOHbINlrHeZ5w5Cdo2jmIkSZT8w8MxhnupzdvkjIX9B9F4/dFa0RdaP/J1FnLNFlUU1w==",
"dependencies": {
"@babel/runtime": "^7.16.7",
- "@polkadot/rpc-core": "7.5.1",
- "@polkadot/types": "7.5.1",
+ "@polkadot/rpc-core": "7.6.1",
+ "@polkadot/types": "7.6.1",
"@polkadot/util": "^8.3.3",
"rxjs": "^7.5.2"
},
@@ -1002,17 +1034,17 @@
}
},
"node_modules/@polkadot/api-derive": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-7.5.1.tgz",
- "integrity": "sha512-O4x/DG+sSWgbXYGuYm4d3iYMTv5WTzoX5HX/xAIG+H+g7ob5RDdyLW9oQowrOX9ZOKt1cHPbHi0dLj+hDOD1CQ==",
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-7.6.1.tgz",
+ "integrity": "sha512-cRoc1LTTwvEH9QtHIp7vWYn34dczuqg4xQSbZn/IqEzvmcpU7wJC3gLfEOCrqTIFDofPVyBOd7Vv3gjuey/82g==",
"dependencies": {
"@babel/runtime": "^7.16.7",
- "@polkadot/api": "7.5.1",
- "@polkadot/api-augment": "7.5.1",
- "@polkadot/api-base": "7.5.1",
- "@polkadot/rpc-core": "7.5.1",
- "@polkadot/types": "7.5.1",
- "@polkadot/types-codec": "7.5.1",
+ "@polkadot/api": "7.6.1",
+ "@polkadot/api-augment": "7.6.1",
+ "@polkadot/api-base": "7.6.1",
+ "@polkadot/rpc-core": "7.6.1",
+ "@polkadot/types": "7.6.1",
+ "@polkadot/types-codec": "7.6.1",
"@polkadot/util": "^8.3.3",
"@polkadot/util-crypto": "^8.3.3",
"rxjs": "^7.5.2"
@@ -1051,14 +1083,14 @@
}
},
"node_modules/@polkadot/rpc-augment": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@polkadot/rpc-augment/-/rpc-augment-7.5.1.tgz",
- "integrity": "sha512-LPTDjtBZJe5KIOErOW+h2HY85G57WZVOiwm+SOgJ6J5g+BnUD0Rv+VH9pGC8dfoUsYBHSSvFELLnoTIZw6jltg==",
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@polkadot/rpc-augment/-/rpc-augment-7.6.1.tgz",
+ "integrity": "sha512-lNeTS8Ma/0sAk3pvGxliQOkE016WZKXyS5uQWtcF2CRn2rn265Fb4I29n3KjTL8CRYtafvH6IRS0DSkKgbnL3w==",
"dependencies": {
"@babel/runtime": "^7.16.7",
- "@polkadot/rpc-core": "7.5.1",
- "@polkadot/types": "7.5.1",
- "@polkadot/types-codec": "7.5.1",
+ "@polkadot/rpc-core": "7.6.1",
+ "@polkadot/types": "7.6.1",
+ "@polkadot/types-codec": "7.6.1",
"@polkadot/util": "^8.3.3"
},
"engines": {
@@ -1066,14 +1098,14 @@
}
},
"node_modules/@polkadot/rpc-core": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-7.5.1.tgz",
- "integrity": "sha512-/UN7fQSqGnyjd5W0fFZ2RDBxAYoS8UreIea0eu+Zz4t6D2Fjp1syHNkw710wuv6ALhaRUjW6USO8XNSHDBIz+w==",
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-7.6.1.tgz",
+ "integrity": "sha512-xq/GzUeBu1GsP4ngEYQeDrVnsullDBy/22yUY/ahNjkgAjXeOndrBFis+4lBiiksVQMgYZEzaHv89E0aCOBvAA==",
"dependencies": {
"@babel/runtime": "^7.16.7",
- "@polkadot/rpc-augment": "7.5.1",
- "@polkadot/rpc-provider": "7.5.1",
- "@polkadot/types": "7.5.1",
+ "@polkadot/rpc-augment": "7.6.1",
+ "@polkadot/rpc-provider": "7.6.1",
+ "@polkadot/types": "7.6.1",
"@polkadot/util": "^8.3.3",
"rxjs": "^7.5.2"
},
@@ -1082,21 +1114,21 @@
}
},
"node_modules/@polkadot/rpc-provider": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-7.5.1.tgz",
- "integrity": "sha512-6t5PyEDFBYJiK1/oegQkET4DnKdfk/mskELOVflDd4sLN+mXSAUW4DvS+KiVldHfUBtMQqX/w3p7x26xmWjmqQ==",
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-7.6.1.tgz",
+ "integrity": "sha512-jevBGp/n16ra+Y+JV8nnNRTtKPU1Oo3nBiyMhUla6crWLjMnLAYvcyteRq27aBmU3Olh4n/0xDVNCvTxfEghxQ==",
"dependencies": {
"@babel/runtime": "^7.16.7",
"@polkadot/keyring": "^8.3.3",
- "@polkadot/types": "7.5.1",
- "@polkadot/types-support": "7.5.1",
+ "@polkadot/types": "7.6.1",
+ "@polkadot/types-support": "7.6.1",
"@polkadot/util": "^8.3.3",
"@polkadot/util-crypto": "^8.3.3",
"@polkadot/x-fetch": "^8.3.3",
"@polkadot/x-global": "^8.3.3",
"@polkadot/x-ws": "^8.3.3",
"eventemitter3": "^4.0.7",
- "mock-socket": "^9.1.0",
+ "mock-socket": "^9.1.2",
"nock": "^13.2.2"
},
"engines": {
@@ -1112,22 +1144,22 @@
}
},
"node_modules/@polkadot/typegen": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@polkadot/typegen/-/typegen-7.5.1.tgz",
- "integrity": "sha512-0ma//yfYBEcpYftoqS3Jbl3mVGA/zl3WRfnW3KK3cQ8J1xqKXusjeQ/9egyuWSP8qn34XHXQcvE6T+rfX+ki4A==",
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@polkadot/typegen/-/typegen-7.6.1.tgz",
+ "integrity": "sha512-RCtpQWTmPMTHFbK5AXTy7Ncgx2aj4FhxnYFZxmpm2bZpXsf66mTKDu2vQiKN2vwPtjG8WnxuyB1fqnyGtebHPg==",
"dependencies": {
"@babel/core": "^7.16.12",
"@babel/register": "^7.16.9",
"@babel/runtime": "^7.16.7",
- "@polkadot/api": "7.5.1",
- "@polkadot/api-augment": "7.5.1",
- "@polkadot/rpc-augment": "7.5.1",
- "@polkadot/rpc-provider": "7.5.1",
- "@polkadot/types": "7.5.1",
- "@polkadot/types-augment": "7.5.1",
- "@polkadot/types-codec": "7.5.1",
- "@polkadot/types-create": "7.5.1",
- "@polkadot/types-support": "7.5.1",
+ "@polkadot/api": "7.6.1",
+ "@polkadot/api-augment": "7.6.1",
+ "@polkadot/rpc-augment": "7.6.1",
+ "@polkadot/rpc-provider": "7.6.1",
+ "@polkadot/types": "7.6.1",
+ "@polkadot/types-augment": "7.6.1",
+ "@polkadot/types-codec": "7.6.1",
+ "@polkadot/types-create": "7.6.1",
+ "@polkadot/types-support": "7.6.1",
"@polkadot/util": "^8.3.3",
"@polkadot/x-ws": "^8.3.3",
"handlebars": "^4.7.7",
@@ -1171,15 +1203,15 @@
}
},
"node_modules/@polkadot/types": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-7.5.1.tgz",
- "integrity": "sha512-71KY3Ia8AZywb0wWP0F588qFJbQMcgZqqP/dw6RP1A5ja2pR5SnqRP/zcaSena1cm9f24rAxgxiluOzzJxrfsA==",
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-7.6.1.tgz",
+ "integrity": "sha512-4GotmyT6h5n2qpgqPKqzVzgZKuPS9fNMeQBBbhxZxjyFmSTYtIqQeyqFw1bgIGcsZBH81WK7yE1U221l8gmj1Q==",
"dependencies": {
"@babel/runtime": "^7.16.7",
"@polkadot/keyring": "^8.3.3",
- "@polkadot/types-augment": "7.5.1",
- "@polkadot/types-codec": "7.5.1",
- "@polkadot/types-create": "7.5.1",
+ "@polkadot/types-augment": "7.6.1",
+ "@polkadot/types-codec": "7.6.1",
+ "@polkadot/types-create": "7.6.1",
"@polkadot/util": "^8.3.3",
"@polkadot/util-crypto": "^8.3.3",
"rxjs": "^7.5.2"
@@ -1189,13 +1221,13 @@
}
},
"node_modules/@polkadot/types-augment": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@polkadot/types-augment/-/types-augment-7.5.1.tgz",
- "integrity": "sha512-YWXYfc0a2AOb2naG2uWAHkTuGvfPz8hrKv3UMTWUrCok/kVbUovqSXoBAORaX+tphpaKbEuBnBtBhk2cXP6KWA==",
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@polkadot/types-augment/-/types-augment-7.6.1.tgz",
+ "integrity": "sha512-OLTVgMlSiZy37eXhUa6zYRHBUK7eJ2opovAKYpk+S8biA4nrq7LUXis2MnCP9C1TvsQozPlZ5q0M89WRVw96TA==",
"dependencies": {
"@babel/runtime": "^7.16.7",
- "@polkadot/types": "7.5.1",
- "@polkadot/types-codec": "7.5.1",
+ "@polkadot/types": "7.6.1",
+ "@polkadot/types-codec": "7.6.1",
"@polkadot/util": "^8.3.3"
},
"engines": {
@@ -1203,9 +1235,9 @@
}
},
"node_modules/@polkadot/types-codec": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@polkadot/types-codec/-/types-codec-7.5.1.tgz",
- "integrity": "sha512-+MClbgg0sbEIsPnqVf1wVzR5qPCE5Xb+QXkwawx86mIyxb4eptdBnU0CFgHVcrNnKx6EcaUZWQgz17UxtmTWaA==",
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@polkadot/types-codec/-/types-codec-7.6.1.tgz",
+ "integrity": "sha512-Zm4oQJK4BeB3reElKCVfJm1tzVK2O+hfS9QlKJAHy+kYwPB20o0UYv1d0K1WOZedSmVIaoW/diOaxMePV1S55Q==",
"dependencies": {
"@babel/runtime": "^7.16.7",
"@polkadot/util": "^8.3.3"
@@ -1215,12 +1247,12 @@
}
},
"node_modules/@polkadot/types-create": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@polkadot/types-create/-/types-create-7.5.1.tgz",
- "integrity": "sha512-OCsdDp4vd/6yNThTEmjbndHks4VHlfeuNwcQQN2NcM4Gs072LnuDTbRgFHAqvcSKB0SVOiWoy/UxkktLE+0w2Q==",
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@polkadot/types-create/-/types-create-7.6.1.tgz",
+ "integrity": "sha512-vGUT5O3/bYpP/NOa/5TV8aCDoDE8DbeRSiykzQ8ceOrnmB4VrlJ+L4zklyiuRdAFXPYmi+7S9Dzr/IrNrf72wg==",
"dependencies": {
"@babel/runtime": "^7.16.7",
- "@polkadot/types-codec": "7.5.1",
+ "@polkadot/types-codec": "7.6.1",
"@polkadot/util": "^8.3.3"
},
"engines": {
@@ -1228,15 +1260,15 @@
}
},
"node_modules/@polkadot/types-known": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-7.5.1.tgz",
- "integrity": "sha512-mECocUHbvb/ly5KOu+nKfqXAEKzYxkflO4xQflaEpcCIxtqBmy8AXSvyD8Dl5LFrBwHqnRbtXaPETCOYn1LWPg==",
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-7.6.1.tgz",
+ "integrity": "sha512-qViRhHpnDNxS4lZhF7suUvevpvH3x9wEiAchQJg8jWHoS25EuLEV+jrqqZS+2kA01bdEDJYWMAowp68g1palCg==",
"dependencies": {
"@babel/runtime": "^7.16.7",
"@polkadot/networks": "^8.3.3",
- "@polkadot/types": "7.5.1",
- "@polkadot/types-codec": "7.5.1",
- "@polkadot/types-create": "7.5.1",
+ "@polkadot/types": "7.6.1",
+ "@polkadot/types-codec": "7.6.1",
+ "@polkadot/types-create": "7.6.1",
"@polkadot/util": "^8.3.3"
},
"engines": {
@@ -1244,9 +1276,9 @@
}
},
"node_modules/@polkadot/types-support": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@polkadot/types-support/-/types-support-7.5.1.tgz",
- "integrity": "sha512-6LrYMQVF6G9+r1mnYpSGX6irN0eG5OQQRb2YXX4wtYT3JIU+G9EK0NjLngSDf0KMMm80aD0hFKYF0DcuQSGk+A==",
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@polkadot/types-support/-/types-support-7.6.1.tgz",
+ "integrity": "sha512-ssLpYW1bo535sQ2V0FqBag4egGZTObeP+dKlyEMP+MzF/xYLxf+jjJ0czyyjpyR0XR539KfSsdixa49wzgSnAg==",
"dependencies": {
"@babel/runtime": "^7.16.7",
"@polkadot/util": "^8.3.3"
@@ -1297,6 +1329,11 @@
"@polkadot/util": "8.3.3"
}
},
+ "node_modules/@polkadot/util/node_modules/bn.js": {
+ "version": "4.12.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
+ },
"node_modules/@polkadot/wasm-crypto": {
"version": "4.5.1",
"resolved": "https://registry.npmjs.org/@polkadot/wasm-crypto/-/wasm-crypto-4.5.1.tgz",
@@ -1571,14 +1608,14 @@
}
},
"node_modules/@typescript-eslint/eslint-plugin": {
- "version": "5.10.1",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.10.1.tgz",
- "integrity": "sha512-xN3CYqFlyE/qOcy978/L0xLR2HlcAGIyIK5sMOasxaaAPfQRj/MmMV6OC3I7NZO84oEUdWCOju34Z9W8E0pFDQ==",
+ "version": "5.10.2",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.10.2.tgz",
+ "integrity": "sha512-4W/9lLuE+v27O/oe7hXJKjNtBLnZE8tQAFpapdxwSVHqtmIoPB1gph3+ahNwVuNL37BX7YQHyGF9Xv6XCnIX2Q==",
"dev": true,
"dependencies": {
- "@typescript-eslint/scope-manager": "5.10.1",
- "@typescript-eslint/type-utils": "5.10.1",
- "@typescript-eslint/utils": "5.10.1",
+ "@typescript-eslint/scope-manager": "5.10.2",
+ "@typescript-eslint/type-utils": "5.10.2",
+ "@typescript-eslint/utils": "5.10.2",
"debug": "^4.3.2",
"functional-red-black-tree": "^1.0.1",
"ignore": "^5.1.8",
@@ -1618,14 +1655,14 @@
}
},
"node_modules/@typescript-eslint/parser": {
- "version": "5.10.1",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.10.1.tgz",
- "integrity": "sha512-GReo3tjNBwR5RnRO0K2wDIDN31cM3MmDtgyQ85oAxAmC5K3j/g85IjP+cDfcqDsDDBf1HNKQAD0WqOYL8jXqUA==",
+ "version": "5.10.2",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.10.2.tgz",
+ "integrity": "sha512-JaNYGkaQVhP6HNF+lkdOr2cAs2wdSZBoalE22uYWq8IEv/OVH0RksSGydk+sW8cLoSeYmC+OHvRyv2i4AQ7Czg==",
"dev": true,
"dependencies": {
- "@typescript-eslint/scope-manager": "5.10.1",
- "@typescript-eslint/types": "5.10.1",
- "@typescript-eslint/typescript-estree": "5.10.1",
+ "@typescript-eslint/scope-manager": "5.10.2",
+ "@typescript-eslint/types": "5.10.2",
+ "@typescript-eslint/typescript-estree": "5.10.2",
"debug": "^4.3.2"
},
"engines": {
@@ -1645,13 +1682,13 @@
}
},
"node_modules/@typescript-eslint/scope-manager": {
- "version": "5.10.1",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.10.1.tgz",
- "integrity": "sha512-Lyvi559Gvpn94k7+ElXNMEnXu/iundV5uFmCUNnftbFrUbAJ1WBoaGgkbOBm07jVZa682oaBU37ao/NGGX4ZDg==",
+ "version": "5.10.2",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.10.2.tgz",
+ "integrity": "sha512-39Tm6f4RoZoVUWBYr3ekS75TYgpr5Y+X0xLZxXqcZNDWZdJdYbKd3q2IR4V9y5NxxiPu/jxJ8XP7EgHiEQtFnw==",
"dev": true,
"dependencies": {
- "@typescript-eslint/types": "5.10.1",
- "@typescript-eslint/visitor-keys": "5.10.1"
+ "@typescript-eslint/types": "5.10.2",
+ "@typescript-eslint/visitor-keys": "5.10.2"
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
@@ -1662,12 +1699,12 @@
}
},
"node_modules/@typescript-eslint/type-utils": {
- "version": "5.10.1",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.10.1.tgz",
- "integrity": "sha512-AfVJkV8uck/UIoDqhu+ptEdBoQATON9GXnhOpPLzkQRJcSChkvD//qsz9JVffl2goxX+ybs5klvacE9vmrQyCw==",
+ "version": "5.10.2",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.10.2.tgz",
+ "integrity": "sha512-uRKSvw/Ccs5FYEoXW04Z5VfzF2iiZcx8Fu7DGIB7RHozuP0VbKNzP1KfZkHBTM75pCpsWxIthEH1B33dmGBKHw==",
"dev": true,
"dependencies": {
- "@typescript-eslint/utils": "5.10.1",
+ "@typescript-eslint/utils": "5.10.2",
"debug": "^4.3.2",
"tsutils": "^3.21.0"
},
@@ -1688,9 +1725,9 @@
}
},
"node_modules/@typescript-eslint/types": {
- "version": "5.10.1",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.10.1.tgz",
- "integrity": "sha512-ZvxQ2QMy49bIIBpTqFiOenucqUyjTQ0WNLhBM6X1fh1NNlYAC6Kxsx8bRTY3jdYsYg44a0Z/uEgQkohbR0H87Q==",
+ "version": "5.10.2",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.10.2.tgz",
+ "integrity": "sha512-Qfp0qk/5j2Rz3p3/WhWgu4S1JtMcPgFLnmAKAW061uXxKSa7VWKZsDXVaMXh2N60CX9h6YLaBoy9PJAfCOjk3w==",
"dev": true,
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
@@ -1701,13 +1738,13 @@
}
},
"node_modules/@typescript-eslint/typescript-estree": {
- "version": "5.10.1",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.10.1.tgz",
- "integrity": "sha512-PwIGnH7jIueXv4opcwEbVGDATjGPO1dx9RkUl5LlHDSe+FXxPwFL5W/qYd5/NHr7f6lo/vvTrAzd0KlQtRusJQ==",
+ "version": "5.10.2",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.10.2.tgz",
+ "integrity": "sha512-WHHw6a9vvZls6JkTgGljwCsMkv8wu8XU8WaYKeYhxhWXH/atZeiMW6uDFPLZOvzNOGmuSMvHtZKd6AuC8PrwKQ==",
"dev": true,
"dependencies": {
- "@typescript-eslint/types": "5.10.1",
- "@typescript-eslint/visitor-keys": "5.10.1",
+ "@typescript-eslint/types": "5.10.2",
+ "@typescript-eslint/visitor-keys": "5.10.2",
"debug": "^4.3.2",
"globby": "^11.0.4",
"is-glob": "^4.0.3",
@@ -1743,15 +1780,15 @@
}
},
"node_modules/@typescript-eslint/utils": {
- "version": "5.10.1",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.10.1.tgz",
- "integrity": "sha512-RRmlITiUbLuTRtn/gcPRi4202niF+q7ylFLCKu4c+O/PcpRvZ/nAUwQ2G00bZgpWkhrNLNnvhZLbDn8Ml0qsQw==",
+ "version": "5.10.2",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.10.2.tgz",
+ "integrity": "sha512-vuJaBeig1NnBRkf7q9tgMLREiYD7zsMrsN1DA3wcoMDvr3BTFiIpKjGiYZoKPllfEwN7spUjv7ZqD+JhbVjEPg==",
"dev": true,
"dependencies": {
"@types/json-schema": "^7.0.9",
- "@typescript-eslint/scope-manager": "5.10.1",
- "@typescript-eslint/types": "5.10.1",
- "@typescript-eslint/typescript-estree": "5.10.1",
+ "@typescript-eslint/scope-manager": "5.10.2",
+ "@typescript-eslint/types": "5.10.2",
+ "@typescript-eslint/typescript-estree": "5.10.2",
"eslint-scope": "^5.1.1",
"eslint-utils": "^3.0.0"
},
@@ -1767,12 +1804,12 @@
}
},
"node_modules/@typescript-eslint/visitor-keys": {
- "version": "5.10.1",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.10.1.tgz",
- "integrity": "sha512-NjQ0Xinhy9IL979tpoTRuLKxMc0zJC7QVSdeerXs2/QvOy2yRkzX5dRb10X5woNUdJgU8G3nYRDlI33sq1K4YQ==",
+ "version": "5.10.2",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.10.2.tgz",
+ "integrity": "sha512-zHIhYGGGrFJvvyfwHk5M08C5B5K4bewkm+rrvNTKk1/S15YHR+SA/QUF8ZWscXSfEaB8Nn2puZj+iHcoxVOD/Q==",
"dev": true,
"dependencies": {
- "@typescript-eslint/types": "5.10.1",
+ "@typescript-eslint/types": "5.10.2",
"eslint-visitor-keys": "^3.0.0"
},
"engines": {
@@ -1931,6 +1968,11 @@
"safer-buffer": "^2.1.0"
}
},
+ "node_modules/asn1.js/node_modules/bn.js": {
+ "version": "4.12.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
+ },
"node_modules/assert": {
"version": "2.0.0",
"dev": true,
@@ -2061,9 +2103,9 @@
"integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg=="
},
"node_modules/bn.js": {
- "version": "4.12.0",
- "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
- "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.0.tgz",
+ "integrity": "sha512-D7iWRBvnZE8ecXiLj/9wbxH7Tk79fAh8IHaTNq1RWRixsS02W+5qS+iE9yq6RYl0asXx5tw0bLhmT5pIfbSquw=="
},
"node_modules/body-parser": {
"version": "1.19.1",
@@ -2168,11 +2210,6 @@
"randombytes": "^2.0.1"
}
},
- "node_modules/browserify-rsa/node_modules/bn.js": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.0.tgz",
- "integrity": "sha512-D7iWRBvnZE8ecXiLj/9wbxH7Tk79fAh8IHaTNq1RWRixsS02W+5qS+iE9yq6RYl0asXx5tw0bLhmT5pIfbSquw=="
- },
"node_modules/browserify-sign": {
"version": "4.2.1",
"resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.2.1.tgz",
@@ -2189,11 +2226,6 @@
"safe-buffer": "^5.2.0"
}
},
- "node_modules/browserify-sign/node_modules/bn.js": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.0.tgz",
- "integrity": "sha512-D7iWRBvnZE8ecXiLj/9wbxH7Tk79fAh8IHaTNq1RWRixsS02W+5qS+iE9yq6RYl0asXx5tw0bLhmT5pIfbSquw=="
- },
"node_modules/browserslist": {
"version": "4.19.1",
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.19.1.tgz",
@@ -2397,6 +2429,15 @@
"chai": ">= 2.1.2 < 5"
}
},
+ "node_modules/chai-bn": {
+ "version": "0.3.1",
+ "resolved": "https://registry.npmjs.org/chai-bn/-/chai-bn-0.3.1.tgz",
+ "integrity": "sha512-vuzEy0Cb+k8zqi2SHOmvZdRSbKcSOJfS1Nv8+6YDJIyCzfxkTCHLNRyjRIoRJ3WJtYb/c7OHjrvLoGeyO4A/gA==",
+ "peerDependencies": {
+ "bn.js": "^5.0.0",
+ "chai": "^4.0.0"
+ }
+ },
"node_modules/chalk": {
"version": "4.1.2",
"license": "MIT",
@@ -2659,6 +2700,11 @@
"elliptic": "^6.5.3"
}
},
+ "node_modules/create-ecdh/node_modules/bn.js": {
+ "version": "4.12.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
+ },
"node_modules/create-hash": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz",
@@ -2874,6 +2920,11 @@
"randombytes": "^2.0.0"
}
},
+ "node_modules/diffie-hellman/node_modules/bn.js": {
+ "version": "4.12.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
+ },
"node_modules/dir-glob": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz",
@@ -2948,6 +2999,11 @@
"minimalistic-crypto-utils": "^1.0.1"
}
},
+ "node_modules/elliptic/node_modules/bn.js": {
+ "version": "4.12.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
+ },
"node_modules/emoji-regex": {
"version": "8.0.0",
"license": "MIT"
@@ -3068,9 +3124,9 @@
}
},
"node_modules/eslint": {
- "version": "8.7.0",
- "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.7.0.tgz",
- "integrity": "sha512-ifHYzkBGrzS2iDU7KjhCAVMGCvF6M3Xfs8X8b37cgrUlDt6bWRTpRh6T/gtSXv1HJ/BUGgmjvNvOEGu85Iif7w==",
+ "version": "8.8.0",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.8.0.tgz",
+ "integrity": "sha512-H3KXAzQGBH1plhYS3okDix2ZthuYJlQQEGE5k0IKuEqUSiyu4AmxxlJ2MtTYeJ3xB4jDhcYCwGOg2TXYdnDXlQ==",
"dev": true,
"dependencies": {
"@eslint/eslintrc": "^1.0.5",
@@ -3311,6 +3367,11 @@
"xhr-request-promise": "^0.1.2"
}
},
+ "node_modules/eth-lib/node_modules/bn.js": {
+ "version": "4.12.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
+ },
"node_modules/ethereum-bloom-filters": {
"version": "1.0.10",
"resolved": "https://registry.npmjs.org/ethereum-bloom-filters/-/ethereum-bloom-filters-1.0.10.tgz",
@@ -3364,11 +3425,6 @@
"@types/node": "*"
}
},
- "node_modules/ethereumjs-util/node_modules/bn.js": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.0.tgz",
- "integrity": "sha512-D7iWRBvnZE8ecXiLj/9wbxH7Tk79fAh8IHaTNq1RWRixsS02W+5qS+iE9yq6RYl0asXx5tw0bLhmT5pIfbSquw=="
- },
"node_modules/ethjs-unit": {
"version": "0.1.6",
"resolved": "https://registry.npmjs.org/ethjs-unit/-/ethjs-unit-0.1.6.tgz",
@@ -4821,6 +4877,11 @@
"miller-rabin": "bin/miller-rabin"
}
},
+ "node_modules/miller-rabin/node_modules/bn.js": {
+ "version": "4.12.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
+ },
"node_modules/mime": {
"version": "1.6.0",
"resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
@@ -5198,9 +5259,9 @@
"license": "MIT"
},
"node_modules/nock": {
- "version": "13.2.2",
- "resolved": "https://registry.npmjs.org/nock/-/nock-13.2.2.tgz",
- "integrity": "sha512-PcBHuvl9i6zfaJ50A7LS55oU+nFLv8htXIhffJO+FxyfibdZ4jEvd9kTuvkrJireBFIGMZ+oUIRpMK5gU9h//g==",
+ "version": "13.2.3",
+ "resolved": "https://registry.npmjs.org/nock/-/nock-13.2.3.tgz",
+ "integrity": "sha512-91wGYjHrjSvrnSUwpiopbmowbIx5s+QSkqj801edTMtrFY4mAiZXP1mKlk5ZG2oZclB8/PcxJ9TJviG+akmrdw==",
"dependencies": {
"debug": "^4.1.0",
"json-stringify-safe": "^5.0.1",
@@ -5732,6 +5793,11 @@
"safe-buffer": "^5.1.2"
}
},
+ "node_modules/public-encrypt/node_modules/bn.js": {
+ "version": "4.12.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
+ },
"node_modules/pump": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
@@ -6011,11 +6077,6 @@
"rlp": "bin/rlp"
}
},
- "node_modules/rlp/node_modules/bn.js": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.0.tgz",
- "integrity": "sha512-D7iWRBvnZE8ecXiLj/9wbxH7Tk79fAh8IHaTNq1RWRixsS02W+5qS+iE9yq6RYl0asXx5tw0bLhmT5pIfbSquw=="
- },
"node_modules/run-parallel": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
@@ -6287,6 +6348,11 @@
"source-map": "^0.6.0"
}
},
+ "node_modules/sourcemap-codec": {
+ "version": "1.4.8",
+ "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz",
+ "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA=="
+ },
"node_modules/sshpk": {
"version": "1.17.0",
"resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.17.0.tgz",
@@ -7218,6 +7284,11 @@
"node": ">=8.0.0"
}
},
+ "node_modules/web3-eth-accounts/node_modules/bn.js": {
+ "version": "4.12.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
+ },
"node_modules/web3-eth-accounts/node_modules/eth-lib": {
"version": "0.2.8",
"resolved": "https://registry.npmjs.org/eth-lib/-/eth-lib-0.2.8.tgz",
@@ -7285,6 +7356,11 @@
"node": ">=8.0.0"
}
},
+ "node_modules/web3-eth-iban/node_modules/bn.js": {
+ "version": "4.12.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
+ },
"node_modules/web3-eth-personal": {
"version": "1.7.0",
"resolved": "https://registry.npmjs.org/web3-eth-personal/-/web3-eth-personal-1.7.0.tgz",
@@ -7393,6 +7469,11 @@
"node": ">=8.0.0"
}
},
+ "node_modules/web3-utils/node_modules/bn.js": {
+ "version": "4.12.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
+ },
"node_modules/webidl-conversions": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
@@ -7701,6 +7782,15 @@
}
},
"dependencies": {
+ "@ampproject/remapping": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.0.2.tgz",
+ "integrity": "sha512-sE8Gx+qSDMLoJvb3QarJJlDQK7SSY4rK3hxp4XsiANeFOmjU46ZI7Y9adAQRJrmbz8zbtZkp3mJTT+rGxtF0XA==",
+ "requires": {
+ "@jridgewell/trace-mapping": "^0.2.2",
+ "sourcemap-codec": "1.4.8"
+ }
+ },
"@babel/code-frame": {
"version": "7.16.7",
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz",
@@ -7715,25 +7805,25 @@
"integrity": "sha512-m7OkX0IdKLKPpBlJtF561YJal5y/jyI5fNfWbPxh2D/nbzzGI4qRyrD8xO2jB24u7l+5I2a43scCG2IrfjC50Q=="
},
"@babel/core": {
- "version": "7.16.12",
- "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.16.12.tgz",
- "integrity": "sha512-dK5PtG1uiN2ikk++5OzSYsitZKny4wOCD0nrO4TqnW4BVBTQ2NGS3NgilvT/TEyxTST7LNyWV/T4tXDoD3fOgg==",
+ "version": "7.17.0",
+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.17.0.tgz",
+ "integrity": "sha512-x/5Ea+RO5MvF9ize5DeVICJoVrNv0Mi2RnIABrZEKYvPEpldXwauPkgvYA17cKa6WpU3LoYvYbuEMFtSNFsarA==",
"requires": {
+ "@ampproject/remapping": "^2.0.0",
"@babel/code-frame": "^7.16.7",
- "@babel/generator": "^7.16.8",
+ "@babel/generator": "^7.17.0",
"@babel/helper-compilation-targets": "^7.16.7",
"@babel/helper-module-transforms": "^7.16.7",
- "@babel/helpers": "^7.16.7",
- "@babel/parser": "^7.16.12",
+ "@babel/helpers": "^7.17.0",
+ "@babel/parser": "^7.17.0",
"@babel/template": "^7.16.7",
- "@babel/traverse": "^7.16.10",
- "@babel/types": "^7.16.8",
+ "@babel/traverse": "^7.17.0",
+ "@babel/types": "^7.17.0",
"convert-source-map": "^1.7.0",
"debug": "^4.1.0",
"gensync": "^1.0.0-beta.2",
"json5": "^2.1.2",
- "semver": "^6.3.0",
- "source-map": "^0.5.0"
+ "semver": "^6.3.0"
},
"dependencies": {
"json5": {
@@ -7743,20 +7833,15 @@
"requires": {
"minimist": "^1.2.5"
}
- },
- "source-map": {
- "version": "0.5.7",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",
- "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w="
}
}
},
"@babel/generator": {
- "version": "7.16.8",
- "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.16.8.tgz",
- "integrity": "sha512-1ojZwE9+lOXzcWdWmO6TbUzDfqLD39CmEhN8+2cX9XkDo5yW1OpgfejfliysR2AWLpMamTiOiAp/mtroaymhpw==",
+ "version": "7.17.0",
+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.17.0.tgz",
+ "integrity": "sha512-I3Omiv6FGOC29dtlZhkfXO6pgkmukJSlT26QjVvS1DGZe/NzSVCPG41X0tS21oZkJYlovfj9qDWgKP+Cn4bXxw==",
"requires": {
- "@babel/types": "^7.16.8",
+ "@babel/types": "^7.17.0",
"jsesc": "^2.5.1",
"source-map": "^0.5.0"
},
@@ -7863,13 +7948,13 @@
"integrity": "sha512-TRtenOuRUVo9oIQGPC5G9DgK4743cdxvtOw0weQNpZXaS16SCBi5MNjZF8vba3ETURjZpTbVn7Vvcf2eAwFozQ=="
},
"@babel/helpers": {
- "version": "7.16.7",
- "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.16.7.tgz",
- "integrity": "sha512-9ZDoqtfY7AuEOt3cxchfii6C7GDyyMBffktR5B2jvWv8u2+efwvpnVKXMWzNehqy68tKgAfSwfdw/lWpthS2bw==",
+ "version": "7.17.0",
+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.17.0.tgz",
+ "integrity": "sha512-Xe/9NFxjPwELUvW2dsukcMZIp6XwPSbI4ojFBJuX5ramHuVE22SVcZIwqzdWo5uCgeTXW8qV97lMvSOjq+1+nQ==",
"requires": {
"@babel/template": "^7.16.7",
- "@babel/traverse": "^7.16.7",
- "@babel/types": "^7.16.7"
+ "@babel/traverse": "^7.17.0",
+ "@babel/types": "^7.17.0"
}
},
"@babel/highlight": {
@@ -7934,9 +8019,9 @@
}
},
"@babel/parser": {
- "version": "7.16.12",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.16.12.tgz",
- "integrity": "sha512-VfaV15po8RiZssrkPweyvbGVSe4x2y+aciFCgn0n0/SJMR22cwofRV1mtnJQYcSB1wUTaA/X1LnA3es66MCO5A=="
+ "version": "7.17.0",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.17.0.tgz",
+ "integrity": "sha512-VKXSCQx5D8S04ej+Dqsr1CzYvvWgf20jIw2D+YhQCrIlr2UZGaDds23Y0xg75/skOxpLCRpUZvk/1EAVkGoDOw=="
},
"@babel/register": {
"version": "7.16.9",
@@ -7967,18 +8052,18 @@
}
},
"@babel/traverse": {
- "version": "7.16.10",
- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.16.10.tgz",
- "integrity": "sha512-yzuaYXoRJBGMlBhsMJoUW7G1UmSb/eXr/JHYM/MsOJgavJibLwASijW7oXBdw3NQ6T0bW7Ty5P/VarOs9cHmqw==",
+ "version": "7.17.0",
+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.17.0.tgz",
+ "integrity": "sha512-fpFIXvqD6kC7c7PUNnZ0Z8cQXlarCLtCUpt2S1Dx7PjoRtCFffvOkHHSom+m5HIxMZn5bIBVb71lhabcmjEsqg==",
"requires": {
"@babel/code-frame": "^7.16.7",
- "@babel/generator": "^7.16.8",
+ "@babel/generator": "^7.17.0",
"@babel/helper-environment-visitor": "^7.16.7",
"@babel/helper-function-name": "^7.16.7",
"@babel/helper-hoist-variables": "^7.16.7",
"@babel/helper-split-export-declaration": "^7.16.7",
- "@babel/parser": "^7.16.10",
- "@babel/types": "^7.16.8",
+ "@babel/parser": "^7.17.0",
+ "@babel/types": "^7.17.0",
"debug": "^4.1.0",
"globals": "^11.1.0"
},
@@ -7991,9 +8076,9 @@
}
},
"@babel/types": {
- "version": "7.16.8",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.16.8.tgz",
- "integrity": "sha512-smN2DQc5s4M7fntyjGtyIPbRJv6wW4rU/94fmYJ7PKQuZkC0qGMHXJbg6sNGt12JmVr4k5YaptI/XtiLJBnmIg==",
+ "version": "7.17.0",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.17.0.tgz",
+ "integrity": "sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==",
"requires": {
"@babel/helper-validator-identifier": "^7.16.7",
"to-fast-properties": "^2.0.0"
@@ -8123,6 +8208,13 @@
"@ethersproject/bytes": "^5.5.0",
"@ethersproject/logger": "^5.5.0",
"bn.js": "^4.11.9"
+ },
+ "dependencies": {
+ "bn.js": {
+ "version": "4.12.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
+ }
}
},
"@ethersproject/bytes": {
@@ -8206,6 +8298,13 @@
"bn.js": "^4.11.9",
"elliptic": "6.5.4",
"hash.js": "1.1.7"
+ },
+ "dependencies": {
+ "bn.js": {
+ "version": "4.12.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
+ }
}
},
"@ethersproject/strings": {
@@ -8259,6 +8358,20 @@
"version": "1.2.1",
"dev": true
},
+ "@jridgewell/resolve-uri": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.0.4.tgz",
+ "integrity": "sha512-cz8HFjOFfUBtvN+NXYSFMHYRdxZMaEl0XypVrhzxBgadKIXhIkRd8aMeHhmF56Sl7SuS8OnUpQ73/k9LE4VnLg=="
+ },
+ "@jridgewell/trace-mapping": {
+ "version": "0.2.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.2.5.tgz",
+ "integrity": "sha512-K+Eths78fXDFOvQ2hgJhCiI5s+g81r2yXmACBpbn+f2+Qt94PNoTgUcAXPT8DZkhXCsZRsHVWVtY5KIBMcpDqQ==",
+ "requires": {
+ "@jridgewell/resolve-uri": "^3.0.3",
+ "sourcemap-codec": "1.4.8"
+ }
+ },
"@noble/hashes": {
"version": "0.5.7",
"resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-0.5.7.tgz",
@@ -8296,23 +8409,23 @@
}
},
"@polkadot/api": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-7.5.1.tgz",
- "integrity": "sha512-/3AI4Kbznt289+swtiFEYiX+XR9d+qzHhL8XxEzcqQudw2ElrfpLTAx3RzTUEEeEfwwPGmNVWPWaG4egUPsosQ==",
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-7.6.1.tgz",
+ "integrity": "sha512-0VvWn8TIKX3o922ZjomsJEkysica1ScnjNYBG3+801gWG3WbCI+IdzdqazTkIMZL8r8HipmA4cjfS3Tdk+R9eg==",
"requires": {
"@babel/runtime": "^7.16.7",
- "@polkadot/api-augment": "7.5.1",
- "@polkadot/api-base": "7.5.1",
- "@polkadot/api-derive": "7.5.1",
+ "@polkadot/api-augment": "7.6.1",
+ "@polkadot/api-base": "7.6.1",
+ "@polkadot/api-derive": "7.6.1",
"@polkadot/keyring": "^8.3.3",
- "@polkadot/rpc-augment": "7.5.1",
- "@polkadot/rpc-core": "7.5.1",
- "@polkadot/rpc-provider": "7.5.1",
- "@polkadot/types": "7.5.1",
- "@polkadot/types-augment": "7.5.1",
- "@polkadot/types-codec": "7.5.1",
- "@polkadot/types-create": "7.5.1",
- "@polkadot/types-known": "7.5.1",
+ "@polkadot/rpc-augment": "7.6.1",
+ "@polkadot/rpc-core": "7.6.1",
+ "@polkadot/rpc-provider": "7.6.1",
+ "@polkadot/types": "7.6.1",
+ "@polkadot/types-augment": "7.6.1",
+ "@polkadot/types-codec": "7.6.1",
+ "@polkadot/types-create": "7.6.1",
+ "@polkadot/types-known": "7.6.1",
"@polkadot/util": "^8.3.3",
"@polkadot/util-crypto": "^8.3.3",
"eventemitter3": "^4.0.7",
@@ -8320,43 +8433,43 @@
}
},
"@polkadot/api-augment": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@polkadot/api-augment/-/api-augment-7.5.1.tgz",
- "integrity": "sha512-2sj+D8gvyo9ijqFFqJS5meaMVRllr5fWnE440nACsXIbcbHuXRWAF9tWdhESOIfue7hlFLo5plDdRfU7cSjIZQ==",
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@polkadot/api-augment/-/api-augment-7.6.1.tgz",
+ "integrity": "sha512-elkAVDzkcW909phGQNOM2M2ksfnjNeY67EnwIB0xBdFlfM7mVPdxqnAWHrBwbIsD3TdWzxtrNzWzyi7hvILt+A==",
"requires": {
"@babel/runtime": "^7.16.7",
- "@polkadot/api-base": "7.5.1",
- "@polkadot/rpc-augment": "7.5.1",
- "@polkadot/types": "7.5.1",
- "@polkadot/types-augment": "7.5.1",
- "@polkadot/types-codec": "7.5.1",
+ "@polkadot/api-base": "7.6.1",
+ "@polkadot/rpc-augment": "7.6.1",
+ "@polkadot/types": "7.6.1",
+ "@polkadot/types-augment": "7.6.1",
+ "@polkadot/types-codec": "7.6.1",
"@polkadot/util": "^8.3.3"
}
},
"@polkadot/api-base": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@polkadot/api-base/-/api-base-7.5.1.tgz",
- "integrity": "sha512-vqMjmMOQuYLSwfTHTgmvPBtF6eAgrlyuBw0t0IiaTDfjP6xRRGMDIVb7lJCqvYL0VrHmTC7X5MVbJn1SNUut9w==",
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@polkadot/api-base/-/api-base-7.6.1.tgz",
+ "integrity": "sha512-HbbbQSzTc5W0QtV/5JMOHbINlrHeZ5w5Cdo2jmIkSZT8w8MxhnupzdvkjIX9B9F4/dFa0RdaP/J1FnLNFlUU1w==",
"requires": {
"@babel/runtime": "^7.16.7",
- "@polkadot/rpc-core": "7.5.1",
- "@polkadot/types": "7.5.1",
+ "@polkadot/rpc-core": "7.6.1",
+ "@polkadot/types": "7.6.1",
"@polkadot/util": "^8.3.3",
"rxjs": "^7.5.2"
}
},
"@polkadot/api-derive": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-7.5.1.tgz",
- "integrity": "sha512-O4x/DG+sSWgbXYGuYm4d3iYMTv5WTzoX5HX/xAIG+H+g7ob5RDdyLW9oQowrOX9ZOKt1cHPbHi0dLj+hDOD1CQ==",
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-7.6.1.tgz",
+ "integrity": "sha512-cRoc1LTTwvEH9QtHIp7vWYn34dczuqg4xQSbZn/IqEzvmcpU7wJC3gLfEOCrqTIFDofPVyBOd7Vv3gjuey/82g==",
"requires": {
"@babel/runtime": "^7.16.7",
- "@polkadot/api": "7.5.1",
- "@polkadot/api-augment": "7.5.1",
- "@polkadot/api-base": "7.5.1",
- "@polkadot/rpc-core": "7.5.1",
- "@polkadot/types": "7.5.1",
- "@polkadot/types-codec": "7.5.1",
+ "@polkadot/api": "7.6.1",
+ "@polkadot/api-augment": "7.6.1",
+ "@polkadot/api-base": "7.6.1",
+ "@polkadot/rpc-core": "7.6.1",
+ "@polkadot/types": "7.6.1",
+ "@polkadot/types-codec": "7.6.1",
"@polkadot/util": "^8.3.3",
"@polkadot/util-crypto": "^8.3.3",
"rxjs": "^7.5.2"
@@ -8382,46 +8495,46 @@
}
},
"@polkadot/rpc-augment": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@polkadot/rpc-augment/-/rpc-augment-7.5.1.tgz",
- "integrity": "sha512-LPTDjtBZJe5KIOErOW+h2HY85G57WZVOiwm+SOgJ6J5g+BnUD0Rv+VH9pGC8dfoUsYBHSSvFELLnoTIZw6jltg==",
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@polkadot/rpc-augment/-/rpc-augment-7.6.1.tgz",
+ "integrity": "sha512-lNeTS8Ma/0sAk3pvGxliQOkE016WZKXyS5uQWtcF2CRn2rn265Fb4I29n3KjTL8CRYtafvH6IRS0DSkKgbnL3w==",
"requires": {
"@babel/runtime": "^7.16.7",
- "@polkadot/rpc-core": "7.5.1",
- "@polkadot/types": "7.5.1",
- "@polkadot/types-codec": "7.5.1",
+ "@polkadot/rpc-core": "7.6.1",
+ "@polkadot/types": "7.6.1",
+ "@polkadot/types-codec": "7.6.1",
"@polkadot/util": "^8.3.3"
}
},
"@polkadot/rpc-core": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-7.5.1.tgz",
- "integrity": "sha512-/UN7fQSqGnyjd5W0fFZ2RDBxAYoS8UreIea0eu+Zz4t6D2Fjp1syHNkw710wuv6ALhaRUjW6USO8XNSHDBIz+w==",
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-7.6.1.tgz",
+ "integrity": "sha512-xq/GzUeBu1GsP4ngEYQeDrVnsullDBy/22yUY/ahNjkgAjXeOndrBFis+4lBiiksVQMgYZEzaHv89E0aCOBvAA==",
"requires": {
"@babel/runtime": "^7.16.7",
- "@polkadot/rpc-augment": "7.5.1",
- "@polkadot/rpc-provider": "7.5.1",
- "@polkadot/types": "7.5.1",
+ "@polkadot/rpc-augment": "7.6.1",
+ "@polkadot/rpc-provider": "7.6.1",
+ "@polkadot/types": "7.6.1",
"@polkadot/util": "^8.3.3",
"rxjs": "^7.5.2"
}
},
"@polkadot/rpc-provider": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-7.5.1.tgz",
- "integrity": "sha512-6t5PyEDFBYJiK1/oegQkET4DnKdfk/mskELOVflDd4sLN+mXSAUW4DvS+KiVldHfUBtMQqX/w3p7x26xmWjmqQ==",
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-7.6.1.tgz",
+ "integrity": "sha512-jevBGp/n16ra+Y+JV8nnNRTtKPU1Oo3nBiyMhUla6crWLjMnLAYvcyteRq27aBmU3Olh4n/0xDVNCvTxfEghxQ==",
"requires": {
"@babel/runtime": "^7.16.7",
"@polkadot/keyring": "^8.3.3",
- "@polkadot/types": "7.5.1",
- "@polkadot/types-support": "7.5.1",
+ "@polkadot/types": "7.6.1",
+ "@polkadot/types-support": "7.6.1",
"@polkadot/util": "^8.3.3",
"@polkadot/util-crypto": "^8.3.3",
"@polkadot/x-fetch": "^8.3.3",
"@polkadot/x-global": "^8.3.3",
"@polkadot/x-ws": "^8.3.3",
"eventemitter3": "^4.0.7",
- "mock-socket": "^9.1.0",
+ "mock-socket": "^9.1.2",
"nock": "^13.2.2"
}
},
@@ -8434,22 +8547,22 @@
}
},
"@polkadot/typegen": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@polkadot/typegen/-/typegen-7.5.1.tgz",
- "integrity": "sha512-0ma//yfYBEcpYftoqS3Jbl3mVGA/zl3WRfnW3KK3cQ8J1xqKXusjeQ/9egyuWSP8qn34XHXQcvE6T+rfX+ki4A==",
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@polkadot/typegen/-/typegen-7.6.1.tgz",
+ "integrity": "sha512-RCtpQWTmPMTHFbK5AXTy7Ncgx2aj4FhxnYFZxmpm2bZpXsf66mTKDu2vQiKN2vwPtjG8WnxuyB1fqnyGtebHPg==",
"requires": {
"@babel/core": "^7.16.12",
"@babel/register": "^7.16.9",
"@babel/runtime": "^7.16.7",
- "@polkadot/api": "7.5.1",
- "@polkadot/api-augment": "7.5.1",
- "@polkadot/rpc-augment": "7.5.1",
- "@polkadot/rpc-provider": "7.5.1",
- "@polkadot/types": "7.5.1",
- "@polkadot/types-augment": "7.5.1",
- "@polkadot/types-codec": "7.5.1",
- "@polkadot/types-create": "7.5.1",
- "@polkadot/types-support": "7.5.1",
+ "@polkadot/api": "7.6.1",
+ "@polkadot/api-augment": "7.6.1",
+ "@polkadot/rpc-augment": "7.6.1",
+ "@polkadot/rpc-provider": "7.6.1",
+ "@polkadot/types": "7.6.1",
+ "@polkadot/types-augment": "7.6.1",
+ "@polkadot/types-codec": "7.6.1",
+ "@polkadot/types-create": "7.6.1",
+ "@polkadot/types-support": "7.6.1",
"@polkadot/util": "^8.3.3",
"@polkadot/x-ws": "^8.3.3",
"handlebars": "^4.7.7",
@@ -8479,67 +8592,67 @@
}
},
"@polkadot/types": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-7.5.1.tgz",
- "integrity": "sha512-71KY3Ia8AZywb0wWP0F588qFJbQMcgZqqP/dw6RP1A5ja2pR5SnqRP/zcaSena1cm9f24rAxgxiluOzzJxrfsA==",
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-7.6.1.tgz",
+ "integrity": "sha512-4GotmyT6h5n2qpgqPKqzVzgZKuPS9fNMeQBBbhxZxjyFmSTYtIqQeyqFw1bgIGcsZBH81WK7yE1U221l8gmj1Q==",
"requires": {
"@babel/runtime": "^7.16.7",
"@polkadot/keyring": "^8.3.3",
- "@polkadot/types-augment": "7.5.1",
- "@polkadot/types-codec": "7.5.1",
- "@polkadot/types-create": "7.5.1",
+ "@polkadot/types-augment": "7.6.1",
+ "@polkadot/types-codec": "7.6.1",
+ "@polkadot/types-create": "7.6.1",
"@polkadot/util": "^8.3.3",
"@polkadot/util-crypto": "^8.3.3",
"rxjs": "^7.5.2"
}
},
"@polkadot/types-augment": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@polkadot/types-augment/-/types-augment-7.5.1.tgz",
- "integrity": "sha512-YWXYfc0a2AOb2naG2uWAHkTuGvfPz8hrKv3UMTWUrCok/kVbUovqSXoBAORaX+tphpaKbEuBnBtBhk2cXP6KWA==",
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@polkadot/types-augment/-/types-augment-7.6.1.tgz",
+ "integrity": "sha512-OLTVgMlSiZy37eXhUa6zYRHBUK7eJ2opovAKYpk+S8biA4nrq7LUXis2MnCP9C1TvsQozPlZ5q0M89WRVw96TA==",
"requires": {
"@babel/runtime": "^7.16.7",
- "@polkadot/types": "7.5.1",
- "@polkadot/types-codec": "7.5.1",
+ "@polkadot/types": "7.6.1",
+ "@polkadot/types-codec": "7.6.1",
"@polkadot/util": "^8.3.3"
}
},
"@polkadot/types-codec": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@polkadot/types-codec/-/types-codec-7.5.1.tgz",
- "integrity": "sha512-+MClbgg0sbEIsPnqVf1wVzR5qPCE5Xb+QXkwawx86mIyxb4eptdBnU0CFgHVcrNnKx6EcaUZWQgz17UxtmTWaA==",
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@polkadot/types-codec/-/types-codec-7.6.1.tgz",
+ "integrity": "sha512-Zm4oQJK4BeB3reElKCVfJm1tzVK2O+hfS9QlKJAHy+kYwPB20o0UYv1d0K1WOZedSmVIaoW/diOaxMePV1S55Q==",
"requires": {
"@babel/runtime": "^7.16.7",
"@polkadot/util": "^8.3.3"
}
},
"@polkadot/types-create": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@polkadot/types-create/-/types-create-7.5.1.tgz",
- "integrity": "sha512-OCsdDp4vd/6yNThTEmjbndHks4VHlfeuNwcQQN2NcM4Gs072LnuDTbRgFHAqvcSKB0SVOiWoy/UxkktLE+0w2Q==",
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@polkadot/types-create/-/types-create-7.6.1.tgz",
+ "integrity": "sha512-vGUT5O3/bYpP/NOa/5TV8aCDoDE8DbeRSiykzQ8ceOrnmB4VrlJ+L4zklyiuRdAFXPYmi+7S9Dzr/IrNrf72wg==",
"requires": {
"@babel/runtime": "^7.16.7",
- "@polkadot/types-codec": "7.5.1",
+ "@polkadot/types-codec": "7.6.1",
"@polkadot/util": "^8.3.3"
}
},
"@polkadot/types-known": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-7.5.1.tgz",
- "integrity": "sha512-mECocUHbvb/ly5KOu+nKfqXAEKzYxkflO4xQflaEpcCIxtqBmy8AXSvyD8Dl5LFrBwHqnRbtXaPETCOYn1LWPg==",
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-7.6.1.tgz",
+ "integrity": "sha512-qViRhHpnDNxS4lZhF7suUvevpvH3x9wEiAchQJg8jWHoS25EuLEV+jrqqZS+2kA01bdEDJYWMAowp68g1palCg==",
"requires": {
"@babel/runtime": "^7.16.7",
"@polkadot/networks": "^8.3.3",
- "@polkadot/types": "7.5.1",
- "@polkadot/types-codec": "7.5.1",
- "@polkadot/types-create": "7.5.1",
+ "@polkadot/types": "7.6.1",
+ "@polkadot/types-codec": "7.6.1",
+ "@polkadot/types-create": "7.6.1",
"@polkadot/util": "^8.3.3"
}
},
"@polkadot/types-support": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@polkadot/types-support/-/types-support-7.5.1.tgz",
- "integrity": "sha512-6LrYMQVF6G9+r1mnYpSGX6irN0eG5OQQRb2YXX4wtYT3JIU+G9EK0NjLngSDf0KMMm80aD0hFKYF0DcuQSGk+A==",
+ "version": "7.6.1",
+ "resolved": "https://registry.npmjs.org/@polkadot/types-support/-/types-support-7.6.1.tgz",
+ "integrity": "sha512-ssLpYW1bo535sQ2V0FqBag4egGZTObeP+dKlyEMP+MzF/xYLxf+jjJ0czyyjpyR0XR539KfSsdixa49wzgSnAg==",
"requires": {
"@babel/runtime": "^7.16.7",
"@polkadot/util": "^8.3.3"
@@ -8558,6 +8671,13 @@
"@types/bn.js": "^4.11.6",
"bn.js": "^4.12.0",
"ip-regex": "^4.3.0"
+ },
+ "dependencies": {
+ "bn.js": {
+ "version": "4.12.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
+ }
}
},
"@polkadot/util-crypto": {
@@ -8807,14 +8927,14 @@
}
},
"@typescript-eslint/eslint-plugin": {
- "version": "5.10.1",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.10.1.tgz",
- "integrity": "sha512-xN3CYqFlyE/qOcy978/L0xLR2HlcAGIyIK5sMOasxaaAPfQRj/MmMV6OC3I7NZO84oEUdWCOju34Z9W8E0pFDQ==",
+ "version": "5.10.2",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.10.2.tgz",
+ "integrity": "sha512-4W/9lLuE+v27O/oe7hXJKjNtBLnZE8tQAFpapdxwSVHqtmIoPB1gph3+ahNwVuNL37BX7YQHyGF9Xv6XCnIX2Q==",
"dev": true,
"requires": {
- "@typescript-eslint/scope-manager": "5.10.1",
- "@typescript-eslint/type-utils": "5.10.1",
- "@typescript-eslint/utils": "5.10.1",
+ "@typescript-eslint/scope-manager": "5.10.2",
+ "@typescript-eslint/type-utils": "5.10.2",
+ "@typescript-eslint/utils": "5.10.2",
"debug": "^4.3.2",
"functional-red-black-tree": "^1.0.1",
"ignore": "^5.1.8",
@@ -8833,52 +8953,52 @@
}
},
"@typescript-eslint/parser": {
- "version": "5.10.1",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.10.1.tgz",
- "integrity": "sha512-GReo3tjNBwR5RnRO0K2wDIDN31cM3MmDtgyQ85oAxAmC5K3j/g85IjP+cDfcqDsDDBf1HNKQAD0WqOYL8jXqUA==",
+ "version": "5.10.2",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.10.2.tgz",
+ "integrity": "sha512-JaNYGkaQVhP6HNF+lkdOr2cAs2wdSZBoalE22uYWq8IEv/OVH0RksSGydk+sW8cLoSeYmC+OHvRyv2i4AQ7Czg==",
"dev": true,
"requires": {
- "@typescript-eslint/scope-manager": "5.10.1",
- "@typescript-eslint/types": "5.10.1",
- "@typescript-eslint/typescript-estree": "5.10.1",
+ "@typescript-eslint/scope-manager": "5.10.2",
+ "@typescript-eslint/types": "5.10.2",
+ "@typescript-eslint/typescript-estree": "5.10.2",
"debug": "^4.3.2"
}
},
"@typescript-eslint/scope-manager": {
- "version": "5.10.1",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.10.1.tgz",
- "integrity": "sha512-Lyvi559Gvpn94k7+ElXNMEnXu/iundV5uFmCUNnftbFrUbAJ1WBoaGgkbOBm07jVZa682oaBU37ao/NGGX4ZDg==",
+ "version": "5.10.2",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.10.2.tgz",
+ "integrity": "sha512-39Tm6f4RoZoVUWBYr3ekS75TYgpr5Y+X0xLZxXqcZNDWZdJdYbKd3q2IR4V9y5NxxiPu/jxJ8XP7EgHiEQtFnw==",
"dev": true,
"requires": {
- "@typescript-eslint/types": "5.10.1",
- "@typescript-eslint/visitor-keys": "5.10.1"
+ "@typescript-eslint/types": "5.10.2",
+ "@typescript-eslint/visitor-keys": "5.10.2"
}
},
"@typescript-eslint/type-utils": {
- "version": "5.10.1",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.10.1.tgz",
- "integrity": "sha512-AfVJkV8uck/UIoDqhu+ptEdBoQATON9GXnhOpPLzkQRJcSChkvD//qsz9JVffl2goxX+ybs5klvacE9vmrQyCw==",
+ "version": "5.10.2",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.10.2.tgz",
+ "integrity": "sha512-uRKSvw/Ccs5FYEoXW04Z5VfzF2iiZcx8Fu7DGIB7RHozuP0VbKNzP1KfZkHBTM75pCpsWxIthEH1B33dmGBKHw==",
"dev": true,
"requires": {
- "@typescript-eslint/utils": "5.10.1",
+ "@typescript-eslint/utils": "5.10.2",
"debug": "^4.3.2",
"tsutils": "^3.21.0"
}
},
"@typescript-eslint/types": {
- "version": "5.10.1",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.10.1.tgz",
- "integrity": "sha512-ZvxQ2QMy49bIIBpTqFiOenucqUyjTQ0WNLhBM6X1fh1NNlYAC6Kxsx8bRTY3jdYsYg44a0Z/uEgQkohbR0H87Q==",
+ "version": "5.10.2",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.10.2.tgz",
+ "integrity": "sha512-Qfp0qk/5j2Rz3p3/WhWgu4S1JtMcPgFLnmAKAW061uXxKSa7VWKZsDXVaMXh2N60CX9h6YLaBoy9PJAfCOjk3w==",
"dev": true
},
"@typescript-eslint/typescript-estree": {
- "version": "5.10.1",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.10.1.tgz",
- "integrity": "sha512-PwIGnH7jIueXv4opcwEbVGDATjGPO1dx9RkUl5LlHDSe+FXxPwFL5W/qYd5/NHr7f6lo/vvTrAzd0KlQtRusJQ==",
+ "version": "5.10.2",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.10.2.tgz",
+ "integrity": "sha512-WHHw6a9vvZls6JkTgGljwCsMkv8wu8XU8WaYKeYhxhWXH/atZeiMW6uDFPLZOvzNOGmuSMvHtZKd6AuC8PrwKQ==",
"dev": true,
"requires": {
- "@typescript-eslint/types": "5.10.1",
- "@typescript-eslint/visitor-keys": "5.10.1",
+ "@typescript-eslint/types": "5.10.2",
+ "@typescript-eslint/visitor-keys": "5.10.2",
"debug": "^4.3.2",
"globby": "^11.0.4",
"is-glob": "^4.0.3",
@@ -8898,26 +9018,26 @@
}
},
"@typescript-eslint/utils": {
- "version": "5.10.1",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.10.1.tgz",
- "integrity": "sha512-RRmlITiUbLuTRtn/gcPRi4202niF+q7ylFLCKu4c+O/PcpRvZ/nAUwQ2G00bZgpWkhrNLNnvhZLbDn8Ml0qsQw==",
+ "version": "5.10.2",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.10.2.tgz",
+ "integrity": "sha512-vuJaBeig1NnBRkf7q9tgMLREiYD7zsMrsN1DA3wcoMDvr3BTFiIpKjGiYZoKPllfEwN7spUjv7ZqD+JhbVjEPg==",
"dev": true,
"requires": {
"@types/json-schema": "^7.0.9",
- "@typescript-eslint/scope-manager": "5.10.1",
- "@typescript-eslint/types": "5.10.1",
- "@typescript-eslint/typescript-estree": "5.10.1",
+ "@typescript-eslint/scope-manager": "5.10.2",
+ "@typescript-eslint/types": "5.10.2",
+ "@typescript-eslint/typescript-estree": "5.10.2",
"eslint-scope": "^5.1.1",
"eslint-utils": "^3.0.0"
}
},
"@typescript-eslint/visitor-keys": {
- "version": "5.10.1",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.10.1.tgz",
- "integrity": "sha512-NjQ0Xinhy9IL979tpoTRuLKxMc0zJC7QVSdeerXs2/QvOy2yRkzX5dRb10X5woNUdJgU8G3nYRDlI33sq1K4YQ==",
+ "version": "5.10.2",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.10.2.tgz",
+ "integrity": "sha512-zHIhYGGGrFJvvyfwHk5M08C5B5K4bewkm+rrvNTKk1/S15YHR+SA/QUF8ZWscXSfEaB8Nn2puZj+iHcoxVOD/Q==",
"dev": true,
"requires": {
- "@typescript-eslint/types": "5.10.1",
+ "@typescript-eslint/types": "5.10.2",
"eslint-visitor-keys": "^3.0.0"
}
},
@@ -9019,6 +9139,13 @@
"inherits": "^2.0.1",
"minimalistic-assert": "^1.0.0",
"safer-buffer": "^2.1.0"
+ },
+ "dependencies": {
+ "bn.js": {
+ "version": "4.12.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
+ }
}
},
"assert": {
@@ -9114,9 +9241,9 @@
"integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg=="
},
"bn.js": {
- "version": "4.12.0",
- "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
- "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.0.tgz",
+ "integrity": "sha512-D7iWRBvnZE8ecXiLj/9wbxH7Tk79fAh8IHaTNq1RWRixsS02W+5qS+iE9yq6RYl0asXx5tw0bLhmT5pIfbSquw=="
},
"body-parser": {
"version": "1.19.1",
@@ -9212,13 +9339,6 @@
"requires": {
"bn.js": "^5.0.0",
"randombytes": "^2.0.1"
- },
- "dependencies": {
- "bn.js": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.0.tgz",
- "integrity": "sha512-D7iWRBvnZE8ecXiLj/9wbxH7Tk79fAh8IHaTNq1RWRixsS02W+5qS+iE9yq6RYl0asXx5tw0bLhmT5pIfbSquw=="
- }
}
},
"browserify-sign": {
@@ -9235,13 +9355,6 @@
"parse-asn1": "^5.1.5",
"readable-stream": "^3.6.0",
"safe-buffer": "^5.2.0"
- },
- "dependencies": {
- "bn.js": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.0.tgz",
- "integrity": "sha512-D7iWRBvnZE8ecXiLj/9wbxH7Tk79fAh8IHaTNq1RWRixsS02W+5qS+iE9yq6RYl0asXx5tw0bLhmT5pIfbSquw=="
- }
}
},
"browserslist": {
@@ -9377,6 +9490,12 @@
"check-error": "^1.0.2"
}
},
+ "chai-bn": {
+ "version": "0.3.1",
+ "resolved": "https://registry.npmjs.org/chai-bn/-/chai-bn-0.3.1.tgz",
+ "integrity": "sha512-vuzEy0Cb+k8zqi2SHOmvZdRSbKcSOJfS1Nv8+6YDJIyCzfxkTCHLNRyjRIoRJ3WJtYb/c7OHjrvLoGeyO4A/gA==",
+ "requires": {}
+ },
"chalk": {
"version": "4.1.2",
"requires": {
@@ -9586,6 +9705,13 @@
"requires": {
"bn.js": "^4.1.0",
"elliptic": "^6.5.3"
+ },
+ "dependencies": {
+ "bn.js": {
+ "version": "4.12.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
+ }
}
},
"create-hash": {
@@ -9745,6 +9871,13 @@
"bn.js": "^4.1.0",
"miller-rabin": "^4.0.0",
"randombytes": "^2.0.0"
+ },
+ "dependencies": {
+ "bn.js": {
+ "version": "4.12.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
+ }
}
},
"dir-glob": {
@@ -9812,6 +9945,13 @@
"inherits": "^2.0.4",
"minimalistic-assert": "^1.0.1",
"minimalistic-crypto-utils": "^1.0.1"
+ },
+ "dependencies": {
+ "bn.js": {
+ "version": "4.12.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
+ }
}
},
"emoji-regex": {
@@ -9900,9 +10040,9 @@
"version": "4.0.0"
},
"eslint": {
- "version": "8.7.0",
- "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.7.0.tgz",
- "integrity": "sha512-ifHYzkBGrzS2iDU7KjhCAVMGCvF6M3Xfs8X8b37cgrUlDt6bWRTpRh6T/gtSXv1HJ/BUGgmjvNvOEGu85Iif7w==",
+ "version": "8.8.0",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.8.0.tgz",
+ "integrity": "sha512-H3KXAzQGBH1plhYS3okDix2ZthuYJlQQEGE5k0IKuEqUSiyu4AmxxlJ2MtTYeJ3xB4jDhcYCwGOg2TXYdnDXlQ==",
"dev": true,
"requires": {
"@eslint/eslintrc": "^1.0.5",
@@ -10074,6 +10214,13 @@
"servify": "^0.1.12",
"ws": "^3.0.0",
"xhr-request-promise": "^0.1.2"
+ },
+ "dependencies": {
+ "bn.js": {
+ "version": "4.12.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
+ }
}
},
"ethereum-bloom-filters": {
@@ -10125,11 +10272,6 @@
"requires": {
"@types/node": "*"
}
- },
- "bn.js": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.0.tgz",
- "integrity": "sha512-D7iWRBvnZE8ecXiLj/9wbxH7Tk79fAh8IHaTNq1RWRixsS02W+5qS+iE9yq6RYl0asXx5tw0bLhmT5pIfbSquw=="
}
}
},
@@ -11122,6 +11264,13 @@
"requires": {
"bn.js": "^4.0.0",
"brorand": "^1.0.1"
+ },
+ "dependencies": {
+ "bn.js": {
+ "version": "4.12.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
+ }
}
},
"mime": {
@@ -11421,9 +11570,9 @@
"version": "1.0.0"
},
"nock": {
- "version": "13.2.2",
- "resolved": "https://registry.npmjs.org/nock/-/nock-13.2.2.tgz",
- "integrity": "sha512-PcBHuvl9i6zfaJ50A7LS55oU+nFLv8htXIhffJO+FxyfibdZ4jEvd9kTuvkrJireBFIGMZ+oUIRpMK5gU9h//g==",
+ "version": "13.2.3",
+ "resolved": "https://registry.npmjs.org/nock/-/nock-13.2.3.tgz",
+ "integrity": "sha512-91wGYjHrjSvrnSUwpiopbmowbIx5s+QSkqj801edTMtrFY4mAiZXP1mKlk5ZG2oZclB8/PcxJ9TJviG+akmrdw==",
"requires": {
"debug": "^4.1.0",
"json-stringify-safe": "^5.0.1",
@@ -11774,6 +11923,13 @@
"parse-asn1": "^5.0.0",
"randombytes": "^2.0.1",
"safe-buffer": "^5.1.2"
+ },
+ "dependencies": {
+ "bn.js": {
+ "version": "4.12.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
+ }
}
},
"pump": {
@@ -11967,13 +12123,6 @@
"integrity": "sha512-d5gdPmgQ0Z+AklL2NVXr/IoSjNZFfTVvQWzL/AM2AOcSzYP2xjlb0AC8YyCLc41MSNf6P6QVtjgPdmVtzb+4lQ==",
"requires": {
"bn.js": "^5.2.0"
- },
- "dependencies": {
- "bn.js": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.0.tgz",
- "integrity": "sha512-D7iWRBvnZE8ecXiLj/9wbxH7Tk79fAh8IHaTNq1RWRixsS02W+5qS+iE9yq6RYl0asXx5tw0bLhmT5pIfbSquw=="
- }
}
},
"run-parallel": {
@@ -12166,6 +12315,11 @@
"source-map": "^0.6.0"
}
},
+ "sourcemap-codec": {
+ "version": "1.4.8",
+ "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz",
+ "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA=="
+ },
"sshpk": {
"version": "1.17.0",
"resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.17.0.tgz",
@@ -12852,6 +13006,11 @@
"web3-utils": "1.7.0"
},
"dependencies": {
+ "bn.js": {
+ "version": "4.12.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
+ },
"eth-lib": {
"version": "0.2.8",
"resolved": "https://registry.npmjs.org/eth-lib/-/eth-lib-0.2.8.tgz",
@@ -12906,6 +13065,13 @@
"requires": {
"bn.js": "^4.11.9",
"web3-utils": "1.7.0"
+ },
+ "dependencies": {
+ "bn.js": {
+ "version": "4.12.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
+ }
}
},
"web3-eth-personal": {
@@ -12996,6 +13162,13 @@
"number-to-bn": "1.7.0",
"randombytes": "^2.1.0",
"utf8": "3.0.0"
+ },
+ "dependencies": {
+ "bn.js": {
+ "version": "4.12.0",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA=="
+ }
}
},
"webidl-conversions": {
diff --git a/integration-tests/runtime-tests/package.json b/integration-tests/runtime-tests/package.json
index a8928b60715..115f86de665 100644
--- a/integration-tests/runtime-tests/package.json
+++ b/integration-tests/runtime-tests/package.json
@@ -53,6 +53,7 @@
"@types/ramda": "^0.27.64",
"chai": "^4.3.4",
"chai-as-promised": "^7.1.1",
+ "chai-bn": "^0.3.1",
"minimist": "^1.2.5",
"mocha": "^8.4.0",
"mochawesome": "^7.0.1",
diff --git a/integration-tests/runtime-tests/src/test.ts b/integration-tests/runtime-tests/src/test.ts
index 7d752b82529..b3f486ee739 100644
--- a/integration-tests/runtime-tests/src/test.ts
+++ b/integration-tests/runtime-tests/src/test.ts
@@ -3,28 +3,30 @@
* All tests can be found in the ./tests/ folder.
**/
-import { QueryCrowdloanRewardsTests } from './tests/query/crowdloanRewards/queryCrowdloanRewardsTests';
-import { TxCrowdloanRewardsTests } from './tests/tx/crowdloanRewards/txCrowdloanRewardsTests';
+import { QueryCrowdloanRewardsTests } from '@composable/tests/query/crowdloanRewards/queryCrowdloanRewardsTests';
+import { TxCrowdloanRewardsTests } from '@composable/tests/tx/crowdloanRewards/txCrowdloanRewardsTests';
import { TxBondedFinanceTests } from "@composable/tests/tx/bondedFinance/txBondedFinanceTests";
import { runBefore, runAfter } from "@composable/utils/testSetup";
import { TxOracleTests } from "@composable/tests/tx/oracle/txOracleTests";
+import { RpcAssetsTests } from '@composable/tests/rpc/assets/rpcAssetsTests';
+import { RpcCrowdloanRewardsTests } from '@composable/tests/rpc/crowdloanRewards/rpcCrowdloanRewardsTests';
-describe('Picasso Runtime Tests', function() {
+describe('Picasso Runtime Tests', function () {
before(async function () {
// Set timeout to 1 minute.
- this.timeout(60*1000);
+ this.timeout(60 * 1000);
await runBefore();
});
- after(async function() {
+ after(async function () {
// Set timeout to 1 minute.
- this.timeout(60*1000);
+ this.timeout(60 * 1000);
await runAfter();
});
// Query Tests
- describe('Query Tests', function() {
+ describe('Query Tests', function () {
// Query Crowdloan Rewards Tests
QueryCrowdloanRewardsTests.runQueryCrowdloanRewardsTests();
});
@@ -43,10 +45,8 @@ describe('Picasso Runtime Tests', function() {
// RPC Tests
describe('RPC Tests', function () {
+ RpcAssetsTests.runRpcAssetsTests()
+ RpcCrowdloanRewardsTests.runRpcCrowdloanRewardsTests()
// No RPC tests implemented yet!
});
});
-
-
-
-
diff --git a/integration-tests/runtime-tests/src/tests/rpc/assets/rpcAssetsTests.ts b/integration-tests/runtime-tests/src/tests/rpc/assets/rpcAssetsTests.ts
new file mode 100644
index 00000000000..2754d404536
--- /dev/null
+++ b/integration-tests/runtime-tests/src/tests/rpc/assets/rpcAssetsTests.ts
@@ -0,0 +1,32 @@
+/* eslint-disable no-trailing-spaces */
+import { CurrencyId } from '@composable/types/interfaces';
+import { ApiPromise } from '@polkadot/api';
+import { AnyNumber } from '@polkadot/types-codec/types';
+import { expect } from 'chai';
+
+
+export class RpcAssetsTests {
+ /**
+ *
+ */
+ public static runRpcAssetsTests() {
+ describe('rpc.assets.balanceOf Tests', function () {
+ it('STUB', async () => {
+ const asset_id = api.createType('CurrencyId', '123456789123456789');
+ const publicKey = walletAlice.address;
+ const result = await RpcAssetsTests.rpcAssetsTest(asset_id, publicKey);
+ expect(result).to.be.a["bignumber"].that.equals('0');
+ });
+ });
+ }
+
+ /**
+ *
+ */
+ private static async rpcAssetsTest(asset_id: CurrencyId | AnyNumber, publicKey: string | Uint8Array) {
+ return await api.rpc.assets.balanceOf(asset_id, publicKey);
+ }
+}
+
+// Uncomment to debug
+// RpcAssetsTests.runRpcAssetsTests();
diff --git a/integration-tests/runtime-tests/src/tests/rpc/crowdloanRewards/rpcCrowdloanRewardsTests.ts b/integration-tests/runtime-tests/src/tests/rpc/crowdloanRewards/rpcCrowdloanRewardsTests.ts
index 22f8579deeb..0eb8e755390 100644
--- a/integration-tests/runtime-tests/src/tests/rpc/crowdloanRewards/rpcCrowdloanRewardsTests.ts
+++ b/integration-tests/runtime-tests/src/tests/rpc/crowdloanRewards/rpcCrowdloanRewardsTests.ts
@@ -1,5 +1,4 @@
/* eslint-disable no-trailing-spaces */
-import { ApiPromise } from '@polkadot/api';
import { expect } from 'chai';
@@ -8,9 +7,11 @@ export class RpcCrowdloanRewardsTests {
*
*/
public static runRpcCrowdloanRewardsTests() {
- describe('query.crowdloanRewards.account Tests', function () {
+ describe('rpc.crowdloanRewards.account Tests', function () {
it('STUB', async () => {
- RpcCrowdloanRewardsTests.rpcCrowdloanRewardsTest();
+ const accountId = walletAlice.derive('/contributor-1/reward').publicKey;
+ const result = await RpcCrowdloanRewardsTests.rpcCrowdloanRewardsTest(accountId);
+ expect(result).to.be.a["bignumber"].that.equals('0');
});
});
}
@@ -18,11 +19,12 @@ export class RpcCrowdloanRewardsTests {
/**
*
*/
- private static async rpcCrowdloanRewardsTest() {
- // ToDo (D. Roth): STUB
- expect(true).to.equal(true);
+ private static async rpcCrowdloanRewardsTest(accountId: string | Uint8Array) {
+ return await api.rpc.crowdloanRewards.amountAvailableToClaimFor(
+ accountId,
+ );
}
}
// Uncomment to debug
-// RpcCrowdloanRewardsTests.runRpcCrowdloanRewardsTests();
\ No newline at end of file
+// RpcCrowdloanRewardsTests.runRpcCrowdloanRewardsTests();
diff --git a/integration-tests/runtime-tests/src/tests/tx/bondedFinance/txBondedFinanceTests.ts b/integration-tests/runtime-tests/src/tests/tx/bondedFinance/txBondedFinanceTests.ts
index cf1b79bbc07..ed275d77ce7 100644
--- a/integration-tests/runtime-tests/src/tests/tx/bondedFinance/txBondedFinanceTests.ts
+++ b/integration-tests/runtime-tests/src/tests/tx/bondedFinance/txBondedFinanceTests.ts
@@ -1,5 +1,5 @@
/* eslint-disable no-trailing-spaces */
-import {expect} from "chai";
+import { expect } from "chai";
import {
txBondedFinanceCancelSudoSuccessTest,
txBondedFinanceCancelFailureTest,
@@ -9,7 +9,7 @@ import {
txBondedFinanceOfferFailureTest,
txBondedFinanceOfferSuccessTest
} from "@composable/tests/tx/bondedFinance/testHandlers/offerTests";
-import {txBondedFinanceBondSuccessTest} from "@composable/tests/tx/bondedFinance/testHandlers/bondTests";
+import { txBondedFinanceBondSuccessTest } from "@composable/tests/tx/bondedFinance/testHandlers/bondTests";
/**
* Contains all TX tests for the pallet:
@@ -22,13 +22,13 @@ export class TxBondedFinanceTests {
* ToDo (D. Roth): The tests assume you're running them on a fresh chain. Instead of assuming, use the test returns.
*/
public static runTxBondedFinanceTests() {
- describe('tx.bondedFinance Tests', function() {
+ describe('tx.bondedFinance Tests', function () {
/**
* bondedFinance.offer(...) Success Tests
*/
describe('tx.bondedFinance.offer & .bond Success Tests', function () {
// Timeout set to 2 minutes
- this.timeout(2*60*1000);
+ this.timeout(2 * 60 * 1000);
// #1 Create offer using Alice's wallet.
it('Can create a new offer', async function () {
const requestParameters = {
@@ -81,22 +81,22 @@ export class TxBondedFinanceTests {
*/
describe('tx.bondedFinance.offer Failure Tests', function () {
// Timeout set to 2 minutes
- this.timeout(2*60*1000);
+ this.timeout(2 * 60 * 1000);
// #4 Alice can't create am offer with the bond price too low.
it('Should not be able to create offer (bondPrice < MIN_VESTED_TRANSFER)', async function () {
const requestParameters = {
beneficiary: walletAlice.publicKey,
asset: api.createType('u128', 1),
- bondPrice: api.createType('u128', api.consts.bondedFinance.stake.toNumber()-1),
+ bondPrice: api.createType('u128', api.consts.bondedFinance.stake.toNumber() - 1),
nbOfBonds: api.createType('u128', 10),
- maturity: {Finite: {returnIn: api.createType('u32', 16)}},
+ maturity: { Finite: { returnIn: api.createType('u32', 16) } },
reward: {
asset: api.createType('u128', 1),
amount: api.consts.bondedFinance.minReward,
maturity: api.createType('u32', 1)
}
};
- const {data: [result],} = await txBondedFinanceOfferFailureTest(walletAlice, requestParameters);
+ const { data: [result], } = await txBondedFinanceOfferFailureTest(walletAlice, requestParameters);
expect(result.toNumber()).to.be.a('number');
});
@@ -107,14 +107,14 @@ export class TxBondedFinanceTests {
asset: api.createType('u128', 1),
bondPrice: api.consts.bondedFinance.stake,
nbOfBonds: api.createType('u128', 10),
- maturity: {Finite: {returnIn: api.createType('u32', 16)}},
+ maturity: { Finite: { returnIn: api.createType('u32', 16) } },
reward: {
asset: api.createType('u128', 1),
- amount: api.createType('u128', api.consts.bondedFinance.minReward.toNumber()-1),
+ amount: api.createType('u128', api.consts.bondedFinance.minReward.toNumber() - 1),
maturity: api.createType('u32', 1)
}
};
- const {data: [result],} = await txBondedFinanceOfferFailureTest(walletAlice, requestParameters);
+ const { data: [result], } = await txBondedFinanceOfferFailureTest(walletAlice, requestParameters);
expect(result.toNumber()).to.be.a('number');
});
@@ -125,14 +125,14 @@ export class TxBondedFinanceTests {
asset: api.createType('u128', 1),
bondPrice: api.consts.bondedFinance.stake,
nbOfBonds: api.createType('u128', 10),
- maturity: {Finite: {returnIn: api.createType('u32', 16)}},
+ maturity: { Finite: { returnIn: api.createType('u32', 16) } },
reward: {
asset: api.createType('u128', 1337),
amount: api.consts.bondedFinance.minReward,
maturity: api.createType('u32', 1)
}
};
- const {data: [result],} = await txBondedFinanceOfferFailureTest(walletAlice, requestParameters);
+ const { data: [result], } = await txBondedFinanceOfferFailureTest(walletAlice, requestParameters);
expect(result.toNumber()).to.be.a('number');
});
});
@@ -142,7 +142,7 @@ export class TxBondedFinanceTests {
*/
describe('tx.bondedFinance.cancel Failure Tests', function () {
// Timeout set to 2 minutes
- this.timeout(2*60*1000);
+ this.timeout(2 * 60 * 1000);
it('Should not be able to cancel offer that doesn\'t exist', async function () {
const offerId = 1337;
const { data: [result], } = await txBondedFinanceCancelFailureTest(walletAlice, offerId);
@@ -155,7 +155,7 @@ export class TxBondedFinanceTests {
*/
describe('tx.bondedFinance.cancel Success Tests', function () {
// Timeout set to 2 minutes
- this.timeout(2*60*1000);
+ this.timeout(2 * 60 * 1000);
// #6 Alice should be able to cancel her offer.
it('Can cancel offer created in first bondedFinance.offer test by creator', async function () {
const offerId = 1;
diff --git a/integration-tests/runtime-tests/src/types/interfaces/assets/definitions.ts b/integration-tests/runtime-tests/src/types/interfaces/assets/definitions.ts
new file mode 100644
index 00000000000..e67a07f107f
--- /dev/null
+++ b/integration-tests/runtime-tests/src/types/interfaces/assets/definitions.ts
@@ -0,0 +1,27 @@
+export default {
+ rpc: {
+ balanceOf: {
+ description: "Balance available for the specified account for the specified asset.",
+ params: [
+ {
+ name: "asset",
+ type: "CurrencyId"
+ },
+ {
+ name: "account",
+ type: "AccountId32"
+ },
+ {
+ name: "at",
+ type: "Hash",
+ isOptional: true,
+ },
+ ],
+ type: "AssetsBalance"
+ },
+ },
+ types: {
+ CurrencyId: "u128",
+ AssetsBalance: "u128",
+ },
+};
diff --git a/integration-tests/runtime-tests/src/types/interfaces/default/index.ts b/integration-tests/runtime-tests/src/types/interfaces/assets/index.ts
similarity index 100%
rename from integration-tests/runtime-tests/src/types/interfaces/default/index.ts
rename to integration-tests/runtime-tests/src/types/interfaces/assets/index.ts
diff --git a/integration-tests/runtime-tests/src/types/interfaces/assets/types.ts b/integration-tests/runtime-tests/src/types/interfaces/assets/types.ts
new file mode 100644
index 00000000000..7766ed204ea
--- /dev/null
+++ b/integration-tests/runtime-tests/src/types/interfaces/assets/types.ts
@@ -0,0 +1,12 @@
+// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
+/* eslint-disable */
+
+import type { u128 } from '@polkadot/types-codec';
+
+/** @name AssetsBalance */
+export interface AssetsBalance extends u128 {}
+
+/** @name CurrencyId */
+export interface CurrencyId extends u128 {}
+
+export type PHANTOM_ASSETS = 'assets';
diff --git a/integration-tests/runtime-tests/src/types/interfaces/augment-api-consts.ts b/integration-tests/runtime-tests/src/types/interfaces/augment-api-consts.ts
index 404fe6d2eae..d3f89f5ea5b 100644
--- a/integration-tests/runtime-tests/src/types/interfaces/augment-api-consts.ts
+++ b/integration-tests/runtime-tests/src/types/interfaces/augment-api-consts.ts
@@ -2,7 +2,7 @@
/* eslint-disable */
import type { ApiTypes } from '@polkadot/api-base/types';
-import type { Bytes, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
+import type { Bytes, Option, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { Codec } from '@polkadot/types-codec/types';
import type { Perbill, Permill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, XcmV1MultiLocation } from '@polkadot/types/lookup';
@@ -60,6 +60,13 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
+ callFilter: {
+ maxStringSize: u32 & AugmentedConst;
+ /**
+ * Generic const
+ **/
+ [key: string]: Codec;
+ };
crowdloanRewards: {
/**
* The upfront liquidity unlocked at first claim.
@@ -147,16 +154,6 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
- factory: {
- /**
- * The initial currency id from which we are able to generate the next.
- **/
- dynamicCurrencyIdInitial: u128 & AugmentedConst;
- /**
- * Generic const
- **/
- [key: string]: Codec;
- };
identity: {
/**
* The amount held on deposit for a registered identity
@@ -201,6 +198,15 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
+ mosaic: {
+ minimumTimeLockPeriod: u32 & AugmentedConst;
+ minimumTTL: u32 & AugmentedConst;
+ timelockPeriod: u32 & AugmentedConst;
+ /**
+ * Generic const
+ **/
+ [key: string]: Codec;
+ };
multisig: {
/**
* The base amount of currency needed to reserve for creating a multisig execution or to
@@ -226,6 +232,14 @@ declare module '@polkadot/api-base/types/consts' {
**/
[key: string]: Codec;
};
+ oracle: {
+ maxHistory: u32 & AugmentedConst;
+ maxPrePrices: u32 & AugmentedConst;
+ /**
+ * Generic const
+ **/
+ [key: string]: Codec;
+ };
scheduler: {
/**
* The maximum weight that may be scheduled per block for any dispatchables of less
@@ -352,6 +366,10 @@ declare module '@polkadot/api-base/types/consts' {
* An accepted proposal gets these back. A rejected proposal does not.
**/
proposalBond: Permill & AugmentedConst;
+ /**
+ * Maximum amount of funds that should be placed in a deposit for making a proposal.
+ **/
+ proposalBondMaximum: Option & AugmentedConst;
/**
* Minimum amount of funds that should be placed in a deposit for making a proposal.
**/
diff --git a/integration-tests/runtime-tests/src/types/interfaces/augment-api-errors.ts b/integration-tests/runtime-tests/src/types/interfaces/augment-api-errors.ts
index da915f5d6ef..f54a309339e 100644
--- a/integration-tests/runtime-tests/src/types/interfaces/augment-api-errors.ts
+++ b/integration-tests/runtime-tests/src/types/interfaces/augment-api-errors.ts
@@ -16,6 +16,7 @@ declare module '@polkadot/api-base/types/errors' {
assetsRegistry: {
ForeignAssetIdAlreadyUsed: AugmentedError;
LocalAssetIdAlreadyUsed: AugmentedError;
+ LocalAssetIdNotFound: AugmentedError;
OnlyAllowedForAdmins: AugmentedError;
/**
* Generic error
@@ -251,6 +252,12 @@ declare module '@polkadot/api-base/types/errors' {
**/
[key: string]: AugmentedError;
};
+ currencyFactory: {
+ /**
+ * Generic error
+ **/
+ [key: string]: AugmentedError;
+ };
democracy: {
/**
* Cannot cancel the same proposal twice
@@ -385,6 +392,7 @@ declare module '@polkadot/api-base/types/errors' {
[key: string]: AugmentedError;
};
dutchAuction: {
+ NotEnoughNativeCurrentyToPayForAuction: AugmentedError;
OrderNotFound: AugmentedError;
OrderParametersIsInvalid: AugmentedError;
RequestedOrderDoesNotExists: AugmentedError;
@@ -395,12 +403,6 @@ declare module '@polkadot/api-base/types/errors' {
**/
[key: string]: AugmentedError;
};
- factory: {
- /**
- * Generic error
- **/
- [key: string]: AugmentedError;
- };
governanceRegistry: {
/**
* Not found
@@ -507,6 +509,33 @@ declare module '@polkadot/api-base/types/errors' {
**/
[key: string]: AugmentedError;
};
+ liquidations: {
+ NoLiquidationEngineFound: AugmentedError;
+ /**
+ * Generic error
+ **/
+ [key: string]: AugmentedError;
+ };
+ mosaic: {
+ AmountMismatch: AugmentedError;
+ BadTimelockPeriod: AugmentedError;
+ BadTTL: AugmentedError;
+ ExceedsMaxTransferSize: AugmentedError;
+ InsufficientBudget: AugmentedError;
+ NetworkDisabled: AugmentedError;
+ NoClaimableTx: AugmentedError;
+ NoOutgoingTx: AugmentedError;
+ NoStaleTransactions: AugmentedError;
+ Overflow: AugmentedError;
+ RelayerNotSet: AugmentedError;
+ TxStillLocked: AugmentedError;
+ UnsupportedAsset: AugmentedError;
+ UnsupportedNetwork: AugmentedError;
+ /**
+ * Generic error
+ **/
+ [key: string]: AugmentedError;
+ };
multisig: {
/**
* Call is already approved by this signatory.
@@ -620,6 +649,8 @@ declare module '@polkadot/api-base/types/errors' {
**/
InvalidMinAnswers: AugmentedError;
MaxAnswersLessThanMinAnswers: AugmentedError;
+ MaxHistory: AugmentedError;
+ MaxPrePrices: AugmentedError;
/**
* Max prices already reached
**/
@@ -720,6 +751,36 @@ declare module '@polkadot/api-base/types/errors' {
**/
[key: string]: AugmentedError;
};
+ preimage: {
+ /**
+ * Preimage has already been noted on-chain.
+ **/
+ AlreadyNoted: AugmentedError;
+ /**
+ * The user is not authorized to perform this action.
+ **/
+ NotAuthorized: AugmentedError;
+ /**
+ * The preimage cannot be removed since it has not yet been noted.
+ **/
+ NotNoted: AugmentedError;
+ /**
+ * The preimage request cannot be removed since no outstanding requests exist.
+ **/
+ NotRequested: AugmentedError;
+ /**
+ * A preimage may not be removed when there are outstanding requests.
+ **/
+ Requested: AugmentedError;
+ /**
+ * Preimage is too large to store on-chain.
+ **/
+ TooLarge: AugmentedError;
+ /**
+ * Generic error
+ **/
+ [key: string]: AugmentedError;
+ };
relayerXcm: {
/**
* The location is invalid since it already has a subscription from us.
@@ -1087,6 +1148,10 @@ declare module '@polkadot/api-base/types/errors' {
[key: string]: AugmentedError;
};
xcmpQueue: {
+ /**
+ * Bad overweight index.
+ **/
+ BadOverweightIndex: AugmentedError;
/**
* Bad XCM data.
**/
@@ -1099,6 +1164,10 @@ declare module '@polkadot/api-base/types/errors' {
* Failed to send XCM message.
**/
FailedToSend: AugmentedError;
+ /**
+ * Provided weight is possibly not enough to execute the message.
+ **/
+ WeightOverLimit: AugmentedError;
/**
* Generic error
**/
@@ -1109,6 +1178,10 @@ declare module '@polkadot/api-base/types/errors' {
* Asset has no reserve location.
**/
AssetHasNoReserve: AugmentedError;
+ /**
+ * The specified index does not exist in a MultiAssets struct
+ **/
+ AssetIndexNonExistent: AugmentedError;
/**
* The version of the `Versioned` value used is not able to be
* interpreted.
@@ -1124,9 +1197,10 @@ declare module '@polkadot/api-base/types/errors' {
**/
DestinationNotInvertible: AugmentedError;
/**
- * The fee MultiAsset is of different type than the asset to transfer.
+ * We tried sending distinct asset and fee but they have different
+ * reserve chains
**/
- DistincAssetAndFeeId: AugmentedError;
+ DistinctReserveForAssetAndFee: AugmentedError;
/**
* The fee amount was zero when the fee specification extrinsic is
* being used.
@@ -1152,6 +1226,10 @@ declare module '@polkadot/api-base/types/errors' {
* Not fungible asset.
**/
NotFungible: AugmentedError;
+ /**
+ * The number of assets to be sent is over the maximum
+ **/
+ TooManyAssetsBeingSent: AugmentedError;
/**
* The message's weight could not be determined.
**/
diff --git a/integration-tests/runtime-tests/src/types/interfaces/augment-api-events.ts b/integration-tests/runtime-tests/src/types/interfaces/augment-api-events.ts
index 1ca01b2168b..40b2a2dbe57 100644
--- a/integration-tests/runtime-tests/src/types/interfaces/augment-api-events.ts
+++ b/integration-tests/runtime-tests/src/types/interfaces/augment-api-events.ts
@@ -1,16 +1,17 @@
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
/* eslint-disable */
-import type { ComposableTraitsAssetsXcmAssetLocation, ComposableTraitsCallFilterCallFilterEntry, ComposableTraitsVestingVestingSchedule, PalletCrowdloanRewardsModelsRemoteAccount, PalletDemocracyVoteThreshold, PalletDutchAuctionSellOrder } from '@composable/types/interfaces/default';
+import type { ComposableTraitsAssetsXcmAssetLocation, ComposableTraitsCallFilterCallFilterEntry, ComposableTraitsVestingVestingSchedule, PalletCrowdloanRewardsModelsRemoteAccount, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletDutchAuctionSellOrder } from '@composable/types/interfaces/crowdloanRewards';
import type { ApiTypes } from '@polkadot/api-base/types';
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u32, u64, u8 } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, H256, Percent } from '@polkadot/types/interfaces/runtime';
-import type { FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, PalletMultisigTimepoint, SpRuntimeDispatchError, XcmV1MultiAsset, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
+import type { FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, PalletMultisigTimepoint, SpRuntimeDispatchError, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetMultiAssets, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
declare module '@polkadot/api-base/types/events' {
export interface AugmentedEvents {
assetsRegistry: {
+ AssetMetadataUpdated: AugmentedEvent;
AssetsMappingCandidateUpdated: AugmentedEvent;
ForeignAdminUpdated: AugmentedEvent;
LocalAdminUpdated: AugmentedEvent;
@@ -209,6 +210,13 @@ declare module '@polkadot/api-base/types/events' {
**/
[key: string]: AugmentedEvent;
};
+ currencyFactory: {
+ RangeCreated: AugmentedEvent;
+ /**
+ * Generic event
+ **/
+ [key: string]: AugmentedEvent;
+ };
democracy: {
/**
* A proposal_hash has been blacklisted permanently.
@@ -262,6 +270,10 @@ declare module '@polkadot/api-base/types/events' {
* A motion has been proposed by a public account.
**/
Proposed: AugmentedEvent;
+ /**
+ * An account has secconded a proposal
+ **/
+ Seconded: AugmentedEvent;
/**
* A referendum has begun.
**/
@@ -278,6 +290,10 @@ declare module '@polkadot/api-base/types/events' {
* An external proposal has been vetoed.
**/
Vetoed: AugmentedEvent;
+ /**
+ * An account has voted in a referendum
+ **/
+ Voted: AugmentedEvent;
/**
* Generic event
**/
@@ -327,12 +343,6 @@ declare module '@polkadot/api-base/types/events' {
**/
[key: string]: AugmentedEvent;
};
- factory: {
- /**
- * Generic event
- **/
- [key: string]: AugmentedEvent;
- };
governanceRegistry: {
GrantRoot: AugmentedEvent;
Remove: AugmentedEvent;
@@ -407,6 +417,61 @@ declare module '@polkadot/api-base/types/events' {
**/
[key: string]: AugmentedEvent;
};
+ liquidations: {
+ PositionWasSentToLiquidation: AugmentedEvent;
+ /**
+ * Generic event
+ **/
+ [key: string]: AugmentedEvent;
+ };
+ mosaic: {
+ BudgetUpdated: AugmentedEvent;
+ /**
+ * The `NetworkInfos` `network_info` was updated for `network_id`.
+ **/
+ NetworksUpdated: AugmentedEvent;
+ /**
+ * The relayer partially accepted the user's `OutgoingTransaction`.
+ **/
+ PartialTransferAccepted: AugmentedEvent;
+ /**
+ * The relayer has been rotated to `account_id`.
+ **/
+ RelayerRotated: AugmentedEvent;
+ /**
+ * The account of the relayer has been set.
+ **/
+ RelayerSet: AugmentedEvent;
+ /**
+ * User claimed outgoing tx that was not (yet) picked up by the relayer
+ **/
+ StaleTxClaimed: AugmentedEvent;
+ /**
+ * The relayer accepted the user's `OutgoingTransaction`.
+ **/
+ TransferAccepted: AugmentedEvent;
+ /**
+ * The user claims his `IncomingTransaction` and unlocks the locked amount.
+ **/
+ TransferClaimed: AugmentedEvent;
+ /**
+ * An incoming tx is created and waiting for the user to claim.
+ **/
+ TransferInto: AugmentedEvent;
+ /**
+ * When we have finality issues occur on the Ethereum chain,
+ * we burn the locked `IncomingTransaction` for which we know that it is invalid.
+ **/
+ TransferIntoRescined: AugmentedEvent;
+ /**
+ * An outgoing tx is created, and locked in the outgoing tx pool.
+ **/
+ TransferOut: AugmentedEvent;
+ /**
+ * Generic event
+ **/
+ [key: string]: AugmentedEvent;
+ };
multisig: {
/**
* A multisig operation has been approved by someone.
@@ -504,6 +569,24 @@ declare module '@polkadot/api-base/types/events' {
**/
[key: string]: AugmentedEvent;
};
+ preimage: {
+ /**
+ * A preimage has ben cleared.
+ **/
+ Cleared: AugmentedEvent;
+ /**
+ * A preimage has been noted.
+ **/
+ Noted: AugmentedEvent;
+ /**
+ * A preimage has been requested.
+ **/
+ Requested: AugmentedEvent;
+ /**
+ * Generic event
+ **/
+ [key: string]: AugmentedEvent;
+ };
relayerXcm: {
/**
* Some assets have been placed in an asset trap.
@@ -628,15 +711,19 @@ declare module '@polkadot/api-base/types/events' {
};
scheduler: {
/**
- * Canceled some task. \[when, index\]
+ * The call for the provided hash was not found so the task has been aborted.
+ **/
+ CallLookupFailed: AugmentedEvent, Option, FrameSupportScheduleLookupError]>;
+ /**
+ * Canceled some task.
**/
Canceled: AugmentedEvent;
/**
- * Dispatched some task. \[task, id, result\]
+ * Dispatched some task.
**/
Dispatched: AugmentedEvent, Option, Result]>;
/**
- * Scheduled some task. \[when, index\]
+ * Scheduled some task.
**/
Scheduled: AugmentedEvent;
/**
@@ -657,9 +744,9 @@ declare module '@polkadot/api-base/types/events' {
};
sudo: {
/**
- * The \[sudoer\] just switched identity; the old key is supplied.
+ * The \[sudoer\] just switched identity; the old key is supplied if one existed.
**/
- KeyChanged: AugmentedEvent;
+ KeyChanged: AugmentedEvent]>;
/**
* A sudo just took place. \[result\]
**/
@@ -679,23 +766,23 @@ declare module '@polkadot/api-base/types/events' {
**/
CodeUpdated: AugmentedEvent;
/**
- * An extrinsic failed. \[error, info\]
+ * An extrinsic failed.
**/
ExtrinsicFailed: AugmentedEvent;
/**
- * An extrinsic completed successfully. \[info\]
+ * An extrinsic completed successfully.
**/
ExtrinsicSuccess: AugmentedEvent;
/**
- * An \[account\] was reaped.
+ * An account was reaped.
**/
KilledAccount: AugmentedEvent;
/**
- * A new \[account\] was created.
+ * A new account was created.
**/
NewAccount: AugmentedEvent;
/**
- * On on-chain remark happened. \[origin, remark_hash\]
+ * On on-chain remark happened.
**/
Remarked: AugmentedEvent;
/**
@@ -705,38 +792,33 @@ declare module '@polkadot/api-base/types/events' {
};
tokens: {
/**
- * A balance was set by root. \[who, free, reserved\]
+ * A balance was set by root.
**/
BalanceSet: AugmentedEvent;
/**
* An account was removed whose balance was non-zero but below
- * ExistentialDeposit, resulting in an outright loss. \[currency_id,
- * account, balance\]
+ * ExistentialDeposit, resulting in an outright loss.
**/
DustLost: AugmentedEvent;
/**
- * An account was created with some free balance. \[currency_id,
- * account, free_balance\]
+ * An account was created with some free balance.
**/
Endowed: AugmentedEvent;
/**
* Some reserved balance was repatriated (moved from reserved to
* another account).
- * \[currency_id, from, to, amount_actually_moved, status\]
**/
RepatriatedReserve: AugmentedEvent;
/**
* Some balance was reserved (moved from free to reserved).
- * \[currency_id, who, value\]
**/
Reserved: AugmentedEvent;
/**
- * Transfer succeeded. \[currency_id, from, to, value\]
+ * Transfer succeeded.
**/
Transfer: AugmentedEvent;
/**
* Some balance was unreserved (moved from reserved to free).
- * \[currency_id, who, value\]
**/
Unreserved: AugmentedEvent;
/**
@@ -746,32 +828,31 @@ declare module '@polkadot/api-base/types/events' {
};
treasury: {
/**
- * Some funds have been allocated. \[proposal_index, award, beneficiary\]
+ * Some funds have been allocated.
**/
Awarded: AugmentedEvent;
/**
- * Some of our funds have been burnt. \[burn\]
+ * Some of our funds have been burnt.
**/
Burnt: AugmentedEvent;
/**
- * Some funds have been deposited. \[deposit\]
+ * Some funds have been deposited.
**/
Deposit: AugmentedEvent;
/**
- * New proposal. \[proposal_index\]
+ * New proposal.
**/
Proposed: AugmentedEvent;
/**
- * A proposal was rejected; funds were slashed. \[proposal_index, slashed\]
+ * A proposal was rejected; funds were slashed.
**/
Rejected: AugmentedEvent;
/**
* Spending has finished; this is the amount that rolls over until next spend.
- * \[budget_remaining\]
**/
Rollover: AugmentedEvent;
/**
- * We have ended a spend period and will now allocate funds. \[budget_remaining\]
+ * We have ended a spend period and will now allocate funds.
**/
Spending: AugmentedEvent;
/**
@@ -781,11 +862,11 @@ declare module '@polkadot/api-base/types/events' {
};
unknownTokens: {
/**
- * Deposit success. [asset, to]
+ * Deposit success.
**/
Deposited: AugmentedEvent;
/**
- * Withdraw success. [asset, from]
+ * Withdraw success.
**/
Withdrawn: AugmentedEvent;
/**
@@ -804,7 +885,7 @@ declare module '@polkadot/api-base/types/events' {
**/
BatchInterrupted: AugmentedEvent;
/**
- * A call was dispatched. \[result\]
+ * A call was dispatched.
**/
DispatchedAs: AugmentedEvent]>;
/**
@@ -874,6 +955,14 @@ declare module '@polkadot/api-base/types/events' {
* Some XCM failed.
**/
Fail: AugmentedEvent, XcmV2TraitsError]>;
+ /**
+ * An XCM exceeded the individual message weight budget.
+ **/
+ OverweightEnqueued: AugmentedEvent;
+ /**
+ * An XCM from the overweight queue was executed with the given actual weight used.
+ **/
+ OverweightServiced: AugmentedEvent;
/**
* Some XCM was executed ok.
**/
@@ -893,19 +982,27 @@ declare module '@polkadot/api-base/types/events' {
};
xTokens: {
/**
- * Transferred. \[sender, currency_id, amount, dest\]
+ * Transferred.
**/
Transferred: AugmentedEvent;
/**
- * Transferred `MultiAsset`. \[sender, asset, dest\]
+ * Transferred `MultiAsset`.
**/
TransferredMultiAsset: AugmentedEvent;
/**
- * Transferred `MultiAsset` with fee. \[sender, asset, fee, dest\]
+ * Transferred `MultiAsset` with fee.
+ **/
+ TransferredMultiAssets: AugmentedEvent;
+ /**
+ * Transferred `MultiAsset` with fee.
**/
TransferredMultiAssetWithFee: AugmentedEvent;
/**
- * Transferred with fee. \[sender, currency_id, amount, fee, dest\]
+ * Transferred `MultiAsset` with fee.
+ **/
+ TransferredMultiCurrencies: AugmentedEvent>, XcmV1MultiLocation]>;
+ /**
+ * Transferred with fee.
**/
TransferredWithFee: AugmentedEvent;
/**
diff --git a/integration-tests/runtime-tests/src/types/interfaces/augment-api-query.ts b/integration-tests/runtime-tests/src/types/interfaces/augment-api-query.ts
index c68045b75dc..4a1a9346574 100644
--- a/integration-tests/runtime-tests/src/types/interfaces/augment-api-query.ts
+++ b/integration-tests/runtime-tests/src/types/interfaces/augment-api-query.ts
@@ -1,7 +1,7 @@
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
/* eslint-disable */
-import type { ComposableTraitsAssetsXcmAssetLocation, ComposableTraitsBondedFinanceBondOffer, ComposableTraitsCallFilterCallFilterEntry, ComposableTraitsGovernanceSignedRawOrigin, ComposableTraitsVestingVestingSchedule, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmpQueueInboundStatus, CumulusPalletXcmpQueueOutboundStatus, CumulusPalletXcmpQueueQueueConfigData, DaliRuntimeOpaqueSessionKeys, OrmlTokensAccountData, OrmlTokensBalanceLock, PalletAssetsRegistryCandidateStatus, PalletCollatorSelectionCandidateInfo, PalletCrowdloanRewardsModelsRemoteAccount, PalletCrowdloanRewardsReward, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletDutchAuctionSellOrder, PalletDutchAuctionTakeOrder, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletOracleAssetInfo, PalletOraclePrePrice, PalletOraclePrice, PalletOracleWithdraw, PalletSchedulerReleases, PalletSchedulerScheduledV2, PalletTreasuryProposal, PalletVaultModelsStrategyOverview, PalletVaultModelsVaultInfo, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV1AbridgedHostConfiguration, PolkadotPrimitivesV1PersistedValidationData, SpConsensusAuraSr25519AppSr25519Public } from '@composable/types/interfaces/default';
+import type { ComposableTraitsAssetsXcmAssetLocation, ComposableTraitsBondedFinanceBondOffer, ComposableTraitsCallFilterCallFilterEntry, ComposableTraitsGovernanceSignedRawOrigin, ComposableTraitsVestingVestingSchedule, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmpQueueQueueConfigData, DaliRuntimeOpaqueSessionKeys, OrmlTokensAccountData, OrmlTokensBalanceLock, PalletAssetsRegistryCandidateStatus, PalletAssetsRegistryForeignMetadata, PalletCollatorSelectionCandidateInfo, PalletCrowdloanRewardsModelsRemoteAccount, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletDutchAuctionSellOrder, PalletDutchAuctionTakeOrder, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletOracleAssetInfo, PalletOraclePrePrice, PalletOraclePrice, PalletOracleWithdraw, PalletTreasuryProposal, PalletVaultModelsStrategyOverview, PalletVaultModelsVaultInfo, PolkadotPrimitivesV1AbridgedHostConfiguration, PolkadotPrimitivesV1PersistedValidationData, SpConsensusAuraSr25519AppSr25519Public } from '@composable/types/interfaces/crowdloanRewards';
import type { ApiTypes } from '@polkadot/api-base/types';
import type { Data } from '@polkadot/types';
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
@@ -26,7 +26,11 @@ declare module '@polkadot/api-base/types/storage' {
/**
* Foreign admin account
**/
- foreignAdmin: AugmentedQuery Observable, []> & QueryableStorageEntry;
+ foreignAdmin: AugmentedQuery Observable