From 28c5a8380963716699e5022f70a285ad102b2f5a Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Sat, 15 Jun 2019 11:55:38 +0200 Subject: [PATCH] Bump API (new api-contreacts, new typings) (#1297) --- package.json | 11 +- packages/app-accounts/src/modals/Transfer.tsx | 6 +- packages/app-contracts/package.json | 1 + packages/app-contracts/src/ABI.tsx | 10 +- packages/app-contracts/src/Contracts/Call.tsx | 6 +- packages/app-contracts/src/Deploy.tsx | 8 +- packages/app-contracts/src/Modal.tsx | 6 +- packages/app-contracts/src/Params.tsx | 2 +- packages/app-contracts/src/store.ts | 5 +- packages/app-contracts/src/types.ts | 4 +- packages/app-explorer/src/NodeInfo/index.tsx | 8 +- packages/apps/package.json | 2 +- packages/ui-api/package.json | 2 +- packages/ui-api/src/Api.tsx | 8 +- packages/ui-app/package.json | 6 +- .../ui-app/src/InputStorage/SelectKey.tsx | 2 +- packages/ui-app/src/InputStorage/index.tsx | 2 +- .../ui-app/src/InputStorage/options/key.tsx | 3 +- packages/ui-app/src/Messages.tsx | 4 +- packages/ui-app/src/util/getContractAbi.ts | 6 +- yarn.lock | 198 +++++++++--------- 21 files changed, 156 insertions(+), 144 deletions(-) diff --git a/package.json b/package.json index b6182376fe..1d2cb44adf 100644 --- a/package.json +++ b/package.json @@ -10,11 +10,12 @@ "packages/*" ], "resolutions": { - "@polkadot/api": "^0.81.0-beta.15", - "@polkadot/keyring": "^0.93.0-beta.5", - "@polkadot/types": "^0.81.0-beta.15", - "@polkadot/util": "^0.93.0-beta.5", - "@polkadot/util-crypto": "^0.93.0-beta.5", + "@polkadot/api": "^0.82.0-beta.2", + "@polkadot/api-contract": "^0.82.0-beta.2", + "@polkadot/keyring": "^0.94.0-beta.1", + "@polkadot/types": "^0.82.0-beta.2", + "@polkadot/util": "^0.94.0-beta.1", + "@polkadot/util-crypto": "^0.94.0-beta.1", "babel-core": "^7.0.0-bridge.0", "typescript": "^3.5.1" }, diff --git a/packages/app-accounts/src/modals/Transfer.tsx b/packages/app-accounts/src/modals/Transfer.tsx index 5ba523f623..9b76e1bf51 100644 --- a/packages/app-accounts/src/modals/Transfer.tsx +++ b/packages/app-accounts/src/modals/Transfer.tsx @@ -230,9 +230,9 @@ class Transfer extends React.PureComponent { // FIXME The any casts here are irritating, but they are basically caused by the derive // not really returning an actual `class implements Codec` // (if casting to DerivedBalance it would be `as any as DerivedBalance`) - const accountNonce = await api.query.system.accountNonce(senderId) as Index; - const senderBalance = (await api.derive.balances.all(senderId) as any).availableBalance; - const recipientBalance = (await api.derive.balances.all(recipientId) as any).availableBalance; + const accountNonce = await api.query.system.accountNonce(senderId); + const senderBalance = (await api.derive.balances.all(senderId)).availableBalance; + const recipientBalance = (await api.derive.balances.all(recipientId)).availableBalance; let prevMax = new BN(0); let maxBalance = new BN(1); diff --git a/packages/app-contracts/package.json b/packages/app-contracts/package.json index c7a69a5d54..ee16cb2e14 100644 --- a/packages/app-contracts/package.json +++ b/packages/app-contracts/package.json @@ -11,6 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.4.5", + "@polkadot/api-contract": "^0.82.0-beta.2", "@polkadot/ui-app": "^0.34.0-beta.13" } } diff --git a/packages/app-contracts/src/ABI.tsx b/packages/app-contracts/src/ABI.tsx index 135e443668..ce0b8bd5fa 100644 --- a/packages/app-contracts/src/ABI.tsx +++ b/packages/app-contracts/src/ABI.tsx @@ -6,27 +6,27 @@ import { I18nProps } from '@polkadot/ui-app/types'; import React from 'react'; import styled from 'styled-components'; +import { Abi } from '@polkadot/api-contract'; import { InputFile, Labelled, Messages } from '@polkadot/ui-app'; -import { ContractAbi } from '@polkadot/types'; import { u8aToString } from '@polkadot/util'; import translate from './translate'; type Props = I18nProps & { - contractAbi?: ContractAbi | null, + contractAbi?: Abi | null, help?: React.ReactNode, isError?: boolean, isDisabled?: boolean, isRequired?: boolean, label?: React.ReactNode, - onChange: (json: string | null, contractAbi: ContractAbi | null) => void, + onChange: (json: string | null, contractAbi: Abi | null) => void, onRemove?: () => void, onRemoved?: () => void, onSelect?: () => void }; type State = { - contractAbi: ContractAbi | null, + contractAbi: Abi | null, isAbiValid: boolean, isEmpty: boolean, isError: boolean @@ -141,7 +141,7 @@ class ABI extends React.PureComponent { const json = u8aToString(u8a); try { - const contractAbi = new ContractAbi(JSON.parse(json)); + const contractAbi = new Abi(JSON.parse(json)); this.setState({ contractAbi, diff --git a/packages/app-contracts/src/Contracts/Call.tsx b/packages/app-contracts/src/Contracts/Call.tsx index a1e2e38ac3..050c914bfa 100644 --- a/packages/app-contracts/src/Contracts/Call.tsx +++ b/packages/app-contracts/src/Contracts/Call.tsx @@ -7,10 +7,10 @@ import { BareProps, I18nProps } from '@polkadot/ui-app/types'; import BN from 'bn.js'; import React from 'react'; import { withRouter } from 'react-router-dom'; +import { Abi } from '@polkadot/api-contract'; import { Button, Dropdown, InputAddress, InputBalance, InputNumber, Modal, TxButton, TxComponent } from '@polkadot/ui-app'; import { getContractAbi } from '@polkadot/ui-app/util'; import { withMulti } from '@polkadot/ui-api'; -import { ContractAbi } from '@polkadot/types'; import translate from '../translate'; import Params from '../Params'; @@ -25,7 +25,7 @@ type Props = BareProps & I18nProps & { type State = { accountId: string | null, address: string | null, - contractAbi?: ContractAbi | null, + contractAbi?: Abi | null, endowment: BN, gasLimit: BN, isAddressValid: boolean, @@ -207,7 +207,7 @@ class Call extends TxComponent { ); } - private getCallProps = (): [string | null, ContractAbi | null, string | null] => { + private getCallProps = (): [string | null, Abi | null, string | null] => { let address; let contractAbi; let method; diff --git a/packages/app-contracts/src/Deploy.tsx b/packages/app-contracts/src/Deploy.tsx index 18fe5c7fc7..1ee3f7fdc6 100644 --- a/packages/app-contracts/src/Deploy.tsx +++ b/packages/app-contracts/src/Deploy.tsx @@ -9,11 +9,11 @@ import BN from 'bn.js'; import React from 'react'; import { RouteComponentProps } from 'react-router'; import { withRouter } from 'react-router-dom'; - +import { Abi } from '@polkadot/api-contract'; import { api, withMulti } from '@polkadot/ui-api'; import keyring from '@polkadot/ui-keyring'; import { Button, Dropdown, InputBalance, TxButton } from '@polkadot/ui-app'; -import { AccountId, ContractAbi, getTypeDef } from '@polkadot/types'; +import { AccountId, getTypeDef } from '@polkadot/types'; import createValues from '@polkadot/ui-params/values'; import ContractModal, { ContractModalProps, ContractModalState } from './Modal'; @@ -164,7 +164,7 @@ class Deploy extends ContractModal { ); } - private getAbiState = (abi: string | null | undefined, contractAbi: ContractAbi | null = null): State => { + private getAbiState = (abi: string | null | undefined, contractAbi: Abi | null = null): State => { if (contractAbi) { const args = contractAbi.deploy.args.map(({ name, type }) => name + ': ' + type); @@ -229,7 +229,7 @@ class Deploy extends ContractModal { return [endowment, gasLimit, codeHash, contractAbi.deploy(...params)]; } - protected onAddAbi = (abi: string | null | undefined, contractAbi?: ContractAbi | null): void => { + protected onAddAbi = (abi: string | null | undefined, contractAbi?: Abi | null): void => { this.setState({ ...this.getAbiState(abi, contractAbi) }); diff --git a/packages/app-contracts/src/Modal.tsx b/packages/app-contracts/src/Modal.tsx index 5638279666..1a5d31a410 100644 --- a/packages/app-contracts/src/Modal.tsx +++ b/packages/app-contracts/src/Modal.tsx @@ -6,8 +6,8 @@ import { I18nProps } from '@polkadot/ui-app/types'; import BN from 'bn.js'; import React from 'react'; +import { Abi } from '@polkadot/api-contract'; import { Button, Input, InputAddress, InputNumber, InputTags, Modal, TxComponent } from '@polkadot/ui-app'; -import { ContractAbi } from '@polkadot/types'; import ABI from './ABI'; @@ -21,7 +21,7 @@ export type ContractModalProps = I18nProps & { export type ContractModalState = { abi?: string | null, accountId?: string | null, - contractAbi?: ContractAbi | null, + contractAbi?: Abi | null, gasLimit: BN, isAbiSupplied: boolean, isAbiValid: boolean, @@ -216,7 +216,7 @@ class ContractModal

onClose && onClose(); } - protected onAddAbi = (abi: string | null | undefined, contractAbi: ContractAbi | null = null, isAbiSupplied: boolean = false): void => { + protected onAddAbi = (abi: string | null | undefined, contractAbi: Abi | null = null, isAbiSupplied: boolean = false): void => { this.setState({ abi, contractAbi, isAbiSupplied, isAbiValid: !!abi }); } diff --git a/packages/app-contracts/src/Params.tsx b/packages/app-contracts/src/Params.tsx index a707f6958f..b96d2d7bb9 100644 --- a/packages/app-contracts/src/Params.tsx +++ b/packages/app-contracts/src/Params.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 { ContractABIFn$Arg } from '@polkadot/types/ContractAbi'; +import { ContractABIFn$Arg } from '@polkadot/api-contract/types'; import { RawParams } from '@polkadot/ui-params/types'; import React from 'react'; diff --git a/packages/app-contracts/src/store.ts b/packages/app-contracts/src/store.ts index 1eccf4b538..47889f170d 100644 --- a/packages/app-contracts/src/store.ts +++ b/packages/app-contracts/src/store.ts @@ -6,7 +6,8 @@ import { CodeJson, CodeStored } from './types'; import EventEmitter from 'eventemitter3'; import store from 'store'; -import { ContractAbi, Hash } from '@polkadot/types'; +import { Abi } from '@polkadot/api-contract'; +import { Hash } from '@polkadot/types'; import { api } from '@polkadot/ui-api'; const KEY_CODE = 'code:'; @@ -78,7 +79,7 @@ class Store extends EventEmitter { this.allCode[json.codeHash] = { json, contractAbi: json.abi - ? new ContractAbi(JSON.parse(json.abi)) + ? new Abi(JSON.parse(json.abi)) : undefined }; diff --git a/packages/app-contracts/src/types.ts b/packages/app-contracts/src/types.ts index aaffed2a92..7301700d76 100644 --- a/packages/app-contracts/src/types.ts +++ b/packages/app-contracts/src/types.ts @@ -2,8 +2,8 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. +import { Abi } from '@polkadot/api-contract'; import { AppProps } from '@polkadot/ui-app/types'; -import { ContractAbi } from '@polkadot/types'; import { SubjectInfo } from '@polkadot/ui-keyring/observable/types'; export type LocationProps = { @@ -27,7 +27,7 @@ export type CodeJson = { tags: Array }; -export type CodeStored = { json: CodeJson , contractAbi?: ContractAbi }; +export type CodeStored = { json: CodeJson , contractAbi?: Abi }; export type ContractJsonOld = { genesisHash: string, diff --git a/packages/app-explorer/src/NodeInfo/index.tsx b/packages/app-explorer/src/NodeInfo/index.tsx index 5744e6e2da..0bc03fad25 100644 --- a/packages/app-explorer/src/NodeInfo/index.tsx +++ b/packages/app-explorer/src/NodeInfo/index.tsx @@ -8,7 +8,7 @@ import { Info } from './types'; import React from 'react'; import { withApi, withMulti } from '@polkadot/ui-api'; -import { Health, PeerInfo, PendingExtrinsics } from '@polkadot/types'; +import { Health, PeerInfo, PendingExtrinsics, Vector } from '@polkadot/types'; import './index.css'; @@ -85,9 +85,9 @@ class App extends React.PureComponent { try { const [health, peers, extrinsics] = await Promise.all([ - api.rpc.system.health() as Promise, - api.rpc.system.peers() as any as Promise>, - api.rpc.author.pendingExtrinsics() as Promise + api.rpc.system.health(), + api.rpc.system.peers>(), + api.rpc.author.pendingExtrinsics() ]); this.setInfo({ extrinsics, health, peers }); diff --git a/packages/apps/package.json b/packages/apps/package.json index 80e1f711ed..b402d2e51b 100644 --- a/packages/apps/package.json +++ b/packages/apps/package.json @@ -14,7 +14,7 @@ "dependencies": { "@babel/runtime": "^7.4.5", "@polkadot/ui-app": "^0.34.0-beta.13", - "@polkadot/ui-assets": "^0.41.0-beta.6", + "@polkadot/ui-assets": "^0.41.1", "@polkadot/ui-signer": "^0.34.0-beta.13" } } diff --git a/packages/ui-api/package.json b/packages/ui-api/package.json index 86ee80ff57..6543c49fa4 100644 --- a/packages/ui-api/package.json +++ b/packages/ui-api/package.json @@ -31,7 +31,7 @@ "homepage": "https://github.com/polkadot-js/ui/tree/master/packages/ui-reactive#readme", "dependencies": { "@babel/runtime": "^7.4.5", - "@polkadot/api": "^0.81.0-beta.15", + "@polkadot/api": "^0.82.0-beta.2", "@polkadot/extension-dapp": "^0.1.1-beta.27", "rxjs-compat": "^6.4.0" } diff --git a/packages/ui-api/src/Api.tsx b/packages/ui-api/src/Api.tsx index a72966ae7f..6479d08a2a 100644 --- a/packages/ui-api/src/Api.tsx +++ b/packages/ui-api/src/Api.tsx @@ -14,7 +14,7 @@ import { WsProvider } from '@polkadot/rpc-provider'; import { InputNumber } from '@polkadot/ui-app/InputNumber'; import keyring from '@polkadot/ui-keyring'; import ApiSigner from '@polkadot/ui-signer/ApiSigner'; -import { ChainProperties } from '@polkadot/types'; +import { ChainProperties, Text } from '@polkadot/types'; import { formatBalance, isTestChain } from '@polkadot/util'; import ApiContext from './ApiContext'; @@ -29,7 +29,7 @@ type Props = { }; type State = ApiProps & { - chain?: string + chain?: string | null }; export { api }; @@ -97,8 +97,8 @@ export default class Api extends React.PureComponent { private async loadOnReady (api: ApiPromise) { const [properties = new ChainProperties(), value] = await Promise.all([ - api.rpc.system.properties() as Promise, - api.rpc.system.chain() as Promise + api.rpc.system.properties(), + api.rpc.system.chain() ]); const section = Object.keys(api.tx)[0]; const method = Object.keys(api.tx[section])[0]; diff --git a/packages/ui-app/package.json b/packages/ui-app/package.json index b4b1c45519..2a98fe98df 100644 --- a/packages/ui-app/package.json +++ b/packages/ui-app/package.json @@ -12,10 +12,10 @@ "dependencies": { "@babel/runtime": "^7.4.5", "@polkadot/ui-api": "^0.34.0-beta.13", - "@polkadot/ui-identicon": "^0.41.0-beta.6", - "@polkadot/ui-keyring": "^0.41.0-beta.6", + "@polkadot/ui-identicon": "^0.41.1", + "@polkadot/ui-keyring": "^0.41.1", "@polkadot/ui-reactive": "^0.34.0-beta.13", - "@polkadot/ui-settings": "^0.41.0-beta.6", + "@polkadot/ui-settings": "^0.41.1", "@types/chart.js": "^2.7.53", "@types/classnames": "^2.2.7", "@types/i18next": "^12.1.0", diff --git a/packages/ui-app/src/InputStorage/SelectKey.tsx b/packages/ui-app/src/InputStorage/SelectKey.tsx index b920461598..a225c208c3 100644 --- a/packages/ui-app/src/InputStorage/SelectKey.tsx +++ b/packages/ui-app/src/InputStorage/SelectKey.tsx @@ -29,7 +29,7 @@ class SelectKey extends React.PureComponent { } const transform = (method: string): StorageFunction => - api.query[value.section][method]; + api.query[value.section][method] as any; return ( { const newValue = api.query[newSection][optionsMethod[0].value]; this.setState({ optionsMethod }, () => - this.onKeyChange(newValue) + this.onKeyChange(newValue as any as StorageFunction) ); } } diff --git a/packages/ui-app/src/InputStorage/options/key.tsx b/packages/ui-app/src/InputStorage/options/key.tsx index afebbee140..3613459f9c 100644 --- a/packages/ui-app/src/InputStorage/options/key.tsx +++ b/packages/ui-app/src/InputStorage/options/key.tsx @@ -2,6 +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/primitive/StorageKey'; import { DropdownOptions } from '../../util/types'; import React from 'react'; @@ -18,7 +19,7 @@ export default function createOptions (api: ApiPromise, sectionName: string): Dr .keys(section) .sort() .map((value) => { - const method = section[value]; + const method = section[value] as any as StorageFunction; const type = method.meta.type; let input = type.isMap ? type.asMap.key.toString() diff --git a/packages/ui-app/src/Messages.tsx b/packages/ui-app/src/Messages.tsx index b641b03ec4..6b11bb172d 100644 --- a/packages/ui-app/src/Messages.tsx +++ b/packages/ui-app/src/Messages.tsx @@ -2,19 +2,19 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { ContractAbi } from '@polkadot/types'; import { I18nProps } from '@polkadot/ui-app/types'; import { Button } from '@polkadot/ui-app'; import React from 'react'; import styled from 'styled-components'; +import { Abi } from '@polkadot/api-contract'; import translate from './translate'; import { classes } from './util'; export type Props = I18nProps & { address?: string, - contractAbi: ContractAbi, + contractAbi: Abi, isRemovable: boolean, onRemove?: () => void, onSelect?: (callAddress?: string, callMethod?: string) => void diff --git a/packages/ui-app/src/util/getContractAbi.ts b/packages/ui-app/src/util/getContractAbi.ts index a63959da94..6f9b3983f9 100644 --- a/packages/ui-app/src/util/getContractAbi.ts +++ b/packages/ui-app/src/util/getContractAbi.ts @@ -2,10 +2,10 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. +import { Abi } from '@polkadot/api-contract'; import keyring from '@polkadot/ui-keyring'; -import { ContractAbi } from '@polkadot/types'; -export default function getContractAbi (address: string): ContractAbi | null { +export default function getContractAbi (address: string): Abi | null { let pair; try { @@ -18,6 +18,6 @@ export default function getContractAbi (address: string): ContractAbi | null { pair && pair.isValid && pair.meta.contract && - new ContractAbi(JSON.parse(pair.meta.contract.abi)) + new Abi(JSON.parse(pair.meta.contract.abi)) ) || null; } diff --git a/yarn.lock b/yarn.lock index c1526e1b52..3ee4c6a6d2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1842,30 +1842,38 @@ universal-user-agent "^2.0.0" url-template "^2.0.8" -"@polkadot/api-derive@^0.81.0-beta.15": - version "0.81.0-beta.15" - resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-0.81.0-beta.15.tgz#d1917b9ccea9fcdf53c5e914b8a04a97db803b28" - integrity sha512-7Rft0VrGKi3XcZ9Q+1GpNkpAKZ4qRScSCXO5NMA72qg/+j4bKtlTSra7qmqnT50Y1kkzGASdrFUYqKG3gWp7dA== +"@polkadot/api-contract@^0.82.0-beta.2": + version "0.82.0-beta.2" + resolved "https://registry.yarnpkg.com/@polkadot/api-contract/-/api-contract-0.82.0-beta.2.tgz#ecfbe1c55b3a55263c3f4c2bb9f2dc030d152040" + integrity sha512-sVTTMbg5aaLSD3jo0e3SFIpoSaVTZ0kuCDqWz2MAksTbO+46wVKd8/uv6gYEZrMq6dMGaaFk5icQIP50owfi5w== dependencies: "@babel/runtime" "^7.4.5" - "@polkadot/api" "^0.81.0-beta.15" - "@polkadot/types" "^0.81.0-beta.15" + "@polkadot/types" "^0.81.0-beta.17" + +"@polkadot/api-derive@^0.82.0-beta.2": + version "0.82.0-beta.2" + resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-0.82.0-beta.2.tgz#04e30ef346604133340f2c5a8f59d6665325b03b" + integrity sha512-p0zHdZbna9FoMZR6xAJHE0w6LiIa6S4eJ3/bcxODrHsYiQSN/lZuzT8Ln6uX1TztohUi4X5g58Txx4+ZhIs0/A== + dependencies: + "@babel/runtime" "^7.4.5" + "@polkadot/api" "^0.82.0-beta.2" + "@polkadot/types" "^0.82.0-beta.2" "@types/memoizee" "^0.4.2" memoizee "^0.4.14" -"@polkadot/api@^0.81.0-beta.15": - version "0.81.0-beta.15" - resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-0.81.0-beta.15.tgz#ebceadf89468f0b803f5f34ba88d502dff54e7b5" - integrity sha512-s68wacOHzX6od4ih+yNyJpV6cWSPry7LGsuUC0CYFtUNJUhwXup7oi9lBkh2OyJs0ezAccyOiHdBI+QPh1Z//g== +"@polkadot/api@^0.82.0-beta.2": + version "0.82.0-beta.2" + resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-0.82.0-beta.2.tgz#7cbf0005189428abf7e40a0309611515ca650c19" + integrity sha512-byVSew65B9rkd8J9ER58pGljquVMUUMQuL0SKfP0x7lU8AtOvjOdPFMRPQyOKYDEshvpTAyXppfRb3m0duKEXA== dependencies: "@babel/runtime" "^7.4.5" - "@polkadot/api-derive" "^0.81.0-beta.15" - "@polkadot/extrinsics" "^0.81.0-beta.15" - "@polkadot/rpc-provider" "^0.81.0-beta.15" - "@polkadot/rpc-rx" "^0.81.0-beta.15" - "@polkadot/storage" "^0.81.0-beta.15" - "@polkadot/types" "^0.81.0-beta.15" - "@polkadot/util-crypto" "^0.93.0-beta.5" + "@polkadot/api-derive" "^0.82.0-beta.2" + "@polkadot/extrinsics" "^0.82.0-beta.2" + "@polkadot/rpc-provider" "^0.82.0-beta.2" + "@polkadot/rpc-rx" "^0.82.0-beta.2" + "@polkadot/storage" "^0.82.0-beta.2" + "@polkadot/types" "^0.82.0-beta.2" + "@polkadot/util-crypto" "^0.93.1" "@polkadot/dev-react@^0.30.0-beta.13": version "0.30.0-beta.13" @@ -1945,80 +1953,78 @@ resolved "https://registry.yarnpkg.com/@polkadot/extension-dapp/-/extension-dapp-0.1.1-beta.27.tgz#0373f2c8ee75011619258cd52e1f068b001d9931" integrity sha512-2bZYVRnXIa9Q0fMJFBCRDFtwCEULs5tVvjJmHCMBx5yUjjwqAK4g+Iednr9L2qs3Ru1XO/MVrJ0ofxRVYMfjGw== -"@polkadot/extrinsics@^0.81.0-beta.15": - version "0.81.0-beta.15" - resolved "https://registry.yarnpkg.com/@polkadot/extrinsics/-/extrinsics-0.81.0-beta.15.tgz#b6e62f06f9721db7e7f3fd67480f3bf46fc7719f" - integrity sha512-/OyrEyyh5NTTn7UjOX61SjnznKZdvti1btw+vUHMZU4/uhlRPf0spkazc9YJdW9idSl48eV9xpu2fLiEfkqKKg== +"@polkadot/extrinsics@^0.82.0-beta.2": + version "0.82.0-beta.2" + resolved "https://registry.yarnpkg.com/@polkadot/extrinsics/-/extrinsics-0.82.0-beta.2.tgz#1c070379638aed1781779b51314532c327178172" + integrity sha512-vc28gEuSpFFzpJ6Lu3l79MbjB6IYL5q0aDzJdMP/Bmr7v4uWccHVqEM8vTGqo/JXIB1rOwcp3jvbDtNSWCZLNw== dependencies: "@babel/runtime" "^7.4.5" - "@polkadot/types" "^0.81.0-beta.15" - "@polkadot/util" "^0.93.0-beta.5" + "@polkadot/types" "^0.82.0-beta.2" + "@polkadot/util" "^0.93.1" -"@polkadot/jsonrpc@^0.81.0-beta.15": - version "0.81.0-beta.15" - resolved "https://registry.yarnpkg.com/@polkadot/jsonrpc/-/jsonrpc-0.81.0-beta.15.tgz#84ae35bdad35198c324a5249daf093d858e052f4" - integrity sha512-R+gKOPHIMoTGF5O3YzDHIfSZoyqFe4WB6Gx+mM6WFGi1vD1cPH/hq86kGDZQwm2PJRdLeSHhaZ8ZHUkHwThNug== +"@polkadot/jsonrpc@^0.82.0-beta.2": + version "0.82.0-beta.2" + resolved "https://registry.yarnpkg.com/@polkadot/jsonrpc/-/jsonrpc-0.82.0-beta.2.tgz#53f84f5f137ddc5013ec31dc07c885017202e4da" + integrity sha512-VoIos61kEVwD+mv190cs2PKr3HNnCI9sxEh4GApRWuJi/n7dNA08/PLRFuD3ceJSf+7kPVQgIF8DLyWade4fMA== dependencies: "@babel/runtime" "^7.4.5" -"@polkadot/keyring@^0.93.0-beta.5": - version "0.93.0-beta.5" - resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-0.93.0-beta.5.tgz#581cedb279ce718026a5d901065293d4193dfbe9" - integrity sha512-NHNVyn1DmpD6yN06caHdkmrrhQIh/bvs87DlnsjsGA2PccQFH+UO315Qa3eNmueZorCzyIKTsOYBpY1lwehqSw== +"@polkadot/keyring@^0.94.0-beta.1": + version "0.94.0-beta.1" + resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-0.94.0-beta.1.tgz#298a1dff471e92f967d10c6cfb4678f84b2951b4" + integrity sha512-F56JkBEKI+bGkACk2vWykTDbCdSAXiaJgjcvkrjCWCtYwUMpmiR6dEa/hhjDVKaOkceDge8JGGI+thCl1pzP3g== dependencies: "@babel/runtime" "^7.4.5" - "@polkadot/util" "^0.93.0-beta.5" - "@polkadot/util-crypto" "^0.93.0-beta.5" - "@types/bs58" "^4.0.0" - bs58 "^4.0.1" + "@polkadot/util" "^0.94.0-beta.1" + "@polkadot/util-crypto" "^0.94.0-beta.1" -"@polkadot/rpc-core@^0.81.0-beta.15": - version "0.81.0-beta.15" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-0.81.0-beta.15.tgz#74b7b913172c66c40611fc92f3aacd79deeb3524" - integrity sha512-wuZQYzq2ovCl7p0WV+0Q7KoFVZRxI5KGj+TJcqwq2OjFkRKRuQxtfbEcW13uLv9L22AbRhe7dH6AyOM/302umQ== +"@polkadot/rpc-core@^0.82.0-beta.2": + version "0.82.0-beta.2" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-0.82.0-beta.2.tgz#26d468e8dc4fb94a7aabec84e117960254509a40" + integrity sha512-YmSHtbc3r8ht+mCYgus6kQKy36TL6RjSPHQmvZa3NXUOWiN5oZhWirS7Njo2x6F0rqF3gyp6G2hVHCSAhukyZA== dependencies: "@babel/runtime" "^7.4.5" - "@polkadot/jsonrpc" "^0.81.0-beta.15" - "@polkadot/rpc-provider" "^0.81.0-beta.15" - "@polkadot/types" "^0.81.0-beta.15" - "@polkadot/util" "^0.93.0-beta.5" + "@polkadot/jsonrpc" "^0.82.0-beta.2" + "@polkadot/rpc-provider" "^0.82.0-beta.2" + "@polkadot/types" "^0.82.0-beta.2" + "@polkadot/util" "^0.93.1" -"@polkadot/rpc-provider@^0.81.0-beta.15": - version "0.81.0-beta.15" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-0.81.0-beta.15.tgz#2c3fd352d66f67cec00ca4c6551c9e2c4750978c" - integrity sha512-8Cj9YCI6d+2bFohFni7mP7QLK82IPFTI0ZsN59Uz46kI6QXx1vQhT2BXbvKNqc3kWQKrRoewKMISC3SdZM72Mw== +"@polkadot/rpc-provider@^0.82.0-beta.2": + version "0.82.0-beta.2" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-0.82.0-beta.2.tgz#dea32c99c0ea8657a0c5804e4bb7daeb6ee9df64" + integrity sha512-+IrTOlvrHBsraosRKEb3jemuuJEmUqDZKZgSaD7+Lr8+WyZOZTpcTw5TMyY2dFmaD3zHdbBLna4n+RPjUHhxng== dependencies: "@babel/runtime" "^7.4.5" - "@polkadot/storage" "^0.81.0-beta.15" - "@polkadot/util" "^0.93.0-beta.5" - "@polkadot/util-crypto" "^0.93.0-beta.5" + "@polkadot/storage" "^0.82.0-beta.2" + "@polkadot/util" "^0.93.1" + "@polkadot/util-crypto" "^0.93.1" "@types/nock" "^10.0.3" eventemitter3 "^3.1.0" isomorphic-fetch "^2.2.1" websocket "^1.0.28" -"@polkadot/rpc-rx@^0.81.0-beta.15": - version "0.81.0-beta.15" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-rx/-/rpc-rx-0.81.0-beta.15.tgz#16344ae9b0add420fb2dde53f42d5bbdafd61b0c" - integrity sha512-B6Bi3P9Bnd8jg3HfQdpbS/fEbOWkUMKrVaICyGQnQRDDsF2+G6K747rNDbJzkeqHfLb3y+Iu4dRO4WakO5ercg== +"@polkadot/rpc-rx@^0.82.0-beta.2": + version "0.82.0-beta.2" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-rx/-/rpc-rx-0.82.0-beta.2.tgz#5e0e75523c03d02fb577ddda7489158088e1b72d" + integrity sha512-ZFzTx07iU5sGajHFWy9b0eH16hpOVJqTEUXs2aH0kwuRJo2u86AkR3QWiOG2N7X2YdsyyjBok+w6btCvDJigkg== dependencies: "@babel/runtime" "^7.4.5" - "@polkadot/rpc-core" "^0.81.0-beta.15" - "@polkadot/rpc-provider" "^0.81.0-beta.15" + "@polkadot/rpc-core" "^0.82.0-beta.2" + "@polkadot/rpc-provider" "^0.82.0-beta.2" "@types/memoizee" "^0.4.2" "@types/rx" "^4.1.1" memoizee "^0.4.14" rxjs "^6.5.2" -"@polkadot/storage@^0.81.0-beta.15": - version "0.81.0-beta.15" - resolved "https://registry.yarnpkg.com/@polkadot/storage/-/storage-0.81.0-beta.15.tgz#aa061ba21ef56764d0b62851738a964ff97698d9" - integrity sha512-5kYiZB18Lq/pdYDzSvMA2DwPUxz1b8LwtsL/cwTv5Dk6qJVr4p1jFihPyzqyR7CNJlF7VQUIZ934S1X2QFpZuQ== +"@polkadot/storage@^0.82.0-beta.2": + version "0.82.0-beta.2" + resolved "https://registry.yarnpkg.com/@polkadot/storage/-/storage-0.82.0-beta.2.tgz#eded4df51e7705640ffdc9206608b7803ebe724b" + integrity sha512-IBetWucJEZ8nPiXllPTInj9N3EIcv0He0pDzeSCoUqaeVYkfwsoKOXuUnyuVLYzAaXOLjuWSTTzLmVtlIQQ91Q== dependencies: "@babel/runtime" "^7.4.5" - "@polkadot/types" "^0.81.0-beta.15" - "@polkadot/util" "^0.93.0-beta.5" - "@polkadot/util-crypto" "^0.93.0-beta.5" + "@polkadot/types" "^0.82.0-beta.2" + "@polkadot/util" "^0.93.1" + "@polkadot/util-crypto" "^0.93.1" "@polkadot/ts@^0.1.60": version "0.1.60" @@ -2027,29 +2033,29 @@ dependencies: "@types/chrome" "^0.0.86" -"@polkadot/types@^0.81.0-beta.15": - version "0.81.0-beta.15" - resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-0.81.0-beta.15.tgz#c35d3f0d0db5a0333eacc8dc98812516fd72e1b4" - integrity sha512-5wfk/Vpmn4MKpkrCbE/RUDCOP09gMiEzOhjeKYiMOEpWNZ+yyf5v+jzhFhYSiZpaUCHqWh4ljQ86DbyCuC2hAg== +"@polkadot/types@^0.81.0-beta.17", "@polkadot/types@^0.82.0-beta.2": + version "0.82.0-beta.2" + resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-0.82.0-beta.2.tgz#97b055f531cba7b17e9e675c8e6948555f656fd8" + integrity sha512-IFIWST3qOIyd2qvEBm9HbiYV6bNHavjj8S+CMiarlnnhSlULqp+/RTflU9R6piU4EM8t20FDkxUZvXZNEUHiYQ== dependencies: "@babel/runtime" "^7.4.5" - "@polkadot/util" "^0.93.0-beta.5" - "@polkadot/util-crypto" "^0.93.0-beta.5" + "@polkadot/util" "^0.93.1" + "@polkadot/util-crypto" "^0.93.1" -"@polkadot/ui-assets@^0.41.0-beta.6": - version "0.41.0-beta.6" - resolved "https://registry.yarnpkg.com/@polkadot/ui-assets/-/ui-assets-0.41.0-beta.6.tgz#2f1d30f0c30c64d10538250b4dff611699b4646d" - integrity sha512-l7EiuBtxOlULSgO2JlS1SFZvfAlI06w/AfcOa1AZ2LWxSTJpSITC+9Te3IpWztzB4VTtNkxJdHuYmLvrrr8lUg== +"@polkadot/ui-assets@^0.41.1": + version "0.41.1" + resolved "https://registry.yarnpkg.com/@polkadot/ui-assets/-/ui-assets-0.41.1.tgz#6d9f3f13435339d057cef46c2d0632623c275c3a" + integrity sha512-WCiQ5PZKpPgUezp196zqxJBrF602i8e0noMXbQvVVHMK/4UKjbIaHezuS/I8frFDVmzeGaMI7J0i1rFmBeqrRw== dependencies: "@babel/runtime" "^7.4.5" -"@polkadot/ui-identicon@^0.41.0-beta.6": - version "0.41.0-beta.6" - resolved "https://registry.yarnpkg.com/@polkadot/ui-identicon/-/ui-identicon-0.41.0-beta.6.tgz#af79a87bc790b9c92f1a7cc53e00cd2120e9edba" - integrity sha512-WenjHLELfZM9rUsmwoFIqzIKof0Sd/w9aSKv2cNDuWv/yMPMxAgC/qr/bf/ns2rOKbAL6ncxyCU+P78XahiIGQ== +"@polkadot/ui-identicon@^0.41.1": + version "0.41.1" + resolved "https://registry.yarnpkg.com/@polkadot/ui-identicon/-/ui-identicon-0.41.1.tgz#8ac6cc131679486d3adc405d5df9fedbca3ec3fb" + integrity sha512-uhQPMe1FfBftFhl0OHaT4MEF8uCB96zsHjwhSfy+A8UH6/iiLBBXuMVDKXFJFuUn6VLEAql8f2ZTYucjKhNfqA== dependencies: "@babel/runtime" "^7.4.5" - "@polkadot/ui-settings" "^0.41.0-beta.6" + "@polkadot/ui-settings" "^0.41.1" "@types/color" "^3.0.0" "@types/react-copy-to-clipboard" "^4.2.6" color "^3.1.2" @@ -2057,10 +2063,10 @@ react-copy-to-clipboard "^5.0.1" styled-components "^4.3.1" -"@polkadot/ui-keyring@^0.41.0-beta.6": - version "0.41.0-beta.6" - resolved "https://registry.yarnpkg.com/@polkadot/ui-keyring/-/ui-keyring-0.41.0-beta.6.tgz#1eadfe137d2d662f1023b7400f4da7c58836afa9" - integrity sha512-yuF0KeTsrsWnmLcmQYFWACipg4ndFNPggFWvsu7LRY1j+rUOMY6kFywQ6pce2jnTy6Z7iVGn7onvkuA9D84P1g== +"@polkadot/ui-keyring@^0.41.1": + version "0.41.1" + resolved "https://registry.yarnpkg.com/@polkadot/ui-keyring/-/ui-keyring-0.41.1.tgz#86fcfcf2f7ae4e52c949c573c99e2b3b93f4fcf3" + integrity sha512-VVRDPls3mBE+vkSkZhw+5M8h8fAuUm/HqoZ/ahyKZEw84/5A52kS9UZ4aO1wHnhq/8xHjTJPNMLszcmheS6Fzg== dependencies: "@babel/runtime" "^7.4.5" "@types/mkdirp" "^0.5.2" @@ -2070,38 +2076,40 @@ store "^2.0.12" styled-components "^4.3.1" -"@polkadot/ui-settings@^0.41.0-beta.6": - version "0.41.0-beta.6" - resolved "https://registry.yarnpkg.com/@polkadot/ui-settings/-/ui-settings-0.41.0-beta.6.tgz#2cc9b171bac7fde633cce63387ee1e7854606264" - integrity sha512-cKN881bezE1+SuDrVakyq7466OuidkPBw2urcJWgNA3jgdZcvfcs/rsJ/1oEg6ZQfQ7BrQ1WsLZd1YS6PChe6g== +"@polkadot/ui-settings@^0.41.1": + version "0.41.1" + resolved "https://registry.yarnpkg.com/@polkadot/ui-settings/-/ui-settings-0.41.1.tgz#34ff160d78a15403d0a21eb95729bb6e932da604" + integrity sha512-gcgq+VeufDRDizexvxroi/C0YqDixTqvucGRwMWLtm6fslJFhqX0XT/0boYB1lx4Zz77/Plc4HVfkizlFPDcEw== dependencies: "@babel/runtime" "^7.4.5" "@types/store" "^2.0.2" store "^2.0.12" -"@polkadot/util-crypto@^0.93.0-beta.5": - version "0.93.0-beta.5" - resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-0.93.0-beta.5.tgz#81a399395825b22d532d3834c12e143112564cd5" - integrity sha512-GntTfbZd2qfIo1GdYTHtimuDhQIiexiLaQ3/qfShAZ3BP1QiVHx6yYFngMPkEKnebx7rgowT4g0yH1ztf35WiQ== +"@polkadot/util-crypto@^0.93.1", "@polkadot/util-crypto@^0.94.0-beta.1": + version "0.94.0-beta.1" + resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-0.94.0-beta.1.tgz#c8b95dbd3076f1ab71c53d2161a13f4d71eb5361" + integrity sha512-3uyuUUo3fC+V5WHg7fKoJkOT5avGIFl/wWckHcMrUM3aHEKBuvOdWjOSH1GHhhyENFGx0Wq69PFSY4eskon3Zw== dependencies: "@babel/runtime" "^7.4.5" - "@polkadot/util" "^0.93.0-beta.5" + "@polkadot/util" "^0.94.0-beta.1" "@polkadot/wasm-crypto" "^0.11.1" "@types/bip39" "^2.4.2" + "@types/bs58" "^4.0.0" "@types/pbkdf2" "^3.0.0" "@types/secp256k1" "^3.5.0" "@types/xxhashjs" "^0.2.1" bip39 "^2.5.0" blakejs "^1.1.0" + bs58 "^4.0.1" js-sha3 "^0.8.0" secp256k1 "^3.7.0" tweetnacl "^1.0.1" xxhashjs "^0.2.2" -"@polkadot/util@^0.93.0-beta.5": - version "0.93.0-beta.5" - resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.93.0-beta.5.tgz#c0b27459fdf4848382403b924698f1b012df8c88" - integrity sha512-dhJ56+5dYAAz45rdc5AqvFGI1qeQ8qTGiFbiE9S+ZXimEU/3mR1LRcq8nMx4aeZaC3blrReuAmzTxLS2c6aOsw== +"@polkadot/util@^0.93.1", "@polkadot/util@^0.94.0-beta.1": + version "0.94.0-beta.1" + resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.94.0-beta.1.tgz#26677b80cde80c156ae9af57146757cf274447cc" + integrity sha512-6dZ+NYWtnsjy60hzZH/eDDJkJ5vSfoyhbX/XiEwaP+D87tiFBjS+ZaPDbih3hYKM0mNSzMkXCzKNPtP1vfMy4Q== dependencies: "@babel/runtime" "^7.4.5" "@types/bn.js" "^4.11.5"