difftreelog
build upgrade polkadot to v0.9.11
in: master
28 files changed
.envdiffbeforeafterboth--- a/.env
+++ b/.env
@@ -1,6 +1,6 @@
RUST_TOOLCHAIN=nightly-2021-06-28
RUST_C=1.55.0-nightly
-POLKA_VERSION=v0.9.10
+POLKA_VERSION=v0.9.11
NFT_BRANCH=develop
USER=***
PASS=***
Cargo.lockdiffbeforeafterboth--- a/Cargo.lock
+++ b/Cargo.lock
@@ -14,27 +14,18 @@
[[package]]
name = "addr2line"
-version = "0.14.1"
+version = "0.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a55f82cfe485775d02112886f4169bde0c5894d75e79ead7eafe7e40a25e45f7"
+checksum = "3e61f2b7f93d2c7d2b08263acaa4a363b3e276806c68af6134c44f523bf1aacd"
dependencies = [
- "gimli 0.23.0",
-]
-
-[[package]]
-name = "addr2line"
-version = "0.15.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "03345e98af8f3d786b6d9f656ccfa6ac316d954e92bc4841f0bba20789d5fb5a"
-dependencies = [
- "gimli 0.24.0",
+ "gimli",
]
[[package]]
name = "adler"
-version = "0.2.2"
+version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ccc9a9dd069569f212bc4330af9f17c4afb5e8ce185e83dbb14f1349dda18b10"
+checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
[[package]]
name = "aead"
@@ -77,16 +68,16 @@
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "43bb833f0bf979d8475d38fbf09ed3b8a55e1885fe93ad3f93239fc6a4f17b98"
dependencies = [
- "getrandom 0.2.1",
+ "getrandom 0.2.3",
"once_cell",
"version_check",
]
[[package]]
name = "aho-corasick"
-version = "0.7.13"
+version = "0.7.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "043164d8ba5c4c3035fec9bbee8647c0261d788f3474306f93bb65901cae0e86"
+checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f"
dependencies = [
"memchr",
]
@@ -117,9 +108,9 @@
[[package]]
name = "anyhow"
-version = "1.0.39"
+version = "1.0.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "81cddc5f91628367664cc7c69714ff08deee8a3efc54623011c772544d7b2767"
+checksum = "61604a8f862e1d5c3229fdd78f8b02c68dcf73a4c4b05fd636d12240aaa242c1"
[[package]]
name = "approx"
@@ -153,15 +144,15 @@
[[package]]
name = "arrayvec"
-version = "0.7.0"
+version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5a2f58b0bb10c380af2b26e57212856b8c9a59e0925b4c20f4a174a49734eaf7"
+checksum = "be4dc07131ffa69b8072d35f5007352af944213cde02545e2103680baed38fcd"
[[package]]
name = "asn1_der"
-version = "0.7.4"
+version = "0.7.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9d6e24d2cce90c53b948c46271bfb053e4bdc2db9b5d3f65e20f8cf28a1b7fc3"
+checksum = "e22d1f4b888c298a027c99dc9048015fac177587de20fc30232a057dfbe24a21"
[[package]]
name = "assert_matches"
@@ -181,9 +172,9 @@
[[package]]
name = "async-channel"
-version = "1.5.1"
+version = "1.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "59740d83946db6a5af71ae25ddf9562c2b176b2ca42cf99a455f09f4a220d6b9"
+checksum = "2114d64672151c0c5eaa5e131ec84a74f06e1e559830dabba01ca30605d66319"
dependencies = [
"concurrent-queue",
"event-listener",
@@ -222,20 +213,19 @@
[[package]]
name = "async-io"
-version = "1.3.1"
+version = "1.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9315f8f07556761c3e48fec2e6b276004acf426e6dc068b2c2251854d65ee0fd"
+checksum = "a811e6a479f2439f0c04038796b5cfb3d2ad56c230e0f2d3f7b04d68cfee607b"
dependencies = [
"concurrent-queue",
- "fastrand",
"futures-lite",
"libc",
"log",
- "nb-connect",
"once_cell",
"parking",
"polling",
- "vec-arena",
+ "slab",
+ "socket2 0.4.2",
"waker-fn",
"winapi 0.3.9",
]
@@ -260,9 +250,9 @@
[[package]]
name = "async-process"
-version = "1.1.0"
+version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a8f38756dd9ac84671c428afbf7c9f7495feff9ec5b0710f17100098e5b354ac"
+checksum = "b21b63ab5a0db0369deb913540af2892750e42d949faacc7a61495ac418a1692"
dependencies = [
"async-io",
"blocking",
@@ -277,9 +267,9 @@
[[package]]
name = "async-std"
-version = "1.9.0"
+version = "1.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d9f06685bad74e0570f5213741bea82158279a4103d988e57bfada11ad230341"
+checksum = "f8056f1455169ab86dd47b47391e4ab0cbd25410a70e9fe675544f49bafaf952"
dependencies = [
"async-attributes",
"async-channel",
@@ -287,7 +277,7 @@
"async-io",
"async-lock",
"async-process",
- "crossbeam-utils 0.8.1",
+ "crossbeam-utils",
"futures-channel",
"futures-core",
"futures-io",
@@ -298,7 +288,7 @@
"memchr",
"num_cpus",
"once_cell",
- "pin-project-lite 0.2.4",
+ "pin-project-lite 0.2.7",
"pin-utils",
"slab",
"wasm-bindgen-futures",
@@ -306,9 +296,9 @@
[[package]]
name = "async-std-resolver"
-version = "0.20.1"
+version = "0.20.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f665c56111e244fe38e7708ee10948a4356ad6a548997c21f5a63a0f4e0edc4d"
+checksum = "ed4e2c3da14d8ad45acb1e3191db7a918e9505b6f155b218e70a7c9a1a48c638"
dependencies = [
"async-std",
"async-trait",
@@ -326,9 +316,9 @@
[[package]]
name = "async-trait"
-version = "0.1.50"
+version = "0.1.51"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0b98e84bbb4cbcdd97da190ba0c58a1bb0de2c1fdf67d159e192ed766aeca722"
+checksum = "44318e776df68115a881de9a8fd1b9e53368d7a4a5ce4cc48517da3393233a5e"
dependencies = [
"proc-macro2",
"quote",
@@ -341,11 +331,11 @@
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fb4401f0a3622dad2e0763fa79e0eb328bc70fb7dccfdd645341f00d671247d6"
dependencies = [
- "bytes 1.0.1",
+ "bytes 1.1.0",
"futures-sink",
"futures-util",
"memchr",
- "pin-project-lite 0.2.4",
+ "pin-project-lite 0.2.7",
]
[[package]]
@@ -354,11 +344,11 @@
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f0de5164e5edbf51c45fb8c2d9664ae1c095cce1b265ecf7569093c0d66ef690"
dependencies = [
- "bytes 1.0.1",
+ "bytes 1.1.0",
"futures-sink",
"futures-util",
"memchr",
- "pin-project-lite 0.2.4",
+ "pin-project-lite 0.2.7",
]
[[package]]
@@ -389,21 +379,22 @@
[[package]]
name = "autocfg"
-version = "1.0.0"
+version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f8aac770f1885fd7e387acedd76065302551364496e46b3dd00860b2f8359b9d"
+checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
[[package]]
name = "backtrace"
-version = "0.3.56"
+version = "0.3.61"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9d117600f438b1707d4e4ae15d3595657288f8235a0eb593e80ecc98ab34e1bc"
+checksum = "e7a905d892734eea339e896738c14b9afce22b5318f64b951e70bf3844419b01"
dependencies = [
- "addr2line 0.14.1",
+ "addr2line",
+ "cc",
"cfg-if 1.0.0",
"libc",
"miniz_oxide",
- "object 0.23.0",
+ "object",
"rustc-demangle",
]
@@ -434,12 +425,6 @@
[[package]]
name = "base64"
-version = "0.11.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b41b7ea54a0c9d92199de89e20e58d49f02f8e699814ef3fdf266f6f748d15c7"
-
-[[package]]
-name = "base64"
version = "0.12.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ff"
@@ -452,22 +437,21 @@
[[package]]
name = "beef"
-version = "0.5.0"
+version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6736e2428df2ca2848d846c43e88745121a6654696e349ce0054a420815a7409"
+checksum = "bed554bd50246729a1ec158d08aa3235d1b69d94ad120ebe187e28894787e736"
dependencies = [
"serde",
]
[[package]]
name = "beefy-gadget"
-version = "0.1.0"
-source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=polkadot-v0.9.10#9954b61657dc8899a21b4f2501ee6bd3b7a2dc23"
+version = "4.0.0-dev"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"beefy-primitives",
"fnv",
"futures 0.3.17",
- "hex",
"log",
"parity-scale-codec",
"parking_lot 0.11.2",
@@ -475,15 +459,14 @@
"sc-keystore",
"sc-network",
"sc-network-gossip",
+ "sc-utils",
"sp-api",
"sp-application-crypto",
"sp-arithmetic",
"sp-blockchain",
- "sp-consensus",
"sp-core",
"sp-keystore",
"sp-runtime",
- "sp-utils",
"substrate-prometheus-endpoint",
"thiserror",
"wasm-timer",
@@ -491,36 +474,36 @@
[[package]]
name = "beefy-gadget-rpc"
-version = "0.1.0"
-source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=polkadot-v0.9.10#9954b61657dc8899a21b4f2501ee6bd3b7a2dc23"
+version = "4.0.0-dev"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"beefy-gadget",
"beefy-primitives",
"futures 0.3.17",
- "jsonrpc-core 15.1.0",
- "jsonrpc-core-client 15.1.0",
- "jsonrpc-derive 15.1.0",
- "jsonrpc-pubsub 15.1.0",
+ "jsonrpc-core",
+ "jsonrpc-core-client",
+ "jsonrpc-derive",
+ "jsonrpc-pubsub",
"log",
"parity-scale-codec",
"sc-rpc",
"serde",
- "serde_json",
"sp-core",
"sp-runtime",
]
[[package]]
name = "beefy-merkle-tree"
-version = "0.1.0"
-source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=polkadot-v0.9.10#9954b61657dc8899a21b4f2501ee6bd3b7a2dc23"
+version = "4.0.0-dev"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
[[package]]
name = "beefy-primitives"
-version = "0.1.0"
-source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=polkadot-v0.9.10#9954b61657dc8899a21b4f2501ee6bd3b7a2dc23"
+version = "4.0.0-dev"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"parity-scale-codec",
+ "scale-info",
"sp-api",
"sp-application-crypto",
"sp-core",
@@ -530,11 +513,10 @@
[[package]]
name = "bincode"
-version = "1.3.1"
+version = "1.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f30d3a39baa26f9651f17b375061f3233dde33424a8b72b0dbe93a68a0bc896d"
+checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad"
dependencies = [
- "byteorder",
"serde",
]
@@ -559,9 +541,9 @@
[[package]]
name = "bitflags"
-version = "1.2.1"
+version = "1.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"
+checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
name = "bitvec"
@@ -577,9 +559,9 @@
[[package]]
name = "bitvec"
-version = "0.20.1"
+version = "0.20.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f5011ffc90248764d7005b0e10c7294f5aa1bd87d9dd7248f4ad475b347c294d"
+checksum = "7774144344a4faa177370406a7ff5f1da24303817368584c6206c8303eb07848"
dependencies = [
"funty",
"radium 0.6.2",
@@ -589,15 +571,13 @@
[[package]]
name = "blake2"
-version = "0.9.0"
+version = "0.9.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "84ce5b6108f8e154604bd4eb76a2f726066c3464d5a552a4229262a18c9bb471"
+checksum = "0a4e37d16930f5459780f5621038b6382b9bb37c19016f39fb6b5808d831f174"
dependencies = [
- "byte-tools",
- "byteorder",
"crypto-mac 0.8.0",
"digest 0.9.0",
- "opaque-debug 0.2.3",
+ "opaque-debug 0.3.0",
]
[[package]]
@@ -612,9 +592,9 @@
[[package]]
name = "blake2b_simd"
-version = "0.5.10"
+version = "0.5.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d8fb2d74254a3a0b5cac33ac9f8ed0e44aa50378d9dbb2e5d83bd21ed1dc2c8a"
+checksum = "afa748e348ad3be8263be728124b24a24f268266f6f5d58af9d75f6a40b5c587"
dependencies = [
"arrayref",
"arrayvec 0.5.2",
@@ -634,9 +614,9 @@
[[package]]
name = "blake3"
-version = "0.3.7"
+version = "0.3.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e9ff35b701f3914bdb8fad3368d822c766ef2858b2583198e41639b936f09d3f"
+checksum = "b64485778c4f16a6a5a9d335e80d449ac6c70cdd6a06d2af18a6f6f775a125b3"
dependencies = [
"arrayref",
"arrayvec 0.5.2",
@@ -656,7 +636,7 @@
"block-padding 0.1.5",
"byte-tools",
"byteorder",
- "generic-array 0.12.3",
+ "generic-array 0.12.4",
]
[[package]]
@@ -699,13 +679,23 @@
]
[[package]]
+name = "bounded-vec"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "afdd1dffefe5fc66262a524b91087c43b16e478b2e3dc49eb11b0e2fd6b6ec90"
+dependencies = [
+ "thiserror",
+]
+
+[[package]]
name = "bp-header-chain"
version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"finality-grandpa",
"frame-support",
"parity-scale-codec",
+ "scale-info",
"serde",
"sp-core",
"sp-finality-grandpa",
@@ -716,25 +706,27 @@
[[package]]
name = "bp-message-dispatch"
version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"bp-runtime",
"frame-support",
"parity-scale-codec",
+ "scale-info",
"sp-std",
]
[[package]]
name = "bp-messages"
version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
- "bitvec 0.20.1",
+ "bitvec 0.20.4",
"bp-runtime",
"frame-support",
"frame-system",
"impl-trait-for-tuples 0.2.1",
"parity-scale-codec",
+ "scale-info",
"serde",
"sp-std",
]
@@ -742,13 +734,14 @@
[[package]]
name = "bp-polkadot-core"
version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"bp-messages",
"bp-runtime",
"frame-support",
"frame-system",
"parity-scale-codec",
+ "scale-info",
"sp-api",
"sp-core",
"sp-runtime",
@@ -759,7 +752,7 @@
[[package]]
name = "bp-rialto"
version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"bp-messages",
"bp-runtime",
@@ -774,14 +767,14 @@
[[package]]
name = "bp-rococo"
version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"bp-messages",
"bp-polkadot-core",
"bp-runtime",
"frame-support",
"parity-scale-codec",
- "smallvec 1.6.1",
+ "smallvec",
"sp-api",
"sp-runtime",
"sp-std",
@@ -791,12 +784,13 @@
[[package]]
name = "bp-runtime"
version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"frame-support",
"hash-db",
"num-traits",
"parity-scale-codec",
+ "scale-info",
"sp-core",
"sp-io",
"sp-runtime",
@@ -808,7 +802,7 @@
[[package]]
name = "bp-test-utils"
version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"bp-header-chain",
"ed25519-dalek",
@@ -823,7 +817,7 @@
[[package]]
name = "bp-wococo"
version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"bp-messages",
"bp-polkadot-core",
@@ -838,7 +832,7 @@
[[package]]
name = "bridge-runtime-common"
version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"bp-message-dispatch",
"bp-messages",
@@ -850,6 +844,7 @@
"pallet-bridge-messages",
"pallet-transaction-payment",
"parity-scale-codec",
+ "scale-info",
"sp-core",
"sp-runtime",
"sp-state-machine",
@@ -865,9 +860,9 @@
[[package]]
name = "bstr"
-version = "0.2.13"
+version = "0.2.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "31accafdb70df7871592c058eca3985b71104e15ac32f64706022c58867da931"
+checksum = "ba3569f383e8f1598449f1a423e72e99569137b47740b1da11ef19af3d5c3223"
dependencies = [
"memchr",
]
@@ -883,15 +878,15 @@
[[package]]
name = "bumpalo"
-version = "3.4.0"
+version = "3.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2e8c087f005730276d1096a652e92a8bacee2e2472bcc9715a74d2bec38b5820"
+checksum = "d9df67f7bf9ef8498769f994239c45613ef0c5899415fb58e9add412d2c1a538"
[[package]]
name = "byte-slice-cast"
-version = "1.0.0"
+version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "65c1bf4a04a88c54f589125563643d773f3254b5c38571395e2b591c693bbc81"
+checksum = "ca0796d76a983651b4a0ddda16203032759f2fd9103d9181f7c65c06ee8872e6"
[[package]]
name = "byte-tools"
@@ -901,9 +896,9 @@
[[package]]
name = "byteorder"
-version = "1.3.4"
+version = "1.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de"
+checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
[[package]]
name = "bytes"
@@ -912,7 +907,6 @@
checksum = "206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c"
dependencies = [
"byteorder",
- "either",
"iovec",
]
@@ -924,9 +918,9 @@
[[package]]
name = "bytes"
-version = "1.0.1"
+version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b700ce4376041dcd0a327fd0097c41095743c4c8af8887265942faf1100bd040"
+checksum = "c4872d67bab6358e59559027aa3b9157c53d9358c51423c17554809a8858e0f8"
[[package]]
name = "cache-padded"
@@ -936,18 +930,18 @@
[[package]]
name = "camino"
-version = "1.0.4"
+version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d4648c6d00a709aa069a236adcaae4f605a6241c72bf5bee79331a4b625921a9"
+checksum = "52d74260d9bf6944e2208aa46841b4b8f0d7ffc0849a06837b2f510337f86b2b"
dependencies = [
"serde",
]
[[package]]
name = "cargo-platform"
-version = "0.1.1"
+version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0226944a63d1bf35a3b5f948dd7c59e263db83695c9e8bffc4037de02e30f1d7"
+checksum = "cbdb825da8a5df079a43676dbe042702f1707b1109f713a01420fbb4cc71fa27"
dependencies = [
"serde",
]
@@ -968,9 +962,9 @@
[[package]]
name = "cc"
-version = "1.0.67"
+version = "1.0.71"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e3c69b077ad434294d3ce9f1f6143a2a4b89a8a2d54ef813d85003a4fd1137fd"
+checksum = "79c2681d6594606957bbb8631c4b90a7fcaaa72cdb714743a437b156d6a7eedd"
dependencies = [
"jobserver",
]
@@ -1004,21 +998,21 @@
[[package]]
name = "chacha20"
-version = "0.7.3"
+version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f08493fa7707effc63254c66c6ea908675912493cd67952eda23c09fae2610b1"
+checksum = "fee7ad89dc1128635074c268ee661f90c3f7e83d9fd12910608c36b47d6c3412"
dependencies = [
"cfg-if 1.0.0",
"cipher",
- "cpufeatures 0.2.1",
+ "cpufeatures 0.1.5",
"zeroize",
]
[[package]]
name = "chacha20poly1305"
-version = "0.8.2"
+version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b6547abe025f4027edacd9edaa357aded014eecec42a5070d9b885c3c334aba2"
+checksum = "1580317203210c517b6d44794abfbe600698276db18127e37ad3e69bf5e848e5"
dependencies = [
"aead",
"chacha20",
@@ -1042,12 +1036,12 @@
[[package]]
name = "cid"
-version = "0.6.0"
+version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7d88f30b1e74e7063df5711496f3ee6e74a9735d62062242d70cddf77717f18e"
+checksum = "ff0e3bc0b6446b3f9663c1a6aba6ef06c5aeaa1bc92bd18077be337198ab9768"
dependencies = [
"multibase",
- "multihash 0.13.1",
+ "multihash 0.13.2",
"unsigned-varint 0.5.1",
]
@@ -1062,18 +1056,18 @@
[[package]]
name = "ckb-merkle-mountain-range"
-version = "0.3.1"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e486fe53bb9f2ca0f58cb60e8679a5354fd6687a839942ef0a75967250289ca6"
+checksum = "4f061f97d64fd1822664bdfb722f7ae5469a97b77567390f7442be5b5dc82a5b"
dependencies = [
"cfg-if 0.1.10",
]
[[package]]
name = "clang-sys"
-version = "1.2.0"
+version = "1.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "853eda514c284c2287f4bf20ae614f8781f40a81d32ecda6e91449304dfe077c"
+checksum = "10612c0ec0e0a1ff0e97980647cb058a6e7aedb913d01d009c406b8b7d0b26ee"
dependencies = [
"glob",
"libc",
@@ -1127,51 +1121,34 @@
[[package]]
name = "core-foundation"
-version = "0.7.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "57d24c7a13c43e870e37c1556b74555437870a04514f7685f5b354e090567171"
-dependencies = [
- "core-foundation-sys 0.7.0",
- "libc",
-]
-
-[[package]]
-name = "core-foundation"
version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0a89e2ae426ea83155dccf10c0fa6b1463ef6d5fcb44cee0b224a408fa640a62"
dependencies = [
- "core-foundation-sys 0.8.2",
+ "core-foundation-sys",
"libc",
]
[[package]]
name = "core-foundation-sys"
-version = "0.7.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b3a71ab494c0b5b860bdc8407ae08978052417070c2ced38573a9157ad75b8ac"
-
-[[package]]
-name = "core-foundation-sys"
version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ea221b5284a47e40033bf9b66f35f984ec0ea2931eb03505246cd27a963f981b"
[[package]]
name = "cpp_demangle"
-version = "0.3.2"
+version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "44919ecaf6f99e8e737bc239408931c9a01e9a6c74814fee8242dd2506b65390"
+checksum = "8ea47428dc9d2237f3c6bc134472edfd63ebba0af932e783506dcfd66f10d18a"
dependencies = [
"cfg-if 1.0.0",
- "glob",
]
[[package]]
name = "cpufeatures"
-version = "0.1.4"
+version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ed00c67cb5d0a7d64a44f6ad2668db7e7530311dd53ea79bcd4fb022c64911c8"
+checksum = "66c99696f6c9dd7f35d486b9d04d7e6e202aa3e8c40d553f2fdf5e7e0c6a71ef"
dependencies = [
"libc",
]
@@ -1184,45 +1161,39 @@
dependencies = [
"libc",
]
-
-[[package]]
-name = "cpuid-bool"
-version = "0.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6d375c433320f6c5057ae04a04376eef4d04ce2801448cf8863a78da99107be4"
[[package]]
name = "cranelift-bforest"
-version = "0.74.0"
+version = "0.76.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c8ca3560686e7c9c7ed7e0fe77469f2410ba5d7781b1acaa9adc8d8deea28e3e"
+checksum = "7e6bea67967505247f54fa2c85cf4f6e0e31c4e5692c9b70e4ae58e339067333"
dependencies = [
"cranelift-entity",
]
[[package]]
name = "cranelift-codegen"
-version = "0.74.0"
+version = "0.76.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "baf9bf1ffffb6ce3d2e5ebc83549bd2436426c99b31cc550d521364cbe35d276"
+checksum = "48194035d2752bdd5bdae429e3ab88676e95f52a2b1355a5d4e809f9e39b1d74"
dependencies = [
"cranelift-bforest",
"cranelift-codegen-meta",
"cranelift-codegen-shared",
"cranelift-entity",
- "gimli 0.24.0",
+ "gimli",
"log",
"regalloc",
"serde",
- "smallvec 1.6.1",
+ "smallvec",
"target-lexicon",
]
[[package]]
name = "cranelift-codegen-meta"
-version = "0.74.0"
+version = "0.76.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4cc21936a5a6d07e23849ffe83e5c1f6f50305c074f4b2970ca50c13bf55b821"
+checksum = "976efb22fcab4f2cd6bd4e9913764616a54d895c1a23530128d04e03633c555f"
dependencies = [
"cranelift-codegen-shared",
"cranelift-entity",
@@ -1230,49 +1201,50 @@
[[package]]
name = "cranelift-codegen-shared"
-version = "0.74.0"
+version = "0.76.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ca5b6ffaa87560bebe69a5446449da18090b126037920b0c1c6d5945f72faf6b"
+checksum = "9dabb5fe66e04d4652e434195b45ae65b5c8172d520247b8f66d8df42b2b45dc"
dependencies = [
"serde",
]
[[package]]
name = "cranelift-entity"
-version = "0.74.0"
+version = "0.76.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7d6b4a8bef04f82e4296782646f733c641d09497df2fabf791323fefaa44c64c"
+checksum = "3329733e4d4b8e91c809efcaa4faee80bf66f20164e3dd16d707346bd3494799"
dependencies = [
"serde",
]
[[package]]
name = "cranelift-frontend"
-version = "0.74.0"
+version = "0.76.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c31b783b351f966fce33e3c03498cb116d16d97a8f9978164a60920bd0d3a99c"
+checksum = "279afcc0d3e651b773f94837c3d581177b348c8d69e928104b2e9fccb226f921"
dependencies = [
"cranelift-codegen",
"log",
- "smallvec 1.6.1",
+ "smallvec",
"target-lexicon",
]
[[package]]
name = "cranelift-native"
-version = "0.74.0"
+version = "0.76.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a77c88d3dd48021ff1e37e978a00098524abd3513444ae252c08d37b310b3d2a"
+checksum = "4c04d1fe6a5abb5bb0edc78baa8ef238370fb8e389cc88b6d153f7c3e9680425"
dependencies = [
"cranelift-codegen",
+ "libc",
"target-lexicon",
]
[[package]]
name = "cranelift-wasm"
-version = "0.74.0"
+version = "0.76.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "edb6d408e2da77cdbbd65466298d44c86ae71c1785d2ab0d8657753cdb4d9d89"
+checksum = "e0d260ad44f6fd2c91f7f5097191a2a9e3edcbb36df1fb787b600dad5ea148ec"
dependencies = [
"cranelift-codegen",
"cranelift-entity",
@@ -1280,75 +1252,60 @@
"itertools",
"log",
"serde",
- "smallvec 1.6.1",
+ "smallvec",
"thiserror",
"wasmparser",
]
[[package]]
name = "crc32fast"
-version = "1.2.0"
+version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ba125de2af0df55319f41944744ad91c71113bf74a4646efff39afe1f6842db1"
+checksum = "81156fece84ab6a9f2afdb109ce3ae577e42b1228441eded99bd77f627953b1a"
dependencies = [
- "cfg-if 0.1.10",
+ "cfg-if 1.0.0",
]
[[package]]
-name = "crossbeam-deque"
-version = "0.7.4"
+name = "crossbeam-channel"
+version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c20ff29ded3204c5106278a81a38f4b482636ed4fa1e6cfbeef193291beb29ed"
+checksum = "06ed27e177f16d65f0f0c22a213e17c696ace5dd64b14258b52f9417ccb52db4"
dependencies = [
- "crossbeam-epoch",
- "crossbeam-utils 0.7.2",
- "maybe-uninit",
-]
-
-[[package]]
-name = "crossbeam-epoch"
-version = "0.8.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "058ed274caafc1f60c4997b5fc07bf7dc7cca454af7c6e81edffe5f33f70dace"
-dependencies = [
- "autocfg",
- "cfg-if 0.1.10",
- "crossbeam-utils 0.7.2",
- "lazy_static",
- "maybe-uninit",
- "memoffset 0.5.5",
- "scopeguard",
+ "cfg-if 1.0.0",
+ "crossbeam-utils",
]
[[package]]
-name = "crossbeam-queue"
-version = "0.2.3"
+name = "crossbeam-deque"
+version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "774ba60a54c213d409d5353bda12d49cd68d14e45036a285234c8d6f91f92570"
+checksum = "6455c0ca19f0d2fbf751b908d5c55c1f5cbc65e03c4225427254b46890bdde1e"
dependencies = [
- "cfg-if 0.1.10",
- "crossbeam-utils 0.7.2",
- "maybe-uninit",
+ "cfg-if 1.0.0",
+ "crossbeam-epoch",
+ "crossbeam-utils",
]
[[package]]
-name = "crossbeam-utils"
-version = "0.7.2"
+name = "crossbeam-epoch"
+version = "0.9.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8"
+checksum = "4ec02e091aa634e2c3ada4a392989e7c3116673ef0ac5b72232439094d73b7fd"
dependencies = [
- "autocfg",
- "cfg-if 0.1.10",
+ "cfg-if 1.0.0",
+ "crossbeam-utils",
"lazy_static",
+ "memoffset",
+ "scopeguard",
]
[[package]]
name = "crossbeam-utils"
-version = "0.8.1"
+version = "0.8.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "02d96d1e189ef58269ebe5b97953da3274d83a93af647c2ddd6f9dab28cedb8d"
+checksum = "d82cfc11ce7f2c3faef78d8a684447b40d503d9681acebed6cb728d45940c4db"
dependencies = [
- "autocfg",
"cfg-if 1.0.0",
"lazy_static",
]
@@ -1365,7 +1322,7 @@
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4434400df11d95d556bac068ddfedd482915eb18fe8bea89bc80b6e4b1c179e5"
dependencies = [
- "generic-array 0.12.3",
+ "generic-array 0.12.4",
"subtle 1.0.0",
]
@@ -1380,19 +1337,29 @@
]
[[package]]
+name = "crypto-mac"
+version = "0.11.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b1d1a86f49236c215f271d40892d5fc950490551400b02ef360692c29815c714"
+dependencies = [
+ "generic-array 0.14.4",
+ "subtle 2.4.1",
+]
+
+[[package]]
name = "ct-logs"
-version = "0.7.0"
+version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8c8e13110a84b6315df212c045be706af261fd364791cad863285439ebba672e"
+checksum = "c1a816186fa68d9e426e3cb4ae4dff1fcd8e4a2c34b781bf7a822574a0d0aac8"
dependencies = [
"sct",
]
[[package]]
name = "ctor"
-version = "0.1.16"
+version = "0.1.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7fbaabec2c953050352311293be5c6aba8e141ba19d6811862b232d6fd020484"
+checksum = "ccc0a48a9b826acdf4028595adc9db92caea352f7af011a3034acd172a52a0aa"
dependencies = [
"quote",
"syn",
@@ -1421,7 +1388,7 @@
[[package]]
name = "cumulus-client-cli"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.10#870b214693856e768ba482fe2d3b9a83b24e4540"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
dependencies = [
"sc-cli",
"sc-service",
@@ -1431,7 +1398,7 @@
[[package]]
name = "cumulus-client-collator"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.10#870b214693856e768ba482fe2d3b9a83b24e4540"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
dependencies = [
"cumulus-client-consensus-common",
"cumulus-client-network",
@@ -1447,7 +1414,6 @@
"sp-api",
"sp-consensus",
"sp-core",
- "sp-io",
"sp-runtime",
"tracing",
]
@@ -1455,14 +1421,13 @@
[[package]]
name = "cumulus-client-consensus-aura"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.10#870b214693856e768ba482fe2d3b9a83b24e4540"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
dependencies = [
"async-trait",
"cumulus-client-consensus-common",
"cumulus-primitives-core",
"futures 0.3.17",
"parity-scale-codec",
- "parking_lot 0.10.2",
"polkadot-client",
"sc-client-api",
"sc-consensus",
@@ -1486,32 +1451,27 @@
[[package]]
name = "cumulus-client-consensus-common"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.10#870b214693856e768ba482fe2d3b9a83b24e4540"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
dependencies = [
"async-trait",
"dyn-clone",
"futures 0.3.17",
"parity-scale-codec",
"polkadot-primitives",
- "polkadot-runtime",
"sc-client-api",
"sc-consensus",
"sp-api",
- "sp-block-builder",
"sp-blockchain",
"sp-consensus",
- "sp-core",
- "sp-inherents",
"sp-runtime",
"sp-trie",
- "substrate-prometheus-endpoint",
"tracing",
]
[[package]]
name = "cumulus-client-network"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.10#870b214693856e768ba482fe2d3b9a83b24e4540"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
dependencies = [
"derive_more",
"futures 0.3.17",
@@ -1522,7 +1482,6 @@
"polkadot-node-primitives",
"polkadot-parachain",
"polkadot-primitives",
- "polkadot-statement-table",
"sc-client-api",
"sp-api",
"sp-blockchain",
@@ -1535,7 +1494,7 @@
[[package]]
name = "cumulus-client-pov-recovery"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.10#870b214693856e768ba482fe2d3b9a83b24e4540"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
dependencies = [
"cumulus-primitives-core",
"futures 0.3.17",
@@ -1550,7 +1509,6 @@
"sc-consensus",
"sp-api",
"sp-consensus",
- "sp-core",
"sp-maybe-compressed-blob",
"sp-runtime",
"tracing",
@@ -1559,7 +1517,7 @@
[[package]]
name = "cumulus-client-service"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.10#870b214693856e768ba482fe2d3b9a83b24e4540"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
dependencies = [
"cumulus-client-collator",
"cumulus-client-consensus-common",
@@ -1588,13 +1546,14 @@
[[package]]
name = "cumulus-pallet-aura-ext"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.10#870b214693856e768ba482fe2d3b9a83b24e4540"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
dependencies = [
"frame-executive",
"frame-support",
"frame-system",
"pallet-aura",
"parity-scale-codec",
+ "scale-info",
"serde",
"sp-application-crypto",
"sp-consensus-aura",
@@ -1605,15 +1564,14 @@
[[package]]
name = "cumulus-pallet-dmp-queue"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.10#870b214693856e768ba482fe2d3b9a83b24e4540"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
dependencies = [
"cumulus-primitives-core",
"frame-support",
"frame-system",
"log",
"parity-scale-codec",
- "rand 0.8.4",
- "rand_chacha 0.3.1",
+ "scale-info",
"sp-io",
"sp-runtime",
"sp-std",
@@ -1624,7 +1582,7 @@
[[package]]
name = "cumulus-pallet-parachain-system"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.10#870b214693856e768ba482fe2d3b9a83b24e4540"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
dependencies = [
"cumulus-pallet-parachain-system-proc-macro",
"cumulus-primitives-core",
@@ -1636,6 +1594,7 @@
"pallet-balances",
"parity-scale-codec",
"polkadot-parachain",
+ "scale-info",
"serde",
"sp-core",
"sp-externalities",
@@ -1652,9 +1611,9 @@
[[package]]
name = "cumulus-pallet-parachain-system-proc-macro"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.10#870b214693856e768ba482fe2d3b9a83b24e4540"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
dependencies = [
- "proc-macro-crate 1.0.0",
+ "proc-macro-crate 1.1.0",
"proc-macro2",
"quote",
"syn",
@@ -1663,12 +1622,13 @@
[[package]]
name = "cumulus-pallet-xcm"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.10#870b214693856e768ba482fe2d3b9a83b24e4540"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
dependencies = [
"cumulus-primitives-core",
"frame-support",
"frame-system",
"parity-scale-codec",
+ "scale-info",
"serde",
"sp-io",
"sp-runtime",
@@ -1679,15 +1639,15 @@
[[package]]
name = "cumulus-pallet-xcmp-queue"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.10#870b214693856e768ba482fe2d3b9a83b24e4540"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
dependencies = [
"cumulus-primitives-core",
"frame-support",
"frame-system",
"log",
"parity-scale-codec",
- "rand 0.8.4",
"rand_chacha 0.3.1",
+ "scale-info",
"sp-runtime",
"sp-std",
"xcm",
@@ -1697,7 +1657,7 @@
[[package]]
name = "cumulus-primitives-core"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.10#870b214693856e768ba482fe2d3b9a83b24e4540"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
dependencies = [
"frame-support",
"impl-trait-for-tuples 0.2.1",
@@ -1709,13 +1669,12 @@
"sp-runtime",
"sp-std",
"sp-trie",
- "xcm",
]
[[package]]
name = "cumulus-primitives-parachain-inherent"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.10#870b214693856e768ba482fe2d3b9a83b24e4540"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
dependencies = [
"async-trait",
"cumulus-primitives-core",
@@ -1723,6 +1682,7 @@
"parity-scale-codec",
"polkadot-client",
"sc-client-api",
+ "scale-info",
"sp-api",
"sp-core",
"sp-inherents",
@@ -1736,7 +1696,7 @@
[[package]]
name = "cumulus-primitives-timestamp"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.10#870b214693856e768ba482fe2d3b9a83b24e4540"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
dependencies = [
"cumulus-primitives-core",
"sp-inherents",
@@ -1747,11 +1707,10 @@
[[package]]
name = "cumulus-primitives-utility"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.10#870b214693856e768ba482fe2d3b9a83b24e4540"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
dependencies = [
"cumulus-primitives-core",
"frame-support",
- "impl-trait-for-tuples 0.2.1",
"parity-scale-codec",
"polkadot-core-primitives",
"polkadot-parachain",
@@ -1765,7 +1724,7 @@
[[package]]
name = "cumulus-test-relay-sproof-builder"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.10#870b214693856e768ba482fe2d3b9a83b24e4540"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
dependencies = [
"cumulus-primitives-core",
"parity-scale-codec",
@@ -1777,9 +1736,9 @@
[[package]]
name = "curve25519-dalek"
-version = "2.1.0"
+version = "2.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5d85653f070353a16313d0046f173f70d1aadd5b42600a14de626f0dfb3473a5"
+checksum = "4a9b85542f99a2dfa2a1b8e192662741c9859a846b296bef1c92ef9b58b5a216"
dependencies = [
"byteorder",
"digest 0.8.1",
@@ -1790,9 +1749,9 @@
[[package]]
name = "curve25519-dalek"
-version = "3.0.0"
+version = "3.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c8492de420e9e60bc9a1d66e2dbb91825390b738a388606600663fc529b4b307"
+checksum = "0b9fdf9972b2bd6af2d913799d9ebc165ea4d2e65878e329d9c6b372c4491b61"
dependencies = [
"byteorder",
"digest 0.9.0",
@@ -1844,9 +1803,9 @@
[[package]]
name = "data-encoding-macro"
-version = "0.1.10"
+version = "0.1.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0a94feec3d2ba66c0b6621bca8bc6f68415b1e5c69af3586fdd0af9fd9f29b17"
+checksum = "86927b7cd2fe88fa698b87404b287ab98d1a0063a34071d92e575b72d3029aca"
dependencies = [
"data-encoding",
"data-encoding-macro-internal",
@@ -1854,9 +1813,9 @@
[[package]]
name = "data-encoding-macro-internal"
-version = "0.1.9"
+version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f0f83e699727abca3c56e187945f303389590305ab2f0185ea445aa66e8d5f2a"
+checksum = "a5bbed42daaa95e780b60a50546aa345b8413a1e46f9a40a12907d3598f038db"
dependencies = [
"data-encoding",
"syn",
@@ -1875,13 +1834,14 @@
[[package]]
name = "derive_more"
-version = "0.99.14"
+version = "0.99.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5cc7b9cef1e351660e5443924e4f43ab25fbbed3e9a5f052df3677deb4d6b320"
+checksum = "40eebddd2156ce1bb37b20bbe5151340a31828b1f2d22ba4141f3531710e38df"
dependencies = [
"convert_case",
"proc-macro2",
"quote",
+ "rustc_version 0.3.3",
"syn",
]
@@ -1891,7 +1851,7 @@
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f3d0c8c8752312f9713efd397ff63acb9f85585afbf179282e720e7704954dd5"
dependencies = [
- "generic-array 0.12.3",
+ "generic-array 0.12.4",
]
[[package]]
@@ -1905,9 +1865,9 @@
[[package]]
name = "directories"
-version = "3.0.1"
+version = "3.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f8fed639d60b58d0f53498ab13d26f621fd77569cc6edb031f4cc36a2ad9da0f"
+checksum = "e69600ff1703123957937708eb27f7a564e48885c537782722ed0ba3189ce1d7"
dependencies = [
"dirs-sys",
]
@@ -1924,12 +1884,12 @@
[[package]]
name = "dirs-sys"
-version = "0.3.5"
+version = "0.3.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8e93d7f5705de3e49895a2b5e0b8855a1c27f080192ae9c32a6432d50741a57a"
+checksum = "03d86534ed367a67548dc68113a0f5db55432fdfbb6e6f9d77704397d95d5780"
dependencies = [
"libc",
- "redox_users 0.3.4",
+ "redox_users",
"winapi 0.3.9",
]
@@ -1940,7 +1900,7 @@
checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d"
dependencies = [
"libc",
- "redox_users 0.4.0",
+ "redox_users",
"winapi 0.3.9",
]
@@ -1989,9 +1949,9 @@
[[package]]
name = "ed25519"
-version = "1.0.1"
+version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bf038a7b6fd7ef78ad3348b63f3a17550877b0e28f8d68bcc94894d1412158bc"
+checksum = "4620d40f6d2601794401d6dd95a5cf69b6c157852539470eeda433a99b3c0efc"
dependencies = [
"signature",
]
@@ -2002,19 +1962,19 @@
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c762bae6dcaf24c4c84667b8579785430908723d5c889f469d76a41d59cc7a9d"
dependencies = [
- "curve25519-dalek 3.0.0",
+ "curve25519-dalek 3.2.0",
"ed25519",
"rand 0.7.3",
"serde",
- "sha2 0.9.2",
+ "sha2 0.9.8",
"zeroize",
]
[[package]]
name = "either"
-version = "1.6.0"
+version = "1.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cd56b59865bce947ac5958779cfa508f6c3b9497cc762b7e24a12d11ccde2c4f"
+checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457"
[[package]]
name = "enum-as-inner"
@@ -2074,12 +2034,12 @@
[[package]]
name = "env_logger"
-version = "0.8.4"
+version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a19187fea3ac7e84da7dacf48de0c45d63c6a76f9490dae389aead16c243fce3"
+checksum = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3"
dependencies = [
"atty",
- "humantime 2.0.1",
+ "humantime 2.1.0",
"log",
"regex",
"termcolor",
@@ -2093,18 +2053,18 @@
[[package]]
name = "erased-serde"
-version = "0.3.12"
+version = "0.3.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6ca8b296792113e1500fd935ae487be6e00ce318952a6880555554824d6ebf38"
+checksum = "3de9ad4541d99dc22b59134e7ff8dc3d6c988c89ecd7324bf10a8362b07a2afa"
dependencies = [
"serde",
]
[[package]]
name = "errno"
-version = "0.2.5"
+version = "0.2.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b480f641ccf0faf324e20c1d3e53d81b7484c698b42ea677f6907ae4db195371"
+checksum = "fa68f2fb9cae9d37c9b2b3584aba698a2e97f72d7aef7b9f7aa71d8b54ce46fe"
dependencies = [
"errno-dragonfly",
"libc",
@@ -2113,41 +2073,42 @@
[[package]]
name = "errno-dragonfly"
-version = "0.1.1"
+version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "14ca354e36190500e1e1fb267c647932382b54053c50b14970856c0b00a35067"
+checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf"
dependencies = [
- "gcc",
+ "cc",
"libc",
]
[[package]]
name = "ethbloom"
-version = "0.11.0"
+version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "779864b9c7f7ead1f092972c3257496c6a84b46dba2ce131dd8a282cb2cc5972"
+checksum = "bfb684ac8fa8f6c5759f788862bb22ec6fe3cb392f6bfd08e3c64b603661e3f8"
dependencies = [
"crunchy",
"fixed-hash",
"impl-codec",
"impl-rlp",
"impl-serde",
+ "scale-info",
"tiny-keccak",
]
[[package]]
name = "ethereum"
version = "0.9.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4a67be3eaf296ef668733f54c637e84d0ca34eaf194f0077455135981ad464c3"
+source = "git+https://github.com/purestake/ethereum?branch=joshy-scale-info#fab6ad1d9c388de2fe6ac137a71e39bdd699555c"
dependencies = [
- "bytes 1.0.1",
+ "bytes 1.1.0",
"ethereum-types",
"hash-db",
"hash256-std-hasher",
"parity-scale-codec",
"rlp",
"rlp-derive",
+ "scale-info",
"serde",
"sha3 0.9.1",
"triehash",
@@ -2155,9 +2116,9 @@
[[package]]
name = "ethereum-types"
-version = "0.12.0"
+version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0dd6bde671199089e601e8d47e153368b893ef885f11f365a3261ec58153c211"
+checksum = "05136f7057fe789f06e6d41d07b34e6f70d8c86e5693b60f97aaa6553553bdaf"
dependencies = [
"ethbloom",
"fixed-hash",
@@ -2165,6 +2126,7 @@
"impl-rlp",
"impl-serde",
"primitive-types 0.10.1",
+ "scale-info",
"uint",
]
@@ -2177,7 +2139,7 @@
[[package]]
name = "evm"
version = "0.30.0"
-source = "git+https://github.com/uniquenetwork/evm.git?branch=precompile-output-parachain#d126c98ab2606bdf1ec1ad90b6d59c024d000b29"
+source = "git+https://github.com/uniquenetwork/evm.git?branch=precompile-output-parachain#bed08923a76339880e05df25a52c5334e9997bb2"
dependencies = [
"environmental",
"ethereum",
@@ -2188,6 +2150,7 @@
"parity-scale-codec",
"primitive-types 0.10.1",
"rlp",
+ "scale-info",
"serde",
"sha3 0.8.2",
]
@@ -2221,18 +2184,19 @@
[[package]]
name = "evm-core"
version = "0.30.0"
-source = "git+https://github.com/uniquenetwork/evm.git?branch=precompile-output-parachain#d126c98ab2606bdf1ec1ad90b6d59c024d000b29"
+source = "git+https://github.com/uniquenetwork/evm.git?branch=precompile-output-parachain#bed08923a76339880e05df25a52c5334e9997bb2"
dependencies = [
"funty",
"parity-scale-codec",
"primitive-types 0.10.1",
+ "scale-info",
"serde",
]
[[package]]
name = "evm-gasometer"
version = "0.30.0"
-source = "git+https://github.com/uniquenetwork/evm.git?branch=precompile-output-parachain#d126c98ab2606bdf1ec1ad90b6d59c024d000b29"
+source = "git+https://github.com/uniquenetwork/evm.git?branch=precompile-output-parachain#bed08923a76339880e05df25a52c5334e9997bb2"
dependencies = [
"environmental",
"evm-core",
@@ -2243,7 +2207,7 @@
[[package]]
name = "evm-runtime"
version = "0.30.0"
-source = "git+https://github.com/uniquenetwork/evm.git?branch=precompile-output-parachain#d126c98ab2606bdf1ec1ad90b6d59c024d000b29"
+source = "git+https://github.com/uniquenetwork/evm.git?branch=precompile-output-parachain#bed08923a76339880e05df25a52c5334e9997bb2"
dependencies = [
"environmental",
"evm-core",
@@ -2258,31 +2222,9 @@
checksum = "e43f2f1833d64e33f15592464d6fdd70f349dda7b1a53088eb83cd94014008c5"
dependencies = [
"futures 0.3.17",
-]
-
-[[package]]
-name = "failure"
-version = "0.1.8"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d32e9bd16cc02eae7db7ef620b392808b89f6a5e16bb3497d159c6b92a0f4f86"
-dependencies = [
- "backtrace",
- "failure_derive",
]
[[package]]
-name = "failure_derive"
-version = "0.1.8"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "aa4da3c766cd7a0db8242e326e9e4e081edd567072893ed320008189715366a4"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
- "synstructure",
-]
-
-[[package]]
name = "fake-simd"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -2296,9 +2238,9 @@
[[package]]
name = "fastrand"
-version = "1.4.0"
+version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ca5faf057445ce5c9d4329e382b2ce7ca38550ef3b73a5348362d5f24e0c7fe3"
+checksum = "b394ed3d285a429378d3b384b9eb1285267e7df4b166df24b7a6939a04dc392e"
dependencies = [
"instant",
]
@@ -2306,7 +2248,7 @@
[[package]]
name = "fc-consensus"
version = "2.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.10#b29eda34046c70fdc3f03c2b0610d5ab08289556"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.11#0d4130cc9fdf3639e41f57dc642bc0acb304fae2"
dependencies = [
"async-trait",
"derive_more",
@@ -2333,11 +2275,11 @@
[[package]]
name = "fc-db"
version = "2.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.10#b29eda34046c70fdc3f03c2b0610d5ab08289556"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.11#0d4130cc9fdf3639e41f57dc642bc0acb304fae2"
dependencies = [
"fp-storage",
"kvdb",
- "kvdb-rocksdb 0.14.0",
+ "kvdb-rocksdb",
"pallet-ethereum",
"parity-scale-codec",
"parking_lot 0.11.2",
@@ -2349,7 +2291,7 @@
[[package]]
name = "fc-mapping-sync"
version = "2.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.10#b29eda34046c70fdc3f03c2b0610d5ab08289556"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.11#0d4130cc9fdf3639e41f57dc642bc0acb304fae2"
dependencies = [
"fc-consensus",
"fc-db",
@@ -2367,7 +2309,7 @@
[[package]]
name = "fc-rpc"
version = "2.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.10#b29eda34046c70fdc3f03c2b0610d5ab08289556"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.11#0d4130cc9fdf3639e41f57dc642bc0acb304fae2"
dependencies = [
"ethereum",
"ethereum-types",
@@ -2381,8 +2323,8 @@
"fp-storage",
"futures 0.3.17",
"futures-util",
- "jsonrpc-core 15.1.0",
- "jsonrpc-pubsub 15.1.0",
+ "jsonrpc-core",
+ "jsonrpc-pubsub",
"libsecp256k1 0.3.5",
"log",
"pallet-ethereum",
@@ -2408,13 +2350,13 @@
[[package]]
name = "fc-rpc-core"
version = "1.1.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.10#b29eda34046c70fdc3f03c2b0610d5ab08289556"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.11#0d4130cc9fdf3639e41f57dc642bc0acb304fae2"
dependencies = [
"ethereum-types",
- "jsonrpc-core 15.1.0",
- "jsonrpc-core-client 14.2.0",
- "jsonrpc-derive 14.2.2",
- "jsonrpc-pubsub 15.1.0",
+ "jsonrpc-core",
+ "jsonrpc-core-client",
+ "jsonrpc-derive",
+ "jsonrpc-pubsub",
"rustc-hex",
"serde",
"serde_json",
@@ -2431,9 +2373,9 @@
[[package]]
name = "file-per-thread-logger"
-version = "0.1.3"
+version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8b3937f028664bd0e13df401ba49a4567ccda587420365823242977f06609ed1"
+checksum = "4fdbe0d94371f9ce939b555dd342d0686cc4c0cadbcd4b61d70af5ff97eb4126"
dependencies = [
"env_logger 0.7.1",
"log",
@@ -2441,9 +2383,9 @@
[[package]]
name = "finality-grandpa"
-version = "0.14.1"
+version = "0.14.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "74a1bfdcc776e63e49f741c7ce6116fa1b887e8ac2e3ccb14dd4aa113e54feb9"
+checksum = "e8ac3ff5224ef91f3c97e03eb1de2db82743427e91aaa5ac635f454f0b164f5a"
dependencies = [
"either",
"futures 0.3.17",
@@ -2452,6 +2394,7 @@
"num-traits",
"parity-scale-codec",
"parking_lot 0.11.2",
+ "scale-info",
]
[[package]]
@@ -2474,11 +2417,11 @@
[[package]]
name = "flate2"
-version = "1.0.16"
+version = "1.0.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "68c90b0fc46cf89d227cc78b40e494ff81287a92dd07631e5af0d06fe3cf885e"
+checksum = "1e6988e897c1c9c485f43b47a529cef42fde0547f9d8d41a7062518f1d8fc53f"
dependencies = [
- "cfg-if 0.1.10",
+ "cfg-if 1.0.0",
"crc32fast",
"libc",
"libz-sys",
@@ -2510,16 +2453,16 @@
[[package]]
name = "fork-tree"
version = "3.0.0"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"parity-scale-codec",
]
[[package]]
name = "form_urlencoded"
-version = "1.0.0"
+version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ece68d15c92e84fa4f19d3780f1294e5ca82a78a6d515f1efaabcc144688be00"
+checksum = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191"
dependencies = [
"matches",
"percent-encoding 2.1.0",
@@ -2528,7 +2471,7 @@
[[package]]
name = "fp-consensus"
version = "2.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.10#b29eda34046c70fdc3f03c2b0610d5ab08289556"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.11#0d4130cc9fdf3639e41f57dc642bc0acb304fae2"
dependencies = [
"ethereum",
"parity-scale-codec",
@@ -2542,11 +2485,12 @@
[[package]]
name = "fp-evm"
version = "3.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.10#b29eda34046c70fdc3f03c2b0610d5ab08289556"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.11#0d4130cc9fdf3639e41f57dc642bc0acb304fae2"
dependencies = [
"evm",
"impl-trait-for-tuples 0.1.3",
"parity-scale-codec",
+ "scale-info",
"serde",
"sp-core",
"sp-std",
@@ -2555,12 +2499,13 @@
[[package]]
name = "fp-rpc"
version = "3.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.10#b29eda34046c70fdc3f03c2b0610d5ab08289556"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.11#0d4130cc9fdf3639e41f57dc642bc0acb304fae2"
dependencies = [
"ethereum",
"ethereum-types",
"fp-evm",
"parity-scale-codec",
+ "scale-info",
"sp-api",
"sp-core",
"sp-io",
@@ -2571,12 +2516,12 @@
[[package]]
name = "fp-storage"
version = "2.0.0"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.10#b29eda34046c70fdc3f03c2b0610d5ab08289556"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.11#0d4130cc9fdf3639e41f57dc642bc0acb304fae2"
[[package]]
name = "frame-benchmarking"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-support",
"frame-system",
@@ -2584,6 +2529,7 @@
"log",
"parity-scale-codec",
"paste",
+ "scale-info",
"sp-api",
"sp-io",
"sp-runtime",
@@ -2595,7 +2541,7 @@
[[package]]
name = "frame-benchmarking-cli"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"Inflector",
"chrono",
@@ -2621,11 +2567,12 @@
[[package]]
name = "frame-election-provider-support"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-support",
"frame-system",
"parity-scale-codec",
+ "scale-info",
"sp-arithmetic",
"sp-npos-elections",
"sp-std",
@@ -2634,11 +2581,12 @@
[[package]]
name = "frame-executive"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-support",
"frame-system",
"parity-scale-codec",
+ "scale-info",
"sp-core",
"sp-io",
"sp-runtime",
@@ -2648,19 +2596,20 @@
[[package]]
name = "frame-metadata"
-version = "14.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+version = "14.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "96616f82e069102b95a72c87de4c84d2f87ef7f0f20630e78ce3824436483110"
dependencies = [
+ "cfg-if 1.0.0",
"parity-scale-codec",
+ "scale-info",
"serde",
- "sp-core",
- "sp-std",
]
[[package]]
name = "frame-support"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"bitflags",
"frame-metadata",
@@ -2670,8 +2619,9 @@
"once_cell",
"parity-scale-codec",
"paste",
+ "scale-info",
"serde",
- "smallvec 1.6.1",
+ "smallvec",
"sp-arithmetic",
"sp-core",
"sp-inherents",
@@ -2686,7 +2636,7 @@
[[package]]
name = "frame-support-procedural"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"Inflector",
"frame-support-procedural-tools",
@@ -2698,10 +2648,10 @@
[[package]]
name = "frame-support-procedural-tools"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-support-procedural-tools-derive",
- "proc-macro-crate 1.0.0",
+ "proc-macro-crate 1.1.0",
"proc-macro2",
"quote",
"syn",
@@ -2710,7 +2660,7 @@
[[package]]
name = "frame-support-procedural-tools-derive"
version = "3.0.0"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"proc-macro2",
"quote",
@@ -2720,12 +2670,12 @@
[[package]]
name = "frame-system"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-support",
- "impl-trait-for-tuples 0.2.1",
"log",
"parity-scale-codec",
+ "scale-info",
"serde",
"sp-core",
"sp-io",
@@ -2737,12 +2687,13 @@
[[package]]
name = "frame-system-benchmarking"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-benchmarking",
"frame-support",
"frame-system",
"parity-scale-codec",
+ "scale-info",
"sp-core",
"sp-runtime",
"sp-std",
@@ -2751,7 +2702,7 @@
[[package]]
name = "frame-system-rpc-runtime-api"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"parity-scale-codec",
"sp-api",
@@ -2760,10 +2711,9 @@
[[package]]
name = "frame-try-runtime"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-support",
- "parity-scale-codec",
"sp-api",
"sp-runtime",
"sp-std",
@@ -2771,9 +2721,9 @@
[[package]]
name = "fs-err"
-version = "2.5.0"
+version = "2.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bcd1163ae48bda72a20ae26d66a04d3094135cadab911cff418ae5e33f253431"
+checksum = "5ebd3504ad6116843b8375ad70df74e7bfe83cac77a1f3fe73200c844d43bfe0"
[[package]]
name = "fs-swap"
@@ -2798,12 +2748,6 @@
]
[[package]]
-name = "fuchsia-cprng"
-version = "0.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba"
-
-[[package]]
name = "fuchsia-zircon"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -2827,9 +2771,9 @@
[[package]]
name = "futures"
-version = "0.1.29"
+version = "0.1.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1b980f2816d6ee8673b6517b52cb0e808a180efc92e5c19d02cdda79066703ef"
+checksum = "3a471a38ef8ed83cd6e40aa59c1ffe17db6855c18e3604d9c4ed8c08ebc28678"
[[package]]
name = "futures"
@@ -2861,16 +2805,6 @@
version = "0.3.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "88d1c26957f23603395cd326b0ffe64124b818f4449552f960d815cfba83a53d"
-
-[[package]]
-name = "futures-cpupool"
-version = "0.1.8"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ab90cde24b3319636588d0c35fe03b1333857621051837ed769faefb4c2162e4"
-dependencies = [
- "futures 0.1.29",
- "num_cpus",
-]
[[package]]
name = "futures-executor"
@@ -2892,16 +2826,16 @@
[[package]]
name = "futures-lite"
-version = "1.11.3"
+version = "1.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b4481d0cd0de1d204a4fa55e7d45f07b1d958abcb06714b3446438e2eff695fb"
+checksum = "7694489acd39452c77daa48516b894c153f192c3578d5a839b62c58099fcbf48"
dependencies = [
"fastrand",
"futures-core",
"futures-io",
"memchr",
"parking",
- "pin-project-lite 0.2.4",
+ "pin-project-lite 0.2.7",
"waker-fn",
]
@@ -2925,7 +2859,7 @@
checksum = "3a1387e07917c711fb4ee4f48ea0adb04a3c9739e53ef85bf43ae1edc2937a8b"
dependencies = [
"futures-io",
- "rustls 0.19.1",
+ "rustls",
"webpki",
]
@@ -2960,7 +2894,7 @@
checksum = "36568465210a3a6ee45e1f165136d68671471a501e632e9a98d96872222b5481"
dependencies = [
"autocfg",
- "futures 0.1.29",
+ "futures 0.1.31",
"futures-channel",
"futures-core",
"futures-io",
@@ -2968,37 +2902,18 @@
"futures-sink",
"futures-task",
"memchr",
- "pin-project-lite 0.2.4",
+ "pin-project-lite 0.2.7",
"pin-utils",
"proc-macro-hack",
"proc-macro-nested",
"slab",
]
-
-[[package]]
-name = "gcc"
-version = "0.3.55"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8f5f3913fa0bfe7ee1fd8248b6b9f42a5af4b9d65ec2dd2c3c26132b950ecfc2"
[[package]]
-name = "generator"
-version = "0.6.23"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8cdc09201b2e8ca1b19290cf7e65de2246b8e91fb6874279722189c4de7b94dc"
-dependencies = [
- "cc",
- "libc",
- "log",
- "rustc_version 0.2.3",
- "winapi 0.3.9",
-]
-
-[[package]]
name = "generic-array"
-version = "0.12.3"
+version = "0.12.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c68f0274ae0e023facc3c97b2e00f076be70e254bc851d972503b328db79b2ec"
+checksum = "ffdf9f34f1447443d37393cc6c2b8313aebddcd96906caf34e54c68d8e57d7bd"
dependencies = [
"typenum",
]
@@ -3015,20 +2930,22 @@
[[package]]
name = "getrandom"
-version = "0.1.14"
+version = "0.1.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7abc8dd8451921606d809ba32e95b6111925cd2906060d2dcc29c070220503eb"
+checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce"
dependencies = [
- "cfg-if 0.1.10",
+ "cfg-if 1.0.0",
+ "js-sys",
"libc",
"wasi 0.9.0+wasi-snapshot-preview1",
+ "wasm-bindgen",
]
[[package]]
name = "getrandom"
-version = "0.2.1"
+version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4060f4657be78b8e766215b02b18a2e862d83745545de804638e2b545e81aee6"
+checksum = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753"
dependencies = [
"cfg-if 1.0.0",
"libc",
@@ -3047,15 +2964,9 @@
[[package]]
name = "gimli"
-version = "0.23.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f6503fe142514ca4799d4c26297c4248239fe8838d827db6bd6065c6ed29a6ce"
-
-[[package]]
-name = "gimli"
-version = "0.24.0"
+version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0e4075386626662786ddb0ec9081e7c7eeb1ba31951f447ca780ef9f5d568189"
+checksum = "f0a01e0497841a3b2db4f8afa483cce65f7e96a3498bd6c541734792aeac8fe7"
dependencies = [
"fallible-iterator",
"indexmap",
@@ -3070,9 +2981,9 @@
[[package]]
name = "globset"
-version = "0.4.5"
+version = "0.4.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7ad1da430bd7281dde2576f44c84cc3f0f7b475e7202cd503042dff01a8c8120"
+checksum = "10463d9ff00a2a068db14231982f5132edebad0d7660cd956a1c30292dbcbfbd"
dependencies = [
"aho-corasick",
"bstr",
@@ -3095,52 +3006,15 @@
]
[[package]]
-name = "h2"
-version = "0.1.26"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a5b34c246847f938a410a03c5458c7fee2274436675e76d8b903c08efc29c462"
-dependencies = [
- "byteorder",
- "bytes 0.4.12",
- "fnv",
- "futures 0.1.29",
- "http 0.1.21",
- "indexmap",
- "log",
- "slab",
- "string",
- "tokio-io",
-]
-
-[[package]]
-name = "h2"
-version = "0.2.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "79b7246d7e4b979c03fa093da39cfb3617a96bbeee6310af63991668d7e843ff"
-dependencies = [
- "bytes 0.5.6",
- "fnv",
- "futures-core",
- "futures-sink",
- "futures-util",
- "http 0.2.1",
- "indexmap",
- "log",
- "slab",
- "tokio 0.2.25",
- "tokio-util",
-]
-
-[[package]]
name = "handlebars"
-version = "3.5.1"
+version = "3.5.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2764f9796c0ddca4b82c07f25dd2cb3db30b9a8f47940e78e1c883d9e95c3db9"
+checksum = "4498fc115fa7d34de968184e473529abb40eeb6be8bc5f7faba3d08c316cb3e3"
dependencies = [
"log",
"pest",
"pest_derive",
- "quick-error 2.0.0",
+ "quick-error 2.0.1",
"serde",
"serde_json",
]
@@ -3171,18 +3045,18 @@
[[package]]
name = "heck"
-version = "0.3.1"
+version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "20564e78d53d2bb135c343b3f47714a56af2061f1c928fdb541dc7b9fdd94205"
+checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c"
dependencies = [
"unicode-segmentation",
]
[[package]]
name = "hermit-abi"
-version = "0.1.15"
+version = "0.1.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3deed196b6e7f9e44a2ae8d94225d80302d81208b1bb673fd21fe634645c85a9"
+checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
dependencies = [
"libc",
]
@@ -3226,13 +3100,23 @@
]
[[package]]
+name = "hmac"
+version = "0.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2a2a2320eb7ec0ebe8da8f744d7812d9fc4cb4d09344ac01898dbcb6a20ae69b"
+dependencies = [
+ "crypto-mac 0.11.1",
+ "digest 0.9.0",
+]
+
+[[package]]
name = "hmac-drbg"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c6e570451493f10f6581b48cdd530413b63ea9e780f544bfd3bdcaa0d89d1a7b"
dependencies = [
"digest 0.8.1",
- "generic-array 0.12.3",
+ "generic-array 0.12.4",
"hmac 0.7.1",
]
@@ -3260,70 +3144,37 @@
[[package]]
name = "http"
-version = "0.1.21"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d6ccf5ede3a895d8856620237b2f02972c1bbc78d2965ad7fe8838d4a0ed41f0"
-dependencies = [
- "bytes 0.4.12",
- "fnv",
- "itoa",
-]
-
-[[package]]
-name = "http"
-version = "0.2.1"
+version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "28d569972648b2c512421b5f2a405ad6ac9666547189d0c5477a3f200f3e02f9"
+checksum = "1323096b05d41827dadeaee54c9981958c0f94e670bc94ed80037d1a7b8b186b"
dependencies = [
- "bytes 0.5.6",
+ "bytes 1.1.0",
"fnv",
"itoa",
]
[[package]]
name = "http-body"
-version = "0.1.0"
+version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6741c859c1b2463a423a1dbce98d418e6c3c3fc720fb0d45528657320920292d"
+checksum = "399c583b2979440c60be0821a6199eca73bc3c8dcd9d070d75ac726e2c6186e5"
dependencies = [
- "bytes 0.4.12",
- "futures 0.1.29",
- "http 0.1.21",
- "tokio-buf",
-]
-
-[[package]]
-name = "http-body"
-version = "0.3.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "13d5ff830006f7646652e057693569bfe0d51760c0085a071769d142a205111b"
-dependencies = [
- "bytes 0.5.6",
- "http 0.2.1",
+ "bytes 1.1.0",
+ "http",
+ "pin-project-lite 0.2.7",
]
[[package]]
-name = "http-body"
-version = "0.4.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "60daa14be0e0786db0f03a9e57cb404c9d756eed2b6c62b9ea98ec5743ec75a9"
-dependencies = [
- "bytes 1.0.1",
- "http 0.2.1",
- "pin-project-lite 0.2.4",
-]
-
-[[package]]
name = "httparse"
-version = "1.3.4"
+version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cd179ae861f0c2e53da70d892f5f3029f9594be0c41dc5269cd371691b1dc2f9"
+checksum = "acd94fdbe1d4ff688b67b04eee2e17bd50995534a61539e45adfefb45e5e5503"
[[package]]
name = "httpdate"
-version = "0.3.2"
+version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "494b4d60369511e7dea41cf646832512a94e542f68bb9c49e54518e0f468eb47"
+checksum = "6456b8a6c8f33fee7d958fcd1b60d55b11940a79e63ae87013e6d22e26034440"
[[package]]
name = "humantime"
@@ -3336,101 +3187,47 @@
[[package]]
name = "humantime"
-version = "2.0.1"
+version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3c1ad908cc71012b7bea4d0c53ba96a8cba9962f048fa68d143376143d863b7a"
+checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
[[package]]
name = "hyper"
-version = "0.12.35"
+version = "0.14.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9dbe6ed1438e1f8ad955a4701e9a944938e9519f6888d12d8558b645e247d5f6"
+checksum = "15d1cfb9e4f68655fa04c01f59edb405b6074a0f7118ea881e5026e4a1cd8593"
dependencies = [
- "bytes 0.4.12",
- "futures 0.1.29",
- "futures-cpupool",
- "h2 0.1.26",
- "http 0.1.21",
- "http-body 0.1.0",
- "httparse",
- "iovec",
- "itoa",
- "log",
- "net2",
- "rustc_version 0.2.3",
- "time",
- "tokio 0.1.22",
- "tokio-buf",
- "tokio-executor",
- "tokio-io",
- "tokio-reactor",
- "tokio-tcp",
- "tokio-threadpool",
- "tokio-timer",
- "want 0.2.0",
-]
-
-[[package]]
-name = "hyper"
-version = "0.13.9"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f6ad767baac13b44d4529fcf58ba2cd0995e36e7b435bc5b039de6f47e880dbf"
-dependencies = [
- "bytes 0.5.6",
+ "bytes 1.1.0",
"futures-channel",
"futures-core",
"futures-util",
- "h2 0.2.5",
- "http 0.2.1",
- "http-body 0.3.1",
+ "http",
+ "http-body",
"httparse",
"httpdate",
"itoa",
- "pin-project 1.0.7",
- "socket2 0.3.17",
- "tokio 0.2.25",
+ "pin-project-lite 0.2.7",
+ "socket2 0.4.2",
+ "tokio 1.12.0",
"tower-service",
"tracing",
- "want 0.3.0",
-]
-
-[[package]]
-name = "hyper"
-version = "0.14.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8bf09f61b52cfcf4c00de50df88ae423d6c02354e385a86341133b5338630ad1"
-dependencies = [
- "bytes 1.0.1",
- "futures-channel",
- "futures-core",
- "futures-util",
- "http 0.2.1",
- "http-body 0.4.2",
- "httparse",
- "httpdate",
- "itoa",
- "pin-project 1.0.7",
- "tokio 1.6.1",
- "tower-service",
- "tracing",
- "want 0.3.0",
+ "want",
]
[[package]]
name = "hyper-rustls"
-version = "0.21.0"
+version = "0.22.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "37743cc83e8ee85eacfce90f2f4102030d9ff0a95244098d781e9bee4a90abb6"
+checksum = "5f9f7a97316d44c0af9b0301e65010573a853a9fc97046d7331d7f6bc0fd5a64"
dependencies = [
- "bytes 0.5.6",
"ct-logs",
"futures-util",
- "hyper 0.13.9",
+ "hyper",
"log",
- "rustls 0.18.0",
- "rustls-native-certs 0.4.0",
- "tokio 0.2.25",
- "tokio-rustls 0.14.0",
+ "rustls",
+ "rustls-native-certs",
+ "tokio 1.12.0",
+ "tokio-rustls",
"webpki",
]
@@ -3453,9 +3250,9 @@
[[package]]
name = "idna"
-version = "0.2.0"
+version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "02e2673c30ee86b5b96a9cb52ad15718aa1f966f5ab9ad54a8b95d5ca33120a9"
+checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8"
dependencies = [
"matches",
"unicode-bidi",
@@ -3464,9 +3261,9 @@
[[package]]
name = "if-addrs"
-version = "0.6.5"
+version = "0.6.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "28538916eb3f3976311f5dfbe67b5362d0add1293d0a9cad17debf86f8e3aa48"
+checksum = "c9a83ec4af652890ac713ffd8dc859e650420a5ef47f7b9be29b6664ab50fbc8"
dependencies = [
"if-addrs-sys",
"libc",
@@ -3485,9 +3282,9 @@
[[package]]
name = "if-watch"
-version = "0.2.0"
+version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6a6d52908d4ea4ab2bc22474ba149bf1011c8e2c3ebc1ff593ae28ac44f494b6"
+checksum = "ae8ab7f67bad3240049cb24fb9cb0b4c2c6af4c245840917fbbdededeee91179"
dependencies = [
"async-io",
"futures 0.3.17",
@@ -3570,15 +3367,18 @@
[[package]]
name = "integer-encoding"
-version = "1.1.5"
+version = "1.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4f4ebd0bd29be0f11973e9b3e219005661042a019fd757798c36a47c87852625"
+checksum = "48dc51180a9b377fd75814d0cc02199c20f8e99433d6762f650d39cdbbd3b56f"
[[package]]
name = "integer-sqrt"
-version = "0.1.3"
+version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f65877bf7d44897a473350b1046277941cee20b263397e90869c50b6e766088b"
+checksum = "276ec31bcb4a9ee45f58bec6f9ec700ae4cf4f4f8f2fa7e06cb406bd5ffdd770"
+dependencies = [
+ "num-traits",
+]
[[package]]
name = "intervalier"
@@ -3601,9 +3401,9 @@
[[package]]
name = "ip_network"
-version = "0.3.4"
+version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2ee15951c035f79eddbef745611ec962f63f4558f1dadf98ab723cc603487c6f"
+checksum = "09b746553d2f4a1ca26fab939943ddfb217a091f34f53571620a8e3d30691303"
[[package]]
name = "ipconfig"
@@ -3611,7 +3411,7 @@
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f7e2f18aece9709094573a9f24f483c4f65caa4298e2f7ae1b71cc65d853fad7"
dependencies = [
- "socket2 0.3.17",
+ "socket2 0.3.19",
"widestring",
"winapi 0.3.9",
"winreg",
@@ -3619,69 +3419,53 @@
[[package]]
name = "ipnet"
-version = "2.3.0"
+version = "2.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "47be2f14c678be2fdcab04ab1171db51b2762ce6f0a8ee87c8dd4a04ed216135"
+checksum = "68f2d64f2edebec4ce84ad108148e67e1064789bee435edc5b60ad398714a3a9"
[[package]]
name = "itertools"
-version = "0.10.0"
+version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "37d572918e350e82412fe766d24b15e6682fb2ed2bbe018280caa810397cb319"
+checksum = "69ddb889f9d0d08a67338271fa9b62996bc788c7796a5c18cf057420aaed5eaf"
dependencies = [
"either",
]
[[package]]
name = "itoa"
-version = "0.4.6"
+version = "0.4.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dc6f3ad7b9d11a0c00842ff8de1b60ee58661048eb8049ed33c73594f359d7e6"
+checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4"
[[package]]
name = "jobserver"
-version = "0.1.21"
+version = "0.1.24"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5c71313ebb9439f74b00d9d2dcec36440beaf57a6aa0623068441dd7cd81a7f2"
+checksum = "af25a77299a7f711a01975c35a6a424eb6862092cc2d6c72c4ed6cbc56dfc1fa"
dependencies = [
"libc",
]
[[package]]
name = "js-sys"
-version = "0.3.52"
+version = "0.3.55"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ce791b7ca6638aae45be056e068fc756d871eb3b3b10b8efa62d1c9cec616752"
+checksum = "7cc9ffccd38c451a86bf13657df244e9c3f37493cce8e5e21e940963777acc84"
dependencies = [
"wasm-bindgen",
]
[[package]]
name = "jsonrpc-client-transports"
-version = "14.2.1"
+version = "18.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2773fa94a2a1fd51efb89a8f45b8861023dbb415d18d3c9235ae9388d780f9ec"
+checksum = "d2b99d4207e2a04fb4581746903c2bb7eb376f88de9c699d0f3e10feeac0cd3a"
dependencies = [
- "failure",
- "futures 0.1.29",
- "jsonrpc-core 14.2.0",
- "jsonrpc-pubsub 14.2.0",
- "log",
- "serde",
- "serde_json",
- "url 1.7.2",
-]
-
-[[package]]
-name = "jsonrpc-client-transports"
-version = "15.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "489b9c612e60c766f751ab40fcb43cbb55a1e10bb44a9b4307ed510ca598cbd7"
-dependencies = [
- "failure",
- "futures 0.1.29",
- "jsonrpc-core 15.1.0",
- "jsonrpc-pubsub 15.1.0",
+ "derive_more",
+ "futures 0.3.17",
+ "jsonrpc-core",
+ "jsonrpc-pubsub",
"log",
"serde",
"serde_json",
@@ -3690,24 +3474,13 @@
[[package]]
name = "jsonrpc-core"
-version = "14.2.0"
+version = "18.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a0747307121ffb9703afd93afbd0fb4f854c38fb873f2c8b90e0e902f27c7b62"
+checksum = "14f7f76aef2d054868398427f6c54943cf3d1caa9a7ec7d0c38d69df97a965eb"
dependencies = [
- "futures 0.1.29",
- "log",
- "serde",
- "serde_derive",
- "serde_json",
-]
-
-[[package]]
-name = "jsonrpc-core"
-version = "15.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0745a6379e3edc893c84ec203589790774e4247420033e71a76d3ab4687991fa"
-dependencies = [
- "futures 0.1.29",
+ "futures 0.3.17",
+ "futures-executor",
+ "futures-util",
"log",
"serde",
"serde_derive",
@@ -3716,39 +3489,19 @@
[[package]]
name = "jsonrpc-core-client"
-version = "14.2.0"
+version = "18.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "34221123bc79b66279a3fde2d3363553835b43092d629b34f2e760c44dc94713"
-dependencies = [
- "jsonrpc-client-transports 14.2.1",
-]
-
-[[package]]
-name = "jsonrpc-core-client"
-version = "15.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6f764902d7b891344a0acb65625f32f6f7c6db006952143bd650209fbe7d94db"
+checksum = "b51da17abecbdab3e3d4f26b01c5ec075e88d3abe3ab3b05dc9aa69392764ec0"
dependencies = [
- "jsonrpc-client-transports 15.1.0",
-]
-
-[[package]]
-name = "jsonrpc-derive"
-version = "14.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d0e77e8812f02155b85a677a96e1d16b60181950c0636199bc4528524fba98dc"
-dependencies = [
- "proc-macro-crate 0.1.5",
- "proc-macro2",
- "quote",
- "syn",
+ "futures 0.3.17",
+ "jsonrpc-client-transports",
]
[[package]]
name = "jsonrpc-derive"
-version = "15.1.0"
+version = "18.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "99a847f9ec7bb52149b2786a17c9cb260d6effc6b8eeb8c16b343a487a7563a3"
+checksum = "5b939a78fa820cdfcb7ee7484466746a7377760970f6f9c6fe19f9edcc8a38d2"
dependencies = [
"proc-macro-crate 0.1.5",
"proc-macro2",
@@ -3758,98 +3511,92 @@
[[package]]
name = "jsonrpc-http-server"
-version = "15.1.0"
+version = "18.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4fb5c4513b7b542f42da107942b7b759f27120b5cc894729f88254b28dff44b7"
+checksum = "e1dea6e07251d9ce6a552abfb5d7ad6bc290a4596c8dcc3d795fae2bbdc1f3ff"
dependencies = [
- "hyper 0.12.35",
- "jsonrpc-core 15.1.0",
+ "futures 0.3.17",
+ "hyper",
+ "jsonrpc-core",
"jsonrpc-server-utils",
"log",
"net2",
- "parking_lot 0.10.2",
+ "parking_lot 0.11.2",
"unicase",
]
[[package]]
name = "jsonrpc-ipc-server"
-version = "15.1.0"
+version = "18.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cf50e53e4eea8f421a7316c5f63e395f7bc7c4e786a6dc54d76fab6ff7aa7ce7"
+checksum = "382bb0206323ca7cda3dcd7e245cea86d37d02457a02a975e3378fb149a48845"
dependencies = [
- "jsonrpc-core 15.1.0",
+ "futures 0.3.17",
+ "jsonrpc-core",
"jsonrpc-server-utils",
"log",
"parity-tokio-ipc",
- "parking_lot 0.10.2",
- "tokio-service",
-]
-
-[[package]]
-name = "jsonrpc-pubsub"
-version = "14.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2d44f5602a11d657946aac09357956d2841299ed422035edf140c552cb057986"
-dependencies = [
- "jsonrpc-core 14.2.0",
- "log",
- "parking_lot 0.10.2",
- "rand 0.7.3",
- "serde",
+ "parking_lot 0.11.2",
+ "tower-service",
]
[[package]]
name = "jsonrpc-pubsub"
-version = "15.1.0"
+version = "18.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "639558e0604013be9787ae52f798506ae42bf4220fe587bdc5625871cc8b9c77"
+checksum = "240f87695e6c6f62fb37f05c02c04953cf68d6408b8c1c89de85c7a0125b1011"
dependencies = [
- "jsonrpc-core 15.1.0",
+ "futures 0.3.17",
+ "jsonrpc-core",
+ "lazy_static",
"log",
- "parking_lot 0.10.2",
+ "parking_lot 0.11.2",
"rand 0.7.3",
"serde",
]
[[package]]
name = "jsonrpc-server-utils"
-version = "15.1.0"
+version = "18.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "72f1f3990650c033bd8f6bd46deac76d990f9bbfb5f8dc8c4767bf0a00392176"
+checksum = "fa4fdea130485b572c39a460d50888beb00afb3e35de23ccd7fad8ff19f0e0d4"
dependencies = [
- "bytes 0.4.12",
+ "bytes 1.1.0",
+ "futures 0.3.17",
"globset",
- "jsonrpc-core 15.1.0",
+ "jsonrpc-core",
"lazy_static",
"log",
- "tokio 0.1.22",
- "tokio-codec",
+ "tokio 1.12.0",
+ "tokio-stream",
+ "tokio-util",
"unicase",
]
[[package]]
name = "jsonrpc-ws-server"
-version = "15.1.0"
+version = "18.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6596fe75209b73a2a75ebe1dce4e60e03b88a2b25e8807b667597f6315150d22"
+checksum = "f892c7d766369475ab7b0669f417906302d7c0fb521285c0a0c92e52e7c8e946"
dependencies = [
- "jsonrpc-core 15.1.0",
+ "futures 0.3.17",
+ "jsonrpc-core",
"jsonrpc-server-utils",
"log",
"parity-ws",
- "parking_lot 0.10.2",
+ "parking_lot 0.11.2",
"slab",
]
[[package]]
name = "jsonrpsee-proc-macros"
-version = "0.3.0"
+version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f37924e16300e249a52a22cabb5632f846dc9760b39355f5e8bc70cd23dc6300"
+checksum = "8edb341d35279b59c79d7fe9e060a51aec29d45af99cc7c72ea7caa350fa71a4"
dependencies = [
"Inflector",
"bae",
- "proc-macro-crate 1.0.0",
+ "proc-macro-crate 1.1.0",
"proc-macro2",
"quote",
"syn",
@@ -3857,15 +3604,15 @@
[[package]]
name = "jsonrpsee-types"
-version = "0.3.0"
+version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d67724d368c59e08b557a516cf8fcc51100e7a708850f502e1044b151fe89788"
+checksum = "4cc738fd55b676ada3271ef7c383a14a0867a2a88b0fa941311bf5fc0a29d498"
dependencies = [
"async-trait",
"beef",
"futures-channel",
"futures-util",
- "hyper 0.14.5",
+ "hyper",
"log",
"serde",
"serde_json",
@@ -3875,26 +3622,26 @@
[[package]]
name = "jsonrpsee-ws-client"
-version = "0.3.0"
+version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8e2834b6e7f57ce9a4412ed4d6dc95125d2c8612e68f86b9d9a07369164e4198"
+checksum = "9841352dbecf4c2ed5dc71698df9f1660262ae4e0b610e968602529bdbcf7b30"
dependencies = [
"async-trait",
"fnv",
"futures 0.3.17",
"jsonrpsee-types",
"log",
- "pin-project 1.0.7",
- "rustls 0.19.1",
- "rustls-native-certs 0.5.0",
+ "pin-project 1.0.8",
+ "rustls",
+ "rustls-native-certs",
"serde",
"serde_json",
"soketto 0.6.0",
"thiserror",
- "tokio 0.2.25",
- "tokio-rustls 0.15.0",
+ "tokio 1.12.0",
+ "tokio-rustls",
"tokio-util",
- "url 2.2.0",
+ "url 2.2.2",
]
[[package]]
@@ -3915,11 +3662,11 @@
[[package]]
name = "kusama-runtime"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"beefy-primitives",
- "bitvec 0.20.1",
+ "bitvec 0.20.4",
"frame-benchmarking",
"frame-election-provider-support",
"frame-executive",
@@ -3933,6 +3680,7 @@
"pallet-authority-discovery",
"pallet-authorship",
"pallet-babe",
+ "pallet-bags-list",
"pallet-balances",
"pallet-bounties",
"pallet-collective",
@@ -3971,9 +3719,10 @@
"polkadot-runtime-common",
"polkadot-runtime-parachains",
"rustc-hex",
+ "scale-info",
"serde",
"serde_derive",
- "smallvec 1.6.1",
+ "smallvec",
"sp-api",
"sp-arithmetic",
"sp-authority-discovery",
@@ -4013,7 +3762,7 @@
checksum = "45a3f58dc069ec0e205a27f5b45920722a46faed802a0541538241af6228f512"
dependencies = [
"parity-util-mem",
- "smallvec 1.6.1",
+ "smallvec",
]
[[package]]
@@ -4029,24 +3778,6 @@
[[package]]
name = "kvdb-rocksdb"
-version = "0.12.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "431ca65516efab86e65d96281f750ebb54277dec656fcf6c027f3d1c0cb69e4c"
-dependencies = [
- "fs-swap",
- "kvdb",
- "log",
- "num_cpus",
- "owning_ref",
- "parity-util-mem",
- "parking_lot 0.11.2",
- "regex",
- "rocksdb 0.16.0",
- "smallvec 1.6.1",
-]
-
-[[package]]
-name = "kvdb-rocksdb"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9b1b6ea8f2536f504b645ad78419c8246550e19d2c3419a167080ce08edee35a"
@@ -4059,8 +3790,8 @@
"parity-util-mem",
"parking_lot 0.11.2",
"regex",
- "rocksdb 0.17.0",
- "smallvec 1.6.1",
+ "rocksdb",
+ "smallvec",
]
[[package]]
@@ -4071,9 +3802,9 @@
[[package]]
name = "lazycell"
-version = "1.2.1"
+version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b294d6fa9ee409a054354afc4352b0b9ef7ca222c69b8812cbea9e7d2bf3783f"
+checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
[[package]]
name = "libc"
@@ -4114,7 +3845,7 @@
checksum = "9004c06878ef8f3b4b4067e69a140d87ed20bf777287f82223e49713b36ee433"
dependencies = [
"atomic",
- "bytes 1.0.1",
+ "bytes 1.1.0",
"futures 0.3.17",
"lazy_static",
"libp2p-core",
@@ -4141,8 +3872,8 @@
"libp2p-yamux",
"multiaddr",
"parking_lot 0.11.2",
- "pin-project 1.0.7",
- "smallvec 1.6.1",
+ "pin-project 1.0.8",
+ "smallvec",
"wasm-timer",
]
@@ -4166,14 +3897,14 @@
"multihash 0.14.0",
"multistream-select",
"parking_lot 0.11.2",
- "pin-project 1.0.7",
+ "pin-project 1.0.8",
"prost",
"prost-build",
"rand 0.7.3",
"ring",
"rw-stream-sink",
- "sha2 0.9.2",
- "smallvec 1.6.1",
+ "sha2 0.9.8",
+ "smallvec",
"thiserror",
"unsigned-varint 0.7.0",
"void",
@@ -4201,7 +3932,7 @@
"futures 0.3.17",
"libp2p-core",
"log",
- "smallvec 1.6.1",
+ "smallvec",
"trust-dns-resolver",
]
@@ -4220,7 +3951,7 @@
"prost",
"prost-build",
"rand 0.7.3",
- "smallvec 1.6.1",
+ "smallvec",
]
[[package]]
@@ -4232,7 +3963,7 @@
"asynchronous-codec 0.6.0",
"base64 0.13.0",
"byteorder",
- "bytes 1.0.1",
+ "bytes 1.1.0",
"fnv",
"futures 0.3.17",
"hex_fmt",
@@ -4243,8 +3974,8 @@
"prost-build",
"rand 0.7.3",
"regex",
- "sha2 0.9.2",
- "smallvec 1.6.1",
+ "sha2 0.9.8",
+ "smallvec",
"unsigned-varint 0.7.0",
"wasm-timer",
]
@@ -4261,7 +3992,7 @@
"log",
"prost",
"prost-build",
- "smallvec 1.6.1",
+ "smallvec",
"wasm-timer",
]
@@ -4273,7 +4004,7 @@
dependencies = [
"arrayvec 0.5.2",
"asynchronous-codec 0.6.0",
- "bytes 1.0.1",
+ "bytes 1.1.0",
"either",
"fnv",
"futures 0.3.17",
@@ -4283,8 +4014,8 @@
"prost",
"prost-build",
"rand 0.7.3",
- "sha2 0.9.2",
- "smallvec 1.6.1",
+ "sha2 0.9.8",
+ "smallvec",
"uint",
"unsigned-varint 0.7.0",
"void",
@@ -4307,8 +4038,8 @@
"libp2p-swarm",
"log",
"rand 0.8.4",
- "smallvec 1.6.1",
- "socket2 0.4.0",
+ "smallvec",
+ "socket2 0.4.2",
"void",
]
@@ -4319,14 +4050,14 @@
checksum = "313d9ea526c68df4425f580024e67a9d3ffd49f2c33de5154b1f5019816f7a99"
dependencies = [
"asynchronous-codec 0.6.0",
- "bytes 1.0.1",
+ "bytes 1.1.0",
"futures 0.3.17",
"libp2p-core",
"log",
"nohash-hasher",
"parking_lot 0.11.2",
"rand 0.7.3",
- "smallvec 1.6.1",
+ "smallvec",
"unsigned-varint 0.7.0",
]
@@ -4336,8 +4067,8 @@
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3f1db7212f342b6ba7c981cc40e31f76e9e56cb48e65fa4c142ecaca5839523e"
dependencies = [
- "bytes 1.0.1",
- "curve25519-dalek 3.0.0",
+ "bytes 1.1.0",
+ "curve25519-dalek 3.2.0",
"futures 0.3.17",
"lazy_static",
"libp2p-core",
@@ -4345,7 +4076,7 @@
"prost",
"prost-build",
"rand 0.8.4",
- "sha2 0.9.2",
+ "sha2 0.9.8",
"snow",
"static_assertions",
"x25519-dalek",
@@ -4374,7 +4105,7 @@
checksum = "13b4783e5423870b9a5c199f65a7a3bc66d86ab56b2b9beebf3c338d889cf8e4"
dependencies = [
"asynchronous-codec 0.6.0",
- "bytes 1.0.1",
+ "bytes 1.1.0",
"futures 0.3.17",
"libp2p-core",
"log",
@@ -4392,7 +4123,7 @@
dependencies = [
"futures 0.3.17",
"log",
- "pin-project 1.0.7",
+ "pin-project 1.0.8",
"rand 0.7.3",
"salsa20",
"sha3 0.9.1",
@@ -4405,17 +4136,17 @@
checksum = "0133f6cfd81cdc16e716de2982e012c62e6b9d4f12e41967b3ee361051c622aa"
dependencies = [
"asynchronous-codec 0.6.0",
- "bytes 1.0.1",
+ "bytes 1.1.0",
"futures 0.3.17",
"futures-timer 3.0.2",
"libp2p-core",
"libp2p-swarm",
"log",
- "pin-project 1.0.7",
+ "pin-project 1.0.8",
"prost",
"prost-build",
"rand 0.7.3",
- "smallvec 1.6.1",
+ "smallvec",
"unsigned-varint 0.7.0",
"void",
"wasm-timer",
@@ -4428,7 +4159,7 @@
checksum = "06cdae44b6821466123af93cbcdec7c9e6ba9534a8af9cdc296446d39416d241"
dependencies = [
"async-trait",
- "bytes 1.0.1",
+ "bytes 1.1.0",
"futures 0.3.17",
"libp2p-core",
"libp2p-swarm",
@@ -4436,7 +4167,7 @@
"lru",
"minicbor",
"rand 0.7.3",
- "smallvec 1.6.1",
+ "smallvec",
"unsigned-varint 0.7.0",
"wasm-timer",
]
@@ -4452,7 +4183,7 @@
"libp2p-core",
"log",
"rand 0.7.3",
- "smallvec 1.6.1",
+ "smallvec",
"void",
"wasm-timer",
]
@@ -4481,7 +4212,7 @@
"libc",
"libp2p-core",
"log",
- "socket2 0.4.0",
+ "socket2 0.4.2",
]
[[package]]
@@ -4523,8 +4254,8 @@
"log",
"quicksink",
"rw-stream-sink",
- "soketto 0.4.1",
- "url 2.2.0",
+ "soketto 0.4.2",
+ "url 2.2.2",
"webpki-roots",
]
@@ -4579,12 +4310,12 @@
"base64 0.12.3",
"digest 0.9.0",
"hmac-drbg 0.3.0",
- "libsecp256k1-core",
- "libsecp256k1-gen-ecmult",
- "libsecp256k1-gen-genmult",
+ "libsecp256k1-core 0.2.2",
+ "libsecp256k1-gen-ecmult 0.2.1",
+ "libsecp256k1-gen-genmult 0.2.1",
"rand 0.7.3",
"serde",
- "sha2 0.9.2",
+ "sha2 0.9.8",
"typenum",
]
@@ -4598,12 +4329,31 @@
"base64 0.12.3",
"digest 0.9.0",
"hmac-drbg 0.3.0",
- "libsecp256k1-core",
- "libsecp256k1-gen-ecmult",
- "libsecp256k1-gen-genmult",
+ "libsecp256k1-core 0.2.2",
+ "libsecp256k1-gen-ecmult 0.2.1",
+ "libsecp256k1-gen-genmult 0.2.1",
"rand 0.7.3",
"serde",
- "sha2 0.9.2",
+ "sha2 0.9.8",
+ "typenum",
+]
+
+[[package]]
+name = "libsecp256k1"
+version = "0.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b0452aac8bab02242429380e9b2f94ea20cea2b37e2c1777a1358799bbe97f37"
+dependencies = [
+ "arrayref",
+ "base64 0.13.0",
+ "digest 0.9.0",
+ "hmac-drbg 0.3.0",
+ "libsecp256k1-core 0.3.0",
+ "libsecp256k1-gen-ecmult 0.3.0",
+ "libsecp256k1-gen-genmult 0.3.0",
+ "rand 0.8.4",
+ "serde",
+ "sha2 0.9.8",
"typenum",
]
@@ -4619,31 +4369,59 @@
]
[[package]]
+name = "libsecp256k1-core"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5be9b9bb642d8522a44d533eab56c16c738301965504753b03ad1de3425d5451"
+dependencies = [
+ "crunchy",
+ "digest 0.9.0",
+ "subtle 2.4.1",
+]
+
+[[package]]
name = "libsecp256k1-gen-ecmult"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ccab96b584d38fac86a83f07e659f0deafd0253dc096dab5a36d53efe653c5c3"
dependencies = [
- "libsecp256k1-core",
+ "libsecp256k1-core 0.2.2",
]
[[package]]
+name = "libsecp256k1-gen-ecmult"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3038c808c55c87e8a172643a7d87187fc6c4174468159cb3090659d55bcb4809"
+dependencies = [
+ "libsecp256k1-core 0.3.0",
+]
+
+[[package]]
name = "libsecp256k1-gen-genmult"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "67abfe149395e3aa1c48a2beb32b068e2334402df8181f818d3aee2b304c4f5d"
dependencies = [
- "libsecp256k1-core",
+ "libsecp256k1-core 0.2.2",
+]
+
+[[package]]
+name = "libsecp256k1-gen-genmult"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3db8d6ba2cec9eacc40e6e8ccc98931840301f1006e95647ceb2dd5c3aa06f7c"
+dependencies = [
+ "libsecp256k1-core 0.3.0",
]
[[package]]
name = "libz-sys"
-version = "1.0.25"
+version = "1.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2eb5e43362e38e2bca2fd5f5134c4d4564a23a5c28e9b95411652021a8675ebe"
+checksum = "de5435b8549c16d423ed0c03dbaafe57cf6c3344744f1242520d59c9d8ecec66"
dependencies = [
"cc",
- "libc",
"pkg-config",
"vcpkg",
]
@@ -4656,18 +4434,18 @@
[[package]]
name = "linked_hash_set"
-version = "0.1.3"
+version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3c7c91c4c7bbeb4f2f7c4e5be11e6a05bd6830bc37249c47ce1ad86ad453ff9c"
+checksum = "47186c6da4d81ca383c7c47c1bfc80f4b95f4720514d860a5407aaf4233f9588"
dependencies = [
"linked-hash-map",
]
[[package]]
name = "linregress"
-version = "0.4.3"
+version = "0.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e6e407dadb4ca4b31bc69c27aff00e7ca4534fdcee855159b039a7cebb5f395"
+checksum = "d6c601a85f5ecd1aba625247bca0031585fb1c446461b142878a16f8245ddeb8"
dependencies = [
"nalgebra",
"statrs",
@@ -4699,19 +4477,6 @@
dependencies = [
"cfg-if 1.0.0",
"value-bag",
-]
-
-[[package]]
-name = "loom"
-version = "0.3.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a0e8460f2f2121162705187214720353c517b97bdfb3494c0b1e33d83ebe4bed"
-dependencies = [
- "cfg-if 0.1.10",
- "generator",
- "scoped-tls",
- "serde",
- "serde_json",
]
[[package]]
@@ -4733,6 +4498,26 @@
]
[[package]]
+name = "lz4"
+version = "1.23.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "aac20ed6991e01bf6a2e68cc73df2b389707403662a8ba89f68511fb340f724c"
+dependencies = [
+ "libc",
+ "lz4-sys",
+]
+
+[[package]]
+name = "lz4-sys"
+version = "1.9.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dca79aa95d8b3226213ad454d328369853be3a1382d89532a854f4d69640acae"
+dependencies = [
+ "cc",
+ "libc",
+]
+
+[[package]]
name = "mach"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -4764,9 +4549,9 @@
[[package]]
name = "matches"
-version = "0.1.8"
+version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08"
+checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f"
[[package]]
name = "matrixmultiply"
@@ -4778,40 +4563,25 @@
]
[[package]]
-name = "maybe-uninit"
-version = "2.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00"
-
-[[package]]
name = "memchr"
-version = "2.3.3"
+version = "2.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3728d817d99e5ac407411fa471ff9800a778d88a24685968b36824eaf4bee400"
+checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a"
[[package]]
name = "memmap2"
-version = "0.2.0"
+version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e73be3b7d04a0123e933fea1d50d126cc7196bbc0362c0ce426694f777194eee"
+checksum = "723e3ebdcdc5c023db1df315364573789f8857c11b631a2fdfad7c00f5c046b4"
dependencies = [
"libc",
]
[[package]]
name = "memoffset"
-version = "0.5.5"
+version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c198b026e1bbf08a937e94c6c60f9ec4a2267f5b0d2eec9c1b21b061ce2be55f"
-dependencies = [
- "autocfg",
-]
-
-[[package]]
-name = "memoffset"
-version = "0.6.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "157b4208e3059a8f9e78d559edc658e13df41410cb3ae03979c83130067fdd87"
+checksum = "59accc507f1338036a0477ef61afdae33cde60840f4dfe481319ce3ad116ddf9"
dependencies = [
"autocfg",
]
@@ -4844,9 +4614,9 @@
[[package]]
name = "merlin"
-version = "2.0.0"
+version = "2.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c6feca46f4fa3443a01769d768727f10c10a20fdb65e52dc16a81f0c8269bb78"
+checksum = "4e261cf0f8b3c42ded9f7d2bb59dea03aa52bc8a1cbc7482f9fc3fd1229d3b42"
dependencies = [
"byteorder",
"keccak",
@@ -4856,12 +4626,14 @@
[[package]]
name = "metered-channel"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"derive_more",
"futures 0.3.17",
"futures-timer 3.0.2",
+ "thiserror",
+ "tracing",
]
[[package]]
@@ -4877,18 +4649,18 @@
[[package]]
name = "minicbor"
-version = "0.8.0"
+version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ea79ce4ab9f445ec6b71833a2290ac0a29c9dde0fa7cae4c481eecae021d9bd9"
+checksum = "51aa5bb0ca22415daca596a227b507f880ad1b2318a87fa9325312a5d285ca0d"
dependencies = [
"minicbor-derive",
]
[[package]]
name = "minicbor-derive"
-version = "0.6.2"
+version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "19ce18b5423c573a13e80cb3046ea0af6379ef725dc3af4886bdb8f4e5093068"
+checksum = "54999f917cd092b13904737e26631aa2b2b88d625db68e4bab461dcd8006c788"
dependencies = [
"proc-macro2",
"quote",
@@ -4897,11 +4669,12 @@
[[package]]
name = "miniz_oxide"
-version = "0.4.0"
+version = "0.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "be0f75932c1f6cfae3c04000e40114adf955636e19040f9c0a2c380702aa1c7f"
+checksum = "a92518e98c078586bc6c934028adcca4c92a53d6a958196de835170a01d84e4b"
dependencies = [
"adler",
+ "autocfg",
]
[[package]]
@@ -4924,38 +4697,28 @@
]
[[package]]
-name = "mio-extras"
-version = "2.0.6"
+name = "mio"
+version = "0.7.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "52403fe290012ce777c4626790c8951324a2b9e3316b3143779c72b029742f19"
+checksum = "8c2bdb6314ec10835cd3293dd268473a835c02b7b352e788be788b3c6ca6bb16"
dependencies = [
- "lazycell",
+ "libc",
"log",
- "mio",
- "slab",
-]
-
-[[package]]
-name = "mio-named-pipes"
-version = "0.1.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0840c1c50fd55e521b247f949c241c9997709f23bd7f023b9762cd561e935656"
-dependencies = [
- "log",
- "mio",
- "miow 0.3.5",
+ "miow 0.3.7",
+ "ntapi",
"winapi 0.3.9",
]
[[package]]
-name = "mio-uds"
-version = "0.6.8"
+name = "mio-extras"
+version = "2.0.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "afcb699eb26d4332647cc848492bbc15eafb26f08d0304550d5aa1f612e066f0"
+checksum = "52403fe290012ce777c4626790c8951324a2b9e3316b3143779c72b029742f19"
dependencies = [
- "iovec",
- "libc",
- "mio",
+ "lazycell",
+ "log",
+ "mio 0.6.23",
+ "slab",
]
[[package]]
@@ -4972,11 +4735,10 @@
[[package]]
name = "miow"
-version = "0.3.5"
+version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "07b88fb9795d4d36d62a012dfbf49a8f5cf12751f36d31a9dbe66d528e58979e"
+checksum = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21"
dependencies = [
- "socket2 0.3.17",
"winapi 0.3.9",
]
@@ -5001,7 +4763,7 @@
"serde",
"static_assertions",
"unsigned-varint 0.7.0",
- "url 2.2.0",
+ "url 2.2.2",
]
[[package]]
@@ -5017,9 +4779,9 @@
[[package]]
name = "multihash"
-version = "0.13.1"
+version = "0.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fb63389ee5fcd4df3f8727600f4a0c3df53c541f0ed4e8b50a9ae51a80fc1efe"
+checksum = "4dac63698b887d2d929306ea48b63760431ff8a24fac40ddb22f9c7f49fb7cab"
dependencies = [
"blake2b_simd",
"blake2s_simd",
@@ -5027,7 +4789,7 @@
"digest 0.9.0",
"generic-array 0.14.4",
"multihash-derive",
- "sha2 0.9.2",
+ "sha2 0.9.8",
"sha3 0.9.1",
"unsigned-varint 0.5.1",
]
@@ -5041,7 +4803,7 @@
"digest 0.9.0",
"generic-array 0.14.4",
"multihash-derive",
- "sha2 0.9.2",
+ "sha2 0.9.8",
"unsigned-varint 0.7.0",
]
@@ -5051,7 +4813,7 @@
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "424f6e86263cd5294cbd7f1e95746b95aca0e0d66bff31e5a40d6baa87b4aa99"
dependencies = [
- "proc-macro-crate 1.0.0",
+ "proc-macro-crate 1.1.0",
"proc-macro-error 1.0.4",
"proc-macro2",
"quote",
@@ -5061,22 +4823,22 @@
[[package]]
name = "multimap"
-version = "0.8.1"
+version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d8883adfde9756c1d30b0f519c9b8c502a94b41ac62f696453c37c7fc0a958ce"
+checksum = "e5ce46fe64a9d73be07dcbe690a38ce1b293be448fd8ce1e6c1b8062c9f72c6a"
[[package]]
name = "multistream-select"
-version = "0.10.0"
+version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "10ddc0eb0117736f19d556355464fc87efc8ad98b29e3fd84f02531eb6e90840"
+checksum = "7d91ec0a2440aaff5f78ec35631a7027d50386c6163aa975f7caa0d5da4b6ff8"
dependencies = [
- "bytes 1.0.1",
+ "bytes 1.1.0",
"futures 0.3.17",
"log",
- "pin-project 1.0.7",
- "smallvec 1.6.1",
- "unsigned-varint 0.6.0",
+ "pin-project 1.0.8",
+ "smallvec",
+ "unsigned-varint 0.7.0",
]
[[package]]
@@ -5110,21 +4872,11 @@
[[package]]
name = "names"
-version = "0.11.0"
+version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ef320dab323286b50fb5cdda23f61c796a72a89998ab565ca32525c5c556f2da"
-dependencies = [
- "rand 0.3.23",
-]
-
-[[package]]
-name = "nb-connect"
-version = "1.0.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8123a81538e457d44b933a02faf885d3fe8408806b23fa700e8f01c6c3a98998"
+checksum = "10a8690bf09abf659851e58cd666c3d37ac6af07c2bd7a9e332cfba471715775"
dependencies = [
- "libc",
- "winapi 0.3.9",
+ "rand 0.8.4",
]
[[package]]
@@ -5160,8 +4912,8 @@
"frame-benchmarking",
"frame-benchmarking-cli",
"futures 0.3.17",
- "jsonrpc-core 15.1.0",
- "jsonrpc-pubsub 15.1.0",
+ "jsonrpc-core",
+ "jsonrpc-pubsub",
"log",
"nft-data-structs",
"nft-rpc",
@@ -5222,6 +4974,7 @@
"frame-support",
"frame-system",
"parity-scale-codec",
+ "scale-info",
"serde",
"sp-core",
"sp-runtime",
@@ -5238,8 +4991,8 @@
"fc-rpc-core",
"fp-rpc",
"futures 0.3.17",
- "jsonrpc-core 15.1.0",
- "jsonrpc-pubsub 15.1.0",
+ "jsonrpc-core",
+ "jsonrpc-pubsub",
"nft-runtime",
"pallet-ethereum",
"pallet-nft",
@@ -5317,8 +5070,9 @@
"parachain-info",
"parity-scale-codec",
"polkadot-parachain",
+ "scale-info",
"serde",
- "smallvec 1.6.1",
+ "smallvec",
"sp-api",
"sp-arithmetic",
"sp-block-builder",
@@ -5352,9 +5106,9 @@
[[package]]
name = "nom"
-version = "6.2.1"
+version = "6.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9c5c51b9083a3c620fa67a2a635d1ce7d95b897e957d6b28ff9a5da960a103a6"
+checksum = "e7413f999671bd4745a7b624bd370a569fb6bc574b23c83a3c5ed2e453f3d5e2"
dependencies = [
"bitvec 0.19.5",
"funty",
@@ -5363,6 +5117,15 @@
]
[[package]]
+name = "ntapi"
+version = "0.3.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3f6bb902e437b6d86e03cce10a7e2af662292c5dfef23b65899ea3ac9354ad44"
+dependencies = [
+ "winapi 0.3.9",
+]
+
+[[package]]
name = "num-bigint"
version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -5384,9 +5147,9 @@
[[package]]
name = "num-integer"
-version = "0.1.43"
+version = "0.1.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8d59457e662d541ba17869cf51cf177c0b5f0cbf476c66bdc90bf1edac4f875b"
+checksum = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db"
dependencies = [
"autocfg",
"num-traits",
@@ -5437,28 +5200,20 @@
[[package]]
name = "object"
-version = "0.23.0"
+version = "0.26.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a9a7ab5d64814df0fe4a4b5ead45ed6c5f181ee3ff04ba344313a6c80446c5d4"
-
-[[package]]
-name = "object"
-version = "0.24.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1a5b3dd1c072ee7963717671d1ca129f1048fda25edea6b752bfc71ac8854170"
+checksum = "39f37e50073ccad23b6d09bcb5b263f4e76d3bb6038e4a3c08e52162ffa8abc2"
dependencies = [
"crc32fast",
"indexmap",
+ "memchr",
]
[[package]]
name = "once_cell"
-version = "1.6.0"
+version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4ad167a2f54e832b82dbe003a046280dceffe5227b5f79e08e363a29638cfddd"
-dependencies = [
- "parking_lot 0.11.2",
-]
+checksum = "692fcb63b64b1758029e0a96ee63e049ce8c5948587f2f7208df04625e5f6b56"
[[package]]
name = "opaque-debug"
@@ -5474,15 +5229,15 @@
[[package]]
name = "openssl-probe"
-version = "0.1.2"
+version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "77af24da69f9d9341038eba93a073b1fdaaa1b788221b00a69bce9e762cb32de"
+checksum = "28988d872ab76095a6e6ac88d99b54fd267702734fd7ffe610ca27f533ddb95a"
[[package]]
name = "ordered-float"
-version = "1.1.0"
+version = "1.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3741934be594d77de1c8461ebcbbe866f585ea616a9753aa78f2bdc69f0e4579"
+checksum = "3305af35278dd29f46fcdd139e0b1fbfae2153f0e5928b39b035542dd31e37b7"
dependencies = [
"num-traits",
]
@@ -5499,13 +5254,13 @@
[[package]]
name = "pallet-aura"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-support",
"frame-system",
- "pallet-session",
"pallet-timestamp",
"parity-scale-codec",
+ "scale-info",
"sp-application-crypto",
"sp-consensus-aura",
"sp-runtime",
@@ -5515,12 +5270,13 @@
[[package]]
name = "pallet-authority-discovery"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-support",
"frame-system",
"pallet-session",
"parity-scale-codec",
+ "scale-info",
"sp-application-crypto",
"sp-authority-discovery",
"sp-runtime",
@@ -5530,12 +5286,13 @@
[[package]]
name = "pallet-authorship"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-support",
"frame-system",
"impl-trait-for-tuples 0.2.1",
"parity-scale-codec",
+ "scale-info",
"sp-authorship",
"sp-runtime",
"sp-std",
@@ -5544,7 +5301,7 @@
[[package]]
name = "pallet-babe"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -5554,6 +5311,7 @@
"pallet-session",
"pallet-timestamp",
"parity-scale-codec",
+ "scale-info",
"sp-application-crypto",
"sp-consensus-babe",
"sp-consensus-vrf",
@@ -5565,23 +5323,44 @@
]
[[package]]
+name = "pallet-bags-list"
+version = "4.0.0-dev"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
+dependencies = [
+ "frame-benchmarking",
+ "frame-election-provider-support",
+ "frame-support",
+ "frame-system",
+ "log",
+ "pallet-balances",
+ "parity-scale-codec",
+ "scale-info",
+ "sp-core",
+ "sp-io",
+ "sp-runtime",
+ "sp-std",
+ "sp-tracing",
+]
+
+[[package]]
name = "pallet-balances"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-benchmarking",
"frame-support",
"frame-system",
"log",
"parity-scale-codec",
+ "scale-info",
"sp-runtime",
"sp-std",
]
[[package]]
name = "pallet-beefy"
-version = "0.1.0"
-source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=polkadot-v0.9.10#9954b61657dc8899a21b4f2501ee6bd3b7a2dc23"
+version = "4.0.0-dev"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"beefy-primitives",
"frame-support",
@@ -5596,15 +5375,15 @@
[[package]]
name = "pallet-beefy-mmr"
-version = "0.1.0"
-source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=polkadot-v0.9.10#9954b61657dc8899a21b4f2501ee6bd3b7a2dc23"
+version = "4.0.0-dev"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"beefy-merkle-tree",
"beefy-primitives",
"frame-support",
"frame-system",
"hex",
- "libsecp256k1 0.6.0",
+ "libsecp256k1 0.7.0",
"log",
"pallet-beefy",
"pallet-mmr",
@@ -5622,13 +5401,17 @@
[[package]]
name = "pallet-bounties"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-benchmarking",
"frame-support",
"frame-system",
+ "log",
"pallet-treasury",
"parity-scale-codec",
+ "scale-info",
+ "sp-core",
+ "sp-io",
"sp-runtime",
"sp-std",
]
@@ -5636,7 +5419,7 @@
[[package]]
name = "pallet-bridge-dispatch"
version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"bp-message-dispatch",
"bp-runtime",
@@ -5644,6 +5427,7 @@
"frame-system",
"log",
"parity-scale-codec",
+ "scale-info",
"sp-core",
"sp-runtime",
"sp-std",
@@ -5652,7 +5436,7 @@
[[package]]
name = "pallet-bridge-grandpa"
version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"bp-header-chain",
"bp-runtime",
@@ -5663,6 +5447,7 @@
"log",
"num-traits",
"parity-scale-codec",
+ "scale-info",
"serde",
"sp-finality-grandpa",
"sp-runtime",
@@ -5673,9 +5458,9 @@
[[package]]
name = "pallet-bridge-messages"
version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
- "bitvec 0.20.1",
+ "bitvec 0.20.4",
"bp-message-dispatch",
"bp-messages",
"bp-rialto",
@@ -5685,6 +5470,7 @@
"log",
"num-traits",
"parity-scale-codec",
+ "scale-info",
"serde",
"sp-core",
"sp-runtime",
@@ -5694,13 +5480,14 @@
[[package]]
name = "pallet-collective"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-benchmarking",
"frame-support",
"frame-system",
"log",
"parity-scale-codec",
+ "scale-info",
"sp-core",
"sp-io",
"sp-runtime",
@@ -5715,6 +5502,7 @@
"frame-system",
"pallet-contracts",
"parity-scale-codec",
+ "scale-info",
"sp-runtime",
"sp-std",
"up-sponsorship",
@@ -5723,18 +5511,22 @@
[[package]]
name = "pallet-contracts"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"bitflags",
+ "frame-benchmarking",
"frame-support",
"frame-system",
+ "libsecp256k1 0.3.5",
"log",
"pallet-contracts-primitives",
"pallet-contracts-proc-macro",
"parity-scale-codec",
"pwasm-utils",
+ "rand 0.7.3",
+ "scale-info",
"serde",
- "smallvec 1.6.1",
+ "smallvec",
"sp-core",
"sp-io",
"sp-runtime",
@@ -5746,10 +5538,11 @@
[[package]]
name = "pallet-contracts-primitives"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"bitflags",
"parity-scale-codec",
+ "scale-info",
"serde",
"sp-core",
"sp-runtime",
@@ -5759,7 +5552,7 @@
[[package]]
name = "pallet-contracts-proc-macro"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"proc-macro2",
"quote",
@@ -5769,12 +5562,13 @@
[[package]]
name = "pallet-democracy"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-benchmarking",
"frame-support",
"frame-system",
"parity-scale-codec",
+ "scale-info",
"serde",
"sp-io",
"sp-runtime",
@@ -5784,7 +5578,7 @@
[[package]]
name = "pallet-election-provider-multi-phase"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-benchmarking",
"frame-election-provider-support",
@@ -5793,6 +5587,7 @@
"log",
"parity-scale-codec",
"rand 0.7.3",
+ "scale-info",
"sp-arithmetic",
"sp-core",
"sp-io",
@@ -5800,18 +5595,21 @@
"sp-runtime",
"sp-std",
"static_assertions",
+ "strum 0.21.0",
+ "strum_macros 0.21.1",
]
[[package]]
name = "pallet-elections-phragmen"
version = "5.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-benchmarking",
"frame-support",
"frame-system",
"log",
"parity-scale-codec",
+ "scale-info",
"sp-core",
"sp-io",
"sp-npos-elections",
@@ -5822,7 +5620,7 @@
[[package]]
name = "pallet-ethereum"
version = "4.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.10#b29eda34046c70fdc3f03c2b0610d5ab08289556"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.11#0d4130cc9fdf3639e41f57dc642bc0acb304fae2"
dependencies = [
"ethereum",
"ethereum-types",
@@ -5840,6 +5638,7 @@
"parity-scale-codec",
"rlp",
"rustc-hex",
+ "scale-info",
"serde",
"sha3 0.8.2",
"sp-io",
@@ -5850,7 +5649,7 @@
[[package]]
name = "pallet-evm"
version = "6.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.10#b29eda34046c70fdc3f03c2b0610d5ab08289556"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.11#0d4130cc9fdf3639e41f57dc642bc0acb304fae2"
dependencies = [
"evm",
"evm-gasometer",
@@ -5867,6 +5666,7 @@
"parity-scale-codec",
"primitive-types 0.9.1",
"rlp",
+ "scale-info",
"serde",
"sha3 0.8.2",
"sp-core",
@@ -5886,6 +5686,7 @@
"pallet-ethereum",
"pallet-evm",
"parity-scale-codec",
+ "scale-info",
"sp-core",
"sp-std",
]
@@ -5901,6 +5702,7 @@
"pallet-evm",
"pallet-evm-coder-substrate",
"parity-scale-codec",
+ "scale-info",
"sp-core",
"sp-runtime",
"sp-std",
@@ -5917,6 +5719,7 @@
"frame-system",
"pallet-evm",
"parity-scale-codec",
+ "scale-info",
"sp-core",
"sp-io",
"sp-runtime",
@@ -5933,6 +5736,7 @@
"pallet-ethereum",
"pallet-evm",
"parity-scale-codec",
+ "scale-info",
"sp-core",
"sp-io",
"sp-runtime",
@@ -5943,12 +5747,13 @@
[[package]]
name = "pallet-gilt"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-benchmarking",
"frame-support",
"frame-system",
"parity-scale-codec",
+ "scale-info",
"sp-arithmetic",
"sp-runtime",
"sp-std",
@@ -5957,7 +5762,7 @@
[[package]]
name = "pallet-grandpa"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -5966,6 +5771,7 @@
"pallet-authorship",
"pallet-session",
"parity-scale-codec",
+ "scale-info",
"sp-application-crypto",
"sp-core",
"sp-finality-grandpa",
@@ -5979,13 +5785,14 @@
[[package]]
name = "pallet-identity"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"enumflags2",
"frame-benchmarking",
"frame-support",
"frame-system",
"parity-scale-codec",
+ "scale-info",
"sp-io",
"sp-runtime",
"sp-std",
@@ -5994,7 +5801,7 @@
[[package]]
name = "pallet-im-online"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -6002,6 +5809,7 @@
"log",
"pallet-authorship",
"parity-scale-codec",
+ "scale-info",
"sp-application-crypto",
"sp-core",
"sp-io",
@@ -6013,12 +5821,13 @@
[[package]]
name = "pallet-indices"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-benchmarking",
"frame-support",
"frame-system",
"parity-scale-codec",
+ "scale-info",
"sp-core",
"sp-io",
"sp-keyring",
@@ -6037,6 +5846,7 @@
"pallet-randomness-collective-flip",
"pallet-timestamp",
"parity-scale-codec",
+ "scale-info",
"serde",
"sp-core",
"sp-io",
@@ -6047,13 +5857,15 @@
[[package]]
name = "pallet-membership"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-benchmarking",
"frame-support",
"frame-system",
"log",
"parity-scale-codec",
+ "scale-info",
+ "sp-core",
"sp-io",
"sp-runtime",
"sp-std",
@@ -6062,7 +5874,7 @@
[[package]]
name = "pallet-mmr"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"ckb-merkle-mountain-range",
"frame-benchmarking",
@@ -6070,6 +5882,7 @@
"frame-system",
"pallet-mmr-primitives",
"parity-scale-codec",
+ "scale-info",
"sp-core",
"sp-io",
"sp-runtime",
@@ -6079,7 +5892,7 @@
[[package]]
name = "pallet-mmr-primitives"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-support",
"frame-system",
@@ -6095,31 +5908,30 @@
[[package]]
name = "pallet-mmr-rpc"
version = "3.0.0"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
- "jsonrpc-core 15.1.0",
- "jsonrpc-core-client 15.1.0",
- "jsonrpc-derive 15.1.0",
+ "jsonrpc-core",
+ "jsonrpc-core-client",
+ "jsonrpc-derive",
"pallet-mmr-primitives",
"parity-scale-codec",
"serde",
"sp-api",
"sp-blockchain",
"sp-core",
- "sp-rpc",
"sp-runtime",
]
[[package]]
name = "pallet-multisig"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-benchmarking",
"frame-support",
"frame-system",
"parity-scale-codec",
- "sp-core",
+ "scale-info",
"sp-io",
"sp-runtime",
"sp-std",
@@ -6147,6 +5959,7 @@
"parity-scale-codec",
"primitive-types 0.10.1",
"rlp",
+ "scale-info",
"serde",
"sp-api",
"sp-core",
@@ -6167,6 +5980,7 @@
"pallet-nft-transaction-payment",
"pallet-transaction-payment",
"parity-scale-codec",
+ "scale-info",
"serde",
"sp-core",
"sp-io",
@@ -6183,6 +5997,7 @@
"frame-system",
"pallet-transaction-payment",
"parity-scale-codec",
+ "scale-info",
"serde",
"sp-core",
"sp-io",
@@ -6194,11 +6009,12 @@
[[package]]
name = "pallet-nicks"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-support",
"frame-system",
"parity-scale-codec",
+ "scale-info",
"sp-io",
"sp-runtime",
"sp-std",
@@ -6207,13 +6023,14 @@
[[package]]
name = "pallet-offences"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-support",
"frame-system",
"log",
"pallet-balances",
"parity-scale-codec",
+ "scale-info",
"serde",
"sp-runtime",
"sp-staking",
@@ -6223,7 +6040,7 @@
[[package]]
name = "pallet-offences-benchmarking"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-benchmarking",
"frame-election-provider-support",
@@ -6237,6 +6054,7 @@
"pallet-session",
"pallet-staking",
"parity-scale-codec",
+ "scale-info",
"sp-runtime",
"sp-staking",
"sp-std",
@@ -6245,13 +6063,13 @@
[[package]]
name = "pallet-proxy"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-benchmarking",
"frame-support",
"frame-system",
"parity-scale-codec",
- "sp-core",
+ "scale-info",
"sp-io",
"sp-runtime",
"sp-std",
@@ -6260,12 +6078,13 @@
[[package]]
name = "pallet-randomness-collective-flip"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-support",
"frame-system",
"parity-scale-codec",
"safe-mix",
+ "scale-info",
"sp-runtime",
"sp-std",
]
@@ -6273,12 +6092,12 @@
[[package]]
name = "pallet-recovery"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
- "enumflags2",
"frame-support",
"frame-system",
"parity-scale-codec",
+ "scale-info",
"sp-io",
"sp-runtime",
"sp-std",
@@ -6293,6 +6112,7 @@
"frame-system",
"log",
"parity-scale-codec",
+ "scale-info",
"serde",
"sp-core",
"sp-io",
@@ -6305,13 +6125,14 @@
[[package]]
name = "pallet-scheduler"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-benchmarking",
"frame-support",
"frame-system",
"log",
"parity-scale-codec",
+ "scale-info",
"sp-io",
"sp-runtime",
"sp-std",
@@ -6320,7 +6141,7 @@
[[package]]
name = "pallet-session"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-support",
"frame-system",
@@ -6328,6 +6149,7 @@
"log",
"pallet-timestamp",
"parity-scale-codec",
+ "scale-info",
"sp-core",
"sp-io",
"sp-runtime",
@@ -6340,7 +6162,7 @@
[[package]]
name = "pallet-session-benchmarking"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -6356,12 +6178,13 @@
[[package]]
name = "pallet-society"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-support",
"frame-system",
"parity-scale-codec",
"rand_chacha 0.2.2",
+ "scale-info",
"sp-runtime",
"sp-std",
]
@@ -6369,7 +6192,7 @@
[[package]]
name = "pallet-staking"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-benchmarking",
"frame-election-provider-support",
@@ -6379,23 +6202,22 @@
"pallet-authorship",
"pallet-session",
"parity-scale-codec",
- "paste",
"rand_chacha 0.2.2",
+ "scale-info",
"serde",
"sp-application-crypto",
"sp-io",
"sp-runtime",
"sp-staking",
"sp-std",
- "static_assertions",
]
[[package]]
name = "pallet-staking-reward-curve"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
- "proc-macro-crate 1.0.0",
+ "proc-macro-crate 1.1.0",
"proc-macro2",
"quote",
"syn",
@@ -6404,7 +6226,7 @@
[[package]]
name = "pallet-staking-reward-fn"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"log",
"sp-arithmetic",
@@ -6413,11 +6235,12 @@
[[package]]
name = "pallet-sudo"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-support",
"frame-system",
"parity-scale-codec",
+ "scale-info",
"sp-io",
"sp-runtime",
"sp-std",
@@ -6426,14 +6249,14 @@
[[package]]
name = "pallet-timestamp"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-benchmarking",
"frame-support",
"frame-system",
- "impl-trait-for-tuples 0.2.1",
"log",
"parity-scale-codec",
+ "scale-info",
"sp-inherents",
"sp-io",
"sp-runtime",
@@ -6444,14 +6267,18 @@
[[package]]
name = "pallet-tips"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-benchmarking",
"frame-support",
"frame-system",
+ "log",
"pallet-treasury",
"parity-scale-codec",
+ "scale-info",
"serde",
+ "sp-core",
+ "sp-io",
"sp-runtime",
"sp-std",
]
@@ -6459,13 +6286,14 @@
[[package]]
name = "pallet-transaction-payment"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-support",
"frame-system",
"parity-scale-codec",
+ "scale-info",
"serde",
- "smallvec 1.6.1",
+ "smallvec",
"sp-core",
"sp-io",
"sp-runtime",
@@ -6475,11 +6303,11 @@
[[package]]
name = "pallet-transaction-payment-rpc"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
- "jsonrpc-core 15.1.0",
- "jsonrpc-core-client 15.1.0",
- "jsonrpc-derive 15.1.0",
+ "jsonrpc-core",
+ "jsonrpc-core-client",
+ "jsonrpc-derive",
"pallet-transaction-payment-rpc-runtime-api",
"parity-scale-codec",
"sp-api",
@@ -6492,7 +6320,7 @@
[[package]]
name = "pallet-transaction-payment-rpc-runtime-api"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"pallet-transaction-payment",
"parity-scale-codec",
@@ -6503,7 +6331,7 @@
[[package]]
name = "pallet-treasury"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -6511,6 +6339,7 @@
"impl-trait-for-tuples 0.2.1",
"pallet-balances",
"parity-scale-codec",
+ "scale-info",
"serde",
"sp-runtime",
"sp-std",
@@ -6519,12 +6348,13 @@
[[package]]
name = "pallet-utility"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-benchmarking",
"frame-support",
"frame-system",
"parity-scale-codec",
+ "scale-info",
"sp-core",
"sp-io",
"sp-runtime",
@@ -6534,27 +6364,47 @@
[[package]]
name = "pallet-vesting"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
- "enumflags2",
"frame-benchmarking",
"frame-support",
"frame-system",
+ "log",
"parity-scale-codec",
+ "scale-info",
"sp-runtime",
"sp-std",
]
[[package]]
name = "pallet-xcm"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"frame-support",
"frame-system",
"log",
"parity-scale-codec",
+ "scale-info",
"serde",
+ "sp-core",
+ "sp-runtime",
+ "sp-std",
+ "xcm",
+ "xcm-executor",
+]
+
+[[package]]
+name = "pallet-xcm-benchmarks"
+version = "0.9.8"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
+dependencies = [
+ "frame-benchmarking",
+ "frame-support",
+ "frame-system",
+ "log",
+ "parity-scale-codec",
+ "scale-info",
"sp-runtime",
"sp-std",
"xcm",
@@ -6564,20 +6414,21 @@
[[package]]
name = "parachain-info"
version = "0.1.0"
-source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.10#870b214693856e768ba482fe2d3b9a83b24e4540"
+source = "git+https://github.com/paritytech/cumulus.git?branch=polkadot-v0.9.11#ede4d527c4fc5d84c43216b408a873625488574b"
dependencies = [
"cumulus-primitives-core",
"frame-support",
"frame-system",
"parity-scale-codec",
+ "scale-info",
"serde",
]
[[package]]
name = "parity-db"
-version = "0.2.4"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2e337f62db341435f0da05b8f6b97e984ef4ea5800510cd07c2d624688c40b47"
+checksum = "91b679c6acc14fac74382942e2b73bea441686a33430b951ea03b5aeb6a7f254"
dependencies = [
"blake2-rfc",
"crc32fast",
@@ -6585,9 +6436,11 @@
"hex",
"libc",
"log",
+ "lz4",
"memmap2",
"parking_lot 0.11.2",
"rand 0.8.4",
+ "snap",
]
[[package]]
@@ -6596,8 +6449,8 @@
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "373b1a4c1338d9cd3d1fa53b3a11bdab5ab6bd80a20f7f7becd76953ae2be909"
dependencies = [
- "arrayvec 0.7.0",
- "bitvec 0.20.1",
+ "arrayvec 0.7.1",
+ "bitvec 0.20.4",
"byte-slice-cast",
"impl-trait-for-tuples 0.2.1",
"parity-scale-codec-derive",
@@ -6610,7 +6463,7 @@
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1557010476e0595c9b568d16dcfb81b93cdeb157612726f5170d31aa707bed27"
dependencies = [
- "proc-macro-crate 1.0.0",
+ "proc-macro-crate 1.1.0",
"proc-macro2",
"quote",
"syn",
@@ -6624,28 +6477,23 @@
[[package]]
name = "parity-tokio-ipc"
-version = "0.4.0"
+version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e57fea504fea33f9fbb5f49f378359030e7e026a6ab849bb9e8f0787376f1bf"
+checksum = "9981e32fb75e004cc148f5fb70342f393830e0a4aa62e3cc93b50976218d42b6"
dependencies = [
- "bytes 0.4.12",
- "futures 0.1.29",
+ "futures 0.3.17",
"libc",
"log",
- "mio-named-pipes",
- "miow 0.3.5",
"rand 0.7.3",
- "tokio 0.1.22",
- "tokio-named-pipes",
- "tokio-uds",
+ "tokio 1.12.0",
"winapi 0.3.9",
]
[[package]]
name = "parity-util-mem"
-version = "0.10.0"
+version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7ad6f1acec69b95caf435bbd158d486e5a0a44fcf51531e84922c59ff09e8457"
+checksum = "6f4cb4e169446179cbc6b8b6320cc9fca49bd2e94e8db25f25f200a8ea774770"
dependencies = [
"cfg-if 1.0.0",
"ethereum-types",
@@ -6655,7 +6503,7 @@
"parity-util-mem-derive",
"parking_lot 0.11.2",
"primitive-types 0.10.1",
- "smallvec 1.6.1",
+ "smallvec",
"winapi 0.3.9",
]
@@ -6687,20 +6535,20 @@
[[package]]
name = "parity-ws"
-version = "0.10.1"
+version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "322d72dfe461b8b9e367d057ceace105379d64d5b03907d23c481ccf3fbf8aa4"
+checksum = "d0ab8a461779bd022964cae2b4989fa9c99deb270bec162da2125ec03c09fcaa"
dependencies = [
"byteorder",
"bytes 0.4.12",
"httparse",
"log",
- "mio",
+ "mio 0.6.23",
"mio-extras",
"rand 0.7.3",
"sha-1 0.8.2",
"slab",
- "url 2.2.0",
+ "url 2.2.2",
]
[[package]]
@@ -6708,17 +6556,6 @@
version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "427c3892f9e783d91cc128285287e70a59e206ca452770ece88a76f7a3eddd72"
-
-[[package]]
-name = "parking_lot"
-version = "0.9.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f842b1982eb6c2fe34036a4fbfb06dd185a3f5c8edfaacdf7d1ea10b07de6252"
-dependencies = [
- "lock_api 0.3.4",
- "parking_lot_core 0.6.2",
- "rustc_version 0.2.3",
-]
[[package]]
name = "parking_lot"
@@ -6743,21 +6580,6 @@
[[package]]
name = "parking_lot_core"
-version = "0.6.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b876b1b9e7ac6e1a74a6da34d25c42e17e8862aa409cbbbdcfc8d86c6f3bc62b"
-dependencies = [
- "cfg-if 0.1.10",
- "cloudabi",
- "libc",
- "redox_syscall 0.1.56",
- "rustc_version 0.2.3",
- "smallvec 0.6.13",
- "winapi 0.3.9",
-]
-
-[[package]]
-name = "parking_lot_core"
version = "0.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d58c7c768d4ba344e3e8d72518ac13e259d7c7ade24167003b8488e10b6740a3"
@@ -6765,8 +6587,8 @@
"cfg-if 0.1.10",
"cloudabi",
"libc",
- "redox_syscall 0.1.56",
- "smallvec 1.6.1",
+ "redox_syscall 0.1.57",
+ "smallvec",
"winapi 0.3.9",
]
@@ -6780,7 +6602,7 @@
"instant",
"libc",
"redox_syscall 0.2.10",
- "smallvec 1.6.1",
+ "smallvec",
"winapi 0.3.9",
]
@@ -6792,16 +6614,6 @@
[[package]]
name = "pbkdf2"
-version = "0.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "006c038a43a45995a9670da19e67600114740e8511d4333bf97a56e66a7542d9"
-dependencies = [
- "byteorder",
- "crypto-mac 0.7.0",
-]
-
-[[package]]
-name = "pbkdf2"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "216eaa586a190f0a738f2f918511eecfa90f13295abec0e457cdebcceda80cbd"
@@ -6810,10 +6622,13 @@
]
[[package]]
-name = "pdqselect"
-version = "0.1.0"
+name = "pbkdf2"
+version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4ec91767ecc0a0bbe558ce8c9da33c068066c57ecc8bb8477ef8c1ad3ef77c27"
+checksum = "d95f5254224e617595d2cc3cc73ff0a5eaf2637519e25f03388154e9378b6ffa"
+dependencies = [
+ "crypto-mac 0.11.1",
+]
[[package]]
name = "peeking_take_while"
@@ -6888,27 +6703,27 @@
[[package]]
name = "pin-project"
-version = "0.4.23"
+version = "0.4.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ca4433fff2ae79342e497d9f8ee990d174071408f28f726d6d83af93e58e48aa"
+checksum = "918192b5c59119d51e0cd221f4d49dde9112824ba717369e903c97d076083d0f"
dependencies = [
- "pin-project-internal 0.4.23",
+ "pin-project-internal 0.4.28",
]
[[package]]
name = "pin-project"
-version = "1.0.7"
+version = "1.0.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c7509cc106041c40a4518d2af7a61530e1eed0e6285296a3d8c5472806ccc4a4"
+checksum = "576bc800220cc65dac09e99e97b08b358cfab6e17078de8dc5fee223bd2d0c08"
dependencies = [
- "pin-project-internal 1.0.7",
+ "pin-project-internal 1.0.8",
]
[[package]]
name = "pin-project-internal"
-version = "0.4.23"
+version = "0.4.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2c0e815c3ee9a031fdf5af21c10aa17c573c9c6a566328d99e3936c34e36461f"
+checksum = "3be26700300be6d9d23264c73211d8190e755b6b5ca7a1b28230025511b52a5e"
dependencies = [
"proc-macro2",
"quote",
@@ -6917,9 +6732,9 @@
[[package]]
name = "pin-project-internal"
-version = "1.0.7"
+version = "1.0.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "48c950132583b500556b1efd71d45b319029f2b71518d979fcc208e16b42426f"
+checksum = "6e8fe8163d14ce7f0cdac2e040116f22eac817edabff0be91e8aff7e9accf389"
dependencies = [
"proc-macro2",
"quote",
@@ -6928,15 +6743,15 @@
[[package]]
name = "pin-project-lite"
-version = "0.1.7"
+version = "0.1.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "282adbf10f2698a7a77f8e983a74b2d18176c19a7fd32a45446139ae7b02b715"
+checksum = "257b64915a082f7811703966789728173279bdebb956b143dbcd23f6f970a777"
[[package]]
name = "pin-project-lite"
-version = "0.2.4"
+version = "0.2.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "439697af366c49a6d0a010c56a0d97685bc140ce0d377b13a2ea2aa42d64a827"
+checksum = "8d31d11c69a6b52a174b42bdc0c30e5e11670f90788b2c471c31c1d17d449443"
[[package]]
name = "pin-utils"
@@ -6946,9 +6761,9 @@
[[package]]
name = "pkg-config"
-version = "0.3.17"
+version = "0.3.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "05da548ad6865900e60eaba7f589cc0783590a92e940c26953ff81ddbab2d677"
+checksum = "7c9b1041b4387893b91ee6746cddfc28516aff326a3519fb2adf820932c5e6cb"
[[package]]
name = "platforms"
@@ -6958,8 +6773,8 @@
[[package]]
name = "polkadot-approval-distribution"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"futures 0.3.17",
"polkadot-node-network-protocol",
@@ -6972,8 +6787,8 @@
[[package]]
name = "polkadot-availability-bitfield-distribution"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"futures 0.3.17",
"polkadot-node-network-protocol",
@@ -6985,22 +6800,20 @@
[[package]]
name = "polkadot-availability-distribution"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"derive_more",
"futures 0.3.17",
"lru",
"parity-scale-codec",
"polkadot-erasure-coding",
- "polkadot-node-core-runtime-api",
"polkadot-node-network-protocol",
"polkadot-node-primitives",
"polkadot-node-subsystem",
"polkadot-node-subsystem-util",
"polkadot-primitives",
"rand 0.8.4",
- "sp-application-crypto",
"sp-core",
"sp-keystore",
"thiserror",
@@ -7009,8 +6822,8 @@
[[package]]
name = "polkadot-availability-recovery"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"futures 0.3.17",
"lru",
@@ -7022,14 +6835,15 @@
"polkadot-node-subsystem-util",
"polkadot-primitives",
"rand 0.8.4",
+ "sc-network",
"thiserror",
"tracing",
]
[[package]]
name = "polkadot-cli"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"frame-benchmarking-cli",
"futures 0.3.17",
@@ -7048,8 +6862,8 @@
[[package]]
name = "polkadot-client"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"beefy-primitives",
"frame-benchmarking",
@@ -7078,8 +6892,8 @@
[[package]]
name = "polkadot-collator-protocol"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"always-assert",
"derive_more",
@@ -7099,11 +6913,12 @@
[[package]]
name = "polkadot-core-primitives"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"parity-scale-codec",
"parity-util-mem",
+ "scale-info",
"sp-core",
"sp-runtime",
"sp-std",
@@ -7111,24 +6926,21 @@
[[package]]
name = "polkadot-dispute-distribution"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"derive_more",
"futures 0.3.17",
"lru",
"parity-scale-codec",
"polkadot-erasure-coding",
- "polkadot-node-core-runtime-api",
"polkadot-node-network-protocol",
"polkadot-node-primitives",
"polkadot-node-subsystem",
"polkadot-node-subsystem-util",
"polkadot-primitives",
- "rand 0.8.4",
"sc-network",
"sp-application-crypto",
- "sp-core",
"sp-keystore",
"thiserror",
"tracing",
@@ -7136,8 +6948,8 @@
[[package]]
name = "polkadot-erasure-coding"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"parity-scale-codec",
"polkadot-node-primitives",
@@ -7150,16 +6962,18 @@
[[package]]
name = "polkadot-gossip-support"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"futures 0.3.17",
+ "futures-timer 3.0.2",
"polkadot-node-network-protocol",
"polkadot-node-subsystem",
"polkadot-node-subsystem-util",
"polkadot-primitives",
"rand 0.8.4",
"rand_chacha 0.3.1",
+ "sc-network",
"sp-application-crypto",
"sp-core",
"sp-keystore",
@@ -7168,8 +6982,8 @@
[[package]]
name = "polkadot-network-bridge"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"async-trait",
"futures 0.3.17",
@@ -7187,8 +7001,8 @@
[[package]]
name = "polkadot-node-collation-generation"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"futures 0.3.17",
"parity-scale-codec",
@@ -7205,10 +7019,10 @@
[[package]]
name = "polkadot-node-core-approval-voting"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
- "bitvec 0.20.1",
+ "bitvec 0.20.4",
"derive_more",
"futures 0.3.17",
"futures-timer 3.0.2",
@@ -7222,11 +7036,9 @@
"polkadot-node-subsystem-util",
"polkadot-overseer",
"polkadot-primitives",
- "sc-client-api",
"sc-keystore",
"schnorrkel",
"sp-application-crypto",
- "sp-blockchain",
"sp-consensus",
"sp-consensus-slots",
"sp-runtime",
@@ -7235,10 +7047,10 @@
[[package]]
name = "polkadot-node-core-av-store"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
- "bitvec 0.20.1",
+ "bitvec 0.20.4",
"futures 0.3.17",
"futures-timer 3.0.2",
"kvdb",
@@ -7255,10 +7067,10 @@
[[package]]
name = "polkadot-node-core-backing"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
- "bitvec 0.20.1",
+ "bitvec 0.20.4",
"futures 0.3.17",
"polkadot-erasure-coding",
"polkadot-node-primitives",
@@ -7273,8 +7085,8 @@
[[package]]
name = "polkadot-node-core-bitfield-signing"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"futures 0.3.17",
"polkadot-node-subsystem",
@@ -7288,8 +7100,8 @@
[[package]]
name = "polkadot-node-core-candidate-validation"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"async-trait",
"futures 0.3.17",
@@ -7306,8 +7118,8 @@
[[package]]
name = "polkadot-node-core-chain-api"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"futures 0.3.17",
"polkadot-node-subsystem",
@@ -7321,8 +7133,8 @@
[[package]]
name = "polkadot-node-core-chain-selection"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"futures 0.3.17",
"futures-timer 3.0.2",
@@ -7338,10 +7150,10 @@
[[package]]
name = "polkadot-node-core-dispute-coordinator"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
- "bitvec 0.20.1",
+ "bitvec 0.20.4",
"derive_more",
"futures 0.3.17",
"kvdb",
@@ -7357,8 +7169,8 @@
[[package]]
name = "polkadot-node-core-dispute-participation"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"futures 0.3.17",
"polkadot-node-primitives",
@@ -7370,8 +7182,8 @@
[[package]]
name = "polkadot-node-core-parachains-inherent"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"async-trait",
"futures 0.3.17",
@@ -7387,10 +7199,10 @@
[[package]]
name = "polkadot-node-core-provisioner"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
- "bitvec 0.20.1",
+ "bitvec 0.20.4",
"futures 0.3.17",
"futures-timer 3.0.2",
"polkadot-node-subsystem",
@@ -7402,8 +7214,8 @@
[[package]]
name = "polkadot-node-core-pvf"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"always-assert",
"assert_matches",
@@ -7413,8 +7225,9 @@
"futures-timer 3.0.2",
"libc",
"parity-scale-codec",
- "pin-project 1.0.7",
+ "pin-project 1.0.8",
"polkadot-core-primitives",
+ "polkadot-node-subsystem-util",
"polkadot-parachain",
"rand 0.8.4",
"sc-executor",
@@ -7432,8 +7245,8 @@
[[package]]
name = "polkadot-node-core-runtime-api"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"futures 0.3.17",
"memory-lru",
@@ -7450,8 +7263,8 @@
[[package]]
name = "polkadot-node-jaeger"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"async-std",
"lazy_static",
@@ -7468,24 +7281,19 @@
[[package]]
name = "polkadot-node-metrics"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
- "async-trait",
"futures 0.3.17",
"futures-timer 3.0.2",
"metered-channel",
- "sc-network",
- "sp-application-crypto",
- "sp-core",
- "sp-keystore",
"substrate-prometheus-endpoint",
]
[[package]]
name = "polkadot-node-network-protocol"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"async-trait",
"derive_more",
@@ -7496,20 +7304,20 @@
"polkadot-primitives",
"sc-authority-discovery",
"sc-network",
- "strum",
+ "strum 0.21.0",
"thiserror",
]
[[package]]
name = "polkadot-node-primitives"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
+ "bounded-vec",
"futures 0.3.17",
"parity-scale-codec",
"polkadot-parachain",
"polkadot-primitives",
- "polkadot-statement-table",
"schnorrkel",
"serde",
"sp-application-crypto",
@@ -7518,16 +7326,14 @@
"sp-core",
"sp-keystore",
"sp-maybe-compressed-blob",
- "sp-runtime",
"thiserror",
- "tracing",
"zstd",
]
[[package]]
name = "polkadot-node-subsystem"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"polkadot-node-jaeger",
"polkadot-node-subsystem-types",
@@ -7536,20 +7342,11 @@
[[package]]
name = "polkadot-node-subsystem-types"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
- "async-std",
- "async-trait",
"derive_more",
"futures 0.3.17",
- "futures-timer 3.0.2",
- "lazy_static",
- "log",
- "mick-jaeger",
- "parity-scale-codec",
- "parking_lot 0.11.2",
- "pin-project 1.0.7",
"polkadot-node-jaeger",
"polkadot-node-network-protocol",
"polkadot-node-primitives",
@@ -7557,59 +7354,52 @@
"polkadot-primitives",
"polkadot-statement-table",
"sc-network",
- "smallvec 1.6.1",
- "sp-core",
+ "smallvec",
"substrate-prometheus-endpoint",
"thiserror",
- "tracing",
]
[[package]]
name = "polkadot-node-subsystem-util"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"async-trait",
"derive_more",
"futures 0.3.17",
- "futures-timer 3.0.2",
"itertools",
"lru",
"metered-channel",
"parity-scale-codec",
- "pin-project 1.0.7",
+ "pin-project 1.0.8",
"polkadot-node-jaeger",
"polkadot-node-metrics",
"polkadot-node-network-protocol",
- "polkadot-node-primitives",
"polkadot-node-subsystem",
"polkadot-overseer",
"polkadot-primitives",
"rand 0.8.4",
- "sc-network",
"sp-application-crypto",
"sp-core",
"sp-keystore",
- "substrate-prometheus-endpoint",
"thiserror",
"tracing",
]
[[package]]
name = "polkadot-overseer"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
- "async-trait",
"futures 0.3.17",
"futures-timer 3.0.2",
"lru",
+ "parity-util-mem",
"parking_lot 0.11.2",
"polkadot-node-metrics",
"polkadot-node-network-protocol",
"polkadot-node-primitives",
"polkadot-node-subsystem-types",
- "polkadot-overseer-all-subsystems-gen",
"polkadot-overseer-gen",
"polkadot-primitives",
"sc-client-api",
@@ -7618,26 +7408,15 @@
]
[[package]]
-name = "polkadot-overseer-all-subsystems-gen"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
-dependencies = [
- "assert_matches",
- "proc-macro2",
- "quote",
- "syn",
-]
-
-[[package]]
name = "polkadot-overseer-gen"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"async-trait",
"futures 0.3.17",
"futures-timer 3.0.2",
"metered-channel",
- "pin-project 1.0.7",
+ "pin-project 1.0.8",
"polkadot-node-network-protocol",
"polkadot-node-primitives",
"polkadot-overseer-gen-proc-macro",
@@ -7647,10 +7426,10 @@
[[package]]
name = "polkadot-overseer-gen-proc-macro"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
- "proc-macro-crate 1.0.0",
+ "proc-macro-crate 1.1.0",
"proc-macro2",
"quote",
"syn",
@@ -7658,14 +7437,15 @@
[[package]]
name = "polkadot-parachain"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"derive_more",
"frame-support",
"parity-scale-codec",
"parity-util-mem",
"polkadot-core-primitives",
+ "scale-info",
"serde",
"sp-core",
"sp-runtime",
@@ -7674,16 +7454,17 @@
[[package]]
name = "polkadot-primitives"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
- "bitvec 0.20.1",
+ "bitvec 0.20.4",
"frame-system",
"hex-literal",
"parity-scale-codec",
"parity-util-mem",
"polkadot-core-primitives",
"polkadot-parachain",
+ "scale-info",
"serde",
"sp-api",
"sp-application-crypto",
@@ -7699,20 +7480,18 @@
"sp-std",
"sp-trie",
"sp-version",
- "thiserror",
]
[[package]]
name = "polkadot-rpc"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"beefy-gadget",
"beefy-gadget-rpc",
- "jsonrpc-core 15.1.0",
+ "jsonrpc-core",
"pallet-mmr-rpc",
"pallet-transaction-payment-rpc",
- "parity-scale-codec",
"polkadot-primitives",
"sc-chain-spec",
"sc-client-api",
@@ -7721,7 +7500,6 @@
"sc-consensus-epochs",
"sc-finality-grandpa",
"sc-finality-grandpa-rpc",
- "sc-keystore",
"sc-rpc",
"sc-sync-state-rpc",
"sc-transaction-pool-api",
@@ -7737,11 +7515,11 @@
[[package]]
name = "polkadot-runtime"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"beefy-primitives",
- "bitvec 0.20.1",
+ "bitvec 0.20.4",
"frame-benchmarking",
"frame-election-provider-support",
"frame-executive",
@@ -7787,10 +7565,12 @@
"parity-scale-codec",
"polkadot-primitives",
"polkadot-runtime-common",
+ "polkadot-runtime-parachains",
"rustc-hex",
+ "scale-info",
"serde",
"serde_derive",
- "smallvec 1.6.1",
+ "smallvec",
"sp-api",
"sp-authority-discovery",
"sp-block-builder",
@@ -7812,22 +7592,24 @@
[[package]]
name = "polkadot-runtime-common"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
- "bitvec 0.20.1",
+ "beefy-primitives",
+ "bitvec 0.20.4",
"frame-benchmarking",
+ "frame-election-provider-support",
"frame-support",
"frame-system",
"impl-trait-for-tuples 0.2.1",
- "libsecp256k1 0.6.0",
+ "libsecp256k1 0.7.0",
"log",
"pallet-authorship",
"pallet-babe",
+ "pallet-bags-list",
"pallet-balances",
"pallet-beefy-mmr",
"pallet-election-provider-multi-phase",
- "pallet-offences",
"pallet-session",
"pallet-staking",
"pallet-timestamp",
@@ -7838,6 +7620,7 @@
"polkadot-primitives",
"polkadot-runtime-parachains",
"rustc-hex",
+ "scale-info",
"serde",
"serde_derive",
"slot-range-helper",
@@ -7845,6 +7628,7 @@
"sp-core",
"sp-inherents",
"sp-io",
+ "sp-npos-elections",
"sp-runtime",
"sp-session",
"sp-staking",
@@ -7855,11 +7639,11 @@
[[package]]
name = "polkadot-runtime-parachains"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"bitflags",
- "bitvec 0.20.1",
+ "bitvec 0.20.4",
"derive_more",
"frame-benchmarking",
"frame-support",
@@ -7868,7 +7652,6 @@
"pallet-authority-discovery",
"pallet-authorship",
"pallet-balances",
- "pallet-offences",
"pallet-session",
"pallet-staking",
"pallet-timestamp",
@@ -7878,6 +7661,7 @@
"rand 0.8.4",
"rand_chacha 0.3.1",
"rustc-hex",
+ "scale-info",
"serde",
"sp-api",
"sp-core",
@@ -7894,8 +7678,8 @@
[[package]]
name = "polkadot-service"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"async-trait",
"beefy-gadget",
@@ -7905,7 +7689,8 @@
"hex-literal",
"kusama-runtime",
"kvdb",
- "kvdb-rocksdb 0.12.0",
+ "kvdb-rocksdb",
+ "lru",
"pallet-babe",
"pallet-im-online",
"pallet-mmr-primitives",
@@ -7991,8 +7776,8 @@
[[package]]
name = "polkadot-statement-distribution"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"arrayvec 0.5.2",
"derive_more",
@@ -8012,8 +7797,8 @@
[[package]]
name = "polkadot-statement-table"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"parity-scale-codec",
"polkadot-primitives",
@@ -8022,11 +7807,11 @@
[[package]]
name = "polkadot-test-runtime"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"beefy-primitives",
- "bitvec 0.20.1",
+ "bitvec 0.20.4",
"frame-election-provider-support",
"frame-executive",
"frame-support",
@@ -8057,9 +7842,10 @@
"polkadot-runtime-common",
"polkadot-runtime-parachains",
"rustc-hex",
+ "scale-info",
"serde",
"serde_derive",
- "smallvec 1.6.1",
+ "smallvec",
"sp-api",
"sp-authority-discovery",
"sp-block-builder",
@@ -8082,12 +7868,12 @@
[[package]]
name = "polkadot-test-service"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"frame-benchmarking",
"frame-system",
- "futures 0.1.29",
+ "futures 0.1.31",
"futures 0.3.17",
"hex",
"pallet-balances",
@@ -8129,19 +7915,20 @@
"sp-state-machine",
"substrate-test-client",
"tempfile",
+ "tokio 1.12.0",
"tracing",
]
[[package]]
name = "polling"
-version = "2.0.2"
+version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a2a7bc6b2a29e632e45451c941832803a18cce6781db04de8a04696cdca8bde4"
+checksum = "92341d779fa34ea8437ef4d82d440d5e1ce3f3ff7f824aa64424cd481f9a1f25"
dependencies = [
- "cfg-if 0.1.10",
+ "cfg-if 1.0.0",
"libc",
"log",
- "wepoll-sys",
+ "wepoll-ffi",
"winapi 0.3.9",
]
@@ -8170,9 +7957,9 @@
[[package]]
name = "ppv-lite86"
-version = "0.2.8"
+version = "0.2.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "237a5ed80e274dbc66f86bd59c1e25edc039660be53194b5fe0a482e0f2612ea"
+checksum = "ac74c624d6b2d21f425f752262f42188365d7b8ff1aff74c82e45136510a4857"
[[package]]
name = "primitive-types"
@@ -8196,6 +7983,7 @@
"impl-codec",
"impl-rlp",
"impl-serde",
+ "scale-info",
"uint",
]
@@ -8210,9 +7998,9 @@
[[package]]
name = "proc-macro-crate"
-version = "1.0.0"
+version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "41fdbd1df62156fbc5945f4762632564d7d038153091c3fcf1067f6aef7cff92"
+checksum = "1ebace6889caf889b4d3f76becee12e90353f2b8c7d875534a71e5742f8f6f83"
dependencies = [
"thiserror",
"toml",
@@ -8276,15 +8064,15 @@
[[package]]
name = "proc-macro-nested"
-version = "0.1.6"
+version = "0.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "eba180dafb9038b050a4c280019bbedf9f2467b61e5d892dcad585bb57aadc5a"
+checksum = "bc881b2c22681370c6a780e47af9840ef841837bc98118431d4e1868bd0c1086"
[[package]]
name = "proc-macro2"
-version = "1.0.28"
+version = "1.0.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5c7ed8b8c7b886ea3ed7dde405212185f423ab44682667c8c6dd14aa1d9f6612"
+checksum = "b9f5105d4fdaab20335ca9565e106a5d9b82b6219b5ba735731124ac6711d23d"
dependencies = [
"unicode-xid",
]
@@ -8309,7 +8097,7 @@
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "de5e2533f59d08fcf364fd374ebda0692a70bd6d7e66ef97f306f45c6c5d8020"
dependencies = [
- "bytes 1.0.1",
+ "bytes 1.1.0",
"prost-derive",
]
@@ -8319,7 +8107,7 @@
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "355f634b43cdd80724ee7848f95770e7e70eefa6dcf14fea676216573b8fd603"
dependencies = [
- "bytes 1.0.1",
+ "bytes 1.1.0",
"heck",
"itertools",
"log",
@@ -8350,24 +8138,24 @@
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "603bbd6394701d13f3f25aada59c7de9d35a6a5887cfc156181234a44002771b"
dependencies = [
- "bytes 1.0.1",
+ "bytes 1.1.0",
"prost",
]
[[package]]
name = "psm"
-version = "0.1.12"
+version = "0.1.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3abf49e5417290756acfd26501536358560c4a5cc4a0934d390939acb3e7083a"
+checksum = "cd136ff4382c4753fc061cb9e4712ab2af263376b95bbd5bd8cd50c020b78e69"
dependencies = [
"cc",
]
[[package]]
name = "pwasm-utils"
-version = "0.18.0"
+version = "0.18.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a0e517f47d9964362883182404b68d0b6949382c0baa40aa5ffca94f5f1e3481"
+checksum = "880b3384fb00b8f6ecccd5d358b93bd2201900ae3daad213791d1864f6441f5c"
dependencies = [
"byteorder",
"log",
@@ -8382,9 +8170,9 @@
[[package]]
name = "quick-error"
-version = "2.0.0"
+version = "2.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3ac73b1112776fc109b2e61909bc46c7e1bf0d7f690ffb1676553acce16d5cda"
+checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3"
[[package]]
name = "quicksink"
@@ -8394,14 +8182,14 @@
dependencies = [
"futures-core",
"futures-sink",
- "pin-project-lite 0.1.7",
+ "pin-project-lite 0.1.12",
]
[[package]]
name = "quote"
-version = "1.0.9"
+version = "1.0.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7"
+checksum = "38bc8cc6a5f2e3655e0899c1b848643b2562f853f114bfec7be120678e3ace05"
dependencies = [
"proc-macro2",
]
@@ -8417,37 +8205,14 @@
version = "0.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "643f8f41a8ebc4c5dc4515c82bb8abd397b527fc20fd681b7c011c2aee5d44fb"
-
-[[package]]
-name = "rand"
-version = "0.3.23"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "64ac302d8f83c0c1974bf758f6b041c6c8ada916fbb44a609158ca8b064cc76c"
-dependencies = [
- "libc",
- "rand 0.4.6",
-]
[[package]]
name = "rand"
-version = "0.4.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "552840b97013b1a26992c11eac34bdd778e464601a4c2054b5f0bff7c6761293"
-dependencies = [
- "fuchsia-cprng",
- "libc",
- "rand_core 0.3.1",
- "rdrand",
- "winapi 0.3.9",
-]
-
-[[package]]
-name = "rand"
version = "0.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03"
dependencies = [
- "getrandom 0.1.14",
+ "getrandom 0.1.16",
"libc",
"rand_chacha 0.2.2",
"rand_core 0.5.1",
@@ -8463,8 +8228,8 @@
dependencies = [
"libc",
"rand_chacha 0.3.1",
- "rand_core 0.6.1",
- "rand_hc 0.3.0",
+ "rand_core 0.6.3",
+ "rand_hc 0.3.1",
]
[[package]]
@@ -8484,23 +8249,8 @@
checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
dependencies = [
"ppv-lite86",
- "rand_core 0.6.1",
-]
-
-[[package]]
-name = "rand_core"
-version = "0.3.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7a6fdeb83b075e8266dcc8762c22776f6877a63111121f5f8c7411e5be7eed4b"
-dependencies = [
- "rand_core 0.4.2",
+ "rand_core 0.6.3",
]
-
-[[package]]
-name = "rand_core"
-version = "0.4.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9c33a3c44ca05fa6f1807d8e6743f3824e8509beca625669633be0acbdf509dc"
[[package]]
name = "rand_core"
@@ -8508,23 +8258,23 @@
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19"
dependencies = [
- "getrandom 0.1.14",
+ "getrandom 0.1.16",
]
[[package]]
name = "rand_core"
-version = "0.6.1"
+version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c026d7df8b298d90ccbbc5190bd04d85e159eaf5576caeacf8741da93ccbd2e5"
+checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7"
dependencies = [
- "getrandom 0.2.1",
+ "getrandom 0.2.3",
]
[[package]]
name = "rand_distr"
-version = "0.4.1"
+version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "051b398806e42b9cd04ad9ec8f81e355d0a382c543ac6672c62f5a5b452ef142"
+checksum = "964d548f8e7d12e102ef183a0de7e98180c9f8729f555897a857b96e48122d2f"
dependencies = [
"num-traits",
"rand 0.8.4",
@@ -8541,11 +8291,11 @@
[[package]]
name = "rand_hc"
-version = "0.3.0"
+version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3190ef7066a446f2e7f42e239d161e905420ccab01eb967c9eb27d21b2322a73"
+checksum = "d51e9f596de227fda2ea6c84607f5558e196eeaf43c986b724ba4fb8fdf497e7"
dependencies = [
- "rand_core 0.6.1",
+ "rand_core 0.6.3",
]
[[package]]
@@ -8565,9 +8315,9 @@
[[package]]
name = "rayon"
-version = "1.3.1"
+version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "62f02856753d04e03e26929f820d0a0a337ebe71f849801eea335d464b349080"
+checksum = "c06aca804d41dbc8ba42dfd964f0d01334eceb64314b9ecf7c5fad5188a06d90"
dependencies = [
"autocfg",
"crossbeam-deque",
@@ -8577,31 +8327,22 @@
[[package]]
name = "rayon-core"
-version = "1.7.1"
+version = "1.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e92e15d89083484e11353891f1af602cc661426deb9564c298b270c726973280"
+checksum = "d78120e2c850279833f1dd3582f730c4ab53ed95aeaaaa862a2a5c71b1656d8e"
dependencies = [
+ "crossbeam-channel",
"crossbeam-deque",
- "crossbeam-queue",
- "crossbeam-utils 0.7.2",
+ "crossbeam-utils",
"lazy_static",
"num_cpus",
-]
-
-[[package]]
-name = "rdrand"
-version = "0.4.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "678054eb77286b51581ba43620cc911abf02758c91f93f479767aed0f90458b2"
-dependencies = [
- "rand_core 0.3.1",
]
[[package]]
name = "redox_syscall"
-version = "0.1.56"
+version = "0.1.57"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2439c63f3f6139d1b57529d16bc3b8bb855230c8efcc5d3a896c8bea7c3b1e84"
+checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce"
[[package]]
name = "redox_syscall"
@@ -8610,17 +8351,6 @@
checksum = "8383f39639269cde97d255a32bdb68c047337295414940c68bdd30c2e13203ff"
dependencies = [
"bitflags",
-]
-
-[[package]]
-name = "redox_users"
-version = "0.3.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "09b23093265f8d200fa7b4c2c76297f47e681c655f6f1285a8780d6a022f7431"
-dependencies = [
- "getrandom 0.1.14",
- "redox_syscall 0.1.56",
- "rust-argon2",
]
[[package]]
@@ -8629,7 +8359,7 @@
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "528532f3d801c87aec9def2add9ca802fe569e44a544afe633765267840abe64"
dependencies = [
- "getrandom 0.2.1",
+ "getrandom 0.2.3",
"redox_syscall 0.2.10",
]
@@ -8648,18 +8378,18 @@
[[package]]
name = "ref-cast"
-version = "1.0.2"
+version = "1.0.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "745c1787167ddae5569661d5ffb8b25ae5fedbf46717eaa92d652221cec72623"
+checksum = "300f2a835d808734ee295d45007adacb9ebb29dd3ae2424acfa17930cae541da"
dependencies = [
"ref-cast-impl",
]
[[package]]
name = "ref-cast-impl"
-version = "1.0.2"
+version = "1.0.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7d21b475ab879ef0e315ad99067fa25778c3b0377f57f1b00207448dac1a3144"
+checksum = "4c38e3aecd2b21cb3959637b883bb3714bc7e43f0268b9a29d3743ee3e55cdd2"
dependencies = [
"proc-macro2",
"quote",
@@ -8675,36 +8405,34 @@
"log",
"rustc-hash",
"serde",
- "smallvec 1.6.1",
+ "smallvec",
]
[[package]]
name = "regex"
-version = "1.4.2"
+version = "1.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "38cf2c13ed4745de91a5eb834e11c00bcc3709e773173b2ce4c56c9fbde04b9c"
+checksum = "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461"
dependencies = [
"aho-corasick",
"memchr",
"regex-syntax",
- "thread_local",
]
[[package]]
name = "regex-automata"
-version = "0.1.9"
+version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ae1ded71d66a4a97f5e961fd0cb25a5f366a42a41570d16a763a69c092c26ae4"
+checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132"
dependencies = [
- "byteorder",
"regex-syntax",
]
[[package]]
name = "regex-syntax"
-version = "0.6.21"
+version = "0.6.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3b181ba2dcf07aaccad5448e8ead58db5b742cf85dfe035e2227f137a539a189"
+checksum = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b"
[[package]]
name = "region"
@@ -8721,10 +8449,9 @@
[[package]]
name = "remote-externalities"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
- "env_logger 0.8.4",
- "hex",
+ "env_logger 0.9.0",
"jsonrpsee-proc-macros",
"jsonrpsee-ws-client",
"log",
@@ -8734,6 +8461,7 @@
"sp-core",
"sp-io",
"sp-runtime",
+ "sp-version",
]
[[package]]
@@ -8757,9 +8485,9 @@
[[package]]
name = "retain_mut"
-version = "0.1.3"
+version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e9c17925a9027d298a4603d286befe3f9dc0e8ed02523141914eb628798d6e5b"
+checksum = "448296241d034b96c11173591deaa1302f2c17b56092106c1f92c1bc0183a8c9"
[[package]]
name = "ring"
@@ -8778,11 +8506,11 @@
[[package]]
name = "rlp"
-version = "0.5.0"
+version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e54369147e3e7796c9b885c7304db87ca3d09a0a98f72843d532868675bbfba8"
+checksum = "999508abb0ae792aabed2460c45b89106d97fe4adac593bdaef433c2605847b5"
dependencies = [
- "bytes 1.0.1",
+ "bytes 1.1.0",
"rustc-hex",
]
@@ -8795,16 +8523,6 @@
"proc-macro2",
"quote",
"syn",
-]
-
-[[package]]
-name = "rocksdb"
-version = "0.16.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c749134fda8bfc90d0de643d59bfc841dcb3ac8a1062e12b6754bd60235c48b3"
-dependencies = [
- "libc",
- "librocksdb-sys",
]
[[package]]
@@ -8819,8 +8537,8 @@
[[package]]
name = "rococo-runtime"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"beefy-primitives",
"bp-messages",
@@ -8828,6 +8546,7 @@
"bp-runtime",
"bp-wococo",
"bridge-runtime-common",
+ "frame-benchmarking",
"frame-executive",
"frame-support",
"frame-system",
@@ -8850,11 +8569,11 @@
"pallet-membership",
"pallet-mmr",
"pallet-mmr-primitives",
+ "pallet-multisig",
"pallet-offences",
"pallet-proxy",
"pallet-session",
"pallet-staking",
- "pallet-staking-reward-curve",
"pallet-sudo",
"pallet-timestamp",
"pallet-transaction-payment",
@@ -8866,9 +8585,10 @@
"polkadot-primitives",
"polkadot-runtime-common",
"polkadot-runtime-parachains",
+ "scale-info",
"serde",
"serde_derive",
- "smallvec 1.6.1",
+ "smallvec",
"sp-api",
"sp-authority-discovery",
"sp-block-builder",
@@ -8891,31 +8611,19 @@
[[package]]
name = "rpassword"
-version = "5.0.0"
+version = "5.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d755237fc0f99d98641540e66abac8bc46a0652f19148ac9e21de2da06b326c9"
+checksum = "ffc936cf8a7ea60c58f030fd36a612a48f440610214dc54bc36431f9ea0c3efb"
dependencies = [
"libc",
"winapi 0.3.9",
-]
-
-[[package]]
-name = "rust-argon2"
-version = "0.7.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2bc8af4bda8e1ff4932523b94d3dd20ee30a87232323eda55903ffd71d2fb017"
-dependencies = [
- "base64 0.11.0",
- "blake2b_simd",
- "constant_time_eq",
- "crossbeam-utils 0.7.2",
]
[[package]]
name = "rustc-demangle"
-version = "0.1.16"
+version = "0.1.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4c691c0e608126e00913e33f0ccf3727d5fc84573623b8d65b2df340b5201783"
+checksum = "7ef03e0a2b150c7a90d01faf6254c9c48a41e95fb2a8c2ac1c6f0d2b9aefc342"
[[package]]
name = "rustc-hash"
@@ -8949,19 +8657,6 @@
[[package]]
name = "rustls"
-version = "0.18.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cac94b333ee2aac3284c5b8a1b7fb4dd11cba88c244e3fe33cdbd047af0eb693"
-dependencies = [
- "base64 0.12.3",
- "log",
- "ring",
- "sct",
- "webpki",
-]
-
-[[package]]
-name = "rustls"
version = "0.19.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "35edb675feee39aec9c99fa5ff985081995a06d594114ae14cbe797ad7b7a6d7"
@@ -8971,18 +8666,6 @@
"ring",
"sct",
"webpki",
-]
-
-[[package]]
-name = "rustls-native-certs"
-version = "0.4.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "629d439a7672da82dd955498445e496ee2096fe2117b9f796558a43fdb9e59b8"
-dependencies = [
- "openssl-probe",
- "rustls 0.18.0",
- "schannel",
- "security-framework 1.0.0",
]
[[package]]
@@ -8992,19 +8675,9 @@
checksum = "5a07b7c1885bd8ed3831c289b7870b13ef46fe0e856d288c30d9cc17d75a2092"
dependencies = [
"openssl-probe",
- "rustls 0.19.1",
+ "rustls",
"schannel",
- "security-framework 2.2.0",
-]
-
-[[package]]
-name = "ruzstd"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3d425143485a37727c7a46e689bbe3b883a00f42b4a52c4ac0f44855c1009b00"
-dependencies = [
- "byteorder",
- "twox-hash",
+ "security-framework",
]
[[package]]
@@ -9014,7 +8687,7 @@
checksum = "4da5fcb054c46f5a5dff833b129285a93d3f0179531735e6c866e8cc307d2020"
dependencies = [
"futures 0.3.17",
- "pin-project 0.4.23",
+ "pin-project 0.4.28",
"static_assertions",
]
@@ -9054,7 +8727,7 @@
[[package]]
name = "sc-allocator"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"log",
"sp-core",
@@ -9065,11 +8738,10 @@
[[package]]
name = "sc-authority-discovery"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"async-trait",
"derive_more",
- "either",
"futures 0.3.17",
"futures-timer 3.0.2",
"ip_network",
@@ -9081,7 +8753,6 @@
"rand 0.7.3",
"sc-client-api",
"sc-network",
- "serde_json",
"sp-api",
"sp-authority-discovery",
"sp-blockchain",
@@ -9094,7 +8765,7 @@
[[package]]
name = "sc-basic-authorship"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"futures 0.3.17",
"futures-timer 3.0.2",
@@ -9117,7 +8788,7 @@
[[package]]
name = "sc-block-builder"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"parity-scale-codec",
"sc-client-api",
@@ -9133,7 +8804,7 @@
[[package]]
name = "sc-chain-spec"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"impl-trait-for-tuples 0.2.1",
"parity-scale-codec",
@@ -9149,9 +8820,9 @@
[[package]]
name = "sc-chain-spec-derive"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
- "proc-macro-crate 1.0.0",
+ "proc-macro-crate 1.1.0",
"proc-macro2",
"quote",
"syn",
@@ -9160,7 +8831,7 @@
[[package]]
name = "sc-cli"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"chrono",
"fdlimit",
@@ -9179,6 +8850,7 @@
"sc-service",
"sc-telemetry",
"sc-tracing",
+ "sc-utils",
"serde",
"serde_json",
"sp-blockchain",
@@ -9187,66 +8859,56 @@
"sp-keystore",
"sp-panic-handler",
"sp-runtime",
- "sp-utils",
"sp-version",
"structopt",
"thiserror",
"tiny-bip39",
- "tokio 0.2.25",
+ "tokio 1.12.0",
]
[[package]]
name = "sc-client-api"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
- "derive_more",
"fnv",
"futures 0.3.17",
"hash-db",
- "kvdb",
- "lazy_static",
"log",
"parity-scale-codec",
"parking_lot 0.11.2",
"sc-executor",
"sc-transaction-pool-api",
+ "sc-utils",
"sp-api",
"sp-blockchain",
"sp-consensus",
"sp-core",
"sp-database",
"sp-externalities",
- "sp-inherents",
"sp-keystore",
"sp-runtime",
"sp-state-machine",
- "sp-std",
"sp-storage",
"sp-trie",
- "sp-utils",
- "sp-version",
"substrate-prometheus-endpoint",
]
[[package]]
name = "sc-client-db"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
- "blake2-rfc",
"hash-db",
"kvdb",
"kvdb-memorydb",
- "kvdb-rocksdb 0.12.0",
+ "kvdb-rocksdb",
"linked-hash-map",
"log",
"parity-db",
"parity-scale-codec",
- "parity-util-mem",
"parking_lot 0.11.2",
"sc-client-api",
- "sc-executor",
"sc-state-db",
"sp-arithmetic",
"sp-blockchain",
@@ -9255,13 +8917,12 @@
"sp-runtime",
"sp-state-machine",
"sp-trie",
- "substrate-prometheus-endpoint",
]
[[package]]
name = "sc-consensus"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"async-trait",
"futures 0.3.17",
@@ -9270,6 +8931,7 @@
"log",
"parking_lot 0.11.2",
"sc-client-api",
+ "sc-utils",
"serde",
"sp-api",
"sp-blockchain",
@@ -9277,21 +8939,18 @@
"sp-core",
"sp-runtime",
"sp-state-machine",
- "sp-utils",
"substrate-prometheus-endpoint",
"thiserror",
- "wasm-timer",
]
[[package]]
name = "sc-consensus-aura"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"async-trait",
"derive_more",
"futures 0.3.17",
- "futures-timer 3.0.2",
"log",
"parity-scale-codec",
"sc-block-builder",
@@ -9308,23 +8967,20 @@
"sp-consensus-slots",
"sp-core",
"sp-inherents",
- "sp-io",
"sp-keystore",
"sp-runtime",
- "sp-version",
"substrate-prometheus-endpoint",
]
[[package]]
name = "sc-consensus-babe"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"async-trait",
"derive_more",
"fork-tree",
"futures 0.3.17",
- "futures-timer 3.0.2",
"log",
"merlin",
"num-bigint",
@@ -9332,14 +8988,12 @@
"num-traits",
"parity-scale-codec",
"parking_lot 0.11.2",
- "pdqselect",
"rand 0.7.3",
"retain_mut",
"sc-client-api",
"sc-consensus",
"sc-consensus-epochs",
"sc-consensus-slots",
- "sc-consensus-uncles",
"sc-keystore",
"sc-telemetry",
"schnorrkel",
@@ -9357,7 +9011,6 @@
"sp-io",
"sp-keystore",
"sp-runtime",
- "sp-utils",
"sp-version",
"substrate-prometheus-endpoint",
]
@@ -9365,13 +9018,13 @@
[[package]]
name = "sc-consensus-babe-rpc"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"derive_more",
"futures 0.3.17",
- "jsonrpc-core 15.1.0",
- "jsonrpc-core-client 15.1.0",
- "jsonrpc-derive 15.1.0",
+ "jsonrpc-core",
+ "jsonrpc-core-client",
+ "jsonrpc-derive",
"sc-consensus-babe",
"sc-consensus-epochs",
"sc-rpc-api",
@@ -9389,7 +9042,7 @@
[[package]]
name = "sc-consensus-epochs"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"fork-tree",
"parity-scale-codec",
@@ -9402,19 +9055,17 @@
[[package]]
name = "sc-consensus-slots"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"async-trait",
"futures 0.3.17",
"futures-timer 3.0.2",
- "impl-trait-for-tuples 0.2.1",
"log",
"parity-scale-codec",
"sc-client-api",
"sc-consensus",
"sc-telemetry",
"sp-api",
- "sp-application-crypto",
"sp-arithmetic",
"sp-blockchain",
"sp-consensus",
@@ -9424,14 +9075,13 @@
"sp-runtime",
"sp-state-machine",
"sp-timestamp",
- "sp-trie",
"thiserror",
]
[[package]]
name = "sc-consensus-uncles"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"sc-client-api",
"sp-authorship",
@@ -9442,14 +9092,12 @@
[[package]]
name = "sc-executor"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
- "derive_more",
"lazy_static",
"libsecp256k1 0.6.0",
"log",
"parity-scale-codec",
- "parity-wasm 0.42.2",
"parking_lot 0.11.2",
"sc-executor-common",
"sc-executor-wasmi",
@@ -9460,7 +9108,6 @@
"sp-io",
"sp-panic-handler",
"sp-runtime-interface",
- "sp-serializer",
"sp-tasks",
"sp-trie",
"sp-version",
@@ -9471,9 +9118,10 @@
[[package]]
name = "sc-executor-common"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"derive_more",
+ "environmental",
"parity-scale-codec",
"pwasm-utils",
"sc-allocator",
@@ -9488,12 +9136,13 @@
[[package]]
name = "sc-executor-wasmi"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"log",
"parity-scale-codec",
"sc-allocator",
"sc-executor-common",
+ "scoped-tls",
"sp-core",
"sp-runtime-interface",
"sp-wasm-interface",
@@ -9503,17 +9152,15 @@
[[package]]
name = "sc-executor-wasmtime"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"cfg-if 1.0.0",
"libc",
"log",
"parity-scale-codec",
"parity-wasm 0.42.2",
- "pwasm-utils",
"sc-allocator",
"sc-executor-common",
- "scoped-tls",
"sp-core",
"sp-runtime-interface",
"sp-wasm-interface",
@@ -9523,7 +9170,7 @@
[[package]]
name = "sc-finality-grandpa"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"async-trait",
"derive_more",
@@ -9532,11 +9179,9 @@
"fork-tree",
"futures 0.3.17",
"futures-timer 3.0.2",
- "linked-hash-map",
"log",
"parity-scale-codec",
"parking_lot 0.11.2",
- "pin-project 1.0.7",
"rand 0.8.4",
"sc-block-builder",
"sc-client-api",
@@ -9545,6 +9190,7 @@
"sc-network",
"sc-network-gossip",
"sc-telemetry",
+ "sc-utils",
"serde_json",
"sp-api",
"sp-application-crypto",
@@ -9553,26 +9199,23 @@
"sp-consensus",
"sp-core",
"sp-finality-grandpa",
- "sp-inherents",
"sp-keystore",
"sp-runtime",
- "sp-utils",
"substrate-prometheus-endpoint",
- "wasm-timer",
]
[[package]]
name = "sc-finality-grandpa-rpc"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"derive_more",
"finality-grandpa",
"futures 0.3.17",
- "jsonrpc-core 15.1.0",
- "jsonrpc-core-client 15.1.0",
- "jsonrpc-derive 15.1.0",
- "jsonrpc-pubsub 15.1.0",
+ "jsonrpc-core",
+ "jsonrpc-core-client",
+ "jsonrpc-derive",
+ "jsonrpc-pubsub",
"log",
"parity-scale-codec",
"sc-client-api",
@@ -9588,7 +9231,7 @@
[[package]]
name = "sc-informant"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"ansi_term 0.12.1",
"futures 0.3.17",
@@ -9600,36 +9243,29 @@
"sc-transaction-pool-api",
"sp-blockchain",
"sp-runtime",
- "wasm-timer",
]
[[package]]
name = "sc-keystore"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"async-trait",
"derive_more",
- "futures 0.3.17",
- "futures-util",
"hex",
- "merlin",
"parking_lot 0.11.2",
- "rand 0.7.3",
"serde_json",
"sp-application-crypto",
"sp-core",
"sp-keystore",
- "subtle 2.4.1",
]
[[package]]
name = "sc-light"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"hash-db",
- "lazy_static",
"parity-scale-codec",
"parking_lot 0.11.2",
"sc-client-api",
@@ -9645,18 +9281,16 @@
[[package]]
name = "sc-network"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"async-std",
"async-trait",
"asynchronous-codec 0.5.0",
"bitflags",
- "bs58",
- "bytes 1.0.1",
+ "bytes 1.1.0",
"cid",
"derive_more",
"either",
- "erased-serde",
"fnv",
"fork-tree",
"futures 0.3.17",
@@ -9668,10 +9302,9 @@
"linked_hash_set",
"log",
"lru",
- "nohash-hasher",
"parity-scale-codec",
"parking_lot 0.11.2",
- "pin-project 1.0.7",
+ "pin-project 1.0.8",
"prost",
"prost-build",
"rand 0.7.3",
@@ -9679,28 +9312,27 @@
"sc-client-api",
"sc-consensus",
"sc-peerset",
+ "sc-utils",
"serde",
"serde_json",
- "smallvec 1.6.1",
+ "smallvec",
"sp-arithmetic",
"sp-blockchain",
"sp-consensus",
"sp-core",
"sp-finality-grandpa",
"sp-runtime",
- "sp-utils",
"substrate-prometheus-endpoint",
"thiserror",
"unsigned-varint 0.6.0",
"void",
- "wasm-timer",
"zeroize",
]
[[package]]
name = "sc-network-gossip"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"futures 0.3.17",
"futures-timer 3.0.2",
@@ -9711,20 +9343,19 @@
"sp-runtime",
"substrate-prometheus-endpoint",
"tracing",
- "wasm-timer",
]
[[package]]
name = "sc-offchain"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
- "bytes 0.5.6",
+ "bytes 1.1.0",
"fnv",
"futures 0.3.17",
"futures-timer 3.0.2",
"hex",
- "hyper 0.13.9",
+ "hyper",
"hyper-rustls",
"log",
"num_cpus",
@@ -9732,33 +9363,32 @@
"parking_lot 0.11.2",
"rand 0.7.3",
"sc-client-api",
- "sc-keystore",
"sc-network",
+ "sc-utils",
"sp-api",
"sp-core",
"sp-offchain",
"sp-runtime",
- "sp-utils",
"threadpool",
]
[[package]]
name = "sc-peerset"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"futures 0.3.17",
"libp2p",
"log",
+ "sc-utils",
"serde_json",
- "sp-utils",
"wasm-timer",
]
[[package]]
name = "sc-proposer-metrics"
version = "0.9.0"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"log",
"substrate-prometheus-endpoint",
@@ -9767,23 +9397,22 @@
[[package]]
name = "sc-rpc"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"futures 0.3.17",
"hash-db",
- "jsonrpc-core 15.1.0",
- "jsonrpc-pubsub 15.1.0",
+ "jsonrpc-core",
+ "jsonrpc-pubsub",
"log",
"parity-scale-codec",
"parking_lot 0.11.2",
"sc-block-builder",
"sc-chain-spec",
"sc-client-api",
- "sc-executor",
- "sc-keystore",
"sc-rpc-api",
"sc-tracing",
"sc-transaction-pool-api",
+ "sc-utils",
"serde_json",
"sp-api",
"sp-blockchain",
@@ -9793,23 +9422,19 @@
"sp-rpc",
"sp-runtime",
"sp-session",
- "sp-state-machine",
- "sp-tracing",
- "sp-utils",
"sp-version",
]
[[package]]
name = "sc-rpc-api"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
- "derive_more",
"futures 0.3.17",
- "jsonrpc-core 15.1.0",
- "jsonrpc-core-client 15.1.0",
- "jsonrpc-derive 15.1.0",
- "jsonrpc-pubsub 15.1.0",
+ "jsonrpc-core",
+ "jsonrpc-core-client",
+ "jsonrpc-derive",
+ "jsonrpc-pubsub",
"log",
"parity-scale-codec",
"parking_lot 0.11.2",
@@ -9822,46 +9447,44 @@
"sp-runtime",
"sp-tracing",
"sp-version",
+ "thiserror",
]
[[package]]
name = "sc-rpc-server"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
- "futures 0.1.29",
- "jsonrpc-core 15.1.0",
+ "futures 0.3.17",
+ "jsonrpc-core",
"jsonrpc-http-server",
"jsonrpc-ipc-server",
- "jsonrpc-pubsub 15.1.0",
+ "jsonrpc-pubsub",
"jsonrpc-ws-server",
"log",
- "serde",
"serde_json",
- "sp-runtime",
"substrate-prometheus-endpoint",
+ "tokio 1.12.0",
]
[[package]]
name = "sc-service"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"async-trait",
"directories",
"exit-future",
- "futures 0.1.29",
"futures 0.3.17",
"futures-timer 3.0.2",
"hash-db",
- "jsonrpc-core 15.1.0",
- "jsonrpc-pubsub 15.1.0",
- "lazy_static",
+ "jsonrpc-core",
+ "jsonrpc-pubsub",
"log",
"parity-scale-codec",
"parity-util-mem",
"parking_lot 0.11.2",
- "pin-project 1.0.7",
+ "pin-project 1.0.8",
"rand 0.7.3",
"sc-block-builder",
"sc-chain-spec",
@@ -9880,6 +9503,7 @@
"sc-tracing",
"sc-transaction-pool",
"sc-transaction-pool-api",
+ "sc-utils",
"serde",
"serde_json",
"sp-api",
@@ -9890,7 +9514,6 @@
"sp-core",
"sp-externalities",
"sp-inherents",
- "sp-io",
"sp-keystore",
"sp-runtime",
"sp-session",
@@ -9900,20 +9523,19 @@
"sp-transaction-pool",
"sp-transaction-storage-proof",
"sp-trie",
- "sp-utils",
"sp-version",
"substrate-prometheus-endpoint",
"tempfile",
"thiserror",
+ "tokio 1.12.0",
"tracing",
"tracing-futures",
- "wasm-timer",
]
[[package]]
name = "sc-state-db"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"log",
"parity-scale-codec",
@@ -9922,17 +9544,16 @@
"parking_lot 0.11.2",
"sc-client-api",
"sp-core",
- "thiserror",
]
[[package]]
name = "sc-sync-state-rpc"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
- "jsonrpc-core 15.1.0",
- "jsonrpc-core-client 15.1.0",
- "jsonrpc-derive 15.1.0",
+ "jsonrpc-core",
+ "jsonrpc-core-client",
+ "jsonrpc-derive",
"parity-scale-codec",
"sc-chain-spec",
"sc-client-api",
@@ -9950,31 +9571,28 @@
[[package]]
name = "sc-telemetry"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"chrono",
"futures 0.3.17",
"libp2p",
"log",
"parking_lot 0.11.2",
- "pin-project 1.0.7",
+ "pin-project 1.0.8",
"rand 0.7.3",
"serde",
"serde_json",
- "take_mut",
"thiserror",
- "void",
"wasm-timer",
]
[[package]]
name = "sc-tracing"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"ansi_term 0.12.1",
"atty",
- "erased-serde",
"lazy_static",
"log",
"once_cell",
@@ -9983,33 +9601,26 @@
"rustc-hash",
"sc-client-api",
"sc-rpc-server",
- "sc-telemetry",
"sc-tracing-proc-macro",
"serde",
- "serde_json",
"sp-api",
- "sp-block-builder",
"sp-blockchain",
"sp-core",
"sp-rpc",
"sp-runtime",
- "sp-storage",
"sp-tracing",
"thiserror",
"tracing",
"tracing-log",
"tracing-subscriber",
- "wasm-bindgen",
- "wasm-timer",
- "web-sys",
]
[[package]]
name = "sc-tracing-proc-macro"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
- "proc-macro-crate 1.0.0",
+ "proc-macro-crate 1.1.0",
"proc-macro2",
"quote",
"syn",
@@ -10018,9 +9629,8 @@
[[package]]
name = "sc-transaction-pool"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
- "derive_more",
"futures 0.3.17",
"intervalier",
"linked-hash-map",
@@ -10031,6 +9641,7 @@
"retain_mut",
"sc-client-api",
"sc-transaction-pool-api",
+ "sc-utils",
"serde",
"sp-api",
"sp-blockchain",
@@ -10038,21 +9649,18 @@
"sp-runtime",
"sp-tracing",
"sp-transaction-pool",
- "sp-utils",
"substrate-prometheus-endpoint",
"thiserror",
- "wasm-timer",
]
[[package]]
name = "sc-transaction-pool-api"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"derive_more",
"futures 0.3.17",
"log",
- "parity-scale-codec",
"serde",
"sp-blockchain",
"sp-runtime",
@@ -10060,25 +9668,37 @@
]
[[package]]
+name = "sc-utils"
+version = "4.0.0-dev"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
+dependencies = [
+ "futures 0.3.17",
+ "futures-timer 3.0.2",
+ "lazy_static",
+ "prometheus",
+]
+
+[[package]]
name = "scale-info"
-version = "0.10.0"
+version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d2e62ff266e136db561a007c84569985805f84a1d5a08278e52c36aacb6e061b"
+checksum = "5c55b744399c25532d63a0d2789b109df8d46fc93752d46b0782991a931a782f"
dependencies = [
- "bitvec 0.20.1",
+ "bitvec 0.20.4",
"cfg-if 1.0.0",
"derive_more",
"parity-scale-codec",
"scale-info-derive",
+ "serde",
]
[[package]]
name = "scale-info-derive"
-version = "0.7.0"
+version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b648fa291891a4c80187a25532f6a7d96b82c70353e30b868b14632b8fe043d6"
+checksum = "baeb2780690380592f86205aa4ee49815feb2acad8c2f59e6dd207148c3f1fcd"
dependencies = [
- "proc-macro-crate 1.0.0",
+ "proc-macro-crate 1.1.0",
"proc-macro2",
"quote",
"syn",
@@ -10102,8 +9722,8 @@
dependencies = [
"arrayref",
"arrayvec 0.5.2",
- "curve25519-dalek 2.1.0",
- "getrandom 0.1.14",
+ "curve25519-dalek 2.1.3",
+ "getrandom 0.1.16",
"merlin",
"rand 0.7.3",
"rand_core 0.5.1",
@@ -10125,67 +9745,64 @@
checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
[[package]]
-name = "sct"
-version = "0.6.0"
+name = "scroll"
+version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e3042af939fca8c3453b7af0f1c66e533a15a86169e39de2657310ade8f98d3c"
+checksum = "fda28d4b4830b807a8b43f7b0e6b5df875311b3e7621d84577188c175b6ec1ec"
dependencies = [
- "ring",
- "untrusted",
+ "scroll_derive",
]
[[package]]
-name = "secrecy"
-version = "0.7.0"
+name = "scroll_derive"
+version = "0.10.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0673d6a6449f5e7d12a1caf424fd9363e2af3a4953023ed455e3c4beef4597c0"
+checksum = "aaaae8f38bb311444cfb7f1979af0bc9240d95795f75f9ceddf6a59b79ceffa0"
dependencies = [
- "zeroize",
+ "proc-macro2",
+ "quote",
+ "syn",
]
[[package]]
-name = "security-framework"
-version = "1.0.0"
+name = "sct"
+version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ad502866817f0575705bd7be36e2b2535cc33262d493aa733a2ec862baa2bc2b"
+checksum = "b362b83898e0e69f38515b82ee15aa80636befe47c3b6d3d89a911e78fc228ce"
dependencies = [
- "bitflags",
- "core-foundation 0.7.0",
- "core-foundation-sys 0.7.0",
- "libc",
- "security-framework-sys 1.0.0",
+ "ring",
+ "untrusted",
]
[[package]]
-name = "security-framework"
-version = "2.2.0"
+name = "secrecy"
+version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3670b1d2fdf6084d192bc71ead7aabe6c06aa2ea3fbd9cc3ac111fa5c2b1bd84"
+checksum = "0673d6a6449f5e7d12a1caf424fd9363e2af3a4953023ed455e3c4beef4597c0"
dependencies = [
- "bitflags",
- "core-foundation 0.9.1",
- "core-foundation-sys 0.8.2",
- "libc",
- "security-framework-sys 2.2.0",
+ "zeroize",
]
[[package]]
-name = "security-framework-sys"
-version = "1.0.0"
+name = "security-framework"
+version = "2.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "51ceb04988b17b6d1dcd555390fa822ca5637b4a14e1f5099f13d351bed4d6c7"
+checksum = "525bc1abfda2e1998d152c45cf13e696f76d0a4972310b22fac1658b05df7c87"
dependencies = [
- "core-foundation-sys 0.7.0",
+ "bitflags",
+ "core-foundation",
+ "core-foundation-sys",
"libc",
+ "security-framework-sys",
]
[[package]]
name = "security-framework-sys"
-version = "2.2.0"
+version = "2.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3676258fd3cfe2c9a0ec99ce3038798d847ce3e4bb17746373eb9f0f1ac16339"
+checksum = "a9dd14d83160b528b7bfd66439110573efcfbe281b17fc2ca9f39f550d619c7e"
dependencies = [
- "core-foundation-sys 0.8.2",
+ "core-foundation-sys",
"libc",
]
@@ -10277,13 +9894,13 @@
[[package]]
name = "sha-1"
-version = "0.9.6"
+version = "0.9.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8c4cfa741c5832d0ef7fab46cabed29c2aae926db0b11bb2069edd8db5e64e16"
+checksum = "99cd6713db3cf16b6c84e06321e049a9b9f699826e16096d23bbcc44d15d51a6"
dependencies = [
"block-buffer 0.9.0",
"cfg-if 1.0.0",
- "cpufeatures 0.1.4",
+ "cpufeatures 0.2.1",
"digest 0.9.0",
"opaque-debug 0.3.0",
]
@@ -10302,13 +9919,13 @@
[[package]]
name = "sha2"
-version = "0.9.2"
+version = "0.9.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6e7aab86fe2149bad8c507606bdb3f4ef5e7b2380eb92350f56122cca72a42a8"
+checksum = "b69f9a4c9740d74c5baa3fd2e547f9525fa8088a8a958e0ca2409a514e33f5fa"
dependencies = [
"block-buffer 0.9.0",
"cfg-if 1.0.0",
- "cpuid-bool",
+ "cpufeatures 0.2.1",
"digest 0.9.0",
"opaque-debug 0.3.0",
]
@@ -10340,12 +9957,11 @@
[[package]]
name = "sharded-slab"
-version = "0.1.0"
+version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7b4921be914e16899a80adefb821f8ddb7974e3f1250223575a44ed994882127"
+checksum = "740223c51853f3145fe7c90360d2d4232f2b62e3449489c207eccde818979982"
dependencies = [
"lazy_static",
- "loom",
]
[[package]]
@@ -10356,9 +9972,9 @@
[[package]]
name = "signal-hook"
-version = "0.3.9"
+version = "0.3.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "470c5a6397076fae0094aaf06a08e6ba6f37acb77d3b1b91ea92b4d6c8650c39"
+checksum = "9c98891d737e271a2954825ef19e46bd16bdb98e2746f2eec4f7a4ef7946efd1"
dependencies = [
"libc",
"signal-hook-registry",
@@ -10375,9 +9991,9 @@
[[package]]
name = "signature"
-version = "1.1.0"
+version = "1.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "65211b7b6fc3f14ff9fc7a2011a434e3e6880585bd2e9e9396315ae24cbf7852"
+checksum = "c19772be3c4dd2ceaacf03cb41d5885f2a02c4d8804884918e3a258480803335"
[[package]]
name = "simba"
@@ -10393,9 +10009,9 @@
[[package]]
name = "slab"
-version = "0.4.2"
+version = "0.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8"
+checksum = "c307a32c1c5c437f38c7fd45d753050587732ba8628319fbdf12a7e289ccc590"
[[package]]
name = "slog"
@@ -10408,8 +10024,8 @@
[[package]]
name = "slot-range-helper"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"enumn",
"parity-scale-codec",
@@ -10420,27 +10036,24 @@
[[package]]
name = "slotmap"
-version = "1.0.5"
+version = "1.0.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a952280edbecfb1d4bd3cf2dbc309dc6ab523e53487c438ae21a6df09fe84bc4"
+checksum = "e1e08e261d0e8f5c43123b7adf3e4ca1690d655377ac93a03b2c9d3e98de1342"
dependencies = [
"version_check",
]
[[package]]
name = "smallvec"
-version = "0.6.13"
+version = "1.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f7b0758c52e15a8b5e3691eae6cc559f08eee9406e548a4477ba4e67770a82b6"
-dependencies = [
- "maybe-uninit",
-]
+checksum = "1ecab6c735a6bb4139c0caafd0cc3635748bbb3acf4550e8138122099251f309"
[[package]]
-name = "smallvec"
-version = "1.6.1"
+name = "snap"
+version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fe0f37c9e8f3c5a4a66ad655a93c74daac4ad00c441533bf5c6e7990bb42604e"
+checksum = "45456094d1983e2ee2a18fdfebce3189fa451699d0502cb8e3b49dba5ba41451"
[[package]]
name = "snow"
@@ -10452,31 +10065,30 @@
"blake2",
"chacha20poly1305",
"rand 0.8.4",
- "rand_core 0.6.1",
+ "rand_core 0.6.3",
"ring",
"rustc_version 0.3.3",
- "sha2 0.9.2",
+ "sha2 0.9.8",
"subtle 2.4.1",
"x25519-dalek",
]
[[package]]
name = "socket2"
-version = "0.3.17"
+version = "0.3.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2c29947abdee2a218277abeca306f25789c938e500ea5a9d4b12a5a504466902"
+checksum = "122e570113d28d773067fab24266b66753f6ea915758651696b6e35e49f88d6e"
dependencies = [
"cfg-if 1.0.0",
"libc",
- "redox_syscall 0.1.56",
"winapi 0.3.9",
]
[[package]]
name = "socket2"
-version = "0.4.0"
+version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9e3dfc207c526015c632472a77be09cf1b6e46866581aecae5cc38fb4235dea2"
+checksum = "5dc90fe6c7be1a323296982db1836d1ea9e47b6839496dde9a541bc496df3516"
dependencies = [
"libc",
"winapi 0.3.9",
@@ -10484,9 +10096,9 @@
[[package]]
name = "soketto"
-version = "0.4.1"
+version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "85457366ae0c6ce56bf05a958aef14cd38513c236568618edbcd9a8c52cb80b0"
+checksum = "b5c71ed3d54db0a699f4948e1bb3e45b450fa31fe602621dee6680361d569c88"
dependencies = [
"base64 0.12.3",
"bytes 0.5.6",
@@ -10495,7 +10107,7 @@
"httparse",
"log",
"rand 0.7.3",
- "sha-1 0.8.2",
+ "sha-1 0.9.8",
]
[[package]]
@@ -10505,18 +10117,18 @@
checksum = "a74e48087dbeed4833785c2f3352b59140095dc192dce966a3bfc155020a439f"
dependencies = [
"base64 0.13.0",
- "bytes 1.0.1",
+ "bytes 1.1.0",
"futures 0.3.17",
"httparse",
"log",
"rand 0.8.4",
- "sha-1 0.9.6",
+ "sha-1 0.9.8",
]
[[package]]
name = "sp-api"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"hash-db",
"log",
@@ -10533,10 +10145,10 @@
[[package]]
name = "sp-api-proc-macro"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"blake2-rfc",
- "proc-macro-crate 1.0.0",
+ "proc-macro-crate 1.1.0",
"proc-macro2",
"quote",
"syn",
@@ -10545,9 +10157,10 @@
[[package]]
name = "sp-application-crypto"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"parity-scale-codec",
+ "scale-info",
"serde",
"sp-core",
"sp-io",
@@ -10557,11 +10170,12 @@
[[package]]
name = "sp-arithmetic"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"integer-sqrt",
"num-traits",
"parity-scale-codec",
+ "scale-info",
"serde",
"sp-debug-derive",
"sp-std",
@@ -10571,9 +10185,10 @@
[[package]]
name = "sp-authority-discovery"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"parity-scale-codec",
+ "scale-info",
"sp-api",
"sp-application-crypto",
"sp-runtime",
@@ -10583,7 +10198,7 @@
[[package]]
name = "sp-authorship"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"async-trait",
"parity-scale-codec",
@@ -10595,7 +10210,7 @@
[[package]]
name = "sp-block-builder"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"parity-scale-codec",
"sp-api",
@@ -10607,7 +10222,7 @@
[[package]]
name = "sp-blockchain"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"futures 0.3.17",
"log",
@@ -10625,36 +10240,30 @@
[[package]]
name = "sp-consensus"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"async-trait",
"futures 0.3.17",
"futures-timer 3.0.2",
"log",
"parity-scale-codec",
- "parking_lot 0.11.2",
- "serde",
- "sp-api",
"sp-core",
"sp-inherents",
"sp-runtime",
"sp-state-machine",
"sp-std",
- "sp-trie",
- "sp-utils",
"sp-version",
- "substrate-prometheus-endpoint",
"thiserror",
- "wasm-timer",
]
[[package]]
name = "sp-consensus-aura"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"async-trait",
"parity-scale-codec",
+ "scale-info",
"sp-api",
"sp-application-crypto",
"sp-consensus",
@@ -10668,11 +10277,12 @@
[[package]]
name = "sp-consensus-babe"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"async-trait",
"merlin",
"parity-scale-codec",
+ "scale-info",
"serde",
"sp-api",
"sp-application-crypto",
@@ -10690,9 +10300,10 @@
[[package]]
name = "sp-consensus-slots"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"parity-scale-codec",
+ "scale-info",
"sp-arithmetic",
"sp-runtime",
]
@@ -10700,7 +10311,7 @@
[[package]]
name = "sp-consensus-vrf"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"parity-scale-codec",
"schnorrkel",
@@ -10712,7 +10323,7 @@
[[package]]
name = "sp-core"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"base58",
"blake2-rfc",
@@ -10735,10 +10346,11 @@
"primitive-types 0.10.1",
"rand 0.7.3",
"regex",
+ "scale-info",
"schnorrkel",
"secrecy",
"serde",
- "sha2 0.9.2",
+ "sha2 0.9.8",
"sp-debug-derive",
"sp-externalities",
"sp-runtime-interface",
@@ -10756,7 +10368,7 @@
[[package]]
name = "sp-database"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"kvdb",
"parking_lot 0.11.2",
@@ -10765,7 +10377,7 @@
[[package]]
name = "sp-debug-derive"
version = "3.0.0"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"proc-macro2",
"quote",
@@ -10775,7 +10387,7 @@
[[package]]
name = "sp-externalities"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"environmental",
"parity-scale-codec",
@@ -10786,11 +10398,12 @@
[[package]]
name = "sp-finality-grandpa"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"finality-grandpa",
"log",
"parity-scale-codec",
+ "scale-info",
"serde",
"sp-api",
"sp-application-crypto",
@@ -10803,7 +10416,7 @@
[[package]]
name = "sp-inherents"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"async-trait",
"impl-trait-for-tuples 0.2.1",
@@ -10817,7 +10430,7 @@
[[package]]
name = "sp-io"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"futures 0.3.17",
"hash-db",
@@ -10828,7 +10441,6 @@
"sp-core",
"sp-externalities",
"sp-keystore",
- "sp-maybe-compressed-blob",
"sp-runtime-interface",
"sp-state-machine",
"sp-std",
@@ -10842,18 +10454,18 @@
[[package]]
name = "sp-keyring"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"lazy_static",
"sp-core",
"sp-runtime",
- "strum",
+ "strum 0.20.0",
]
[[package]]
name = "sp-keystore"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"async-trait",
"derive_more",
@@ -10870,31 +10482,32 @@
[[package]]
name = "sp-maybe-compressed-blob"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
- "ruzstd",
"zstd",
]
[[package]]
name = "sp-npos-elections"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"parity-scale-codec",
+ "scale-info",
"serde",
"sp-arithmetic",
"sp-core",
"sp-npos-elections-solution-type",
+ "sp-runtime",
"sp-std",
]
[[package]]
name = "sp-npos-elections-solution-type"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
- "proc-macro-crate 1.0.0",
+ "proc-macro-crate 1.1.0",
"proc-macro2",
"quote",
"syn",
@@ -10903,7 +10516,7 @@
[[package]]
name = "sp-offchain"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"sp-api",
"sp-core",
@@ -10913,7 +10526,7 @@
[[package]]
name = "sp-panic-handler"
version = "3.0.0"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"backtrace",
]
@@ -10921,18 +10534,17 @@
[[package]]
name = "sp-rpc"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"rustc-hash",
"serde",
"sp-core",
- "tracing-core",
]
[[package]]
name = "sp-runtime"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"either",
"hash256-std-hasher",
@@ -10942,6 +10554,7 @@
"parity-util-mem",
"paste",
"rand 0.7.3",
+ "scale-info",
"serde",
"sp-application-crypto",
"sp-arithmetic",
@@ -10953,7 +10566,7 @@
[[package]]
name = "sp-runtime-interface"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"impl-trait-for-tuples 0.2.1",
"parity-scale-codec",
@@ -10970,10 +10583,10 @@
[[package]]
name = "sp-runtime-interface-proc-macro"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"Inflector",
- "proc-macro-crate 1.0.0",
+ "proc-macro-crate 1.1.0",
"proc-macro2",
"quote",
"syn",
@@ -10982,8 +10595,9 @@
[[package]]
name = "sp-sandbox"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
+ "log",
"parity-scale-codec",
"sp-core",
"sp-io",
@@ -10995,7 +10609,7 @@
[[package]]
name = "sp-serializer"
version = "3.0.0"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"serde",
"serde_json",
@@ -11004,9 +10618,10 @@
[[package]]
name = "sp-session"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"parity-scale-codec",
+ "scale-info",
"sp-api",
"sp-core",
"sp-runtime",
@@ -11017,9 +10632,10 @@
[[package]]
name = "sp-staking"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"parity-scale-codec",
+ "scale-info",
"sp-runtime",
"sp-std",
]
@@ -11027,7 +10643,7 @@
[[package]]
name = "sp-state-machine"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"hash-db",
"log",
@@ -11035,7 +10651,7 @@
"parity-scale-codec",
"parking_lot 0.11.2",
"rand 0.7.3",
- "smallvec 1.6.1",
+ "smallvec",
"sp-core",
"sp-externalities",
"sp-panic-handler",
@@ -11050,12 +10666,12 @@
[[package]]
name = "sp-std"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
[[package]]
name = "sp-storage"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"impl-serde",
"parity-scale-codec",
@@ -11068,7 +10684,7 @@
[[package]]
name = "sp-tasks"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"log",
"sp-core",
@@ -11081,7 +10697,7 @@
[[package]]
name = "sp-timestamp"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"async-trait",
"futures-timer 3.0.2",
@@ -11092,13 +10708,12 @@
"sp-runtime",
"sp-std",
"thiserror",
- "wasm-timer",
]
[[package]]
name = "sp-tracing"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"erased-serde",
"log",
@@ -11116,7 +10731,7 @@
[[package]]
name = "sp-transaction-pool"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"sp-api",
"sp-runtime",
@@ -11125,11 +10740,12 @@
[[package]]
name = "sp-transaction-storage-proof"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"async-trait",
"log",
"parity-scale-codec",
+ "scale-info",
"sp-core",
"sp-inherents",
"sp-runtime",
@@ -11140,37 +10756,27 @@
[[package]]
name = "sp-trie"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"hash-db",
"memory-db",
"parity-scale-codec",
+ "scale-info",
"sp-core",
"sp-std",
"trie-db",
"trie-root",
-]
-
-[[package]]
-name = "sp-utils"
-version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
-dependencies = [
- "futures 0.3.17",
- "futures-core",
- "futures-timer 3.0.2",
- "lazy_static",
- "prometheus",
]
[[package]]
name = "sp-version"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"impl-serde",
"parity-scale-codec",
"parity-wasm 0.42.2",
+ "scale-info",
"serde",
"sp-runtime",
"sp-std",
@@ -11181,10 +10787,9 @@
[[package]]
name = "sp-version-proc-macro"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"parity-scale-codec",
- "proc-macro-crate 1.0.0",
"proc-macro2",
"quote",
"syn",
@@ -11193,7 +10798,7 @@
[[package]]
name = "sp-wasm-interface"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"impl-trait-for-tuples 0.2.1",
"parity-scale-codec",
@@ -11209,9 +10814,9 @@
[[package]]
name = "stable_deref_trait"
-version = "1.1.1"
+version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dba1a27d3efae4351c8051072d619e3ade2820635c3958d826bfea39d59b54c8"
+checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"
[[package]]
name = "static_assertions"
@@ -11258,15 +10863,6 @@
]
[[package]]
-name = "string"
-version = "0.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d24114bfcceb867ca7f71a0d3fe45d45619ec47a6fbfa98cb14e14250bfa5d6d"
-dependencies = [
- "bytes 0.4.12",
-]
-
-[[package]]
name = "strsim"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -11308,7 +10904,16 @@
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7318c509b5ba57f18533982607f24070a55d353e90d4cae30c467cdb2ad5ac5c"
dependencies = [
- "strum_macros",
+ "strum_macros 0.20.1",
+]
+
+[[package]]
+name = "strum"
+version = "0.21.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "aaf86bbcfd1fa9670b7a129f64fc0c9fcbbfe4f1bc4210e9e98fe71ffc12cde2"
+dependencies = [
+ "strum_macros 0.21.1",
]
[[package]]
@@ -11324,22 +10929,34 @@
]
[[package]]
+name = "strum_macros"
+version = "0.21.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d06aaeeee809dbc59eb4556183dd927df67db1540de5be8d3ec0b6636358a5ec"
+dependencies = [
+ "heck",
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
+[[package]]
name = "substrate-bip39"
-version = "0.4.2"
+version = "0.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bed6646a0159b9935b5d045611560eeef842b78d7adc3ba36f5ca325a13a0236"
+checksum = "49eee6965196b32f882dd2ee85a92b1dbead41b04e53907f269de3b0dc04733c"
dependencies = [
- "hmac 0.7.1",
- "pbkdf2 0.3.0",
+ "hmac 0.11.0",
+ "pbkdf2 0.8.0",
"schnorrkel",
- "sha2 0.8.2",
+ "sha2 0.9.8",
"zeroize",
]
[[package]]
name = "substrate-build-script-utils"
version = "3.0.0"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"platforms",
]
@@ -11347,19 +10964,18 @@
[[package]]
name = "substrate-frame-rpc-system"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"frame-system-rpc-runtime-api",
"futures 0.3.17",
- "jsonrpc-core 15.1.0",
- "jsonrpc-core-client 15.1.0",
- "jsonrpc-derive 15.1.0",
+ "jsonrpc-core",
+ "jsonrpc-core-client",
+ "jsonrpc-derive",
"log",
"parity-scale-codec",
"sc-client-api",
"sc-rpc-api",
"sc-transaction-pool-api",
- "serde",
"sp-api",
"sp-block-builder",
"sp-blockchain",
@@ -11370,26 +10986,24 @@
[[package]]
name = "substrate-prometheus-endpoint"
version = "0.9.0"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"async-std",
"derive_more",
"futures-util",
- "hyper 0.13.9",
+ "hyper",
"log",
"prometheus",
- "tokio 0.2.25",
+ "tokio 1.12.0",
]
[[package]]
name = "substrate-test-client"
version = "2.0.1"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"async-trait",
- "futures 0.1.29",
"futures 0.3.17",
- "hash-db",
"hex",
"parity-scale-codec",
"sc-client-api",
@@ -11413,19 +11027,20 @@
[[package]]
name = "substrate-test-utils"
version = "4.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"futures 0.3.17",
"substrate-test-utils-derive",
- "tokio 0.2.25",
+ "tokio 1.12.0",
]
[[package]]
name = "substrate-test-utils-derive"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
- "proc-macro-crate 1.0.0",
+ "proc-macro-crate 1.1.0",
+ "proc-macro2",
"quote",
"syn",
]
@@ -11433,10 +11048,9 @@
[[package]]
name = "substrate-wasm-builder"
version = "5.0.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
"ansi_term 0.12.1",
- "atty",
"build-helper",
"cargo_metadata",
"sp-maybe-compressed-blob",
@@ -11460,9 +11074,9 @@
[[package]]
name = "syn"
-version = "1.0.74"
+version = "1.0.80"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1873d832550d4588c3dbc20f01361ab00bfe741048f71e3fecf145a7cc18b29c"
+checksum = "d010a1623fbd906d51d650a9916aaefc05ffa0e4053ff7fe601167f3e715d194"
dependencies = [
"proc-macro2",
"quote",
@@ -11482,9 +11096,9 @@
[[package]]
name = "synstructure"
-version = "0.12.4"
+version = "0.12.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b834f2d66f734cb897113e34aaff2f1ab4719ca946f9a7358dba8f8064148701"
+checksum = "474aaa926faa1603c40b7885a9eaea29b444d1cb2850cb7c0e37bb1a4182f4fa"
dependencies = [
"proc-macro2",
"quote",
@@ -11493,22 +11107,16 @@
]
[[package]]
-name = "take_mut"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f764005d11ee5f36500a149ace24e00e3da98b0158b3e2d53a7495660d3f4d60"
-
-[[package]]
name = "tap"
-version = "1.0.0"
+version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "36474e732d1affd3a6ed582781b3683df3d0563714c59c39591e8ff707cf078e"
+checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369"
[[package]]
name = "target-lexicon"
-version = "0.12.0"
+version = "0.12.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "64ae3b39281e4b14b8123bdbaddd472b7dfe215e444181f2f9d2443c2444f834"
+checksum = "d9bffcddbc2458fa3e6058414599e3c838a022abae82e5c67b4f7f80298d5bff"
[[package]]
name = "tempfile"
@@ -11526,9 +11134,9 @@
[[package]]
name = "termcolor"
-version = "1.1.0"
+version = "1.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bb6bfa289a4d7c5766392812c0a1f4c1ba45afa1ad47803c11e1f407d846d75f"
+checksum = "2dfed899f0eb03f32ee8c6a0aabdb8a7949659e3466561fc0adf54e26d88c5f4"
dependencies = [
"winapi-util",
]
@@ -11544,18 +11152,18 @@
[[package]]
name = "thiserror"
-version = "1.0.26"
+version = "1.0.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "93119e4feac1cbe6c798c34d3a53ea0026b0b1de6a120deef895137c0529bfe2"
+checksum = "602eca064b2d83369e2b2f34b09c70b605402801927c65c11071ac911d299b88"
dependencies = [
"thiserror-impl",
]
[[package]]
name = "thiserror-impl"
-version = "1.0.26"
+version = "1.0.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "060d69a0afe7796bf42e9e2ff91f5ee691fb15c53d38b4b62a9a53eb23164745"
+checksum = "bad553cc2c78e8de258400763a647e80e6d1b31ee237275d756f6836d204494c"
dependencies = [
"proc-macro2",
"quote",
@@ -11595,19 +11203,20 @@
[[package]]
name = "time"
-version = "0.1.43"
+version = "0.1.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ca8a50ef2360fbd1eeb0ecd46795a87a19024eb4b53c5dc916ca1fd95fe62438"
+checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255"
dependencies = [
"libc",
+ "wasi 0.10.0+wasi-snapshot-preview1",
"winapi 0.3.9",
]
[[package]]
name = "tiny-bip39"
-version = "0.8.0"
+version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d9e44c4759bae7f1032e286a7ef990bd9ed23fe831b7eeba0beb97484c2e59b8"
+checksum = "ffc59cb9dfc85bb312c3a78fd6aa8a8582e310b0fa885d5bb877f6dcc601839d"
dependencies = [
"anyhow",
"hmac 0.8.1",
@@ -11615,9 +11224,10 @@
"pbkdf2 0.4.0",
"rand 0.7.3",
"rustc-hash",
- "sha2 0.9.2",
+ "sha2 0.9.8",
"thiserror",
"unicode-normalization",
+ "wasm-bindgen",
"zeroize",
]
@@ -11632,15 +11242,9 @@
[[package]]
name = "tinyvec"
-version = "0.3.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "53953d2d3a5ad81d9f844a32f14ebb121f50b650cd59d0ee2a07cf13c617efed"
-
-[[package]]
-name = "tinyvec"
-version = "1.1.1"
+version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "317cca572a0e89c3ce0ca1f1bdc9369547fe318a683418e42ac8f59d14701023"
+checksum = "f83b2a3d4d9091d0abd7eba4dc2710b1718583bd4d8992e2190720ea38f391f7"
dependencies = [
"tinyvec_macros",
]
@@ -11653,126 +11257,36 @@
[[package]]
name = "tokio"
-version = "0.1.22"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5a09c0b5bb588872ab2f09afa13ee6e9dac11e10a0ec9e8e3ba39a5a5d530af6"
-dependencies = [
- "bytes 0.4.12",
- "futures 0.1.29",
- "mio",
- "num_cpus",
- "tokio-codec",
- "tokio-current-thread",
- "tokio-executor",
- "tokio-fs",
- "tokio-io",
- "tokio-reactor",
- "tokio-sync",
- "tokio-tcp",
- "tokio-threadpool",
- "tokio-timer",
- "tokio-udp",
- "tokio-uds",
-]
-
-[[package]]
-name = "tokio"
version = "0.2.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6703a273949a90131b290be1fe7b039d0fc884aa1935860dfcbe056f28cd8092"
dependencies = [
"bytes 0.5.6",
"fnv",
- "futures-core",
- "iovec",
- "lazy_static",
- "libc",
- "memchr",
- "mio",
- "mio-uds",
- "num_cpus",
- "pin-project-lite 0.1.7",
- "signal-hook-registry",
- "slab",
- "tokio-macros",
- "winapi 0.3.9",
+ "pin-project-lite 0.1.12",
+ "tokio-macros 0.2.6",
]
[[package]]
name = "tokio"
-version = "1.6.1"
+version = "1.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0a38d31d7831c6ed7aad00aa4c12d9375fd225a6dd77da1d25b707346319a975"
+checksum = "c2c2416fdedca8443ae44b4527de1ea633af61d8f7169ffa6e72c5b53d24efcc"
dependencies = [
"autocfg",
- "pin-project-lite 0.2.4",
-]
-
-[[package]]
-name = "tokio-buf"
-version = "0.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8fb220f46c53859a4b7ec083e41dec9778ff0b1851c0942b211edb89e0ccdc46"
-dependencies = [
- "bytes 0.4.12",
- "either",
- "futures 0.1.29",
+ "bytes 1.1.0",
+ "libc",
+ "memchr",
+ "mio 0.7.13",
+ "num_cpus",
+ "once_cell",
+ "pin-project-lite 0.2.7",
+ "signal-hook-registry",
+ "tokio-macros 1.4.1",
+ "winapi 0.3.9",
]
[[package]]
-name = "tokio-codec"
-version = "0.1.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "25b2998660ba0e70d18684de5d06b70b70a3a747469af9dea7618cc59e75976b"
-dependencies = [
- "bytes 0.4.12",
- "futures 0.1.29",
- "tokio-io",
-]
-
-[[package]]
-name = "tokio-current-thread"
-version = "0.1.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b1de0e32a83f131e002238d7ccde18211c0a5397f60cbfffcb112868c2e0e20e"
-dependencies = [
- "futures 0.1.29",
- "tokio-executor",
-]
-
-[[package]]
-name = "tokio-executor"
-version = "0.1.10"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fb2d1b8f4548dbf5e1f7818512e9c406860678f29c300cdf0ebac72d1a3a1671"
-dependencies = [
- "crossbeam-utils 0.7.2",
- "futures 0.1.29",
-]
-
-[[package]]
-name = "tokio-fs"
-version = "0.1.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "297a1206e0ca6302a0eed35b700d292b275256f596e2f3fea7729d5e629b6ff4"
-dependencies = [
- "futures 0.1.29",
- "tokio-io",
- "tokio-threadpool",
-]
-
-[[package]]
-name = "tokio-io"
-version = "0.1.13"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "57fc868aae093479e3131e3d165c93b1c7474109d13c90ec0dda2a1bbfff0674"
-dependencies = [
- "bytes 0.4.12",
- "futures 0.1.29",
- "log",
-]
-
-[[package]]
name = "tokio-macros"
version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -11784,204 +11298,85 @@
]
[[package]]
-name = "tokio-named-pipes"
-version = "0.1.0"
+name = "tokio-macros"
+version = "1.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9d282d483052288b2308ba5ee795f5673b159c9bdf63c385a05609da782a5eae"
+checksum = "154794c8f499c2619acd19e839294703e9e32e7630ef5f46ea80d4ef0fbee5eb"
dependencies = [
- "bytes 0.4.12",
- "futures 0.1.29",
- "mio",
- "mio-named-pipes",
- "tokio 0.1.22",
-]
-
-[[package]]
-name = "tokio-reactor"
-version = "0.1.12"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "09bc590ec4ba8ba87652da2068d150dcada2cfa2e07faae270a5e0409aa51351"
-dependencies = [
- "crossbeam-utils 0.7.2",
- "futures 0.1.29",
- "lazy_static",
- "log",
- "mio",
- "num_cpus",
- "parking_lot 0.9.0",
- "slab",
- "tokio-executor",
- "tokio-io",
- "tokio-sync",
+ "proc-macro2",
+ "quote",
+ "syn",
]
[[package]]
name = "tokio-rustls"
-version = "0.14.0"
+version = "0.22.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "228139ddd4fea3fa345a29233009635235833e52807af7ea6448ead03890d6a9"
+checksum = "bc6844de72e57df1980054b38be3a9f4702aba4858be64dd700181a8a6d0e1b6"
dependencies = [
- "futures-core",
- "rustls 0.18.0",
- "tokio 0.2.25",
+ "rustls",
+ "tokio 1.12.0",
"webpki",
]
[[package]]
-name = "tokio-rustls"
-version = "0.15.0"
+name = "tokio-stream"
+version = "0.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "03d15e5669243a45f630a5167d101b942174ca94b615445b2057eace1c818736"
+checksum = "7b2f3f698253f03119ac0102beaa64f67a67e08074d03a22d18784104543727f"
dependencies = [
"futures-core",
- "rustls 0.19.1",
- "tokio 0.2.25",
- "webpki",
-]
-
-[[package]]
-name = "tokio-service"
-version = "0.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "24da22d077e0f15f55162bdbdc661228c1581892f52074fb242678d015b45162"
-dependencies = [
- "futures 0.1.29",
-]
-
-[[package]]
-name = "tokio-sync"
-version = "0.1.8"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "edfe50152bc8164fcc456dab7891fa9bf8beaf01c5ee7e1dd43a397c3cf87dee"
-dependencies = [
- "fnv",
- "futures 0.1.29",
-]
-
-[[package]]
-name = "tokio-tcp"
-version = "0.1.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "98df18ed66e3b72e742f185882a9e201892407957e45fbff8da17ae7a7c51f72"
-dependencies = [
- "bytes 0.4.12",
- "futures 0.1.29",
- "iovec",
- "mio",
- "tokio-io",
- "tokio-reactor",
-]
-
-[[package]]
-name = "tokio-threadpool"
-version = "0.1.18"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "df720b6581784c118f0eb4310796b12b1d242a7eb95f716a8367855325c25f89"
-dependencies = [
- "crossbeam-deque",
- "crossbeam-queue",
- "crossbeam-utils 0.7.2",
- "futures 0.1.29",
- "lazy_static",
- "log",
- "num_cpus",
- "slab",
- "tokio-executor",
-]
-
-[[package]]
-name = "tokio-timer"
-version = "0.2.13"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "93044f2d313c95ff1cb7809ce9a7a05735b012288a888b62d4434fd58c94f296"
-dependencies = [
- "crossbeam-utils 0.7.2",
- "futures 0.1.29",
- "slab",
- "tokio-executor",
-]
-
-[[package]]
-name = "tokio-udp"
-version = "0.1.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e2a0b10e610b39c38b031a2fcab08e4b82f16ece36504988dcbd81dbba650d82"
-dependencies = [
- "bytes 0.4.12",
- "futures 0.1.29",
- "log",
- "mio",
- "tokio-codec",
- "tokio-io",
- "tokio-reactor",
-]
-
-[[package]]
-name = "tokio-uds"
-version = "0.2.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ab57a4ac4111c8c9dbcf70779f6fc8bc35ae4b2454809febac840ad19bd7e4e0"
-dependencies = [
- "bytes 0.4.12",
- "futures 0.1.29",
- "iovec",
- "libc",
- "log",
- "mio",
- "mio-uds",
- "tokio-codec",
- "tokio-io",
- "tokio-reactor",
+ "pin-project-lite 0.2.7",
+ "tokio 1.12.0",
]
[[package]]
name = "tokio-util"
-version = "0.3.1"
+version = "0.6.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "be8242891f2b6cbef26a2d7e8605133c2c554cd35b3e4948ea892d6d68436499"
+checksum = "08d3725d3efa29485e87311c5b699de63cde14b00ed4d256b8318aa30ca452cd"
dependencies = [
- "bytes 0.5.6",
+ "bytes 1.1.0",
"futures-core",
"futures-io",
"futures-sink",
"log",
- "pin-project-lite 0.1.7",
- "tokio 0.2.25",
+ "pin-project-lite 0.2.7",
+ "tokio 1.12.0",
]
[[package]]
name = "toml"
-version = "0.5.6"
+version = "0.5.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ffc92d160b1eef40665be3a05630d003936a3bc7da7421277846c2613e92c71a"
+checksum = "a31142970826733df8241ef35dc040ef98c679ab14d7c3e54d827099b3acecaa"
dependencies = [
"serde",
]
[[package]]
name = "tower-service"
-version = "0.3.0"
+version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e987b6bf443f4b5b3b6f38704195592cca41c5bb7aedd3c3693c7081f8289860"
+checksum = "360dfd1d6d30e05fda32ace2c8c70e9c0a9da713275777f5a4dbb8a1893930c6"
[[package]]
name = "tracing"
-version = "0.1.26"
+version = "0.1.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "09adeb8c97449311ccd28a427f96fb563e7fd31aabf994189879d9da2394b89d"
+checksum = "375a639232caf30edfc78e8d89b2d4c375515393e7af7e16f01cd96917fb2105"
dependencies = [
"cfg-if 1.0.0",
- "log",
- "pin-project-lite 0.2.4",
+ "pin-project-lite 0.2.7",
"tracing-attributes",
"tracing-core",
]
[[package]]
name = "tracing-attributes"
-version = "0.1.15"
+version = "0.1.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c42e6fa53307c8a17e4ccd4dc81cf5ec38db9209f59b222210375b54ee40d1e2"
+checksum = "f4f480b8f81512e825f337ad51e94c1eb5d3bbdf2b363dcd01e2b19a9ffe3f8e"
dependencies = [
"proc-macro2",
"quote",
@@ -11990,20 +11385,20 @@
[[package]]
name = "tracing-core"
-version = "0.1.18"
+version = "0.1.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a9ff14f98b1a4b289c6248a023c1c2fa1491062964e9fed67ab29c4e4da4a052"
+checksum = "1f4ed65637b8390770814083d20756f87bfa2c21bf2f110babdc5438351746e4"
dependencies = [
"lazy_static",
]
[[package]]
name = "tracing-futures"
-version = "0.2.4"
+version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ab7bb6f14721aa00656086e9335d363c5c8747bae02ebe32ea2c7dece5689b4c"
+checksum = "97d095ae15e245a057c8e8451bab9b3ee1e1f68e9ba2b4fbc18d0ac5237835f2"
dependencies = [
- "pin-project 0.4.23",
+ "pin-project 1.0.8",
"tracing",
]
@@ -12030,9 +11425,9 @@
[[package]]
name = "tracing-subscriber"
-version = "0.2.18"
+version = "0.2.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "aa5553bf0883ba7c9cbe493b085c29926bd41b66afc31ff72cf17ff4fb60dcd5"
+checksum = "0e0d2eaa99c3c2e41547cfa109e910a68ea03823cccad4a0525dcbc9b01e8c71"
dependencies = [
"ansi_term 0.12.1",
"chrono",
@@ -12042,7 +11437,7 @@
"serde",
"serde_json",
"sharded-slab",
- "smallvec 1.6.1",
+ "smallvec",
"thread_local",
"tracing",
"tracing-core",
@@ -12060,7 +11455,7 @@
"hashbrown",
"log",
"rustc-hex",
- "smallvec 1.6.1",
+ "smallvec",
]
[[package]]
@@ -12084,9 +11479,9 @@
[[package]]
name = "trust-dns-proto"
-version = "0.20.1"
+version = "0.20.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8d57e219ba600dd96c2f6d82eb79645068e14edbc5c7e27514af40436b88150c"
+checksum = "ad0d7f5db438199a6e2609debe3f69f808d074e0a2888ee0bccb45fe234d03f4"
dependencies = [
"async-trait",
"cfg-if 1.0.0",
@@ -12095,22 +11490,22 @@
"futures-channel",
"futures-io",
"futures-util",
- "idna 0.2.0",
+ "idna 0.2.3",
"ipnet",
"lazy_static",
"log",
"rand 0.8.4",
- "smallvec 1.6.1",
+ "smallvec",
"thiserror",
- "tinyvec 1.1.1",
- "url 2.2.0",
+ "tinyvec",
+ "url 2.2.2",
]
[[package]]
name = "trust-dns-resolver"
-version = "0.20.1"
+version = "0.20.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b0437eea3a6da51acc1e946545ff53d5b8fb2611ff1c3bed58522dde100536ae"
+checksum = "f6ad17b608a64bd0735e67bde16b0636f8aa8591f831a25d18443ed00a699770"
dependencies = [
"cfg-if 1.0.0",
"futures-util",
@@ -12120,58 +11515,57 @@
"lru-cache",
"parking_lot 0.11.2",
"resolv-conf",
- "smallvec 1.6.1",
+ "smallvec",
"thiserror",
"trust-dns-proto",
]
[[package]]
name = "try-lock"
-version = "0.2.2"
+version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e604eb7b43c06650e854be16a2a03155743d3752dd1c943f6829e26b7a36e382"
+checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642"
[[package]]
name = "try-runtime-cli"
version = "0.10.0-dev"
-source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.10#420db18eaa1a1f5ce9ba40dd6ccb69f7b3dd9bb7"
+source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.11#70c3954949086053b51194988652eabf5583815e"
dependencies = [
- "frame-try-runtime",
+ "jsonrpsee-ws-client",
"log",
"parity-scale-codec",
"remote-externalities",
"sc-chain-spec",
"sc-cli",
- "sc-client-api",
"sc-executor",
"sc-service",
"serde",
- "sp-api",
- "sp-blockchain",
"sp-core",
"sp-externalities",
+ "sp-io",
"sp-keystore",
"sp-runtime",
"sp-state-machine",
+ "sp-version",
"structopt",
]
[[package]]
name = "twox-hash"
-version = "1.6.0"
+version = "1.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "04f8ab788026715fa63b31960869617cba39117e520eb415b0139543e325ab59"
+checksum = "1f559b464de2e2bdabcac6a210d12e9b5a5973c251e102c44c585c71d51bd78e"
dependencies = [
- "cfg-if 0.1.10",
- "rand 0.7.3",
+ "cfg-if 1.0.0",
+ "rand 0.8.4",
"static_assertions",
]
[[package]]
name = "typenum"
-version = "1.12.0"
+version = "1.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "373c8a200f9e67a0c95e62a4f52fbf80c23b4381c05a17845531982fa99e6b33"
+checksum = "b63708a265f51345575b27fe43f9500ad611579e764c79edbc2037b1121959ec"
[[package]]
name = "ucd-trie"
@@ -12181,9 +11575,9 @@
[[package]]
name = "uint"
-version = "0.9.0"
+version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e11fe9a9348741cf134085ad57c249508345fe16411b3d7fb4ff2da2f1d6382e"
+checksum = "6470ab50f482bde894a037a57064480a246dbfdd5960bd65a44824693f08da5f"
dependencies = [
"byteorder",
"crunchy",
@@ -12202,45 +11596,42 @@
[[package]]
name = "unicode-bidi"
-version = "0.3.4"
+version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5"
-dependencies = [
- "matches",
-]
+checksum = "1a01404663e3db436ed2746d9fefef640d868edae3cceb81c3b8d5732fda678f"
[[package]]
name = "unicode-normalization"
-version = "0.1.13"
+version = "0.1.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6fb19cf769fa8c6a80a162df694621ebeb4dafb606470b2b2fce0be40a98a977"
+checksum = "d54590932941a9e9266f0832deed84ebe1bf2e4c9e4a3554d393d18f5e854bf9"
dependencies = [
- "tinyvec 0.3.3",
+ "tinyvec",
]
[[package]]
name = "unicode-segmentation"
-version = "1.6.0"
+version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e83e153d1053cbb5a118eeff7fd5be06ed99153f00dbcd8ae310c5fb2b22edc0"
+checksum = "8895849a949e7845e06bd6dc1aa51731a103c42707010a5b591c0038fb73385b"
[[package]]
name = "unicode-width"
-version = "0.1.8"
+version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9337591893a19b88d8d87f2cec1e73fad5cdfd10e5a6f349f498ad6ea2ffb1e3"
+checksum = "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973"
[[package]]
name = "unicode-xid"
-version = "0.2.1"
+version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564"
+checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3"
[[package]]
name = "universal-hash"
-version = "0.4.0"
+version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8326b2c654932e3e4f9196e69d08fdf7cfd718e1dc6f66b347e6024a0c961402"
+checksum = "9f214e8f697e925001e66ec2c6e37a4ef93f0f78c2eed7814394e10c62025b05"
dependencies = [
"generic-array 0.14.4",
"subtle 2.4.1",
@@ -12259,7 +11650,7 @@
checksum = "35581ff83d4101e58b582e607120c7f5ffb17e632a980b1f38334d76b36908b2"
dependencies = [
"asynchronous-codec 0.5.0",
- "bytes 1.0.1",
+ "bytes 1.1.0",
"futures-io",
"futures-util",
]
@@ -12271,7 +11662,7 @@
checksum = "5f8d425fafb8cd76bc3f22aace4af471d3156301d7508f2107e98fbeae10bc7f"
dependencies = [
"asynchronous-codec 0.6.0",
- "bytes 1.0.1",
+ "bytes 1.1.0",
"futures-io",
"futures-util",
]
@@ -12302,36 +11693,31 @@
[[package]]
name = "url"
-version = "2.2.0"
+version = "2.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5909f2b0817350449ed73e8bcd81c8c3c8d9a7a5d8acba4b27db277f1868976e"
+checksum = "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c"
dependencies = [
"form_urlencoded",
- "idna 0.2.0",
+ "idna 0.2.3",
"matches",
"percent-encoding 2.1.0",
]
[[package]]
name = "value-bag"
-version = "1.0.0-alpha.6"
+version = "1.0.0-alpha.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6b676010e055c99033117c2343b33a40a30b91fecd6c49055ac9cd2d6c305ab1"
+checksum = "dd320e1520f94261153e96f7534476ad869c14022aee1e59af7c778075d840ae"
dependencies = [
"ctor",
+ "version_check",
]
[[package]]
name = "vcpkg"
-version = "0.2.10"
+version = "0.2.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6454029bf181f092ad1b853286f23e2c507d8e8194d01d92da4a55c274a5508c"
-
-[[package]]
-name = "vec-arena"
-version = "1.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "eafc1b9b2dfc6f5529177b62cf806484db55b32dc7c9658a118e11bbeb33061d"
+checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
[[package]]
name = "vec_map"
@@ -12341,9 +11727,9 @@
[[package]]
name = "version_check"
-version = "0.9.2"
+version = "0.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b5a972e5669d67ba988ce3dc826706fb0a8b01471c088cb0b6110b805cc36aed"
+checksum = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe"
[[package]]
name = "void"
@@ -12370,17 +11756,6 @@
[[package]]
name = "want"
-version = "0.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b6395efa4784b027708f7451087e647ec73cc74f5d9bc2e418404248d679a230"
-dependencies = [
- "futures 0.1.29",
- "log",
- "try-lock",
-]
-
-[[package]]
-name = "want"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0"
@@ -12403,9 +11778,9 @@
[[package]]
name = "wasm-bindgen"
-version = "0.2.75"
+version = "0.2.78"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b608ecc8f4198fe8680e2ed18eccab5f0cd4caaf3d83516fa5fb2e927fda2586"
+checksum = "632f73e236b219150ea279196e54e610f5dbafa5d61786303d4da54f84e47fce"
dependencies = [
"cfg-if 1.0.0",
"wasm-bindgen-macro",
@@ -12413,9 +11788,9 @@
[[package]]
name = "wasm-bindgen-backend"
-version = "0.2.75"
+version = "0.2.78"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "580aa3a91a63d23aac5b6b267e2d13cb4f363e31dce6c352fca4752ae12e479f"
+checksum = "a317bf8f9fba2476b4b2c85ef4c4af8ff39c3c7f0cdfeed4f82c34a880aa837b"
dependencies = [
"bumpalo",
"lazy_static",
@@ -12428,9 +11803,9 @@
[[package]]
name = "wasm-bindgen-futures"
-version = "0.4.25"
+version = "0.4.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "16646b21c3add8e13fdb8f20172f8a28c3dbf62f45406bcff0233188226cfe0c"
+checksum = "8e8d7523cb1f2a4c96c1317ca690031b714a51cc14e05f712446691f413f5d39"
dependencies = [
"cfg-if 1.0.0",
"js-sys",
@@ -12440,9 +11815,9 @@
[[package]]
name = "wasm-bindgen-macro"
-version = "0.2.75"
+version = "0.2.78"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "171ebf0ed9e1458810dfcb31f2e766ad6b3a89dbda42d8901f2b268277e5f09c"
+checksum = "d56146e7c495528bf6587663bea13a8eb588d39b36b679d83972e1a2dbbdacf9"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
@@ -12450,9 +11825,9 @@
[[package]]
name = "wasm-bindgen-macro-support"
-version = "0.2.75"
+version = "0.2.78"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6c2657dd393f03aa2a659c25c6ae18a13a4048cebd220e147933ea837efc589f"
+checksum = "7803e0eea25835f8abdc585cd3021b3deb11543c6fe226dcd30b228857c5c5ab"
dependencies = [
"proc-macro2",
"quote",
@@ -12463,9 +11838,9 @@
[[package]]
name = "wasm-bindgen-shared"
-version = "0.2.75"
+version = "0.2.78"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2e0c4a743a309662d45f4ede961d7afa4ba4131a59a639f29b0069c3798bbcc2"
+checksum = "0237232789cf037d5480773fe568aac745bfe2afbc11a863e97901780a6b47cc"
[[package]]
name = "wasm-gc-api"
@@ -12495,12 +11870,13 @@
[[package]]
name = "wasmi"
-version = "0.9.0"
+version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d2ee05bba3d1d994652079893941a2ef9324d2b58a63c31b40678fb7eddd7a5a"
+checksum = "ca00c5147c319a8ec91ec1a0edbec31e566ce2c9cc93b3f9bb86a9efd0eb795d"
dependencies = [
"downcast-rs",
"libc",
+ "libm",
"memory_units",
"num-rational 0.2.4",
"num-traits",
@@ -12510,24 +11886,24 @@
[[package]]
name = "wasmi-validation"
-version = "0.4.0"
+version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a2eb8e860796d8be48efef530b60eebf84e74a88bce107374fffb0da97d504b8"
+checksum = "165343ecd6c018fc09ebcae280752702c9a2ef3e6f8d02f1cfcbdb53ef6d7937"
dependencies = [
"parity-wasm 0.42.2",
]
[[package]]
name = "wasmparser"
-version = "0.78.2"
+version = "0.79.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "52144d4c78e5cf8b055ceab8e5fa22814ce4315d6002ad32cfd914f37c12fd65"
+checksum = "5b5894be15a559c85779254700e1d35f02f843b5a69152e5c82c626d9fd66c0e"
[[package]]
name = "wasmtime"
-version = "0.27.0"
+version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b310b9d20fcf59385761d1ade7a3ef06aecc380e3d3172035b919eaf7465d9f7"
+checksum = "8bbb8a082a8ef50f7eeb8b82dda9709ef1e68963ea3c94e45581644dd4041835"
dependencies = [
"anyhow",
"backtrace",
@@ -12543,7 +11919,7 @@
"region",
"rustc-demangle",
"serde",
- "smallvec 1.6.1",
+ "smallvec",
"target-lexicon",
"wasmparser",
"wasmtime-cache",
@@ -12556,9 +11932,9 @@
[[package]]
name = "wasmtime-cache"
-version = "0.27.0"
+version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d14d500d5c3dc5f5c097158feee123d64b3097f0d836a2a27dff9c761c73c843"
+checksum = "d73391579ca7f24573138ef768b73b2aed5f9d542385c64979b65d60d0912399"
dependencies = [
"anyhow",
"base64 0.13.0",
@@ -12569,7 +11945,7 @@
"libc",
"log",
"serde",
- "sha2 0.9.2",
+ "sha2 0.9.8",
"toml",
"winapi 0.3.9",
"zstd",
@@ -12577,9 +11953,9 @@
[[package]]
name = "wasmtime-cranelift"
-version = "0.27.0"
+version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c525b39f062eada7db3c1298287b96dcb6e472b9f6b22501300b28d9fa7582f6"
+checksum = "81c6f5ae9205382345c7cd7454932a906186836999a2161c385e38a15f52e1fe"
dependencies = [
"cranelift-codegen",
"cranelift-entity",
@@ -12592,14 +11968,14 @@
[[package]]
name = "wasmtime-debug"
-version = "0.27.0"
+version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c5d2a763e7a6fc734218e0e463196762a4f409c483063d81e0e85f96343b2e0a"
+checksum = "c69e08f55e12f15f50b1b533bc3626723e7224254a065de6576934c86258c9e8"
dependencies = [
"anyhow",
- "gimli 0.24.0",
+ "gimli",
"more-asserts",
- "object 0.24.0",
+ "object",
"target-lexicon",
"thiserror",
"wasmparser",
@@ -12608,15 +11984,15 @@
[[package]]
name = "wasmtime-environ"
-version = "0.27.0"
+version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f64d0c2d881c31b0d65c1f2695e022d71eb60b9fbdd336aacca28208b58eac90"
+checksum = "005d93174040af37fb8625f891cd9827afdad314261f7ec4ee61ec497d6e9d3c"
dependencies = [
"cfg-if 1.0.0",
"cranelift-codegen",
"cranelift-entity",
"cranelift-wasm",
- "gimli 0.24.0",
+ "gimli",
"indexmap",
"log",
"more-asserts",
@@ -12627,11 +12003,11 @@
[[package]]
name = "wasmtime-jit"
-version = "0.27.0"
+version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4d4539ea734422b7c868107e2187d7746d8affbcaa71916d72639f53757ad707"
+checksum = "d0bf1dfb213a35d8f21aefae40e597fe72778a907011ffdff7affb029a02af9a"
dependencies = [
- "addr2line 0.15.1",
+ "addr2line",
"anyhow",
"cfg-if 1.0.0",
"cranelift-codegen",
@@ -12639,10 +12015,10 @@
"cranelift-frontend",
"cranelift-native",
"cranelift-wasm",
- "gimli 0.24.0",
+ "gimli",
"log",
"more-asserts",
- "object 0.24.0",
+ "object",
"rayon",
"region",
"serde",
@@ -12660,13 +12036,13 @@
[[package]]
name = "wasmtime-obj"
-version = "0.27.0"
+version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8e1a8ff85246d091828e2225af521a6208ed28c997bb5c39eb697366dc2e2f2b"
+checksum = "d231491878e710c68015228c9f9fc5955fe5c96dbf1485c15f7bed55b622c83c"
dependencies = [
"anyhow",
"more-asserts",
- "object 0.24.0",
+ "object",
"target-lexicon",
"wasmtime-debug",
"wasmtime-environ",
@@ -12674,14 +12050,17 @@
[[package]]
name = "wasmtime-profiling"
-version = "0.27.0"
+version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e24364d522dcd67c897c8fffc42e5bdfc57207bbb6d7eeade0da9d4a7d70105b"
+checksum = "21486cfb5255c2069666c1f116f9e949d4e35c9a494f11112fa407879e42198d"
dependencies = [
"anyhow",
"cfg-if 1.0.0",
+ "gimli",
"lazy_static",
"libc",
+ "object",
+ "scroll",
"serde",
"target-lexicon",
"wasmtime-environ",
@@ -12690,9 +12069,9 @@
[[package]]
name = "wasmtime-runtime"
-version = "0.27.0"
+version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c51e57976e8a19a18a18e002c6eb12e5769554204238e47ff155fda1809ef0f7"
+checksum = "d7ddfdf32e0a20d81f48be9dacd31612bc61de5a174d1356fef806d300f507de"
dependencies = [
"anyhow",
"backtrace",
@@ -12703,7 +12082,7 @@
"libc",
"log",
"mach",
- "memoffset 0.6.1",
+ "memoffset",
"more-asserts",
"rand 0.8.4",
"region",
@@ -12714,9 +12093,9 @@
[[package]]
name = "web-sys"
-version = "0.3.46"
+version = "0.3.55"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "222b1ef9334f92a21d3fb53dc3fd80f30836959a90f9274a626d7e06315ba3c3"
+checksum = "38eb105f1c59d9eaa6b5cdc92b859d85b926e82cb2e0945cd0c9259faa6fe9fb"
dependencies = [
"js-sys",
"wasm-bindgen",
@@ -12724,9 +12103,9 @@
[[package]]
name = "webpki"
-version = "0.21.3"
+version = "0.21.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ab146130f5f790d45f82aeeb09e55a256573373ec64409fc19a6fb82fb1032ae"
+checksum = "b8e38c0608262c46d4a56202ebabdeb094cef7e560ca7a226c6bf055188aa4ea"
dependencies = [
"ring",
"untrusted",
@@ -12734,29 +12113,29 @@
[[package]]
name = "webpki-roots"
-version = "0.21.0"
+version = "0.21.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "82015b7e0b8bad8185994674a13a93306bea76cf5a16c5a181382fd3a5ec2376"
+checksum = "aabe153544e473b775453675851ecc86863d2a81d786d741f6b76778f2a48940"
dependencies = [
"webpki",
]
[[package]]
-name = "wepoll-sys"
-version = "3.0.1"
+name = "wepoll-ffi"
+version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0fcb14dea929042224824779fbc82d9fab8d2e6d3cbc0ac404de8edf489e77ff"
+checksum = "d743fdedc5c64377b5fc2bc036b01c7fd642205a0d96356034ae3404d49eb7fb"
dependencies = [
"cc",
]
[[package]]
name = "westend-runtime"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"beefy-primitives",
- "bitvec 0.20.1",
+ "bitvec 0.20.4",
"frame-benchmarking",
"frame-election-provider-support",
"frame-executive",
@@ -12770,6 +12149,7 @@
"pallet-authority-discovery",
"pallet-authorship",
"pallet-babe",
+ "pallet-bags-list",
"pallet-balances",
"pallet-collective",
"pallet-democracy",
@@ -12801,15 +12181,17 @@
"pallet-utility",
"pallet-vesting",
"pallet-xcm",
+ "pallet-xcm-benchmarks",
"parity-scale-codec",
"polkadot-parachain",
"polkadot-primitives",
"polkadot-runtime-common",
"polkadot-runtime-parachains",
"rustc-hex",
+ "scale-info",
"serde",
"serde_derive",
- "smallvec 1.6.1",
+ "smallvec",
"sp-api",
"sp-authority-discovery",
"sp-block-builder",
@@ -12825,7 +12207,6 @@
"sp-std",
"sp-transaction-pool",
"sp-version",
- "static_assertions",
"substrate-wasm-builder",
"xcm",
"xcm-builder",
@@ -12834,12 +12215,13 @@
[[package]]
name = "which"
-version = "4.0.2"
+version = "4.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "87c14ef7e1b8b8ecfc75d5eca37949410046e66f15d185c01d70824f1f8111ef"
+checksum = "ea187a8ef279bc014ec368c27a920da2024d2a711109bfbe3440585d5cf27ad9"
dependencies = [
+ "either",
+ "lazy_static",
"libc",
- "thiserror",
]
[[package]]
@@ -12918,38 +12300,40 @@
[[package]]
name = "x25519-dalek"
-version = "1.1.0"
+version = "1.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bc614d95359fd7afc321b66d2107ede58b246b844cf5d8a0adcca413e439f088"
+checksum = "5a0c105152107e3b96f6a00a65e86ce82d9b125230e1c4302940eca58ff71f4f"
dependencies = [
- "curve25519-dalek 3.0.0",
+ "curve25519-dalek 3.2.0",
"rand_core 0.5.1",
"zeroize",
]
[[package]]
name = "xcm"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"derivative",
"impl-trait-for-tuples 0.2.1",
"log",
"parity-scale-codec",
+ "scale-info",
"xcm-procedural",
]
[[package]]
name = "xcm-builder"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"frame-support",
"frame-system",
- "impl-trait-for-tuples 0.2.1",
+ "log",
"pallet-transaction-payment",
"parity-scale-codec",
"polkadot-parachain",
+ "scale-info",
"sp-arithmetic",
"sp-io",
"sp-runtime",
@@ -12960,9 +12344,10 @@
[[package]]
name = "xcm-executor"
-version = "0.9.10"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+version = "0.9.11"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
+ "frame-benchmarking",
"frame-support",
"impl-trait-for-tuples 0.2.1",
"log",
@@ -12978,7 +12363,7 @@
[[package]]
name = "xcm-procedural"
version = "0.1.0"
-source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.10#aeea9b7bd81919e014f7621f6c4b2eb9709d918f"
+source = "git+https://github.com/paritytech/polkadot?branch=release-v0.9.11#bfd38ed620458fcf57eb5cde8b5732368c19b714"
dependencies = [
"proc-macro2",
"quote",
@@ -13007,18 +12392,18 @@
[[package]]
name = "zeroize"
-version = "1.2.0"
+version = "1.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "81a974bcdd357f0dca4d41677db03436324d45a4c9ed2d0b873a5a360ce41c36"
+checksum = "bf68b08513768deaa790264a7fac27a58cbf2705cfcdc9448362229217d7e970"
dependencies = [
"zeroize_derive",
]
[[package]]
name = "zeroize_derive"
-version = "1.0.0"
+version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "de251eec69fc7c1bc3923403d18ececb929380e016afe103da75f396704f8ca2"
+checksum = "bdff2024a851a322b08f179173ae2ba620445aef1e838f0c196820eade4ae0c7"
dependencies = [
"proc-macro2",
"quote",
@@ -13028,18 +12413,18 @@
[[package]]
name = "zstd"
-version = "0.6.1+zstd.1.4.9"
+version = "0.9.0+zstd.1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5de55e77f798f205d8561b8fe2ef57abfb6e0ff2abe7fd3c089e119cdb5631a3"
+checksum = "07749a5dc2cb6b36661290245e350f15ec3bbb304e493db54a1d354480522ccd"
dependencies = [
"zstd-safe",
]
[[package]]
name = "zstd-safe"
-version = "3.0.1+zstd.1.4.9"
+version = "4.1.1+zstd.1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1387cabcd938127b30ce78c4bf00b30387dddf704e3f0881dbc4ff62b5566f8c"
+checksum = "c91c90f2c593b003603e5e0493c837088df4469da25aafff8bce42ba48caf079"
dependencies = [
"libc",
"zstd-sys",
@@ -13047,9 +12432,9 @@
[[package]]
name = "zstd-sys"
-version = "1.4.20+zstd.1.4.9"
+version = "1.6.1+zstd.1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ebd5b733d7cf2d9447e2c3e76a5589b4f5e5ae065c22a2bc0b023cbc331b6c8e"
+checksum = "615120c7a2431d16cf1cf979e7fc31ba7a5b5e5707b29c8a99e5dbf8a8392a33"
dependencies = [
"cc",
"libc",
Dockerfile-parachaindiffbeforeafterboth--- a/Dockerfile-parachain
+++ b/Dockerfile-parachain
@@ -6,7 +6,7 @@
ARG RUST_TOOLCHAIN=nightly-2021-06-28
#ARG RUST_C=1.55.0-nightly
-ARG POLKA_VERSION=v0.9.10
+ARG POLKA_VERSION=v0.9.11
ARG NFT_BRANCH=develop
#ARG USER=***
@@ -105,4 +105,4 @@
npm install --global yarn && \
yarn install && \
yarn build && \
- yarn start launch-config.json
\ No newline at end of file
+ yarn start launch-config.json
crates/evm-coder/Cargo.tomldiffbeforeafterboth--- a/crates/evm-coder/Cargo.toml
+++ b/crates/evm-coder/Cargo.toml
@@ -7,7 +7,7 @@
evm-coder-macros = { path = "../evm-coder-macros" }
primitive-types = { version = "0.10.1", default-features = false }
hex-literal = "0.3.3"
-ethereum = { version = "0.9.0", default-features = false }
+ethereum = { version = "0.9", git = "https://github.com/purestake/ethereum", branch = "joshy-scale-info", default-features = false }
evm-core = { default-features = false, git = "https://github.com/uniquenetwork/evm.git", branch="precompile-output-parachain" }
impl-trait-for-tuples = "0.2.1"
node/cli/Cargo.tomldiffbeforeafterboth--- a/node/cli/Cargo.toml
+++ b/node/cli/Cargo.toml
@@ -3,7 +3,7 @@
[build-dependencies.substrate-build-script-utils]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '3.0.0'
################################################################################
@@ -17,185 +17,185 @@
[dependencies.frame-benchmarking]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.frame-benchmarking-cli]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.pallet-transaction-payment-rpc]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.substrate-prometheus-endpoint]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '0.9.0'
[dependencies.sc-basic-authorship]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '0.10.0-dev'
[dependencies.sc-chain-spec]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sc-cli]
features = ['wasmtime']
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '0.10.0-dev'
[dependencies.sc-client-api]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sc-consensus]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '0.10.0-dev'
[dependencies.sc-consensus-aura]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '0.10.0-dev'
[dependencies.sc-executor]
features = ['wasmtime']
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '0.10.0-dev'
[dependencies.sc-finality-grandpa]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '0.10.0-dev'
[dependencies.sc-keystore]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sc-rpc]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sc-rpc-api]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '0.10.0-dev'
[dependencies.sc-service]
features = ['wasmtime']
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '0.10.0-dev'
[dependencies.sc-telemetry]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sc-transaction-pool]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sc-tracing]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-block-builder]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-api]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-blockchain]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-consensus]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '0.10.0-dev'
[dependencies.sp-consensus-aura]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '0.10.0-dev'
[dependencies.sp-core]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-finality-grandpa]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-inherents]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-keystore]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '0.10.0-dev'
[dependencies.sp-offchain]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-runtime]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-session]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-timestamp]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-transaction-pool]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-trie]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.substrate-frame-rpc-system]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sc-network]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '0.10.0-dev'
[dependencies.serde]
@@ -211,58 +211,58 @@
[dependencies.cumulus-client-consensus-aura]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
[dependencies.cumulus-client-consensus-common]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
[dependencies.cumulus-client-collator]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
[dependencies.cumulus-client-cli]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
[dependencies.cumulus-client-network]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
[dependencies.cumulus-primitives-core]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
[dependencies.cumulus-primitives-parachain-inherent]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
[dependencies.cumulus-client-service]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
################################################################################
# Polkadot dependencies
[dependencies.polkadot-primitives]
git = "https://github.com/paritytech/polkadot"
-branch = 'release-v0.9.10'
+branch = 'release-v0.9.11'
[dependencies.polkadot-service]
git = "https://github.com/paritytech/polkadot"
-branch = 'release-v0.9.10'
+branch = 'release-v0.9.11'
[dependencies.polkadot-cli]
git = "https://github.com/paritytech/polkadot"
-branch = 'release-v0.9.10'
+branch = 'release-v0.9.11'
[dependencies.polkadot-test-service]
git = "https://github.com/paritytech/polkadot"
-branch = 'release-v0.9.10'
+branch = 'release-v0.9.11'
[dependencies.polkadot-parachain]
git = "https://github.com/paritytech/polkadot"
-branch = 'release-v0.9.10'
+branch = 'release-v0.9.11'
################################################################################
@@ -302,16 +302,16 @@
flexi_logger = "0.15.7"
parking_lot = '0.11.2'
structopt = '0.3.23'
-jsonrpc-core = '15.1.0'
-jsonrpc-pubsub = "15.1.0"
+jsonrpc-core = '18.0.0'
+jsonrpc-pubsub = "18.0.0"
-fc-rpc-core = { version = "1.1.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }
-fc-consensus = { version = "2.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }
-fc-mapping-sync = { version = "2.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }
-fc-rpc = { version = "2.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }
-fc-db = { version = "2.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }
-fp-rpc = { version = "3.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }
-pallet-ethereum = { version = "4.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }
+fc-rpc-core = { version = "1.1.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
+fc-consensus = { version = "2.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
+fc-mapping-sync = { version = "2.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
+fc-rpc = { version = "2.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
+fc-db = { version = "2.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
+fp-rpc = { version = "3.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
+pallet-ethereum = { version = "4.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
nft-rpc = { path = "../rpc" }
node/cli/src/command.rsdiffbeforeafterboth--- a/node/cli/src/command.rs
+++ b/node/cli/src/command.rs
@@ -28,7 +28,7 @@
use polkadot_parachain::primitives::AccountIdConversion;
use sc_cli::{
ChainSpec, CliConfiguration, DefaultConfigurationValues, ImportParams, KeystoreParams,
- NetworkParams, Result, RuntimeVersion, SharedParams, SubstrateCli,
+ NetworkParams, Result, RuntimeVersion, SharedParams, SubstrateCli, build_runtime,
};
use sc_service::{
config::{BasePath, PrometheusConfig},
@@ -160,6 +160,7 @@
/// Parse command line arguments into service configuration.
pub fn run() -> Result<()> {
let cli = Cli::from_args();
+ let tokio_runtime = build_runtime()?;
match &cli.subcommand {
Some(Subcommand::BuildSpec(cmd)) => {
@@ -200,7 +201,7 @@
let polkadot_config = SubstrateCli::create_configuration(
&polkadot_cli,
&polkadot_cli,
- config.task_executor.clone(),
+ tokio_runtime.handle().clone(),
)
.map_err(|err| format!("Relay chain argument error: {}", err))?;
@@ -289,10 +290,12 @@
generate_genesis_block(&config.chain_spec).map_err(|e| format!("{:?}", e))?;
let genesis_state = format!("0x{:?}", HexDisplay::from(&block.header().encode()));
- let task_executor = config.task_executor.clone();
- let polkadot_config =
- SubstrateCli::create_configuration(&polkadot_cli, &polkadot_cli, task_executor)
- .map_err(|err| format!("Relay chain argument error: {}", err))?;
+ let polkadot_config = SubstrateCli::create_configuration(
+ &polkadot_cli,
+ &polkadot_cli,
+ tokio_runtime.handle().clone(),
+ )
+ .map_err(|err| format!("Relay chain argument error: {}", err))?;
info!("Parachain id: {:?}", id);
info!("Parachain Account: {}", parachain_account);
@@ -409,10 +412,6 @@
fn rpc_cors(&self, is_dev: bool) -> Result<Option<Vec<String>>> {
self.base.base.rpc_cors(is_dev)
- }
-
- fn telemetry_external_transport(&self) -> Result<Option<sc_service::config::ExtTransport>> {
- self.base.base.telemetry_external_transport()
}
fn default_heap_pages(&self) -> Result<Option<u64>> {
node/cli/src/service.rsdiffbeforeafterboth--- a/node/cli/src/service.rs
+++ b/node/cli/src/service.rs
@@ -27,8 +27,8 @@
// Substrate Imports
use sc_client_api::ExecutorProvider;
-pub use sc_executor::NativeExecutor;
-use sc_executor::native_executor_instance;
+use sc_executor::NativeElseWasmExecutor;
+use sc_executor::NativeExecutionDispatch;
use sc_network::NetworkService;
use sc_service::{BasePath, Configuration, PartialComponents, Role, TaskManager};
use sc_telemetry::{Telemetry, TelemetryHandle, TelemetryWorker, TelemetryWorkerHandle};
@@ -49,14 +49,21 @@
pub type Block = sp_runtime::generic::Block<Header, sp_runtime::OpaqueExtrinsic>;
type Hash = sp_core::H256;
-// Native executor instance.
-native_executor_instance!(
- pub ParachainRuntimeExecutor,
- nft_runtime::api::dispatch,
- nft_runtime::native_version,
- frame_benchmarking::benchmarking::HostFunctions,
-);
+/// Native executor instance.
+pub struct ParachainRuntimeExecutor;
+
+impl NativeExecutionDispatch for ParachainRuntimeExecutor {
+ type ExtendHostFunctions = frame_benchmarking::benchmarking::HostFunctions;
+
+ fn dispatch(method: &str, data: &[u8]) -> Option<Vec<u8>> {
+ nft_runtime::api::dispatch(method, data)
+ }
+ fn native_version() -> sc_executor::NativeVersion {
+ nft_runtime::native_version()
+ }
+}
+
pub fn open_frontier_backend(config: &Configuration) -> Result<Arc<fc_db::Backend<Block>>, String> {
let config_dir = config
.base_path
@@ -77,9 +84,10 @@
)?))
}
-type Executor = ParachainRuntimeExecutor;
+type ExecutorDispatch = ParachainRuntimeExecutor;
-type FullClient = sc_service::TFullClient<Block, RuntimeApi, Executor>;
+type FullClient =
+ sc_service::TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>;
type FullBackend = sc_service::TFullBackend<Block>;
type FullSelectChain = sc_consensus::LongestChain<FullBackend, Block>;
@@ -110,7 +118,7 @@
>
where
sc_client_api::StateBackendFor<FullBackend, Block>: sp_api::StateBackend<BlakeTwo256>,
- Executor: sc_executor::NativeExecutionDispatch + 'static,
+ ExecutorDispatch: NativeExecutionDispatch + 'static,
BIQ: FnOnce(
Arc<FullClient>,
&Configuration,
@@ -140,10 +148,17 @@
})
.transpose()?;
+ let executor = NativeElseWasmExecutor::<ExecutorDispatch>::new(
+ config.wasm_method,
+ config.default_heap_pages,
+ config.max_runtime_instances,
+ );
+
let (client, backend, keystore_container, task_manager) =
- sc_service::new_full_parts::<Block, RuntimeApi, Executor>(
+ sc_service::new_full_parts::<Block, RuntimeApi, _>(
config,
telemetry.as_ref().map(|(_, telemetry)| telemetry.handle()),
+ executor,
)?;
let client = Arc::new(client);
@@ -210,7 +225,7 @@
) -> sc_service::error::Result<(TaskManager, Arc<FullClient>)>
where
sc_client_api::StateBackendFor<FullBackend, Block>: sp_api::StateBackend<BlakeTwo256>,
- Executor: sc_executor::NativeExecutionDispatch + 'static,
+ ExecutorDispatch: NativeExecutionDispatch + 'static,
BIQ: FnOnce(
Arc<FullClient>,
&Configuration,
node/rpc/Cargo.tomldiffbeforeafterboth--- a/node/rpc/Cargo.toml
+++ b/node/rpc/Cargo.toml
@@ -11,42 +11,42 @@
[dependencies]
futures = { version = "0.3.17", features = ["compat"] }
-jsonrpc-core = "15.1.0"
-jsonrpc-pubsub = "15.1.0"
+jsonrpc-core = "18.0.0"
+jsonrpc-pubsub = "18.0.0"
# pallet-contracts-rpc = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.9' }
-pallet-transaction-payment-rpc = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-pallet-transaction-payment-rpc-runtime-api = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sc-client-api = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sc-consensus-aura = { version = "0.10.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sc-consensus-epochs = { version = "0.10.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sc-finality-grandpa = { version = "0.10.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sc-finality-grandpa-rpc = { version = "0.10.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sc-keystore = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sc-network = { version = "0.10.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sc-rpc-api = { version = "0.10.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sc-rpc = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sc-service = { version = "0.10.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-api = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-block-builder = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-blockchain = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-consensus = { version = "0.10.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-consensus-aura = { version = "0.10.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-core = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-offchain = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-runtime = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-storage = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-session = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-transaction-pool = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sc-transaction-pool = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-substrate-frame-rpc-system = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
+pallet-transaction-payment-rpc = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+pallet-transaction-payment-rpc-runtime-api = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sc-client-api = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sc-consensus-aura = { version = "0.10.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sc-consensus-epochs = { version = "0.10.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sc-finality-grandpa = { version = "0.10.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sc-finality-grandpa-rpc = { version = "0.10.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sc-keystore = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sc-network = { version = "0.10.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sc-rpc-api = { version = "0.10.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sc-rpc = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sc-service = { version = "0.10.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-api = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-block-builder = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-blockchain = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-consensus = { version = "0.10.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-consensus-aura = { version = "0.10.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-core = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-offchain = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-runtime = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-storage = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-session = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-transaction-pool = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sc-transaction-pool = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+substrate-frame-rpc-system = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
tokio = { version = "0.2.25", features = ["macros", "sync"] }
-pallet-ethereum = { git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }
-fc-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }
-fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }
-fc-rpc-core = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }
-fc-db = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }
-fc-mapping-sync = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }
+pallet-ethereum = { git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
+fc-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
+fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
+fc-rpc-core = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
+fc-db = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
+fc-mapping-sync = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
pallet-nft = { path = "../../pallets/nft" }
nft-runtime = { path = "../../runtime" }
pallets/contract-helpers/Cargo.tomldiffbeforeafterboth--- a/pallets/contract-helpers/Cargo.toml
+++ b/pallets/contract-helpers/Cargo.toml
@@ -15,11 +15,12 @@
version = '0.1.0'
[dependencies]
-frame-support = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-frame-system = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-pallet-contracts = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-runtime = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-std = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
+scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
+frame-support = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+frame-system = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+pallet-contracts = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-runtime = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-std = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
[features]
default = ["std"]
pallets/contract-helpers/src/lib.rsdiffbeforeafterboth--- a/pallets/contract-helpers/src/lib.rs
+++ b/pallets/contract-helpers/src/lib.rs
@@ -165,16 +165,16 @@
}
}
- #[derive(Encode, Decode, Clone, PartialEq, Eq)]
- pub struct ContractHelpersExtension<T>(PhantomData<T>);
- impl<T> core::fmt::Debug for ContractHelpersExtension<T> {
+ #[derive(Encode, Decode, Clone, PartialEq, Eq, scale_info::TypeInfo)]
+ pub struct ContractHelpersExtension<T: scale_info::TypeInfo>(PhantomData<T>);
+ impl<T: scale_info::TypeInfo> core::fmt::Debug for ContractHelpersExtension<T> {
fn fmt(&self, fmt: &mut core::fmt::Formatter<'_>) -> Result<(), core::fmt::Error> {
fmt.debug_struct("ContractHelpersExtension").finish()
}
}
type CodeHash<T> = <T as frame_system::Config>::Hash;
- impl<T> SignedExtension for ContractHelpersExtension<T>
+ impl<T: scale_info::TypeInfo> SignedExtension for ContractHelpersExtension<T>
where
T: Config + Send + Sync,
<T as SysConfig>::Call: sp_runtime::traits::Dispatchable,
@@ -199,8 +199,12 @@
_info: &DispatchInfoOf<Self::Call>,
_len: usize,
) -> transaction_validity::TransactionValidity {
- if let Some(pallet_contracts::Call::call(dest, _value, _gas_limit, _data)) =
- IsSubType::<pallet_contracts::Call<T>>::is_sub_type(call)
+ if let Some(pallet_contracts::Call::call {
+ dest,
+ value: _value,
+ gas_limit: _gas_limit,
+ data: _data,
+ }) = IsSubType::<pallet_contracts::Call<T>>::is_sub_type(call)
{
let called_contract: T::AccountId =
T::Lookup::lookup((*dest).clone()).unwrap_or_default();
@@ -219,10 +223,10 @@
_len: usize,
) -> Result<Self::Pre, TransactionValidityError> {
match IsSubType::<pallet_contracts::Call<T>>::is_sub_type(call) {
- Some(pallet_contracts::Call::instantiate(_, _, code_hash, _, salt)) => {
- Ok(Some((who.clone(), *code_hash, salt.clone())))
- }
- Some(pallet_contracts::Call::instantiate_with_code(_, _, code, _, salt)) => {
+ Some(pallet_contracts::Call::instantiate {
+ code_hash, salt, ..
+ }) => Ok(Some((who.clone(), *code_hash, salt.clone()))),
+ Some(pallet_contracts::Call::instantiate_with_code { code, salt, .. }) => {
let code_hash = &T::Hashing::hash(code);
Ok(Some((who.clone(), *code_hash, salt.clone())))
}
@@ -256,7 +260,7 @@
T::AccountId: AsRef<[u8]>,
{
fn get_sponsor(who: &T::AccountId, call: &C) -> Option<T::AccountId> {
- if let Some(pallet_contracts::Call::call(dest, _value, _gas_limit, _data)) =
+ if let Some(pallet_contracts::Call::call { dest, .. }) =
IsSubType::<pallet_contracts::Call<T>>::is_sub_type(call)
{
let called_contract: T::AccountId =
pallets/evm-coder-substrate/Cargo.tomldiffbeforeafterboth--- a/pallets/evm-coder-substrate/Cargo.toml
+++ b/pallets/evm-coder-substrate/Cargo.toml
@@ -4,14 +4,15 @@
edition = "2018"
[dependencies]
-sp-std = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-core = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-ethereum = { default-features = false, version = "0.9.0" }
+scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
+sp-std = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-core = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+ethereum = { version = "0.9", git = "https://github.com/purestake/ethereum", branch = "joshy-scale-info", default-features = false }
evm-coder = { default-features = false, path = "../../crates/evm-coder" }
-pallet-ethereum = { default-features = false, version = "4.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }
-pallet-evm = { default-features = false, version = "6.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }
-frame-support = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-frame-system = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
+pallet-ethereum = { default-features = false, version = "4.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
+pallet-evm = { default-features = false, version = "6.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
+frame-support = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+frame-system = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
[dependencies.codec]
default-features = false
pallets/evm-contract-helpers/Cargo.tomldiffbeforeafterboth--- a/pallets/evm-contract-helpers/Cargo.toml
+++ b/pallets/evm-contract-helpers/Cargo.toml
@@ -4,14 +4,15 @@
edition = "2018"
[dependencies]
-frame-support = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-frame-system = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-runtime = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-std = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-core = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
+scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
+frame-support = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+frame-system = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-runtime = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-std = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-core = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
evm-coder = { default-features = false, path = '../../crates/evm-coder' }
pallet-evm-coder-substrate = { default-features = false, path = '../../pallets/evm-coder-substrate' }
-pallet-evm = { default-features = false, version = "6.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }
+pallet-evm = { default-features = false, version = "6.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
up-sponsorship = { default-features = false, path = '../../primitives/sponsorship' }
log = "0.4.14"
pallets/evm-migration/Cargo.tomldiffbeforeafterboth--- a/pallets/evm-migration/Cargo.toml
+++ b/pallets/evm-migration/Cargo.toml
@@ -4,15 +4,16 @@
edition = "2018"
[dependencies]
-frame-support = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-frame-system = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-frame-benchmarking = { default-features = false, version = '4.0.0-dev', optional = true, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-runtime = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-std = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-io = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-core = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-pallet-evm = { default-features = false, version = "6.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }
-fp-evm = { default-features = false, version = "3.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }
+scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
+frame-support = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+frame-system = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+frame-benchmarking = { default-features = false, version = '4.0.0-dev', optional = true, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-runtime = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-std = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-io = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-core = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+pallet-evm = { default-features = false, version = "6.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
+fp-evm = { default-features = false, version = "3.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
[dependencies.codec]
default-features = false
pallets/evm-transaction-payment/Cargo.tomldiffbeforeafterboth--- a/pallets/evm-transaction-payment/Cargo.toml
+++ b/pallets/evm-transaction-payment/Cargo.toml
@@ -4,15 +4,16 @@
edition = "2018"
[dependencies]
-frame-support = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-frame-system = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-runtime = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-std = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-io = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-core = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-pallet-evm = { default-features = false, version = "6.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }
-fp-evm = { default-features = false, version = "3.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }
-pallet-ethereum = { default-features = false, version = "4.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }
+scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
+frame-support = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+frame-system = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-runtime = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-std = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-io = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-core = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+pallet-evm = { default-features = false, version = "6.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
+fp-evm = { default-features = false, version = "3.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
+pallet-ethereum = { default-features = false, version = "4.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
up-sponsorship = { default-features = false, path = '../../primitives/sponsorship' }
[dependencies.codec]
pallets/inflation/Cargo.tomldiffbeforeafterboth--- a/pallets/inflation/Cargo.toml
+++ b/pallets/inflation/Cargo.toml
@@ -43,43 +43,43 @@
default-features = false
optional = true
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.frame-support]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.frame-system]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.pallet-balances]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.pallet-timestamp]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.pallet-randomness-collective-flip]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-std]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.serde]
@@ -90,17 +90,20 @@
[dependencies.sp-runtime]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-core]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-io]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
+
+[dependencies]
+scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
pallets/nft-charge-transaction/Cargo.tomldiffbeforeafterboth--- a/pallets/nft-charge-transaction/Cargo.toml
+++ b/pallets/nft-charge-transaction/Cargo.toml
@@ -19,16 +19,17 @@
version = '2.3.0'
[dependencies]
+scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.130", default-features = false }
-frame-support = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-frame-system = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-pallet-balances = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-pallet-transaction-payment = { default-features = false, version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-std = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-frame-benchmarking = { default-features = false, version = "4.0.0-dev", optional = true, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-core = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-io = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-runtime = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
+frame-support = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+frame-system = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+pallet-balances = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+pallet-transaction-payment = { default-features = false, version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-std = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+frame-benchmarking = { default-features = false, version = "4.0.0-dev", optional = true, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-core = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-io = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-runtime = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
pallet-nft-transaction-payment = { default-features = false, path = "../nft-transaction-payment" }
pallets/nft-charge-transaction/src/lib.rsdiffbeforeafterboth--- a/pallets/nft-charge-transaction/src/lib.rs
+++ b/pallets/nft-charge-transaction/src/lib.rs
@@ -8,6 +8,7 @@
#[cfg(feature = "std")]
pub use std::*;
+use scale_info::TypeInfo;
#[cfg(feature = "std")]
pub use serde::*;
@@ -30,7 +31,7 @@
use pallet_transaction_payment::OnChargeTransaction;
use sp_std::prelude::*;
-pub trait Config: frame_system::Config + pallet_nft_transaction_payment::Config {}
+pub trait Config: frame_system::Config + pallet_nft_transaction_payment::Config + TypeInfo {}
decl_storage! {
trait Store for Module<T: Config> as NftTransactionPayment
@@ -49,7 +50,7 @@
/// Require the transactor pay for themselves and maybe include a tip to gain additional priority
/// in the queue.
-#[derive(Encode, Decode, Clone, Eq, PartialEq)]
+#[derive(Encode, Decode, Clone, Eq, PartialEq, scale_info::TypeInfo)]
pub struct ChargeTransactionPayment<T: Config>(#[codec(compact)] BalanceOf<T>);
impl<T: Config + Send + Sync> sp_std::fmt::Debug for ChargeTransactionPayment<T> {
pallets/nft-transaction-payment/Cargo.tomldiffbeforeafterboth--- a/pallets/nft-transaction-payment/Cargo.toml
+++ b/pallets/nft-transaction-payment/Cargo.toml
@@ -19,15 +19,16 @@
version = '2.3.0'
[dependencies]
+scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.130", default-features = false }
-frame-support = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-frame-system = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-pallet-transaction-payment = { default-features = false, version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-std = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-frame-benchmarking = { default-features = false, version = "4.0.0-dev", optional = true, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-core = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-io = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-runtime = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
+frame-support = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+frame-system = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+pallet-transaction-payment = { default-features = false, version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-std = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+frame-benchmarking = { default-features = false, version = "4.0.0-dev", optional = true, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-core = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-io = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-runtime = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
up-sponsorship = { default-features = false, path = "../../primitives/sponsorship", version = "0.1.0" }
pallets/nft/Cargo.tomldiffbeforeafterboth--- a/pallets/nft/Cargo.toml
+++ b/pallets/nft/Cargo.toml
@@ -56,49 +56,49 @@
default-features = false
optional = true
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.frame-support]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.frame-system]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.pallet-balances]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.pallet-timestamp]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.pallet-randomness-collective-flip]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-std]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.pallet-transaction-payment]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.serde]
@@ -109,19 +109,19 @@
[dependencies.sp-runtime]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-core]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-io]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
@@ -140,9 +140,10 @@
[dependencies]
-ethereum = { default-features = false, version = "0.9.0" }
+scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
+ethereum = { version = "0.9", git = "https://github.com/purestake/ethereum", branch = "joshy-scale-info", default-features = false }
rlp = { default-features = false, version = "0.5.0" }
-sp-api = { default-features = false, version = '4.0.0-dev', git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.10" }
+sp-api = { default-features = false, version = '4.0.0-dev', git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.11" }
evm-coder = { default-features = false, path = "../../crates/evm-coder" }
pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }
@@ -150,7 +151,7 @@
"serde_no_std",
] }
-pallet-evm = { default-features = false, version = "6.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }
-pallet-ethereum = { default-features = false, version = "4.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }
-fp-evm = { default-features = false, version = '3.0.0-dev', git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }
+pallet-evm = { default-features = false, version = "6.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
+pallet-ethereum = { default-features = false, version = "4.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
+fp-evm = { default-features = false, version = '3.0.0-dev', git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
hex-literal = "0.3.3"
pallets/nft/src/eth/account.rsdiffbeforeafterboth--- a/pallets/nft/src/eth/account.rs
+++ b/pallets/nft/src/eth/account.rs
@@ -1,5 +1,7 @@
use crate::Config;
use codec::{Encode, EncodeLike, Decode};
+use scale_info::build::{FieldsBuilder, UnnamedFields, Variants};
+use scale_info::{Path, Type, TypeInfo};
use sp_core::crypto::AccountId32;
use primitive_types::H160;
use core::cmp::Ordering;
@@ -9,7 +11,7 @@
use sp_std::clone::Clone;
pub trait CrossAccountId<AccountId>:
- Encode + EncodeLike + Decode + Clone + PartialEq + Ord + core::fmt::Debug
+ Encode + EncodeLike + Decode + TypeInfo + Clone + PartialEq + Ord + core::fmt::Debug
// +
// Serialize + Deserialize<'static>
{
@@ -28,6 +30,36 @@
ethereum: H160,
}
+impl<T: Config> TypeInfo for BasicCrossAccountId<T> {
+ type Identity = Self;
+
+ fn type_info() -> Type {
+ Type::builder()
+ .path(Path::new("BasicCrossAccountId", "pallet_nft::eth::account"))
+ // At runtime side this type has no type parameters, as AccountId is inlined?
+ // .type_params([TypeParameter::new(
+ // "AccountId",
+ // Some(scale_info::meta_type::<T::AccountId>()),
+ // )])
+ .variant(
+ Variants::new()
+ .variant("Substrate", |t| {
+ t.fields(
+ <FieldsBuilder<UnnamedFields>>::default()
+ .field(|f| f.ty::<T::AccountId>()),
+ )
+ .index(0)
+ })
+ .variant("Ethereum", |t| {
+ t.fields(
+ <FieldsBuilder<UnnamedFields>>::default().field(|f| f.ty::<H160>()),
+ )
+ .index(1)
+ }),
+ )
+ }
+}
+
impl<T: Config> core::fmt::Debug for BasicCrossAccountId<T> {
fn fmt(&self, fmt: &mut core::fmt::Formatter) -> core::fmt::Result {
if self.from_ethereum {
pallets/nft/src/lib.rsdiffbeforeafterboth1//2// This file is subject to the terms and conditions defined in3// file 'LICENSE', which is part of this source code package.4//56#![recursion_limit = "1024"]7#![cfg_attr(not(feature = "std"), no_std)]8#![allow(9 clippy::too_many_arguments,10 clippy::unnecessary_mut_passed,11 clippy::unused_unit12)]1314extern crate alloc;1516pub use serde::{Serialize, Deserialize};1718pub use frame_support::{19 construct_runtime, decl_event, decl_module, decl_storage, decl_error,20 dispatch::DispatchResult,21 ensure, fail, parameter_types,22 traits::{23 Currency, ExistenceRequirement, Get, Imbalance, KeyOwnerProofSystem, OnUnbalanced,24 Randomness, IsSubType, WithdrawReasons,25 },26 weights::{27 constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, WEIGHT_PER_SECOND},28 DispatchInfo, GetDispatchInfo, IdentityFee, Pays, PostDispatchInfo, Weight,29 WeightToFeePolynomial, DispatchClass,30 },31 StorageValue, transactional,32};3334use frame_system::{self as system, ensure_signed};35use sp_core::H160;36use sp_std::vec;37use sp_runtime::{DispatchError, sp_std::prelude::Vec};38use core::ops::{Deref, DerefMut};39use nft_data_structs::{40 MAX_DECIMAL_POINTS, MAX_SPONSOR_TIMEOUT, MAX_TOKEN_OWNERSHIP, MAX_REFUNGIBLE_PIECES,41 CUSTOM_DATA_LIMIT, COLLECTION_NUMBER_LIMIT, ACCOUNT_TOKEN_OWNERSHIP_LIMIT,42 VARIABLE_ON_CHAIN_SCHEMA_LIMIT, CONST_ON_CHAIN_SCHEMA_LIMIT, COLLECTION_ADMINS_LIMIT,43 OFFCHAIN_SCHEMA_LIMIT, MAX_TOKEN_PREFIX_LENGTH, MAX_COLLECTION_NAME_LENGTH,44 MAX_COLLECTION_DESCRIPTION_LENGTH, AccessMode, Collection, CreateItemData, CollectionLimits,45 CollectionId, CollectionMode, TokenId, SchemaVersion, SponsorshipState, Ownership, NftItemType,46 MetaUpdatePermission, FungibleItemType, ReFungibleItemType,47};4849#[cfg(test)]50mod mock;5152#[cfg(test)]53mod tests;5455mod eth;56mod sponsorship;57pub use sponsorship::NftSponsorshipHandler;58pub use eth::sponsoring::NftEthSponsorshipHandler;5960pub use eth::NftErcSupport;61pub use eth::account::*;62use eth::erc::{ERC20Events, ERC721Events};6364#[cfg(feature = "runtime-benchmarks")]65mod benchmarking;66pub mod weights;67use weights::WeightInfo;6869decl_error! {70 /// Error for non-fungible-token module.71 pub enum Error for Module<T: Config> {72 /// Total collections bound exceeded.73 TotalCollectionsLimitExceeded,74 /// Decimal_points parameter must be lower than MAX_DECIMAL_POINTS constant, currently it is 30.75 CollectionDecimalPointLimitExceeded,76 /// Collection name can not be longer than 63 char.77 CollectionNameLimitExceeded,78 /// Collection description can not be longer than 255 char.79 CollectionDescriptionLimitExceeded,80 /// Token prefix can not be longer than 15 char.81 CollectionTokenPrefixLimitExceeded,82 /// This collection does not exist.83 CollectionNotFound,84 /// Item not exists.85 TokenNotFound,86 /// Admin not found87 AdminNotFound,88 /// Arithmetic calculation overflow.89 NumOverflow,90 /// Account already has admin role.91 AlreadyAdmin,92 /// You do not own this collection.93 NoPermission,94 /// This address is not set as sponsor, use setCollectionSponsor first.95 ConfirmUnsetSponsorFail,96 /// Collection is not in mint mode.97 PublicMintingNotAllowed,98 /// Sender parameter and item owner must be equal.99 MustBeTokenOwner,100 /// Item balance not enough.101 TokenValueTooLow,102 /// Size of item is too large.103 NftSizeLimitExceeded,104 /// No approve found105 ApproveNotFound,106 /// Requested value more than approved.107 TokenValueNotEnough,108 /// Only approved addresses can call this method.109 ApproveRequired,110 /// Address is not in white list.111 AddresNotInWhiteList,112 /// Number of collection admins bound exceeded.113 CollectionAdminsLimitExceeded,114 /// Owned tokens by a single address bound exceeded.115 AddressOwnershipLimitExceeded,116 /// Length of items properties must be greater than 0.117 EmptyArgument,118 /// const_data exceeded data limit.119 TokenConstDataLimitExceeded,120 /// variable_data exceeded data limit.121 TokenVariableDataLimitExceeded,122 /// Not NFT item data used to mint in NFT collection.123 NotNftDataUsedToMintNftCollectionToken,124 /// Not Fungible item data used to mint in Fungible collection.125 NotFungibleDataUsedToMintFungibleCollectionToken,126 /// Not Re Fungible item data used to mint in Re Fungible collection.127 NotReFungibleDataUsedToMintReFungibleCollectionToken,128 /// Unexpected collection type.129 UnexpectedCollectionType,130 /// Can't store metadata in fungible tokens.131 CantStoreMetadataInFungibleTokens,132 /// Collection token limit exceeded133 CollectionTokenLimitExceeded,134 /// Account token limit exceeded per collection135 AccountTokenLimitExceeded,136 /// Collection limit bounds per collection exceeded137 CollectionLimitBoundsExceeded,138 /// Tried to enable permissions which are only permitted to be disabled139 OwnerPermissionsCantBeReverted,140 /// Schema data size limit bound exceeded141 SchemaDataLimitExceeded,142 /// Maximum refungibility exceeded143 WrongRefungiblePieces,144 /// createRefungible should be called with one owner145 BadCreateRefungibleCall,146 /// Gas limit exceeded147 OutOfGas,148 /// Metadata update denied by collection settings149 MetadataUpdateDenied,150 /// Metadata update flag become unmutable with None option151 MetadataFlagFrozen,152 /// Collection settings not allowing items transferring153 TransferNotAllowed,154 /// Can't transfer tokens to ethereum zero address155 AddressIsZero,156 }157}158159#[must_use = "Should call submit_logs or save, otherwise some data will be lost for evm side"]160pub struct CollectionHandle<T: Config> {161 pub id: CollectionId,162 collection: Collection<T>,163 recorder: pallet_evm_coder_substrate::SubstrateRecorder<T>,164}165impl<T: Config> CollectionHandle<T> {166 pub fn get_with_gas_limit(id: CollectionId, gas_limit: u64) -> Option<Self> {167 <CollectionById<T>>::get(id).map(|collection| Self {168 id,169 collection,170 recorder: pallet_evm_coder_substrate::SubstrateRecorder::new(171 eth::collection_id_to_address(id),172 gas_limit,173 ),174 })175 }176 pub fn get(id: CollectionId) -> Option<Self> {177 Self::get_with_gas_limit(id, u64::MAX)178 }179 pub fn log(&self, log: impl evm_coder::ToLog) -> DispatchResult {180 self.recorder.log_sub(log)181 }182 #[allow(dead_code)]183 fn consume_gas(&self, gas: u64) -> DispatchResult {184 self.recorder.consume_gas_sub(gas)185 }186 fn consume_sload(&self) -> DispatchResult {187 self.recorder.consume_sload_sub()188 }189 fn consume_sstore(&self) -> DispatchResult {190 self.recorder.consume_sstore_sub()191 }192 pub fn submit_logs(self) -> DispatchResult {193 self.recorder.submit_logs()194 }195 pub fn save(self) -> DispatchResult {196 self.recorder.submit_logs()?;197 <CollectionById<T>>::insert(self.id, self.collection);198 Ok(())199 }200}201impl<T: Config> Deref for CollectionHandle<T> {202 type Target = Collection<T>;203204 fn deref(&self) -> &Self::Target {205 &self.collection206 }207}208209impl<T: Config> DerefMut for CollectionHandle<T> {210 fn deref_mut(&mut self) -> &mut Self::Target {211 &mut self.collection212 }213}214215pub trait Config: system::Config + pallet_evm_coder_substrate::Config + Sized {216 type Event: From<Event<Self>> + Into<<Self as system::Config>::Event>;217218 /// Weight information for extrinsics in this pallet.219 type WeightInfo: WeightInfo;220221 type EvmAddressMapping: pallet_evm::AddressMapping<Self::AccountId>;222 type EvmBackwardsAddressMapping: EvmBackwardsAddressMapping<Self::AccountId>;223224 type CrossAccountId: CrossAccountId<Self::AccountId>;225 type Currency: Currency<Self::AccountId>;226 type CollectionCreationPrice: Get<227 <<Self as Config>::Currency as Currency<Self::AccountId>>::Balance,228 >;229 type TreasuryAccountId: Get<Self::AccountId>;230}231232type SelfWeightOf<T> = <T as Config>::WeightInfo;233234trait WeightInfoHelpers: WeightInfo {235 fn transfer() -> Weight {236 Self::transfer_nft()237 .max(Self::transfer_fungible())238 .max(Self::transfer_refungible())239 }240 fn transfer_from() -> Weight {241 Self::transfer_from_nft()242 .max(Self::transfer_from_fungible())243 .max(Self::transfer_from_refungible())244 }245 fn approve() -> Weight {246 // TODO: refungible, fungible247 Self::approve_nft()248 }249 fn set_variable_meta_data(data: u32) -> Weight {250 // TODO: refungible251 Self::set_variable_meta_data_nft(data)252 }253 fn create_item(data: u32) -> Weight {254 Self::create_item_nft(data)255 .max(Self::create_item_fungible())256 .max(Self::create_item_refungible(data))257 }258 fn create_multiple_items(amount: u32) -> Weight {259 Self::create_multiple_items_nft(amount)260 .max(Self::create_multiple_items_fungible(amount))261 .max(Self::create_multiple_items_refungible(amount))262 }263 fn burn_item() -> Weight {264 // TODO: refungible, fungible265 Self::burn_item_nft()266 }267}268impl<T: WeightInfo> WeightInfoHelpers for T {}269270// # Used definitions271//272// ## User control levels273//274// chain-controlled - key is uncontrolled by user275// i.e autoincrementing index276// can use non-cryptographic hash277// real - key is controlled by user278// but it is hard to generate enough colliding values, i.e owner of signed txs279// can use non-cryptographic hash280// controlled - key is completly controlled by users281// i.e maps with mutable keys282// should use cryptographic hash283//284// ## User control level downgrade reasons285//286// ?1 - chain-controlled -> controlled287// collections/tokens can be destroyed, resulting in massive holes288// ?2 - chain-controlled -> controlled289// same as ?1, but can be only added, resulting in easier exploitation290// ?3 - real -> controlled291// no confirmation required, so addresses can be easily generated292decl_storage! {293 trait Store for Module<T: Config> as Nft {294295 //#region Private members296 /// Id of next collection297 CreatedCollectionCount: u32;298 /// Used for migrations299 ChainVersion: u64;300 /// Id of last collection token301 /// Collection id (controlled?1)302 ItemListIndex: map hasher(blake2_128_concat) CollectionId => TokenId;303 //#endregion304305 //#region Bound counters306 /// Amount of collections destroyed, used for total amount tracking with307 /// CreatedCollectionCount308 DestroyedCollectionCount: u32;309 //#endregion310311 //#region Basic collections312 /// Collection info313 /// Collection id (controlled?1)314 pub CollectionById get(fn collection_id) config(): map hasher(blake2_128_concat) CollectionId => Option<Collection<T>> = None;315 /// List of collection admins316 /// Collection id (controlled?2)317 pub AdminList get(fn admin_list_collection): map hasher(blake2_128_concat) CollectionId => Vec<T::CrossAccountId>;318 /// Whitelisted collection users319 /// Collection id (controlled?2), user id (controlled?3)320 pub WhiteList get(fn white_list): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) T::AccountId => bool;321 //#endregion322323 /// How many of collection items user have324 /// Collection id (controlled?2), account id (real)325 pub Balance get(fn balance_count): double_map hasher(blake2_128_concat) CollectionId, hasher(twox_64_concat) T::AccountId => u128;326327 /// Amount of items which spender can transfer out of owners account (via transferFrom)328 /// Collection id (controlled?2), (token id (controlled ?2) + owner account id (real) + spender account id (controlled?3))329 /// TODO: Off chain worker should remove from this map when token gets removed330 pub Allowances get(fn approved): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) (TokenId, T::AccountId, T::AccountId) => u128;331332 //#region Item collections333 /// Collection id (controlled?2), token id (controlled?1)334 pub NftItemList get(fn nft_item_id) config(): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) TokenId => Option<NftItemType<T::CrossAccountId>>;335 /// Collection id (controlled?2), owner (controlled?2)336 pub FungibleItemList get(fn fungible_item_id) config(): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) T::AccountId => FungibleItemType;337 /// Collection id (controlled?2), token id (controlled?1)338 pub ReFungibleItemList get(fn refungible_item_id) config(): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) TokenId => Option<ReFungibleItemType<T::CrossAccountId>>;339 //#endregion340341 //#region Index list342 /// Collection id (controlled?2), tokens owner (controlled?2)343 pub AddressTokens get(fn address_tokens): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) T::AccountId => Vec<TokenId>;344 //#endregion345346 //#region Tokens transfer rate limit baskets347 /// (Collection id (controlled?2), who created (real))348 /// TODO: Off chain worker should remove from this map when collection gets removed349 pub CreateItemBasket get(fn create_item_basket): map hasher(blake2_128_concat) (CollectionId, T::AccountId) => T::BlockNumber;350 /// Collection id (controlled?2), token id (controlled?2)351 pub NftTransferBasket get(fn nft_transfer_basket): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) TokenId => T::BlockNumber;352 /// Collection id (controlled?2), owning user (real)353 pub FungibleTransferBasket get(fn fungible_transfer_basket): double_map hasher(blake2_128_concat) CollectionId, hasher(twox_64_concat) T::AccountId => T::BlockNumber;354 /// Collection id (controlled?2), token id (controlled?2)355 pub ReFungibleTransferBasket get(fn refungible_transfer_basket): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) TokenId => T::BlockNumber;356 //#endregion357358 /// Variable metadata sponsoring359 /// Collection id (controlled?2), token id (controlled?2)360 pub VariableMetaDataBasket get(fn variable_meta_data_basket): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) TokenId => Option<T::BlockNumber> = None;361 }362 add_extra_genesis {363 build(|config: &GenesisConfig<T>| {364 // Modification of storage365 for (_num, _c) in &config.collection_id {366 <Module<T>>::init_collection(_c);367 }368369 for (_num, _c, _i) in &config.nft_item_id {370 <Module<T>>::init_nft_token(*_c, _i);371 }372373 for (collection_id, account_id, fungible_item) in &config.fungible_item_id {374 <Module<T>>::init_fungible_token(*collection_id, &T::CrossAccountId::from_sub(account_id.clone()), fungible_item);375 }376377 for (_num, _c, _i) in &config.refungible_item_id {378 <Module<T>>::init_refungible_token(*_c, _i);379 }380 })381 }382}383384decl_event!(385 pub enum Event<T>386 where387 AccountId = <T as frame_system::Config>::AccountId,388 CrossAccountId = <T as Config>::CrossAccountId,389 {390 /// New collection was created391 ///392 /// # Arguments393 ///394 /// * collection_id: Globally unique identifier of newly created collection.395 ///396 /// * mode: [CollectionMode] converted into u8.397 ///398 /// * account_id: Collection owner.399 CollectionCreated(CollectionId, u8, AccountId),400401 /// New item was created.402 ///403 /// # Arguments404 ///405 /// * collection_id: Id of the collection where item was created.406 ///407 /// * item_id: Id of an item. Unique within the collection.408 ///409 /// * recipient: Owner of newly created item410 ItemCreated(CollectionId, TokenId, CrossAccountId),411412 /// Collection item was burned.413 ///414 /// # Arguments415 ///416 /// collection_id.417 ///418 /// item_id: Identifier of burned NFT.419 ItemDestroyed(CollectionId, TokenId),420421 /// Item was transferred422 ///423 /// * collection_id: Id of collection to which item is belong424 ///425 /// * item_id: Id of an item426 ///427 /// * sender: Original owner of item428 ///429 /// * recipient: New owner of item430 ///431 /// * amount: Always 1 for NFT432 Transfer(CollectionId, TokenId, CrossAccountId, CrossAccountId, u128),433434 /// * collection_id435 ///436 /// * item_id437 ///438 /// * sender439 ///440 /// * spender441 ///442 /// * amount443 Approved(CollectionId, TokenId, CrossAccountId, CrossAccountId, u128),444 }445);446447decl_module! {448 pub struct Module<T: Config> for enum Call449 where450 origin: T::Origin451 {452 fn deposit_event() = default;453 const CollectionAdminsLimit: u64 = COLLECTION_ADMINS_LIMIT;454 type Error = Error<T>;455456 fn on_initialize(_now: T::BlockNumber) -> Weight {457 0458 }459460 /// This method creates a Collection of NFTs. Each Token may have multiple properties encoded as an array of bytes of certain length. The initial owner and admin of the collection are set to the address that signed the transaction. Both addresses can be changed later.461 ///462 /// # Permissions463 ///464 /// * Anyone.465 ///466 /// # Arguments467 ///468 /// * collection_name: UTF-16 string with collection name (limit 64 characters), will be stored as zero-terminated.469 ///470 /// * collection_description: UTF-16 string with collection description (limit 256 characters), will be stored as zero-terminated.471 ///472 /// * token_prefix: UTF-8 string with token prefix.473 ///474 /// * mode: [CollectionMode] collection type and type dependent data.475 // returns collection ID476 #[weight = <SelfWeightOf<T>>::create_collection()]477 #[transactional]478 pub fn create_collection(origin,479 collection_name: Vec<u16>,480 collection_description: Vec<u16>,481 token_prefix: Vec<u8>,482 mode: CollectionMode) -> DispatchResult {483484 // Anyone can create a collection485 let who = ensure_signed(origin)?;486487 // Take a (non-refundable) deposit of collection creation488 let mut imbalance = <<<T as Config>::Currency as Currency<T::AccountId>>::PositiveImbalance>::zero();489 imbalance.subsume(<<T as Config>::Currency as Currency<T::AccountId>>::deposit_creating(490 &T::TreasuryAccountId::get(),491 T::CollectionCreationPrice::get(),492 ));493 <T as Config>::Currency::settle(494 &who,495 imbalance,496 WithdrawReasons::TRANSFER,497 ExistenceRequirement::KeepAlive,498 ).map_err(|_| Error::<T>::NoPermission)?;499500 let decimal_points = match mode {501 CollectionMode::Fungible(points) => points,502 _ => 0503 };504505 let created_count = CreatedCollectionCount::get();506 let destroyed_count = DestroyedCollectionCount::get();507508 // bound Total number of collections509 ensure!(created_count - destroyed_count < COLLECTION_NUMBER_LIMIT, Error::<T>::TotalCollectionsLimitExceeded);510511 // check params512 ensure!(decimal_points <= MAX_DECIMAL_POINTS, Error::<T>::CollectionDecimalPointLimitExceeded);513 ensure!(collection_name.len() <= MAX_COLLECTION_NAME_LENGTH, Error::<T>::CollectionNameLimitExceeded);514 ensure!(collection_description.len() <= MAX_COLLECTION_DESCRIPTION_LENGTH, Error::<T>::CollectionDescriptionLimitExceeded);515 ensure!(token_prefix.len() <= MAX_TOKEN_PREFIX_LENGTH, Error::<T>::CollectionTokenPrefixLimitExceeded);516517 // Generate next collection ID518 let next_id = created_count519 .checked_add(1)520 .ok_or(Error::<T>::NumOverflow)?;521522 CreatedCollectionCount::put(next_id);523524 let limits = CollectionLimits {525 sponsored_data_size: CUSTOM_DATA_LIMIT,526 ..Default::default()527 };528529 // Create new collection530 let new_collection = Collection {531 owner: who.clone(),532 name: collection_name,533 mode: mode.clone(),534 mint_mode: false,535 access: AccessMode::Normal,536 description: collection_description,537 decimal_points,538 token_prefix,539 offchain_schema: Vec::new(),540 schema_version: SchemaVersion::ImageURL,541 sponsorship: SponsorshipState::Disabled,542 variable_on_chain_schema: Vec::new(),543 const_on_chain_schema: Vec::new(),544 limits,545 meta_update_permission: MetaUpdatePermission::default(),546 transfers_enabled: true,547 };548549 // Add new collection to map550 <CollectionById<T>>::insert(next_id, new_collection);551552 // call event553 Self::deposit_event(RawEvent::CollectionCreated(next_id, mode.id(), who));554555 Ok(())556 }557558 /// **DANGEROUS**: Destroys collection and all NFTs within this collection. Users irrecoverably lose their assets and may lose real money.559 ///560 /// # Permissions561 ///562 /// * Collection Owner.563 ///564 /// # Arguments565 ///566 /// * collection_id: collection to destroy.567 #[weight = <SelfWeightOf<T>>::destroy_collection()]568 #[transactional]569 pub fn destroy_collection(origin, collection_id: CollectionId) -> DispatchResult {570571 let sender = ensure_signed(origin)?;572 let collection = Self::get_collection(collection_id)?;573 Self::check_owner_permissions(&collection, &sender)?;574 if !collection.limits.owner_can_destroy {575 fail!(Error::<T>::NoPermission);576 }577578 <AddressTokens<T>>::remove_prefix(collection_id, None);579 <Allowances<T>>::remove_prefix(collection_id, None);580 <Balance<T>>::remove_prefix(collection_id, None);581 <ItemListIndex>::remove(collection_id);582 <AdminList<T>>::remove(collection_id);583 <CollectionById<T>>::remove(collection_id);584 <WhiteList<T>>::remove_prefix(collection_id, None);585586 <NftItemList<T>>::remove_prefix(collection_id, None);587 <FungibleItemList<T>>::remove_prefix(collection_id, None);588 <ReFungibleItemList<T>>::remove_prefix(collection_id, None);589590 <NftTransferBasket<T>>::remove_prefix(collection_id, None);591 <FungibleTransferBasket<T>>::remove_prefix(collection_id, None);592 <ReFungibleTransferBasket<T>>::remove_prefix(collection_id, None);593594 <VariableMetaDataBasket<T>>::remove_prefix(collection_id, None);595596 DestroyedCollectionCount::put(DestroyedCollectionCount::get()597 .checked_add(1)598 .ok_or(Error::<T>::NumOverflow)?);599600 Ok(())601 }602603 /// Add an address to white list.604 ///605 /// # Permissions606 ///607 /// * Collection Owner608 /// * Collection Admin609 ///610 /// # Arguments611 ///612 /// * collection_id.613 ///614 /// * address.615 #[weight = <SelfWeightOf<T>>::add_to_white_list()]616 #[transactional]617 pub fn add_to_white_list(origin, collection_id: CollectionId, address: T::CrossAccountId) -> DispatchResult{618619 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);620 let collection = Self::get_collection(collection_id)?;621622 Self::toggle_white_list_internal(623 &sender,624 &collection,625 &address,626 true,627 )?;628629 Ok(())630 }631632 /// Remove an address from white list.633 ///634 /// # Permissions635 ///636 /// * Collection Owner637 /// * Collection Admin638 ///639 /// # Arguments640 ///641 /// * collection_id.642 ///643 /// * address.644 #[weight = <SelfWeightOf<T>>::remove_from_white_list()]645 #[transactional]646 pub fn remove_from_white_list(origin, collection_id: CollectionId, address: T::CrossAccountId) -> DispatchResult{647648 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);649 let collection = Self::get_collection(collection_id)?;650651 Self::toggle_white_list_internal(652 &sender,653 &collection,654 &address,655 false,656 )?;657658 Ok(())659 }660661 /// Toggle between normal and white list access for the methods with access for `Anyone`.662 ///663 /// # Permissions664 ///665 /// * Collection Owner.666 ///667 /// # Arguments668 ///669 /// * collection_id.670 ///671 /// * mode: [AccessMode]672 #[weight = <SelfWeightOf<T>>::set_public_access_mode()]673 #[transactional]674 pub fn set_public_access_mode(origin, collection_id: CollectionId, mode: AccessMode) -> DispatchResult675 {676 let sender = ensure_signed(origin)?;677678 let mut target_collection = Self::get_collection(collection_id)?;679 Self::check_owner_permissions(&target_collection, &sender)?;680 target_collection.access = mode;681 target_collection.save()682 }683684 /// Allows Anyone to create tokens if:685 /// * White List is enabled, and686 /// * Address is added to white list, and687 /// * This method was called with True parameter688 ///689 /// # Permissions690 /// * Collection Owner691 ///692 /// # Arguments693 ///694 /// * collection_id.695 ///696 /// * mint_permission: Boolean parameter. If True, allows minting to Anyone with conditions above.697 #[weight = <SelfWeightOf<T>>::set_mint_permission()]698 #[transactional]699 pub fn set_mint_permission(origin, collection_id: CollectionId, mint_permission: bool) -> DispatchResult700 {701 let sender = ensure_signed(origin)?;702703 let mut target_collection = Self::get_collection(collection_id)?;704 Self::check_owner_permissions(&target_collection, &sender)?;705 target_collection.mint_mode = mint_permission;706 target_collection.save()707 }708709 /// Change the owner of the collection.710 ///711 /// # Permissions712 ///713 /// * Collection Owner.714 ///715 /// # Arguments716 ///717 /// * collection_id.718 ///719 /// * new_owner.720 #[weight = <SelfWeightOf<T>>::change_collection_owner()]721 #[transactional]722 pub fn change_collection_owner(origin, collection_id: CollectionId, new_owner: T::AccountId) -> DispatchResult {723724 let sender = ensure_signed(origin)?;725 let mut target_collection = Self::get_collection(collection_id)?;726 Self::check_owner_permissions(&target_collection, &sender)?;727 target_collection.owner = new_owner;728 target_collection.save()729 }730731 /// Adds an admin of the Collection.732 /// NFT Collection can be controlled by multiple admin addresses (some which can also be servers, for example). Admins can issue and burn NFTs, as well as add and remove other admins, but cannot change NFT or Collection ownership.733 ///734 /// # Permissions735 ///736 /// * Collection Owner.737 /// * Collection Admin.738 ///739 /// # Arguments740 ///741 /// * collection_id: ID of the Collection to add admin for.742 ///743 /// * new_admin_id: Address of new admin to add.744 #[weight = <SelfWeightOf<T>>::add_collection_admin()]745 #[transactional]746 pub fn add_collection_admin(origin, collection_id: CollectionId, new_admin_id: T::CrossAccountId) -> DispatchResult {747 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);748 let collection = Self::get_collection(collection_id)?;749 Self::check_owner_or_admin_permissions(&collection, &sender)?;750 let mut admin_arr = <AdminList<T>>::get(collection_id);751752 match admin_arr.binary_search(&new_admin_id) {753 Ok(_) => {},754 Err(idx) => {755 ensure!(admin_arr.len() < COLLECTION_ADMINS_LIMIT as usize, Error::<T>::CollectionAdminsLimitExceeded);756 admin_arr.insert(idx, new_admin_id);757 <AdminList<T>>::insert(collection_id, admin_arr);758 }759 }760 Ok(())761 }762763 /// Remove admin address of the Collection. An admin address can remove itself. List of admins may become empty, in which case only Collection Owner will be able to add an Admin.764 ///765 /// # Permissions766 ///767 /// * Collection Owner.768 /// * Collection Admin.769 ///770 /// # Arguments771 ///772 /// * collection_id: ID of the Collection to remove admin for.773 ///774 /// * account_id: Address of admin to remove.775 #[weight = <SelfWeightOf<T>>::remove_collection_admin()]776 #[transactional]777 pub fn remove_collection_admin(origin, collection_id: CollectionId, account_id: T::CrossAccountId) -> DispatchResult {778 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);779 let collection = Self::get_collection(collection_id)?;780 Self::check_owner_or_admin_permissions(&collection, &sender)?;781 let mut admin_arr = <AdminList<T>>::get(collection_id);782783 if let Ok(idx) = admin_arr.binary_search(&account_id) {784 admin_arr.remove(idx);785 <AdminList<T>>::insert(collection_id, admin_arr);786 }787 Ok(())788 }789790 /// # Permissions791 ///792 /// * Collection Owner793 ///794 /// # Arguments795 ///796 /// * collection_id.797 ///798 /// * new_sponsor.799 #[weight = <SelfWeightOf<T>>::set_collection_sponsor()]800 #[transactional]801 pub fn set_collection_sponsor(origin, collection_id: CollectionId, new_sponsor: T::AccountId) -> DispatchResult {802 let sender = ensure_signed(origin)?;803 let mut target_collection = Self::get_collection(collection_id)?;804 Self::check_owner_permissions(&target_collection, &sender)?;805806 target_collection.sponsorship = SponsorshipState::Unconfirmed(new_sponsor);807 target_collection.save()808 }809810 /// # Permissions811 ///812 /// * Sponsor.813 ///814 /// # Arguments815 ///816 /// * collection_id.817 #[weight = <SelfWeightOf<T>>::confirm_sponsorship()]818 #[transactional]819 pub fn confirm_sponsorship(origin, collection_id: CollectionId) -> DispatchResult {820 let sender = ensure_signed(origin)?;821822 let mut target_collection = Self::get_collection(collection_id)?;823 ensure!(824 target_collection.sponsorship.pending_sponsor() == Some(&sender),825 Error::<T>::ConfirmUnsetSponsorFail826 );827828 target_collection.sponsorship = SponsorshipState::Confirmed(sender);829 target_collection.save()830 }831832 /// Switch back to pay-per-own-transaction model.833 ///834 /// # Permissions835 ///836 /// * Collection owner.837 ///838 /// # Arguments839 ///840 /// * collection_id.841 #[weight = <SelfWeightOf<T>>::remove_collection_sponsor()]842 #[transactional]843 pub fn remove_collection_sponsor(origin, collection_id: CollectionId) -> DispatchResult {844 let sender = ensure_signed(origin)?;845846 let mut target_collection = Self::get_collection(collection_id)?;847 Self::check_owner_permissions(&target_collection, &sender)?;848849 target_collection.sponsorship = SponsorshipState::Disabled;850 target_collection.save()851 }852853 /// This method creates a concrete instance of NFT Collection created with CreateCollection method.854 ///855 /// # Permissions856 ///857 /// * Collection Owner.858 /// * Collection Admin.859 /// * Anyone if860 /// * White List is enabled, and861 /// * Address is added to white list, and862 /// * MintPermission is enabled (see SetMintPermission method)863 ///864 /// # Arguments865 ///866 /// * collection_id: ID of the collection.867 ///868 /// * owner: Address, initial owner of the NFT.869 ///870 /// * data: Token data to store on chain.871 // #[weight =872 // (130_000_000 as Weight)873 // .saturating_add((2135 as Weight).saturating_mul((properties.len() as u64) as Weight))874 // .saturating_add(RocksDbWeight::get().reads(10 as Weight))875 // .saturating_add(RocksDbWeight::get().writes(8 as Weight))]876877 #[weight = <SelfWeightOf<T>>::create_item(data.data_size() as u32)]878 #[transactional]879 pub fn create_item(origin, collection_id: CollectionId, owner: T::CrossAccountId, data: CreateItemData) -> DispatchResult {880 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);881 let collection = Self::get_collection(collection_id)?;882883 Self::create_item_internal(&sender, &collection, &owner, data)?;884885 collection.submit_logs()886 }887888 /// This method creates multiple items in a collection created with CreateCollection method.889 ///890 /// # Permissions891 ///892 /// * Collection Owner.893 /// * Collection Admin.894 /// * Anyone if895 /// * White List is enabled, and896 /// * Address is added to white list, and897 /// * MintPermission is enabled (see SetMintPermission method)898 ///899 /// # Arguments900 ///901 /// * collection_id: ID of the collection.902 ///903 /// * itemsData: Array items properties. Each property is an array of bytes itself, see [create_item].904 ///905 /// * owner: Address, initial owner of the NFT.906 #[weight = <SelfWeightOf<T>>::create_multiple_items(items_data.len() as u32)]907 #[transactional]908 pub fn create_multiple_items(origin, collection_id: CollectionId, owner: T::CrossAccountId, items_data: Vec<CreateItemData>) -> DispatchResult {909910 ensure!(!items_data.is_empty(), Error::<T>::EmptyArgument);911 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);912 let collection = Self::get_collection(collection_id)?;913914 Self::create_multiple_items_internal(&sender, &collection, &owner, items_data)?;915916 collection.submit_logs()917 }918919 // TODO! transaction weight920921 /// Set transfers_enabled value for particular collection922 ///923 /// # Permissions924 ///925 /// * Collection Owner.926 ///927 /// # Arguments928 ///929 /// * collection_id: ID of the collection.930 ///931 /// * value: New flag value.932 #[weight = <SelfWeightOf<T>>::set_transfers_enabled_flag()]933 #[transactional]934 pub fn set_transfers_enabled_flag(origin, collection_id: CollectionId, value: bool) -> DispatchResult {935936 let sender = ensure_signed(origin)?;937 let mut target_collection = Self::get_collection(collection_id)?;938939 Self::check_owner_permissions(&target_collection, &sender)?;940941 target_collection.transfers_enabled = value;942 target_collection.save()943 }944945 // TODO! transaction weight946 /// Set meta_update_permission value for particular collection947 ///948 /// # Permissions949 ///950 /// * Collection Owner.951 ///952 /// # Arguments953 ///954 /// * collection_id: ID of the collection.955 ///956 /// * value: New flag value.957 #[weight = <T as Config>::WeightInfo::burn_item()]958 #[transactional]959 pub fn set_meta_update_permission_flag(origin, collection_id: CollectionId, value: MetaUpdatePermission) -> DispatchResult {960961 let sender = ensure_signed(origin)?;962 let mut target_collection = Self::get_collection(collection_id)?;963964 ensure!(965 target_collection.meta_update_permission != MetaUpdatePermission::None,966 Error::<T>::MetadataFlagFrozen967 );968 Self::check_owner_permissions(&target_collection, &sender)?;969970 target_collection.meta_update_permission = value;971972 target_collection.save()973 }974975 /// Destroys a concrete instance of NFT.976 ///977 /// # Permissions978 ///979 /// * Collection Owner.980 /// * Collection Admin.981 /// * Current NFT Owner.982 ///983 /// # Arguments984 ///985 /// * collection_id: ID of the collection.986 ///987 /// * item_id: ID of NFT to burn.988 #[weight = <SelfWeightOf<T>>::burn_item()]989 #[transactional]990 pub fn burn_item(origin, collection_id: CollectionId, item_id: TokenId, value: u128) -> DispatchResult {991992 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);993 let target_collection = Self::get_collection(collection_id)?;994995 Self::burn_item_internal(&sender, &target_collection, item_id, value)?;996997 target_collection.submit_logs()998 }9991000 /// Change ownership of the token.1001 ///1002 /// # Permissions1003 ///1004 /// * Collection Owner1005 /// * Collection Admin1006 /// * Current NFT owner1007 ///1008 /// # Arguments1009 ///1010 /// * recipient: Address of token recipient.1011 ///1012 /// * collection_id.1013 ///1014 /// * item_id: ID of the item1015 /// * Non-Fungible Mode: Required.1016 /// * Fungible Mode: Ignored.1017 /// * Re-Fungible Mode: Required.1018 ///1019 /// * value: Amount to transfer.1020 /// * Non-Fungible Mode: Ignored1021 /// * Fungible Mode: Must specify transferred amount1022 /// * Re-Fungible Mode: Must specify transferred portion (between 0 and 1)1023 #[weight = <SelfWeightOf<T>>::transfer()]1024 #[transactional]1025 pub fn transfer(origin, recipient: T::CrossAccountId, collection_id: CollectionId, item_id: TokenId, value: u128) -> DispatchResult {1026 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);1027 let collection = Self::get_collection(collection_id)?;10281029 Self::transfer_internal(&sender, &recipient, &collection, item_id, value)?;10301031 collection.submit_logs()1032 }10331034 /// Set, change, or remove approved address to transfer the ownership of the NFT.1035 ///1036 /// # Permissions1037 ///1038 /// * Collection Owner1039 /// * Collection Admin1040 /// * Current NFT owner1041 ///1042 /// # Arguments1043 ///1044 /// * approved: Address that is approved to transfer this NFT or zero (if needed to remove approval).1045 ///1046 /// * collection_id.1047 ///1048 /// * item_id: ID of the item.1049 #[weight = <SelfWeightOf<T>>::approve()]1050 #[transactional]1051 pub fn approve(origin, spender: T::CrossAccountId, collection_id: CollectionId, item_id: TokenId, amount: u128) -> DispatchResult {1052 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);1053 let collection = Self::get_collection(collection_id)?;10541055 Self::approve_internal(&sender, &spender, &collection, item_id, amount)?;10561057 collection.submit_logs()1058 }10591060 /// Change ownership of a NFT on behalf of the owner. See Approve method for additional information. After this method executes, the approval is removed so that the approved address will not be able to transfer this NFT again from this owner.1061 ///1062 /// # Permissions1063 /// * Collection Owner1064 /// * Collection Admin1065 /// * Current NFT owner1066 /// * Address approved by current NFT owner1067 ///1068 /// # Arguments1069 ///1070 /// * from: Address that owns token.1071 ///1072 /// * recipient: Address of token recipient.1073 ///1074 /// * collection_id.1075 ///1076 /// * item_id: ID of the item.1077 ///1078 /// * value: Amount to transfer.1079 #[weight = <SelfWeightOf<T>>::transfer_from()]1080 #[transactional]1081 pub fn transfer_from(origin, from: T::CrossAccountId, recipient: T::CrossAccountId, collection_id: CollectionId, item_id: TokenId, value: u128 ) -> DispatchResult {1082 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);1083 let collection = Self::get_collection(collection_id)?;10841085 Self::transfer_from_internal(&sender, &from, &recipient, &collection, item_id, value)?;10861087 collection.submit_logs()1088 }1089 // #[weight = 0]1090 // // let no_perm_mes = "You do not have permissions to modify this collection";1091 // // ensure!(<ApprovedList<T>>::contains_key((collection_id, item_id)), no_perm_mes);1092 // // let list_itm = <ApprovedList<T>>::get((collection_id, item_id));1093 // // ensure!(list_itm.contains(&new_owner.clone()), no_perm_mes);10941095 // // // on_nft_received call10961097 // // Self::transfer(origin, collection_id, item_id, new_owner)?;10981099 // Ok(())1100 // }11011102 /// Set off-chain data schema.1103 ///1104 /// # Permissions1105 ///1106 /// * Collection Owner1107 /// * Collection Admin1108 ///1109 /// # Arguments1110 ///1111 /// * collection_id.1112 ///1113 /// * schema: String representing the offchain data schema.1114 #[weight = <SelfWeightOf<T>>::set_variable_meta_data(data.len() as u32)]1115 #[transactional]1116 pub fn set_variable_meta_data (1117 origin,1118 collection_id: CollectionId,1119 item_id: TokenId,1120 data: Vec<u8>1121 ) -> DispatchResult {1122 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);11231124 let collection = Self::get_collection(collection_id)?;1125 Self::meta_update_check(&sender, &collection, item_id)?;11261127 Self::set_variable_meta_data_internal(&sender, &collection, item_id, data)?;11281129 Ok(())1130 }11311132 /// Set schema standard1133 /// ImageURL1134 /// Unique1135 ///1136 /// # Permissions1137 ///1138 /// * Collection Owner1139 /// * Collection Admin1140 ///1141 /// # Arguments1142 ///1143 /// * collection_id.1144 ///1145 /// * schema: SchemaVersion: enum1146 #[weight = <SelfWeightOf<T>>::set_schema_version()]1147 #[transactional]1148 pub fn set_schema_version(1149 origin,1150 collection_id: CollectionId,1151 version: SchemaVersion1152 ) -> DispatchResult {1153 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);1154 let mut target_collection = Self::get_collection(collection_id)?;1155 Self::check_owner_or_admin_permissions(&target_collection, &sender)?;1156 target_collection.schema_version = version;1157 target_collection.save()1158 }11591160 /// Set off-chain data schema.1161 ///1162 /// # Permissions1163 ///1164 /// * Collection Owner1165 /// * Collection Admin1166 ///1167 /// # Arguments1168 ///1169 /// * collection_id.1170 ///1171 /// * schema: String representing the offchain data schema.1172 #[weight = <SelfWeightOf<T>>::set_offchain_schema(schema.len() as u32)]1173 #[transactional]1174 pub fn set_offchain_schema(1175 origin,1176 collection_id: CollectionId,1177 schema: Vec<u8>1178 ) -> DispatchResult {1179 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);1180 let mut target_collection = Self::get_collection(collection_id)?;1181 Self::check_owner_or_admin_permissions(&target_collection, &sender)?;11821183 // check schema limit1184 ensure!(schema.len() as u32 <= OFFCHAIN_SCHEMA_LIMIT, "");11851186 target_collection.offchain_schema = schema;1187 target_collection.save()1188 }11891190 /// Set const on-chain data schema.1191 ///1192 /// # Permissions1193 ///1194 /// * Collection Owner1195 /// * Collection Admin1196 ///1197 /// # Arguments1198 ///1199 /// * collection_id.1200 ///1201 /// * schema: String representing the const on-chain data schema.1202 #[weight = <SelfWeightOf<T>>::set_const_on_chain_schema(schema.len() as u32)]1203 #[transactional]1204 pub fn set_const_on_chain_schema (1205 origin,1206 collection_id: CollectionId,1207 schema: Vec<u8>1208 ) -> DispatchResult {1209 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);1210 let mut target_collection = Self::get_collection(collection_id)?;1211 Self::check_owner_or_admin_permissions(&target_collection, &sender)?;12121213 // check schema limit1214 ensure!(schema.len() as u32 <= CONST_ON_CHAIN_SCHEMA_LIMIT, "");12151216 target_collection.const_on_chain_schema = schema;1217 target_collection.save()1218 }12191220 /// Set variable on-chain data schema.1221 ///1222 /// # Permissions1223 ///1224 /// * Collection Owner1225 /// * Collection Admin1226 ///1227 /// # Arguments1228 ///1229 /// * collection_id.1230 ///1231 /// * schema: String representing the variable on-chain data schema.1232 #[weight = <SelfWeightOf<T>>::set_const_on_chain_schema(schema.len() as u32)]1233 #[transactional]1234 pub fn set_variable_on_chain_schema (1235 origin,1236 collection_id: CollectionId,1237 schema: Vec<u8>1238 ) -> DispatchResult {1239 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);1240 let mut target_collection = Self::get_collection(collection_id)?;1241 Self::check_owner_or_admin_permissions(&target_collection, &sender)?;12421243 // check schema limit1244 ensure!(schema.len() as u32 <= VARIABLE_ON_CHAIN_SCHEMA_LIMIT, "");12451246 target_collection.variable_on_chain_schema = schema;1247 target_collection.save()1248 }12491250 #[weight = <SelfWeightOf<T>>::set_collection_limits()]1251 #[transactional]1252 pub fn set_collection_limits(1253 origin,1254 collection_id: u32,1255 new_limits: CollectionLimits<T::BlockNumber>,1256 ) -> DispatchResult {1257 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);1258 let mut target_collection = Self::get_collection(collection_id)?;1259 Self::check_owner_permissions(&target_collection, sender.as_sub())?;1260 let old_limits = &target_collection.limits;12611262 // collection bounds1263 ensure!(new_limits.sponsor_transfer_timeout <= MAX_SPONSOR_TIMEOUT &&1264 new_limits.account_token_ownership_limit <= MAX_TOKEN_OWNERSHIP &&1265 new_limits.sponsored_data_size <= CUSTOM_DATA_LIMIT,1266 Error::<T>::CollectionLimitBoundsExceeded);12671268 // token_limit check prev1269 ensure!(old_limits.token_limit >= new_limits.token_limit, Error::<T>::CollectionTokenLimitExceeded);1270 ensure!(new_limits.token_limit > 0, Error::<T>::CollectionTokenLimitExceeded);12711272 ensure!(1273 (old_limits.owner_can_transfer || !new_limits.owner_can_transfer) &&1274 (old_limits.owner_can_destroy || !new_limits.owner_can_destroy),1275 Error::<T>::OwnerPermissionsCantBeReverted,1276 );12771278 target_collection.limits = new_limits;12791280 target_collection.save()1281 }1282 }1283}12841285impl<T: Config> Module<T> {1286 pub fn create_item_internal(1287 sender: &T::CrossAccountId,1288 collection: &CollectionHandle<T>,1289 owner: &T::CrossAccountId,1290 data: CreateItemData,1291 ) -> DispatchResult {1292 ensure!(1293 owner != &T::CrossAccountId::from_eth(H160([0; 20])),1294 Error::<T>::AddressIsZero1295 );12961297 Self::can_create_items_in_collection(collection, sender, owner, 1)?;1298 Self::validate_create_item_args(collection, &data)?;1299 Self::create_item_no_validation(collection, owner, data)?;13001301 Ok(())1302 }13031304 pub fn transfer_internal(1305 sender: &T::CrossAccountId,1306 recipient: &T::CrossAccountId,1307 target_collection: &CollectionHandle<T>,1308 item_id: TokenId,1309 value: u128,1310 ) -> DispatchResult {1311 ensure!(1312 recipient != &T::CrossAccountId::from_eth(H160([0; 20])),1313 Error::<T>::AddressIsZero1314 );13151316 // Limits check1317 Self::is_correct_transfer(target_collection, recipient)?;13181319 // Transfer permissions check1320 ensure!(1321 Self::is_item_owner(sender, target_collection, item_id)?1322 || Self::is_owner_or_admin_permissions(target_collection, sender)?,1323 Error::<T>::NoPermission1324 );13251326 if target_collection.access == AccessMode::WhiteList {1327 Self::check_white_list(target_collection, sender)?;1328 Self::check_white_list(target_collection, recipient)?;1329 }13301331 match target_collection.mode {1332 CollectionMode::NFT => Self::transfer_nft(1333 target_collection,1334 item_id,1335 sender.clone(),1336 recipient.clone(),1337 )?,1338 CollectionMode::Fungible(_) => {1339 Self::transfer_fungible(target_collection, value, sender, recipient)?1340 }1341 CollectionMode::ReFungible => Self::transfer_refungible(1342 target_collection,1343 item_id,1344 value,1345 sender.clone(),1346 recipient.clone(),1347 )?,1348 };13491350 Self::deposit_event(RawEvent::Transfer(1351 target_collection.id,1352 item_id,1353 sender.clone(),1354 recipient.clone(),1355 value,1356 ));13571358 Ok(())1359 }13601361 pub fn approve_internal(1362 sender: &T::CrossAccountId,1363 spender: &T::CrossAccountId,1364 collection: &CollectionHandle<T>,1365 item_id: TokenId,1366 amount: u128,1367 ) -> DispatchResult {1368 Self::token_exists(collection, item_id)?;13691370 // Transfer permissions check1371 let bypasses_limits = collection.limits.owner_can_transfer1372 && Self::is_owner_or_admin_permissions(collection, sender)?;13731374 let allowance_limit = if bypasses_limits {1375 None1376 } else if let Some(amount) = Self::owned_amount(sender, collection, item_id)? {1377 Some(amount)1378 } else {1379 fail!(Error::<T>::NoPermission);1380 };13811382 if collection.access == AccessMode::WhiteList {1383 Self::check_white_list(collection, sender)?;1384 Self::check_white_list(collection, spender)?;1385 }13861387 collection.consume_sload()?;1388 let allowance: u128 = amount1389 .checked_add(<Allowances<T>>::get(1390 collection.id,1391 (item_id, sender.as_sub(), spender.as_sub()),1392 ))1393 .ok_or(Error::<T>::NumOverflow)?;1394 if let Some(limit) = allowance_limit {1395 ensure!(limit >= allowance, Error::<T>::TokenValueTooLow);1396 }1397 collection.consume_sstore()?;1398 <Allowances<T>>::insert(1399 collection.id,1400 (item_id, sender.as_sub(), spender.as_sub()),1401 allowance,1402 );14031404 if matches!(collection.mode, CollectionMode::NFT) {1405 // TODO: NFT: only one owner may exist for token in ERC7211406 collection.log(ERC721Events::Approval {1407 owner: *sender.as_eth(),1408 approved: *spender.as_eth(),1409 token_id: item_id.into(),1410 })?;1411 }14121413 if matches!(collection.mode, CollectionMode::Fungible(_)) {1414 // TODO: NFT: only one owner may exist for token in ERC201415 collection.log(ERC20Events::Approval {1416 owner: *sender.as_eth(),1417 spender: *spender.as_eth(),1418 value: allowance.into(),1419 })?;1420 }14211422 Self::deposit_event(RawEvent::Approved(1423 collection.id,1424 item_id,1425 sender.clone(),1426 spender.clone(),1427 allowance,1428 ));1429 Ok(())1430 }14311432 pub fn transfer_from_internal(1433 sender: &T::CrossAccountId,1434 from: &T::CrossAccountId,1435 recipient: &T::CrossAccountId,1436 collection: &CollectionHandle<T>,1437 item_id: TokenId,1438 amount: u128,1439 ) -> DispatchResult {1440 if sender == from {1441 // Transfer by `from`, because it is either equal to sender, or derived from him1442 return Self::transfer_internal(from, recipient, collection, item_id, amount);1443 }14441445 // Check approval1446 collection.consume_sload()?;1447 let approval: u128 =1448 <Allowances<T>>::get(collection.id, (item_id, from.as_sub(), sender.as_sub()));14491450 // Limits check1451 Self::is_correct_transfer(collection, recipient)?;14521453 // Transfer permissions check1454 ensure!(1455 approval >= amount1456 || (collection.limits.owner_can_transfer1457 && Self::is_owner_or_admin_permissions(collection, sender)?),1458 Error::<T>::NoPermission1459 );14601461 if collection.access == AccessMode::WhiteList {1462 Self::check_white_list(collection, sender)?;1463 Self::check_white_list(collection, recipient)?;1464 }14651466 // Reduce approval by transferred amount or remove if remaining approval drops to 01467 let allowance = approval.saturating_sub(amount);1468 collection.consume_sstore()?;1469 if allowance > 0 {1470 <Allowances<T>>::insert(1471 collection.id,1472 (item_id, from.as_sub(), sender.as_sub()),1473 allowance,1474 );1475 } else {1476 <Allowances<T>>::remove(collection.id, (item_id, from.as_sub(), sender.as_sub()));1477 }14781479 match collection.mode {1480 CollectionMode::NFT => {1481 Self::transfer_nft(collection, item_id, from.clone(), recipient.clone())?1482 }1483 CollectionMode::Fungible(_) => {1484 Self::transfer_fungible(collection, amount, from, recipient)?1485 }1486 CollectionMode::ReFungible => Self::transfer_refungible(1487 collection,1488 item_id,1489 amount,1490 from.clone(),1491 recipient.clone(),1492 )?,1493 };14941495 if matches!(collection.mode, CollectionMode::Fungible(_)) {1496 collection.log(ERC20Events::Approval {1497 owner: *from.as_eth(),1498 spender: *sender.as_eth(),1499 value: allowance.into(),1500 })?;1501 }15021503 Ok(())1504 }15051506 pub fn set_variable_meta_data_internal(1507 sender: &T::CrossAccountId,1508 collection: &CollectionHandle<T>,1509 item_id: TokenId,1510 data: Vec<u8>,1511 ) -> DispatchResult {1512 Self::token_exists(collection, item_id)?;15131514 ensure!(1515 CUSTOM_DATA_LIMIT >= data.len() as u32,1516 Error::<T>::TokenVariableDataLimitExceeded1517 );15181519 ensure!(1520 (Self::is_item_owner(sender, collection, item_id)?1521 && collection.meta_update_permission == MetaUpdatePermission::ItemOwner)1522 || (Self::is_owner_or_admin_permissions(collection, sender)?1523 && collection.meta_update_permission == MetaUpdatePermission::Admin),1524 Error::<T>::NoPermission1525 );15261527 match collection.mode {1528 CollectionMode::NFT => Self::set_nft_variable_data(collection, item_id, data)?,1529 CollectionMode::ReFungible => {1530 Self::set_re_fungible_variable_data(collection, item_id, data)?1531 }1532 CollectionMode::Fungible(_) => fail!(Error::<T>::CantStoreMetadataInFungibleTokens),1533 };15341535 Ok(())1536 }15371538 pub fn meta_update_check(1539 sender: &T::CrossAccountId,1540 collection: &CollectionHandle<T>,1541 item_id: TokenId,1542 ) -> DispatchResult {1543 match collection.meta_update_permission {1544 MetaUpdatePermission::ItemOwner => ensure!(1545 Self::is_item_owner(sender, collection, item_id)?,1546 Error::<T>::NoPermission1547 ),1548 MetaUpdatePermission::Admin => ensure!(1549 Self::is_owner_or_admin_permissions(collection, sender)?,1550 Error::<T>::NoPermission1551 ),1552 MetaUpdatePermission::None => fail!(Error::<T>::MetadataUpdateDenied),1553 }15541555 Ok(())1556 }15571558 pub fn get_variable_metadata(1559 collection: &CollectionHandle<T>,1560 item_id: TokenId,1561 ) -> Result<Vec<u8>, DispatchError> {1562 Ok(match collection.mode {1563 CollectionMode::NFT => {1564 <NftItemList<T>>::get(collection.id, item_id)1565 .ok_or(Error::<T>::TokenNotFound)?1566 .variable_data1567 }1568 CollectionMode::ReFungible => {1569 <ReFungibleItemList<T>>::get(collection.id, item_id)1570 .ok_or(Error::<T>::TokenNotFound)?1571 .variable_data1572 }1573 _ => fail!(Error::<T>::UnexpectedCollectionType),1574 })1575 }15761577 pub fn create_multiple_items_internal(1578 sender: &T::CrossAccountId,1579 collection: &CollectionHandle<T>,1580 owner: &T::CrossAccountId,1581 items_data: Vec<CreateItemData>,1582 ) -> DispatchResult {1583 Self::can_create_items_in_collection(collection, sender, owner, items_data.len() as u32)?;15841585 for data in &items_data {1586 Self::validate_create_item_args(collection, data)?;1587 }1588 for data in &items_data {1589 Self::create_item_no_validation(collection, owner, data.clone())?;1590 }15911592 Ok(())1593 }15941595 pub fn burn_item_internal(1596 sender: &T::CrossAccountId,1597 collection: &CollectionHandle<T>,1598 item_id: TokenId,1599 value: u128,1600 ) -> DispatchResult {1601 ensure!(1602 Self::is_item_owner(sender, collection, item_id)?1603 || (collection.limits.owner_can_transfer1604 && Self::is_owner_or_admin_permissions(collection, sender)?),1605 Error::<T>::NoPermission1606 );16071608 if collection.access == AccessMode::WhiteList {1609 Self::check_white_list(collection, sender)?;1610 }16111612 match collection.mode {1613 CollectionMode::NFT => Self::burn_nft_item(collection, item_id)?,1614 CollectionMode::Fungible(_) => Self::burn_fungible_item(sender, collection, value)?,1615 CollectionMode::ReFungible => Self::burn_refungible_item(collection, item_id, sender)?,1616 };16171618 Ok(())1619 }16201621 pub fn toggle_white_list_internal(1622 sender: &T::CrossAccountId,1623 collection: &CollectionHandle<T>,1624 address: &T::CrossAccountId,1625 whitelisted: bool,1626 ) -> DispatchResult {1627 Self::check_owner_or_admin_permissions(collection, sender)?;16281629 if whitelisted {1630 <WhiteList<T>>::insert(collection.id, address.as_sub(), true);1631 } else {1632 <WhiteList<T>>::remove(collection.id, address.as_sub());1633 }16341635 Ok(())1636 }16371638 fn is_correct_transfer(1639 collection: &CollectionHandle<T>,1640 recipient: &T::CrossAccountId,1641 ) -> DispatchResult {1642 let collection_id = collection.id;16431644 // check token limit and account token limit1645 collection.consume_sload()?;1646 let account_items: u32 =1647 <AddressTokens<T>>::get(collection_id, recipient.as_sub()).len() as u32;16481649 // zero limit means collection limit is disabled1650 // otherwise get lower value1651 let limit = if collection.limits.account_token_ownership_limit == 01652 || collection.limits.account_token_ownership_limit > ACCOUNT_TOKEN_OWNERSHIP_LIMIT1653 {1654 ACCOUNT_TOKEN_OWNERSHIP_LIMIT1655 } else {1656 collection.limits.account_token_ownership_limit1657 };16581659 ensure!(limit > account_items, Error::<T>::AccountTokenLimitExceeded);16601661 // preliminary transfer check1662 ensure!(collection.transfers_enabled, Error::<T>::TransferNotAllowed);16631664 Ok(())1665 }16661667 fn can_create_items_in_collection(1668 collection: &CollectionHandle<T>,1669 sender: &T::CrossAccountId,1670 owner: &T::CrossAccountId,1671 amount: u32,1672 ) -> DispatchResult {1673 let collection_id = collection.id;16741675 // check token limit and account token limit1676 let total_items: u32 = ItemListIndex::get(collection_id)1677 .checked_add(amount)1678 .ok_or(Error::<T>::CollectionTokenLimitExceeded)?;1679 let account_items: u32 = (<AddressTokens<T>>::get(collection_id, owner.as_sub()).len()1680 as u32)1681 .checked_add(amount)1682 .ok_or(Error::<T>::AccountTokenLimitExceeded)?;16831684 // zero limit means collection limit is disabled1685 // otherwise get lower value1686 let account_token_limit = if collection.limits.account_token_ownership_limit == 01687 || collection.limits.account_token_ownership_limit > ACCOUNT_TOKEN_OWNERSHIP_LIMIT1688 {1689 ACCOUNT_TOKEN_OWNERSHIP_LIMIT1690 } else {1691 collection.limits.account_token_ownership_limit1692 };16931694 ensure!(1695 collection.limits.token_limit >= total_items,1696 Error::<T>::CollectionTokenLimitExceeded1697 );1698 ensure!(1699 account_token_limit >= account_items,1700 Error::<T>::AccountTokenLimitExceeded1701 );17021703 if !Self::is_owner_or_admin_permissions(collection, sender)? {1704 ensure!(collection.mint_mode, Error::<T>::PublicMintingNotAllowed);1705 Self::check_white_list(collection, owner)?;1706 Self::check_white_list(collection, sender)?;1707 }17081709 Ok(())1710 }17111712 fn validate_create_item_args(1713 target_collection: &CollectionHandle<T>,1714 data: &CreateItemData,1715 ) -> DispatchResult {1716 match target_collection.mode {1717 CollectionMode::NFT => {1718 if !matches!(data, CreateItemData::NFT(_)) {1719 fail!(Error::<T>::NotNftDataUsedToMintNftCollectionToken);1720 }1721 }1722 CollectionMode::Fungible(_) => {1723 if !matches!(data, CreateItemData::Fungible(_)) {1724 fail!(Error::<T>::NotFungibleDataUsedToMintFungibleCollectionToken);1725 }1726 }1727 CollectionMode::ReFungible => {1728 if let CreateItemData::ReFungible(data) = data {1729 // Check refungibility limits1730 ensure!(1731 data.pieces <= MAX_REFUNGIBLE_PIECES,1732 Error::<T>::WrongRefungiblePieces1733 );1734 ensure!(data.pieces > 0, Error::<T>::WrongRefungiblePieces);1735 } else {1736 fail!(Error::<T>::NotReFungibleDataUsedToMintReFungibleCollectionToken);1737 }1738 }1739 };17401741 Ok(())1742 }17431744 fn create_item_no_validation(1745 collection: &CollectionHandle<T>,1746 owner: &T::CrossAccountId,1747 data: CreateItemData,1748 ) -> DispatchResult {1749 match data {1750 CreateItemData::NFT(data) => {1751 let item = NftItemType {1752 owner: owner.clone(),1753 const_data: data.const_data.into_inner(),1754 variable_data: data.variable_data.into_inner(),1755 };17561757 Self::add_nft_item(collection, item)?;1758 }1759 CreateItemData::Fungible(data) => {1760 Self::add_fungible_item(collection, owner, data.value)?;1761 }1762 CreateItemData::ReFungible(data) => {1763 let owner_list = vec![Ownership {1764 owner: owner.clone(),1765 fraction: data.pieces,1766 }];17671768 let item = ReFungibleItemType {1769 owner: owner_list,1770 const_data: data.const_data.into_inner(),1771 variable_data: data.variable_data.into_inner(),1772 };17731774 Self::add_refungible_item(collection, item)?;1775 }1776 };17771778 Ok(())1779 }17801781 fn add_fungible_item(1782 collection: &CollectionHandle<T>,1783 owner: &T::CrossAccountId,1784 value: u128,1785 ) -> DispatchResult {1786 let collection_id = collection.id;17871788 // Does new owner already have an account?1789 collection.consume_sload()?;1790 let balance: u128 = <FungibleItemList<T>>::get(collection_id, owner.as_sub()).value;17911792 // Mint1793 let item = FungibleItemType {1794 value: balance.checked_add(value).ok_or(Error::<T>::NumOverflow)?,1795 };1796 collection.consume_sstore()?;1797 <FungibleItemList<T>>::insert(collection_id, owner.as_sub(), item);17981799 // Update balance1800 collection.consume_sload()?;1801 let new_balance = <Balance<T>>::get(collection_id, owner.as_sub())1802 .checked_add(value)1803 .ok_or(Error::<T>::NumOverflow)?;1804 collection.consume_sstore()?;1805 <Balance<T>>::insert(collection_id, owner.as_sub(), new_balance);18061807 collection.log(ERC20Events::Transfer {1808 from: H160::default(),1809 to: *owner.as_eth(),1810 value: value.into(),1811 })?;1812 Self::deposit_event(RawEvent::ItemCreated(collection_id, 0, owner.clone()));1813 Ok(())1814 }18151816 fn add_refungible_item(1817 collection: &CollectionHandle<T>,1818 item: ReFungibleItemType<T::CrossAccountId>,1819 ) -> DispatchResult {1820 let collection_id = collection.id;18211822 let current_index = <ItemListIndex>::get(collection_id)1823 .checked_add(1)1824 .ok_or(Error::<T>::NumOverflow)?;1825 let itemcopy = item.clone();18261827 ensure!(item.owner.len() == 1, Error::<T>::BadCreateRefungibleCall,);1828 let item_owner = item.owner.first().expect("only one owner is defined");18291830 let value = item_owner.fraction;1831 let owner = item_owner.owner.clone();18321833 Self::add_token_index(collection, current_index, &owner)?;18341835 <ItemListIndex>::insert(collection_id, current_index);1836 <ReFungibleItemList<T>>::insert(collection_id, current_index, itemcopy);18371838 // Update balance1839 let new_balance = <Balance<T>>::get(collection_id, owner.as_sub())1840 .checked_add(value)1841 .ok_or(Error::<T>::NumOverflow)?;1842 <Balance<T>>::insert(collection_id, owner.as_sub(), new_balance);18431844 Self::deposit_event(RawEvent::ItemCreated(collection_id, current_index, owner));1845 Ok(())1846 }18471848 fn add_nft_item(1849 collection: &CollectionHandle<T>,1850 item: NftItemType<T::CrossAccountId>,1851 ) -> DispatchResult {1852 let collection_id = collection.id;18531854 let current_index = <ItemListIndex>::get(collection_id)1855 .checked_add(1)1856 .ok_or(Error::<T>::NumOverflow)?;18571858 let item_owner = item.owner.clone();1859 Self::add_token_index(collection, current_index, &item.owner)?;18601861 <ItemListIndex>::insert(collection_id, current_index);1862 <NftItemList<T>>::insert(collection_id, current_index, item);18631864 // Update balance1865 let new_balance = <Balance<T>>::get(collection_id, item_owner.as_sub())1866 .checked_add(1)1867 .ok_or(Error::<T>::NumOverflow)?;1868 <Balance<T>>::insert(collection_id, item_owner.as_sub(), new_balance);18691870 collection.log(ERC721Events::Transfer {1871 from: H160::default(),1872 to: *item_owner.as_eth(),1873 token_id: current_index.into(),1874 })?;1875 Self::deposit_event(RawEvent::ItemCreated(1876 collection_id,1877 current_index,1878 item_owner,1879 ));1880 Ok(())1881 }18821883 fn burn_refungible_item(1884 collection: &CollectionHandle<T>,1885 item_id: TokenId,1886 owner: &T::CrossAccountId,1887 ) -> DispatchResult {1888 let collection_id = collection.id;18891890 let mut token = <ReFungibleItemList<T>>::get(collection_id, item_id)1891 .ok_or(Error::<T>::TokenNotFound)?;1892 let rft_balance = token1893 .owner1894 .iter()1895 .find(|&i| i.owner == *owner)1896 .ok_or(Error::<T>::TokenNotFound)?;1897 Self::remove_token_index(collection, item_id, owner)?;18981899 // update balance1900 let new_balance = <Balance<T>>::get(collection_id, rft_balance.owner.as_sub())1901 .checked_sub(rft_balance.fraction)1902 .ok_or(Error::<T>::NumOverflow)?;1903 <Balance<T>>::insert(collection_id, rft_balance.owner.as_sub(), new_balance);19041905 // Re-create owners list with sender removed1906 let index = token1907 .owner1908 .iter()1909 .position(|i| i.owner == *owner)1910 .expect("owned item is exists");1911 token.owner.remove(index);1912 let owner_count = token.owner.len();19131914 // Burn the token completely if this was the last (only) owner1915 if owner_count == 0 {1916 <ReFungibleItemList<T>>::remove(collection_id, item_id);1917 <VariableMetaDataBasket<T>>::remove(collection_id, item_id);1918 } else {1919 <ReFungibleItemList<T>>::insert(collection_id, item_id, token);1920 }19211922 Ok(())1923 }19241925 fn burn_nft_item(collection: &CollectionHandle<T>, item_id: TokenId) -> DispatchResult {1926 let collection_id = collection.id;19271928 let item =1929 <NftItemList<T>>::get(collection_id, item_id).ok_or(Error::<T>::TokenNotFound)?;1930 Self::remove_token_index(collection, item_id, &item.owner)?;19311932 // update balance1933 let new_balance = <Balance<T>>::get(collection_id, item.owner.as_sub())1934 .checked_sub(1)1935 .ok_or(Error::<T>::NumOverflow)?;1936 <Balance<T>>::insert(collection_id, item.owner.as_sub(), new_balance);1937 <NftItemList<T>>::remove(collection_id, item_id);1938 <VariableMetaDataBasket<T>>::remove(collection_id, item_id);19391940 collection.log(ERC721Events::Transfer {1941 from: *item.owner.as_eth(),1942 to: H160::default(),1943 token_id: item_id.into(),1944 })?;1945 Self::deposit_event(RawEvent::ItemDestroyed(collection.id, item_id));1946 Ok(())1947 }19481949 fn burn_fungible_item(1950 owner: &T::CrossAccountId,1951 collection: &CollectionHandle<T>,1952 value: u128,1953 ) -> DispatchResult {1954 let collection_id = collection.id;19551956 let mut balance = <FungibleItemList<T>>::get(collection_id, owner.as_sub());1957 ensure!(balance.value >= value, Error::<T>::TokenValueNotEnough);19581959 // update balance1960 let new_balance = <Balance<T>>::get(collection_id, owner.as_sub())1961 .checked_sub(value)1962 .ok_or(Error::<T>::NumOverflow)?;1963 <Balance<T>>::insert(collection_id, owner.as_sub(), new_balance);19641965 if balance.value - value > 0 {1966 balance.value -= value;1967 <FungibleItemList<T>>::insert(collection_id, owner.as_sub(), balance);1968 } else {1969 <FungibleItemList<T>>::remove(collection_id, owner.as_sub());1970 }19711972 collection.log(ERC20Events::Transfer {1973 from: *owner.as_eth(),1974 to: H160::default(),1975 value: value.into(),1976 })?;1977 Ok(())1978 }19791980 pub fn get_collection(1981 collection_id: CollectionId,1982 ) -> Result<CollectionHandle<T>, sp_runtime::DispatchError> {1983 Ok(<CollectionHandle<T>>::get(collection_id).ok_or(Error::<T>::CollectionNotFound)?)1984 }19851986 fn check_owner_permissions(1987 target_collection: &CollectionHandle<T>,1988 subject: &T::AccountId,1989 ) -> DispatchResult {1990 ensure!(1991 *subject == target_collection.owner,1992 Error::<T>::NoPermission1993 );19941995 Ok(())1996 }19971998 fn is_owner_or_admin_permissions(1999 collection: &CollectionHandle<T>,2000 subject: &T::CrossAccountId,2001 ) -> Result<bool, DispatchError> {2002 collection.consume_sload()?;2003 Ok(*subject.as_sub() == collection.owner2004 || <AdminList<T>>::get(collection.id).contains(subject))2005 }20062007 fn check_owner_or_admin_permissions(2008 collection: &CollectionHandle<T>,2009 subject: &T::CrossAccountId,2010 ) -> DispatchResult {2011 ensure!(2012 Self::is_owner_or_admin_permissions(collection, subject)?,2013 Error::<T>::NoPermission2014 );20152016 Ok(())2017 }20182019 fn owned_amount(2020 subject: &T::CrossAccountId,2021 collection: &CollectionHandle<T>,2022 item_id: TokenId,2023 ) -> Result<Option<u128>, DispatchError> {2024 collection.consume_sload()?;2025 Ok(Self::owned_amount_unchecked(subject, collection, item_id))2026 }20272028 fn owned_amount_unchecked(2029 subject: &T::CrossAccountId,2030 target_collection: &CollectionHandle<T>,2031 item_id: TokenId,2032 ) -> Option<u128> {2033 let collection_id = target_collection.id;20342035 match target_collection.mode {2036 CollectionMode::NFT => {2037 (<NftItemList<T>>::get(collection_id, item_id)?.owner == *subject).then(|| 1)2038 }2039 CollectionMode::Fungible(_) => {2040 Some(<FungibleItemList<T>>::get(collection_id, &subject.as_sub()).value)2041 }2042 CollectionMode::ReFungible => <ReFungibleItemList<T>>::get(collection_id, item_id)?2043 .owner2044 .iter()2045 .find(|i| i.owner == *subject)2046 .map(|i| i.fraction),2047 }2048 }20492050 fn is_item_owner(2051 subject: &T::CrossAccountId,2052 target_collection: &CollectionHandle<T>,2053 item_id: TokenId,2054 ) -> Result<bool, DispatchError> {2055 Ok(match target_collection.mode {2056 CollectionMode::Fungible(_) => true,2057 _ => Self::owned_amount(subject, target_collection, item_id)?.is_some(),2058 })2059 }20602061 fn check_white_list(2062 collection: &CollectionHandle<T>,2063 address: &T::CrossAccountId,2064 ) -> DispatchResult {2065 collection.consume_sload()?;2066 ensure!(2067 <WhiteList<T>>::contains_key(collection.id, address.as_sub()),2068 Error::<T>::AddresNotInWhiteList,2069 );2070 Ok(())2071 }20722073 /// Check if token exists. In case of Fungible, check if there is an entry for2074 /// the owner in fungible balances double map2075 fn token_exists(target_collection: &CollectionHandle<T>, item_id: TokenId) -> DispatchResult {2076 let collection_id = target_collection.id;2077 let exists = match target_collection.mode {2078 CollectionMode::NFT => <NftItemList<T>>::contains_key(collection_id, item_id),2079 CollectionMode::Fungible(_) => true,2080 CollectionMode::ReFungible => {2081 <ReFungibleItemList<T>>::contains_key(collection_id, item_id)2082 }2083 };20842085 ensure!(exists, Error::<T>::TokenNotFound);2086 Ok(())2087 }20882089 fn transfer_fungible(2090 collection: &CollectionHandle<T>,2091 value: u128,2092 owner: &T::CrossAccountId,2093 recipient: &T::CrossAccountId,2094 ) -> DispatchResult {2095 let collection_id = collection.id;20962097 collection.consume_sload()?;2098 collection.consume_sload()?;2099 let mut recipient_balance = <FungibleItemList<T>>::get(collection_id, recipient.as_sub());2100 let mut balance = <FungibleItemList<T>>::get(collection_id, owner.as_sub());21012102 recipient_balance.value = recipient_balance2103 .value2104 .checked_add(value)2105 .ok_or(Error::<T>::NumOverflow)?;2106 balance.value = balance2107 .value2108 .checked_sub(value)2109 .ok_or(Error::<T>::TokenValueTooLow)?;21102111 // update balanceOf2112 collection.consume_sstore()?;2113 collection.consume_sstore()?;2114 if balance.value != 0 {2115 <Balance<T>>::insert(collection_id, owner.as_sub(), balance.value);2116 } else {2117 <Balance<T>>::remove(collection_id, owner.as_sub());2118 }2119 <Balance<T>>::insert(collection_id, recipient.as_sub(), recipient_balance.value);21202121 // Reduce or remove sender2122 collection.consume_sstore()?;2123 collection.consume_sstore()?;2124 if balance.value != 0 {2125 <FungibleItemList<T>>::insert(collection_id, owner.as_sub(), balance);2126 } else {2127 <FungibleItemList<T>>::remove(collection_id, owner.as_sub());2128 }2129 <FungibleItemList<T>>::insert(collection_id, recipient.as_sub(), recipient_balance);21302131 collection.log(ERC20Events::Transfer {2132 from: *owner.as_eth(),2133 to: *recipient.as_eth(),2134 value: value.into(),2135 })?;2136 Self::deposit_event(RawEvent::Transfer(2137 collection.id,2138 1,2139 owner.clone(),2140 recipient.clone(),2141 value,2142 ));21432144 Ok(())2145 }21462147 fn transfer_refungible(2148 collection: &CollectionHandle<T>,2149 item_id: TokenId,2150 value: u128,2151 owner: T::CrossAccountId,2152 new_owner: T::CrossAccountId,2153 ) -> DispatchResult {2154 let collection_id = collection.id;2155 collection.consume_sload()?;2156 let full_item = <ReFungibleItemList<T>>::get(collection_id, item_id)2157 .ok_or(Error::<T>::TokenNotFound)?;21582159 let item = full_item2160 .owner2161 .iter()2162 .find(|i| i.owner == owner)2163 .ok_or(Error::<T>::TokenNotFound)?;2164 let amount = item.fraction;21652166 ensure!(amount >= value, Error::<T>::TokenValueTooLow);21672168 collection.consume_sload()?;2169 // update balance2170 let balance_old_owner = <Balance<T>>::get(collection_id, item.owner.as_sub())2171 .checked_sub(value)2172 .ok_or(Error::<T>::NumOverflow)?;2173 collection.consume_sstore()?;2174 <Balance<T>>::insert(collection_id, item.owner.as_sub(), balance_old_owner);21752176 collection.consume_sload()?;2177 let balance_new_owner = <Balance<T>>::get(collection_id, new_owner.as_sub())2178 .checked_add(value)2179 .ok_or(Error::<T>::NumOverflow)?;2180 collection.consume_sstore()?;2181 <Balance<T>>::insert(collection_id, new_owner.as_sub(), balance_new_owner);21822183 let old_owner = item.owner.clone();2184 let new_owner_has_account = full_item.owner.iter().any(|i| i.owner == new_owner);21852186 let mut new_full_item = full_item.clone();2187 // transfer2188 if amount == value && !new_owner_has_account {2189 // change owner2190 // new owner do not have account2191 new_full_item2192 .owner2193 .iter_mut()2194 .find(|i| i.owner == owner)2195 .expect("old owner does present in refungible")2196 .owner = new_owner.clone();2197 collection.consume_sstore()?;2198 <ReFungibleItemList<T>>::insert(collection_id, item_id, new_full_item);21992200 // update index collection2201 Self::move_token_index(collection, item_id, &old_owner, &new_owner)?;2202 } else {2203 new_full_item2204 .owner2205 .iter_mut()2206 .find(|i| i.owner == owner)2207 .expect("old owner does present in refungible")2208 .fraction -= value;22092210 // separate amount2211 if new_owner_has_account {2212 // new owner has account2213 new_full_item2214 .owner2215 .iter_mut()2216 .find(|i| i.owner == new_owner)2217 .expect("new owner has account")2218 .fraction += value;2219 } else {2220 // new owner do not have account2221 new_full_item.owner.push(Ownership {2222 owner: new_owner.clone(),2223 fraction: value,2224 });2225 Self::add_token_index(collection, item_id, &new_owner)?;2226 }22272228 collection.consume_sstore()?;2229 <ReFungibleItemList<T>>::insert(collection_id, item_id, new_full_item);2230 }22312232 Self::deposit_event(RawEvent::Transfer(2233 collection.id,2234 item_id,2235 owner,2236 new_owner,2237 amount,2238 ));22392240 Ok(())2241 }22422243 fn transfer_nft(2244 collection: &CollectionHandle<T>,2245 item_id: TokenId,2246 sender: T::CrossAccountId,2247 new_owner: T::CrossAccountId,2248 ) -> DispatchResult {2249 let collection_id = collection.id;2250 collection.consume_sload()?;2251 let mut item =2252 <NftItemList<T>>::get(collection_id, item_id).ok_or(Error::<T>::TokenNotFound)?;22532254 ensure!(sender == item.owner, Error::<T>::MustBeTokenOwner);22552256 collection.consume_sload()?;2257 // update balance2258 let balance_old_owner = <Balance<T>>::get(collection_id, item.owner.as_sub())2259 .checked_sub(1)2260 .ok_or(Error::<T>::NumOverflow)?;2261 collection.consume_sstore()?;2262 <Balance<T>>::insert(collection_id, item.owner.as_sub(), balance_old_owner);22632264 collection.consume_sload()?;2265 let balance_new_owner = <Balance<T>>::get(collection_id, new_owner.as_sub())2266 .checked_add(1)2267 .ok_or(Error::<T>::NumOverflow)?;2268 collection.consume_sstore()?;2269 <Balance<T>>::insert(collection_id, new_owner.as_sub(), balance_new_owner);22702271 // change owner2272 let old_owner = item.owner.clone();2273 item.owner = new_owner.clone();2274 collection.consume_sstore()?;2275 <NftItemList<T>>::insert(collection_id, item_id, item);22762277 // update index collection2278 Self::move_token_index(collection, item_id, &old_owner, &new_owner)?;22792280 collection.log(ERC721Events::Transfer {2281 from: *sender.as_eth(),2282 to: *new_owner.as_eth(),2283 token_id: item_id.into(),2284 })?;2285 Self::deposit_event(RawEvent::Transfer(2286 collection.id,2287 item_id,2288 sender,2289 new_owner,2290 1,2291 ));22922293 Ok(())2294 }22952296 fn set_re_fungible_variable_data(2297 collection: &CollectionHandle<T>,2298 item_id: TokenId,2299 data: Vec<u8>,2300 ) -> DispatchResult {2301 let collection_id = collection.id;2302 let mut item = <ReFungibleItemList<T>>::get(collection_id, item_id)2303 .ok_or(Error::<T>::TokenNotFound)?;23042305 item.variable_data = data;23062307 <ReFungibleItemList<T>>::insert(collection_id, item_id, item);23082309 Ok(())2310 }23112312 fn set_nft_variable_data(2313 collection: &CollectionHandle<T>,2314 item_id: TokenId,2315 data: Vec<u8>,2316 ) -> DispatchResult {2317 let collection_id = collection.id;2318 let mut item =2319 <NftItemList<T>>::get(collection_id, item_id).ok_or(Error::<T>::TokenNotFound)?;23202321 item.variable_data = data;23222323 <NftItemList<T>>::insert(collection_id, item_id, item);23242325 Ok(())2326 }23272328 #[allow(dead_code)]2329 fn init_collection(item: &Collection<T>) {2330 // check params2331 assert!(2332 item.decimal_points <= MAX_DECIMAL_POINTS,2333 "decimal_points parameter must be lower than MAX_DECIMAL_POINTS"2334 );2335 assert!(2336 item.name.len() <= 64,2337 "Collection name can not be longer than 63 char"2338 );2339 assert!(2340 item.name.len() <= 256,2341 "Collection description can not be longer than 255 char"2342 );2343 assert!(2344 item.token_prefix.len() <= 16,2345 "Token prefix can not be longer than 15 char"2346 );23472348 // Generate next collection ID2349 let next_id = CreatedCollectionCount::get().checked_add(1).unwrap();23502351 CreatedCollectionCount::put(next_id);2352 }23532354 #[allow(dead_code)]2355 fn init_nft_token(collection_id: CollectionId, item: &NftItemType<T::CrossAccountId>) {2356 let current_index = <ItemListIndex>::get(collection_id).checked_add(1).unwrap();23572358 Self::add_token_index(2359 &CollectionHandle::get(collection_id).unwrap(),2360 current_index,2361 &item.owner,2362 )2363 .unwrap();23642365 <ItemListIndex>::insert(collection_id, current_index);23662367 // Update balance2368 let new_balance = <Balance<T>>::get(collection_id, item.owner.as_sub())2369 .checked_add(1)2370 .unwrap();2371 <Balance<T>>::insert(collection_id, item.owner.as_sub(), new_balance);2372 }23732374 #[allow(dead_code)]2375 fn init_fungible_token(2376 collection_id: CollectionId,2377 owner: &T::CrossAccountId,2378 item: &FungibleItemType,2379 ) {2380 let current_index = <ItemListIndex>::get(collection_id).checked_add(1).unwrap();23812382 Self::add_token_index(2383 &CollectionHandle::get(collection_id).unwrap(),2384 current_index,2385 owner,2386 )2387 .unwrap();23882389 <ItemListIndex>::insert(collection_id, current_index);23902391 // Update balance2392 let new_balance = <Balance<T>>::get(collection_id, owner.as_sub())2393 .checked_add(item.value)2394 .unwrap();2395 <Balance<T>>::insert(collection_id, owner.as_sub(), new_balance);2396 }23972398 #[allow(dead_code)]2399 fn init_refungible_token(2400 collection_id: CollectionId,2401 item: &ReFungibleItemType<T::CrossAccountId>,2402 ) {2403 let current_index = <ItemListIndex>::get(collection_id).checked_add(1).unwrap();24042405 let value = item.owner.first().unwrap().fraction;2406 let owner = item.owner.first().unwrap().owner.clone();24072408 Self::add_token_index(2409 &CollectionHandle::get(collection_id).unwrap(),2410 current_index,2411 &owner,2412 )2413 .unwrap();24142415 <ItemListIndex>::insert(collection_id, current_index);24162417 // Update balance2418 let new_balance = <Balance<T>>::get(collection_id, &owner.as_sub())2419 .checked_add(value)2420 .unwrap();2421 <Balance<T>>::insert(collection_id, owner.as_sub(), new_balance);2422 }24232424 fn add_token_index(2425 collection: &CollectionHandle<T>,2426 item_index: TokenId,2427 owner: &T::CrossAccountId,2428 ) -> DispatchResult {2429 collection.consume_sload()?;2430 let list_exists = <AddressTokens<T>>::contains_key(collection.id, owner.as_sub());2431 if list_exists {2432 collection.consume_sload()?;2433 let mut list = <AddressTokens<T>>::get(collection.id, owner.as_sub());24342435 // bound Owned tokens by a single address in collection2436 let account_items: u32 = list.len() as u32;2437 ensure!(2438 account_items < ACCOUNT_TOKEN_OWNERSHIP_LIMIT,2439 Error::<T>::AddressOwnershipLimitExceeded2440 );24412442 let item_contains = list.contains(&item_index.clone());24432444 if !item_contains {2445 list.push(item_index);2446 }24472448 collection.consume_sstore()?;2449 <AddressTokens<T>>::insert(collection.id, owner.as_sub(), list);2450 } else {2451 let itm = vec![item_index];2452 collection.consume_sstore()?;2453 <AddressTokens<T>>::insert(collection.id, owner.as_sub(), itm);2454 }24552456 Ok(())2457 }24582459 fn remove_token_index(2460 collection: &CollectionHandle<T>,2461 item_index: TokenId,2462 owner: &T::CrossAccountId,2463 ) -> DispatchResult {2464 collection.consume_sload()?;2465 let list_exists = <AddressTokens<T>>::contains_key(collection.id, owner.as_sub());2466 if list_exists {2467 collection.consume_sload()?;2468 let mut list = <AddressTokens<T>>::get(collection.id, owner.as_sub());2469 let item_contains = list.contains(&item_index.clone());24702471 if item_contains {2472 list.retain(|&item| item != item_index);2473 collection.consume_sstore()?;2474 <AddressTokens<T>>::insert(collection.id, owner.as_sub(), list);2475 }2476 }24772478 Ok(())2479 }24802481 fn move_token_index(2482 collection: &CollectionHandle<T>,2483 item_index: TokenId,2484 old_owner: &T::CrossAccountId,2485 new_owner: &T::CrossAccountId,2486 ) -> DispatchResult {2487 Self::remove_token_index(collection, item_index, old_owner)?;2488 Self::add_token_index(collection, item_index, new_owner)?;24892490 Ok(())2491 }2492}24932494sp_api::decl_runtime_apis! {2495 pub trait NftApi {2496 /// Used for ethereum integration2497 fn eth_contract_code(account: H160) -> Option<Vec<u8>>;2498 }2499}1//2// This file is subject to the terms and conditions defined in3// file 'LICENSE', which is part of this source code package.4//56#![recursion_limit = "1024"]7#![cfg_attr(not(feature = "std"), no_std)]8#![allow(9 clippy::too_many_arguments,10 clippy::unnecessary_mut_passed,11 clippy::unused_unit12)]1314extern crate alloc;1516pub use serde::{Serialize, Deserialize};1718pub use frame_support::{19 construct_runtime, decl_event, decl_module, decl_storage, decl_error,20 dispatch::DispatchResult,21 ensure, fail, parameter_types,22 traits::{23 Currency, ExistenceRequirement, Get, Imbalance, KeyOwnerProofSystem, OnUnbalanced,24 Randomness, IsSubType, WithdrawReasons,25 },26 weights::{27 constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, WEIGHT_PER_SECOND},28 DispatchInfo, GetDispatchInfo, IdentityFee, Pays, PostDispatchInfo, Weight,29 WeightToFeePolynomial, DispatchClass,30 },31 StorageValue, transactional,32};33use scale_info::TypeInfo;34use frame_system::{self as system, ensure_signed};35use sp_core::H160;36use sp_std::vec;37use sp_runtime::{DispatchError, sp_std::prelude::Vec};38use core::ops::{Deref, DerefMut};39use nft_data_structs::{40 MAX_DECIMAL_POINTS, MAX_SPONSOR_TIMEOUT, MAX_TOKEN_OWNERSHIP, MAX_REFUNGIBLE_PIECES,41 CUSTOM_DATA_LIMIT, COLLECTION_NUMBER_LIMIT, ACCOUNT_TOKEN_OWNERSHIP_LIMIT,42 VARIABLE_ON_CHAIN_SCHEMA_LIMIT, CONST_ON_CHAIN_SCHEMA_LIMIT, COLLECTION_ADMINS_LIMIT,43 OFFCHAIN_SCHEMA_LIMIT, MAX_TOKEN_PREFIX_LENGTH, MAX_COLLECTION_NAME_LENGTH,44 MAX_COLLECTION_DESCRIPTION_LENGTH, AccessMode, Collection, CreateItemData, CollectionLimits,45 CollectionId, CollectionMode, TokenId, SchemaVersion, SponsorshipState, Ownership, NftItemType,46 MetaUpdatePermission, FungibleItemType, ReFungibleItemType,47};4849#[cfg(test)]50mod mock;5152#[cfg(test)]53mod tests;5455mod eth;56mod sponsorship;57pub use sponsorship::NftSponsorshipHandler;58pub use eth::sponsoring::NftEthSponsorshipHandler;5960pub use eth::NftErcSupport;61pub use eth::account::*;62use eth::erc::{ERC20Events, ERC721Events};6364#[cfg(feature = "runtime-benchmarks")]65mod benchmarking;66pub mod weights;67use weights::WeightInfo;6869decl_error! {70 /// Error for non-fungible-token module.71 pub enum Error for Module<T: Config> {72 /// Total collections bound exceeded.73 TotalCollectionsLimitExceeded,74 /// Decimal_points parameter must be lower than MAX_DECIMAL_POINTS constant, currently it is 30.75 CollectionDecimalPointLimitExceeded,76 /// Collection name can not be longer than 63 char.77 CollectionNameLimitExceeded,78 /// Collection description can not be longer than 255 char.79 CollectionDescriptionLimitExceeded,80 /// Token prefix can not be longer than 15 char.81 CollectionTokenPrefixLimitExceeded,82 /// This collection does not exist.83 CollectionNotFound,84 /// Item not exists.85 TokenNotFound,86 /// Admin not found87 AdminNotFound,88 /// Arithmetic calculation overflow.89 NumOverflow,90 /// Account already has admin role.91 AlreadyAdmin,92 /// You do not own this collection.93 NoPermission,94 /// This address is not set as sponsor, use setCollectionSponsor first.95 ConfirmUnsetSponsorFail,96 /// Collection is not in mint mode.97 PublicMintingNotAllowed,98 /// Sender parameter and item owner must be equal.99 MustBeTokenOwner,100 /// Item balance not enough.101 TokenValueTooLow,102 /// Size of item is too large.103 NftSizeLimitExceeded,104 /// No approve found105 ApproveNotFound,106 /// Requested value more than approved.107 TokenValueNotEnough,108 /// Only approved addresses can call this method.109 ApproveRequired,110 /// Address is not in white list.111 AddresNotInWhiteList,112 /// Number of collection admins bound exceeded.113 CollectionAdminsLimitExceeded,114 /// Owned tokens by a single address bound exceeded.115 AddressOwnershipLimitExceeded,116 /// Length of items properties must be greater than 0.117 EmptyArgument,118 /// const_data exceeded data limit.119 TokenConstDataLimitExceeded,120 /// variable_data exceeded data limit.121 TokenVariableDataLimitExceeded,122 /// Not NFT item data used to mint in NFT collection.123 NotNftDataUsedToMintNftCollectionToken,124 /// Not Fungible item data used to mint in Fungible collection.125 NotFungibleDataUsedToMintFungibleCollectionToken,126 /// Not Re Fungible item data used to mint in Re Fungible collection.127 NotReFungibleDataUsedToMintReFungibleCollectionToken,128 /// Unexpected collection type.129 UnexpectedCollectionType,130 /// Can't store metadata in fungible tokens.131 CantStoreMetadataInFungibleTokens,132 /// Collection token limit exceeded133 CollectionTokenLimitExceeded,134 /// Account token limit exceeded per collection135 AccountTokenLimitExceeded,136 /// Collection limit bounds per collection exceeded137 CollectionLimitBoundsExceeded,138 /// Tried to enable permissions which are only permitted to be disabled139 OwnerPermissionsCantBeReverted,140 /// Schema data size limit bound exceeded141 SchemaDataLimitExceeded,142 /// Maximum refungibility exceeded143 WrongRefungiblePieces,144 /// createRefungible should be called with one owner145 BadCreateRefungibleCall,146 /// Gas limit exceeded147 OutOfGas,148 /// Metadata update denied by collection settings149 MetadataUpdateDenied,150 /// Metadata update flag become unmutable with None option151 MetadataFlagFrozen,152 /// Collection settings not allowing items transferring153 TransferNotAllowed,154 /// Can't transfer tokens to ethereum zero address155 AddressIsZero,156 }157}158159#[must_use = "Should call submit_logs or save, otherwise some data will be lost for evm side"]160pub struct CollectionHandle<T: Config> {161 pub id: CollectionId,162 collection: Collection<T>,163 recorder: pallet_evm_coder_substrate::SubstrateRecorder<T>,164}165impl<T: Config> CollectionHandle<T> {166 pub fn get_with_gas_limit(id: CollectionId, gas_limit: u64) -> Option<Self> {167 <CollectionById<T>>::get(id).map(|collection| Self {168 id,169 collection,170 recorder: pallet_evm_coder_substrate::SubstrateRecorder::new(171 eth::collection_id_to_address(id),172 gas_limit,173 ),174 })175 }176 pub fn get(id: CollectionId) -> Option<Self> {177 Self::get_with_gas_limit(id, u64::MAX)178 }179 pub fn log(&self, log: impl evm_coder::ToLog) -> DispatchResult {180 self.recorder.log_sub(log)181 }182 #[allow(dead_code)]183 fn consume_gas(&self, gas: u64) -> DispatchResult {184 self.recorder.consume_gas_sub(gas)185 }186 fn consume_sload(&self) -> DispatchResult {187 self.recorder.consume_sload_sub()188 }189 fn consume_sstore(&self) -> DispatchResult {190 self.recorder.consume_sstore_sub()191 }192 pub fn submit_logs(self) -> DispatchResult {193 self.recorder.submit_logs()194 }195 pub fn save(self) -> DispatchResult {196 self.recorder.submit_logs()?;197 <CollectionById<T>>::insert(self.id, self.collection);198 Ok(())199 }200}201impl<T: Config> Deref for CollectionHandle<T> {202 type Target = Collection<T>;203204 fn deref(&self) -> &Self::Target {205 &self.collection206 }207}208209impl<T: Config> DerefMut for CollectionHandle<T> {210 fn deref_mut(&mut self) -> &mut Self::Target {211 &mut self.collection212 }213}214215pub trait Config: system::Config + pallet_evm_coder_substrate::Config + Sized + TypeInfo {216 type Event: From<Event<Self>> + Into<<Self as system::Config>::Event>;217218 /// Weight information for extrinsics in this pallet.219 type WeightInfo: WeightInfo;220221 type EvmAddressMapping: pallet_evm::AddressMapping<Self::AccountId>;222 type EvmBackwardsAddressMapping: EvmBackwardsAddressMapping<Self::AccountId>;223224 type CrossAccountId: CrossAccountId<Self::AccountId>;225 type Currency: Currency<Self::AccountId>;226 type CollectionCreationPrice: Get<227 <<Self as Config>::Currency as Currency<Self::AccountId>>::Balance,228 >;229 type TreasuryAccountId: Get<Self::AccountId>;230}231232type SelfWeightOf<T> = <T as Config>::WeightInfo;233234trait WeightInfoHelpers: WeightInfo {235 fn transfer() -> Weight {236 Self::transfer_nft()237 .max(Self::transfer_fungible())238 .max(Self::transfer_refungible())239 }240 fn transfer_from() -> Weight {241 Self::transfer_from_nft()242 .max(Self::transfer_from_fungible())243 .max(Self::transfer_from_refungible())244 }245 fn approve() -> Weight {246 // TODO: refungible, fungible247 Self::approve_nft()248 }249 fn set_variable_meta_data(data: u32) -> Weight {250 // TODO: refungible251 Self::set_variable_meta_data_nft(data)252 }253 fn create_item(data: u32) -> Weight {254 Self::create_item_nft(data)255 .max(Self::create_item_fungible())256 .max(Self::create_item_refungible(data))257 }258 fn create_multiple_items(amount: u32) -> Weight {259 Self::create_multiple_items_nft(amount)260 .max(Self::create_multiple_items_fungible(amount))261 .max(Self::create_multiple_items_refungible(amount))262 }263 fn burn_item() -> Weight {264 // TODO: refungible, fungible265 Self::burn_item_nft()266 }267}268impl<T: WeightInfo> WeightInfoHelpers for T {}269270// # Used definitions271//272// ## User control levels273//274// chain-controlled - key is uncontrolled by user275// i.e autoincrementing index276// can use non-cryptographic hash277// real - key is controlled by user278// but it is hard to generate enough colliding values, i.e owner of signed txs279// can use non-cryptographic hash280// controlled - key is completly controlled by users281// i.e maps with mutable keys282// should use cryptographic hash283//284// ## User control level downgrade reasons285//286// ?1 - chain-controlled -> controlled287// collections/tokens can be destroyed, resulting in massive holes288// ?2 - chain-controlled -> controlled289// same as ?1, but can be only added, resulting in easier exploitation290// ?3 - real -> controlled291// no confirmation required, so addresses can be easily generated292decl_storage! {293 trait Store for Module<T: Config> as Nft {294295 //#region Private members296 /// Id of next collection297 CreatedCollectionCount: u32;298 /// Used for migrations299 ChainVersion: u64;300 /// Id of last collection token301 /// Collection id (controlled?1)302 ItemListIndex: map hasher(blake2_128_concat) CollectionId => TokenId;303 //#endregion304305 //#region Bound counters306 /// Amount of collections destroyed, used for total amount tracking with307 /// CreatedCollectionCount308 DestroyedCollectionCount: u32;309 //#endregion310311 //#region Basic collections312 /// Collection info313 /// Collection id (controlled?1)314 pub CollectionById get(fn collection_id) config(): map hasher(blake2_128_concat) CollectionId => Option<Collection<T>> = None;315 /// List of collection admins316 /// Collection id (controlled?2)317 pub AdminList get(fn admin_list_collection): map hasher(blake2_128_concat) CollectionId => Vec<T::CrossAccountId>;318 /// Whitelisted collection users319 /// Collection id (controlled?2), user id (controlled?3)320 pub WhiteList get(fn white_list): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) T::AccountId => bool;321 //#endregion322323 /// How many of collection items user have324 /// Collection id (controlled?2), account id (real)325 pub Balance get(fn balance_count): double_map hasher(blake2_128_concat) CollectionId, hasher(twox_64_concat) T::AccountId => u128;326327 /// Amount of items which spender can transfer out of owners account (via transferFrom)328 /// Collection id (controlled?2), (token id (controlled ?2) + owner account id (real) + spender account id (controlled?3))329 /// TODO: Off chain worker should remove from this map when token gets removed330 pub Allowances get(fn approved): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) (TokenId, T::AccountId, T::AccountId) => u128;331332 //#region Item collections333 /// Collection id (controlled?2), token id (controlled?1)334 pub NftItemList get(fn nft_item_id) config(): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) TokenId => Option<NftItemType<T::CrossAccountId>>;335 /// Collection id (controlled?2), owner (controlled?2)336 pub FungibleItemList get(fn fungible_item_id) config(): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) T::AccountId => FungibleItemType;337 /// Collection id (controlled?2), token id (controlled?1)338 pub ReFungibleItemList get(fn refungible_item_id) config(): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) TokenId => Option<ReFungibleItemType<T::CrossAccountId>>;339 //#endregion340341 //#region Index list342 /// Collection id (controlled?2), tokens owner (controlled?2)343 pub AddressTokens get(fn address_tokens): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) T::AccountId => Vec<TokenId>;344 //#endregion345346 //#region Tokens transfer rate limit baskets347 /// (Collection id (controlled?2), who created (real))348 /// TODO: Off chain worker should remove from this map when collection gets removed349 pub CreateItemBasket get(fn create_item_basket): map hasher(blake2_128_concat) (CollectionId, T::AccountId) => T::BlockNumber;350 /// Collection id (controlled?2), token id (controlled?2)351 pub NftTransferBasket get(fn nft_transfer_basket): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) TokenId => T::BlockNumber;352 /// Collection id (controlled?2), owning user (real)353 pub FungibleTransferBasket get(fn fungible_transfer_basket): double_map hasher(blake2_128_concat) CollectionId, hasher(twox_64_concat) T::AccountId => T::BlockNumber;354 /// Collection id (controlled?2), token id (controlled?2)355 pub ReFungibleTransferBasket get(fn refungible_transfer_basket): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) TokenId => T::BlockNumber;356 //#endregion357358 /// Variable metadata sponsoring359 /// Collection id (controlled?2), token id (controlled?2)360 pub VariableMetaDataBasket get(fn variable_meta_data_basket): double_map hasher(blake2_128_concat) CollectionId, hasher(blake2_128_concat) TokenId => Option<T::BlockNumber> = None;361 }362 add_extra_genesis {363 build(|config: &GenesisConfig<T>| {364 // Modification of storage365 for (_num, _c) in &config.collection_id {366 <Module<T>>::init_collection(_c);367 }368369 for (_num, _c, _i) in &config.nft_item_id {370 <Module<T>>::init_nft_token(*_c, _i);371 }372373 for (collection_id, account_id, fungible_item) in &config.fungible_item_id {374 <Module<T>>::init_fungible_token(*collection_id, &T::CrossAccountId::from_sub(account_id.clone()), fungible_item);375 }376377 for (_num, _c, _i) in &config.refungible_item_id {378 <Module<T>>::init_refungible_token(*_c, _i);379 }380 })381 }382}383384decl_event!(385 pub enum Event<T>386 where387 AccountId = <T as frame_system::Config>::AccountId,388 CrossAccountId = <T as Config>::CrossAccountId,389 {390 /// New collection was created391 ///392 /// # Arguments393 ///394 /// * collection_id: Globally unique identifier of newly created collection.395 ///396 /// * mode: [CollectionMode] converted into u8.397 ///398 /// * account_id: Collection owner.399 CollectionCreated(CollectionId, u8, AccountId),400401 /// New item was created.402 ///403 /// # Arguments404 ///405 /// * collection_id: Id of the collection where item was created.406 ///407 /// * item_id: Id of an item. Unique within the collection.408 ///409 /// * recipient: Owner of newly created item410 ItemCreated(CollectionId, TokenId, CrossAccountId),411412 /// Collection item was burned.413 ///414 /// # Arguments415 ///416 /// collection_id.417 ///418 /// item_id: Identifier of burned NFT.419 ItemDestroyed(CollectionId, TokenId),420421 /// Item was transferred422 ///423 /// * collection_id: Id of collection to which item is belong424 ///425 /// * item_id: Id of an item426 ///427 /// * sender: Original owner of item428 ///429 /// * recipient: New owner of item430 ///431 /// * amount: Always 1 for NFT432 Transfer(CollectionId, TokenId, CrossAccountId, CrossAccountId, u128),433434 /// * collection_id435 ///436 /// * item_id437 ///438 /// * sender439 ///440 /// * spender441 ///442 /// * amount443 Approved(CollectionId, TokenId, CrossAccountId, CrossAccountId, u128),444 }445);446447decl_module! {448 pub struct Module<T: Config> for enum Call449 where450 origin: T::Origin451 {452 fn deposit_event() = default;453 const CollectionAdminsLimit: u64 = COLLECTION_ADMINS_LIMIT;454 type Error = Error<T>;455456 fn on_initialize(_now: T::BlockNumber) -> Weight {457 0458 }459460 /// This method creates a Collection of NFTs. Each Token may have multiple properties encoded as an array of bytes of certain length. The initial owner and admin of the collection are set to the address that signed the transaction. Both addresses can be changed later.461 ///462 /// # Permissions463 ///464 /// * Anyone.465 ///466 /// # Arguments467 ///468 /// * collection_name: UTF-16 string with collection name (limit 64 characters), will be stored as zero-terminated.469 ///470 /// * collection_description: UTF-16 string with collection description (limit 256 characters), will be stored as zero-terminated.471 ///472 /// * token_prefix: UTF-8 string with token prefix.473 ///474 /// * mode: [CollectionMode] collection type and type dependent data.475 // returns collection ID476 #[weight = <SelfWeightOf<T>>::create_collection()]477 #[transactional]478 pub fn create_collection(origin,479 collection_name: Vec<u16>,480 collection_description: Vec<u16>,481 token_prefix: Vec<u8>,482 mode: CollectionMode) -> DispatchResult {483484 // Anyone can create a collection485 let who = ensure_signed(origin)?;486487 // Take a (non-refundable) deposit of collection creation488 let mut imbalance = <<<T as Config>::Currency as Currency<T::AccountId>>::PositiveImbalance>::zero();489 imbalance.subsume(<<T as Config>::Currency as Currency<T::AccountId>>::deposit_creating(490 &T::TreasuryAccountId::get(),491 T::CollectionCreationPrice::get(),492 ));493 <T as Config>::Currency::settle(494 &who,495 imbalance,496 WithdrawReasons::TRANSFER,497 ExistenceRequirement::KeepAlive,498 ).map_err(|_| Error::<T>::NoPermission)?;499500 let decimal_points = match mode {501 CollectionMode::Fungible(points) => points,502 _ => 0503 };504505 let created_count = CreatedCollectionCount::get();506 let destroyed_count = DestroyedCollectionCount::get();507508 // bound Total number of collections509 ensure!(created_count - destroyed_count < COLLECTION_NUMBER_LIMIT, Error::<T>::TotalCollectionsLimitExceeded);510511 // check params512 ensure!(decimal_points <= MAX_DECIMAL_POINTS, Error::<T>::CollectionDecimalPointLimitExceeded);513 ensure!(collection_name.len() <= MAX_COLLECTION_NAME_LENGTH, Error::<T>::CollectionNameLimitExceeded);514 ensure!(collection_description.len() <= MAX_COLLECTION_DESCRIPTION_LENGTH, Error::<T>::CollectionDescriptionLimitExceeded);515 ensure!(token_prefix.len() <= MAX_TOKEN_PREFIX_LENGTH, Error::<T>::CollectionTokenPrefixLimitExceeded);516517 // Generate next collection ID518 let next_id = created_count519 .checked_add(1)520 .ok_or(Error::<T>::NumOverflow)?;521522 CreatedCollectionCount::put(next_id);523524 let limits = CollectionLimits {525 sponsored_data_size: CUSTOM_DATA_LIMIT,526 ..Default::default()527 };528529 // Create new collection530 let new_collection = Collection {531 owner: who.clone(),532 name: collection_name,533 mode: mode.clone(),534 mint_mode: false,535 access: AccessMode::Normal,536 description: collection_description,537 decimal_points,538 token_prefix,539 offchain_schema: Vec::new(),540 schema_version: SchemaVersion::ImageURL,541 sponsorship: SponsorshipState::Disabled,542 variable_on_chain_schema: Vec::new(),543 const_on_chain_schema: Vec::new(),544 limits,545 meta_update_permission: MetaUpdatePermission::default(),546 transfers_enabled: true,547 };548549 // Add new collection to map550 <CollectionById<T>>::insert(next_id, new_collection);551552 // call event553 Self::deposit_event(RawEvent::CollectionCreated(next_id, mode.id(), who));554555 Ok(())556 }557558 /// **DANGEROUS**: Destroys collection and all NFTs within this collection. Users irrecoverably lose their assets and may lose real money.559 ///560 /// # Permissions561 ///562 /// * Collection Owner.563 ///564 /// # Arguments565 ///566 /// * collection_id: collection to destroy.567 #[weight = <SelfWeightOf<T>>::destroy_collection()]568 #[transactional]569 pub fn destroy_collection(origin, collection_id: CollectionId) -> DispatchResult {570571 let sender = ensure_signed(origin)?;572 let collection = Self::get_collection(collection_id)?;573 Self::check_owner_permissions(&collection, &sender)?;574 if !collection.limits.owner_can_destroy {575 fail!(Error::<T>::NoPermission);576 }577578 <AddressTokens<T>>::remove_prefix(collection_id, None);579 <Allowances<T>>::remove_prefix(collection_id, None);580 <Balance<T>>::remove_prefix(collection_id, None);581 <ItemListIndex>::remove(collection_id);582 <AdminList<T>>::remove(collection_id);583 <CollectionById<T>>::remove(collection_id);584 <WhiteList<T>>::remove_prefix(collection_id, None);585586 <NftItemList<T>>::remove_prefix(collection_id, None);587 <FungibleItemList<T>>::remove_prefix(collection_id, None);588 <ReFungibleItemList<T>>::remove_prefix(collection_id, None);589590 <NftTransferBasket<T>>::remove_prefix(collection_id, None);591 <FungibleTransferBasket<T>>::remove_prefix(collection_id, None);592 <ReFungibleTransferBasket<T>>::remove_prefix(collection_id, None);593594 <VariableMetaDataBasket<T>>::remove_prefix(collection_id, None);595596 DestroyedCollectionCount::put(DestroyedCollectionCount::get()597 .checked_add(1)598 .ok_or(Error::<T>::NumOverflow)?);599600 Ok(())601 }602603 /// Add an address to white list.604 ///605 /// # Permissions606 ///607 /// * Collection Owner608 /// * Collection Admin609 ///610 /// # Arguments611 ///612 /// * collection_id.613 ///614 /// * address.615 #[weight = <SelfWeightOf<T>>::add_to_white_list()]616 #[transactional]617 pub fn add_to_white_list(origin, collection_id: CollectionId, address: T::CrossAccountId) -> DispatchResult{618619 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);620 let collection = Self::get_collection(collection_id)?;621622 Self::toggle_white_list_internal(623 &sender,624 &collection,625 &address,626 true,627 )?;628629 Ok(())630 }631632 /// Remove an address from white list.633 ///634 /// # Permissions635 ///636 /// * Collection Owner637 /// * Collection Admin638 ///639 /// # Arguments640 ///641 /// * collection_id.642 ///643 /// * address.644 #[weight = <SelfWeightOf<T>>::remove_from_white_list()]645 #[transactional]646 pub fn remove_from_white_list(origin, collection_id: CollectionId, address: T::CrossAccountId) -> DispatchResult{647648 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);649 let collection = Self::get_collection(collection_id)?;650651 Self::toggle_white_list_internal(652 &sender,653 &collection,654 &address,655 false,656 )?;657658 Ok(())659 }660661 /// Toggle between normal and white list access for the methods with access for `Anyone`.662 ///663 /// # Permissions664 ///665 /// * Collection Owner.666 ///667 /// # Arguments668 ///669 /// * collection_id.670 ///671 /// * mode: [AccessMode]672 #[weight = <SelfWeightOf<T>>::set_public_access_mode()]673 #[transactional]674 pub fn set_public_access_mode(origin, collection_id: CollectionId, mode: AccessMode) -> DispatchResult675 {676 let sender = ensure_signed(origin)?;677678 let mut target_collection = Self::get_collection(collection_id)?;679 Self::check_owner_permissions(&target_collection, &sender)?;680 target_collection.access = mode;681 target_collection.save()682 }683684 /// Allows Anyone to create tokens if:685 /// * White List is enabled, and686 /// * Address is added to white list, and687 /// * This method was called with True parameter688 ///689 /// # Permissions690 /// * Collection Owner691 ///692 /// # Arguments693 ///694 /// * collection_id.695 ///696 /// * mint_permission: Boolean parameter. If True, allows minting to Anyone with conditions above.697 #[weight = <SelfWeightOf<T>>::set_mint_permission()]698 #[transactional]699 pub fn set_mint_permission(origin, collection_id: CollectionId, mint_permission: bool) -> DispatchResult700 {701 let sender = ensure_signed(origin)?;702703 let mut target_collection = Self::get_collection(collection_id)?;704 Self::check_owner_permissions(&target_collection, &sender)?;705 target_collection.mint_mode = mint_permission;706 target_collection.save()707 }708709 /// Change the owner of the collection.710 ///711 /// # Permissions712 ///713 /// * Collection Owner.714 ///715 /// # Arguments716 ///717 /// * collection_id.718 ///719 /// * new_owner.720 #[weight = <SelfWeightOf<T>>::change_collection_owner()]721 #[transactional]722 pub fn change_collection_owner(origin, collection_id: CollectionId, new_owner: T::AccountId) -> DispatchResult {723724 let sender = ensure_signed(origin)?;725 let mut target_collection = Self::get_collection(collection_id)?;726 Self::check_owner_permissions(&target_collection, &sender)?;727 target_collection.owner = new_owner;728 target_collection.save()729 }730731 /// Adds an admin of the Collection.732 /// NFT Collection can be controlled by multiple admin addresses (some which can also be servers, for example). Admins can issue and burn NFTs, as well as add and remove other admins, but cannot change NFT or Collection ownership.733 ///734 /// # Permissions735 ///736 /// * Collection Owner.737 /// * Collection Admin.738 ///739 /// # Arguments740 ///741 /// * collection_id: ID of the Collection to add admin for.742 ///743 /// * new_admin_id: Address of new admin to add.744 #[weight = <SelfWeightOf<T>>::add_collection_admin()]745 #[transactional]746 pub fn add_collection_admin(origin, collection_id: CollectionId, new_admin_id: T::CrossAccountId) -> DispatchResult {747 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);748 let collection = Self::get_collection(collection_id)?;749 Self::check_owner_or_admin_permissions(&collection, &sender)?;750 let mut admin_arr = <AdminList<T>>::get(collection_id);751752 match admin_arr.binary_search(&new_admin_id) {753 Ok(_) => {},754 Err(idx) => {755 ensure!(admin_arr.len() < COLLECTION_ADMINS_LIMIT as usize, Error::<T>::CollectionAdminsLimitExceeded);756 admin_arr.insert(idx, new_admin_id);757 <AdminList<T>>::insert(collection_id, admin_arr);758 }759 }760 Ok(())761 }762763 /// Remove admin address of the Collection. An admin address can remove itself. List of admins may become empty, in which case only Collection Owner will be able to add an Admin.764 ///765 /// # Permissions766 ///767 /// * Collection Owner.768 /// * Collection Admin.769 ///770 /// # Arguments771 ///772 /// * collection_id: ID of the Collection to remove admin for.773 ///774 /// * account_id: Address of admin to remove.775 #[weight = <SelfWeightOf<T>>::remove_collection_admin()]776 #[transactional]777 pub fn remove_collection_admin(origin, collection_id: CollectionId, account_id: T::CrossAccountId) -> DispatchResult {778 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);779 let collection = Self::get_collection(collection_id)?;780 Self::check_owner_or_admin_permissions(&collection, &sender)?;781 let mut admin_arr = <AdminList<T>>::get(collection_id);782783 if let Ok(idx) = admin_arr.binary_search(&account_id) {784 admin_arr.remove(idx);785 <AdminList<T>>::insert(collection_id, admin_arr);786 }787 Ok(())788 }789790 /// # Permissions791 ///792 /// * Collection Owner793 ///794 /// # Arguments795 ///796 /// * collection_id.797 ///798 /// * new_sponsor.799 #[weight = <SelfWeightOf<T>>::set_collection_sponsor()]800 #[transactional]801 pub fn set_collection_sponsor(origin, collection_id: CollectionId, new_sponsor: T::AccountId) -> DispatchResult {802 let sender = ensure_signed(origin)?;803 let mut target_collection = Self::get_collection(collection_id)?;804 Self::check_owner_permissions(&target_collection, &sender)?;805806 target_collection.sponsorship = SponsorshipState::Unconfirmed(new_sponsor);807 target_collection.save()808 }809810 /// # Permissions811 ///812 /// * Sponsor.813 ///814 /// # Arguments815 ///816 /// * collection_id.817 #[weight = <SelfWeightOf<T>>::confirm_sponsorship()]818 #[transactional]819 pub fn confirm_sponsorship(origin, collection_id: CollectionId) -> DispatchResult {820 let sender = ensure_signed(origin)?;821822 let mut target_collection = Self::get_collection(collection_id)?;823 ensure!(824 target_collection.sponsorship.pending_sponsor() == Some(&sender),825 Error::<T>::ConfirmUnsetSponsorFail826 );827828 target_collection.sponsorship = SponsorshipState::Confirmed(sender);829 target_collection.save()830 }831832 /// Switch back to pay-per-own-transaction model.833 ///834 /// # Permissions835 ///836 /// * Collection owner.837 ///838 /// # Arguments839 ///840 /// * collection_id.841 #[weight = <SelfWeightOf<T>>::remove_collection_sponsor()]842 #[transactional]843 pub fn remove_collection_sponsor(origin, collection_id: CollectionId) -> DispatchResult {844 let sender = ensure_signed(origin)?;845846 let mut target_collection = Self::get_collection(collection_id)?;847 Self::check_owner_permissions(&target_collection, &sender)?;848849 target_collection.sponsorship = SponsorshipState::Disabled;850 target_collection.save()851 }852853 /// This method creates a concrete instance of NFT Collection created with CreateCollection method.854 ///855 /// # Permissions856 ///857 /// * Collection Owner.858 /// * Collection Admin.859 /// * Anyone if860 /// * White List is enabled, and861 /// * Address is added to white list, and862 /// * MintPermission is enabled (see SetMintPermission method)863 ///864 /// # Arguments865 ///866 /// * collection_id: ID of the collection.867 ///868 /// * owner: Address, initial owner of the NFT.869 ///870 /// * data: Token data to store on chain.871 // #[weight =872 // (130_000_000 as Weight)873 // .saturating_add((2135 as Weight).saturating_mul((properties.len() as u64) as Weight))874 // .saturating_add(RocksDbWeight::get().reads(10 as Weight))875 // .saturating_add(RocksDbWeight::get().writes(8 as Weight))]876877 #[weight = <SelfWeightOf<T>>::create_item(data.data_size() as u32)]878 #[transactional]879 pub fn create_item(origin, collection_id: CollectionId, owner: T::CrossAccountId, data: CreateItemData) -> DispatchResult {880 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);881 let collection = Self::get_collection(collection_id)?;882883 Self::create_item_internal(&sender, &collection, &owner, data)?;884885 collection.submit_logs()886 }887888 /// This method creates multiple items in a collection created with CreateCollection method.889 ///890 /// # Permissions891 ///892 /// * Collection Owner.893 /// * Collection Admin.894 /// * Anyone if895 /// * White List is enabled, and896 /// * Address is added to white list, and897 /// * MintPermission is enabled (see SetMintPermission method)898 ///899 /// # Arguments900 ///901 /// * collection_id: ID of the collection.902 ///903 /// * itemsData: Array items properties. Each property is an array of bytes itself, see [create_item].904 ///905 /// * owner: Address, initial owner of the NFT.906 #[weight = <SelfWeightOf<T>>::create_multiple_items(items_data.len() as u32)]907 #[transactional]908 pub fn create_multiple_items(origin, collection_id: CollectionId, owner: T::CrossAccountId, items_data: Vec<CreateItemData>) -> DispatchResult {909910 ensure!(!items_data.is_empty(), Error::<T>::EmptyArgument);911 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);912 let collection = Self::get_collection(collection_id)?;913914 Self::create_multiple_items_internal(&sender, &collection, &owner, items_data)?;915916 collection.submit_logs()917 }918919 // TODO! transaction weight920921 /// Set transfers_enabled value for particular collection922 ///923 /// # Permissions924 ///925 /// * Collection Owner.926 ///927 /// # Arguments928 ///929 /// * collection_id: ID of the collection.930 ///931 /// * value: New flag value.932 #[weight = <SelfWeightOf<T>>::set_transfers_enabled_flag()]933 #[transactional]934 pub fn set_transfers_enabled_flag(origin, collection_id: CollectionId, value: bool) -> DispatchResult {935936 let sender = ensure_signed(origin)?;937 let mut target_collection = Self::get_collection(collection_id)?;938939 Self::check_owner_permissions(&target_collection, &sender)?;940941 target_collection.transfers_enabled = value;942 target_collection.save()943 }944945 // TODO! transaction weight946 /// Set meta_update_permission value for particular collection947 ///948 /// # Permissions949 ///950 /// * Collection Owner.951 ///952 /// # Arguments953 ///954 /// * collection_id: ID of the collection.955 ///956 /// * value: New flag value.957 #[weight = <T as Config>::WeightInfo::burn_item()]958 #[transactional]959 pub fn set_meta_update_permission_flag(origin, collection_id: CollectionId, value: MetaUpdatePermission) -> DispatchResult {960961 let sender = ensure_signed(origin)?;962 let mut target_collection = Self::get_collection(collection_id)?;963964 ensure!(965 target_collection.meta_update_permission != MetaUpdatePermission::None,966 Error::<T>::MetadataFlagFrozen967 );968 Self::check_owner_permissions(&target_collection, &sender)?;969970 target_collection.meta_update_permission = value;971972 target_collection.save()973 }974975 /// Destroys a concrete instance of NFT.976 ///977 /// # Permissions978 ///979 /// * Collection Owner.980 /// * Collection Admin.981 /// * Current NFT Owner.982 ///983 /// # Arguments984 ///985 /// * collection_id: ID of the collection.986 ///987 /// * item_id: ID of NFT to burn.988 #[weight = <SelfWeightOf<T>>::burn_item()]989 #[transactional]990 pub fn burn_item(origin, collection_id: CollectionId, item_id: TokenId, value: u128) -> DispatchResult {991992 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);993 let target_collection = Self::get_collection(collection_id)?;994995 Self::burn_item_internal(&sender, &target_collection, item_id, value)?;996997 target_collection.submit_logs()998 }9991000 /// Change ownership of the token.1001 ///1002 /// # Permissions1003 ///1004 /// * Collection Owner1005 /// * Collection Admin1006 /// * Current NFT owner1007 ///1008 /// # Arguments1009 ///1010 /// * recipient: Address of token recipient.1011 ///1012 /// * collection_id.1013 ///1014 /// * item_id: ID of the item1015 /// * Non-Fungible Mode: Required.1016 /// * Fungible Mode: Ignored.1017 /// * Re-Fungible Mode: Required.1018 ///1019 /// * value: Amount to transfer.1020 /// * Non-Fungible Mode: Ignored1021 /// * Fungible Mode: Must specify transferred amount1022 /// * Re-Fungible Mode: Must specify transferred portion (between 0 and 1)1023 #[weight = <SelfWeightOf<T>>::transfer()]1024 #[transactional]1025 pub fn transfer(origin, recipient: T::CrossAccountId, collection_id: CollectionId, item_id: TokenId, value: u128) -> DispatchResult {1026 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);1027 let collection = Self::get_collection(collection_id)?;10281029 Self::transfer_internal(&sender, &recipient, &collection, item_id, value)?;10301031 collection.submit_logs()1032 }10331034 /// Set, change, or remove approved address to transfer the ownership of the NFT.1035 ///1036 /// # Permissions1037 ///1038 /// * Collection Owner1039 /// * Collection Admin1040 /// * Current NFT owner1041 ///1042 /// # Arguments1043 ///1044 /// * approved: Address that is approved to transfer this NFT or zero (if needed to remove approval).1045 ///1046 /// * collection_id.1047 ///1048 /// * item_id: ID of the item.1049 #[weight = <SelfWeightOf<T>>::approve()]1050 #[transactional]1051 pub fn approve(origin, spender: T::CrossAccountId, collection_id: CollectionId, item_id: TokenId, amount: u128) -> DispatchResult {1052 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);1053 let collection = Self::get_collection(collection_id)?;10541055 Self::approve_internal(&sender, &spender, &collection, item_id, amount)?;10561057 collection.submit_logs()1058 }10591060 /// Change ownership of a NFT on behalf of the owner. See Approve method for additional information. After this method executes, the approval is removed so that the approved address will not be able to transfer this NFT again from this owner.1061 ///1062 /// # Permissions1063 /// * Collection Owner1064 /// * Collection Admin1065 /// * Current NFT owner1066 /// * Address approved by current NFT owner1067 ///1068 /// # Arguments1069 ///1070 /// * from: Address that owns token.1071 ///1072 /// * recipient: Address of token recipient.1073 ///1074 /// * collection_id.1075 ///1076 /// * item_id: ID of the item.1077 ///1078 /// * value: Amount to transfer.1079 #[weight = <SelfWeightOf<T>>::transfer_from()]1080 #[transactional]1081 pub fn transfer_from(origin, from: T::CrossAccountId, recipient: T::CrossAccountId, collection_id: CollectionId, item_id: TokenId, value: u128 ) -> DispatchResult {1082 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);1083 let collection = Self::get_collection(collection_id)?;10841085 Self::transfer_from_internal(&sender, &from, &recipient, &collection, item_id, value)?;10861087 collection.submit_logs()1088 }1089 // #[weight = 0]1090 // // let no_perm_mes = "You do not have permissions to modify this collection";1091 // // ensure!(<ApprovedList<T>>::contains_key((collection_id, item_id)), no_perm_mes);1092 // // let list_itm = <ApprovedList<T>>::get((collection_id, item_id));1093 // // ensure!(list_itm.contains(&new_owner.clone()), no_perm_mes);10941095 // // // on_nft_received call10961097 // // Self::transfer(origin, collection_id, item_id, new_owner)?;10981099 // Ok(())1100 // }11011102 /// Set off-chain data schema.1103 ///1104 /// # Permissions1105 ///1106 /// * Collection Owner1107 /// * Collection Admin1108 ///1109 /// # Arguments1110 ///1111 /// * collection_id.1112 ///1113 /// * schema: String representing the offchain data schema.1114 #[weight = <SelfWeightOf<T>>::set_variable_meta_data(data.len() as u32)]1115 #[transactional]1116 pub fn set_variable_meta_data (1117 origin,1118 collection_id: CollectionId,1119 item_id: TokenId,1120 data: Vec<u8>1121 ) -> DispatchResult {1122 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);11231124 let collection = Self::get_collection(collection_id)?;1125 Self::meta_update_check(&sender, &collection, item_id)?;11261127 Self::set_variable_meta_data_internal(&sender, &collection, item_id, data)?;11281129 Ok(())1130 }11311132 /// Set schema standard1133 /// ImageURL1134 /// Unique1135 ///1136 /// # Permissions1137 ///1138 /// * Collection Owner1139 /// * Collection Admin1140 ///1141 /// # Arguments1142 ///1143 /// * collection_id.1144 ///1145 /// * schema: SchemaVersion: enum1146 #[weight = <SelfWeightOf<T>>::set_schema_version()]1147 #[transactional]1148 pub fn set_schema_version(1149 origin,1150 collection_id: CollectionId,1151 version: SchemaVersion1152 ) -> DispatchResult {1153 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);1154 let mut target_collection = Self::get_collection(collection_id)?;1155 Self::check_owner_or_admin_permissions(&target_collection, &sender)?;1156 target_collection.schema_version = version;1157 target_collection.save()1158 }11591160 /// Set off-chain data schema.1161 ///1162 /// # Permissions1163 ///1164 /// * Collection Owner1165 /// * Collection Admin1166 ///1167 /// # Arguments1168 ///1169 /// * collection_id.1170 ///1171 /// * schema: String representing the offchain data schema.1172 #[weight = <SelfWeightOf<T>>::set_offchain_schema(schema.len() as u32)]1173 #[transactional]1174 pub fn set_offchain_schema(1175 origin,1176 collection_id: CollectionId,1177 schema: Vec<u8>1178 ) -> DispatchResult {1179 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);1180 let mut target_collection = Self::get_collection(collection_id)?;1181 Self::check_owner_or_admin_permissions(&target_collection, &sender)?;11821183 // check schema limit1184 ensure!(schema.len() as u32 <= OFFCHAIN_SCHEMA_LIMIT, "");11851186 target_collection.offchain_schema = schema;1187 target_collection.save()1188 }11891190 /// Set const on-chain data schema.1191 ///1192 /// # Permissions1193 ///1194 /// * Collection Owner1195 /// * Collection Admin1196 ///1197 /// # Arguments1198 ///1199 /// * collection_id.1200 ///1201 /// * schema: String representing the const on-chain data schema.1202 #[weight = <SelfWeightOf<T>>::set_const_on_chain_schema(schema.len() as u32)]1203 #[transactional]1204 pub fn set_const_on_chain_schema (1205 origin,1206 collection_id: CollectionId,1207 schema: Vec<u8>1208 ) -> DispatchResult {1209 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);1210 let mut target_collection = Self::get_collection(collection_id)?;1211 Self::check_owner_or_admin_permissions(&target_collection, &sender)?;12121213 // check schema limit1214 ensure!(schema.len() as u32 <= CONST_ON_CHAIN_SCHEMA_LIMIT, "");12151216 target_collection.const_on_chain_schema = schema;1217 target_collection.save()1218 }12191220 /// Set variable on-chain data schema.1221 ///1222 /// # Permissions1223 ///1224 /// * Collection Owner1225 /// * Collection Admin1226 ///1227 /// # Arguments1228 ///1229 /// * collection_id.1230 ///1231 /// * schema: String representing the variable on-chain data schema.1232 #[weight = <SelfWeightOf<T>>::set_const_on_chain_schema(schema.len() as u32)]1233 #[transactional]1234 pub fn set_variable_on_chain_schema (1235 origin,1236 collection_id: CollectionId,1237 schema: Vec<u8>1238 ) -> DispatchResult {1239 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);1240 let mut target_collection = Self::get_collection(collection_id)?;1241 Self::check_owner_or_admin_permissions(&target_collection, &sender)?;12421243 // check schema limit1244 ensure!(schema.len() as u32 <= VARIABLE_ON_CHAIN_SCHEMA_LIMIT, "");12451246 target_collection.variable_on_chain_schema = schema;1247 target_collection.save()1248 }12491250 #[weight = <SelfWeightOf<T>>::set_collection_limits()]1251 #[transactional]1252 pub fn set_collection_limits(1253 origin,1254 collection_id: u32,1255 new_limits: CollectionLimits<T::BlockNumber>,1256 ) -> DispatchResult {1257 let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?);1258 let mut target_collection = Self::get_collection(collection_id)?;1259 Self::check_owner_permissions(&target_collection, sender.as_sub())?;1260 let old_limits = &target_collection.limits;12611262 // collection bounds1263 ensure!(new_limits.sponsor_transfer_timeout <= MAX_SPONSOR_TIMEOUT &&1264 new_limits.account_token_ownership_limit <= MAX_TOKEN_OWNERSHIP &&1265 new_limits.sponsored_data_size <= CUSTOM_DATA_LIMIT,1266 Error::<T>::CollectionLimitBoundsExceeded);12671268 // token_limit check prev1269 ensure!(old_limits.token_limit >= new_limits.token_limit, Error::<T>::CollectionTokenLimitExceeded);1270 ensure!(new_limits.token_limit > 0, Error::<T>::CollectionTokenLimitExceeded);12711272 ensure!(1273 (old_limits.owner_can_transfer || !new_limits.owner_can_transfer) &&1274 (old_limits.owner_can_destroy || !new_limits.owner_can_destroy),1275 Error::<T>::OwnerPermissionsCantBeReverted,1276 );12771278 target_collection.limits = new_limits;12791280 target_collection.save()1281 }1282 }1283}12841285impl<T: Config> Module<T> {1286 pub fn create_item_internal(1287 sender: &T::CrossAccountId,1288 collection: &CollectionHandle<T>,1289 owner: &T::CrossAccountId,1290 data: CreateItemData,1291 ) -> DispatchResult {1292 ensure!(1293 owner != &T::CrossAccountId::from_eth(H160([0; 20])),1294 Error::<T>::AddressIsZero1295 );12961297 Self::can_create_items_in_collection(collection, sender, owner, 1)?;1298 Self::validate_create_item_args(collection, &data)?;1299 Self::create_item_no_validation(collection, owner, data)?;13001301 Ok(())1302 }13031304 pub fn transfer_internal(1305 sender: &T::CrossAccountId,1306 recipient: &T::CrossAccountId,1307 target_collection: &CollectionHandle<T>,1308 item_id: TokenId,1309 value: u128,1310 ) -> DispatchResult {1311 ensure!(1312 recipient != &T::CrossAccountId::from_eth(H160([0; 20])),1313 Error::<T>::AddressIsZero1314 );13151316 // Limits check1317 Self::is_correct_transfer(target_collection, recipient)?;13181319 // Transfer permissions check1320 ensure!(1321 Self::is_item_owner(sender, target_collection, item_id)?1322 || Self::is_owner_or_admin_permissions(target_collection, sender)?,1323 Error::<T>::NoPermission1324 );13251326 if target_collection.access == AccessMode::WhiteList {1327 Self::check_white_list(target_collection, sender)?;1328 Self::check_white_list(target_collection, recipient)?;1329 }13301331 match target_collection.mode {1332 CollectionMode::NFT => Self::transfer_nft(1333 target_collection,1334 item_id,1335 sender.clone(),1336 recipient.clone(),1337 )?,1338 CollectionMode::Fungible(_) => {1339 Self::transfer_fungible(target_collection, value, sender, recipient)?1340 }1341 CollectionMode::ReFungible => Self::transfer_refungible(1342 target_collection,1343 item_id,1344 value,1345 sender.clone(),1346 recipient.clone(),1347 )?,1348 };13491350 Self::deposit_event(RawEvent::Transfer(1351 target_collection.id,1352 item_id,1353 sender.clone(),1354 recipient.clone(),1355 value,1356 ));13571358 Ok(())1359 }13601361 pub fn approve_internal(1362 sender: &T::CrossAccountId,1363 spender: &T::CrossAccountId,1364 collection: &CollectionHandle<T>,1365 item_id: TokenId,1366 amount: u128,1367 ) -> DispatchResult {1368 Self::token_exists(collection, item_id)?;13691370 // Transfer permissions check1371 let bypasses_limits = collection.limits.owner_can_transfer1372 && Self::is_owner_or_admin_permissions(collection, sender)?;13731374 let allowance_limit = if bypasses_limits {1375 None1376 } else if let Some(amount) = Self::owned_amount(sender, collection, item_id)? {1377 Some(amount)1378 } else {1379 fail!(Error::<T>::NoPermission);1380 };13811382 if collection.access == AccessMode::WhiteList {1383 Self::check_white_list(collection, sender)?;1384 Self::check_white_list(collection, spender)?;1385 }13861387 collection.consume_sload()?;1388 let allowance: u128 = amount1389 .checked_add(<Allowances<T>>::get(1390 collection.id,1391 (item_id, sender.as_sub(), spender.as_sub()),1392 ))1393 .ok_or(Error::<T>::NumOverflow)?;1394 if let Some(limit) = allowance_limit {1395 ensure!(limit >= allowance, Error::<T>::TokenValueTooLow);1396 }1397 collection.consume_sstore()?;1398 <Allowances<T>>::insert(1399 collection.id,1400 (item_id, sender.as_sub(), spender.as_sub()),1401 allowance,1402 );14031404 if matches!(collection.mode, CollectionMode::NFT) {1405 // TODO: NFT: only one owner may exist for token in ERC7211406 collection.log(ERC721Events::Approval {1407 owner: *sender.as_eth(),1408 approved: *spender.as_eth(),1409 token_id: item_id.into(),1410 })?;1411 }14121413 if matches!(collection.mode, CollectionMode::Fungible(_)) {1414 // TODO: NFT: only one owner may exist for token in ERC201415 collection.log(ERC20Events::Approval {1416 owner: *sender.as_eth(),1417 spender: *spender.as_eth(),1418 value: allowance.into(),1419 })?;1420 }14211422 Self::deposit_event(RawEvent::Approved(1423 collection.id,1424 item_id,1425 sender.clone(),1426 spender.clone(),1427 allowance,1428 ));1429 Ok(())1430 }14311432 pub fn transfer_from_internal(1433 sender: &T::CrossAccountId,1434 from: &T::CrossAccountId,1435 recipient: &T::CrossAccountId,1436 collection: &CollectionHandle<T>,1437 item_id: TokenId,1438 amount: u128,1439 ) -> DispatchResult {1440 if sender == from {1441 // Transfer by `from`, because it is either equal to sender, or derived from him1442 return Self::transfer_internal(from, recipient, collection, item_id, amount);1443 }14441445 // Check approval1446 collection.consume_sload()?;1447 let approval: u128 =1448 <Allowances<T>>::get(collection.id, (item_id, from.as_sub(), sender.as_sub()));14491450 // Limits check1451 Self::is_correct_transfer(collection, recipient)?;14521453 // Transfer permissions check1454 ensure!(1455 approval >= amount1456 || (collection.limits.owner_can_transfer1457 && Self::is_owner_or_admin_permissions(collection, sender)?),1458 Error::<T>::NoPermission1459 );14601461 if collection.access == AccessMode::WhiteList {1462 Self::check_white_list(collection, sender)?;1463 Self::check_white_list(collection, recipient)?;1464 }14651466 // Reduce approval by transferred amount or remove if remaining approval drops to 01467 let allowance = approval.saturating_sub(amount);1468 collection.consume_sstore()?;1469 if allowance > 0 {1470 <Allowances<T>>::insert(1471 collection.id,1472 (item_id, from.as_sub(), sender.as_sub()),1473 allowance,1474 );1475 } else {1476 <Allowances<T>>::remove(collection.id, (item_id, from.as_sub(), sender.as_sub()));1477 }14781479 match collection.mode {1480 CollectionMode::NFT => {1481 Self::transfer_nft(collection, item_id, from.clone(), recipient.clone())?1482 }1483 CollectionMode::Fungible(_) => {1484 Self::transfer_fungible(collection, amount, from, recipient)?1485 }1486 CollectionMode::ReFungible => Self::transfer_refungible(1487 collection,1488 item_id,1489 amount,1490 from.clone(),1491 recipient.clone(),1492 )?,1493 };14941495 if matches!(collection.mode, CollectionMode::Fungible(_)) {1496 collection.log(ERC20Events::Approval {1497 owner: *from.as_eth(),1498 spender: *sender.as_eth(),1499 value: allowance.into(),1500 })?;1501 }15021503 Ok(())1504 }15051506 pub fn set_variable_meta_data_internal(1507 sender: &T::CrossAccountId,1508 collection: &CollectionHandle<T>,1509 item_id: TokenId,1510 data: Vec<u8>,1511 ) -> DispatchResult {1512 Self::token_exists(collection, item_id)?;15131514 ensure!(1515 CUSTOM_DATA_LIMIT >= data.len() as u32,1516 Error::<T>::TokenVariableDataLimitExceeded1517 );15181519 ensure!(1520 (Self::is_item_owner(sender, collection, item_id)?1521 && collection.meta_update_permission == MetaUpdatePermission::ItemOwner)1522 || (Self::is_owner_or_admin_permissions(collection, sender)?1523 && collection.meta_update_permission == MetaUpdatePermission::Admin),1524 Error::<T>::NoPermission1525 );15261527 match collection.mode {1528 CollectionMode::NFT => Self::set_nft_variable_data(collection, item_id, data)?,1529 CollectionMode::ReFungible => {1530 Self::set_re_fungible_variable_data(collection, item_id, data)?1531 }1532 CollectionMode::Fungible(_) => fail!(Error::<T>::CantStoreMetadataInFungibleTokens),1533 };15341535 Ok(())1536 }15371538 pub fn meta_update_check(1539 sender: &T::CrossAccountId,1540 collection: &CollectionHandle<T>,1541 item_id: TokenId,1542 ) -> DispatchResult {1543 match collection.meta_update_permission {1544 MetaUpdatePermission::ItemOwner => ensure!(1545 Self::is_item_owner(sender, collection, item_id)?,1546 Error::<T>::NoPermission1547 ),1548 MetaUpdatePermission::Admin => ensure!(1549 Self::is_owner_or_admin_permissions(collection, sender)?,1550 Error::<T>::NoPermission1551 ),1552 MetaUpdatePermission::None => fail!(Error::<T>::MetadataUpdateDenied),1553 }15541555 Ok(())1556 }15571558 pub fn get_variable_metadata(1559 collection: &CollectionHandle<T>,1560 item_id: TokenId,1561 ) -> Result<Vec<u8>, DispatchError> {1562 Ok(match collection.mode {1563 CollectionMode::NFT => {1564 <NftItemList<T>>::get(collection.id, item_id)1565 .ok_or(Error::<T>::TokenNotFound)?1566 .variable_data1567 }1568 CollectionMode::ReFungible => {1569 <ReFungibleItemList<T>>::get(collection.id, item_id)1570 .ok_or(Error::<T>::TokenNotFound)?1571 .variable_data1572 }1573 _ => fail!(Error::<T>::UnexpectedCollectionType),1574 })1575 }15761577 pub fn create_multiple_items_internal(1578 sender: &T::CrossAccountId,1579 collection: &CollectionHandle<T>,1580 owner: &T::CrossAccountId,1581 items_data: Vec<CreateItemData>,1582 ) -> DispatchResult {1583 Self::can_create_items_in_collection(collection, sender, owner, items_data.len() as u32)?;15841585 for data in &items_data {1586 Self::validate_create_item_args(collection, data)?;1587 }1588 for data in &items_data {1589 Self::create_item_no_validation(collection, owner, data.clone())?;1590 }15911592 Ok(())1593 }15941595 pub fn burn_item_internal(1596 sender: &T::CrossAccountId,1597 collection: &CollectionHandle<T>,1598 item_id: TokenId,1599 value: u128,1600 ) -> DispatchResult {1601 ensure!(1602 Self::is_item_owner(sender, collection, item_id)?1603 || (collection.limits.owner_can_transfer1604 && Self::is_owner_or_admin_permissions(collection, sender)?),1605 Error::<T>::NoPermission1606 );16071608 if collection.access == AccessMode::WhiteList {1609 Self::check_white_list(collection, sender)?;1610 }16111612 match collection.mode {1613 CollectionMode::NFT => Self::burn_nft_item(collection, item_id)?,1614 CollectionMode::Fungible(_) => Self::burn_fungible_item(sender, collection, value)?,1615 CollectionMode::ReFungible => Self::burn_refungible_item(collection, item_id, sender)?,1616 };16171618 Ok(())1619 }16201621 pub fn toggle_white_list_internal(1622 sender: &T::CrossAccountId,1623 collection: &CollectionHandle<T>,1624 address: &T::CrossAccountId,1625 whitelisted: bool,1626 ) -> DispatchResult {1627 Self::check_owner_or_admin_permissions(collection, sender)?;16281629 if whitelisted {1630 <WhiteList<T>>::insert(collection.id, address.as_sub(), true);1631 } else {1632 <WhiteList<T>>::remove(collection.id, address.as_sub());1633 }16341635 Ok(())1636 }16371638 fn is_correct_transfer(1639 collection: &CollectionHandle<T>,1640 recipient: &T::CrossAccountId,1641 ) -> DispatchResult {1642 let collection_id = collection.id;16431644 // check token limit and account token limit1645 collection.consume_sload()?;1646 let account_items: u32 =1647 <AddressTokens<T>>::get(collection_id, recipient.as_sub()).len() as u32;16481649 // zero limit means collection limit is disabled1650 // otherwise get lower value1651 let limit = if collection.limits.account_token_ownership_limit == 01652 || collection.limits.account_token_ownership_limit > ACCOUNT_TOKEN_OWNERSHIP_LIMIT1653 {1654 ACCOUNT_TOKEN_OWNERSHIP_LIMIT1655 } else {1656 collection.limits.account_token_ownership_limit1657 };16581659 ensure!(limit > account_items, Error::<T>::AccountTokenLimitExceeded);16601661 // preliminary transfer check1662 ensure!(collection.transfers_enabled, Error::<T>::TransferNotAllowed);16631664 Ok(())1665 }16661667 fn can_create_items_in_collection(1668 collection: &CollectionHandle<T>,1669 sender: &T::CrossAccountId,1670 owner: &T::CrossAccountId,1671 amount: u32,1672 ) -> DispatchResult {1673 let collection_id = collection.id;16741675 // check token limit and account token limit1676 let total_items: u32 = ItemListIndex::get(collection_id)1677 .checked_add(amount)1678 .ok_or(Error::<T>::CollectionTokenLimitExceeded)?;1679 let account_items: u32 = (<AddressTokens<T>>::get(collection_id, owner.as_sub()).len()1680 as u32)1681 .checked_add(amount)1682 .ok_or(Error::<T>::AccountTokenLimitExceeded)?;16831684 // zero limit means collection limit is disabled1685 // otherwise get lower value1686 let account_token_limit = if collection.limits.account_token_ownership_limit == 01687 || collection.limits.account_token_ownership_limit > ACCOUNT_TOKEN_OWNERSHIP_LIMIT1688 {1689 ACCOUNT_TOKEN_OWNERSHIP_LIMIT1690 } else {1691 collection.limits.account_token_ownership_limit1692 };16931694 ensure!(1695 collection.limits.token_limit >= total_items,1696 Error::<T>::CollectionTokenLimitExceeded1697 );1698 ensure!(1699 account_token_limit >= account_items,1700 Error::<T>::AccountTokenLimitExceeded1701 );17021703 if !Self::is_owner_or_admin_permissions(collection, sender)? {1704 ensure!(collection.mint_mode, Error::<T>::PublicMintingNotAllowed);1705 Self::check_white_list(collection, owner)?;1706 Self::check_white_list(collection, sender)?;1707 }17081709 Ok(())1710 }17111712 fn validate_create_item_args(1713 target_collection: &CollectionHandle<T>,1714 data: &CreateItemData,1715 ) -> DispatchResult {1716 match target_collection.mode {1717 CollectionMode::NFT => {1718 if !matches!(data, CreateItemData::NFT(_)) {1719 fail!(Error::<T>::NotNftDataUsedToMintNftCollectionToken);1720 }1721 }1722 CollectionMode::Fungible(_) => {1723 if !matches!(data, CreateItemData::Fungible(_)) {1724 fail!(Error::<T>::NotFungibleDataUsedToMintFungibleCollectionToken);1725 }1726 }1727 CollectionMode::ReFungible => {1728 if let CreateItemData::ReFungible(data) = data {1729 // Check refungibility limits1730 ensure!(1731 data.pieces <= MAX_REFUNGIBLE_PIECES,1732 Error::<T>::WrongRefungiblePieces1733 );1734 ensure!(data.pieces > 0, Error::<T>::WrongRefungiblePieces);1735 } else {1736 fail!(Error::<T>::NotReFungibleDataUsedToMintReFungibleCollectionToken);1737 }1738 }1739 };17401741 Ok(())1742 }17431744 fn create_item_no_validation(1745 collection: &CollectionHandle<T>,1746 owner: &T::CrossAccountId,1747 data: CreateItemData,1748 ) -> DispatchResult {1749 match data {1750 CreateItemData::NFT(data) => {1751 let item = NftItemType {1752 owner: owner.clone(),1753 const_data: data.const_data.into_inner(),1754 variable_data: data.variable_data.into_inner(),1755 };17561757 Self::add_nft_item(collection, item)?;1758 }1759 CreateItemData::Fungible(data) => {1760 Self::add_fungible_item(collection, owner, data.value)?;1761 }1762 CreateItemData::ReFungible(data) => {1763 let owner_list = vec![Ownership {1764 owner: owner.clone(),1765 fraction: data.pieces,1766 }];17671768 let item = ReFungibleItemType {1769 owner: owner_list,1770 const_data: data.const_data.into_inner(),1771 variable_data: data.variable_data.into_inner(),1772 };17731774 Self::add_refungible_item(collection, item)?;1775 }1776 };17771778 Ok(())1779 }17801781 fn add_fungible_item(1782 collection: &CollectionHandle<T>,1783 owner: &T::CrossAccountId,1784 value: u128,1785 ) -> DispatchResult {1786 let collection_id = collection.id;17871788 // Does new owner already have an account?1789 collection.consume_sload()?;1790 let balance: u128 = <FungibleItemList<T>>::get(collection_id, owner.as_sub()).value;17911792 // Mint1793 let item = FungibleItemType {1794 value: balance.checked_add(value).ok_or(Error::<T>::NumOverflow)?,1795 };1796 collection.consume_sstore()?;1797 <FungibleItemList<T>>::insert(collection_id, owner.as_sub(), item);17981799 // Update balance1800 collection.consume_sload()?;1801 let new_balance = <Balance<T>>::get(collection_id, owner.as_sub())1802 .checked_add(value)1803 .ok_or(Error::<T>::NumOverflow)?;1804 collection.consume_sstore()?;1805 <Balance<T>>::insert(collection_id, owner.as_sub(), new_balance);18061807 collection.log(ERC20Events::Transfer {1808 from: H160::default(),1809 to: *owner.as_eth(),1810 value: value.into(),1811 })?;1812 Self::deposit_event(RawEvent::ItemCreated(collection_id, 0, owner.clone()));1813 Ok(())1814 }18151816 fn add_refungible_item(1817 collection: &CollectionHandle<T>,1818 item: ReFungibleItemType<T::CrossAccountId>,1819 ) -> DispatchResult {1820 let collection_id = collection.id;18211822 let current_index = <ItemListIndex>::get(collection_id)1823 .checked_add(1)1824 .ok_or(Error::<T>::NumOverflow)?;1825 let itemcopy = item.clone();18261827 ensure!(item.owner.len() == 1, Error::<T>::BadCreateRefungibleCall,);1828 let item_owner = item.owner.first().expect("only one owner is defined");18291830 let value = item_owner.fraction;1831 let owner = item_owner.owner.clone();18321833 Self::add_token_index(collection, current_index, &owner)?;18341835 <ItemListIndex>::insert(collection_id, current_index);1836 <ReFungibleItemList<T>>::insert(collection_id, current_index, itemcopy);18371838 // Update balance1839 let new_balance = <Balance<T>>::get(collection_id, owner.as_sub())1840 .checked_add(value)1841 .ok_or(Error::<T>::NumOverflow)?;1842 <Balance<T>>::insert(collection_id, owner.as_sub(), new_balance);18431844 Self::deposit_event(RawEvent::ItemCreated(collection_id, current_index, owner));1845 Ok(())1846 }18471848 fn add_nft_item(1849 collection: &CollectionHandle<T>,1850 item: NftItemType<T::CrossAccountId>,1851 ) -> DispatchResult {1852 let collection_id = collection.id;18531854 let current_index = <ItemListIndex>::get(collection_id)1855 .checked_add(1)1856 .ok_or(Error::<T>::NumOverflow)?;18571858 let item_owner = item.owner.clone();1859 Self::add_token_index(collection, current_index, &item.owner)?;18601861 <ItemListIndex>::insert(collection_id, current_index);1862 <NftItemList<T>>::insert(collection_id, current_index, item);18631864 // Update balance1865 let new_balance = <Balance<T>>::get(collection_id, item_owner.as_sub())1866 .checked_add(1)1867 .ok_or(Error::<T>::NumOverflow)?;1868 <Balance<T>>::insert(collection_id, item_owner.as_sub(), new_balance);18691870 collection.log(ERC721Events::Transfer {1871 from: H160::default(),1872 to: *item_owner.as_eth(),1873 token_id: current_index.into(),1874 })?;1875 Self::deposit_event(RawEvent::ItemCreated(1876 collection_id,1877 current_index,1878 item_owner,1879 ));1880 Ok(())1881 }18821883 fn burn_refungible_item(1884 collection: &CollectionHandle<T>,1885 item_id: TokenId,1886 owner: &T::CrossAccountId,1887 ) -> DispatchResult {1888 let collection_id = collection.id;18891890 let mut token = <ReFungibleItemList<T>>::get(collection_id, item_id)1891 .ok_or(Error::<T>::TokenNotFound)?;1892 let rft_balance = token1893 .owner1894 .iter()1895 .find(|&i| i.owner == *owner)1896 .ok_or(Error::<T>::TokenNotFound)?;1897 Self::remove_token_index(collection, item_id, owner)?;18981899 // update balance1900 let new_balance = <Balance<T>>::get(collection_id, rft_balance.owner.as_sub())1901 .checked_sub(rft_balance.fraction)1902 .ok_or(Error::<T>::NumOverflow)?;1903 <Balance<T>>::insert(collection_id, rft_balance.owner.as_sub(), new_balance);19041905 // Re-create owners list with sender removed1906 let index = token1907 .owner1908 .iter()1909 .position(|i| i.owner == *owner)1910 .expect("owned item is exists");1911 token.owner.remove(index);1912 let owner_count = token.owner.len();19131914 // Burn the token completely if this was the last (only) owner1915 if owner_count == 0 {1916 <ReFungibleItemList<T>>::remove(collection_id, item_id);1917 <VariableMetaDataBasket<T>>::remove(collection_id, item_id);1918 } else {1919 <ReFungibleItemList<T>>::insert(collection_id, item_id, token);1920 }19211922 Ok(())1923 }19241925 fn burn_nft_item(collection: &CollectionHandle<T>, item_id: TokenId) -> DispatchResult {1926 let collection_id = collection.id;19271928 let item =1929 <NftItemList<T>>::get(collection_id, item_id).ok_or(Error::<T>::TokenNotFound)?;1930 Self::remove_token_index(collection, item_id, &item.owner)?;19311932 // update balance1933 let new_balance = <Balance<T>>::get(collection_id, item.owner.as_sub())1934 .checked_sub(1)1935 .ok_or(Error::<T>::NumOverflow)?;1936 <Balance<T>>::insert(collection_id, item.owner.as_sub(), new_balance);1937 <NftItemList<T>>::remove(collection_id, item_id);1938 <VariableMetaDataBasket<T>>::remove(collection_id, item_id);19391940 collection.log(ERC721Events::Transfer {1941 from: *item.owner.as_eth(),1942 to: H160::default(),1943 token_id: item_id.into(),1944 })?;1945 Self::deposit_event(RawEvent::ItemDestroyed(collection.id, item_id));1946 Ok(())1947 }19481949 fn burn_fungible_item(1950 owner: &T::CrossAccountId,1951 collection: &CollectionHandle<T>,1952 value: u128,1953 ) -> DispatchResult {1954 let collection_id = collection.id;19551956 let mut balance = <FungibleItemList<T>>::get(collection_id, owner.as_sub());1957 ensure!(balance.value >= value, Error::<T>::TokenValueNotEnough);19581959 // update balance1960 let new_balance = <Balance<T>>::get(collection_id, owner.as_sub())1961 .checked_sub(value)1962 .ok_or(Error::<T>::NumOverflow)?;1963 <Balance<T>>::insert(collection_id, owner.as_sub(), new_balance);19641965 if balance.value - value > 0 {1966 balance.value -= value;1967 <FungibleItemList<T>>::insert(collection_id, owner.as_sub(), balance);1968 } else {1969 <FungibleItemList<T>>::remove(collection_id, owner.as_sub());1970 }19711972 collection.log(ERC20Events::Transfer {1973 from: *owner.as_eth(),1974 to: H160::default(),1975 value: value.into(),1976 })?;1977 Ok(())1978 }19791980 pub fn get_collection(1981 collection_id: CollectionId,1982 ) -> Result<CollectionHandle<T>, sp_runtime::DispatchError> {1983 Ok(<CollectionHandle<T>>::get(collection_id).ok_or(Error::<T>::CollectionNotFound)?)1984 }19851986 fn check_owner_permissions(1987 target_collection: &CollectionHandle<T>,1988 subject: &T::AccountId,1989 ) -> DispatchResult {1990 ensure!(1991 *subject == target_collection.owner,1992 Error::<T>::NoPermission1993 );19941995 Ok(())1996 }19971998 fn is_owner_or_admin_permissions(1999 collection: &CollectionHandle<T>,2000 subject: &T::CrossAccountId,2001 ) -> Result<bool, DispatchError> {2002 collection.consume_sload()?;2003 Ok(*subject.as_sub() == collection.owner2004 || <AdminList<T>>::get(collection.id).contains(subject))2005 }20062007 fn check_owner_or_admin_permissions(2008 collection: &CollectionHandle<T>,2009 subject: &T::CrossAccountId,2010 ) -> DispatchResult {2011 ensure!(2012 Self::is_owner_or_admin_permissions(collection, subject)?,2013 Error::<T>::NoPermission2014 );20152016 Ok(())2017 }20182019 fn owned_amount(2020 subject: &T::CrossAccountId,2021 collection: &CollectionHandle<T>,2022 item_id: TokenId,2023 ) -> Result<Option<u128>, DispatchError> {2024 collection.consume_sload()?;2025 Ok(Self::owned_amount_unchecked(subject, collection, item_id))2026 }20272028 fn owned_amount_unchecked(2029 subject: &T::CrossAccountId,2030 target_collection: &CollectionHandle<T>,2031 item_id: TokenId,2032 ) -> Option<u128> {2033 let collection_id = target_collection.id;20342035 match target_collection.mode {2036 CollectionMode::NFT => {2037 (<NftItemList<T>>::get(collection_id, item_id)?.owner == *subject).then(|| 1)2038 }2039 CollectionMode::Fungible(_) => {2040 Some(<FungibleItemList<T>>::get(collection_id, &subject.as_sub()).value)2041 }2042 CollectionMode::ReFungible => <ReFungibleItemList<T>>::get(collection_id, item_id)?2043 .owner2044 .iter()2045 .find(|i| i.owner == *subject)2046 .map(|i| i.fraction),2047 }2048 }20492050 fn is_item_owner(2051 subject: &T::CrossAccountId,2052 target_collection: &CollectionHandle<T>,2053 item_id: TokenId,2054 ) -> Result<bool, DispatchError> {2055 Ok(match target_collection.mode {2056 CollectionMode::Fungible(_) => true,2057 _ => Self::owned_amount(subject, target_collection, item_id)?.is_some(),2058 })2059 }20602061 fn check_white_list(2062 collection: &CollectionHandle<T>,2063 address: &T::CrossAccountId,2064 ) -> DispatchResult {2065 collection.consume_sload()?;2066 ensure!(2067 <WhiteList<T>>::contains_key(collection.id, address.as_sub()),2068 Error::<T>::AddresNotInWhiteList,2069 );2070 Ok(())2071 }20722073 /// Check if token exists. In case of Fungible, check if there is an entry for2074 /// the owner in fungible balances double map2075 fn token_exists(target_collection: &CollectionHandle<T>, item_id: TokenId) -> DispatchResult {2076 let collection_id = target_collection.id;2077 let exists = match target_collection.mode {2078 CollectionMode::NFT => <NftItemList<T>>::contains_key(collection_id, item_id),2079 CollectionMode::Fungible(_) => true,2080 CollectionMode::ReFungible => {2081 <ReFungibleItemList<T>>::contains_key(collection_id, item_id)2082 }2083 };20842085 ensure!(exists, Error::<T>::TokenNotFound);2086 Ok(())2087 }20882089 fn transfer_fungible(2090 collection: &CollectionHandle<T>,2091 value: u128,2092 owner: &T::CrossAccountId,2093 recipient: &T::CrossAccountId,2094 ) -> DispatchResult {2095 let collection_id = collection.id;20962097 collection.consume_sload()?;2098 collection.consume_sload()?;2099 let mut recipient_balance = <FungibleItemList<T>>::get(collection_id, recipient.as_sub());2100 let mut balance = <FungibleItemList<T>>::get(collection_id, owner.as_sub());21012102 recipient_balance.value = recipient_balance2103 .value2104 .checked_add(value)2105 .ok_or(Error::<T>::NumOverflow)?;2106 balance.value = balance2107 .value2108 .checked_sub(value)2109 .ok_or(Error::<T>::TokenValueTooLow)?;21102111 // update balanceOf2112 collection.consume_sstore()?;2113 collection.consume_sstore()?;2114 if balance.value != 0 {2115 <Balance<T>>::insert(collection_id, owner.as_sub(), balance.value);2116 } else {2117 <Balance<T>>::remove(collection_id, owner.as_sub());2118 }2119 <Balance<T>>::insert(collection_id, recipient.as_sub(), recipient_balance.value);21202121 // Reduce or remove sender2122 collection.consume_sstore()?;2123 collection.consume_sstore()?;2124 if balance.value != 0 {2125 <FungibleItemList<T>>::insert(collection_id, owner.as_sub(), balance);2126 } else {2127 <FungibleItemList<T>>::remove(collection_id, owner.as_sub());2128 }2129 <FungibleItemList<T>>::insert(collection_id, recipient.as_sub(), recipient_balance);21302131 collection.log(ERC20Events::Transfer {2132 from: *owner.as_eth(),2133 to: *recipient.as_eth(),2134 value: value.into(),2135 })?;2136 Self::deposit_event(RawEvent::Transfer(2137 collection.id,2138 1,2139 owner.clone(),2140 recipient.clone(),2141 value,2142 ));21432144 Ok(())2145 }21462147 fn transfer_refungible(2148 collection: &CollectionHandle<T>,2149 item_id: TokenId,2150 value: u128,2151 owner: T::CrossAccountId,2152 new_owner: T::CrossAccountId,2153 ) -> DispatchResult {2154 let collection_id = collection.id;2155 collection.consume_sload()?;2156 let full_item = <ReFungibleItemList<T>>::get(collection_id, item_id)2157 .ok_or(Error::<T>::TokenNotFound)?;21582159 let item = full_item2160 .owner2161 .iter()2162 .find(|i| i.owner == owner)2163 .ok_or(Error::<T>::TokenNotFound)?;2164 let amount = item.fraction;21652166 ensure!(amount >= value, Error::<T>::TokenValueTooLow);21672168 collection.consume_sload()?;2169 // update balance2170 let balance_old_owner = <Balance<T>>::get(collection_id, item.owner.as_sub())2171 .checked_sub(value)2172 .ok_or(Error::<T>::NumOverflow)?;2173 collection.consume_sstore()?;2174 <Balance<T>>::insert(collection_id, item.owner.as_sub(), balance_old_owner);21752176 collection.consume_sload()?;2177 let balance_new_owner = <Balance<T>>::get(collection_id, new_owner.as_sub())2178 .checked_add(value)2179 .ok_or(Error::<T>::NumOverflow)?;2180 collection.consume_sstore()?;2181 <Balance<T>>::insert(collection_id, new_owner.as_sub(), balance_new_owner);21822183 let old_owner = item.owner.clone();2184 let new_owner_has_account = full_item.owner.iter().any(|i| i.owner == new_owner);21852186 let mut new_full_item = full_item.clone();2187 // transfer2188 if amount == value && !new_owner_has_account {2189 // change owner2190 // new owner do not have account2191 new_full_item2192 .owner2193 .iter_mut()2194 .find(|i| i.owner == owner)2195 .expect("old owner does present in refungible")2196 .owner = new_owner.clone();2197 collection.consume_sstore()?;2198 <ReFungibleItemList<T>>::insert(collection_id, item_id, new_full_item);21992200 // update index collection2201 Self::move_token_index(collection, item_id, &old_owner, &new_owner)?;2202 } else {2203 new_full_item2204 .owner2205 .iter_mut()2206 .find(|i| i.owner == owner)2207 .expect("old owner does present in refungible")2208 .fraction -= value;22092210 // separate amount2211 if new_owner_has_account {2212 // new owner has account2213 new_full_item2214 .owner2215 .iter_mut()2216 .find(|i| i.owner == new_owner)2217 .expect("new owner has account")2218 .fraction += value;2219 } else {2220 // new owner do not have account2221 new_full_item.owner.push(Ownership {2222 owner: new_owner.clone(),2223 fraction: value,2224 });2225 Self::add_token_index(collection, item_id, &new_owner)?;2226 }22272228 collection.consume_sstore()?;2229 <ReFungibleItemList<T>>::insert(collection_id, item_id, new_full_item);2230 }22312232 Self::deposit_event(RawEvent::Transfer(2233 collection.id,2234 item_id,2235 owner,2236 new_owner,2237 amount,2238 ));22392240 Ok(())2241 }22422243 fn transfer_nft(2244 collection: &CollectionHandle<T>,2245 item_id: TokenId,2246 sender: T::CrossAccountId,2247 new_owner: T::CrossAccountId,2248 ) -> DispatchResult {2249 let collection_id = collection.id;2250 collection.consume_sload()?;2251 let mut item =2252 <NftItemList<T>>::get(collection_id, item_id).ok_or(Error::<T>::TokenNotFound)?;22532254 ensure!(sender == item.owner, Error::<T>::MustBeTokenOwner);22552256 collection.consume_sload()?;2257 // update balance2258 let balance_old_owner = <Balance<T>>::get(collection_id, item.owner.as_sub())2259 .checked_sub(1)2260 .ok_or(Error::<T>::NumOverflow)?;2261 collection.consume_sstore()?;2262 <Balance<T>>::insert(collection_id, item.owner.as_sub(), balance_old_owner);22632264 collection.consume_sload()?;2265 let balance_new_owner = <Balance<T>>::get(collection_id, new_owner.as_sub())2266 .checked_add(1)2267 .ok_or(Error::<T>::NumOverflow)?;2268 collection.consume_sstore()?;2269 <Balance<T>>::insert(collection_id, new_owner.as_sub(), balance_new_owner);22702271 // change owner2272 let old_owner = item.owner.clone();2273 item.owner = new_owner.clone();2274 collection.consume_sstore()?;2275 <NftItemList<T>>::insert(collection_id, item_id, item);22762277 // update index collection2278 Self::move_token_index(collection, item_id, &old_owner, &new_owner)?;22792280 collection.log(ERC721Events::Transfer {2281 from: *sender.as_eth(),2282 to: *new_owner.as_eth(),2283 token_id: item_id.into(),2284 })?;2285 Self::deposit_event(RawEvent::Transfer(2286 collection.id,2287 item_id,2288 sender,2289 new_owner,2290 1,2291 ));22922293 Ok(())2294 }22952296 fn set_re_fungible_variable_data(2297 collection: &CollectionHandle<T>,2298 item_id: TokenId,2299 data: Vec<u8>,2300 ) -> DispatchResult {2301 let collection_id = collection.id;2302 let mut item = <ReFungibleItemList<T>>::get(collection_id, item_id)2303 .ok_or(Error::<T>::TokenNotFound)?;23042305 item.variable_data = data;23062307 <ReFungibleItemList<T>>::insert(collection_id, item_id, item);23082309 Ok(())2310 }23112312 fn set_nft_variable_data(2313 collection: &CollectionHandle<T>,2314 item_id: TokenId,2315 data: Vec<u8>,2316 ) -> DispatchResult {2317 let collection_id = collection.id;2318 let mut item =2319 <NftItemList<T>>::get(collection_id, item_id).ok_or(Error::<T>::TokenNotFound)?;23202321 item.variable_data = data;23222323 <NftItemList<T>>::insert(collection_id, item_id, item);23242325 Ok(())2326 }23272328 #[allow(dead_code)]2329 fn init_collection(item: &Collection<T>) {2330 // check params2331 assert!(2332 item.decimal_points <= MAX_DECIMAL_POINTS,2333 "decimal_points parameter must be lower than MAX_DECIMAL_POINTS"2334 );2335 assert!(2336 item.name.len() <= 64,2337 "Collection name can not be longer than 63 char"2338 );2339 assert!(2340 item.name.len() <= 256,2341 "Collection description can not be longer than 255 char"2342 );2343 assert!(2344 item.token_prefix.len() <= 16,2345 "Token prefix can not be longer than 15 char"2346 );23472348 // Generate next collection ID2349 let next_id = CreatedCollectionCount::get().checked_add(1).unwrap();23502351 CreatedCollectionCount::put(next_id);2352 }23532354 #[allow(dead_code)]2355 fn init_nft_token(collection_id: CollectionId, item: &NftItemType<T::CrossAccountId>) {2356 let current_index = <ItemListIndex>::get(collection_id).checked_add(1).unwrap();23572358 Self::add_token_index(2359 &CollectionHandle::get(collection_id).unwrap(),2360 current_index,2361 &item.owner,2362 )2363 .unwrap();23642365 <ItemListIndex>::insert(collection_id, current_index);23662367 // Update balance2368 let new_balance = <Balance<T>>::get(collection_id, item.owner.as_sub())2369 .checked_add(1)2370 .unwrap();2371 <Balance<T>>::insert(collection_id, item.owner.as_sub(), new_balance);2372 }23732374 #[allow(dead_code)]2375 fn init_fungible_token(2376 collection_id: CollectionId,2377 owner: &T::CrossAccountId,2378 item: &FungibleItemType,2379 ) {2380 let current_index = <ItemListIndex>::get(collection_id).checked_add(1).unwrap();23812382 Self::add_token_index(2383 &CollectionHandle::get(collection_id).unwrap(),2384 current_index,2385 owner,2386 )2387 .unwrap();23882389 <ItemListIndex>::insert(collection_id, current_index);23902391 // Update balance2392 let new_balance = <Balance<T>>::get(collection_id, owner.as_sub())2393 .checked_add(item.value)2394 .unwrap();2395 <Balance<T>>::insert(collection_id, owner.as_sub(), new_balance);2396 }23972398 #[allow(dead_code)]2399 fn init_refungible_token(2400 collection_id: CollectionId,2401 item: &ReFungibleItemType<T::CrossAccountId>,2402 ) {2403 let current_index = <ItemListIndex>::get(collection_id).checked_add(1).unwrap();24042405 let value = item.owner.first().unwrap().fraction;2406 let owner = item.owner.first().unwrap().owner.clone();24072408 Self::add_token_index(2409 &CollectionHandle::get(collection_id).unwrap(),2410 current_index,2411 &owner,2412 )2413 .unwrap();24142415 <ItemListIndex>::insert(collection_id, current_index);24162417 // Update balance2418 let new_balance = <Balance<T>>::get(collection_id, &owner.as_sub())2419 .checked_add(value)2420 .unwrap();2421 <Balance<T>>::insert(collection_id, owner.as_sub(), new_balance);2422 }24232424 fn add_token_index(2425 collection: &CollectionHandle<T>,2426 item_index: TokenId,2427 owner: &T::CrossAccountId,2428 ) -> DispatchResult {2429 collection.consume_sload()?;2430 let list_exists = <AddressTokens<T>>::contains_key(collection.id, owner.as_sub());2431 if list_exists {2432 collection.consume_sload()?;2433 let mut list = <AddressTokens<T>>::get(collection.id, owner.as_sub());24342435 // bound Owned tokens by a single address in collection2436 let account_items: u32 = list.len() as u32;2437 ensure!(2438 account_items < ACCOUNT_TOKEN_OWNERSHIP_LIMIT,2439 Error::<T>::AddressOwnershipLimitExceeded2440 );24412442 let item_contains = list.contains(&item_index.clone());24432444 if !item_contains {2445 list.push(item_index);2446 }24472448 collection.consume_sstore()?;2449 <AddressTokens<T>>::insert(collection.id, owner.as_sub(), list);2450 } else {2451 let itm = vec![item_index];2452 collection.consume_sstore()?;2453 <AddressTokens<T>>::insert(collection.id, owner.as_sub(), itm);2454 }24552456 Ok(())2457 }24582459 fn remove_token_index(2460 collection: &CollectionHandle<T>,2461 item_index: TokenId,2462 owner: &T::CrossAccountId,2463 ) -> DispatchResult {2464 collection.consume_sload()?;2465 let list_exists = <AddressTokens<T>>::contains_key(collection.id, owner.as_sub());2466 if list_exists {2467 collection.consume_sload()?;2468 let mut list = <AddressTokens<T>>::get(collection.id, owner.as_sub());2469 let item_contains = list.contains(&item_index.clone());24702471 if item_contains {2472 list.retain(|&item| item != item_index);2473 collection.consume_sstore()?;2474 <AddressTokens<T>>::insert(collection.id, owner.as_sub(), list);2475 }2476 }24772478 Ok(())2479 }24802481 fn move_token_index(2482 collection: &CollectionHandle<T>,2483 item_index: TokenId,2484 old_owner: &T::CrossAccountId,2485 new_owner: &T::CrossAccountId,2486 ) -> DispatchResult {2487 Self::remove_token_index(collection, item_index, old_owner)?;2488 Self::add_token_index(collection, item_index, new_owner)?;24892490 Ok(())2491 }2492}24932494sp_api::decl_runtime_apis! {2495 pub trait NftApi {2496 /// Used for ethereum integration2497 fn eth_contract_code(account: H160) -> Option<Vec<u8>>;2498 }2499}pallets/nft/src/sponsorship.rsdiffbeforeafterboth--- a/pallets/nft/src/sponsorship.rs
+++ b/pallets/nft/src/sponsorship.rs
@@ -196,15 +196,21 @@
{
fn get_sponsor(who: &T::AccountId, call: &C) -> Option<T::AccountId> {
match IsSubType::<Call<T>>::is_sub_type(call)? {
- Call::create_item(collection_id, _owner, properties) => {
- Self::withdraw_create_item(who, collection_id, properties)
- }
- Call::transfer(_new_owner, collection_id, item_id, _value) => {
- Self::withdraw_transfer(who, collection_id, item_id)
- }
- Call::set_variable_meta_data(collection_id, item_id, data) => {
- Self::withdraw_set_variable_meta_data(collection_id, item_id, data)
- }
+ Call::create_item {
+ collection_id,
+ data,
+ ..
+ } => Self::withdraw_create_item(who, collection_id, data),
+ Call::transfer {
+ collection_id,
+ item_id,
+ ..
+ } => Self::withdraw_transfer(who, collection_id, item_id),
+ Call::set_variable_meta_data {
+ collection_id,
+ item_id,
+ data,
+ } => Self::withdraw_set_variable_meta_data(collection_id, item_id, data),
_ => None,
}
}
pallets/scheduler/Cargo.tomldiffbeforeafterboth--- a/pallets/scheduler/Cargo.toml
+++ b/pallets/scheduler/Cargo.toml
@@ -12,19 +12,20 @@
[dependencies]
serde = { version = "1.0.130", default-features = false }
codec = { package = "parity-scale-codec", version = "2.3.0", default-features = false }
-frame-support = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-frame-system = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-runtime = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-std = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-io = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-frame-benchmarking = { default-features = false, version = '4.0.0-dev', optional = true, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
+scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
+frame-support = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+frame-system = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-runtime = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-std = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-io = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+frame-benchmarking = { default-features = false, version = '4.0.0-dev', optional = true, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
up-sponsorship = { default-features = false, path = "../../primitives/sponsorship", version = "0.1.0" }
log = { version = "0.4.14", default-features = false }
[dev-dependencies]
-sp-core = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-substrate-test-utils = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
+sp-core = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+substrate-test-utils = { version = "4.0.0-dev", git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
[features]
default = ["std"]
pallets/scheduler/src/lib.rsdiffbeforeafterboth--- a/pallets/scheduler/src/lib.rs
+++ b/pallets/scheduler/src/lib.rs
@@ -74,6 +74,7 @@
use frame_system::{self as system, ensure_signed};
pub use weights::WeightInfo;
use up_sponsorship::SponsorshipHandler;
+use scale_info::TypeInfo;
/// Our pallet's configuration trait. All our types and constants go in here. If the
/// pallet is dependent on specific other pallets, then their configuration traits
@@ -91,7 +92,7 @@
+ IsType<<Self as system::Config>::Origin>;
/// The caller origin, overarching type of all pallets origins.
- type PalletsOrigin: From<system::RawOrigin<Self::AccountId>> + Codec + Clone + Eq;
+ type PalletsOrigin: From<system::RawOrigin<Self::AccountId>> + Codec + TypeInfo + Clone + Eq;
/// The aggregated call type.
type Call: Parameter
@@ -135,7 +136,7 @@
/// Information regarding an item to be executed in the future.
#[cfg_attr(any(feature = "std", test), derive(PartialEq, Eq))]
-#[derive(Clone, RuntimeDebug, Encode, Decode)]
+#[derive(Clone, RuntimeDebug, Encode, Decode, TypeInfo)]
pub struct ScheduledV2<Call, BlockNumber, PalletsOrigin, AccountId> {
/// The unique identity for this task, if there is one.
maybe_id: Option<Vec<u8>>,
@@ -157,7 +158,7 @@
// A value placed in storage that represents the current version of the Scheduler storage.
// This value is used by the `on_runtime_upgrade` logic to determine whether we run
// storage migration logic.
-#[derive(Encode, Decode, Clone, Copy, PartialEq, Eq, RuntimeDebug)]
+#[derive(Encode, Decode, Clone, Copy, PartialEq, Eq, RuntimeDebug, TypeInfo)]
enum Releases {
V1,
V2,
@@ -169,7 +170,7 @@
}
}
-#[derive(Encode, Decode, Clone, PartialEq, Eq, RuntimeDebug)]
+#[derive(Encode, Decode, Clone, PartialEq, Eq, RuntimeDebug, TypeInfo)]
pub struct CallSpec {
module: u32,
method: u32,
primitives/nft/Cargo.tomldiffbeforeafterboth--- a/primitives/nft/Cargo.toml
+++ b/primitives/nft/Cargo.toml
@@ -9,17 +9,18 @@
version = '0.9.0'
[dependencies]
+scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
codec = { package = "parity-scale-codec", version = "2.3.0", default-features = false, features = [
'derive',
] }
serde = { version = "1.0.130", features = [
'derive',
], default-features = false, optional = true }
-frame-support = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-frame-system = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-core = { version = "4.0.0-dev", default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-std = { version = "4.0.0-dev", default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
-sp-runtime = { version = "4.0.0-dev", default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.10' }
+frame-support = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+frame-system = { default-features = false, version = '4.0.0-dev', git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-core = { version = "4.0.0-dev", default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-std = { version = "4.0.0-dev", default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
+sp-runtime = { version = "4.0.0-dev", default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.11' }
derivative = "2.2.0"
[features]
primitives/nft/src/lib.rsdiffbeforeafterboth--- a/primitives/nft/src/lib.rs
+++ b/primitives/nft/src/lib.rs
@@ -21,6 +21,7 @@
StorageValue, transactional,
};
use derivative::Derivative;
+use scale_info::TypeInfo;
pub const MAX_DECIMAL_POINTS: DecimalPoints = 30;
pub const MAX_REFUNGIBLE_PIECES: u128 = 1_000_000_000_000_000_000_000;
@@ -70,7 +71,7 @@
pub type TokenId = u32;
pub type DecimalPoints = u8;
-#[derive(Encode, Decode, Eq, Debug, Clone, PartialEq)]
+#[derive(Encode, Decode, Eq, Debug, Clone, PartialEq, TypeInfo)]
#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]
pub enum CollectionMode {
NFT,
@@ -93,7 +94,7 @@
fn resolve(who: &AccountId, call: &Call) -> Option<AccountId>;
}
-#[derive(Encode, Decode, Eq, Debug, Clone, PartialEq)]
+#[derive(Encode, Decode, Eq, Debug, Clone, PartialEq, TypeInfo)]
#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]
pub enum AccessMode {
Normal,
@@ -105,7 +106,7 @@
}
}
-#[derive(Encode, Decode, Eq, Debug, Clone, PartialEq)]
+#[derive(Encode, Decode, Eq, Debug, Clone, PartialEq, TypeInfo)]
#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]
pub enum SchemaVersion {
ImageURL,
@@ -117,14 +118,14 @@
}
}
-#[derive(Encode, Decode, Default, Debug, Clone, PartialEq)]
+#[derive(Encode, Decode, Default, Debug, Clone, PartialEq, TypeInfo)]
#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]
pub struct Ownership<AccountId> {
pub owner: AccountId,
pub fraction: u128,
}
-#[derive(Encode, Decode, Debug, Clone, PartialEq)]
+#[derive(Encode, Decode, Debug, Clone, PartialEq, TypeInfo)]
#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]
pub enum SponsorshipState<AccountId> {
/// The fees are applied to the transaction sender
@@ -160,7 +161,7 @@
}
}
-#[derive(Encode, Decode, Clone, PartialEq)]
+#[derive(Encode, Decode, Clone, PartialEq, TypeInfo)]
#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]
pub struct Collection<T: frame_system::Config> {
pub owner: T::AccountId,
@@ -181,7 +182,7 @@
pub transfers_enabled: bool,
}
-#[derive(Encode, Decode, Debug, Clone, PartialEq)]
+#[derive(Encode, Decode, Debug, Clone, PartialEq, TypeInfo)]
#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]
pub struct NftItemType<AccountId> {
pub owner: AccountId,
@@ -189,13 +190,13 @@
pub variable_data: Vec<u8>,
}
-#[derive(Encode, Decode, Default, Debug, Clone, PartialEq)]
+#[derive(Encode, Decode, Default, Debug, Clone, PartialEq, TypeInfo)]
#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]
pub struct FungibleItemType {
pub value: u128,
}
-#[derive(Encode, Decode, Debug, Clone, PartialEq)]
+#[derive(Encode, Decode, Debug, Clone, PartialEq, TypeInfo)]
#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]
pub struct ReFungibleItemType<AccountId> {
pub owner: Vec<Ownership<AccountId>>,
@@ -203,7 +204,7 @@
pub variable_data: Vec<u8>,
}
-#[derive(Encode, Decode, Debug, Clone, PartialEq)]
+#[derive(Encode, Decode, Debug, Clone, PartialEq, TypeInfo)]
#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]
pub struct CollectionLimits<BlockNumber: Encode + Decode> {
pub account_token_ownership_limit: u32,
@@ -267,7 +268,7 @@
}
}
-#[derive(Encode, Decode, MaxEncodedLen, Default, PartialEq, Clone, Derivative)]
+#[derive(Encode, Decode, MaxEncodedLen, Default, PartialEq, Clone, Derivative, TypeInfo)]
#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]
#[derivative(Debug)]
pub struct CreateNftData {
@@ -279,13 +280,13 @@
pub variable_data: BoundedVec<u8, CustomDataLimit>,
}
-#[derive(Encode, Decode, MaxEncodedLen, Default, Debug, Clone, PartialEq)]
+#[derive(Encode, Decode, MaxEncodedLen, Default, Debug, Clone, PartialEq, TypeInfo)]
#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]
pub struct CreateFungibleData {
pub value: u128,
}
-#[derive(Encode, Decode, MaxEncodedLen, Default, PartialEq, Clone, Derivative)]
+#[derive(Encode, Decode, MaxEncodedLen, Default, PartialEq, Clone, Derivative, TypeInfo)]
#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]
#[derivative(Debug)]
pub struct CreateReFungibleData {
@@ -298,7 +299,7 @@
pub pieces: u128,
}
-#[derive(Encode, Decode, Debug, Clone, PartialEq)]
+#[derive(Encode, Decode, Debug, Clone, PartialEq, TypeInfo)]
#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
pub enum MetaUpdatePermission {
ItemOwner,
@@ -312,7 +313,7 @@
}
}
-#[derive(Encode, Decode, MaxEncodedLen, PartialEq, Clone, Debug)]
+#[derive(Encode, Decode, MaxEncodedLen, PartialEq, Clone, Debug, TypeInfo)]
#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]
pub enum CreateItemData {
NFT(CreateNftData),
runtime/Cargo.tomldiffbeforeafterboth--- a/runtime/Cargo.toml
+++ b/runtime/Cargo.toml
@@ -103,38 +103,38 @@
default-features = false
git = 'https://github.com/paritytech/substrate.git'
optional = true
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.frame-executive]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.frame-support]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.frame-system]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.frame-system-benchmarking]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
optional = true
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.frame-system-rpc-runtime-api]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.hex-literal]
@@ -150,13 +150,13 @@
[dependencies.pallet-aura]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.pallet-balances]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
# Contracts specific packages
@@ -181,121 +181,121 @@
[dependencies.pallet-randomness-collective-flip]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.pallet-sudo]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.pallet-timestamp]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.pallet-transaction-payment]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.pallet-transaction-payment-rpc-runtime-api]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.pallet-treasury]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.pallet-vesting]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-arithmetic]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-api]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-block-builder]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-core]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-consensus-aura]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '0.10.0-dev'
[dependencies.sp-inherents]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-io]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-offchain]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-runtime]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-session]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-std]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-transaction-pool]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.sp-version]
default-features = false
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '4.0.0-dev'
[dependencies.smallvec]
@@ -307,47 +307,47 @@
[dependencies.parachain-info]
default-features = false
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '0.1.0'
[dependencies.cumulus-pallet-aura-ext]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
default-features = false
[dependencies.cumulus-pallet-parachain-system]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
default-features = false
[dependencies.cumulus-primitives-core]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
default-features = false
[dependencies.cumulus-pallet-xcm]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
default-features = false
[dependencies.cumulus-pallet-dmp-queue]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
default-features = false
[dependencies.cumulus-pallet-xcmp-queue]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
default-features = false
[dependencies.cumulus-primitives-utility]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
default-features = false
[dependencies.cumulus-primitives-timestamp]
git = 'https://github.com/paritytech/cumulus.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
default-features = false
################################################################################
@@ -355,27 +355,27 @@
[dependencies.polkadot-parachain]
git = 'https://github.com/paritytech/polkadot'
-branch = 'release-v0.9.10'
+branch = 'release-v0.9.11'
default-features = false
[dependencies.xcm]
git = 'https://github.com/paritytech/polkadot'
-branch = 'release-v0.9.10'
+branch = 'release-v0.9.11'
default-features = false
[dependencies.xcm-builder]
git = 'https://github.com/paritytech/polkadot'
-branch = 'release-v0.9.10'
+branch = 'release-v0.9.11'
default-features = false
[dependencies.xcm-executor]
git = 'https://github.com/paritytech/polkadot'
-branch = 'release-v0.9.10'
+branch = 'release-v0.9.11'
default-features = false
[dependencies.pallet-xcm]
git = 'https://github.com/paritytech/polkadot'
-branch = 'release-v0.9.10'
+branch = 'release-v0.9.11'
default-features = false
@@ -383,6 +383,7 @@
# local dependencies
[dependencies]
+scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
derivative = "2.2.0"
pallet-nft = { path = '../pallets/nft', default-features = false, version = '3.0.0' }
pallet-inflation = { path = '../pallets/inflation', default-features = false, version = '3.0.0' }
@@ -396,14 +397,14 @@
pallet-evm-transaction-payment = { path = '../pallets/evm-transaction-payment', default-features = false }
pallet-evm-coder-substrate = { default-features = false, path = "../pallets/evm-coder-substrate" }
-pallet-evm = { default-features = false, version = "6.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }
-pallet-ethereum = { default-features = false, version = "4.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }
-fp-rpc = { default-features = false, version = "3.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.10" }
+pallet-evm = { default-features = false, version = "6.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
+pallet-ethereum = { default-features = false, version = "4.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
+fp-rpc = { default-features = false, version = "3.0.0-dev", git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.11" }
################################################################################
# Build Dependencies
[build-dependencies.substrate-wasm-builder]
git = 'https://github.com/paritytech/substrate.git'
-branch = 'polkadot-v0.9.10'
+branch = 'polkadot-v0.9.11'
version = '5.0.0-dev'
runtime/src/lib.rsdiffbeforeafterboth--- a/runtime/src/lib.rs
+++ b/runtime/src/lib.rs
@@ -439,6 +439,9 @@
parameter_types! {
pub const TransactionByteFee: Balance = 501 * MICROUNIQUE; // Targeting 0.1 Unique per NFT transfer
+ /// This value increases the priority of `Operational` transactions by adding
+ /// a "virtual tip" that's equal to the `OperationalFeeMultiplier * final_fee`.
+ pub const OperationalFeeMultiplier: u8 = 5;
}
/// Linear implementor of `WeightToFeePolynomial`
@@ -463,6 +466,7 @@
impl pallet_transaction_payment::Config for Runtime {
type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter<Balances, DealWithFees>;
type TransactionByteFee = TransactionByteFee;
+ type OperationalFeeMultiplier = OperationalFeeMultiplier;
type WeightToFee = LinearFee<Balance>;
type FeeMultiplierUpdate = ();
}
@@ -518,6 +522,7 @@
type BlockNumberToBalance = ConvertInto;
type MinVestedTransfer = MinVestedTransfer;
type WeightInfo = ();
+ const MAX_VESTING_SCHEDULES: u32 = 28;
}
parameter_types! {
@@ -607,6 +612,8 @@
pub UnitWeightCost: Weight = 1_000_000;
// 1200 UNIQUEs buy 1 second of weight.
pub const WeightPrice: (MultiLocation, u128) = (MultiLocation::parent(), 1_200 * UNIQUE);
+ pub const MaxInstructions: u32 = 100;
+ pub const MaxAuthorities: u32 = 100_000;
}
match_type! {
@@ -634,10 +641,13 @@
type IsTeleporter = (); // Teleportation is disabled
type LocationInverter = LocationInverter<Ancestry>;
type Barrier = Barrier;
- type Weigher = FixedWeightBounds<UnitWeightCost, Call>;
+ type Weigher = FixedWeightBounds<UnitWeightCost, Call, MaxInstructions>;
type Trader = UsingComponents<IdentityFee<Balance>, RelayLocation, AccountId, Balances, ()>;
type ResponseHandler = (); // Don't handle responses for now.
type SubscriptionService = PolkadotXcm;
+
+ type AssetTrap = PolkadotXcm;
+ type AssetClaims = PolkadotXcm;
}
// parameter_types! {
@@ -668,9 +678,13 @@
type XcmExecuteFilter = Everything;
type XcmExecutor = XcmExecutor<XcmConfig>;
type XcmTeleportFilter = Everything;
- type XcmReserveTransferFilter = ();
- type Weigher = FixedWeightBounds<UnitWeightCost, Call>;
+ type XcmReserveTransferFilter = Everything;
+ type Weigher = FixedWeightBounds<UnitWeightCost, Call, MaxInstructions>;
type LocationInverter = LocationInverter<Ancestry>;
+ type Origin = Origin;
+ type Call = Call;
+ const VERSION_DISCOVERY_QUEUE_SIZE: u32 = 100;
+ type AdvertisedXcmVersion = pallet_xcm::CurrentXcmVersion;
}
impl cumulus_pallet_xcm::Config for Runtime {
@@ -694,6 +708,7 @@
impl pallet_aura::Config for Runtime {
type AuthorityId = AuraId;
type DisabledValidators = ();
+ type MaxAuthorities = MaxAuthorities;
}
parameter_types! {
@@ -842,7 +857,7 @@
impl fp_rpc::ConvertTransaction<UncheckedExtrinsic> for TransactionConverter {
fn convert_transaction(&self, transaction: pallet_ethereum::Transaction) -> UncheckedExtrinsic {
UncheckedExtrinsic::new_unsigned(
- pallet_ethereum::Call::<Runtime>::transact(transaction).into(),
+ pallet_ethereum::Call::<Runtime>::transact { transaction }.into(),
)
}
}
@@ -853,7 +868,7 @@
transaction: pallet_ethereum::Transaction,
) -> opaque::UncheckedExtrinsic {
let extrinsic = UncheckedExtrinsic::new_unsigned(
- pallet_ethereum::Call::<Runtime>::transact(transaction).into(),
+ pallet_ethereum::Call::<Runtime>::transact { transaction }.into(),
);
let encoded = extrinsic.encode();
opaque::UncheckedExtrinsic::decode(&mut &encoded[..])
@@ -926,7 +941,7 @@
impl sp_api::Metadata<Block> for Runtime {
fn metadata() -> OpaqueMetadata {
- Runtime::metadata().into()
+ OpaqueMetadata::new(Runtime::metadata().into())
}
}
@@ -1082,7 +1097,7 @@
fn extrinsic_filter(xts: Vec<<Block as sp_api::BlockT>::Extrinsic>) -> Vec<pallet_ethereum::Transaction> {
xts.into_iter().filter_map(|xt| match xt.function {
- Call::Ethereum(pallet_ethereum::Call::transact(t)) => Some(t),
+ Call::Ethereum(pallet_ethereum::Call::transact { transaction }) => Some(transaction),
_ => None
}).collect()
}
@@ -1106,7 +1121,7 @@
}
fn authorities() -> Vec<AuraId> {
- Aura::authorities()
+ Aura::authorities().to_vec()
}
}