fix: Define MultiAddress inline for v14+ metadata compatibility

This commit is contained in:
2026-02-03 05:54:06 +03:00
parent ef3032497c
commit d15497b1fb
+283 -71
View File
@@ -112,8 +112,14 @@
"PriorLock": {
"type": "struct",
"type_mapping": [
["blockNumber", "BlockNumber"],
["balance", "Balance"]
[
"blockNumber",
"BlockNumber"
],
[
"balance",
"Balance"
]
]
},
"ReferendumInfoFinished": {
@@ -187,8 +193,14 @@
"VotingDirectVote": {
"type": "struct",
"type_mapping": [
["referendumIndex", "ReferendumIndex"],
["accountVote", "AccountVote"]
[
"referendumIndex",
"ReferendumIndex"
],
[
"accountVote",
"AccountVote"
]
]
},
"VotingDirect": {
@@ -582,16 +594,31 @@
"FullIdentification": {
"type": "struct",
"type_mapping": [
["total", "Compact<Balance>"],
["own", "Compact<Balance>"],
["others", "Vec<IndividualExposure>"]
[
"total",
"Compact<Balance>"
],
[
"own",
"Compact<Balance>"
],
[
"others",
"Vec<IndividualExposure>"
]
]
},
"IdentificationTuple": {
"type": "struct",
"type_mapping": [
["validatorId", "ValidatorId"],
["exposure", "FullIdentification"]
[
"validatorId",
"ValidatorId"
],
[
"exposure",
"FullIdentification"
]
]
},
"SetId": "u64",
@@ -629,8 +656,14 @@
"NextAuthority": {
"type": "struct",
"type_mapping": [
["AuthorityId", "AuthorityId"],
["weight", "AuthorityWeight"]
[
"AuthorityId",
"AuthorityId"
],
[
"weight",
"AuthorityWeight"
]
]
},
"BeefyCommitment": {
@@ -669,9 +702,18 @@
"BeefyNextAuthoritySet": {
"type": "struct",
"type_mapping": [
["id", "ValidatorSetId"],
["len", "u32"],
["root", "MerkleRoot"]
[
"id",
"ValidatorSetId"
],
[
"len",
"u32"
],
[
"root",
"MerkleRoot"
]
]
},
"MerkleRoot": "Hash",
@@ -806,8 +848,14 @@
"IdentityInfoAdditional": {
"type": "struct",
"type_mapping": [
["field", "Data"],
["value", "Data"]
[
"field",
"Data"
],
[
"value",
"Data"
]
]
},
"IdentityInfo": {
@@ -1386,8 +1434,14 @@
"RegistrationJudgement": {
"type": "struct",
"type_mapping": [
["registrarIndex", "RegistrarIndex"],
["judgement", "Judgement"]
[
"registrarIndex",
"RegistrarIndex"
],
[
"judgement",
"Judgement"
]
]
},
"Registration": {
@@ -2142,7 +2196,16 @@
"SlotRange": {
"type": "enum",
"value_list": [
"ZeroZero", "ZeroOne", "ZeroTwo", "ZeroThree", "OneOne", "OneTwo", "OneThree", "TwoTwo", "TwoThree", "ThreeThree"
"ZeroZero",
"ZeroOne",
"ZeroTwo",
"ZeroThree",
"OneOne",
"OneTwo",
"OneThree",
"TwoTwo",
"TwoThree",
"ThreeThree"
]
},
"WinningDataEntry": "Option<(AccountId, ParaId, BalanceOf)>",
@@ -2368,8 +2431,14 @@
"UnappliedSlashOther": {
"type": "struct",
"type_mapping": [
["account", "AccountId"],
["amount", "Balance"]
[
"account",
"AccountId"
],
[
"amount",
"Balance"
]
]
},
"UnappliedSlash<AccountId, BalanceOf>": {
@@ -2403,62 +2472,155 @@
"SessionKeys3": {
"type": "struct",
"type_mapping": [
["grandpa", "AccountId"],
["babe", "AccountId"],
["im_online", "AccountId"]
[
"grandpa",
"AccountId"
],
[
"babe",
"AccountId"
],
[
"im_online",
"AccountId"
]
]
},
"SessionKeys4": {
"type": "struct",
"type_mapping": [
["grandpa", "AccountId"],
["babe", "AccountId"],
["im_online", "AccountId"],
["authority_discovery", "AccountId"]
[
"grandpa",
"AccountId"
],
[
"babe",
"AccountId"
],
[
"im_online",
"AccountId"
],
[
"authority_discovery",
"AccountId"
]
]
},
"SessionKeys5": {
"type": "struct",
"type_mapping": [
["grandpa", "AccountId"],
["babe", "AccountId"],
["im_online", "AccountId"],
["authority_discovery", "AccountId"],
["parachains", "AccountId"]
[
"grandpa",
"AccountId"
],
[
"babe",
"AccountId"
],
[
"im_online",
"AccountId"
],
[
"authority_discovery",
"AccountId"
],
[
"parachains",
"AccountId"
]
]
},
"SessionKeys6B": {
"type": "struct",
"type_mapping": [
["grandpa", "AccountId"],
["babe", "AccountId"],
["im_online", "AccountId"],
["authority_discovery", "AccountId"],
["parachains", "AccountId"],
["beefy", "Beefy"]
[
"grandpa",
"AccountId"
],
[
"babe",
"AccountId"
],
[
"im_online",
"AccountId"
],
[
"authority_discovery",
"AccountId"
],
[
"parachains",
"AccountId"
],
[
"beefy",
"Beefy"
]
]
},
"SessionKeys6": {
"type": "struct",
"type_mapping": [
["grandpa", "AccountId"],
["babe", "AccountId"],
["im_online", "AccountId"],
["para_validator", "AccountId"],
["para_assignment", "AccountId"],
["authority_discovery", "AccountId"]
[
"grandpa",
"AccountId"
],
[
"babe",
"AccountId"
],
[
"im_online",
"AccountId"
],
[
"para_validator",
"AccountId"
],
[
"para_assignment",
"AccountId"
],
[
"authority_discovery",
"AccountId"
]
]
},
"SessionKeys7B": {
"type": "struct",
"type_mapping": [
["grandpa", "AccountId"],
["babe", "AccountId"],
["im_online", "AccountId"],
["para_validator", "AccountId"],
["para_assignment", "AccountId"],
["authority_discovery", "AccountId"],
["beefy", "Beefy"]
[
"grandpa",
"AccountId"
],
[
"babe",
"AccountId"
],
[
"im_online",
"AccountId"
],
[
"para_validator",
"AccountId"
],
[
"para_assignment",
"AccountId"
],
[
"authority_discovery",
"AccountId"
],
[
"beefy",
"Beefy"
]
]
},
"Keys": "SessionKeysSubstrate",
@@ -3194,17 +3356,29 @@
"OffchainAccuracyCompact": "Compact<OffchainAccuracy>",
"CompactScoreCompact": {
"type": "struct",
"type_mapping": [
["validatorIndex", "ValidatorIndexCompact"],
["offchainAccuracy", "OffchainAccuracyCompact"]
"type_mapping": [
[
"validatorIndex",
"ValidatorIndexCompact"
],
[
"offchainAccuracy",
"OffchainAccuracyCompact"
]
]
},
"CompactScore": {
"type": "struct",
"type_mapping": [
["validatorIndex", "ValidatorIndex"],
["offchainAccuracy", "OffchainAccuracy"]
"type_mapping": [
[
"validatorIndex",
"ValidatorIndex"
],
[
"offchainAccuracy",
"OffchainAccuracy"
]
]
},
"CompactAssignmentsFrom258": {
"type": "struct",
@@ -3447,11 +3621,20 @@
},
"DeferredOffenceOf": {
"type": "struct",
"type_mapping": [
["offences", "Vec<OffenceDetails>"],
["perc", "Vec<Perbill>"],
["session", "SessionIndex"]
"type_mapping": [
[
"offences",
"Vec<OffenceDetails>"
],
[
"perc",
"Vec<Perbill>"
],
[
"session",
"SessionIndex"
]
]
},
"Statement": {
"type": "enum",
@@ -3737,8 +3920,14 @@
"TaskAddress": {
"type": "struct",
"type_mapping": [
["blockNumber", "BlockNumber"],
["index", "u32"]
[
"blockNumber",
"BlockNumber"
],
[
"index",
"u32"
]
]
},
"ValidationFunctionParams": {
@@ -3813,7 +4002,31 @@
]
},
"ModuleId": "LockIdentifier",
"MultiAddress": "GenericMultiAddress",
"MultiAddress": {
"type": "enum",
"type_mapping": [
[
"Id",
"AccountId"
],
[
"Index",
"Compact<u32>"
],
[
"Raw",
"Bytes"
],
[
"Address32",
"H256"
],
[
"Address20",
"H160"
]
]
},
"MultiSigner": {
"type": "enum",
"type_mapping": [
@@ -4983,7 +5196,7 @@
"maxMessageSize",
"Compact<u32>"
],
[
[
"maxCapacity",
"Compact<u32>"
]
@@ -5303,7 +5516,7 @@
"debt",
"u64"
],
[
[
"haltOnError",
"bool"
],
@@ -6013,11 +6226,11 @@
"haltOnError",
"bool"
],
[
[
"orders",
"Vec<XcmOrderV1>"
],
[
[
"instructions",
"Vec<XcmV1>"
]
@@ -6456,7 +6669,7 @@
],
[
"ClaimAsset",
"InstructionV2::ClaimAsset"
"InstructionV2::ClaimAsset"
],
[
"Trap",
@@ -7720,7 +7933,6 @@
"KeyValue": "(StorageKey, StorageData)",
"KeyTypeId": "u32",
"LookupSource": "Address",
"LookupTarget": "AccountId",
"Perbill": "u32",
"Permill": "u32",