Subscan custom type most cases are consistent with polkadot.js type.json, due to language characteristics, there are some inconsistencies between struct and enum
{
"typeName": "inheritTypeName"
}
Example
{
"address": "H256"
}
{
"typeName": {
"type": "struct",
"type_mapping": [
[
"field1",
"inheritTypeName"
]
]
}
}
Example
{
"BalanceLock<Balance>": {
"type": "struct",
"type_mapping": [
[
"id",
"LockIdentifier"
]
]
}
}
{
"typeName": {
"type": "enum",
"type_mapping": [
[
"field1",
"inheritTypeName"
]
]
}
}
Example
{
"RedeemStrategy": {
"type": "enum",
"type_mapping": [
[
"Immediately",
"Null"
]
]
}
}
[scale.go] https://github.com/itering/scale.go/tree/master/source