Apply wildcard type matches (renamed pallets) (#4741)

* Apply wildcard type matches (renamed pallets)

* typo
This commit is contained in:
Jaco
2022-04-14 08:14:04 +03:00
committed by GitHub
parent 9345a18de0
commit 775fff5333
2 changed files with 12 additions and 3 deletions
+7
View File
@@ -1,5 +1,12 @@
# CHANGELOG
## master
Changes:
- Apply windcard matches for `democracy::vote::Vote` and `identity::type::Data`
## 8.0.2 Apr 11, 2022
Changes:
@@ -24,9 +24,7 @@ const PRIMITIVE_ALIAS: Record<string, string> = {
// These are types where we have a specific decoding/encoding override + helpers
const PATHS_ALIAS = splitNamespace([
// these have a specific encoding or logic (for pallets)
'pallet_democracy::vote::Vote',
'pallet_identity::types::Data',
// full matching on exact names...
// these are well-known types with additional encoding
'sp_core::crypto::AccountId32',
'sp_runtime::generic::era::Era',
@@ -34,6 +32,10 @@ const PATHS_ALIAS = splitNamespace([
// ethereum overrides (Frontier, Moonbeam, Polkadot claims)
'account::AccountId20',
'polkadot_runtime_common::claims::EthereumAddress',
// wildcard matching in place...
// these have a specific encoding or logic, use a wildcard for {pallet, darwinia}_democracy
'*_democracy::vote::Vote',
'*_identity::types::Data',
// shorten some well-known types
'primitive_types::*',
'sp_arithmetic::per_things::*',