From 73e6d49a9acb1e47f49b3c114b7202469214bfe4 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Thu, 31 Oct 2019 11:29:17 +0100 Subject: [PATCH] Swap derive idAndIndex to info only (#1817) --- package.json | 6 +- packages/app-contracts/package.json | 2 +- .../app-staking/src/Overview/CurrentList.tsx | 30 +++++-- packages/react-api/package.json | 2 +- packages/react-components/src/AddressRow.tsx | 47 ++++------ packages/react-components/src/CodeRow.tsx | 5 +- packages/react-components/src/Row.tsx | 4 +- packages/react-query/src/AccountIndex.tsx | 11 ++- packages/react-query/src/AccountName.tsx | 12 ++- yarn.lock | 90 +++++++++---------- 10 files changed, 104 insertions(+), 105 deletions(-) diff --git a/package.json b/package.json index 1ed0d64ad8..2aad035b17 100644 --- a/package.json +++ b/package.json @@ -10,10 +10,10 @@ "packages/*" ], "resolutions": { - "@polkadot/api": "^0.96.0-beta.15", - "@polkadot/api-contract": "^0.96.0-beta.15", + "@polkadot/api": "^0.96.0-beta.16", + "@polkadot/api-contract": "^0.96.0-beta.16", "@polkadot/keyring": "^1.6.1", - "@polkadot/types": "^0.96.0-beta.15", + "@polkadot/types": "^0.96.0-beta.16", "@polkadot/util": "^1.6.1", "@polkadot/util-crypto": "^1.6.1", "babel-core": "^7.0.0-bridge.0", diff --git a/packages/app-contracts/package.json b/packages/app-contracts/package.json index 8a83666d3d..a38d998615 100644 --- a/packages/app-contracts/package.json +++ b/packages/app-contracts/package.json @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.6.3", - "@polkadot/api-contract": "^0.96.0-beta.15", + "@polkadot/api-contract": "^0.96.0-beta.16", "@polkadot/react-components": "^0.37.0-beta.26" } } diff --git a/packages/app-staking/src/Overview/CurrentList.tsx b/packages/app-staking/src/Overview/CurrentList.tsx index e62a0915de..d67d4f7ea9 100644 --- a/packages/app-staking/src/Overview/CurrentList.tsx +++ b/packages/app-staking/src/Overview/CurrentList.tsx @@ -7,7 +7,7 @@ import { I18nProps } from '@polkadot/react-components/types'; import { EraPoints } from '@polkadot/types/interfaces'; import { ValidatorFilter } from '../types'; -import React, { useState } from 'react'; +import React, { useEffect, useState } from 'react'; import { Columar, Column, Dropdown, FilterOverlay } from '@polkadot/react-components'; import translate from '../translate'; @@ -23,8 +23,8 @@ interface Props extends I18nProps { recentlyOnline?: DerivedHeartbeats; } -function renderColumn (addresses: string[], defaultName: string, withNominations: boolean, withPoints: boolean, filter: string, without: string[], { authorsMap, currentElected, eraPoints, lastAuthors, recentlyOnline }: Props): React.ReactNode { - return addresses.filter((address): boolean => !without.includes(address)).map((address, index): React.ReactNode => ( +function renderColumn (addresses: string[], defaultName: string, withNominations: boolean, withPoints: boolean, filter: string, { authorsMap, currentElected, eraPoints, lastAuthors, recentlyOnline }: Props): React.ReactNode { + return addresses.map((address, index): React.ReactNode => (
!without.includes(accountId)); +} + function CurrentList (props: Props): React.ReactElement { const [filter, setFilter] = useState('all'); + const [{ electedFiltered, nextFiltered }, setFiltered] = useState<{ electedFiltered: string[]; nextFiltered: string[] }>({ electedFiltered: [], nextFiltered: [] }); const { currentElected, currentValidators, next, t } = props; + useEffect((): void => { + if (currentElected && currentValidators) { + setFiltered({ + electedFiltered: filterAccounts(currentElected, currentValidators), + nextFiltered: filterAccounts(next, currentElected) + }); + } + }, [currentElected, currentValidators, next]); + return (
@@ -71,14 +85,18 @@ function CurrentList (props: Props): React.ReactElement { emptyText={t('No addresses found')} headerText={t('validators')} > - {renderColumn(currentValidators, t('validator'), true, true, filter, [], props)} + {renderColumn(currentValidators, t('validator'), true, true, filter, props)} - {renderColumn(currentElected, t('intention'), false, false, filter, currentValidators, props)} - {renderColumn(next, t('intention'), false, false, filter, currentElected || [], props)} + {(electedFiltered.length !== 0 || nextFiltered.length !== 0) && ( + <> + {renderColumn(electedFiltered, t('intention'), true, false, filter, props)} + {renderColumn(nextFiltered, t('intention'), false, false, filter, props)} + + )}
diff --git a/packages/react-api/package.json b/packages/react-api/package.json index d0ac2520f7..624e7a7b0a 100644 --- a/packages/react-api/package.json +++ b/packages/react-api/package.json @@ -31,7 +31,7 @@ "homepage": "https://github.com/polkadot-js/ui/tree/master/packages/ui-reactive#readme", "dependencies": { "@babel/runtime": "^7.6.3", - "@polkadot/api": "^0.96.0-beta.15", + "@polkadot/api": "^0.96.0-beta.16", "@polkadot/extension-dapp": "^0.14.0-beta.1", "edgeware-node-types": "^1.0.10", "rxjs-compat": "^6.5.3" diff --git a/packages/react-components/src/AddressRow.tsx b/packages/react-components/src/AddressRow.tsx index 9443af0024..4a48c7ae93 100644 --- a/packages/react-components/src/AddressRow.tsx +++ b/packages/react-components/src/AddressRow.tsx @@ -51,13 +51,12 @@ class AddressRow extends Row { this.state = this.createState(); } - public static getDerivedStateFromProps ({ accounts_idAndIndex = [], accounts_info, defaultName, isEditable, noDefaultNameOpacity, type, value }: Props, prevState: State): State | null { - const [_accountId] = accounts_idAndIndex; - const accountId = _accountId || value; + public static getDerivedStateFromProps ({ accounts_info = {}, defaultName, isEditable, noDefaultNameOpacity, type, value }: Props, prevState: State): State | null { + const accountId = accounts_info.accountId || value; const address = accountId ? accountId.toString() : DEFAULT_ADDR; - const [, isDefault, nameInner] = accounts_info && accounts_info.nickname + const [, isDefault, nameInner] = accounts_info.nickname ? [true, false, accounts_info.nickname.toUpperCase()] : getAddressName(address, type, defaultName || ''); const name = isDefault && !noDefaultNameOpacity && !isEditable @@ -83,8 +82,8 @@ class AddressRow extends Row { } public render (): React.ReactNode { - const { accounts_idAndIndex = [], className, isContract, isDisabled, isInline, style } = this.props; - const [accountId, accountIndex] = accounts_idAndIndex; + const { accounts_info = {}, className, isContract, isDisabled, isInline, label, style } = this.props; + const { accountId, accountIndex } = accounts_info; const isValid = this.props.isValid || accountId || accountIndex; return ( @@ -95,7 +94,7 @@ class AddressRow extends Row {
{this.renderIcon()}
- {this.renderLabel()} + {label && } {this.renderAddressAndName()} {this.renderAccountIndex()} {!isContract && this.renderBalances()} @@ -109,9 +108,8 @@ class AddressRow extends Row { } private createState (): State { - const { accounts_idAndIndex = [], defaultName, type, value } = this.props; - const [_accountId] = accounts_idAndIndex; - const accountId = _accountId || value; + const { accounts_info = {}, defaultName, type, value } = this.props; + const accountId = accounts_info.accountId || value; const address = accountId ? accountId.toString() : DEFAULT_ADDR; @@ -142,9 +140,9 @@ class AddressRow extends Row { } private renderAddress (): React.ReactNode { - const { accounts_idAndIndex = [], withIndexOrAddress = true } = this.props; + const { accounts_info = {}, withIndexOrAddress = true } = this.props; const { address } = this.state; - const [, accountIndex] = accounts_idAndIndex; + const { accountIndex } = accounts_info; if (accountIndex && withIndexOrAddress) { return null; @@ -163,8 +161,8 @@ class AddressRow extends Row { } private renderAccountIndex (): React.ReactNode { - const { accounts_idAndIndex = [], withIndex = true, withIndexOrAddress = true } = this.props; - const [, accountIndex] = accounts_idAndIndex; + const { accounts_info = {}, withIndex = true, withIndexOrAddress = true } = this.props; + const { accountIndex } = accounts_info; if (!accountIndex || !(withIndex || withIndexOrAddress)) { return null; @@ -178,8 +176,8 @@ class AddressRow extends Row { } private renderBalances (): React.ReactNode { - const { accounts_idAndIndex = [], extraInfo, withBalance, withValidatorPrefs } = this.props; - const [accountId] = accounts_idAndIndex; + const { accounts_info = {}, extraInfo, withBalance, withValidatorPrefs } = this.props; + const { accountId } = accounts_info; if (!(withBalance || withValidatorPrefs) || !accountId) { return null; @@ -198,9 +196,9 @@ class AddressRow extends Row { } private renderIcon (): React.ReactNode { - const { accounts_idAndIndex = [], iconInfo, systemName, withIcon = true } = this.props; + const { accounts_info = {}, iconInfo, systemName, withIcon = true } = this.props; const { address } = this.state; - const [accountId] = accounts_idAndIndex; + const { accountId } = accounts_info; if (!withIcon) { return null; @@ -229,18 +227,6 @@ class AddressRow extends Row { ); } - private renderLabel (): React.ReactNode { - const { label } = this.props; - - if (!label) { - return null; - } - - return ( - - ); - } - protected saveName = (): void => { const { address, name } = this.state; const trimmedName = name.trim(); @@ -299,7 +285,6 @@ export default withMulti( `, translate, withCalls( - ['derive.accounts.idAndIndex', { paramName: 'value' }], ['derive.accounts.info', { paramName: 'value' }] ) ); diff --git a/packages/react-components/src/CodeRow.tsx b/packages/react-components/src/CodeRow.tsx index 1ef1db648b..aaf2bbbcdc 100644 --- a/packages/react-components/src/CodeRow.tsx +++ b/packages/react-components/src/CodeRow.tsx @@ -57,12 +57,11 @@ class CodeRow extends Row { this.state = this.createState(); } - public static getDerivedStateFromProps ({ code: { json }, accounts_idAndIndex = [] }: Props, prevState: State): State | null { + public static getDerivedStateFromProps ({ code: { json }, accounts_info }: Props, prevState: State): State | null { const codeHash = json.codeHash || DEFAULT_HASH; const name = json.name || DEFAULT_NAME; const tags = json.tags || []; - const [_accountId] = accounts_idAndIndex; - const accountId = _accountId; + const { accountId } = accounts_info || {}; const address = accountId ? accountId.toString() : DEFAULT_ADDR; diff --git a/packages/react-components/src/Row.tsx b/packages/react-components/src/Row.tsx index 6a927f6e3a..281b55d043 100644 --- a/packages/react-components/src/Row.tsx +++ b/packages/react-components/src/Row.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 { AccountId, AccountIndex } from '@polkadot/types/interfaces'; +import { DeriveAccountInfo } from '@polkadot/api-derive/types'; import { KeyringItemType } from '@polkadot/ui-keyring/types'; import { Label } from 'semantic-ui-react'; @@ -190,7 +190,7 @@ export const styles = ` `; export interface RowProps { - accounts_idAndIndex?: [AccountId?, AccountIndex?]; + accounts_info?: DeriveAccountInfo; buttons?: React.ReactNode; children?: React.ReactNode; className?: string; diff --git a/packages/react-query/src/AccountIndex.tsx b/packages/react-query/src/AccountIndex.tsx index 7243208d8f..b28c0a7391 100644 --- a/packages/react-query/src/AccountIndex.tsx +++ b/packages/react-query/src/AccountIndex.tsx @@ -1,23 +1,22 @@ -/* eslint-disable @typescript-eslint/camelcase */ // Copyright 2017-2019 @polkadot/react-query authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. +import { DeriveAccountInfo } from '@polkadot/api-derive/types'; import { BareProps, CallProps } from '@polkadot/react-api/types'; -import { AccountId, AccountIndex } from '@polkadot/types/interfaces'; import React from 'react'; import { withCalls } from '@polkadot/react-api'; interface Props extends BareProps, CallProps { children?: React.ReactNode; + info?: DeriveAccountInfo; label?: React.ReactNode; params?: string | null; - accounts_idAndIndex?: [AccountId?, AccountIndex?]; } -export function AccountIndexDisplay ({ children, className, label = '', style, accounts_idAndIndex }: Props): React.ReactElement { - const [, accountIndex] = accounts_idAndIndex || []; +export function AccountIndexDisplay ({ children, className, info, label = '', style }: Props): React.ReactElement { + const { accountIndex } = info || {}; return (
( - ['derive.accounts.idAndIndex', { paramName: 'params' }] + ['derive.accounts.info', { paramName: 'params' }] )(AccountIndexDisplay); diff --git a/packages/react-query/src/AccountName.tsx b/packages/react-query/src/AccountName.tsx index 5d3b5f4f41..4ed6051cef 100644 --- a/packages/react-query/src/AccountName.tsx +++ b/packages/react-query/src/AccountName.tsx @@ -13,7 +13,6 @@ import { getAddressName } from '@polkadot/react-components/util'; interface Props extends BareProps, CallProps { children?: React.ReactNode; defaultName?: string; - idAndIndex?: [AccountId?, AccountIndex?]; info?: DeriveAccountInfo; label?: React.ReactNode; params?: string | null; @@ -42,21 +41,21 @@ function defaultOrAddr (defaultName = '', _address?: AccountId | string | null, return extracted; } -export function AccountName ({ children, className, defaultName, idAndIndex, info, label = '', params, style }: Props): React.ReactElement { +export function AccountName ({ children, className, defaultName, info, label = '', params, style }: Props): React.ReactElement { const [name, setName] = useState(defaultOrAddr(defaultName, params)); useEffect((): void => { - const [accountId, accountIndex] = idAndIndex || []; + const { accountId, accountIndex, nickname } = info || {}; - if (info && info.nickname) { - const name = info.nickname.toUpperCase(); + if (nickname) { + const name = nickname.toUpperCase(); nameCache.set(params || '', name); setName(name); } else { setName(defaultOrAddr(defaultName, accountId || params, accountIndex)); } - }, [idAndIndex, info]); + }, [info]); return (
( - ['derive.accounts.idAndIndex', { paramName: 'params', propName: 'idAndIndex' }], ['derive.accounts.info', { paramName: 'params', propName: 'info' }] )(AccountName); diff --git a/yarn.lock b/yarn.lock index f03ff65e6e..d7481320d8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2016,45 +2016,45 @@ once "^1.4.0" universal-user-agent "^4.0.0" -"@polkadot/api-contract@^0.96.0-beta.15": - version "0.96.0-beta.15" - resolved "https://registry.yarnpkg.com/@polkadot/api-contract/-/api-contract-0.96.0-beta.15.tgz#25c910de8535a52daf7a08dc8c19cb4c74985a21" - integrity sha512-QXQANhO2BrtORbQgIHEhEhM8JIMwo30Axhug5xKa9SQQ/FnHWt0dslU9qutGfqJngGFE0HSyn1WSrPoBXgZSzA== +"@polkadot/api-contract@^0.96.0-beta.16": + version "0.96.0-beta.16" + resolved "https://registry.yarnpkg.com/@polkadot/api-contract/-/api-contract-0.96.0-beta.16.tgz#0c46e6b69d4dd8b5f3327b1d0ef61db6ec27ceba" + integrity sha512-kfaypjOd/YjpUyzxZH6WGW8rtj6rbevpCIDmWQaqYg5c4RpC1JO0iFzx6Q4vRLRwnRGZorygKdY7rTrI/Yh3lw== dependencies: "@babel/runtime" "^7.6.3" - "@polkadot/types" "^0.96.0-beta.15" + "@polkadot/types" "^0.96.0-beta.16" -"@polkadot/api-derive@^0.96.0-beta.15": - version "0.96.0-beta.15" - resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-0.96.0-beta.15.tgz#a0bb19445eccee7f480d87724e5b31d398c59bab" - integrity sha512-0Dg9QJUapk4GAJIHIYCw9hgpeZNBYiI797rtv1njWu6Pcpqv2TwrrHFiSZT6uC7Xz2r7k+prkjNhf42Q74T1Jg== +"@polkadot/api-derive@^0.96.0-beta.16": + version "0.96.0-beta.16" + resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-0.96.0-beta.16.tgz#2e8e22a18c5ea78d013ac3ddf6b6b598b35bdbcf" + integrity sha512-HdgynIq6EeggVpNWndZe9S+3UIKZGFUyQf+NDjsP0On9XI1E3Q+3KQRduRVjsgMCo4bQSTp9CTUT9Fdc0EbBjQ== dependencies: "@babel/runtime" "^7.6.3" - "@polkadot/api" "^0.96.0-beta.15" - "@polkadot/types" "^0.96.0-beta.15" + "@polkadot/api" "^0.96.0-beta.16" + "@polkadot/types" "^0.96.0-beta.16" -"@polkadot/api-metadata@^0.96.0-beta.15": - version "0.96.0-beta.15" - resolved "https://registry.yarnpkg.com/@polkadot/api-metadata/-/api-metadata-0.96.0-beta.15.tgz#4d94e41e681f4bd68d4dab22bbbedbd89b23c29e" - integrity sha512-SFjoMRtQzxE35y39Rw0+ujvVif6gC015rKcjPsZbRTbbrleJsNNvwSm0OuqEUVRmnQShkafConM6AFv1Cbyigw== +"@polkadot/api-metadata@^0.96.0-beta.16": + version "0.96.0-beta.16" + resolved "https://registry.yarnpkg.com/@polkadot/api-metadata/-/api-metadata-0.96.0-beta.16.tgz#6722617e0a26ce18d70533f26a72f3d7bc8d87d3" + integrity sha512-xNGoO0IgaNv4NkFWIsXHsbi5Hks55Alz6GcPH1rgeFAq8odGm+Dosbpg/N1ftPHV0v/hyy/e9bqJDpGYwUD8+A== dependencies: "@babel/runtime" "^7.6.3" - "@polkadot/types" "^0.96.0-beta.15" + "@polkadot/types" "^0.96.0-beta.16" "@polkadot/util" "^1.6.1" "@polkadot/util-crypto" "^1.6.1" -"@polkadot/api@^0.96.0-beta.15": - version "0.96.0-beta.15" - resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-0.96.0-beta.15.tgz#e12ac1ff2dd5136bbbeb8e7c9695c16ca965b31d" - integrity sha512-9D5je8yQxQl/tbNU5vdF4FLCFH5in0XDaxdmhOd2E8/HN/JyEhISL+t/S0x787VcoOcch6GI4P4Qpb0a3BXEDg== +"@polkadot/api@^0.96.0-beta.16": + version "0.96.0-beta.16" + resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-0.96.0-beta.16.tgz#cf6a5b20a097743246fc098b25b9a4195a6e1982" + integrity sha512-qIEbARUbWEoSPnLJmLvDNbSctE9ilYKtn3QzBD4rnidvcLi+xFG9YvDvc0S8KojK5DtkQK6FaqW/Tt2E8gCUsg== dependencies: "@babel/runtime" "^7.6.3" - "@polkadot/api-derive" "^0.96.0-beta.15" - "@polkadot/api-metadata" "^0.96.0-beta.15" + "@polkadot/api-derive" "^0.96.0-beta.16" + "@polkadot/api-metadata" "^0.96.0-beta.16" "@polkadot/keyring" "^1.6.1" - "@polkadot/rpc-core" "^0.96.0-beta.15" - "@polkadot/rpc-provider" "^0.96.0-beta.15" - "@polkadot/types" "^0.96.0-beta.15" + "@polkadot/rpc-core" "^0.96.0-beta.16" + "@polkadot/rpc-provider" "^0.96.0-beta.16" + "@polkadot/types" "^0.96.0-beta.16" "@polkadot/util-crypto" "^1.6.1" "@polkadot/dev-react@^0.32.0-beta.12": @@ -2156,10 +2156,10 @@ dependencies: "@babel/runtime" "^7.6.3" -"@polkadot/jsonrpc@^0.96.0-beta.15": - version "0.96.0-beta.15" - resolved "https://registry.yarnpkg.com/@polkadot/jsonrpc/-/jsonrpc-0.96.0-beta.15.tgz#d885b1b17386a8e87dbc5951e8be88ca775a962f" - integrity sha512-db08i+S45Gy8c8apM2DtXZVN4bV3pWOmnoKxFxsW7fFatQ0lAeAe2xMdyMSdoU7UiU7OzMO/BIdwLkJe4o3Jnw== +"@polkadot/jsonrpc@^0.96.0-beta.16": + version "0.96.0-beta.16" + resolved "https://registry.yarnpkg.com/@polkadot/jsonrpc/-/jsonrpc-0.96.0-beta.16.tgz#b6593613aab8921f4b282d4dd2bd9b15be44b1f0" + integrity sha512-2L0wfsZfIJm8iSMT107d71uUmbHepkIK08PKmAXxZ36cak7Iy7nkq+oPA1I4vxghgthqdSypoikN/l8S4Cu3dw== dependencies: "@babel/runtime" "^7.6.3" @@ -2197,25 +2197,25 @@ qrcode-generator "^1.4.4" react-qr-reader "^2.2.1" -"@polkadot/rpc-core@^0.96.0-beta.15": - version "0.96.0-beta.15" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-0.96.0-beta.15.tgz#a1ca1fb0d37c68a0107313d9bfd67bf1c2e3ac01" - integrity sha512-aLRlfe1tOyMhJ5A2BCX82qHAJs4Nl/x8AIlvLs5Wme/Jl5eo+N3Y+R3p+uF99JIosrzJmdcdjBG8qGY3Cj4PvQ== +"@polkadot/rpc-core@^0.96.0-beta.16": + version "0.96.0-beta.16" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-0.96.0-beta.16.tgz#3106dc3c3ed541f81096012221f8cf35a4d09603" + integrity sha512-El/XwN7hVoYDD3tJcuFEWJYYLKZGtBxGDbGvbSy7LmYFScsT5L96DuDIMepLrjy1XK1T7hAyvFR70Ed+PEx7Gg== dependencies: "@babel/runtime" "^7.6.3" - "@polkadot/jsonrpc" "^0.96.0-beta.15" - "@polkadot/rpc-provider" "^0.96.0-beta.15" - "@polkadot/types" "^0.96.0-beta.15" + "@polkadot/jsonrpc" "^0.96.0-beta.16" + "@polkadot/rpc-provider" "^0.96.0-beta.16" + "@polkadot/types" "^0.96.0-beta.16" "@polkadot/util" "^1.6.1" rxjs "^6.5.3" -"@polkadot/rpc-provider@^0.96.0-beta.15": - version "0.96.0-beta.15" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-0.96.0-beta.15.tgz#d540ed73dd2299eccd4fb53793fbd1addbe33890" - integrity sha512-A2QGImrRMRmZXZLgaNjqayIrerx8fi1+74KO4yx3wcMx7V7kEvZ/B7X00vEO4eg9ysRw/INcfZD67eWu0yjRbg== +"@polkadot/rpc-provider@^0.96.0-beta.16": + version "0.96.0-beta.16" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-0.96.0-beta.16.tgz#884225d5b05bdd18551bba2fcc12224412b4f391" + integrity sha512-3B3aepAh5Nyb9bATqqKgyy4Y6Ujj8uRF4rmRlSAaijuMHJAEgrHx2yoHVPNQIyGZlRdPnG2Nr4zs/J+ewbO2zA== dependencies: "@babel/runtime" "^7.6.3" - "@polkadot/api-metadata" "^0.96.0-beta.15" + "@polkadot/api-metadata" "^0.96.0-beta.16" "@polkadot/util" "^1.6.1" "@polkadot/util-crypto" "^1.6.1" "@types/nock" "^11.1.0" @@ -2230,10 +2230,10 @@ dependencies: "@types/chrome" "^0.0.91" -"@polkadot/types@^0.96.0-beta.15": - version "0.96.0-beta.15" - resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-0.96.0-beta.15.tgz#8b9acea0acb10e708f5ac8f5fa47450fb6e6ffb5" - integrity sha512-ufWNAkz7fy4HlsHzJuBkLbIHMXjZaskaGwoBAT0HOBJ7wI3NSz78ScF69beVY5KwG+9Qc0dSYvYWFDOmDJTJCQ== +"@polkadot/types@^0.96.0-beta.16": + version "0.96.0-beta.16" + resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-0.96.0-beta.16.tgz#eb843128c720ab284dc79c88c9f22b042b2c7d58" + integrity sha512-SahHunUp9q2HeYs0PIIGRUF/7I0KtG1CWp9Z4nj0kwEqs440oU+Dc/BqHc4lMR5OIU5plPdrzZEiEV6trI79Xw== dependencies: "@babel/runtime" "^7.6.3" "@polkadot/util" "^1.6.1"