Remove support for pre-v2 staking (#2980)

* Remove support for pre-v2 staking

* Adjust with util array functions

* Remove old enumset support

* Empty controller

* withController flag
This commit is contained in:
Jaco Greeff
2020-12-24 08:32:03 +01:00
committed by GitHub
parent 47f2ee725f
commit d6b2b4a1a3
24 changed files with 239 additions and 402 deletions
+68 -68
View File
@@ -1693,7 +1693,7 @@ __metadata:
"@babel/runtime": ^7.12.5
"@polkadot/api": 3.1.2-6
"@polkadot/types": 3.1.2-6
"@polkadot/util": ^5.1.1
"@polkadot/util": ^5.1.2-1
"@polkadot/x-rxjs": 3.1.2-6
bn.js: ^4.11.9
languageName: unknown
@@ -1705,12 +1705,12 @@ __metadata:
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/api": 3.1.2-6
"@polkadot/keyring": ^5.1.1
"@polkadot/keyring": ^5.1.2-1
"@polkadot/rpc-core": 3.1.2-6
"@polkadot/rpc-provider": 3.1.2-6
"@polkadot/types": 3.1.2-6
"@polkadot/util": ^5.1.1
"@polkadot/util-crypto": ^5.1.1
"@polkadot/util": ^5.1.2-1
"@polkadot/util-crypto": ^5.1.2-1
"@polkadot/x-rxjs": 3.1.2-6
bn.js: ^4.11.9
languageName: unknown
@@ -1722,14 +1722,14 @@ __metadata:
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/api-derive": 3.1.2-6
"@polkadot/keyring": ^5.1.1
"@polkadot/keyring": ^5.1.2-1
"@polkadot/metadata": 3.1.2-6
"@polkadot/rpc-core": 3.1.2-6
"@polkadot/rpc-provider": 3.1.2-6
"@polkadot/types": 3.1.2-6
"@polkadot/types-known": 3.1.2-6
"@polkadot/util": ^5.1.1
"@polkadot/util-crypto": ^5.1.1
"@polkadot/util": ^5.1.2-1
"@polkadot/util-crypto": ^5.1.2-1
"@polkadot/x-rxjs": 3.1.2-6
bn.js: ^4.11.9
eventemitter3: ^4.0.7
@@ -1829,17 +1829,17 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/keyring@npm:^5.1.1":
version: 5.1.1
resolution: "@polkadot/keyring@npm:5.1.1"
"@polkadot/keyring@npm:^5.1.2-1":
version: 5.1.2-1
resolution: "@polkadot/keyring@npm:5.1.2-1"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/util": 5.1.1
"@polkadot/util-crypto": 5.1.1
"@polkadot/util": 5.1.2-1
"@polkadot/util-crypto": 5.1.2-1
peerDependencies:
"@polkadot/util": 5.1.1
"@polkadot/util-crypto": 5.1.1
checksum: 03d4063c6455460b1e8695d3ef2efec212922ceb09ecefafd7bca171406c61089cc762fd5d2b347db00badae33fb5e7c778ee156425b982807f250807016980c
"@polkadot/util": 5.1.2-1
"@polkadot/util-crypto": 5.1.2-1
checksum: 906202639396f84a08a20ef8dd094ec27810b0896cbdd1aaf9b554a5c10a2df62deea597b9426e457ee4670d8074e15a5a2d590e0f35f8249ce565c752539996
languageName: node
linkType: hard
@@ -1848,21 +1848,21 @@ __metadata:
resolution: "@polkadot/metadata@workspace:packages/metadata"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/keyring": ^5.1.1
"@polkadot/keyring": ^5.1.2-1
"@polkadot/types": 3.1.2-6
"@polkadot/types-known": 3.1.2-6
"@polkadot/util": ^5.1.1
"@polkadot/util-crypto": ^5.1.1
"@polkadot/util": ^5.1.2-1
"@polkadot/util-crypto": ^5.1.2-1
bn.js: ^4.11.9
languageName: unknown
linkType: soft
"@polkadot/networks@npm:5.1.1":
version: 5.1.1
resolution: "@polkadot/networks@npm:5.1.1"
"@polkadot/networks@npm:5.1.2-1":
version: 5.1.2-1
resolution: "@polkadot/networks@npm:5.1.2-1"
dependencies:
"@babel/runtime": ^7.12.5
checksum: 0f462315a177c373965a122a4b737546e4f9741fc5df35816d834c2d030de76a9fc433a982a53fdcfca2ce089eabfc20893850cee8298b1c6d17efa8705d4cfe
checksum: 45040d9f1cdbbfe57bc4648e9e526f3e69448cc705fb48d816bcf373d56742d7504a5cb579c5575417c7110bc6f4090ac979d41159bca4a5e4d56b4af7755ff4
languageName: node
linkType: hard
@@ -1871,11 +1871,11 @@ __metadata:
resolution: "@polkadot/rpc-core@workspace:packages/rpc-core"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/keyring": ^5.1.1
"@polkadot/keyring": ^5.1.2-1
"@polkadot/metadata": 3.1.2-6
"@polkadot/rpc-provider": 3.1.2-6
"@polkadot/types": 3.1.2-6
"@polkadot/util": ^5.1.1
"@polkadot/util": ^5.1.2-1
"@polkadot/x-rxjs": 3.1.2-6
languageName: unknown
linkType: soft
@@ -1885,13 +1885,13 @@ __metadata:
resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/keyring": ^5.1.1
"@polkadot/keyring": ^5.1.2-1
"@polkadot/metadata": 3.1.2-6
"@polkadot/types": 3.1.2-6
"@polkadot/util": ^5.1.1
"@polkadot/util-crypto": ^5.1.1
"@polkadot/x-fetch": ^5.1.1
"@polkadot/x-ws": ^5.1.1
"@polkadot/util": ^5.1.2-1
"@polkadot/util-crypto": ^5.1.2-1
"@polkadot/x-fetch": ^5.1.2-1
"@polkadot/x-ws": ^5.1.2-1
bn.js: ^4.11.9
eventemitter3: ^4.0.7
mock-socket: ^9.0.3
@@ -1919,7 +1919,7 @@ __metadata:
"@polkadot/metadata": 3.1.2-6
"@polkadot/rpc-provider": 3.1.2-6
"@polkadot/types": 3.1.2-6
"@polkadot/util": ^5.1.1
"@polkadot/util": ^5.1.2-1
"@types/websocket": ^1.0.1
"@types/yargs": ^15.0.12
handlebars: ^4.7.6
@@ -1940,7 +1940,7 @@ __metadata:
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/types": 3.1.2-6
"@polkadot/util": ^5.1.1
"@polkadot/util": ^5.1.2-1
"@types/bn.js": ^4.11.6
bn.js: ^4.11.9
languageName: unknown
@@ -1951,25 +1951,25 @@ __metadata:
resolution: "@polkadot/types@workspace:packages/types"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/keyring": ^5.1.1
"@polkadot/keyring": ^5.1.2-1
"@polkadot/metadata": 3.1.2-6
"@polkadot/util": ^5.1.1
"@polkadot/util-crypto": ^5.1.1
"@polkadot/util": ^5.1.2-1
"@polkadot/util-crypto": ^5.1.2-1
"@polkadot/x-rxjs": 3.1.2-6
"@types/bn.js": ^4.11.6
bn.js: ^4.11.9
languageName: unknown
linkType: soft
"@polkadot/util-crypto@npm:5.1.1, @polkadot/util-crypto@npm:^5.1.1":
version: 5.1.1
resolution: "@polkadot/util-crypto@npm:5.1.1"
"@polkadot/util-crypto@npm:5.1.2-1, @polkadot/util-crypto@npm:^5.1.2-1":
version: 5.1.2-1
resolution: "@polkadot/util-crypto@npm:5.1.2-1"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/networks": 5.1.1
"@polkadot/util": 5.1.1
"@polkadot/networks": 5.1.2-1
"@polkadot/util": 5.1.2-1
"@polkadot/wasm-crypto": ^3.1.1
"@polkadot/x-randomvalues": 5.1.1
"@polkadot/x-randomvalues": 5.1.2-1
base-x: ^3.0.8
blakejs: ^1.1.0
bn.js: ^4.11.9
@@ -1981,23 +1981,23 @@ __metadata:
tweetnacl: ^1.0.3
xxhashjs: ^0.2.2
peerDependencies:
"@polkadot/util": 5.1.1
checksum: cfa7758cef54443b20a82089f978f8135ad6580b1361212f05cc908666b638dd45264ca4729b5015672f3c54b2299540912389b0b284888ca3e3f9dfa2faf0a5
"@polkadot/util": 5.1.2-1
checksum: 0500aac3e523cf2e999de596ee8458478210947fbadea9408977e4448183c37aa7c31369fba60eb9ce352fff85385baec37d7b23c2ea3c900c9f3b52df0083d9
languageName: node
linkType: hard
"@polkadot/util@npm:5.1.1, @polkadot/util@npm:^5.1.1":
version: 5.1.1
resolution: "@polkadot/util@npm:5.1.1"
"@polkadot/util@npm:5.1.2-1, @polkadot/util@npm:^5.1.2-1":
version: 5.1.2-1
resolution: "@polkadot/util@npm:5.1.2-1"
dependencies:
"@babel/runtime": ^7.12.5
"@polkadot/x-textdecoder": 5.1.1
"@polkadot/x-textencoder": 5.1.1
"@polkadot/x-textdecoder": 5.1.2-1
"@polkadot/x-textencoder": 5.1.2-1
"@types/bn.js": ^4.11.6
bn.js: ^4.11.9
camelcase: ^5.3.1
ip-regex: ^4.2.0
checksum: afb6f3e1082ea4dcc6a2bcf2a84ea3f14384d3fed7e480f936ef095f216be882f35eb31702a2a998493641d158ad05cce89d4b3b4b6e54c863ad8c19f3278ed6
checksum: f3b8224315e66fce79492b4252d6a42ad909a4de29ec71547ae5d4aa6cedb5f167dcce8166869f87e5f23e8a90ca222f212cc173af489cfbc70f83fb63b39792
languageName: node
linkType: hard
@@ -2033,23 +2033,23 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/x-fetch@npm:^5.1.1":
version: 5.1.1
resolution: "@polkadot/x-fetch@npm:5.1.1"
"@polkadot/x-fetch@npm:^5.1.2-1":
version: 5.1.2-1
resolution: "@polkadot/x-fetch@npm:5.1.2-1"
dependencies:
"@babel/runtime": ^7.12.5
"@types/node-fetch": ^2.5.7
node-fetch: ^2.6.1
checksum: 94b601403c9a2b58f89d41acddc80cf459d64329bd3390ebaeded7f7ebf451ded73902a9db38d82e24ecae7d83257c3eb39cb6df9e871bba03ea5b314949b0a9
checksum: dec04d2c277e6a64026bada4422682dfee20c9ef80eb3da7b3f94c0164e607be2b9f1b5f3c8d69f59a4fc842fb2fa02a649a47e28b6aead184ba8a98078c8e51
languageName: node
linkType: hard
"@polkadot/x-randomvalues@npm:5.1.1":
version: 5.1.1
resolution: "@polkadot/x-randomvalues@npm:5.1.1"
"@polkadot/x-randomvalues@npm:5.1.2-1":
version: 5.1.2-1
resolution: "@polkadot/x-randomvalues@npm:5.1.2-1"
dependencies:
"@babel/runtime": ^7.12.5
checksum: e4157b08b7b9147438dbfa9282da6e599a66f80a9140777350427466e15e3217cba82e79d4d5f094849e1392e4ae4a0580df7bbd82e9ca34c1641a999343a608
checksum: 5160e2255ea503549db45e1c25a50c686069a74875bd7171ae1c3e07d019adcfb333b7092fc5353149accb27dfa9ee52525e54c2ea370fa6e5595e9d602289bb
languageName: node
linkType: hard
@@ -2062,32 +2062,32 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/x-textdecoder@npm:5.1.1":
version: 5.1.1
resolution: "@polkadot/x-textdecoder@npm:5.1.1"
"@polkadot/x-textdecoder@npm:5.1.2-1":
version: 5.1.2-1
resolution: "@polkadot/x-textdecoder@npm:5.1.2-1"
dependencies:
"@babel/runtime": ^7.12.5
checksum: 1b86e8c9dfbad3c5e9372126e4e94cc517fa7ccb84a1e3e8106bb778358a6c131675dc49da86db87d6d402be300ea3dcb75bd8f7085a3384daaa4e55f509070d
checksum: 60296ef039260e87fab90ec5a34c84ee91f1789dec05901e3fe30ad52ac909adfd6c5ec4119e039339f33e0f23f7df8c672815c10d056ce90830c3dcc816cb25
languageName: node
linkType: hard
"@polkadot/x-textencoder@npm:5.1.1":
version: 5.1.1
resolution: "@polkadot/x-textencoder@npm:5.1.1"
"@polkadot/x-textencoder@npm:5.1.2-1":
version: 5.1.2-1
resolution: "@polkadot/x-textencoder@npm:5.1.2-1"
dependencies:
"@babel/runtime": ^7.12.5
checksum: bd7773b320b3c6622cd742c0e82c0eb5600b4e38821151111a7fa8adabcdbea895d1a7a9424e1126c108c4eac43c05a85427403ecb8ba4223123a21f75fdb55c
checksum: 14efdace6942e686da249da89893c155fd8a6b3c7779d3f9966f14387a18fb6a942b300a8a9c99e9b5785f60e1aae686b9712d12630c28a2858724c8a87a109b
languageName: node
linkType: hard
"@polkadot/x-ws@npm:^5.1.1":
version: 5.1.1
resolution: "@polkadot/x-ws@npm:5.1.1"
"@polkadot/x-ws@npm:^5.1.2-1":
version: 5.1.2-1
resolution: "@polkadot/x-ws@npm:5.1.2-1"
dependencies:
"@babel/runtime": ^7.12.5
"@types/websocket": ^1.0.1
websocket: ^1.0.33
checksum: 4499db46ab6ee288ca98c21f763849f3e7ed150af12ace3aeda592222012cd49b02bab6238316c4c3b691eeb986300ec18d1803a1ac2536851c769eebf7bac1e
checksum: aa6fdd6acb919958963dbc86a6e3da0d680dea8812639c3d32512d7ad72ffda8682fcd9622a455447c55be98ace604f22c3138452ce236ff50601b2f099a8b78
languageName: node
linkType: hard