difftreelog
Merge remote-tracking branch 'origin/develop' into develop
in: master
62 files changed
.gitignorediffbeforeafterboth--- a/.gitignore
+++ b/.gitignore
@@ -11,6 +11,7 @@
*store_key*.json
/.idea/
+/.cargo/
tests/.vscode
cumulus-parachain/
Cargo.lockdiffbeforeafterboth--- a/Cargo.lock
+++ b/Cargo.lock
@@ -68,7 +68,7 @@
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47"
dependencies = [
- "getrandom 0.2.5",
+ "getrandom 0.2.6",
"once_cell",
"version_check",
]
@@ -188,9 +188,9 @@
[[package]]
name = "async-global-executor"
-version = "2.0.3"
+version = "2.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c026b7e44f1316b567ee750fea85103f87fcb80792b860e979f221259796ca0a"
+checksum = "c290043c9a95b05d45e952fb6383c67bcb61471f60cfa21e890dba6654234f43"
dependencies = [
"async-channel",
"async-executor",
@@ -306,9 +306,9 @@
[[package]]
name = "async-trait"
-version = "0.1.52"
+version = "0.1.53"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "061a7acccaa286c011ddc30970520b98fa40e00c9d644633fb26b5fc63a265e3"
+checksum = "ed6aa3524a2dfcf9fe180c51eae2b58738348d819517ceadf95789c51fff7600"
dependencies = [
"proc-macro2",
"quote",
@@ -392,7 +392,7 @@
checksum = "b62ddb9cb1ec0a098ad4bbf9344d0713fa193ae1a80af55febcff2627b6a00c1"
dependencies = [
"futures-core",
- "getrandom 0.2.5",
+ "getrandom 0.2.6",
"instant",
"pin-project-lite 0.2.8",
"rand 0.8.5",
@@ -440,9 +440,9 @@
[[package]]
name = "base64ct"
-version = "1.4.1"
+version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "71acf5509fc522cce1b100ac0121c635129bfd4d91cdf036bcc9b9935f97ccf5"
+checksum = "dea908e7347a8c64e378c17e30ef880ad73e3b4498346b055c2c00ea342f3179"
[[package]]
name = "beef"
@@ -990,7 +990,7 @@
dependencies = [
"camino",
"cargo-platform",
- "semver 1.0.6",
+ "semver 1.0.7",
"serde",
"serde_json",
]
@@ -1111,9 +1111,9 @@
[[package]]
name = "clap"
-version = "3.1.6"
+version = "3.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d8c93436c21e4698bacadf42917db28b23017027a4deccb35dbe47a7e7840123"
+checksum = "71c47df61d9e16dc010b55dba1952a57d8c215dbb533fd13cdd13369aac73b1c"
dependencies = [
"atty",
"bitflags",
@@ -1128,9 +1128,9 @@
[[package]]
name = "clap_derive"
-version = "3.1.4"
+version = "3.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "da95d038ede1a964ce99f49cbe27a7fb538d1da595e4b4f70b8c8f338d17bf16"
+checksum = "a3aab4734e083b809aaf5794e14e756d1c798d2c69c7f7de7a09a2f5214993c1"
dependencies = [
"heck 0.4.0",
"proc-macro-error",
@@ -1913,9 +1913,9 @@
[[package]]
name = "darling"
-version = "0.13.1"
+version = "0.13.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d0d720b8683f8dd83c65155f0530560cba68cd2bf395f6513a483caee57ff7f4"
+checksum = "a01d95850c592940db9b8194bc39f4bc0e89dee5c4265e4b1807c34a9aba453c"
dependencies = [
"darling_core",
"darling_macro",
@@ -1923,9 +1923,9 @@
[[package]]
name = "darling_core"
-version = "0.13.1"
+version = "0.13.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7a340f241d2ceed1deb47ae36c4144b2707ec7dd0b649f894cb39bb595986324"
+checksum = "859d65a907b6852c9361e3185c862aae7fafd2887876799fa55f5f99dc40d610"
dependencies = [
"fnv",
"ident_case",
@@ -1937,9 +1937,9 @@
[[package]]
name = "darling_macro"
-version = "0.13.1"
+version = "0.13.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "72c41b3b7352feb3211a0d743dc5700a4e3b60f51bd2b368892d1e0f9a95f44b"
+checksum = "9c972679f83bdf9c42bd905396b6c3588a843a17f0f16dfcfa3e2c5d57441835"
dependencies = [
"darling_core",
"quote",
@@ -2484,7 +2484,7 @@
[[package]]
name = "fc-consensus"
version = "2.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.18#7c8ce8f83e0c8a5b57655622b721f8655b161903"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.18-2#82310d1dd3189f34bd901a9ac894ad33eca5cf89"
dependencies = [
"async-trait",
"derive_more",
@@ -2511,7 +2511,7 @@
[[package]]
name = "fc-db"
version = "2.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.18#7c8ce8f83e0c8a5b57655622b721f8655b161903"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.18-2#82310d1dd3189f34bd901a9ac894ad33eca5cf89"
dependencies = [
"fp-storage",
"kvdb",
@@ -2527,7 +2527,7 @@
[[package]]
name = "fc-mapping-sync"
version = "2.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.18#7c8ce8f83e0c8a5b57655622b721f8655b161903"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.18-2#82310d1dd3189f34bd901a9ac894ad33eca5cf89"
dependencies = [
"fc-consensus",
"fc-db",
@@ -2545,7 +2545,7 @@
[[package]]
name = "fc-rpc"
version = "2.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.18#7c8ce8f83e0c8a5b57655622b721f8655b161903"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.18-2#82310d1dd3189f34bd901a9ac894ad33eca5cf89"
dependencies = [
"ethereum",
"ethereum-types",
@@ -2591,7 +2591,7 @@
[[package]]
name = "fc-rpc-core"
version = "1.1.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.18#7c8ce8f83e0c8a5b57655622b721f8655b161903"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.18-2#82310d1dd3189f34bd901a9ac894ad33eca5cf89"
dependencies = [
"ethereum",
"ethereum-types",
@@ -2725,7 +2725,7 @@
[[package]]
name = "fp-consensus"
version = "2.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.18#7c8ce8f83e0c8a5b57655622b721f8655b161903"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.18-2#82310d1dd3189f34bd901a9ac894ad33eca5cf89"
dependencies = [
"ethereum",
"parity-scale-codec",
@@ -2739,7 +2739,7 @@
[[package]]
name = "fp-evm"
version = "3.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.18#7c8ce8f83e0c8a5b57655622b721f8655b161903"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.18-2#82310d1dd3189f34bd901a9ac894ad33eca5cf89"
dependencies = [
"evm",
"impl-trait-for-tuples",
@@ -2751,9 +2751,18 @@
]
[[package]]
+name = "fp-evm-mapping"
+version = "0.1.0"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.18-2#82310d1dd3189f34bd901a9ac894ad33eca5cf89"
+dependencies = [
+ "frame-support",
+ "sp-core",
+]
+
+[[package]]
name = "fp-rpc"
version = "3.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.18#7c8ce8f83e0c8a5b57655622b721f8655b161903"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.18-2#82310d1dd3189f34bd901a9ac894ad33eca5cf89"
dependencies = [
"ethereum",
"ethereum-types",
@@ -2770,7 +2779,7 @@
[[package]]
name = "fp-self-contained"
version = "1.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.18#7c8ce8f83e0c8a5b57655622b721f8655b161903"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.18-2#82310d1dd3189f34bd901a9ac894ad33eca5cf89"
dependencies = [
"ethereum",
"frame-support",
@@ -2787,7 +2796,7 @@
[[package]]
name = "fp-storage"
version = "2.0.0"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.18#7c8ce8f83e0c8a5b57655622b721f8655b161903"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.18-2#82310d1dd3189f34bd901a9ac894ad33eca5cf89"
[[package]]
name = "frame-benchmarking"
@@ -3234,9 +3243,9 @@
[[package]]
name = "getrandom"
-version = "0.2.5"
+version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d39cd93900197114fa1fcb7ae84ca742095eed9442088988ae74fa744e930e77"
+checksum = "9be70c98951c83b8d2f8f60d7065fa6d5146873094452a1008da8c2f1e4205ad"
dependencies = [
"cfg-if 1.0.0",
"libc",
@@ -3308,9 +3317,9 @@
[[package]]
name = "h2"
-version = "0.3.12"
+version = "0.3.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "62eeb471aa3e3c9197aa4bfeabfe02982f6dc96f750486c0bb0009ac58b26d2b"
+checksum = "37a82c6d637fc9515a4694bbf1cb2457b79d81ce52b3108bdeea58b07dd34a57"
dependencies = [
"bytes 1.1.0",
"fnv",
@@ -3321,7 +3330,7 @@
"indexmap",
"slab",
"tokio 1.17.0",
- "tokio-util",
+ "tokio-util 0.7.1",
"tracing",
]
@@ -3679,9 +3688,9 @@
[[package]]
name = "indexmap"
-version = "1.8.0"
+version = "1.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "282a6247722caba404c065016bbfa522806e51714c34f5dfc3e4a3a46fcb4223"
+checksum = "0f647032dfaa1f8b6dc29bd3edb7bbef4861b8b8007ebb118d6db284fd59f6ee"
dependencies = [
"autocfg",
"hashbrown 0.11.2",
@@ -3906,7 +3915,7 @@
"log",
"tokio 1.17.0",
"tokio-stream",
- "tokio-util",
+ "tokio-util 0.6.9",
"unicase",
]
@@ -3976,7 +3985,7 @@
"thiserror",
"tokio 1.17.0",
"tokio-rustls 0.23.3",
- "tokio-util",
+ "tokio-util 0.6.9",
"tracing",
"webpki-roots 0.22.2",
]
@@ -3997,7 +4006,7 @@
"thiserror",
"tokio 1.17.0",
"tokio-rustls 0.23.3",
- "tokio-util",
+ "tokio-util 0.6.9",
"tracing",
"webpki-roots 0.22.2",
]
@@ -4158,7 +4167,7 @@
"thiserror",
"tokio 1.17.0",
"tokio-rustls 0.22.0",
- "tokio-util",
+ "tokio-util 0.6.9",
]
[[package]]
@@ -4769,7 +4778,7 @@
"libp2p-core",
"libp2p-swarm",
"log",
- "lru 0.7.3",
+ "lru 0.7.5",
"rand 0.7.3",
"smallvec",
"unsigned-varint 0.7.1",
@@ -4999,10 +5008,11 @@
[[package]]
name = "lock_api"
-version = "0.4.6"
+version = "0.4.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "88943dd7ef4a2e5a4bfa2753aaab3013e34ce2533d1996fb18ef591e315e2b3b"
+checksum = "327fa5b6a6940e4699ec49a9beae1ea4845c6bab9314e4f84ac68742139d8c53"
dependencies = [
+ "autocfg",
"scopeguard",
]
@@ -5027,9 +5037,9 @@
[[package]]
name = "lru"
-version = "0.7.3"
+version = "0.7.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fcb87f3080f6d1d69e8c564c0fcfde1d7aa8cc451ce40cae89479111f03bc0eb"
+checksum = "32613e41de4c47ab04970c348ca7ae7382cf116625755af070b008a15516a889"
dependencies = [
"hashbrown 0.11.2",
]
@@ -5576,6 +5586,7 @@
"cumulus-primitives-timestamp",
"cumulus-primitives-utility",
"derivative",
+ "fp-evm-mapping",
"fp-rpc",
"fp-self-contained",
"frame-benchmarking",
@@ -5632,7 +5643,6 @@
"substrate-wasm-builder",
"unique-runtime-common",
"up-data-structs",
- "up-evm-mapping",
"up-rpc",
"xcm",
"xcm-builder",
@@ -5831,7 +5841,7 @@
[[package]]
name = "pallet-base-fee"
version = "1.0.0"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.18#7c8ce8f83e0c8a5b57655622b721f8655b161903"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.18-2#82310d1dd3189f34bd901a9ac894ad33eca5cf89"
dependencies = [
"frame-support",
"frame-system",
@@ -5984,6 +5994,7 @@
version = "0.1.0"
dependencies = [
"evm-coder",
+ "fp-evm-mapping",
"frame-support",
"frame-system",
"pallet-evm",
@@ -5995,7 +6006,6 @@
"sp-runtime",
"sp-std",
"up-data-structs",
- "up-evm-mapping",
]
[[package]]
@@ -6058,13 +6068,14 @@
[[package]]
name = "pallet-ethereum"
version = "4.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.18#7c8ce8f83e0c8a5b57655622b721f8655b161903"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.18-2#82310d1dd3189f34bd901a9ac894ad33eca5cf89"
dependencies = [
"ethereum",
"ethereum-types",
"evm",
"fp-consensus",
"fp-evm",
+ "fp-evm-mapping",
"fp-rpc",
"fp-self-contained",
"fp-storage",
@@ -6088,12 +6099,13 @@
[[package]]
name = "pallet-evm"
version = "6.0.0-dev"
-source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.18#7c8ce8f83e0c8a5b57655622b721f8655b161903"
+source = "git+https://github.com/uniquenetwork/frontier.git?branch=unique-polkadot-v0.9.18-2#82310d1dd3189f34bd901a9ac894ad33eca5cf89"
dependencies = [
"evm",
"evm-gasometer",
"evm-runtime",
"fp-evm",
+ "fp-evm-mapping",
"frame-benchmarking",
"frame-support",
"frame-system",
@@ -6136,6 +6148,7 @@
version = "0.1.0"
dependencies = [
"evm-coder",
+ "fp-evm-mapping",
"frame-support",
"frame-system",
"log",
@@ -6171,6 +6184,7 @@
version = "0.1.0"
dependencies = [
"fp-evm",
+ "fp-evm-mapping",
"frame-support",
"frame-system",
"pallet-ethereum",
@@ -6181,7 +6195,6 @@
"sp-io",
"sp-runtime",
"sp-std",
- "up-evm-mapping",
"up-sponsorship",
]
@@ -6195,6 +6208,7 @@
"frame-support",
"frame-system",
"pallet-common",
+ "pallet-evm",
"pallet-evm-coder-substrate",
"parity-scale-codec",
"scale-info",
@@ -6421,6 +6435,7 @@
"frame-support",
"frame-system",
"pallet-common",
+ "pallet-evm",
"pallet-evm-coder-substrate",
"parity-scale-codec",
"scale-info",
@@ -6537,6 +6552,7 @@
"frame-support",
"frame-system",
"pallet-common",
+ "pallet-evm",
"parity-scale-codec",
"scale-info",
"sp-core",
@@ -6672,7 +6688,7 @@
[[package]]
name = "pallet-template-transaction-payment"
version = "3.0.0"
-source = "git+https://github.com/UniqueNetwork/pallet-sponsoring?branch=polkadot-v0.9.18#e914a799e5ff1c18383a614ea99e87dd7f3f446e"
+source = "git+https://github.com/UniqueNetwork/pallet-sponsoring?branch=polkadot-v0.9.18#7bc842b35a53f762ee6ee89e5f5bef84a284c9f4"
dependencies = [
"frame-benchmarking",
"frame-support",
@@ -6795,6 +6811,7 @@
"ethereum",
"evm-coder",
"fp-evm",
+ "fp-evm-mapping",
"frame-benchmarking",
"frame-support",
"frame-system",
@@ -6821,7 +6838,6 @@
"sp-runtime",
"sp-std",
"up-data-structs",
- "up-evm-mapping",
"up-sponsorship",
]
@@ -6925,9 +6941,9 @@
[[package]]
name = "parity-db"
-version = "0.3.9"
+version = "0.3.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3d121a9af17a43efd0a38c6afa508b927ba07785bd4709efb2ac03bf77efef8d"
+checksum = "b3e7f385d61562f5834282b90aa50b41f38a35cf64d5209b8b05487b50553dbe"
dependencies = [
"blake2-rfc",
"crc32fast",
@@ -6998,7 +7014,7 @@
"ethereum-types",
"hashbrown 0.12.0",
"impl-trait-for-tuples",
- "lru 0.7.3",
+ "lru 0.7.5",
"parity-util-mem-derive",
"parking_lot 0.12.0",
"primitive-types",
@@ -7074,7 +7090,7 @@
checksum = "87f5ec2493a61ac0506c0f4199f99070cbe83857b0337006a30f3e6719b8ef58"
dependencies = [
"lock_api",
- "parking_lot_core 0.9.1",
+ "parking_lot_core 0.9.2",
]
[[package]]
@@ -7093,9 +7109,9 @@
[[package]]
name = "parking_lot_core"
-version = "0.9.1"
+version = "0.9.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "28141e0cc4143da2443301914478dc976a61ffdb3f043058310c70df2fed8954"
+checksum = "995f667a6c822200b0433ac218e05582f0e2efa1b922a3fd2fbaadc5f87bab37"
dependencies = [
"cfg-if 1.0.0",
"libc",
@@ -7106,9 +7122,9 @@
[[package]]
name = "paste"
-version = "1.0.6"
+version = "1.0.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0744126afe1a6dd7f394cb50a716dbe086cb06e255e53d8d0185d82828358fb5"
+checksum = "0c520e05135d6e763148b6426a837e239041653ba7becd2e538c076c738025fc"
[[package]]
name = "pbkdf2"
@@ -7270,9 +7286,9 @@
[[package]]
name = "pkg-config"
-version = "0.3.24"
+version = "0.3.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "58893f751c9b0412871a09abd62ecd2a00298c6c83befa223ef98c52aef40cbe"
+checksum = "1df8c4ec4b0627e53bdf214615ad287367e482558cf84b109250b37464dc03ae"
[[package]]
name = "platforms"
@@ -7315,7 +7331,7 @@
"derive_more",
"fatality",
"futures 0.3.21",
- "lru 0.7.3",
+ "lru 0.7.5",
"parity-scale-codec",
"polkadot-erasure-coding",
"polkadot-node-network-protocol",
@@ -7337,7 +7353,7 @@
dependencies = [
"fatality",
"futures 0.3.21",
- "lru 0.7.3",
+ "lru 0.7.5",
"parity-scale-codec",
"polkadot-erasure-coding",
"polkadot-node-network-protocol",
@@ -7446,7 +7462,7 @@
"derive_more",
"fatality",
"futures 0.3.21",
- "lru 0.7.3",
+ "lru 0.7.5",
"parity-scale-codec",
"polkadot-erasure-coding",
"polkadot-node-network-protocol",
@@ -7542,7 +7558,7 @@
"futures 0.3.21",
"futures-timer",
"kvdb",
- "lru 0.7.3",
+ "lru 0.7.5",
"merlin",
"parity-scale-codec",
"polkadot-node-jaeger",
@@ -7671,7 +7687,7 @@
"fatality",
"futures 0.3.21",
"kvdb",
- "lru 0.7.3",
+ "lru 0.7.5",
"parity-scale-codec",
"polkadot-node-primitives",
"polkadot-node-subsystem",
@@ -7897,7 +7913,7 @@
"futures 0.3.21",
"itertools",
"kvdb",
- "lru 0.7.3",
+ "lru 0.7.5",
"metered-channel",
"parity-db",
"parity-scale-codec",
@@ -7926,7 +7942,7 @@
dependencies = [
"futures 0.3.21",
"futures-timer",
- "lru 0.7.3",
+ "lru 0.7.5",
"parity-util-mem",
"parking_lot 0.12.0",
"polkadot-node-metrics",
@@ -8273,7 +8289,7 @@
"kusama-runtime",
"kvdb",
"kvdb-rocksdb",
- "lru 0.7.3",
+ "lru 0.7.5",
"pallet-babe",
"pallet-im-online",
"pallet-mmr-primitives",
@@ -8608,9 +8624,9 @@
[[package]]
name = "proc-macro2"
-version = "1.0.36"
+version = "1.0.37"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029"
+checksum = "ec757218438d5fda206afc041538b2f6d889286160d649a86a24d37e1235afd1"
dependencies = [
"unicode-xid",
]
@@ -8684,9 +8700,9 @@
[[package]]
name = "psm"
-version = "0.1.17"
+version = "0.1.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6eca0fa5dd7c4c96e184cec588f0b1db1ee3165e678db21c09793105acb17e6f"
+checksum = "871372391786ccec00d3c5d3d6608905b3d4db263639cfe075d3b60a736d115a"
dependencies = [
"cc",
]
@@ -8704,6 +8720,7 @@
"cumulus-primitives-timestamp",
"cumulus-primitives-utility",
"derivative",
+ "fp-evm-mapping",
"fp-rpc",
"fp-self-contained",
"frame-executive",
@@ -8757,7 +8774,6 @@
"substrate-wasm-builder",
"unique-runtime-common",
"up-data-structs",
- "up-evm-mapping",
"up-rpc",
"xcm",
"xcm-builder",
@@ -8789,9 +8805,9 @@
[[package]]
name = "quote"
-version = "1.0.16"
+version = "1.0.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b4af2ec4714533fcdf07e886f17025ace8b997b9ce51204ee69b6da831c3da57"
+checksum = "632d02bff7f874a36f33ea8bb416cd484b90cc66c1194b1a1110d067a7013f58"
dependencies = [
"proc-macro2",
]
@@ -8862,7 +8878,7 @@
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7"
dependencies = [
- "getrandom 0.2.5",
+ "getrandom 0.2.6",
]
[[package]]
@@ -8926,20 +8942,20 @@
[[package]]
name = "redox_syscall"
-version = "0.2.11"
+version = "0.2.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8380fe0152551244f0747b1bf41737e0f8a74f97a14ccefd1148187271634f3c"
+checksum = "62f25bc4c7e55e0b0b7a1d43fb893f4fa1361d0abe38b9ce4f323c2adfe6ef42"
dependencies = [
"bitflags",
]
[[package]]
name = "redox_users"
-version = "0.4.2"
+version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7776223e2696f1aa4c6b0170e83212f47296a00424305117d013dfe86fb0fe55"
+checksum = "b033d837a7cf162d7993aded9304e30a83213c648b6e389db233191f891e5c2b"
dependencies = [
- "getrandom 0.2.5",
+ "getrandom 0.2.6",
"redox_syscall",
"thiserror",
]
@@ -9253,7 +9269,7 @@
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366"
dependencies = [
- "semver 1.0.6",
+ "semver 1.0.7",
]
[[package]]
@@ -9974,7 +9990,7 @@
"linked-hash-map",
"linked_hash_set",
"log",
- "lru 0.7.3",
+ "lru 0.7.5",
"parity-scale-codec",
"parking_lot 0.12.0",
"pin-project 1.0.10",
@@ -10012,7 +10028,7 @@
"futures-timer",
"libp2p",
"log",
- "lru 0.7.3",
+ "lru 0.7.5",
"sc-network",
"sp-runtime",
"substrate-prometheus-endpoint",
@@ -10532,9 +10548,9 @@
[[package]]
name = "semver"
-version = "1.0.6"
+version = "1.0.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a4a3381e03edd24287172047536f20cabde766e2cd3e65e6b00fb3af51c4f38d"
+checksum = "d65bd28f48be7196d222d95b9243287f48d27aca604e08497513019ff0502cc4"
dependencies = [
"serde",
]
@@ -10747,9 +10763,9 @@
[[package]]
name = "slab"
-version = "0.4.5"
+version = "0.4.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9def91fd1e018fe007022791f865d0ccc9b3a0d5001e01aabb8b40e46000afb5"
+checksum = "eb703cfe953bccee95685111adeedb76fabe4e97549a58d16f03ea7b9367bb32"
[[package]]
name = "slot-range-helper"
@@ -10940,7 +10956,7 @@
dependencies = [
"futures 0.3.21",
"log",
- "lru 0.7.3",
+ "lru 0.7.5",
"parity-scale-codec",
"parking_lot 0.12.0",
"sp-api",
@@ -11801,9 +11817,9 @@
[[package]]
name = "syn"
-version = "1.0.89"
+version = "1.0.91"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ea297be220d52398dcc07ce15a209fce436d361735ac1db700cab3b6cdfb9f54"
+checksum = "b683b2b825c8eef438b77c36a06dc262294da3d5a5813fac20da149241dcd44d"
dependencies = [
"proc-macro2",
"quote",
@@ -12094,6 +12110,20 @@
]
[[package]]
+name = "tokio-util"
+version = "0.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0edfdeb067411dba2044da6d1cb2df793dd35add7888d73c16e3381ded401764"
+dependencies = [
+ "bytes 1.1.0",
+ "futures-core",
+ "futures-sink",
+ "pin-project-lite 0.2.8",
+ "tokio 1.17.0",
+ "tracing",
+]
+
+[[package]]
name = "toml"
version = "0.5.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -12133,9 +12163,9 @@
[[package]]
name = "tracing-core"
-version = "0.1.23"
+version = "0.1.24"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "aa31669fa42c09c34d94d8165dd2012e8ff3c66aca50f3bb226b68f216f2706c"
+checksum = "90442985ee2f57c9e1b548ee72ae842f4a9a20e3f417cc38dbc5dc684d9bb4ee"
dependencies = [
"lazy_static",
"valuable",
@@ -12333,6 +12363,7 @@
"jsonrpc-core-client",
"jsonrpc-derive",
"pallet-common",
+ "pallet-evm",
"parity-scale-codec",
"sp-api",
"sp-blockchain",
@@ -12475,6 +12506,7 @@
"substrate-build-script-utils",
"substrate-frame-rpc-system",
"substrate-prometheus-endpoint",
+ "tokio 1.17.0",
"unique-rpc",
"unique-runtime",
"unique-runtime-common",
@@ -12542,6 +12574,7 @@
"cumulus-primitives-timestamp",
"cumulus-primitives-utility",
"derivative",
+ "fp-evm-mapping",
"fp-rpc",
"fp-self-contained",
"frame-benchmarking",
@@ -12598,7 +12631,6 @@
"substrate-wasm-builder",
"unique-runtime-common",
"up-data-structs",
- "up-evm-mapping",
"up-rpc",
"xcm",
"xcm-builder",
@@ -12613,6 +12645,7 @@
"frame-support",
"frame-system",
"pallet-common",
+ "pallet-evm",
"parity-scale-codec",
"scale-info",
"sp-consensus-aura",
@@ -12682,18 +12715,11 @@
]
[[package]]
-name = "up-evm-mapping"
-version = "0.1.0"
-dependencies = [
- "frame-support",
- "sp-core",
-]
-
-[[package]]
name = "up-rpc"
version = "0.1.0"
dependencies = [
"pallet-common",
+ "pallet-evm",
"parity-scale-codec",
"sp-api",
"sp-core",
@@ -12705,7 +12731,7 @@
[[package]]
name = "up-sponsorship"
version = "0.1.0"
-source = "git+https://github.com/UniqueNetwork/pallet-sponsoring?branch=polkadot-v0.9.18#e914a799e5ff1c18383a614ea99e87dd7f3f446e"
+source = "git+https://github.com/UniqueNetwork/pallet-sponsoring?branch=polkadot-v0.9.18#7bc842b35a53f762ee6ee89e5f5bef84a284c9f4"
dependencies = [
"impl-trait-for-tuples",
]
@@ -13313,9 +13339,9 @@
[[package]]
name = "windows-sys"
-version = "0.32.0"
+version = "0.34.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3df6e476185f92a12c072be4a189a0210dcdcf512a1891d6dff9edb874deadc6"
+checksum = "5acdd78cb4ba54c0045ac14f62d8f94a03d10047904ae2a40afa1e99d8f70825"
dependencies = [
"windows_aarch64_msvc",
"windows_i686_gnu",
@@ -13326,33 +13352,33 @@
[[package]]
name = "windows_aarch64_msvc"
-version = "0.32.0"
+version = "0.34.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d8e92753b1c443191654ec532f14c199742964a061be25d77d7a96f09db20bf5"
+checksum = "17cffbe740121affb56fad0fc0e421804adf0ae00891205213b5cecd30db881d"
[[package]]
name = "windows_i686_gnu"
-version = "0.32.0"
+version = "0.34.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6a711c68811799e017b6038e0922cb27a5e2f43a2ddb609fe0b6f3eeda9de615"
+checksum = "2564fde759adb79129d9b4f54be42b32c89970c18ebf93124ca8870a498688ed"
[[package]]
name = "windows_i686_msvc"
-version = "0.32.0"
+version = "0.34.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "146c11bb1a02615db74680b32a68e2d61f553cc24c4eb5b4ca10311740e44172"
+checksum = "9cd9d32ba70453522332c14d38814bceeb747d80b3958676007acadd7e166956"
[[package]]
name = "windows_x86_64_gnu"
-version = "0.32.0"
+version = "0.34.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c912b12f7454c6620635bbff3450962753834be2a594819bd5e945af18ec64bc"
+checksum = "cfce6deae227ee8d356d19effc141a509cc503dfd1f850622ec4b0f84428e1f4"
[[package]]
name = "windows_x86_64_msvc"
-version = "0.32.0"
+version = "0.34.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "504a2476202769977a040c6364301a3f65d0cc9e3fb08600b2bda150a0488316"
+checksum = "d19538ccc21819d01deaf88d6a17eae6596a12e9aafdbb97916fb49896d89de9"
[[package]]
name = "winreg"
client/rpc/Cargo.tomldiffbeforeafterboth--- a/client/rpc/Cargo.toml
+++ b/client/rpc/Cargo.toml
@@ -18,3 +18,4 @@
sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.18" }
sp-rpc = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.18" }
sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.18" }
+pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
client/rpc/src/lib.rsdiffbeforeafterboth--- a/client/rpc/src/lib.rs
+++ b/client/rpc/src/lib.rs
@@ -19,7 +19,7 @@
use codec::Decode;
use jsonrpc_core::{Error as RpcError, ErrorCode, Result};
use jsonrpc_derive::rpc;
-use up_data_structs::{Collection, CollectionId, CollectionStats, TokenId};
+use up_data_structs::{Collection, CollectionId, CollectionStats, CollectionLimits, TokenId};
use sp_api::{BlockId, BlockT, ProvideRuntimeApi, ApiExt};
use sp_blockchain::HeaderBackend;
use up_rpc::UniqueApi as UniqueRuntimeApi;
@@ -128,6 +128,12 @@
token: TokenId,
at: Option<BlockHash>,
) -> Result<Option<u64>>;
+ #[rpc(name = "unique_effectiveCollectionLimits")]
+ fn effective_collection_limits(
+ &self,
+ collection_id: CollectionId,
+ at: Option<BlockHash>,
+ ) -> Result<Option<CollectionLimits>>;
}
pub struct Unique<C, P> {
@@ -210,7 +216,7 @@
AccountId: Decode,
C: 'static + ProvideRuntimeApi<Block> + HeaderBackend<Block>,
C::Api: UniqueRuntimeApi<Block, CrossAccountId, AccountId>,
- CrossAccountId: pallet_common::account::CrossAccountId<AccountId>,
+ CrossAccountId: pallet_evm::account::CrossAccountId<AccountId>,
{
pass_method!(account_tokens(collection: CollectionId, account: CrossAccountId) -> Vec<TokenId>);
pass_method!(token_exists(collection: CollectionId, token: TokenId) -> bool);
@@ -232,4 +238,5 @@
pass_method!(collection_by_id(collection: CollectionId) -> Option<Collection<AccountId>>);
pass_method!(collection_stats() -> CollectionStats);
pass_method!(next_sponsored(collection: CollectionId, account: CrossAccountId, token: TokenId) -> Option<u64>);
+ pass_method!(effective_collection_limits(collection_id: CollectionId) -> Option<CollectionLimits>);
}
node/cli/Cargo.tomldiffbeforeafterboth--- a/node/cli/Cargo.toml
+++ b/node/cli/Cargo.toml
@@ -302,13 +302,13 @@
jsonrpc-pubsub = "18.0.0"
tokio = { version = "1.17.0", features = ["time"] }
-fc-rpc-core = { git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-fc-consensus = { git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-fc-mapping-sync = { git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-fc-rpc = { git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-fc-db = { git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-fp-rpc = { git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-pallet-ethereum = { git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
+fc-rpc-core = { git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+fc-consensus = { git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+fc-mapping-sync = { git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+fc-rpc = { git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+fc-db = { git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+fp-rpc = { git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+pallet-ethereum = { git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
unique-rpc = { default-features = false, path = "../rpc" }
node/cli/src/chain_spec.rsdiffbeforeafterboth--- a/node/cli/src/chain_spec.rs
+++ b/node/cli/src/chain_spec.rs
@@ -212,6 +212,16 @@
vec![
get_account_id_from_seed::<sr25519::Public>("Alice"),
get_account_id_from_seed::<sr25519::Public>("Bob"),
+ get_account_id_from_seed::<sr25519::Public>("Charlie"),
+ get_account_id_from_seed::<sr25519::Public>("Dave"),
+ get_account_id_from_seed::<sr25519::Public>("Eve"),
+ get_account_id_from_seed::<sr25519::Public>("Ferdie"),
+ get_account_id_from_seed::<sr25519::Public>("Alice//stash"),
+ get_account_id_from_seed::<sr25519::Public>("Bob//stash"),
+ get_account_id_from_seed::<sr25519::Public>("Charlie//stash"),
+ get_account_id_from_seed::<sr25519::Public>("Dave//stash"),
+ get_account_id_from_seed::<sr25519::Public>("Eve//stash"),
+ get_account_id_from_seed::<sr25519::Public>("Ferdie//stash"),
],
1000
)
node/rpc/Cargo.tomldiffbeforeafterboth--- a/node/rpc/Cargo.toml
+++ b/node/rpc/Cargo.toml
@@ -41,12 +41,12 @@
substrate-frame-rpc-system = { git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.18' }
tokio = { version = "0.2.25", features = ["macros", "sync"] }
-pallet-ethereum = { git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-fc-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-fc-rpc-core = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-fc-db = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-fc-mapping-sync = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
+pallet-ethereum = { git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+fc-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+fc-rpc-core = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+fc-db = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+fc-mapping-sync = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
pallet-common = { default-features = false, path = "../../pallets/common" }
unique-runtime-common = { default-features = false, path = "../../runtime/common" }
pallets/common/Cargo.tomldiffbeforeafterboth--- a/pallets/common/Cargo.toml
+++ b/pallets/common/Cargo.toml
@@ -16,11 +16,11 @@
sp-runtime = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.18' }
sp-std = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.18' }
sp-core = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.18' }
-up-evm-mapping = { default-features = false, path = '../../primitives/evm-mapping' }
+fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
up-data-structs = { default-features = false, path = '../../primitives/data-structs' }
pallet-evm-coder-substrate = { default-features = false, path = '../../pallets/evm-coder-substrate' }
evm-coder = { default-features = false, path = '../../crates/evm-coder' }
-pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
+pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
serde = { version = "1.0.130", default-features = false }
scale-info = { version = "2.0.1", default-features = false, features = [
"derive",
@@ -33,7 +33,7 @@
"frame-system/std",
"sp-runtime/std",
"sp-std/std",
- "up-evm-mapping/std",
+ "fp-evm-mapping/std",
"up-data-structs/std",
"pallet-evm/std",
]
pallets/common/src/account.rsdiffbeforeafterboth--- a/pallets/common/src/account.rs
+++ /dev/null
@@ -1,194 +0,0 @@
-// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.
-// This file is part of Unique Network.
-
-// Unique Network is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// Unique Network is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License
-// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
-
-use crate::Config;
-use codec::{Encode, EncodeLike, Decode, MaxEncodedLen};
-use sp_core::H160;
-use scale_info::{Type, TypeInfo};
-use core::cmp::Ordering;
-use serde::{Serialize, Deserialize};
-use pallet_evm::AddressMapping;
-use sp_std::vec::Vec;
-use sp_std::clone::Clone;
-pub use up_evm_mapping::EvmBackwardsAddressMapping;
-
-pub trait CrossAccountId<AccountId>:
- Encode + EncodeLike + Decode + TypeInfo + MaxEncodedLen + Clone + PartialEq + Ord + core::fmt::Debug
-// +
-// Serialize + Deserialize<'static>
-{
- fn as_sub(&self) -> &AccountId;
- fn as_eth(&self) -> &H160;
-
- fn from_sub(account: AccountId) -> Self;
- fn from_eth(account: H160) -> Self;
-
- fn conv_eq(&self, other: &Self) -> bool;
-}
-
-#[derive(Encode, Decode, Serialize, Deserialize, TypeInfo, MaxEncodedLen)]
-#[serde(rename_all = "camelCase")]
-enum BasicCrossAccountIdRepr<AccountId> {
- Substrate(AccountId),
- Ethereum(H160),
-}
-
-#[derive(PartialEq, Eq)]
-pub struct BasicCrossAccountId<T: Config> {
- /// If true - then ethereum is canonical encoding
- from_ethereum: bool,
- substrate: T::AccountId,
- ethereum: H160,
-}
-
-impl<T: Config> MaxEncodedLen for BasicCrossAccountId<T> {
- fn max_encoded_len() -> usize {
- <BasicCrossAccountIdRepr<T::AccountId>>::max_encoded_len()
- }
-}
-
-impl<T: Config> TypeInfo for BasicCrossAccountId<T> {
- type Identity = Self;
-
- fn type_info() -> Type {
- <BasicCrossAccountIdRepr<T::AccountId>>::type_info()
- }
-}
-
-impl<T: Config> core::fmt::Debug for BasicCrossAccountId<T> {
- fn fmt(&self, fmt: &mut core::fmt::Formatter) -> core::fmt::Result {
- if self.from_ethereum {
- fmt.debug_tuple("CrossAccountId::Ethereum")
- .field(&self.ethereum)
- .finish()
- } else {
- fmt.debug_tuple("CrossAccountId::Substrate")
- .field(&self.substrate)
- .finish()
- }
- }
-}
-
-impl<T: Config> PartialOrd for BasicCrossAccountId<T> {
- fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
- Some(self.substrate.cmp(&other.substrate))
- }
-}
-
-impl<T: Config> Ord for BasicCrossAccountId<T> {
- fn cmp(&self, other: &Self) -> Ordering {
- self.partial_cmp(other)
- .expect("substrate account is total ordered")
- }
-}
-
-impl<T: Config> Clone for BasicCrossAccountId<T> {
- fn clone(&self) -> Self {
- Self {
- from_ethereum: self.from_ethereum,
- substrate: self.substrate.clone(),
- ethereum: self.ethereum,
- }
- }
-}
-impl<T: Config> Encode for BasicCrossAccountId<T> {
- fn encode(&self) -> Vec<u8> {
- BasicCrossAccountIdRepr::from(self.clone()).encode()
- }
-}
-impl<T: Config> EncodeLike for BasicCrossAccountId<T> {}
-impl<T: Config> Decode for BasicCrossAccountId<T> {
- fn decode<I>(input: &mut I) -> Result<Self, codec::Error>
- where
- I: codec::Input,
- {
- Ok(BasicCrossAccountIdRepr::decode(input)?.into())
- }
-}
-impl<T> Serialize for BasicCrossAccountId<T>
-where
- T: Config,
- T::AccountId: Serialize,
-{
- fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
- where
- S: serde::Serializer,
- {
- let repr = BasicCrossAccountIdRepr::from(self.clone());
- (&repr).serialize(serializer)
- }
-}
-impl<'de, T> Deserialize<'de> for BasicCrossAccountId<T>
-where
- T: Config,
- T::AccountId: Deserialize<'de>,
-{
- fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
- where
- D: serde::Deserializer<'de>,
- {
- Ok(BasicCrossAccountIdRepr::deserialize(deserializer)?.into())
- }
-}
-impl<T: Config> CrossAccountId<T::AccountId> for BasicCrossAccountId<T> {
- fn as_sub(&self) -> &T::AccountId {
- &self.substrate
- }
- fn as_eth(&self) -> &H160 {
- &self.ethereum
- }
- fn from_sub(substrate: T::AccountId) -> Self {
- Self {
- ethereum: T::EvmBackwardsAddressMapping::from_account_id(substrate.clone()),
- substrate,
- from_ethereum: false,
- }
- }
- fn from_eth(ethereum: H160) -> Self {
- Self {
- ethereum,
- substrate: T::EvmAddressMapping::into_account_id(ethereum),
- from_ethereum: true,
- }
- }
- fn conv_eq(&self, other: &Self) -> bool {
- if self.from_ethereum == other.from_ethereum {
- self.substrate == other.substrate && self.ethereum == other.ethereum
- } else if self.from_ethereum {
- // ethereum is canonical encoding, but we need to compare derived address
- self.substrate == other.substrate
- } else {
- self.ethereum == other.ethereum
- }
- }
-}
-impl<T: Config> From<BasicCrossAccountIdRepr<T::AccountId>> for BasicCrossAccountId<T> {
- fn from(repr: BasicCrossAccountIdRepr<T::AccountId>) -> Self {
- match repr {
- BasicCrossAccountIdRepr::Substrate(s) => Self::from_sub(s),
- BasicCrossAccountIdRepr::Ethereum(e) => Self::from_eth(e),
- }
- }
-}
-impl<T: Config> From<BasicCrossAccountId<T>> for BasicCrossAccountIdRepr<T::AccountId> {
- fn from(v: BasicCrossAccountId<T>) -> Self {
- if v.from_ethereum {
- BasicCrossAccountIdRepr::Ethereum(*v.as_eth())
- } else {
- BasicCrossAccountIdRepr::Substrate(v.as_sub().clone())
- }
- }
-}
pallets/common/src/lib.rsdiffbeforeafterboth--- a/pallets/common/src/lib.rs
+++ b/pallets/common/src/lib.rs
@@ -19,7 +19,7 @@
use core::ops::{Deref, DerefMut};
use pallet_evm_coder_substrate::{SubstrateRecorder, WithRecorder};
use sp_std::vec::Vec;
-use account::CrossAccountId;
+use pallet_evm::account::CrossAccountId;
use frame_support::{
dispatch::{DispatchErrorWithPostInfo, DispatchResultWithPostInfo},
ensure, fail,
@@ -33,12 +33,11 @@
TokenId, Weight, WithdrawReasons, CollectionStats, MAX_TOKEN_OWNERSHIP, CollectionMode,
NFT_SPONSOR_TRANSFER_TIMEOUT, FUNGIBLE_SPONSOR_TRANSFER_TIMEOUT,
REFUNGIBLE_SPONSOR_TRANSFER_TIMEOUT, MAX_SPONSOR_TIMEOUT, CUSTOM_DATA_LIMIT, CollectionLimits,
- CustomDataLimit, CreateCollectionData, SponsorshipState, CreateItemExData,
+ CustomDataLimit, CreateCollectionData, SponsorshipState, CreateItemExData, SponsoringRateLimit,
};
pub use pallet::*;
use sp_core::H160;
use sp_runtime::{ArithmeticError, DispatchError, DispatchResult};
-pub mod account;
#[cfg(feature = "runtime-benchmarks")]
pub mod benchmarking;
pub mod erc;
@@ -163,20 +162,17 @@
pub mod pallet {
use super::*;
use frame_support::{Blake2_128Concat, pallet_prelude::*, storage::Key};
- use account::CrossAccountId;
+ use pallet_evm::account;
use frame_support::traits::Currency;
use up_data_structs::TokenId;
use scale_info::TypeInfo;
#[pallet::config]
- pub trait Config: frame_system::Config + pallet_evm_coder_substrate::Config + TypeInfo {
+ pub trait Config:
+ frame_system::Config + pallet_evm_coder_substrate::Config + TypeInfo + account::Config
+ {
type Event: IsType<<Self as frame_system::Config>::Event> + From<Event<Self>>;
-
- type CrossAccountId: CrossAccountId<Self::AccountId>;
- type EvmAddressMapping: pallet_evm::AddressMapping<Self::AccountId>;
- type EvmBackwardsAddressMapping: up_evm_mapping::EvmBackwardsAddressMapping<Self::AccountId>;
-
type Currency: Currency<Self::AccountId>;
#[pallet::constant]
@@ -421,6 +417,39 @@
alive: created.0 - destroyed.0,
}
}
+
+ pub fn effective_collection_limits(collection: CollectionId) -> Option<CollectionLimits> {
+ let collection = <CollectionById<T>>::get(collection);
+ if collection.is_none() {
+ return None;
+ }
+
+ let collection = collection.unwrap();
+ let limits = collection.limits;
+ let effective_limits = CollectionLimits {
+ account_token_ownership_limit: Some(limits.account_token_ownership_limit()),
+ sponsored_data_size: Some(limits.sponsored_data_size()),
+ sponsored_data_rate_limit: Some(
+ limits
+ .sponsored_data_rate_limit
+ .unwrap_or(SponsoringRateLimit::SponsoringDisabled),
+ ),
+ token_limit: Some(limits.token_limit()),
+ sponsor_transfer_timeout: Some(limits.sponsor_transfer_timeout(
+ match collection.mode {
+ CollectionMode::NFT => NFT_SPONSOR_TRANSFER_TIMEOUT,
+ CollectionMode::Fungible(_) => FUNGIBLE_SPONSOR_TRANSFER_TIMEOUT,
+ CollectionMode::ReFungible => REFUNGIBLE_SPONSOR_TRANSFER_TIMEOUT,
+ },
+ )),
+ sponsor_approve_timeout: Some(limits.sponsor_approve_timeout()),
+ owner_can_transfer: Some(limits.owner_can_transfer()),
+ owner_can_destroy: Some(limits.owner_can_destroy()),
+ transfers_enabled: Some(limits.transfers_enabled()),
+ };
+
+ Some(effective_limits)
+ }
}
impl<T: Config> Pallet<T> {
pallets/evm-coder-substrate/Cargo.tomldiffbeforeafterboth--- a/pallets/evm-coder-substrate/Cargo.toml
+++ b/pallets/evm-coder-substrate/Cargo.toml
@@ -12,8 +12,8 @@
sp-core = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.18' }
ethereum = { version = "0.12.0", default-features = false }
evm-coder = { default-features = false, path = "../../crates/evm-coder" }
-pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
+pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
frame-support = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.18' }
frame-system = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.18' }
frame-benchmarking = { default-features = false, optional = true, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.18' }
pallets/evm-contract-helpers/Cargo.tomldiffbeforeafterboth--- a/pallets/evm-contract-helpers/Cargo.toml
+++ b/pallets/evm-contract-helpers/Cargo.toml
@@ -15,7 +15,8 @@
sp-core = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.18' }
evm-coder = { default-features = false, path = '../../crates/evm-coder' }
pallet-evm-coder-substrate = { default-features = false, path = '../../pallets/evm-coder-substrate' }
-pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
+pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
up-sponsorship = { version = "0.1.0", default-features = false, git = "https://github.com/UniqueNetwork/pallet-sponsoring", branch = 'polkadot-v0.9.18' }
log = "0.4.14"
pallets/evm-contract-helpers/src/eth.rsdiffbeforeafterboth--- a/pallets/evm-contract-helpers/src/eth.rs
+++ b/pallets/evm-contract-helpers/src/eth.rs
@@ -17,14 +17,17 @@
use core::marker::PhantomData;
use evm_coder::{abi::AbiWriter, execution::Result, generate_stubgen, solidity_interface, types::*};
use pallet_evm_coder_substrate::{SubstrateRecorder, WithRecorder};
-use pallet_evm::{ExitRevert, OnCreate, OnMethodCall, PrecompileResult, PrecompileFailure};
+use pallet_evm::{
+ ExitRevert, OnCreate, OnMethodCall, PrecompileResult, PrecompileFailure,
+ account::CrossAccountId,
+};
use sp_core::H160;
use crate::{
AllowlistEnabled, Config, Owner, Pallet, SponsorBasket, SponsoringRateLimit, SponsoringModeT,
};
use frame_support::traits::Get;
use up_sponsorship::SponsorshipHandler;
-use sp_std::{convert::TryInto, vec::Vec};
+use sp_std::vec::Vec;
struct ContractHelpers<T: Config>(SubstrateRecorder<T>);
impl<T: Config> WithRecorder<T> for ContractHelpers<T> {
@@ -177,18 +180,21 @@
}
pub struct HelpersContractSponsoring<T: Config>(PhantomData<*const T>);
-impl<T: Config> SponsorshipHandler<H160, (H160, Vec<u8>)> for HelpersContractSponsoring<T> {
- fn get_sponsor(who: &H160, call: &(H160, Vec<u8>)) -> Option<H160> {
+impl<T: Config> SponsorshipHandler<T::CrossAccountId, (H160, Vec<u8>)>
+ for HelpersContractSponsoring<T>
+{
+ fn get_sponsor(who: &T::CrossAccountId, call: &(H160, Vec<u8>)) -> Option<T::CrossAccountId> {
let mode = <Pallet<T>>::sponsoring_mode(call.0);
if mode == SponsoringModeT::Disabled {
return None;
}
- if mode == SponsoringModeT::Allowlisted && !<Pallet<T>>::allowed(call.0, *who) {
+
+ if mode == SponsoringModeT::Allowlisted && !<Pallet<T>>::allowed(call.0, *who.as_eth()) {
return None;
}
let block_number = <frame_system::Pallet<T>>::block_number() as T::BlockNumber;
- if let Some(last_tx_block) = <SponsorBasket<T>>::get(&call.0, who) {
+ if let Some(last_tx_block) = <SponsorBasket<T>>::get(&call.0, who.as_eth()) {
let limit = <SponsoringRateLimit<T>>::get(&call.0);
let timeout = last_tx_block + limit;
@@ -197,9 +203,10 @@
}
}
- <SponsorBasket<T>>::insert(&call.0, who, block_number);
+ <SponsorBasket<T>>::insert(&call.0, who.as_eth(), block_number);
- Some(call.0)
+ let sponsor = T::CrossAccountId::from_eth(call.0);
+ Some(sponsor)
}
}
pallets/evm-contract-helpers/src/lib.rsdiffbeforeafterboth--- a/pallets/evm-contract-helpers/src/lib.rs
+++ b/pallets/evm-contract-helpers/src/lib.rs
@@ -30,7 +30,9 @@
use sp_core::H160;
#[pallet::config]
- pub trait Config: frame_system::Config + pallet_evm_coder_substrate::Config {
+ pub trait Config:
+ frame_system::Config + pallet_evm_coder_substrate::Config + pallet_evm::account::Config
+ {
type ContractAddress: Get<H160>;
type DefaultSponsoringRateLimit: Get<Self::BlockNumber>;
}
pallets/evm-migration/Cargo.tomldiffbeforeafterboth--- a/pallets/evm-migration/Cargo.toml
+++ b/pallets/evm-migration/Cargo.toml
@@ -15,8 +15,8 @@
sp-std = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.18' }
sp-io = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.18' }
sp-core = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.18' }
-pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-fp-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
+pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+fp-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
[dependencies.codec]
default-features = false
pallets/evm-transaction-payment/Cargo.tomldiffbeforeafterboth--- a/pallets/evm-transaction-payment/Cargo.toml
+++ b/pallets/evm-transaction-payment/Cargo.toml
@@ -14,11 +14,11 @@
sp-std = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.18' }
sp-io = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.18' }
sp-core = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.18' }
-pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-fp-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
+pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+fp-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
up-sponsorship = { version = "0.1.0", default-features = false, git = "https://github.com/UniqueNetwork/pallet-sponsoring", branch = 'polkadot-v0.9.18' }
-up-evm-mapping = { default-features = false, path = "../../primitives/evm-mapping" }
+fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
[dependencies.codec]
default-features = false
@@ -39,5 +39,5 @@
"pallet-ethereum/std",
"fp-evm/std",
"up-sponsorship/std",
- "up-evm-mapping/std",
+ "fp-evm-mapping/std",
]
pallets/evm-transaction-payment/src/lib.rsdiffbeforeafterboth--- a/pallets/evm-transaction-payment/src/lib.rs
+++ b/pallets/evm-transaction-payment/src/lib.rs
@@ -20,12 +20,10 @@
use fp_evm::WithdrawReason;
use frame_support::traits::{Currency, IsSubType};
pub use pallet::*;
-use pallet_evm::{EVMCurrencyAdapter, EnsureAddressOrigin};
+use pallet_evm::{EVMCurrencyAdapter, EnsureAddressOrigin, account::CrossAccountId};
use sp_core::{H160, U256};
use sp_runtime::TransactionOutcome;
use up_sponsorship::SponsorshipHandler;
-use up_evm_mapping::EvmBackwardsAddressMapping;
-use pallet_evm::AddressMapping;
#[frame_support::pallet]
pub mod pallet {
@@ -35,11 +33,9 @@
use sp_std::vec::Vec;
#[pallet::config]
- pub trait Config: frame_system::Config {
- type EvmSponsorshipHandler: SponsorshipHandler<H160, (H160, Vec<u8>)>;
+ pub trait Config: frame_system::Config + pallet_evm::account::Config {
+ type EvmSponsorshipHandler: SponsorshipHandler<Self::CrossAccountId, (H160, Vec<u8>)>;
type Currency: Currency<Self::AccountId>;
- type EvmBackwardsAddressMapping: EvmBackwardsAddressMapping<Self::AccountId>;
- type EvmAddressMapping: AddressMapping<Self::AccountId>;
}
#[pallet::pallet]
@@ -60,14 +56,15 @@
}
pub struct TransactionValidityHack<T: Config>(PhantomData<*const T>);
-impl<T: Config> fp_evm::TransactionValidityHack for TransactionValidityHack<T> {
- fn who_pays_fee(origin: H160, reason: &WithdrawReason) -> Option<H160> {
+impl<T: Config> fp_evm::TransactionValidityHack<T::CrossAccountId> for TransactionValidityHack<T> {
+ fn who_pays_fee(origin: H160, reason: &WithdrawReason) -> Option<T::CrossAccountId> {
match reason {
WithdrawReason::Call { target, input } => {
// This method is only used for checking, we shouldn't touch storage in it
frame_support::storage::with_transaction(|| {
+ let origin_sub = T::CrossAccountId::from_eth(origin);
TransactionOutcome::Rollback(T::EvmSponsorshipHandler::get_sponsor(
- &origin,
+ &origin_sub,
&(*target, input.clone()),
))
})
@@ -85,33 +82,36 @@
type LiquidityInfo = Option<ChargeEvmLiquidityInfo<T>>;
fn withdraw_fee(
- who: &H160,
+ who: &T::CrossAccountId,
reason: WithdrawReason,
fee: U256,
) -> core::result::Result<Self::LiquidityInfo, pallet_evm::Error<T>> {
- let mut who_pays_fee = *who;
- if let WithdrawReason::Call { target, input } = &reason {
- who_pays_fee = T::EvmSponsorshipHandler::get_sponsor(who, &(*target, input.clone()))
- .unwrap_or(who_pays_fee);
- }
+ let who_pays_fee = if let WithdrawReason::Call { target, input } = &reason {
+ T::EvmSponsorshipHandler::get_sponsor(who, &(*target, input.clone()))
+ .unwrap_or(who.clone())
+ } else {
+ who.clone()
+ };
+
let negative_imbalance = EVMCurrencyAdapter::<<T as Config>::Currency, ()>::withdraw_fee(
&who_pays_fee,
reason,
fee,
)?;
+
Ok(negative_imbalance.map(|i| ChargeEvmLiquidityInfo {
- who: who_pays_fee,
+ who: who_pays_fee.as_eth().clone(),
negative_imbalance: i,
}))
}
fn correct_and_deposit_fee(
- who: &H160,
+ who: &T::CrossAccountId,
corrected_fee: U256,
already_withdrawn: Self::LiquidityInfo,
) {
<EVMCurrencyAdapter<<T as Config>::Currency, ()> as pallet_evm::OnChargeEVMTransaction<T>>::correct_and_deposit_fee(
- &already_withdrawn.as_ref().map(|e| e.who).unwrap_or(*who),
+ &already_withdrawn.as_ref().map(|e| T::CrossAccountId::from_eth(e.who)).unwrap_or(who.clone()),
corrected_fee,
already_withdrawn.map(|e| e.negative_imbalance),
)
@@ -142,7 +142,7 @@
<frame_system::RawOrigin<T::AccountId>>::Signed(who.clone()).into(),
)
.ok()?;
- let who = T::EvmBackwardsAddressMapping::from_account_id(who.clone());
+ let who = T::CrossAccountId::from_sub(who.clone());
// Effects from EvmSponsorshipHandler are applied in OnChargeEvmTransaction by pallet_evm::runner
// TODO: Should we implement simulation mode (test, but do not apply effects) in `up-sponsorship`?
let sponsor = frame_support::storage::with_transaction(|| {
@@ -151,8 +151,7 @@
&(*target, input.clone()),
))
})?;
- let sponsor = T::EvmAddressMapping::into_account_id(sponsor);
- Some(sponsor)
+ Some(sponsor.as_sub().clone())
}
_ => None,
}
pallets/fungible/Cargo.tomldiffbeforeafterboth--- a/pallets/fungible/Cargo.toml
+++ b/pallets/fungible/Cargo.toml
@@ -22,6 +22,7 @@
pallet-evm-coder-substrate = { default-features = false, path = '../evm-coder-substrate' }
ethereum = { version = "0.12.0", default-features = false }
frame-benchmarking = { default-features = false, optional = true, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.18' }
+pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
scale-info = { version = "2.0.1", default-features = false, features = [
"derive",
] }
@@ -39,5 +40,6 @@
"ethereum/std",
"pallet-evm-coder-substrate/std",
'frame-benchmarking/std',
+ "pallet-evm/std"
]
runtime-benchmarks = ['frame-benchmarking', 'pallet-common/runtime-benchmarks']
pallets/fungible/src/erc.rsdiffbeforeafterboth--- a/pallets/fungible/src/erc.rs
+++ b/pallets/fungible/src/erc.rs
@@ -21,7 +21,7 @@
use pallet_common::erc::{CommonEvmHandler, PrecompileResult};
use sp_core::{H160, U256};
use sp_std::vec::Vec;
-use pallet_common::account::CrossAccountId;
+use pallet_evm::account::CrossAccountId;
use pallet_evm_coder_substrate::{call, dispatch_to_evm};
use crate::{
pallets/fungible/src/lib.rsdiffbeforeafterboth--- a/pallets/fungible/src/lib.rs
+++ b/pallets/fungible/src/lib.rs
@@ -19,9 +19,8 @@
use core::ops::Deref;
use frame_support::{ensure};
use up_data_structs::{AccessMode, CollectionId, TokenId, CreateCollectionData};
-use pallet_common::{
- Error as CommonError, Event as CommonEvent, Pallet as PalletCommon, account::CrossAccountId,
-};
+use pallet_common::{Error as CommonError, Event as CommonEvent, Pallet as PalletCommon};
+use pallet_evm::account::CrossAccountId;
use pallet_evm_coder_substrate::WithRecorder;
use sp_core::H160;
use sp_runtime::{ArithmeticError, DispatchError, DispatchResult};
@@ -36,7 +35,7 @@
pub mod erc;
pub mod weights;
-pub type CreateItemData<T> = (<T as pallet_common::Config>::CrossAccountId, u128);
+pub type CreateItemData<T> = (<T as pallet_evm::account::Config>::CrossAccountId, u128);
pub(crate) type SelfWeightOf<T> = <T as Config>::WeightInfo;
#[frame_support::pallet]
pallets/nonfungible/Cargo.tomldiffbeforeafterboth--- a/pallets/nonfungible/Cargo.toml
+++ b/pallets/nonfungible/Cargo.toml
@@ -16,6 +16,7 @@
sp-runtime = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.18' }
sp-std = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.18' }
sp-core = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.18' }
+pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
pallet-common = { default-features = false, path = '../common' }
up-data-structs = { default-features = false, path = '../../primitives/data-structs' }
evm-coder = { default-features = false, path = '../../crates/evm-coder' }
@@ -39,6 +40,7 @@
"ethereum/std",
"pallet-evm-coder-substrate/std",
'frame-benchmarking/std',
+ "pallet-evm/std"
]
runtime-benchmarks = [
'frame-benchmarking',
pallets/nonfungible/src/erc.rsdiffbeforeafterboth--- a/pallets/nonfungible/src/erc.rs
+++ b/pallets/nonfungible/src/erc.rs
@@ -25,9 +25,9 @@
use sp_core::{H160, U256};
use sp_std::{vec::Vec, vec};
use pallet_common::{
- account::CrossAccountId,
erc::{CommonEvmHandler, PrecompileResult},
};
+use pallet_evm::account::CrossAccountId;
use pallet_evm_coder_substrate::call;
use crate::{
pallets/nonfungible/src/lib.rsdiffbeforeafterboth--- a/pallets/nonfungible/src/lib.rs
+++ b/pallets/nonfungible/src/lib.rs
@@ -21,9 +21,8 @@
use up_data_structs::{
AccessMode, CollectionId, CustomDataLimit, TokenId, CreateCollectionData, CreateNftExData,
};
-use pallet_common::{
- Error as CommonError, Pallet as PalletCommon, Event as CommonEvent, account::CrossAccountId,
-};
+use pallet_common::{Error as CommonError, Pallet as PalletCommon, Event as CommonEvent};
+use pallet_evm::account::CrossAccountId;
use pallet_evm_coder_substrate::{SubstrateRecorder, WithRecorder};
use sp_core::H160;
use sp_runtime::{ArithmeticError, DispatchError, DispatchResult};
@@ -40,7 +39,7 @@
pub mod erc;
pub mod weights;
-pub type CreateItemData<T> = CreateNftExData<<T as pallet_common::Config>::CrossAccountId>;
+pub type CreateItemData<T> = CreateNftExData<<T as pallet_evm::account::Config>::CrossAccountId>;
pub(crate) type SelfWeightOf<T> = <T as Config>::WeightInfo;
#[derive(Encode, Decode, TypeInfo, MaxEncodedLen)]
pallets/refungible/Cargo.tomldiffbeforeafterboth--- a/pallets/refungible/Cargo.toml
+++ b/pallets/refungible/Cargo.toml
@@ -16,6 +16,7 @@
sp-runtime = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.18' }
sp-std = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.18' }
sp-core = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.18' }
+pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
pallet-common = { default-features = false, path = '../common' }
up-data-structs = { default-features = false, path = '../../primitives/data-structs' }
frame-benchmarking = { default-features = false, optional = true, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.18' }
@@ -33,6 +34,7 @@
"up-data-structs/std",
"pallet-common/std",
'frame-benchmarking/std',
+ "pallet-evm/std",
]
runtime-benchmarks = [
'frame-benchmarking',
pallets/refungible/src/lib.rsdiffbeforeafterboth--- a/pallets/refungible/src/lib.rs
+++ b/pallets/refungible/src/lib.rs
@@ -21,9 +21,8 @@
AccessMode, CollectionId, CustomDataLimit, MAX_REFUNGIBLE_PIECES, TokenId,
CreateCollectionData, CreateRefungibleExData,
};
-use pallet_common::{
- Error as CommonError, Event as CommonEvent, Pallet as PalletCommon, account::CrossAccountId,
-};
+use pallet_common::{Error as CommonError, Event as CommonEvent, Pallet as PalletCommon};
+use pallet_evm::account::CrossAccountId;
use sp_runtime::{ArithmeticError, DispatchError, DispatchResult};
use sp_std::{vec::Vec, vec, collections::btree_map::BTreeMap};
use core::ops::Deref;
pallets/unique/Cargo.tomldiffbeforeafterboth--- a/pallets/unique/Cargo.toml
+++ b/pallets/unique/Cargo.toml
@@ -34,7 +34,7 @@
'fp-evm/std',
'up-data-structs/std',
'up-sponsorship/std',
- 'up-evm-mapping/std',
+ 'fp-evm-mapping/std',
'sp-std/std',
'sp-api/std',
'sp-runtime/std',
@@ -132,16 +132,16 @@
sp-api = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.18" }
up-sponsorship = { version = "0.1.0", default-features = false, git = "https://github.com/UniqueNetwork/pallet-sponsoring", branch = 'polkadot-v0.9.18' }
-up-evm-mapping = { default-features = false, path = "../../primitives/evm-mapping" }
+fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
evm-coder = { default-features = false, path = "../../crates/evm-coder" }
pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }
primitive-types = { version = "0.11.1", default-features = false, features = [
"serde_no_std",
] }
-pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-fp-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
+pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+fp-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
hex-literal = "0.3.3"
pallet-common = { default-features = false, path = "../common" }
pallets/unique/src/eth/sponsoring.rsdiffbeforeafterboth--- a/pallets/unique/src/eth/sponsoring.rs
+++ b/pallets/unique/src/eth/sponsoring.rs
@@ -24,26 +24,24 @@
use up_sponsorship::SponsorshipHandler;
use core::marker::PhantomData;
use core::convert::TryInto;
-use up_data_structs::{TokenId, CreateItemData, CreateNftData};
-use up_evm_mapping::EvmBackwardsAddressMapping;
-use pallet_common::account::CrossAccountId;
+use pallet_evm::account::CrossAccountId;
use pallet_nonfungible::erc::{
UniqueNFTCall, ERC721UniqueExtensionsCall, ERC721MintableCall, ERC721Call,
};
use pallet_fungible::erc::{UniqueFungibleCall, ERC20Call};
+use up_data_structs::{TokenId, CreateItemData, CreateNftData};
pub struct UniqueEthSponsorshipHandler<T: Config>(PhantomData<*const T>);
-impl<T: Config> SponsorshipHandler<H160, (H160, Vec<u8>)> for UniqueEthSponsorshipHandler<T> {
- fn get_sponsor(who: &H160, call: &(H160, Vec<u8>)) -> Option<H160> {
+impl<T: Config> SponsorshipHandler<T::CrossAccountId, (H160, Vec<u8>)>
+ for UniqueEthSponsorshipHandler<T>
+{
+ fn get_sponsor(who: &T::CrossAccountId, call: &(H160, Vec<u8>)) -> Option<T::CrossAccountId> {
let collection_id = map_eth_to_id(&call.0)?;
let collection = <CollectionHandle<T>>::new(collection_id)?;
let sponsor = collection.sponsorship.sponsor()?.clone();
- let sponsor =
- <T as pallet_common::Config>::EvmBackwardsAddressMapping::from_account_id(sponsor);
- let who = T::CrossAccountId::from_eth(*who);
let (method_id, mut reader) = AbiReader::new_call(&call.1).ok()?;
- match &collection.mode {
+ Some(T::CrossAccountId::from_sub(match &collection.mode {
crate::CollectionMode::NFT => {
let call = <UniqueNFTCall<T>>::parse(method_id, &mut reader).ok()??;
match call {
@@ -83,7 +81,7 @@
#[allow(clippy::single_match)]
match call {
UniqueFungibleCall::ERC20(ERC20Call::Transfer { .. }) => {
- withdraw_transfer::<T>(&collection, &who, &TokenId::default())
+ withdraw_transfer::<T>(&collection, who, &TokenId::default())
.map(|()| sponsor)
}
UniqueFungibleCall::ERC20(ERC20Call::TransferFrom { from, .. }) => {
@@ -99,6 +97,6 @@
}
}
_ => None,
- }
+ }?))
}
}
pallets/unique/src/lib.rsdiffbeforeafterboth--- a/pallets/unique/src/lib.rs
+++ b/pallets/unique/src/lib.rs
@@ -53,10 +53,8 @@
CollectionMode, TokenId, SchemaVersion, SponsorshipState, MetaUpdatePermission,
CreateCollectionData, CustomDataLimit, CreateItemExData,
};
-use pallet_common::{
- account::CrossAccountId, CollectionHandle, Pallet as PalletCommon, Error as CommonError,
- CommonWeightInfo,
-};
+use pallet_common::{CollectionHandle, Pallet as PalletCommon, Error as CommonError, CommonWeightInfo};
+use pallet_evm::account::CrossAccountId;
use pallet_refungible::{Pallet as PalletRefungible, RefungibleHandle};
use pallet_fungible::{Pallet as PalletFungible, FungibleHandle};
use pallet_nonfungible::{Pallet as PalletNonfungible, NonfungibleHandle};
@@ -122,7 +120,7 @@
pub enum Event<T>
where
<T as frame_system::Config>::AccountId,
- <T as pallet_common::Config>::CrossAccountId,
+ <T as pallet_evm::account::Config>::CrossAccountId,
{
/// Collection sponsor was removed
///
pallets/unique/src/mock.rsdiffbeforeafterboth--- a/pallets/unique/src/mock.rs
+++ b/pallets/unique/src/mock.rs
@@ -25,8 +25,8 @@
};
use pallet_transaction_payment::{CurrencyAdapter};
use frame_system as system;
-use pallet_evm::{AddressMapping, runner::stack::MaybeMirroredLog};
-use pallet_common::account::{EvmBackwardsAddressMapping, CrossAccountId};
+use pallet_evm::{AddressMapping, runner::stack::MaybeMirroredLog, account::CrossAccountId};
+use fp_evm_mapping::EvmBackwardsAddressMapping;
use codec::{Encode, Decode, MaxEncodedLen};
use scale_info::TypeInfo;
use up_data_structs::ConstU32;
@@ -191,15 +191,17 @@
impl pallet_common::Config for Test {
type Event = ();
- type EvmBackwardsAddressMapping = TestEvmBackwardsAddressMapping;
- type EvmAddressMapping = TestEvmAddressMapping;
- type CrossAccountId = TestCrossAccountId;
-
type Currency = Balances;
type CollectionCreationPrice = CollectionCreationPrice;
type TreasuryAccountId = TreasuryAccountId;
}
+impl pallet_evm::account::Config for Test {
+ type CrossAccountId = TestCrossAccountId;
+ type EvmAddressMapping = TestEvmAddressMapping;
+ type EvmBackwardsAddressMapping = TestEvmBackwardsAddressMapping;
+}
+
impl pallet_fungible::Config for Test {
type WeightInfo = ();
}
pallets/unique/src/sponsorship.rsdiffbeforeafterboth--- a/pallets/unique/src/sponsorship.rs
+++ b/pallets/unique/src/sponsorship.rs
@@ -30,7 +30,7 @@
NFT_SPONSOR_TRANSFER_TIMEOUT, REFUNGIBLE_SPONSOR_TRANSFER_TIMEOUT, TokenId,
};
use pallet_common::{CollectionHandle};
-use pallet_common::account::CrossAccountId;
+use pallet_evm::account::CrossAccountId;
pub fn withdraw_transfer<T: Config>(
collection: &CollectionHandle<T>,
pallets/unique/src/tests.rsdiffbeforeafterboth--- a/pallets/unique/src/tests.rs
+++ b/pallets/unique/src/tests.rs
@@ -18,6 +18,7 @@
use super::*;
use crate::mock::*;
use crate::{AccessMode, CollectionMode};
+use sp_runtime::AccountId32;
use up_data_structs::{
COLLECTION_NUMBER_LIMIT, CollectionId, CreateItemData, CreateFungibleData, CreateNftData,
CreateReFungibleData, MAX_DECIMAL_POINTS, COLLECTION_ADMINS_LIMIT, MetaUpdatePermission,
@@ -2854,3 +2855,59 @@
);
});
}
+
+#[test]
+fn collection_sponsoring() {
+ new_test_ext().execute_with(|| {
+ // default_limits();
+ let user1 = 1_u64;
+ let user2 = 777_u64;
+ let origin1 = Origin::signed(user1);
+ let origin2 = Origin::signed(user2);
+ let account2 = account(user2);
+
+ let collection_id =
+ create_test_collection_for_owner(&CollectionMode::NFT, user1, CollectionId(1));
+ assert_ok!(TemplateModule::set_collection_sponsor(
+ origin1.clone(),
+ collection_id,
+ user1
+ ));
+ assert_ok!(TemplateModule::confirm_sponsorship(
+ origin1.clone(),
+ collection_id
+ ));
+
+ // Expect error while have no permissions
+ assert!(TemplateModule::create_item(
+ origin2.clone(),
+ collection_id,
+ account2.clone(),
+ default_nft_data().into()
+ )
+ .is_err());
+
+ assert_ok!(TemplateModule::set_public_access_mode(
+ origin1.clone(),
+ collection_id,
+ AccessMode::AllowList
+ ));
+ assert_ok!(TemplateModule::add_to_allow_list(
+ origin1.clone(),
+ collection_id,
+ account2.clone()
+ ));
+ assert_ok!(TemplateModule::set_mint_permission(
+ origin1.clone(),
+ collection_id,
+ true
+ ));
+
+ assert_ok!(TemplateModule::create_item(
+ origin2,
+ collection_id,
+ account2,
+ default_nft_data().into()
+ ));
+ });
+}
primitives/evm-mapping/Cargo.tomldiffbeforeafterboth--- a/primitives/evm-mapping/Cargo.toml
+++ /dev/null
@@ -1,13 +0,0 @@
-[package]
-name = "up-evm-mapping"
-version = "0.1.0"
-license = "GPLv3"
-edition = "2021"
-
-[dependencies]
-sp-core = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.18' }
-frame-support = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.18' }
-
-[features]
-default = ["std"]
-std = ["sp-core/std", "frame-support/std"]
primitives/evm-mapping/src/lib.rsdiffbeforeafterboth--- a/primitives/evm-mapping/src/lib.rs
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2019-2022 Unique Network (Gibraltar) Ltd.
-// This file is part of Unique Network.
-
-// Unique Network is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-
-// Unique Network is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License
-// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
-
-#![cfg_attr(not(feature = "std"), no_std)]
-
-use frame_support::sp_runtime::AccountId32;
-use sp_core::H160;
-
-/// Transforms substrate addresses to ethereum (Reverse of `EvmAddressMapping`)
-/// pallet_evm doesn't have this, as it only checks if eth address
-/// is owned by substrate via `EnsureAddressOrigin` trait
-///
-/// This trait implementations shouldn't conflict with used `EnsureAddressOrigin`
-pub trait EvmBackwardsAddressMapping<AccountId> {
- fn from_account_id(account_id: AccountId) -> H160;
-}
-
-/// Should have same mapping as EnsureAddressTruncated
-pub struct MapBackwardsAddressTruncated;
-impl EvmBackwardsAddressMapping<AccountId32> for MapBackwardsAddressTruncated {
- fn from_account_id(account_id: AccountId32) -> H160 {
- let mut out = [0; 20];
- out.copy_from_slice(&(account_id.as_ref() as &[u8])[0..20]);
- H160(out)
- }
-}
primitives/rpc/Cargo.tomldiffbeforeafterboth--- a/primitives/rpc/Cargo.toml
+++ b/primitives/rpc/Cargo.toml
@@ -14,6 +14,7 @@
sp-std = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.18' }
sp-api = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.18' }
sp-runtime = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.18' }
+pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
[features]
default = ["std"]
primitives/rpc/src/lib.rsdiffbeforeafterboth--- a/primitives/rpc/src/lib.rs
+++ b/primitives/rpc/src/lib.rs
@@ -16,7 +16,7 @@
#![cfg_attr(not(feature = "std"), no_std)]
-use up_data_structs::{CollectionId, TokenId, Collection, CollectionStats};
+use up_data_structs::{CollectionId, TokenId, Collection, CollectionStats, CollectionLimits};
use sp_std::vec::Vec;
use sp_core::H160;
use codec::Decode;
@@ -28,7 +28,7 @@
#[api_version(2)]
pub trait UniqueApi<CrossAccountId, AccountId> where
AccountId: Decode,
- CrossAccountId: pallet_common::account::CrossAccountId<AccountId>,
+ CrossAccountId: pallet_evm::account::CrossAccountId<AccountId>,
{
#[changed_in(2)]
fn token_owner(collection: CollectionId, token: TokenId) -> Result<CrossAccountId>;
@@ -60,5 +60,6 @@
fn collection_by_id(collection: CollectionId) -> Result<Option<Collection<AccountId>>>;
fn collection_stats() -> Result<CollectionStats>;
fn next_sponsored(collection: CollectionId, account: CrossAccountId, token: TokenId) -> Result<Option<u64>>;
+ fn effective_collection_limits(collection_id: CollectionId) -> Result<Option<CollectionLimits>>;
}
}
runtime/common/Cargo.tomldiffbeforeafterboth--- a/runtime/common/Cargo.toml
+++ b/runtime/common/Cargo.toml
@@ -69,4 +69,7 @@
[dependencies.fp-rpc]
default-features = false
git = "https://github.com/uniquenetwork/frontier.git"
-branch = "unique-polkadot-v0.9.18"
+branch = "unique-polkadot-v0.9.18-2"
+
+[dependencies]
+pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
\ No newline at end of file
runtime/common/src/runtime_apis.rsdiffbeforeafterboth--- a/runtime/common/src/runtime_apis.rs
+++ b/runtime/common/src/runtime_apis.rs
@@ -75,6 +75,9 @@
collection,
account,
token))
+
+ fn effective_collection_limits(collection: CollectionId) -> Result<Option<CollectionLimits>, DispatchError> {
+ Ok(<pallet_common::Pallet<Runtime>>::effective_collection_limits(collection))
}
}
@@ -188,7 +191,7 @@
};
<Runtime as pallet_evm::Config>::Runner::call(
- from,
+ CrossAccountId::from_eth(from),
to,
data,
value,
@@ -222,7 +225,7 @@
};
<Runtime as pallet_evm::Config>::Runner::create(
- from,
+ CrossAccountId::from_eth(from),
data,
value,
gas_limit.low_u64(),
runtime/common/src/types.rsdiffbeforeafterboth--- a/runtime/common/src/types.rs
+++ b/runtime/common/src/types.rs
@@ -42,7 +42,7 @@
pub use sp_consensus_aura::sr25519::AuthorityId as AuraId;
pub trait RuntimeInstance {
- type CrossAccountId: pallet_common::account::CrossAccountId<sp_runtime::AccountId32>
+ type CrossAccountId: pallet_evm::account::CrossAccountId<sp_runtime::AccountId32>
+ Send
+ Sync
+ 'static;
runtime/opal/Cargo.tomldiffbeforeafterboth--- a/runtime/opal/Cargo.toml
+++ b/runtime/opal/Cargo.toml
@@ -72,7 +72,7 @@
'pallet-base-fee/std',
'fp-rpc/std',
'up-rpc/std',
- 'up-evm-mapping/std',
+ 'fp-evm-mapping/std',
'fp-self-contained/std',
'parachain-info/std',
'serde',
@@ -382,7 +382,7 @@
derivative = "2.2.0"
pallet-unique = { path = '../../pallets/unique', default-features = false }
up-rpc = { path = "../../primitives/rpc", default-features = false }
-up-evm-mapping = { path = "../../primitives/evm-mapping", default-features = false }
+fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
pallet-inflation = { path = '../../pallets/inflation', default-features = false }
up-data-structs = { path = '../../primitives/data-structs', default-features = false }
pallet-common = { default-features = false, path = "../../pallets/common" }
@@ -396,11 +396,11 @@
pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }
pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }
pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }
-pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
+pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
################################################################################
# Build Dependencies
runtime/opal/src/lib.rsdiffbeforeafterboth--- a/runtime/opal/src/lib.rs
+++ b/runtime/opal/src/lib.rs
@@ -48,7 +48,9 @@
};
// A few exports that help ease life for downstream crates.
pub use pallet_balances::Call as BalancesCall;
-pub use pallet_evm::{EnsureAddressTruncated, HashedAddressMapping, Runner};
+pub use pallet_evm::{
+ EnsureAddressTruncated, HashedAddressMapping, Runner, account::CrossAccountId as _,
+};
pub use frame_support::{
construct_runtime, match_type,
dispatch::DispatchResult,
@@ -117,11 +119,10 @@
pub const RUNTIME_NAME: &str = "opal";
pub const TOKEN_SYMBOL: &str = "OPL";
-type CrossAccountId = pallet_common::account::BasicCrossAccountId<Runtime>;
+type CrossAccountId = pallet_evm::account::BasicCrossAccountId<Runtime>;
impl RuntimeInstance for Runtime {
type CrossAccountId = self::CrossAccountId;
-
type TransactionConverter = self::TransactionConverter;
fn get_transaction_converter() -> TransactionConverter {
@@ -129,6 +130,22 @@
}
}
+/// The type for looking up accounts. We don't expect more than 4 billion of them, but you
+/// never know...
+pub type AccountIndex = u32;
+
+/// Balance of an account.
+pub type Balance = u128;
+
+/// Index of a transaction in the chain.
+pub type Index = u32;
+
+/// A hash of some data used by the chain.
+pub type Hash = sp_core::H256;
+
+/// Digest item type.
+pub type DigestItem = generic::DigestItem;
+
/// Opaque types. These are used by the CLI to instantiate machinery that don't need to know
/// the specifics of the runtime. They can then be made to be agnostic over specific formats
/// of data like extrinsics, allowing for them to continue syncing the network through upgrades
@@ -152,7 +169,7 @@
spec_name: create_runtime_str!(RUNTIME_NAME),
impl_name: create_runtime_str!(RUNTIME_NAME),
authoring_version: 1,
- spec_version: 918001,
+ spec_version: 918010,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
@@ -258,6 +275,12 @@
}
}
+impl pallet_evm::account::Config for Runtime {
+ type CrossAccountId = pallet_evm::account::BasicCrossAccountId<Self>;
+ type EvmAddressMapping = pallet_evm::HashedAddressMapping<Self::Hashing>;
+ type EvmBackwardsAddressMapping = fp_evm_mapping::MapBackwardsAddressTruncated;
+}
+
impl pallet_evm::Config for Runtime {
type BlockGasLimit = BlockGasLimit;
type FeeCalculator = FixedFee;
@@ -845,10 +868,6 @@
impl pallet_common::Config for Runtime {
type Event = Event;
- type EvmBackwardsAddressMapping = up_evm_mapping::MapBackwardsAddressTruncated;
- type EvmAddressMapping = HashedAddressMapping<Self::Hashing>;
- type CrossAccountId = pallet_common::account::BasicCrossAccountId<Self>;
-
type Currency = Balances;
type CollectionCreationPrice = CollectionCreationPrice;
type TreasuryAccountId = TreasuryAccountId;
@@ -912,8 +931,6 @@
impl pallet_evm_transaction_payment::Config for Runtime {
type EvmSponsorshipHandler = EvmSponsorshipHandler;
type Currency = Balances;
- type EvmAddressMapping = HashedAddressMapping<Self::Hashing>;
- type EvmBackwardsAddressMapping = up_evm_mapping::MapBackwardsAddressTruncated;
}
impl pallet_charge_transaction::Config for Runtime {
runtime/quartz/Cargo.tomldiffbeforeafterboth--- a/runtime/quartz/Cargo.toml
+++ b/runtime/quartz/Cargo.toml
@@ -72,7 +72,7 @@
'pallet-base-fee/std',
'fp-rpc/std',
'up-rpc/std',
- 'up-evm-mapping/std',
+ 'fp-evm-mapping/std',
'fp-self-contained/std',
'parachain-info/std',
'serde',
@@ -382,7 +382,7 @@
derivative = "2.2.0"
pallet-unique = { path = '../../pallets/unique', default-features = false }
up-rpc = { path = "../../primitives/rpc", default-features = false }
-up-evm-mapping = { path = "../../primitives/evm-mapping", default-features = false }
+fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
pallet-inflation = { path = '../../pallets/inflation', default-features = false }
up-data-structs = { path = '../../primitives/data-structs', default-features = false }
pallet-common = { default-features = false, path = "../../pallets/common" }
@@ -396,11 +396,11 @@
pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }
pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }
pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }
-pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
+pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
################################################################################
# Build Dependencies
runtime/quartz/src/lib.rsdiffbeforeafterboth--- a/runtime/quartz/src/lib.rs
+++ b/runtime/quartz/src/lib.rs
@@ -48,7 +48,9 @@
};
// A few exports that help ease life for downstream crates.
pub use pallet_balances::Call as BalancesCall;
-pub use pallet_evm::{EnsureAddressTruncated, HashedAddressMapping, Runner};
+pub use pallet_evm::{
+ EnsureAddressTruncated, HashedAddressMapping, Runner, account::CrossAccountId as _,
+};
pub use frame_support::{
construct_runtime, match_type,
dispatch::DispatchResult,
@@ -117,7 +119,7 @@
pub const RUNTIME_NAME: &str = "quartz";
pub const TOKEN_SYMBOL: &str = "QTZ";
-type CrossAccountId = pallet_common::account::BasicCrossAccountId<Runtime>;
+type CrossAccountId = pallet_evm::account::BasicCrossAccountId<Runtime>;
impl RuntimeInstance for Runtime {
type CrossAccountId = self::CrossAccountId;
@@ -152,7 +154,7 @@
spec_name: create_runtime_str!(RUNTIME_NAME),
impl_name: create_runtime_str!(RUNTIME_NAME),
authoring_version: 1,
- spec_version: 918001,
+ spec_version: 918010,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
@@ -845,15 +847,18 @@
impl pallet_common::Config for Runtime {
type Event = Event;
- type EvmBackwardsAddressMapping = up_evm_mapping::MapBackwardsAddressTruncated;
- type EvmAddressMapping = HashedAddressMapping<Self::Hashing>;
- type CrossAccountId = pallet_common::account::BasicCrossAccountId<Self>;
type Currency = Balances;
type CollectionCreationPrice = CollectionCreationPrice;
type TreasuryAccountId = TreasuryAccountId;
}
+impl pallet_evm::account::Config for Runtime {
+ type CrossAccountId = pallet_evm::account::BasicCrossAccountId<Self>;
+ type EvmAddressMapping = HashedAddressMapping<Self::Hashing>;
+ type EvmBackwardsAddressMapping = fp_evm_mapping::MapBackwardsAddressTruncated;
+}
+
impl pallet_fungible::Config for Runtime {
type WeightInfo = pallet_fungible::weights::SubstrateWeight<Self>;
}
@@ -912,8 +917,6 @@
impl pallet_evm_transaction_payment::Config for Runtime {
type EvmSponsorshipHandler = EvmSponsorshipHandler;
type Currency = Balances;
- type EvmAddressMapping = HashedAddressMapping<Self::Hashing>;
- type EvmBackwardsAddressMapping = up_evm_mapping::MapBackwardsAddressTruncated;
}
impl pallet_charge_transaction::Config for Runtime {
runtime/unique/Cargo.tomldiffbeforeafterboth--- a/runtime/unique/Cargo.toml
+++ b/runtime/unique/Cargo.toml
@@ -72,7 +72,7 @@
'pallet-base-fee/std',
'fp-rpc/std',
'up-rpc/std',
- 'up-evm-mapping/std',
+ 'fp-evm-mapping/std',
'fp-self-contained/std',
'parachain-info/std',
'serde',
@@ -382,7 +382,6 @@
derivative = "2.2.0"
pallet-unique = { path = '../../pallets/unique', default-features = false }
up-rpc = { path = "../../primitives/rpc", default-features = false }
-up-evm-mapping = { path = "../../primitives/evm-mapping", default-features = false }
pallet-inflation = { path = '../../pallets/inflation', default-features = false }
up-data-structs = { path = '../../primitives/data-structs', default-features = false }
pallet-common = { default-features = false, path = "../../pallets/common" }
@@ -396,11 +395,12 @@
pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }
pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }
pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }
-pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
-fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18" }
+pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
+fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier.git", branch = "unique-polkadot-v0.9.18-2" }
################################################################################
# Build Dependencies
runtime/unique/src/lib.rsdiffbeforeafterboth--- a/runtime/unique/src/lib.rs
+++ b/runtime/unique/src/lib.rs
@@ -48,7 +48,9 @@
};
// A few exports that help ease life for downstream crates.
pub use pallet_balances::Call as BalancesCall;
-pub use pallet_evm::{EnsureAddressTruncated, HashedAddressMapping, Runner};
+pub use pallet_evm::{
+ EnsureAddressTruncated, HashedAddressMapping, Runner, account::CrossAccountId as _,
+};
pub use frame_support::{
construct_runtime, match_type,
dispatch::DispatchResult,
@@ -116,7 +118,7 @@
pub const RUNTIME_NAME: &str = "unique";
pub const TOKEN_SYMBOL: &str = "UNQ";
-type CrossAccountId = pallet_common::account::BasicCrossAccountId<Runtime>;
+type CrossAccountId = pallet_evm::account::BasicCrossAccountId<Runtime>;
impl RuntimeInstance for Runtime {
type CrossAccountId = self::CrossAccountId;
@@ -151,7 +153,7 @@
spec_name: create_runtime_str!(RUNTIME_NAME),
impl_name: create_runtime_str!(RUNTIME_NAME),
authoring_version: 1,
- spec_version: 918001,
+ spec_version: 918010,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
@@ -844,15 +846,17 @@
impl pallet_common::Config for Runtime {
type Event = Event;
- type EvmBackwardsAddressMapping = up_evm_mapping::MapBackwardsAddressTruncated;
- type EvmAddressMapping = HashedAddressMapping<Self::Hashing>;
- type CrossAccountId = pallet_common::account::BasicCrossAccountId<Self>;
-
type Currency = Balances;
type CollectionCreationPrice = CollectionCreationPrice;
type TreasuryAccountId = TreasuryAccountId;
}
+impl pallet_evm::account::Config for Runtime {
+ type CrossAccountId = pallet_evm::account::BasicCrossAccountId<Self>;
+ type EvmAddressMapping = HashedAddressMapping<Self::Hashing>;
+ type EvmBackwardsAddressMapping = fp_evm_mapping::MapBackwardsAddressTruncated;
+}
+
impl pallet_fungible::Config for Runtime {
type WeightInfo = pallet_fungible::weights::SubstrateWeight<Self>;
}
@@ -911,8 +915,6 @@
impl pallet_evm_transaction_payment::Config for Runtime {
type EvmSponsorshipHandler = EvmSponsorshipHandler;
type Currency = Balances;
- type EvmAddressMapping = HashedAddressMapping<Self::Hashing>;
- type EvmBackwardsAddressMapping = up_evm_mapping::MapBackwardsAddressTruncated;
}
impl pallet_charge_transaction::Config for Runtime {
tests/README.mddiffbeforeafterboth--- a/tests/README.md
+++ b/tests/README.md
@@ -20,7 +20,7 @@
git clone https://github.com/paritytech/polkadot-launch && cd polkadot-launch
```
-5. Run launch-test-env.sh from the root of this project
+5. Run launch-testnet.sh from the root of this project
## How to run tests
tests/package.jsondiffbeforeafterboth--- a/tests/package.json
+++ b/tests/package.json
@@ -67,6 +67,7 @@
"testPalletPresence": "mocha --timeout 9999999 -r ts-node/register ./**/pallet-presence.test.ts",
"testBlockProduction": "mocha --timeout 9999999 -r ts-node/register ./**/block-production.test.ts",
"testEnableDisableTransfers": "mocha --timeout 9999999 -r ts-node/register ./**/enableDisableTransfer.test.ts",
+ "testLimits": "mocha --timeout 9999999 -r ts-node/register ./**/limits.test.ts",
"polkadot-types-fetch-metadata": "curl -H 'Content-Type: application/json' -d '{\"id\":\"1\", \"jsonrpc\":\"2.0\", \"method\": \"state_getMetadata\", \"params\":[]}' http://localhost:9933 > src/interfaces/metadata.json",
"polkadot-types-from-defs": "echo 'export default {}' > src/interfaces/lookup.ts && ts-node ./node_modules/.bin/polkadot-types-from-defs --endpoint src/interfaces/metadata.json --input src/interfaces/ --package .",
"polkadot-types-from-chain": "ts-node ./node_modules/.bin/polkadot-types-from-chain --endpoint src/interfaces/metadata.json --output src/interfaces/ --package .",
tests/src/eth/base.test.tsdiffbeforeafterboth--- a/tests/src/eth/base.test.ts
+++ b/tests/src/eth/base.test.ts
@@ -34,7 +34,8 @@
const userB = createEthAccount(web3);
const cost = await recordEthFee(api, userA, () => web3.eth.sendTransaction({from: userA, to: userB, value: '1000000', ...GAS_ARGS}));
- expect(cost - await ethBalanceViaSub(api, userB) < BigInt(0.2 * Number(UNIQUE))).to.be.true;
+ const balanceB = await ethBalanceViaSub(api, userB);
+ expect(cost - balanceB < BigInt(0.2 * Number(UNIQUE))).to.be.true;
});
itWeb3('NFT transfer is close to 0.15 UNQ', async ({web3, api}) => {
tests/src/eth/contractSponsoring.test.tsdiffbeforeafterboth--- a/tests/src/eth/contractSponsoring.test.ts
+++ b/tests/src/eth/contractSponsoring.test.ts
@@ -24,7 +24,24 @@
itWeb3,
SponsoringMode,
createEthAccount,
+ collectionIdToAddress,
+ GAS_ARGS,
+ normalizeEvents,
+ subToEth,
+ executeEthTxOnSub,
} from './util/helpers';
+import {
+ addCollectionAdminExpectSuccess,
+ createCollectionExpectSuccess,
+ getCreateCollectionResult,
+ transferBalanceTo,
+} from '../util/helpers';
+import nonFungibleAbi from './nonFungibleAbi.json';
+import {
+ submitTransactionAsync,
+} from '../substrate/substrate-api';
+import getBalance from '../substrate/get-balance';
+import {alicesPublicKey} from '../accounts';
describe('Sponsoring EVM contracts', () => {
itWeb3('Sponsoring can be set by the address that has deployed the contract', async ({api, web3}) => {
@@ -199,4 +216,115 @@
const helpers = contractHelpers(web3, owner);
expect(await helpers.methods.getSponsoringRateLimit(flipper.options.address).call()).to.be.equals('7200');
});
+
+ itWeb3('Sponsoring evm address from substrate collection', async ({api, web3}) => {
+ const owner = privateKey('//Alice');
+ const userEth = createEthAccount(web3);
+ const collectionId = await createCollectionExpectSuccess();
+
+ {
+ const tx = api.tx.unique.setCollectionSponsor(collectionId, owner.address);
+ const events = await submitTransactionAsync(owner, tx);
+ const result = getCreateCollectionResult(events);
+ expect(result.success).to.be.true;
+ }
+ {
+ const tx = api.tx.unique.confirmSponsorship(collectionId);
+ const events = await submitTransactionAsync(owner, tx);
+ const result = getCreateCollectionResult(events);
+ expect(result.success).to.be.true;
+ }
+
+ const address = collectionIdToAddress(collectionId);
+ const contract = new web3.eth.Contract(nonFungibleAbi as any, address, {from: userEth, ...GAS_ARGS});
+
+ { // This part should fail, because user not in access list and user have no money
+ const nextTokenId = await contract.methods.nextTokenId().call();
+ expect(nextTokenId).to.be.equal('1');
+ await expect(contract.methods.mintWithTokenURI(
+ userEth,
+ nextTokenId,
+ 'Test URI',
+ ).call({from: userEth})).to.be.rejectedWith(/PublicMintingNotAllowed/);
+ }
+
+ {
+ const tx = api.tx.unique.setPublicAccessMode(collectionId, 'AllowList');
+ const events = await submitTransactionAsync(owner, tx);
+ const result = getCreateCollectionResult(events);
+ expect(result.success).to.be.true;
+ }
+ {
+ const tx = api.tx.unique.addToAllowList(collectionId, {Ethereum: userEth});
+ const events = await submitTransactionAsync(owner, tx);
+ const result = getCreateCollectionResult(events);
+ expect(result.success).to.be.true;
+ }
+ {
+ const tx = api.tx.unique.setMintPermission(collectionId, true);
+ const events = await submitTransactionAsync(owner, tx);
+ const result = getCreateCollectionResult(events);
+ expect(result.success).to.be.true;
+ }
+
+ const [alicesBalanceBefore] = await getBalance(api, [alicesPublicKey]);
+
+ {
+ const nextTokenId = await contract.methods.nextTokenId().call();
+ expect(nextTokenId).to.be.equal('1');
+ const result = await contract.methods.mintWithTokenURI(
+ userEth,
+ nextTokenId,
+ 'Test URI',
+ ).send({from: userEth});
+ const events = normalizeEvents(result.events);
+
+ expect(events).to.be.deep.equal([
+ {
+ address,
+ event: 'Transfer',
+ args: {
+ from: '0x0000000000000000000000000000000000000000',
+ to: userEth,
+ tokenId: nextTokenId,
+ },
+ },
+ ]);
+
+ expect(await contract.methods.tokenURI(nextTokenId).call()).to.be.equal('Test URI');
+ }
+
+ const [alicesBalanceAfter] = await getBalance(api, [alicesPublicKey]);
+ expect(alicesBalanceAfter < alicesBalanceBefore).to.be.true;
+ });
+
+
+ itWeb3('Check that transaction via EVM spend money from substrate address', async ({api, web3}) => {
+ const owner = privateKey('//Alice');
+ const user = privateKey(`//User/${Date.now()}`);
+ const userEth = subToEth(user.address);
+ const collectionId = await createCollectionExpectSuccess();
+ await addCollectionAdminExpectSuccess(owner, collectionId, {Ethereum: userEth});
+ await transferBalanceTo(api, owner, user.address);
+
+ const address = collectionIdToAddress(collectionId);
+ const contract = new web3.eth.Contract(nonFungibleAbi as any, address, {from: userEth, ...GAS_ARGS});
+
+ const [userBalanceBefore] = await getBalance(api, [user.address]);
+
+ {
+ const nextTokenId = await contract.methods.nextTokenId().call();
+ expect(nextTokenId).to.be.equal('1');
+ await executeEthTxOnSub(web3, api, user, contract, m => m.mintWithTokenURI(
+ userEth,
+ nextTokenId,
+ 'Test URI',
+ ));
+
+ expect(await contract.methods.tokenURI(nextTokenId).call()).to.be.equal('Test URI');
+ }
+
+ const [userBalanceAfter] = await getBalance(api, [user.address]);
+ expect(userBalanceAfter < userBalanceBefore).to.be.true;
+ });
});
tests/src/eth/marketplace/marketplace.test.tsdiffbeforeafterboth--- a/tests/src/eth/marketplace/marketplace.test.ts
+++ b/tests/src/eth/marketplace/marketplace.test.ts
@@ -15,13 +15,24 @@
// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
import {readFile} from 'fs/promises';
-import {getBalanceSingle, transferBalanceExpectSuccess} from '../../substrate/get-balance';
+import {getBalanceSingle} from '../../substrate/get-balance';
import privateKey from '../../substrate/privateKey';
-import {addToAllowListExpectSuccess, confirmSponsorshipExpectSuccess, createCollectionExpectSuccess, createFungibleItemExpectSuccess, createItemExpectSuccess, getTokenOwner, setCollectionLimitsExpectSuccess, setCollectionSponsorExpectSuccess, transferExpectSuccess, transferFromExpectSuccess} from '../../util/helpers';
+import {
+ addToAllowListExpectSuccess,
+ confirmSponsorshipExpectSuccess,
+ createCollectionExpectSuccess,
+ createItemExpectSuccess,
+ getTokenOwner,
+ setCollectionLimitsExpectSuccess,
+ setCollectionSponsorExpectSuccess,
+ transferExpectSuccess,
+ transferFromExpectSuccess,
+ transferBalanceTo,
+} from '../../util/helpers';
import {collectionIdToAddress, contractHelpers, createEthAccountWithBalance, executeEthTxOnSub, GAS_ARGS, itWeb3, SponsoringMode, subToEth, subToEthLowercase, transferBalanceToEth} from '../util/helpers';
import {evmToAddress} from '@polkadot/util-crypto';
import nonFungibleAbi from '../nonFungibleAbi.json';
-import fungibleAbi from '../fungibleAbi.json';
+
import {expect} from 'chai';
const PRICE = 2000n;
@@ -87,32 +98,39 @@
expect(await getTokenOwner(api, collectionId, tokenId)).to.be.deep.equal({Substrate: alice.address});
});
- // selling for custom tokens excluded from release
- itWeb3.skip('With custom ERC20', async ({api, web3}) => {
+
+ itWeb3('With escrow', async ({api, web3}) => {
const alice = privateKey('//Alice');
const matcherOwner = await createEthAccountWithBalance(api, web3);
+ const escrow = await createEthAccountWithBalance(api, web3);
const matcherContract = new web3.eth.Contract(JSON.parse((await readFile(`${__dirname}/MarketPlace.abi`)).toString()), undefined, {
from: matcherOwner,
...GAS_ARGS,
});
- const matcher = await matcherContract.deploy({data: (await readFile(`${__dirname}/MarketPlace.bin`)).toString(), arguments: [matcherOwner]}).send({from: matcherOwner});
+ const matcher = await matcherContract.deploy({data: (await readFile(`${__dirname}/MarketPlace.bin`)).toString(), arguments: [matcherOwner]}).send({from: matcherOwner, gas: 10000000});
+ await matcher.methods.setEscrow(escrow).send({from: matcherOwner});
+ const helpers = contractHelpers(web3, matcherOwner);
+ await helpers.methods.setSponsoringMode(matcher.options.address, SponsoringMode.Allowlisted).send({from: matcherOwner});
+ await helpers.methods.setSponsoringRateLimit(matcher.options.address, 1).send({from: matcherOwner});
+ await transferBalanceToEth(api, alice, matcher.options.address);
const collectionId = await createCollectionExpectSuccess({mode: {type: 'NFT'}});
+ await setCollectionLimitsExpectSuccess(alice, collectionId, {sponsorApproveTimeout: 1});
const evmCollection = new web3.eth.Contract(nonFungibleAbi as any, collectionIdToAddress(collectionId), {from: matcherOwner});
+ await setCollectionSponsorExpectSuccess(collectionId, alice.address);
+ await transferBalanceToEth(api, alice, subToEth(alice.address));
+ await confirmSponsorshipExpectSuccess(collectionId);
- const fungibleId = await createCollectionExpectSuccess({mode: {type: 'Fungible', decimalPoints: 0}});
- const evmFungible = new web3.eth.Contract(fungibleAbi as any, collectionIdToAddress(fungibleId), {from: matcherOwner, ...GAS_ARGS});
- await createFungibleItemExpectSuccess(alice, fungibleId, {Value: PRICE}, {Ethereum: subToEth(alice.address)});
+ await helpers.methods.toggleAllowed(matcher.options.address, subToEth(alice.address), true).send({from: matcherOwner});
+ await addToAllowListExpectSuccess(alice, collectionId, evmToAddress(subToEth(alice.address)));
- const seller = privateKey('//Bob');
+ const seller = privateKey(`//Seller/${Date.now()}`);
+ await helpers.methods.toggleAllowed(matcher.options.address, subToEth(seller.address), true).send({from: matcherOwner});
const tokenId = await createItemExpectSuccess(alice, collectionId, 'NFT', seller.address);
// To transfer item to matcher it first needs to be transfered to EVM account of bob
await transferExpectSuccess(collectionId, tokenId, seller, {Ethereum: subToEth(seller.address)});
- // Fees will be paid from EVM account, so we should have some balance here
- await transferBalanceExpectSuccess(api, seller, evmToAddress(subToEth(seller.address)), 10n ** 18n);
- await transferBalanceExpectSuccess(api, alice, evmToAddress(subToEth(alice.address)), 10n ** 18n);
// Token is owned by seller initially
expect(await getTokenOwner(api, collectionId, tokenId)).to.be.deep.equal({Ethereum: subToEthLowercase(seller.address)});
@@ -120,66 +138,55 @@
// Ask
{
await executeEthTxOnSub(web3, api, seller, evmCollection, m => m.approve(matcher.options.address, tokenId));
- await executeEthTxOnSub(web3, api, seller, matcher, m => m.addAsk(PRICE, evmFungible.options.address, evmCollection.options.address, tokenId, 1));
+ await executeEthTxOnSub(web3, api, seller, matcher, m => m.addAsk(PRICE, '0x0000000000000000000000000000000000000001', evmCollection.options.address, tokenId));
}
// Token is transferred to matcher
expect(await getTokenOwner(api, collectionId, tokenId)).to.be.deep.equal({Ethereum: matcher.options.address.toLowerCase()});
+ // Give buyer KSM
+ await matcher.methods.depositKSM(PRICE, subToEth(alice.address)).send({from: escrow});
+
// Buy
{
- const sellerBalanceBeforePurchase = BigInt(await evmFungible.methods.balanceOf(subToEth(seller.address)).call());
- const buyerBalanceBeforePurchase = BigInt(await evmFungible.methods.balanceOf(subToEth(alice.address)).call());
+ expect(await matcher.methods.balanceKSM(subToEth(seller.address)).call()).to.be.equal('0');
+ expect(await matcher.methods.balanceKSM(subToEth(alice.address)).call()).to.be.equal(PRICE.toString());
- await executeEthTxOnSub(web3, api, alice, evmFungible, m => m.approve(matcher.options.address, PRICE));
- // There is two functions named 'buy', so we should provide full signature
- await executeEthTxOnSub(web3, api, alice, matcher, m =>
- m['buy(address,uint256,address,uint256)'](evmCollection.options.address, tokenId, evmFungible.options.address, PRICE));
+ await executeEthTxOnSub(web3, api, alice, matcher, m => m.buyKSM(evmCollection.options.address, tokenId, subToEth(alice.address), subToEth(alice.address)));
- // Approved price is removed from buyer balance, and added to seller
- expect(BigInt(await evmFungible.methods.balanceOf(subToEth(seller.address)).call()) - sellerBalanceBeforePurchase === PRICE);
- expect(buyerBalanceBeforePurchase - BigInt(await evmFungible.methods.balanceOf(subToEth(alice.address)).call()) === PRICE);
+ // Price is removed from buyer balance, and added to seller
+ expect(await matcher.methods.balanceKSM(subToEth(alice.address)).call()).to.be.equal('0');
+ expect(await matcher.methods.balanceKSM(subToEth(seller.address)).call()).to.be.equal(PRICE.toString());
}
// Token is transferred to evm account of alice
expect(await getTokenOwner(api, collectionId, tokenId)).to.be.deep.equal({Ethereum: subToEthLowercase(alice.address)});
-
// Transfer token to substrate side of alice
await transferFromExpectSuccess(collectionId, tokenId, alice, {Ethereum: subToEth(alice.address)}, {Substrate: alice.address});
- // Token is transferred to substrate account of alice
+ // Token is transferred to substrate account of alice, seller received funds
expect(await getTokenOwner(api, collectionId, tokenId)).to.be.deep.equal({Substrate: alice.address});
});
- itWeb3('With escrow', async ({api, web3}) => {
+
+ itWeb3('Sell tokens from substrate user via EVM contract', async ({api, web3}) => {
const alice = privateKey('//Alice');
const matcherOwner = await createEthAccountWithBalance(api, web3);
- const escrow = await createEthAccountWithBalance(api, web3);
const matcherContract = new web3.eth.Contract(JSON.parse((await readFile(`${__dirname}/MarketPlace.abi`)).toString()), undefined, {
from: matcherOwner,
...GAS_ARGS,
});
- const matcher = await matcherContract.deploy({data: (await readFile(`${__dirname}/MarketPlace.bin`)).toString(), arguments: [matcherOwner]}).send({from: matcherOwner, gas: 10000000});
- await matcher.methods.setEscrow(escrow).send({from: matcherOwner});
- const helpers = contractHelpers(web3, matcherOwner);
- await helpers.methods.setSponsoringMode(matcher.options.address, SponsoringMode.Allowlisted).send({from: matcherOwner});
- await helpers.methods.setSponsoringRateLimit(matcher.options.address, 1).send({from: matcherOwner});
+ const matcher = await matcherContract.deploy({data: (await readFile(`${__dirname}/MarketPlace.bin`)).toString(), arguments:[matcherOwner]}).send({from: matcherOwner});
await transferBalanceToEth(api, alice, matcher.options.address);
const collectionId = await createCollectionExpectSuccess({mode: {type: 'NFT'}});
await setCollectionLimitsExpectSuccess(alice, collectionId, {sponsorApproveTimeout: 1});
const evmCollection = new web3.eth.Contract(nonFungibleAbi as any, collectionIdToAddress(collectionId), {from: matcherOwner});
- await setCollectionSponsorExpectSuccess(collectionId, alice.address);
- await transferBalanceToEth(api, alice, subToEth(alice.address));
- await confirmSponsorshipExpectSuccess(collectionId);
-
- await helpers.methods.toggleAllowed(matcher.options.address, subToEth(alice.address), true).send({from: matcherOwner});
- await addToAllowListExpectSuccess(alice, collectionId, evmToAddress(subToEth(alice.address)));
const seller = privateKey(`//Seller/${Date.now()}`);
- await helpers.methods.toggleAllowed(matcher.options.address, subToEth(seller.address), true).send({from: matcherOwner});
-
+ await transferBalanceTo(api, alice, seller.address);
+
const tokenId = await createItemExpectSuccess(alice, collectionId, 'NFT', seller.address);
// To transfer item to matcher it first needs to be transfered to EVM account of bob
@@ -197,19 +204,11 @@
// Token is transferred to matcher
expect(await getTokenOwner(api, collectionId, tokenId)).to.be.deep.equal({Ethereum: matcher.options.address.toLowerCase()});
- // Give buyer KSM
- await matcher.methods.depositKSM(PRICE, subToEth(alice.address)).send({from: escrow});
-
// Buy
{
- expect(await matcher.methods.balanceKSM(subToEth(seller.address)).call()).to.be.equal('0');
- expect(await matcher.methods.balanceKSM(subToEth(alice.address)).call()).to.be.equal(PRICE.toString());
-
- await executeEthTxOnSub(web3, api, alice, matcher, m => m.buyKSM(evmCollection.options.address, tokenId, subToEth(alice.address), subToEth(alice.address)));
-
- // Price is removed from buyer balance, and added to seller
- expect(await matcher.methods.balanceKSM(subToEth(alice.address)).call()).to.be.equal('0');
- expect(await matcher.methods.balanceKSM(subToEth(seller.address)).call()).to.be.equal(PRICE.toString());
+ const sellerBalanceBeforePurchase = await getBalanceSingle(api, seller.address);
+ await executeEthTxOnSub(web3, api, alice, matcher, m => m.buy(evmCollection.options.address, tokenId), {value: PRICE});
+ expect(await getBalanceSingle(api, seller.address) - sellerBalanceBeforePurchase === PRICE);
}
// Token is transferred to evm account of alice
tests/src/eth/util/helpers.tsdiffbeforeafterboth--- a/tests/src/eth/util/helpers.ts
+++ b/tests/src/eth/util/helpers.ts
@@ -29,6 +29,7 @@
import privateKey from '../../substrate/privateKey';
import contractHelpersAbi from './contractHelpersAbi.json';
import getBalance from '../../substrate/get-balance';
+import waitNewBlocks from '../../substrate/wait-new-blocks';
export const GAS_ARGS = {gas: 2500000};
@@ -241,6 +242,12 @@
return collector;
}
+/**
+ * pallet evm_contract_helpers
+ * @param web3
+ * @param caller - eth address
+ * @returns
+ */
export function contractHelpers(web3: Web3, caller: string) {
return new web3.eth.Contract(contractHelpersAbi as any, '0x842899ECF380553E8a4de75bF534cdf6fBF64049', {from: caller, ...GAS_ARGS});
}
@@ -287,6 +294,8 @@
await call();
+ // In dev mode, the transaction might not finish processing in time
+ await waitNewBlocks(api, 1);
const after = await ethBalanceViaSub(api, user);
// Can't use .to.be.less, because chai doesn't supports bigint
tests/src/interfaces/augment-api-errors.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-errors.ts
+++ b/tests/src/interfaces/augment-api-errors.ts
@@ -105,6 +105,10 @@
**/
NoPermission: AugmentedError<ApiType>;
/**
+ * Not sufficient founds to perform action
+ **/
+ NotSufficientFounds: AugmentedError<ApiType>;
+ /**
* Tried to enable permissions which are only permitted to be disabled
**/
OwnerPermissionsCantBeReverted: AugmentedError<ApiType>;
tests/src/interfaces/augment-api-events.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-events.ts
+++ b/tests/src/interfaces/augment-api-events.ts
@@ -4,7 +4,7 @@
import type { ApiTypes } from '@polkadot/api-base/types';
import type { Null, Option, Result, U256, U8aFixed, u128, u32, u64, u8 } from '@polkadot/types-codec';
import type { AccountId32, H160, H256 } from '@polkadot/types/interfaces/runtime';
-import type { EthereumLog, EvmCoreErrorExitReason, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, OrmlVestingVestingSchedule, PalletCommonAccountBasicCrossAccountIdRepr, SpRuntimeDispatchError, UpDataStructsAccessMode, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
+import type { EthereumLog, EvmCoreErrorExitReason, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, OrmlVestingVestingSchedule, PalletEvmAccountBasicCrossAccountIdRepr, SpRuntimeDispatchError, UpDataStructsAccessMode, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
declare module '@polkadot/api-base/types/events' {
export interface AugmentedEvents<ApiType extends ApiTypes> {
@@ -68,7 +68,7 @@
*
* * amount
**/
- Approved: AugmentedEvent<ApiType, [u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, PalletCommonAccountBasicCrossAccountIdRepr, u128]>;
+ Approved: AugmentedEvent<ApiType, [u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;
/**
* New collection was created
*
@@ -102,7 +102,7 @@
*
* * amount: Always 1 for NFT
**/
- ItemCreated: AugmentedEvent<ApiType, [u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, u128]>;
+ ItemCreated: AugmentedEvent<ApiType, [u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;
/**
* Collection item was burned.
*
@@ -116,7 +116,7 @@
*
* * amount: Always 1 for NFT
**/
- ItemDestroyed: AugmentedEvent<ApiType, [u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, u128]>;
+ ItemDestroyed: AugmentedEvent<ApiType, [u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;
/**
* Item was transferred
*
@@ -130,7 +130,7 @@
*
* * amount: Always 1 for NFT
**/
- Transfer: AugmentedEvent<ApiType, [u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, PalletCommonAccountBasicCrossAccountIdRepr, u128]>;
+ Transfer: AugmentedEvent<ApiType, [u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;
/**
* Generic event
**/
@@ -483,7 +483,7 @@
*
* * user: Address.
**/
- AllowListAddressAdded: AugmentedEvent<ApiType, [u32, PalletCommonAccountBasicCrossAccountIdRepr]>;
+ AllowListAddressAdded: AugmentedEvent<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
/**
* Address was remove from allow list
*
@@ -493,7 +493,7 @@
*
* * user: Address.
**/
- AllowListAddressRemoved: AugmentedEvent<ApiType, [u32, PalletCommonAccountBasicCrossAccountIdRepr]>;
+ AllowListAddressRemoved: AugmentedEvent<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
/**
* Collection admin was added
*
@@ -503,7 +503,7 @@
*
* * admin: Admin address.
**/
- CollectionAdminAdded: AugmentedEvent<ApiType, [u32, PalletCommonAccountBasicCrossAccountIdRepr]>;
+ CollectionAdminAdded: AugmentedEvent<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
/**
* Collection admin was removed
*
@@ -513,7 +513,7 @@
*
* * admin: Admin address.
**/
- CollectionAdminRemoved: AugmentedEvent<ApiType, [u32, PalletCommonAccountBasicCrossAccountIdRepr]>;
+ CollectionAdminRemoved: AugmentedEvent<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
/**
* Collection limits was set
*
tests/src/interfaces/augment-api-query.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-query.ts
+++ b/tests/src/interfaces/augment-api-query.ts
@@ -5,7 +5,7 @@
import type { BTreeMap, Bytes, Option, U256, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, H160, H256 } from '@polkadot/types/interfaces/runtime';
-import type { CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, EthereumBlock, EthereumReceiptReceiptV3, EthereumTransactionTransactionV2, FpRpcTransactionStatus, FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, OrmlVestingVestingSchedule, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletCommonAccountBasicCrossAccountIdRepr, PalletEvmContractHelpersSponsoringModeT, PalletNonfungibleItemData, PalletRefungibleItemData, PalletTransactionPaymentReleases, PalletTreasuryProposal, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV1AbridgedHostConfiguration, PolkadotPrimitivesV1PersistedValidationData, PolkadotPrimitivesV1UpgradeRestriction, SpRuntimeDigest, UpDataStructsCollection, UpDataStructsCollectionStats } from '@polkadot/types/lookup';
+import type { CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, EthereumBlock, EthereumReceiptReceiptV3, EthereumTransactionTransactionV2, FpRpcTransactionStatus, FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, OrmlVestingVestingSchedule, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmContractHelpersSponsoringModeT, PalletNonfungibleItemData, PalletRefungibleItemData, PalletTransactionPaymentReleases, PalletTreasuryProposal, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV1AbridgedHostConfiguration, PolkadotPrimitivesV1PersistedValidationData, PolkadotPrimitivesV1UpgradeRestriction, SpRuntimeDigest, UpDataStructsCollection, UpDataStructsCollectionStats } from '@polkadot/types/lookup';
import type { Observable } from '@polkadot/types/types';
declare module '@polkadot/api-base/types/storage' {
@@ -73,7 +73,7 @@
/**
* Allowlisted collection users
**/
- allowlist: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => Observable<bool>, [u32, PalletCommonAccountBasicCrossAccountIdRepr]> & QueryableStorageEntry<ApiType, [u32, PalletCommonAccountBasicCrossAccountIdRepr]>;
+ allowlist: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => Observable<bool>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]> & QueryableStorageEntry<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
/**
* Collection info
**/
@@ -87,7 +87,7 @@
/**
* List of collection admins
**/
- isAdmin: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => Observable<bool>, [u32, PalletCommonAccountBasicCrossAccountIdRepr]> & QueryableStorageEntry<ApiType, [u32, PalletCommonAccountBasicCrossAccountIdRepr]>;
+ isAdmin: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => Observable<bool>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]> & QueryableStorageEntry<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
/**
* Generic query
**/
@@ -173,8 +173,8 @@
[key: string]: QueryableStorageEntry<ApiType>;
};
fungible: {
- allowance: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, arg3: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => Observable<u128>, [u32, PalletCommonAccountBasicCrossAccountIdRepr, PalletCommonAccountBasicCrossAccountIdRepr]> & QueryableStorageEntry<ApiType, [u32, PalletCommonAccountBasicCrossAccountIdRepr, PalletCommonAccountBasicCrossAccountIdRepr]>;
- balance: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => Observable<u128>, [u32, PalletCommonAccountBasicCrossAccountIdRepr]> & QueryableStorageEntry<ApiType, [u32, PalletCommonAccountBasicCrossAccountIdRepr]>;
+ allowance: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, arg3: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => Observable<u128>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr]> & QueryableStorageEntry<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr]>;
+ balance: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => Observable<u128>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]> & QueryableStorageEntry<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
totalSupply: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Generic query
@@ -208,12 +208,12 @@
[key: string]: QueryableStorageEntry<ApiType>;
};
nonfungible: {
- accountBalance: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => Observable<u32>, [u32, PalletCommonAccountBasicCrossAccountIdRepr]> & QueryableStorageEntry<ApiType, [u32, PalletCommonAccountBasicCrossAccountIdRepr]>;
- allowance: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletCommonAccountBasicCrossAccountIdRepr>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
+ accountBalance: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => Observable<u32>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]> & QueryableStorageEntry<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
+ allowance: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletEvmAccountBasicCrossAccountIdRepr>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
/**
* Used to enumerate tokens owned by account
**/
- owned: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, arg3: u32 | AnyNumber | Uint8Array) => Observable<bool>, [u32, PalletCommonAccountBasicCrossAccountIdRepr, u32]> & QueryableStorageEntry<ApiType, [u32, PalletCommonAccountBasicCrossAccountIdRepr, u32]>;
+ owned: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, arg3: u32 | AnyNumber | Uint8Array) => Observable<bool>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, u32]> & QueryableStorageEntry<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr, u32]>;
tokenData: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNonfungibleItemData>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
tokensBurnt: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
tokensMinted: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
@@ -371,13 +371,13 @@
[key: string]: QueryableStorageEntry<ApiType>;
};
refungible: {
- accountBalance: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => Observable<u32>, [u32, PalletCommonAccountBasicCrossAccountIdRepr]> & QueryableStorageEntry<ApiType, [u32, PalletCommonAccountBasicCrossAccountIdRepr]>;
- allowance: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array, arg3: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, arg4: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => Observable<u128>, [u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, PalletCommonAccountBasicCrossAccountIdRepr]> & QueryableStorageEntry<ApiType, [u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, PalletCommonAccountBasicCrossAccountIdRepr]>;
- balance: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array, arg3: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => Observable<u128>, [u32, u32, PalletCommonAccountBasicCrossAccountIdRepr]> & QueryableStorageEntry<ApiType, [u32, u32, PalletCommonAccountBasicCrossAccountIdRepr]>;
+ accountBalance: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => Observable<u32>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]> & QueryableStorageEntry<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
+ allowance: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array, arg3: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, arg4: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => Observable<u128>, [u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr]> & QueryableStorageEntry<ApiType, [u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr]>;
+ balance: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array, arg3: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => Observable<u128>, [u32, u32, PalletEvmAccountBasicCrossAccountIdRepr]> & QueryableStorageEntry<ApiType, [u32, u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
/**
* Used to enumerate tokens owned by account
**/
- owned: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, arg3: u32 | AnyNumber | Uint8Array) => Observable<bool>, [u32, PalletCommonAccountBasicCrossAccountIdRepr, u32]> & QueryableStorageEntry<ApiType, [u32, PalletCommonAccountBasicCrossAccountIdRepr, u32]>;
+ owned: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, arg3: u32 | AnyNumber | Uint8Array) => Observable<bool>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, u32]> & QueryableStorageEntry<ApiType, [u32, PalletEvmAccountBasicCrossAccountIdRepr, u32]>;
tokenData: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<PalletRefungibleItemData>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
tokensBurnt: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
tokensMinted: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
tests/src/interfaces/augment-api-rpc.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-rpc.ts
+++ b/tests/src/interfaces/augment-api-rpc.ts
@@ -1,7 +1,7 @@
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
/* eslint-disable */
-import type { PalletCommonAccountBasicCrossAccountIdRepr, UpDataStructsCollection, UpDataStructsCollectionStats } from './unique';
+import type { PalletEvmAccountBasicCrossAccountIdRepr, UpDataStructsCollection, UpDataStructsCollectionStats, UpDataStructsCollectionLimits } from './unique';
import type { AugmentedRpc } from '@polkadot/rpc-core/types';
import type { Metadata, StorageKey } from '@polkadot/types';
import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, u128, u32, u64 } from '@polkadot/types-codec';
@@ -562,31 +562,31 @@
/**
* Get amount of different user tokens
**/
- accountBalance: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, account: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u32>>;
+ accountBalance: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, account: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u32>>;
/**
* Get tokens owned by account
**/
- accountTokens: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, account: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<u32>>>;
+ accountTokens: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, account: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<u32>>>;
/**
* Get admin list
**/
- adminlist: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<PalletCommonAccountBasicCrossAccountIdRepr>>>;
+ adminlist: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<PalletEvmAccountBasicCrossAccountIdRepr>>>;
/**
* Get allowed amount
**/
- allowance: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, sender: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, spender: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u128>>;
+ allowance: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, sender: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, spender: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u128>>;
/**
* Check if user is allowed to use collection
**/
- allowed: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, account: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<bool>>;
+ allowed: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, account: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, at?: Hash | string | Uint8Array) => Observable<bool>>;
/**
* Get allowlist
**/
- allowlist: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<PalletCommonAccountBasicCrossAccountIdRepr>>>;
+ allowlist: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Vec<PalletEvmAccountBasicCrossAccountIdRepr>>>;
/**
* Get amount of specific account token
**/
- balance: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, account: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u128>>;
+ balance: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, account: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u128>>;
/**
* Get collection by specified id
**/
@@ -604,6 +604,10 @@
**/
constMetadata: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Bytes>>;
/**
+ * Get effective collection limits
+ **/
+ effectiveCollectionLimits: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<Option<UpDataStructsCollectionLimits>>>;
+ /**
* Get last token id
**/
lastTokenId: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<u32>>;
@@ -614,7 +618,7 @@
/**
* Get token owner
**/
- tokenOwner: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<PalletCommonAccountBasicCrossAccountIdRepr>>;
+ tokenOwner: AugmentedRpc<(collection: u32 | AnyNumber | Uint8Array, tokenId: u32 | AnyNumber | Uint8Array, at?: Hash | string | Uint8Array) => Observable<PalletEvmAccountBasicCrossAccountIdRepr>>;
/**
* Get token variable metadata
**/
tests/src/interfaces/augment-api-tx.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-tx.ts
+++ b/tests/src/interfaces/augment-api-tx.ts
@@ -5,7 +5,7 @@
import type { Bytes, Compact, Option, U256, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, Call, H160, H256, MultiAddress, Perbill } from '@polkadot/types/interfaces/runtime';
-import type { CumulusPrimitivesParachainInherentParachainInherentData, EthereumTransactionTransactionV2, OrmlVestingVestingSchedule, PalletCommonAccountBasicCrossAccountIdRepr, UpDataStructsAccessMode, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCreateCollectionData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsMetaUpdatePermission, UpDataStructsSchemaVersion, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
+import type { CumulusPrimitivesParachainInherentParachainInherentData, EthereumTransactionTransactionV2, OrmlVestingVestingSchedule, PalletEvmAccountBasicCrossAccountIdRepr, UpDataStructsAccessMode, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCreateCollectionData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsMetaUpdatePermission, UpDataStructsSchemaVersion, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
declare module '@polkadot/api-base/types/submittable' {
export interface AugmentedSubmittables<ApiType extends ApiTypes> {
@@ -551,7 +551,7 @@
*
* * new_admin_id: Address of new admin to add.
**/
- addCollectionAdmin: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newAdminId: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletCommonAccountBasicCrossAccountIdRepr]>;
+ addCollectionAdmin: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newAdminId: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
/**
* Add an address to allow list.
*
@@ -566,7 +566,7 @@
*
* * address.
**/
- addToAllowList: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, address: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletCommonAccountBasicCrossAccountIdRepr]>;
+ addToAllowList: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, address: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
/**
* Set, change, or remove approved address to transfer the ownership of the NFT.
*
@@ -584,7 +584,7 @@
*
* * item_id: ID of the item.
**/
- approve: AugmentedSubmittable<(spender: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletCommonAccountBasicCrossAccountIdRepr, u32, u32, u128]>;
+ approve: AugmentedSubmittable<(spender: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr, u32, u32, u128]>;
/**
* Destroys a concrete instance of NFT on behalf of the owner
* See also: [`approve`]
@@ -603,7 +603,7 @@
*
* * from: owner of item
**/
- burnFrom: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, from: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletCommonAccountBasicCrossAccountIdRepr, u32, u128]>;
+ burnFrom: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, from: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, u32, u128]>;
/**
* Destroys a concrete instance of NFT.
*
@@ -688,7 +688,7 @@
*
* * data: Token data to store on chain.
**/
- createItem: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, owner: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, data: UpDataStructsCreateItemData | { NFT: any } | { Fungible: any } | { ReFungible: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletCommonAccountBasicCrossAccountIdRepr, UpDataStructsCreateItemData]>;
+ createItem: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, owner: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, data: UpDataStructsCreateItemData | { NFT: any } | { Fungible: any } | { ReFungible: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, UpDataStructsCreateItemData]>;
/**
* This method creates multiple items in a collection created with CreateCollection method.
*
@@ -709,7 +709,7 @@
*
* * owner: Address, initial owner of the NFT.
**/
- createMultipleItems: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, owner: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, itemsData: Vec<UpDataStructsCreateItemData> | (UpDataStructsCreateItemData | { NFT: any } | { Fungible: any } | { ReFungible: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, PalletCommonAccountBasicCrossAccountIdRepr, Vec<UpDataStructsCreateItemData>]>;
+ createMultipleItems: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, owner: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, itemsData: Vec<UpDataStructsCreateItemData> | (UpDataStructsCreateItemData | { NFT: any } | { Fungible: any } | { ReFungible: any } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr, Vec<UpDataStructsCreateItemData>]>;
createMultipleItemsEx: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, data: UpDataStructsCreateItemExData | { NFT: any } | { Fungible: any } | { RefungibleMultipleItems: any } | { RefungibleMultipleOwners: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsCreateItemExData]>;
/**
* **DANGEROUS**: Destroys collection and all NFTs within this collection. Users irrecoverably lose their assets and may lose real money.
@@ -737,7 +737,7 @@
*
* * account_id: Address of admin to remove.
**/
- removeCollectionAdmin: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, accountId: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletCommonAccountBasicCrossAccountIdRepr]>;
+ removeCollectionAdmin: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, accountId: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
/**
* Switch back to pay-per-own-transaction model.
*
@@ -764,7 +764,7 @@
*
* * address.
**/
- removeFromAllowList: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, address: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletCommonAccountBasicCrossAccountIdRepr]>;
+ removeFromAllowList: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, address: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
setCollectionLimits: AugmentedSubmittable<(collectionId: u32 | AnyNumber | Uint8Array, newLimit: UpDataStructsCollectionLimits | { accountTokenOwnershipLimit?: any; sponsoredDataSize?: any; sponsoredDataRateLimit?: any; tokenLimit?: any; sponsorTransferTimeout?: any; sponsorApproveTimeout?: any; ownerCanTransfer?: any; ownerCanDestroy?: any; transfersEnabled?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, UpDataStructsCollectionLimits]>;
/**
* # Permissions
@@ -938,7 +938,7 @@
* * Fungible Mode: Must specify transferred amount
* * Re-Fungible Mode: Must specify transferred portion (between 0 and 1)
**/
- transfer: AugmentedSubmittable<(recipient: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletCommonAccountBasicCrossAccountIdRepr, u32, u32, u128]>;
+ transfer: AugmentedSubmittable<(recipient: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr, u32, u32, u128]>;
/**
* Change ownership of a NFT on behalf of the owner. See Approve method for additional information. After this method executes, the approval is removed so that the approved address will not be able to transfer this NFT again from this owner.
*
@@ -960,7 +960,7 @@
*
* * value: Amount to transfer.
**/
- transferFrom: AugmentedSubmittable<(from: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, recipient: PalletCommonAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletCommonAccountBasicCrossAccountIdRepr, PalletCommonAccountBasicCrossAccountIdRepr, u32, u32, u128]>;
+ transferFrom: AugmentedSubmittable<(from: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, recipient: PalletEvmAccountBasicCrossAccountIdRepr | { Substrate: any } | { Ethereum: any } | string | Uint8Array, collectionId: u32 | AnyNumber | Uint8Array, itemId: u32 | AnyNumber | Uint8Array, value: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u32, u32, u128]>;
/**
* Generic tx
**/
tests/src/interfaces/augment-types.tsdiffbeforeafterboth1// Auto-generated via `yarn polkadot-types-from-defs`, do not edit2/* eslint-disable */34import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmCall, CumulusPalletXcmError, CumulusPalletXcmEvent, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueInboundState, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesParachainInherentParachainInherentData, EthbloomBloom, EthereumBlock, EthereumHeader, EthereumLog, EthereumReceiptEip658ReceiptData, EthereumReceiptReceiptV3, EthereumTransactionAccessListItem, EthereumTransactionEip1559Transaction, EthereumTransactionEip2930Transaction, EthereumTransactionLegacyTransaction, EthereumTransactionTransactionAction, EthereumTransactionTransactionSignature, EthereumTransactionTransactionV2, EthereumTypesHashH64, EvmCoreErrorExitError, EvmCoreErrorExitFatal, EvmCoreErrorExitReason, EvmCoreErrorExitRevert, EvmCoreErrorExitSucceed, FpRpcTransactionStatus, FrameSupportPalletId, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchClass, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPays, FrameSupportWeightsPerDispatchClassU32, FrameSupportWeightsPerDispatchClassU64, FrameSupportWeightsPerDispatchClassWeightsPerClass, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReleases, PalletBalancesReserveData, PalletCommonAccountBasicCrossAccountIdRepr, PalletCommonError, PalletCommonEvent, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletFungibleError, PalletInflationCall, PalletNonfungibleError, PalletNonfungibleItemData, PalletRefungibleError, PalletRefungibleItemData, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTimestampCall, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletUniqueRawEvent, PalletXcmCall, PalletXcmError, PalletXcmEvent, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV1AbridgedHostConfiguration, PolkadotPrimitivesV1AbridgedHrmpChannel, PolkadotPrimitivesV1PersistedValidationData, PolkadotPrimitivesV1UpgradeRestriction, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Signature, SpRuntimeArithmeticError, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpTrieStorageProof, SpVersionRuntimeVersion, UniqueRuntimeRuntime, UpDataStructsAccessMode, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsCreateNftData, UpDataStructsCreateNftExData, UpDataStructsCreateReFungibleData, UpDataStructsCreateRefungibleExData, UpDataStructsMetaUpdatePermission, UpDataStructsSchemaVersion, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipState, XcmDoubleEncoded, XcmV0Junction, XcmV0JunctionBodyId, XcmV0JunctionBodyPart, XcmV0JunctionNetworkId, XcmV0MultiAsset, XcmV0MultiLocation, XcmV0Order, XcmV0OriginKind, XcmV0Response, XcmV0Xcm, XcmV1Junction, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetAssetId, XcmV1MultiassetAssetInstance, XcmV1MultiassetFungibility, XcmV1MultiassetMultiAssetFilter, XcmV1MultiassetMultiAssets, XcmV1MultiassetWildFungibility, XcmV1MultiassetWildMultiAsset, XcmV1MultilocationJunctions, XcmV1Order, XcmV1Response, XcmV1Xcm, XcmV2Instruction, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2WeightLimit, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from './unique';5import type { Data, StorageKey } from '@polkadot/types';6import type { BitVec, Bool, Bytes, I128, I16, I256, I32, I64, I8, Json, Null, Raw, Text, Type, U128, U16, U256, U32, U64, U8, USize, bool, i128, i16, i256, i32, i64, i8, u128, u16, u256, u32, u64, u8, usize } from '@polkadot/types-codec';7import type { AssetApproval, AssetApprovalKey, AssetBalance, AssetDestroyWitness, AssetDetails, AssetMetadata, TAssetBalance, TAssetDepositBalance } from '@polkadot/types/interfaces/assets';8import type { BlockAttestations, IncludedBlocks, MoreAttestations } from '@polkadot/types/interfaces/attestations';9import type { RawAuraPreDigest } from '@polkadot/types/interfaces/aura';10import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';11import type { UncleEntryItem } from '@polkadot/types/interfaces/authorship';12import type { AllowedSlots, BabeAuthorityWeight, BabeBlockWeight, BabeEpochConfiguration, BabeEquivocationProof, BabeWeight, EpochAuthorship, MaybeRandomness, MaybeVrf, NextConfigDescriptor, NextConfigDescriptorV1, Randomness, RawBabePreDigest, RawBabePreDigestCompat, RawBabePreDigestPrimary, RawBabePreDigestPrimaryTo159, RawBabePreDigestSecondaryPlain, RawBabePreDigestSecondaryTo159, RawBabePreDigestSecondaryVRF, RawBabePreDigestTo159, SlotNumber, VrfData, VrfOutput, VrfProof } from '@polkadot/types/interfaces/babe';13import type { AccountData, BalanceLock, BalanceLockTo212, BalanceStatus, Reasons, ReserveData, ReserveIdentifier, VestingSchedule, WithdrawReasons } from '@polkadot/types/interfaces/balances';14import type { BeefyCommitment, BeefyId, BeefyNextAuthoritySet, BeefyPayload, BeefySignedCommitment, MmrRootHash, ValidatorSetId } from '@polkadot/types/interfaces/beefy';15import type { BridgeMessageId, BridgedBlockHash, BridgedBlockNumber, BridgedHeader, CallOrigin, ChainId, DeliveredMessages, DispatchFeePayment, InboundLaneData, InboundRelayer, InitializationData, LaneId, MessageData, MessageKey, MessageNonce, MessagesDeliveryProofOf, MessagesProofOf, OperatingMode, OutboundLaneData, OutboundMessageFee, OutboundPayload, Parameter, RelayerId, UnrewardedRelayer, UnrewardedRelayersState } from '@polkadot/types/interfaces/bridges';16import type { BlockHash } from '@polkadot/types/interfaces/chain';17import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';18import type { StatementKind } from '@polkadot/types/interfaces/claims';19import type { CollectiveOrigin, MemberCount, ProposalIndex, Votes, VotesTo230 } from '@polkadot/types/interfaces/collective';20import type { AuthorityId, RawVRFOutput } from '@polkadot/types/interfaces/consensus';21import type { AliveContractInfo, CodeHash, CodeUploadRequest, CodeUploadResult, CodeUploadResultValue, ContractCallFlags, ContractCallRequest, ContractExecResult, ContractExecResultErr, ContractExecResultErrModule, ContractExecResultOk, ContractExecResultResult, ContractExecResultSuccessTo255, ContractExecResultSuccessTo260, ContractExecResultTo255, ContractExecResultTo260, ContractExecResultTo267, ContractInfo, ContractInstantiateResult, ContractInstantiateResultTo267, ContractReturnFlags, ContractStorageKey, DeletedContract, ExecReturnValue, Gas, HostFnWeights, HostFnWeightsTo264, InstantiateRequest, InstantiateReturnValue, InstantiateReturnValueTo267, InstructionWeights, Limits, LimitsTo264, PrefabWasmModule, RentProjection, Schedule, ScheduleTo212, ScheduleTo258, ScheduleTo264, SeedOf, StorageDeposit, TombstoneContractInfo, TrieId } from '@polkadot/types/interfaces/contracts';22import type { ContractConstructorSpecLatest, ContractConstructorSpecV0, ContractConstructorSpecV1, ContractConstructorSpecV2, ContractConstructorSpecV3, ContractContractSpecV0, ContractContractSpecV1, ContractContractSpecV2, ContractContractSpecV3, ContractCryptoHasher, ContractDiscriminant, ContractDisplayName, ContractEventParamSpecLatest, ContractEventParamSpecV0, ContractEventParamSpecV2, ContractEventSpecLatest, ContractEventSpecV0, ContractEventSpecV1, ContractEventSpecV2, ContractLayoutArray, ContractLayoutCell, ContractLayoutEnum, ContractLayoutHash, ContractLayoutHashingStrategy, ContractLayoutKey, ContractLayoutStruct, ContractLayoutStructField, ContractMessageParamSpecLatest, ContractMessageParamSpecV0, ContractMessageParamSpecV2, ContractMessageSpecLatest, ContractMessageSpecV0, ContractMessageSpecV1, ContractMessageSpecV2, ContractMetadata, ContractMetadataLatest, ContractMetadataV0, ContractMetadataV1, ContractMetadataV2, ContractMetadataV3, ContractProject, ContractProjectContract, ContractProjectInfo, ContractProjectSource, ContractProjectV0, ContractSelector, ContractStorageLayout, ContractTypeSpec } from '@polkadot/types/interfaces/contractsAbi';23import type { FundIndex, FundInfo, LastContribution, TrieIndex } from '@polkadot/types/interfaces/crowdloan';24import type { ConfigData, MessageId, OverweightIndex, PageCounter, PageIndexData } from '@polkadot/types/interfaces/cumulus';25import type { AccountVote, AccountVoteSplit, AccountVoteStandard, Conviction, Delegations, PreimageStatus, PreimageStatusAvailable, PriorLock, PropIndex, Proposal, ProxyState, ReferendumIndex, ReferendumInfo, ReferendumInfoFinished, ReferendumInfoTo239, ReferendumStatus, Tally, Voting, VotingDelegating, VotingDirect, VotingDirectVote } from '@polkadot/types/interfaces/democracy';26import type { ApprovalFlag, DefunctVoter, Renouncing, SetIndex, Vote, VoteIndex, VoteThreshold, VoterInfo } from '@polkadot/types/interfaces/elections';27import type { CreatedBlock, ImportedAux } from '@polkadot/types/interfaces/engine';28import type { BlockV0, BlockV1, BlockV2, EIP1559Transaction, EIP2930Transaction, EthAccessList, EthAccessListItem, EthAccount, EthAddress, EthBlock, EthBloom, EthCallRequest, EthFilter, EthFilterAddress, EthFilterChanges, EthFilterTopic, EthFilterTopicEntry, EthFilterTopicInner, EthHeader, EthLog, EthReceipt, EthRichBlock, EthRichHeader, EthStorageProof, EthSubKind, EthSubParams, EthSubResult, EthSyncInfo, EthSyncStatus, EthTransaction, EthTransactionAction, EthTransactionCondition, EthTransactionRequest, EthTransactionSignature, EthTransactionStatus, EthWork, EthereumAccountId, EthereumAddress, EthereumLookupSource, EthereumSignature, LegacyTransaction, TransactionV0, TransactionV1, TransactionV2 } from '@polkadot/types/interfaces/eth';29import type { EvmAccount, EvmLog, EvmVicinity, ExitError, ExitFatal, ExitReason, ExitRevert, ExitSucceed } from '@polkadot/types/interfaces/evm';30import type { AnySignature, EcdsaSignature, Ed25519Signature, Era, Extrinsic, ExtrinsicEra, ExtrinsicPayload, ExtrinsicPayloadUnknown, ExtrinsicPayloadV4, ExtrinsicSignature, ExtrinsicSignatureV4, ExtrinsicUnknown, ExtrinsicV4, ImmortalEra, MortalEra, MultiSignature, Signature, SignerPayload, Sr25519Signature } from '@polkadot/types/interfaces/extrinsics';31import type { AssetOptions, Owner, PermissionLatest, PermissionVersions, PermissionsV1 } from '@polkadot/types/interfaces/genericAsset';32import type { ActiveGilt, ActiveGiltsTotal, ActiveIndex, GiltBid } from '@polkadot/types/interfaces/gilt';33import type { AuthorityIndex, AuthorityList, AuthoritySet, AuthoritySetChange, AuthoritySetChanges, AuthorityWeight, DelayKind, DelayKindBest, EncodedFinalityProofs, ForkTreePendingChange, ForkTreePendingChangeNode, GrandpaCommit, GrandpaEquivocation, GrandpaEquivocationProof, GrandpaEquivocationValue, GrandpaJustification, GrandpaPrecommit, GrandpaPrevote, GrandpaSignedPrecommit, JustificationNotification, KeyOwnerProof, NextAuthority, PendingChange, PendingPause, PendingResume, Precommits, Prevotes, ReportedRoundStates, RoundState, SetId, StoredPendingChange, StoredState } from '@polkadot/types/interfaces/grandpa';34import type { IdentityFields, IdentityInfo, IdentityInfoAdditional, IdentityInfoTo198, IdentityJudgement, RegistrarIndex, RegistrarInfo, Registration, RegistrationJudgement, RegistrationTo198 } from '@polkadot/types/interfaces/identity';35import type { AuthIndex, AuthoritySignature, Heartbeat, HeartbeatTo244, OpaqueMultiaddr, OpaqueNetworkState, OpaquePeerId } from '@polkadot/types/interfaces/imOnline';36import type { CallIndex, LotteryConfig } from '@polkadot/types/interfaces/lottery';37import type { ErrorMetadataLatest, ErrorMetadataV10, ErrorMetadataV11, ErrorMetadataV12, ErrorMetadataV13, ErrorMetadataV14, ErrorMetadataV9, EventMetadataLatest, EventMetadataV10, EventMetadataV11, EventMetadataV12, EventMetadataV13, EventMetadataV14, EventMetadataV9, ExtrinsicMetadataLatest, ExtrinsicMetadataV11, ExtrinsicMetadataV12, ExtrinsicMetadataV13, ExtrinsicMetadataV14, FunctionArgumentMetadataLatest, FunctionArgumentMetadataV10, FunctionArgumentMetadataV11, FunctionArgumentMetadataV12, FunctionArgumentMetadataV13, FunctionArgumentMetadataV14, FunctionArgumentMetadataV9, FunctionMetadataLatest, FunctionMetadataV10, FunctionMetadataV11, FunctionMetadataV12, FunctionMetadataV13, FunctionMetadataV14, FunctionMetadataV9, MetadataAll, MetadataLatest, MetadataV10, MetadataV11, MetadataV12, MetadataV13, MetadataV14, MetadataV9, ModuleConstantMetadataV10, ModuleConstantMetadataV11, ModuleConstantMetadataV12, ModuleConstantMetadataV13, ModuleConstantMetadataV9, ModuleMetadataV10, ModuleMetadataV11, ModuleMetadataV12, ModuleMetadataV13, ModuleMetadataV9, PalletCallMetadataLatest, PalletCallMetadataV14, PalletConstantMetadataLatest, PalletConstantMetadataV14, PalletErrorMetadataLatest, PalletErrorMetadataV14, PalletEventMetadataLatest, PalletEventMetadataV14, PalletMetadataLatest, PalletMetadataV14, PalletStorageMetadataLatest, PalletStorageMetadataV14, PortableType, PortableTypeV14, SignedExtensionMetadataLatest, SignedExtensionMetadataV14, StorageEntryMetadataLatest, StorageEntryMetadataV10, StorageEntryMetadataV11, StorageEntryMetadataV12, StorageEntryMetadataV13, StorageEntryMetadataV14, StorageEntryMetadataV9, StorageEntryModifierLatest, StorageEntryModifierV10, StorageEntryModifierV11, StorageEntryModifierV12, StorageEntryModifierV13, StorageEntryModifierV14, StorageEntryModifierV9, StorageEntryTypeLatest, StorageEntryTypeV10, StorageEntryTypeV11, StorageEntryTypeV12, StorageEntryTypeV13, StorageEntryTypeV14, StorageEntryTypeV9, StorageHasher, StorageHasherV10, StorageHasherV11, StorageHasherV12, StorageHasherV13, StorageHasherV14, StorageHasherV9, StorageMetadataV10, StorageMetadataV11, StorageMetadataV12, StorageMetadataV13, StorageMetadataV9 } from '@polkadot/types/interfaces/metadata';38import type { MmrLeafProof } from '@polkadot/types/interfaces/mmr';39import type { StorageKind } from '@polkadot/types/interfaces/offchain';40import type { DeferredOffenceOf, Kind, OffenceDetails, Offender, OpaqueTimeSlot, ReportIdOf, Reporter } from '@polkadot/types/interfaces/offences';41import type { AbridgedCandidateReceipt, AbridgedHostConfiguration, AbridgedHrmpChannel, AssignmentId, AssignmentKind, AttestedCandidate, AuctionIndex, AuthorityDiscoveryId, AvailabilityBitfield, AvailabilityBitfieldRecord, BackedCandidate, Bidder, BufferedSessionChange, CandidateCommitments, CandidateDescriptor, CandidateHash, CandidateInfo, CandidatePendingAvailability, CandidateReceipt, CollatorId, CollatorSignature, CommittedCandidateReceipt, CoreAssignment, CoreIndex, CoreOccupied, DisputeLocation, DisputeResult, DisputeState, DisputeStatement, DisputeStatementSet, DoubleVoteReport, DownwardMessage, ExplicitDisputeStatement, GlobalValidationData, GlobalValidationSchedule, GroupIndex, HeadData, HostConfiguration, HrmpChannel, HrmpChannelId, HrmpOpenChannelRequest, InboundDownwardMessage, InboundHrmpMessage, InboundHrmpMessages, IncomingParachain, IncomingParachainDeploy, IncomingParachainFixed, InvalidDisputeStatementKind, LeasePeriod, LeasePeriodOf, LocalValidationData, MessageIngestionType, MessageQueueChain, MessagingStateSnapshot, MessagingStateSnapshotEgressEntry, MultiDisputeStatementSet, NewBidder, OutboundHrmpMessage, ParaGenesisArgs, ParaId, ParaInfo, ParaLifecycle, ParaPastCodeMeta, ParaScheduling, ParaValidatorIndex, ParachainDispatchOrigin, ParachainInherentData, ParachainProposal, ParachainsInherentData, ParathreadClaim, ParathreadClaimQueue, ParathreadEntry, PersistedValidationData, QueuedParathread, RegisteredParachainInfo, RelayBlockNumber, RelayChainBlockNumber, RelayChainHash, RelayHash, Remark, ReplacementTimes, Retriable, Scheduling, ServiceQuality, SessionInfo, SessionInfoValidatorGroup, SignedAvailabilityBitfield, SignedAvailabilityBitfields, SigningContext, SlotRange, SlotRange10, Statement, SubId, SystemInherentData, TransientValidationData, UpgradeGoAhead, UpgradeRestriction, UpwardMessage, ValidDisputeStatementKind, ValidationCode, ValidationCodeHash, ValidationData, ValidationDataType, ValidationFunctionParams, ValidatorSignature, ValidityAttestation, VecInboundHrmpMessage, WinnersData, WinnersData10, WinnersDataTuple, WinnersDataTuple10, WinningData, WinningData10, WinningDataEntry } from '@polkadot/types/interfaces/parachains';42import type { FeeDetails, InclusionFee, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';43import type { Approvals } from '@polkadot/types/interfaces/poll';44import type { ProxyAnnouncement, ProxyDefinition, ProxyType } from '@polkadot/types/interfaces/proxy';45import type { AccountStatus, AccountValidity } from '@polkadot/types/interfaces/purchase';46import type { ActiveRecovery, RecoveryConfig } from '@polkadot/types/interfaces/recovery';47import type { RpcMethods } from '@polkadot/types/interfaces/rpc';48import type { AccountId, AccountId20, AccountId32, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, BlockNumberFor, BlockNumberOf, Call, CallHash, CallHashOf, ChangesTrieConfiguration, ChangesTrieSignal, CodecHash, Consensus, ConsensusEngineId, CrateVersion, Digest, DigestItem, EncodedJustification, ExtrinsicsWeight, Fixed128, Fixed64, FixedI128, FixedI64, FixedU128, FixedU64, H1024, H128, H160, H2048, H256, H32, H512, H64, Hash, Header, HeaderPartial, I32F32, Index, IndicesLookupSource, Justification, Justifications, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, MultiAddress, MultiSigner, OpaqueCall, Origin, OriginCaller, PalletId, PalletVersion, PalletsOrigin, Pays, PerU16, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, Releases, RuntimeDbWeight, Seal, SealV0, SignedBlock, SignedBlockWithJustification, SignedBlockWithJustifications, Slot, StorageData, StorageProof, TransactionInfo, TransactionPriority, TransactionStorageProof, U32F32, ValidatorId, ValidatorIdOf, Weight, WeightMultiplier } from '@polkadot/types/interfaces/runtime';49import type { Si0Field, Si0LookupTypeId, Si0Path, Si0Type, Si0TypeDef, Si0TypeDefArray, Si0TypeDefBitSequence, Si0TypeDefCompact, Si0TypeDefComposite, Si0TypeDefPhantom, Si0TypeDefPrimitive, Si0TypeDefSequence, Si0TypeDefTuple, Si0TypeDefVariant, Si0TypeParameter, Si0Variant, Si1Field, Si1LookupTypeId, Si1Path, Si1Type, Si1TypeDef, Si1TypeDefArray, Si1TypeDefBitSequence, Si1TypeDefCompact, Si1TypeDefComposite, Si1TypeDefPrimitive, Si1TypeDefSequence, Si1TypeDefTuple, Si1TypeDefVariant, Si1TypeParameter, Si1Variant, SiField, SiLookupTypeId, SiPath, SiType, SiTypeDef, SiTypeDefArray, SiTypeDefBitSequence, SiTypeDefCompact, SiTypeDefComposite, SiTypeDefPrimitive, SiTypeDefSequence, SiTypeDefTuple, SiTypeDefVariant, SiTypeParameter, SiVariant } from '@polkadot/types/interfaces/scaleInfo';50import type { Period, Priority, SchedulePeriod, SchedulePriority, Scheduled, ScheduledTo254, TaskAddress } from '@polkadot/types/interfaces/scheduler';51import type { BeefyKey, FullIdentification, IdentificationTuple, Keys, MembershipProof, SessionIndex, SessionKeys1, SessionKeys10, SessionKeys10B, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6, SessionKeys6B, SessionKeys7, SessionKeys7B, SessionKeys8, SessionKeys8B, SessionKeys9, SessionKeys9B, ValidatorCount } from '@polkadot/types/interfaces/session';52import type { Bid, BidKind, SocietyJudgement, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society';53import type { ActiveEraInfo, CompactAssignments, CompactAssignmentsTo257, CompactAssignmentsTo265, CompactAssignmentsWith16, CompactAssignmentsWith24, CompactScore, CompactScoreCompact, ElectionCompute, ElectionPhase, ElectionResult, ElectionScore, ElectionSize, ElectionStatus, EraIndex, EraPoints, EraRewardPoints, EraRewards, Exposure, ExtendedBalance, Forcing, IndividualExposure, KeyType, MomentOf, Nominations, NominatorIndex, NominatorIndexCompact, OffchainAccuracy, OffchainAccuracyCompact, PhragmenScore, Points, RawSolution, RawSolutionTo265, RawSolutionWith16, RawSolutionWith24, ReadySolution, RewardDestination, RewardPoint, RoundSnapshot, SeatHolder, SignedSubmission, SignedSubmissionOf, SignedSubmissionTo276, SlashJournalEntry, SlashingSpans, SlashingSpansTo204, SolutionOrSnapshotSize, SolutionSupport, SolutionSupports, SpanIndex, SpanRecord, StakingLedger, StakingLedgerTo223, StakingLedgerTo240, SubmissionIndicesOf, Supports, UnappliedSlash, UnappliedSlashOther, UnlockChunk, ValidatorIndex, ValidatorIndexCompact, ValidatorPrefs, ValidatorPrefsTo145, ValidatorPrefsTo196, ValidatorPrefsWithBlocked, ValidatorPrefsWithCommission, VoteWeight, Voter } from '@polkadot/types/interfaces/staking';54import type { ApiId, BlockTrace, BlockTraceEvent, BlockTraceEventData, BlockTraceSpan, KeyValueOption, ReadProof, RuntimeVersion, RuntimeVersionApi, RuntimeVersionPartial, SpecVersion, StorageChangeSet, TraceBlockResponse, TraceError } from '@polkadot/types/interfaces/state';55import type { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support';56import type { AccountInfo, AccountInfoWithDualRefCount, AccountInfoWithProviders, AccountInfoWithRefCount, AccountInfoWithRefCountU8, AccountInfoWithTripleRefCount, ApplyExtrinsicResult, ArithmeticError, BlockLength, BlockWeights, ChainProperties, ChainType, ConsumedWeight, DigestOf, DispatchClass, DispatchError, DispatchErrorModule, DispatchErrorTo198, DispatchInfo, DispatchInfoTo190, DispatchInfoTo244, DispatchOutcome, DispatchResult, DispatchResultOf, DispatchResultTo198, Event, EventId, EventIndex, EventRecord, Health, InvalidTransaction, Key, LastRuntimeUpgradeInfo, NetworkState, NetworkStatePeerset, NetworkStatePeersetInfo, NodeRole, NotConnectedPeer, Peer, PeerEndpoint, PeerEndpointAddr, PeerInfo, PeerPing, PerDispatchClassU32, PerDispatchClassWeight, PerDispatchClassWeightsPerClass, Phase, RawOrigin, RefCount, RefCountTo259, SyncState, SystemOrigin, TokenError, TransactionValidityError, UnknownTransaction, WeightPerClass } from '@polkadot/types/interfaces/system';57import type { Bounty, BountyIndex, BountyStatus, BountyStatusActive, BountyStatusCuratorProposed, BountyStatusPendingPayout, OpenTip, OpenTipFinderTo225, OpenTipTip, OpenTipTo225, TreasuryProposal } from '@polkadot/types/interfaces/treasury';58import type { Multiplier } from '@polkadot/types/interfaces/txpayment';59import type { ClassDetails, ClassId, ClassMetadata, DepositBalance, DepositBalanceOf, DestroyWitness, InstanceDetails, InstanceId, InstanceMetadata } from '@polkadot/types/interfaces/uniques';60import type { Multisig, Timepoint } from '@polkadot/types/interfaces/utility';61import type { VestingInfo } from '@polkadot/types/interfaces/vesting';62import type { AssetInstance, AssetInstanceV0, AssetInstanceV1, AssetInstanceV2, BodyId, BodyPart, DoubleEncodedCall, Fungibility, FungibilityV0, FungibilityV1, FungibilityV2, InboundStatus, InstructionV2, InteriorMultiLocation, Junction, JunctionV0, JunctionV1, JunctionV2, Junctions, JunctionsV1, JunctionsV2, MultiAsset, MultiAssetFilter, MultiAssetFilterV1, MultiAssetFilterV2, MultiAssetV0, MultiAssetV1, MultiAssetV2, MultiAssets, MultiAssetsV1, MultiAssetsV2, MultiLocation, MultiLocationV0, MultiLocationV1, MultiLocationV2, NetworkId, OriginKindV0, OriginKindV1, OriginKindV2, OutboundStatus, Outcome, QueryId, QueryStatus, QueueConfigData, Response, ResponseV0, ResponseV1, ResponseV2, ResponseV2Error, ResponseV2Result, VersionMigrationStage, VersionedMultiAsset, VersionedMultiAssets, VersionedMultiLocation, VersionedResponse, VersionedXcm, WeightLimitV2, WildFungibility, WildFungibilityV0, WildFungibilityV1, WildFungibilityV2, WildMultiAsset, WildMultiAssetV1, WildMultiAssetV2, Xcm, XcmAssetId, XcmError, XcmErrorV0, XcmErrorV1, XcmErrorV2, XcmOrder, XcmOrderV0, XcmOrderV1, XcmOrderV2, XcmOrigin, XcmOriginKind, XcmV0, XcmV1, XcmV2, XcmVersion, XcmpMessageFormat } from '@polkadot/types/interfaces/xcm';6364declare module '@polkadot/types/types/registry' {65 export interface InterfaceTypes {66 AbridgedCandidateReceipt: AbridgedCandidateReceipt;67 AbridgedHostConfiguration: AbridgedHostConfiguration;68 AbridgedHrmpChannel: AbridgedHrmpChannel;69 AccountData: AccountData;70 AccountId: AccountId;71 AccountId20: AccountId20;72 AccountId32: AccountId32;73 AccountIdOf: AccountIdOf;74 AccountIndex: AccountIndex;75 AccountInfo: AccountInfo;76 AccountInfoWithDualRefCount: AccountInfoWithDualRefCount;77 AccountInfoWithProviders: AccountInfoWithProviders;78 AccountInfoWithRefCount: AccountInfoWithRefCount;79 AccountInfoWithRefCountU8: AccountInfoWithRefCountU8;80 AccountInfoWithTripleRefCount: AccountInfoWithTripleRefCount;81 AccountStatus: AccountStatus;82 AccountValidity: AccountValidity;83 AccountVote: AccountVote;84 AccountVoteSplit: AccountVoteSplit;85 AccountVoteStandard: AccountVoteStandard;86 ActiveEraInfo: ActiveEraInfo;87 ActiveGilt: ActiveGilt;88 ActiveGiltsTotal: ActiveGiltsTotal;89 ActiveIndex: ActiveIndex;90 ActiveRecovery: ActiveRecovery;91 Address: Address;92 AliveContractInfo: AliveContractInfo;93 AllowedSlots: AllowedSlots;94 AnySignature: AnySignature;95 ApiId: ApiId;96 ApplyExtrinsicResult: ApplyExtrinsicResult;97 ApprovalFlag: ApprovalFlag;98 Approvals: Approvals;99 ArithmeticError: ArithmeticError;100 AssetApproval: AssetApproval;101 AssetApprovalKey: AssetApprovalKey;102 AssetBalance: AssetBalance;103 AssetDestroyWitness: AssetDestroyWitness;104 AssetDetails: AssetDetails;105 AssetId: AssetId;106 AssetInstance: AssetInstance;107 AssetInstanceV0: AssetInstanceV0;108 AssetInstanceV1: AssetInstanceV1;109 AssetInstanceV2: AssetInstanceV2;110 AssetMetadata: AssetMetadata;111 AssetOptions: AssetOptions;112 AssignmentId: AssignmentId;113 AssignmentKind: AssignmentKind;114 AttestedCandidate: AttestedCandidate;115 AuctionIndex: AuctionIndex;116 AuthIndex: AuthIndex;117 AuthorityDiscoveryId: AuthorityDiscoveryId;118 AuthorityId: AuthorityId;119 AuthorityIndex: AuthorityIndex;120 AuthorityList: AuthorityList;121 AuthoritySet: AuthoritySet;122 AuthoritySetChange: AuthoritySetChange;123 AuthoritySetChanges: AuthoritySetChanges;124 AuthoritySignature: AuthoritySignature;125 AuthorityWeight: AuthorityWeight;126 AvailabilityBitfield: AvailabilityBitfield;127 AvailabilityBitfieldRecord: AvailabilityBitfieldRecord;128 BabeAuthorityWeight: BabeAuthorityWeight;129 BabeBlockWeight: BabeBlockWeight;130 BabeEpochConfiguration: BabeEpochConfiguration;131 BabeEquivocationProof: BabeEquivocationProof;132 BabeWeight: BabeWeight;133 BackedCandidate: BackedCandidate;134 Balance: Balance;135 BalanceLock: BalanceLock;136 BalanceLockTo212: BalanceLockTo212;137 BalanceOf: BalanceOf;138 BalanceStatus: BalanceStatus;139 BeefyCommitment: BeefyCommitment;140 BeefyId: BeefyId;141 BeefyKey: BeefyKey;142 BeefyNextAuthoritySet: BeefyNextAuthoritySet;143 BeefyPayload: BeefyPayload;144 BeefySignedCommitment: BeefySignedCommitment;145 Bid: Bid;146 Bidder: Bidder;147 BidKind: BidKind;148 BitVec: BitVec;149 Block: Block;150 BlockAttestations: BlockAttestations;151 BlockHash: BlockHash;152 BlockLength: BlockLength;153 BlockNumber: BlockNumber;154 BlockNumberFor: BlockNumberFor;155 BlockNumberOf: BlockNumberOf;156 BlockTrace: BlockTrace;157 BlockTraceEvent: BlockTraceEvent;158 BlockTraceEventData: BlockTraceEventData;159 BlockTraceSpan: BlockTraceSpan;160 BlockV0: BlockV0;161 BlockV1: BlockV1;162 BlockV2: BlockV2;163 BlockWeights: BlockWeights;164 BodyId: BodyId;165 BodyPart: BodyPart;166 bool: bool;167 Bool: Bool;168 Bounty: Bounty;169 BountyIndex: BountyIndex;170 BountyStatus: BountyStatus;171 BountyStatusActive: BountyStatusActive;172 BountyStatusCuratorProposed: BountyStatusCuratorProposed;173 BountyStatusPendingPayout: BountyStatusPendingPayout;174 BridgedBlockHash: BridgedBlockHash;175 BridgedBlockNumber: BridgedBlockNumber;176 BridgedHeader: BridgedHeader;177 BridgeMessageId: BridgeMessageId;178 BufferedSessionChange: BufferedSessionChange;179 Bytes: Bytes;180 Call: Call;181 CallHash: CallHash;182 CallHashOf: CallHashOf;183 CallIndex: CallIndex;184 CallOrigin: CallOrigin;185 CandidateCommitments: CandidateCommitments;186 CandidateDescriptor: CandidateDescriptor;187 CandidateHash: CandidateHash;188 CandidateInfo: CandidateInfo;189 CandidatePendingAvailability: CandidatePendingAvailability;190 CandidateReceipt: CandidateReceipt;191 ChainId: ChainId;192 ChainProperties: ChainProperties;193 ChainType: ChainType;194 ChangesTrieConfiguration: ChangesTrieConfiguration;195 ChangesTrieSignal: ChangesTrieSignal;196 ClassDetails: ClassDetails;197 ClassId: ClassId;198 ClassMetadata: ClassMetadata;199 CodecHash: CodecHash;200 CodeHash: CodeHash;201 CodeUploadRequest: CodeUploadRequest;202 CodeUploadResult: CodeUploadResult;203 CodeUploadResultValue: CodeUploadResultValue;204 CollatorId: CollatorId;205 CollatorSignature: CollatorSignature;206 CollectiveOrigin: CollectiveOrigin;207 CommittedCandidateReceipt: CommittedCandidateReceipt;208 CompactAssignments: CompactAssignments;209 CompactAssignmentsTo257: CompactAssignmentsTo257;210 CompactAssignmentsTo265: CompactAssignmentsTo265;211 CompactAssignmentsWith16: CompactAssignmentsWith16;212 CompactAssignmentsWith24: CompactAssignmentsWith24;213 CompactScore: CompactScore;214 CompactScoreCompact: CompactScoreCompact;215 ConfigData: ConfigData;216 Consensus: Consensus;217 ConsensusEngineId: ConsensusEngineId;218 ConsumedWeight: ConsumedWeight;219 ContractCallFlags: ContractCallFlags;220 ContractCallRequest: ContractCallRequest;221 ContractConstructorSpecLatest: ContractConstructorSpecLatest;222 ContractConstructorSpecV0: ContractConstructorSpecV0;223 ContractConstructorSpecV1: ContractConstructorSpecV1;224 ContractConstructorSpecV2: ContractConstructorSpecV2;225 ContractConstructorSpecV3: ContractConstructorSpecV3;226 ContractContractSpecV0: ContractContractSpecV0;227 ContractContractSpecV1: ContractContractSpecV1;228 ContractContractSpecV2: ContractContractSpecV2;229 ContractContractSpecV3: ContractContractSpecV3;230 ContractCryptoHasher: ContractCryptoHasher;231 ContractDiscriminant: ContractDiscriminant;232 ContractDisplayName: ContractDisplayName;233 ContractEventParamSpecLatest: ContractEventParamSpecLatest;234 ContractEventParamSpecV0: ContractEventParamSpecV0;235 ContractEventParamSpecV2: ContractEventParamSpecV2;236 ContractEventSpecLatest: ContractEventSpecLatest;237 ContractEventSpecV0: ContractEventSpecV0;238 ContractEventSpecV1: ContractEventSpecV1;239 ContractEventSpecV2: ContractEventSpecV2;240 ContractExecResult: ContractExecResult;241 ContractExecResultErr: ContractExecResultErr;242 ContractExecResultErrModule: ContractExecResultErrModule;243 ContractExecResultOk: ContractExecResultOk;244 ContractExecResultResult: ContractExecResultResult;245 ContractExecResultSuccessTo255: ContractExecResultSuccessTo255;246 ContractExecResultSuccessTo260: ContractExecResultSuccessTo260;247 ContractExecResultTo255: ContractExecResultTo255;248 ContractExecResultTo260: ContractExecResultTo260;249 ContractExecResultTo267: ContractExecResultTo267;250 ContractInfo: ContractInfo;251 ContractInstantiateResult: ContractInstantiateResult;252 ContractInstantiateResultTo267: ContractInstantiateResultTo267;253 ContractLayoutArray: ContractLayoutArray;254 ContractLayoutCell: ContractLayoutCell;255 ContractLayoutEnum: ContractLayoutEnum;256 ContractLayoutHash: ContractLayoutHash;257 ContractLayoutHashingStrategy: ContractLayoutHashingStrategy;258 ContractLayoutKey: ContractLayoutKey;259 ContractLayoutStruct: ContractLayoutStruct;260 ContractLayoutStructField: ContractLayoutStructField;261 ContractMessageParamSpecLatest: ContractMessageParamSpecLatest;262 ContractMessageParamSpecV0: ContractMessageParamSpecV0;263 ContractMessageParamSpecV2: ContractMessageParamSpecV2;264 ContractMessageSpecLatest: ContractMessageSpecLatest;265 ContractMessageSpecV0: ContractMessageSpecV0;266 ContractMessageSpecV1: ContractMessageSpecV1;267 ContractMessageSpecV2: ContractMessageSpecV2;268 ContractMetadata: ContractMetadata;269 ContractMetadataLatest: ContractMetadataLatest;270 ContractMetadataV0: ContractMetadataV0;271 ContractMetadataV1: ContractMetadataV1;272 ContractMetadataV2: ContractMetadataV2;273 ContractMetadataV3: ContractMetadataV3;274 ContractProject: ContractProject;275 ContractProjectContract: ContractProjectContract;276 ContractProjectInfo: ContractProjectInfo;277 ContractProjectSource: ContractProjectSource;278 ContractProjectV0: ContractProjectV0;279 ContractReturnFlags: ContractReturnFlags;280 ContractSelector: ContractSelector;281 ContractStorageKey: ContractStorageKey;282 ContractStorageLayout: ContractStorageLayout;283 ContractTypeSpec: ContractTypeSpec;284 Conviction: Conviction;285 CoreAssignment: CoreAssignment;286 CoreIndex: CoreIndex;287 CoreOccupied: CoreOccupied;288 CrateVersion: CrateVersion;289 CreatedBlock: CreatedBlock;290 CumulusPalletDmpQueueCall: CumulusPalletDmpQueueCall;291 CumulusPalletDmpQueueConfigData: CumulusPalletDmpQueueConfigData;292 CumulusPalletDmpQueueError: CumulusPalletDmpQueueError;293 CumulusPalletDmpQueueEvent: CumulusPalletDmpQueueEvent;294 CumulusPalletDmpQueuePageIndexData: CumulusPalletDmpQueuePageIndexData;295 CumulusPalletParachainSystemCall: CumulusPalletParachainSystemCall;296 CumulusPalletParachainSystemError: CumulusPalletParachainSystemError;297 CumulusPalletParachainSystemEvent: CumulusPalletParachainSystemEvent;298 CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot: CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot;299 CumulusPalletXcmCall: CumulusPalletXcmCall;300 CumulusPalletXcmError: CumulusPalletXcmError;301 CumulusPalletXcmEvent: CumulusPalletXcmEvent;302 CumulusPalletXcmpQueueCall: CumulusPalletXcmpQueueCall;303 CumulusPalletXcmpQueueError: CumulusPalletXcmpQueueError;304 CumulusPalletXcmpQueueEvent: CumulusPalletXcmpQueueEvent;305 CumulusPalletXcmpQueueInboundChannelDetails: CumulusPalletXcmpQueueInboundChannelDetails;306 CumulusPalletXcmpQueueInboundState: CumulusPalletXcmpQueueInboundState;307 CumulusPalletXcmpQueueOutboundChannelDetails: CumulusPalletXcmpQueueOutboundChannelDetails;308 CumulusPalletXcmpQueueOutboundState: CumulusPalletXcmpQueueOutboundState;309 CumulusPalletXcmpQueueQueueConfigData: CumulusPalletXcmpQueueQueueConfigData;310 CumulusPrimitivesParachainInherentParachainInherentData: CumulusPrimitivesParachainInherentParachainInherentData;311 Data: Data;312 DeferredOffenceOf: DeferredOffenceOf;313 DefunctVoter: DefunctVoter;314 DelayKind: DelayKind;315 DelayKindBest: DelayKindBest;316 Delegations: Delegations;317 DeletedContract: DeletedContract;318 DeliveredMessages: DeliveredMessages;319 DepositBalance: DepositBalance;320 DepositBalanceOf: DepositBalanceOf;321 DestroyWitness: DestroyWitness;322 Digest: Digest;323 DigestItem: DigestItem;324 DigestOf: DigestOf;325 DispatchClass: DispatchClass;326 DispatchError: DispatchError;327 DispatchErrorModule: DispatchErrorModule;328 DispatchErrorTo198: DispatchErrorTo198;329 DispatchFeePayment: DispatchFeePayment;330 DispatchInfo: DispatchInfo;331 DispatchInfoTo190: DispatchInfoTo190;332 DispatchInfoTo244: DispatchInfoTo244;333 DispatchOutcome: DispatchOutcome;334 DispatchResult: DispatchResult;335 DispatchResultOf: DispatchResultOf;336 DispatchResultTo198: DispatchResultTo198;337 DisputeLocation: DisputeLocation;338 DisputeResult: DisputeResult;339 DisputeState: DisputeState;340 DisputeStatement: DisputeStatement;341 DisputeStatementSet: DisputeStatementSet;342 DoubleEncodedCall: DoubleEncodedCall;343 DoubleVoteReport: DoubleVoteReport;344 DownwardMessage: DownwardMessage;345 EcdsaSignature: EcdsaSignature;346 Ed25519Signature: Ed25519Signature;347 EIP1559Transaction: EIP1559Transaction;348 EIP2930Transaction: EIP2930Transaction;349 ElectionCompute: ElectionCompute;350 ElectionPhase: ElectionPhase;351 ElectionResult: ElectionResult;352 ElectionScore: ElectionScore;353 ElectionSize: ElectionSize;354 ElectionStatus: ElectionStatus;355 EncodedFinalityProofs: EncodedFinalityProofs;356 EncodedJustification: EncodedJustification;357 EpochAuthorship: EpochAuthorship;358 Era: Era;359 EraIndex: EraIndex;360 EraPoints: EraPoints;361 EraRewardPoints: EraRewardPoints;362 EraRewards: EraRewards;363 ErrorMetadataLatest: ErrorMetadataLatest;364 ErrorMetadataV10: ErrorMetadataV10;365 ErrorMetadataV11: ErrorMetadataV11;366 ErrorMetadataV12: ErrorMetadataV12;367 ErrorMetadataV13: ErrorMetadataV13;368 ErrorMetadataV14: ErrorMetadataV14;369 ErrorMetadataV9: ErrorMetadataV9;370 EthAccessList: EthAccessList;371 EthAccessListItem: EthAccessListItem;372 EthAccount: EthAccount;373 EthAddress: EthAddress;374 EthBlock: EthBlock;375 EthBloom: EthBloom;376 EthbloomBloom: EthbloomBloom;377 EthCallRequest: EthCallRequest;378 EthereumAccountId: EthereumAccountId;379 EthereumAddress: EthereumAddress;380 EthereumBlock: EthereumBlock;381 EthereumHeader: EthereumHeader;382 EthereumLog: EthereumLog;383 EthereumLookupSource: EthereumLookupSource;384 EthereumReceiptEip658ReceiptData: EthereumReceiptEip658ReceiptData;385 EthereumReceiptReceiptV3: EthereumReceiptReceiptV3;386 EthereumSignature: EthereumSignature;387 EthereumTransactionAccessListItem: EthereumTransactionAccessListItem;388 EthereumTransactionEip1559Transaction: EthereumTransactionEip1559Transaction;389 EthereumTransactionEip2930Transaction: EthereumTransactionEip2930Transaction;390 EthereumTransactionLegacyTransaction: EthereumTransactionLegacyTransaction;391 EthereumTransactionTransactionAction: EthereumTransactionTransactionAction;392 EthereumTransactionTransactionSignature: EthereumTransactionTransactionSignature;393 EthereumTransactionTransactionV2: EthereumTransactionTransactionV2;394 EthereumTypesHashH64: EthereumTypesHashH64;395 EthFilter: EthFilter;396 EthFilterAddress: EthFilterAddress;397 EthFilterChanges: EthFilterChanges;398 EthFilterTopic: EthFilterTopic;399 EthFilterTopicEntry: EthFilterTopicEntry;400 EthFilterTopicInner: EthFilterTopicInner;401 EthHeader: EthHeader;402 EthLog: EthLog;403 EthReceipt: EthReceipt;404 EthRichBlock: EthRichBlock;405 EthRichHeader: EthRichHeader;406 EthStorageProof: EthStorageProof;407 EthSubKind: EthSubKind;408 EthSubParams: EthSubParams;409 EthSubResult: EthSubResult;410 EthSyncInfo: EthSyncInfo;411 EthSyncStatus: EthSyncStatus;412 EthTransaction: EthTransaction;413 EthTransactionAction: EthTransactionAction;414 EthTransactionCondition: EthTransactionCondition;415 EthTransactionRequest: EthTransactionRequest;416 EthTransactionSignature: EthTransactionSignature;417 EthTransactionStatus: EthTransactionStatus;418 EthWork: EthWork;419 Event: Event;420 EventId: EventId;421 EventIndex: EventIndex;422 EventMetadataLatest: EventMetadataLatest;423 EventMetadataV10: EventMetadataV10;424 EventMetadataV11: EventMetadataV11;425 EventMetadataV12: EventMetadataV12;426 EventMetadataV13: EventMetadataV13;427 EventMetadataV14: EventMetadataV14;428 EventMetadataV9: EventMetadataV9;429 EventRecord: EventRecord;430 EvmAccount: EvmAccount;431 EvmCoreErrorExitError: EvmCoreErrorExitError;432 EvmCoreErrorExitFatal: EvmCoreErrorExitFatal;433 EvmCoreErrorExitReason: EvmCoreErrorExitReason;434 EvmCoreErrorExitRevert: EvmCoreErrorExitRevert;435 EvmCoreErrorExitSucceed: EvmCoreErrorExitSucceed;436 EvmLog: EvmLog;437 EvmVicinity: EvmVicinity;438 ExecReturnValue: ExecReturnValue;439 ExitError: ExitError;440 ExitFatal: ExitFatal;441 ExitReason: ExitReason;442 ExitRevert: ExitRevert;443 ExitSucceed: ExitSucceed;444 ExplicitDisputeStatement: ExplicitDisputeStatement;445 Exposure: Exposure;446 ExtendedBalance: ExtendedBalance;447 Extrinsic: Extrinsic;448 ExtrinsicEra: ExtrinsicEra;449 ExtrinsicMetadataLatest: ExtrinsicMetadataLatest;450 ExtrinsicMetadataV11: ExtrinsicMetadataV11;451 ExtrinsicMetadataV12: ExtrinsicMetadataV12;452 ExtrinsicMetadataV13: ExtrinsicMetadataV13;453 ExtrinsicMetadataV14: ExtrinsicMetadataV14;454 ExtrinsicOrHash: ExtrinsicOrHash;455 ExtrinsicPayload: ExtrinsicPayload;456 ExtrinsicPayloadUnknown: ExtrinsicPayloadUnknown;457 ExtrinsicPayloadV4: ExtrinsicPayloadV4;458 ExtrinsicSignature: ExtrinsicSignature;459 ExtrinsicSignatureV4: ExtrinsicSignatureV4;460 ExtrinsicStatus: ExtrinsicStatus;461 ExtrinsicsWeight: ExtrinsicsWeight;462 ExtrinsicUnknown: ExtrinsicUnknown;463 ExtrinsicV4: ExtrinsicV4;464 FeeDetails: FeeDetails;465 Fixed128: Fixed128;466 Fixed64: Fixed64;467 FixedI128: FixedI128;468 FixedI64: FixedI64;469 FixedU128: FixedU128;470 FixedU64: FixedU64;471 Forcing: Forcing;472 ForkTreePendingChange: ForkTreePendingChange;473 ForkTreePendingChangeNode: ForkTreePendingChangeNode;474 FpRpcTransactionStatus: FpRpcTransactionStatus;475 FrameSupportPalletId: FrameSupportPalletId;476 FrameSupportTokensMiscBalanceStatus: FrameSupportTokensMiscBalanceStatus;477 FrameSupportWeightsDispatchClass: FrameSupportWeightsDispatchClass;478 FrameSupportWeightsDispatchInfo: FrameSupportWeightsDispatchInfo;479 FrameSupportWeightsPays: FrameSupportWeightsPays;480 FrameSupportWeightsPerDispatchClassU32: FrameSupportWeightsPerDispatchClassU32;481 FrameSupportWeightsPerDispatchClassU64: FrameSupportWeightsPerDispatchClassU64;482 FrameSupportWeightsPerDispatchClassWeightsPerClass: FrameSupportWeightsPerDispatchClassWeightsPerClass;483 FrameSupportWeightsRuntimeDbWeight: FrameSupportWeightsRuntimeDbWeight;484 FrameSupportWeightsWeightToFeeCoefficient: FrameSupportWeightsWeightToFeeCoefficient;485 FrameSystemAccountInfo: FrameSystemAccountInfo;486 FrameSystemCall: FrameSystemCall;487 FrameSystemError: FrameSystemError;488 FrameSystemEvent: FrameSystemEvent;489 FrameSystemEventRecord: FrameSystemEventRecord;490 FrameSystemExtensionsCheckGenesis: FrameSystemExtensionsCheckGenesis;491 FrameSystemExtensionsCheckNonce: FrameSystemExtensionsCheckNonce;492 FrameSystemExtensionsCheckSpecVersion: FrameSystemExtensionsCheckSpecVersion;493 FrameSystemExtensionsCheckWeight: FrameSystemExtensionsCheckWeight;494 FrameSystemLastRuntimeUpgradeInfo: FrameSystemLastRuntimeUpgradeInfo;495 FrameSystemLimitsBlockLength: FrameSystemLimitsBlockLength;496 FrameSystemLimitsBlockWeights: FrameSystemLimitsBlockWeights;497 FrameSystemLimitsWeightsPerClass: FrameSystemLimitsWeightsPerClass;498 FrameSystemPhase: FrameSystemPhase;499 FullIdentification: FullIdentification;500 FunctionArgumentMetadataLatest: FunctionArgumentMetadataLatest;501 FunctionArgumentMetadataV10: FunctionArgumentMetadataV10;502 FunctionArgumentMetadataV11: FunctionArgumentMetadataV11;503 FunctionArgumentMetadataV12: FunctionArgumentMetadataV12;504 FunctionArgumentMetadataV13: FunctionArgumentMetadataV13;505 FunctionArgumentMetadataV14: FunctionArgumentMetadataV14;506 FunctionArgumentMetadataV9: FunctionArgumentMetadataV9;507 FunctionMetadataLatest: FunctionMetadataLatest;508 FunctionMetadataV10: FunctionMetadataV10;509 FunctionMetadataV11: FunctionMetadataV11;510 FunctionMetadataV12: FunctionMetadataV12;511 FunctionMetadataV13: FunctionMetadataV13;512 FunctionMetadataV14: FunctionMetadataV14;513 FunctionMetadataV9: FunctionMetadataV9;514 FundIndex: FundIndex;515 FundInfo: FundInfo;516 Fungibility: Fungibility;517 FungibilityV0: FungibilityV0;518 FungibilityV1: FungibilityV1;519 FungibilityV2: FungibilityV2;520 Gas: Gas;521 GiltBid: GiltBid;522 GlobalValidationData: GlobalValidationData;523 GlobalValidationSchedule: GlobalValidationSchedule;524 GrandpaCommit: GrandpaCommit;525 GrandpaEquivocation: GrandpaEquivocation;526 GrandpaEquivocationProof: GrandpaEquivocationProof;527 GrandpaEquivocationValue: GrandpaEquivocationValue;528 GrandpaJustification: GrandpaJustification;529 GrandpaPrecommit: GrandpaPrecommit;530 GrandpaPrevote: GrandpaPrevote;531 GrandpaSignedPrecommit: GrandpaSignedPrecommit;532 GroupIndex: GroupIndex;533 H1024: H1024;534 H128: H128;535 H160: H160;536 H2048: H2048;537 H256: H256;538 H32: H32;539 H512: H512;540 H64: H64;541 Hash: Hash;542 HeadData: HeadData;543 Header: Header;544 HeaderPartial: HeaderPartial;545 Health: Health;546 Heartbeat: Heartbeat;547 HeartbeatTo244: HeartbeatTo244;548 HostConfiguration: HostConfiguration;549 HostFnWeights: HostFnWeights;550 HostFnWeightsTo264: HostFnWeightsTo264;551 HrmpChannel: HrmpChannel;552 HrmpChannelId: HrmpChannelId;553 HrmpOpenChannelRequest: HrmpOpenChannelRequest;554 i128: i128;555 I128: I128;556 i16: i16;557 I16: I16;558 i256: i256;559 I256: I256;560 i32: i32;561 I32: I32;562 I32F32: I32F32;563 i64: i64;564 I64: I64;565 i8: i8;566 I8: I8;567 IdentificationTuple: IdentificationTuple;568 IdentityFields: IdentityFields;569 IdentityInfo: IdentityInfo;570 IdentityInfoAdditional: IdentityInfoAdditional;571 IdentityInfoTo198: IdentityInfoTo198;572 IdentityJudgement: IdentityJudgement;573 ImmortalEra: ImmortalEra;574 ImportedAux: ImportedAux;575 InboundDownwardMessage: InboundDownwardMessage;576 InboundHrmpMessage: InboundHrmpMessage;577 InboundHrmpMessages: InboundHrmpMessages;578 InboundLaneData: InboundLaneData;579 InboundRelayer: InboundRelayer;580 InboundStatus: InboundStatus;581 IncludedBlocks: IncludedBlocks;582 InclusionFee: InclusionFee;583 IncomingParachain: IncomingParachain;584 IncomingParachainDeploy: IncomingParachainDeploy;585 IncomingParachainFixed: IncomingParachainFixed;586 Index: Index;587 IndicesLookupSource: IndicesLookupSource;588 IndividualExposure: IndividualExposure;589 InitializationData: InitializationData;590 InstanceDetails: InstanceDetails;591 InstanceId: InstanceId;592 InstanceMetadata: InstanceMetadata;593 InstantiateRequest: InstantiateRequest;594 InstantiateReturnValue: InstantiateReturnValue;595 InstantiateReturnValueTo267: InstantiateReturnValueTo267;596 InstructionV2: InstructionV2;597 InstructionWeights: InstructionWeights;598 InteriorMultiLocation: InteriorMultiLocation;599 InvalidDisputeStatementKind: InvalidDisputeStatementKind;600 InvalidTransaction: InvalidTransaction;601 Json: Json;602 Junction: Junction;603 Junctions: Junctions;604 JunctionsV1: JunctionsV1;605 JunctionsV2: JunctionsV2;606 JunctionV0: JunctionV0;607 JunctionV1: JunctionV1;608 JunctionV2: JunctionV2;609 Justification: Justification;610 JustificationNotification: JustificationNotification;611 Justifications: Justifications;612 Key: Key;613 KeyOwnerProof: KeyOwnerProof;614 Keys: Keys;615 KeyType: KeyType;616 KeyTypeId: KeyTypeId;617 KeyValue: KeyValue;618 KeyValueOption: KeyValueOption;619 Kind: Kind;620 LaneId: LaneId;621 LastContribution: LastContribution;622 LastRuntimeUpgradeInfo: LastRuntimeUpgradeInfo;623 LeasePeriod: LeasePeriod;624 LeasePeriodOf: LeasePeriodOf;625 LegacyTransaction: LegacyTransaction;626 Limits: Limits;627 LimitsTo264: LimitsTo264;628 LocalValidationData: LocalValidationData;629 LockIdentifier: LockIdentifier;630 LookupSource: LookupSource;631 LookupTarget: LookupTarget;632 LotteryConfig: LotteryConfig;633 MaybeRandomness: MaybeRandomness;634 MaybeVrf: MaybeVrf;635 MemberCount: MemberCount;636 MembershipProof: MembershipProof;637 MessageData: MessageData;638 MessageId: MessageId;639 MessageIngestionType: MessageIngestionType;640 MessageKey: MessageKey;641 MessageNonce: MessageNonce;642 MessageQueueChain: MessageQueueChain;643 MessagesDeliveryProofOf: MessagesDeliveryProofOf;644 MessagesProofOf: MessagesProofOf;645 MessagingStateSnapshot: MessagingStateSnapshot;646 MessagingStateSnapshotEgressEntry: MessagingStateSnapshotEgressEntry;647 MetadataAll: MetadataAll;648 MetadataLatest: MetadataLatest;649 MetadataV10: MetadataV10;650 MetadataV11: MetadataV11;651 MetadataV12: MetadataV12;652 MetadataV13: MetadataV13;653 MetadataV14: MetadataV14;654 MetadataV9: MetadataV9;655 MmrLeafProof: MmrLeafProof;656 MmrRootHash: MmrRootHash;657 ModuleConstantMetadataV10: ModuleConstantMetadataV10;658 ModuleConstantMetadataV11: ModuleConstantMetadataV11;659 ModuleConstantMetadataV12: ModuleConstantMetadataV12;660 ModuleConstantMetadataV13: ModuleConstantMetadataV13;661 ModuleConstantMetadataV9: ModuleConstantMetadataV9;662 ModuleId: ModuleId;663 ModuleMetadataV10: ModuleMetadataV10;664 ModuleMetadataV11: ModuleMetadataV11;665 ModuleMetadataV12: ModuleMetadataV12;666 ModuleMetadataV13: ModuleMetadataV13;667 ModuleMetadataV9: ModuleMetadataV9;668 Moment: Moment;669 MomentOf: MomentOf;670 MoreAttestations: MoreAttestations;671 MortalEra: MortalEra;672 MultiAddress: MultiAddress;673 MultiAsset: MultiAsset;674 MultiAssetFilter: MultiAssetFilter;675 MultiAssetFilterV1: MultiAssetFilterV1;676 MultiAssetFilterV2: MultiAssetFilterV2;677 MultiAssets: MultiAssets;678 MultiAssetsV1: MultiAssetsV1;679 MultiAssetsV2: MultiAssetsV2;680 MultiAssetV0: MultiAssetV0;681 MultiAssetV1: MultiAssetV1;682 MultiAssetV2: MultiAssetV2;683 MultiDisputeStatementSet: MultiDisputeStatementSet;684 MultiLocation: MultiLocation;685 MultiLocationV0: MultiLocationV0;686 MultiLocationV1: MultiLocationV1;687 MultiLocationV2: MultiLocationV2;688 Multiplier: Multiplier;689 Multisig: Multisig;690 MultiSignature: MultiSignature;691 MultiSigner: MultiSigner;692 NetworkId: NetworkId;693 NetworkState: NetworkState;694 NetworkStatePeerset: NetworkStatePeerset;695 NetworkStatePeersetInfo: NetworkStatePeersetInfo;696 NewBidder: NewBidder;697 NextAuthority: NextAuthority;698 NextConfigDescriptor: NextConfigDescriptor;699 NextConfigDescriptorV1: NextConfigDescriptorV1;700 NodeRole: NodeRole;701 Nominations: Nominations;702 NominatorIndex: NominatorIndex;703 NominatorIndexCompact: NominatorIndexCompact;704 NotConnectedPeer: NotConnectedPeer;705 Null: Null;706 OffchainAccuracy: OffchainAccuracy;707 OffchainAccuracyCompact: OffchainAccuracyCompact;708 OffenceDetails: OffenceDetails;709 Offender: Offender;710 OpaqueCall: OpaqueCall;711 OpaqueMultiaddr: OpaqueMultiaddr;712 OpaqueNetworkState: OpaqueNetworkState;713 OpaquePeerId: OpaquePeerId;714 OpaqueTimeSlot: OpaqueTimeSlot;715 OpenTip: OpenTip;716 OpenTipFinderTo225: OpenTipFinderTo225;717 OpenTipTip: OpenTipTip;718 OpenTipTo225: OpenTipTo225;719 OperatingMode: OperatingMode;720 Origin: Origin;721 OriginCaller: OriginCaller;722 OriginKindV0: OriginKindV0;723 OriginKindV1: OriginKindV1;724 OriginKindV2: OriginKindV2;725 OrmlVestingModuleCall: OrmlVestingModuleCall;726 OrmlVestingModuleError: OrmlVestingModuleError;727 OrmlVestingModuleEvent: OrmlVestingModuleEvent;728 OrmlVestingVestingSchedule: OrmlVestingVestingSchedule;729 OutboundHrmpMessage: OutboundHrmpMessage;730 OutboundLaneData: OutboundLaneData;731 OutboundMessageFee: OutboundMessageFee;732 OutboundPayload: OutboundPayload;733 OutboundStatus: OutboundStatus;734 Outcome: Outcome;735 OverweightIndex: OverweightIndex;736 Owner: Owner;737 PageCounter: PageCounter;738 PageIndexData: PageIndexData;739 PalletBalancesAccountData: PalletBalancesAccountData;740 PalletBalancesBalanceLock: PalletBalancesBalanceLock;741 PalletBalancesCall: PalletBalancesCall;742 PalletBalancesError: PalletBalancesError;743 PalletBalancesEvent: PalletBalancesEvent;744 PalletBalancesReasons: PalletBalancesReasons;745 PalletBalancesReleases: PalletBalancesReleases;746 PalletBalancesReserveData: PalletBalancesReserveData;747 PalletCallMetadataLatest: PalletCallMetadataLatest;748 PalletCallMetadataV14: PalletCallMetadataV14;749 PalletCommonAccountBasicCrossAccountIdRepr: PalletCommonAccountBasicCrossAccountIdRepr;750 PalletCommonError: PalletCommonError;751 PalletCommonEvent: PalletCommonEvent;752 PalletConstantMetadataLatest: PalletConstantMetadataLatest;753 PalletConstantMetadataV14: PalletConstantMetadataV14;754 PalletErrorMetadataLatest: PalletErrorMetadataLatest;755 PalletErrorMetadataV14: PalletErrorMetadataV14;756 PalletEthereumCall: PalletEthereumCall;757 PalletEthereumError: PalletEthereumError;758 PalletEthereumEvent: PalletEthereumEvent;759 PalletEventMetadataLatest: PalletEventMetadataLatest;760 PalletEventMetadataV14: PalletEventMetadataV14;761 PalletEvmCall: PalletEvmCall;762 PalletEvmCoderSubstrateError: PalletEvmCoderSubstrateError;763 PalletEvmContractHelpersError: PalletEvmContractHelpersError;764 PalletEvmContractHelpersSponsoringModeT: PalletEvmContractHelpersSponsoringModeT;765 PalletEvmError: PalletEvmError;766 PalletEvmEvent: PalletEvmEvent;767 PalletEvmMigrationCall: PalletEvmMigrationCall;768 PalletEvmMigrationError: PalletEvmMigrationError;769 PalletFungibleError: PalletFungibleError;770 PalletId: PalletId;771 PalletInflationCall: PalletInflationCall;772 PalletMetadataLatest: PalletMetadataLatest;773 PalletMetadataV14: PalletMetadataV14;774 PalletNonfungibleError: PalletNonfungibleError;775 PalletNonfungibleItemData: PalletNonfungibleItemData;776 PalletRefungibleError: PalletRefungibleError;777 PalletRefungibleItemData: PalletRefungibleItemData;778 PalletsOrigin: PalletsOrigin;779 PalletStorageMetadataLatest: PalletStorageMetadataLatest;780 PalletStorageMetadataV14: PalletStorageMetadataV14;781 PalletSudoCall: PalletSudoCall;782 PalletSudoError: PalletSudoError;783 PalletSudoEvent: PalletSudoEvent;784 PalletTemplateTransactionPaymentCall: PalletTemplateTransactionPaymentCall;785 PalletTemplateTransactionPaymentChargeTransactionPayment: PalletTemplateTransactionPaymentChargeTransactionPayment;786 PalletTimestampCall: PalletTimestampCall;787 PalletTransactionPaymentReleases: PalletTransactionPaymentReleases;788 PalletTreasuryCall: PalletTreasuryCall;789 PalletTreasuryError: PalletTreasuryError;790 PalletTreasuryEvent: PalletTreasuryEvent;791 PalletTreasuryProposal: PalletTreasuryProposal;792 PalletUniqueCall: PalletUniqueCall;793 PalletUniqueError: PalletUniqueError;794 PalletUniqueRawEvent: PalletUniqueRawEvent;795 PalletVersion: PalletVersion;796 PalletXcmCall: PalletXcmCall;797 PalletXcmError: PalletXcmError;798 PalletXcmEvent: PalletXcmEvent;799 ParachainDispatchOrigin: ParachainDispatchOrigin;800 ParachainInherentData: ParachainInherentData;801 ParachainProposal: ParachainProposal;802 ParachainsInherentData: ParachainsInherentData;803 ParaGenesisArgs: ParaGenesisArgs;804 ParaId: ParaId;805 ParaInfo: ParaInfo;806 ParaLifecycle: ParaLifecycle;807 Parameter: Parameter;808 ParaPastCodeMeta: ParaPastCodeMeta;809 ParaScheduling: ParaScheduling;810 ParathreadClaim: ParathreadClaim;811 ParathreadClaimQueue: ParathreadClaimQueue;812 ParathreadEntry: ParathreadEntry;813 ParaValidatorIndex: ParaValidatorIndex;814 Pays: Pays;815 Peer: Peer;816 PeerEndpoint: PeerEndpoint;817 PeerEndpointAddr: PeerEndpointAddr;818 PeerInfo: PeerInfo;819 PeerPing: PeerPing;820 PendingChange: PendingChange;821 PendingPause: PendingPause;822 PendingResume: PendingResume;823 Perbill: Perbill;824 Percent: Percent;825 PerDispatchClassU32: PerDispatchClassU32;826 PerDispatchClassWeight: PerDispatchClassWeight;827 PerDispatchClassWeightsPerClass: PerDispatchClassWeightsPerClass;828 Period: Period;829 Permill: Permill;830 PermissionLatest: PermissionLatest;831 PermissionsV1: PermissionsV1;832 PermissionVersions: PermissionVersions;833 Perquintill: Perquintill;834 PersistedValidationData: PersistedValidationData;835 PerU16: PerU16;836 Phantom: Phantom;837 PhantomData: PhantomData;838 Phase: Phase;839 PhragmenScore: PhragmenScore;840 Points: Points;841 PolkadotCorePrimitivesInboundDownwardMessage: PolkadotCorePrimitivesInboundDownwardMessage;842 PolkadotCorePrimitivesInboundHrmpMessage: PolkadotCorePrimitivesInboundHrmpMessage;843 PolkadotCorePrimitivesOutboundHrmpMessage: PolkadotCorePrimitivesOutboundHrmpMessage;844 PolkadotParachainPrimitivesXcmpMessageFormat: PolkadotParachainPrimitivesXcmpMessageFormat;845 PolkadotPrimitivesV1AbridgedHostConfiguration: PolkadotPrimitivesV1AbridgedHostConfiguration;846 PolkadotPrimitivesV1AbridgedHrmpChannel: PolkadotPrimitivesV1AbridgedHrmpChannel;847 PolkadotPrimitivesV1PersistedValidationData: PolkadotPrimitivesV1PersistedValidationData;848 PolkadotPrimitivesV1UpgradeRestriction: PolkadotPrimitivesV1UpgradeRestriction;849 PortableType: PortableType;850 PortableTypeV14: PortableTypeV14;851 Precommits: Precommits;852 PrefabWasmModule: PrefabWasmModule;853 PrefixedStorageKey: PrefixedStorageKey;854 PreimageStatus: PreimageStatus;855 PreimageStatusAvailable: PreimageStatusAvailable;856 PreRuntime: PreRuntime;857 Prevotes: Prevotes;858 Priority: Priority;859 PriorLock: PriorLock;860 PropIndex: PropIndex;861 Proposal: Proposal;862 ProposalIndex: ProposalIndex;863 ProxyAnnouncement: ProxyAnnouncement;864 ProxyDefinition: ProxyDefinition;865 ProxyState: ProxyState;866 ProxyType: ProxyType;867 QueryId: QueryId;868 QueryStatus: QueryStatus;869 QueueConfigData: QueueConfigData;870 QueuedParathread: QueuedParathread;871 Randomness: Randomness;872 Raw: Raw;873 RawAuraPreDigest: RawAuraPreDigest;874 RawBabePreDigest: RawBabePreDigest;875 RawBabePreDigestCompat: RawBabePreDigestCompat;876 RawBabePreDigestPrimary: RawBabePreDigestPrimary;877 RawBabePreDigestPrimaryTo159: RawBabePreDigestPrimaryTo159;878 RawBabePreDigestSecondaryPlain: RawBabePreDigestSecondaryPlain;879 RawBabePreDigestSecondaryTo159: RawBabePreDigestSecondaryTo159;880 RawBabePreDigestSecondaryVRF: RawBabePreDigestSecondaryVRF;881 RawBabePreDigestTo159: RawBabePreDigestTo159;882 RawOrigin: RawOrigin;883 RawSolution: RawSolution;884 RawSolutionTo265: RawSolutionTo265;885 RawSolutionWith16: RawSolutionWith16;886 RawSolutionWith24: RawSolutionWith24;887 RawVRFOutput: RawVRFOutput;888 ReadProof: ReadProof;889 ReadySolution: ReadySolution;890 Reasons: Reasons;891 RecoveryConfig: RecoveryConfig;892 RefCount: RefCount;893 RefCountTo259: RefCountTo259;894 ReferendumIndex: ReferendumIndex;895 ReferendumInfo: ReferendumInfo;896 ReferendumInfoFinished: ReferendumInfoFinished;897 ReferendumInfoTo239: ReferendumInfoTo239;898 ReferendumStatus: ReferendumStatus;899 RegisteredParachainInfo: RegisteredParachainInfo;900 RegistrarIndex: RegistrarIndex;901 RegistrarInfo: RegistrarInfo;902 Registration: Registration;903 RegistrationJudgement: RegistrationJudgement;904 RegistrationTo198: RegistrationTo198;905 RelayBlockNumber: RelayBlockNumber;906 RelayChainBlockNumber: RelayChainBlockNumber;907 RelayChainHash: RelayChainHash;908 RelayerId: RelayerId;909 RelayHash: RelayHash;910 Releases: Releases;911 Remark: Remark;912 Renouncing: Renouncing;913 RentProjection: RentProjection;914 ReplacementTimes: ReplacementTimes;915 ReportedRoundStates: ReportedRoundStates;916 Reporter: Reporter;917 ReportIdOf: ReportIdOf;918 ReserveData: ReserveData;919 ReserveIdentifier: ReserveIdentifier;920 Response: Response;921 ResponseV0: ResponseV0;922 ResponseV1: ResponseV1;923 ResponseV2: ResponseV2;924 ResponseV2Error: ResponseV2Error;925 ResponseV2Result: ResponseV2Result;926 Retriable: Retriable;927 RewardDestination: RewardDestination;928 RewardPoint: RewardPoint;929 RoundSnapshot: RoundSnapshot;930 RoundState: RoundState;931 RpcMethods: RpcMethods;932 RuntimeDbWeight: RuntimeDbWeight;933 RuntimeDispatchInfo: RuntimeDispatchInfo;934 RuntimeVersion: RuntimeVersion;935 RuntimeVersionApi: RuntimeVersionApi;936 RuntimeVersionPartial: RuntimeVersionPartial;937 Schedule: Schedule;938 Scheduled: Scheduled;939 ScheduledTo254: ScheduledTo254;940 SchedulePeriod: SchedulePeriod;941 SchedulePriority: SchedulePriority;942 ScheduleTo212: ScheduleTo212;943 ScheduleTo258: ScheduleTo258;944 ScheduleTo264: ScheduleTo264;945 Scheduling: Scheduling;946 Seal: Seal;947 SealV0: SealV0;948 SeatHolder: SeatHolder;949 SeedOf: SeedOf;950 ServiceQuality: ServiceQuality;951 SessionIndex: SessionIndex;952 SessionInfo: SessionInfo;953 SessionInfoValidatorGroup: SessionInfoValidatorGroup;954 SessionKeys1: SessionKeys1;955 SessionKeys10: SessionKeys10;956 SessionKeys10B: SessionKeys10B;957 SessionKeys2: SessionKeys2;958 SessionKeys3: SessionKeys3;959 SessionKeys4: SessionKeys4;960 SessionKeys5: SessionKeys5;961 SessionKeys6: SessionKeys6;962 SessionKeys6B: SessionKeys6B;963 SessionKeys7: SessionKeys7;964 SessionKeys7B: SessionKeys7B;965 SessionKeys8: SessionKeys8;966 SessionKeys8B: SessionKeys8B;967 SessionKeys9: SessionKeys9;968 SessionKeys9B: SessionKeys9B;969 SetId: SetId;970 SetIndex: SetIndex;971 Si0Field: Si0Field;972 Si0LookupTypeId: Si0LookupTypeId;973 Si0Path: Si0Path;974 Si0Type: Si0Type;975 Si0TypeDef: Si0TypeDef;976 Si0TypeDefArray: Si0TypeDefArray;977 Si0TypeDefBitSequence: Si0TypeDefBitSequence;978 Si0TypeDefCompact: Si0TypeDefCompact;979 Si0TypeDefComposite: Si0TypeDefComposite;980 Si0TypeDefPhantom: Si0TypeDefPhantom;981 Si0TypeDefPrimitive: Si0TypeDefPrimitive;982 Si0TypeDefSequence: Si0TypeDefSequence;983 Si0TypeDefTuple: Si0TypeDefTuple;984 Si0TypeDefVariant: Si0TypeDefVariant;985 Si0TypeParameter: Si0TypeParameter;986 Si0Variant: Si0Variant;987 Si1Field: Si1Field;988 Si1LookupTypeId: Si1LookupTypeId;989 Si1Path: Si1Path;990 Si1Type: Si1Type;991 Si1TypeDef: Si1TypeDef;992 Si1TypeDefArray: Si1TypeDefArray;993 Si1TypeDefBitSequence: Si1TypeDefBitSequence;994 Si1TypeDefCompact: Si1TypeDefCompact;995 Si1TypeDefComposite: Si1TypeDefComposite;996 Si1TypeDefPrimitive: Si1TypeDefPrimitive;997 Si1TypeDefSequence: Si1TypeDefSequence;998 Si1TypeDefTuple: Si1TypeDefTuple;999 Si1TypeDefVariant: Si1TypeDefVariant;1000 Si1TypeParameter: Si1TypeParameter;1001 Si1Variant: Si1Variant;1002 SiField: SiField;1003 Signature: Signature;1004 SignedAvailabilityBitfield: SignedAvailabilityBitfield;1005 SignedAvailabilityBitfields: SignedAvailabilityBitfields;1006 SignedBlock: SignedBlock;1007 SignedBlockWithJustification: SignedBlockWithJustification;1008 SignedBlockWithJustifications: SignedBlockWithJustifications;1009 SignedExtensionMetadataLatest: SignedExtensionMetadataLatest;1010 SignedExtensionMetadataV14: SignedExtensionMetadataV14;1011 SignedSubmission: SignedSubmission;1012 SignedSubmissionOf: SignedSubmissionOf;1013 SignedSubmissionTo276: SignedSubmissionTo276;1014 SignerPayload: SignerPayload;1015 SigningContext: SigningContext;1016 SiLookupTypeId: SiLookupTypeId;1017 SiPath: SiPath;1018 SiType: SiType;1019 SiTypeDef: SiTypeDef;1020 SiTypeDefArray: SiTypeDefArray;1021 SiTypeDefBitSequence: SiTypeDefBitSequence;1022 SiTypeDefCompact: SiTypeDefCompact;1023 SiTypeDefComposite: SiTypeDefComposite;1024 SiTypeDefPrimitive: SiTypeDefPrimitive;1025 SiTypeDefSequence: SiTypeDefSequence;1026 SiTypeDefTuple: SiTypeDefTuple;1027 SiTypeDefVariant: SiTypeDefVariant;1028 SiTypeParameter: SiTypeParameter;1029 SiVariant: SiVariant;1030 SlashingSpans: SlashingSpans;1031 SlashingSpansTo204: SlashingSpansTo204;1032 SlashJournalEntry: SlashJournalEntry;1033 Slot: Slot;1034 SlotNumber: SlotNumber;1035 SlotRange: SlotRange;1036 SlotRange10: SlotRange10;1037 SocietyJudgement: SocietyJudgement;1038 SocietyVote: SocietyVote;1039 SolutionOrSnapshotSize: SolutionOrSnapshotSize;1040 SolutionSupport: SolutionSupport;1041 SolutionSupports: SolutionSupports;1042 SpanIndex: SpanIndex;1043 SpanRecord: SpanRecord;1044 SpCoreEcdsaSignature: SpCoreEcdsaSignature;1045 SpCoreEd25519Signature: SpCoreEd25519Signature;1046 SpCoreSr25519Signature: SpCoreSr25519Signature;1047 SpecVersion: SpecVersion;1048 SpRuntimeArithmeticError: SpRuntimeArithmeticError;1049 SpRuntimeDigest: SpRuntimeDigest;1050 SpRuntimeDigestDigestItem: SpRuntimeDigestDigestItem;1051 SpRuntimeDispatchError: SpRuntimeDispatchError;1052 SpRuntimeModuleError: SpRuntimeModuleError;1053 SpRuntimeMultiSignature: SpRuntimeMultiSignature;1054 SpRuntimeTokenError: SpRuntimeTokenError;1055 SpTrieStorageProof: SpTrieStorageProof;1056 SpVersionRuntimeVersion: SpVersionRuntimeVersion;1057 Sr25519Signature: Sr25519Signature;1058 StakingLedger: StakingLedger;1059 StakingLedgerTo223: StakingLedgerTo223;1060 StakingLedgerTo240: StakingLedgerTo240;1061 Statement: Statement;1062 StatementKind: StatementKind;1063 StorageChangeSet: StorageChangeSet;1064 StorageData: StorageData;1065 StorageDeposit: StorageDeposit;1066 StorageEntryMetadataLatest: StorageEntryMetadataLatest;1067 StorageEntryMetadataV10: StorageEntryMetadataV10;1068 StorageEntryMetadataV11: StorageEntryMetadataV11;1069 StorageEntryMetadataV12: StorageEntryMetadataV12;1070 StorageEntryMetadataV13: StorageEntryMetadataV13;1071 StorageEntryMetadataV14: StorageEntryMetadataV14;1072 StorageEntryMetadataV9: StorageEntryMetadataV9;1073 StorageEntryModifierLatest: StorageEntryModifierLatest;1074 StorageEntryModifierV10: StorageEntryModifierV10;1075 StorageEntryModifierV11: StorageEntryModifierV11;1076 StorageEntryModifierV12: StorageEntryModifierV12;1077 StorageEntryModifierV13: StorageEntryModifierV13;1078 StorageEntryModifierV14: StorageEntryModifierV14;1079 StorageEntryModifierV9: StorageEntryModifierV9;1080 StorageEntryTypeLatest: StorageEntryTypeLatest;1081 StorageEntryTypeV10: StorageEntryTypeV10;1082 StorageEntryTypeV11: StorageEntryTypeV11;1083 StorageEntryTypeV12: StorageEntryTypeV12;1084 StorageEntryTypeV13: StorageEntryTypeV13;1085 StorageEntryTypeV14: StorageEntryTypeV14;1086 StorageEntryTypeV9: StorageEntryTypeV9;1087 StorageHasher: StorageHasher;1088 StorageHasherV10: StorageHasherV10;1089 StorageHasherV11: StorageHasherV11;1090 StorageHasherV12: StorageHasherV12;1091 StorageHasherV13: StorageHasherV13;1092 StorageHasherV14: StorageHasherV14;1093 StorageHasherV9: StorageHasherV9;1094 StorageKey: StorageKey;1095 StorageKind: StorageKind;1096 StorageMetadataV10: StorageMetadataV10;1097 StorageMetadataV11: StorageMetadataV11;1098 StorageMetadataV12: StorageMetadataV12;1099 StorageMetadataV13: StorageMetadataV13;1100 StorageMetadataV9: StorageMetadataV9;1101 StorageProof: StorageProof;1102 StoredPendingChange: StoredPendingChange;1103 StoredState: StoredState;1104 StrikeCount: StrikeCount;1105 SubId: SubId;1106 SubmissionIndicesOf: SubmissionIndicesOf;1107 Supports: Supports;1108 SyncState: SyncState;1109 SystemInherentData: SystemInherentData;1110 SystemOrigin: SystemOrigin;1111 Tally: Tally;1112 TaskAddress: TaskAddress;1113 TAssetBalance: TAssetBalance;1114 TAssetDepositBalance: TAssetDepositBalance;1115 Text: Text;1116 Timepoint: Timepoint;1117 TokenError: TokenError;1118 TombstoneContractInfo: TombstoneContractInfo;1119 TraceBlockResponse: TraceBlockResponse;1120 TraceError: TraceError;1121 TransactionInfo: TransactionInfo;1122 TransactionPriority: TransactionPriority;1123 TransactionStorageProof: TransactionStorageProof;1124 TransactionV0: TransactionV0;1125 TransactionV1: TransactionV1;1126 TransactionV2: TransactionV2;1127 TransactionValidityError: TransactionValidityError;1128 TransientValidationData: TransientValidationData;1129 TreasuryProposal: TreasuryProposal;1130 TrieId: TrieId;1131 TrieIndex: TrieIndex;1132 Type: Type;1133 u128: u128;1134 U128: U128;1135 u16: u16;1136 U16: U16;1137 u256: u256;1138 U256: U256;1139 u32: u32;1140 U32: U32;1141 U32F32: U32F32;1142 u64: u64;1143 U64: U64;1144 u8: u8;1145 U8: U8;1146 UnappliedSlash: UnappliedSlash;1147 UnappliedSlashOther: UnappliedSlashOther;1148 UncleEntryItem: UncleEntryItem;1149 UniqueRuntimeRuntime: UniqueRuntimeRuntime;1150 UnknownTransaction: UnknownTransaction;1151 UnlockChunk: UnlockChunk;1152 UnrewardedRelayer: UnrewardedRelayer;1153 UnrewardedRelayersState: UnrewardedRelayersState;1154 UpDataStructsAccessMode: UpDataStructsAccessMode;1155 UpDataStructsCollection: UpDataStructsCollection;1156 UpDataStructsCollectionLimits: UpDataStructsCollectionLimits;1157 UpDataStructsCollectionMode: UpDataStructsCollectionMode;1158 UpDataStructsCollectionStats: UpDataStructsCollectionStats;1159 UpDataStructsCreateCollectionData: UpDataStructsCreateCollectionData;1160 UpDataStructsCreateFungibleData: UpDataStructsCreateFungibleData;1161 UpDataStructsCreateItemData: UpDataStructsCreateItemData;1162 UpDataStructsCreateItemExData: UpDataStructsCreateItemExData;1163 UpDataStructsCreateNftData: UpDataStructsCreateNftData;1164 UpDataStructsCreateNftExData: UpDataStructsCreateNftExData;1165 UpDataStructsCreateReFungibleData: UpDataStructsCreateReFungibleData;1166 UpDataStructsCreateRefungibleExData: UpDataStructsCreateRefungibleExData;1167 UpDataStructsMetaUpdatePermission: UpDataStructsMetaUpdatePermission;1168 UpDataStructsSchemaVersion: UpDataStructsSchemaVersion;1169 UpDataStructsSponsoringRateLimit: UpDataStructsSponsoringRateLimit;1170 UpDataStructsSponsorshipState: UpDataStructsSponsorshipState;1171 UpgradeGoAhead: UpgradeGoAhead;1172 UpgradeRestriction: UpgradeRestriction;1173 UpwardMessage: UpwardMessage;1174 usize: usize;1175 USize: USize;1176 ValidationCode: ValidationCode;1177 ValidationCodeHash: ValidationCodeHash;1178 ValidationData: ValidationData;1179 ValidationDataType: ValidationDataType;1180 ValidationFunctionParams: ValidationFunctionParams;1181 ValidatorCount: ValidatorCount;1182 ValidatorId: ValidatorId;1183 ValidatorIdOf: ValidatorIdOf;1184 ValidatorIndex: ValidatorIndex;1185 ValidatorIndexCompact: ValidatorIndexCompact;1186 ValidatorPrefs: ValidatorPrefs;1187 ValidatorPrefsTo145: ValidatorPrefsTo145;1188 ValidatorPrefsTo196: ValidatorPrefsTo196;1189 ValidatorPrefsWithBlocked: ValidatorPrefsWithBlocked;1190 ValidatorPrefsWithCommission: ValidatorPrefsWithCommission;1191 ValidatorSetId: ValidatorSetId;1192 ValidatorSignature: ValidatorSignature;1193 ValidDisputeStatementKind: ValidDisputeStatementKind;1194 ValidityAttestation: ValidityAttestation;1195 VecInboundHrmpMessage: VecInboundHrmpMessage;1196 VersionedMultiAsset: VersionedMultiAsset;1197 VersionedMultiAssets: VersionedMultiAssets;1198 VersionedMultiLocation: VersionedMultiLocation;1199 VersionedResponse: VersionedResponse;1200 VersionedXcm: VersionedXcm;1201 VersionMigrationStage: VersionMigrationStage;1202 VestingInfo: VestingInfo;1203 VestingSchedule: VestingSchedule;1204 Vote: Vote;1205 VoteIndex: VoteIndex;1206 Voter: Voter;1207 VoterInfo: VoterInfo;1208 Votes: Votes;1209 VotesTo230: VotesTo230;1210 VoteThreshold: VoteThreshold;1211 VoteWeight: VoteWeight;1212 Voting: Voting;1213 VotingDelegating: VotingDelegating;1214 VotingDirect: VotingDirect;1215 VotingDirectVote: VotingDirectVote;1216 VouchingStatus: VouchingStatus;1217 VrfData: VrfData;1218 VrfOutput: VrfOutput;1219 VrfProof: VrfProof;1220 Weight: Weight;1221 WeightLimitV2: WeightLimitV2;1222 WeightMultiplier: WeightMultiplier;1223 WeightPerClass: WeightPerClass;1224 WeightToFeeCoefficient: WeightToFeeCoefficient;1225 WildFungibility: WildFungibility;1226 WildFungibilityV0: WildFungibilityV0;1227 WildFungibilityV1: WildFungibilityV1;1228 WildFungibilityV2: WildFungibilityV2;1229 WildMultiAsset: WildMultiAsset;1230 WildMultiAssetV1: WildMultiAssetV1;1231 WildMultiAssetV2: WildMultiAssetV2;1232 WinnersData: WinnersData;1233 WinnersData10: WinnersData10;1234 WinnersDataTuple: WinnersDataTuple;1235 WinnersDataTuple10: WinnersDataTuple10;1236 WinningData: WinningData;1237 WinningData10: WinningData10;1238 WinningDataEntry: WinningDataEntry;1239 WithdrawReasons: WithdrawReasons;1240 Xcm: Xcm;1241 XcmAssetId: XcmAssetId;1242 XcmDoubleEncoded: XcmDoubleEncoded;1243 XcmError: XcmError;1244 XcmErrorV0: XcmErrorV0;1245 XcmErrorV1: XcmErrorV1;1246 XcmErrorV2: XcmErrorV2;1247 XcmOrder: XcmOrder;1248 XcmOrderV0: XcmOrderV0;1249 XcmOrderV1: XcmOrderV1;1250 XcmOrderV2: XcmOrderV2;1251 XcmOrigin: XcmOrigin;1252 XcmOriginKind: XcmOriginKind;1253 XcmpMessageFormat: XcmpMessageFormat;1254 XcmV0: XcmV0;1255 XcmV0Junction: XcmV0Junction;1256 XcmV0JunctionBodyId: XcmV0JunctionBodyId;1257 XcmV0JunctionBodyPart: XcmV0JunctionBodyPart;1258 XcmV0JunctionNetworkId: XcmV0JunctionNetworkId;1259 XcmV0MultiAsset: XcmV0MultiAsset;1260 XcmV0MultiLocation: XcmV0MultiLocation;1261 XcmV0Order: XcmV0Order;1262 XcmV0OriginKind: XcmV0OriginKind;1263 XcmV0Response: XcmV0Response;1264 XcmV0Xcm: XcmV0Xcm;1265 XcmV1: XcmV1;1266 XcmV1Junction: XcmV1Junction;1267 XcmV1MultiAsset: XcmV1MultiAsset;1268 XcmV1MultiassetAssetId: XcmV1MultiassetAssetId;1269 XcmV1MultiassetAssetInstance: XcmV1MultiassetAssetInstance;1270 XcmV1MultiassetFungibility: XcmV1MultiassetFungibility;1271 XcmV1MultiassetMultiAssetFilter: XcmV1MultiassetMultiAssetFilter;1272 XcmV1MultiassetMultiAssets: XcmV1MultiassetMultiAssets;1273 XcmV1MultiassetWildFungibility: XcmV1MultiassetWildFungibility;1274 XcmV1MultiassetWildMultiAsset: XcmV1MultiassetWildMultiAsset;1275 XcmV1MultiLocation: XcmV1MultiLocation;1276 XcmV1MultilocationJunctions: XcmV1MultilocationJunctions;1277 XcmV1Order: XcmV1Order;1278 XcmV1Response: XcmV1Response;1279 XcmV1Xcm: XcmV1Xcm;1280 XcmV2: XcmV2;1281 XcmV2Instruction: XcmV2Instruction;1282 XcmV2Response: XcmV2Response;1283 XcmV2TraitsError: XcmV2TraitsError;1284 XcmV2TraitsOutcome: XcmV2TraitsOutcome;1285 XcmV2WeightLimit: XcmV2WeightLimit;1286 XcmV2Xcm: XcmV2Xcm;1287 XcmVersion: XcmVersion;1288 XcmVersionedMultiAssets: XcmVersionedMultiAssets;1289 XcmVersionedMultiLocation: XcmVersionedMultiLocation;1290 XcmVersionedXcm: XcmVersionedXcm;1291 } // InterfaceTypes1292} // declare module1// Auto-generated via `yarn polkadot-types-from-defs`, do not edit2/* eslint-disable */34import type { CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmCall, CumulusPalletXcmError, CumulusPalletXcmEvent, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueInboundState, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesParachainInherentParachainInherentData, EthbloomBloom, EthereumBlock, EthereumHeader, EthereumLog, EthereumReceiptEip658ReceiptData, EthereumReceiptReceiptV3, EthereumTransactionAccessListItem, EthereumTransactionEip1559Transaction, EthereumTransactionEip2930Transaction, EthereumTransactionLegacyTransaction, EthereumTransactionTransactionAction, EthereumTransactionTransactionSignature, EthereumTransactionTransactionV2, EthereumTypesHashH64, EvmCoreErrorExitError, EvmCoreErrorExitFatal, EvmCoreErrorExitReason, EvmCoreErrorExitRevert, EvmCoreErrorExitSucceed, FpRpcTransactionStatus, FrameSupportPalletId, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchClass, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPays, FrameSupportWeightsPerDispatchClassU32, FrameSupportWeightsPerDispatchClassU64, FrameSupportWeightsPerDispatchClassWeightsPerClass, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, OpalRuntimeRuntime, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReleases, PalletBalancesReserveData, PalletCommonError, PalletCommonEvent, PalletEthereumCall, PalletEthereumError, PalletEthereumEvent, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmCall, PalletEvmCoderSubstrateError, PalletEvmContractHelpersError, PalletEvmContractHelpersSponsoringModeT, PalletEvmError, PalletEvmEvent, PalletEvmMigrationCall, PalletEvmMigrationError, PalletFungibleError, PalletInflationCall, PalletNonfungibleError, PalletNonfungibleItemData, PalletRefungibleError, PalletRefungibleItemData, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTemplateTransactionPaymentCall, PalletTemplateTransactionPaymentChargeTransactionPayment, PalletTimestampCall, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUniqueCall, PalletUniqueError, PalletUniqueRawEvent, PalletXcmCall, PalletXcmError, PalletXcmEvent, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV1AbridgedHostConfiguration, PolkadotPrimitivesV1AbridgedHrmpChannel, PolkadotPrimitivesV1PersistedValidationData, PolkadotPrimitivesV1UpgradeRestriction, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Signature, SpRuntimeArithmeticError, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpTrieStorageProof, SpVersionRuntimeVersion, UpDataStructsAccessMode, UpDataStructsCollection, UpDataStructsCollectionLimits, UpDataStructsCollectionMode, UpDataStructsCollectionStats, UpDataStructsCreateCollectionData, UpDataStructsCreateFungibleData, UpDataStructsCreateItemData, UpDataStructsCreateItemExData, UpDataStructsCreateNftData, UpDataStructsCreateNftExData, UpDataStructsCreateReFungibleData, UpDataStructsCreateRefungibleExData, UpDataStructsMetaUpdatePermission, UpDataStructsSchemaVersion, UpDataStructsSponsoringRateLimit, UpDataStructsSponsorshipState, XcmDoubleEncoded, XcmV0Junction, XcmV0JunctionBodyId, XcmV0JunctionBodyPart, XcmV0JunctionNetworkId, XcmV0MultiAsset, XcmV0MultiLocation, XcmV0Order, XcmV0OriginKind, XcmV0Response, XcmV0Xcm, XcmV1Junction, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetAssetId, XcmV1MultiassetAssetInstance, XcmV1MultiassetFungibility, XcmV1MultiassetMultiAssetFilter, XcmV1MultiassetMultiAssets, XcmV1MultiassetWildFungibility, XcmV1MultiassetWildMultiAsset, XcmV1MultilocationJunctions, XcmV1Order, XcmV1Response, XcmV1Xcm, XcmV2Instruction, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2WeightLimit, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from './unique';5import type { Data, StorageKey } from '@polkadot/types';6import type { BitVec, Bool, Bytes, I128, I16, I256, I32, I64, I8, Json, Null, Raw, Text, Type, U128, U16, U256, U32, U64, U8, USize, bool, i128, i16, i256, i32, i64, i8, u128, u16, u256, u32, u64, u8, usize } from '@polkadot/types-codec';7import type { AssetApproval, AssetApprovalKey, AssetBalance, AssetDestroyWitness, AssetDetails, AssetMetadata, TAssetBalance, TAssetDepositBalance } from '@polkadot/types/interfaces/assets';8import type { BlockAttestations, IncludedBlocks, MoreAttestations } from '@polkadot/types/interfaces/attestations';9import type { RawAuraPreDigest } from '@polkadot/types/interfaces/aura';10import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';11import type { UncleEntryItem } from '@polkadot/types/interfaces/authorship';12import type { AllowedSlots, BabeAuthorityWeight, BabeBlockWeight, BabeEpochConfiguration, BabeEquivocationProof, BabeWeight, EpochAuthorship, MaybeRandomness, MaybeVrf, NextConfigDescriptor, NextConfigDescriptorV1, Randomness, RawBabePreDigest, RawBabePreDigestCompat, RawBabePreDigestPrimary, RawBabePreDigestPrimaryTo159, RawBabePreDigestSecondaryPlain, RawBabePreDigestSecondaryTo159, RawBabePreDigestSecondaryVRF, RawBabePreDigestTo159, SlotNumber, VrfData, VrfOutput, VrfProof } from '@polkadot/types/interfaces/babe';13import type { AccountData, BalanceLock, BalanceLockTo212, BalanceStatus, Reasons, ReserveData, ReserveIdentifier, VestingSchedule, WithdrawReasons } from '@polkadot/types/interfaces/balances';14import type { BeefyCommitment, BeefyId, BeefyNextAuthoritySet, BeefyPayload, BeefySignedCommitment, MmrRootHash, ValidatorSetId } from '@polkadot/types/interfaces/beefy';15import type { BridgeMessageId, BridgedBlockHash, BridgedBlockNumber, BridgedHeader, CallOrigin, ChainId, DeliveredMessages, DispatchFeePayment, InboundLaneData, InboundRelayer, InitializationData, LaneId, MessageData, MessageKey, MessageNonce, MessagesDeliveryProofOf, MessagesProofOf, OperatingMode, OutboundLaneData, OutboundMessageFee, OutboundPayload, Parameter, RelayerId, UnrewardedRelayer, UnrewardedRelayersState } from '@polkadot/types/interfaces/bridges';16import type { BlockHash } from '@polkadot/types/interfaces/chain';17import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';18import type { StatementKind } from '@polkadot/types/interfaces/claims';19import type { CollectiveOrigin, MemberCount, ProposalIndex, Votes, VotesTo230 } from '@polkadot/types/interfaces/collective';20import type { AuthorityId, RawVRFOutput } from '@polkadot/types/interfaces/consensus';21import type { AliveContractInfo, CodeHash, CodeSource, CodeUploadRequest, CodeUploadResult, CodeUploadResultValue, ContractCallFlags, ContractCallRequest, ContractExecResult, ContractExecResultErr, ContractExecResultErrModule, ContractExecResultOk, ContractExecResultResult, ContractExecResultSuccessTo255, ContractExecResultSuccessTo260, ContractExecResultTo255, ContractExecResultTo260, ContractExecResultTo267, ContractInfo, ContractInstantiateResult, ContractInstantiateResultTo267, ContractInstantiateResultTo299, ContractReturnFlags, ContractStorageKey, DeletedContract, ExecReturnValue, Gas, HostFnWeights, HostFnWeightsTo264, InstantiateRequest, InstantiateRequestV1, InstantiateRequestV2, InstantiateReturnValue, InstantiateReturnValueOk, InstantiateReturnValueTo267, InstructionWeights, Limits, LimitsTo264, PrefabWasmModule, RentProjection, Schedule, ScheduleTo212, ScheduleTo258, ScheduleTo264, SeedOf, StorageDeposit, TombstoneContractInfo, TrieId } from '@polkadot/types/interfaces/contracts';22import type { ContractConstructorSpecLatest, ContractConstructorSpecV0, ContractConstructorSpecV1, ContractConstructorSpecV2, ContractConstructorSpecV3, ContractContractSpecV0, ContractContractSpecV1, ContractContractSpecV2, ContractContractSpecV3, ContractCryptoHasher, ContractDiscriminant, ContractDisplayName, ContractEventParamSpecLatest, ContractEventParamSpecV0, ContractEventParamSpecV2, ContractEventSpecLatest, ContractEventSpecV0, ContractEventSpecV1, ContractEventSpecV2, ContractLayoutArray, ContractLayoutCell, ContractLayoutEnum, ContractLayoutHash, ContractLayoutHashingStrategy, ContractLayoutKey, ContractLayoutStruct, ContractLayoutStructField, ContractMessageParamSpecLatest, ContractMessageParamSpecV0, ContractMessageParamSpecV2, ContractMessageSpecLatest, ContractMessageSpecV0, ContractMessageSpecV1, ContractMessageSpecV2, ContractMetadata, ContractMetadataLatest, ContractMetadataV0, ContractMetadataV1, ContractMetadataV2, ContractMetadataV3, ContractProject, ContractProjectContract, ContractProjectInfo, ContractProjectSource, ContractProjectV0, ContractSelector, ContractStorageLayout, ContractTypeSpec } from '@polkadot/types/interfaces/contractsAbi';23import type { FundIndex, FundInfo, LastContribution, TrieIndex } from '@polkadot/types/interfaces/crowdloan';24import type { ConfigData, MessageId, OverweightIndex, PageCounter, PageIndexData } from '@polkadot/types/interfaces/cumulus';25import type { AccountVote, AccountVoteSplit, AccountVoteStandard, Conviction, Delegations, PreimageStatus, PreimageStatusAvailable, PriorLock, PropIndex, Proposal, ProxyState, ReferendumIndex, ReferendumInfo, ReferendumInfoFinished, ReferendumInfoTo239, ReferendumStatus, Tally, Voting, VotingDelegating, VotingDirect, VotingDirectVote } from '@polkadot/types/interfaces/democracy';26import type { ApprovalFlag, DefunctVoter, Renouncing, SetIndex, Vote, VoteIndex, VoteThreshold, VoterInfo } from '@polkadot/types/interfaces/elections';27import type { CreatedBlock, ImportedAux } from '@polkadot/types/interfaces/engine';28import type { BlockV0, BlockV1, BlockV2, EIP1559Transaction, EIP2930Transaction, EthAccessList, EthAccessListItem, EthAccount, EthAddress, EthBlock, EthBloom, EthCallRequest, EthFilter, EthFilterAddress, EthFilterChanges, EthFilterTopic, EthFilterTopicEntry, EthFilterTopicInner, EthHeader, EthLog, EthReceipt, EthRichBlock, EthRichHeader, EthStorageProof, EthSubKind, EthSubParams, EthSubResult, EthSyncInfo, EthSyncStatus, EthTransaction, EthTransactionAction, EthTransactionCondition, EthTransactionRequest, EthTransactionSignature, EthTransactionStatus, EthWork, EthereumAccountId, EthereumAddress, EthereumLookupSource, EthereumSignature, LegacyTransaction, TransactionV0, TransactionV1, TransactionV2 } from '@polkadot/types/interfaces/eth';29import type { EvmAccount, EvmLog, EvmVicinity, ExitError, ExitFatal, ExitReason, ExitRevert, ExitSucceed } from '@polkadot/types/interfaces/evm';30import type { AnySignature, EcdsaSignature, Ed25519Signature, Era, Extrinsic, ExtrinsicEra, ExtrinsicPayload, ExtrinsicPayloadUnknown, ExtrinsicPayloadV4, ExtrinsicSignature, ExtrinsicSignatureV4, ExtrinsicUnknown, ExtrinsicV4, ImmortalEra, MortalEra, MultiSignature, Signature, SignerPayload, Sr25519Signature } from '@polkadot/types/interfaces/extrinsics';31import type { AssetOptions, Owner, PermissionLatest, PermissionVersions, PermissionsV1 } from '@polkadot/types/interfaces/genericAsset';32import type { ActiveGilt, ActiveGiltsTotal, ActiveIndex, GiltBid } from '@polkadot/types/interfaces/gilt';33import type { AuthorityIndex, AuthorityList, AuthoritySet, AuthoritySetChange, AuthoritySetChanges, AuthorityWeight, DelayKind, DelayKindBest, EncodedFinalityProofs, ForkTreePendingChange, ForkTreePendingChangeNode, GrandpaCommit, GrandpaEquivocation, GrandpaEquivocationProof, GrandpaEquivocationValue, GrandpaJustification, GrandpaPrecommit, GrandpaPrevote, GrandpaSignedPrecommit, JustificationNotification, KeyOwnerProof, NextAuthority, PendingChange, PendingPause, PendingResume, Precommits, Prevotes, ReportedRoundStates, RoundState, SetId, StoredPendingChange, StoredState } from '@polkadot/types/interfaces/grandpa';34import type { IdentityFields, IdentityInfo, IdentityInfoAdditional, IdentityInfoTo198, IdentityJudgement, RegistrarIndex, RegistrarInfo, Registration, RegistrationJudgement, RegistrationTo198 } from '@polkadot/types/interfaces/identity';35import type { AuthIndex, AuthoritySignature, Heartbeat, HeartbeatTo244, OpaqueMultiaddr, OpaqueNetworkState, OpaquePeerId } from '@polkadot/types/interfaces/imOnline';36import type { CallIndex, LotteryConfig } from '@polkadot/types/interfaces/lottery';37import type { ErrorMetadataLatest, ErrorMetadataV10, ErrorMetadataV11, ErrorMetadataV12, ErrorMetadataV13, ErrorMetadataV14, ErrorMetadataV9, EventMetadataLatest, EventMetadataV10, EventMetadataV11, EventMetadataV12, EventMetadataV13, EventMetadataV14, EventMetadataV9, ExtrinsicMetadataLatest, ExtrinsicMetadataV11, ExtrinsicMetadataV12, ExtrinsicMetadataV13, ExtrinsicMetadataV14, FunctionArgumentMetadataLatest, FunctionArgumentMetadataV10, FunctionArgumentMetadataV11, FunctionArgumentMetadataV12, FunctionArgumentMetadataV13, FunctionArgumentMetadataV14, FunctionArgumentMetadataV9, FunctionMetadataLatest, FunctionMetadataV10, FunctionMetadataV11, FunctionMetadataV12, FunctionMetadataV13, FunctionMetadataV14, FunctionMetadataV9, MetadataAll, MetadataLatest, MetadataV10, MetadataV11, MetadataV12, MetadataV13, MetadataV14, MetadataV9, ModuleConstantMetadataV10, ModuleConstantMetadataV11, ModuleConstantMetadataV12, ModuleConstantMetadataV13, ModuleConstantMetadataV9, ModuleMetadataV10, ModuleMetadataV11, ModuleMetadataV12, ModuleMetadataV13, ModuleMetadataV9, PalletCallMetadataLatest, PalletCallMetadataV14, PalletConstantMetadataLatest, PalletConstantMetadataV14, PalletErrorMetadataLatest, PalletErrorMetadataV14, PalletEventMetadataLatest, PalletEventMetadataV14, PalletMetadataLatest, PalletMetadataV14, PalletStorageMetadataLatest, PalletStorageMetadataV14, PortableType, PortableTypeV14, SignedExtensionMetadataLatest, SignedExtensionMetadataV14, StorageEntryMetadataLatest, StorageEntryMetadataV10, StorageEntryMetadataV11, StorageEntryMetadataV12, StorageEntryMetadataV13, StorageEntryMetadataV14, StorageEntryMetadataV9, StorageEntryModifierLatest, StorageEntryModifierV10, StorageEntryModifierV11, StorageEntryModifierV12, StorageEntryModifierV13, StorageEntryModifierV14, StorageEntryModifierV9, StorageEntryTypeLatest, StorageEntryTypeV10, StorageEntryTypeV11, StorageEntryTypeV12, StorageEntryTypeV13, StorageEntryTypeV14, StorageEntryTypeV9, StorageHasher, StorageHasherV10, StorageHasherV11, StorageHasherV12, StorageHasherV13, StorageHasherV14, StorageHasherV9, StorageMetadataV10, StorageMetadataV11, StorageMetadataV12, StorageMetadataV13, StorageMetadataV9 } from '@polkadot/types/interfaces/metadata';38import type { MmrLeafProof } from '@polkadot/types/interfaces/mmr';39import type { StorageKind } from '@polkadot/types/interfaces/offchain';40import type { DeferredOffenceOf, Kind, OffenceDetails, Offender, OpaqueTimeSlot, ReportIdOf, Reporter } from '@polkadot/types/interfaces/offences';41import type { AbridgedCandidateReceipt, AbridgedHostConfiguration, AbridgedHrmpChannel, AssignmentId, AssignmentKind, AttestedCandidate, AuctionIndex, AuthorityDiscoveryId, AvailabilityBitfield, AvailabilityBitfieldRecord, BackedCandidate, Bidder, BufferedSessionChange, CandidateCommitments, CandidateDescriptor, CandidateHash, CandidateInfo, CandidatePendingAvailability, CandidateReceipt, CollatorId, CollatorSignature, CommittedCandidateReceipt, CoreAssignment, CoreIndex, CoreOccupied, DisputeLocation, DisputeResult, DisputeState, DisputeStatement, DisputeStatementSet, DoubleVoteReport, DownwardMessage, ExplicitDisputeStatement, GlobalValidationData, GlobalValidationSchedule, GroupIndex, HeadData, HostConfiguration, HrmpChannel, HrmpChannelId, HrmpOpenChannelRequest, InboundDownwardMessage, InboundHrmpMessage, InboundHrmpMessages, IncomingParachain, IncomingParachainDeploy, IncomingParachainFixed, InvalidDisputeStatementKind, LeasePeriod, LeasePeriodOf, LocalValidationData, MessageIngestionType, MessageQueueChain, MessagingStateSnapshot, MessagingStateSnapshotEgressEntry, MultiDisputeStatementSet, NewBidder, OutboundHrmpMessage, ParaGenesisArgs, ParaId, ParaInfo, ParaLifecycle, ParaPastCodeMeta, ParaScheduling, ParaValidatorIndex, ParachainDispatchOrigin, ParachainInherentData, ParachainProposal, ParachainsInherentData, ParathreadClaim, ParathreadClaimQueue, ParathreadEntry, PersistedValidationData, QueuedParathread, RegisteredParachainInfo, RelayBlockNumber, RelayChainBlockNumber, RelayChainHash, RelayHash, Remark, ReplacementTimes, Retriable, Scheduling, ServiceQuality, SessionInfo, SessionInfoValidatorGroup, SignedAvailabilityBitfield, SignedAvailabilityBitfields, SigningContext, SlotRange, SlotRange10, Statement, SubId, SystemInherentData, TransientValidationData, UpgradeGoAhead, UpgradeRestriction, UpwardMessage, ValidDisputeStatementKind, ValidationCode, ValidationCodeHash, ValidationData, ValidationDataType, ValidationFunctionParams, ValidatorSignature, ValidityAttestation, VecInboundHrmpMessage, WinnersData, WinnersData10, WinnersDataTuple, WinnersDataTuple10, WinningData, WinningData10, WinningDataEntry } from '@polkadot/types/interfaces/parachains';42import type { FeeDetails, InclusionFee, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';43import type { Approvals } from '@polkadot/types/interfaces/poll';44import type { ProxyAnnouncement, ProxyDefinition, ProxyType } from '@polkadot/types/interfaces/proxy';45import type { AccountStatus, AccountValidity } from '@polkadot/types/interfaces/purchase';46import type { ActiveRecovery, RecoveryConfig } from '@polkadot/types/interfaces/recovery';47import type { RpcMethods } from '@polkadot/types/interfaces/rpc';48import type { AccountId, AccountId20, AccountId32, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, BlockNumberFor, BlockNumberOf, Call, CallHash, CallHashOf, ChangesTrieConfiguration, ChangesTrieSignal, CodecHash, Consensus, ConsensusEngineId, CrateVersion, Digest, DigestItem, EncodedJustification, ExtrinsicsWeight, Fixed128, Fixed64, FixedI128, FixedI64, FixedU128, FixedU64, H1024, H128, H160, H2048, H256, H32, H512, H64, Hash, Header, HeaderPartial, I32F32, Index, IndicesLookupSource, Justification, Justifications, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, MultiAddress, MultiSigner, OpaqueCall, Origin, OriginCaller, PalletId, PalletVersion, PalletsOrigin, Pays, PerU16, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, Releases, RuntimeDbWeight, Seal, SealV0, SignedBlock, SignedBlockWithJustification, SignedBlockWithJustifications, Slot, StorageData, StorageProof, TransactionInfo, TransactionPriority, TransactionStorageProof, U32F32, ValidatorId, ValidatorIdOf, Weight, WeightMultiplier } from '@polkadot/types/interfaces/runtime';49import type { Si0Field, Si0LookupTypeId, Si0Path, Si0Type, Si0TypeDef, Si0TypeDefArray, Si0TypeDefBitSequence, Si0TypeDefCompact, Si0TypeDefComposite, Si0TypeDefPhantom, Si0TypeDefPrimitive, Si0TypeDefSequence, Si0TypeDefTuple, Si0TypeDefVariant, Si0TypeParameter, Si0Variant, Si1Field, Si1LookupTypeId, Si1Path, Si1Type, Si1TypeDef, Si1TypeDefArray, Si1TypeDefBitSequence, Si1TypeDefCompact, Si1TypeDefComposite, Si1TypeDefPrimitive, Si1TypeDefSequence, Si1TypeDefTuple, Si1TypeDefVariant, Si1TypeParameter, Si1Variant, SiField, SiLookupTypeId, SiPath, SiType, SiTypeDef, SiTypeDefArray, SiTypeDefBitSequence, SiTypeDefCompact, SiTypeDefComposite, SiTypeDefPrimitive, SiTypeDefSequence, SiTypeDefTuple, SiTypeDefVariant, SiTypeParameter, SiVariant } from '@polkadot/types/interfaces/scaleInfo';50import type { Period, Priority, SchedulePeriod, SchedulePriority, Scheduled, ScheduledTo254, TaskAddress } from '@polkadot/types/interfaces/scheduler';51import type { BeefyKey, FullIdentification, IdentificationTuple, Keys, MembershipProof, SessionIndex, SessionKeys1, SessionKeys10, SessionKeys10B, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6, SessionKeys6B, SessionKeys7, SessionKeys7B, SessionKeys8, SessionKeys8B, SessionKeys9, SessionKeys9B, ValidatorCount } from '@polkadot/types/interfaces/session';52import type { Bid, BidKind, SocietyJudgement, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society';53import type { ActiveEraInfo, CompactAssignments, CompactAssignmentsTo257, CompactAssignmentsTo265, CompactAssignmentsWith16, CompactAssignmentsWith24, CompactScore, CompactScoreCompact, ElectionCompute, ElectionPhase, ElectionResult, ElectionScore, ElectionSize, ElectionStatus, EraIndex, EraPoints, EraRewardPoints, EraRewards, Exposure, ExtendedBalance, Forcing, IndividualExposure, KeyType, MomentOf, Nominations, NominatorIndex, NominatorIndexCompact, OffchainAccuracy, OffchainAccuracyCompact, PhragmenScore, Points, RawSolution, RawSolutionTo265, RawSolutionWith16, RawSolutionWith24, ReadySolution, RewardDestination, RewardPoint, RoundSnapshot, SeatHolder, SignedSubmission, SignedSubmissionOf, SignedSubmissionTo276, SlashJournalEntry, SlashingSpans, SlashingSpansTo204, SolutionOrSnapshotSize, SolutionSupport, SolutionSupports, SpanIndex, SpanRecord, StakingLedger, StakingLedgerTo223, StakingLedgerTo240, SubmissionIndicesOf, Supports, UnappliedSlash, UnappliedSlashOther, UnlockChunk, ValidatorIndex, ValidatorIndexCompact, ValidatorPrefs, ValidatorPrefsTo145, ValidatorPrefsTo196, ValidatorPrefsWithBlocked, ValidatorPrefsWithCommission, VoteWeight, Voter } from '@polkadot/types/interfaces/staking';54import type { ApiId, BlockTrace, BlockTraceEvent, BlockTraceEventData, BlockTraceSpan, KeyValueOption, ReadProof, RuntimeVersion, RuntimeVersionApi, RuntimeVersionPartial, SpecVersion, StorageChangeSet, TraceBlockResponse, TraceError } from '@polkadot/types/interfaces/state';55import type { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support';56import type { AccountInfo, AccountInfoWithDualRefCount, AccountInfoWithProviders, AccountInfoWithRefCount, AccountInfoWithRefCountU8, AccountInfoWithTripleRefCount, ApplyExtrinsicResult, ArithmeticError, BlockLength, BlockWeights, ChainProperties, ChainType, ConsumedWeight, DigestOf, DispatchClass, DispatchError, DispatchErrorModule, DispatchErrorTo198, DispatchInfo, DispatchInfoTo190, DispatchInfoTo244, DispatchOutcome, DispatchResult, DispatchResultOf, DispatchResultTo198, Event, EventId, EventIndex, EventRecord, Health, InvalidTransaction, Key, LastRuntimeUpgradeInfo, NetworkState, NetworkStatePeerset, NetworkStatePeersetInfo, NodeRole, NotConnectedPeer, Peer, PeerEndpoint, PeerEndpointAddr, PeerInfo, PeerPing, PerDispatchClassU32, PerDispatchClassWeight, PerDispatchClassWeightsPerClass, Phase, RawOrigin, RefCount, RefCountTo259, SyncState, SystemOrigin, TokenError, TransactionValidityError, UnknownTransaction, WeightPerClass } from '@polkadot/types/interfaces/system';57import type { Bounty, BountyIndex, BountyStatus, BountyStatusActive, BountyStatusCuratorProposed, BountyStatusPendingPayout, OpenTip, OpenTipFinderTo225, OpenTipTip, OpenTipTo225, TreasuryProposal } from '@polkadot/types/interfaces/treasury';58import type { Multiplier } from '@polkadot/types/interfaces/txpayment';59import type { ClassDetails, ClassId, ClassMetadata, DepositBalance, DepositBalanceOf, DestroyWitness, InstanceDetails, InstanceId, InstanceMetadata } from '@polkadot/types/interfaces/uniques';60import type { Multisig, Timepoint } from '@polkadot/types/interfaces/utility';61import type { VestingInfo } from '@polkadot/types/interfaces/vesting';62import type { AssetInstance, AssetInstanceV0, AssetInstanceV1, AssetInstanceV2, BodyId, BodyPart, DoubleEncodedCall, Fungibility, FungibilityV0, FungibilityV1, FungibilityV2, InboundStatus, InstructionV2, InteriorMultiLocation, Junction, JunctionV0, JunctionV1, JunctionV2, Junctions, JunctionsV1, JunctionsV2, MultiAsset, MultiAssetFilter, MultiAssetFilterV1, MultiAssetFilterV2, MultiAssetV0, MultiAssetV1, MultiAssetV2, MultiAssets, MultiAssetsV1, MultiAssetsV2, MultiLocation, MultiLocationV0, MultiLocationV1, MultiLocationV2, NetworkId, OriginKindV0, OriginKindV1, OriginKindV2, OutboundStatus, Outcome, QueryId, QueryStatus, QueueConfigData, Response, ResponseV0, ResponseV1, ResponseV2, ResponseV2Error, ResponseV2Result, VersionMigrationStage, VersionedMultiAsset, VersionedMultiAssets, VersionedMultiLocation, VersionedResponse, VersionedXcm, WeightLimitV2, WildFungibility, WildFungibilityV0, WildFungibilityV1, WildFungibilityV2, WildMultiAsset, WildMultiAssetV1, WildMultiAssetV2, Xcm, XcmAssetId, XcmError, XcmErrorV0, XcmErrorV1, XcmErrorV2, XcmOrder, XcmOrderV0, XcmOrderV1, XcmOrderV2, XcmOrigin, XcmOriginKind, XcmV0, XcmV1, XcmV2, XcmVersion, XcmpMessageFormat } from '@polkadot/types/interfaces/xcm';6364declare module '@polkadot/types/types/registry' {65 export interface InterfaceTypes {66 AbridgedCandidateReceipt: AbridgedCandidateReceipt;67 AbridgedHostConfiguration: AbridgedHostConfiguration;68 AbridgedHrmpChannel: AbridgedHrmpChannel;69 AccountData: AccountData;70 AccountId: AccountId;71 AccountId20: AccountId20;72 AccountId32: AccountId32;73 AccountIdOf: AccountIdOf;74 AccountIndex: AccountIndex;75 AccountInfo: AccountInfo;76 AccountInfoWithDualRefCount: AccountInfoWithDualRefCount;77 AccountInfoWithProviders: AccountInfoWithProviders;78 AccountInfoWithRefCount: AccountInfoWithRefCount;79 AccountInfoWithRefCountU8: AccountInfoWithRefCountU8;80 AccountInfoWithTripleRefCount: AccountInfoWithTripleRefCount;81 AccountStatus: AccountStatus;82 AccountValidity: AccountValidity;83 AccountVote: AccountVote;84 AccountVoteSplit: AccountVoteSplit;85 AccountVoteStandard: AccountVoteStandard;86 ActiveEraInfo: ActiveEraInfo;87 ActiveGilt: ActiveGilt;88 ActiveGiltsTotal: ActiveGiltsTotal;89 ActiveIndex: ActiveIndex;90 ActiveRecovery: ActiveRecovery;91 Address: Address;92 AliveContractInfo: AliveContractInfo;93 AllowedSlots: AllowedSlots;94 AnySignature: AnySignature;95 ApiId: ApiId;96 ApplyExtrinsicResult: ApplyExtrinsicResult;97 ApprovalFlag: ApprovalFlag;98 Approvals: Approvals;99 ArithmeticError: ArithmeticError;100 AssetApproval: AssetApproval;101 AssetApprovalKey: AssetApprovalKey;102 AssetBalance: AssetBalance;103 AssetDestroyWitness: AssetDestroyWitness;104 AssetDetails: AssetDetails;105 AssetId: AssetId;106 AssetInstance: AssetInstance;107 AssetInstanceV0: AssetInstanceV0;108 AssetInstanceV1: AssetInstanceV1;109 AssetInstanceV2: AssetInstanceV2;110 AssetMetadata: AssetMetadata;111 AssetOptions: AssetOptions;112 AssignmentId: AssignmentId;113 AssignmentKind: AssignmentKind;114 AttestedCandidate: AttestedCandidate;115 AuctionIndex: AuctionIndex;116 AuthIndex: AuthIndex;117 AuthorityDiscoveryId: AuthorityDiscoveryId;118 AuthorityId: AuthorityId;119 AuthorityIndex: AuthorityIndex;120 AuthorityList: AuthorityList;121 AuthoritySet: AuthoritySet;122 AuthoritySetChange: AuthoritySetChange;123 AuthoritySetChanges: AuthoritySetChanges;124 AuthoritySignature: AuthoritySignature;125 AuthorityWeight: AuthorityWeight;126 AvailabilityBitfield: AvailabilityBitfield;127 AvailabilityBitfieldRecord: AvailabilityBitfieldRecord;128 BabeAuthorityWeight: BabeAuthorityWeight;129 BabeBlockWeight: BabeBlockWeight;130 BabeEpochConfiguration: BabeEpochConfiguration;131 BabeEquivocationProof: BabeEquivocationProof;132 BabeWeight: BabeWeight;133 BackedCandidate: BackedCandidate;134 Balance: Balance;135 BalanceLock: BalanceLock;136 BalanceLockTo212: BalanceLockTo212;137 BalanceOf: BalanceOf;138 BalanceStatus: BalanceStatus;139 BeefyCommitment: BeefyCommitment;140 BeefyId: BeefyId;141 BeefyKey: BeefyKey;142 BeefyNextAuthoritySet: BeefyNextAuthoritySet;143 BeefyPayload: BeefyPayload;144 BeefySignedCommitment: BeefySignedCommitment;145 Bid: Bid;146 Bidder: Bidder;147 BidKind: BidKind;148 BitVec: BitVec;149 Block: Block;150 BlockAttestations: BlockAttestations;151 BlockHash: BlockHash;152 BlockLength: BlockLength;153 BlockNumber: BlockNumber;154 BlockNumberFor: BlockNumberFor;155 BlockNumberOf: BlockNumberOf;156 BlockTrace: BlockTrace;157 BlockTraceEvent: BlockTraceEvent;158 BlockTraceEventData: BlockTraceEventData;159 BlockTraceSpan: BlockTraceSpan;160 BlockV0: BlockV0;161 BlockV1: BlockV1;162 BlockV2: BlockV2;163 BlockWeights: BlockWeights;164 BodyId: BodyId;165 BodyPart: BodyPart;166 bool: bool;167 Bool: Bool;168 Bounty: Bounty;169 BountyIndex: BountyIndex;170 BountyStatus: BountyStatus;171 BountyStatusActive: BountyStatusActive;172 BountyStatusCuratorProposed: BountyStatusCuratorProposed;173 BountyStatusPendingPayout: BountyStatusPendingPayout;174 BridgedBlockHash: BridgedBlockHash;175 BridgedBlockNumber: BridgedBlockNumber;176 BridgedHeader: BridgedHeader;177 BridgeMessageId: BridgeMessageId;178 BufferedSessionChange: BufferedSessionChange;179 Bytes: Bytes;180 Call: Call;181 CallHash: CallHash;182 CallHashOf: CallHashOf;183 CallIndex: CallIndex;184 CallOrigin: CallOrigin;185 CandidateCommitments: CandidateCommitments;186 CandidateDescriptor: CandidateDescriptor;187 CandidateHash: CandidateHash;188 CandidateInfo: CandidateInfo;189 CandidatePendingAvailability: CandidatePendingAvailability;190 CandidateReceipt: CandidateReceipt;191 ChainId: ChainId;192 ChainProperties: ChainProperties;193 ChainType: ChainType;194 ChangesTrieConfiguration: ChangesTrieConfiguration;195 ChangesTrieSignal: ChangesTrieSignal;196 ClassDetails: ClassDetails;197 ClassId: ClassId;198 ClassMetadata: ClassMetadata;199 CodecHash: CodecHash;200 CodeHash: CodeHash;201 CodeSource: CodeSource;202 CodeUploadRequest: CodeUploadRequest;203 CodeUploadResult: CodeUploadResult;204 CodeUploadResultValue: CodeUploadResultValue;205 CollatorId: CollatorId;206 CollatorSignature: CollatorSignature;207 CollectiveOrigin: CollectiveOrigin;208 CommittedCandidateReceipt: CommittedCandidateReceipt;209 CompactAssignments: CompactAssignments;210 CompactAssignmentsTo257: CompactAssignmentsTo257;211 CompactAssignmentsTo265: CompactAssignmentsTo265;212 CompactAssignmentsWith16: CompactAssignmentsWith16;213 CompactAssignmentsWith24: CompactAssignmentsWith24;214 CompactScore: CompactScore;215 CompactScoreCompact: CompactScoreCompact;216 ConfigData: ConfigData;217 Consensus: Consensus;218 ConsensusEngineId: ConsensusEngineId;219 ConsumedWeight: ConsumedWeight;220 ContractCallFlags: ContractCallFlags;221 ContractCallRequest: ContractCallRequest;222 ContractConstructorSpecLatest: ContractConstructorSpecLatest;223 ContractConstructorSpecV0: ContractConstructorSpecV0;224 ContractConstructorSpecV1: ContractConstructorSpecV1;225 ContractConstructorSpecV2: ContractConstructorSpecV2;226 ContractConstructorSpecV3: ContractConstructorSpecV3;227 ContractContractSpecV0: ContractContractSpecV0;228 ContractContractSpecV1: ContractContractSpecV1;229 ContractContractSpecV2: ContractContractSpecV2;230 ContractContractSpecV3: ContractContractSpecV3;231 ContractCryptoHasher: ContractCryptoHasher;232 ContractDiscriminant: ContractDiscriminant;233 ContractDisplayName: ContractDisplayName;234 ContractEventParamSpecLatest: ContractEventParamSpecLatest;235 ContractEventParamSpecV0: ContractEventParamSpecV0;236 ContractEventParamSpecV2: ContractEventParamSpecV2;237 ContractEventSpecLatest: ContractEventSpecLatest;238 ContractEventSpecV0: ContractEventSpecV0;239 ContractEventSpecV1: ContractEventSpecV1;240 ContractEventSpecV2: ContractEventSpecV2;241 ContractExecResult: ContractExecResult;242 ContractExecResultErr: ContractExecResultErr;243 ContractExecResultErrModule: ContractExecResultErrModule;244 ContractExecResultOk: ContractExecResultOk;245 ContractExecResultResult: ContractExecResultResult;246 ContractExecResultSuccessTo255: ContractExecResultSuccessTo255;247 ContractExecResultSuccessTo260: ContractExecResultSuccessTo260;248 ContractExecResultTo255: ContractExecResultTo255;249 ContractExecResultTo260: ContractExecResultTo260;250 ContractExecResultTo267: ContractExecResultTo267;251 ContractInfo: ContractInfo;252 ContractInstantiateResult: ContractInstantiateResult;253 ContractInstantiateResultTo267: ContractInstantiateResultTo267;254 ContractInstantiateResultTo299: ContractInstantiateResultTo299;255 ContractLayoutArray: ContractLayoutArray;256 ContractLayoutCell: ContractLayoutCell;257 ContractLayoutEnum: ContractLayoutEnum;258 ContractLayoutHash: ContractLayoutHash;259 ContractLayoutHashingStrategy: ContractLayoutHashingStrategy;260 ContractLayoutKey: ContractLayoutKey;261 ContractLayoutStruct: ContractLayoutStruct;262 ContractLayoutStructField: ContractLayoutStructField;263 ContractMessageParamSpecLatest: ContractMessageParamSpecLatest;264 ContractMessageParamSpecV0: ContractMessageParamSpecV0;265 ContractMessageParamSpecV2: ContractMessageParamSpecV2;266 ContractMessageSpecLatest: ContractMessageSpecLatest;267 ContractMessageSpecV0: ContractMessageSpecV0;268 ContractMessageSpecV1: ContractMessageSpecV1;269 ContractMessageSpecV2: ContractMessageSpecV2;270 ContractMetadata: ContractMetadata;271 ContractMetadataLatest: ContractMetadataLatest;272 ContractMetadataV0: ContractMetadataV0;273 ContractMetadataV1: ContractMetadataV1;274 ContractMetadataV2: ContractMetadataV2;275 ContractMetadataV3: ContractMetadataV3;276 ContractProject: ContractProject;277 ContractProjectContract: ContractProjectContract;278 ContractProjectInfo: ContractProjectInfo;279 ContractProjectSource: ContractProjectSource;280 ContractProjectV0: ContractProjectV0;281 ContractReturnFlags: ContractReturnFlags;282 ContractSelector: ContractSelector;283 ContractStorageKey: ContractStorageKey;284 ContractStorageLayout: ContractStorageLayout;285 ContractTypeSpec: ContractTypeSpec;286 Conviction: Conviction;287 CoreAssignment: CoreAssignment;288 CoreIndex: CoreIndex;289 CoreOccupied: CoreOccupied;290 CrateVersion: CrateVersion;291 CreatedBlock: CreatedBlock;292 CumulusPalletDmpQueueCall: CumulusPalletDmpQueueCall;293 CumulusPalletDmpQueueConfigData: CumulusPalletDmpQueueConfigData;294 CumulusPalletDmpQueueError: CumulusPalletDmpQueueError;295 CumulusPalletDmpQueueEvent: CumulusPalletDmpQueueEvent;296 CumulusPalletDmpQueuePageIndexData: CumulusPalletDmpQueuePageIndexData;297 CumulusPalletParachainSystemCall: CumulusPalletParachainSystemCall;298 CumulusPalletParachainSystemError: CumulusPalletParachainSystemError;299 CumulusPalletParachainSystemEvent: CumulusPalletParachainSystemEvent;300 CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot: CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot;301 CumulusPalletXcmCall: CumulusPalletXcmCall;302 CumulusPalletXcmError: CumulusPalletXcmError;303 CumulusPalletXcmEvent: CumulusPalletXcmEvent;304 CumulusPalletXcmpQueueCall: CumulusPalletXcmpQueueCall;305 CumulusPalletXcmpQueueError: CumulusPalletXcmpQueueError;306 CumulusPalletXcmpQueueEvent: CumulusPalletXcmpQueueEvent;307 CumulusPalletXcmpQueueInboundChannelDetails: CumulusPalletXcmpQueueInboundChannelDetails;308 CumulusPalletXcmpQueueInboundState: CumulusPalletXcmpQueueInboundState;309 CumulusPalletXcmpQueueOutboundChannelDetails: CumulusPalletXcmpQueueOutboundChannelDetails;310 CumulusPalletXcmpQueueOutboundState: CumulusPalletXcmpQueueOutboundState;311 CumulusPalletXcmpQueueQueueConfigData: CumulusPalletXcmpQueueQueueConfigData;312 CumulusPrimitivesParachainInherentParachainInherentData: CumulusPrimitivesParachainInherentParachainInherentData;313 Data: Data;314 DeferredOffenceOf: DeferredOffenceOf;315 DefunctVoter: DefunctVoter;316 DelayKind: DelayKind;317 DelayKindBest: DelayKindBest;318 Delegations: Delegations;319 DeletedContract: DeletedContract;320 DeliveredMessages: DeliveredMessages;321 DepositBalance: DepositBalance;322 DepositBalanceOf: DepositBalanceOf;323 DestroyWitness: DestroyWitness;324 Digest: Digest;325 DigestItem: DigestItem;326 DigestOf: DigestOf;327 DispatchClass: DispatchClass;328 DispatchError: DispatchError;329 DispatchErrorModule: DispatchErrorModule;330 DispatchErrorTo198: DispatchErrorTo198;331 DispatchFeePayment: DispatchFeePayment;332 DispatchInfo: DispatchInfo;333 DispatchInfoTo190: DispatchInfoTo190;334 DispatchInfoTo244: DispatchInfoTo244;335 DispatchOutcome: DispatchOutcome;336 DispatchResult: DispatchResult;337 DispatchResultOf: DispatchResultOf;338 DispatchResultTo198: DispatchResultTo198;339 DisputeLocation: DisputeLocation;340 DisputeResult: DisputeResult;341 DisputeState: DisputeState;342 DisputeStatement: DisputeStatement;343 DisputeStatementSet: DisputeStatementSet;344 DoubleEncodedCall: DoubleEncodedCall;345 DoubleVoteReport: DoubleVoteReport;346 DownwardMessage: DownwardMessage;347 EcdsaSignature: EcdsaSignature;348 Ed25519Signature: Ed25519Signature;349 EIP1559Transaction: EIP1559Transaction;350 EIP2930Transaction: EIP2930Transaction;351 ElectionCompute: ElectionCompute;352 ElectionPhase: ElectionPhase;353 ElectionResult: ElectionResult;354 ElectionScore: ElectionScore;355 ElectionSize: ElectionSize;356 ElectionStatus: ElectionStatus;357 EncodedFinalityProofs: EncodedFinalityProofs;358 EncodedJustification: EncodedJustification;359 EpochAuthorship: EpochAuthorship;360 Era: Era;361 EraIndex: EraIndex;362 EraPoints: EraPoints;363 EraRewardPoints: EraRewardPoints;364 EraRewards: EraRewards;365 ErrorMetadataLatest: ErrorMetadataLatest;366 ErrorMetadataV10: ErrorMetadataV10;367 ErrorMetadataV11: ErrorMetadataV11;368 ErrorMetadataV12: ErrorMetadataV12;369 ErrorMetadataV13: ErrorMetadataV13;370 ErrorMetadataV14: ErrorMetadataV14;371 ErrorMetadataV9: ErrorMetadataV9;372 EthAccessList: EthAccessList;373 EthAccessListItem: EthAccessListItem;374 EthAccount: EthAccount;375 EthAddress: EthAddress;376 EthBlock: EthBlock;377 EthBloom: EthBloom;378 EthbloomBloom: EthbloomBloom;379 EthCallRequest: EthCallRequest;380 EthereumAccountId: EthereumAccountId;381 EthereumAddress: EthereumAddress;382 EthereumBlock: EthereumBlock;383 EthereumHeader: EthereumHeader;384 EthereumLog: EthereumLog;385 EthereumLookupSource: EthereumLookupSource;386 EthereumReceiptEip658ReceiptData: EthereumReceiptEip658ReceiptData;387 EthereumReceiptReceiptV3: EthereumReceiptReceiptV3;388 EthereumSignature: EthereumSignature;389 EthereumTransactionAccessListItem: EthereumTransactionAccessListItem;390 EthereumTransactionEip1559Transaction: EthereumTransactionEip1559Transaction;391 EthereumTransactionEip2930Transaction: EthereumTransactionEip2930Transaction;392 EthereumTransactionLegacyTransaction: EthereumTransactionLegacyTransaction;393 EthereumTransactionTransactionAction: EthereumTransactionTransactionAction;394 EthereumTransactionTransactionSignature: EthereumTransactionTransactionSignature;395 EthereumTransactionTransactionV2: EthereumTransactionTransactionV2;396 EthereumTypesHashH64: EthereumTypesHashH64;397 EthFilter: EthFilter;398 EthFilterAddress: EthFilterAddress;399 EthFilterChanges: EthFilterChanges;400 EthFilterTopic: EthFilterTopic;401 EthFilterTopicEntry: EthFilterTopicEntry;402 EthFilterTopicInner: EthFilterTopicInner;403 EthHeader: EthHeader;404 EthLog: EthLog;405 EthReceipt: EthReceipt;406 EthRichBlock: EthRichBlock;407 EthRichHeader: EthRichHeader;408 EthStorageProof: EthStorageProof;409 EthSubKind: EthSubKind;410 EthSubParams: EthSubParams;411 EthSubResult: EthSubResult;412 EthSyncInfo: EthSyncInfo;413 EthSyncStatus: EthSyncStatus;414 EthTransaction: EthTransaction;415 EthTransactionAction: EthTransactionAction;416 EthTransactionCondition: EthTransactionCondition;417 EthTransactionRequest: EthTransactionRequest;418 EthTransactionSignature: EthTransactionSignature;419 EthTransactionStatus: EthTransactionStatus;420 EthWork: EthWork;421 Event: Event;422 EventId: EventId;423 EventIndex: EventIndex;424 EventMetadataLatest: EventMetadataLatest;425 EventMetadataV10: EventMetadataV10;426 EventMetadataV11: EventMetadataV11;427 EventMetadataV12: EventMetadataV12;428 EventMetadataV13: EventMetadataV13;429 EventMetadataV14: EventMetadataV14;430 EventMetadataV9: EventMetadataV9;431 EventRecord: EventRecord;432 EvmAccount: EvmAccount;433 EvmCoreErrorExitError: EvmCoreErrorExitError;434 EvmCoreErrorExitFatal: EvmCoreErrorExitFatal;435 EvmCoreErrorExitReason: EvmCoreErrorExitReason;436 EvmCoreErrorExitRevert: EvmCoreErrorExitRevert;437 EvmCoreErrorExitSucceed: EvmCoreErrorExitSucceed;438 EvmLog: EvmLog;439 EvmVicinity: EvmVicinity;440 ExecReturnValue: ExecReturnValue;441 ExitError: ExitError;442 ExitFatal: ExitFatal;443 ExitReason: ExitReason;444 ExitRevert: ExitRevert;445 ExitSucceed: ExitSucceed;446 ExplicitDisputeStatement: ExplicitDisputeStatement;447 Exposure: Exposure;448 ExtendedBalance: ExtendedBalance;449 Extrinsic: Extrinsic;450 ExtrinsicEra: ExtrinsicEra;451 ExtrinsicMetadataLatest: ExtrinsicMetadataLatest;452 ExtrinsicMetadataV11: ExtrinsicMetadataV11;453 ExtrinsicMetadataV12: ExtrinsicMetadataV12;454 ExtrinsicMetadataV13: ExtrinsicMetadataV13;455 ExtrinsicMetadataV14: ExtrinsicMetadataV14;456 ExtrinsicOrHash: ExtrinsicOrHash;457 ExtrinsicPayload: ExtrinsicPayload;458 ExtrinsicPayloadUnknown: ExtrinsicPayloadUnknown;459 ExtrinsicPayloadV4: ExtrinsicPayloadV4;460 ExtrinsicSignature: ExtrinsicSignature;461 ExtrinsicSignatureV4: ExtrinsicSignatureV4;462 ExtrinsicStatus: ExtrinsicStatus;463 ExtrinsicsWeight: ExtrinsicsWeight;464 ExtrinsicUnknown: ExtrinsicUnknown;465 ExtrinsicV4: ExtrinsicV4;466 FeeDetails: FeeDetails;467 Fixed128: Fixed128;468 Fixed64: Fixed64;469 FixedI128: FixedI128;470 FixedI64: FixedI64;471 FixedU128: FixedU128;472 FixedU64: FixedU64;473 Forcing: Forcing;474 ForkTreePendingChange: ForkTreePendingChange;475 ForkTreePendingChangeNode: ForkTreePendingChangeNode;476 FpRpcTransactionStatus: FpRpcTransactionStatus;477 FrameSupportPalletId: FrameSupportPalletId;478 FrameSupportTokensMiscBalanceStatus: FrameSupportTokensMiscBalanceStatus;479 FrameSupportWeightsDispatchClass: FrameSupportWeightsDispatchClass;480 FrameSupportWeightsDispatchInfo: FrameSupportWeightsDispatchInfo;481 FrameSupportWeightsPays: FrameSupportWeightsPays;482 FrameSupportWeightsPerDispatchClassU32: FrameSupportWeightsPerDispatchClassU32;483 FrameSupportWeightsPerDispatchClassU64: FrameSupportWeightsPerDispatchClassU64;484 FrameSupportWeightsPerDispatchClassWeightsPerClass: FrameSupportWeightsPerDispatchClassWeightsPerClass;485 FrameSupportWeightsRuntimeDbWeight: FrameSupportWeightsRuntimeDbWeight;486 FrameSupportWeightsWeightToFeeCoefficient: FrameSupportWeightsWeightToFeeCoefficient;487 FrameSystemAccountInfo: FrameSystemAccountInfo;488 FrameSystemCall: FrameSystemCall;489 FrameSystemError: FrameSystemError;490 FrameSystemEvent: FrameSystemEvent;491 FrameSystemEventRecord: FrameSystemEventRecord;492 FrameSystemExtensionsCheckGenesis: FrameSystemExtensionsCheckGenesis;493 FrameSystemExtensionsCheckNonce: FrameSystemExtensionsCheckNonce;494 FrameSystemExtensionsCheckSpecVersion: FrameSystemExtensionsCheckSpecVersion;495 FrameSystemExtensionsCheckWeight: FrameSystemExtensionsCheckWeight;496 FrameSystemLastRuntimeUpgradeInfo: FrameSystemLastRuntimeUpgradeInfo;497 FrameSystemLimitsBlockLength: FrameSystemLimitsBlockLength;498 FrameSystemLimitsBlockWeights: FrameSystemLimitsBlockWeights;499 FrameSystemLimitsWeightsPerClass: FrameSystemLimitsWeightsPerClass;500 FrameSystemPhase: FrameSystemPhase;501 FullIdentification: FullIdentification;502 FunctionArgumentMetadataLatest: FunctionArgumentMetadataLatest;503 FunctionArgumentMetadataV10: FunctionArgumentMetadataV10;504 FunctionArgumentMetadataV11: FunctionArgumentMetadataV11;505 FunctionArgumentMetadataV12: FunctionArgumentMetadataV12;506 FunctionArgumentMetadataV13: FunctionArgumentMetadataV13;507 FunctionArgumentMetadataV14: FunctionArgumentMetadataV14;508 FunctionArgumentMetadataV9: FunctionArgumentMetadataV9;509 FunctionMetadataLatest: FunctionMetadataLatest;510 FunctionMetadataV10: FunctionMetadataV10;511 FunctionMetadataV11: FunctionMetadataV11;512 FunctionMetadataV12: FunctionMetadataV12;513 FunctionMetadataV13: FunctionMetadataV13;514 FunctionMetadataV14: FunctionMetadataV14;515 FunctionMetadataV9: FunctionMetadataV9;516 FundIndex: FundIndex;517 FundInfo: FundInfo;518 Fungibility: Fungibility;519 FungibilityV0: FungibilityV0;520 FungibilityV1: FungibilityV1;521 FungibilityV2: FungibilityV2;522 Gas: Gas;523 GiltBid: GiltBid;524 GlobalValidationData: GlobalValidationData;525 GlobalValidationSchedule: GlobalValidationSchedule;526 GrandpaCommit: GrandpaCommit;527 GrandpaEquivocation: GrandpaEquivocation;528 GrandpaEquivocationProof: GrandpaEquivocationProof;529 GrandpaEquivocationValue: GrandpaEquivocationValue;530 GrandpaJustification: GrandpaJustification;531 GrandpaPrecommit: GrandpaPrecommit;532 GrandpaPrevote: GrandpaPrevote;533 GrandpaSignedPrecommit: GrandpaSignedPrecommit;534 GroupIndex: GroupIndex;535 H1024: H1024;536 H128: H128;537 H160: H160;538 H2048: H2048;539 H256: H256;540 H32: H32;541 H512: H512;542 H64: H64;543 Hash: Hash;544 HeadData: HeadData;545 Header: Header;546 HeaderPartial: HeaderPartial;547 Health: Health;548 Heartbeat: Heartbeat;549 HeartbeatTo244: HeartbeatTo244;550 HostConfiguration: HostConfiguration;551 HostFnWeights: HostFnWeights;552 HostFnWeightsTo264: HostFnWeightsTo264;553 HrmpChannel: HrmpChannel;554 HrmpChannelId: HrmpChannelId;555 HrmpOpenChannelRequest: HrmpOpenChannelRequest;556 i128: i128;557 I128: I128;558 i16: i16;559 I16: I16;560 i256: i256;561 I256: I256;562 i32: i32;563 I32: I32;564 I32F32: I32F32;565 i64: i64;566 I64: I64;567 i8: i8;568 I8: I8;569 IdentificationTuple: IdentificationTuple;570 IdentityFields: IdentityFields;571 IdentityInfo: IdentityInfo;572 IdentityInfoAdditional: IdentityInfoAdditional;573 IdentityInfoTo198: IdentityInfoTo198;574 IdentityJudgement: IdentityJudgement;575 ImmortalEra: ImmortalEra;576 ImportedAux: ImportedAux;577 InboundDownwardMessage: InboundDownwardMessage;578 InboundHrmpMessage: InboundHrmpMessage;579 InboundHrmpMessages: InboundHrmpMessages;580 InboundLaneData: InboundLaneData;581 InboundRelayer: InboundRelayer;582 InboundStatus: InboundStatus;583 IncludedBlocks: IncludedBlocks;584 InclusionFee: InclusionFee;585 IncomingParachain: IncomingParachain;586 IncomingParachainDeploy: IncomingParachainDeploy;587 IncomingParachainFixed: IncomingParachainFixed;588 Index: Index;589 IndicesLookupSource: IndicesLookupSource;590 IndividualExposure: IndividualExposure;591 InitializationData: InitializationData;592 InstanceDetails: InstanceDetails;593 InstanceId: InstanceId;594 InstanceMetadata: InstanceMetadata;595 InstantiateRequest: InstantiateRequest;596 InstantiateRequestV1: InstantiateRequestV1;597 InstantiateRequestV2: InstantiateRequestV2;598 InstantiateReturnValue: InstantiateReturnValue;599 InstantiateReturnValueOk: InstantiateReturnValueOk;600 InstantiateReturnValueTo267: InstantiateReturnValueTo267;601 InstructionV2: InstructionV2;602 InstructionWeights: InstructionWeights;603 InteriorMultiLocation: InteriorMultiLocation;604 InvalidDisputeStatementKind: InvalidDisputeStatementKind;605 InvalidTransaction: InvalidTransaction;606 Json: Json;607 Junction: Junction;608 Junctions: Junctions;609 JunctionsV1: JunctionsV1;610 JunctionsV2: JunctionsV2;611 JunctionV0: JunctionV0;612 JunctionV1: JunctionV1;613 JunctionV2: JunctionV2;614 Justification: Justification;615 JustificationNotification: JustificationNotification;616 Justifications: Justifications;617 Key: Key;618 KeyOwnerProof: KeyOwnerProof;619 Keys: Keys;620 KeyType: KeyType;621 KeyTypeId: KeyTypeId;622 KeyValue: KeyValue;623 KeyValueOption: KeyValueOption;624 Kind: Kind;625 LaneId: LaneId;626 LastContribution: LastContribution;627 LastRuntimeUpgradeInfo: LastRuntimeUpgradeInfo;628 LeasePeriod: LeasePeriod;629 LeasePeriodOf: LeasePeriodOf;630 LegacyTransaction: LegacyTransaction;631 Limits: Limits;632 LimitsTo264: LimitsTo264;633 LocalValidationData: LocalValidationData;634 LockIdentifier: LockIdentifier;635 LookupSource: LookupSource;636 LookupTarget: LookupTarget;637 LotteryConfig: LotteryConfig;638 MaybeRandomness: MaybeRandomness;639 MaybeVrf: MaybeVrf;640 MemberCount: MemberCount;641 MembershipProof: MembershipProof;642 MessageData: MessageData;643 MessageId: MessageId;644 MessageIngestionType: MessageIngestionType;645 MessageKey: MessageKey;646 MessageNonce: MessageNonce;647 MessageQueueChain: MessageQueueChain;648 MessagesDeliveryProofOf: MessagesDeliveryProofOf;649 MessagesProofOf: MessagesProofOf;650 MessagingStateSnapshot: MessagingStateSnapshot;651 MessagingStateSnapshotEgressEntry: MessagingStateSnapshotEgressEntry;652 MetadataAll: MetadataAll;653 MetadataLatest: MetadataLatest;654 MetadataV10: MetadataV10;655 MetadataV11: MetadataV11;656 MetadataV12: MetadataV12;657 MetadataV13: MetadataV13;658 MetadataV14: MetadataV14;659 MetadataV9: MetadataV9;660 MmrLeafProof: MmrLeafProof;661 MmrRootHash: MmrRootHash;662 ModuleConstantMetadataV10: ModuleConstantMetadataV10;663 ModuleConstantMetadataV11: ModuleConstantMetadataV11;664 ModuleConstantMetadataV12: ModuleConstantMetadataV12;665 ModuleConstantMetadataV13: ModuleConstantMetadataV13;666 ModuleConstantMetadataV9: ModuleConstantMetadataV9;667 ModuleId: ModuleId;668 ModuleMetadataV10: ModuleMetadataV10;669 ModuleMetadataV11: ModuleMetadataV11;670 ModuleMetadataV12: ModuleMetadataV12;671 ModuleMetadataV13: ModuleMetadataV13;672 ModuleMetadataV9: ModuleMetadataV9;673 Moment: Moment;674 MomentOf: MomentOf;675 MoreAttestations: MoreAttestations;676 MortalEra: MortalEra;677 MultiAddress: MultiAddress;678 MultiAsset: MultiAsset;679 MultiAssetFilter: MultiAssetFilter;680 MultiAssetFilterV1: MultiAssetFilterV1;681 MultiAssetFilterV2: MultiAssetFilterV2;682 MultiAssets: MultiAssets;683 MultiAssetsV1: MultiAssetsV1;684 MultiAssetsV2: MultiAssetsV2;685 MultiAssetV0: MultiAssetV0;686 MultiAssetV1: MultiAssetV1;687 MultiAssetV2: MultiAssetV2;688 MultiDisputeStatementSet: MultiDisputeStatementSet;689 MultiLocation: MultiLocation;690 MultiLocationV0: MultiLocationV0;691 MultiLocationV1: MultiLocationV1;692 MultiLocationV2: MultiLocationV2;693 Multiplier: Multiplier;694 Multisig: Multisig;695 MultiSignature: MultiSignature;696 MultiSigner: MultiSigner;697 NetworkId: NetworkId;698 NetworkState: NetworkState;699 NetworkStatePeerset: NetworkStatePeerset;700 NetworkStatePeersetInfo: NetworkStatePeersetInfo;701 NewBidder: NewBidder;702 NextAuthority: NextAuthority;703 NextConfigDescriptor: NextConfigDescriptor;704 NextConfigDescriptorV1: NextConfigDescriptorV1;705 NodeRole: NodeRole;706 Nominations: Nominations;707 NominatorIndex: NominatorIndex;708 NominatorIndexCompact: NominatorIndexCompact;709 NotConnectedPeer: NotConnectedPeer;710 Null: Null;711 OffchainAccuracy: OffchainAccuracy;712 OffchainAccuracyCompact: OffchainAccuracyCompact;713 OffenceDetails: OffenceDetails;714 Offender: Offender;715 OpalRuntimeRuntime: OpalRuntimeRuntime;716 OpaqueCall: OpaqueCall;717 OpaqueMultiaddr: OpaqueMultiaddr;718 OpaqueNetworkState: OpaqueNetworkState;719 OpaquePeerId: OpaquePeerId;720 OpaqueTimeSlot: OpaqueTimeSlot;721 OpenTip: OpenTip;722 OpenTipFinderTo225: OpenTipFinderTo225;723 OpenTipTip: OpenTipTip;724 OpenTipTo225: OpenTipTo225;725 OperatingMode: OperatingMode;726 Origin: Origin;727 OriginCaller: OriginCaller;728 OriginKindV0: OriginKindV0;729 OriginKindV1: OriginKindV1;730 OriginKindV2: OriginKindV2;731 OrmlVestingModuleCall: OrmlVestingModuleCall;732 OrmlVestingModuleError: OrmlVestingModuleError;733 OrmlVestingModuleEvent: OrmlVestingModuleEvent;734 OrmlVestingVestingSchedule: OrmlVestingVestingSchedule;735 OutboundHrmpMessage: OutboundHrmpMessage;736 OutboundLaneData: OutboundLaneData;737 OutboundMessageFee: OutboundMessageFee;738 OutboundPayload: OutboundPayload;739 OutboundStatus: OutboundStatus;740 Outcome: Outcome;741 OverweightIndex: OverweightIndex;742 Owner: Owner;743 PageCounter: PageCounter;744 PageIndexData: PageIndexData;745 PalletBalancesAccountData: PalletBalancesAccountData;746 PalletBalancesBalanceLock: PalletBalancesBalanceLock;747 PalletBalancesCall: PalletBalancesCall;748 PalletBalancesError: PalletBalancesError;749 PalletBalancesEvent: PalletBalancesEvent;750 PalletBalancesReasons: PalletBalancesReasons;751 PalletBalancesReleases: PalletBalancesReleases;752 PalletBalancesReserveData: PalletBalancesReserveData;753 PalletCallMetadataLatest: PalletCallMetadataLatest;754 PalletCallMetadataV14: PalletCallMetadataV14;755 PalletCommonError: PalletCommonError;756 PalletCommonEvent: PalletCommonEvent;757 PalletConstantMetadataLatest: PalletConstantMetadataLatest;758 PalletConstantMetadataV14: PalletConstantMetadataV14;759 PalletErrorMetadataLatest: PalletErrorMetadataLatest;760 PalletErrorMetadataV14: PalletErrorMetadataV14;761 PalletEthereumCall: PalletEthereumCall;762 PalletEthereumError: PalletEthereumError;763 PalletEthereumEvent: PalletEthereumEvent;764 PalletEventMetadataLatest: PalletEventMetadataLatest;765 PalletEventMetadataV14: PalletEventMetadataV14;766 PalletEvmAccountBasicCrossAccountIdRepr: PalletEvmAccountBasicCrossAccountIdRepr;767 PalletEvmCall: PalletEvmCall;768 PalletEvmCoderSubstrateError: PalletEvmCoderSubstrateError;769 PalletEvmContractHelpersError: PalletEvmContractHelpersError;770 PalletEvmContractHelpersSponsoringModeT: PalletEvmContractHelpersSponsoringModeT;771 PalletEvmError: PalletEvmError;772 PalletEvmEvent: PalletEvmEvent;773 PalletEvmMigrationCall: PalletEvmMigrationCall;774 PalletEvmMigrationError: PalletEvmMigrationError;775 PalletFungibleError: PalletFungibleError;776 PalletId: PalletId;777 PalletInflationCall: PalletInflationCall;778 PalletMetadataLatest: PalletMetadataLatest;779 PalletMetadataV14: PalletMetadataV14;780 PalletNonfungibleError: PalletNonfungibleError;781 PalletNonfungibleItemData: PalletNonfungibleItemData;782 PalletRefungibleError: PalletRefungibleError;783 PalletRefungibleItemData: PalletRefungibleItemData;784 PalletsOrigin: PalletsOrigin;785 PalletStorageMetadataLatest: PalletStorageMetadataLatest;786 PalletStorageMetadataV14: PalletStorageMetadataV14;787 PalletSudoCall: PalletSudoCall;788 PalletSudoError: PalletSudoError;789 PalletSudoEvent: PalletSudoEvent;790 PalletTemplateTransactionPaymentCall: PalletTemplateTransactionPaymentCall;791 PalletTemplateTransactionPaymentChargeTransactionPayment: PalletTemplateTransactionPaymentChargeTransactionPayment;792 PalletTimestampCall: PalletTimestampCall;793 PalletTransactionPaymentReleases: PalletTransactionPaymentReleases;794 PalletTreasuryCall: PalletTreasuryCall;795 PalletTreasuryError: PalletTreasuryError;796 PalletTreasuryEvent: PalletTreasuryEvent;797 PalletTreasuryProposal: PalletTreasuryProposal;798 PalletUniqueCall: PalletUniqueCall;799 PalletUniqueError: PalletUniqueError;800 PalletUniqueRawEvent: PalletUniqueRawEvent;801 PalletVersion: PalletVersion;802 PalletXcmCall: PalletXcmCall;803 PalletXcmError: PalletXcmError;804 PalletXcmEvent: PalletXcmEvent;805 ParachainDispatchOrigin: ParachainDispatchOrigin;806 ParachainInherentData: ParachainInherentData;807 ParachainProposal: ParachainProposal;808 ParachainsInherentData: ParachainsInherentData;809 ParaGenesisArgs: ParaGenesisArgs;810 ParaId: ParaId;811 ParaInfo: ParaInfo;812 ParaLifecycle: ParaLifecycle;813 Parameter: Parameter;814 ParaPastCodeMeta: ParaPastCodeMeta;815 ParaScheduling: ParaScheduling;816 ParathreadClaim: ParathreadClaim;817 ParathreadClaimQueue: ParathreadClaimQueue;818 ParathreadEntry: ParathreadEntry;819 ParaValidatorIndex: ParaValidatorIndex;820 Pays: Pays;821 Peer: Peer;822 PeerEndpoint: PeerEndpoint;823 PeerEndpointAddr: PeerEndpointAddr;824 PeerInfo: PeerInfo;825 PeerPing: PeerPing;826 PendingChange: PendingChange;827 PendingPause: PendingPause;828 PendingResume: PendingResume;829 Perbill: Perbill;830 Percent: Percent;831 PerDispatchClassU32: PerDispatchClassU32;832 PerDispatchClassWeight: PerDispatchClassWeight;833 PerDispatchClassWeightsPerClass: PerDispatchClassWeightsPerClass;834 Period: Period;835 Permill: Permill;836 PermissionLatest: PermissionLatest;837 PermissionsV1: PermissionsV1;838 PermissionVersions: PermissionVersions;839 Perquintill: Perquintill;840 PersistedValidationData: PersistedValidationData;841 PerU16: PerU16;842 Phantom: Phantom;843 PhantomData: PhantomData;844 Phase: Phase;845 PhragmenScore: PhragmenScore;846 Points: Points;847 PolkadotCorePrimitivesInboundDownwardMessage: PolkadotCorePrimitivesInboundDownwardMessage;848 PolkadotCorePrimitivesInboundHrmpMessage: PolkadotCorePrimitivesInboundHrmpMessage;849 PolkadotCorePrimitivesOutboundHrmpMessage: PolkadotCorePrimitivesOutboundHrmpMessage;850 PolkadotParachainPrimitivesXcmpMessageFormat: PolkadotParachainPrimitivesXcmpMessageFormat;851 PolkadotPrimitivesV1AbridgedHostConfiguration: PolkadotPrimitivesV1AbridgedHostConfiguration;852 PolkadotPrimitivesV1AbridgedHrmpChannel: PolkadotPrimitivesV1AbridgedHrmpChannel;853 PolkadotPrimitivesV1PersistedValidationData: PolkadotPrimitivesV1PersistedValidationData;854 PolkadotPrimitivesV1UpgradeRestriction: PolkadotPrimitivesV1UpgradeRestriction;855 PortableType: PortableType;856 PortableTypeV14: PortableTypeV14;857 Precommits: Precommits;858 PrefabWasmModule: PrefabWasmModule;859 PrefixedStorageKey: PrefixedStorageKey;860 PreimageStatus: PreimageStatus;861 PreimageStatusAvailable: PreimageStatusAvailable;862 PreRuntime: PreRuntime;863 Prevotes: Prevotes;864 Priority: Priority;865 PriorLock: PriorLock;866 PropIndex: PropIndex;867 Proposal: Proposal;868 ProposalIndex: ProposalIndex;869 ProxyAnnouncement: ProxyAnnouncement;870 ProxyDefinition: ProxyDefinition;871 ProxyState: ProxyState;872 ProxyType: ProxyType;873 QueryId: QueryId;874 QueryStatus: QueryStatus;875 QueueConfigData: QueueConfigData;876 QueuedParathread: QueuedParathread;877 Randomness: Randomness;878 Raw: Raw;879 RawAuraPreDigest: RawAuraPreDigest;880 RawBabePreDigest: RawBabePreDigest;881 RawBabePreDigestCompat: RawBabePreDigestCompat;882 RawBabePreDigestPrimary: RawBabePreDigestPrimary;883 RawBabePreDigestPrimaryTo159: RawBabePreDigestPrimaryTo159;884 RawBabePreDigestSecondaryPlain: RawBabePreDigestSecondaryPlain;885 RawBabePreDigestSecondaryTo159: RawBabePreDigestSecondaryTo159;886 RawBabePreDigestSecondaryVRF: RawBabePreDigestSecondaryVRF;887 RawBabePreDigestTo159: RawBabePreDigestTo159;888 RawOrigin: RawOrigin;889 RawSolution: RawSolution;890 RawSolutionTo265: RawSolutionTo265;891 RawSolutionWith16: RawSolutionWith16;892 RawSolutionWith24: RawSolutionWith24;893 RawVRFOutput: RawVRFOutput;894 ReadProof: ReadProof;895 ReadySolution: ReadySolution;896 Reasons: Reasons;897 RecoveryConfig: RecoveryConfig;898 RefCount: RefCount;899 RefCountTo259: RefCountTo259;900 ReferendumIndex: ReferendumIndex;901 ReferendumInfo: ReferendumInfo;902 ReferendumInfoFinished: ReferendumInfoFinished;903 ReferendumInfoTo239: ReferendumInfoTo239;904 ReferendumStatus: ReferendumStatus;905 RegisteredParachainInfo: RegisteredParachainInfo;906 RegistrarIndex: RegistrarIndex;907 RegistrarInfo: RegistrarInfo;908 Registration: Registration;909 RegistrationJudgement: RegistrationJudgement;910 RegistrationTo198: RegistrationTo198;911 RelayBlockNumber: RelayBlockNumber;912 RelayChainBlockNumber: RelayChainBlockNumber;913 RelayChainHash: RelayChainHash;914 RelayerId: RelayerId;915 RelayHash: RelayHash;916 Releases: Releases;917 Remark: Remark;918 Renouncing: Renouncing;919 RentProjection: RentProjection;920 ReplacementTimes: ReplacementTimes;921 ReportedRoundStates: ReportedRoundStates;922 Reporter: Reporter;923 ReportIdOf: ReportIdOf;924 ReserveData: ReserveData;925 ReserveIdentifier: ReserveIdentifier;926 Response: Response;927 ResponseV0: ResponseV0;928 ResponseV1: ResponseV1;929 ResponseV2: ResponseV2;930 ResponseV2Error: ResponseV2Error;931 ResponseV2Result: ResponseV2Result;932 Retriable: Retriable;933 RewardDestination: RewardDestination;934 RewardPoint: RewardPoint;935 RoundSnapshot: RoundSnapshot;936 RoundState: RoundState;937 RpcMethods: RpcMethods;938 RuntimeDbWeight: RuntimeDbWeight;939 RuntimeDispatchInfo: RuntimeDispatchInfo;940 RuntimeVersion: RuntimeVersion;941 RuntimeVersionApi: RuntimeVersionApi;942 RuntimeVersionPartial: RuntimeVersionPartial;943 Schedule: Schedule;944 Scheduled: Scheduled;945 ScheduledTo254: ScheduledTo254;946 SchedulePeriod: SchedulePeriod;947 SchedulePriority: SchedulePriority;948 ScheduleTo212: ScheduleTo212;949 ScheduleTo258: ScheduleTo258;950 ScheduleTo264: ScheduleTo264;951 Scheduling: Scheduling;952 Seal: Seal;953 SealV0: SealV0;954 SeatHolder: SeatHolder;955 SeedOf: SeedOf;956 ServiceQuality: ServiceQuality;957 SessionIndex: SessionIndex;958 SessionInfo: SessionInfo;959 SessionInfoValidatorGroup: SessionInfoValidatorGroup;960 SessionKeys1: SessionKeys1;961 SessionKeys10: SessionKeys10;962 SessionKeys10B: SessionKeys10B;963 SessionKeys2: SessionKeys2;964 SessionKeys3: SessionKeys3;965 SessionKeys4: SessionKeys4;966 SessionKeys5: SessionKeys5;967 SessionKeys6: SessionKeys6;968 SessionKeys6B: SessionKeys6B;969 SessionKeys7: SessionKeys7;970 SessionKeys7B: SessionKeys7B;971 SessionKeys8: SessionKeys8;972 SessionKeys8B: SessionKeys8B;973 SessionKeys9: SessionKeys9;974 SessionKeys9B: SessionKeys9B;975 SetId: SetId;976 SetIndex: SetIndex;977 Si0Field: Si0Field;978 Si0LookupTypeId: Si0LookupTypeId;979 Si0Path: Si0Path;980 Si0Type: Si0Type;981 Si0TypeDef: Si0TypeDef;982 Si0TypeDefArray: Si0TypeDefArray;983 Si0TypeDefBitSequence: Si0TypeDefBitSequence;984 Si0TypeDefCompact: Si0TypeDefCompact;985 Si0TypeDefComposite: Si0TypeDefComposite;986 Si0TypeDefPhantom: Si0TypeDefPhantom;987 Si0TypeDefPrimitive: Si0TypeDefPrimitive;988 Si0TypeDefSequence: Si0TypeDefSequence;989 Si0TypeDefTuple: Si0TypeDefTuple;990 Si0TypeDefVariant: Si0TypeDefVariant;991 Si0TypeParameter: Si0TypeParameter;992 Si0Variant: Si0Variant;993 Si1Field: Si1Field;994 Si1LookupTypeId: Si1LookupTypeId;995 Si1Path: Si1Path;996 Si1Type: Si1Type;997 Si1TypeDef: Si1TypeDef;998 Si1TypeDefArray: Si1TypeDefArray;999 Si1TypeDefBitSequence: Si1TypeDefBitSequence;1000 Si1TypeDefCompact: Si1TypeDefCompact;1001 Si1TypeDefComposite: Si1TypeDefComposite;1002 Si1TypeDefPrimitive: Si1TypeDefPrimitive;1003 Si1TypeDefSequence: Si1TypeDefSequence;1004 Si1TypeDefTuple: Si1TypeDefTuple;1005 Si1TypeDefVariant: Si1TypeDefVariant;1006 Si1TypeParameter: Si1TypeParameter;1007 Si1Variant: Si1Variant;1008 SiField: SiField;1009 Signature: Signature;1010 SignedAvailabilityBitfield: SignedAvailabilityBitfield;1011 SignedAvailabilityBitfields: SignedAvailabilityBitfields;1012 SignedBlock: SignedBlock;1013 SignedBlockWithJustification: SignedBlockWithJustification;1014 SignedBlockWithJustifications: SignedBlockWithJustifications;1015 SignedExtensionMetadataLatest: SignedExtensionMetadataLatest;1016 SignedExtensionMetadataV14: SignedExtensionMetadataV14;1017 SignedSubmission: SignedSubmission;1018 SignedSubmissionOf: SignedSubmissionOf;1019 SignedSubmissionTo276: SignedSubmissionTo276;1020 SignerPayload: SignerPayload;1021 SigningContext: SigningContext;1022 SiLookupTypeId: SiLookupTypeId;1023 SiPath: SiPath;1024 SiType: SiType;1025 SiTypeDef: SiTypeDef;1026 SiTypeDefArray: SiTypeDefArray;1027 SiTypeDefBitSequence: SiTypeDefBitSequence;1028 SiTypeDefCompact: SiTypeDefCompact;1029 SiTypeDefComposite: SiTypeDefComposite;1030 SiTypeDefPrimitive: SiTypeDefPrimitive;1031 SiTypeDefSequence: SiTypeDefSequence;1032 SiTypeDefTuple: SiTypeDefTuple;1033 SiTypeDefVariant: SiTypeDefVariant;1034 SiTypeParameter: SiTypeParameter;1035 SiVariant: SiVariant;1036 SlashingSpans: SlashingSpans;1037 SlashingSpansTo204: SlashingSpansTo204;1038 SlashJournalEntry: SlashJournalEntry;1039 Slot: Slot;1040 SlotNumber: SlotNumber;1041 SlotRange: SlotRange;1042 SlotRange10: SlotRange10;1043 SocietyJudgement: SocietyJudgement;1044 SocietyVote: SocietyVote;1045 SolutionOrSnapshotSize: SolutionOrSnapshotSize;1046 SolutionSupport: SolutionSupport;1047 SolutionSupports: SolutionSupports;1048 SpanIndex: SpanIndex;1049 SpanRecord: SpanRecord;1050 SpCoreEcdsaSignature: SpCoreEcdsaSignature;1051 SpCoreEd25519Signature: SpCoreEd25519Signature;1052 SpCoreSr25519Signature: SpCoreSr25519Signature;1053 SpecVersion: SpecVersion;1054 SpRuntimeArithmeticError: SpRuntimeArithmeticError;1055 SpRuntimeDigest: SpRuntimeDigest;1056 SpRuntimeDigestDigestItem: SpRuntimeDigestDigestItem;1057 SpRuntimeDispatchError: SpRuntimeDispatchError;1058 SpRuntimeModuleError: SpRuntimeModuleError;1059 SpRuntimeMultiSignature: SpRuntimeMultiSignature;1060 SpRuntimeTokenError: SpRuntimeTokenError;1061 SpTrieStorageProof: SpTrieStorageProof;1062 SpVersionRuntimeVersion: SpVersionRuntimeVersion;1063 Sr25519Signature: Sr25519Signature;1064 StakingLedger: StakingLedger;1065 StakingLedgerTo223: StakingLedgerTo223;1066 StakingLedgerTo240: StakingLedgerTo240;1067 Statement: Statement;1068 StatementKind: StatementKind;1069 StorageChangeSet: StorageChangeSet;1070 StorageData: StorageData;1071 StorageDeposit: StorageDeposit;1072 StorageEntryMetadataLatest: StorageEntryMetadataLatest;1073 StorageEntryMetadataV10: StorageEntryMetadataV10;1074 StorageEntryMetadataV11: StorageEntryMetadataV11;1075 StorageEntryMetadataV12: StorageEntryMetadataV12;1076 StorageEntryMetadataV13: StorageEntryMetadataV13;1077 StorageEntryMetadataV14: StorageEntryMetadataV14;1078 StorageEntryMetadataV9: StorageEntryMetadataV9;1079 StorageEntryModifierLatest: StorageEntryModifierLatest;1080 StorageEntryModifierV10: StorageEntryModifierV10;1081 StorageEntryModifierV11: StorageEntryModifierV11;1082 StorageEntryModifierV12: StorageEntryModifierV12;1083 StorageEntryModifierV13: StorageEntryModifierV13;1084 StorageEntryModifierV14: StorageEntryModifierV14;1085 StorageEntryModifierV9: StorageEntryModifierV9;1086 StorageEntryTypeLatest: StorageEntryTypeLatest;1087 StorageEntryTypeV10: StorageEntryTypeV10;1088 StorageEntryTypeV11: StorageEntryTypeV11;1089 StorageEntryTypeV12: StorageEntryTypeV12;1090 StorageEntryTypeV13: StorageEntryTypeV13;1091 StorageEntryTypeV14: StorageEntryTypeV14;1092 StorageEntryTypeV9: StorageEntryTypeV9;1093 StorageHasher: StorageHasher;1094 StorageHasherV10: StorageHasherV10;1095 StorageHasherV11: StorageHasherV11;1096 StorageHasherV12: StorageHasherV12;1097 StorageHasherV13: StorageHasherV13;1098 StorageHasherV14: StorageHasherV14;1099 StorageHasherV9: StorageHasherV9;1100 StorageKey: StorageKey;1101 StorageKind: StorageKind;1102 StorageMetadataV10: StorageMetadataV10;1103 StorageMetadataV11: StorageMetadataV11;1104 StorageMetadataV12: StorageMetadataV12;1105 StorageMetadataV13: StorageMetadataV13;1106 StorageMetadataV9: StorageMetadataV9;1107 StorageProof: StorageProof;1108 StoredPendingChange: StoredPendingChange;1109 StoredState: StoredState;1110 StrikeCount: StrikeCount;1111 SubId: SubId;1112 SubmissionIndicesOf: SubmissionIndicesOf;1113 Supports: Supports;1114 SyncState: SyncState;1115 SystemInherentData: SystemInherentData;1116 SystemOrigin: SystemOrigin;1117 Tally: Tally;1118 TaskAddress: TaskAddress;1119 TAssetBalance: TAssetBalance;1120 TAssetDepositBalance: TAssetDepositBalance;1121 Text: Text;1122 Timepoint: Timepoint;1123 TokenError: TokenError;1124 TombstoneContractInfo: TombstoneContractInfo;1125 TraceBlockResponse: TraceBlockResponse;1126 TraceError: TraceError;1127 TransactionInfo: TransactionInfo;1128 TransactionPriority: TransactionPriority;1129 TransactionStorageProof: TransactionStorageProof;1130 TransactionV0: TransactionV0;1131 TransactionV1: TransactionV1;1132 TransactionV2: TransactionV2;1133 TransactionValidityError: TransactionValidityError;1134 TransientValidationData: TransientValidationData;1135 TreasuryProposal: TreasuryProposal;1136 TrieId: TrieId;1137 TrieIndex: TrieIndex;1138 Type: Type;1139 u128: u128;1140 U128: U128;1141 u16: u16;1142 U16: U16;1143 u256: u256;1144 U256: U256;1145 u32: u32;1146 U32: U32;1147 U32F32: U32F32;1148 u64: u64;1149 U64: U64;1150 u8: u8;1151 U8: U8;1152 UnappliedSlash: UnappliedSlash;1153 UnappliedSlashOther: UnappliedSlashOther;1154 UncleEntryItem: UncleEntryItem;1155 UnknownTransaction: UnknownTransaction;1156 UnlockChunk: UnlockChunk;1157 UnrewardedRelayer: UnrewardedRelayer;1158 UnrewardedRelayersState: UnrewardedRelayersState;1159 UpDataStructsAccessMode: UpDataStructsAccessMode;1160 UpDataStructsCollection: UpDataStructsCollection;1161 UpDataStructsCollectionLimits: UpDataStructsCollectionLimits;1162 UpDataStructsCollectionMode: UpDataStructsCollectionMode;1163 UpDataStructsCollectionStats: UpDataStructsCollectionStats;1164 UpDataStructsCreateCollectionData: UpDataStructsCreateCollectionData;1165 UpDataStructsCreateFungibleData: UpDataStructsCreateFungibleData;1166 UpDataStructsCreateItemData: UpDataStructsCreateItemData;1167 UpDataStructsCreateItemExData: UpDataStructsCreateItemExData;1168 UpDataStructsCreateNftData: UpDataStructsCreateNftData;1169 UpDataStructsCreateNftExData: UpDataStructsCreateNftExData;1170 UpDataStructsCreateReFungibleData: UpDataStructsCreateReFungibleData;1171 UpDataStructsCreateRefungibleExData: UpDataStructsCreateRefungibleExData;1172 UpDataStructsMetaUpdatePermission: UpDataStructsMetaUpdatePermission;1173 UpDataStructsSchemaVersion: UpDataStructsSchemaVersion;1174 UpDataStructsSponsoringRateLimit: UpDataStructsSponsoringRateLimit;1175 UpDataStructsSponsorshipState: UpDataStructsSponsorshipState;1176 UpgradeGoAhead: UpgradeGoAhead;1177 UpgradeRestriction: UpgradeRestriction;1178 UpwardMessage: UpwardMessage;1179 usize: usize;1180 USize: USize;1181 ValidationCode: ValidationCode;1182 ValidationCodeHash: ValidationCodeHash;1183 ValidationData: ValidationData;1184 ValidationDataType: ValidationDataType;1185 ValidationFunctionParams: ValidationFunctionParams;1186 ValidatorCount: ValidatorCount;1187 ValidatorId: ValidatorId;1188 ValidatorIdOf: ValidatorIdOf;1189 ValidatorIndex: ValidatorIndex;1190 ValidatorIndexCompact: ValidatorIndexCompact;1191 ValidatorPrefs: ValidatorPrefs;1192 ValidatorPrefsTo145: ValidatorPrefsTo145;1193 ValidatorPrefsTo196: ValidatorPrefsTo196;1194 ValidatorPrefsWithBlocked: ValidatorPrefsWithBlocked;1195 ValidatorPrefsWithCommission: ValidatorPrefsWithCommission;1196 ValidatorSetId: ValidatorSetId;1197 ValidatorSignature: ValidatorSignature;1198 ValidDisputeStatementKind: ValidDisputeStatementKind;1199 ValidityAttestation: ValidityAttestation;1200 VecInboundHrmpMessage: VecInboundHrmpMessage;1201 VersionedMultiAsset: VersionedMultiAsset;1202 VersionedMultiAssets: VersionedMultiAssets;1203 VersionedMultiLocation: VersionedMultiLocation;1204 VersionedResponse: VersionedResponse;1205 VersionedXcm: VersionedXcm;1206 VersionMigrationStage: VersionMigrationStage;1207 VestingInfo: VestingInfo;1208 VestingSchedule: VestingSchedule;1209 Vote: Vote;1210 VoteIndex: VoteIndex;1211 Voter: Voter;1212 VoterInfo: VoterInfo;1213 Votes: Votes;1214 VotesTo230: VotesTo230;1215 VoteThreshold: VoteThreshold;1216 VoteWeight: VoteWeight;1217 Voting: Voting;1218 VotingDelegating: VotingDelegating;1219 VotingDirect: VotingDirect;1220 VotingDirectVote: VotingDirectVote;1221 VouchingStatus: VouchingStatus;1222 VrfData: VrfData;1223 VrfOutput: VrfOutput;1224 VrfProof: VrfProof;1225 Weight: Weight;1226 WeightLimitV2: WeightLimitV2;1227 WeightMultiplier: WeightMultiplier;1228 WeightPerClass: WeightPerClass;1229 WeightToFeeCoefficient: WeightToFeeCoefficient;1230 WildFungibility: WildFungibility;1231 WildFungibilityV0: WildFungibilityV0;1232 WildFungibilityV1: WildFungibilityV1;1233 WildFungibilityV2: WildFungibilityV2;1234 WildMultiAsset: WildMultiAsset;1235 WildMultiAssetV1: WildMultiAssetV1;1236 WildMultiAssetV2: WildMultiAssetV2;1237 WinnersData: WinnersData;1238 WinnersData10: WinnersData10;1239 WinnersDataTuple: WinnersDataTuple;1240 WinnersDataTuple10: WinnersDataTuple10;1241 WinningData: WinningData;1242 WinningData10: WinningData10;1243 WinningDataEntry: WinningDataEntry;1244 WithdrawReasons: WithdrawReasons;1245 Xcm: Xcm;1246 XcmAssetId: XcmAssetId;1247 XcmDoubleEncoded: XcmDoubleEncoded;1248 XcmError: XcmError;1249 XcmErrorV0: XcmErrorV0;1250 XcmErrorV1: XcmErrorV1;1251 XcmErrorV2: XcmErrorV2;1252 XcmOrder: XcmOrder;1253 XcmOrderV0: XcmOrderV0;1254 XcmOrderV1: XcmOrderV1;1255 XcmOrderV2: XcmOrderV2;1256 XcmOrigin: XcmOrigin;1257 XcmOriginKind: XcmOriginKind;1258 XcmpMessageFormat: XcmpMessageFormat;1259 XcmV0: XcmV0;1260 XcmV0Junction: XcmV0Junction;1261 XcmV0JunctionBodyId: XcmV0JunctionBodyId;1262 XcmV0JunctionBodyPart: XcmV0JunctionBodyPart;1263 XcmV0JunctionNetworkId: XcmV0JunctionNetworkId;1264 XcmV0MultiAsset: XcmV0MultiAsset;1265 XcmV0MultiLocation: XcmV0MultiLocation;1266 XcmV0Order: XcmV0Order;1267 XcmV0OriginKind: XcmV0OriginKind;1268 XcmV0Response: XcmV0Response;1269 XcmV0Xcm: XcmV0Xcm;1270 XcmV1: XcmV1;1271 XcmV1Junction: XcmV1Junction;1272 XcmV1MultiAsset: XcmV1MultiAsset;1273 XcmV1MultiassetAssetId: XcmV1MultiassetAssetId;1274 XcmV1MultiassetAssetInstance: XcmV1MultiassetAssetInstance;1275 XcmV1MultiassetFungibility: XcmV1MultiassetFungibility;1276 XcmV1MultiassetMultiAssetFilter: XcmV1MultiassetMultiAssetFilter;1277 XcmV1MultiassetMultiAssets: XcmV1MultiassetMultiAssets;1278 XcmV1MultiassetWildFungibility: XcmV1MultiassetWildFungibility;1279 XcmV1MultiassetWildMultiAsset: XcmV1MultiassetWildMultiAsset;1280 XcmV1MultiLocation: XcmV1MultiLocation;1281 XcmV1MultilocationJunctions: XcmV1MultilocationJunctions;1282 XcmV1Order: XcmV1Order;1283 XcmV1Response: XcmV1Response;1284 XcmV1Xcm: XcmV1Xcm;1285 XcmV2: XcmV2;1286 XcmV2Instruction: XcmV2Instruction;1287 XcmV2Response: XcmV2Response;1288 XcmV2TraitsError: XcmV2TraitsError;1289 XcmV2TraitsOutcome: XcmV2TraitsOutcome;1290 XcmV2WeightLimit: XcmV2WeightLimit;1291 XcmV2Xcm: XcmV2Xcm;1292 XcmVersion: XcmVersion;1293 XcmVersionedMultiAssets: XcmVersionedMultiAssets;1294 XcmVersionedMultiLocation: XcmVersionedMultiLocation;1295 XcmVersionedXcm: XcmVersionedXcm;1296 } // InterfaceTypes1297} // declare moduletests/src/interfaces/lookup.tsdiffbeforeafterboth--- a/tests/src/interfaces/lookup.ts
+++ b/tests/src/interfaces/lookup.ts
@@ -1254,11 +1254,11 @@
},
add_to_allow_list: {
collectionId: 'u32',
- address: 'PalletCommonAccountBasicCrossAccountIdRepr',
+ address: 'PalletEvmAccountBasicCrossAccountIdRepr',
},
remove_from_allow_list: {
collectionId: 'u32',
- address: 'PalletCommonAccountBasicCrossAccountIdRepr',
+ address: 'PalletEvmAccountBasicCrossAccountIdRepr',
},
set_public_access_mode: {
collectionId: 'u32',
@@ -1274,11 +1274,11 @@
},
add_collection_admin: {
collectionId: 'u32',
- newAdminId: 'PalletCommonAccountBasicCrossAccountIdRepr',
+ newAdminId: 'PalletEvmAccountBasicCrossAccountIdRepr',
},
remove_collection_admin: {
collectionId: 'u32',
- accountId: 'PalletCommonAccountBasicCrossAccountIdRepr',
+ accountId: 'PalletEvmAccountBasicCrossAccountIdRepr',
},
set_collection_sponsor: {
collectionId: 'u32',
@@ -1292,12 +1292,12 @@
},
create_item: {
collectionId: 'u32',
- owner: 'PalletCommonAccountBasicCrossAccountIdRepr',
+ owner: 'PalletEvmAccountBasicCrossAccountIdRepr',
data: 'UpDataStructsCreateItemData',
},
create_multiple_items: {
collectionId: 'u32',
- owner: 'PalletCommonAccountBasicCrossAccountIdRepr',
+ owner: 'PalletEvmAccountBasicCrossAccountIdRepr',
itemsData: 'Vec<UpDataStructsCreateItemData>',
},
create_multiple_items_ex: {
@@ -1315,25 +1315,25 @@
},
burn_from: {
collectionId: 'u32',
- from: 'PalletCommonAccountBasicCrossAccountIdRepr',
+ from: 'PalletEvmAccountBasicCrossAccountIdRepr',
itemId: 'u32',
value: 'u128',
},
transfer: {
- recipient: 'PalletCommonAccountBasicCrossAccountIdRepr',
+ recipient: 'PalletEvmAccountBasicCrossAccountIdRepr',
collectionId: 'u32',
itemId: 'u32',
value: 'u128',
},
approve: {
- spender: 'PalletCommonAccountBasicCrossAccountIdRepr',
+ spender: 'PalletEvmAccountBasicCrossAccountIdRepr',
collectionId: 'u32',
itemId: 'u32',
amount: 'u128',
},
transfer_from: {
- from: 'PalletCommonAccountBasicCrossAccountIdRepr',
- recipient: 'PalletCommonAccountBasicCrossAccountIdRepr',
+ from: 'PalletEvmAccountBasicCrossAccountIdRepr',
+ recipient: 'PalletEvmAccountBasicCrossAccountIdRepr',
collectionId: 'u32',
itemId: 'u32',
value: 'u128',
@@ -1438,9 +1438,9 @@
_enum: ['ItemOwner', 'Admin', 'None']
},
/**
- * Lookup172: pallet_common::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>
+ * Lookup172: pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>
**/
- PalletCommonAccountBasicCrossAccountIdRepr: {
+ PalletEvmAccountBasicCrossAccountIdRepr: {
_enum: {
Substrate: 'AccountId32',
Ethereum: 'H160'
@@ -1478,31 +1478,31 @@
pieces: 'u128'
},
/**
- * Lookup180: up_data_structs::CreateItemExData<pallet_common::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup180: up_data_structs::CreateItemExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
UpDataStructsCreateItemExData: {
_enum: {
NFT: 'Vec<UpDataStructsCreateNftExData>',
- Fungible: 'BTreeMap<PalletCommonAccountBasicCrossAccountIdRepr, u128>',
+ Fungible: 'BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>',
RefungibleMultipleItems: 'Vec<UpDataStructsCreateRefungibleExData>',
RefungibleMultipleOwners: 'UpDataStructsCreateRefungibleExData'
}
},
/**
- * Lookup182: up_data_structs::CreateNftExData<pallet_common::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup182: up_data_structs::CreateNftExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
UpDataStructsCreateNftExData: {
constData: 'Bytes',
variableData: 'Bytes',
- owner: 'PalletCommonAccountBasicCrossAccountIdRepr'
+ owner: 'PalletEvmAccountBasicCrossAccountIdRepr'
},
/**
- * Lookup189: up_data_structs::CreateRefungibleExData<pallet_common::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup189: up_data_structs::CreateRefungibleExData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
UpDataStructsCreateRefungibleExData: {
constData: 'Bytes',
variableData: 'Bytes',
- users: 'BTreeMap<PalletCommonAccountBasicCrossAccountIdRepr, u128>'
+ users: 'BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>'
},
/**
* Lookup192: pallet_template_transaction_payment::Call<T>
@@ -1756,7 +1756,7 @@
}
},
/**
- * Lookup225: frame_system::EventRecord<unique_runtime::Event, primitive_types::H256>
+ * Lookup225: frame_system::EventRecord<opal_runtime::Event, primitive_types::H256>
**/
FrameSystemEventRecord: {
phase: 'FrameSystemPhase',
@@ -1902,19 +1902,19 @@
}
},
/**
- * Lookup238: pallet_unique::RawEvent<sp_core::crypto::AccountId32, pallet_common::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup238: pallet_unique::RawEvent<sp_core::crypto::AccountId32, pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
PalletUniqueRawEvent: {
_enum: {
CollectionSponsorRemoved: 'u32',
- CollectionAdminAdded: '(u32,PalletCommonAccountBasicCrossAccountIdRepr)',
+ CollectionAdminAdded: '(u32,PalletEvmAccountBasicCrossAccountIdRepr)',
CollectionOwnedChanged: '(u32,AccountId32)',
CollectionSponsorSet: '(u32,AccountId32)',
ConstOnChainSchemaSet: 'u32',
SponsorshipConfirmed: '(u32,AccountId32)',
- CollectionAdminRemoved: '(u32,PalletCommonAccountBasicCrossAccountIdRepr)',
- AllowListAddressRemoved: '(u32,PalletCommonAccountBasicCrossAccountIdRepr)',
- AllowListAddressAdded: '(u32,PalletCommonAccountBasicCrossAccountIdRepr)',
+ CollectionAdminRemoved: '(u32,PalletEvmAccountBasicCrossAccountIdRepr)',
+ AllowListAddressRemoved: '(u32,PalletEvmAccountBasicCrossAccountIdRepr)',
+ AllowListAddressAdded: '(u32,PalletEvmAccountBasicCrossAccountIdRepr)',
CollectionLimitSet: 'u32',
MintPermissionSet: 'u32',
OffchainSchemaSet: 'u32',
@@ -1930,10 +1930,10 @@
_enum: {
CollectionCreated: '(u32,u8,AccountId32)',
CollectionDestroyed: 'u32',
- ItemCreated: '(u32,u32,PalletCommonAccountBasicCrossAccountIdRepr,u128)',
- ItemDestroyed: '(u32,u32,PalletCommonAccountBasicCrossAccountIdRepr,u128)',
- Transfer: '(u32,u32,PalletCommonAccountBasicCrossAccountIdRepr,PalletCommonAccountBasicCrossAccountIdRepr,u128)',
- Approved: '(u32,u32,PalletCommonAccountBasicCrossAccountIdRepr,PalletCommonAccountBasicCrossAccountIdRepr,u128)'
+ ItemCreated: '(u32,u32,PalletEvmAccountBasicCrossAccountIdRepr,u128)',
+ ItemDestroyed: '(u32,u32,PalletEvmAccountBasicCrossAccountIdRepr,u128)',
+ Transfer: '(u32,u32,PalletEvmAccountBasicCrossAccountIdRepr,PalletEvmAccountBasicCrossAccountIdRepr,u128)',
+ Approved: '(u32,u32,PalletEvmAccountBasicCrossAccountIdRepr,PalletEvmAccountBasicCrossAccountIdRepr,u128)'
}
},
/**
@@ -2240,7 +2240,7 @@
* Lookup297: pallet_common::pallet::Error<T>
**/
PalletCommonError: {
- _enum: ['CollectionNotFound', 'MustBeTokenOwner', 'NoPermission', 'PublicMintingNotAllowed', 'AddressNotInAllowlist', 'CollectionNameLimitExceeded', 'CollectionDescriptionLimitExceeded', 'CollectionTokenPrefixLimitExceeded', 'TotalCollectionsLimitExceeded', 'TokenVariableDataLimitExceeded', 'CollectionAdminCountExceeded', 'CollectionLimitBoundsExceeded', 'OwnerPermissionsCantBeReverted', 'TransferNotAllowed', 'AccountTokenLimitExceeded', 'CollectionTokenLimitExceeded', 'MetadataFlagFrozen', 'TokenNotFound', 'TokenValueTooLow', 'ApprovedValueTooLow', 'CantApproveMoreThanOwned', 'AddressIsZero', 'UnsupportedOperation']
+ _enum: ['CollectionNotFound', 'MustBeTokenOwner', 'NoPermission', 'PublicMintingNotAllowed', 'AddressNotInAllowlist', 'CollectionNameLimitExceeded', 'CollectionDescriptionLimitExceeded', 'CollectionTokenPrefixLimitExceeded', 'TotalCollectionsLimitExceeded', 'TokenVariableDataLimitExceeded', 'CollectionAdminCountExceeded', 'CollectionLimitBoundsExceeded', 'OwnerPermissionsCantBeReverted', 'TransferNotAllowed', 'AccountTokenLimitExceeded', 'CollectionTokenLimitExceeded', 'MetadataFlagFrozen', 'TokenNotFound', 'TokenValueTooLow', 'ApprovedValueTooLow', 'CantApproveMoreThanOwned', 'AddressIsZero', 'UnsupportedOperation', 'NotSufficientFounds']
},
/**
* Lookup299: pallet_fungible::pallet::Error<T>
@@ -2262,12 +2262,12 @@
_enum: ['NotRefungibleDataUsedToMintFungibleCollectionToken', 'WrongRefungiblePieces']
},
/**
- * Lookup305: pallet_nonfungible::ItemData<pallet_common::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
+ * Lookup305: pallet_nonfungible::ItemData<pallet_evm::account::BasicCrossAccountIdRepr<sp_core::crypto::AccountId32>>
**/
PalletNonfungibleItemData: {
constData: 'Bytes',
variableData: 'Bytes',
- owner: 'PalletCommonAccountBasicCrossAccountIdRepr'
+ owner: 'PalletEvmAccountBasicCrossAccountIdRepr'
},
/**
* Lookup306: pallet_nonfungible::pallet::Error<T>
@@ -2417,11 +2417,11 @@
**/
FrameSystemExtensionsCheckWeight: 'Null',
/**
- * Lookup345: pallet_template_transaction_payment::ChargeTransactionPayment<unique_runtime::Runtime>
+ * Lookup345: pallet_template_transaction_payment::ChargeTransactionPayment<opal_runtime::Runtime>
**/
PalletTemplateTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
/**
- * Lookup346: unique_runtime::Runtime
+ * Lookup346: opal_runtime::Runtime
**/
- UniqueRuntimeRuntime: 'Null'
+ OpalRuntimeRuntime: 'Null'
};
tests/src/interfaces/types-lookup.tsdiffbeforeafterboth--- a/tests/src/interfaces/types-lookup.ts
+++ b/tests/src/interfaces/types-lookup.ts
@@ -1364,12 +1364,12 @@
readonly isAddToAllowList: boolean;
readonly asAddToAllowList: {
readonly collectionId: u32;
- readonly address: PalletCommonAccountBasicCrossAccountIdRepr;
+ readonly address: PalletEvmAccountBasicCrossAccountIdRepr;
} & Struct;
readonly isRemoveFromAllowList: boolean;
readonly asRemoveFromAllowList: {
readonly collectionId: u32;
- readonly address: PalletCommonAccountBasicCrossAccountIdRepr;
+ readonly address: PalletEvmAccountBasicCrossAccountIdRepr;
} & Struct;
readonly isSetPublicAccessMode: boolean;
readonly asSetPublicAccessMode: {
@@ -1389,12 +1389,12 @@
readonly isAddCollectionAdmin: boolean;
readonly asAddCollectionAdmin: {
readonly collectionId: u32;
- readonly newAdminId: PalletCommonAccountBasicCrossAccountIdRepr;
+ readonly newAdminId: PalletEvmAccountBasicCrossAccountIdRepr;
} & Struct;
readonly isRemoveCollectionAdmin: boolean;
readonly asRemoveCollectionAdmin: {
readonly collectionId: u32;
- readonly accountId: PalletCommonAccountBasicCrossAccountIdRepr;
+ readonly accountId: PalletEvmAccountBasicCrossAccountIdRepr;
} & Struct;
readonly isSetCollectionSponsor: boolean;
readonly asSetCollectionSponsor: {
@@ -1412,13 +1412,13 @@
readonly isCreateItem: boolean;
readonly asCreateItem: {
readonly collectionId: u32;
- readonly owner: PalletCommonAccountBasicCrossAccountIdRepr;
+ readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
readonly data: UpDataStructsCreateItemData;
} & Struct;
readonly isCreateMultipleItems: boolean;
readonly asCreateMultipleItems: {
readonly collectionId: u32;
- readonly owner: PalletCommonAccountBasicCrossAccountIdRepr;
+ readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
readonly itemsData: Vec<UpDataStructsCreateItemData>;
} & Struct;
readonly isCreateMultipleItemsEx: boolean;
@@ -1440,28 +1440,28 @@
readonly isBurnFrom: boolean;
readonly asBurnFrom: {
readonly collectionId: u32;
- readonly from: PalletCommonAccountBasicCrossAccountIdRepr;
+ readonly from: PalletEvmAccountBasicCrossAccountIdRepr;
readonly itemId: u32;
readonly value: u128;
} & Struct;
readonly isTransfer: boolean;
readonly asTransfer: {
- readonly recipient: PalletCommonAccountBasicCrossAccountIdRepr;
+ readonly recipient: PalletEvmAccountBasicCrossAccountIdRepr;
readonly collectionId: u32;
readonly itemId: u32;
readonly value: u128;
} & Struct;
readonly isApprove: boolean;
readonly asApprove: {
- readonly spender: PalletCommonAccountBasicCrossAccountIdRepr;
+ readonly spender: PalletEvmAccountBasicCrossAccountIdRepr;
readonly collectionId: u32;
readonly itemId: u32;
readonly amount: u128;
} & Struct;
readonly isTransferFrom: boolean;
readonly asTransferFrom: {
- readonly from: PalletCommonAccountBasicCrossAccountIdRepr;
- readonly recipient: PalletCommonAccountBasicCrossAccountIdRepr;
+ readonly from: PalletEvmAccountBasicCrossAccountIdRepr;
+ readonly recipient: PalletEvmAccountBasicCrossAccountIdRepr;
readonly collectionId: u32;
readonly itemId: u32;
readonly value: u128;
@@ -1573,8 +1573,8 @@
readonly type: 'ItemOwner' | 'Admin' | 'None';
}
- /** @name PalletCommonAccountBasicCrossAccountIdRepr (172) */
- export interface PalletCommonAccountBasicCrossAccountIdRepr extends Enum {
+ /** @name PalletEvmAccountBasicCrossAccountIdRepr (172) */
+ export interface PalletEvmAccountBasicCrossAccountIdRepr extends Enum {
readonly isSubstrate: boolean;
readonly asSubstrate: AccountId32;
readonly isEthereum: boolean;
@@ -1616,7 +1616,7 @@
readonly isNft: boolean;
readonly asNft: Vec<UpDataStructsCreateNftExData>;
readonly isFungible: boolean;
- readonly asFungible: BTreeMap<PalletCommonAccountBasicCrossAccountIdRepr, u128>;
+ readonly asFungible: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;
readonly isRefungibleMultipleItems: boolean;
readonly asRefungibleMultipleItems: Vec<UpDataStructsCreateRefungibleExData>;
readonly isRefungibleMultipleOwners: boolean;
@@ -1628,14 +1628,14 @@
export interface UpDataStructsCreateNftExData extends Struct {
readonly constData: Bytes;
readonly variableData: Bytes;
- readonly owner: PalletCommonAccountBasicCrossAccountIdRepr;
+ readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
}
/** @name UpDataStructsCreateRefungibleExData (189) */
export interface UpDataStructsCreateRefungibleExData extends Struct {
readonly constData: Bytes;
readonly variableData: Bytes;
- readonly users: BTreeMap<PalletCommonAccountBasicCrossAccountIdRepr, u128>;
+ readonly users: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;
}
/** @name PalletTemplateTransactionPaymentCall (192) */
@@ -2068,7 +2068,7 @@
readonly isCollectionSponsorRemoved: boolean;
readonly asCollectionSponsorRemoved: u32;
readonly isCollectionAdminAdded: boolean;
- readonly asCollectionAdminAdded: ITuple<[u32, PalletCommonAccountBasicCrossAccountIdRepr]>;
+ readonly asCollectionAdminAdded: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
readonly isCollectionOwnedChanged: boolean;
readonly asCollectionOwnedChanged: ITuple<[u32, AccountId32]>;
readonly isCollectionSponsorSet: boolean;
@@ -2078,11 +2078,11 @@
readonly isSponsorshipConfirmed: boolean;
readonly asSponsorshipConfirmed: ITuple<[u32, AccountId32]>;
readonly isCollectionAdminRemoved: boolean;
- readonly asCollectionAdminRemoved: ITuple<[u32, PalletCommonAccountBasicCrossAccountIdRepr]>;
+ readonly asCollectionAdminRemoved: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
readonly isAllowListAddressRemoved: boolean;
- readonly asAllowListAddressRemoved: ITuple<[u32, PalletCommonAccountBasicCrossAccountIdRepr]>;
+ readonly asAllowListAddressRemoved: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
readonly isAllowListAddressAdded: boolean;
- readonly asAllowListAddressAdded: ITuple<[u32, PalletCommonAccountBasicCrossAccountIdRepr]>;
+ readonly asAllowListAddressAdded: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
readonly isCollectionLimitSet: boolean;
readonly asCollectionLimitSet: u32;
readonly isMintPermissionSet: boolean;
@@ -2105,13 +2105,13 @@
readonly isCollectionDestroyed: boolean;
readonly asCollectionDestroyed: u32;
readonly isItemCreated: boolean;
- readonly asItemCreated: ITuple<[u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, u128]>;
+ readonly asItemCreated: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;
readonly isItemDestroyed: boolean;
- readonly asItemDestroyed: ITuple<[u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, u128]>;
+ readonly asItemDestroyed: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;
readonly isTransfer: boolean;
- readonly asTransfer: ITuple<[u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, PalletCommonAccountBasicCrossAccountIdRepr, u128]>;
+ readonly asTransfer: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;
readonly isApproved: boolean;
- readonly asApproved: ITuple<[u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, PalletCommonAccountBasicCrossAccountIdRepr, u128]>;
+ readonly asApproved: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;
readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'ItemCreated' | 'ItemDestroyed' | 'Transfer' | 'Approved';
}
@@ -2462,7 +2462,8 @@
readonly isCantApproveMoreThanOwned: boolean;
readonly isAddressIsZero: boolean;
readonly isUnsupportedOperation: boolean;
- readonly type: 'CollectionNotFound' | 'MustBeTokenOwner' | 'NoPermission' | 'PublicMintingNotAllowed' | 'AddressNotInAllowlist' | 'CollectionNameLimitExceeded' | 'CollectionDescriptionLimitExceeded' | 'CollectionTokenPrefixLimitExceeded' | 'TotalCollectionsLimitExceeded' | 'TokenVariableDataLimitExceeded' | 'CollectionAdminCountExceeded' | 'CollectionLimitBoundsExceeded' | 'OwnerPermissionsCantBeReverted' | 'TransferNotAllowed' | 'AccountTokenLimitExceeded' | 'CollectionTokenLimitExceeded' | 'MetadataFlagFrozen' | 'TokenNotFound' | 'TokenValueTooLow' | 'ApprovedValueTooLow' | 'CantApproveMoreThanOwned' | 'AddressIsZero' | 'UnsupportedOperation';
+ readonly isNotSufficientFounds: boolean;
+ readonly type: 'CollectionNotFound' | 'MustBeTokenOwner' | 'NoPermission' | 'PublicMintingNotAllowed' | 'AddressNotInAllowlist' | 'CollectionNameLimitExceeded' | 'CollectionDescriptionLimitExceeded' | 'CollectionTokenPrefixLimitExceeded' | 'TotalCollectionsLimitExceeded' | 'TokenVariableDataLimitExceeded' | 'CollectionAdminCountExceeded' | 'CollectionLimitBoundsExceeded' | 'OwnerPermissionsCantBeReverted' | 'TransferNotAllowed' | 'AccountTokenLimitExceeded' | 'CollectionTokenLimitExceeded' | 'MetadataFlagFrozen' | 'TokenNotFound' | 'TokenValueTooLow' | 'ApprovedValueTooLow' | 'CantApproveMoreThanOwned' | 'AddressIsZero' | 'UnsupportedOperation' | 'NotSufficientFounds';
}
/** @name PalletFungibleError (299) */
@@ -2490,7 +2491,7 @@
export interface PalletNonfungibleItemData extends Struct {
readonly constData: Bytes;
readonly variableData: Bytes;
- readonly owner: PalletCommonAccountBasicCrossAccountIdRepr;
+ readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
}
/** @name PalletNonfungibleError (306) */
@@ -2643,7 +2644,7 @@
/** @name PalletTemplateTransactionPaymentChargeTransactionPayment (345) */
export interface PalletTemplateTransactionPaymentChargeTransactionPayment extends Compact<u128> {}
- /** @name UniqueRuntimeRuntime (346) */
- export type UniqueRuntimeRuntime = Null;
+ /** @name OpalRuntimeRuntime (346) */
+ export type OpalRuntimeRuntime = Null;
} // declare module
tests/src/interfaces/unique/definitions.tsdiffbeforeafterboth--- a/tests/src/interfaces/unique/definitions.ts
+++ b/tests/src/interfaces/unique/definitions.ts
@@ -22,7 +22,7 @@
isOptional?: true;
};
-const CROSS_ACCOUNT_ID_TYPE = 'PalletCommonAccountBasicCrossAccountIdRepr';
+const CROSS_ACCOUNT_ID_TYPE = 'PalletEvmAccountBasicCrossAccountIdRepr';
const collectionParam = {name: 'collection', type: 'u32'};
const tokenParam = {name: 'tokenId', type: 'u32'};
@@ -38,8 +38,8 @@
export default {
types,
rpc: {
- adminlist: fun('Get admin list', [collectionParam], 'Vec<PalletCommonAccountBasicCrossAccountIdRepr>'),
- allowlist: fun('Get allowlist', [collectionParam], 'Vec<PalletCommonAccountBasicCrossAccountIdRepr>'),
+ adminlist: fun('Get admin list', [collectionParam], 'Vec<PalletEvmAccountBasicCrossAccountIdRepr>'),
+ allowlist: fun('Get allowlist', [collectionParam], 'Vec<PalletEvmAccountBasicCrossAccountIdRepr>'),
accountTokens: fun('Get tokens owned by account', [collectionParam, crossAccountParam()], 'Vec<u32>'),
collectionTokens: fun('Get tokens contained in collection', [collectionParam], 'Vec<u32>'),
@@ -56,5 +56,6 @@
collectionStats: fun('Get collection stats', [], 'UpDataStructsCollectionStats'),
allowed: fun('Check if user is allowed to use collection', [collectionParam, crossAccountParam()], 'bool'),
nextSponsored: fun('Check if user is allowed to use collection', [collectionParam, crossAccountParam(), tokenParam], 'Option<u64>'),
+ effectiveCollectionLimits: fun('Get effective collection limits', [collectionParam], 'Option<UpDataStructsCollectionLimits>'),
},
};
tests/src/interfaces/unique/types.tsdiffbeforeafterboth--- a/tests/src/interfaces/unique/types.ts
+++ b/tests/src/interfaces/unique/types.ts
@@ -654,6 +654,9 @@
readonly type: 'ApplyExtrinsic' | 'Finalization' | 'Initialization';
}
+/** @name OpalRuntimeRuntime */
+export interface OpalRuntimeRuntime extends Null {}
+
/** @name OrmlVestingModuleCall */
export interface OrmlVestingModuleCall extends Enum {
readonly isClaim: boolean;
@@ -858,15 +861,6 @@
readonly amount: u128;
}
-/** @name PalletCommonAccountBasicCrossAccountIdRepr */
-export interface PalletCommonAccountBasicCrossAccountIdRepr extends Enum {
- readonly isSubstrate: boolean;
- readonly asSubstrate: AccountId32;
- readonly isEthereum: boolean;
- readonly asEthereum: H160;
- readonly type: 'Substrate' | 'Ethereum';
-}
-
/** @name PalletCommonError */
export interface PalletCommonError extends Enum {
readonly isCollectionNotFound: boolean;
@@ -892,7 +886,8 @@
readonly isCantApproveMoreThanOwned: boolean;
readonly isAddressIsZero: boolean;
readonly isUnsupportedOperation: boolean;
- readonly type: 'CollectionNotFound' | 'MustBeTokenOwner' | 'NoPermission' | 'PublicMintingNotAllowed' | 'AddressNotInAllowlist' | 'CollectionNameLimitExceeded' | 'CollectionDescriptionLimitExceeded' | 'CollectionTokenPrefixLimitExceeded' | 'TotalCollectionsLimitExceeded' | 'TokenVariableDataLimitExceeded' | 'CollectionAdminCountExceeded' | 'CollectionLimitBoundsExceeded' | 'OwnerPermissionsCantBeReverted' | 'TransferNotAllowed' | 'AccountTokenLimitExceeded' | 'CollectionTokenLimitExceeded' | 'MetadataFlagFrozen' | 'TokenNotFound' | 'TokenValueTooLow' | 'ApprovedValueTooLow' | 'CantApproveMoreThanOwned' | 'AddressIsZero' | 'UnsupportedOperation';
+ readonly isNotSufficientFounds: boolean;
+ readonly type: 'CollectionNotFound' | 'MustBeTokenOwner' | 'NoPermission' | 'PublicMintingNotAllowed' | 'AddressNotInAllowlist' | 'CollectionNameLimitExceeded' | 'CollectionDescriptionLimitExceeded' | 'CollectionTokenPrefixLimitExceeded' | 'TotalCollectionsLimitExceeded' | 'TokenVariableDataLimitExceeded' | 'CollectionAdminCountExceeded' | 'CollectionLimitBoundsExceeded' | 'OwnerPermissionsCantBeReverted' | 'TransferNotAllowed' | 'AccountTokenLimitExceeded' | 'CollectionTokenLimitExceeded' | 'MetadataFlagFrozen' | 'TokenNotFound' | 'TokenValueTooLow' | 'ApprovedValueTooLow' | 'CantApproveMoreThanOwned' | 'AddressIsZero' | 'UnsupportedOperation' | 'NotSufficientFounds';
}
/** @name PalletCommonEvent */
@@ -902,13 +897,13 @@
readonly isCollectionDestroyed: boolean;
readonly asCollectionDestroyed: u32;
readonly isItemCreated: boolean;
- readonly asItemCreated: ITuple<[u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, u128]>;
+ readonly asItemCreated: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;
readonly isItemDestroyed: boolean;
- readonly asItemDestroyed: ITuple<[u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, u128]>;
+ readonly asItemDestroyed: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;
readonly isTransfer: boolean;
- readonly asTransfer: ITuple<[u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, PalletCommonAccountBasicCrossAccountIdRepr, u128]>;
+ readonly asTransfer: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;
readonly isApproved: boolean;
- readonly asApproved: ITuple<[u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, PalletCommonAccountBasicCrossAccountIdRepr, u128]>;
+ readonly asApproved: ITuple<[u32, u32, PalletEvmAccountBasicCrossAccountIdRepr, PalletEvmAccountBasicCrossAccountIdRepr, u128]>;
readonly type: 'CollectionCreated' | 'CollectionDestroyed' | 'ItemCreated' | 'ItemDestroyed' | 'Transfer' | 'Approved';
}
@@ -935,6 +930,15 @@
readonly type: 'Executed';
}
+/** @name PalletEvmAccountBasicCrossAccountIdRepr */
+export interface PalletEvmAccountBasicCrossAccountIdRepr extends Enum {
+ readonly isSubstrate: boolean;
+ readonly asSubstrate: AccountId32;
+ readonly isEthereum: boolean;
+ readonly asEthereum: H160;
+ readonly type: 'Substrate' | 'Ethereum';
+}
+
/** @name PalletEvmCall */
export interface PalletEvmCall extends Enum {
readonly isWithdraw: boolean;
@@ -1085,7 +1089,7 @@
export interface PalletNonfungibleItemData extends Struct {
readonly constData: Bytes;
readonly variableData: Bytes;
- readonly owner: PalletCommonAccountBasicCrossAccountIdRepr;
+ readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
}
/** @name PalletRefungibleError */
@@ -1259,12 +1263,12 @@
readonly isAddToAllowList: boolean;
readonly asAddToAllowList: {
readonly collectionId: u32;
- readonly address: PalletCommonAccountBasicCrossAccountIdRepr;
+ readonly address: PalletEvmAccountBasicCrossAccountIdRepr;
} & Struct;
readonly isRemoveFromAllowList: boolean;
readonly asRemoveFromAllowList: {
readonly collectionId: u32;
- readonly address: PalletCommonAccountBasicCrossAccountIdRepr;
+ readonly address: PalletEvmAccountBasicCrossAccountIdRepr;
} & Struct;
readonly isSetPublicAccessMode: boolean;
readonly asSetPublicAccessMode: {
@@ -1284,12 +1288,12 @@
readonly isAddCollectionAdmin: boolean;
readonly asAddCollectionAdmin: {
readonly collectionId: u32;
- readonly newAdminId: PalletCommonAccountBasicCrossAccountIdRepr;
+ readonly newAdminId: PalletEvmAccountBasicCrossAccountIdRepr;
} & Struct;
readonly isRemoveCollectionAdmin: boolean;
readonly asRemoveCollectionAdmin: {
readonly collectionId: u32;
- readonly accountId: PalletCommonAccountBasicCrossAccountIdRepr;
+ readonly accountId: PalletEvmAccountBasicCrossAccountIdRepr;
} & Struct;
readonly isSetCollectionSponsor: boolean;
readonly asSetCollectionSponsor: {
@@ -1307,13 +1311,13 @@
readonly isCreateItem: boolean;
readonly asCreateItem: {
readonly collectionId: u32;
- readonly owner: PalletCommonAccountBasicCrossAccountIdRepr;
+ readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
readonly data: UpDataStructsCreateItemData;
} & Struct;
readonly isCreateMultipleItems: boolean;
readonly asCreateMultipleItems: {
readonly collectionId: u32;
- readonly owner: PalletCommonAccountBasicCrossAccountIdRepr;
+ readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
readonly itemsData: Vec<UpDataStructsCreateItemData>;
} & Struct;
readonly isCreateMultipleItemsEx: boolean;
@@ -1335,28 +1339,28 @@
readonly isBurnFrom: boolean;
readonly asBurnFrom: {
readonly collectionId: u32;
- readonly from: PalletCommonAccountBasicCrossAccountIdRepr;
+ readonly from: PalletEvmAccountBasicCrossAccountIdRepr;
readonly itemId: u32;
readonly value: u128;
} & Struct;
readonly isTransfer: boolean;
readonly asTransfer: {
- readonly recipient: PalletCommonAccountBasicCrossAccountIdRepr;
+ readonly recipient: PalletEvmAccountBasicCrossAccountIdRepr;
readonly collectionId: u32;
readonly itemId: u32;
readonly value: u128;
} & Struct;
readonly isApprove: boolean;
readonly asApprove: {
- readonly spender: PalletCommonAccountBasicCrossAccountIdRepr;
+ readonly spender: PalletEvmAccountBasicCrossAccountIdRepr;
readonly collectionId: u32;
readonly itemId: u32;
readonly amount: u128;
} & Struct;
readonly isTransferFrom: boolean;
readonly asTransferFrom: {
- readonly from: PalletCommonAccountBasicCrossAccountIdRepr;
- readonly recipient: PalletCommonAccountBasicCrossAccountIdRepr;
+ readonly from: PalletEvmAccountBasicCrossAccountIdRepr;
+ readonly recipient: PalletEvmAccountBasicCrossAccountIdRepr;
readonly collectionId: u32;
readonly itemId: u32;
readonly value: u128;
@@ -1413,7 +1417,7 @@
readonly isCollectionSponsorRemoved: boolean;
readonly asCollectionSponsorRemoved: u32;
readonly isCollectionAdminAdded: boolean;
- readonly asCollectionAdminAdded: ITuple<[u32, PalletCommonAccountBasicCrossAccountIdRepr]>;
+ readonly asCollectionAdminAdded: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
readonly isCollectionOwnedChanged: boolean;
readonly asCollectionOwnedChanged: ITuple<[u32, AccountId32]>;
readonly isCollectionSponsorSet: boolean;
@@ -1423,11 +1427,11 @@
readonly isSponsorshipConfirmed: boolean;
readonly asSponsorshipConfirmed: ITuple<[u32, AccountId32]>;
readonly isCollectionAdminRemoved: boolean;
- readonly asCollectionAdminRemoved: ITuple<[u32, PalletCommonAccountBasicCrossAccountIdRepr]>;
+ readonly asCollectionAdminRemoved: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
readonly isAllowListAddressRemoved: boolean;
- readonly asAllowListAddressRemoved: ITuple<[u32, PalletCommonAccountBasicCrossAccountIdRepr]>;
+ readonly asAllowListAddressRemoved: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
readonly isAllowListAddressAdded: boolean;
- readonly asAllowListAddressAdded: ITuple<[u32, PalletCommonAccountBasicCrossAccountIdRepr]>;
+ readonly asAllowListAddressAdded: ITuple<[u32, PalletEvmAccountBasicCrossAccountIdRepr]>;
readonly isCollectionLimitSet: boolean;
readonly asCollectionLimitSet: u32;
readonly isMintPermissionSet: boolean;
@@ -1722,9 +1726,6 @@
readonly stateVersion: u8;
}
-/** @name UniqueRuntimeRuntime */
-export interface UniqueRuntimeRuntime extends Null {}
-
/** @name UpDataStructsAccessMode */
export interface UpDataStructsAccessMode extends Enum {
readonly isNormal: boolean;
@@ -1816,7 +1817,7 @@
readonly isNft: boolean;
readonly asNft: Vec<UpDataStructsCreateNftExData>;
readonly isFungible: boolean;
- readonly asFungible: BTreeMap<PalletCommonAccountBasicCrossAccountIdRepr,u128>;
+ readonly asFungible: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr,u128>;
readonly isRefungibleMultipleItems: boolean;
readonly asRefungibleMultipleItems: Vec<UpDataStructsCreateRefungibleExData>;
readonly isRefungibleMultipleOwners: boolean;
@@ -1834,7 +1835,7 @@
export interface UpDataStructsCreateNftExData extends Struct {
readonly constData: Bytes;
readonly variableData: Bytes;
- readonly owner: PalletCommonAccountBasicCrossAccountIdRepr;
+ readonly owner: PalletEvmAccountBasicCrossAccountIdRepr;
}
/** @name UpDataStructsCreateReFungibleData */
@@ -1848,7 +1849,7 @@
export interface UpDataStructsCreateRefungibleExData extends Struct {
readonly constData: Bytes;
readonly variableData: Bytes;
- readonly users: BTreeMap<PalletCommonAccountBasicCrossAccountIdRepr, u128>;
+ readonly users: BTreeMap<PalletEvmAccountBasicCrossAccountIdRepr, u128>;
}
/** @name UpDataStructsMetaUpdatePermission */
tests/src/limits.test.tsdiffbeforeafterboth--- a/tests/src/limits.test.ts
+++ b/tests/src/limits.test.ts
@@ -395,4 +395,73 @@
expect(aliceBalanceAfterSponsoredTransaction1 < aliceBalanceBefore).to.be.true;
//expect(aliceBalanceAfterSponsoredTransaction1).to.be.lessThan(aliceBalanceBefore);
});
+
+ it('Effective collection limits', async () => {
+ await usingApi(async (api) => {
+ const collectionId = await createCollectionExpectSuccess({mode: {type: 'NFT'}});
+
+ { // Check that limits is undefined
+ const collection = await api.rpc.unique.collectionById(collectionId);
+ expect(collection.isSome).to.be.true;
+ const limits = collection.unwrap().limits;
+ expect(limits).to.be.any;
+
+ expect(limits.accountTokenOwnershipLimit.toHuman()).to.be.null;
+ expect(limits.sponsoredDataSize.toHuman()).to.be.null;
+ expect(limits.sponsoredDataRateLimit.toHuman()).to.be.null;
+ expect(limits.tokenLimit.toHuman()).to.be.null;
+ expect(limits.sponsorTransferTimeout.toHuman()).to.be.null;
+ expect(limits.sponsorApproveTimeout.toHuman()).to.be.null;
+ expect(limits.ownerCanTransfer.toHuman()).to.be.null;
+ expect(limits.ownerCanDestroy.toHuman()).to.be.null;
+ expect(limits.transfersEnabled.toHuman()).to.be.null;
+ }
+
+ { // Check that limits is undefined for non-existent collection
+ const limits = await api.rpc.unique.effectiveCollectionLimits(11111);
+ expect(limits.toHuman()).to.be.null;
+ }
+
+ { // Check that default values defined for collection limits
+ const limitsOpt = await api.rpc.unique.effectiveCollectionLimits(collectionId);
+ expect(limitsOpt.isNone).to.be.false;
+ const limits = limitsOpt.unwrap();
+
+ expect(limits.accountTokenOwnershipLimit.toHuman()).to.be.eq('100,000');
+ expect(limits.sponsoredDataSize.toHuman()).to.be.eq('2,048');
+ expect(limits.sponsoredDataRateLimit.toHuman()).to.be.eq('SponsoringDisabled');
+ expect(limits.tokenLimit.toHuman()).to.be.eq('4,294,967,295');
+ expect(limits.sponsorTransferTimeout.toHuman()).to.be.eq('5');
+ expect(limits.sponsorApproveTimeout.toHuman()).to.be.eq('5');
+ expect(limits.ownerCanTransfer.toHuman()).to.be.true;
+ expect(limits.ownerCanDestroy.toHuman()).to.be.true;
+ expect(limits.transfersEnabled.toHuman()).to.be.true;
+ }
+
+ { //Check the values for collection limits
+ await setCollectionLimitsExpectSuccess(alice, collectionId, {
+ accountTokenOwnershipLimit: 99_999,
+ sponsoredDataSize: 1024,
+ tokenLimit: 123,
+ transfersEnabled: false,
+ });
+
+ const limitsOpt = await api.rpc.unique.effectiveCollectionLimits(collectionId);
+ expect(limitsOpt.isNone).to.be.false;
+ const limits = limitsOpt.unwrap();
+
+ expect(limits.accountTokenOwnershipLimit.toHuman()).to.be.eq('99,999');
+ expect(limits.sponsoredDataSize.toHuman()).to.be.eq('1,024');
+ expect(limits.sponsoredDataRateLimit.toHuman()).to.be.eq('SponsoringDisabled');
+ expect(limits.tokenLimit.toHuman()).to.be.eq('123');
+ expect(limits.sponsorTransferTimeout.toHuman()).to.be.eq('5');
+ expect(limits.sponsorApproveTimeout.toHuman()).to.be.eq('5');
+ expect(limits.ownerCanTransfer.toHuman()).to.be.true;
+ expect(limits.ownerCanDestroy.toHuman()).to.be.true;
+ expect(limits.transfersEnabled.toHuman()).to.be.false;
+ }
+ });
+ });
});
+
+
tests/src/util/helpers.tsdiffbeforeafterboth--- a/tests/src/util/helpers.ts
+++ b/tests/src/util/helpers.ts
@@ -344,15 +344,12 @@
// Run the CreateCollection transaction
const alicePrivateKey = privateKey('//Alice');
const tx = api.tx.unique.createCollectionEx({name: strToUTF16(name), description: strToUTF16(description), tokenPrefix: strToUTF16(tokenPrefix), mode: modeprm as any});
- const events = await expect(submitTransactionExpectFailAsync(alicePrivateKey, tx)).to.be.rejected;
- const result = getCreateCollectionResult(events);
+ await expect(submitTransactionExpectFailAsync(alicePrivateKey, tx)).to.be.rejected;
// Get number of collections after the transaction
const collectionCountAfter = await getCreatedCollectionCount(api);
// What to expect
- // tslint:disable-next-line:no-unused-expression
- expect(result.success).to.be.false;
expect(collectionCountAfter).to.be.equal(collectionCountBefore, 'Error: Collection with incorrect data created.');
});
}
@@ -839,6 +836,13 @@
return balance;
}
+export async function transferBalanceTo(api: ApiPromise, source: IKeyringPair, target: string, amount = 1000n * UNIQUE) {
+ const tx = api.tx.balances.transfer(target, amount);
+ const events = await submitTransactionAsync(source, tx);
+ const result = getGenericResult(events);
+ expect(result.success).to.be.true;
+}
+
export async function
scheduleTransferExpectSuccess(
collectionId: number,