Bump API, do payout calc based on avail. validators (#2547)
This commit is contained in:
parent
5fa84d809d
commit
b3113cdd79
@ -8,10 +8,10 @@
|
||||
"packages/*"
|
||||
],
|
||||
"resolutions": {
|
||||
"@polkadot/api": "^1.10.0-beta.27",
|
||||
"@polkadot/api-contract": "^1.10.0-beta.27",
|
||||
"@polkadot/api": "^1.10.0-beta.28",
|
||||
"@polkadot/api-contract": "^1.10.0-beta.28",
|
||||
"@polkadot/keyring": "^2.8.1",
|
||||
"@polkadot/types": "^1.10.0-beta.27",
|
||||
"@polkadot/types": "^1.10.0-beta.28",
|
||||
"@polkadot/util": "^2.8.1",
|
||||
"@polkadot/util-crypto": "^2.8.1",
|
||||
"babel-core": "^7.0.0-bridge.0",
|
||||
|
||||
@ -12,6 +12,6 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.9.2",
|
||||
"@polkadot/api-contract": "^1.10.0-beta.27"
|
||||
"@polkadot/api-contract": "^1.10.0-beta.28"
|
||||
}
|
||||
}
|
||||
|
||||
@ -74,7 +74,10 @@ function extractStashes (allRewards: Record<string, DeriveStakerReward[]>): Payo
|
||||
return Object
|
||||
.entries(allRewards)
|
||||
.map(([stashId, rewards]): PayoutStash => ({
|
||||
available: rewards.reduce((result, { total }) => result.iadd(total), new BN(0)),
|
||||
available: rewards.reduce((result, { validators }) =>
|
||||
Object.values(validators).reduce((result, { value }) =>
|
||||
result.iadd(value), result), new BN(0)
|
||||
),
|
||||
rewards,
|
||||
stashId
|
||||
}))
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
"homepage": "https://github.com/polkadot-js/ui/tree/master/packages/ui-reactive#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.9.2",
|
||||
"@polkadot/api": "^1.10.0-beta.27",
|
||||
"@polkadot/api": "^1.10.0-beta.28",
|
||||
"@polkadot/extension-dapp": "^0.24.0-beta.17",
|
||||
"rxjs-compat": "^6.5.5"
|
||||
}
|
||||
|
||||
112
yarn.lock
112
yarn.lock
@ -2836,57 +2836,57 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/api-contract@npm:^1.10.0-beta.27":
|
||||
version: 1.10.0-beta.27
|
||||
resolution: "@polkadot/api-contract@npm:1.10.0-beta.27"
|
||||
"@polkadot/api-contract@npm:^1.10.0-beta.28":
|
||||
version: 1.10.0-beta.28
|
||||
resolution: "@polkadot/api-contract@npm:1.10.0-beta.28"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.9.2
|
||||
"@polkadot/api": 1.10.0-beta.27
|
||||
"@polkadot/rpc-core": 1.10.0-beta.27
|
||||
"@polkadot/types": 1.10.0-beta.27
|
||||
"@polkadot/api": 1.10.0-beta.28
|
||||
"@polkadot/rpc-core": 1.10.0-beta.28
|
||||
"@polkadot/types": 1.10.0-beta.28
|
||||
"@polkadot/util": ^2.8.1
|
||||
bn.js: ^5.1.1
|
||||
rxjs: ^6.5.5
|
||||
checksum: 2/a589f2046ff23fd48f07ce843fc27987e06f8aaf7c1a2c1f1d9f50196c2e27237caf01130fcdb23e8331da014ea6e3d8239bf12d7c6cad54e519bf86c6c25ef3
|
||||
checksum: 2/db08830a1243c214fbdcedf879bdcfc84ad9685ab86a61491f5b7527a8a3a19237bac63a34587e6a47acc5856df951ac1b86f3d162e506941863a13c117be675
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/api-derive@npm:1.10.0-beta.27":
|
||||
version: 1.10.0-beta.27
|
||||
resolution: "@polkadot/api-derive@npm:1.10.0-beta.27"
|
||||
"@polkadot/api-derive@npm:1.10.0-beta.28":
|
||||
version: 1.10.0-beta.28
|
||||
resolution: "@polkadot/api-derive@npm:1.10.0-beta.28"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.9.2
|
||||
"@polkadot/api": 1.10.0-beta.27
|
||||
"@polkadot/rpc-core": 1.10.0-beta.27
|
||||
"@polkadot/rpc-provider": 1.10.0-beta.27
|
||||
"@polkadot/types": 1.10.0-beta.27
|
||||
"@polkadot/api": 1.10.0-beta.28
|
||||
"@polkadot/rpc-core": 1.10.0-beta.28
|
||||
"@polkadot/rpc-provider": 1.10.0-beta.28
|
||||
"@polkadot/types": 1.10.0-beta.28
|
||||
"@polkadot/util": ^2.8.1
|
||||
"@polkadot/util-crypto": ^2.8.1
|
||||
bn.js: ^5.1.1
|
||||
memoizee: ^0.4.14
|
||||
rxjs: ^6.5.5
|
||||
checksum: 2/5e79da12e6fbbd8991457b49bc76183eab7916c5ce39abcd4f2080ecb3ae82d7ecc66b5cf4e6b40b13f26f1c250622977a8b42e52e1d0f0daa0581c11e43c04c
|
||||
checksum: 2/803648e6fb3ec335be605425f9c723907763580c9be8e0410f21ce2323d58672c4a88bc0442c05ca1e035f27582c38feb143d6a45cd2e081e409245a36ab9e7a
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/api@npm:^1.10.0-beta.27":
|
||||
version: 1.10.0-beta.27
|
||||
resolution: "@polkadot/api@npm:1.10.0-beta.27"
|
||||
"@polkadot/api@npm:^1.10.0-beta.28":
|
||||
version: 1.10.0-beta.28
|
||||
resolution: "@polkadot/api@npm:1.10.0-beta.28"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.9.2
|
||||
"@polkadot/api-derive": 1.10.0-beta.27
|
||||
"@polkadot/api-derive": 1.10.0-beta.28
|
||||
"@polkadot/keyring": ^2.8.1
|
||||
"@polkadot/metadata": 1.10.0-beta.27
|
||||
"@polkadot/rpc-core": 1.10.0-beta.27
|
||||
"@polkadot/rpc-provider": 1.10.0-beta.27
|
||||
"@polkadot/types": 1.10.0-beta.27
|
||||
"@polkadot/types-known": 1.10.0-beta.27
|
||||
"@polkadot/metadata": 1.10.0-beta.28
|
||||
"@polkadot/rpc-core": 1.10.0-beta.28
|
||||
"@polkadot/rpc-provider": 1.10.0-beta.28
|
||||
"@polkadot/types": 1.10.0-beta.28
|
||||
"@polkadot/types-known": 1.10.0-beta.28
|
||||
"@polkadot/util": ^2.8.1
|
||||
"@polkadot/util-crypto": ^2.8.1
|
||||
bn.js: ^5.1.1
|
||||
eventemitter3: ^4.0.0
|
||||
rxjs: ^6.5.5
|
||||
checksum: 2/bc2705fef3d5abcf27312208f9e4aea181486cbdc3470ba1a533b46e7db0a519b229da19ed077345afa14a3892350b34e7b250615af0a4b1e84c1ef66f809c1b
|
||||
checksum: 2/d3fedfee3850992ade2af735171a914fd0583400a6b541be657dd4c3e9a290407c280ec88886fa4160869b4154c3f6c48b6435aafc065163b4dbfeeb57929af5
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@ -2927,7 +2927,7 @@ __metadata:
|
||||
resolution: "@polkadot/app-contracts@workspace:packages/page-contracts"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.9.2
|
||||
"@polkadot/api-contract": ^1.10.0-beta.27
|
||||
"@polkadot/api-contract": ^1.10.0-beta.28
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@ -3252,17 +3252,17 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/metadata@npm:1.10.0-beta.27":
|
||||
version: 1.10.0-beta.27
|
||||
resolution: "@polkadot/metadata@npm:1.10.0-beta.27"
|
||||
"@polkadot/metadata@npm:1.10.0-beta.28":
|
||||
version: 1.10.0-beta.28
|
||||
resolution: "@polkadot/metadata@npm:1.10.0-beta.28"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.9.2
|
||||
"@polkadot/types": 1.10.0-beta.27
|
||||
"@polkadot/types-known": 1.10.0-beta.27
|
||||
"@polkadot/types": 1.10.0-beta.28
|
||||
"@polkadot/types-known": 1.10.0-beta.28
|
||||
"@polkadot/util": ^2.8.1
|
||||
"@polkadot/util-crypto": ^2.8.1
|
||||
bn.js: ^5.1.1
|
||||
checksum: 2/26939cebaebcf57fc15623b02aeb28d82aea9839696f914202482fa63d10efc20d354478ce7fd10ff007baad77602bd104a03a6a06e61d4d16a10352f33cfe81
|
||||
checksum: 2/189e13c93fde90d4f613747ea3be651dc6ce90cd39cc56a6698bee1067dfcf4991ddccc4777d44ec68301815be4dcda6fdfa7e2ebf732e1c0436f0ecf77a5822
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@ -3271,7 +3271,7 @@ __metadata:
|
||||
resolution: "@polkadot/react-api@workspace:packages/react-api"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.9.2
|
||||
"@polkadot/api": ^1.10.0-beta.27
|
||||
"@polkadot/api": ^1.10.0-beta.28
|
||||
"@polkadot/extension-dapp": ^0.24.0-beta.17
|
||||
rxjs-compat: ^6.5.5
|
||||
languageName: unknown
|
||||
@ -3388,35 +3388,35 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/rpc-core@npm:1.10.0-beta.27":
|
||||
version: 1.10.0-beta.27
|
||||
resolution: "@polkadot/rpc-core@npm:1.10.0-beta.27"
|
||||
"@polkadot/rpc-core@npm:1.10.0-beta.28":
|
||||
version: 1.10.0-beta.28
|
||||
resolution: "@polkadot/rpc-core@npm:1.10.0-beta.28"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.9.2
|
||||
"@polkadot/metadata": 1.10.0-beta.27
|
||||
"@polkadot/rpc-provider": 1.10.0-beta.27
|
||||
"@polkadot/types": 1.10.0-beta.27
|
||||
"@polkadot/metadata": 1.10.0-beta.28
|
||||
"@polkadot/rpc-provider": 1.10.0-beta.28
|
||||
"@polkadot/types": 1.10.0-beta.28
|
||||
"@polkadot/util": ^2.8.1
|
||||
memoizee: ^0.4.14
|
||||
rxjs: ^6.5.5
|
||||
checksum: 2/9a40bfd0e334836b81a53db4f8697ea3ef68f6bfe7beee262f522adac4fda9353d538c98d915dbab3b8114f2350634aef3e27effc565e86ddd7e779422c659ee
|
||||
checksum: 2/199a853a71f2b05645c2170997ea8d4f6877ec2e8dde6d621af88ba8b1773c17be9a53df0346b0e9ba7b44644a5a369d1aa3fdef51da5eb72669d2458fe7173f
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/rpc-provider@npm:1.10.0-beta.27":
|
||||
version: 1.10.0-beta.27
|
||||
resolution: "@polkadot/rpc-provider@npm:1.10.0-beta.27"
|
||||
"@polkadot/rpc-provider@npm:1.10.0-beta.28":
|
||||
version: 1.10.0-beta.28
|
||||
resolution: "@polkadot/rpc-provider@npm:1.10.0-beta.28"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.9.2
|
||||
"@polkadot/metadata": 1.10.0-beta.27
|
||||
"@polkadot/types": 1.10.0-beta.27
|
||||
"@polkadot/metadata": 1.10.0-beta.28
|
||||
"@polkadot/types": 1.10.0-beta.28
|
||||
"@polkadot/util": ^2.8.1
|
||||
"@polkadot/util-crypto": ^2.8.1
|
||||
bn.js: ^5.1.1
|
||||
eventemitter3: ^4.0.0
|
||||
isomorphic-fetch: ^2.2.1
|
||||
websocket: ^1.0.31
|
||||
checksum: 2/13bc161cb022c31a81728393558a3cc242407a7a229094d023ec8aca1d205cadf02808d870bc6d67e6e2630da95d9c4c2910b1b6e5456b6b9de367a243b5febf
|
||||
checksum: 2/6c09b5146518248fd04025588a3cfbba7ce8486a1d506ffbdc2e100e1941a7744cfd37530f8ba337eb06604b85c29793abad1367c0132a1c93d6e6cd1f33e206
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@ -3429,31 +3429,31 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/types-known@npm:1.10.0-beta.27":
|
||||
version: 1.10.0-beta.27
|
||||
resolution: "@polkadot/types-known@npm:1.10.0-beta.27"
|
||||
"@polkadot/types-known@npm:1.10.0-beta.28":
|
||||
version: 1.10.0-beta.28
|
||||
resolution: "@polkadot/types-known@npm:1.10.0-beta.28"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.9.2
|
||||
"@polkadot/types": 1.10.0-beta.27
|
||||
"@polkadot/types": 1.10.0-beta.28
|
||||
"@polkadot/util": ^2.8.1
|
||||
bn.js: ^5.1.1
|
||||
checksum: 2/02c6c8d2f3c9cdec49f97dcbeba3864c7eb92e20ef8e48d9fcb2266ec1795169121d1b754cf3c43bca637a35b11645c6f453fdbee2df734b31a32726c7920511
|
||||
checksum: 2/8860f03e986d6d39ccaec0c4fbb3bd1c3f991ed20bf9fc95f6a9bce31a1ed5e32a65ffbe10546d99b2a7885894f86d70e3ef1e2fea7767081fb9f5f09afe7b3a
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/types@npm:^1.10.0-beta.27":
|
||||
version: 1.10.0-beta.27
|
||||
resolution: "@polkadot/types@npm:1.10.0-beta.27"
|
||||
"@polkadot/types@npm:^1.10.0-beta.28":
|
||||
version: 1.10.0-beta.28
|
||||
resolution: "@polkadot/types@npm:1.10.0-beta.28"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.9.2
|
||||
"@polkadot/metadata": 1.10.0-beta.27
|
||||
"@polkadot/metadata": 1.10.0-beta.28
|
||||
"@polkadot/util": ^2.8.1
|
||||
"@polkadot/util-crypto": ^2.8.1
|
||||
"@types/bn.js": ^4.11.6
|
||||
bn.js: ^5.1.1
|
||||
memoizee: ^0.4.14
|
||||
rxjs: ^6.5.5
|
||||
checksum: 2/801f55a0bd0474fbba2ff55d3cfc30a4b86580843a011907fcea61757dbad24728e543c5d739c1ad97c8e5d6cf431d958976deeb8b071bf2c15c086599db2b2b
|
||||
checksum: 2/c4b053bfd12b3e47be2a7773bca3b7ee6f24d30143402e768f80b6e447ac5abbcd5100f04707eea97d181b65c30e7447cc7f0af9f57f26dddda5fdd3a5f66095
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user