Add type string generation to PortableRegistry (#3802)

* Add type string generation to PortableRegistry

* createClass updates

* Add missing field
This commit is contained in:
Jaco
2021-07-23 11:51:40 +02:00
committed by GitHub
parent 091d2d30e0
commit 8972d2ffe9
12 changed files with 242 additions and 210 deletions
+76 -76
View File
@@ -1869,7 +1869,7 @@ __metadata:
"@babel/runtime": ^7.14.6
"@polkadot/api": 5.1.2-7
"@polkadot/types": 5.1.2-7
"@polkadot/util": ^7.0.2
"@polkadot/util": ^7.0.3-0
rxjs: ^7.2.0
languageName: unknown
linkType: soft
@@ -1880,12 +1880,12 @@ __metadata:
dependencies:
"@babel/runtime": ^7.14.6
"@polkadot/api": 5.1.2-7
"@polkadot/keyring": ^7.0.2
"@polkadot/keyring": ^7.0.3-0
"@polkadot/rpc-core": 5.1.2-7
"@polkadot/rpc-provider": 5.1.2-7
"@polkadot/types": 5.1.2-7
"@polkadot/util": ^7.0.2
"@polkadot/util-crypto": ^7.0.2
"@polkadot/util": ^7.0.3-0
"@polkadot/util-crypto": ^7.0.3-0
rxjs: ^7.2.0
languageName: unknown
linkType: soft
@@ -1896,13 +1896,13 @@ __metadata:
dependencies:
"@babel/runtime": ^7.14.6
"@polkadot/api-derive": 5.1.2-7
"@polkadot/keyring": ^7.0.2
"@polkadot/keyring": ^7.0.3-0
"@polkadot/rpc-core": 5.1.2-7
"@polkadot/rpc-provider": 5.1.2-7
"@polkadot/types": 5.1.2-7
"@polkadot/types-known": 5.1.2-7
"@polkadot/util": ^7.0.2
"@polkadot/util-crypto": ^7.0.2
"@polkadot/util": ^7.0.3-0
"@polkadot/util-crypto": ^7.0.3-0
eventemitter3: ^4.0.7
rxjs: ^7.2.0
languageName: unknown
@@ -2001,26 +2001,26 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/keyring@npm:^7.0.2":
version: 7.0.2
resolution: "@polkadot/keyring@npm:7.0.2"
"@polkadot/keyring@npm:^7.0.3-0":
version: 7.0.3-0
resolution: "@polkadot/keyring@npm:7.0.3-0"
dependencies:
"@babel/runtime": ^7.14.6
"@polkadot/util": 7.0.2
"@polkadot/util-crypto": 7.0.2
"@polkadot/util": 7.0.3-0
"@polkadot/util-crypto": 7.0.3-0
peerDependencies:
"@polkadot/util": 7.0.2
"@polkadot/util-crypto": 7.0.2
checksum: f963ca2f474f95f9abacf255b22f95bd188f30e4b288d0703b484e6abc54d76b3244f9a9170af763be04a04fc8198ad1481c22a00e14a1dea449847a8360bd43
"@polkadot/util": 7.0.3-0
"@polkadot/util-crypto": 7.0.3-0
checksum: 53ea603e40ffda04bb41e3478f7c5385f04905adf4f8ec577419b087691f2d878a5fec53cb02752bde22086fd311242e421bfae2ffb0367b619b16543af53cff
languageName: node
linkType: hard
"@polkadot/networks@npm:7.0.2, @polkadot/networks@npm:^7.0.2":
version: 7.0.2
resolution: "@polkadot/networks@npm:7.0.2"
"@polkadot/networks@npm:7.0.3-0, @polkadot/networks@npm:^7.0.3-0":
version: 7.0.3-0
resolution: "@polkadot/networks@npm:7.0.3-0"
dependencies:
"@babel/runtime": ^7.14.6
checksum: c12b99d537523ac57fdfedaf1ecd759d74cd74b4bde121efb6917079b8ad33138799f8f083af602b523ef6473170667c40a80fc035499d9704e9ea8b495d9935
checksum: e96d777a4c55218223665b498e844a1d327a75257e119e6a5096376827fbeab1b254c9ae812f04e288d4544f5e22876470e3ffd4f78a0541c22ee9b486d5a07d
languageName: node
linkType: hard
@@ -2029,10 +2029,10 @@ __metadata:
resolution: "@polkadot/rpc-core@workspace:packages/rpc-core"
dependencies:
"@babel/runtime": ^7.14.6
"@polkadot/keyring": ^7.0.2
"@polkadot/keyring": ^7.0.3-0
"@polkadot/rpc-provider": 5.1.2-7
"@polkadot/types": 5.1.2-7
"@polkadot/util": ^7.0.2
"@polkadot/util": ^7.0.3-0
rxjs: ^7.2.0
languageName: unknown
linkType: soft
@@ -2042,13 +2042,13 @@ __metadata:
resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider"
dependencies:
"@babel/runtime": ^7.14.6
"@polkadot/keyring": ^7.0.2
"@polkadot/keyring": ^7.0.3-0
"@polkadot/types": 5.1.2-7
"@polkadot/util": ^7.0.2
"@polkadot/util-crypto": ^7.0.2
"@polkadot/x-fetch": ^7.0.2
"@polkadot/x-global": ^7.0.2
"@polkadot/x-ws": ^7.0.2
"@polkadot/util": ^7.0.3-0
"@polkadot/util-crypto": ^7.0.3-0
"@polkadot/x-fetch": ^7.0.3-0
"@polkadot/x-global": ^7.0.3-0
"@polkadot/x-ws": ^7.0.3-0
eventemitter3: ^4.0.7
mock-socket: ^9.0.3
nock: ^13.1.1
@@ -2074,7 +2074,7 @@ __metadata:
"@polkadot/api": 5.1.2-7
"@polkadot/rpc-provider": 5.1.2-7
"@polkadot/types": 5.1.2-7
"@polkadot/util": ^7.0.2
"@polkadot/util": ^7.0.3-0
"@types/websocket": ^1.0.3
"@types/yargs": ^17.0.2
handlebars: ^4.7.7
@@ -2094,9 +2094,9 @@ __metadata:
resolution: "@polkadot/types-known@workspace:packages/types-known"
dependencies:
"@babel/runtime": ^7.14.6
"@polkadot/networks": ^7.0.2
"@polkadot/networks": ^7.0.3-0
"@polkadot/types": 5.1.2-7
"@polkadot/util": ^7.0.2
"@polkadot/util": ^7.0.3-0
languageName: unknown
linkType: soft
@@ -2105,24 +2105,24 @@ __metadata:
resolution: "@polkadot/types@workspace:packages/types"
dependencies:
"@babel/runtime": ^7.14.6
"@polkadot/keyring": ^7.0.2
"@polkadot/util": ^7.0.2
"@polkadot/util-crypto": ^7.0.2
"@polkadot/keyring": ^7.0.3-0
"@polkadot/util": ^7.0.3-0
"@polkadot/util-crypto": ^7.0.3-0
"@types/bn.js": ^4.11.6
bn.js: ^4.11.9
rxjs: ^7.2.0
languageName: unknown
linkType: soft
"@polkadot/util-crypto@npm:7.0.2, @polkadot/util-crypto@npm:^7.0.2":
version: 7.0.2
resolution: "@polkadot/util-crypto@npm:7.0.2"
"@polkadot/util-crypto@npm:7.0.3-0, @polkadot/util-crypto@npm:^7.0.3-0":
version: 7.0.3-0
resolution: "@polkadot/util-crypto@npm:7.0.3-0"
dependencies:
"@babel/runtime": ^7.14.6
"@polkadot/networks": 7.0.2
"@polkadot/util": 7.0.2
"@polkadot/networks": 7.0.3-0
"@polkadot/util": 7.0.3-0
"@polkadot/wasm-crypto": ^4.1.2
"@polkadot/x-randomvalues": 7.0.2
"@polkadot/x-randomvalues": 7.0.3-0
base-x: ^3.0.8
base64-js: ^1.5.1
blakejs: ^1.1.1
@@ -2135,23 +2135,23 @@ __metadata:
tweetnacl: ^1.0.3
xxhashjs: ^0.2.2
peerDependencies:
"@polkadot/util": 7.0.2
checksum: a5f500f510f9fd5fe5a6b2566453b44ea94f63bb2fd608c7495a54112fea71abf342730b4c6758947f65835d6a3e6731b5975d775108855a48d3a5637129400b
"@polkadot/util": 7.0.3-0
checksum: bbf279d2930f07cd1399c6eebdfd0050d8ac538d193bea156ee9eb4ad0dc770c47d445033bfa41e53a0f16175c5b2f9be3ba3644f22a6b87a484a7229cef2d68
languageName: node
linkType: hard
"@polkadot/util@npm:7.0.2, @polkadot/util@npm:^7.0.2":
version: 7.0.2
resolution: "@polkadot/util@npm:7.0.2"
"@polkadot/util@npm:7.0.3-0, @polkadot/util@npm:^7.0.3-0":
version: 7.0.3-0
resolution: "@polkadot/util@npm:7.0.3-0"
dependencies:
"@babel/runtime": ^7.14.6
"@polkadot/x-textdecoder": 7.0.2
"@polkadot/x-textencoder": 7.0.2
"@polkadot/x-textdecoder": 7.0.3-0
"@polkadot/x-textencoder": 7.0.3-0
"@types/bn.js": ^4.11.6
bn.js: ^4.11.9
camelcase: ^5.3.1
ip-regex: ^4.3.0
checksum: 5fea37104aa5712a288cdb10b65f8d1dd4e743c7d9b4b09ce1e17aeea5a4400817f187cf8c9fd7c9b2161ede8c99d5b4dc22418b7f7426527cb12592dad91432
checksum: 61f2bdfdb5b223f55912c22a76f9ae0b91ad105204960e5aca9fa98f892bfba693a7ff56e036428e1e842a5987a045c5245e8e3a1ec9e1a0eeabdbccb9554014
languageName: node
linkType: hard
@@ -2187,66 +2187,66 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/x-fetch@npm:^7.0.2":
version: 7.0.2
resolution: "@polkadot/x-fetch@npm:7.0.2"
"@polkadot/x-fetch@npm:^7.0.3-0":
version: 7.0.3-0
resolution: "@polkadot/x-fetch@npm:7.0.3-0"
dependencies:
"@babel/runtime": ^7.14.6
"@polkadot/x-global": 7.0.2
"@polkadot/x-global": 7.0.3-0
"@types/node-fetch": ^2.5.11
node-fetch: ^2.6.1
checksum: aaef78745959210ffdeae25d0845781c3c7afe12e3bc094a50334051817446ff4397d34b2daac3cefa7f75b60216d8588491fc7418daa9ab9b5e6cd1a99b447d
checksum: d2fb35d13132f75af608274f66716872b06f2e31fc4d65980dea59e69c93b747210bc2a2bda7d69bfc22d78e7925b09cc3b9704c1b2d56d128161f3fe4e7293c
languageName: node
linkType: hard
"@polkadot/x-global@npm:7.0.2, @polkadot/x-global@npm:^7.0.2":
version: 7.0.2
resolution: "@polkadot/x-global@npm:7.0.2"
"@polkadot/x-global@npm:7.0.3-0, @polkadot/x-global@npm:^7.0.3-0":
version: 7.0.3-0
resolution: "@polkadot/x-global@npm:7.0.3-0"
dependencies:
"@babel/runtime": ^7.14.6
checksum: 35705f8d33e746ab872288ae61fd31ead5b2fbefd0ef942f0cf8be76ac3e54a304b3ff9ced960232cb3bca0d71c5515a0abe8e534cc5f2fbcdf543c8df01f1f6
checksum: f5d40749e224af1edbe7e4b3b1798f6dfb0a51201d139e49b4bd6a4ebbcdf95169ea6c831eb255ecf5ee9028aba5e09a8df8bae0467a64e6ac2aaa348e1c837b
languageName: node
linkType: hard
"@polkadot/x-randomvalues@npm:7.0.2":
version: 7.0.2
resolution: "@polkadot/x-randomvalues@npm:7.0.2"
"@polkadot/x-randomvalues@npm:7.0.3-0":
version: 7.0.3-0
resolution: "@polkadot/x-randomvalues@npm:7.0.3-0"
dependencies:
"@babel/runtime": ^7.14.6
"@polkadot/x-global": 7.0.2
checksum: e6f2fd9f7386ceb6124366580ef639f664b9b3624644e4749ac19e2a17456f84078febb953e293fe5cc8cbed287f1ab84e8d1acfe7d075c5a3fb779253ede082
"@polkadot/x-global": 7.0.3-0
checksum: 84278e9ae351a9a22502547e0705ac848cfb4fc5b8ed259095177262a84cd46ea5b2eee0ef967aaa29fda8848596a25f51a0a25b0e28367dc78b4b2133fa88e4
languageName: node
linkType: hard
"@polkadot/x-textdecoder@npm:7.0.2":
version: 7.0.2
resolution: "@polkadot/x-textdecoder@npm:7.0.2"
"@polkadot/x-textdecoder@npm:7.0.3-0":
version: 7.0.3-0
resolution: "@polkadot/x-textdecoder@npm:7.0.3-0"
dependencies:
"@babel/runtime": ^7.14.6
"@polkadot/x-global": 7.0.2
checksum: ad31a9ed430d1886168f42d6b8fc5528c22b783b7c4d086a2c77ac66017af4800c64a80a8466f85e93ea73e5892cebbd1f4612bdd4c7a5ed87227ee9a3f98f5e
"@polkadot/x-global": 7.0.3-0
checksum: fd233da7b8b22fda2ef8dcc38b3648331b53b0d22083f48de0c7ae062ddd243abd8c101f545d42c491ec4cc8b4883fdaa192629fc80ed79b2824e7b38969d254
languageName: node
linkType: hard
"@polkadot/x-textencoder@npm:7.0.2":
version: 7.0.2
resolution: "@polkadot/x-textencoder@npm:7.0.2"
"@polkadot/x-textencoder@npm:7.0.3-0":
version: 7.0.3-0
resolution: "@polkadot/x-textencoder@npm:7.0.3-0"
dependencies:
"@babel/runtime": ^7.14.6
"@polkadot/x-global": 7.0.2
checksum: 990ed08a001112a33d7ecbe1c6b442afacb3e09a04b10c62574876e2a2d26d0ee0da31f41a3731ffa91b19799c3828a8f09e0ee883768f608fd499b724774d6e
"@polkadot/x-global": 7.0.3-0
checksum: 0237178d92e99623feee0a10fef13e26c84e67611d3a6bd00ad56a4fe3a9d5506279f8476213124191fbb66afbc1c22189c19cf7c327625fe5ada67c2c376ccf
languageName: node
linkType: hard
"@polkadot/x-ws@npm:^7.0.2":
version: 7.0.2
resolution: "@polkadot/x-ws@npm:7.0.2"
"@polkadot/x-ws@npm:^7.0.3-0":
version: 7.0.3-0
resolution: "@polkadot/x-ws@npm:7.0.3-0"
dependencies:
"@babel/runtime": ^7.14.6
"@polkadot/x-global": 7.0.2
"@polkadot/x-global": 7.0.3-0
"@types/websocket": ^1.0.3
websocket: ^1.0.34
checksum: 7b62fbd7254596aa60d541eb40d973e0ba7d962906596864742698b7bf9c8ad57153db61e213d647b9fad40f59ed01ceb0dbee7bef41970989b16990f0541ea2
checksum: ba527964e271c4d0aa7ebb8272043beb02fc8f1b8375cbdd5e4ceca989f8e65162a74b5fa70cdea338894eaee47952b55245926d1b0391777b0001c8b9efa0a2
languageName: node
linkType: hard