Update metadata (#5499)

* Updata metadata

* Rebuild

* Adjust generation
This commit is contained in:
Jaco
2023-02-19 12:36:41 +02:00
committed by GitHub
parent cda07dfa0b
commit eb5c888cb8
44 changed files with 7787 additions and 9447 deletions
+3 -3
View File
@@ -42,9 +42,9 @@
"@polkadot/types-codec": "9.14.2-7-x",
"@polkadot/types-create": "9.14.2-7-x",
"@polkadot/types-support": "9.14.2-7-x",
"@polkadot/util": "^10.4.1",
"@polkadot/util-crypto": "^10.4.1",
"@polkadot/x-ws": "^10.4.1",
"@polkadot/util": "^10.4.2",
"@polkadot/util-crypto": "^10.4.2",
"@polkadot/x-ws": "^10.4.2",
"handlebars": "^4.7.7",
"websocket": "^1.0.34",
"yargs": "^17.6.2"
+2 -4
View File
@@ -50,16 +50,14 @@ function entrySignature (lookup: PortableRegistry, allDefs: Record<string, Modul
storageEntry.modifier.isOptional
? 'Option'
: null,
defValue.lookupName
? undefined
: defValue.type
defValue.lookupName || defValue.type
]);
return [
storageEntry.modifier.isOptional,
keyDefs.map((k) => formatType(registry, allDefs, k.lookupName || k.type, imports)).join(', '),
keyTypes.map((t, i) => `arg${keyTypes.length === 1 ? '' : (i + 1)}: ${t}`).join(', '),
formatType(registry, allDefs, outputType, imports)
outputType.lookupName || formatType(registry, allDefs, outputType, imports)
];
}