difftreelog
Scheduler
in: master
22 files changed
Cargo.lockdiffbeforeafterboth730 packageslockfile v3
Might be heavy and slow!
addr2line
0.14.1crates.io↘ 1↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksuma55f82cfe485775d02112886f4169bde0c5894d75e79ead7eafe7e40a25e45f7depends onadler
0.2.3crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumee2a4ec343196209d6594e19543ae87a39f96d5534d7174822a3ad825dd6ed7eused byaead
0.3.2crates.io↘ 1↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum7fc95d1bdb8e6666b2b217308eeeb09f2d6728d104be3e31916cc74d15420331depends onaes
0.5.0crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumdd2bc6d3f370b5666245ff421e231cba4353df936e26986d2918e61a8fd6aef6depends onused byaes-gcm
0.7.0crates.io↘ 5↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum0301c9e9c443494d970a07885e8cf3e587bae8356a1d5abd0999068413f7205fused byaes-soft
0.5.0crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum63dd91889c49327ad7ef3b500fd1109dbd3c509a03db0d4a9ce413b79f575cb6used byaesni
0.8.0crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum0a6fe808308bb07d393e2ea47780043ec47683fcf19cf5efc8ca51c50cc8c68adepends onused byahash
0.4.7crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum739f4a8db6605981345c5654f3a85b056ce52f37a39d34da03f25bf2151ea16eused byaho-corasick
0.7.15crates.io↘ 1↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum7404febffaa47dac81aa44dba71523c9d069b1bdc50a77db41195149e17f68e5depends onused byansi_term
0.11.0crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979bdepends onused byansi_term
0.12.1crates.io↘ 1↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2depends onanyhow
1.0.38crates.io↘ 0↖ 9sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumafddf7f520a80dbf76e6f50a35bca42a2331ef227a28b3b6dc5c2e2338d114b1approx
0.3.2crates.io↘ 1↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf0e60b75072ecd4168020818c0107f2857bb6c4e64252d8d3983f6263b40a5c3depends onused byarrayref
0.3.6crates.io↘ 0↖ 6sourceregistry+https://github.com/rust-lang/crates.io-indexchecksuma4c527152e37cf757a3f78aae5a06fbeefdb07ccc535c980a3208ee3060dd544arrayvec
0.4.12crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumcd9fd44efafa8690358b7408d253adf110036b88f55672a933f01d616ad9b1b9depends onused byarrayvec
0.5.2crates.io↘ 0↖ 6sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068basn1_der
0.6.3crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum6fce6b6a0ffdafebd82c87e79e3f40e8d2c523e5fea5566ff6b90509bf98d638depends onused byasn1_der_derive
0.1.2crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum0d0864d84b8e07b145449be9a8537db86bf9de5ce03b913214694643b4743502depends onused byasync-channel
1.5.1crates.io↘ 3↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum59740d83946db6a5af71ae25ddf9562c2b176b2ca42cf99a455f09f4a220d6b9async-executor
1.4.0crates.io↘ 6↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumeb877970c7b440ead138f6321a3b5395d6061183af779340b65e20c0fede9146depends onused byasync-global-executor
2.0.2crates.io↘ 8↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum9586ec52317f36de58453159d48351bc244bc24ced3effc1fce22f3d48664af6depends onused byasync-io
1.3.1crates.io↘ 12↖ 6sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum9315f8f07556761c3e48fec2e6b276004acf426e6dc068b2c2251854d65ee0fddepends onasync-lock
2.3.0crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum1996609732bde4a9988bc42125f55f2af5f3c36370e27c778d5191a4a1b63bfbdepends onused byasync-mutex
1.4.0crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum479db852db25d9dbf6204e6cb6253698f175c15726470f78af0d918e99d6156edepends onused byasync-process
1.0.2crates.io↘ 8↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumef37b86e2fa961bae5a4d212708ea0154f904ce31d1a4a7f47e1bbc33a0c040bdepends onused byasync-std
1.9.0crates.io↘ 20↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd9f06685bad74e0570f5213741bea82158279a4103d988e57bfada11ad230341depends on- async-channel
1.5.1 - async-global-executor
2.0.2 - async-io
1.3.1 - async-lock
2.3.0 - async-process
1.0.2 - crossbeam-utils
0.8.1 - futures-channel
0.3.12 - futures-core
0.3.12 - futures-io
0.3.12 - futures-lite
1.11.3 - gloo-timers
0.2.1 - kv-log-macro
1.0.7 - log
0.4.14 - memchr
2.3.4 - num_cpus
1.13.0 - once_cell
1.5.2 - pin-project-lite
0.2.4 - pin-utils
0.1.0 - slab
0.4.2 - wasm-bindgen-futures
0.4.20
- async-channel
async-task
4.0.3crates.io↘ 0↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksume91831deabf0d6d7ec49552e489aed63b7456a7a3c46cff62adad428110b0af0async-trait
0.1.42crates.io↘ 3↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum8d3a45e77e34375a7923b1e8febb049bb011f064714a8e17a1a616fef01da13ddepends onasynchronous-codec
0.5.0crates.io↘ 5↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumfb4401f0a3622dad2e0763fa79e0eb328bc70fb7dccfdd645341f00d671247d6asynchronous-codec
0.6.0crates.io↘ 5↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf0de5164e5edbf51c45fb8c2d9664ae1c095cce1b265ecf7569093c0d66ef690atomic
0.5.0crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumc3410529e8288c463bedb5930f82833bc0c90e5d2fe639a56582a4d09220b281depends onused byatomic-waker
1.0.0crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum065374052e7df7ee4047b1160cca5e1467a12351a40b3da123c870ba0b8eda2aused byatty
0.2.14crates.io↘ 3↖ 5sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8depends onautocfg
1.0.1crates.io↘ 0↖ 14sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumcdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464abacktrace
0.3.56crates.io↘ 6↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum9d117600f438b1707d4e4ae15d3595657288f8235a0eb593e80ecc98ab34e1bcbase-x
0.2.8crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksuma4521f3e3d031370679b3b140beb36dfe4801b09ac77e30c61941f97df3ef28bused bybase58
0.1.0crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum5024ee8015f02155eee35c711107ddd9a9bf3cb689cf2a9089c97e79b6e1ae83used bybase64
0.12.3crates.io↘ 0↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ffused bybase64
0.13.0crates.io↘ 0↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fdbincode
1.3.1crates.io↘ 2↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf30d3a39baa26f9651f17b375061f3233dde33424a8b72b0dbe93a68a0bc896ddepends onbindgen
0.54.0crates.io↘ 16↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum66c0bb6167449588ff70803f4127f0684f9063097eca5016f37eb52b92c2cf36depends onused bybitflags
1.2.1crates.io↘ 0↖ 11sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumcf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693bitvec
0.20.1crates.io↘ 4↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf5011ffc90248764d7005b0e10c7294f5aa1bd87d9dd7248f4ad475b347c294ddepends onused byblake2
0.9.1crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum10a5720225ef5daecf08657f23791354e1685a8c91a4c60c7f3d3b2892f978f4used byblake2-rfc
0.2.18crates.io↘ 2↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum5d6d530bdd2d52966a6d03b7a964add7ae1a288d25214066fd4b600f0f796400depends onblake2b_simd
0.5.11crates.io↘ 3↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumafa748e348ad3be8263be728124b24a24f268266f6f5d58af9d75f6a40b5c587blake2s_simd
0.5.11crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum9e461a7034e85b211a4acb57ee2e6730b32912b06c08cc242243c39fc21ae6a2used byblake3
0.3.7crates.io↘ 7↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksume9ff35b701f3914bdb8fad3368d822c766ef2858b2583198e41639b936f09d3fdepends onused byblock-buffer
0.7.3crates.io↘ 4↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumc0940dc441f31689269e10ac70eb1002a3a1d3ad1390e030043662eb7fe4688bused byblock-buffer
0.9.0crates.io↘ 2↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4depends onused byblock-cipher
0.8.0crates.io↘ 1↖ 5sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf337a3e6da609650eb74e02bc9fac7b735049f7623ab12f2e4c719316fcc7e80depends onblock-padding
0.1.5crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumfa79dedbb091f449f1f39e53edf88d5dbe95f895dae6135a8d7b881fb5af73f5depends onused byblock-padding
0.2.1crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum8d696c370c750c948ada61c69a0ee2cbbb9c50b1019ddb86d9317157a99c2caeused byblocking
1.0.2crates.io↘ 6↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumc5e170dbede1f740736619b776d7251cb1b9095c435c34d8ca9f57fcd2f335e9depends onbs58
0.4.0crates.io↘ 0↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum771fe0050b883fcc3ea2359b1a96bcfbc090b7116eae7c3c512c7a083fdf23d3bstr
0.2.15crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksuma40b47ad93e1a5404e6c18dec46b628214fee441c70f4ab5d6942142cc268a3ddepends onused bybuild-helper
0.1.1crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumbdce191bf3fa4995ce948c8c83b4640a1745457a149e73c6db75b4ffe36aad5fdepends onused bybumpalo
3.6.0crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum099e596ef14349721d9016f6b80dd3419ea1bf289ab9b44df8e4dfd3a005d5d9used bybyte-slice-cast
1.0.0crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum65c1bf4a04a88c54f589125563643d773f3254b5c38571395e2b591c693bbc81used bybyte-tools
0.3.1crates.io↘ 0↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksume3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7byteorder
1.4.2crates.io↘ 0↖ 22sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumae44d1a3d5a19df61dd0c8beb138458ac2a53a7ac09eba97d55592540004306bused by- aes-soft
0.5.0 - bincode
1.3.1 - block-buffer
0.7.3 - bytes
0.4.12 - cranelift-codegen
0.69.0 - cuckoofilter
0.5.0 - curve25519-dalek
2.1.2 - curve25519-dalek
3.0.2 - dns-parser
0.8.0 - fixed-hash
0.7.0 - h2
0.1.26 - libp2p-gossipsub
0.27.0 - merlin
2.0.1 - parity-multiaddr
0.11.1 - parity-wasm
0.32.0 - parity-ws
0.10.0 - pbkdf2
0.3.0 - pwasm-utils
0.14.0 - pwasm-utils
0.16.0 - regex-automata
0.1.9 - sp-core
3.0.0 - uint
0.9.0
- aes-soft
bytes
0.4.12crates.io↘ 3↖ 16sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81cdepends onbytes
0.5.6crates.io↘ 0↖ 8sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum0e4cec68f03f32e44924783795810fa50a7035d8c8ebe78580ad7e6c703fba38bytes
1.0.1crates.io↘ 0↖ 17sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb700ce4376041dcd0a327fd0097c41095743c4c8af8887265942faf1100bd040used by- asynchronous-codec
0.5.0 - asynchronous-codec
0.6.0 - http
0.2.3 - libp2p
0.34.0 - libp2p-gossipsub
0.27.0 - libp2p-kad
0.28.1 - libp2p-mplex
0.27.1 - libp2p-noise
0.29.0 - libp2p-plaintext
0.27.1 - libp2p-request-response
0.9.1 - multistream-select
0.10.1 - prost
0.7.0 - prost-build
0.7.0 - prost-types
0.7.0 - sc-network
0.9.0 - unsigned-varint
0.6.0 - unsigned-varint
0.7.0
- asynchronous-codec
cache-padded
1.1.1crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum631ae5198c9be5e753e5cc215e1bd73c2b466a3565173db433f52bb9d3e66dbaused bycargo_metadata
0.12.3crates.io↘ 5↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum7714a157da7991e23d90686b9524b9e12e0407a108647f52e9328f4b3d51ac7fused bycargo-platform
0.1.1crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum0226944a63d1bf35a3b5f948dd7c59e263db83695c9e8bffc4037de02e30f1d7depends onused bycc
1.0.66crates.io↘ 1↖ 11sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum4c0496836a84f8d0495758516b8621a622beb77c0fed418570e50764093ced48depends oncexpr
0.4.0crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf4aedb84272dbe89af497cf81375129abda4fc0a9e7c5d317498c15cc30c0d27depends onused bycfg-if
0.1.10crates.io↘ 0↖ 11sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822cfg-if
1.0.0crates.io↘ 0↖ 29sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumbaf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fdused by- async-process
1.0.2 - backtrace
0.3.56 - cpp_demangle
0.3.2 - crc32fast
1.2.1 - crossbeam-channel
0.5.0 - crossbeam-deque
0.8.0 - crossbeam-epoch
0.9.1 - crossbeam-utils
0.8.1 - directories-next
2.0.0 - flate2
1.0.20 - getrandom
0.1.16 - getrandom
0.2.2 - instant
0.1.9 - log
0.4.14 - parity-util-mem
0.9.0 - parking_lot_core
0.8.3 - prometheus
0.11.0 - sha-1
0.9.3 - sha2
0.9.3 - socket2
0.3.19 - tempfile
3.2.0 - tracing
0.1.23 - wasm-bindgen
0.2.70 - wasm-bindgen-futures
0.4.20 - wasmtime
0.22.0 - wasmtime-environ
0.22.0 - wasmtime-jit
0.22.0 - wasmtime-profiling
0.22.0 - wasmtime-runtime
0.22.0
- async-process
chacha20
0.5.0crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum244fbce0d47e97e8ef2f63b81d5e05882cb518c68531eb33194990d7b7e85845depends onused bychacha20poly1305
0.6.0crates.io↘ 5↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum9bf18d374d66df0c05cdddd528a7db98f78c28e2519b120855c4f84c5027b1f5used bychrono
0.4.19crates.io↘ 5↖ 5sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73cid
0.6.1crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumff0e3bc0b6446b3f9663c1a6aba6ef06c5aeaa1bc92bd18077be337198ab9768used bycipher
0.2.5crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum12f8e7987cbd042a63249497f41aed09f8e65add917ea6566effbc56578d6801depends onused byclang-sys
0.29.3crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumfe6837df1d5cba2397b835c8530f51723267e16abbf83892e9e5af4f0e5dd10adepends onused byclap
2.33.3crates.io↘ 7↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum37e58ac78573c40708d45522f0d80fa2f01cc4f9b4e2bf749807255454312002depends onused bycloudabi
0.0.3crates.io↘ 1↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4fdepends onconcurrent-queue
1.2.2crates.io↘ 1↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum30ed07550be01594c6026cff2a1d7fe9c8f683caa798e12b68694ac9e88286a3depends onconst_fn
0.4.5crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum28b9d6de7f49e22cf97ad17fc4036ece69300032f45f78f30b4a4482cdc3f4a6used byconstant_time_eq
0.1.5crates.io↘ 0↖ 5sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbccore-foundation
0.7.0crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum57d24c7a13c43e870e37c1556b74555437870a04514f7685f5b354e090567171depends onused bycore-foundation-sys
0.7.0crates.io↘ 0↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb3a71ab494c0b5b860bdc8407ae08978052417070c2ced38573a9157ad75b8accpp_demangle
0.3.2crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum44919ecaf6f99e8e737bc239408931c9a01e9a6c74814fee8242dd2506b65390depends onused bycpuid-bool
0.1.2crates.io↘ 0↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum8aebca1129a03dc6dc2b127edd729435bbc4a37e1d5f4d7513165089ceb02634used bycpuid-bool
0.2.0crates.io↘ 0↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumdcb25d077389e53838a8158c8e99174c5a9d902dee4904320db714f3c653ffbaused bycranelift-bforest
0.69.0crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum4066fd63b502d73eb8c5fa6bcab9c7962b05cd580f6b149ee83a8e730d8ce7fbdepends onused bycranelift-codegen
0.69.0crates.io↘ 12↖ 6sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum1a54e4beb833a3c873a18a8fe735d73d732044004c7539a072c8faa35ccb0c60depends oncranelift-codegen-meta
0.69.0crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumc54cac7cacb443658d8f0ff36a3545822613fa202c946c0891897843bc933810used bycranelift-entity
0.69.0crates.io↘ 1↖ 7sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum3b044234aa32531f89a08b487630ddc6744696ec04c8123a1ad388de837f5de3depends oncranelift-frontend
0.69.0crates.io↘ 4↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum5452b3e4e97538ee5ef2cc071301c69a86c7adf2770916b9d04e9727096abd93cranelift-native
0.69.0crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf68035c10b2e80f26cc29c32fa824380877f38483504c2a47b54e7da311caaf3used bycranelift-wasm
0.69.0crates.io↘ 9↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksuma530eb9d1c95b3309deb24c3d179d8b0ba5837ed98914a429787c395f614949ddepends oncrc32fast
1.2.1crates.io↘ 1↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum81156fece84ab6a9f2afdb109ce3ae577e42b1228441eded99bd77f627953b1adepends oncrossbeam-channel
0.5.0crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumdca26ee1f8d361640700bde38b2c37d8c22b3ce2d360e1fc1c74ea4b0aa7d775depends onused bycrossbeam-deque
0.7.3crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum9f02af974daeee82218205558e51ec8768b48cf524bd01d550abe5573a608285used bycrossbeam-deque
0.8.0crates.io↘ 3↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum94af6efb46fef72616855b036a624cf27ba656ffc9be1b9a3c931cfc7749a9a9used bycrossbeam-epoch
0.8.2crates.io↘ 7↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum058ed274caafc1f60c4997b5fc07bf7dc7cca454af7c6e81edffe5f33f70dacedepends onused bycrossbeam-epoch
0.9.1crates.io↘ 6↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksuma1aaa739f95311c2c7887a76863f500026092fb1dce0161dab577e559ef3569dused bycrossbeam-queue
0.2.3crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum774ba60a54c213d409d5353bda12d49cd68d14e45036a285234c8d6f91f92570used bycrossbeam-utils
0.7.2crates.io↘ 3↖ 7sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumc3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8depends oncrossbeam-utils
0.8.1crates.io↘ 3↖ 6sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum02d96d1e189ef58269ebe5b97953da3274d83a93af647c2ddd6f9dab28cedb8ddepends oncrunchy
0.2.2crates.io↘ 0↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7crypto-mac
0.7.0crates.io↘ 2↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum4434400df11d95d556bac068ddfedd482915eb18fe8bea89bc80b6e4b1c179e5depends onused bycrypto-mac
0.8.0crates.io↘ 2↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeabdepends onct-logs
0.7.0crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum8c8e13110a84b6315df212c045be706af261fd364791cad863285439ebba672edepends onused byctor
0.1.19crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksume8f45d9ad417bcef4817d614a501ab55cdd96a6fdb24f49aab89a54acfd66b19depends onused bycuckoofilter
0.5.0crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb810a8449931679f64cd7eef1bbd0fa315801b6d5d9cdc1ace2804d6529eee18depends onused bycurve25519-dalek
2.1.2crates.io↘ 5↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum434e1720189a637d44fe464f4df1e6eb900b4835255b14354497c78af37d9bb8used bycurve25519-dalek
3.0.2crates.io↘ 5↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf627126b946c25a4638eec0ea634fc52506dea98db118aae985118ce7c3d723fdata-encoding
2.3.2crates.io↘ 0↖ 5sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum3ee2393c4a91429dffb4bedf19f4d6abf27d8a732c8ce4980305d782e5426d57data-encoding-macro
0.1.10crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum0a94feec3d2ba66c0b6621bca8bc6f68415b1e5c69af3586fdd0af9fd9f29b17used bydata-encoding-macro-internal
0.1.9crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf0f83e699727abca3c56e187945f303389590305ab2f0185ea445aa66e8d5f2adepends onused byderive_more
0.99.11crates.io↘ 3↖ 13sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum41cb0e6161ad61ed084a36ba71fbba9e3ac5aee3606fb607fe08da6acbcf3d8cdepends ondigest
0.8.1crates.io↘ 1↖ 6sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf3d0c8c8752312f9713efd397ff63acb9f85585afbf179282e720e7704954dd5depends ondigest
0.9.0crates.io↘ 1↖ 8sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066depends ondirectories
3.0.1crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf8fed639d60b58d0f53498ab13d26f621fd77569cc6edb031f4cc36a2ad9da0fdepends onused bydirectories-next
2.0.0crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum339ee130d97a610ea5a5872d2bbb130fdf68884ff09d3028b81bec8a1ac23bbcdepends onused bydirs-sys
0.3.5crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum8e93d7f5705de3e49895a2b5e0b8855a1c27f080192ae9c32a6432d50741a57adepends onused bydirs-sys-next
0.1.2crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4ddepends onused bydns-parser
0.8.0crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumc4d33be9473d06f75f58220f71f7a9317aca647dc061dbd3c361b0bef505fbeadepends onused bydyn-clonable
0.9.0crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum4e9232f0e607a262ceb9bd5141a3dfb3e4db6994b31989bbfd845878cba59fd4depends onused bydyn-clonable-impl
0.9.0crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum558e40ea573c374cf53507fd240b7ee2f5477df7cfebdb97323ec61c719399c5depends onused bydyn-clone
1.0.4crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumee2626afccd7561a06cf1367e2950c4718ea04565e20fb5029b6c7d8ad09abcfused byed25519
1.0.3crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum37c66a534cbb46ab4ea03477eae19d5c22c01da8258030280b7bd9d8433fb6efdepends onused byed25519-dalek
1.0.1crates.io↘ 6↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumc762bae6dcaf24c4c84667b8579785430908723d5c889f469d76a41d59cc7a9deither
1.6.1crates.io↘ 0↖ 11sourceregistry+https://github.com/rust-lang/crates.io-indexchecksume78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457enumflags2
0.6.4crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum83c8d82922337cd23a15f88b70d8e4ef5f11da38dd7cdb55e84dd5de99695da0depends onused byenumflags2_derive
0.6.4crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum946ee94e3dbf58fdd324f9ce245c7b238d46a66f00e86a020b71996349e46ccedepends onused byenv_logger
0.7.1crates.io↘ 5↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36environmental
1.1.2crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum6576a1755ddffd988788025e75bce9e74b018f7cc226198fe931d077911c6d7eused byerased-serde
0.3.13crates.io↘ 1↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum0465971a8cc1fa2455c8465aaa377131e1f1cf4983280f474a13e68793aa770cdepends onerrno
0.2.7crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumfa68f2fb9cae9d37c9b2b3584aba698a2e97f72d7aef7b9f7aa71d8b54ce46feused byerrno-dragonfly
0.1.1crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum14ca354e36190500e1e1fb267c647932382b54053c50b14970856c0b00a35067depends onused byevent-listener
2.5.1crates.io↘ 0↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf7531096570974c3a9dcf9e4b8e1cede1ec26cf5046219fb3b9d897503b9be59exit-future
0.2.0crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksume43f2f1833d64e33f15592464d6fdd70f349dda7b1a53088eb83cd94014008c5depends onused byfailure
0.1.8crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd32e9bd16cc02eae7db7ef620b392808b89f6a5e16bb3497d159c6b92a0f4f86depends onfailure_derive
0.1.8crates.io↘ 4↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumaa4da3c766cd7a0db8242e326e9e4e081edd567072893ed320008189715366a4used byfake-simd
0.1.2crates.io↘ 0↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksume88a8acf291dafb59c2d96e8f59828f3838bb1a70398823ade51a84de6a6deedused byfallible-iterator
0.2.0crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7used byfastrand
1.4.0crates.io↘ 1↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumca5faf057445ce5c9d4329e382b2ce7ca38550ef3b73a5348362d5f24e0c7fe3depends onfdlimit
0.2.1crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum2c4c9e43643f5a3be4ca5b67d26b98031ff9db6806c3440ae32e02e3ceac3f1bdepends onused byfile-per-thread-logger
0.1.4crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum4fdbe0d94371f9ce939b555dd342d0686cc4c0cadbcd4b61d70af5ff97eb4126depends onused byfinality-grandpa
0.13.0crates.io↘ 7↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum2cd795898c348a8ec9edc66ec9e014031c764d4c88cc26d09b492cd93eb41339depends onfixed-hash
0.7.0crates.io↘ 4↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumcfcf0ed7fe52a17a03854ec54a9f76d6d84508d1c0e66bc1793301c73fc8493cused byfixedbitset
0.2.0crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04dused byflate2
1.0.20crates.io↘ 5↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumcd3aec53de10fe96d7d8c565eb17f2c687bb5518a2ec453b5b1252964526abe0flexi_logger
0.15.12crates.io↘ 8↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumaaab3caedb4149800f91e8e4899f29cd9ddf3b569b04c365ca9334f92f7542bfdepends onused byfnv
1.0.7crates.io↘ 0↖ 16sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1fork-tree
3.0.0crates.io↘ 1↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum632b95f97f332b2ff5bc3a42bc8e28772b067e333830e03fd046504f11cd0fb8depends onform_urlencoded
1.0.0crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumece68d15c92e84fa4f19d3780f1294e5ca82a78a6d515f1efaabcc144688be00depends onused byframe-benchmarking
3.1.0crates.io↘ 11↖ 9sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum70fe99487f84579a3f2c4ba52650fec875492eea41be0e4eea8019187f105052depends onframe-benchmarking-cli
3.0.0crates.io↘ 16↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum2921b7890c5e4421a0b2eafbf835417eed8127b1cec3e1a0389515069f11d219depends onused byframe-executive
3.0.0crates.io↘ 9↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum1da8fd471442bee91b9b3f587ec832e3f47800374fdb89b4a66591cd7c42b29fdepends onused byframe-metadata
13.0.0crates.io↘ 4↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum073f7bef18421362441a1708f8528e442234954611f95bdc554b313fb321948eused byframe-support
3.0.0crates.io↘ 19↖ 19sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum04e521e6214615bd82ba6b5fc7fd40a9cc14fdeb40f83da5eba12aa2f8179fb8depends on- bitflags
1.2.1 - frame-metadata
13.0.0 - frame-support-procedural
3.0.0 - impl-trait-for-tuples
0.2.1 - log
0.4.14 - once_cell
1.5.2 - parity-scale-codec
2.0.1 - paste
1.0.4 - serde
1.0.123 - smallvec
1.6.1 - sp-arithmetic
3.0.0 - sp-core
3.0.0 - sp-inherents
3.0.0 - sp-io
3.0.0 - sp-runtime
3.0.0 - sp-staking
3.0.0 - sp-state-machine
0.9.0 - sp-std
3.0.0 - sp-tracing
3.0.0
used by- frame-benchmarking
3.1.0 - frame-executive
3.0.0 - frame-system
3.0.0 - frame-system-benchmarking
3.0.0 - nft-runtime
3.0.0 - pallet-aura
3.0.0 - pallet-authorship
3.0.0 - pallet-balances
3.0.0 - pallet-contracts
3.0.0 - pallet-grandpa
3.0.0 - pallet-inflation
3.0.0 - pallet-nft
3.0.0 - pallet-randomness-collective-flip
3.0.0 - pallet-session
3.0.0 - pallet-sudo
3.0.0 - pallet-timestamp
3.0.0 - pallet-transaction-payment
3.0.0 - pallet-treasury
3.0.0 - pallet-vesting
3.0.0
- bitflags
frame-support-procedural
3.0.0crates.io↘ 5↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum2668e24cbaba7f0e91d0c92a94bd1ae425a942608ad0b775db32477f5df4da9eused byframe-support-procedural-tools
3.0.0crates.io↘ 5↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd4f88cfd111e004590f4542b75e6d3302137b9067d7e7219e4ac47a535c3b5c1depends onframe-support-procedural-tools-derive
3.0.0crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum79285388b120ac96c15a791c56b26b9264f7231324fbe0fd05026acd92bf2e6adepends onframe-system
3.0.0crates.io↘ 9↖ 18sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf5fedbff05d665c00bf4e089b4377fcb15b8bd37ebc3e5fc06665474cf6e25d7depends onused by- frame-benchmarking
3.1.0 - frame-executive
3.0.0 - frame-system-benchmarking
3.0.0 - nft-runtime
3.0.0 - pallet-aura
3.0.0 - pallet-authorship
3.0.0 - pallet-balances
3.0.0 - pallet-contracts
3.0.0 - pallet-grandpa
3.0.0 - pallet-inflation
3.0.0 - pallet-nft
3.0.0 - pallet-randomness-collective-flip
3.0.0 - pallet-session
3.0.0 - pallet-sudo
3.0.0 - pallet-timestamp
3.0.0 - pallet-transaction-payment
3.0.0 - pallet-treasury
3.0.0 - pallet-vesting
3.0.0
- frame-benchmarking
frame-system-benchmarking
3.0.0crates.io↘ 7↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksume93602f58cdab9820b6d607b7b50834d9b878efa33405a65c89ebfb5a596b584depends onused byframe-system-rpc-runtime-api
3.0.0crates.io↘ 2↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum5cb9d2f86a903fdee4ca3d660c767e69a743cee8aeb103563a14ea52e9f0001ddepends onfs-swap
0.2.5crates.io↘ 4↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum5839fda247e24ca4919c87c71dd5ca658f1f39e4f06829f80e3f15c3bafcfc2cused byfuchsia-cprng
0.1.1crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksuma06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3baused byfuchsia-zircon
0.3.3crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82depends onused byfuchsia-zircon-sys
0.3.3crates.io↘ 0↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7used byfunty
1.1.0crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumfed34cd105917e91daa4da6b3728c47b068749d6a62c59811f06ed2ac71d9da7used byfutures
0.1.30crates.io↘ 0↖ 28sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum4c7e4c2612746b0df8fed4ce0c69156021b704c9aefa360311c04e6e9e002eedused by- futures-cpupool
0.1.8 - futures-diagnose
1.0.1 - futures-util
0.3.12 - h2
0.1.26 - http-body
0.1.0 - hyper
0.12.35 - jsonrpc-client-transports
15.1.0 - jsonrpc-core
15.1.0 - parity-tokio-ipc
0.4.0 - sc-rpc-server
3.0.0 - sc-service
0.9.0 - tokio
0.1.22 - tokio-buf
0.1.1 - tokio-codec
0.1.2 - tokio-current-thread
0.1.7 - tokio-executor
0.1.10 - tokio-fs
0.1.7 - tokio-io
0.1.13 - tokio-named-pipes
0.1.0 - tokio-reactor
0.1.12 - tokio-service
0.1.0 - tokio-sync
0.1.8 - tokio-tcp
0.1.4 - tokio-threadpool
0.1.18 - tokio-timer
0.2.13 - tokio-udp
0.1.6 - tokio-uds
0.2.7 - want
0.2.0
- futures-cpupool
futures
0.3.12crates.io↘ 7↖ 59sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumda9052a1a50244d8d5aa9bf55cbc2fb6f357c86cc52e46c62ed390a7180cf150depends onused by- exit-future
0.2.0 - finality-grandpa
0.13.0 - futures-diagnose
1.0.1 - if-watch
0.1.8 - intervalier
0.4.0 - libp2p
0.34.0 - libp2p-core
0.27.1 - libp2p-deflate
0.27.1 - libp2p-dns
0.27.0 - libp2p-floodsub
0.27.0 - libp2p-gossipsub
0.27.0 - libp2p-identify
0.27.0 - libp2p-kad
0.28.1 - libp2p-mdns
0.28.1 - libp2p-mplex
0.27.1 - libp2p-noise
0.29.0 - libp2p-ping
0.27.0 - libp2p-plaintext
0.27.1 - libp2p-pnet
0.20.0 - libp2p-request-response
0.9.1 - libp2p-swarm
0.27.2 - libp2p-tcp
0.27.1 - libp2p-uds
0.27.0 - libp2p-wasm-ext
0.27.0 - libp2p-websocket
0.28.0 - libp2p-yamux
0.30.0 - multistream-select
0.10.1 - nft
3.0.0 - rw-stream-sink
0.2.1 - sc-basic-authorship
0.9.0 - sc-cli
0.9.0 - sc-client-api
3.0.0 - sc-consensus-aura
0.9.0 - sc-consensus-babe
0.9.0 - sc-consensus-slots
0.9.0 - sc-finality-grandpa
0.9.0 - sc-informant
0.9.0 - sc-keystore
3.0.0 - sc-network
0.9.0 - sc-network-gossip
0.9.0 - sc-offchain
3.0.0 - sc-peerset
3.0.0 - sc-rpc
3.0.0 - sc-rpc-api
0.9.0 - sc-service
0.9.0 - sc-telemetry
3.0.0 - sc-transaction-graph
3.0.0 - sc-transaction-pool
3.0.0 - soketto
0.4.2 - sp-blockchain
3.0.0 - sp-consensus
0.9.0 - sp-core
3.0.0 - sp-io
3.0.0 - sp-keystore
0.9.0 - sp-transaction-pool
3.0.0 - sp-utils
3.0.0 - substrate-frame-rpc-system
3.0.0 - wasm-timer
0.2.5 - yamux
0.8.0
- exit-future
futures-channel
0.3.12crates.io↘ 2↖ 5sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf2d31b7ec7efab6eefc7c57233bb10b847986139d88cc2f5a02a1ae6871a1846depends onfutures-core
0.3.12crates.io↘ 0↖ 15sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum79e5145dde8da7d1b3892dad07a9c98fc04bc39892b1ecc9692cf53e2b780a65futures-cpupool
0.1.8crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumab90cde24b3319636588d0c35fe03b1333857621051837ed769faefb4c2162e4depends onused byfutures-diagnose
1.0.1crates.io↘ 8↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumfdcef58a173af8148b182684c9f2d5250875adbcaff7b5794073894f9d8634a9depends onused byfutures-executor
0.3.12crates.io↘ 4↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksume9e59fdc009a4b3096bf94f740a0f2424c082521f20a9b08c5c07c48d90fd9b9used byfutures-io
0.3.12crates.io↘ 0↖ 7sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum28be053525281ad8259d47e4de5de657b25e7bac113458555bb4b70bc6870500futures-lite
1.11.3crates.io↘ 7↖ 7sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb4481d0cd0de1d204a4fa55e7d45f07b1d958abcb06714b3446438e2eff695fbdepends onfutures-macro
0.3.12crates.io↘ 4↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumc287d25add322d9f9abdcdc5927ca398917996600182178774032e9f8258feddused byfutures-rustls
0.21.1crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum3a1387e07917c711fb4ee4f48ea0adb04a3c9739e53ef85bf43ae1edc2937a8bdepends onused byfutures-sink
0.3.12crates.io↘ 0↖ 8sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumcaf5c69029bda2e743fddd0582d1083951d65cc9539aebf8812f36c3491342d6futures-task
0.3.12crates.io↘ 1↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum13de07eb8ea81ae445aca7b69f5f7bf15d7bf4912d8ca37d6645c77ae8a58d86depends onfutures-timer
2.0.2crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksuma1de7508b218029b0f01662ed8f61b1c964b3ae99d6f25462d0f55a595109df6used byfutures-timer
3.0.2crates.io↘ 0↖ 14sourceregistry+https://github.com/rust-lang/crates.io-indexchecksume64b03909df88034c26dc1547e8970b91f98bdb65165d6a4e9110d94263dbb2cfutures-util
0.3.12crates.io↘ 13↖ 11sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum632a8cd0f2a4b3fdea1657f08bde063848c3bd00f9bbf6e256b8be78802e624bdepends ongcc
0.3.55crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum8f5f3913fa0bfe7ee1fd8248b6b9f42a5af4b9d65ec2dd2c3c26132b950ecfc2used bygeneric-array
0.12.3crates.io↘ 1↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumc68f0274ae0e023facc3c97b2e00f076be70e254bc851d972503b328db79b2ecdepends ongeneric-array
0.13.2crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum0ed1e761351b56f54eb9dcd0cfaca9fd0daecf93918e1cfc01c8a3d26ee7adcddepends onused bygeneric-array
0.14.4crates.io↘ 2↖ 9sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum501466ecc8a30d1d3b7fc9229b122b2ce8ed6e9d9223f1138d4babb253e51817depends ongetrandom
0.1.16crates.io↘ 3↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fcegetrandom
0.2.2crates.io↘ 3↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumc9495705279e7140bf035dde1f6e750c162df8b625267cd52cc44e0b156732c8ghash
0.3.1crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum97304e4cd182c3846f7575ced3890c53012ce534ad9114046b0a9e00bb30a375depends onused bygimli
0.23.0crates.io↘ 3↖ 6sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf6503fe142514ca4799d4c26297c4248239fe8838d827db6bd6065c6ed29a6ceglob
0.3.0crates.io↘ 0↖ 5sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574globset
0.4.6crates.io↘ 5↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumc152169ef1e421390738366d2f796655fec62621dabbd0fd476f905934061e4aused bygloo-timers
0.2.1crates.io↘ 5↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum47204a46aaff920a1ea58b11d03dec6f704287d27561724a4631e450654a891fused byh2
0.1.26crates.io↘ 10↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksuma5b34c246847f938a410a03c5458c7fee2274436675e76d8b903c08efc29c462depends onused byh2
0.2.7crates.io↘ 12↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum5e4728fd124914ad25e99e3d15a9361a879f6620f63cb56bbb08f95abb97a535depends onused byhandlebars
3.5.2crates.io↘ 6↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum964d0e99a61fe9b1b347389b77ebf8b7e1587b70293676aaca7d27e59b9073b2used byhash-db
0.15.2crates.io↘ 0↖ 13sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd23bd4e7b5eda0d0f3a307e8b381fdc8ba9000f26fbe912250c0a4cc3956364ahash256-std-hasher
0.15.2crates.io↘ 1↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum92c171d55b98633f4ed3860808f004099b36c1cc29c42cfc53aa8591b21efcf2depends onused byhashbrown
0.9.1crates.io↘ 1↖ 5sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04depends onheck
0.3.2crates.io↘ 1↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum87cbf45460356b7deeb5e3415b5563308c0a9b057c85e12b06ad551f98d0a6acdepends onhermit-abi
0.1.18crates.io↘ 1↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum322f4de77956e22ed0e5032c359a0f1273f1f7f0d79bfa3b8ffbc730d7fbcc5cdepends onused byhex
0.4.2crates.io↘ 0↖ 6sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum644f9158b2f133fd50f5fb3242878846d9eb792e445c893805ff0e3824006e35hex_fmt
0.3.0crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb07f60793ff0a4d9cef0f18e63b5357e06209987153a64648c972c1e5aff336fused byhex-literal
0.3.1crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum5af1f635ef1bc545d78392b136bfe1c9809e029023c84a3638a864a10b8819c8used byhmac
0.7.1crates.io↘ 2↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum5dcb5e64cda4c23119ab41ba960d1e170a774c8e4b9d9e6a9bc18aabf5e59695depends onhmac
0.8.1crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum126888268dcc288495a26bf004b38c5fdbb31682f992c84ceb046a1f0fe38840depends onused byhmac-drbg
0.2.0crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumc6e570451493f10f6581b48cdd530413b63ea9e780f544bfd3bdcaa0d89d1a7bdepends onused byhttp
0.1.21crates.io↘ 3↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd6ccf5ede3a895d8856620237b2f02972c1bbc78d2965ad7fe8838d4a0ed41f0depends onhttp
0.2.3crates.io↘ 3↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum7245cd7449cc792608c3c8a9eaf69bd4eabbabf802713748fd739c98b82f0747depends onhttp-body
0.1.0crates.io↘ 4↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum6741c859c1b2463a423a1dbce98d418e6c3c3fc720fb0d45528657320920292dused byhttp-body
0.3.1crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum13d5ff830006f7646652e057693569bfe0d51760c0085a071769d142a205111bdepends onused byhttparse
1.3.5crates.io↘ 0↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum615caabe2c3160b313d52ccc905335f4ed5f10881dd63dc5699d47e90be85691httpdate
0.3.2crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum494b4d60369511e7dea41cf646832512a94e542f68bb9c49e54518e0f468eb47used byhumantime
1.3.0crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumdf004cfca50ef23c36850aaaa59ad52cc70d0e90243c3c7737a4dd32dc7a3c4fdepends onused byhyper
0.12.35crates.io↘ 22↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum9dbe6ed1438e1f8ad955a4701e9a944938e9519f6888d12d8558b645e247d5f6depends onused byhyper
0.13.10crates.io↘ 16↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum8a6f157065790a3ed2f88679250419b5cdd96e714a0d65f7797fd337186e96bbdepends onhyper-rustls
0.21.0crates.io↘ 10↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum37743cc83e8ee85eacfce90f2f4102030d9ff0a95244098d781e9bee4a90abb6depends onused byidna
0.1.5crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum38f09e0f0b1fb55fdee1f17470ad800da77af5186a1a76c026b679358b7e844eused byidna
0.2.1crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumde910d521f7cc3135c4de8db1cb910e0b5ed1dc6f57c381cd07e8e661ce10094used byif-addrs
0.6.5crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum28538916eb3f3976311f5dfbe67b5362d0add1293d0a9cad17debf86f8e3aa48depends onused byif-addrs-sys
0.3.2crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumde74b9dd780476e837e5eb5ab7c88b49ed304126e412030a0adba99c8efe79eadepends onused byif-watch
0.1.8crates.io↘ 8↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum97b8538953a3f0d0d3868f0a706eb4273535e10d72acb5c82c1c23ae48835c85depends onimpl-codec
0.5.0crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumdf170efa359aebdd5cb7fe78edcc67107748e4737bdca8a8fb40d15ea7a877eddepends onused byimpl-serde
0.3.1crates.io↘ 1↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb47ca4d2b6931707a55fce5cf66aff80e2178c8b63bbb4ecb5695cbc870ddf6fdepends onimpl-trait-for-tuples
0.2.1crates.io↘ 3↖ 12sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd5dacb10c5b3bb92d46ba347505a9041e676bb20ad220101326bffb0c93031eedepends onindexmap
1.6.1crates.io↘ 3↖ 8sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum4fb1fa934250de4de8aef298d81c729a7d33d8c239daa3a7575e6b92bfc7313bdepends onInflector
0.11.4crates.io↘ 2↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumfe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3depends oninstant
0.1.9crates.io↘ 1↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum61124eeebbd69b8190558df225adf7e4caafce0d743919e5d6b19652314ec5ecdepends oninteger-sqrt
0.1.5crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum276ec31bcb4a9ee45f58bec6f9ec700ae4cf4f4f8f2fa7e06cb406bd5ffdd770depends onused byintervalier
0.4.0crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum64fa110ec7b8f493f416eed552740d10e7030ad5f63b2308f82c9608ec2df275depends onused byiovec
0.1.4crates.io↘ 1↖ 7sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075edepends onip_network
0.3.4crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum2ee15951c035f79eddbef745611ec962f63f4558f1dadf98ab723cc603487c6fused byipnet
2.3.0crates.io↘ 0↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum47be2f14c678be2fdcab04ab1171db51b2762ce6f0a8ee87c8dd4a04ed216135itertools
0.9.0crates.io↘ 1↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum284f18f85651fe11e8a991b2adb42cb078325c996ed026d994719efcfca1d54bdepends onitoa
0.4.7crates.io↘ 0↖ 5sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumdd25036021b0de88a0aff6b850051563c6516d0bf53f8638938edbb9de732736jobserver
0.1.21crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum5c71313ebb9439f74b00d9d2dcec36440beaf57a6aa0623068441dd7cd81a7f2depends onused byjs-sys
0.3.47crates.io↘ 1↖ 5sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum5cfb73131c35423a367daf8cbd24100af0d077668c8c2943f0e7dd775fef0f65depends onjsonrpc-client-transports
15.1.0crates.io↘ 8↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum489b9c612e60c766f751ab40fcb43cbb55a1e10bb44a9b4307ed510ca598cbd7depends onused byjsonrpc-core
15.1.0crates.io↘ 5↖ 14sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum0745a6379e3edc893c84ec203589790774e4247420033e71a76d3ab4687991faused by- jsonrpc-client-transports
15.1.0 - jsonrpc-http-server
15.1.0 - jsonrpc-ipc-server
15.1.0 - jsonrpc-pubsub
15.1.0 - jsonrpc-server-utils
15.1.0 - jsonrpc-ws-server
15.1.0 - nft
3.0.0 - pallet-contracts-rpc
3.0.0 - pallet-transaction-payment-rpc
3.0.0 - sc-rpc
3.0.0 - sc-rpc-api
0.9.0 - sc-rpc-server
3.0.0 - sc-service
0.9.0 - substrate-frame-rpc-system
3.0.0
- jsonrpc-client-transports
jsonrpc-core-client
15.1.0crates.io↘ 1↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum6f764902d7b891344a0acb65625f32f6f7c6db006952143bd650209fbe7d94dbdepends onjsonrpc-derive
15.1.0crates.io↘ 4↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum99a847f9ec7bb52149b2786a17c9cb260d6effc6b8eeb8c16b343a487a7563a3jsonrpc-http-server
15.1.0crates.io↘ 7↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum4fb5c4513b7b542f42da107942b7b759f27120b5cc894729f88254b28dff44b7depends onused byjsonrpc-ipc-server
15.1.0crates.io↘ 6↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumcf50e53e4eea8f421a7316c5f63e395f7bc7c4e786a6dc54d76fab6ff7aa7ce7depends onused byjsonrpc-pubsub
15.1.0crates.io↘ 5↖ 5sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum639558e0604013be9787ae52f798506ae42bf4220fe587bdc5625871cc8b9c77jsonrpc-server-utils
15.1.0crates.io↘ 8↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum72f1f3990650c033bd8f6bd46deac76d990f9bbfb5f8dc8c4767bf0a00392176depends onjsonrpc-ws-server
15.1.0crates.io↘ 6↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum6596fe75209b73a2a75ebe1dce4e60e03b88a2b25e8807b667597f6315150d22depends onused bykeccak
0.1.0crates.io↘ 0↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum67c21572b4949434e4fc1e1978b99c5f77064153c59d998bf13ecd96fb5ecba7used bykernel32-sys
0.2.2crates.io↘ 2↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098ddepends onkv-log-macro
1.0.7crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum0de8b303297635ad57c9f5059fd9cee7a47f8e8daa09df0fcd07dd39fb22977fdepends onused bykvdb
0.9.0crates.io↘ 2↖ 5sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum8891bd853eff90e33024195d79d578dc984c82f9e0715fcd2b525a0c19d52811depends onkvdb-memorydb
0.9.0crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum30a0da8e08caf08d384a620ec19bb6c9b85c84137248e202617fb91881f25912used bykvdb-rocksdb
0.11.0crates.io↘ 10↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum34446c373ccc494c2124439281c198c7636ccdc2752c06722bbffd56d459c1e4depends onused bylazy_static
1.4.0crates.io↘ 0↖ 36sourceregistry+https://github.com/rust-lang/crates.io-indexchecksume2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646used by- Inflector
0.11.4 - bindgen
0.54.0 - crossbeam-epoch
0.8.2 - crossbeam-epoch
0.9.1 - crossbeam-utils
0.7.2 - crossbeam-utils
0.8.1 - flexi_logger
0.15.12 - fs-swap
0.2.5 - futures-diagnose
1.0.1 - jsonrpc-server-utils
15.1.0 - libp2p
0.34.0 - libp2p-core
0.27.1 - libp2p-mdns
0.28.1 - libp2p-noise
0.29.0 - prometheus
0.11.0 - rayon-core
1.9.0 - sc-client-api
3.0.0 - sc-executor
0.9.0 - sc-light
3.0.0 - sc-service
0.9.0 - sc-tracing
3.0.0 - schannel
0.1.19 - sharded-slab
0.1.1 - sp-core
3.0.0 - sp-keyring
3.0.0 - sp-utils
3.0.0 - structopt
0.3.21 - tokio
0.2.25 - tokio-reactor
0.1.12 - tokio-threadpool
0.1.18 - tracing-core
0.1.17 - tracing-log
0.1.1 - tracing-subscriber
0.2.15 - wasm-bindgen-backend
0.2.70 - wasmtime-profiling
0.22.0 - wasmtime-runtime
0.22.0
- Inflector
lazycell
1.3.0crates.io↘ 0↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55used byleb128
0.2.4crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum3576a87f2ba00f6f106fdfcd16db1d698d648a26ad8e0573cad8537c3c362d2aused bylibc
0.2.86crates.io↘ 0↖ 62sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb7282d924be3275cec7f6756ff4121987bc6481325397dde6ba3e7802b1a8b1cused by- async-io
1.3.1 - atty
0.2.14 - backtrace
0.3.56 - chrono
0.4.19 - clang-sys
0.29.3 - core-foundation
0.7.0 - dirs-sys
0.3.5 - dirs-sys-next
0.1.2 - errno
0.2.7 - errno-dragonfly
0.1.1 - fdlimit
0.2.1 - flate2
1.0.20 - fs-swap
0.2.5 - getrandom
0.1.16 - getrandom
0.2.2 - hermit-abi
0.1.18 - if-addrs
0.6.5 - if-addrs-sys
0.3.2 - if-watch
0.1.8 - iovec
0.1.4 - jobserver
0.1.21 - libp2p-tcp
0.27.1 - librocksdb-sys
6.11.4 - mach
0.3.2 - memmap2
0.2.1 - mio
0.6.23 - mio-uds
0.6.8 - nb-connect
1.0.3 - net2
0.2.37 - num_cpus
1.13.0 - parity-db
0.2.2 - parity-tokio-ipc
0.4.0 - parking_lot_core
0.6.2 - parking_lot_core
0.7.2 - parking_lot_core
0.8.3 - polling
2.0.2 - rand
0.3.23 - rand
0.4.6 - rand
0.7.3 - rand
0.8.3 - region
2.2.0 - ring
0.16.20 - rocksdb
0.15.0 - rpassword
5.0.1 - security-framework
1.0.0 - security-framework-sys
1.0.0 - signal-hook
0.3.4 - signal-hook-registry
1.3.0 - socket2
0.3.19 - tempfile
3.2.0 - time
0.1.44 - tokio
0.2.25 - tokio-uds
0.2.7 - wasmi
0.6.2 - wasmtime
0.22.0 - wasmtime-cache
0.22.0 - wasmtime-profiling
0.22.0 - wasmtime-runtime
0.22.0 - which
3.1.1 - which
4.0.2 - zstd-safe
2.0.6+zstd.1.4.7 - zstd-sys
1.4.18+zstd.1.4.7
- async-io
libloading
0.5.2crates.io↘ 2↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf2b111a074963af1d37a139918ac6d49ad1d0d5e47f72fd55388619691a7d753depends onused bylibm
0.2.1crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumc7d73b3f436185384286bd8098d17ec07c9a7d2388a6599f824d8502b529702aused bylibp2p
0.34.0crates.io↘ 30↖ 6sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd5133112ce42be9482f6a87be92a605dd6bbc9e93c297aee77d172ff06908f3adepends on- atomic
0.5.0 - bytes
1.0.1 - futures
0.3.12 - lazy_static
1.4.0 - libp2p-core
0.27.1 - libp2p-core-derive
0.21.0 - libp2p-deflate
0.27.1 - libp2p-dns
0.27.0 - libp2p-floodsub
0.27.0 - libp2p-gossipsub
0.27.0 - libp2p-identify
0.27.0 - libp2p-kad
0.28.1 - libp2p-mdns
0.28.1 - libp2p-mplex
0.27.1 - libp2p-noise
0.29.0 - libp2p-ping
0.27.0 - libp2p-plaintext
0.27.1 - libp2p-pnet
0.20.0 - libp2p-request-response
0.9.1 - libp2p-swarm
0.27.2 - libp2p-tcp
0.27.1 - libp2p-uds
0.27.0 - libp2p-wasm-ext
0.27.0 - libp2p-websocket
0.28.0 - libp2p-yamux
0.30.0 - parity-multiaddr
0.11.1 - parking_lot
0.11.1 - pin-project
1.0.5 - smallvec
1.6.1 - wasm-timer
0.2.5
- atomic
libp2p-core
0.27.1crates.io↘ 26↖ 19sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum8a2d56aadc2c2bf22cd7797f86e56a65b5b3994a0136b65be3106938acae7a26depends on- asn1_der
0.6.3 - bs58
0.4.0 - ed25519-dalek
1.0.1 - either
1.6.1 - fnv
1.0.7 - futures
0.3.12 - futures-timer
3.0.2 - lazy_static
1.4.0 - libsecp256k1
0.3.5 - log
0.4.14 - multihash
0.13.2 - multistream-select
0.10.1 - parity-multiaddr
0.11.1 - parking_lot
0.11.1 - pin-project
1.0.5 - prost
0.7.0 - prost-build
0.7.0 - rand
0.7.3 - ring
0.16.20 - rw-stream-sink
0.2.1 - sha2
0.9.3 - smallvec
1.6.1 - thiserror
1.0.23 - unsigned-varint
0.7.0 - void
1.0.2 - zeroize
1.2.0
used by- libp2p
0.34.0 - libp2p-deflate
0.27.1 - libp2p-dns
0.27.0 - libp2p-floodsub
0.27.0 - libp2p-gossipsub
0.27.0 - libp2p-identify
0.27.0 - libp2p-kad
0.28.1 - libp2p-mdns
0.28.1 - libp2p-mplex
0.27.1 - libp2p-noise
0.29.0 - libp2p-ping
0.27.0 - libp2p-plaintext
0.27.1 - libp2p-request-response
0.9.1 - libp2p-swarm
0.27.2 - libp2p-tcp
0.27.1 - libp2p-uds
0.27.0 - libp2p-wasm-ext
0.27.0 - libp2p-websocket
0.28.0 - libp2p-yamux
0.30.0
- asn1_der
libp2p-core-derive
0.21.0crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf4bc40943156e42138d22ed3c57ff0e1a147237742715937622a99b10fbe0156depends onused bylibp2p-deflate
0.27.1crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum6d42eed63305f0420736fa487f9acef720c4528bd7852a6a760f5ccde4813345used bylibp2p-dns
0.27.0crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum5153b6db68fd4baa3b304e377db744dd8fea8ff4e4504509ee636abcde88d3e3depends onused bylibp2p-floodsub
0.27.0crates.io↘ 10↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb3c63dfa06581b24b1d12bf9815b43689a784424be217d6545c800c7c75a207fdepends onused bylibp2p-gossipsub
0.27.0crates.io↘ 18↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum12451ba9493e87c91baf2a6dffce9ddf1fbc807a0861532d7cf477954f8ebbeedepends onused bylibp2p-identify
0.27.0crates.io↘ 8↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb40fb36a059b7a8cce1514bd8b546fa612e006c9937caa7f5950cb20021fe91edepends onused bylibp2p-kad
0.28.1crates.io↘ 18↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumcf3da6c9acbcc05f93235d201d7d45ef4e8b88a45d8836f98becd8b4d443f066depends onused bylibp2p-mdns
0.28.1crates.io↘ 13↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum0e9e6374814d1b118d97ccabdfc975c8910bd16dc38a8bc058eeb08bf2080fe1depends onused bylibp2p-mplex
0.27.1crates.io↘ 10↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum350ce8b3923594aedabd5d6e3f875d058435052a29c3f32df378bc70d10be464depends onused bylibp2p-noise
0.29.0crates.io↘ 14↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum4aca322b52a0c5136142a7c3971446fb1e9964923a526c9cc6ef3b7c94e57778depends onused bylibp2p-ping
0.27.0crates.io↘ 7↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum6f3813276d0708c8db0f500d8beda1bda9ad955723b9cb272c41f4727256f73cdepends onused bylibp2p-plaintext
0.27.1crates.io↘ 9↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum9d58defcadb646ae4b033e130b48d87410bf76394dc3335496cae99dac803e61depends onused bylibp2p-pnet
0.20.0crates.io↘ 6↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum6ce3374f3b28162db9d3442c9347c4f14cb01e8290052615c7d341d40eae0599used bylibp2p-request-response
0.9.1crates.io↘ 12↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum10e5552827c33d8326502682da73a0ba4bfa40c1b55b216af3c303f32169dd89depends onused bylibp2p-swarm
0.27.2crates.io↘ 8↖ 8sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum7955b973e1fd2bd61ffd43ce261c1223f61f4aacd5bae362a924993f9a25fd98depends onlibp2p-tcp
0.27.1crates.io↘ 9↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum88a5aef80e519a6cb8e2663605142f97baaaea1a252eecbf8756184765f7471bdepends onused bylibp2p-uds
0.27.0crates.io↘ 4↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum80ac51ce419f60be966e02103c17f67ff5dc4422ba83ba54d251d6c62a4ed487used bylibp2p-wasm-ext
0.27.0crates.io↘ 6↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum6149c46cb76935c80bc8be6ec6e3ebd5f5e1679765a255fb34331d54610f15dddepends onused bylibp2p-websocket
0.28.0crates.io↘ 10↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd3b1c6a3431045da8b925ed83384e4c5163e14b990572307fca9c507435d4d22depends onused bylibp2p-yamux
0.30.0crates.io↘ 5↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum490b8b27fc40fe35212df1b6a3d14bffaa4117cbff956fdc2892168a371102adused bylibrocksdb-sys
6.11.4crates.io↘ 4↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumeb5b56f651c204634b936be2f92dbb42c36867e00ff7fe2405591f3b9fa66f09depends onused bylibsecp256k1
0.3.5crates.io↘ 8↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum1fc1e2c808481a63dc6da2074752fdd4336a3c8fcc68b83db6f1fd5224ae7962depends onlibz-sys
1.1.2crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum602113192b08db8f38796c4e85c39e960c145965140e918018bcde1952429655depends onused bylinked_hash_set
0.1.4crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum47186c6da4d81ca383c7c47c1bfc80f4b95f4720514d860a5407aaf4233f9588depends onused bylinked-hash-map
0.5.4crates.io↘ 0↖ 5sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum7fb9b38af92608140b86b693604b9ffcc5824240a484d1ecd4795bacb2fe88f3linregress
0.4.0crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum0d0ad4b5cc8385a881c561fac3501353d63d2a2b7a357b5064d71815c9a92724depends onused bylock_api
0.3.4crates.io↘ 1↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumc4da24a77a3d8a6d4862d95f72e6fdb9c09a643ecdb402d754004a557f2bec75depends onlock_api
0.4.2crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumdd96ffd135b2fd7b973ac026d28085defbe8983df057ced3eb4f2130b0831312depends onused bylog
0.4.14crates.io↘ 2↖ 119sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710depends onused by- async-io
1.3.1 - async-std
1.9.0 - bindgen
0.54.0 - cranelift-codegen
0.69.0 - cranelift-frontend
0.69.0 - cranelift-wasm
0.69.0 - env_logger
0.7.1 - file-per-thread-logger
0.1.4 - finality-grandpa
0.13.0 - flexi_logger
0.15.12 - frame-support
3.0.0 - futures-diagnose
1.0.1 - globset
0.4.6 - h2
0.1.26 - handlebars
3.5.2 - hyper
0.12.35 - hyper-rustls
0.21.0 - if-watch
0.1.8 - jsonrpc-client-transports
15.1.0 - jsonrpc-core
15.1.0 - jsonrpc-http-server
15.1.0 - jsonrpc-ipc-server
15.1.0 - jsonrpc-pubsub
15.1.0 - jsonrpc-server-utils
15.1.0 - jsonrpc-ws-server
15.1.0 - kv-log-macro
1.0.7 - kvdb-rocksdb
0.11.0 - libp2p-core
0.27.1 - libp2p-dns
0.27.0 - libp2p-floodsub
0.27.0 - libp2p-gossipsub
0.27.0 - libp2p-identify
0.27.0 - libp2p-kad
0.28.1 - libp2p-mdns
0.28.1 - libp2p-mplex
0.27.1 - libp2p-noise
0.29.0 - libp2p-ping
0.27.0 - libp2p-plaintext
0.27.1 - libp2p-pnet
0.20.0 - libp2p-request-response
0.9.1 - libp2p-swarm
0.27.2 - libp2p-tcp
0.27.1 - libp2p-uds
0.27.0 - libp2p-websocket
0.28.0 - mio
0.6.23 - mio-extras
2.0.6 - mio-named-pipes
0.1.7 - multistream-select
0.10.1 - nft
3.0.0 - parity-db
0.2.2 - parity-tokio-ipc
0.4.0 - parity-ws
0.10.0 - polling
2.0.2 - prost-build
0.7.0 - pwasm-utils
0.14.0 - pwasm-utils
0.16.0 - regalloc
0.0.31 - rustls
0.18.1 - rustls
0.19.0 - sc-basic-authorship
0.9.0 - sc-cli
0.9.0 - sc-client-api
3.0.0 - sc-client-db
0.9.0 - sc-consensus-aura
0.9.0 - sc-consensus-babe
0.9.0 - sc-consensus-slots
0.9.0 - sc-consensus-uncles
0.9.0 - sc-executor
0.9.0 - sc-executor-wasmi
0.9.0 - sc-executor-wasmtime
0.9.0 - sc-finality-grandpa
0.9.0 - sc-informant
0.9.0 - sc-network
0.9.0 - sc-network-gossip
0.9.0 - sc-offchain
3.0.0 - sc-peerset
3.0.0 - sc-proposer-metrics
0.9.0 - sc-rpc
3.0.0 - sc-rpc-api
0.9.0 - sc-rpc-server
3.0.0 - sc-service
0.9.0 - sc-state-db
0.9.0 - sc-telemetry
3.0.0 - sc-tracing
3.0.0 - sc-transaction-graph
3.0.0 - sc-transaction-pool
3.0.0 - soketto
0.4.2 - sp-allocator
3.0.0 - sp-blockchain
3.0.0 - sp-consensus
0.9.0 - sp-core
3.0.0 - sp-finality-grandpa
3.0.0 - sp-io
3.0.0 - sp-runtime
3.0.0 - sp-state-machine
0.9.0 - sp-tasks
3.0.0 - sp-tracing
3.0.0 - sp-transaction-pool
3.0.0 - substrate-frame-rpc-system
3.0.0 - substrate-prometheus-endpoint
0.9.0 - tokio-io
0.1.13 - tokio-reactor
0.1.12 - tokio-threadpool
0.1.18 - tokio-udp
0.1.6 - tokio-uds
0.2.7 - tokio-util
0.3.1 - tracing
0.1.23 - tracing-log
0.1.1 - trie-db
0.22.3 - want
0.2.0 - want
0.3.0 - wasm-bindgen-backend
0.2.70 - wasm-gc-api
0.1.11 - wasmtime
0.22.0 - wasmtime-cache
0.22.0 - wasmtime-environ
0.22.0 - wasmtime-jit
0.22.0 - wasmtime-runtime
0.22.0 - yamux
0.8.0
- async-io
lru
0.6.5crates.io↘ 1↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum1f374d42cdfc1d7dbf3d3dec28afab2eb97ffbf43a3234d795b5986dbf4b90badepends onmach
0.3.2crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb823e83b2affd8f40a9ee8c29dbc56404c1e34cd2710921f2801e2cf29527afadepends onused bymaplit
1.0.2crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651dused bymatchers
0.0.1crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf099785f7595cc4b4553a174ce30dd7589ef93391ff414dbb67f62392b9e0ce1depends onused bymatches
0.1.8crates.io↘ 0↖ 6sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08matrixmultiply
0.2.4crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum916806ba0031cd542105d916a97c8572e1fa6dd79c9c51e7eb43a09ec2dd84c1depends onused bymaybe-uninit
2.0.0crates.io↘ 0↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00memchr
2.3.4crates.io↘ 0↖ 10sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525memmap2
0.2.1crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum04e3e85b970d650e2ae6d70592474087051c11c54da7f7b4949725c5735fbcc6depends onused bymemoffset
0.5.6crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum043175f069eda7b85febe4a74abbaeff828d9f8b448515d3151a14a3542811aadepends onused bymemoffset
0.6.1crates.io↘ 1↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum157b4208e3059a8f9e78d559edc658e13df41410cb3ae03979c83130067fdd87depends onmemory_units
0.3.0crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum71d96e3f3c0b6325d8ccd83c33b28acb183edcb6c67938ba104ec546854b0882used bymemory-db
0.26.0crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum814bbecfc0451fc314eeea34f05bbcd5b98a7ad7af37faee088b86a1e633f1d4used bymerlin
2.0.1crates.io↘ 4↖ 6sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum4e261cf0f8b3c42ded9f7d2bb59dea03aa52bc8a1cbc7482f9fc3fd1229d3b42minicbor
0.7.1crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum3265a9f5210bb726f81ef9c456ae0aff5321cd95748c0e71889b0e19d8f0332bdepends onused byminicbor-derive
0.6.1crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum130b9455e28a3f308f6579671816a6f2621e2e0cbf55dc2f886345bef699481edepends onused byminiz_oxide
0.4.3crates.io↘ 2↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum0f2d26ec3309788e423cfbf68ad1800f061638098d76a83681af979dc4eda19ddepends onused bymio
0.6.23crates.io↘ 11↖ 11sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum4afd66f5b91bf2a3bc13fad0e21caedac168ca4c707504e75585648ae80e4cc4depends onmio-extras
2.0.6crates.io↘ 4↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum52403fe290012ce777c4626790c8951324a2b9e3316b3143779c72b029742f19depends onused bymio-named-pipes
0.1.7crates.io↘ 4↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum0840c1c50fd55e521b247f949c241c9997709f23bd7f023b9762cd561e935656depends onmio-uds
0.6.8crates.io↘ 3↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumafcb699eb26d4332647cc848492bbc15eafb26f08d0304550d5aa1f612e066f0depends onused bymiow
0.2.2crates.io↘ 4↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumebd808424166322d4a38da87083bfddd3ac4c131334ed55856112eb06d46944dused bymiow
0.3.6crates.io↘ 2↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum5a33c1b55807fbed163481b5ba66db4b2fa6cde694a5027be10fb724206c5897depends onmore-asserts
0.2.1crates.io↘ 0↖ 5sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum0debeb9fcf88823ea64d64e4a815ab1643f33127d995978e099942ce38f25238multibase
0.8.0crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb78c60039650ff12e140ae867ef5299a58e19dded4d334c849dc7177083667e2used bymultihash
0.13.2crates.io↘ 9↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum4dac63698b887d2d929306ea48b63760431ff8a24fac40ddb22f9c7f49fb7cabdepends onmultihash-derive
0.7.1crates.io↘ 6↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum85ee3c48cb9d9b275ad967a0e96715badc13c6029adb92f34fa17b9ff28fd81fdepends onused bymultimap
0.8.2crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum1255076139a83bb467426e7f8d0134968a8118844faa755985e077cf31850333used bymultistream-select
0.10.1crates.io↘ 6↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum5df70763c86c98487451f307e1b68b4100da9076f4c12146905fc2054277f4e8used bynalgebra
0.21.1crates.io↘ 10↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd6b6147c3d50b4f3cdabfe2ecc94a0191fd3d6ad58aefd9664cf396285883486depends onused bynames
0.11.0crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumef320dab323286b50fb5cdda23f61c796a72a89998ab565ca32525c5c556f2dadepends onused bynb-connect
1.0.3crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum670361df1bc2399ee1ff50406a0d422587dd3bb0da596e1978fe8e05dabddf4fdepends onused bynet2
0.2.37crates.io↘ 3↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum391630d12b68002ae1e25e8f974306474966550ad82dac6886fb8910c19568aedepends onnft
3.0.0workspace↘ 39↖ 0depends on- flexi_logger
0.15.12 - frame-benchmarking
3.1.0 - frame-benchmarking-cli
3.0.0 - futures
0.3.12 - jsonrpc-core
15.1.0 - log
0.4.14 - nft-runtime
3.0.0 - pallet-contracts-rpc
3.0.0 - pallet-transaction-payment-rpc
3.0.0 - parking_lot
0.10.2 - sc-basic-authorship
0.9.0 - sc-cli
0.9.0 - sc-client-api
3.0.0 - sc-consensus
0.9.0 - sc-consensus-aura
0.9.0 - sc-executor
0.9.0 - sc-finality-grandpa
0.9.0 - sc-keystore
3.0.0 - sc-network
0.9.0 - sc-rpc
3.0.0 - sc-rpc-api
0.9.0 - sc-service
0.9.0 - sc-telemetry
3.0.0 - sc-transaction-pool
3.0.0 - serde
1.0.123 - serde_json
1.0.62 - sp-api
3.0.0 - sp-block-builder
3.0.0 - sp-blockchain
3.0.0 - sp-consensus
0.9.0 - sp-consensus-aura
0.9.0 - sp-core
3.0.0 - sp-finality-grandpa
3.0.0 - sp-inherents
3.0.0 - sp-runtime
3.0.0 - sp-transaction-pool
3.0.0 - structopt
0.3.21 - substrate-build-script-utils
3.0.0 - substrate-frame-rpc-system
3.0.0
- flexi_logger
nft-runtime
3.0.0workspace↘ 38↖ 1depends on- frame-benchmarking
3.1.0 - frame-executive
3.0.0 - frame-support
3.0.0 - frame-system
3.0.0 - frame-system-benchmarking
3.0.0 - frame-system-rpc-runtime-api
3.0.0 - hex-literal
0.3.1 - pallet-aura
3.0.0 - pallet-balances
3.0.0 - pallet-contracts
3.0.0 - pallet-contracts-primitives
3.0.0 - pallet-contracts-rpc-runtime-api
3.0.0 - pallet-grandpa
3.0.0 - pallet-inflation
3.0.0 - pallet-nft
3.0.0 - pallet-randomness-collective-flip
3.0.0 - pallet-sudo
3.0.0 - pallet-timestamp
3.0.0 - pallet-transaction-payment
3.0.0 - pallet-transaction-payment-rpc-runtime-api
3.0.0 - pallet-treasury
3.0.0 - pallet-vesting
3.0.0 - parity-scale-codec
2.0.1 - serde
1.0.123 - smallvec
1.6.1 - sp-api
3.0.0 - sp-arithmetic
3.0.0 - sp-block-builder
3.0.0 - sp-consensus-aura
0.9.0 - sp-core
3.0.0 - sp-inherents
3.0.0 - sp-offchain
3.0.0 - sp-runtime
3.0.0 - sp-session
3.0.0 - sp-std
3.0.0 - sp-transaction-pool
3.0.0 - sp-version
3.0.0 - substrate-wasm-builder
4.0.0
used by- frame-benchmarking
nodrop
0.1.14crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bbused bynohash-hasher
0.2.0crates.io↘ 0↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451nom
5.1.2crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumffb4262d26ed83a1c0a33a38fe2bb15797329c85770da05e6b828ddb782627afdepends onused bynum_cpus
1.13.0crates.io↘ 2↖ 12sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3depends onnum-bigint
0.2.6crates.io↘ 3↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum090c7f9998ee0ff65aa5b723e4009f7b217707f1fb5ea551329cc4d6231fb304num-complex
0.2.4crates.io↘ 2↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb6b19411a9719e753aff12e5187b74d60d3dc449ec3f4dc21e3989c3f554bc95depends onused bynum-integer
0.1.44crates.io↘ 2↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801dbdepends onnum-rational
0.2.4crates.io↘ 4↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum5c000134b5dbf44adc5cb772486d335293351644b801551abe8f75c84cfa4aefnum-traits
0.2.14crates.io↘ 2↖ 15sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290depends onobject
0.22.0crates.io↘ 2↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum8d3b63360ec3cb337817c2dbd47ab4a0f170d285d8e5a2064600f3def1402397depends onobject
0.23.0crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksuma9a7ab5d64814df0fe4a4b5ead45ed6c5f181ee3ff04ba344313a6c80446c5d4used byonce_cell
1.5.2crates.io↘ 1↖ 12sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum13bd41f508810a131401606d54ac32a467c97172d74ba7662562ebba5ad07fa0depends onopaque-debug
0.2.3crates.io↘ 0↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum2839e79665f131bdb5782e51f2c6c9599c133c6098982a54c794358bf432529cused byopaque-debug
0.3.0crates.io↘ 0↖ 8sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5openssl-probe
0.1.2crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum77af24da69f9d9341038eba93a073b1fdaaa1b788221b00a69bce9e762cb32deused byowning_ref
0.4.1crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum6ff55baddef9e4ad00f88b6c743a2a8062d4c6ade126c2a528644b8e444d52cedepends onused bypallet-aura
3.0.0crates.io↘ 11↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum73ff6054e982e7841a2519c988680620a85c1da5cd32363998a30302ed47f6f9depends onused bypallet-authorship
3.0.0crates.io↘ 8↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum47433a94141451e7079aabf3ca28f2bde8c642d84b568be9626e9b7cae8b11b1depends onused bypallet-balances
3.0.0crates.io↘ 7↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum41aaeaf084e594273f82bcbf96416ef1fcab602e15dd1df04b9930eceb2eb518depends onpallet-contracts
3.0.0crates.io↘ 14↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd0979c1dd82fc56a87b37311006fe56f406de027c24591353058e9e9fc56487cdepends onpallet-contracts-primitives
3.0.0crates.io↘ 4↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum621d75148763349f72e76e79f62365d28adb51e3f2e0285e4e8b8600ae600978pallet-contracts-proc-macro
3.0.0crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum90046017aeee3f77752a6c77cdfb1bc93eb728591dc6edad36e2706f7626fd50depends onused bypallet-contracts-rpc
3.0.0crates.io↘ 12↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum22491e3c304819f96c83d02e43bd99128e4e42a57da4d6a9d4b5193778da915bdepends onused bypallet-contracts-rpc-runtime-api
3.0.0crates.io↘ 5↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumbb4b410cb148e68256e3827854a67ec34b16157f448e78173219dcd6a8ec7343depends onpallet-grandpa
3.0.0crates.io↘ 14↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum7c012cb0337ce1eaf0685be2777bce1ef8c5d7b7be77ea33916c316b40af43fadepends onused bypallet-nft
3.0.0workspace↘ 14↖ 1depends onused bypallet-randomness-collective-flip
3.0.0crates.io↘ 6↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumca3ea6fa9aa36735ec11d7ec4d97dd6472650c0656fdc6d4adaca2578bd71134depends onpallet-session
3.0.0crates.io↘ 13↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum6d243c3ccac56a4c55fade6be5c5af1de07fac374fa7856377980a76b0c193cfdepends onpallet-sudo
3.0.0crates.io↘ 7↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumc4a96774302e3824b7924c2465935ca4d558ea5f6a762c043fbc45fd2646ce89depends onused bypallet-timestamp
3.0.0crates.io↘ 11↖ 5sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb17dd274716a55a2c3e34d9c0ed66aaac3d7e0393ec9fd985e2b8532d697a7f3depends onpallet-transaction-payment
3.0.0crates.io↘ 9↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum48e10dc1a10dd3f52edb20d3885cf5b2b16f26273a4d93e61331c6691fb13ab3depends onpallet-transaction-payment-rpc
3.0.0crates.io↘ 10↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum7835717b7d8fb59c33dd73f083c68a6d143a1dbe6029364c63ea7f4cb0ba3f9cdepends onused bypallet-transaction-payment-rpc-runtime-api
3.0.0crates.io↘ 4↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum7a92d3383260d0d19d9a36f40766d48d779fd19baccba8b20c3e7d2670a26ee1pallet-treasury
3.0.0crates.io↘ 8↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd19f881664d42d1c33dd67e690d6bddd35d38723fcc099b19304f9723fc3070cdepends onused bypallet-vesting
3.0.0crates.io↘ 7↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum4e4e1af42bbdf1d477c3762387c74855f24bca47700df3ce7d9428045986b544depends onused byparity-db
0.2.2crates.io↘ 8↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum111e193c96758d476d272093a853882668da17489f76bf4361b8decae0b6c515depends onused byparity-multiaddr
0.11.1crates.io↘ 10↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd2c6805f98667a3828afb2ec2c396a8d610497e8d546f5447188aae47c5a79ecdepends onparity-scale-codec
2.0.1crates.io↘ 5↖ 85sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum0cd3dab59b5cf4bc81069ade0fc470341a1ef3ad5fa73e5a8943bed2ec12b2e8used by- finality-grandpa
0.13.0 - fork-tree
3.0.0 - frame-benchmarking
3.1.0 - frame-benchmarking-cli
3.0.0 - frame-executive
3.0.0 - frame-metadata
13.0.0 - frame-support
3.0.0 - frame-system
3.0.0 - frame-system-benchmarking
3.0.0 - frame-system-rpc-runtime-api
3.0.0 - impl-codec
0.5.0 - nft-runtime
3.0.0 - pallet-aura
3.0.0 - pallet-authorship
3.0.0 - pallet-balances
3.0.0 - pallet-contracts
3.0.0 - pallet-contracts-primitives
3.0.0 - pallet-contracts-rpc
3.0.0 - pallet-contracts-rpc-runtime-api
3.0.0 - pallet-grandpa
3.0.0 - pallet-inflation
3.0.0 - pallet-nft
3.0.0 - pallet-randomness-collective-flip
3.0.0 - pallet-session
3.0.0 - pallet-sudo
3.0.0 - pallet-timestamp
3.0.0 - pallet-transaction-payment
3.0.0 - pallet-transaction-payment-rpc
3.0.0 - pallet-transaction-payment-rpc-runtime-api
3.0.0 - pallet-treasury
3.0.0 - pallet-vesting
3.0.0 - sc-basic-authorship
0.9.0 - sc-block-builder
0.9.0 - sc-chain-spec
3.0.0 - sc-cli
0.9.0 - sc-client-api
3.0.0 - sc-client-db
0.9.0 - sc-consensus-aura
0.9.0 - sc-consensus-babe
0.9.0 - sc-consensus-epochs
0.9.0 - sc-consensus-slots
0.9.0 - sc-executor
0.9.0 - sc-executor-common
0.9.0 - sc-executor-wasmi
0.9.0 - sc-executor-wasmtime
0.9.0 - sc-finality-grandpa
0.9.0 - sc-light
3.0.0 - sc-network
0.9.0 - sc-offchain
3.0.0 - sc-rpc
3.0.0 - sc-rpc-api
0.9.0 - sc-service
0.9.0 - sc-state-db
0.9.0 - sc-transaction-pool
3.0.0 - sp-api
3.0.0 - sp-application-crypto
3.0.0 - sp-arithmetic
3.0.0 - sp-authorship
3.0.0 - sp-block-builder
3.0.0 - sp-blockchain
3.0.0 - sp-consensus
0.9.0 - sp-consensus-aura
0.9.0 - sp-consensus-babe
0.9.0 - sp-consensus-slots
0.9.0 - sp-consensus-vrf
0.9.0 - sp-core
3.0.0 - sp-externalities
0.9.0 - sp-finality-grandpa
3.0.0 - sp-inherents
3.0.0 - sp-io
3.0.0 - sp-keystore
0.9.0 - sp-runtime
3.0.0 - sp-runtime-interface
3.0.0 - sp-sandbox
0.9.0 - sp-session
3.0.0 - sp-staking
3.0.0 - sp-state-machine
0.9.0 - sp-storage
3.0.0 - sp-timestamp
3.0.0 - sp-tracing
3.0.0 - sp-transaction-pool
3.0.0 - sp-trie
3.0.0 - sp-version
3.0.0 - sp-wasm-interface
3.0.0 - substrate-frame-rpc-system
3.0.0
- finality-grandpa
parity-scale-codec-derive
2.0.1crates.io↘ 4↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumfa04976a81fde04924b40cc4036c4d12841e8bb04325a5cf2ada75731a150a7dused byparity-send-wrapper
0.1.0crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumaa9777aa91b8ad9dd5aaa04a9b6bcb02c7f1deb952fca5a66034d5e63afc5c6fused byparity-tokio-ipc
0.4.0crates.io↘ 11↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum1e57fea504fea33f9fbb5f49f378359030e7e026a6ab849bb9e8f0787376f1bfdepends onused byparity-util-mem
0.9.0crates.io↘ 8↖ 12sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum664a8c6b8e62d8f9f2f937e391982eb433ab285b4cd9545b342441e04a906e42depends onparity-util-mem-derive
0.1.0crates.io↘ 3↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf557c32c6d268a07c921471619c0295f5efad3a0e76d4f97a05c091a51d110b2parity-wasm
0.32.0crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum16ad52817c4d343339b3bc2e26861bd21478eda0b7509acf83505727000512acdepends onused byparity-wasm
0.41.0crates.io↘ 0↖ 8sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumddfc878dac00da22f8f61e7af3157988424567ab01d9920b962ef7dcbd7cd865parity-ws
0.10.0crates.io↘ 10↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum9e02a625dd75084c2a7024f07c575b61b782f729d18702dabb3cdbf31911dc61depends onused byparking
2.0.0crates.io↘ 0↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum427c3892f9e783d91cc128285287e70a59e206ca452770ece88a76f7a3eddd72parking_lot
0.9.0crates.io↘ 3↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf842b1982eb6c2fe34036a4fbfb06dd185a3f5c8edfaacdf7d1ea10b07de6252parking_lot
0.10.2crates.io↘ 2↖ 5sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd3a704eb390aafdc107b0e392f56a82b668e3a71366993b5340f5833fd62505edepends onparking_lot
0.11.1crates.io↘ 3↖ 41sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum6d7744ac029df22dca6284efe4e898991d28e3085c706c972bcd7da4a27a15ebused by- finality-grandpa
0.13.0 - kvdb-memorydb
0.9.0 - kvdb-rocksdb
0.11.0 - libp2p
0.34.0 - libp2p-core
0.27.1 - libp2p-mplex
0.27.1 - libp2p-yamux
0.30.0 - once_cell
1.5.2 - parity-db
0.2.2 - parity-util-mem
0.9.0 - prometheus
0.11.0 - sc-client-api
3.0.0 - sc-client-db
0.9.0 - sc-consensus-aura
0.9.0 - sc-consensus-babe
0.9.0 - sc-consensus-epochs
0.9.0 - sc-consensus-slots
0.9.0 - sc-executor
0.9.0 - sc-finality-grandpa
0.9.0 - sc-keystore
3.0.0 - sc-light
3.0.0 - sc-network
0.9.0 - sc-offchain
3.0.0 - sc-rpc
3.0.0 - sc-rpc-api
0.9.0 - sc-service
0.9.0 - sc-state-db
0.9.0 - sc-telemetry
3.0.0 - sc-tracing
3.0.0 - sc-transaction-graph
3.0.0 - sc-transaction-pool
3.0.0 - sp-blockchain
3.0.0 - sp-consensus
0.9.0 - sp-core
3.0.0 - sp-database
3.0.0 - sp-inherents
3.0.0 - sp-io
3.0.0 - sp-keystore
0.9.0 - sp-state-machine
0.9.0 - wasm-timer
0.2.5 - yamux
0.8.0
- finality-grandpa
parking_lot_core
0.6.2crates.io↘ 7↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb876b1b9e7ac6e1a74a6da34d25c42e17e8862aa409cbbbdcfc8d86c6f3bc62bdepends onused byparking_lot_core
0.7.2crates.io↘ 6↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd58c7c768d4ba344e3e8d72518ac13e259d7c7ade24167003b8488e10b6740a3used byparking_lot_core
0.8.3crates.io↘ 6↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumfa7a782938e745763fe6907fc6ba86946d72f49fe7e21de074e08128a99fb018used bypaste
0.1.18crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum45ca20c77d80be666aef2b45486da86238fabe33e38306bd3118fe4af33fa880depends onused bypaste
1.0.4crates.io↘ 0↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumc5d65c4d95931acda4498f675e332fcbdc9a06705cd07086c510e9b6009cd1c1paste-impl
0.1.18crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd95a7db200b97ef370c8e6de0088252f7e0dfff7d047a28528e47456c0fc98b6depends onused bypbkdf2
0.3.0crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum006c038a43a45995a9670da19e67600114740e8511d4333bf97a56e66a7542d9depends onused bypbkdf2
0.4.0crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum216eaa586a190f0a738f2f918511eecfa90f13295abec0e457cdebcceda80cbddepends onused bypdqselect
0.1.0crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum4ec91767ecc0a0bbe558ce8c9da33c068066c57ecc8bb8477ef8c1ad3ef77c27used bypeeking_take_while
0.1.2crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099used bypercent-encoding
1.0.1crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum31010dd2e1ac33d5b46a5b413495239882813e0369f8ed8a5e266f173602f831used bypercent-encoding
2.1.0crates.io↘ 0↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32epest
2.1.3crates.io↘ 1↖ 5sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum10f4872ae94d7b90ae48754df22fd42ad52ce740b8f370b03da4835417403e53depends onpest_derive
2.1.0crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum833d1ae558dc601e9a60366421196a8d94bc0ac980476d0b67e1d0988d72b2d0depends onused bypest_generator
2.1.3crates.io↘ 5↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum99b8db626e31e5b81787b9783425769681b347011cc59471e33ea46d2ea0cf55used bypest_meta
2.1.3crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum54be6e404f5317079812fc8f9f5279de376d8856929e21c184ecf6bbd692a11ddepends onused bypetgraph
0.5.1crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum467d164a6de56270bd7c4d070df81d07beace25012d5103ced4e9ff08d6afdb7depends onused bypin-project
0.4.27crates.io↘ 1↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum2ffbc8e94b38ea3d2d8ba92aea2983b503cd75d0888d75b86bb37970b5698e15depends onpin-project
1.0.5crates.io↘ 1↖ 9sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum96fa8ebb90271c4477f144354485b8068bd8f6b78b428b01ba892ca26caf0b63depends onpin-project-internal
0.4.27crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum65ad2ae56b6abe3a1ee25f15ee605bacadb9a764edaba9c2bf4103800d4a1895depends onused bypin-project-internal
1.0.5crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum758669ae3558c6f74bd2a18b41f7ac0b5a195aea6639d6a9b5e5d1ad5ba24c0bdepends onused bypin-project-lite
0.1.11crates.io↘ 0↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumc917123afa01924fc84bb20c4c03f004d9c38e5127e3c039bbf7f4b9c76a2f6bpin-project-lite
0.2.4crates.io↘ 0↖ 6sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum439697af366c49a6d0a010c56a0d97685bc140ce0d377b13a2ea2aa42d64a827pin-utils
0.1.0crates.io↘ 0↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184pkg-config
0.3.19crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum3831453b3449ceb48b6d9c7ad7c96d5ea673e9b470a1dc578c2ce6521230884cused byplatforms
1.1.0crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum989d43012e2ca1c4a02507c67282691a0a3207f9dc67cec596b43fe925b3d325polling
2.0.2crates.io↘ 5↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksuma2a7bc6b2a29e632e45451c941832803a18cce6781db04de8a04696cdca8bde4used bypoly1305
0.6.2crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum4b7456bc1ad2d4cf82b3a016be4c2ac48daf11bf990c1603ebd447fe6f30fca8depends onused bypolyval
0.4.5crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumeebcc4aa140b9abd2bc40d9c3f7ccec842679cd79045ac3a7ac698c1a064b7cdused byppv-lite86
0.2.10crates.io↘ 0↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumac74c624d6b2d21f425f752262f42188365d7b8ff1aff74c82e45136510a4857primitive-types
0.9.0crates.io↘ 4↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum2415937401cb030a2a0a4d922483f945fa068f52a7dbb22ce0fe5f2b6f6adaceproc-macro-crate
0.1.5crates.io↘ 1↖ 8sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum1d6ea3c4595b96363c13943497db34af4460fb474a95c43f4446ad341b8c9785depends onproc-macro-error
1.0.4crates.io↘ 5↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumda25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38cproc-macro-error-attr
1.0.4crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksuma1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869used byproc-macro-hack
0.5.19crates.io↘ 0↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumdbf0c48bc1d91375ae5c3cd81e3722dff1abcf81a30960240640d223f59fe0e5proc-macro-nested
0.1.7crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumbc881b2c22681370c6a780e47af9840ef841837bc98118431d4e1868bd0c1086used byproc-macro2
1.0.24crates.io↘ 1↖ 41sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum1e0704ee1a7e00d7bb417d0770ea303c1bccbabf0ef1667dae92b5967f5f8a71depends onused by- async-trait
0.1.42 - bindgen
0.54.0 - derive_more
0.99.11 - dyn-clonable-impl
0.9.0 - enumflags2_derive
0.6.4 - failure_derive
0.1.8 - frame-support-procedural
3.0.0 - frame-support-procedural-tools
3.0.0 - frame-support-procedural-tools-derive
3.0.0 - futures-macro
0.3.12 - impl-trait-for-tuples
0.2.1 - jsonrpc-derive
15.1.0 - minicbor-derive
0.6.1 - multihash-derive
0.7.1 - pallet-contracts-proc-macro
3.0.0 - parity-scale-codec-derive
2.0.1 - parity-util-mem-derive
0.1.0 - pest_generator
2.1.3 - pin-project-internal
0.4.27 - pin-project-internal
1.0.5 - proc-macro-error
1.0.4 - proc-macro-error-attr
1.0.4 - prost-derive
0.7.0 - quote
1.0.9 - ref-cast-impl
1.0.6 - sc-chain-spec-derive
3.0.0 - sc-tracing-proc-macro
3.0.0 - scroll_derive
0.10.5 - serde_derive
1.0.123 - sp-api-proc-macro
3.0.0 - sp-debug-derive
3.0.0 - sp-runtime-interface-proc-macro
3.0.0 - structopt-derive
0.4.14 - strum_macros
0.20.1 - syn
1.0.60 - synstructure
0.12.4 - thiserror-impl
1.0.23 - tracing-attributes
0.1.12 - wasm-bindgen-backend
0.2.70 - wasm-bindgen-macro-support
0.2.70 - zeroize_derive
1.0.1
- async-trait
prometheus
0.11.0crates.io↘ 6↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumc8425533e7122f0c3cc7a37e6244b16ad3a2cc32ae7ac6276e2a75da0d9c200dprost
0.7.0crates.io↘ 2↖ 10sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum9e6984d2f1a23009bd270b8bb56d0926810a3d483f59c987d77969e9d8e840b2depends onprost-build
0.7.0crates.io↘ 10↖ 8sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum32d3ebd75ac2679c2af3a92246639f9fcc8a442ee420719cc4fe195b98dd5fa3depends onprost-derive
0.7.0crates.io↘ 5↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum169a15f3008ecb5160cba7d37bcd690a7601b6d30cfb87a117d45e59d52af5d4used byprost-types
0.7.0crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb518d7cdd93dab1d1122cf07fa9a60771836c668dde9d9e2a139f957f0d9f1bbdepends onused bypsm
0.1.12crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum3abf49e5417290756acfd26501536358560c4a5cc4a0934d390939acb3e7083adepends onused bypwasm-utils
0.14.0crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum0f53bc2558e8376358ebdc28301546471d67336584f6438ed4b7c7457a055fd7depends onused bypwasm-utils
0.16.0crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum1c8ac87af529432d3a4f0e2b3bbf08af49f28f09cc73ed7e551161bdaef5f78ddepends onused byquick-error
1.2.3crates.io↘ 0↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksuma1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0quick-error
2.0.0crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum3ac73b1112776fc109b2e61909bc46c7e1bf0d7f690ffb1676553acce16d5cdaused byquicksink
0.1.2crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum77de3c815e5a160b1539c6592796801df2043ae35e123b46d73380cfa57af858used byquote
1.0.9crates.io↘ 1↖ 43sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumc3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7depends onused by- asn1_der_derive
0.1.2 - async-trait
0.1.42 - bindgen
0.54.0 - ctor
0.1.19 - derive_more
0.99.11 - dyn-clonable-impl
0.9.0 - enumflags2_derive
0.6.4 - failure_derive
0.1.8 - frame-support-procedural
3.0.0 - frame-support-procedural-tools
3.0.0 - frame-support-procedural-tools-derive
3.0.0 - futures-macro
0.3.12 - impl-trait-for-tuples
0.2.1 - jsonrpc-derive
15.1.0 - libp2p-core-derive
0.21.0 - minicbor-derive
0.6.1 - multihash-derive
0.7.1 - pallet-contracts-proc-macro
3.0.0 - parity-scale-codec-derive
2.0.1 - pest_generator
2.1.3 - pin-project-internal
0.4.27 - pin-project-internal
1.0.5 - proc-macro-error
1.0.4 - proc-macro-error-attr
1.0.4 - prost-derive
0.7.0 - ref-cast-impl
1.0.6 - sc-chain-spec-derive
3.0.0 - sc-tracing-proc-macro
3.0.0 - scroll_derive
0.10.5 - serde_derive
1.0.123 - sp-api-proc-macro
3.0.0 - sp-debug-derive
3.0.0 - sp-runtime-interface-proc-macro
3.0.0 - structopt-derive
0.4.14 - strum_macros
0.20.1 - syn
1.0.60 - synstructure
0.12.4 - thiserror-impl
1.0.23 - tracing-attributes
0.1.12 - wasm-bindgen-backend
0.2.70 - wasm-bindgen-macro
0.2.70 - wasm-bindgen-macro-support
0.2.70 - zeroize_derive
1.0.1
- asn1_der_derive
radium
0.6.2crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum643f8f41a8ebc4c5dc4515c82bb8abd397b527fc20fd681b7c011c2aee5d44fbused byrand
0.3.23crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum64ac302d8f83c0c1974bf758f6b041c6c8ada916fbb44a609158ca8b064cc76cdepends onused byrand
0.4.6crates.io↘ 5↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum552840b97013b1a26992c11eac34bdd778e464601a4c2054b5f0bff7c6761293used byrand
0.7.3crates.io↘ 6↖ 37sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03used by- cuckoofilter
0.5.0 - ed25519-dalek
1.0.1 - jsonrpc-pubsub
15.1.0 - libp2p-core
0.27.1 - libp2p-floodsub
0.27.0 - libp2p-gossipsub
0.27.0 - libp2p-kad
0.28.1 - libp2p-mdns
0.28.1 - libp2p-mplex
0.27.1 - libp2p-noise
0.29.0 - libp2p-ping
0.27.0 - libp2p-pnet
0.20.0 - libp2p-request-response
0.9.1 - libp2p-swarm
0.27.2 - libsecp256k1
0.3.5 - nalgebra
0.21.1 - parity-tokio-ipc
0.4.0 - parity-ws
0.10.0 - rand_distr
0.2.2 - sc-cli
0.9.0 - sc-consensus-babe
0.9.0 - sc-finality-grandpa
0.9.0 - sc-keystore
3.0.0 - sc-network
0.9.0 - sc-offchain
3.0.0 - sc-service
0.9.0 - sc-telemetry
3.0.0 - schnorrkel
0.9.1 - snow
0.7.2 - soketto
0.4.2 - sp-core
3.0.0 - sp-runtime
3.0.0 - sp-state-machine
0.9.0 - statrs
0.12.0 - tiny-bip39
0.8.0 - twox-hash
1.6.0 - yamux
0.8.0
- cuckoofilter
rand
0.8.3crates.io↘ 4↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum0ef9e7e66b4468674bfcb0c81af8b7fa0bb154fa9f28eb840da5c447baeb8d7erand_chacha
0.2.2crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402depends onused byrand_chacha
0.3.0crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksume12735cf05c9e10bf21534da50a147b924d555dc7a547c42e6bb2d5b6017ae0ddepends onused byrand_core
0.3.1crates.io↘ 1↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum7a6fdeb83b075e8266dcc8762c22776f6877a63111121f5f8c7411e5be7eed4bdepends onused byrand_core
0.4.2crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum9c33a3c44ca05fa6f1807d8e6743f3824e8509beca625669633be0acbdf509dcused byrand_core
0.5.1crates.io↘ 1↖ 10sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19depends onrand_core
0.6.2crates.io↘ 1↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum34cf66eb183df1c5876e2dcf6b13d57340741e8dc255b48e40a26de954d06ae7depends onrand_distr
0.2.2crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum96977acbdd3a6576fb1d27391900035bf3863d4a16422973a409b488cf29ffb2depends onused byrand_hc
0.2.0crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613cdepends onused byrand_hc
0.3.0crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum3190ef7066a446f2e7f42e239d161e905420ccab01eb967c9eb27d21b2322a73depends onused byrand_pcg
0.2.1crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429depends onused byraw-cpuid
8.1.2crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum1fdf7d9dbd43f3d81d94a49c1c3df73cc2b3827995147e6cf7f89d4ec5483e73depends onused byrawpointer
0.2.1crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3used byrayon
1.5.0crates.io↘ 4↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum8b0d8e0819fadc20c74ea8373106ead0600e3a67ef1fe8da56e39b9ae7275674used byrayon-core
1.9.0crates.io↘ 5↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum9ab346ac5921dc62ffa9f89b7a773907511cdfa5490c572ae9be1be33e8afa4adepends onused byrdrand
0.4.0crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum678054eb77286b51581ba43620cc911abf02758c91f93f479767aed0f90458b2depends onused byredox_syscall
0.1.57crates.io↘ 0↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ceredox_syscall
0.2.5crates.io↘ 1↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum94341e4e44e24f6b591b59e47a8a027df12e008d73fd5672dbea9cc22f4507d9depends onredox_users
0.3.5crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumde0737333e7a9502c789a36d7c7fa6092a49895d4faa31ca5df163857ded2e9dused byredox_users
0.4.0crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum528532f3d801c87aec9def2add9ca802fe569e44a544afe633765267840abe64depends onused byref-cast
1.0.6crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum300f2a835d808734ee295d45007adacb9ebb29dd3ae2424acfa17930cae541dadepends onused byref-cast-impl
1.0.6crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum4c38e3aecd2b21cb3959637b883bb3714bc7e43f0268b9a29d3743ee3e55cdd2depends onused byregalloc
0.0.31crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum571f7f397d61c4755285cd37853fe8e03271c243424a907415909379659381c5depends onused byregex
1.4.3crates.io↘ 4↖ 12sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd9251239e129e16308e70d853559389de218ac275b515068abc96829d05b948aregex-automata
0.1.9crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumae1ded71d66a4a97f5e961fd0cb25a5f366a42a41570d16a763a69c092c26ae4depends onused byregex-syntax
0.6.22crates.io↘ 0↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb5eb417147ba9860a96cfe72a0b93bf88fee1744b5636ec99ab20c1aa9376581region
2.2.0crates.io↘ 4↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum877e54ea2adcd70d80e9179344c97f93ef0dffd6b03e1f4529e6e83ab2fa9ae0remove_dir_all
0.5.3crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7depends onused byretain_mut
0.1.2crates.io↘ 0↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum53552c6c49e1e13f1a203ef0080ab3bbef0beb570a528993e83df057a9d9bba1ring
0.16.20crates.io↘ 7↖ 6sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fcrocksdb
0.15.0crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum23d83c02c429044d58474eaf5ae31e062d0de894e21125b47437ec0edc1397e6depends onused byrpassword
5.0.1crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumffc936cf8a7ea60c58f030fd36a612a48f440610214dc54bc36431f9ea0c3efbdepends onused byrust-argon2
0.8.3crates.io↘ 4↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum4b18820d944b33caa75a71378964ac46f58517c92b6ae5f762636247c09e78fbused byrustc_version
0.2.3crates.io↘ 1↖ 6sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030adepends onrustc-demangle
0.1.18crates.io↘ 0↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum6e3bad0ee36814ca07d7968269dd4b7ec89ec2da10c4bb613928d3077083c232rustc-hash
1.1.0crates.io↘ 0↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2rustc-hex
2.1.0crates.io↘ 0↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum3e75f6a532d0fd9f7f13144f392b6ad56a32696bfcd9c78f797f16bbb6f072d6used byrustls
0.18.1crates.io↘ 5↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum5d1126dcf58e93cee7d098dbda643b5f92ed724f1f6a63007c1116eed6700c81rustls
0.19.0crates.io↘ 5↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum064fd21ff87c6e87ed4506e68beb42459caa4a0e2eb144932e6776768556980bused byrustls-native-certs
0.4.0crates.io↘ 4↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum629d439a7672da82dd955498445e496ee2096fe2117b9f796558a43fdb9e59b8used byrw-stream-sink
0.2.1crates.io↘ 3↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum4da5fcb054c46f5a5dff833b129285a93d3f0179531735e6c866e8cc307d2020ryu
1.0.5crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86eused bysafe-mix
1.0.1crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum6d3d055a2582e6b00ed7a31c1524040aa391092bf636328350813f3a0605215cdepends onsalsa20
0.7.2crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum399f290ffc409596022fce5ea5d4138184be4784f2b28c62c59f0d8389059a15depends onused bysame-file
1.0.6crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502depends onused bysc-basic-authorship
0.9.0crates.io↘ 16↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumde86afb63617599821312bda08882451ff2b49d9c45e22513ddff5a07c6d966edepends onused bysc-block-builder
0.9.0crates.io↘ 10↖ 6sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum9862161f9d09d870401c7256c89ad1eb3afa56a61f7d7135c2bac76ff7152955depends onsc-chain-spec
3.0.0crates.io↘ 14↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum50d97030776b49bc9c109e2d349212d8f2500637761048e1af5b7ce2dfd994c7depends onused bysc-chain-spec-derive
3.0.0crates.io↘ 4↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum5f14985513db9798fcedea58bdc8a08f1c6b3a515d6546ced7467b059b7982c4used bysc-cli
0.9.0crates.io↘ 31↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum7ec1647b5c1483fa05f7f32e436d0e378e2f3d5696a5a30bddf66f5faf28acb4depends on- chrono
0.4.19 - fdlimit
0.2.1 - futures
0.3.12 - hex
0.4.2 - libp2p
0.34.0 - log
0.4.14 - names
0.11.0 - parity-scale-codec
2.0.1 - rand
0.7.3 - regex
1.4.3 - rpassword
5.0.1 - sc-client-api
3.0.0 - sc-keystore
3.0.0 - sc-network
0.9.0 - sc-service
0.9.0 - sc-telemetry
3.0.0 - sc-tracing
3.0.0 - serde
1.0.123 - serde_json
1.0.62 - sp-blockchain
3.0.0 - sp-core
3.0.0 - sp-keyring
3.0.0 - sp-keystore
0.9.0 - sp-panic-handler
3.0.0 - sp-runtime
3.0.0 - sp-utils
3.0.0 - sp-version
3.0.0 - structopt
0.3.21 - thiserror
1.0.23 - tiny-bip39
0.8.0 - tokio
0.2.25
- chrono
sc-client-api
3.0.0crates.io↘ 27↖ 21sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum56d8b2c8dc0cee9ac56e87ad50c980edbdeb35bdd5b5d9da4ae90567423363bedepends on- derive_more
0.99.11 - fnv
1.0.7 - futures
0.3.12 - hash-db
0.15.2 - kvdb
0.9.0 - lazy_static
1.4.0 - log
0.4.14 - parity-scale-codec
2.0.1 - parking_lot
0.11.1 - sc-executor
0.9.0 - sp-api
3.0.0 - sp-blockchain
3.0.0 - sp-consensus
0.9.0 - sp-core
3.0.0 - sp-database
3.0.0 - sp-externalities
0.9.0 - sp-inherents
3.0.0 - sp-keystore
0.9.0 - sp-runtime
3.0.0 - sp-state-machine
0.9.0 - sp-std
3.0.0 - sp-storage
3.0.0 - sp-transaction-pool
3.0.0 - sp-trie
3.0.0 - sp-utils
3.0.0 - sp-version
3.0.0 - substrate-prometheus-endpoint
0.9.0
used by- nft
3.0.0 - sc-basic-authorship
0.9.0 - sc-block-builder
0.9.0 - sc-cli
0.9.0 - sc-client-db
0.9.0 - sc-consensus
0.9.0 - sc-consensus-aura
0.9.0 - sc-consensus-babe
0.9.0 - sc-consensus-epochs
0.9.0 - sc-consensus-slots
0.9.0 - sc-consensus-uncles
0.9.0 - sc-finality-grandpa
0.9.0 - sc-informant
0.9.0 - sc-light
3.0.0 - sc-network
0.9.0 - sc-offchain
3.0.0 - sc-rpc
3.0.0 - sc-service
0.9.0 - sc-state-db
0.9.0 - sc-transaction-pool
3.0.0 - substrate-frame-rpc-system
3.0.0
- derive_more
sc-client-db
0.9.0crates.io↘ 23↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum5741e447d71ff36c147f961b2271b6b3fad0cc347e96936bc8b63ddffa594b27depends on- blake2-rfc
0.2.18 - hash-db
0.15.2 - kvdb
0.9.0 - kvdb-memorydb
0.9.0 - kvdb-rocksdb
0.11.0 - linked-hash-map
0.5.4 - log
0.4.14 - parity-db
0.2.2 - parity-scale-codec
2.0.1 - parity-util-mem
0.9.0 - parking_lot
0.11.1 - sc-client-api
3.0.0 - sc-executor
0.9.0 - sc-state-db
0.9.0 - sp-arithmetic
3.0.0 - sp-blockchain
3.0.0 - sp-consensus
0.9.0 - sp-core
3.0.0 - sp-database
3.0.0 - sp-runtime
3.0.0 - sp-state-machine
0.9.0 - sp-trie
3.0.0 - substrate-prometheus-endpoint
0.9.0
- blake2-rfc
sc-consensus
0.9.0crates.io↘ 4↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum99f20cc8b8a74e218365ac4187bce26ea631d58d221caa1797bc6ec8056dba33sc-consensus-aura
0.9.0crates.io↘ 25↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum8e0d32ccddef567a0fe373729aa4da51b2d437cbb102b9810400c9e77e040c1ddepends on- derive_more
0.99.11 - futures
0.3.12 - futures-timer
3.0.2 - log
0.4.14 - parity-scale-codec
2.0.1 - parking_lot
0.11.1 - sc-block-builder
0.9.0 - sc-client-api
3.0.0 - sc-consensus-slots
0.9.0 - sc-telemetry
3.0.0 - sp-api
3.0.0 - sp-application-crypto
3.0.0 - sp-block-builder
3.0.0 - sp-blockchain
3.0.0 - sp-consensus
0.9.0 - sp-consensus-aura
0.9.0 - sp-consensus-slots
0.9.0 - sp-core
3.0.0 - sp-inherents
3.0.0 - sp-io
3.0.0 - sp-keystore
0.9.0 - sp-runtime
3.0.0 - sp-timestamp
3.0.0 - sp-version
3.0.0 - substrate-prometheus-endpoint
0.9.0
used by- derive_more
sc-consensus-babe
0.9.0crates.io↘ 39↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum98d52048476e0fcb53feae8ca919a602104f1ba0b89a729b496440f36b332961depends on- derive_more
0.99.11 - fork-tree
3.0.0 - futures
0.3.12 - futures-timer
3.0.2 - log
0.4.14 - merlin
2.0.1 - num-bigint
0.2.6 - num-rational
0.2.4 - num-traits
0.2.14 - parity-scale-codec
2.0.1 - parking_lot
0.11.1 - pdqselect
0.1.0 - rand
0.7.3 - retain_mut
0.1.2 - sc-client-api
3.0.0 - sc-consensus-epochs
0.9.0 - sc-consensus-slots
0.9.0 - sc-consensus-uncles
0.9.0 - sc-keystore
3.0.0 - sc-telemetry
3.0.0 - schnorrkel
0.9.1 - serde
1.0.123 - sp-api
3.0.0 - sp-application-crypto
3.0.0 - sp-block-builder
3.0.0 - sp-blockchain
3.0.0 - sp-consensus
0.9.0 - sp-consensus-babe
0.9.0 - sp-consensus-slots
0.9.0 - sp-consensus-vrf
0.9.0 - sp-core
3.0.0 - sp-inherents
3.0.0 - sp-io
3.0.0 - sp-keystore
0.9.0 - sp-runtime
3.0.0 - sp-timestamp
3.0.0 - sp-utils
3.0.0 - sp-version
3.0.0 - substrate-prometheus-endpoint
0.9.0
used by- derive_more
sc-consensus-epochs
0.9.0crates.io↘ 6↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum326313ffb249a526e8ee8e08af9fdf0c4459cebeaa760b934e9df3985b68e4dfdepends onsc-consensus-slots
0.9.0crates.io↘ 19↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum76e09ff8b680d449102da9717a70c3bbbbb981fd4cf1bfbafc1739d954eb0898depends on- futures
0.3.12 - futures-timer
3.0.2 - log
0.4.14 - parity-scale-codec
2.0.1 - parking_lot
0.11.1 - sc-client-api
3.0.0 - sc-telemetry
3.0.0 - sp-api
3.0.0 - sp-application-crypto
3.0.0 - sp-arithmetic
3.0.0 - sp-blockchain
3.0.0 - sp-consensus
0.9.0 - sp-consensus-slots
0.9.0 - sp-core
3.0.0 - sp-inherents
3.0.0 - sp-runtime
3.0.0 - sp-state-machine
0.9.0 - sp-trie
3.0.0 - thiserror
1.0.23
- futures
sc-consensus-uncles
0.9.0crates.io↘ 7↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum37294bae6d787eecf2b15255dc75cd559b4ad813e0efcf28cd4423e218931b80depends onused bysc-executor
0.9.0crates.io↘ 22↖ 7sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumbace6a35999d2da7311d8fb98a29c1e89dbf0d14e50ac14140f2c38089819f46depends on- derive_more
0.99.11 - lazy_static
1.4.0 - libsecp256k1
0.3.5 - log
0.4.14 - parity-scale-codec
2.0.1 - parity-wasm
0.41.0 - parking_lot
0.11.1 - sc-executor-common
0.9.0 - sc-executor-wasmi
0.9.0 - sc-executor-wasmtime
0.9.0 - sp-api
3.0.0 - sp-core
3.0.0 - sp-externalities
0.9.0 - sp-io
3.0.0 - sp-panic-handler
3.0.0 - sp-runtime-interface
3.0.0 - sp-serializer
3.0.0 - sp-tasks
3.0.0 - sp-trie
3.0.0 - sp-version
3.0.0 - sp-wasm-interface
3.0.0 - wasmi
0.6.2
- derive_more
sc-executor-common
0.9.0crates.io↘ 9↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum87004102a8e95f432f1c624c7fa7fb0edc5995db2e0fcbabbb697f1955e7c1d2depends onsc-executor-wasmi
0.9.0crates.io↘ 8↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum2d3d7b6db2df5f2c24848883a855a8276363f00cef5b49744974f7e1203bf274depends onused bysc-executor-wasmtime
0.9.0crates.io↘ 11↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum24673c981fad2dff4398a09a1086579e2774f18d81639fa2bd9cb215e6dd9e36depends onused bysc-finality-grandpa
0.9.0crates.io↘ 31↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksuma7e87e63c57933e173a8643ff197b579e3fc5c91b16ca006096f482de8159318depends on- derive_more
0.99.11 - finality-grandpa
0.13.0 - fork-tree
3.0.0 - futures
0.3.12 - futures-timer
3.0.2 - linked-hash-map
0.5.4 - log
0.4.14 - parity-scale-codec
2.0.1 - parking_lot
0.11.1 - pin-project
1.0.5 - rand
0.7.3 - sc-block-builder
0.9.0 - sc-client-api
3.0.0 - sc-consensus
0.9.0 - sc-keystore
3.0.0 - sc-network
0.9.0 - sc-network-gossip
0.9.0 - sc-telemetry
3.0.0 - serde_json
1.0.62 - sp-api
3.0.0 - sp-application-crypto
3.0.0 - sp-arithmetic
3.0.0 - sp-blockchain
3.0.0 - sp-consensus
0.9.0 - sp-core
3.0.0 - sp-finality-grandpa
3.0.0 - sp-inherents
3.0.0 - sp-keystore
0.9.0 - sp-runtime
3.0.0 - sp-utils
3.0.0 - substrate-prometheus-endpoint
0.9.0
used by- derive_more
sc-informant
0.9.0crates.io↘ 11↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum4f4c8994853e1158dc4f448b014aa83eef56ced214ec0af316eecf4a6ca3268fdepends onused bysc-keystore
3.0.0crates.io↘ 13↖ 7sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd966ed36c404eced656bd63aad8a30d2c1a14633f07cd1d7d9c11b62f75a7905depends onsc-light
3.0.0crates.io↘ 12↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum04e8dbcb2951f7cf76ddf97ed26dcef0dab79d76745de4a8f169d58236ea8704depends onused bysc-network
0.9.0crates.io↘ 46↖ 8sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum20fb4ed5d6b86faafb0743c8c2fd1c89b52cde7697373b254c7553800efaebbfdepends on- async-std
1.9.0 - async-trait
0.1.42 - asynchronous-codec
0.5.0 - bitflags
1.2.1 - bs58
0.4.0 - bytes
1.0.1 - cid
0.6.1 - derive_more
0.99.11 - either
1.6.1 - erased-serde
0.3.13 - fnv
1.0.7 - fork-tree
3.0.0 - futures
0.3.12 - futures-timer
3.0.2 - hex
0.4.2 - ip_network
0.3.4 - libp2p
0.34.0 - linked-hash-map
0.5.4 - linked_hash_set
0.1.4 - log
0.4.14 - lru
0.6.5 - nohash-hasher
0.2.0 - parity-scale-codec
2.0.1 - parking_lot
0.11.1 - pin-project
1.0.5 - prost
0.7.0 - prost-build
0.7.0 - rand
0.7.3 - sc-block-builder
0.9.0 - sc-client-api
3.0.0 - sc-peerset
3.0.0 - serde
1.0.123 - serde_json
1.0.62 - smallvec
1.6.1 - sp-arithmetic
3.0.0 - sp-blockchain
3.0.0 - sp-consensus
0.9.0 - sp-core
3.0.0 - sp-runtime
3.0.0 - sp-utils
3.0.0 - substrate-prometheus-endpoint
0.9.0 - thiserror
1.0.23 - unsigned-varint
0.6.0 - void
1.0.2 - wasm-timer
0.2.5 - zeroize
1.2.0
- async-std
sc-network-gossip
0.9.0crates.io↘ 9↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksume2cd5487d6f8051863a186e2aea4c233a07bb691780d3b117c9d6ffe1ff9a8fedepends onused bysc-offchain
3.0.0crates.io↘ 20↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum7bc91fc71c128748a3393cb3421e12a7759ccffcc1cc4a9e6ff4ead6cc68ba48depends onused bysc-peerset
3.0.0crates.io↘ 6↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumce454e528e7797a239e734d0d66bf904d48be47aa92691ac7546a45ec32a64cfused bysc-proposer-metrics
0.9.0crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumecfc2c6cc5dc0ecb1109cce9773b50ad9a3cdbf239dc702ef9071949244dcf3eused bysc-rpc
3.0.0crates.io↘ 27↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum750397c6aa5a4f922cac99599ad74a4082e3e87553d51ceb4c48abfa056ff32cdepends on- futures
0.3.12 - hash-db
0.15.2 - jsonrpc-core
15.1.0 - jsonrpc-pubsub
15.1.0 - log
0.4.14 - parity-scale-codec
2.0.1 - parking_lot
0.11.1 - sc-block-builder
0.9.0 - sc-client-api
3.0.0 - sc-executor
0.9.0 - sc-keystore
3.0.0 - sc-rpc-api
0.9.0 - sc-tracing
3.0.0 - serde_json
1.0.62 - sp-api
3.0.0 - sp-blockchain
3.0.0 - sp-chain-spec
3.0.0 - sp-core
3.0.0 - sp-keystore
0.9.0 - sp-offchain
3.0.0 - sp-rpc
3.0.0 - sp-runtime
3.0.0 - sp-session
3.0.0 - sp-state-machine
0.9.0 - sp-transaction-pool
3.0.0 - sp-utils
3.0.0 - sp-version
3.0.0
used by- futures
sc-rpc-api
0.9.0crates.io↘ 17↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumdc8393410297df2885efec20d0629a9833b4fd9e4ad83a92471e1ea0c11a0a54depends onsc-rpc-server
3.0.0crates.io↘ 11↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum17c76164897bd3b0d04c2d6aeeb4d3492c86e324b0b08f408b847ea35421b589depends onused bysc-service
0.9.0crates.io↘ 56↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksuma9315b44eb991ca4f477d889bbd649a2b4b557f963fe48ec5a36c3422518e4a0depends on- directories
3.0.1 - exit-future
0.2.0 - futures
0.1.30 - futures
0.3.12 - futures-timer
3.0.2 - hash-db
0.15.2 - jsonrpc-core
15.1.0 - jsonrpc-pubsub
15.1.0 - lazy_static
1.4.0 - log
0.4.14 - parity-scale-codec
2.0.1 - parity-util-mem
0.9.0 - parking_lot
0.11.1 - pin-project
1.0.5 - rand
0.7.3 - sc-block-builder
0.9.0 - sc-chain-spec
3.0.0 - sc-client-api
3.0.0 - sc-client-db
0.9.0 - sc-executor
0.9.0 - sc-informant
0.9.0 - sc-keystore
3.0.0 - sc-light
3.0.0 - sc-network
0.9.0 - sc-offchain
3.0.0 - sc-rpc
3.0.0 - sc-rpc-server
3.0.0 - sc-telemetry
3.0.0 - sc-tracing
3.0.0 - sc-transaction-pool
3.0.0 - serde
1.0.123 - serde_json
1.0.62 - sp-api
3.0.0 - sp-application-crypto
3.0.0 - sp-block-builder
3.0.0 - sp-blockchain
3.0.0 - sp-consensus
0.9.0 - sp-core
3.0.0 - sp-externalities
0.9.0 - sp-inherents
3.0.0 - sp-io
3.0.0 - sp-keystore
0.9.0 - sp-runtime
3.0.0 - sp-session
3.0.0 - sp-state-machine
0.9.0 - sp-tracing
3.0.0 - sp-transaction-pool
3.0.0 - sp-trie
3.0.0 - sp-utils
3.0.0 - sp-version
3.0.0 - substrate-prometheus-endpoint
0.9.0 - tempfile
3.2.0 - thiserror
1.0.23 - tracing
0.1.23 - tracing-futures
0.2.4 - wasm-timer
0.2.5
- directories
sc-state-db
0.9.0crates.io↘ 8↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum8f144043d5860ce133f701fa78679d6278f2dfc698686beb5f6d892c267e9d92depends onused bysc-telemetry
3.0.0crates.io↘ 15↖ 10sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd05040c594b331d90d7341e82c6dc6a3eb7bb2afb4e5dc9c36a79a6754166057depends onsc-tracing
3.0.0crates.io↘ 21↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumef0a4aa327b8bc89d9c5ae57a2f493d8f54ccd706f6763614ab522559fe481d8depends on- ansi_term
0.12.1 - atty
0.2.14 - erased-serde
0.3.13 - lazy_static
1.4.0 - log
0.4.14 - once_cell
1.5.2 - parking_lot
0.11.1 - regex
1.4.3 - rustc-hash
1.1.0 - sc-telemetry
3.0.0 - sc-tracing-proc-macro
3.0.0 - serde
1.0.123 - serde_json
1.0.62 - sp-tracing
3.0.0 - thiserror
1.0.23 - tracing
0.1.23 - tracing-core
0.1.17 - tracing-log
0.1.1 - tracing-subscriber
0.2.15 - wasm-bindgen
0.2.70 - web-sys
0.3.47
- ansi_term
sc-tracing-proc-macro
3.0.0crates.io↘ 4↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumec18b0506911e6d624d9ea8f8cc5f503e7944a0fe7d37de95ee84033cf160ebcused bysc-transaction-graph
3.0.0crates.io↘ 15↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum87b385b8f66cce185478c500ad3de8f4775ab0e948c31561aeac78a27bedc654depends onused bysc-transaction-pool
3.0.0crates.io↘ 19↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum09f4331ea8da2ff45a9466637f90f5cc89f9d31fcd1cd20f74f2520b33bff069depends on- futures
0.3.12 - futures-diagnose
1.0.1 - intervalier
0.4.0 - log
0.4.14 - parity-scale-codec
2.0.1 - parity-util-mem
0.9.0 - parking_lot
0.11.1 - sc-client-api
3.0.0 - sc-transaction-graph
3.0.0 - sp-api
3.0.0 - sp-blockchain
3.0.0 - sp-core
3.0.0 - sp-runtime
3.0.0 - sp-tracing
3.0.0 - sp-transaction-pool
3.0.0 - sp-utils
3.0.0 - substrate-prometheus-endpoint
0.9.0 - thiserror
1.0.23 - wasm-timer
0.2.5
used by- futures
schannel
0.1.19crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum8f05ba609c234e60bee0d547fe94a4c7e9da733d1c962cf6e59efa4cd9c8bc75depends onused byschnorrkel
0.9.1crates.io↘ 11↖ 5sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum021b403afe70d81eea68f6ea12f6b3c9588e5d536a94c3bf80f15e7faa267862depends onscoped-tls
1.0.0crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumea6a9290e3c9cf0f18145ef7ffa62d68ee0bf5fcd651017e586dc7fd5da448c2used byscopeguard
1.1.0crates.io↘ 0↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cdscroll
0.10.2crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumfda28d4b4830b807a8b43f7b0e6b5df875311b3e7621d84577188c175b6ec1ecdepends onused byscroll_derive
0.10.5crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumaaaae8f38bb311444cfb7f1979af0bc9240d95795f75f9ceddf6a59b79ceffa0depends onused bysct
0.6.0crates.io↘ 2↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksume3042af939fca8c3453b7af0f1c66e533a15a86169e39de2657310ade8f98d3cdepends onsecrecy
0.7.0crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum0673d6a6449f5e7d12a1caf424fd9363e2af3a4953023ed455e3c4beef4597c0depends onused bysecurity-framework
1.0.0crates.io↘ 5↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumad502866817f0575705bd7be36e2b2535cc33262d493aa733a2ec862baa2bc2bdepends onused bysecurity-framework-sys
1.0.0crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum51ceb04988b17b6d1dcd555390fa822ca5637b4a14e1f5099f13d351bed4d6c7depends onused bysemver
0.6.0crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum7a3186ec9e65071a2095434b1f5bb24838d4e8e130f584c790f6033c79943537depends onused bysemver
0.9.0crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403depends onused bysemver
0.11.0crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf301af10236f6df4160f7c3f04eec6dbc70ace82d23326abad5edee88801c6b6depends onused bysemver-parser
0.7.0crates.io↘ 0↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3used bysemver-parser
0.10.2crates.io↘ 1↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum00b0bef5b7f9e0df16536d3961cfb6e84331c065b4066afb39768d0e319411f7depends onserde
1.0.123crates.io↘ 1↖ 72sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum92d5161132722baa40d802cc70b15262b98258453e85e5d1d365c757c73869aedepends onused by- bincode
1.3.1 - cargo-platform
0.1.1 - cargo_metadata
0.12.3 - cranelift-codegen
0.69.0 - cranelift-entity
0.69.0 - cranelift-wasm
0.69.0 - ed25519-dalek
1.0.1 - erased-serde
0.3.13 - frame-benchmarking-cli
3.0.0 - frame-executive
3.0.0 - frame-metadata
13.0.0 - frame-support
3.0.0 - frame-system
3.0.0 - futures-diagnose
1.0.1 - handlebars
3.5.2 - impl-serde
0.3.1 - indexmap
1.6.1 - jsonrpc-client-transports
15.1.0 - jsonrpc-core
15.1.0 - jsonrpc-pubsub
15.1.0 - nft
3.0.0 - nft-runtime
3.0.0 - pallet-aura
3.0.0 - pallet-balances
3.0.0 - pallet-contracts
3.0.0 - pallet-contracts-rpc
3.0.0 - pallet-grandpa
3.0.0 - pallet-inflation
3.0.0 - pallet-nft
3.0.0 - pallet-session
3.0.0 - pallet-sudo
3.0.0 - pallet-timestamp
3.0.0 - pallet-transaction-payment
3.0.0 - pallet-treasury
3.0.0 - pallet-vesting
3.0.0 - parity-multiaddr
0.11.1 - parity-scale-codec
2.0.1 - sc-chain-spec
3.0.0 - sc-cli
0.9.0 - sc-consensus-babe
0.9.0 - sc-network
0.9.0 - sc-rpc-api
0.9.0 - sc-rpc-server
3.0.0 - sc-service
0.9.0 - sc-telemetry
3.0.0 - sc-tracing
3.0.0 - sc-transaction-graph
3.0.0 - schnorrkel
0.9.1 - semver
0.11.0 - serde_json
1.0.62 - sp-application-crypto
3.0.0 - sp-arithmetic
3.0.0 - sp-chain-spec
3.0.0 - sp-consensus
0.9.0 - sp-core
3.0.0 - sp-finality-grandpa
3.0.0 - sp-keystore
0.9.0 - sp-rpc
3.0.0 - sp-runtime
3.0.0 - sp-serializer
3.0.0 - sp-storage
3.0.0 - sp-transaction-pool
3.0.0 - sp-version
3.0.0 - substrate-frame-rpc-system
3.0.0 - toml
0.5.8 - tracing-serde
0.1.2 - tracing-subscriber
0.2.15 - wasmtime
0.22.0 - wasmtime-cache
0.22.0 - wasmtime-environ
0.22.0 - wasmtime-jit
0.22.0 - wasmtime-profiling
0.22.0
- bincode
serde_derive
1.0.123crates.io↘ 3↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum9391c295d64fc0abb2c556bad848f33cb8296276b1ad2677d1ae1ace4f258f31depends onserde_json
1.0.62crates.io↘ 3↖ 21sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumea1c6153794552ea7cf7cf63b1231a25de00ec90db326ba6264440fa08e31486depends onused by- cargo_metadata
0.12.3 - futures-diagnose
1.0.1 - handlebars
3.5.2 - jsonrpc-client-transports
15.1.0 - jsonrpc-core
15.1.0 - nft
3.0.0 - sc-chain-spec
3.0.0 - sc-cli
0.9.0 - sc-finality-grandpa
0.9.0 - sc-keystore
3.0.0 - sc-network
0.9.0 - sc-peerset
3.0.0 - sc-rpc
3.0.0 - sc-rpc-api
0.9.0 - sc-rpc-server
3.0.0 - sc-service
0.9.0 - sc-telemetry
3.0.0 - sc-tracing
3.0.0 - sp-chain-spec
3.0.0 - sp-serializer
3.0.0 - tracing-subscriber
0.2.15
- cargo_metadata
sha-1
0.8.2crates.io↘ 4↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf7d94d0bede923b3cea61f3f1ff57ff8cdfd77b400fb8f9998949e0cf04163dfsha-1
0.9.3crates.io↘ 5↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf4b312c3731e3fe78a185e6b9b911a7aa715b8e31cce117975219aab2acf285dused bysha2
0.8.2crates.io↘ 4↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksuma256f46ea78a0c0d9ff00077504903ac881a1dafdc20da66545699e7776b3e69sha2
0.9.3crates.io↘ 5↖ 10sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumfa827a14b29ab7f44778d14a88d3cb76e949c45083f7dbfa507d0cb699dc12desha3
0.9.1crates.io↘ 4↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf81199417d4e5de3f04b1e871023acea7389672c4135918f05aa9cbf2f2fa809sharded-slab
0.1.1crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum79c719719ee05df97490f80a45acfc99e5a30ce98a1e4fb67aee422745ae14e3depends onused byshlex
0.1.1crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum7fdf1b9db47230893d76faad238fd6097fd6d6a9245cd7a4d90dbd639536bbd2used bysignal-hook
0.3.4crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum780f5e3fe0c66f67197236097d89de1e86216f1f6fdeaf47c442f854ab46c240depends onused bysignal-hook-registry
1.3.0crates.io↘ 1↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum16f1d0fef1604ba8f7a073c7e701f213e056707210e9020af4528e0101ce11a6depends onused bysignature
1.3.0crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum0f0242b8e50dd9accdd56170e94ca1ebd223b098eb9c83539a6e367d0f36ae68used bysimba
0.1.5crates.io↘ 4↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumfb931b1367faadea6b1ab1c306a860ec17aaa5fa39f367d0c744e69d971a1fb2used byslab
0.4.2crates.io↘ 0↖ 12sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumc111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8smallvec
0.6.14crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb97fcaeba89edba30f044a10c6a3cc39df9c3f17d7cd829dd1446cab35f890e0depends onused bysmallvec
1.6.1crates.io↘ 0↖ 28sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumfe0f37c9e8f3c5a4a66ad655a93c74daac4ad00c441533bf5c6e7990bb42604eused by- cranelift-codegen
0.69.0 - cranelift-frontend
0.69.0 - cranelift-wasm
0.69.0 - frame-support
3.0.0 - kvdb
0.9.0 - kvdb-rocksdb
0.11.0 - libp2p
0.34.0 - libp2p-core
0.27.1 - libp2p-floodsub
0.27.0 - libp2p-gossipsub
0.27.0 - libp2p-identify
0.27.0 - libp2p-kad
0.28.1 - libp2p-mdns
0.28.1 - libp2p-mplex
0.27.1 - libp2p-request-response
0.9.1 - libp2p-swarm
0.27.2 - multistream-select
0.10.1 - nft-runtime
3.0.0 - pallet-transaction-payment
3.0.0 - parity-util-mem
0.9.0 - parking_lot_core
0.7.2 - parking_lot_core
0.8.3 - regalloc
0.0.31 - sc-network
0.9.0 - sp-state-machine
0.9.0 - tracing-subscriber
0.2.15 - trie-db
0.22.3 - wasmtime
0.22.0
- cranelift-codegen
snow
0.7.2crates.io↘ 10↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum795dd7aeeee24468e5a32661f6d27f7b5cbed802031b2d7640c7b10f8fb2dd50depends onused bysocket2
0.3.19crates.io↘ 3↖ 5sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum122e570113d28d773067fab24266b66753f6ea915758651696b6e35e49f88d6edepends onsoketto
0.4.2crates.io↘ 8↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb5c71ed3d54db0a699f4948e1bb3e45b450fa31fe602621dee6680361d569c88used bysp-allocator
3.0.0crates.io↘ 5↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumec5f988ad0cabdb646318cb515a91e9d89062debc9728f9b634d73acab3f3f39sp-api
3.0.0crates.io↘ 9↖ 32sourceregistry+https://github.com/rust-lang/crates.io-indexchecksume63c3460d5daecf67df542c34c2bbd636214a5a200d4bddcfa2ffb9e72c346afdepends onused by- frame-benchmarking
3.1.0 - frame-system-rpc-runtime-api
3.0.0 - nft
3.0.0 - nft-runtime
3.0.0 - pallet-contracts-rpc
3.0.0 - pallet-contracts-rpc-runtime-api
3.0.0 - pallet-transaction-payment-rpc
3.0.0 - pallet-transaction-payment-rpc-runtime-api
3.0.0 - sc-basic-authorship
0.9.0 - sc-block-builder
0.9.0 - sc-client-api
3.0.0 - sc-consensus-aura
0.9.0 - sc-consensus-babe
0.9.0 - sc-consensus-slots
0.9.0 - sc-executor
0.9.0 - sc-finality-grandpa
0.9.0 - sc-light
3.0.0 - sc-offchain
3.0.0 - sc-rpc
3.0.0 - sc-service
0.9.0 - sc-transaction-pool
3.0.0 - sp-block-builder
3.0.0 - sp-blockchain
3.0.0 - sp-consensus
0.9.0 - sp-consensus-aura
0.9.0 - sp-consensus-babe
0.9.0 - sp-finality-grandpa
3.0.0 - sp-offchain
3.0.0 - sp-session
3.0.0 - sp-timestamp
3.0.0 - sp-transaction-pool
3.0.0 - substrate-frame-rpc-system
3.0.0
- frame-benchmarking
sp-api-proc-macro
3.0.0crates.io↘ 5↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum289624f4fe0f61e63a5019ed26c3bc732b5145eb52796ac6053cd72656d947a1used bysp-application-crypto
3.0.0crates.io↘ 5↖ 12sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumc52e2e6d43036b97c4fce1ed87c5262c1ffdc78c655ada4d3024a3f8094bdd2csp-arithmetic
3.0.0crates.io↘ 6↖ 8sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd0f1c69966c192d1dee8521f0b29ece2b14db07b9b44d801a94e295234761645depends onsp-authorship
3.0.0crates.io↘ 4↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum1ec68fb8e5a37548b06c14ee91a9c574cc330324c86d37810ec29dd4f8bc68d7sp-block-builder
3.0.0crates.io↘ 5↖ 7sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum0adc979dbe619f56d664ebd1293dce13fcad6b8a47bcdd620ed53a454d330d12sp-blockchain
3.0.0crates.io↘ 11↖ 23sourceregistry+https://github.com/rust-lang/crates.io-indexchecksume8007c1ad8e9fb6cd8eed4e0fc91504a9ca4b228e1315302a2fbb0ac7f509f1bdepends onused by- nft
3.0.0 - pallet-contracts-rpc
3.0.0 - pallet-transaction-payment-rpc
3.0.0 - sc-basic-authorship
0.9.0 - sc-block-builder
0.9.0 - sc-cli
0.9.0 - sc-client-api
3.0.0 - sc-client-db
0.9.0 - sc-consensus
0.9.0 - sc-consensus-aura
0.9.0 - sc-consensus-babe
0.9.0 - sc-consensus-epochs
0.9.0 - sc-consensus-slots
0.9.0 - sc-finality-grandpa
0.9.0 - sc-informant
0.9.0 - sc-light
3.0.0 - sc-network
0.9.0 - sc-rpc
3.0.0 - sc-service
0.9.0 - sc-transaction-graph
3.0.0 - sc-transaction-pool
3.0.0 - sp-transaction-pool
3.0.0 - substrate-frame-rpc-system
3.0.0
- nft
sp-chain-spec
3.0.0crates.io↘ 2↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum3a24beb11980d0c755ead0c05f3f966c490e4a3730785c04c03855fada65d697depends onsp-consensus
0.9.0crates.io↘ 19↖ 15sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum884db6c4b03f0f2fb2993127a2db95fc740fcd3496746dcaa6829c9868e7dc75depends onsp-consensus-aura
0.9.0crates.io↘ 8↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum4bd00fc95b26393522be1394fb67cc536736cc5a902dec0d3e2827909b7c1118depends onsp-consensus-babe
0.9.0crates.io↘ 13↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksuma153085b1542b5cbe23686433cd36d1a634964f1b707671d0ffb01d8d9313047depends onsp-consensus-slots
0.9.0crates.io↘ 3↖ 5sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum32bd501ab76c827d74f145063cd8cb993a9f634dac93c9b0d909111cd5900a6asp-consensus-vrf
0.9.0crates.io↘ 5↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum030895d70bf3095c857f4727a7cce7c43af29efe3413bb547ee28700f7d78766sp-core
3.0.0crates.io↘ 37↖ 61sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumabbc8d4e9b8a7d5819ed26f1374017bb32833ef4890e4ff065e1da30669876bcdepends on- base58
0.1.0 - blake2-rfc
0.2.18 - byteorder
1.4.2 - dyn-clonable
0.9.0 - ed25519-dalek
1.0.1 - futures
0.3.12 - hash-db
0.15.2 - hash256-std-hasher
0.15.2 - hex
0.4.2 - impl-serde
0.3.1 - lazy_static
1.4.0 - libsecp256k1
0.3.5 - log
0.4.14 - merlin
2.0.1 - num-traits
0.2.14 - parity-scale-codec
2.0.1 - parity-util-mem
0.9.0 - parking_lot
0.11.1 - primitive-types
0.9.0 - rand
0.7.3 - regex
1.4.3 - schnorrkel
0.9.1 - secrecy
0.7.0 - serde
1.0.123 - sha2
0.9.3 - sp-debug-derive
3.0.0 - sp-externalities
0.9.0 - sp-runtime-interface
3.0.0 - sp-std
3.0.0 - sp-storage
3.0.0 - substrate-bip39
0.4.2 - thiserror
1.0.23 - tiny-bip39
0.8.0 - tiny-keccak
2.0.2 - twox-hash
1.6.0 - wasmi
0.6.2 - zeroize
1.2.0
used by- frame-benchmarking-cli
3.0.0 - frame-executive
3.0.0 - frame-metadata
13.0.0 - frame-support
3.0.0 - frame-system
3.0.0 - frame-system-benchmarking
3.0.0 - nft
3.0.0 - nft-runtime
3.0.0 - pallet-contracts
3.0.0 - pallet-contracts-rpc
3.0.0 - pallet-grandpa
3.0.0 - pallet-inflation
3.0.0 - pallet-nft
3.0.0 - pallet-session
3.0.0 - pallet-transaction-payment
3.0.0 - pallet-transaction-payment-rpc
3.0.0 - sc-basic-authorship
0.9.0 - sc-block-builder
0.9.0 - sc-chain-spec
3.0.0 - sc-cli
0.9.0 - sc-client-api
3.0.0 - sc-client-db
0.9.0 - sc-consensus-aura
0.9.0 - sc-consensus-babe
0.9.0 - sc-consensus-slots
0.9.0 - sc-consensus-uncles
0.9.0 - sc-executor
0.9.0 - sc-executor-common
0.9.0 - sc-executor-wasmi
0.9.0 - sc-executor-wasmtime
0.9.0 - sc-finality-grandpa
0.9.0 - sc-keystore
3.0.0 - sc-light
3.0.0 - sc-network
0.9.0 - sc-offchain
3.0.0 - sc-rpc
3.0.0 - sc-rpc-api
0.9.0 - sc-service
0.9.0 - sc-state-db
0.9.0 - sc-transaction-graph
3.0.0 - sc-transaction-pool
3.0.0 - sp-allocator
3.0.0 - sp-api
3.0.0 - sp-application-crypto
3.0.0 - sp-consensus
0.9.0 - sp-consensus-babe
0.9.0 - sp-consensus-vrf
0.9.0 - sp-finality-grandpa
3.0.0 - sp-inherents
3.0.0 - sp-io
3.0.0 - sp-keyring
3.0.0 - sp-keystore
0.9.0 - sp-offchain
3.0.0 - sp-rpc
3.0.0 - sp-runtime
3.0.0 - sp-sandbox
0.9.0 - sp-session
3.0.0 - sp-state-machine
0.9.0 - sp-tasks
3.0.0 - sp-trie
3.0.0 - substrate-frame-rpc-system
3.0.0
- base58
sp-database
3.0.0crates.io↘ 2↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumc8c3f018913eef191d95c824657c5759c459d28670e654fa34f5d9bd5e6f0492depends onsp-debug-derive
3.0.0crates.io↘ 3↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksume80275f23b4e7ba8f54dec5f90f016530e7307d2ee9445f617ab986cbe97f31edepends onsp-externalities
0.9.0crates.io↘ 4↖ 11sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum2fdc625f8c7b13b9a136d334888b21b5743d2081cb666cb03efca1dc9b8f74d1sp-finality-grandpa
3.0.0crates.io↘ 10↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum702e0be150e1b557df42326ec9b82c2010366631d03be27c69912d446abbf87adepends onsp-inherents
3.0.0crates.io↘ 5↖ 20sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum2542380b535c6941502a0a3069a657eb5abb70fd67b11afa164d4a4b038ba73aused by- frame-support
3.0.0 - nft
3.0.0 - nft-runtime
3.0.0 - pallet-authorship
3.0.0 - pallet-timestamp
3.0.0 - sc-basic-authorship
0.9.0 - sc-block-builder
0.9.0 - sc-client-api
3.0.0 - sc-consensus-aura
0.9.0 - sc-consensus-babe
0.9.0 - sc-consensus-slots
0.9.0 - sc-consensus-uncles
0.9.0 - sc-finality-grandpa
0.9.0 - sc-service
0.9.0 - sp-authorship
3.0.0 - sp-block-builder
3.0.0 - sp-consensus
0.9.0 - sp-consensus-aura
0.9.0 - sp-consensus-babe
0.9.0 - sp-timestamp
3.0.0
- frame-support
sp-io
3.0.0crates.io↘ 17↖ 19sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum33fd69f0a6e91bedc2fb1c5cc3689c212474b6c918274cb4cb14dbbe3c428c14depends onused by- frame-benchmarking
3.1.0 - frame-executive
3.0.0 - frame-support
3.0.0 - frame-system
3.0.0 - pallet-contracts
3.0.0 - pallet-inflation
3.0.0 - pallet-nft
3.0.0 - pallet-session
3.0.0 - pallet-sudo
3.0.0 - pallet-timestamp
3.0.0 - pallet-transaction-payment
3.0.0 - sc-consensus-aura
0.9.0 - sc-consensus-babe
0.9.0 - sc-executor
0.9.0 - sc-service
0.9.0 - sp-application-crypto
3.0.0 - sp-runtime
3.0.0 - sp-sandbox
0.9.0 - sp-tasks
3.0.0
- frame-benchmarking
sp-keyring
3.0.0crates.io↘ 4↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum7b59f2b0e94b2048d4984aa6eb40eef2e4c05d3adf27a083dd3c9b0fce74ef7aused bysp-keystore
0.9.0crates.io↘ 10↖ 12sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumdb6ccd2baf189112355338e8b224dc513cd239b974dbd717f12b3dc7a7248c3bdepends onsp-offchain
3.0.0crates.io↘ 3↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum0bd80eedcedcc8342e77c26d59ad90b6904715a862731fa16616650773570e63depends onsp-panic-handler
3.0.0crates.io↘ 1↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum54702e109f1c8a870dd4065a497d2612d42cec5817126e96cc0658c5ea975784depends onsp-rpc
3.0.0crates.io↘ 2↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksuma2e5b1ed655d11449073b914b048895f45241e02b3919d1d0187f315435fee18depends onsp-runtime
3.0.0crates.io↘ 14↖ 69sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumdfa4b353b76f04616dbdb8d269d58dcac47acb31c006d3b70e7b64233e68695edepends onused by- frame-benchmarking
3.1.0 - frame-benchmarking-cli
3.0.0 - frame-executive
3.0.0 - frame-support
3.0.0 - frame-system
3.0.0 - frame-system-benchmarking
3.0.0 - nft
3.0.0 - nft-runtime
3.0.0 - pallet-aura
3.0.0 - pallet-authorship
3.0.0 - pallet-balances
3.0.0 - pallet-contracts
3.0.0 - pallet-contracts-primitives
3.0.0 - pallet-contracts-rpc
3.0.0 - pallet-contracts-rpc-runtime-api
3.0.0 - pallet-grandpa
3.0.0 - pallet-inflation
3.0.0 - pallet-nft
3.0.0 - pallet-randomness-collective-flip
3.0.0 - pallet-session
3.0.0 - pallet-sudo
3.0.0 - pallet-timestamp
3.0.0 - pallet-transaction-payment
3.0.0 - pallet-transaction-payment-rpc
3.0.0 - pallet-transaction-payment-rpc-runtime-api
3.0.0 - pallet-treasury
3.0.0 - pallet-vesting
3.0.0 - sc-basic-authorship
0.9.0 - sc-block-builder
0.9.0 - sc-chain-spec
3.0.0 - sc-cli
0.9.0 - sc-client-api
3.0.0 - sc-client-db
0.9.0 - sc-consensus
0.9.0 - sc-consensus-aura
0.9.0 - sc-consensus-babe
0.9.0 - sc-consensus-epochs
0.9.0 - sc-consensus-slots
0.9.0 - sc-consensus-uncles
0.9.0 - sc-finality-grandpa
0.9.0 - sc-informant
0.9.0 - sc-light
3.0.0 - sc-network
0.9.0 - sc-network-gossip
0.9.0 - sc-offchain
3.0.0 - sc-rpc
3.0.0 - sc-rpc-api
0.9.0 - sc-rpc-server
3.0.0 - sc-service
0.9.0 - sc-transaction-graph
3.0.0 - sc-transaction-pool
3.0.0 - sp-api
3.0.0 - sp-authorship
3.0.0 - sp-block-builder
3.0.0 - sp-blockchain
3.0.0 - sp-consensus
0.9.0 - sp-consensus-aura
0.9.0 - sp-consensus-babe
0.9.0 - sp-consensus-slots
0.9.0 - sp-consensus-vrf
0.9.0 - sp-finality-grandpa
3.0.0 - sp-keyring
3.0.0 - sp-offchain
3.0.0 - sp-session
3.0.0 - sp-staking
3.0.0 - sp-timestamp
3.0.0 - sp-transaction-pool
3.0.0 - sp-version
3.0.0 - substrate-frame-rpc-system
3.0.0
- frame-benchmarking
sp-runtime-interface
3.0.0crates.io↘ 10↖ 7sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb2e5c88b4bc8d607e4e2ff767a85db58cf7101f3dd6064f06929342ea67fe8fbdepends onsp-runtime-interface-proc-macro
3.0.0crates.io↘ 5↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum19a6c7c2251512c9e533d15db8a863b06ece1cbee778130dd9adbe44b6b39aa9used bysp-sandbox
0.9.0crates.io↘ 6↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum0e92caf4555d676d8f0b67def0041da789f79a5d5f341130496f15a6261926ccused bysp-serializer
3.0.0crates.io↘ 2↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum982d793f01eb9eea9f30ffc63b821170068b9f0d9edf715d8ba77dc4de9c300fdepends onsp-session
3.0.0crates.io↘ 6↖ 5sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum2c7cf161533725a78083b04f3269effe4c3b4b6ce5f655019b3eec3e729ba4d4sp-staking
3.0.0crates.io↘ 3↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumfc729eb10f8809c61a1fe439ac118a4413de004aaf863003ee8752ac0b596e73sp-state-machine
0.9.0crates.io↘ 15↖ 13sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum46fa4143e58e9130f726d4e8a9b86f3530a8bd19a2eedcdcf4af205f4b5a6d4fdepends onsp-std
3.0.0crates.io↘ 0↖ 52sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum35391ea974fa5ee869cb094d5b437688fbf3d8127d64d1b9fed5822a1ed39b12used by- frame-benchmarking
3.1.0 - frame-executive
3.0.0 - frame-metadata
13.0.0 - frame-support
3.0.0 - frame-system
3.0.0 - frame-system-benchmarking
3.0.0 - nft-runtime
3.0.0 - pallet-aura
3.0.0 - pallet-authorship
3.0.0 - pallet-balances
3.0.0 - pallet-contracts
3.0.0 - pallet-contracts-primitives
3.0.0 - pallet-contracts-rpc-runtime-api
3.0.0 - pallet-grandpa
3.0.0 - pallet-inflation
3.0.0 - pallet-nft
3.0.0 - pallet-randomness-collective-flip
3.0.0 - pallet-session
3.0.0 - pallet-sudo
3.0.0 - pallet-timestamp
3.0.0 - pallet-transaction-payment
3.0.0 - pallet-treasury
3.0.0 - pallet-vesting
3.0.0 - sc-client-api
3.0.0 - sp-allocator
3.0.0 - sp-api
3.0.0 - sp-application-crypto
3.0.0 - sp-arithmetic
3.0.0 - sp-authorship
3.0.0 - sp-block-builder
3.0.0 - sp-consensus
0.9.0 - sp-consensus-aura
0.9.0 - sp-consensus-babe
0.9.0 - sp-consensus-vrf
0.9.0 - sp-core
3.0.0 - sp-externalities
0.9.0 - sp-finality-grandpa
3.0.0 - sp-inherents
3.0.0 - sp-io
3.0.0 - sp-runtime
3.0.0 - sp-runtime-interface
3.0.0 - sp-sandbox
0.9.0 - sp-session
3.0.0 - sp-staking
3.0.0 - sp-state-machine
0.9.0 - sp-storage
3.0.0 - sp-tasks
3.0.0 - sp-timestamp
3.0.0 - sp-tracing
3.0.0 - sp-trie
3.0.0 - sp-version
3.0.0 - sp-wasm-interface
3.0.0
- frame-benchmarking
sp-storage
3.0.0crates.io↘ 6↖ 5sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum86af458d4a0251c490cdde9dcaaccb88d398f3b97ac6694cdd49ed9337e6b961depends onsp-tasks
3.0.0crates.io↘ 6↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumc585340cbee96c53a9b43fd07d81edf6cebeb80e4ca7c0ee79b856c0b1883a0eused bysp-timestamp
3.0.0crates.io↘ 7↖ 6sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum27387c541197b9f47f3d9ddcab5649a3ecdca582d2f2ea2b511af24a3d3cbf83depends onsp-tracing
3.0.0crates.io↘ 6↖ 7sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum567382d8d4e14fb572752863b5cd57a78f9e9a6583332b590b726f061f3ea957depends onsp-transaction-pool
3.0.0crates.io↘ 9↖ 11sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum3264d3b7ea31483eddffa2cc7f28c4d9c022598e456a985fd1cb5879a4609853depends onsp-trie
3.0.0crates.io↘ 7↖ 9sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb85b7f745da41ef825c6f7b93f1fdc897b03df94a4884adfbb70fbcd0aed1298depends onsp-utils
3.0.0crates.io↘ 5↖ 14sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb4ec2a5f924f7affd1e959f8f3c02bd87cdfa0e11c71a4cbc075f955ead8c1a1sp-version
3.0.0crates.io↘ 5↖ 12sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumdbeffa538a13d715d30e01d57a2636ba32845b737a29a3ea32403576588222e7sp-wasm-interface
3.0.0crates.io↘ 4↖ 8sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb214e125666a6416cf30a70cc6a5dacd34a4e5197f8a3d479f714af7e1dc7a47spin
0.5.2crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042dused bystable_deref_trait
1.2.0crates.io↘ 0↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksuma8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3used bystatic_assertions
1.1.0crates.io↘ 0↖ 8sourceregistry+https://github.com/rust-lang/crates.io-indexchecksuma2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543fstatrs
0.12.0crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumcce16f6de653e88beca7bd13780d08e09d4489dbca1f9210e041bc4852481382depends onused bystream-cipher
0.7.1crates.io↘ 2↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumc80e15f898d8d8f25db24c253ea615cc14acf418ff307822995814e7d42cfa89depends onstring
0.2.1crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd24114bfcceb867ca7f71a0d3fe45d45619ec47a6fbfa98cb14e14250bfa5d6ddepends onused bystrsim
0.8.0crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6aused bystructopt
0.3.21crates.io↘ 3↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum5277acd7ee46e63e5168a80734c9f6ee81b1367a7d8772a2d765df2a3705d28cstructopt-derive
0.4.14crates.io↘ 5↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum5ba9cdfda491b814720b6b06e0cac513d922fc407582032e8706e9f137976f90used bystrum
0.20.0crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum7318c509b5ba57f18533982607f24070a55d353e90d4cae30c467cdb2ad5ac5cdepends onused bystrum_macros
0.20.1crates.io↘ 4↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumee8bc6b87a5112aeeab1f4a9f7ab634fe6cbefc4850006df31267f4cfb9e3149used bysubstrate-bip39
0.4.2crates.io↘ 5↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumbed6646a0159b9935b5d045611560eeef842b78d7adc3ba36f5ca325a13a0236used bysubstrate-build-script-utils
3.0.0crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumbd540ba72520174c2c73ce96bf507eeba3cc8a481f58be92525b69110e1fa645depends onused bysubstrate-frame-rpc-system
3.0.0crates.io↘ 16↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum8e46123ec4a690d91967de07cd6af4dde90d14519a1a8d43f61bd3f78dd3d0efdepends onused bysubstrate-prometheus-endpoint
0.9.0crates.io↘ 7↖ 13sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum2eb561c19a121e1c89daa79dbfa67a55080f813caa47fd231833a0669696d508depends onsubstrate-wasm-builder
4.0.0crates.io↘ 8↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum93a3d51ad6abbc408b03ea962062bfcc959b438a318d7d4bedd181e1effd0610depends onused bysubtle
1.0.0crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum2d67a5a62ba6e01cb2192ff309324cb4875d0c451d55fe2319433abe7a05a8eeused bysubtle
2.4.0crates.io↘ 0↖ 9sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum1e81da0851ada1f3e9d4312c704aa4f8806f0f9d69faaf8df2f3464b4a9437c2syn
1.0.60crates.io↘ 3↖ 41sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumc700597eca8a5a762beb35753ef6b94df201c81cca676604f547495a0d7f0081used by- asn1_der_derive
0.1.2 - async-trait
0.1.42 - ctor
0.1.19 - data-encoding-macro-internal
0.1.9 - derive_more
0.99.11 - dyn-clonable-impl
0.9.0 - enumflags2_derive
0.6.4 - failure_derive
0.1.8 - frame-support-procedural
3.0.0 - frame-support-procedural-tools
3.0.0 - frame-support-procedural-tools-derive
3.0.0 - futures-macro
0.3.12 - impl-trait-for-tuples
0.2.1 - jsonrpc-derive
15.1.0 - libp2p-core-derive
0.21.0 - minicbor-derive
0.6.1 - multihash-derive
0.7.1 - pallet-contracts-proc-macro
3.0.0 - parity-scale-codec-derive
2.0.1 - parity-util-mem-derive
0.1.0 - pest_generator
2.1.3 - pin-project-internal
0.4.27 - pin-project-internal
1.0.5 - proc-macro-error
1.0.4 - prost-derive
0.7.0 - ref-cast-impl
1.0.6 - sc-chain-spec-derive
3.0.0 - sc-tracing-proc-macro
3.0.0 - scroll_derive
0.10.5 - serde_derive
1.0.123 - sp-api-proc-macro
3.0.0 - sp-debug-derive
3.0.0 - sp-runtime-interface-proc-macro
3.0.0 - structopt-derive
0.4.14 - strum_macros
0.20.1 - synstructure
0.12.4 - thiserror-impl
1.0.23 - tracing-attributes
0.1.12 - wasm-bindgen-backend
0.2.70 - wasm-bindgen-macro-support
0.2.70 - zeroize_derive
1.0.1
- asn1_der_derive
synstructure
0.12.4crates.io↘ 4↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb834f2d66f734cb897113e34aaff2f1ab4719ca946f9a7358dba8f8064148701take_mut
0.2.2crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf764005d11ee5f36500a149ace24e00e3da98b0158b3e2d53a7495660d3f4d60used bytap
1.0.1crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369used bytarget-lexicon
0.11.2crates.io↘ 0↖ 8sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum422045212ea98508ae3d28025bc5aaa2bd4a9cdaecd442a08da2ee620ee9ea95tempfile
3.2.0crates.io↘ 6↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumdac1c663cfc93810f88aed9b8941d48cabf856a1b111c29a40439018d870eb22termcolor
1.1.2crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum2dfed899f0eb03f32ee8c6a0aabdb8a7949659e3466561fc0adf54e26d88c5f4depends onused bytextwrap
0.11.0crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060depends onused bythiserror
1.0.23crates.io↘ 1↖ 29sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum76cc616c6abf8c8928e2fdcc0dbfab37175edd8fb49a4641066ad1364fdab146depends onused by- cranelift-codegen
0.69.0 - cranelift-wasm
0.69.0 - flexi_logger
0.15.12 - libp2p-core
0.27.1 - libp2p-yamux
0.30.0 - prometheus
0.11.0 - sc-cli
0.9.0 - sc-consensus-slots
0.9.0 - sc-executor-common
0.9.0 - sc-network
0.9.0 - sc-service
0.9.0 - sc-state-db
0.9.0 - sc-tracing
3.0.0 - sc-transaction-graph
3.0.0 - sc-transaction-pool
3.0.0 - sp-allocator
3.0.0 - sp-api
3.0.0 - sp-blockchain
3.0.0 - sp-consensus
0.9.0 - sp-core
3.0.0 - sp-inherents
3.0.0 - sp-state-machine
0.9.0 - sp-transaction-pool
3.0.0 - tiny-bip39
0.8.0 - wasmtime-debug
0.22.0 - wasmtime-environ
0.22.0 - wasmtime-jit
0.22.0 - wasmtime-runtime
0.22.0 - which
4.0.2
- cranelift-codegen
thiserror-impl
1.0.23crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum9be73a2caec27583d0046ef3796c3794f868a5bc813db689eed00c7631275cd1depends onused bythread_local
1.1.3crates.io↘ 1↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum8018d24e04c95ac8790716a5987d0fec4f8b27249ffa0f7d33f1369bdfb88cbddepends onthreadpool
1.8.1crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd050e60b33d41c19108b32cea32164033a9013fe3b46cbd4457559bfbf77afaadepends onused bytime
0.1.44crates.io↘ 3↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255used bytiny-bip39
0.8.0crates.io↘ 10↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd9e44c4759bae7f1032e286a7ef990bd9ed23fe831b7eeba0beb97484c2e59b8depends onused bytiny-keccak
2.0.2crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum2c9d3793400a45f954c52e73d068316d76b6f4e36977e3fcebb13a2721e80237depends onused bytinyvec
1.1.1crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum317cca572a0e89c3ce0ca1f1bdc9369547fe318a683418e42ac8f59d14701023depends onused bytinyvec_macros
0.1.0crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumcda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5cused bytokio
0.1.22crates.io↘ 16↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum5a09c0b5bb588872ab2f09afa13ee6e9dac11e10a0ec9e8e3ba39a5a5d530af6depends ontokio
0.2.25crates.io↘ 14↖ 7sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum6703a273949a90131b290be1fe7b039d0fc884aa1935860dfcbe056f28cd8092depends ontokio-buf
0.1.1crates.io↘ 3↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum8fb220f46c53859a4b7ec083e41dec9778ff0b1851c0942b211edb89e0ccdc46depends onused bytokio-codec
0.1.2crates.io↘ 3↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum25b2998660ba0e70d18684de5d06b70b70a3a747469af9dea7618cc59e75976bdepends ontokio-current-thread
0.1.7crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb1de0e32a83f131e002238d7ccde18211c0a5397f60cbfffcb112868c2e0e20edepends onused bytokio-executor
0.1.10crates.io↘ 2↖ 6sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumfb2d1b8f4548dbf5e1f7818512e9c406860678f29c300cdf0ebac72d1a3a1671depends ontokio-fs
0.1.7crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum297a1206e0ca6302a0eed35b700d292b275256f596e2f3fea7729d5e629b6ff4used bytokio-io
0.1.13crates.io↘ 3↖ 9sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum57fc868aae093479e3131e3d165c93b1c7474109d13c90ec0dda2a1bbfff0674depends ontokio-named-pipes
0.1.0crates.io↘ 5↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum9d282d483052288b2308ba5ee795f5673b159c9bdf63c385a05609da782a5eaeused bytokio-reactor
0.1.12crates.io↘ 11↖ 5sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum09bc590ec4ba8ba87652da2068d150dcada2cfa2e07faae270a5e0409aa51351depends ontokio-rustls
0.14.1crates.io↘ 4↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksume12831b255bcfa39dc0436b01e19fea231a37db570686c06ee72c423479f889aused bytokio-service
0.1.0crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum24da22d077e0f15f55162bdbdc661228c1581892f52074fb242678d015b45162depends onused bytokio-sync
0.1.8crates.io↘ 2↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumedfe50152bc8164fcc456dab7891fa9bf8beaf01c5ee7e1dd43a397c3cf87deedepends ontokio-tcp
0.1.4crates.io↘ 6↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum98df18ed66e3b72e742f185882a9e201892407957e45fbff8da17ae7a7c51f72used bytokio-threadpool
0.1.18crates.io↘ 9↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumdf720b6581784c118f0eb4310796b12b1d242a7eb95f716a8367855325c25f89depends ontokio-timer
0.2.13crates.io↘ 4↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum93044f2d313c95ff1cb7809ce9a7a05735b012288a888b62d4434fd58c94f296used bytokio-udp
0.1.6crates.io↘ 7↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksume2a0b10e610b39c38b031a2fcab08e4b82f16ece36504988dcbd81dbba650d82depends onused bytokio-uds
0.2.7crates.io↘ 10↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumab57a4ac4111c8c9dbcf70779f6fc8bc35ae4b2454809febac840ad19bd7e4e0depends ontokio-util
0.3.1crates.io↘ 6↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumbe8242891f2b6cbef26a2d7e8605133c2c554cd35b3e4948ea892d6d68436499used bytoml
0.5.8crates.io↘ 1↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksuma31142970826733df8241ef35dc040ef98c679ab14d7c3e54d827099b3acecaadepends ontower-service
0.3.1crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum360dfd1d6d30e05fda32ace2c8c70e9c0a9da713275777f5a4dbb8a1893930c6used bytracing
0.1.23crates.io↘ 5↖ 9sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf7d40a22fd029e33300d8d89a5cc8ffce18bb7c587662f54629e94c9de5487f3tracing-attributes
0.1.12crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum43f080ea7e4107844ef4766459426fa2d5c1ada2e47edba05dc7fa99d9629f47depends onused bytracing-core
0.1.17crates.io↘ 1↖ 7sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf50de3927f93d202783f4513cda820ab47ef17f624b03c096e86ef00c67e6b5fdepends ontracing-futures
0.2.4crates.io↘ 2↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumab7bb6f14721aa00656086e9335d363c5c8747bae02ebe32ea2c7dece5689b4cdepends onused bytracing-log
0.1.1crates.io↘ 3↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum5e0f8c7178e13481ff6765bd169b33e8d554c5d2bbede5e32c356194be02b9b9tracing-serde
0.1.2crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumfb65ea441fbb84f9f6748fd496cf7f63ec9af5bca94dd86456978d055e8eb28bdepends onused bytracing-subscriber
0.2.15crates.io↘ 14↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksuma1fa8f0c8f4c594e4fc9debc1990deab13238077271ba84dd853d54902ee3401depends ontrie-db
0.22.3crates.io↘ 5↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumec051edf7f0fc9499a2cb0947652cab2148b9d7f61cee7605e312e9f970dacaftrie-root
0.16.0crates.io↘ 1↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum652931506d2c1244d7217a70b99f56718a7b4161b37f04e7cd868072a99f68cddepends ontwox-hash
1.6.0crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum04f8ab788026715fa63b31960869617cba39117e520eb415b0139543e325ab59used bytypenum
1.12.0crates.io↘ 0↖ 5sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum373c8a200f9e67a0c95e62a4f52fbf80c23b4381c05a17845531982fa99e6b33uint
0.9.0crates.io↘ 4↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksume11fe9a9348741cf134085ad57c249508345fe16411b3d7fb4ff2da2f1d6382eunicase
2.6.0crates.io↘ 1↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum50f37be617794602aabbeee0be4f259dc1778fabe05e2d67ee8f79326d5cb4f6depends onunicode-bidi
0.3.4crates.io↘ 1↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5depends onunicode-normalization
0.1.17crates.io↘ 1↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum07fbfce1c8a97d547e8b5334978438d9d6ec8c20e38f56d4a4374d181493eaefdepends onunicode-segmentation
1.7.1crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumbb0d2e7be6ae3a5fa87eed5fb451aff96f2573d2694942e40543ae0bbe19c796used byunicode-width
0.1.8crates.io↘ 0↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum9337591893a19b88d8d87f2cec1e73fad5cdfd10e5a6f349f498ad6ea2ffb1e3used byunicode-xid
0.2.1crates.io↘ 0↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564universal-hash
0.4.0crates.io↘ 2↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum8326b2c654932e3e4f9196e69d08fdf7cfd718e1dc6f66b347e6024a0c961402depends onused byunsigned-varint
0.5.1crates.io↘ 0↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf7fdeedbf205afadfe39ae559b75c3240f24e257d0ca27e85f85cb82aa19ac35used byunsigned-varint
0.6.0crates.io↘ 4↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum35581ff83d4101e58b582e607120c7f5ffb17e632a980b1f38334d76b36908b2unsigned-varint
0.7.0crates.io↘ 4↖ 7sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum5f8d425fafb8cd76bc3f22aace4af471d3156301d7508f2107e98fbeae10bc7funtrusted
0.7.1crates.io↘ 0↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksuma156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4aurl
1.7.2crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumdd4e7c0d531266369519a4aa4f399d748bd37043b00bde1e4ff1f60a120b355aurl
2.2.0crates.io↘ 4↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum5909f2b0817350449ed73e8bcd81c8c3c8d9a7a5d8acba4b27db277f1868976evalue-bag
1.0.0-alpha.6crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum6b676010e055c99033117c2343b33a40a30b91fecd6c49055ac9cd2d6c305ab1depends onused byvcpkg
0.2.11crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb00bca6106a5e23f3eee943593759b7fcddb00554332e856d990c893966879fbused byvec_map
0.8.2crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumf1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191used byvec-arena
1.0.0crates.io↘ 0↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumeafc1b9b2dfc6f5529177b62cf806484db55b32dc7c9658a118e11bbeb33061dversion_check
0.9.2crates.io↘ 0↖ 5sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb5a972e5669d67ba988ce3dc826706fb0a8b01471c088cb0b6110b805cc36aedvoid
1.0.2crates.io↘ 0↖ 8sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887dwaker-fn
1.1.0crates.io↘ 0↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum9d5b2c62b4012a3e1eca5a7e077d13b3bf498c4073e33ccd58626607748ceecawalkdir
2.3.1crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum777182bc735b6424e1a57516d35ed72cb8019d85c8c9bf536dccb3445c1a2f7dused bywant
0.2.0crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb6395efa4784b027708f7451087e647ec73cc74f5d9bc2e418404248d679a230depends onused bywant
0.3.0crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0depends onused bywasi
0.9.0+wasi-snapshot-preview1crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumcccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519used bywasi
0.10.0+wasi-snapshot-preview1crates.io↘ 0↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31fused bywasm-bindgen
0.2.70crates.io↘ 2↖ 7sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum55c0f7123de74f0dab9b7d00fd614e7b19349cd1e2f5252bbe9b1754b59433bedepends onwasm-bindgen-backend
0.2.70crates.io↘ 7↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum7bc45447f0d4573f3d65720f636bbcc3dd6ce920ed704670118650bcd47764c7depends onwasm-bindgen-futures
0.4.20crates.io↘ 4↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum3de431a2910c86679c34283a33f66f4e4abd7e0aec27b6669060148872aadf94wasm-bindgen-macro
0.2.70crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum3b8853882eef39593ad4174dd26fc9865a64e84026d223f63bb2c42affcbba2cused bywasm-bindgen-macro-support
0.2.70crates.io↘ 5↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum4133b5e7f2a531fa413b3a1695e925038a05a71cf67e87dafa295cb645a01385used bywasm-gc-api
0.1.11crates.io↘ 3↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd0c32691b6c7e6c14e7f8fd55361a9088b507aa49620fcd06c09b3a1082186b9used bywasm-timer
0.2.5crates.io↘ 7↖ 17sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumbe0ecb0db480561e9a7642b5d3e4187c128914e58aa84330b9493e3eb68c5e7fdepends onused by- libp2p
0.34.0 - libp2p-gossipsub
0.27.0 - libp2p-identify
0.27.0 - libp2p-kad
0.28.1 - libp2p-ping
0.27.0 - libp2p-request-response
0.9.1 - libp2p-swarm
0.27.2 - sc-informant
0.9.0 - sc-network
0.9.0 - sc-network-gossip
0.9.0 - sc-peerset
3.0.0 - sc-service
0.9.0 - sc-telemetry
3.0.0 - sc-transaction-graph
3.0.0 - sc-transaction-pool
3.0.0 - sp-consensus
0.9.0 - sp-timestamp
3.0.0
- libp2p
wasmi
0.6.2crates.io↘ 6↖ 6sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumbf617d864d25af3587aa745529f7aaa541066c876d57e050c0d0c85c61c92affdepends onwasmi-validation
0.3.0crates.io↘ 1↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumea78c597064ba73596099281e2f4cfc019075122a65cdda3205af94f0b264d93depends onwasmparser
0.71.0crates.io↘ 0↖ 5sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum89a30c99437829ede826802bfcf28500cf58df00e66cb9114df98813bc145ff1wasmtime
0.22.0crates.io↘ 21↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum7426055cb92bd9a1e9469b48154d8d6119cd8c498c8b70284e420342c05dc45ddepends on- anyhow
1.0.38 - backtrace
0.3.56 - bincode
1.3.1 - cfg-if
1.0.0 - cpp_demangle
0.3.2 - indexmap
1.6.1 - libc
0.2.86 - log
0.4.14 - region
2.2.0 - rustc-demangle
0.1.18 - serde
1.0.123 - smallvec
1.6.1 - target-lexicon
0.11.2 - wasmparser
0.71.0 - wasmtime-cache
0.22.0 - wasmtime-environ
0.22.0 - wasmtime-jit
0.22.0 - wasmtime-profiling
0.22.0 - wasmtime-runtime
0.22.0 - wat
1.0.34 - winapi
0.3.9
used by- anyhow
wasmtime-cache
0.22.0crates.io↘ 13↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumc01d9287e36921e46f5887a47007824ae5dbb9b7517a2d565660ab4471478709depends onused bywasmtime-cranelift
0.22.0crates.io↘ 5↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum4134ed3a4316cd0de0e546c6004850afe472b0fa3fcdc2f2c15f8d449562d962depends onused bywasmtime-debug
0.22.0crates.io↘ 8↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksume91fa931df6dd8af2b02606307674d3bad23f55473d5f4c809dddf7e4c4dc411depends onwasmtime-environ
0.22.0crates.io↘ 12↖ 7sourceregistry+https://github.com/rust-lang/crates.io-indexchecksuma1098871dc3120aaf8190d79153e470658bb79f63ee9ca31716711e123c28220depends onwasmtime-jit
0.22.0crates.io↘ 25↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum738bfcd1561ede8bb174215776fd7d9a95d5f0a47ca3deabe0282c55f9a89f68depends on- addr2line
0.14.1 - anyhow
1.0.38 - cfg-if
1.0.0 - cranelift-codegen
0.69.0 - cranelift-entity
0.69.0 - cranelift-frontend
0.69.0 - cranelift-native
0.69.0 - cranelift-wasm
0.69.0 - gimli
0.23.0 - log
0.4.14 - more-asserts
0.2.1 - object
0.22.0 - rayon
1.5.0 - region
2.2.0 - serde
1.0.123 - target-lexicon
0.11.2 - thiserror
1.0.23 - wasmparser
0.71.0 - wasmtime-cranelift
0.22.0 - wasmtime-debug
0.22.0 - wasmtime-environ
0.22.0 - wasmtime-obj
0.22.0 - wasmtime-profiling
0.22.0 - wasmtime-runtime
0.22.0 - winapi
0.3.9
used by- addr2line
wasmtime-obj
0.22.0crates.io↘ 6↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum3e96d77f1801131c5e86d93e42a3cf8a35402107332c202c245c83f34888a906depends onused bywasmtime-profiling
0.22.0crates.io↘ 11↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum60bb672c9d894776d7b9250dd9b4fe890f8760201ee4f53e5f2da772b6c4debbdepends onwasmtime-runtime
0.22.0crates.io↘ 14↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksuma978086740949eeedfefcee667b57a9e98d9a7fc0de382fcfa0da30369e3530ddepends onwast
33.0.0crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum1d04fe175c7f78214971293e7d8875673804e736092206a3a4544dbc12811c1bdepends onused bywat
1.0.34crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum7ec9c6ee01ae07a26adadcdfed22c7a97e0b8cbee9c06e0e96076ece5aeb5cfedepends onused byweb-sys
0.3.47crates.io↘ 2↖ 5sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumc40dc691fc48003eba817c38da7113c15698142da971298003cac3ef175680b3depends onwebpki
0.21.4crates.io↘ 2↖ 6sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumb8e38c0608262c46d4a56202ebabdeb094cef7e560ca7a226c6bf055188aa4eadepends onwebpki-roots
0.21.0crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum82015b7e0b8bad8185994674a13a93306bea76cf5a16c5a181382fd3a5ec2376depends onused bywepoll-sys
3.0.1crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum0fcb14dea929042224824779fbc82d9fab8d2e6d3cbc0ac404de8edf489e77ffdepends onused bywhich
3.1.1crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd011071ae14a2f6671d0b74080ae0cd8ebf3a6f8c9589a2cd45f23126fe29724depends onused bywhich
4.0.2crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum87c14ef7e1b8b8ecfc75d5eca37949410046e66f15d185c01d70824f1f8111efdepends onused bywinapi
0.2.8crates.io↘ 0↖ 4sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087awinapi
0.3.9crates.io↘ 2↖ 38sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419used by- ansi_term
0.11.0 - ansi_term
0.12.1 - async-io
1.3.1 - async-process
1.0.2 - atty
0.2.14 - chrono
0.4.19 - dirs-sys
0.3.5 - dirs-sys-next
0.1.2 - errno
0.2.7 - fs-swap
0.2.5 - if-addrs
0.6.5 - if-watch
0.1.8 - libloading
0.5.2 - mio-named-pipes
0.1.7 - miow
0.3.6 - net2
0.2.37 - parity-tokio-ipc
0.4.0 - parity-util-mem
0.9.0 - parking_lot_core
0.6.2 - parking_lot_core
0.7.2 - parking_lot_core
0.8.3 - polling
2.0.2 - rand
0.4.6 - region
2.2.0 - remove_dir_all
0.5.3 - ring
0.16.20 - rpassword
5.0.1 - schannel
0.1.19 - socket2
0.3.19 - tempfile
3.2.0 - time
0.1.44 - tokio
0.2.25 - walkdir
2.3.1 - wasmtime
0.22.0 - wasmtime-cache
0.22.0 - wasmtime-jit
0.22.0 - wasmtime-runtime
0.22.0 - winapi-util
0.1.5
- ansi_term
winapi-build
0.1.1crates.io↘ 0↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bcwinapi-i686-pc-windows-gnu
0.4.0crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6used bywinapi-util
0.1.5crates.io↘ 1↖ 3sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178depends onwinapi-x86_64-pc-windows-gnu
0.4.0crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183fused byws2_32-sys
0.2.1crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumd59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5edepends onused bywyz
0.2.0crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum85e60b0d1b5f99db2556934e21937020776a5d31520bf169e851ac44e6420214used byx25519-dalek
1.1.0crates.io↘ 3↖ 2sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumbc614d95359fd7afc321b66d2107ede58b246b844cf5d8a0adcca413e439f088used byyamux
0.8.0crates.io↘ 6↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum9aeb8c4043cac71c3c299dff107171c220d179492350ea198e109a414981b83cused byyansi
0.5.0crates.io↘ 0↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum9fc79f4a1e39857fc00c3f662cbf2651c771f00e9c15fe2abc341806bd46bd71used byzeroize
1.2.0crates.io↘ 1↖ 15sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum81a974bcdd357f0dca4d41677db03436324d45a4c9ed2d0b873a5a360ce41c36depends onzeroize_derive
1.0.1crates.io↘ 4↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksumc3f369ddb18862aba61aa49bf31e74d29f0f162dec753063200e1dc084345d16used byzstd
0.5.4+zstd.1.4.7crates.io↘ 1↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum69996ebdb1ba8b1517f61387a883857818a66c8a295f487b1ffd8fd9d2c82910depends onused byzstd-safe
2.0.6+zstd.1.4.7crates.io↘ 2↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksum98aa931fb69ecee256d44589d19754e61851ae4769bf963b385119b1cc37a49edepends onused byzstd-sys
1.4.18+zstd.1.4.7crates.io↘ 4↖ 1sourceregistry+https://github.com/rust-lang/crates.io-indexchecksuma1e6e8778706838f43f771d80d37787cb2fe06dafe89dd3aebaf6721b9eaec81used by
Cargo.tomldiffbeforeafterboth--- a/Cargo.toml
+++ b/Cargo.toml
@@ -2,6 +2,8 @@
members = [
'node',
'pallets/nft',
+ 'pallets/nft-transaction-payment',
+ 'primitives',
'runtime',
]
[profile.release]
node/Cargo.tomldiffbeforeafterboth--- a/node/Cargo.toml
+++ b/node/Cargo.toml
@@ -28,6 +28,7 @@
# Substrate dependencies
nft-runtime = { path = '../runtime', version = '3.0.0' }
+nft-data-structs = { default-features = false, path="../primitives" }
frame-benchmarking = '3.0.0'
frame-benchmarking-cli = '3.0.0'
pallet-transaction-payment-rpc = '3.0.0'
node/src/chain_spec.rsdiffbeforeafterboth--- a/node/src/chain_spec.rs
+++ b/node/src/chain_spec.rs
@@ -3,19 +3,14 @@
// file 'LICENSE', which is part of this source code package.
//
-// use nft_runtime::{
-// AccountId, AuraConfig, BalancesConfig, GenesisConfig, GrandpaConfig, Signature, SudoConfig,
-// SystemConfig, WASM_BINARY,
-// };
-// use nft_runtime::{ContractsConfig, ContractsSchedule, NftConfig, CollectionType};
use nft_runtime::*;
+use nft_data_structs::*;
use sc_service::ChainType;
use sp_consensus_aura::sr25519::AuthorityId as AuraId;
use sp_core::{sr25519, Pair, Public};
use sp_finality_grandpa::AuthorityId as GrandpaId;
use sp_runtime::traits::{IdentifyAccount, Verify};
use serde_json::map::Map;
-// use crate::chain_spec::api::chain_extension::*;
// Note this is the URL for the telemetry server
//const STAGING_TELEMETRY_URL: &str = "wss://telemetry.polkadot.io/submit/";
@@ -158,7 +153,7 @@
balances: endowed_accounts
.iter()
.cloned()
- .map(|k| (k, 1 << 100))
+ .map(|k| (k, 1 << 70))
.collect(),
}),
pallet_aura: Some(AuraConfig {
pallets/nft-charge-transaction/Cargo.tomldiffbeforeafterboth--- /dev/null
+++ b/pallets/nft-charge-transaction/Cargo.toml
@@ -0,0 +1,59 @@
+[package]
+authors = ['Substrate DevHub <https://github.com/substrate-developer-hub>']
+description = 'Unqiue pallet nft specific transaction payment'
+edition = '2018'
+homepage = 'https://substrate.io'
+license = 'Unlicense'
+name = 'pallet-nft-charge-transaction'
+repository = 'https://github.com/usetech-llc/nft_private/'
+version = '3.0.0'
+
+[package.metadata.docs.rs]
+targets = ['x86_64-unknown-linux-gnu']
+
+# alias "parity-scale-code" to "codec"
+[dependencies.codec]
+default-features = false
+features = ['derive']
+package = 'parity-scale-codec'
+version = '2.0.0'
+
+[dependencies]
+serde = { version = "1.0.119" }
+frame-support = { default-features = false, version = '3.0.0' }
+frame-system = { default-features = false, version = '3.0.0' }
+pallet-balances = { default-features = false, version = '3.0.0' }
+pallet-contracts = { default-features = false, version = '3.0.0' }
+pallet-timestamp = { default-features = false, version = '3.0.0' }
+pallet-transaction-payment = { default-features = false, version = "3.0.0" }
+pallet-randomness-collective-flip = { default-features = false, version = '3.0.0' }
+sp-std = { default-features = false, version = '3.0.0' }
+frame-benchmarking = { default-features = false, version = "3.0.0", optional = true }
+sp-core = { default-features = false, version = '3.0.0' }
+sp-io = { default-features = false, version = '3.0.0' }
+sp-runtime = { default-features = false, version = '3.0.0' }
+
+pallet-nft = { default-features = false, path="../nft" }
+pallet-nft-transaction-payment = { default-features = false, path="../nft-transaction-payment" }
+nft-data-structs = { default-features = false, path="../../primitives" }
+
+[features]
+default = ['std']
+std = [
+ 'codec/std',
+ 'serde/std',
+ 'frame-support/std',
+ 'frame-system/std',
+ 'pallet-balances/std',
+ 'pallet-timestamp/std',
+ 'pallet-randomness-collective-flip/std',
+ 'pallet-contracts/std',
+ 'pallet-nft/std',
+ 'pallet-transaction-payment/std',
+ 'pallet-nft-transaction-payment/std',
+ 'sp-std/std',
+ 'sp-runtime/std',
+ 'nft-data-structs/std',
+ 'frame-benchmarking/std',
+]
+runtime-benchmarks = ["frame-benchmarking"]
pallets/nft-charge-transaction/src/lib.rsdiffbeforeafterboth--- /dev/null
+++ b/pallets/nft-charge-transaction/src/lib.rs
@@ -0,0 +1,215 @@
+//
+// This file is subject to the terms and conditions defined in
+// file 'LICENSE', which is part of this source code package.
+//
+
+#![cfg_attr(not(feature = "std"), no_std)]
+
+#[cfg(feature = "std")]
+pub use std::*;
+
+#[cfg(feature = "std")]
+pub use serde::*;
+
+#[cfg(feature = "runtime-benchmarks")]
+mod benchmarking;
+
+#[cfg(test)]
+mod tests;
+
+use codec::{Decode, Encode};
+use frame_support::traits::{ Get};
+use frame_support::{
+ decl_module, decl_storage,
+ traits::{
+ IsSubType,
+ },
+ weights::{
+ DispatchInfo, PostDispatchInfo, DispatchClass
+ }
+};
+use sp_runtime::{
+ traits::{
+ DispatchInfoOf, Dispatchable, PostDispatchInfoOf, Saturating, SaturatedConversion, SignedExtension, Zero,
+ },
+ transaction_validity::{
+ TransactionPriority, TransactionValidity, TransactionValidityError, ValidTransaction,
+ },
+ FixedPointOperand, DispatchResult
+};
+use pallet_contracts::chain_extension::UncheckedFrom;
+use pallet_transaction_payment::OnChargeTransaction;
+use sp_std::prelude::*;
+
+
+ pub trait Config: frame_system::Config +
+ pallet_nft_transaction_payment::Config
+ {
+
+ }
+
+ decl_storage! {
+ trait Store for Module<T: Config> as NftTransactionPayment{
+
+ }
+}
+
+decl_module! {
+
+ pub struct Module<T: Config> for enum Call
+ where
+ origin: T::Origin,
+ {}
+}
+
+type BalanceOf<T> = <<T as pallet_transaction_payment::Config>::OnChargeTransaction as pallet_transaction_payment::OnChargeTransaction<T>>::Balance;
+
+/// Require the transactor pay for themselves and maybe include a tip to gain additional priority
+/// in the queue.
+#[derive(Encode, Decode, Clone, Eq, PartialEq)]
+pub struct ChargeTransactionPayment<T: Config>(#[codec(compact)] BalanceOf<T>);
+
+impl<T: Config + Send + Sync> sp_std::fmt::Debug
+ for ChargeTransactionPayment<T>
+{
+ #[cfg(feature = "std")]
+ fn fmt(&self, f: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result {
+ write!(f, "ChargeTransactionPayment<{:?}>", self.0)
+ }
+ #[cfg(not(feature = "std"))]
+ fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result {
+ Ok(())
+ }
+}
+
+impl<T: Config> ChargeTransactionPayment<T>
+where
+ T::Call: Dispatchable<Info=DispatchInfo, PostInfo=PostDispatchInfo> + IsSubType<pallet_nft::Call<T>> + IsSubType<pallet_contracts::Call<T>>,
+ BalanceOf<T>: Send + Sync + From<u64> + FixedPointOperand,
+ T::AccountId: AsRef<[u8]>,
+ T::AccountId: UncheckedFrom<T::Hash>,
+{
+ fn traditional_fee(
+ len: usize,
+ info: &DispatchInfoOf<T::Call>,
+ tip: BalanceOf<T>,
+ ) -> BalanceOf<T>
+ where
+ T::Call: Dispatchable<Info = DispatchInfo>,
+ {
+ <pallet_transaction_payment::Module<T>>::compute_fee(len as u32, info, tip)
+ }
+
+ fn get_priority(len: usize, info: &DispatchInfoOf<T::Call>, final_fee: BalanceOf<T>) -> TransactionPriority {
+ let weight_saturation = T::BlockWeights::get().max_block / info.weight.max(1);
+ let max_block_length = *T::BlockLength::get().max.get(DispatchClass::Normal);
+ let len_saturation = max_block_length as u64 / (len as u64).max(1);
+ let coefficient: BalanceOf<T> = weight_saturation
+ .min(len_saturation)
+ .saturated_into::<BalanceOf<T>>();
+ final_fee
+ .saturating_mul(coefficient)
+ .saturated_into::<TransactionPriority>()
+ }
+
+ fn withdraw_fee(
+ &self,
+ who: &T::AccountId,
+ call: &T::Call,
+ info: &DispatchInfoOf<T::Call>,
+ len: usize,
+ ) -> Result<
+ (
+ BalanceOf<T>,
+ <<T as pallet_transaction_payment::Config>::OnChargeTransaction as pallet_transaction_payment::OnChargeTransaction<T>>::LiquidityInfo,
+ ),
+ TransactionValidityError,
+ > {
+ let tip = self.0;
+
+ let fee = Self::traditional_fee(len, info, tip);
+
+ // Only mess with balances if fee is not zero.
+ if fee.is_zero() {
+ return <<T as pallet_transaction_payment::Config>::OnChargeTransaction as pallet_transaction_payment::OnChargeTransaction<T>>::withdraw_fee(who, call, info, fee, tip)
+ .map(|i| (fee, i));
+ }
+
+ // Determine who is paying transaction fee based on ecnomic model
+ // Parse call to extract collection ID and access collection sponsor
+ let sponsor = <pallet_nft_transaction_payment::Module<T>>::withdraw_type(who, call);
+
+ let who_pays_fee = sponsor.unwrap_or_else(|| who.clone());
+
+ <<T as pallet_transaction_payment::Config>::OnChargeTransaction as pallet_transaction_payment::OnChargeTransaction<T>>::withdraw_fee(&who_pays_fee, call, info, fee, tip)
+ .map(|i| (fee, i))
+ }
+}
+
+impl<T: Config + Send + Sync> SignedExtension
+ for ChargeTransactionPayment<T>
+where
+ BalanceOf<T>: Send + Sync + From<u64> + FixedPointOperand,
+ T::Call: Dispatchable<Info=DispatchInfo, PostInfo=PostDispatchInfo> + IsSubType<pallet_nft::Call<T>> + IsSubType<pallet_contracts::Call<T>>,
+ T::AccountId: AsRef<[u8]>,
+ T::AccountId: UncheckedFrom<T::Hash>,
+{
+ const IDENTIFIER: &'static str = "ChargeTransactionPayment";
+ type AccountId = T::AccountId;
+ type Call = T::Call;
+ type AdditionalSigned = ();
+ type Pre = (
+ // tip
+ BalanceOf<T>,
+ // who pays fee
+ Self::AccountId,
+ // imbalance resulting from withdrawing the fee
+ <<T as pallet_transaction_payment::Config>::OnChargeTransaction as pallet_transaction_payment::OnChargeTransaction<T>>::LiquidityInfo,
+ );
+ fn additional_signed(&self) -> sp_std::result::Result<(), TransactionValidityError> {
+ Ok(())
+ }
+
+ fn validate(
+ &self,
+ who: &Self::AccountId,
+ call: &Self::Call,
+ info: &DispatchInfoOf<Self::Call>,
+ len: usize,
+ ) -> TransactionValidity {
+ let (fee, _) = self.withdraw_fee(who, call, info, len)?;
+ Ok(ValidTransaction {
+ priority: Self::get_priority(len, info, fee),
+ ..Default::default()
+ })
+ }
+
+ fn pre_dispatch(
+ self,
+ who: &Self::AccountId,
+ call: &Self::Call,
+ info: &DispatchInfoOf<Self::Call>,
+ len: usize,
+ ) -> Result<Self::Pre, TransactionValidityError> {
+ let (_fee, imbalance) = self.withdraw_fee(who, call, info, len)?;
+ Ok((self.0, who.clone(), imbalance))
+ }
+
+ fn post_dispatch(
+ pre: Self::Pre,
+ info: &DispatchInfoOf<Self::Call>,
+ post_info: &PostDispatchInfoOf<Self::Call>,
+ len: usize,
+ _result: &DispatchResult,
+ ) -> Result<(), TransactionValidityError> {
+ let (tip, who, imbalance) = pre;
+ let actual_fee = pallet_transaction_payment::Module::<T>::compute_actual_fee(
+ len as u32,
+ info,
+ post_info,
+ tip,
+ );
+ <T as pallet_transaction_payment::Config>::OnChargeTransaction::correct_and_deposit_fee(&who, info, post_info, actual_fee, tip, imbalance)?;
+ Ok(())
+ }
+}
\ No newline at end of file
pallets/nft-transaction-payment/Cargo.tomldiffbeforeafterboth--- /dev/null
+++ b/pallets/nft-transaction-payment/Cargo.toml
@@ -0,0 +1,57 @@
+[package]
+authors = ['Substrate DevHub <https://github.com/substrate-developer-hub>']
+description = 'Unqiue pallet nft specific transaction payment'
+edition = '2018'
+homepage = 'https://substrate.io'
+license = 'Unlicense'
+name = 'pallet-nft-transaction-payment'
+repository = 'https://github.com/usetech-llc/nft_private/'
+version = '3.0.0'
+
+[package.metadata.docs.rs]
+targets = ['x86_64-unknown-linux-gnu']
+
+# alias "parity-scale-code" to "codec"
+[dependencies.codec]
+default-features = false
+features = ['derive']
+package = 'parity-scale-codec'
+version = '2.0.0'
+
+[dependencies]
+serde = { version = "1.0.119" }
+frame-support = { default-features = false, version = '3.0.0' }
+frame-system = { default-features = false, version = '3.0.0' }
+pallet-balances = { default-features = false, version = '3.0.0' }
+pallet-contracts = { default-features = false, version = '3.0.0' }
+pallet-timestamp = { default-features = false, version = '3.0.0' }
+pallet-transaction-payment = { default-features = false, version = "3.0.0" }
+pallet-randomness-collective-flip = { default-features = false, version = '3.0.0' }
+sp-std = { default-features = false, version = '3.0.0' }
+frame-benchmarking = { default-features = false, version = "3.0.0", optional = true }
+sp-core = { default-features = false, version = '3.0.0' }
+sp-io = { default-features = false, version = '3.0.0' }
+sp-runtime = { default-features = false, version = '3.0.0' }
+
+pallet-nft = { default-features = false, path="../nft" }
+nft-data-structs = { default-features = false, path="../../primitives" }
+
+[features]
+default = ['std']
+std = [
+ 'codec/std',
+ 'serde/std',
+ 'frame-support/std',
+ 'frame-system/std',
+ 'pallet-balances/std',
+ 'pallet-timestamp/std',
+ 'pallet-randomness-collective-flip/std',
+ 'pallet-contracts/std',
+ 'pallet-nft/std',
+ 'pallet-transaction-payment/std',
+ 'sp-std/std',
+ 'sp-runtime/std',
+ 'nft-data-structs/std',
+ 'frame-benchmarking/std',
+]
+runtime-benchmarks = ["frame-benchmarking"]
pallets/nft-transaction-payment/src/benchmarking.rsdiffbeforeafterboth--- /dev/null
+++ b/pallets/nft-transaction-payment/src/benchmarking.rs
@@ -0,0 +1,19 @@
+#![cfg(feature = "runtime-benchmarks")]
+
+use super::*;
+use crate::Module as NftTransactionPayment;
+
+use sp_std::prelude::*;
+use frame_system::RawOrigin;
+use frame_benchmarking::{benchmarks};
+use frame_support::traits::OnInitialize;
+
+benchmarks! {
+
+ // on_initialize {
+ // let block1: T::BlockNumber = T::BlockNumber::from(1u32);
+ // let block2: T::BlockNumber = T::BlockNumber::from(2u32);
+ // Inflation::<T>::on_initialize(block1); // Create Treasury account
+ // }: { Inflation::<T>::on_initialize(block2); } // Benchmark deposit_into_existing path
+
+}
pallets/nft-transaction-payment/src/lib.rsdiffbeforeafterboth--- /dev/null
+++ b/pallets/nft-transaction-payment/src/lib.rs
@@ -0,0 +1,525 @@
+//
+// This file is subject to the terms and conditions defined in
+// file 'LICENSE', which is part of this source code package.
+//
+
+#![cfg_attr(not(feature = "std"), no_std)]
+
+#[cfg(feature = "std")]
+pub use std::*;
+
+#[cfg(feature = "std")]
+pub use serde::*;
+
+#[cfg(feature = "runtime-benchmarks")]
+mod benchmarking;
+
+#[cfg(test)]
+mod tests;
+
+use frame_support::{
+ decl_error, decl_module, decl_storage,
+ traits::{
+ IsSubType,
+ },
+ weights::{
+ DispatchInfo
+ }
+};
+use sp_runtime::traits::StaticLookup;
+use sp_runtime::{
+ traits::{
+ Hash, Dispatchable,
+ },
+};
+use pallet_contracts::chain_extension::UncheckedFrom;
+use sp_std::prelude::*;
+use nft_data_structs::{
+ CreateItemData,
+ CollectionId, CollectionMode, TokenId
+};
+
+type CodeHash<T> = <T as frame_system::Config>::Hash;
+
+ pub trait Config: frame_system::Config + pallet_contracts::Config + pallet_transaction_payment::Config + pallet_nft::Config {
+ }
+
+ // Error for non-fungible-token module.
+
+ decl_error! {
+ /// Error for non-fungible-token module.
+ pub enum Error for Module<T: Config> {
+ /// No available class ID
+ NoAvailableClassId,
+ /// No available token ID
+ NoAvailableTokenId,
+ /// Token(ClassId, TokenId) not found
+ TokenNotFound,
+ /// Class not found
+ CollectionNotFound,
+ /// The operator is not the owner of the token and has no permission
+ NoPermission,
+ /// Arithmetic calculation overflow
+ NumOverflow,
+ /// Can not destroy class
+ /// Total issuance is not 0
+ CannotDestroyClass,
+ }
+}
+
+ decl_storage! {
+ trait Store for Module<T: Config> as NftTransactionPayment{
+
+ }
+}
+
+decl_module! {
+
+ pub struct Module<T: Config> for enum Call
+ where
+ origin: T::Origin,
+ {
+ }
+}
+
+impl<T: Config> Module<T>
+{
+
+ pub fn withdraw_type(
+ who: &T::AccountId,
+ call: &T::Call
+ ) -> Option<T::AccountId> where
+ T::Call: Dispatchable<Info=DispatchInfo>,
+ T::Call: IsSubType<pallet_nft::Call<T>>,
+ T::Call: IsSubType<pallet_contracts::Call<T>>,
+ T::AccountId: AsRef<[u8]>,
+ T::AccountId: UncheckedFrom<T::Hash>
+ {
+
+ let mut sponsor: Option<T::AccountId> = match IsSubType::<pallet_nft::Call<T>>::is_sub_type(call) {
+ Some(pallet_nft::Call::create_item(collection_id, _owner, _properties)) => {
+
+ Self::withdraw_create_item(who, collection_id, &_properties)
+ },
+ Some(pallet_nft::Call::transfer(_new_owner, collection_id, item_id, _value)) => {
+
+ Self::withdraw_transfer(who, collection_id, item_id)
+ },
+ Some(pallet_nft::Call::set_variable_meta_data(collection_id, item_id, data)) => {
+
+ Self::withdraw_set_variable_meta_data(who, collection_id, item_id, &data)
+ },
+ _ => None,
+ };
+
+ sponsor = sponsor.or_else(|| match IsSubType::<pallet_contracts::Call<T>>::is_sub_type(call) {
+ Some(pallet_contracts::Call::call(dest, _value, _gas_limit, _data)) => {
+
+ Self::withdraw_contract_call(who, dest)
+ },
+ Some(pallet_contracts::Call::instantiate(_endowment, _gas_limit, code_hash, _data, salt)) => {
+
+ Self::withdraw_contract_instantiate(&who, code_hash, salt)
+ },
+ Some(pallet_contracts::Call::instantiate_with_code(_endowment, _gas_limit, _code, _data, _salt)) => {
+
+ Self::withdraw_contract_instantiate(&who, &T::Hashing::hash(&_code), _salt)
+ },
+ _ => None,
+ });
+
+ sponsor
+ }
+
+
+
+ pub fn withdraw_create_item(
+ who: &T::AccountId,
+ collection_id: &CollectionId,
+ _properties: &CreateItemData,
+ ) -> Option<T::AccountId> {
+
+ let collection = pallet_nft::CollectionById::<T>::get(collection_id)?;
+
+ // sponsor timeout
+ let block_number = <frame_system::Module<T>>::block_number() as T::BlockNumber;
+
+ let limit = collection.limits.sponsor_transfer_timeout;
+ if pallet_nft::CreateItemBasket::<T>::contains_key((collection_id, &who)) {
+ let last_tx_block = pallet_nft::CreateItemBasket::<T>::get((collection_id, &who));
+ let limit_time = last_tx_block + limit.into();
+ if block_number <= limit_time {
+ return None;
+ }
+ }
+ pallet_nft::CreateItemBasket::<T>::insert((collection_id, who.clone()), block_number);
+
+ // check free create limit
+ if collection.limits.sponsored_data_size >= (_properties.len() as u32) {
+ collection.sponsorship.sponsor()
+ .cloned()
+ } else {
+ None
+ }
+ }
+
+ pub fn withdraw_transfer(
+ who: &T::AccountId,
+ collection_id: &CollectionId,
+ item_id: &TokenId,
+ ) -> Option<T::AccountId> {
+
+ let collection = pallet_nft::CollectionById::<T>::get(collection_id)?;
+ let limits = pallet_nft::ChainLimit::get();
+
+ let mut sponsor_transfer = false;
+ if collection.sponsorship.confirmed() {
+
+ let collection_limits = collection.limits.clone();
+ let collection_mode = collection.mode.clone();
+
+ // sponsor timeout
+ let block_number = <frame_system::Module<T>>::block_number() as T::BlockNumber;
+ sponsor_transfer = match collection_mode {
+ CollectionMode::NFT => {
+
+ // get correct limit
+ let limit: u32 = if collection_limits.sponsor_transfer_timeout > 0 {
+ collection_limits.sponsor_transfer_timeout
+ } else {
+ limits.nft_sponsor_transfer_timeout
+ };
+
+ let mut sponsored = true;
+ if pallet_nft::NftTransferBasket::<T>::contains_key(collection_id, item_id) {
+ let last_tx_block = pallet_nft::NftTransferBasket::<T>::get(collection_id, item_id);
+ let limit_time = last_tx_block + limit.into();
+ if block_number <= limit_time {
+ sponsored = false;
+ }
+ }
+ if sponsored {
+ pallet_nft::NftTransferBasket::<T>::insert(collection_id, item_id, block_number);
+ }
+
+ sponsored
+ }
+ CollectionMode::Fungible(_) => {
+
+ // get correct limit
+ let limit: u32 = if collection_limits.sponsor_transfer_timeout > 0 {
+ collection_limits.sponsor_transfer_timeout
+ } else {
+ limits.fungible_sponsor_transfer_timeout
+ };
+
+ let block_number = <frame_system::Module<T>>::block_number() as T::BlockNumber;
+ let mut sponsored = true;
+ if pallet_nft::FungibleTransferBasket::<T>::contains_key(collection_id, who) {
+ let last_tx_block = pallet_nft::FungibleTransferBasket::<T>::get(collection_id, who);
+ let limit_time = last_tx_block + limit.into();
+ if block_number <= limit_time {
+ sponsored = false;
+ }
+ }
+ if sponsored {
+ pallet_nft::FungibleTransferBasket::<T>::insert(collection_id, who, block_number);
+ }
+
+ sponsored
+ }
+ CollectionMode::ReFungible => {
+
+ // get correct limit
+ let limit: u32 = if collection_limits.sponsor_transfer_timeout > 0 {
+ collection_limits.sponsor_transfer_timeout
+ } else {
+ limits.refungible_sponsor_transfer_timeout
+ };
+
+ let mut sponsored = true;
+ if pallet_nft::ReFungibleTransferBasket::<T>::contains_key(collection_id, item_id) {
+ let last_tx_block = pallet_nft::ReFungibleTransferBasket::<T>::get(collection_id, item_id);
+ let limit_time = last_tx_block + limit.into();
+ if block_number <= limit_time {
+ sponsored = false;
+ }
+ }
+ if sponsored {
+ pallet_nft::ReFungibleTransferBasket::<T>::insert(collection_id, item_id, block_number);
+ }
+
+ sponsored
+ }
+ _ => {
+ false
+ },
+ };
+ }
+
+ if !sponsor_transfer {
+ None
+ } else {
+ collection.sponsorship.sponsor()
+ .cloned()
+ }
+ }
+
+ pub fn withdraw_set_variable_meta_data(
+ who: &T::AccountId,
+ collection_id: &CollectionId,
+ item_id: &TokenId,
+ data: &Vec<u8>,
+ ) -> Option<T::AccountId> {
+
+ let mut sponsor_metadata_changes = false;
+
+ let collection = pallet_nft::CollectionById::<T>::get(collection_id)?;
+
+ if
+ collection.sponsorship.confirmed() &&
+ // Can't sponsor fungible collection, this tx will be rejected
+ // as invalid
+ !matches!(collection.mode, CollectionMode::Fungible(_)) &&
+ data.len() <= collection.limits.sponsored_data_size as usize
+ {
+ if let Some(rate_limit) = collection.limits.sponsored_data_rate_limit {
+ let block_number = <frame_system::Module<T>>::block_number() as T::BlockNumber;
+
+ if pallet_nft::VariableMetaDataBasket::<T>::get(collection_id, item_id)
+ .map(|last_block| block_number - last_block > rate_limit)
+ .unwrap_or(true)
+ {
+ sponsor_metadata_changes = true;
+ pallet_nft::VariableMetaDataBasket::<T>::insert(collection_id, item_id, block_number);
+ }
+ }
+ }
+
+ if !sponsor_metadata_changes {
+ None
+ } else {
+ collection.sponsorship.sponsor().cloned()
+ }
+
+ }
+
+ pub fn withdraw_contract_call(
+ who: &T::AccountId,
+ dest: &<T::Lookup as StaticLookup>::Source
+ ) -> Option<T::AccountId> {
+
+ let called_contract: T::AccountId = T::Lookup::lookup((dest).clone()).unwrap_or(T::AccountId::default());
+
+ let owned_contract = pallet_nft::ContractOwner::<T>::get(called_contract.clone()).as_ref() == Some(who);
+ let white_list_enabled = pallet_nft::ContractWhiteListEnabled::<T>::contains_key(called_contract.clone());
+
+ // ???
+ if !owned_contract && white_list_enabled {
+ if !pallet_nft::ContractWhiteList::<T>::contains_key(called_contract.clone(), who) {
+ return Some(who.clone())
+ // return Err(InvalidTransaction::Call.into());
+ }
+ }
+
+ let mut sponsor_transfer = false;
+ if pallet_nft::ContractSponsoringRateLimit::<T>::contains_key(called_contract.clone()) {
+ let last_tx_block = pallet_nft::ContractSponsorBasket::<T>::get((&called_contract, &who));
+ let block_number = <frame_system::Module<T>>::block_number() as T::BlockNumber;
+ let rate_limit = pallet_nft::ContractSponsoringRateLimit::<T>::get(&called_contract);
+ let limit_time = last_tx_block + rate_limit;
+
+ if block_number >= limit_time {
+ pallet_nft::ContractSponsorBasket::<T>::insert((called_contract.clone(), who.clone()), block_number);
+ sponsor_transfer = true;
+ }
+ } else {
+ sponsor_transfer = false;
+ }
+
+ if sponsor_transfer {
+ if pallet_nft::ContractSelfSponsoring::<T>::contains_key(called_contract.clone()) {
+ if pallet_nft::ContractSelfSponsoring::<T>::get(called_contract.clone()) {
+ return Some(called_contract);
+ }
+ }
+ }
+
+ None
+ }
+
+ pub fn withdraw_contract_instantiate(
+ who: &T::AccountId,
+ code_hash: &CodeHash<T>,
+ salt: &[u8],
+ ) -> Option<T::AccountId> where
+ T::AccountId: AsRef<[u8]>,
+ T::AccountId: UncheckedFrom<T::Hash>
+ {
+
+ let new_contract_address = <pallet_contracts::Module<T>>::contract_address(
+ &who,
+ code_hash,
+ salt,
+ );
+ pallet_nft::ContractOwner::<T>::insert(new_contract_address.clone(), who.clone());
+
+ None
+ }
+}
+
+// type BalanceOf<T> = <<T as pallet_transaction_payment::Config>::OnChargeTransaction as pallet_transaction_payment::OnChargeTransaction<T>>::Balance;
+
+// /// Require the transactor pay for themselves and maybe include a tip to gain additional priority
+// /// in the queue.
+// #[derive(Encode, Decode, Clone, Eq, PartialEq)]
+// pub struct ChargeTransactionPayment<T: Config>(#[codec(compact)] BalanceOf<T>);
+
+// impl<T: Config + Send + Sync> sp_std::fmt::Debug
+// for ChargeTransactionPayment<T>
+// {
+// #[cfg(feature = "std")]
+// fn fmt(&self, f: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result {
+// write!(f, "ChargeTransactionPayment<{:?}>", self.0)
+// }
+// #[cfg(not(feature = "std"))]
+// fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result {
+// Ok(())
+// }
+// }
+
+// impl<T: Config> ChargeTransactionPayment<T>
+// where
+// T::Call: Dispatchable<Info=DispatchInfo, PostInfo=PostDispatchInfo> + IsSubType<pallet_nft::Call<T>> + IsSubType<pallet_contracts::Call<T>>,
+// BalanceOf<T>: Send + Sync + From<u64> + FixedPointOperand,
+// T::AccountId: AsRef<[u8]>,
+// T::AccountId: UncheckedFrom<T::Hash>,
+// {
+// fn traditional_fee(
+// len: usize,
+// info: &DispatchInfoOf<T::Call>,
+// tip: BalanceOf<T>,
+// ) -> BalanceOf<T>
+// where
+// T::Call: Dispatchable<Info = DispatchInfo>,
+// {
+// <pallet_transaction_payment::Module<T>>::compute_fee(len as u32, info, tip)
+// }
+
+// fn get_priority(len: usize, info: &DispatchInfoOf<T::Call>, final_fee: BalanceOf<T>) -> TransactionPriority {
+// let weight_saturation = T::BlockWeights::get().max_block / info.weight.max(1);
+// let max_block_length = *T::BlockLength::get().max.get(DispatchClass::Normal);
+// let len_saturation = max_block_length as u64 / (len as u64).max(1);
+// let coefficient: BalanceOf<T> = weight_saturation
+// .min(len_saturation)
+// .saturated_into::<BalanceOf<T>>();
+// final_fee
+// .saturating_mul(coefficient)
+// .saturated_into::<TransactionPriority>()
+// }
+
+// fn withdraw_fee(
+// &self,
+// who: &T::AccountId,
+// call: &T::Call,
+// info: &DispatchInfoOf<T::Call>,
+// len: usize,
+// ) -> Result<
+// (
+// BalanceOf<T>,
+// <<T as pallet_transaction_payment::Config>::OnChargeTransaction as pallet_transaction_payment::OnChargeTransaction<T>>::LiquidityInfo,
+// ),
+// TransactionValidityError,
+// > {
+// let tip = self.0;
+
+// let fee = Self::traditional_fee(len, info, tip);
+
+// // Only mess with balances if fee is not zero.
+// if fee.is_zero() {
+// return <<T as pallet_transaction_payment::Config>::OnChargeTransaction as pallet_transaction_payment::OnChargeTransaction<T>>::withdraw_fee(who, call, info, fee, tip)
+// .map(|i| (fee, i));
+// }
+
+// // Determine who is paying transaction fee based on ecnomic model
+// // Parse call to extract collection ID and access collection sponsor
+
+// let sponsor = pallet_nft_transaction_payment::<T>::withdraw_type(who, call);
+// //let sponsor = Self::Module::<T>::withdraw_type(who, call);;
+// // <pallet_nft_transaction_payment::Module<T>>::withdraw_type(who, call);
+
+// let who_pays_fee = sponsor.unwrap_or_else(|| who.clone());
+
+// <<T as pallet_transaction_payment::Config>::OnChargeTransaction as pallet_transaction_payment::OnChargeTransaction<T>>::withdraw_fee(&who_pays_fee, call, info, fee, tip)
+// .map(|i| (fee, i))
+// }
+// }
+
+
+// impl<T: Config + Send + Sync> SignedExtension
+// for ChargeTransactionPayment<T>
+// where
+// BalanceOf<T>: Send + Sync + From<u64> + FixedPointOperand,
+// T::Call: Dispatchable<Info=DispatchInfo, PostInfo=PostDispatchInfo> + IsSubType<pallet_nft::Call<T>> + IsSubType<pallet_contracts::Call<T>>,
+// T::AccountId: AsRef<[u8]>,
+// T::AccountId: UncheckedFrom<T::Hash>,
+// {
+// const IDENTIFIER: &'static str = "ChargeTransactionPayment";
+// type AccountId = T::AccountId;
+// type Call = T::Call;
+// type AdditionalSigned = ();
+// type Pre = (
+// // tip
+// BalanceOf<T>,
+// // who pays fee
+// Self::AccountId,
+// // imbalance resulting from withdrawing the fee
+// <<T as pallet_transaction_payment::Config>::OnChargeTransaction as pallet_transaction_payment::OnChargeTransaction<T>>::LiquidityInfo,
+// );
+// fn additional_signed(&self) -> sp_std::result::Result<(), TransactionValidityError> {
+// Ok(())
+// }
+
+// fn validate(
+// &self,
+// who: &Self::AccountId,
+// call: &Self::Call,
+// info: &DispatchInfoOf<Self::Call>,
+// len: usize,
+// ) -> TransactionValidity {
+// let (fee, _) = self.withdraw_fee(who, call, info, len)?;
+// Ok(ValidTransaction {
+// priority: Self::get_priority(len, info, fee),
+// ..Default::default()
+// })
+// }
+
+// fn pre_dispatch(
+// self,
+// who: &Self::AccountId,
+// call: &Self::Call,
+// info: &DispatchInfoOf<Self::Call>,
+// len: usize,
+// ) -> Result<Self::Pre, TransactionValidityError> {
+// let (_fee, imbalance) = self.withdraw_fee(who, call, info, len)?;
+// Ok((self.0, who.clone(), imbalance))
+// }
+
+// fn post_dispatch(
+// pre: Self::Pre,
+// info: &DispatchInfoOf<Self::Call>,
+// post_info: &PostDispatchInfoOf<Self::Call>,
+// len: usize,
+// _result: &DispatchResult,
+// ) -> Result<(), TransactionValidityError> {
+// let (tip, who, imbalance) = pre;
+// let actual_fee = pallet_transaction_payment::Module::<T>::compute_actual_fee(
+// len as u32,
+// info,
+// post_info,
+// tip,
+// );
+// <T as pallet_transaction_payment::Config>::OnChargeTransaction::correct_and_deposit_fee(&who, info, post_info, actual_fee, tip, imbalance)?;
+// Ok(())
+// }
+// }
\ No newline at end of file
pallets/nft-transaction-payment/src/tests.rsdiffbeforeafterboth--- /dev/null
+++ b/pallets/nft-transaction-payment/src/tests.rs
@@ -0,0 +1,241 @@
+#[cfg(test)]
+mod tests {
+ use crate as pallet_inflation;
+
+ use frame_system;
+ use frame_support::{traits::{Currency}, parameter_types};
+ use frame_support::{traits::OnInitialize};
+ use sp_core::H256;
+ use sp_runtime::{traits::{BlakeTwo256, IdentityLookup}, testing::Header};
+
+ type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic<Test>;
+ type Block = frame_system::mocking::MockBlock<Test>;
+
+ const YEAR: u64 = 5_259_600;
+
+ parameter_types! {
+ pub const ExistentialDeposit: u64 = 1;
+ pub const MaxLocks: u32 = 50;
+ }
+
+ impl pallet_balances::Config for Test {
+ type AccountStore = System;
+ type Balance = u64;
+ type DustRemoval = ();
+ type Event = ();
+ type ExistentialDeposit = ExistentialDeposit;
+ type WeightInfo = ();
+ type MaxLocks = MaxLocks;
+ }
+
+ frame_support::construct_runtime!(
+ pub enum Test where
+ Block = Block,
+ NodeBlock = Block,
+ UncheckedExtrinsic = UncheckedExtrinsic,
+ {
+ Balances: pallet_balances::{Module, Call, Storage},
+ System: frame_system::{Module, Call, Config, Storage, Event<T>},
+ Inflation: pallet_inflation::{Module, Call, Storage},
+ }
+ );
+
+ parameter_types! {
+ pub const BlockHashCount: u64 = 250;
+ pub BlockWeights: frame_system::limits::BlockWeights =
+ frame_system::limits::BlockWeights::simple_max(1024);
+ pub const SS58Prefix: u8 = 42;
+ }
+
+ impl frame_system::Config for Test {
+ type BaseCallFilter = ();
+ type BlockWeights = ();
+ type BlockLength = ();
+ type DbWeight = ();
+ type Origin = Origin;
+ type Call = Call;
+ type Index = u64;
+ type BlockNumber = u64;
+ type Hash = H256;
+ type Hashing = BlakeTwo256;
+ type AccountId = u64;
+ type Lookup = IdentityLookup<Self::AccountId>;
+ type Header = Header;
+ type Event = ();
+ type BlockHashCount = BlockHashCount;
+ type Version = ();
+ type PalletInfo = PalletInfo;
+ type AccountData = pallet_balances::AccountData<u64>;
+ type OnNewAccount = ();
+ type OnKilledAccount = ();
+ type SystemWeightInfo = ();
+ type SS58Prefix = SS58Prefix;
+ }
+
+ parameter_types! {
+ pub TreasuryAccountId: u64 = 1234;
+ pub const InflationBlockInterval: u32 = 100; // every time per how many blocks inflation is applied
+ }
+
+ impl pallet_inflation::Config for Test {
+ type Currency = Balances;
+ type TreasuryAccountId = TreasuryAccountId;
+ type InflationBlockInterval = InflationBlockInterval;
+ }
+
+ // Build genesis storage according to the mock runtime.
+ pub fn new_test_ext() -> sp_io::TestExternalities {
+ frame_system::GenesisConfig::default().build_storage::<Test>().unwrap().into()
+ }
+
+ #[test]
+ fn inflation_works() {
+ new_test_ext().execute_with(|| {
+ // Total issuance = 1_000_000_000
+ let initial_issuance: u64 = 1_000_000_000;
+ let _ = <Balances as Currency<_>>::deposit_creating(&1234, initial_issuance);
+ assert_eq!(Balances::free_balance(1234), initial_issuance);
+
+ // BlockInflation should be set after 1st block and
+ // first inflation deposit should be equal to BlockInflation
+ Inflation::on_initialize(1);
+ assert!(Inflation::block_inflation() > 0);
+ assert_eq!(Balances::free_balance(1234) - initial_issuance, Inflation::block_inflation());
+ });
+ }
+
+ #[test]
+ fn inflation_second_deposit() {
+ new_test_ext().execute_with(|| {
+ // Total issuance = 1_000_000_000
+ let initial_issuance: u64 = 1_000_000_000;
+ let _ = <Balances as Currency<_>>::deposit_creating(&1234, initial_issuance);
+ assert_eq!(Balances::free_balance(1234), initial_issuance);
+ Inflation::on_initialize(1);
+
+ // Next inflation deposit happens when block is multiple of InflationBlockInterval
+ let mut block: u32 = 2;
+ let balance_before: u64 = Balances::free_balance(1234);
+ while block % InflationBlockInterval::get() != 0 {
+ Inflation::on_initialize(block as u64);
+ block += 1;
+ }
+ let balance_just_before: u64 = Balances::free_balance(1234);
+ assert_eq!(balance_before, balance_just_before);
+
+ // The block with inflation
+ Inflation::on_initialize(block as u64);
+ let balance_after: u64 = Balances::free_balance(1234);
+ assert_eq!(balance_after - balance_just_before, Inflation::block_inflation());
+ });
+ }
+
+ #[test]
+ fn inflation_in_1_year() {
+ new_test_ext().execute_with(|| {
+ // Total issuance = 1_000_000_000
+ let initial_issuance: u64 = 1_000_000_000;
+ let _ = <Balances as Currency<_>>::deposit_creating(&1234, initial_issuance);
+ assert_eq!(Balances::free_balance(1234), initial_issuance);
+ Inflation::on_initialize(1);
+ let block_inflation_year_0 = Inflation::block_inflation();
+
+ Inflation::on_initialize(YEAR);
+ let block_inflation_year_1 = Inflation::block_inflation();
+
+ // Assert that year 1 inflation is less than year 0
+ assert!(block_inflation_year_0 > block_inflation_year_1);
+ });
+ }
+
+ #[test]
+ fn inflation_in_1_to_9_years() {
+ new_test_ext().execute_with(|| {
+ // Total issuance = 1_000_000_000
+ let initial_issuance: u64 = 1_000_000_000;
+ let _ = <Balances as Currency<_>>::deposit_creating(&1234, initial_issuance);
+ assert_eq!(Balances::free_balance(1234), initial_issuance);
+ Inflation::on_initialize(1);
+
+ for year in 1..=9 {
+ let block_inflation_year_before = Inflation::block_inflation();
+ Inflation::on_initialize(YEAR * year);
+ let block_inflation_year_after = Inflation::block_inflation();
+
+ // Assert that next year inflation is less than previous year inflation
+ assert!(block_inflation_year_before > block_inflation_year_after);
+ }
+
+ });
+ }
+
+ #[test]
+ fn inflation_after_year_10_is_flat() {
+ new_test_ext().execute_with(|| {
+ // Total issuance = 1_000_000_000
+ let initial_issuance: u64 = 1_000_000_000;
+ let _ = <Balances as Currency<_>>::deposit_creating(&1234, initial_issuance);
+ assert_eq!(Balances::free_balance(1234), initial_issuance);
+ Inflation::on_initialize(YEAR * 9);
+
+ for year in 10..=20 {
+ let block_inflation_year_before = Inflation::block_inflation();
+ Inflation::on_initialize(YEAR * year);
+ let block_inflation_year_after = Inflation::block_inflation();
+
+ // Assert that next year inflation is equal to previous year inflation
+ assert_eq!(block_inflation_year_before, block_inflation_year_after);
+ }
+ });
+ }
+
+ #[test]
+ fn inflation_rate_by_year() {
+ new_test_ext().execute_with(|| {
+ let payouts: u64 = YEAR / InflationBlockInterval::get() as u64;
+
+ // Inflation starts at 10% and does down by 2/3% every year until year 9 (included),
+ // then it is flat.
+ let payout_by_year: [u64; 11] = [
+ 1000,
+ 933,
+ 867,
+ 800,
+ 733,
+ 667,
+ 600,
+ 533,
+ 467,
+ 400,
+ 400
+ ];
+
+ // For accuracy total issuance = payout0 * payouts * 10;
+ let initial_issuance: u64 = payout_by_year[0] * payouts * 10;
+ let _ = <Balances as Currency<_>>::deposit_creating(&1234, initial_issuance);
+ assert_eq!(Balances::free_balance(1234), initial_issuance);
+
+ for year in 0..=10 {
+ // Year first block
+ Inflation::on_initialize(year*YEAR);
+ let mut actual_payout = Inflation::block_inflation();
+ assert_eq!(actual_payout, payout_by_year[year as usize]);
+
+ // Year second block
+ Inflation::on_initialize(year*YEAR+1);
+ actual_payout = Inflation::block_inflation();
+ assert_eq!(actual_payout, payout_by_year[year as usize]);
+
+ // Year middle block
+ Inflation::on_initialize(year*YEAR + YEAR/2);
+ actual_payout = Inflation::block_inflation();
+ assert_eq!(actual_payout, payout_by_year[year as usize]);
+
+ // Year last block
+ Inflation::on_initialize((year + 1)*YEAR-1);
+ actual_payout = Inflation::block_inflation();
+ assert_eq!(actual_payout, payout_by_year[year as usize]);
+ }
+ });
+ }
+}
pallets/nft/Cargo.tomldiffbeforeafterboth--- a/pallets/nft/Cargo.toml
+++ b/pallets/nft/Cargo.toml
@@ -32,6 +32,8 @@
sp-runtime = { default-features = false, version = '3.0.0' }
pallet-contracts = { default-features = false, version = '3.0.0' }
pallet-transaction-payment = { default-features = false, version = "3.0.0" }
+nft-data-structs = { default-features = false, path="../../primitives" }
+
[features]
default = ['std']
@@ -45,6 +47,7 @@
'pallet-contracts/std',
'pallet-randomness-collective-flip/std',
'pallet-transaction-payment/std',
+ 'nft-data-structs/std',
'sp-std/std',
'sp-runtime/std',
'frame-benchmarking/std',
pallets/nft/src/lib.rsdiffbeforeafterboth--- a/pallets/nft/src/lib.rs
+++ b/pallets/nft/src/lib.rs
@@ -13,8 +13,6 @@
#[cfg(feature = "std")]
pub use serde::*;
-use core::ops::{Deref, DerefMut};
-use codec::{Decode, Encode};
pub use frame_support::{
construct_runtime, decl_event, decl_module, decl_storage, decl_error,
dispatch::DispatchResult,
@@ -34,18 +32,13 @@
use frame_system::{self as system, ensure_signed, ensure_root};
use sp_runtime::sp_std::prelude::Vec;
-use sp_runtime::{
- traits::{
- Hash, DispatchInfoOf, Dispatchable, PostDispatchInfoOf, Saturating, SaturatedConversion, SignedExtension, Zero,
- },
- transaction_validity::{
- TransactionPriority, InvalidTransaction, TransactionValidity, TransactionValidityError, ValidTransaction,
- },
- FixedPointOperand, FixedU128,
+use nft_data_structs::{
+ MAX_DECIMAL_POINTS, MAX_SPONSOR_TIMEOUT, MAX_TOKEN_OWNERSHIP, MAX_REFUNGIBLE_PIECES,
+ AccessMode, ChainLimits, Collection, CreateItemData, CollectionLimits,
+ CollectionId, CollectionMode, CollectionHandle, TokenId,
+ SchemaVersion, SponsorshipState, Ownership,
+ NftItemType, FungibleItemType, ReFungibleItemType
};
-use sp_runtime::traits::StaticLookup;
-use pallet_contracts::chain_extension::UncheckedFrom;
-use pallet_transaction_payment::OnChargeTransaction;
#[cfg(test)]
mod mock;
@@ -54,233 +47,9 @@
mod tests;
mod default_weights;
-
-pub const MAX_DECIMAL_POINTS: DecimalPoints = 30;
-pub const MAX_REFUNGIBLE_PIECES: u128 = 1_000_000_000_000_000_000_000;
-pub const MAX_SPONSOR_TIMEOUT: u32 = 10_368_000;
-pub const MAX_TOKEN_OWNERSHIP: u32 = 10_000_000;
-
-// Structs
-// #region
-
-pub type CollectionId = u32;
-pub type TokenId = u32;
-pub type DecimalPoints = u8;
-
-#[derive(Encode, Decode, Eq, Debug, Clone, PartialEq)]
-#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
-pub enum CollectionMode {
- Invalid,
- NFT,
- // decimal points
- Fungible(DecimalPoints),
- ReFungible,
-}
-
-impl Default for CollectionMode {
- fn default() -> Self {
- Self::Invalid
- }
-}
-impl Into<u8> for CollectionMode {
- fn into(self) -> u8 {
- match self {
- CollectionMode::Invalid => 0,
- CollectionMode::NFT => 1,
- CollectionMode::Fungible(_) => 2,
- CollectionMode::ReFungible => 3,
- }
- }
-}
-
-#[derive(Encode, Decode, Eq, Debug, Clone, PartialEq)]
-#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
-pub enum AccessMode {
- Normal,
- WhiteList,
-}
-impl Default for AccessMode {
- fn default() -> Self {
- Self::Normal
- }
-}
-
-#[derive(Encode, Decode, Eq, Debug, Clone, PartialEq)]
-#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
-pub enum SchemaVersion {
- ImageURL,
- Unique,
-}
-impl Default for SchemaVersion {
- fn default() -> Self {
- Self::ImageURL
- }
-}
-
-#[derive(Encode, Decode, Default, Debug, Clone, PartialEq)]
-#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
-pub struct Ownership<AccountId> {
- pub owner: AccountId,
- pub fraction: u128,
-}
-
-#[derive(Encode, Decode, Debug, Clone, PartialEq)]
-#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
-pub enum SponsorshipState<AccountId> {
- /// The fees are applied to the transaction sender
- Disabled,
- Unconfirmed(AccountId),
- /// Transactions are sponsored by specified account
- Confirmed(AccountId),
-}
-
-impl<AccountId> SponsorshipState<AccountId> {
- fn sponsor(&self) -> Option<&AccountId> {
- match self {
- Self::Confirmed(sponsor) => Some(sponsor),
- _ => None,
- }
- }
-
- fn pending_sponsor(&self) -> Option<&AccountId> {
- match self {
- Self::Unconfirmed(sponsor) | Self::Confirmed(sponsor) => Some(sponsor),
- _ => None,
- }
- }
-
- fn confirmed(&self) -> bool {
- matches!(self, Self::Confirmed(_))
- }
-}
-
-impl<T> Default for SponsorshipState<T> {
- fn default() -> Self {
- Self::Disabled
- }
-}
-
-#[derive(Encode, Decode, Clone, PartialEq)]
-#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
-pub struct Collection<T: Config> {
- pub owner: T::AccountId,
- pub mode: CollectionMode,
- pub access: AccessMode,
- pub decimal_points: DecimalPoints,
- pub name: Vec<u16>, // 64 include null escape char
- pub description: Vec<u16>, // 256 include null escape char
- pub token_prefix: Vec<u8>, // 16 include null escape char
- pub mint_mode: bool,
- pub offchain_schema: Vec<u8>,
- pub schema_version: SchemaVersion,
- pub sponsorship: SponsorshipState<T::AccountId>,
- pub limits: CollectionLimits<T::BlockNumber>, // Collection private restrictions
- pub variable_on_chain_schema: Vec<u8>, //
- pub const_on_chain_schema: Vec<u8>, //
-}
-
-pub struct CollectionHandle<T: Config> {
- pub id: CollectionId,
- collection: Collection<T>,
-}
-
-impl<T: Config> Deref for CollectionHandle<T> {
- type Target = Collection<T>;
-
- fn deref(&self) -> &Self::Target {
- &self.collection
- }
-}
-
-impl<T: Config> DerefMut for CollectionHandle<T> {
- fn deref_mut(&mut self) -> &mut Self::Target {
- &mut self.collection
- }
-}
-
-#[derive(Encode, Decode, Debug, Clone, PartialEq)]
-#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
-pub struct NftItemType<AccountId> {
- pub owner: AccountId,
- pub const_data: Vec<u8>,
- pub variable_data: Vec<u8>,
-}
-
-#[derive(Encode, Decode, Default, Debug, Clone, PartialEq)]
-#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
-pub struct FungibleItemType {
- pub value: u128,
-}
-
-#[derive(Encode, Decode, Debug, Clone, PartialEq)]
-#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
-pub struct ReFungibleItemType<AccountId> {
- pub owner: Vec<Ownership<AccountId>>,
- pub const_data: Vec<u8>,
- pub variable_data: Vec<u8>,
-}
-
-// #[derive(Encode, Decode, Default, Debug, Clone, PartialEq)]
-// #[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
-// pub struct VestingItem<AccountId, Moment> {
-// pub sender: AccountId,
-// pub recipient: AccountId,
-// pub collection_id: CollectionId,
-// pub item_id: TokenId,
-// pub amount: u64,
-// pub vesting_date: Moment,
-// }
-
-#[derive(Encode, Decode, Debug, Clone, PartialEq)]
-#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
-pub struct CollectionLimits<BlockNumber: Encode + Decode> {
- pub account_token_ownership_limit: u32,
- pub sponsored_data_size: u32,
- /// None - setVariableMetadata is not sponsored
- /// Some(v) - setVariableMetadata is sponsored
- /// if there is v block between txs
- pub sponsored_data_rate_limit: Option<BlockNumber>,
- pub token_limit: u32,
-
- // Timeouts for item types in passed blocks
- pub sponsor_transfer_timeout: u32,
- pub owner_can_transfer: bool,
- pub owner_can_destroy: bool,
-}
-
-impl<BlockNumber: Encode + Decode> Default for CollectionLimits<BlockNumber> {
- fn default() -> Self {
- Self {
- account_token_ownership_limit: 10_000_000,
- token_limit: u32::max_value(),
- sponsored_data_size: u32::MAX,
- sponsored_data_rate_limit: None,
- sponsor_transfer_timeout: 14400,
- owner_can_transfer: true,
- owner_can_destroy: true
- }
- }
-}
-
-#[derive(Encode, Decode, Default, Debug, Clone, PartialEq)]
-#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
-pub struct ChainLimits {
- pub collection_numbers_limit: u32,
- pub account_token_ownership_limit: u32,
- pub collections_admins_limit: u64,
- pub custom_data_limit: u32,
-
- // Timeouts for item types in passed blocks
- pub nft_sponsor_transfer_timeout: u32,
- pub fungible_sponsor_transfer_timeout: u32,
- pub refungible_sponsor_transfer_timeout: u32,
-
- // Schema limits
- pub offchain_schema_limit: u32,
- pub variable_on_chain_schema_limit: u32,
- pub const_on_chain_schema_limit: u32,
-}
+#[cfg(feature = "runtime-benchmarks")]
+mod benchmarking;
pub trait WeightInfo {
fn create_collection() -> Weight;
@@ -315,66 +84,6 @@
fn set_collection_limits() -> Weight;
}
-#[derive(Encode, Decode, Default, Debug, Clone, PartialEq)]
-#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
-pub struct CreateNftData {
- pub const_data: Vec<u8>,
- pub variable_data: Vec<u8>,
-}
-
-#[derive(Encode, Decode, Default, Debug, Clone, PartialEq)]
-#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
-pub struct CreateFungibleData {
- pub value: u128,
-}
-
-#[derive(Encode, Decode, Default, Debug, Clone, PartialEq)]
-#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
-pub struct CreateReFungibleData {
- pub const_data: Vec<u8>,
- pub variable_data: Vec<u8>,
- pub pieces: u128,
-}
-
-#[derive(Encode, Decode, Debug, Clone, PartialEq)]
-#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
-pub enum CreateItemData {
- NFT(CreateNftData),
- Fungible(CreateFungibleData),
- ReFungible(CreateReFungibleData),
-}
-
-impl CreateItemData {
- pub fn len(&self) -> usize {
- let len = match self {
- CreateItemData::NFT(data) => data.variable_data.len() + data.const_data.len(),
- CreateItemData::ReFungible(data) => data.variable_data.len() + data.const_data.len(),
- _ => 0
- };
-
- return len;
- }
-}
-
-impl From<CreateNftData> for CreateItemData {
- fn from(item: CreateNftData) -> Self {
- CreateItemData::NFT(item)
- }
-}
-
-impl From<CreateReFungibleData> for CreateItemData {
- fn from(item: CreateReFungibleData) -> Self {
- CreateItemData::ReFungible(item)
- }
-}
-
-impl From<CreateFungibleData> for CreateItemData {
- fn from(item: CreateFungibleData) -> Self {
- CreateItemData::Fungible(item)
- }
-}
-
-
decl_error! {
/// Error for non-fungible-token module.
pub enum Error for Module<T: Config> {
@@ -455,7 +164,10 @@
}
}
-pub trait Config: system::Config + Sized + pallet_transaction_payment::Config + pallet_contracts::Config {
+// + pallet_transaction_payment::Config + pallet_nft_transaction_payment::Config + pallet_contracts::Config
+
+
+pub trait Config: system::Config + Sized {
type Event: From<Event<Self>> + Into<<Self as system::Config>::Event>;
/// Weight information for extrinsics in this pallet.
@@ -466,11 +178,6 @@
type TreasuryAccountId: Get<Self::AccountId>;
}
-#[cfg(feature = "runtime-benchmarks")]
-mod benchmarking;
-
-// #endregion
-
// # Used definitions
//
// ## User control levels
@@ -677,7 +384,7 @@
fn deposit_event() = default;
type Error = Error<T>;
- fn on_initialize(now: T::BlockNumber) -> Weight {
+ fn on_initialize(_now: T::BlockNumber) -> Weight {
0
}
@@ -2483,404 +2190,7 @@
fn ensure_contract_owned(account: T::AccountId, contract: &T::AccountId) -> DispatchResult {
ensure!(<ContractOwner<T>>::get(contract) == Some(account), Error::<T>::NoPermission);
-
- Ok(())
- }
-}
-
-////////////////////////////////////////////////////////////////////////////////////////////////////
-// Economic models
-// #region
-
-/// Fee multiplier.
-pub type Multiplier = FixedU128;
-
-type BalanceOf<T> = <<T as pallet_transaction_payment::Config>::OnChargeTransaction as pallet_transaction_payment::OnChargeTransaction<T>>::Balance;
-
-/// Require the transactor pay for themselves and maybe include a tip to gain additional priority
-/// in the queue.
-#[derive(Encode, Decode, Clone, Eq, PartialEq)]
-pub struct ChargeTransactionPayment<T: Config>(#[codec(compact)] BalanceOf<T>);
-
-impl<T: Config + Send + Sync> sp_std::fmt::Debug
- for ChargeTransactionPayment<T>
-{
- #[cfg(feature = "std")]
- fn fmt(&self, f: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result {
- write!(f, "ChargeTransactionPayment<{:?}>", self.0)
- }
- #[cfg(not(feature = "std"))]
- fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result {
- Ok(())
- }
-}
-
-impl<T: Config> ChargeTransactionPayment<T>
-where
- T::Call: Dispatchable<Info=DispatchInfo, PostInfo=PostDispatchInfo> + IsSubType<Call<T>> + IsSubType<pallet_contracts::Call<T>>,
- BalanceOf<T>: Send + Sync + From<u64> + FixedPointOperand,
- T::AccountId: AsRef<[u8]>,
- T::AccountId: UncheckedFrom<T::Hash>,
-{
- fn traditional_fee(
- len: usize,
- info: &DispatchInfoOf<T::Call>,
- tip: BalanceOf<T>,
- ) -> BalanceOf<T>
- where
- T::Call: Dispatchable<Info = DispatchInfo>,
- {
- <pallet_transaction_payment::Module<T>>::compute_fee(len as u32, info, tip)
- }
-
- fn get_priority(len: usize, info: &DispatchInfoOf<T::Call>, final_fee: BalanceOf<T>) -> TransactionPriority {
- let weight_saturation = T::BlockWeights::get().max_block / info.weight.max(1);
- let max_block_length = *T::BlockLength::get().max.get(DispatchClass::Normal);
- let len_saturation = max_block_length as u64 / (len as u64).max(1);
- let coefficient: BalanceOf<T> = weight_saturation
- .min(len_saturation)
- .saturated_into::<BalanceOf<T>>();
- final_fee
- .saturating_mul(coefficient)
- .saturated_into::<TransactionPriority>()
- }
-
- fn withdraw_fee(
- &self,
- who: &T::AccountId,
- call: &T::Call,
- info: &DispatchInfoOf<T::Call>,
- len: usize,
- ) -> Result<
- (
- BalanceOf<T>,
- <<T as pallet_transaction_payment::Config>::OnChargeTransaction as pallet_transaction_payment::OnChargeTransaction<T>>::LiquidityInfo,
- ),
- TransactionValidityError,
- > {
- let tip = self.0;
-
- let fee = Self::traditional_fee(len, info, tip);
-
- // Only mess with balances if fee is not zero.
- if fee.is_zero() {
- return <<T as pallet_transaction_payment::Config>::OnChargeTransaction as pallet_transaction_payment::OnChargeTransaction<T>>::withdraw_fee(who, call, info, fee, tip)
- .map(|i| (fee, i));
- }
-
- // Determine who is paying transaction fee based on ecnomic model
- // Parse call to extract collection ID and access collection sponsor
- let mut sponsor: Option<T::AccountId> = (|| match IsSubType::<Call<T>>::is_sub_type(call) {
- Some(Call::create_item(collection_id, _owner, _properties)) => {
- let collection = <CollectionById<T>>::get(collection_id)?;
-
- // sponsor timeout
- let block_number = <system::Module<T>>::block_number() as T::BlockNumber;
-
- let limit = collection.limits.sponsor_transfer_timeout;
- if <CreateItemBasket<T>>::contains_key((collection_id, &who)) {
- let last_tx_block = <CreateItemBasket<T>>::get((collection_id, &who));
- let limit_time = last_tx_block + limit.into();
- if block_number <= limit_time {
- return None;
- }
- }
- <CreateItemBasket<T>>::insert((collection_id, who.clone()), block_number);
-
- // check free create limit
- if collection.limits.sponsored_data_size >= (_properties.len() as u32) {
- collection.sponsorship.sponsor()
- .cloned()
- } else {
- None
- }
- }
- Some(Call::transfer(_new_owner, collection_id, item_id, _value)) => {
- let collection = <CollectionById<T>>::get(collection_id)?;
-
- let mut sponsor_transfer = false;
- if collection.sponsorship.confirmed() {
-
- let collection_limits = collection.limits;
- let collection_mode = collection.mode;
-
- // sponsor timeout
- let block_number = <system::Module<T>>::block_number() as T::BlockNumber;
- sponsor_transfer = match collection_mode {
- CollectionMode::NFT => {
-
- // get correct limit
- let limit: u32 = if collection_limits.sponsor_transfer_timeout > 0 {
- collection_limits.sponsor_transfer_timeout
- } else {
- ChainLimit::get().nft_sponsor_transfer_timeout
- };
-
- let mut sponsored = true;
- if <NftTransferBasket<T>>::contains_key(collection_id, item_id) {
- let last_tx_block = <NftTransferBasket<T>>::get(collection_id, item_id);
- let limit_time = last_tx_block + limit.into();
- if block_number <= limit_time {
- sponsored = false;
- }
- }
- if sponsored {
- <NftTransferBasket<T>>::insert(collection_id, item_id, block_number);
- }
-
- sponsored
- }
- CollectionMode::Fungible(_) => {
-
- // get correct limit
- let limit: u32 = if collection_limits.sponsor_transfer_timeout > 0 {
- collection_limits.sponsor_transfer_timeout
- } else {
- ChainLimit::get().fungible_sponsor_transfer_timeout
- };
-
- let block_number = <system::Module<T>>::block_number() as T::BlockNumber;
- let mut sponsored = true;
- if <FungibleTransferBasket<T>>::contains_key(collection_id, who) {
- let last_tx_block = <FungibleTransferBasket<T>>::get(collection_id, who);
- let limit_time = last_tx_block + limit.into();
- if block_number <= limit_time {
- sponsored = false;
- }
- }
- if sponsored {
- <FungibleTransferBasket<T>>::insert(collection_id, who, block_number);
- }
-
- sponsored
- }
- CollectionMode::ReFungible => {
-
- // get correct limit
- let limit: u32 = if collection_limits.sponsor_transfer_timeout > 0 {
- collection_limits.sponsor_transfer_timeout
- } else {
- ChainLimit::get().refungible_sponsor_transfer_timeout
- };
-
- let mut sponsored = true;
- if <ReFungibleTransferBasket<T>>::contains_key(collection_id, item_id) {
- let last_tx_block = <ReFungibleTransferBasket<T>>::get(collection_id, item_id);
- let limit_time = last_tx_block + limit.into();
- if block_number <= limit_time {
- sponsored = false;
- }
- }
- if sponsored {
- <ReFungibleTransferBasket<T>>::insert(collection_id, item_id, block_number);
- }
-
- sponsored
- }
- _ => {
- false
- },
- };
- }
-
- if !sponsor_transfer {
- None
- } else {
- collection.sponsorship.sponsor()
- .cloned()
- }
- }
-
- Some(Call::set_variable_meta_data(collection_id, item_id, data)) => {
- let mut sponsor_metadata_changes = false;
-
- let collection = <CollectionById<T>>::get(collection_id)?;
-
- if
- collection.sponsorship.confirmed() &&
- // Can't sponsor fungible collection, this tx will be rejected
- // as invalid
- !matches!(collection.mode, CollectionMode::Fungible(_)) &&
- data.len() <= collection.limits.sponsored_data_size as usize
- {
- if let Some(rate_limit) = collection.limits.sponsored_data_rate_limit {
- let block_number = <system::Module<T>>::block_number() as T::BlockNumber;
-
- if <VariableMetaDataBasket<T>>::get(collection_id, item_id)
- .map(|last_block| block_number - last_block > rate_limit)
- .unwrap_or(true)
- {
- sponsor_metadata_changes = true;
- <VariableMetaDataBasket<T>>::insert(collection_id, item_id, block_number);
- }
- }
- }
-
- if !sponsor_metadata_changes {
- None
- } else {
- collection.sponsorship.sponsor().cloned()
- }
- }
-
- _ => None,
- })();
-
- match IsSubType::<pallet_contracts::Call<T>>::is_sub_type(call) {
- Some(pallet_contracts::Call::call(dest, _value, _gas_limit, _data)) => {
-
- let called_contract: T::AccountId = T::Lookup::lookup((*dest).clone()).unwrap_or(T::AccountId::default());
-
- let owned_contract = <ContractOwner<T>>::get(called_contract.clone()).as_ref() == Some(who);
- let white_list_enabled = <ContractWhiteListEnabled<T>>::contains_key(called_contract.clone());
-
- if !owned_contract && white_list_enabled {
- if !<ContractWhiteList<T>>::contains_key(called_contract.clone(), who) {
- return Err(InvalidTransaction::Call.into());
- }
- }
- },
- _ => {},
- }
-
- // Sponsor smart contracts
- sponsor = sponsor.or_else(|| match IsSubType::<pallet_contracts::Call<T>>::is_sub_type(call) {
-
- // On instantiation: set the contract owner
- Some(pallet_contracts::Call::instantiate(_endowment, _gas_limit, code_hash, _data, salt)) => {
-
- let new_contract_address = <pallet_contracts::Module<T>>::contract_address(
- &who,
- code_hash,
- salt,
- );
- <ContractOwner<T>>::insert(new_contract_address.clone(), who.clone());
-
- None
- },
-
- // On instantiation with code: set the contract owner
- Some(pallet_contracts::Call::instantiate_with_code(_endowment, _gas_limit, _code, _data, _salt)) => {
-
- let new_contract_address = <pallet_contracts::Module<T>>::contract_address(
- &who,
- &T::Hashing::hash(&_code),
- _salt,
- );
-
- <ContractOwner<T>>::insert(new_contract_address.clone(), who.clone());
- None
- }
-
- // When the contract is called, check if the sponsoring is enabled and pay fees from contract endowment if it is
- Some(pallet_contracts::Call::call(dest, _value, _gas_limit, _data)) => {
-
- let called_contract: T::AccountId = T::Lookup::lookup((*dest).clone()).unwrap_or(T::AccountId::default());
-
- let mut sponsor_transfer = false;
- if <ContractSponsoringRateLimit<T>>::contains_key(called_contract.clone()) {
- let last_tx_block = <ContractSponsorBasket<T>>::get((&called_contract, &who));
- let block_number = <system::Module<T>>::block_number() as T::BlockNumber;
- let rate_limit = <ContractSponsoringRateLimit<T>>::get(&called_contract);
- let limit_time = last_tx_block + rate_limit;
-
- if block_number >= limit_time {
- <ContractSponsorBasket<T>>::insert((called_contract.clone(), who.clone()), block_number);
- sponsor_transfer = true;
- }
- } else {
- sponsor_transfer = false;
- }
-
- if sponsor_transfer {
- if <ContractSelfSponsoring<T>>::contains_key(called_contract.clone()) {
- if <ContractSelfSponsoring<T>>::get(called_contract.clone()) {
- return Some(called_contract);
- }
- }
- }
-
- None
- },
-
- _ => None,
- });
-
- let who_pays_fee = sponsor.unwrap_or_else(|| who.clone());
-
- <<T as pallet_transaction_payment::Config>::OnChargeTransaction as pallet_transaction_payment::OnChargeTransaction<T>>::withdraw_fee(&who_pays_fee, call, info, fee, tip)
- .map(|i| (fee, i))
- }
-}
-
-
-impl<T: Config + Send + Sync> SignedExtension
- for ChargeTransactionPayment<T>
-where
- BalanceOf<T>: Send + Sync + From<u64> + FixedPointOperand,
- T::Call: Dispatchable<Info = DispatchInfo, PostInfo = PostDispatchInfo> + IsSubType<Call<T>> + IsSubType<pallet_contracts::Call<T>>,
- T::AccountId: AsRef<[u8]>,
- T::AccountId: UncheckedFrom<T::Hash>,
-{
- const IDENTIFIER: &'static str = "ChargeTransactionPayment";
- type AccountId = T::AccountId;
- type Call = T::Call;
- type AdditionalSigned = ();
- type Pre = (
- // tip
- BalanceOf<T>,
- // who pays fee
- Self::AccountId,
- // imbalance resulting from withdrawing the fee
- <<T as pallet_transaction_payment::Config>::OnChargeTransaction as pallet_transaction_payment::OnChargeTransaction<T>>::LiquidityInfo,
- );
- fn additional_signed(&self) -> sp_std::result::Result<(), TransactionValidityError> {
Ok(())
}
-
- fn validate(
- &self,
- who: &Self::AccountId,
- call: &Self::Call,
- info: &DispatchInfoOf<Self::Call>,
- len: usize,
- ) -> TransactionValidity {
- let (fee, _) = self.withdraw_fee(who, call, info, len)?;
- Ok(ValidTransaction {
- priority: Self::get_priority(len, info, fee),
- ..Default::default()
- })
- }
-
- fn pre_dispatch(
- self,
- who: &Self::AccountId,
- call: &Self::Call,
- info: &DispatchInfoOf<Self::Call>,
- len: usize,
- ) -> Result<Self::Pre, TransactionValidityError> {
- let (_fee, imbalance) = self.withdraw_fee(who, call, info, len)?;
- Ok((self.0, who.clone(), imbalance))
- }
-
- fn post_dispatch(
- pre: Self::Pre,
- info: &DispatchInfoOf<Self::Call>,
- post_info: &PostDispatchInfoOf<Self::Call>,
- len: usize,
- _result: &DispatchResult,
- ) -> Result<(), TransactionValidityError> {
- let (tip, who, imbalance) = pre;
- let actual_fee = pallet_transaction_payment::Module::<T>::compute_actual_fee(
- len as u32,
- info,
- post_info,
- tip,
- );
- <T as pallet_transaction_payment::Config>::OnChargeTransaction::correct_and_deposit_fee(&who, info, post_info, actual_fee, tip, imbalance)?;
- Ok(())
- }
}
-
-// #endregion
\ No newline at end of file
pallets/scheduler/Cargo.tomldiffbeforeafterboth--- /dev/null
+++ b/pallets/scheduler/Cargo.toml
@@ -0,0 +1,54 @@
+[package]
+name = "pallet-scheduler"
+version = "3.0.0"
+authors = ["Parity Technologies <admin@parity.io>"]
+edition = "2018"
+license = "Unlicense"
+homepage = "https://substrate.dev"
+repository = "https://github.com/paritytech/substrate/"
+description = "FRAME example pallet"
+readme = "README.md"
+
+[dependencies]
+serde = { version = "1.0.119" }
+codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
+frame-support = { default-features = false, version = '3.0.0' }
+frame-system = { default-features = false, version = '3.0.0' }
+pallet-nft-transaction-payment = { default-features = false, path = "../nft-transaction-payment" }
+pallet-nft = { default-features = false, path = "../nft" }
+nft-data-structs = { path = '../../primitives', default-features = false }
+
+pallet-contracts = { default-features = false, version = '3.0.0' }
+sp-runtime = { default-features = false, version = '3.0.0' }
+sp-std = { default-features = false, version = '3.0.0' }
+sp-io = { default-features = false, version = '3.0.0' }
+log = { version = "0.4.14", default-features = false }
+
+frame-benchmarking = { default-features = false, version = '3.0.0', optional = true }
+
+[dev-dependencies]
+sp-core = { default-features = false, version = '3.0.0' }
+substrate-test-utils = { version = "3.0.0" }
+
+[features]
+default = ["std"]
+std = [
+ "codec/std",
+ "sp-runtime/std",
+ "frame-benchmarking/std",
+ "frame-support/std",
+ "frame-system/std",
+ "pallet-nft-transaction-payment/std",
+ "pallet-nft/std",
+ "pallet-contracts/std",
+ "nft-data-structs/std",
+ "sp-io/std",
+ "sp-std/std",
+ "log/std",
+]
+runtime-benchmarks = [
+ "frame-benchmarking",
+ "frame-support/runtime-benchmarks",
+ "frame-system/runtime-benchmarks",
+]
+#try-runtime = ["frame-support/try-runtime"]
pallets/scheduler/README.mddiffbeforeafterboth--- /dev/null
+++ b/pallets/scheduler/README.md
@@ -0,0 +1,34 @@
+# Scheduler
+A module for scheduling dispatches.
+
+- [`scheduler::Trait`](https://docs.rs/pallet-scheduler/latest/pallet_scheduler/trait.Trait.html)
+- [`Call`](https://docs.rs/pallet-scheduler/latest/pallet_scheduler/enum.Call.html)
+- [`Module`](https://docs.rs/pallet-scheduler/latest/pallet_scheduler/struct.Module.html)
+
+## Overview
+
+This module exposes capabilities for scheduling dispatches to occur at a
+specified block number or at a specified period. These scheduled dispatches
+may be named or anonymous and may be canceled.
+
+**NOTE:** The scheduled calls will be dispatched with the default filter
+for the origin: namely `frame_system::Config::BaseCallFilter` for all origin
+except root which will get no filter. And not the filter contained in origin
+use to call `fn schedule`.
+
+If a call is scheduled using proxy or whatever mecanism which adds filter,
+then those filter will not be used when dispatching the schedule call.
+
+## Interface
+
+### Dispatchable Functions
+
+* `schedule` - schedule a dispatch, which may be periodic, to occur at a
+ specified block and with a specified priority.
+* `cancel` - cancel a scheduled dispatch, specified by block number and
+ index.
+* `schedule_named` - augments the `schedule` interface with an additional
+ `Vec<u8>` parameter that can be used for identification.
+* `cancel_named` - the named complement to the cancel function.
+
+License: Unlicense
pallets/scheduler/src/benchmarking.rsdiffbeforeafterboth--- /dev/null
+++ b/pallets/scheduler/src/benchmarking.rs
@@ -0,0 +1,148 @@
+// This file is part of Substrate.
+
+// Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
+// SPDX-License-Identifier: Apache-2.0
+
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+//! Scheduler pallet benchmarking.
+
+#![cfg(feature = "runtime-benchmarks")]
+
+use super::*;
+use sp_std::{vec, prelude::*};
+use frame_system::RawOrigin;
+use frame_support::{ensure, traits::OnInitialize};
+use frame_benchmarking::{benchmarks, impl_benchmark_test_suite};
+
+use crate::Module as Scheduler;
+use frame_system::Pallet as System;
+
+const BLOCK_NUMBER: u32 = 2;
+
+// Add `n` named items to the schedule
+fn fill_schedule<T: Config> (when: T::BlockNumber, n: u32) -> Result<(), &'static str> {
+ // Essentially a no-op call.
+ let call = frame_system::Call::set_storage(vec![]);
+ for i in 0..n {
+ // Named schedule is strictly heavier than anonymous
+ Scheduler::<T>::do_schedule_named(
+ i.encode(),
+ DispatchTime::At(when),
+ // Add periodicity
+ Some((T::BlockNumber::one(), 100)),
+ // HARD_DEADLINE priority means it gets executed no matter what
+ 0,
+ frame_system::RawOrigin::Root.into(),
+ call.clone().into(),
+ )?;
+ }
+ ensure!(Agenda::<T>::get(when).len() == n as usize, "didn't fill schedule");
+ Ok(())
+}
+
+benchmarks! {
+ schedule {
+ let s in 0 .. T::MaxScheduledPerBlock::get();
+ let when = BLOCK_NUMBER.into();
+ let periodic = Some((T::BlockNumber::one(), 100));
+ let priority = 0;
+ // Essentially a no-op call.
+ let call = Box::new(frame_system::Call::set_storage(vec![]).into());
+
+ fill_schedule::<T>(when, s)?;
+ }: _(RawOrigin::Root, when, periodic, priority, call)
+ verify {
+ ensure!(
+ Agenda::<T>::get(when).len() == (s + 1) as usize,
+ "didn't add to schedule"
+ );
+ }
+
+ cancel {
+ let s in 1 .. T::MaxScheduledPerBlock::get();
+ let when = BLOCK_NUMBER.into();
+
+ fill_schedule::<T>(when, s)?;
+ assert_eq!(Agenda::<T>::get(when).len(), s as usize);
+ }: _(RawOrigin::Root, when, 0)
+ verify {
+ ensure!(
+ Lookup::<T>::get(0.encode()).is_none(),
+ "didn't remove from lookup"
+ );
+ // Removed schedule is NONE
+ ensure!(
+ Agenda::<T>::get(when)[0].is_none(),
+ "didn't remove from schedule"
+ );
+ }
+
+ schedule_named {
+ let s in 0 .. T::MaxScheduledPerBlock::get();
+ let id = s.encode();
+ let when = BLOCK_NUMBER.into();
+ let periodic = Some((T::BlockNumber::one(), 100));
+ let priority = 0;
+ // Essentially a no-op call.
+ let call = Box::new(frame_system::Call::set_storage(vec![]).into());
+
+ fill_schedule::<T>(when, s)?;
+ }: _(RawOrigin::Root, id, when, periodic, priority, call)
+ verify {
+ ensure!(
+ Agenda::<T>::get(when).len() == (s + 1) as usize,
+ "didn't add to schedule"
+ );
+ }
+
+ cancel_named {
+ let s in 1 .. T::MaxScheduledPerBlock::get();
+ let when = BLOCK_NUMBER.into();
+
+ fill_schedule::<T>(when, s)?;
+ }: _(RawOrigin::Root, 0.encode())
+ verify {
+ ensure!(
+ Lookup::<T>::get(0.encode()).is_none(),
+ "didn't remove from lookup"
+ );
+ // Removed schedule is NONE
+ ensure!(
+ Agenda::<T>::get(when)[0].is_none(),
+ "didn't remove from schedule"
+ );
+ }
+
+ // TODO [#7141]: Make this more complex and flexible so it can be used in automation.
+ #[extra]
+ on_initialize {
+ let s in 0 .. T::MaxScheduledPerBlock::get();
+ let when = BLOCK_NUMBER.into();
+ fill_schedule::<T>(when, s)?;
+ }: { Scheduler::<T>::on_initialize(BLOCK_NUMBER.into()); }
+ verify {
+ assert_eq!(System::<T>::event_count(), s);
+ // Next block should have all the schedules again
+ ensure!(
+ Agenda::<T>::get(when + T::BlockNumber::one()).len() == s as usize,
+ "didn't append schedule"
+ );
+ }
+}
+
+impl_benchmark_test_suite!(
+ Scheduler,
+ crate::tests::new_test_ext(),
+ crate::tests::Test,
+);
pallets/scheduler/src/lib.rsdiffbeforeafterboth--- /dev/null
+++ b/pallets/scheduler/src/lib.rs
@@ -0,0 +1,1611 @@
+// This file is part of Substrate.
+
+// Copyright (C) 2017-2021 Parity Technologies (UK) Ltd.
+// SPDX-License-Identifier: Apache-2.0
+
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+//! # Scheduler
+//! A module for scheduling dispatches.
+//!
+//! - [`Config`]
+//! - [`Call`]
+//! - [`Module`]
+//!
+//! ## Overview
+//!
+//! This module exposes capabilities for scheduling dispatches to occur at a
+//! specified block number or at a specified period. These scheduled dispatches
+//! may be named or anonymous and may be canceled.
+//!
+//! **NOTE:** The scheduled calls will be dispatched with the default filter
+//! for the origin: namely `frame_system::Config::BaseCallFilter` for all origin
+//! except root which will get no filter. And not the filter contained in origin
+//! use to call `fn schedule`.
+//!
+//! If a call is scheduled using proxy or whatever mecanism which adds filter,
+//! then those filter will not be used when dispatching the schedule call.
+//!
+//! ## Interface
+//!
+//! ### Dispatchable Functions
+//!
+//! * `schedule` - schedule a dispatch, which may be periodic, to occur at a
+//! specified block and with a specified priority.
+//! * `cancel` - cancel a scheduled dispatch, specified by block number and
+//! index.
+//! * `schedule_named` - augments the `schedule` interface with an additional
+//! `Vec<u8>` parameter that can be used for identification.
+//! * `cancel_named` - the named complement to the cancel function.
+
+// Ensure we're `no_std` when compiling for Wasm.
+#![cfg_attr(not(feature = "std"), no_std)]
+
+mod benchmarking;
+pub mod weights;
+
+use sp_std::{prelude::*, marker::PhantomData, borrow::Borrow};
+use codec::{Encode, Decode, Codec};
+use sp_runtime::{RuntimeDebug, traits::{Zero, One, BadOrigin, Saturating}};
+use frame_support::{
+ decl_module, decl_storage, decl_event, decl_error, IterableStorageMap,
+ dispatch::{Dispatchable, DispatchError, DispatchResult, Parameter},
+ traits::{Get, schedule::{self, DispatchTime}, OriginTrait, EnsureOrigin, IsType},
+ weights::{GetDispatchInfo, Weight},
+};
+use frame_system::{self as system, ensure_signed};
+use pallet_nft::*;
+// use pallet_nft_transaction_payment::{self as nft_transaction_payment};
+use nft_data_structs::*;
+pub use weights::WeightInfo;
+
+/// 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
+/// should be added to our implied traits list.
+///
+/// `system::Config` should always be included in our implied traits.
+/// //
+pub trait Config: system::Config
+{
+
+ /// The overarching event type.
+ type Event: From<Event<Self>> + Into<<Self as system::Config>::Event>;
+
+ /// The aggregated origin which the dispatch will take.
+ type Origin: OriginTrait<PalletsOrigin = Self::PalletsOrigin>
+ + From<Self::PalletsOrigin> + 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;
+
+ /// The aggregated call type.
+ type Call: Parameter + Dispatchable<Origin=<Self as Config>::Origin> + GetDispatchInfo + From<system::Call<Self>>;
+
+ /// The maximum weight that may be scheduled per block for any dispatchables of less priority
+ /// than `schedule::HARD_DEADLINE`.
+ type MaximumWeight: Get<Weight>;
+
+ /// Required origin to schedule or cancel calls.
+ type ScheduleOrigin: EnsureOrigin<<Self as system::Config>::Origin>;
+
+ /// The maximum number of scheduled calls in the queue for a single block.
+ /// Not strictly enforced, but used for weight estimation.
+ type MaxScheduledPerBlock: Get<u32>;
+
+ /// TODO
+ type Sponsoring: SponsoringResolve<Self::AccountId, <Self as Config>::Call>;
+
+ /// Weight information for extrinsics in this pallet.
+ type WeightInfo: WeightInfo;
+}
+
+// pub type SelfWeightInfo<T> = <T as system::Config>::WeightInfo;
+
+/// Just a simple index for naming period tasks.
+pub type PeriodicIndex = u32;
+/// The location of a scheduled task that can be used to remove it.
+pub type TaskAddress<BlockNumber> = (BlockNumber, u32);
+
+#[cfg_attr(any(feature = "std", test), derive(PartialEq, Eq))]
+#[derive(Clone, RuntimeDebug, Encode, Decode)]
+struct ScheduledV1<Call, BlockNumber> {
+ maybe_id: Option<Vec<u8>>,
+ priority: schedule::Priority,
+ call: Call,
+ maybe_periodic: Option<schedule::Period<BlockNumber>>,
+}
+
+/// Information regarding an item to be executed in the future.
+#[cfg_attr(any(feature = "std", test), derive(PartialEq, Eq))]
+#[derive(Clone, RuntimeDebug, Encode, Decode)]
+pub struct ScheduledV2<Call, BlockNumber, PalletsOrigin, AccountId> {
+ /// The unique identity for this task, if there is one.
+ maybe_id: Option<Vec<u8>>,
+ /// This task's priority.
+ priority: schedule::Priority,
+ /// The call to be dispatched.
+ call: Call,
+ /// If the call is periodic, then this points to the information concerning that.
+ maybe_periodic: Option<schedule::Period<BlockNumber>>,
+ /// The origin to dispatch the call.
+ origin: PalletsOrigin,
+ _phantom: PhantomData<AccountId>,
+}
+
+/// The current version of Scheduled struct.
+pub type Scheduled<Call, BlockNumber, PalletsOrigin, AccountId> = ScheduledV2<Call, BlockNumber, PalletsOrigin, AccountId>;
+
+// 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)]
+enum Releases {
+ V1,
+ V2,
+}
+
+impl Default for Releases {
+ fn default() -> Self {
+ Releases::V1
+ }
+}
+
+#[derive(Encode, Decode, Clone, PartialEq, Eq, RuntimeDebug)]
+pub struct CallSpec {
+
+ module: u32,
+ method: u32,
+}
+
+decl_storage! {
+ trait Store for Module<T: Config> as Scheduler {
+ /// Items to be executed, indexed by the block number that they should be executed on.
+ pub Agenda: map hasher(twox_64_concat) T::BlockNumber
+ => Vec<Option<Scheduled<<T as Config>::Call, T::BlockNumber, T::PalletsOrigin, T::AccountId>>>;
+
+ pub SpecAgenda: map hasher(twox_64_concat) T::BlockNumber
+ => Vec<Option<CallSpec>>;
+
+ /// Lookup from identity to the block number and index of the task.
+ Lookup: map hasher(twox_64_concat) Vec<u8> => Option<TaskAddress<T::BlockNumber>>;
+
+ /// Storage version of the pallet.
+ ///
+ /// New networks start with last version.
+ StorageVersion build(|_| Releases::V2): Releases;
+ }
+}
+
+decl_event!(
+ pub enum Event<T> where <T as system::Config>::BlockNumber {
+ /// Scheduled some task. \[when, index\]
+ Scheduled(BlockNumber, u32),
+ /// Canceled some task. \[when, index\]
+ Canceled(BlockNumber, u32),
+ /// Dispatched some task. \[task, id, result\]
+ Dispatched(TaskAddress<BlockNumber>, Option<Vec<u8>>, DispatchResult),
+ }
+);
+
+decl_error! {
+ pub enum Error for Module<T: Config> {
+ /// Failed to schedule a call
+ FailedToSchedule,
+ /// Cannot find the scheduled call.
+ NotFound,
+ /// Given target block number is in the past.
+ TargetBlockNumberInPast,
+ /// Reschedule failed because it does not change scheduled time.
+ RescheduleNoChange,
+ }
+}
+
+decl_module! {
+ /// Scheduler module declaration.
+ pub struct Module<T: Config> for enum Call
+ where
+ origin: <T as system::Config>::Origin
+ {
+ type Error = Error<T>;
+ fn deposit_event() = default;
+
+
+ /// Anonymously schedule a task.
+ ///
+ /// # <weight>
+ /// - S = Number of already scheduled calls
+ /// - Base Weight: 22.29 + .126 * S µs
+ /// - DB Weight:
+ /// - Read: Agenda
+ /// - Write: Agenda
+ /// - Will use base weight of 25 which should be good for up to 30 scheduled calls
+ /// # </weight>
+ // #[weight = <T as Config>::WeightInfo::schedule(T::MaxScheduledPerBlock::get())]
+ #[weight = 0]
+ fn schedule(origin,
+ when: T::BlockNumber,
+ maybe_periodic: Option<schedule::Period<T::BlockNumber>>,
+ priority: schedule::Priority,
+ call: Box<<T as Config>::Call>,
+ )
+ {
+ let origin = <T as Config>::Origin::from(origin);
+ Self::do_schedule(DispatchTime::At(when), maybe_periodic, priority, origin.caller().clone(), *call)?;
+ }
+
+ /// Cancel an anonymously scheduled task.
+ ///
+ /// # <weight>
+ /// - S = Number of already scheduled calls
+ /// - Base Weight: 22.15 + 2.869 * S µs
+ /// - DB Weight:
+ /// - Read: Agenda
+ /// - Write: Agenda, Lookup
+ /// - Will use base weight of 100 which should be good for up to 30 scheduled calls
+ /// # </weight>
+ #[weight = <T as Config>::WeightInfo::cancel(T::MaxScheduledPerBlock::get())]
+ fn cancel(origin, when: T::BlockNumber, index: u32) {
+ T::ScheduleOrigin::ensure_origin(origin.clone())?;
+ let origin = <T as Config>::Origin::from(origin);
+ Self::do_cancel(Some(origin.caller().clone()), (when, index))?;
+ }
+
+ /// Schedule a named task.
+ ///
+ /// # <weight>
+ /// - S = Number of already scheduled calls
+ /// - Base Weight: 29.6 + .159 * S µs
+ /// - DB Weight:
+ /// - Read: Agenda, Lookup
+ /// - Write: Agenda, Lookup
+ /// - Will use base weight of 35 which should be good for more than 30 scheduled calls
+ /// # </weight>
+ #[weight = <T as Config>::WeightInfo::schedule_named(T::MaxScheduledPerBlock::get())]
+ fn schedule_named(origin,
+ id: Vec<u8>,
+ when: T::BlockNumber,
+ maybe_periodic: Option<schedule::Period<T::BlockNumber>>,
+ priority: schedule::Priority,
+ call: Box<<T as Config>::Call>,
+ ) {
+ T::ScheduleOrigin::ensure_origin(origin.clone())?;
+ let origin = <T as Config>::Origin::from(origin);
+ Self::do_schedule_named(
+ id, DispatchTime::At(when), maybe_periodic, priority, origin.caller().clone(), *call
+ )?;
+ }
+
+ /// Cancel a named scheduled task.
+ ///
+ /// # <weight>
+ /// - S = Number of already scheduled calls
+ /// - Base Weight: 24.91 + 2.907 * S µs
+ /// - DB Weight:
+ /// - Read: Agenda, Lookup
+ /// - Write: Agenda, Lookup
+ /// - Will use base weight of 100 which should be good for up to 30 scheduled calls
+ /// # </weight>
+ #[weight = <T as Config>::WeightInfo::cancel_named(T::MaxScheduledPerBlock::get())]
+ fn cancel_named(origin, id: Vec<u8>) {
+ T::ScheduleOrigin::ensure_origin(origin.clone())?;
+ let origin = <T as Config>::Origin::from(origin);
+ Self::do_cancel_named(Some(origin.caller().clone()), id)?;
+ }
+
+ /// Anonymously schedule a task after a delay.
+ ///
+ /// # <weight>
+ /// Same as [`schedule`].
+ /// # </weight>
+ #[weight = <T as Config>::WeightInfo::schedule(T::MaxScheduledPerBlock::get())]
+ fn schedule_after(origin,
+ after: T::BlockNumber,
+ maybe_periodic: Option<schedule::Period<T::BlockNumber>>,
+ priority: schedule::Priority,
+ call: Box<<T as Config>::Call>,
+ ) {
+ T::ScheduleOrigin::ensure_origin(origin.clone())?;
+ let origin = <T as Config>::Origin::from(origin);
+ Self::do_schedule(
+ DispatchTime::After(after), maybe_periodic, priority, origin.caller().clone(), *call
+ )?;
+ }
+
+ /// Schedule a named task after a delay.
+ ///
+ /// # <weight>
+ /// Same as [`schedule_named`].
+ /// # </weight>
+ #[weight = <T as Config>::WeightInfo::schedule_named(T::MaxScheduledPerBlock::get())]
+ fn schedule_named_after(origin,
+ id: Vec<u8>,
+ after: T::BlockNumber,
+ maybe_periodic: Option<schedule::Period<T::BlockNumber>>,
+ priority: schedule::Priority,
+ call: Box<<T as Config>::Call>,
+ ) {
+ T::ScheduleOrigin::ensure_origin(origin.clone())?;
+ let origin = <T as Config>::Origin::from(origin);
+ Self::do_schedule_named(
+ id, DispatchTime::After(after), maybe_periodic, priority, origin.caller().clone(), *call
+ )?;
+ }
+
+ /// Execute the scheduled calls
+ ///
+ /// # <weight>
+ /// - S = Number of already scheduled calls
+ /// - N = Named scheduled calls
+ /// - P = Periodic Calls
+ /// - Base Weight: 9.243 + 23.45 * S µs
+ /// - DB Weight:
+ /// - Read: Agenda + Lookup * N + Agenda(Future) * P
+ /// - Write: Agenda + Lookup * N + Agenda(future) * P
+ /// # </weight>
+ fn on_initialize(now: T::BlockNumber) -> Weight {
+ let limit = T::MaximumWeight::get();
+ let mut queued = Agenda::<T>::take(now).into_iter()
+ .enumerate()
+ .filter_map(|(index, s)| s.map(|inner| (index as u32, inner)))
+ .collect::<Vec<_>>();
+ if queued.len() as u32 > T::MaxScheduledPerBlock::get() {
+ log::warn!(
+ target: "runtime::scheduler",
+ "Warning: This block has more items queued in Scheduler than \
+ expected from the runtime configuration. An update might be needed."
+ );
+ }
+ queued.sort_by_key(|(_, s)| s.priority);
+ let base_weight: Weight = T::DbWeight::get().reads_writes(1, 2); // Agenda + Agenda(next)
+ let mut total_weight: Weight = <T as Config>::WeightInfo::schedule(T::MaxScheduledPerBlock::get());
+ queued.into_iter()
+ .enumerate()
+ .scan(base_weight, |cumulative_weight, (order, (index, s))| {
+ *cumulative_weight = cumulative_weight
+ .saturating_add(s.call.get_dispatch_info().weight);
+
+ let origin = <<T as Config>::Origin as From<T::PalletsOrigin>>::from(
+ s.origin.clone()
+ ).into();
+
+ if ensure_signed(origin).is_ok() {
+ // AccountData for inner call origin accountdata.
+ *cumulative_weight = cumulative_weight
+ .saturating_add(T::DbWeight::get().reads_writes(1, 1));
+ }
+
+ if s.maybe_id.is_some() {
+ // Remove/Modify Lookup
+ *cumulative_weight = cumulative_weight.saturating_add(T::DbWeight::get().writes(1));
+ }
+ if s.maybe_periodic.is_some() {
+ // Read/Write Agenda for future block
+ *cumulative_weight = cumulative_weight.saturating_add(T::DbWeight::get().reads_writes(1, 1));
+ }
+
+ Some((order, index, *cumulative_weight, s))
+ })
+ .filter_map(|(order, index, cumulative_weight, mut s)| {
+ // We allow a scheduled call if any is true:
+ // - It's priority is `HARD_DEADLINE`
+ // - It does not push the weight past the limit.
+ // - It is the first item in the schedule
+ if s.priority <= schedule::HARD_DEADLINE || cumulative_weight <= limit || order == 0 {
+
+ let origin = <<T as Config>::Origin as From<T::PalletsOrigin>>::from(
+ s.origin.clone()
+ ).into();
+ let sender = ensure_signed(origin).unwrap_or(T::AccountId::default());
+ let who_will_pay = T::Sponsoring::resolve(&sender, &s.call.clone()).unwrap_or(
+ T::AccountId::default());
+ let sponsor = T::PalletsOrigin::from(system::RawOrigin::Signed(who_will_pay));
+ let r = s.call.clone().dispatch(sponsor.into());
+ let maybe_id = s.maybe_id.clone();
+ if let &Some((period, count)) = &s.maybe_periodic {
+ if count > 1 {
+ s.maybe_periodic = Some((period, count - 1));
+ } else {
+ s.maybe_periodic = None;
+ }
+ let next = now + period;
+ // If scheduled is named, place it's information in `Lookup`
+ if let Some(ref id) = s.maybe_id {
+ let next_index = Agenda::<T>::decode_len(now + period).unwrap_or(0);
+ Lookup::<T>::insert(id, (next, next_index as u32));
+ }
+ Agenda::<T>::append(next, Some(s));
+ } else {
+ if let Some(ref id) = s.maybe_id {
+ Lookup::<T>::remove(id);
+ }
+ }
+ Self::deposit_event(RawEvent::Dispatched(
+ (now, index),
+ maybe_id,
+ r.map(|_| ()).map_err(|e| e.error)
+ ));
+ total_weight = cumulative_weight;
+ None
+ } else {
+ Some(Some(s))
+ }
+ })
+ .for_each(|unused| {
+ let next = now + One::one();
+ Agenda::<T>::append(next, unused);
+ });
+
+ total_weight
+ }
+ }
+}
+
+impl<T: Config> Module<T> {
+ /// Migrate storage format from V1 to V2.
+ /// Return true if migration is performed.
+ pub fn migrate_v1_to_t2() -> bool {
+ if StorageVersion::get() == Releases::V1 {
+ StorageVersion::put(Releases::V2);
+
+ Agenda::<T>::translate::<
+ Vec<Option<ScheduledV1<<T as Config>::Call, T::BlockNumber>>>, _
+ >(|_, agenda| Some(
+ agenda
+ .into_iter()
+ .map(|schedule| schedule.map(|schedule| ScheduledV2 {
+ maybe_id: schedule.maybe_id,
+ priority: schedule.priority,
+ call: schedule.call,
+ maybe_periodic: schedule.maybe_periodic,
+ origin: system::RawOrigin::Root.into(),
+ _phantom: Default::default(),
+ }))
+ .collect::<Vec<_>>()
+ ));
+
+ true
+ } else {
+ false
+ }
+ }
+
+ /// Helper to migrate scheduler when the pallet origin type has changed.
+ pub fn migrate_origin<OldOrigin: Into<T::PalletsOrigin> + codec::Decode>() {
+ Agenda::<T>::translate::<
+ Vec<Option<Scheduled<<T as Config>::Call, T::BlockNumber, OldOrigin, T::AccountId>>>, _
+ >(|_, agenda| Some(
+ agenda
+ .into_iter()
+ .map(|schedule| schedule.map(|schedule| Scheduled {
+ maybe_id: schedule.maybe_id,
+ priority: schedule.priority,
+ call: schedule.call,
+ maybe_periodic: schedule.maybe_periodic,
+ origin: schedule.origin.into(),
+ _phantom: Default::default(),
+ }))
+ .collect::<Vec<_>>()
+ ));
+ }
+
+ fn resolve_time(when: DispatchTime<T::BlockNumber>) -> Result<T::BlockNumber, DispatchError> {
+ let now = frame_system::Pallet::<T>::block_number();
+
+ let when = match when {
+ DispatchTime::At(x) => x,
+ // The current block has already completed it's scheduled tasks, so
+ // Schedule the task at lest one block after this current block.
+ DispatchTime::After(x) => now.saturating_add(x).saturating_add(One::one())
+ };
+
+ if when <= now {
+ return Err(Error::<T>::TargetBlockNumberInPast.into())
+ }
+
+ Ok(when)
+ }
+
+ fn do_schedule(
+ when: DispatchTime<T::BlockNumber>,
+ maybe_periodic: Option<schedule::Period<T::BlockNumber>>,
+ priority: schedule::Priority,
+ origin: T::PalletsOrigin,
+ call: <T as Config>::Call
+ ) -> Result<TaskAddress<T::BlockNumber>, DispatchError> {
+ let when = Self::resolve_time(when)?;
+
+ // sanitize maybe_periodic
+ let maybe_periodic = maybe_periodic
+ .filter(|p| p.1 > 1 && !p.0.is_zero())
+ // Remove one from the number of repetitions since we will schedule one now.
+ .map(|(p, c)| (p, c - 1));
+ let s = Some(Scheduled {
+ maybe_id: None, priority, call, maybe_periodic, origin, _phantom: PhantomData::<T::AccountId>::default(),
+ });
+ Agenda::<T>::append(when, s);
+ let index = Agenda::<T>::decode_len(when).unwrap_or(1) as u32 - 1;
+ if index > T::MaxScheduledPerBlock::get() {
+ log::warn!(
+ target: "runtime::scheduler",
+ "Warning: There are more items queued in the Scheduler than \
+ expected from the runtime configuration. An update might be needed.",
+ );
+ }
+ Self::deposit_event(RawEvent::Scheduled(when, index));
+
+ Ok((when, index))
+ }
+
+ fn do_cancel(
+ origin: Option<T::PalletsOrigin>,
+ (when, index): TaskAddress<T::BlockNumber>
+ ) -> Result<(), DispatchError> {
+ let scheduled = Agenda::<T>::try_mutate(
+ when,
+ |agenda| {
+ agenda.get_mut(index as usize)
+ .map_or(Ok(None), |s| -> Result<Option<Scheduled<_, _, _, _>>, DispatchError> {
+ if let (Some(ref o), Some(ref s)) = (origin, s.borrow()) {
+ if *o != s.origin {
+ return Err(BadOrigin.into());
+ }
+ };
+ Ok(s.take())
+ })
+ },
+ )?;
+ if let Some(s) = scheduled {
+ if let Some(id) = s.maybe_id {
+ Lookup::<T>::remove(id);
+ }
+ Self::deposit_event(RawEvent::Canceled(when, index));
+ Ok(())
+ } else {
+ Err(Error::<T>::NotFound)?
+ }
+ }
+
+ fn do_reschedule(
+ (when, index): TaskAddress<T::BlockNumber>,
+ new_time: DispatchTime<T::BlockNumber>,
+ ) -> Result<TaskAddress<T::BlockNumber>, DispatchError> {
+ let new_time = Self::resolve_time(new_time)?;
+
+ if new_time == when {
+ return Err(Error::<T>::RescheduleNoChange.into());
+ }
+
+ Agenda::<T>::try_mutate(when, |agenda| -> DispatchResult {
+ let task = agenda.get_mut(index as usize).ok_or(Error::<T>::NotFound)?;
+ let task = task.take().ok_or(Error::<T>::NotFound)?;
+ Agenda::<T>::append(new_time, Some(task));
+ Ok(())
+ })?;
+
+ let new_index = Agenda::<T>::decode_len(new_time).unwrap_or(1) as u32 - 1;
+ Self::deposit_event(RawEvent::Canceled(when, index));
+ Self::deposit_event(RawEvent::Scheduled(new_time, new_index));
+
+ Ok((new_time, new_index))
+ }
+
+ fn do_schedule_named(
+ id: Vec<u8>,
+ when: DispatchTime<T::BlockNumber>,
+ maybe_periodic: Option<schedule::Period<T::BlockNumber>>,
+ priority: schedule::Priority,
+ origin: T::PalletsOrigin,
+ call: <T as Config>::Call,
+ ) -> Result<TaskAddress<T::BlockNumber>, DispatchError> {
+ // ensure id it is unique
+ if Lookup::<T>::contains_key(&id) {
+ return Err(Error::<T>::FailedToSchedule)?
+ }
+
+ let when = Self::resolve_time(when)?;
+
+ // sanitize maybe_periodic
+ let maybe_periodic = maybe_periodic
+ .filter(|p| p.1 > 1 && !p.0.is_zero())
+ // Remove one from the number of repetitions since we will schedule one now.
+ .map(|(p, c)| (p, c - 1));
+
+ let s = Scheduled {
+ maybe_id: Some(id.clone()), priority, call, maybe_periodic, origin, _phantom: Default::default()
+ };
+ Agenda::<T>::append(when, Some(s));
+ let index = Agenda::<T>::decode_len(when).unwrap_or(1) as u32 - 1;
+ if index > T::MaxScheduledPerBlock::get() {
+ log::warn!(
+ target: "runtime::scheduler",
+ "Warning: There are more items queued in the Scheduler than \
+ expected from the runtime configuration. An update might be needed.",
+ );
+ }
+ let address = (when, index);
+ Lookup::<T>::insert(&id, &address);
+ Self::deposit_event(RawEvent::Scheduled(when, index));
+
+ Ok(address)
+ }
+
+ fn do_cancel_named(origin: Option<T::PalletsOrigin>, id: Vec<u8>) -> DispatchResult {
+ Lookup::<T>::try_mutate_exists(id, |lookup| -> DispatchResult {
+ if let Some((when, index)) = lookup.take() {
+ let i = index as usize;
+ Agenda::<T>::try_mutate(when, |agenda| -> DispatchResult {
+ if let Some(s) = agenda.get_mut(i) {
+ if let (Some(ref o), Some(ref s)) = (origin, s.borrow()) {
+ if *o != s.origin {
+ return Err(BadOrigin.into());
+ }
+ }
+ *s = None;
+ }
+ Ok(())
+ })?;
+ Self::deposit_event(RawEvent::Canceled(when, index));
+ Ok(())
+ } else {
+ Err(Error::<T>::NotFound)?
+ }
+ })
+ }
+
+ fn do_reschedule_named(
+ id: Vec<u8>,
+ new_time: DispatchTime<T::BlockNumber>,
+ ) -> Result<TaskAddress<T::BlockNumber>, DispatchError> {
+ let new_time = Self::resolve_time(new_time)?;
+
+ Lookup::<T>::try_mutate_exists(id, |lookup| -> Result<TaskAddress<T::BlockNumber>, DispatchError> {
+ let (when, index) = lookup.ok_or(Error::<T>::NotFound)?;
+
+ if new_time == when {
+ return Err(Error::<T>::RescheduleNoChange.into());
+ }
+
+ Agenda::<T>::try_mutate(when, |agenda| -> DispatchResult {
+ let task = agenda.get_mut(index as usize).ok_or(Error::<T>::NotFound)?;
+ let task = task.take().ok_or(Error::<T>::NotFound)?;
+ Agenda::<T>::append(new_time, Some(task));
+
+ Ok(())
+ })?;
+
+ let new_index = Agenda::<T>::decode_len(new_time).unwrap_or(1) as u32 - 1;
+ Self::deposit_event(RawEvent::Canceled(when, index));
+ Self::deposit_event(RawEvent::Scheduled(new_time, new_index));
+
+ *lookup = Some((new_time, new_index));
+
+ Ok((new_time, new_index))
+ })
+ }
+}
+
+impl<T: Config> schedule::Anon<T::BlockNumber, <T as Config>::Call, T::PalletsOrigin> for Module<T> {
+ type Address = TaskAddress<T::BlockNumber>;
+
+ fn schedule(
+ when: DispatchTime<T::BlockNumber>,
+ maybe_periodic: Option<schedule::Period<T::BlockNumber>>,
+ priority: schedule::Priority,
+ origin: T::PalletsOrigin,
+ call: <T as Config>::Call
+ ) -> Result<Self::Address, DispatchError> {
+ Self::do_schedule(when, maybe_periodic, priority, origin, call)
+ }
+
+ fn cancel((when, index): Self::Address) -> Result<(), ()> {
+ Self::do_cancel(None, (when, index)).map_err(|_| ())
+ }
+
+ fn reschedule(
+ address: Self::Address,
+ when: DispatchTime<T::BlockNumber>,
+ ) -> Result<Self::Address, DispatchError> {
+ Self::do_reschedule(address, when)
+ }
+
+ fn next_dispatch_time((when, index): Self::Address) -> Result<T::BlockNumber, ()> {
+ Agenda::<T>::get(when).get(index as usize).ok_or(()).map(|_| when)
+ }
+}
+
+impl<T: Config> schedule::Named<T::BlockNumber, <T as Config>::Call, T::PalletsOrigin> for Module<T> {
+ type Address = TaskAddress<T::BlockNumber>;
+
+ fn schedule_named(
+ id: Vec<u8>,
+ when: DispatchTime<T::BlockNumber>,
+ maybe_periodic: Option<schedule::Period<T::BlockNumber>>,
+ priority: schedule::Priority,
+ origin: T::PalletsOrigin,
+ call: <T as Config>::Call,
+ ) -> Result<Self::Address, ()> {
+ Self::do_schedule_named(id, when, maybe_periodic, priority, origin, call).map_err(|_| ())
+ }
+
+ fn cancel_named(id: Vec<u8>) -> Result<(), ()> {
+ Self::do_cancel_named(None, id).map_err(|_| ())
+ }
+
+ fn reschedule_named(
+ id: Vec<u8>,
+ when: DispatchTime<T::BlockNumber>,
+ ) -> Result<Self::Address, DispatchError> {
+ Self::do_reschedule_named(id, when)
+ }
+
+ fn next_dispatch_time(id: Vec<u8>) -> Result<T::BlockNumber, ()> {
+ Lookup::<T>::get(id).and_then(|(when, index)| Agenda::<T>::get(when).get(index as usize).map(|_| when)).ok_or(())
+ }
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ use frame_support::{
+ parameter_types, assert_ok, ord_parameter_types,
+ assert_noop, assert_err, Hashable,
+ traits::{OnInitialize, OnFinalize, Filter},
+ weights::constants::RocksDbWeight,
+ };
+ use sp_core::H256;
+ use sp_runtime::{
+ Perbill,
+ testing::Header,
+ traits::{BlakeTwo256, IdentityLookup},
+ };
+ use frame_system::{EnsureOneOf, EnsureRoot, EnsureSignedBy};
+ use substrate_test_utils::assert_eq_uvec;
+ use crate as scheduler;
+
+ mod logger {
+ use super::*;
+ use std::cell::RefCell;
+
+ thread_local! {
+ static LOG: RefCell<Vec<(OriginCaller, u32)>> = RefCell::new(Vec::new());
+ }
+ pub fn log() -> Vec<(OriginCaller, u32)> {
+ LOG.with(|log| log.borrow().clone())
+ }
+ pub trait Config: system::Config {
+ type Event: From<Event> + Into<<Self as system::Config>::Event>;
+ }
+ decl_event! {
+ pub enum Event {
+ Logged(u32, Weight),
+ }
+ }
+ decl_module! {
+ pub struct Module<T: Config> for enum Call
+ where
+ origin: <T as system::Config>::Origin,
+ <T as system::Config>::Origin: OriginTrait<PalletsOrigin = OriginCaller>
+ {
+ fn deposit_event() = default;
+
+ #[weight = *weight]
+ fn log(origin, i: u32, weight: Weight) {
+ Self::deposit_event(Event::Logged(i, weight));
+ LOG.with(|log| {
+ log.borrow_mut().push((origin.caller().clone(), i));
+ })
+ }
+
+ #[weight = *weight]
+ fn log_without_filter(origin, i: u32, weight: Weight) {
+ Self::deposit_event(Event::Logged(i, weight));
+ LOG.with(|log| {
+ log.borrow_mut().push((origin.caller().clone(), i));
+ })
+ }
+ }
+ }
+ }
+
+ type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic<Test>;
+ type Block = frame_system::mocking::MockBlock<Test>;
+
+ frame_support::construct_runtime!(
+ pub enum Test where
+ Block = Block,
+ NodeBlock = Block,
+ UncheckedExtrinsic = UncheckedExtrinsic,
+ {
+ System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
+ Logger: logger::{Pallet, Call, Event},
+ Scheduler: scheduler::{Pallet, Call, Storage, Event<T>},
+ }
+ );
+
+ // Scheduler must dispatch with root and no filter, this tests base filter is indeed not used.
+ pub struct BaseFilter;
+ impl Filter<Call> for BaseFilter {
+ fn filter(call: &Call) -> bool {
+ !matches!(call, Call::Logger(logger::Call::log(_, _)))
+ }
+ }
+
+ parameter_types! {
+ pub const BlockHashCount: u64 = 250;
+ pub BlockWeights: frame_system::limits::BlockWeights =
+ frame_system::limits::BlockWeights::simple_max(2_000_000_000_000);
+ }
+ impl system::Config for Test {
+ type BaseCallFilter = BaseFilter;
+ type BlockWeights = ();
+ type BlockLength = ();
+ type DbWeight = RocksDbWeight;
+ type Origin = Origin;
+ type Call = Call;
+ type Index = u64;
+ type BlockNumber = u64;
+ type Hash = H256;
+ type Hashing = BlakeTwo256;
+ type AccountId = u64;
+ type Lookup = IdentityLookup<Self::AccountId>;
+ type Header = Header;
+ type Event = Event;
+ type BlockHashCount = BlockHashCount;
+ type Version = ();
+ type PalletInfo = PalletInfo;
+ type AccountData = ();
+ type OnNewAccount = ();
+ type OnKilledAccount = ();
+ type SystemWeightInfo = ();
+ type SS58Prefix = ();
+ type OnSetCode = ();
+ }
+ impl logger::Config for Test {
+ type Event = Event;
+ }
+ parameter_types! {
+ pub MaximumSchedulerWeight: Weight = Perbill::from_percent(80) * BlockWeights::get().max_block;
+ pub const MaxScheduledPerBlock: u32 = 10;
+ }
+ ord_parameter_types! {
+ pub const One: u64 = 1;
+ }
+
+ impl Config for Test {
+ type Event = Event;
+ type Origin = Origin;
+ type PalletsOrigin = OriginCaller;
+ type Call = Call;
+ type MaximumWeight = MaximumSchedulerWeight;
+ type ScheduleOrigin = EnsureOneOf<u64, EnsureRoot<u64>, EnsureSignedBy<One, u64>>;
+ type MaxScheduledPerBlock = MaxScheduledPerBlock;
+ type WeightInfo = ();
+ }
+
+ pub fn new_test_ext() -> sp_io::TestExternalities {
+ let t = system::GenesisConfig::default().build_storage::<Test>().unwrap();
+ t.into()
+ }
+
+ fn run_to_block(n: u64) {
+ while System::block_number() < n {
+ Scheduler::on_finalize(System::block_number());
+ System::set_block_number(System::block_number() + 1);
+ Scheduler::on_initialize(System::block_number());
+ }
+ }
+
+ fn root() -> OriginCaller {
+ system::RawOrigin::Root.into()
+ }
+
+ #[test]
+ fn basic_scheduling_works() {
+ new_test_ext().execute_with(|| {
+ let call = Call::Logger(logger::Call::log(42, 1000));
+ assert!(!<Test as frame_system::Config>::BaseCallFilter::filter(&call));
+ assert_ok!(Scheduler::do_schedule(DispatchTime::At(4), None, 127, root(), call));
+ run_to_block(3);
+ assert!(logger::log().is_empty());
+ run_to_block(4);
+ assert_eq!(logger::log(), vec![(root(), 42u32)]);
+ run_to_block(100);
+ assert_eq!(logger::log(), vec![(root(), 42u32)]);
+ });
+ }
+
+ #[test]
+ fn schedule_after_works() {
+ new_test_ext().execute_with(|| {
+ run_to_block(2);
+ let call = Call::Logger(logger::Call::log(42, 1000));
+ assert!(!<Test as frame_system::Config>::BaseCallFilter::filter(&call));
+ // This will schedule the call 3 blocks after the next block... so block 3 + 3 = 6
+ assert_ok!(Scheduler::do_schedule(DispatchTime::After(3), None, 127, root(), call));
+ run_to_block(5);
+ assert!(logger::log().is_empty());
+ run_to_block(6);
+ assert_eq!(logger::log(), vec![(root(), 42u32)]);
+ run_to_block(100);
+ assert_eq!(logger::log(), vec![(root(), 42u32)]);
+ });
+ }
+
+ #[test]
+ fn schedule_after_zero_works() {
+ new_test_ext().execute_with(|| {
+ run_to_block(2);
+ let call = Call::Logger(logger::Call::log(42, 1000));
+ assert!(!<Test as frame_system::Config>::BaseCallFilter::filter(&call));
+ assert_ok!(Scheduler::do_schedule(DispatchTime::After(0), None, 127, root(), call));
+ // Will trigger on the next block.
+ run_to_block(3);
+ assert_eq!(logger::log(), vec![(root(), 42u32)]);
+ run_to_block(100);
+ assert_eq!(logger::log(), vec![(root(), 42u32)]);
+ });
+ }
+
+ #[test]
+ fn periodic_scheduling_works() {
+ new_test_ext().execute_with(|| {
+ // at #4, every 3 blocks, 3 times.
+ assert_ok!(Scheduler::do_schedule(
+ DispatchTime::At(4), Some((3, 3)), 127, root(), Call::Logger(logger::Call::log(42, 1000))
+ ));
+ run_to_block(3);
+ assert!(logger::log().is_empty());
+ run_to_block(4);
+ assert_eq!(logger::log(), vec![(root(), 42u32)]);
+ run_to_block(6);
+ assert_eq!(logger::log(), vec![(root(), 42u32)]);
+ run_to_block(7);
+ assert_eq!(logger::log(), vec![(root(), 42u32), (root(), 42u32)]);
+ run_to_block(9);
+ assert_eq!(logger::log(), vec![(root(), 42u32), (root(), 42u32)]);
+ run_to_block(10);
+ assert_eq!(logger::log(), vec![(root(), 42u32), (root(), 42u32), (root(), 42u32)]);
+ run_to_block(100);
+ assert_eq!(logger::log(), vec![(root(), 42u32), (root(), 42u32), (root(), 42u32)]);
+ });
+ }
+
+ #[test]
+ fn reschedule_works() {
+ new_test_ext().execute_with(|| {
+ let call = Call::Logger(logger::Call::log(42, 1000));
+ assert!(!<Test as frame_system::Config>::BaseCallFilter::filter(&call));
+ assert_eq!(Scheduler::do_schedule(DispatchTime::At(4), None, 127, root(), call).unwrap(), (4, 0));
+
+ run_to_block(3);
+ assert!(logger::log().is_empty());
+
+ assert_eq!(Scheduler::do_reschedule((4, 0), DispatchTime::At(6)).unwrap(), (6, 0));
+
+ assert_noop!(Scheduler::do_reschedule((6, 0), DispatchTime::At(6)), Error::<Test>::RescheduleNoChange);
+
+ run_to_block(4);
+ assert!(logger::log().is_empty());
+
+ run_to_block(6);
+ assert_eq!(logger::log(), vec![(root(), 42u32)]);
+
+ run_to_block(100);
+ assert_eq!(logger::log(), vec![(root(), 42u32)]);
+ });
+ }
+
+ #[test]
+ fn reschedule_named_works() {
+ new_test_ext().execute_with(|| {
+ let call = Call::Logger(logger::Call::log(42, 1000));
+ assert!(!<Test as frame_system::Config>::BaseCallFilter::filter(&call));
+ assert_eq!(Scheduler::do_schedule_named(
+ 1u32.encode(), DispatchTime::At(4), None, 127, root(), call
+ ).unwrap(), (4, 0));
+
+ run_to_block(3);
+ assert!(logger::log().is_empty());
+
+ assert_eq!(Scheduler::do_reschedule_named(1u32.encode(), DispatchTime::At(6)).unwrap(), (6, 0));
+
+ assert_noop!(Scheduler::do_reschedule_named(1u32.encode(), DispatchTime::At(6)), Error::<Test>::RescheduleNoChange);
+
+ run_to_block(4);
+ assert!(logger::log().is_empty());
+
+ run_to_block(6);
+ assert_eq!(logger::log(), vec![(root(), 42u32)]);
+
+ run_to_block(100);
+ assert_eq!(logger::log(), vec![(root(), 42u32)]);
+ });
+ }
+
+ #[test]
+ fn reschedule_named_perodic_works() {
+ new_test_ext().execute_with(|| {
+ let call = Call::Logger(logger::Call::log(42, 1000));
+ assert!(!<Test as frame_system::Config>::BaseCallFilter::filter(&call));
+ assert_eq!(Scheduler::do_schedule_named(
+ 1u32.encode(), DispatchTime::At(4), Some((3, 3)), 127, root(), call
+ ).unwrap(), (4, 0));
+
+ run_to_block(3);
+ assert!(logger::log().is_empty());
+
+ assert_eq!(Scheduler::do_reschedule_named(1u32.encode(), DispatchTime::At(5)).unwrap(), (5, 0));
+ assert_eq!(Scheduler::do_reschedule_named(1u32.encode(), DispatchTime::At(6)).unwrap(), (6, 0));
+
+ run_to_block(5);
+ assert!(logger::log().is_empty());
+
+ run_to_block(6);
+ assert_eq!(logger::log(), vec![(root(), 42u32)]);
+
+ assert_eq!(Scheduler::do_reschedule_named(1u32.encode(), DispatchTime::At(10)).unwrap(), (10, 0));
+
+ run_to_block(9);
+ assert_eq!(logger::log(), vec![(root(), 42u32)]);
+
+ run_to_block(10);
+ assert_eq!(logger::log(), vec![(root(), 42u32), (root(), 42u32)]);
+
+ run_to_block(13);
+ assert_eq!(logger::log(), vec![(root(), 42u32), (root(), 42u32), (root(), 42u32)]);
+
+ run_to_block(100);
+ assert_eq!(logger::log(), vec![(root(), 42u32), (root(), 42u32), (root(), 42u32)]);
+ });
+ }
+
+ #[test]
+ fn cancel_named_scheduling_works_with_normal_cancel() {
+ new_test_ext().execute_with(|| {
+ // at #4.
+ Scheduler::do_schedule_named(
+ 1u32.encode(), DispatchTime::At(4), None, 127, root(), Call::Logger(logger::Call::log(69, 1000))
+ ).unwrap();
+ let i = Scheduler::do_schedule(
+ DispatchTime::At(4), None, 127, root(), Call::Logger(logger::Call::log(42, 1000))
+ ).unwrap();
+ run_to_block(3);
+ assert!(logger::log().is_empty());
+ assert_ok!(Scheduler::do_cancel_named(None, 1u32.encode()));
+ assert_ok!(Scheduler::do_cancel(None, i));
+ run_to_block(100);
+ assert!(logger::log().is_empty());
+ });
+ }
+
+ #[test]
+ fn cancel_named_periodic_scheduling_works() {
+ new_test_ext().execute_with(|| {
+ // at #4, every 3 blocks, 3 times.
+ Scheduler::do_schedule_named(
+ 1u32.encode(),
+ DispatchTime::At(4),
+ Some((3, 3)),
+ 127,
+ root(),
+ Call::Logger(logger::Call::log(42, 1000))
+ ).unwrap();
+ // same id results in error.
+ assert!(Scheduler::do_schedule_named(
+ 1u32.encode(),
+ DispatchTime::At(4),
+ None,
+ 127,
+ root(),
+ Call::Logger(logger::Call::log(69, 1000))
+ ).is_err());
+ // different id is ok.
+ Scheduler::do_schedule_named(
+ 2u32.encode(), DispatchTime::At(8), None, 127, root(), Call::Logger(logger::Call::log(69, 1000))
+ ).unwrap();
+ run_to_block(3);
+ assert!(logger::log().is_empty());
+ run_to_block(4);
+ assert_eq!(logger::log(), vec![(root(), 42u32)]);
+ run_to_block(6);
+ assert_ok!(Scheduler::do_cancel_named(None, 1u32.encode()));
+ run_to_block(100);
+ assert_eq!(logger::log(), vec![(root(), 42u32), (root(), 69u32)]);
+ });
+ }
+
+ #[test]
+ fn scheduler_respects_weight_limits() {
+ new_test_ext().execute_with(|| {
+ assert_ok!(Scheduler::do_schedule(
+ DispatchTime::At(4),
+ None,
+ 127,
+ root(),
+ Call::Logger(logger::Call::log(42, MaximumSchedulerWeight::get() / 2))
+ ));
+ assert_ok!(Scheduler::do_schedule(
+ DispatchTime::At(4),
+ None,
+ 127,
+ root(), Call::Logger(logger::Call::log(69, MaximumSchedulerWeight::get() / 2))
+ ));
+ // 69 and 42 do not fit together
+ run_to_block(4);
+ assert_eq!(logger::log(), vec![(root(), 42u32)]);
+ run_to_block(5);
+ assert_eq!(logger::log(), vec![(root(), 42u32), (root(), 69u32)]);
+ });
+ }
+
+ #[test]
+ fn scheduler_respects_hard_deadlines_more() {
+ new_test_ext().execute_with(|| {
+ assert_ok!(Scheduler::do_schedule(
+ DispatchTime::At(4),
+ None,
+ 0,
+ root(),
+ Call::Logger(logger::Call::log(42, MaximumSchedulerWeight::get() / 2))
+ ));
+ assert_ok!(Scheduler::do_schedule(
+ DispatchTime::At(4),
+ None,
+ 0,
+ root(),
+ Call::Logger(logger::Call::log(69, MaximumSchedulerWeight::get() / 2))
+ ));
+ // With base weights, 69 and 42 should not fit together, but do because of hard deadlines
+ run_to_block(4);
+ assert_eq!(logger::log(), vec![(root(), 42u32), (root(), 69u32)]);
+ });
+ }
+
+ #[test]
+ fn scheduler_respects_priority_ordering() {
+ new_test_ext().execute_with(|| {
+ assert_ok!(Scheduler::do_schedule(
+ DispatchTime::At(4),
+ None,
+ 1,
+ root(),
+ Call::Logger(logger::Call::log(42, MaximumSchedulerWeight::get() / 2))
+ ));
+ assert_ok!(Scheduler::do_schedule(
+ DispatchTime::At(4),
+ None,
+ 0,
+ root(),
+ Call::Logger(logger::Call::log(69, MaximumSchedulerWeight::get() / 2))
+ ));
+ run_to_block(4);
+ assert_eq!(logger::log(), vec![(root(), 69u32), (root(), 42u32)]);
+ });
+ }
+
+ #[test]
+ fn scheduler_respects_priority_ordering_with_soft_deadlines() {
+ new_test_ext().execute_with(|| {
+ assert_ok!(Scheduler::do_schedule(
+ DispatchTime::At(4),
+ None,
+ 255,
+ root(), Call::Logger(logger::Call::log(42, MaximumSchedulerWeight::get() / 3))
+ ));
+ assert_ok!(Scheduler::do_schedule(
+ DispatchTime::At(4),
+ None,
+ 127,
+ root(), Call::Logger(logger::Call::log(69, MaximumSchedulerWeight::get() / 2))
+ ));
+ assert_ok!(Scheduler::do_schedule(
+ DispatchTime::At(4),
+ None,
+ 126,
+ root(), Call::Logger(logger::Call::log(2600, MaximumSchedulerWeight::get() / 2))
+ ));
+
+ // 2600 does not fit with 69 or 42, but has higher priority, so will go through
+ run_to_block(4);
+ assert_eq!(logger::log(), vec![(root(), 2600u32)]);
+ // 69 and 42 fit together
+ run_to_block(5);
+ assert_eq!(logger::log(), vec![(root(), 2600u32), (root(), 69u32), (root(), 42u32)]);
+ });
+ }
+
+ #[test]
+ fn on_initialize_weight_is_correct() {
+ new_test_ext().execute_with(|| {
+ let base_weight: Weight = <Test as frame_system::Config>::DbWeight::get().reads_writes(1, 2);
+ let base_multiplier = 0;
+ let named_multiplier = <Test as frame_system::Config>::DbWeight::get().writes(1);
+ let periodic_multiplier = <Test as frame_system::Config>::DbWeight::get().reads_writes(1, 1);
+
+ // Named
+ assert_ok!(
+ Scheduler::do_schedule_named(
+ 1u32.encode(), DispatchTime::At(1), None, 255, root(),
+ Call::Logger(logger::Call::log(3, MaximumSchedulerWeight::get() / 3))
+ )
+ );
+ // Anon Periodic
+ assert_ok!(Scheduler::do_schedule(
+ DispatchTime::At(1),
+ Some((1000, 3)),
+ 128,
+ root(),
+ Call::Logger(logger::Call::log(42, MaximumSchedulerWeight::get() / 3))
+ ));
+ // Anon
+ assert_ok!(Scheduler::do_schedule(
+ DispatchTime::At(1),
+ None,
+ 127,
+ root(),
+ Call::Logger(logger::Call::log(69, MaximumSchedulerWeight::get() / 2))
+ ));
+ // Named Periodic
+ assert_ok!(Scheduler::do_schedule_named(
+ 2u32.encode(), DispatchTime::At(1), Some((1000, 3)), 126, root(),
+ Call::Logger(logger::Call::log(2600, MaximumSchedulerWeight::get() / 2)))
+ );
+
+ // Will include the named periodic only
+ let actual_weight = Scheduler::on_initialize(1);
+ let call_weight = MaximumSchedulerWeight::get() / 2;
+ assert_eq!(
+ actual_weight, call_weight + base_weight + base_multiplier + named_multiplier + periodic_multiplier
+ );
+ assert_eq!(logger::log(), vec![(root(), 2600u32)]);
+
+ // Will include anon and anon periodic
+ let actual_weight = Scheduler::on_initialize(2);
+ let call_weight = MaximumSchedulerWeight::get() / 2 + MaximumSchedulerWeight::get() / 3;
+ assert_eq!(actual_weight, call_weight + base_weight + base_multiplier * 2 + periodic_multiplier);
+ assert_eq!(logger::log(), vec![(root(), 2600u32), (root(), 69u32), (root(), 42u32)]);
+
+ // Will include named only
+ let actual_weight = Scheduler::on_initialize(3);
+ let call_weight = MaximumSchedulerWeight::get() / 3;
+ assert_eq!(actual_weight, call_weight + base_weight + base_multiplier + named_multiplier);
+ assert_eq!(logger::log(), vec![(root(), 2600u32), (root(), 69u32), (root(), 42u32), (root(), 3u32)]);
+
+ // Will contain none
+ let actual_weight = Scheduler::on_initialize(4);
+ assert_eq!(actual_weight, 0);
+ });
+ }
+
+ #[test]
+ fn root_calls_works() {
+ new_test_ext().execute_with(|| {
+ let call = Box::new(Call::Logger(logger::Call::log(69, 1000)));
+ let call2 = Box::new(Call::Logger(logger::Call::log(42, 1000)));
+ assert_ok!(Scheduler::schedule_named(Origin::root(), 1u32.encode(), 4, None, 127, call));
+ assert_ok!(Scheduler::schedule(Origin::root(), 4, None, 127, call2));
+ run_to_block(3);
+ // Scheduled calls are in the agenda.
+ assert_eq!(Agenda::<Test>::get(4).len(), 2);
+ assert!(logger::log().is_empty());
+ assert_ok!(Scheduler::cancel_named(Origin::root(), 1u32.encode()));
+ assert_ok!(Scheduler::cancel(Origin::root(), 4, 1));
+ // Scheduled calls are made NONE, so should not effect state
+ run_to_block(100);
+ assert!(logger::log().is_empty());
+ });
+ }
+
+ #[test]
+ fn fails_to_schedule_task_in_the_past() {
+ new_test_ext().execute_with(|| {
+ run_to_block(3);
+
+ let call = Box::new(Call::Logger(logger::Call::log(69, 1000)));
+ let call2 = Box::new(Call::Logger(logger::Call::log(42, 1000)));
+
+ assert_err!(
+ Scheduler::schedule_named(Origin::root(), 1u32.encode(), 2, None, 127, call),
+ Error::<Test>::TargetBlockNumberInPast,
+ );
+
+ assert_err!(
+ Scheduler::schedule(Origin::root(), 2, None, 127, call2.clone()),
+ Error::<Test>::TargetBlockNumberInPast,
+ );
+
+ assert_err!(
+ Scheduler::schedule(Origin::root(), 3, None, 127, call2),
+ Error::<Test>::TargetBlockNumberInPast,
+ );
+ });
+ }
+
+ #[test]
+ fn should_use_orign() {
+ new_test_ext().execute_with(|| {
+ let call = Box::new(Call::Logger(logger::Call::log(69, 1000)));
+ let call2 = Box::new(Call::Logger(logger::Call::log(42, 1000)));
+ assert_ok!(
+ Scheduler::schedule_named(system::RawOrigin::Signed(1).into(), 1u32.encode(), 4, None, 127, call)
+ );
+ assert_ok!(Scheduler::schedule(system::RawOrigin::Signed(1).into(), 4, None, 127, call2));
+ run_to_block(3);
+ // Scheduled calls are in the agenda.
+ assert_eq!(Agenda::<Test>::get(4).len(), 2);
+ assert!(logger::log().is_empty());
+ assert_ok!(Scheduler::cancel_named(system::RawOrigin::Signed(1).into(), 1u32.encode()));
+ assert_ok!(Scheduler::cancel(system::RawOrigin::Signed(1).into(), 4, 1));
+ // Scheduled calls are made NONE, so should not effect state
+ run_to_block(100);
+ assert!(logger::log().is_empty());
+ });
+ }
+
+ #[test]
+ fn should_check_orign() {
+ new_test_ext().execute_with(|| {
+ let call = Box::new(Call::Logger(logger::Call::log(69, 1000)));
+ let call2 = Box::new(Call::Logger(logger::Call::log(42, 1000)));
+ assert_noop!(
+ Scheduler::schedule_named(system::RawOrigin::Signed(2).into(), 1u32.encode(), 4, None, 127, call),
+ BadOrigin
+ );
+ assert_noop!(Scheduler::schedule(system::RawOrigin::Signed(2).into(), 4, None, 127, call2), BadOrigin);
+ });
+ }
+
+ #[test]
+ fn should_check_orign_for_cancel() {
+ new_test_ext().execute_with(|| {
+ let call = Box::new(Call::Logger(logger::Call::log_without_filter(69, 1000)));
+ let call2 = Box::new(Call::Logger(logger::Call::log_without_filter(42, 1000)));
+ assert_ok!(
+ Scheduler::schedule_named(system::RawOrigin::Signed(1).into(), 1u32.encode(), 4, None, 127, call)
+ );
+ assert_ok!(Scheduler::schedule(system::RawOrigin::Signed(1).into(), 4, None, 127, call2));
+ run_to_block(3);
+ // Scheduled calls are in the agenda.
+ assert_eq!(Agenda::<Test>::get(4).len(), 2);
+ assert!(logger::log().is_empty());
+ assert_noop!(Scheduler::cancel_named(system::RawOrigin::Signed(2).into(), 1u32.encode()), BadOrigin);
+ assert_noop!(Scheduler::cancel(system::RawOrigin::Signed(2).into(), 4, 1), BadOrigin);
+ assert_noop!(Scheduler::cancel_named(system::RawOrigin::Root.into(), 1u32.encode()), BadOrigin);
+ assert_noop!(Scheduler::cancel(system::RawOrigin::Root.into(), 4, 1), BadOrigin);
+ run_to_block(5);
+ assert_eq!(
+ logger::log(),
+ vec![(system::RawOrigin::Signed(1).into(), 69u32), (system::RawOrigin::Signed(1).into(), 42u32)]
+ );
+ });
+ }
+
+ #[test]
+ fn migration_to_v2_works() {
+ new_test_ext().execute_with(|| {
+ for i in 0..3u64 {
+ let k = i.twox_64_concat();
+ let old = vec![
+ Some(ScheduledV1 {
+ maybe_id: None,
+ priority: i as u8 + 10,
+ call: Call::Logger(logger::Call::log(96, 100)),
+ maybe_periodic: None,
+ }),
+ None,
+ Some(ScheduledV1 {
+ maybe_id: Some(b"test".to_vec()),
+ priority: 123,
+ call: Call::Logger(logger::Call::log(69, 1000)),
+ maybe_periodic: Some((456u64, 10)),
+ }),
+ ];
+ frame_support::migration::put_storage_value(
+ b"Scheduler",
+ b"Agenda",
+ &k,
+ old,
+ );
+ }
+
+ assert_eq!(StorageVersion::get(), Releases::V1);
+
+ assert!(Scheduler::migrate_v1_to_t2());
+
+ assert_eq_uvec!(Agenda::<Test>::iter().collect::<Vec<_>>(), vec![
+ (
+ 0,
+ vec![
+ Some(ScheduledV2 {
+ maybe_id: None,
+ priority: 10,
+ call: Call::Logger(logger::Call::log(96, 100)),
+ maybe_periodic: None,
+ origin: root(),
+ _phantom: PhantomData::<u64>::default(),
+ }),
+ None,
+ Some(ScheduledV2 {
+ maybe_id: Some(b"test".to_vec()),
+ priority: 123,
+ call: Call::Logger(logger::Call::log(69, 1000)),
+ maybe_periodic: Some((456u64, 10)),
+ origin: root(),
+ _phantom: PhantomData::<u64>::default(),
+ }),
+ ]),
+ (
+ 1,
+ vec![
+ Some(ScheduledV2 {
+ maybe_id: None,
+ priority: 11,
+ call: Call::Logger(logger::Call::log(96, 100)),
+ maybe_periodic: None,
+ origin: root(),
+ _phantom: PhantomData::<u64>::default(),
+ }),
+ None,
+ Some(ScheduledV2 {
+ maybe_id: Some(b"test".to_vec()),
+ priority: 123,
+ call: Call::Logger(logger::Call::log(69, 1000)),
+ maybe_periodic: Some((456u64, 10)),
+ origin: root(),
+ _phantom: PhantomData::<u64>::default(),
+ }),
+ ]
+ ),
+ (
+ 2,
+ vec![
+ Some(ScheduledV2 {
+ maybe_id: None,
+ priority: 12,
+ call: Call::Logger(logger::Call::log(96, 100)),
+ maybe_periodic: None,
+ origin: root(),
+ _phantom: PhantomData::<u64>::default(),
+ }),
+ None,
+ Some(ScheduledV2 {
+ maybe_id: Some(b"test".to_vec()),
+ priority: 123,
+ call: Call::Logger(logger::Call::log(69, 1000)),
+ maybe_periodic: Some((456u64, 10)),
+ origin: root(),
+ _phantom: PhantomData::<u64>::default(),
+ }),
+ ]
+ )
+ ]);
+
+ assert_eq!(StorageVersion::get(), Releases::V2);
+ });
+ }
+
+ #[test]
+ fn test_migrate_origin() {
+ new_test_ext().execute_with(|| {
+ for i in 0..3u64 {
+ let k = i.twox_64_concat();
+ let old: Vec<Option<Scheduled<_, _, u32, u64>>> = vec![
+ Some(Scheduled {
+ maybe_id: None,
+ priority: i as u8 + 10,
+ call: Call::Logger(logger::Call::log(96, 100)),
+ origin: 3u32,
+ maybe_periodic: None,
+ _phantom: Default::default(),
+ }),
+ None,
+ Some(Scheduled {
+ maybe_id: Some(b"test".to_vec()),
+ priority: 123,
+ origin: 2u32,
+ call: Call::Logger(logger::Call::log(69, 1000)),
+ maybe_periodic: Some((456u64, 10)),
+ _phantom: Default::default(),
+ }),
+ ];
+ frame_support::migration::put_storage_value(
+ b"Scheduler",
+ b"Agenda",
+ &k,
+ old,
+ );
+ }
+
+ impl Into<OriginCaller> for u32 {
+ fn into(self) -> OriginCaller {
+ match self {
+ 3u32 => system::RawOrigin::Root.into(),
+ 2u32 => system::RawOrigin::None.into(),
+ _ => unreachable!("test make no use of it"),
+ }
+ }
+ }
+
+ Scheduler::migrate_origin::<u32>();
+
+ assert_eq_uvec!(Agenda::<Test>::iter().collect::<Vec<_>>(), vec![
+ (
+ 0,
+ vec![
+ Some(ScheduledV2::<_, _, OriginCaller, u64> {
+ maybe_id: None,
+ priority: 10,
+ call: Call::Logger(logger::Call::log(96, 100)),
+ maybe_periodic: None,
+ origin: system::RawOrigin::Root.into(),
+ _phantom: PhantomData::<u64>::default(),
+ }),
+ None,
+ Some(ScheduledV2 {
+ maybe_id: Some(b"test".to_vec()),
+ priority: 123,
+ call: Call::Logger(logger::Call::log(69, 1000)),
+ maybe_periodic: Some((456u64, 10)),
+ origin: system::RawOrigin::None.into(),
+ _phantom: PhantomData::<u64>::default(),
+ }),
+ ]),
+ (
+ 1,
+ vec![
+ Some(ScheduledV2 {
+ maybe_id: None,
+ priority: 11,
+ call: Call::Logger(logger::Call::log(96, 100)),
+ maybe_periodic: None,
+ origin: system::RawOrigin::Root.into(),
+ _phantom: PhantomData::<u64>::default(),
+ }),
+ None,
+ Some(ScheduledV2 {
+ maybe_id: Some(b"test".to_vec()),
+ priority: 123,
+ call: Call::Logger(logger::Call::log(69, 1000)),
+ maybe_periodic: Some((456u64, 10)),
+ origin: system::RawOrigin::None.into(),
+ _phantom: PhantomData::<u64>::default(),
+ }),
+ ]
+ ),
+ (
+ 2,
+ vec![
+ Some(ScheduledV2 {
+ maybe_id: None,
+ priority: 12,
+ call: Call::Logger(logger::Call::log(96, 100)),
+ maybe_periodic: None,
+ origin: system::RawOrigin::Root.into(),
+ _phantom: PhantomData::<u64>::default(),
+ }),
+ None,
+ Some(ScheduledV2 {
+ maybe_id: Some(b"test".to_vec()),
+ priority: 123,
+ call: Call::Logger(logger::Call::log(69, 1000)),
+ maybe_periodic: Some((456u64, 10)),
+ origin: system::RawOrigin::None.into(),
+ _phantom: PhantomData::<u64>::default(),
+ }),
+ ]
+ )
+ ]);
+ });
+ }
+}
pallets/scheduler/src/weights.rsdiffbeforeafterboth--- /dev/null
+++ b/pallets/scheduler/src/weights.rs
@@ -0,0 +1,118 @@
+// This file is part of Substrate.
+
+// Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
+// SPDX-License-Identifier: Apache-2.0
+
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+//! Weights for pallet_scheduler
+//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0
+//! DATE: 2020-10-27, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: []
+//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
+
+// Executed Command:
+// target/release/substrate
+// benchmark
+// --chain=dev
+// --steps=50
+// --repeat=20
+// --pallet=pallet_scheduler
+// --extrinsic=*
+// --execution=wasm
+// --wasm-execution=compiled
+// --heap-pages=4096
+// --output=./frame/scheduler/src/weights.rs
+// --template=./.maintain/frame-weight-template.hbs
+
+
+#![allow(unused_parens)]
+#![allow(unused_imports)]
+
+use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
+use sp_std::marker::PhantomData;
+
+/// Weight functions needed for pallet_scheduler.
+pub trait WeightInfo {
+ fn schedule(s: u32, ) -> Weight;
+ fn cancel(s: u32, ) -> Weight;
+ fn schedule_named(s: u32, ) -> Weight;
+ fn cancel_named(s: u32, ) -> Weight;
+
+}
+
+/// Weights for pallet_scheduler using the Substrate node and recommended hardware.
+pub struct SubstrateWeight<T>(PhantomData<T>);
+impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
+ fn schedule(s: u32, ) -> Weight {
+ (35_029_000 as Weight)
+ .saturating_add((77_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(T::DbWeight::get().reads(1 as Weight))
+ .saturating_add(T::DbWeight::get().writes(1 as Weight))
+
+ }
+ fn cancel(s: u32, ) -> Weight {
+ (31_419_000 as Weight)
+ .saturating_add((4_015_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(T::DbWeight::get().reads(1 as Weight))
+ .saturating_add(T::DbWeight::get().writes(2 as Weight))
+
+ }
+ fn schedule_named(s: u32, ) -> Weight {
+ (44_752_000 as Weight)
+ .saturating_add((123_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(T::DbWeight::get().reads(2 as Weight))
+ .saturating_add(T::DbWeight::get().writes(2 as Weight))
+
+ }
+ fn cancel_named(s: u32, ) -> Weight {
+ (35_712_000 as Weight)
+ .saturating_add((4_008_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(T::DbWeight::get().reads(2 as Weight))
+ .saturating_add(T::DbWeight::get().writes(2 as Weight))
+
+ }
+
+}
+
+// For backwards compatibility and tests
+impl WeightInfo for () {
+ fn schedule(s: u32, ) -> Weight {
+ (35_029_000 as Weight)
+ .saturating_add((77_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(RocksDbWeight::get().reads(1 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(1 as Weight))
+
+ }
+ fn cancel(s: u32, ) -> Weight {
+ (31_419_000 as Weight)
+ .saturating_add((4_015_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(RocksDbWeight::get().reads(1 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(2 as Weight))
+
+ }
+ fn schedule_named(s: u32, ) -> Weight {
+ (44_752_000 as Weight)
+ .saturating_add((123_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(RocksDbWeight::get().reads(2 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(2 as Weight))
+
+ }
+ fn cancel_named(s: u32, ) -> Weight {
+ (35_712_000 as Weight)
+ .saturating_add((4_008_000 as Weight).saturating_mul(s as Weight))
+ .saturating_add(RocksDbWeight::get().reads(2 as Weight))
+ .saturating_add(RocksDbWeight::get().writes(2 as Weight))
+
+ }
+
+}
primitives/Cargo.tomldiffbeforeafterboth--- /dev/null
+++ b/primitives/Cargo.toml
@@ -0,0 +1,30 @@
+[package]
+name = "nft-data-structs"
+authors = ['Substrate DevHub <https://github.com/substrate-developer-hub>']
+description = "Nft data structs definitions"
+edition = "2018"
+license = 'GPL-3.0'
+homepage = "https://substrate.dev"
+repository = 'https://github.com/clover-network/clover'
+version = '0.9.0'
+
+[dependencies]
+codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
+serde = { version = "1.0.101", optional = true }
+frame-support = { default-features = false, version = '3.0.0' }
+frame-system = { default-features = false, version = '3.0.0' }
+pallet-contracts = { default-features = false, version = '3.0.0' }
+sp-core = { version = "3.0.0", default-features = false }
+sp-runtime = { version = "3.0.0", default-features = false }
+
+[features]
+default = ["std"]
+std = [
+ "serde",
+ "codec/std",
+ "frame-system/std",
+ "frame-support/std",
+ "sp-runtime/std",
+ "sp-core/std",
+ "pallet-contracts/std",
+]
\ No newline at end of file
primitives/src/lib.rsdiffbeforeafterboth--- /dev/null
+++ b/primitives/src/lib.rs
@@ -0,0 +1,306 @@
+#![cfg_attr(not(feature = "std"), no_std)]
+
+use codec::{Decode, Encode};
+
+#[cfg(feature = "std")]
+use serde::{Deserialize, Serialize};
+
+use frame_system;
+use core::ops::{Deref, DerefMut};
+use sp_runtime::sp_std::prelude::Vec;
+pub use frame_support::{
+ construct_runtime, decl_event, decl_module, decl_storage, decl_error,
+ dispatch::DispatchResult,
+ ensure, fail, parameter_types,
+ traits::{
+ Currency, ExistenceRequirement, Get, Imbalance, KeyOwnerProofSystem, OnUnbalanced,
+ Randomness, IsSubType, WithdrawReasons,
+ },
+ weights::{
+ constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, WEIGHT_PER_SECOND},
+ DispatchInfo, GetDispatchInfo, IdentityFee, Pays, PostDispatchInfo, Weight,
+ WeightToFeePolynomial, DispatchClass,
+ },
+ StorageValue,
+ transactional,
+};
+
+pub const MAX_DECIMAL_POINTS: DecimalPoints = 30;
+pub const MAX_REFUNGIBLE_PIECES: u128 = 1_000_000_000_000_000_000_000;
+pub const MAX_SPONSOR_TIMEOUT: u32 = 10_368_000;
+pub const MAX_TOKEN_OWNERSHIP: u32 = 10_000_000;
+
+pub type CollectionId = u32;
+pub type TokenId = u32;
+pub type DecimalPoints = u8;
+
+#[derive(Encode, Decode, Eq, Debug, Clone, PartialEq)]
+#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
+pub enum CollectionMode {
+ Invalid,
+ NFT,
+ // decimal points
+ Fungible(DecimalPoints),
+ ReFungible,
+}
+
+impl Default for CollectionMode {
+ fn default() -> Self {
+ Self::Invalid
+ }
+}
+
+impl Into<u8> for CollectionMode {
+ fn into(self) -> u8 {
+ match self {
+ CollectionMode::Invalid => 0,
+ CollectionMode::NFT => 1,
+ CollectionMode::Fungible(_) => 2,
+ CollectionMode::ReFungible => 3,
+ }
+ }
+}
+
+pub trait SponsoringResolve<AccountId, Call> {
+ fn resolve(
+ who: &AccountId,
+ call: &Call) -> Option<AccountId>;
+}
+
+#[derive(Encode, Decode, Eq, Debug, Clone, PartialEq)]
+#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
+pub enum AccessMode {
+ Normal,
+ WhiteList,
+}
+impl Default for AccessMode {
+ fn default() -> Self {
+ Self::Normal
+ }
+}
+
+#[derive(Encode, Decode, Eq, Debug, Clone, PartialEq)]
+#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
+pub enum SchemaVersion {
+ ImageURL,
+ Unique,
+}
+impl Default for SchemaVersion {
+ fn default() -> Self {
+ Self::ImageURL
+ }
+}
+
+#[derive(Encode, Decode, Default, Debug, Clone, PartialEq)]
+#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
+pub struct Ownership<AccountId> {
+ pub owner: AccountId,
+ pub fraction: u128,
+}
+
+#[derive(Encode, Decode, Debug, Clone, PartialEq)]
+#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
+pub enum SponsorshipState<AccountId> {
+ /// The fees are applied to the transaction sender
+ Disabled,
+ Unconfirmed(AccountId),
+ /// Transactions are sponsored by specified account
+ Confirmed(AccountId),
+}
+
+impl<AccountId> SponsorshipState<AccountId> {
+ pub fn sponsor(&self) -> Option<&AccountId> {
+ match self {
+ Self::Confirmed(sponsor) => Some(sponsor),
+ _ => None,
+ }
+ }
+
+ pub fn pending_sponsor(&self) -> Option<&AccountId> {
+ match self {
+ Self::Unconfirmed(sponsor) | Self::Confirmed(sponsor) => Some(sponsor),
+ _ => None,
+ }
+ }
+
+ pub fn confirmed(&self) -> bool {
+ matches!(self, Self::Confirmed(_))
+ }
+}
+
+impl<T> Default for SponsorshipState<T> {
+ fn default() -> Self {
+ Self::Disabled
+ }
+}
+
+#[derive(Encode, Decode, Clone, PartialEq)]
+#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
+pub struct Collection<T: frame_system::Config> {
+ pub owner: T::AccountId,
+ pub mode: CollectionMode,
+ pub access: AccessMode,
+ pub decimal_points: DecimalPoints,
+ pub name: Vec<u16>, // 64 include null escape char
+ pub description: Vec<u16>, // 256 include null escape char
+ pub token_prefix: Vec<u8>, // 16 include null escape char
+ pub mint_mode: bool,
+ pub offchain_schema: Vec<u8>,
+ pub schema_version: SchemaVersion,
+ pub sponsorship: SponsorshipState<T::AccountId>,
+ pub limits: CollectionLimits<T::BlockNumber>, // Collection private restrictions
+ pub variable_on_chain_schema: Vec<u8>, //
+ pub const_on_chain_schema: Vec<u8>, //
+}
+
+pub struct CollectionHandle<T: frame_system::Config> {
+ pub id: CollectionId,
+ pub collection: Collection<T>,
+}
+
+impl<T: frame_system::Config> Deref for CollectionHandle<T> {
+ type Target = Collection<T>;
+
+ fn deref(&self) -> &Self::Target {
+ &self.collection
+ }
+}
+
+impl<T: frame_system::Config> DerefMut for CollectionHandle<T> {
+ fn deref_mut(&mut self) -> &mut Self::Target {
+ &mut self.collection
+ }
+}
+
+#[derive(Encode, Decode, Debug, Clone, PartialEq)]
+#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
+pub struct NftItemType<AccountId> {
+ pub owner: AccountId,
+ pub const_data: Vec<u8>,
+ pub variable_data: Vec<u8>,
+}
+
+#[derive(Encode, Decode, Default, Debug, Clone, PartialEq)]
+#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
+pub struct FungibleItemType {
+ pub value: u128,
+}
+
+#[derive(Encode, Decode, Debug, Clone, PartialEq)]
+#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
+pub struct ReFungibleItemType<AccountId> {
+ pub owner: Vec<Ownership<AccountId>>,
+ pub const_data: Vec<u8>,
+ pub variable_data: Vec<u8>,
+}
+
+
+#[derive(Encode, Decode, Debug, Clone, PartialEq)]
+#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
+pub struct CollectionLimits<BlockNumber: Encode + Decode> {
+ pub account_token_ownership_limit: u32,
+ pub sponsored_data_size: u32,
+ /// None - setVariableMetadata is not sponsored
+ /// Some(v) - setVariableMetadata is sponsored
+ /// if there is v block between txs
+ pub sponsored_data_rate_limit: Option<BlockNumber>,
+ pub token_limit: u32,
+
+ // Timeouts for item types in passed blocks
+ pub sponsor_transfer_timeout: u32,
+ pub owner_can_transfer: bool,
+ pub owner_can_destroy: bool,
+}
+
+impl<BlockNumber: Encode + Decode> Default for CollectionLimits<BlockNumber> {
+ fn default() -> Self {
+ Self {
+ account_token_ownership_limit: 10_000_000,
+ token_limit: u32::max_value(),
+ sponsored_data_size: u32::MAX,
+ sponsored_data_rate_limit: None,
+ sponsor_transfer_timeout: 14400,
+ owner_can_transfer: true,
+ owner_can_destroy: true
+ }
+ }
+}
+
+#[derive(Encode, Decode, Default, Debug, Clone, PartialEq)]
+#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
+pub struct ChainLimits {
+ pub collection_numbers_limit: u32,
+ pub account_token_ownership_limit: u32,
+ pub collections_admins_limit: u64,
+ pub custom_data_limit: u32,
+
+ // Timeouts for item types in passed blocks
+ pub nft_sponsor_transfer_timeout: u32,
+ pub fungible_sponsor_transfer_timeout: u32,
+ pub refungible_sponsor_transfer_timeout: u32,
+
+ // Schema limits
+ pub offchain_schema_limit: u32,
+ pub variable_on_chain_schema_limit: u32,
+ pub const_on_chain_schema_limit: u32,
+}
+
+
+#[derive(Encode, Decode, Default, Debug, Clone, PartialEq)]
+#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
+pub struct CreateNftData {
+ pub const_data: Vec<u8>,
+ pub variable_data: Vec<u8>,
+}
+
+#[derive(Encode, Decode, Default, Debug, Clone, PartialEq)]
+#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
+pub struct CreateFungibleData {
+ pub value: u128,
+}
+
+#[derive(Encode, Decode, Default, Debug, Clone, PartialEq)]
+#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
+pub struct CreateReFungibleData {
+ pub const_data: Vec<u8>,
+ pub variable_data: Vec<u8>,
+ pub pieces: u128,
+}
+
+#[derive(Encode, Decode, Debug, Clone, PartialEq)]
+#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
+pub enum CreateItemData {
+ NFT(CreateNftData),
+ Fungible(CreateFungibleData),
+ ReFungible(CreateReFungibleData),
+}
+
+impl CreateItemData {
+ pub fn len(&self) -> usize {
+ let len = match self {
+ CreateItemData::NFT(data) => data.variable_data.len() + data.const_data.len(),
+ CreateItemData::ReFungible(data) => data.variable_data.len() + data.const_data.len(),
+ _ => 0
+ };
+
+ return len;
+ }
+}
+
+impl From<CreateNftData> for CreateItemData {
+ fn from(item: CreateNftData) -> Self {
+ CreateItemData::NFT(item)
+ }
+}
+
+impl From<CreateReFungibleData> for CreateItemData {
+ fn from(item: CreateReFungibleData) -> Self {
+ CreateItemData::ReFungible(item)
+ }
+}
+
+impl From<CreateFungibleData> for CreateItemData {
+ fn from(item: CreateFungibleData) -> Self {
+ CreateItemData::Fungible(item)
+ }
+}
\ No newline at end of file
runtime/Cargo.tomldiffbeforeafterboth--- a/runtime/Cargo.toml
+++ b/runtime/Cargo.toml
@@ -26,7 +26,11 @@
# local dependencies
pallet-nft = { path = '../pallets/nft', default-features = false, version = '3.0.0' }
+nft-data-structs = { path = '../primitives', default-features = false }
pallet-inflation = { path = '../pallets/inflation', default-features = false, version = '3.0.0' }
+pallet-scheduler = { path = '../pallets/scheduler', default-features = false, version = '3.0.0' }
+pallet-nft-transaction-payment = { path = '../pallets/nft-transaction-payment', default-features = false, version = '3.0.0' }
+pallet-nft-charge-transaction = { path = '../pallets/nft-charge-transaction', default-features = false, version = '3.0.0' }
# Substrate dependencies
frame-benchmarking = { default-features = false, optional = true, version = '3.0.0' }
@@ -96,9 +100,12 @@
'pallet-transaction-payment-rpc-runtime-api/std',
'pallet-treasury/std',
'pallet-vesting/std',
-
'pallet-inflation/std',
'pallet-nft/std',
+ 'pallet-scheduler/std',
+ 'pallet-nft-charge-transaction/std',
+ 'pallet-nft-transaction-payment/std',
+ 'nft-data-structs/std',
'sp-api/std',
'sp-block-builder/std',
'sp-consensus-aura/std',
runtime/src/chain_extension.rsdiffbeforeafterboth--- a/runtime/src/chain_extension.rs
+++ b/runtime/src/chain_extension.rs
@@ -17,7 +17,8 @@
extern crate pallet_nft;
pub use pallet_nft::*;
-use crate::Runtime;
+use nft_data_structs::*;
+// use crate::Runtime;
use sp_runtime::AccountId32;
use crate::Vec;
@@ -41,7 +42,7 @@
/// The chain Extension of NFT pallet
pub struct NFTExtension;
-impl<C: Config> ChainExtension<C> for NFTExtension {
+impl<C: Config + pallet_contracts::Config> ChainExtension<C> for NFTExtension {
fn call<E: Ext>(func_id: u32, env: Environment<E, InitState>) -> Result<RetVal, DispatchError>
where
E: Ext<T = C>,
runtime/src/lib.rsdiffbeforeafterboth--- a/runtime/src/lib.rs
+++ b/runtime/src/lib.rs
@@ -24,7 +24,7 @@
create_runtime_str, generic, impl_opaque_keys,
traits::{
Convert, ConvertInto, BlakeTwo256, Block as BlockT, IdentifyAccount,
- IdentityLookup, NumberFor, Verify, AccountIdConversion,
+ IdentityLookup, NumberFor, Verify, AccountIdConversion,
},
transaction_validity::{TransactionSource, TransactionValidity},
ApplyExtrinsicResult, MultiSignature,
@@ -51,17 +51,28 @@
WeightToFeePolynomial, WeightToFeeCoefficient, WeightToFeeCoefficients
},
};
+use pallet_nft_transaction_payment::*;
+use pallet_nft_charge_transaction::*;
+use nft_data_structs::*;
use pallet_contracts::weights::WeightInfo;
// #[cfg(any(feature = "std", test))]
use frame_system::{
self as system,
- EnsureRoot,
+ EnsureRoot, EnsureSigned,
limits::{BlockWeights, BlockLength},
};
use sp_std::{prelude::*, marker::PhantomData};
use sp_arithmetic::{traits::{BaseArithmetic, Unsigned}};
use smallvec::smallvec;
+use sp_runtime::{
+ traits::{
+ Dispatchable,
+ },
+};
+use pallet_contracts::chain_extension::UncheckedFrom;
+
+
pub use pallet_timestamp::Call as TimestampCall;
mod chain_extension;
@@ -173,45 +184,8 @@
runtime_version: VERSION,
can_author_with: Default::default(),
}
-}
-
-/// Provides a membership set with only the configured aura users
-pub struct ValiudatorsOnly<Runtime: pallet_aura::Config>(PhantomData<Runtime>);
-impl frame_support::traits::Contains<AccountId> for ValiudatorsOnly<Runtime> {
- fn contains(t: &AccountId) -> bool {
- let arr: [u8; 32] = *t.as_ref();
- let raw_key: Vec<u8> = Vec::from(arr);
-
- match pallet_aura::Module::<Runtime>::authorities().iter().find(|auth| auth.to_raw_vec() == raw_key) {
- Some(_) => true,
- None => false,
- }
- }
- fn sorted_members() -> Vec<AccountId> {
- let mut members: Vec<AccountId> = Vec::new();
- for auth in pallet_aura::Module::<Runtime>::authorities() {
- let mut arr: [u8; 32] = Default::default();
- let bor_arr = auth.clone().to_raw_vec();
- let slice = bor_arr.as_slice();
- arr.copy_from_slice(slice);
- members.push(AccountId::from(arr));
- }
- members
- }
- fn count() -> usize {
- pallet_aura::Module::<Runtime>::authorities().len()
- }
}
-impl frame_support::traits::ContainsLengthBound for ValiudatorsOnly<Runtime> {
- fn min_len() -> usize {
- 1
- }
- fn max_len() -> usize {
- 100
- }
-}
-
type NegativeImbalance = <Balances as Currency<AccountId>>::NegativeImbalance;
pub struct DealWithFees;
@@ -229,21 +203,6 @@
}
}
}
-
-// impl OnUnbalanced<NegativeImbalance> for DealWithFees {
-// fn on_unbalanceds<B>(mut fees_then_tips: impl Iterator<Item=NegativeImbalance>) {
-// if let Some(fees) = fees_then_tips.next() {
-// // for fees, 100% to treasury
-// let mut split = fees.ration(100, 0);
-// if let Some(tips) = fees_then_tips.next() {
-// // for tips, if any, 100% to treasury
-// tips.ration_merge_into(100, 0, &mut split);
-// }
-// Treasury::on_unbalanced(split.0);
-// // Author::on_unbalanced(split.1);
-// }
-// }
-// }
/// We assume that ~10% of the block weight is consumed by `on_initalize` handlers.
/// This is used to limit the maximal weight of a single extrinsic.
@@ -549,6 +508,46 @@
type InflationBlockInterval = InflationBlockInterval;
}
+
+parameter_types! {
+ pub MaximumSchedulerWeight: Weight = Perbill::from_percent(50) *
+ RuntimeBlockWeights::get().max_block;
+ pub const MaxScheduledPerBlock: u32 = 50;
+}
+
+pub struct Sponsoring;
+impl SponsoringResolve<AccountId, Call> for Sponsoring {
+
+ fn resolve(who: &AccountId, call: &Call) -> Option<AccountId>
+ where
+ Call: Dispatchable<Info=DispatchInfo>,
+ Call: IsSubType<pallet_nft::Call<Runtime>>,
+ Call: IsSubType<pallet_contracts::Call<Runtime>>,
+ AccountId: AsRef<[u8]>,
+ AccountId: UncheckedFrom<Hash>
+ {
+ pallet_nft_transaction_payment::Module::<Runtime>::withdraw_type(who, call)
+ }
+}
+
+impl pallet_scheduler::Config for Runtime {
+ type Event = Event;
+ type Origin = Origin;
+ type PalletsOrigin = OriginCaller;
+ type Call = Call;
+ type MaximumWeight = MaximumSchedulerWeight;
+ type ScheduleOrigin = EnsureSigned<AccountId>;
+ type MaxScheduledPerBlock = MaxScheduledPerBlock;
+ type Sponsoring = Sponsoring;
+ type WeightInfo = ();
+}
+
+impl pallet_nft_transaction_payment::Config for Runtime {
+}
+
+impl pallet_nft_charge_transaction::Config for Runtime {
+}
+
construct_runtime!(
pub enum Runtime where
Block = Block,
@@ -564,10 +563,13 @@
Balances: pallet_balances::{Module, Call, Storage, Config<T>, Event<T>},
TransactionPayment: pallet_transaction_payment::{Module, Storage},
Sudo: pallet_sudo::{Module, Call, Config<T>, Storage, Event<T>},
- Inflation: pallet_inflation::{Module, Call, Storage},
+ Inflation: pallet_inflation::{Module, Call, Storage},
+ Scheduler: pallet_scheduler::{Module, Call, Storage, Event<T>},
Nft: pallet_nft::{Module, Call, Config<T>, Storage, Event<T>},
Treasury: pallet_treasury::{Module, Call, Storage, Config, Event<T>},
- Vesting: pallet_vesting::{Module, Call, Config<T>, Storage, Event<T>},
+ Vesting: pallet_vesting::{Module, Call, Config<T>, Storage, Event<T>},
+ NftPayment: pallet_nft_transaction_payment::{Module, Call, Storage},
+ Charging: pallet_nft_charge_transaction::{Module, Call, Storage },
}
);
@@ -589,7 +591,7 @@
system::CheckEra<Runtime>,
system::CheckNonce<Runtime>,
system::CheckWeight<Runtime>,
- pallet_nft::ChargeTransactionPayment<Runtime>,
+ pallet_nft_charge_transaction::ChargeTransactionPayment<Runtime>,
);
/// Unchecked extrinsic type as expected by this runtime.
pub type UncheckedExtrinsic = generic::UncheckedExtrinsic<Address, Call, Signature, SignedExtra>;