diff --git a/Dockerfile b/Dockerfile index e728afda0cfd..02bfc440e82e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,19 +7,18 @@ RUN apt-get update && apt-get install -y curl git gnupg RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - RUN apt-get install -y nodejs -WORKDIR /app -RUN git clone https://github.com/polkadot-js/apps +WORKDIR /apps +COPY . . -WORKDIR /app/apps RUN npm install yarn -g RUN yarn -RUN NODE_ENV=production yarn build +RUN NODE_ENV=production yarn build:www FROM ubuntu:18.04 RUN apt-get update && apt-get -y install nginx -COPY --from=builder /app/apps/packages/apps/build /var/www/html +COPY --from=builder /apps/packages/apps/build /var/www/html EXPOSE 80 diff --git a/lerna.json b/lerna.json index 35f466998456..2ae386ae93aa 100644 --- a/lerna.json +++ b/lerna.json @@ -10,5 +10,5 @@ "packages": [ "packages/*" ], - "version": "0.40.0-beta.1" + "version": "0.40.0-beta.8" } diff --git a/package.json b/package.json index bac153207848..7756b0f1835c 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "private": true, "engines": { "node": ">=10.13.0", @@ -10,20 +10,21 @@ "packages/*" ], "resolutions": { - "@polkadot/api": "^1.1.0-beta.8", - "@polkadot/api-contract": "^1.1.0-beta.8", - "@polkadot/keyring": "^2.0.1", - "@polkadot/types": "^1.1.0-beta.8", - "@polkadot/util": "^2.0.1", - "@polkadot/util-crypto": "^2.0.1", + "@polkadot/api": "^1.1.0-beta.19", + "@polkadot/api-contract": "^1.1.0-beta.19", + "@polkadot/keyring": "^2.1.1", + "@polkadot/types": "^1.1.0-beta.19", + "@polkadot/util": "^2.1.1", + "@polkadot/util-crypto": "^2.1.1", "babel-core": "^7.0.0-bridge.0", "typescript": "^3.7.5" }, "scripts": { "analyze": "yarn run build && cd packages/apps && yarn run source-map-explorer build/main.*.js", - "build": "yarn run build:code && yarn run build:i18n", + "build": "yarn run build:i18n && yarn run build:code", "build:code": "NODE_ENV=production polkadot-dev-build-ts", "build:i18n": "i18next-scanner --config i18next-scanner.config.js", + "build:www": "rm -rf packages/apps/build && mkdir -p packages/apps/build && yarn run build:i18n && cd packages/apps && NODE_ENV=production webpack --config webpack.config.js", "docs": "echo \"skipping docs\"", "clean": "polkadot-dev-clean-build", "clean:i18n": "rm -rf packages/apps/public/locales/en && mkdir -p packages/apps/public/locales/en", diff --git a/packages/app-123code/package.json b/packages/app-123code/package.json index 65ce482ae2d9..49b08d593082 100644 --- a/packages/app-123code/package.json +++ b/packages/app-123code/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-123code", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "description": "A basic app that shows the ropes on customisation", "main": "index.js", "scripts": {}, @@ -11,6 +11,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.40.0-beta.1" + "@polkadot/react-components": "^0.40.0-beta.8" } } diff --git a/packages/app-accounts/package.json b/packages/app-accounts/package.json index 05dceed81dc5..4cad67329dfc 100644 --- a/packages/app-accounts/package.json +++ b/packages/app-accounts/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-accounts", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "main": "index.js", "repository": "https://github.com/polkadot-js/apps.git", "author": "Jaco Greeff ", @@ -11,8 +11,8 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.40.0-beta.1", - "@polkadot/react-qr": "^0.48.1", + "@polkadot/react-components": "^0.40.0-beta.8", + "@polkadot/react-qr": "^0.49.0-beta.1", "@types/file-saver": "^2.0.0", "@types/yargs": "^15.0.2", "detect-browser": "^4.8.0", diff --git a/packages/app-address-book/package.json b/packages/app-address-book/package.json index 357d2c7d431a..6a78700b97b4 100644 --- a/packages/app-address-book/package.json +++ b/packages/app-address-book/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-address-book", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "main": "index.js", "repository": "https://github.com/polkadot-js/apps.git", "author": "Jaco Greeff ", @@ -11,6 +11,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.40.0-beta.1" + "@polkadot/react-components": "^0.40.0-beta.8" } } diff --git a/packages/app-address-book/src/Overview.tsx b/packages/app-address-book/src/Overview.tsx index c8f60212aef7..4548f08a60b7 100644 --- a/packages/app-address-book/src/Overview.tsx +++ b/packages/app-address-book/src/Overview.tsx @@ -84,7 +84,7 @@ function Overview ({ className, onStatusChange }: Props): React.ReactElement ) - : t('no contracts yet, add an existing contact') + : t('no addresses saved yet, add any existing address') } ); diff --git a/packages/app-claims/package.json b/packages/app-claims/package.json index eb87642eff95..c529820c2bde 100644 --- a/packages/app-claims/package.json +++ b/packages/app-claims/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-claims", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "description": "An app for claiming Polkadot tokens", "main": "index.js", "scripts": {}, @@ -12,7 +12,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.40.0-beta.1", + "@polkadot/react-components": "^0.40.0-beta.8", "secp256k1": "^3.8.0" } } diff --git a/packages/app-contracts/package.json b/packages/app-contracts/package.json index ee3f456e08ee..197fb6e7f118 100644 --- a/packages/app-contracts/package.json +++ b/packages/app-contracts/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-contracts", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "description": "Deployment and management of substrate contracts", "main": "index.js", "scripts": {}, @@ -11,6 +11,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/api-contract": "^1.1.0-beta.8" + "@polkadot/api-contract": "^1.1.0-beta.19" } } diff --git a/packages/app-council/package.json b/packages/app-council/package.json index e04be4328702..0a293098a100 100644 --- a/packages/app-council/package.json +++ b/packages/app-council/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-council", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "description": "Council", "main": "index.js", "scripts": {}, @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.40.0-beta.1", - "@polkadot/react-query": "^0.40.0-beta.1" + "@polkadot/react-components": "^0.40.0-beta.8", + "@polkadot/react-query": "^0.40.0-beta.8" } } diff --git a/packages/app-council/src/Motions/Propose.tsx b/packages/app-council/src/Motions/Propose.tsx index 7cbd382a53f0..4c9aa9fd5958 100644 --- a/packages/app-council/src/Motions/Propose.tsx +++ b/packages/app-council/src/Motions/Propose.tsx @@ -2,8 +2,9 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. +import { SubmittableExtrinsic } from '@polkadot/api/types'; import { ApiProps } from '@polkadot/react-api/types'; -import { Call, Proposal } from '@polkadot/types/interfaces'; +import { Proposal } from '@polkadot/types/interfaces'; import BN from 'bn.js'; import React from 'react'; @@ -20,7 +21,7 @@ interface Props extends TxModalProps, ApiProps { } interface State extends TxModalState { - method: Call | null; + method: SubmittableExtrinsic<'promise'> | null; threshold: BN | null; } @@ -122,7 +123,7 @@ class Propose extends TxModal { this.setState({ threshold }); } - private onChangeExtrinsic = (method?: Call): void => { + private onChangeExtrinsic = (method?: SubmittableExtrinsic<'promise'>): void => { if (!method) { return; } diff --git a/packages/app-dashboard/package.json b/packages/app-dashboard/package.json index 697faec97244..02dea013ad31 100644 --- a/packages/app-dashboard/package.json +++ b/packages/app-dashboard/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-dashboard", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "description": "Dashboard for all apps, allowing for an overview and quick navigation", "main": "index.js", "scripts": {}, @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/apps-routing": "^0.40.0-beta.1", - "@polkadot/react-components": "^0.40.0-beta.1" + "@polkadot/apps-routing": "^0.40.0-beta.8", + "@polkadot/react-components": "^0.40.0-beta.8" } } diff --git a/packages/app-democracy/package.json b/packages/app-democracy/package.json index 659334c6ac14..21b6e086cad1 100644 --- a/packages/app-democracy/package.json +++ b/packages/app-democracy/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-democracy", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "description": "A referendum & proposal app", "main": "index.js", "scripts": {}, @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.40.0-beta.1", - "@polkadot/react-query": "^0.40.0-beta.1" + "@polkadot/react-components": "^0.40.0-beta.8", + "@polkadot/react-query": "^0.40.0-beta.8" } } diff --git a/packages/app-democracy/src/Overview/Externals.tsx b/packages/app-democracy/src/Overview/Externals.tsx index 3744e457cf6b..0db223f80adf 100644 --- a/packages/app-democracy/src/Overview/Externals.tsx +++ b/packages/app-democracy/src/Overview/Externals.tsx @@ -12,6 +12,7 @@ import { FormatBalance } from '@polkadot/react-query'; import { Bytes, Option } from '@polkadot/types'; import { useTranslation } from '../translate'; +import PreImageButton from './PreImageButton'; import ProposalCell from './ProposalCell'; interface Props { @@ -70,6 +71,13 @@ export default function Externals ({ className }: Props): React.ReactElement + + + diff --git a/packages/app-democracy/src/Overview/Voting.tsx b/packages/app-democracy/src/Overview/Voting.tsx index ee6bb2975a32..92d060460e0d 100644 --- a/packages/app-democracy/src/Overview/Voting.tsx +++ b/packages/app-democracy/src/Overview/Voting.tsx @@ -6,7 +6,7 @@ import { PropIndex, Proposal } from '@polkadot/types/interfaces'; import React, { useMemo, useState } from 'react'; import { Button, Dropdown, Modal, ProposedAction, VoteAccount, VoteActions, VoteToggle } from '@polkadot/react-components'; -import { useAccounts, useToggle } from '@polkadot/react-hooks'; +import { useAccounts, useApi, useToggle } from '@polkadot/react-hooks'; import { isBoolean } from '@polkadot/util'; import { useTranslation } from '../translate'; @@ -16,22 +16,32 @@ interface Props { referendumId: PropIndex; } +const CONVICTIONS: [number, number][] = [1, 2, 4, 8, 16, 32].map((lock, index) => [index + 1, lock]); + export default function Voting ({ proposal, referendumId }: Props): React.ReactElement | null { const { t } = useTranslation(); + const { api } = useApi(); const { hasAccounts } = useAccounts(); const [accountId, setAccountId] = useState(null); const [conviction, setConviction] = useState(0); const [isVotingOpen, toggleVoting] = useToggle(); const [aye, setVoteValue] = useState(true); + const [enact] = useState( + (api.consts.democracy.enactmentPeriod.toNumber() * api.consts.timestamp.minimumPeriod.toNumber() / 1000 * 2) / 60 / 60 / 24 + ); const convictionOpts = useMemo(() => [ - { text: t('0.1x of voting balance, no lockup period'), value: 0 }, - { text: t('1x of voting balance, locked for 1x enactment'), value: 1 }, - { text: t('2x of voting balance, locked for 2x enactment'), value: 2 }, - { text: t('3x of voting balance, locked for 4x enactment'), value: 3 }, - { text: t('4x of voting balance, locked for 8x enactment'), value: 4 }, - { text: t('5x of voting balance, locked for 16x enactment'), value: 5 }, - { text: t('6x of voting balance, locked for 32x enactment'), value: 6 } - ], [t]); + { text: t('0.1x voting balance, no lockup period'), value: 0 }, + ...CONVICTIONS.map(([value, lock]): { text: string; value: number } => ({ + text: t('{{value}}x voting balance, locked for {{lock}}x enactment ({{period}} days)', { + replace: { + lock, + period: (enact * lock).toFixed(2), + value + } + }), + value + })) + ], [t, enact]); if (!hasAccounts) { return null; diff --git a/packages/app-explorer/package.json b/packages/app-explorer/package.json index 34da4fbbca35..70252b151c8f 100644 --- a/packages/app-explorer/package.json +++ b/packages/app-explorer/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-explorer", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "main": "index.js", "repository": "https://github.com/polkadot-js/apps.git", "author": "Jaco Greeff ", @@ -11,6 +11,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.40.0-beta.1" + "@polkadot/react-components": "^0.40.0-beta.8" } } diff --git a/packages/app-extrinsics/package.json b/packages/app-extrinsics/package.json index c78c580e7de0..8ad7cc473686 100644 --- a/packages/app-extrinsics/package.json +++ b/packages/app-extrinsics/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-extrinsics", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "main": "index.js", "repository": "https://github.com/polkadot-js/apps.git", "author": "Jaco Greeff ", @@ -11,8 +11,8 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.40.0-beta.1", - "@polkadot/react-params": "^0.40.0-beta.1", - "@polkadot/react-signer": "^0.40.0-beta.1" + "@polkadot/react-components": "^0.40.0-beta.8", + "@polkadot/react-params": "^0.40.0-beta.8", + "@polkadot/react-signer": "^0.40.0-beta.8" } } diff --git a/packages/app-extrinsics/src/Selection.tsx b/packages/app-extrinsics/src/Selection.tsx index b2fff8abcac7..c642e945c535 100644 --- a/packages/app-extrinsics/src/Selection.tsx +++ b/packages/app-extrinsics/src/Selection.tsx @@ -2,11 +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 { Call } from '@polkadot/types/interfaces'; import { I18nProps } from '@polkadot/react-components/types'; import { QueueTxExtrinsicAdd } from '@polkadot/react-components/Status/types'; import { ApiProps } from '@polkadot/react-api/types'; -import { SubmittableExtrinsic } from '@polkadot/api/promise/types'; +import { SubmittableExtrinsic } from '@polkadot/api/types'; import React from 'react'; import { Button, Extrinsic, InputAddress, TxButton, TxComponent } from '@polkadot/react-components'; @@ -22,7 +21,7 @@ interface Props extends ApiProps, I18nProps { interface State { isValid: boolean; isValidUnsigned: boolean; - method: Call | null; + method: SubmittableExtrinsic<'promise'> | null; accountId?: string | null; } @@ -71,7 +70,6 @@ class Selection extends TxComponent { icon='sign-in' extrinsic={extrinsic} ref={this.button} - withSpinner /> @@ -98,7 +96,7 @@ class Selection extends TxComponent { ); } - private onChangeExtrinsic = (method: Call | null = null): void => { + private onChangeExtrinsic = (method: SubmittableExtrinsic<'promise'> | null = null): void => { this.nextState({ method }); } @@ -106,7 +104,7 @@ class Selection extends TxComponent { this.nextState({ accountId }); } - private getExtrinsic (): SubmittableExtrinsic | null { + private getExtrinsic (): SubmittableExtrinsic<'promise'> | null { const { api } = this.props; const { method } = this.state; diff --git a/packages/app-generic-asset/package.json b/packages/app-generic-asset/package.json index 4e683e360b72..b45553200015 100644 --- a/packages/app-generic-asset/package.json +++ b/packages/app-generic-asset/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-generic-asset", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "description": "A basic GenericAsset transfer app", "main": "index.js", "scripts": {}, @@ -11,6 +11,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.40.0-beta.1" + "@polkadot/react-components": "^0.40.0-beta.8" } } diff --git a/packages/app-js/package.json b/packages/app-js/package.json index 481cd9df0396..a63fe624a24e 100644 --- a/packages/app-js/package.json +++ b/packages/app-js/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-js", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "description": "A simple JavaScript console for playing with the API", "main": "index.js", "scripts": {}, @@ -11,6 +11,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.40.0-beta.1" + "@polkadot/react-components": "^0.40.0-beta.8" } } diff --git a/packages/app-parachains/package.json b/packages/app-parachains/package.json index 384676954bb6..26179242c407 100644 --- a/packages/app-parachains/package.json +++ b/packages/app-parachains/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-parachains", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "description": "Parachains", "main": "index.js", "scripts": {}, @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.40.0-beta.1", - "@polkadot/react-query": "^0.40.0-beta.1" + "@polkadot/react-components": "^0.40.0-beta.8", + "@polkadot/react-query": "^0.40.0-beta.8" } } diff --git a/packages/app-settings/package.json b/packages/app-settings/package.json index 92d4d1a184c0..502cff62d1d5 100644 --- a/packages/app-settings/package.json +++ b/packages/app-settings/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-settings", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "description": "Settings management", "main": "index.js", "scripts": {}, @@ -11,8 +11,8 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.40.0-beta.1", - "@polkadot/react-query": "^0.40.0-beta.1", + "@polkadot/react-components": "^0.40.0-beta.8", + "@polkadot/react-query": "^0.40.0-beta.8", "query-string": "^6.10.1" } } diff --git a/packages/app-society/package.json b/packages/app-society/package.json index ab6295786ac4..66dd1856cb74 100644 --- a/packages/app-society/package.json +++ b/packages/app-society/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-society", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "description": "A society", "main": "index.js", "scripts": {}, @@ -8,6 +8,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.40.0-beta.1" + "@polkadot/react-components": "^0.40.0-beta.8" } } diff --git a/packages/app-staking/package.json b/packages/app-staking/package.json index 07f17c3e41a6..0cbba64fa59e 100644 --- a/packages/app-staking/package.json +++ b/packages/app-staking/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-staking", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "description": "A basic staking app", "main": "index.js", "scripts": {}, @@ -11,8 +11,8 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/app-explorer": "^0.40.0-beta.1", - "@polkadot/react-components": "^0.40.0-beta.1", - "@polkadot/react-query": "^0.40.0-beta.1" + "@polkadot/app-explorer": "^0.40.0-beta.8", + "@polkadot/react-components": "^0.40.0-beta.8", + "@polkadot/react-query": "^0.40.0-beta.8" } } diff --git a/packages/app-storage/package.json b/packages/app-storage/package.json index 8c59306c3f81..c2a6c0a0761d 100644 --- a/packages/app-storage/package.json +++ b/packages/app-storage/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-storage", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "main": "index.js", "repository": "https://github.com/polkadot-js/apps.git", "author": "Jaco Greeff ", @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.40.0-beta.1", - "@polkadot/react-params": "^0.40.0-beta.1" + "@polkadot/react-components": "^0.40.0-beta.8", + "@polkadot/react-params": "^0.40.0-beta.8" } } diff --git a/packages/app-sudo/package.json b/packages/app-sudo/package.json index 39306273aad9..247cce453eed 100644 --- a/packages/app-sudo/package.json +++ b/packages/app-sudo/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-sudo", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "description": "A basic app that shows the ropes on customisation", "main": "index.js", "scripts": {}, @@ -12,6 +12,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.40.0-beta.1" + "@polkadot/react-components": "^0.40.0-beta.8" } } diff --git a/packages/app-sudo/src/Sudo.tsx b/packages/app-sudo/src/Sudo.tsx index cf9d5c125449..9e41563326b2 100644 --- a/packages/app-sudo/src/Sudo.tsx +++ b/packages/app-sudo/src/Sudo.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 { Call } from '@polkadot/types/interfaces'; +import { SubmittableExtrinsic } from '@polkadot/api/types'; import { I18nProps } from '@polkadot/react-components/types'; import { ApiProps } from '@polkadot/react-api/types'; import { ComponentProps } from './types'; @@ -20,7 +20,7 @@ interface Props extends I18nProps, ApiProps, ComponentProps { } interface State { - method: Call | null; + method: SubmittableExtrinsic<'promise'> | null; isValid: boolean; } @@ -82,7 +82,7 @@ class Propose extends TxComponent { ); } - private onChangeExtrinsic = (method?: Call): void => { + private onChangeExtrinsic = (method?: SubmittableExtrinsic<'promise'>): void => { if (!method) { return; } diff --git a/packages/app-tech-comm/package.json b/packages/app-tech-comm/package.json index 6857ef5938eb..250f55edd868 100644 --- a/packages/app-tech-comm/package.json +++ b/packages/app-tech-comm/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-tech-comm", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "description": "Council", "main": "index.js", "scripts": {}, @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.40.0-beta.1", - "@polkadot/react-query": "^0.40.0-beta.1" + "@polkadot/react-components": "^0.40.0-beta.8", + "@polkadot/react-query": "^0.40.0-beta.8" } } diff --git a/packages/app-tech-comm/src/Proposals/Propose.tsx b/packages/app-tech-comm/src/Proposals/Propose.tsx index c64c0a2c3563..1a88be2a8517 100644 --- a/packages/app-tech-comm/src/Proposals/Propose.tsx +++ b/packages/app-tech-comm/src/Proposals/Propose.tsx @@ -2,8 +2,9 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. +import { SubmittableExtrinsic } from '@polkadot/api/types'; import { TxSource, TxDef } from '@polkadot/react-hooks/types'; -import { Call, Proposal } from '@polkadot/types/interfaces'; +import { Proposal } from '@polkadot/types/interfaces'; import BN from 'bn.js'; import React, { useEffect, useState } from 'react'; @@ -48,7 +49,7 @@ export default function Propose ({ onClose, memberCount = 0 }: Props): React.Rea setThreshold([threshold, _hasThreshold(threshold)]); }, [memberCount]); - const _onChangeExtrinsic = (method?: Call): void => + const _onChangeExtrinsic = (method?: SubmittableExtrinsic<'promise'>): void => setProposal(method ? createType(registry, 'Proposal', method) : null); const _onChangeThreshold = (threshold?: BN): void => setThreshold([threshold || null, _hasThreshold(threshold)]); diff --git a/packages/app-tech-comm/src/index.tsx b/packages/app-tech-comm/src/index.tsx index 4dd4d1f26379..7907541e3b5a 100644 --- a/packages/app-tech-comm/src/index.tsx +++ b/packages/app-tech-comm/src/index.tsx @@ -31,7 +31,7 @@ export default function TechCommApp ({ basePath, className }: Props): React.Reac }, { name: 'proposals', - text: t('Proposals ({{count}})', { replace: { count: proposals?.length || 0 } }) + text: t('Proposals ({{count}})', { replace: { count: (proposals && proposals.length) || 0 } }) } ], [proposals, t]); diff --git a/packages/app-toolbox/package.json b/packages/app-toolbox/package.json index a72ffcaba818..795fa7b41dad 100644 --- a/packages/app-toolbox/package.json +++ b/packages/app-toolbox/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-toolbox", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "main": "index.js", "repository": "https://github.com/polkadot-js/apps.git", "author": "Jaco Greeff ", @@ -11,6 +11,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.40.0-beta.1" + "@polkadot/react-components": "^0.40.0-beta.8" } } diff --git a/packages/app-transfer/package.json b/packages/app-transfer/package.json index aea15f288744..b746b8bcf85d 100644 --- a/packages/app-transfer/package.json +++ b/packages/app-transfer/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-transfer", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "description": "A basic transfer app", "main": "index.js", "scripts": {}, @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.40.0-beta.1", - "@polkadot/react-query": "^0.40.0-beta.1" + "@polkadot/react-components": "^0.40.0-beta.8", + "@polkadot/react-query": "^0.40.0-beta.8" } } diff --git a/packages/app-treasury/package.json b/packages/app-treasury/package.json index f5aeef2e09df..18f1646edf1e 100644 --- a/packages/app-treasury/package.json +++ b/packages/app-treasury/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/app-treasury", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "description": "A referendum & proposal app", "main": "index.js", "scripts": {}, @@ -12,7 +12,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.40.0-beta.1", - "@polkadot/react-query": "^0.40.0-beta.1" + "@polkadot/react-components": "^0.40.0-beta.8", + "@polkadot/react-query": "^0.40.0-beta.8" } } diff --git a/packages/apps-routing/package.json b/packages/apps-routing/package.json index 53c33eb95a03..cd36741ff496 100644 --- a/packages/apps-routing/package.json +++ b/packages/apps-routing/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/apps-routing", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "main": "index.js", "repository": "https://github.com/polkadot-js/apps.git", "author": "Jaco Greeff ", diff --git a/packages/apps/package.json b/packages/apps/package.json index c25b88714e8f..5aaef4cceef9 100644 --- a/packages/apps/package.json +++ b/packages/apps/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/apps", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "description": "An Apps portal into the Polkadot network", "main": "index.js", "homepage": ".", @@ -14,9 +14,9 @@ "dependencies": { "@babel/polyfill": "^7.8.3", "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.40.0-beta.1", - "@polkadot/react-signer": "^0.40.0-beta.1", - "@polkadot/ui-assets": "^0.48.1", + "@polkadot/react-components": "^0.40.0-beta.8", + "@polkadot/react-signer": "^0.40.0-beta.8", + "@polkadot/ui-assets": "^0.49.0-beta.1", "query-string": "^6.10.1" } } diff --git a/packages/apps/public/locales/en/app-address-book.json b/packages/apps/public/locales/en/app-address-book.json index deb16af60f36..1ef7df7963e2 100644 --- a/packages/apps/public/locales/en/app-address-book.json +++ b/packages/apps/public/locales/en/app-address-book.json @@ -20,5 +20,6 @@ "filter by tags": "filter by tags", "no addresses yet add and existring contact": "no addresses yet add and existring contact", "no contracts yet, add an existing contact": "no contracts yet, add an existing contact", - "filter by name or tags": "filter by name or tags" + "filter by name or tags": "filter by name or tags", + "no addresses saved yet, add any existing address": "no addresses saved yet, add any existing address" } diff --git a/packages/apps/public/locales/en/app-democracy.json b/packages/apps/public/locales/en/app-democracy.json index 8068241fb892..9d08cf42cd70 100644 --- a/packages/apps/public/locales/en/app-democracy.json +++ b/packages/apps/public/locales/en/app-democracy.json @@ -73,5 +73,7 @@ "5x of voting balance, locked for 16x enactment": "5x of voting balance, locked for 16x enactment", "6x of voting balance, locked for 32x enactment": "6x of voting balance, locked for 32x enactment", "The conviction to use for this vote, with an appropriate lock period.": "The conviction to use for this vote, with an appropriate lock period.", - "conviction": "conviction" + "conviction": "conviction", + "0.1x voting balance, no lockup period": "0.1x voting balance, no lockup period", + "{{value}}x voting balance, locked for {{lock}}x enactment ({{period}} days)": "{{value}}x voting balance, locked for {{lock}}x enactment ({{period}} days)" } diff --git a/packages/apps/public/locales/en/ui.json b/packages/apps/public/locales/en/ui.json index 5c200c4aff72..fc70d06e0674 100644 --- a/packages/apps/public/locales/en/ui.json +++ b/packages/apps/public/locales/en/ui.json @@ -863,5 +863,8 @@ "Current account nonce: {{accountNonce}}": "", "Lifetime (# of blocks)": "", "Set to 0 to make transaction immortal": "", - "Signed transaction": "" + "Signed transaction": "", + "no addresses saved yet, add any existing address": "", + "0.1x voting balance, no lockup period": "", + "{{value}}x voting balance, locked for {{lock}}x enactment ({{period}} days)": "" } diff --git a/packages/react-api/package.json b/packages/react-api/package.json index fed002f5c4f7..c6a4bb9a320c 100644 --- a/packages/react-api/package.json +++ b/packages/react-api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/react-api", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "description": "A collection of RxJs React components the Polkadot JS API", "main": "index.js", "keywords": [ @@ -31,7 +31,7 @@ "homepage": "https://github.com/polkadot-js/ui/tree/master/packages/ui-reactive#readme", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/api": "^1.1.0-beta.8", + "@polkadot/api": "^1.1.0-beta.19", "@polkadot/extension-dapp": "^0.21.0-beta.1", "edgeware-node-types": "^1.1.0", "rxjs-compat": "^6.5.3" diff --git a/packages/react-components/package.json b/packages/react-components/package.json index 71d684319a25..7d68ffa44ace 100644 --- a/packages/react-components/package.json +++ b/packages/react-components/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/react-components", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "main": "index.js", "repository": "https://github.com/polkadot-js/apps.git", "author": "Jaco Greeff ", @@ -11,12 +11,12 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/keyring": "^2.0.1", - "@polkadot/react-api": "^0.40.0-beta.1", - "@polkadot/react-identicon": "^0.48.1", - "@polkadot/react-query": "^0.40.0-beta.1", - "@polkadot/ui-keyring": "^0.48.1", - "@polkadot/ui-settings": "^0.48.1", + "@polkadot/keyring": "^2.1.1", + "@polkadot/react-api": "^0.40.0-beta.8", + "@polkadot/react-identicon": "^0.49.0-beta.1", + "@polkadot/react-query": "^0.40.0-beta.8", + "@polkadot/ui-keyring": "^0.49.0-beta.1", + "@polkadot/ui-settings": "^0.49.0-beta.1", "@types/chart.js": "^2.9.11", "@types/i18next": "^13.0.0", "@types/react-copy-to-clipboard": "^4.3.0", diff --git a/packages/react-components/src/Extrinsic.tsx b/packages/react-components/src/Extrinsic.tsx index a768e9dc79e7..5094bd9e65bb 100644 --- a/packages/react-components/src/Extrinsic.tsx +++ b/packages/react-components/src/Extrinsic.tsx @@ -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 { SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api/types'; import { BareProps } from '@polkadot/react-components/types'; import { RawParam } from '@polkadot/react-params/types'; -import { Call } from '@polkadot/types/interfaces'; -import { CallFunction, TypeDef } from '@polkadot/types/types'; +import { TypeDef } from '@polkadot/types/types'; import React, { useEffect, useState } from 'react'; import { GenericCall, getTypeDef } from '@polkadot/types'; @@ -16,18 +16,18 @@ import { isUndefined } from '@polkadot/util'; import paramComponents from './Params'; interface Props extends BareProps { - defaultValue: CallFunction; + defaultValue: SubmittableExtrinsicFunction<'promise'>; isDisabled?: boolean; isError?: boolean; isPrivate?: boolean; label?: React.ReactNode; - onChange: (method?: Call) => void; + onChange: (method?: SubmittableExtrinsic<'promise'>) => void; onEnter?: () => void; onEscape?: () => void; withLabel?: boolean; } -function getParams ({ meta }: CallFunction): { name: string; type: TypeDef }[] { +function getParams ({ meta }: SubmittableExtrinsicFunction<'promise'>): { name: string; type: TypeDef }[] { return GenericCall.filterOrigin(meta).map((arg): { name: string; type: TypeDef } => ({ name: arg.name.toString(), type: getTypeDef(arg.type.toString()) @@ -35,7 +35,7 @@ function getParams ({ meta }: CallFunction): { name: string; type: TypeDef }[] { } export default function ExtrinsicDisplay ({ defaultValue, isDisabled, isError, isPrivate, label, onChange, onEnter, onEscape, withLabel }: Props): React.ReactElement { - const [extrinsic, setCall] = useState<{ fn: CallFunction; params: { name: string; type: TypeDef }[] }>({ fn: defaultValue, params: getParams(defaultValue) }); + const [extrinsic, setCall] = useState<{ fn: SubmittableExtrinsicFunction<'promise'>; params: { name: string; type: TypeDef }[] }>({ fn: defaultValue, params: getParams(defaultValue) }); const [values, setValues] = useState([]); useEffect((): void => { @@ -63,7 +63,7 @@ export default function ExtrinsicDisplay ({ defaultValue, isDisabled, isError, i onChange(method); }, [extrinsic, values]); - const _onChangeMethod = (fn: CallFunction): void => setCall({ fn, params: getParams(fn) }); + const _onChangeMethod = (fn: SubmittableExtrinsicFunction<'promise'>): void => setCall({ fn, params: getParams(fn) }); const { fn: { meta, method, section }, params } = extrinsic; diff --git a/packages/react-components/src/InputExtrinsic/SelectMethod.tsx b/packages/react-components/src/InputExtrinsic/SelectMethod.tsx index d0fb72affba0..a9a0ca1ef7d7 100644 --- a/packages/react-components/src/InputExtrinsic/SelectMethod.tsx +++ b/packages/react-components/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 { CallFunction } from '@polkadot/types/types'; +import { SubmittableExtrinsicFunction } from '@polkadot/api/types'; import { BareProps } from '../types'; import { DropdownOptions } from '../util/types'; @@ -15,9 +15,9 @@ import { classes } from '../util'; interface Props extends BareProps { api: ApiPromise; isError?: boolean; - onChange: (value: CallFunction) => void; + onChange: (value: SubmittableExtrinsicFunction<'promise'>) => void; options: DropdownOptions; - value: CallFunction; + value: SubmittableExtrinsicFunction<'promise'>; } export default function SelectMethod ({ api, className, isError, onChange, options, style, value }: Props): React.ReactElement | null { @@ -25,7 +25,7 @@ export default function SelectMethod ({ api, className, isError, onChange, optio return null; } - const transform = (method: string): CallFunction => api.tx[value.section][method]; + const transform = (method: string): SubmittableExtrinsicFunction<'promise'> => api.tx[value.section][method]; return ( void; options: DropdownOptions; - value: CallFunction; + value: SubmittableExtrinsicFunction<'promise'>; } export default function SelectSection ({ className, defaultValue, isError, onChange, options, style, value }: Props): React.ReactElement { diff --git a/packages/react-components/src/InputExtrinsic/index.tsx b/packages/react-components/src/InputExtrinsic/index.tsx index 7f69a495be77..7a4f30f97803 100644 --- a/packages/react-components/src/InputExtrinsic/index.tsx +++ b/packages/react-components/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 { CallFunction } from '@polkadot/types/types'; +import { SubmittableExtrinsicFunction } from '@polkadot/api/types'; import { DropdownOptions } from '../util/types'; import React, { useState } from 'react'; @@ -16,13 +16,13 @@ import sectionOptions from './options/section'; interface Props { className?: string; - defaultValue: CallFunction; + defaultValue: SubmittableExtrinsicFunction<'promise'>; help?: React.ReactNode; isDisabled?: boolean; isError?: boolean; isPrivate?: boolean; label: React.ReactNode; - onChange: (value: CallFunction) => void; + onChange: (value: SubmittableExtrinsicFunction<'promise'>) => void; style?: any; withLabel?: boolean; } @@ -31,15 +31,15 @@ export default function InputExtrinsic ({ className, defaultValue, help, label, const { api } = useApi(); const [optionsMethod, setOptionsMethod] = useState(methodOptions(api, defaultValue.section)); const [optionsSection] = useState(sectionOptions(api)); - const [value, setValue] = useState((): CallFunction => defaultValue); + const [value, setValue] = useState>((): SubmittableExtrinsicFunction<'promise'> => defaultValue); - const _onKeyChange = (newValue: CallFunction): void => { + const _onKeyChange = (newValue: SubmittableExtrinsicFunction<'promise'>): void => { if (value.section === newValue.section && value.method === newValue.method) { return; } // set this via callback, since the we are setting a function (aletrnatively... we have issues) - setValue((): CallFunction => newValue); + setValue((): SubmittableExtrinsicFunction<'promise'> => newValue); onChange(newValue); }; const _onSectionChange = (section: string): void => { diff --git a/packages/react-components/src/Params/Extrinsic.tsx b/packages/react-components/src/Params/Extrinsic.tsx index 231c787ac4d7..612d98069ce3 100644 --- a/packages/react-components/src/Params/Extrinsic.tsx +++ b/packages/react-components/src/Params/Extrinsic.tsx @@ -2,8 +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 { Call } from '@polkadot/types/interfaces'; -import { CallFunction } from '@polkadot/types/types'; +import { SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api/types'; import { RawParamOnChange, RawParamOnEnter, RawParamOnEscape } from '@polkadot/react-params/types'; import { BareProps } from '../types'; @@ -12,7 +11,7 @@ import React from 'react'; import BaseExtrinsic from '../Extrinsic'; interface Props extends BareProps { - defaultValue: CallFunction; + defaultValue: SubmittableExtrinsicFunction<'promise'>; isDisabled?: boolean; isError?: boolean; isPrivate: boolean; @@ -23,8 +22,8 @@ interface Props extends BareProps { withLabel?: boolean; } -function onChange ({ onChange }: Props): (method?: Call) => void { - return (method?: Call): void => { +function onChange ({ onChange }: Props): (method?: SubmittableExtrinsic<'promise'>) => void { + return (method?: SubmittableExtrinsic<'promise'>): void => { onChange && onChange({ isValid: !!method, value: method diff --git a/packages/react-hooks/package.json b/packages/react-hooks/package.json index 7ea6159dbd93..b9e118627ca6 100644 --- a/packages/react-hooks/package.json +++ b/packages/react-hooks/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/react-hooks", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "description": "A collection of React hooks the Polkadot JS Apps UI", "main": "index.js", "keywords": [ diff --git a/packages/react-params/package.json b/packages/react-params/package.json index 093c959424a9..e6f8b3dde73b 100644 --- a/packages/react-params/package.json +++ b/packages/react-params/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/react-params", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "main": "index.js", "repository": "https://github.com/polkadot-js/apps.git", "author": "Jaco Greeff ", @@ -11,6 +11,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.40.0-beta.1" + "@polkadot/react-components": "^0.40.0-beta.8" } } diff --git a/packages/react-query/package.json b/packages/react-query/package.json index 5166cd28af16..bcd749fe33cc 100644 --- a/packages/react-query/package.json +++ b/packages/react-query/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/react-query", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "description": "A collection of RxJs React components the Polkadot JS API", "main": "index.js", "keywords": [ diff --git a/packages/react-signer/package.json b/packages/react-signer/package.json index 95bc1803461c..04e226eb3724 100644 --- a/packages/react-signer/package.json +++ b/packages/react-signer/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/react-signer", - "version": "0.40.0-beta.1", + "version": "0.40.0-beta.8", "main": "index.js", "repository": "https://github.com/polkadot-js/apps.git", "author": "Jaco Greeff ", @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.8.3", - "@polkadot/react-components": "^0.40.0-beta.1", - "@polkadot/react-qr": "^0.48.1" + "@polkadot/react-components": "^0.40.0-beta.8", + "@polkadot/react-qr": "^0.49.0-beta.1" } } diff --git a/types.json b/types.json index c80f4ebdfa77..80d0eb623642 100644 --- a/types.json +++ b/types.json @@ -12,5 +12,6 @@ "inputs": "Vec", "outputs": "Vec" }, - "blah": "u32" + "blah": "u32", + "BalanceLock": "BalanceLockTo212" } diff --git a/yarn.lock b/yarn.lock index c7b16343ce15..ebff1412081b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2210,36 +2210,36 @@ dependencies: "@types/node" ">= 8" -"@polkadot/api-contract@^1.1.0-beta.8": - version "1.1.0-beta.8" - resolved "https://registry.yarnpkg.com/@polkadot/api-contract/-/api-contract-1.1.0-beta.8.tgz#8775e1b030d7eaa81f100b3533e6bb83a408eb77" - integrity sha512-2ZEkVMedOEf+L5Rk/XuFmebIuWKjrWHdYVHarlTwF3iYUU9u27W3W3gLnpEFxwYB5Ei2OVTWLo2mVKsAGkTKOw== +"@polkadot/api-contract@^1.1.0-beta.19": + version "1.1.0-beta.19" + resolved "https://registry.yarnpkg.com/@polkadot/api-contract/-/api-contract-1.1.0-beta.19.tgz#6537784341a6302151f1123f841f71edee2bbc55" + integrity sha512-lWZ6JY/3nXrCSqcogZZto1pCCui26F5UAE1ITE8NjnVBJTLSQj3EnvwabI/rqH87ot34jg+lUEc73CF1dJUuAw== dependencies: "@babel/runtime" "^7.8.3" - "@polkadot/types" "^1.1.0-beta.8" + "@polkadot/types" "^1.1.0-beta.19" -"@polkadot/api-derive@^1.1.0-beta.8": - version "1.1.0-beta.8" - resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-1.1.0-beta.8.tgz#1fcd23fb421fa7fc11fc60153d99830d794fea4a" - integrity sha512-PgSULfseVkgd8EXo73+i0eMXu0A8Yi5QUmx7D78QyQPHztp5YMQ3Wa124zAutDBOucqXoDwQADpZN5jGbQctGQ== +"@polkadot/api-derive@^1.1.0-beta.19": + version "1.1.0-beta.19" + resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-1.1.0-beta.19.tgz#89e98aedb0b37d959146679fda5cbd8db170647f" + integrity sha512-OnRzA6nR+yf5mVG9SWronh71zRmWMfMSoMFZajngi8CVfaAVdtqMfVjd0T0aYpdLGv+aCv6cvPWLsiuZQtdNRQ== dependencies: "@babel/runtime" "^7.8.3" - "@polkadot/api" "^1.1.0-beta.8" - "@polkadot/types" "^1.1.0-beta.8" + "@polkadot/api" "^1.1.0-beta.19" + "@polkadot/types" "^1.1.0-beta.19" -"@polkadot/api@^1.1.0-beta.8": - version "1.1.0-beta.8" - resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-1.1.0-beta.8.tgz#6c28036cf59d510698607ee48ee27ea1c958c4c1" - integrity sha512-H1iC0LMF+pmwZIuY9DdMu/Cx02jCwZdSISBSCyF+KbdDa5DLlxrQse6+npP0XtX+Z/v1kbCLm721RuCCV0gYhQ== +"@polkadot/api@^1.1.0-beta.19": + version "1.1.0-beta.19" + resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-1.1.0-beta.19.tgz#78f8508cc07211162fcb8f0efa8571a75f9f3995" + integrity sha512-iDcfyjZZcQsu9EbKAFPDINA20I5+3g5z2qWLbJ9NiOJzmxQe6ponAqVaaZR7T01vC2s951VyA4YoaeFsYUrTDw== dependencies: "@babel/runtime" "^7.8.3" - "@polkadot/api-derive" "^1.1.0-beta.8" - "@polkadot/keyring" "^2.0.1" - "@polkadot/metadata" "^1.1.0-beta.8" - "@polkadot/rpc-core" "^1.1.0-beta.8" - "@polkadot/rpc-provider" "^1.1.0-beta.8" - "@polkadot/types" "^1.1.0-beta.8" - "@polkadot/util-crypto" "^2.0.1" + "@polkadot/api-derive" "^1.1.0-beta.19" + "@polkadot/keyring" "^2.1.1" + "@polkadot/metadata" "^1.1.0-beta.19" + "@polkadot/rpc-core" "^1.1.0-beta.19" + "@polkadot/rpc-provider" "^1.1.0-beta.19" + "@polkadot/types" "^1.1.0-beta.19" + "@polkadot/util-crypto" "^2.1.1" "@polkadot/dev-react@^0.33.3": version "0.33.3" @@ -2343,77 +2343,77 @@ dependencies: "@babel/runtime" "^7.8.3" -"@polkadot/jsonrpc@^1.1.0-beta.8": - version "1.1.0-beta.8" - resolved "https://registry.yarnpkg.com/@polkadot/jsonrpc/-/jsonrpc-1.1.0-beta.8.tgz#39e2bc9f37c96deaad7041e29a394a1bfccb4ef1" - integrity sha512-WB+Pd2li4Xck14YK28VYfjnmgGsASHt0ukEbVNSS8e4yxInRfQOTkRzkFRg6EraVS8HBL0Zeb7LUe+3GRu06iA== +"@polkadot/jsonrpc@^1.1.0-beta.19": + version "1.1.0-beta.19" + resolved "https://registry.yarnpkg.com/@polkadot/jsonrpc/-/jsonrpc-1.1.0-beta.19.tgz#d1b6f8b1ee8f65fa7940cbc00c3e6a87591aa3c3" + integrity sha512-tJvpTe4okR68+fRdTpeY8a/qRB1C70Jlac7gDJiW5yW3fTBC/Wk9qwnVfipevmK46I0KW+jAI4UfGO5agyCLUA== dependencies: "@babel/runtime" "^7.8.3" -"@polkadot/keyring@^2.0.1": - version "2.0.1" - resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-2.0.1.tgz#bbcc10c1a96bf3c43a53414f93646f3d7cc0d5e8" - integrity sha512-VsQQgQVnc5rfMGdFOxDhyv+YdoI5gJaTAhAB++FKxELUtfQJiGOCb16NUs29vNLf7UX59ZkLZfvO+EL0JcZwdw== +"@polkadot/keyring@^2.1.1": + version "2.1.1" + resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-2.1.1.tgz#8691140bb55185ade49d3bfec137b2974c7e80fa" + integrity sha512-fhg9YiatH1s9K0LM3RF7dA6eRJUx0sED0nhaER3fzboXdlJDHChHbr/Q2VoZzbXdmuNWxWQnAI1Q5rRCZQ5HRQ== dependencies: "@babel/runtime" "^7.8.3" - "@polkadot/util" "^2.0.1" - "@polkadot/util-crypto" "^2.0.1" + "@polkadot/util" "^2.1.1" + "@polkadot/util-crypto" "^2.1.1" -"@polkadot/metadata@^1.1.0-beta.8": - version "1.1.0-beta.8" - resolved "https://registry.yarnpkg.com/@polkadot/metadata/-/metadata-1.1.0-beta.8.tgz#bd09ea2731ff54438ecde31d36e25e4616ef1780" - integrity sha512-JtsbzKf109OwakXOt8Ml7C/sNcSwl1XQaTKKQxUt2RxXRwKY9sZibpkX+XDknOO4p+dsBXKjPcKPuy9lO8OSZw== +"@polkadot/metadata@^1.1.0-beta.19": + version "1.1.0-beta.19" + resolved "https://registry.yarnpkg.com/@polkadot/metadata/-/metadata-1.1.0-beta.19.tgz#20951586660a155c2a3ce21e3f2284cd693ed34f" + integrity sha512-G+Y/tjqx/L95X+Yivru3Qs1FtH/2RFG23ukabvvqgdatnujSL+eAj3TSnbloNb7mQt/6HFIcpt42L7MOsF26MA== dependencies: "@babel/runtime" "^7.8.3" - "@polkadot/types" "^1.1.0-beta.8" - "@polkadot/util" "^2.0.1" - "@polkadot/util-crypto" "^2.0.1" + "@polkadot/types" "^1.1.0-beta.19" + "@polkadot/util" "^2.1.1" + "@polkadot/util-crypto" "^2.1.1" -"@polkadot/react-identicon@^0.48.1": - version "0.48.1" - resolved "https://registry.yarnpkg.com/@polkadot/react-identicon/-/react-identicon-0.48.1.tgz#3544e78df61eff4ab30e21c1137cb3a8386520f9" - integrity sha512-ctGhMZ1MUFgnEtShTtRU0PUs+1vNM8JhHjcjEA/CiP8VhMRDxE6sFChZAJonSlT39MVP8rY60DhsSHBMciCIrw== +"@polkadot/react-identicon@^0.49.0-beta.1": + version "0.49.0-beta.1" + resolved "https://registry.yarnpkg.com/@polkadot/react-identicon/-/react-identicon-0.49.0-beta.1.tgz#9a798a30c3a729a022862172d6c71f0ee1e3de2a" + integrity sha512-JQQrA5+YMx/GYw+M4ryfLU6S4NbScMrvDOHvsVx+IvssJ2IeUjd3cB1vkXFoxVFdu4GToRLNO6/9NqRMsOvDUg== dependencies: "@babel/runtime" "^7.8.3" - "@polkadot/ui-settings" "^0.48.1" - "@polkadot/ui-shared" "^0.48.1" + "@polkadot/ui-settings" "^0.49.0-beta.1" + "@polkadot/ui-shared" "^0.49.0-beta.1" "@types/react-copy-to-clipboard" "^4.3.0" color "^3.1.2" jdenticon "2.2.0" react-copy-to-clipboard "^5.0.2" styled-components "^5.0.0" -"@polkadot/react-qr@^0.48.1": - version "0.48.1" - resolved "https://registry.yarnpkg.com/@polkadot/react-qr/-/react-qr-0.48.1.tgz#1d445604d0d21a8916c08255df60e536f13c1a60" - integrity sha512-LpztO7yqw7MYwA55aP0zPT5xb8X26NGUX7ZtkBAGEdHtHWKz9GWP5uY/fgh9EiNaeRR3fC0CHV5WLuXEtv4J6Q== +"@polkadot/react-qr@^0.49.0-beta.1": + version "0.49.0-beta.1" + resolved "https://registry.yarnpkg.com/@polkadot/react-qr/-/react-qr-0.49.0-beta.1.tgz#a32a3fc9ee7294f7c2cf1cc72e96deb9823f0952" + integrity sha512-/qBicrfnjFRW+ir08JQ753knwodye4viz4yhvxW1h0QzH7Mx9B7/wiKuVksXFosjZcHxGGQtxPEy4fM/wZG/KA== dependencies: "@babel/runtime" "^7.8.3" "@types/react-qr-reader" "^2.1.1" qrcode-generator "^1.4.4" react-qr-reader "^2.2.1" -"@polkadot/rpc-core@^1.1.0-beta.8": - version "1.1.0-beta.8" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-1.1.0-beta.8.tgz#bfcec00ee99a754a2238d492f228ea35c3d5e5c7" - integrity sha512-0p+TuzBoHoflUlP+l/VJ/9cAscOGzl1IlJ6TGKd0ikwn0t6AZL4yOzx/ebmvCSnYf0C0kZAMBXxQ7g0OkaJu6g== +"@polkadot/rpc-core@^1.1.0-beta.19": + version "1.1.0-beta.19" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-1.1.0-beta.19.tgz#624bb4fa28d1cfcf50cee3e6ef1447303e712431" + integrity sha512-wVEbQlJ7I426xm0K9b0ItY5mbyiLFaa8VyYjwJBBzzWkI+yJR78LJtLLKG1FNeAp+aqGu5RpKXVE648Zue9x6g== dependencies: "@babel/runtime" "^7.8.3" - "@polkadot/jsonrpc" "^1.1.0-beta.8" - "@polkadot/rpc-provider" "^1.1.0-beta.8" - "@polkadot/types" "^1.1.0-beta.8" - "@polkadot/util" "^2.0.1" + "@polkadot/jsonrpc" "^1.1.0-beta.19" + "@polkadot/rpc-provider" "^1.1.0-beta.19" + "@polkadot/types" "^1.1.0-beta.19" + "@polkadot/util" "^2.1.1" rxjs "^6.5.4" -"@polkadot/rpc-provider@^1.1.0-beta.8": - version "1.1.0-beta.8" - resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-1.1.0-beta.8.tgz#190d93d6762344d4b988f8f599e48c11094459f5" - integrity sha512-EzIB6+Imi0hwHlY+MrExVizRG+cXAHr9BMsrd0RAnEAvIXaArfUaN/1ZU0wzPx0yljzYkr4CXGBUnM7yzkyiCg== +"@polkadot/rpc-provider@^1.1.0-beta.19": + version "1.1.0-beta.19" + resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-1.1.0-beta.19.tgz#f59c5a7a4013e5e1a76fc97b41f5ef9290f74ab2" + integrity sha512-6EZ0ivvTN/GvKCV3UHj9OJlRlvpUgUjL3LfEx0LncaXu3r/IQ80U1k7iXx7oMtG1KIIakIHG+szQPPuY9p4WMg== dependencies: "@babel/runtime" "^7.8.3" - "@polkadot/metadata" "^1.1.0-beta.8" - "@polkadot/util" "^2.0.1" - "@polkadot/util-crypto" "^2.0.1" + "@polkadot/metadata" "^1.1.0-beta.19" + "@polkadot/util" "^2.1.1" + "@polkadot/util-crypto" "^2.1.1" eventemitter3 "^4.0.0" isomorphic-fetch "^2.2.1" websocket "^1.0.31" @@ -2425,29 +2425,29 @@ dependencies: "@types/chrome" "^0.0.92" -"@polkadot/types@^1.1.0-beta.8": - version "1.1.0-beta.8" - resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-1.1.0-beta.8.tgz#8b326514e8fd96b4961e2cb59d8fbee30156b779" - integrity sha512-/fPQS2rHCyQ3pko/U/ifm2HWwLNAL2Ok12J+Qu0xy65/P7E+nJal5gNYJODeeCUIrMXVzOth4IZtF1l6z8Tx+A== +"@polkadot/types@^1.1.0-beta.19": + version "1.1.0-beta.19" + resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-1.1.0-beta.19.tgz#4fac3499f5a3054e6b50e3d0f37031b44cf6d8c7" + integrity sha512-EKThvm3AfzTjRsT7OtgA4JndTCUMc1VJGlwN0c4v4Y+Cj8XSOuzbjmvtjxc/vxsHXTQrKprhrwPukaXIeYaqzw== dependencies: "@babel/runtime" "^7.8.3" - "@polkadot/metadata" "^1.1.0-beta.8" - "@polkadot/util" "^2.0.1" - "@polkadot/util-crypto" "^2.0.1" + "@polkadot/metadata" "^1.1.0-beta.19" + "@polkadot/util" "^2.1.1" + "@polkadot/util-crypto" "^2.1.1" memoizee "^0.4.14" yargs "^15.1.0" -"@polkadot/ui-assets@^0.48.1": - version "0.48.1" - resolved "https://registry.yarnpkg.com/@polkadot/ui-assets/-/ui-assets-0.48.1.tgz#042041e08cae8f8da6e78f03d03744d1fbac15d0" - integrity sha512-rYpQk6U8pZRfJLx7EK6ajBSG2tnlF/tfvoYzbfIVmGNL4YUs0UnE5cbt2qAsBeIyZm0WFx2S2hYNKJnlB49Zgg== +"@polkadot/ui-assets@^0.49.0-beta.1": + version "0.49.0-beta.1" + resolved "https://registry.yarnpkg.com/@polkadot/ui-assets/-/ui-assets-0.49.0-beta.1.tgz#b8746ed5cadff4c591142eac61aceea4451470af" + integrity sha512-CnAOyPkb4Ubr03euMcXKZs9rlCDKCfJZSGANsOMp5FVa+1LaWvr2IEUXmoBa7K7pLD0+JLaJ6P+FIWdk3G09Wg== dependencies: "@babel/runtime" "^7.8.3" -"@polkadot/ui-keyring@^0.48.1": - version "0.48.1" - resolved "https://registry.yarnpkg.com/@polkadot/ui-keyring/-/ui-keyring-0.48.1.tgz#06cdf2b4dcf232fa475c8ea018435747c9302d46" - integrity sha512-SMjbcRX8uSHO0u/BaHwkYaMm79OL3+ok9eNGlZoY71X7z02DcpDe9jRqMU2tPyJHl0BVmtMQeaEue7mKO/Ugvw== +"@polkadot/ui-keyring@^0.49.0-beta.1": + version "0.49.0-beta.1" + resolved "https://registry.yarnpkg.com/@polkadot/ui-keyring/-/ui-keyring-0.49.0-beta.1.tgz#88e6f5e2324440b79640e7332878ac2d06d8deaa" + integrity sha512-1RErpSmH4UOTuyjgoem+UyDpSQ2ojm7XWa+h0ZCqVx1pX1uwBcG12m0ERNvaMMX+T+ATUxQRDR7M8lEg9KBenw== dependencies: "@babel/runtime" "^7.8.3" "@ledgerhq/hw-transport-u2f" "^5.7.0" @@ -2463,31 +2463,31 @@ optionalDependencies: "@ledgerhq/hw-transport-node-hid" "^5.7.0" -"@polkadot/ui-settings@^0.48.1": - version "0.48.1" - resolved "https://registry.yarnpkg.com/@polkadot/ui-settings/-/ui-settings-0.48.1.tgz#9457a3e35df9aa35d4a25dc0a4638dcdcd238b8e" - integrity sha512-pUyNaMdTR4qDdsz6/lkpXJIojdZOeMKIkPuiXz+0Dc4ucZJns1p6LY/U2dfGoWEuWCiNQ39y7d54e3RGpMmh4w== +"@polkadot/ui-settings@^0.49.0-beta.1": + version "0.49.0-beta.1" + resolved "https://registry.yarnpkg.com/@polkadot/ui-settings/-/ui-settings-0.49.0-beta.1.tgz#c26d316042216cc6438c8a71c9a7721fec0468f5" + integrity sha512-WEnh2PGhtvGd1ZTZf37ZVnFzI5ci4U5zPhLCK+XofywNHrWMgQhLi1VDcicjFQxfuWo4PU+XxeZcxYSYRzlGjw== dependencies: "@babel/runtime" "^7.8.3" "@types/store" "^2.0.2" store "^2.0.12" -"@polkadot/ui-shared@^0.48.1": - version "0.48.1" - resolved "https://registry.yarnpkg.com/@polkadot/ui-shared/-/ui-shared-0.48.1.tgz#5b2145f167883131c8c6ea9fa159ece82f0c7ec7" - integrity sha512-giXjkilv6WwrmuSh3rx1GewIsUdMA1kZVCQnJ+vqN2sMSC15ss/IL5xiq6gB2ZYJaGeIJPOzPS/ZG8vZNNyDsA== +"@polkadot/ui-shared@^0.49.0-beta.1": + version "0.49.0-beta.1" + resolved "https://registry.yarnpkg.com/@polkadot/ui-shared/-/ui-shared-0.49.0-beta.1.tgz#74a9708e440e1eb25dc47295a3483676d1c39b85" + integrity sha512-yAMV39uUhA0jp+tIeLsGCDqg7C/Ei9kO2pmbiqaDdcmnsW0Wl+KJj6HVoEU1fHZ9Z8O/1i4kkvWMoI9/FkSiCQ== dependencies: "@babel/runtime" "^7.8.3" "@types/color" "^3.0.1" color "^3.1.2" -"@polkadot/util-crypto@^2.0.1": - version "2.0.1" - resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-2.0.1.tgz#abfe4c229bb52b56b7ebab9256d366c65a3eca63" - integrity sha512-/PJXSVggnO6OHE6U3ji5u8Gal1HW0hDUWm85Wxw7ZQY1AnXwrnklrbTM2a+2myShxRe3HJ4A4pcYsaZPELxj4Q== +"@polkadot/util-crypto@^2.1.1": + version "2.1.1" + resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-2.1.1.tgz#12eda3ceb6dc6301a0e6e0eebdb6e111285c269b" + integrity sha512-RelZiT4DsKvPa44iNuSdVL2fYo+MRCwUwsy0F+boQzCRYMLlNAOabFZiuhZFjRbDMpmFtFTelALYBMC3PKcRFQ== dependencies: "@babel/runtime" "^7.8.3" - "@polkadot/util" "^2.0.1" + "@polkadot/util" "^2.1.1" "@polkadot/wasm-crypto" "^0.20.1" "@types/bs58" "^4.0.0" "@types/elliptic" "^6.4.12" @@ -2502,10 +2502,10 @@ tweetnacl "^1.0.2" xxhashjs "^0.2.2" -"@polkadot/util@^2.0.1": - version "2.0.1" - resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-2.0.1.tgz#6004da88c7430992285a44cff1062e0bba963605" - integrity sha512-BjUVLpJ1UtuKpcW2V5NEm5739mmTVO7imQvf87HIpmsR37vC1aWcR6JSwn4O6VBEkCOaxjsVmyOVdzfsbYp4Ew== +"@polkadot/util@^2.1.1": + version "2.1.1" + resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-2.1.1.tgz#bf011ac565a33e719eeffe690b57efac71f99be1" + integrity sha512-YpEuOf75i9rV565j0SW1tsjlfqrKN+86KuV5Dc/GfilrNUqmSLjQWzEC+KgIBghwJTDYeDFVAMLfhlzhvw6I1g== dependencies: "@babel/runtime" "^7.8.3" "@types/bn.js" "^4.11.6"