From 4889fb71470ee7a56d86a040d59fe0e94f298b6e Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Wed, 20 Feb 2019 08:45:42 +0100 Subject: [PATCH] Pull in new API (Option for storage) (#730) * Pull in new API (Option for storage) * staking_nominating is Option * WIP * Seems working, however democracy, not happy * Bump API, Option storage fix * Pull latest API * Api version display --- packages/app-democracy/src/Proposal.tsx | 15 +- packages/app-democracy/src/Referendum.tsx | 11 +- packages/app-democracy/src/Referendums.tsx | 23 +- packages/app-extrinsics/src/Extrinsic.tsx | 2 +- .../app-extrinsics/src/Params/Extrinsic.tsx | 2 +- .../app-staking/src/StakeList/Account.tsx | 12 +- packages/app-storage/src/Query.tsx | 15 +- .../app-storage/src/Selection/Modules.tsx | 2 +- packages/app-storage/src/types.ts | 2 +- packages/apps/package.json | 2 +- packages/apps/src/NodeInfo.tsx | 7 +- packages/apps/src/index.css | 4 + packages/ui-api/package.json | 4 +- packages/ui-app/package.json | 12 +- .../src/InputExtrinsic/SelectMethod.tsx | 2 +- .../src/InputExtrinsic/SelectSection.tsx | 2 +- packages/ui-app/src/InputExtrinsic/index.tsx | 2 +- packages/ui-app/src/InputNumber.tsx | 2 +- .../ui-app/src/InputStorage/SelectKey.tsx | 2 +- .../ui-app/src/InputStorage/SelectSection.tsx | 2 +- packages/ui-app/src/InputStorage/index.tsx | 2 +- .../ui-app/src/InputStorage/options/key.tsx | 6 +- packages/ui-params/src/initValue.ts | 2 + packages/ui-params/src/valueToText.tsx | 8 +- packages/ui-reactive/package.json | 1 - yarn.lock | 198 +++++++++--------- 26 files changed, 181 insertions(+), 161 deletions(-) diff --git a/packages/app-democracy/src/Proposal.tsx b/packages/app-democracy/src/Proposal.tsx index 1b2d8b3f3e..a8616b2023 100644 --- a/packages/app-democracy/src/Proposal.tsx +++ b/packages/app-democracy/src/Proposal.tsx @@ -6,7 +6,7 @@ import { I18nProps } from '@polkadot/ui-app/types'; import BN from 'bn.js'; import React from 'react'; -import { AccountId, Balance, Proposal, Tuple, Vector } from '@polkadot/types'; +import { AccountId, Balance, Option, Proposal, Tuple, Vector } from '@polkadot/types'; import { AddressMini, Labelled, Static } from '@polkadot/ui-app/index'; import { withCall, withMulti } from '@polkadot/ui-api/index'; import { formatBalance } from '@polkadot/ui-util'; @@ -15,7 +15,7 @@ import Item from './Item'; import translate from './translate'; type Props = I18nProps & { - democracy_depositOf?: Tuple, + democracy_depositOf?: Option, idNumber: BN, value: Tuple }; @@ -36,21 +36,22 @@ class ProposalDisplay extends React.PureComponent { private renderExtra () { const { democracy_depositOf, t } = this.props; - if (!democracy_depositOf) { + if (!democracy_depositOf || democracy_depositOf.isNone) { return null; } - const balance = democracy_depositOf[0] as Balance; - const addresses = democracy_depositOf[1] as Vector; + const value = democracy_depositOf.unwrap(); + const balance = value[0] as Balance; + const addresses = value[1] as Vector; return (
- {addresses.map((address) => ( + {addresses.map((address, index) => ( ))} diff --git a/packages/app-democracy/src/Referendum.tsx b/packages/app-democracy/src/Referendum.tsx index 343b12072d..b7b7e1a06e 100644 --- a/packages/app-democracy/src/Referendum.tsx +++ b/packages/app-democracy/src/Referendum.tsx @@ -8,7 +8,7 @@ import { RawParam } from '@polkadot/ui-params/types'; import BN from 'bn.js'; import React from 'react'; -import { ReferendumInfo } from '@polkadot/types'; +import { ReferendumInfoExtended } from '@polkadot/api-derive/democracy/referendumInfo'; import { Chart, Static } from '@polkadot/ui-app/index'; import VoteThreshold from '@polkadot/ui-params/Param/VoteThreshold'; import { withCalls } from '@polkadot/ui-api/index'; @@ -30,8 +30,7 @@ type Props = I18nProps & { chain_bestNumber?: BN, democracy_referendumVotesFor?: Array, democracy_publicDelay?: BN, - idNumber: BN | number, - value: ReferendumInfo + value: ReferendumInfoExtended }; type State = { @@ -88,7 +87,7 @@ class Referendum extends React.PureComponent { } render () { - const { chain_bestNumber, idNumber, value } = this.props; + const { chain_bestNumber, value } = this.props; if (!chain_bestNumber || value.end.sub(chain_bestNumber).lten(0)) { return null; @@ -96,11 +95,11 @@ class Referendum extends React.PureComponent { return ( - + {this.renderResults()} ); diff --git a/packages/app-democracy/src/Referendums.tsx b/packages/app-democracy/src/Referendums.tsx index d866439af2..8c1d7facf4 100644 --- a/packages/app-democracy/src/Referendums.tsx +++ b/packages/app-democracy/src/Referendums.tsx @@ -6,7 +6,8 @@ import { I18nProps } from '@polkadot/ui-app/types'; import BN from 'bn.js'; import React from 'react'; -import { ReferendumInfo } from '@polkadot/types'; +import { ReferendumInfoExtended } from '@polkadot/api-derive/democracy/referendumInfo'; +import { Option } from '@polkadot/types'; import { withCalls } from '@polkadot/ui-api/index'; import Referendum from './Referendum'; @@ -15,7 +16,7 @@ import translate from './translate'; type Props = I18nProps & { democracy_nextTally?: BN, democracy_referendumCount?: BN, - democracy_referendums?: Array + democracy_referendums?: Array> }; class Referendums extends React.PureComponent { @@ -42,15 +43,15 @@ class Referendums extends React.PureComponent { ); } - const startIndex = referendumCount - democracy_referendums.length; - - return democracy_referendums.map((referendum, index) => ( - - )); + return democracy_referendums + .filter((opt) => opt.isSome) + .map((opt) => opt.unwrap()) + .map((referendum) => ( + + )); } } diff --git a/packages/app-extrinsics/src/Extrinsic.tsx b/packages/app-extrinsics/src/Extrinsic.tsx index 8c5dc20938..deed1128f1 100644 --- a/packages/app-extrinsics/src/Extrinsic.tsx +++ b/packages/app-extrinsics/src/Extrinsic.tsx @@ -2,7 +2,7 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { MethodFunction } from '@polkadot/types/Method'; +import { MethodFunction } from '@polkadot/types/primitive/Method'; import { BareProps } from '@polkadot/ui-app/types'; import { ApiProps } from '@polkadot/ui-api/types'; import { RawParam } from '@polkadot/ui-params/types'; diff --git a/packages/app-extrinsics/src/Params/Extrinsic.tsx b/packages/app-extrinsics/src/Params/Extrinsic.tsx index 4cb3f5fbd2..f80ed7a381 100644 --- a/packages/app-extrinsics/src/Params/Extrinsic.tsx +++ b/packages/app-extrinsics/src/Params/Extrinsic.tsx @@ -2,7 +2,7 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { MethodFunction } from '@polkadot/types/Method'; +import { MethodFunction } from '@polkadot/types/primitive/Method'; import { I18nProps } from '@polkadot/ui-app/types'; import { RawParam$OnChange } from '@polkadot/ui-params/types'; diff --git a/packages/app-staking/src/StakeList/Account.tsx b/packages/app-staking/src/StakeList/Account.tsx index 4ee7284de9..69fc1c6d7e 100644 --- a/packages/app-staking/src/StakeList/Account.tsx +++ b/packages/app-staking/src/StakeList/Account.tsx @@ -9,7 +9,7 @@ import { QueueTx$ExtrinsicAdd } from '@polkadot/ui-app/Status/types'; import { ApiProps } from '@polkadot/ui-api/types'; import React from 'react'; -import { AccountId, Balance, ValidatorPrefs } from '@polkadot/types'; +import { AccountId, Balance, Option, ValidatorPrefs } from '@polkadot/types'; import { AddressMini, AddressSummary, Button } from '@polkadot/ui-app/index'; import { withCalls } from '@polkadot/ui-api/index'; @@ -23,7 +23,7 @@ type Props = ApiProps & I18nProps & { balances: DerivedBalancesMap, balanceArray: (_address: AccountId | string) => Array | undefined, name: string, - staking_nominating?: AccountId, + staking_nominating?: Option, staking_nominatorsFor?: Array, staking_validatorPreferences?: ValidatorPrefs, intentions: Array, @@ -79,14 +79,16 @@ class Account extends React.PureComponent { const { staking_nominating, balanceArray } = this.props; const { isNominating } = this.state; - if (!isNominating || !staking_nominating) { + if (!isNominating || !staking_nominating || staking_nominating.isNone) { return null; } + const nominating = staking_nominating.unwrap(); + return ( ); diff --git a/packages/app-storage/src/Query.tsx b/packages/app-storage/src/Query.tsx index d2b6d4f674..8f5933bb65 100644 --- a/packages/app-storage/src/Query.tsx +++ b/packages/app-storage/src/Query.tsx @@ -2,7 +2,7 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { StorageFunction } from '@polkadot/types/StorageKey'; +import { StorageFunction } from '@polkadot/types/primitive/StorageKey'; import { I18nProps } from '@polkadot/ui-app/types'; import { QueryTypes, StorageModuleQuery } from './types'; @@ -103,6 +103,13 @@ class Query extends React.PureComponent { const { value } = this.props; const { Component } = this.state; const { key } = value; + const type = isU8a(key) + ? 'Data' + : ( + key.meta.modifier.isOptional + ? `Option<${key.meta.type}>` + : key.meta.type.toString() + ); return (
@@ -110,11 +117,7 @@ class Query extends React.PureComponent { - {this.keyToName(key)}: { - isU8a(key) - ? 'Data' - : key.meta.type.toString() - } + {this.keyToName(key)}: {type}
} > diff --git a/packages/app-storage/src/Selection/Modules.tsx b/packages/app-storage/src/Selection/Modules.tsx index 8574aa3ba6..cd2f423237 100644 --- a/packages/app-storage/src/Selection/Modules.tsx +++ b/packages/app-storage/src/Selection/Modules.tsx @@ -3,7 +3,7 @@ // of the Apache-2.0 license. See the LICENSE file for details. import { TypeDef, getTypeDef } from '@polkadot/types'; -import { StorageFunction } from '@polkadot/types/StorageKey'; +import { StorageFunction } from '@polkadot/types/primitive/StorageKey'; import { I18nProps } from '@polkadot/ui-app/types'; import { RawParams } from '@polkadot/ui-params/types'; import { ApiProps } from '@polkadot/ui-api/types'; diff --git a/packages/app-storage/src/types.ts b/packages/app-storage/src/types.ts index 2d2b836c9e..57cb98776b 100644 --- a/packages/app-storage/src/types.ts +++ b/packages/app-storage/src/types.ts @@ -2,7 +2,7 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { StorageFunction } from '@polkadot/types/StorageKey'; +import { StorageFunction } from '@polkadot/types/primitive/StorageKey'; import { RawParams } from '@polkadot/ui-params/types'; type IdQuery = { diff --git a/packages/apps/package.json b/packages/apps/package.json index 4b8229e6c2..80076b3ee2 100644 --- a/packages/apps/package.json +++ b/packages/apps/package.json @@ -14,7 +14,7 @@ "dependencies": { "@babel/runtime": "^7.2.0", "@polkadot/ui-app": "^0.23.36", - "@polkadot/ui-assets": "^0.26.7", + "@polkadot/ui-assets": "^0.26.9", "@polkadot/ui-signer": "^0.23.36" } } diff --git a/packages/apps/src/NodeInfo.tsx b/packages/apps/src/NodeInfo.tsx index d25f7fde19..ed6150a259 100644 --- a/packages/apps/src/NodeInfo.tsx +++ b/packages/apps/src/NodeInfo.tsx @@ -29,6 +29,9 @@ class NodeInfo extends React.PureComponent { } render () { + const { api } = this.props; + const uiInfo = `@polkadot/apps v${pkgJson.version}`; + return (
@@ -39,7 +42,9 @@ class NodeInfo extends React.PureComponent {  
-
polkadot-js-ui v{pkgJson.version}
+
+
{api.libraryInfo}
+
{uiInfo}
); } diff --git a/packages/apps/src/index.css b/packages/apps/src/index.css index a3506767ca..9c0ed23047 100644 --- a/packages/apps/src/index.css +++ b/packages/apps/src/index.css @@ -33,6 +33,10 @@ > div { margin-bottom: -0.125em; + + &.spacer { + margin-bottom: 0.5rem; + } } div.rx--updated { diff --git a/packages/ui-api/package.json b/packages/ui-api/package.json index 54d1a912fd..9a599e7dfb 100644 --- a/packages/ui-api/package.json +++ b/packages/ui-api/package.json @@ -31,8 +31,8 @@ "homepage": "https://github.com/polkadot-js/ui/tree/master/packages/ui-reactive#readme", "dependencies": { "@babel/runtime": "^7.2.0", - "@polkadot/api": "^0.43.15", - "@polkadot/ui-util": "^0.26.7", + "@polkadot/api": "^0.45.8", + "@polkadot/ui-util": "^0.26.9", "rxjs-compat": "^6.3.2" } } diff --git a/packages/ui-app/package.json b/packages/ui-app/package.json index 416db6eb18..9737dd9f71 100644 --- a/packages/ui-app/package.json +++ b/packages/ui-app/package.json @@ -11,16 +11,12 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.2.0", - "@polkadot/keyring": "^0.34.20", - "@polkadot/types": "^0.43.15", "@polkadot/ui-api": "^0.23.36", - "@polkadot/ui-identicon": "^0.26.7", - "@polkadot/ui-keyring": "^0.26.7", + "@polkadot/ui-identicon": "^0.26.9", + "@polkadot/ui-keyring": "^0.26.9", "@polkadot/ui-reactive": "^0.23.36", - "@polkadot/ui-settings": "^0.26.7", - "@polkadot/ui-util": "^0.26.7", - "@polkadot/util": "^0.34.20", - "@polkadot/util-crypto": "^0.34.20", + "@polkadot/ui-settings": "^0.26.9", + "@polkadot/ui-util": "^0.26.9", "@types/chart.js": "^2.7.45", "@types/i18next": "^12.1.0", "@types/i18next-browser-languagedetector": "^2.0.2", diff --git a/packages/ui-app/src/InputExtrinsic/SelectMethod.tsx b/packages/ui-app/src/InputExtrinsic/SelectMethod.tsx index 9d1f1c778b..096002341f 100644 --- a/packages/ui-app/src/InputExtrinsic/SelectMethod.tsx +++ b/packages/ui-app/src/InputExtrinsic/SelectMethod.tsx @@ -2,7 +2,7 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { MethodFunction } from '@polkadot/types/Method'; +import { MethodFunction } from '@polkadot/types/primitive/Method'; import { BareProps } from '../types'; import { DropdownOptions } from '../util/types'; diff --git a/packages/ui-app/src/InputExtrinsic/SelectSection.tsx b/packages/ui-app/src/InputExtrinsic/SelectSection.tsx index 650de483eb..62809a5def 100644 --- a/packages/ui-app/src/InputExtrinsic/SelectSection.tsx +++ b/packages/ui-app/src/InputExtrinsic/SelectSection.tsx @@ -2,7 +2,7 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { MethodFunction } from '@polkadot/types/Method'; +import { MethodFunction } from '@polkadot/types/primitive/Method'; import { BareProps } from '../types'; import { DropdownOptions } from '../util/types'; diff --git a/packages/ui-app/src/InputExtrinsic/index.tsx b/packages/ui-app/src/InputExtrinsic/index.tsx index 2326f6bcbb..d6abd4983b 100644 --- a/packages/ui-app/src/InputExtrinsic/index.tsx +++ b/packages/ui-app/src/InputExtrinsic/index.tsx @@ -2,7 +2,7 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { MethodFunction } from '@polkadot/types/Method'; +import { MethodFunction } from '@polkadot/types/primitive/Method'; import { ApiProps } from '@polkadot/ui-api/types'; import { I18nProps } from '../types'; import { DropdownOptions } from '../util/types'; diff --git a/packages/ui-app/src/InputNumber.tsx b/packages/ui-app/src/InputNumber.tsx index b53b286eac..25c7ef738f 100644 --- a/packages/ui-app/src/InputNumber.tsx +++ b/packages/ui-app/src/InputNumber.tsx @@ -54,7 +54,7 @@ class InputNumber extends React.PureComponent { const { defaultValue, value } = this.props; let valueBN = new BN(value || 0); - const si = formatBalance.calcSi(valueBN.toString(), formatBalance.getDefaults().decimals); + const si = formatBalance.calcSi(valueBN.toString()); valueBN = valueBN.div(new BN(10).pow(new BN(si.power))); diff --git a/packages/ui-app/src/InputStorage/SelectKey.tsx b/packages/ui-app/src/InputStorage/SelectKey.tsx index 5bd27d6f06..6a60b259b4 100644 --- a/packages/ui-app/src/InputStorage/SelectKey.tsx +++ b/packages/ui-app/src/InputStorage/SelectKey.tsx @@ -7,7 +7,7 @@ import { DropdownOptions } from '../util/types'; import { BareProps } from '../types'; import React from 'react'; -import { StorageFunction } from '@polkadot/types/StorageKey'; +import { StorageFunction } from '@polkadot/types/primitive/StorageKey'; import { withApi } from '@polkadot/ui-api/index'; import Dropdown from '../Dropdown'; diff --git a/packages/ui-app/src/InputStorage/SelectSection.tsx b/packages/ui-app/src/InputStorage/SelectSection.tsx index 2e53b6e428..052e2d67e0 100644 --- a/packages/ui-app/src/InputStorage/SelectSection.tsx +++ b/packages/ui-app/src/InputStorage/SelectSection.tsx @@ -2,7 +2,7 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { StorageFunction } from '@polkadot/types/StorageKey'; +import { StorageFunction } from '@polkadot/types/primitive/StorageKey'; import { DropdownOptions } from '../util/types'; import { BareProps } from '../types'; diff --git a/packages/ui-app/src/InputStorage/index.tsx b/packages/ui-app/src/InputStorage/index.tsx index 415af79d8b..aea0ee7f1c 100644 --- a/packages/ui-app/src/InputStorage/index.tsx +++ b/packages/ui-app/src/InputStorage/index.tsx @@ -4,7 +4,7 @@ // TODO: We have a lot shared between this and InputExtrinsic -import { StorageFunction } from '@polkadot/types/StorageKey'; +import { StorageFunction } from '@polkadot/types/primitive/StorageKey'; import { ApiProps } from '@polkadot/ui-api/types'; import { DropdownOptions } from '../util/types'; import { I18nProps } from '../types'; diff --git a/packages/ui-app/src/InputStorage/options/key.tsx b/packages/ui-app/src/InputStorage/options/key.tsx index 688bdeaaba..afebbee140 100644 --- a/packages/ui-app/src/InputStorage/options/key.tsx +++ b/packages/ui-app/src/InputStorage/options/key.tsx @@ -32,7 +32,11 @@ export default function createOptions (api: ApiPromise, sectionName: string): Dr className='ui--DropdownLinked-Item-call' key={`${sectionName}_${value}:call`} > - {value}({input}): {type.toString()} + {value}({input}): { + method.meta.modifier.isOptional + ? `Option<${type}>` + : type.toString() + }
,
' : value.toString() ) - : value.toString() + : ( + (value instanceof Option) && value.isNone + ? '' + : value.toString() + ) ) ); } diff --git a/packages/ui-reactive/package.json b/packages/ui-reactive/package.json index 4522f28b99..365656216d 100644 --- a/packages/ui-reactive/package.json +++ b/packages/ui-reactive/package.json @@ -31,7 +31,6 @@ "homepage": "https://github.com/polkadot-js/ui/tree/master/packages/ui-reactive#readme", "dependencies": { "@babel/runtime": "^7.2.0", - "@polkadot/api": "^0.43.15", "rxjs-compat": "^6.3.2" } } diff --git a/yarn.lock b/yarn.lock index daf5c0bc76..18ea82fd37 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1462,30 +1462,30 @@ universal-user-agent "^2.0.0" url-template "^2.0.8" -"@polkadot/api-derive@^0.43.15": - version "0.43.15" - resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-0.43.15.tgz#16f21a1822d9d6ad7c6fa87d1df5747c96befc71" - integrity sha512-dLJzPqhoFRiUkm7nbZBq48cLrlK3QxWzgNoVmr6Ai8ds63qsdm2ioCNmTBKHqHjz/Y687emclbuL3i8t1a06wA== +"@polkadot/api-derive@^0.45.8": + version "0.45.8" + resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-0.45.8.tgz#65bdbe47f478cf483c57d16cd7aa1044849c11cc" + integrity sha512-m9SOqDvhelQr87otPhguaPupAxeWUrzERbuKKo+2TTp5yy7gumKyGK9cS7Be6Ua5INmhzzOCMSE0LQM4SUgHdA== dependencies: "@babel/runtime" "^7.3.1" - "@polkadot/api" "^0.43.15" - "@polkadot/types" "^0.43.15" + "@polkadot/api" "^0.45.8" + "@polkadot/types" "^0.45.8" "@types/memoizee" "^0.4.2" memoizee "^0.4.14" -"@polkadot/api@^0.43.15": - version "0.43.15" - resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-0.43.15.tgz#18849c74803a8c06b4baea58292b39ff77f67ed1" - integrity sha512-HJY7p6M27KLFfGxaGO+dOQu19K5D8s4rDEo2DEgTT7Qb56nRwfZrxVr/KrA+0qlac4QxAUx/Q1FT3hOlLB18gg== +"@polkadot/api@^0.45.8": + version "0.45.8" + resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-0.45.8.tgz#4e76ba95f06f98468409397ae55d2fd4e722eff5" + integrity sha512-FOEN8Mb/A8bZtAmrS2TsDjtYMAuCA+RooNksNluNKdAlkz602xFegBiRua3eYTtT927dMUYnksFhTdZ8ULPS/Q== dependencies: "@babel/runtime" "^7.3.1" - "@polkadot/api-derive" "^0.43.15" - "@polkadot/extrinsics" "^0.43.15" - "@polkadot/rpc-provider" "^0.43.15" - "@polkadot/rpc-rx" "^0.43.15" - "@polkadot/storage" "^0.43.15" - "@polkadot/types" "^0.43.15" - "@polkadot/util-crypto" "^0.34.20" + "@polkadot/api-derive" "^0.45.8" + "@polkadot/extrinsics" "^0.45.8" + "@polkadot/rpc-provider" "^0.45.8" + "@polkadot/rpc-rx" "^0.45.8" + "@polkadot/storage" "^0.45.8" + "@polkadot/types" "^0.45.8" + "@polkadot/util-crypto" "^0.34.21" "@polkadot/dev-react@^0.24.2": version "0.24.2" @@ -1563,67 +1563,67 @@ typedoc-plugin-no-inherit "^1.1.6" typescript "^3.3.3" -"@polkadot/extrinsics@^0.43.15": - version "0.43.15" - resolved "https://registry.yarnpkg.com/@polkadot/extrinsics/-/extrinsics-0.43.15.tgz#b7cdf3a618538d4a8cadd72426e236d16664ef0a" - integrity sha512-pw7Q2JB2CoHdO/dVa8P10KdGQg1sn3B6hkUu82+lz/j28BB8wm9b798ZPOKfEskHirVvBFEuYyA2nq51/hlifA== +"@polkadot/extrinsics@^0.45.8": + version "0.45.8" + resolved "https://registry.yarnpkg.com/@polkadot/extrinsics/-/extrinsics-0.45.8.tgz#c87112aab492bb2872742984981975c9c068beab" + integrity sha512-x8lhwpGuFCLuv+QWZ8j9ed5kN2ksvGeMdd5dLW3IcXUITdiP75k5ndROAAY4o7TkXjrH6OY1a84k0jguluXECQ== dependencies: "@babel/runtime" "^7.3.1" - "@polkadot/types" "^0.43.15" - "@polkadot/util" "^0.34.20" + "@polkadot/types" "^0.45.8" + "@polkadot/util" "^0.34.21" -"@polkadot/jsonrpc@^0.43.15": - version "0.43.15" - resolved "https://registry.yarnpkg.com/@polkadot/jsonrpc/-/jsonrpc-0.43.15.tgz#96f800321d91bd2ff48b945667c9b3e93dc4bc80" - integrity sha512-Vpayyg84oMsCFpOr8Smy/v+JWqcYQAa8uC+eLeelgNv0PZG2ENxPAxL0rg6FyO89K4IisgnPgqj8gLqD1BL/kA== +"@polkadot/jsonrpc@^0.45.8": + version "0.45.8" + resolved "https://registry.yarnpkg.com/@polkadot/jsonrpc/-/jsonrpc-0.45.8.tgz#18cb0eb19180bc4d72c13e089f92a63405350759" + integrity sha512-dqQIKVMiPadNs3kOgWA0VmgVUVZ2VkmhHqMNDf52C5C0Bwow9DEgAdWOulas8tod0MvPjEB2ascDoxiZjtGBCA== dependencies: "@babel/runtime" "^7.3.1" -"@polkadot/keyring@^0.34.20": - version "0.34.20" - resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-0.34.20.tgz#b6a9a36620b6ce668f568053870e7942175e551b" - integrity sha512-ZFhgPr2F+WqLuP3jfiReqSHaxYrxfS+tBtdsy4CdmShtRXZ115aoVhTaSXiCnNysdgZQryW6HJBlxGDgU7mSvg== +"@polkadot/keyring@^0.34.21": + version "0.34.21" + resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-0.34.21.tgz#1fa44bc90029443db960fc0edbf7a5fb251e2de0" + integrity sha512-9yIxAn51DY1/ZE6dH920MnQIzRlR+s3QKKk3rICChnzJBJFki0yfmvTZ/3Wi/p+bK7WjFMrzm03ZtAQBzOgUsQ== dependencies: "@babel/runtime" "^7.3.1" - "@polkadot/util" "^0.34.20" - "@polkadot/util-crypto" "^0.34.20" + "@polkadot/util" "^0.34.21" + "@polkadot/util-crypto" "^0.34.21" "@types/bs58" "^4.0.0" bs58 "^4.0.1" -"@polkadot/rpc-core@^0.43.15": - version "0.43.15" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-0.43.15.tgz#1aaddc887dcc8359420d649494b4586c2c46eae2" - integrity sha512-QDhLWfvdd/b4iM+XPL2u0flJefv7XrO3ApYpTJ9cXsDKKyH1/Dj2hSVyZUtviEkop4HtYU/nGCf4087ANVa+Yg== +"@polkadot/rpc-core@^0.45.8": + version "0.45.8" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-0.45.8.tgz#010eb2b829fac28e22907bf628437747fdae9e6b" + integrity sha512-jhMRLAT+BPmZIXRgVCQn8CQPxTHSHHGvWoxuyzrXQbshEO0rq+sDnQvXE8F5vmBIxd7W8c4m5ajO4jTf7/ojvg== dependencies: "@babel/runtime" "^7.3.1" - "@polkadot/jsonrpc" "^0.43.15" - "@polkadot/rpc-provider" "^0.43.15" - "@polkadot/types" "^0.43.15" - "@polkadot/util" "^0.34.20" + "@polkadot/jsonrpc" "^0.45.8" + "@polkadot/rpc-provider" "^0.45.8" + "@polkadot/types" "^0.45.8" + "@polkadot/util" "^0.34.21" -"@polkadot/rpc-provider@^0.43.15": - version "0.43.15" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-0.43.15.tgz#69b4d5df859ab39f93e7da132e82960c87eb68d4" - integrity sha512-rSUSKXbZITvqQWtgKDVU5SeIwg3bP6oQXCW/Xs1AzwsipKlJd8LBN/ZSBC+wsai+r+w7J7W5sNXxSwbLJ0qSdw== +"@polkadot/rpc-provider@^0.45.8": + version "0.45.8" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-0.45.8.tgz#0ea2297f210a82c0d713ec68b44a15be2f69ae66" + integrity sha512-riZdSm6tcsHCUMe2HR2f8MYMe7kWNS3vu8W/5OtDVsDH0Y0E8mR7kVJjl14yhM/4eIcmiL1a71XoSwA4vnPCnA== dependencies: "@babel/runtime" "^7.3.1" - "@polkadot/keyring" "^0.34.20" - "@polkadot/storage" "^0.43.15" - "@polkadot/util" "^0.34.20" - "@polkadot/util-crypto" "^0.34.20" + "@polkadot/keyring" "^0.34.21" + "@polkadot/storage" "^0.45.8" + "@polkadot/util" "^0.34.21" + "@polkadot/util-crypto" "^0.34.21" "@types/nock" "^9.3.1" eventemitter3 "^3.1.0" isomorphic-fetch "^2.2.1" websocket "^1.0.28" -"@polkadot/rpc-rx@^0.43.15": - version "0.43.15" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-rx/-/rpc-rx-0.43.15.tgz#75dbbb78a92b610e6b080065c0bd9596b3c4b967" - integrity sha512-oEZ/+3LTUjVc19qX6dAxHJ2nCYGqUh7GTJT1WV/aByfWYFRu8EaQ3KnB38xdoAjAgoXv3EjU42pWtLaggKU7SQ== +"@polkadot/rpc-rx@^0.45.8": + version "0.45.8" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-rx/-/rpc-rx-0.45.8.tgz#32b879767b5438eb76bd8bd4d8dcb1250dc988c7" + integrity sha512-MVMtZBJTCLNl85aSnlGbDY0gZ1eNJfhAvHZGoXBhmfKIfAwD4itDkznb2/6fEuBLV2ElUHvaz58G60wnFu6D5Q== dependencies: "@babel/runtime" "^7.3.1" - "@polkadot/rpc-core" "^0.43.15" - "@polkadot/rpc-provider" "^0.43.15" + "@polkadot/rpc-core" "^0.45.8" + "@polkadot/rpc-provider" "^0.45.8" "@types/memoizee" "^0.4.2" "@types/rx" "^4.1.1" memoizee "^0.4.14" @@ -1634,85 +1634,85 @@ resolved "https://registry.yarnpkg.com/@polkadot/schnorrkel-js/-/schnorrkel-js-0.1.2-1.tgz#90e4e8bca54157513cf5192f4581491bcbf5c44e" integrity sha512-Y6cJWOOJyQ6TPzWzfgPrZlWzcR89X2tOgLIrCXOyEE72+CFiBfyAQDqG2jBzxolEqqN/Fz0AUdxqPT45BzionQ== -"@polkadot/storage@^0.43.15": - version "0.43.15" - resolved "https://registry.yarnpkg.com/@polkadot/storage/-/storage-0.43.15.tgz#71e33671a3a9f5420b37697efd7abc9ea6aa8d49" - integrity sha512-D3NAKV32folkvtyBMUbesSMlkXcXDFyMDgR600w5Kcr0RsOsd2dJq9h3mzYyBF7DfeAUnrIP02VgSt5G7u3+mQ== +"@polkadot/storage@^0.45.8": + version "0.45.8" + resolved "https://registry.yarnpkg.com/@polkadot/storage/-/storage-0.45.8.tgz#ee9539e73cfa50591b9c55b069b2869b0d0cf562" + integrity sha512-hSOULuiCSEsrXCIf9x5BgIGdfko6VviCPTpmuEFhRdgDWmNwMYPFm2NwrFk8twm8CXUjqHQrr2urI8AIsK8pmQ== dependencies: "@babel/runtime" "^7.3.1" - "@polkadot/keyring" "^0.34.20" - "@polkadot/types" "^0.43.15" - "@polkadot/util" "^0.34.20" - "@polkadot/util-crypto" "^0.34.20" + "@polkadot/keyring" "^0.34.21" + "@polkadot/types" "^0.45.8" + "@polkadot/util" "^0.34.21" + "@polkadot/util-crypto" "^0.34.21" "@polkadot/ts@^0.1.52": version "0.1.52" resolved "https://registry.yarnpkg.com/@polkadot/ts/-/ts-0.1.52.tgz#6fb09e494d244dad4b3a9ca581bfe13beec66565" integrity sha512-sij1O0x4CY51A394RYD4/aQwDPwIxIeTOpYI4AZgdF/vq5nvF14b4XFq9vAcSnblaIosf0sYKoz1f3dkN3QqLw== -"@polkadot/types@^0.43.15": - version "0.43.15" - resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-0.43.15.tgz#5d69e741167b185eb34ca3fc3153fb1b539dc64d" - integrity sha512-/TtRdTSxXnmJDkfJcBWs78c5CLd4FZ8C0H0CFaolX0HylDu9NJP49BRD3Ol7dLGWheWym2jY/PpCo7WS/rRCgQ== +"@polkadot/types@^0.45.8": + version "0.45.8" + resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-0.45.8.tgz#a1abe64ccfce503b6da8b1136ce484692df260be" + integrity sha512-xmpK+rsz8Y5kUI1p8nPc8tB1RLj1dU2+vyvu+448nHMtd02Lukjjukl6aqqaMKdL5th2eYSJfexGSzlyTTNBNg== dependencies: "@babel/runtime" "^7.3.1" - "@polkadot/keyring" "^0.34.20" - "@polkadot/util" "^0.34.20" + "@polkadot/keyring" "^0.34.21" + "@polkadot/util" "^0.34.21" core-js "^2.6.5" -"@polkadot/ui-assets@^0.26.7": - version "0.26.7" - resolved "https://registry.yarnpkg.com/@polkadot/ui-assets/-/ui-assets-0.26.7.tgz#1271011c48e330110314025a99e52405f9818aec" - integrity sha512-TJr2KHlEKuwAzwCZO9c3ws3SHofr2VQFMC/xeTobJ1nGgzn68jD+EhbAQoeYopBjtIY4vaMOs1TBhzNf1lBMpg== +"@polkadot/ui-assets@^0.26.9": + version "0.26.9" + resolved "https://registry.yarnpkg.com/@polkadot/ui-assets/-/ui-assets-0.26.9.tgz#25990dc9de13520d4e77e9073cc5d2554c2eee38" + integrity sha512-NFwkwr344KDUGZtjrm96upKweat3qwP6SvyFYisUwknSv6u6zFWoVprCgrf6xv7JyyDXahkwOgdjED6Sw1NwFg== dependencies: "@babel/runtime" "^7.3.1" -"@polkadot/ui-identicon@^0.26.7": - version "0.26.7" - resolved "https://registry.yarnpkg.com/@polkadot/ui-identicon/-/ui-identicon-0.26.7.tgz#088df1d3175758f7799e47fc4f9da9a7521b139c" - integrity sha512-P5tGqtILxrq4jjwZue+cQNNmCQvH+psjFMuAda29KzqFDdyVvQ2iq19q1y/0sw0zl+sRPe3Cc97D1k2kuGQ1Vg== +"@polkadot/ui-identicon@^0.26.9": + version "0.26.9" + resolved "https://registry.yarnpkg.com/@polkadot/ui-identicon/-/ui-identicon-0.26.9.tgz#bfe97680de619c7eb416fba3374c2e2a433647b7" + integrity sha512-/uEFlnEzbnWZm/MxfhP7jYcno2VR/dczSZbXd4zj0vj0kVyejCQ20xX4drXugCiehJz++WKcujrWtgoX0fGdiQ== dependencies: "@babel/runtime" "^7.3.1" - "@polkadot/ui-settings" "^0.26.7" + "@polkadot/ui-settings" "^0.26.9" "@types/color" "^3.0.0" "@types/react-copy-to-clipboard" "^4.2.6" color "^3.0.0" react-copy-to-clipboard "^5.0.1" -"@polkadot/ui-keyring@^0.26.7": - version "0.26.7" - resolved "https://registry.yarnpkg.com/@polkadot/ui-keyring/-/ui-keyring-0.26.7.tgz#dc24faf6961caf0a0f9b4214b090573103f6f247" - integrity sha512-/+BBfZTV9gQ/cPzSQ5fxDOFt0jP1mNn9GzhfrUCjqCvWLblV9YXuUkWlGN7CxHenfmHjlAUvCpPdO2XHk2siiQ== +"@polkadot/ui-keyring@^0.26.9": + version "0.26.9" + resolved "https://registry.yarnpkg.com/@polkadot/ui-keyring/-/ui-keyring-0.26.9.tgz#85bab4a1806c5be2e6e96bd4f34da0e925e07a4d" + integrity sha512-P+7i3hLbQcqgyoF8lo6jlO7Qm+U51r8ObDfFqzHgGWu13267i1rhu0ISfuMNfUl0gBJxmU/ez8yJ98OnXE/cXA== dependencies: "@babel/runtime" "^7.3.1" "@types/store" "^2.0.1" rxjs "^6.4.0" store "^2.0.12" -"@polkadot/ui-settings@^0.26.7": - version "0.26.7" - resolved "https://registry.yarnpkg.com/@polkadot/ui-settings/-/ui-settings-0.26.7.tgz#c51153d10bfd05be7703a3cb69023d2a5269933a" - integrity sha512-hkNjGO/Xob2sMFNLQIALc2oBac06Y21gFn8AFxMt5+4q5BSlozsdrzXsykMxtyJSxoolW4upf+1X0iPDb7PqyA== +"@polkadot/ui-settings@^0.26.9": + version "0.26.9" + resolved "https://registry.yarnpkg.com/@polkadot/ui-settings/-/ui-settings-0.26.9.tgz#e70ecef1fe6a785c489aea5827d45edb6a4f3ed0" + integrity sha512-jUSgjCiWyofNvqlNKwTVel2IwTeYbBsHq4rJHsJ6Bm+cfXO0hXfHsh3/BB6MprQP9VxryPAeULGYDkeyeCvltA== dependencies: "@babel/runtime" "^7.3.1" "@types/store" "^2.0.1" store "^2.0.12" -"@polkadot/ui-util@^0.26.7": - version "0.26.7" - resolved "https://registry.yarnpkg.com/@polkadot/ui-util/-/ui-util-0.26.7.tgz#9a25e76f11b598c4536642d81bf0a1e02163f876" - integrity sha512-YEZp7rmmXhI2q2pVH4xxw/L74I9VxA52mId4Q8c6A6ZZZK4u+xAejWnlwSami3OlnpQcO+n7NIJoI0KAhA2biw== +"@polkadot/ui-util@^0.26.9": + version "0.26.9" + resolved "https://registry.yarnpkg.com/@polkadot/ui-util/-/ui-util-0.26.9.tgz#57d7841f1b5835791ba14c3dcc87c55a6aedb8bb" + integrity sha512-PlcswwtrwSRkijrui8Zw1r3uSmwEafHp9hg9n9z8ZCR9EsMMJzYBEBMMSJheet7V4Y8o8/5xapo44j3TsFuP7Q== dependencies: "@babel/runtime" "^7.3.1" -"@polkadot/util-crypto@^0.34.20": - version "0.34.20" - resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-0.34.20.tgz#4b4776833b5a6a2ce4c1307be29694c3d47e24ea" - integrity sha512-FXQqI67vhmu6+ZJBQm5aMttW3AopZyT+xgOGYpCZzuYOj1ODHEvrCrLxjRsgiYQw1tr92OTjbKeN0MRGaG6QGA== +"@polkadot/util-crypto@^0.34.21": + version "0.34.21" + resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-0.34.21.tgz#b84cd47a03522f4dfaacca3e465771fcab4b283f" + integrity sha512-nDNQEbbCr9u6SfF1/Ts+EKUO4Nl70NqeLTirQagmiU58ju7rPX18vw3nCbA8/35LCCj8gliwkkFXrLtINQmRPg== dependencies: "@babel/runtime" "^7.3.1" "@polkadot/schnorrkel-js" "^0.1.2-1" - "@polkadot/util" "^0.34.20" + "@polkadot/util" "^0.34.21" "@types/bip39" "^2.4.2" "@types/webassembly-js-api" "^0.0.2" "@types/xxhashjs" "^0.2.0" @@ -1722,10 +1722,10 @@ tweetnacl "^1.0.1" xxhashjs "^0.2.2" -"@polkadot/util@^0.34.20": - version "0.34.20" - resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.34.20.tgz#3ebc10c8989c488220bece1b01028f740c5df5a7" - integrity sha512-MbMQw3qG9rfUpcCmcCEB1ZWqeXUocSnDng1CDF6n7jdqpt+KsTG4LghWXjdnvEIdKZMamfNaE4r8TZ+2iEQfJA== +"@polkadot/util@^0.34.21": + version "0.34.21" + resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.34.21.tgz#5cf793435b4db933deeda7aa6b4a7668e0652c34" + integrity sha512-tzSiEIdwht6cXZAw0cYtKJCeItV5THX0q6RfWItmEy/kYuPGrxBeEYY4HQHJqifok4rBay6E912zcelxXvmJ1w== dependencies: "@babel/runtime" "^7.3.1" "@types/bn.js" "^4.11.4"