Skip to content

Commit 1d847fd

Browse files
author
Arjan Zijderveld
committed
Type registry update
1 parent 7cdddec commit 1d847fd

File tree

2 files changed

+141
-2
lines changed

2 files changed

+141
-2
lines changed

scalecodec/type_registry/default.json

+111-2
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,8 @@
434434
"type_mapping": [
435435
["value", "Null"],
436436
["value", "RawBabePreDigestPrimary"],
437-
["value", "RawBabePreDigestSecondary"]
437+
["value", "RawBabePreDigestSecondaryPlain"],
438+
["value", "RawBabePreDigestSecondaryVRF"]
438439
]
439440
},
440441
"RawBabePreDigestPrimary": {
@@ -446,13 +447,22 @@
446447
["vrfProof", "VrfProof"]
447448
]
448449
},
449-
"RawBabePreDigestSecondary": {
450+
"RawBabePreDigestSecondaryPlain": {
450451
"type": "struct",
451452
"type_mapping": [
452453
["authorityIndex", "u32"],
453454
["slotNumber", "SlotNumber"]
454455
]
455456
},
457+
"RawBabePreDigestSecondaryVRF": {
458+
"type": "struct",
459+
"type_mapping": [
460+
["authorityIndex", "u32"],
461+
["slotNumber", "SlotNumber"],
462+
["vrfOutput", "VrfData"],
463+
["vrfProof", "VrfProof"]
464+
]
465+
},
456466
"ReferendumInfo<BlockNumber, Proposal>": {
457467
"type": "struct",
458468
"type_mapping": [
@@ -1017,6 +1027,105 @@
10171027
["read", "Weight"],
10181028
["write", "Weight"]
10191029
]
1030+
},
1031+
"Renouncing": {
1032+
"type": "enum",
1033+
"type_mapping": [
1034+
["Member", "Null"],
1035+
["RunnerUp", "Null"],
1036+
["Candidate", "Compact<u32>"]
1037+
]
1038+
},
1039+
"ExtrinsicsWeight": {
1040+
"type": "struct",
1041+
"type_mapping": [
1042+
["normal", "Weight"],
1043+
["operational", "Weight"]
1044+
]
1045+
},
1046+
"ValidatorCount": "u32",
1047+
"KeyOwnerProof": {
1048+
"type": "struct",
1049+
"type_mapping": [
1050+
["session", "SessionIndex"],
1051+
["trieNodes", "Vec<Bytes>"],
1052+
["validatorCount", "ValidatorCount"]
1053+
]
1054+
},
1055+
"DefunctVoter": {
1056+
"type": "struct",
1057+
"type_mapping": [
1058+
["who", "AccountId"],
1059+
["voteCount", "Compact<u32>"],
1060+
["candidateCount", "Compact<u32>"]
1061+
]
1062+
},
1063+
"ElectionSize": {
1064+
"type": "struct",
1065+
"type_mapping": [
1066+
["validators", "ValidatorIndex"],
1067+
["nominators", "NominatorIndex"]
1068+
]
1069+
},
1070+
"AllowedSlots": {
1071+
"type": "enum",
1072+
"value_list": [
1073+
"PrimarySlots",
1074+
"PrimaryAndSecondaryPlainSlots",
1075+
"PrimaryAndSecondaryVRFSlots"
1076+
]
1077+
},
1078+
"NextConfigDescriptorV1": {
1079+
"type": "struct",
1080+
"type_mapping": [
1081+
["c", "(u64, u64)"],
1082+
["allowedSlots", "AllowedSlots"]
1083+
]
1084+
},
1085+
"NextConfigDescriptor": {
1086+
"type": "enum",
1087+
"type_mapping": [
1088+
["V0", "Null"],
1089+
["V1", "NextConfigDescriptorV1"]
1090+
]
1091+
},
1092+
"StatementKind": {
1093+
"type": "enum",
1094+
"value_list": [
1095+
"Regular",
1096+
"Saft"
1097+
]
1098+
},
1099+
"schedule::Priority": "u8",
1100+
"GrandpaEquivocation": {
1101+
"type": "struct",
1102+
"type_mapping": [
1103+
["roundNumber", "u64"],
1104+
["identity", "AuthorityId"],
1105+
["first", "(GrandpaPrevote, AuthoritySignature)"],
1106+
["second", "(GrandpaPrevote, AuthoritySignature)"]
1107+
]
1108+
},
1109+
"GrandpaPrevote": {
1110+
"type": "struct",
1111+
"type_mapping": [
1112+
["targetHash", "Hash"],
1113+
["targetNumber", "BlockNumber"]
1114+
]
1115+
},
1116+
"Equivocation": {
1117+
"type": "enum",
1118+
"type_mapping": [
1119+
["Prevote", "GrandpaEquivocation"],
1120+
["Precommit", "GrandpaEquivocation"]
1121+
]
1122+
},
1123+
"EquivocationProof": {
1124+
"type": "struct",
1125+
"type_mapping": [
1126+
["setId", "SetId"],
1127+
["equivocation", "Equivocation"]
1128+
]
10201129
}
10211130
}
10221131
}
+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"runtime_id": 1,
3+
"types": {
4+
"Address": "AccountIdAddress",
5+
"BlockNumber": "U32",
6+
"LeasePeriod": "BlockNumber",
7+
"Weight": "u64",
8+
"SessionKeysPolkadot": {
9+
"type": "struct",
10+
"type_mapping": [
11+
["grandpa", "AccountId"],
12+
["babe", "AccountId"],
13+
["im_online", "AccountId"],
14+
["authority_discovery", "AccountId"],
15+
["parachains", "AccountId"]
16+
]
17+
},
18+
"Keys": "SessionKeysPolkadot",
19+
"DispatchInfo": {
20+
"type": "struct",
21+
"type_mapping": [
22+
["weight", "Weight"],
23+
["class", "DispatchClass"],
24+
["paysFee", "Pays"]
25+
]
26+
}
27+
},
28+
"versioning": [
29+
]
30+
}

0 commit comments

Comments
 (0)