Pull in new API (Option<Type> for storage) (#730)

* Pull in new API (Option<Type> for storage)

* staking_nominating is Option

* WIP

* Seems working, however democracy, not happy

* Bump API, Option storage fix

* Pull latest API

* Api version display
This commit is contained in:
Jaco Greeff 2019-02-20 08:45:42 +01:00 committed by GitHub
parent 0adfcef046
commit 4889fb7147
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
26 changed files with 181 additions and 161 deletions

View File

@ -6,7 +6,7 @@ import { I18nProps } from '@polkadot/ui-app/types';
import BN from 'bn.js';
import React from 'react';
import { AccountId, Balance, Proposal, Tuple, Vector } from '@polkadot/types';
import { AccountId, Balance, Option, Proposal, Tuple, Vector } from '@polkadot/types';
import { AddressMini, Labelled, Static } from '@polkadot/ui-app/index';
import { withCall, withMulti } from '@polkadot/ui-api/index';
import { formatBalance } from '@polkadot/ui-util';
@ -15,7 +15,7 @@ import Item from './Item';
import translate from './translate';
type Props = I18nProps & {
democracy_depositOf?: Tuple,
democracy_depositOf?: Option<Tuple>,
idNumber: BN,
value: Tuple
};
@ -36,21 +36,22 @@ class ProposalDisplay extends React.PureComponent<Props> {
private renderExtra () {
const { democracy_depositOf, t } = this.props;
if (!democracy_depositOf) {
if (!democracy_depositOf || democracy_depositOf.isNone) {
return null;
}
const balance = democracy_depositOf[0] as Balance;
const addresses = democracy_depositOf[1] as Vector<AccountId>;
const value = democracy_depositOf.unwrap();
const balance = value[0] as Balance;
const addresses = value[1] as Vector<AccountId>;
return (
<div className='democracy--Proposal-info'>
<Labelled label={t('depositors')}>
<div>
{addresses.map((address) => (
{addresses.map((address, index) => (
<AddressMini
isPadded={false}
key={address.toString()}
key={`${index}:${address}`}
value={address}
/>
))}

View File

@ -8,7 +8,7 @@ import { RawParam } from '@polkadot/ui-params/types';
import BN from 'bn.js';
import React from 'react';
import { ReferendumInfo } from '@polkadot/types';
import { ReferendumInfoExtended } from '@polkadot/api-derive/democracy/referendumInfo';
import { Chart, Static } from '@polkadot/ui-app/index';
import VoteThreshold from '@polkadot/ui-params/Param/VoteThreshold';
import { withCalls } from '@polkadot/ui-api/index';
@ -30,8 +30,7 @@ type Props = I18nProps & {
chain_bestNumber?: BN,
democracy_referendumVotesFor?: Array<DerivedReferendumVote>,
democracy_publicDelay?: BN,
idNumber: BN | number,
value: ReferendumInfo
value: ReferendumInfoExtended
};
type State = {
@ -88,7 +87,7 @@ class Referendum extends React.PureComponent<Props, State> {
}
render () {
const { chain_bestNumber, idNumber, value } = this.props;
const { chain_bestNumber, value } = this.props;
if (!chain_bestNumber || value.end.sub(chain_bestNumber).lten(0)) {
return null;
@ -96,11 +95,11 @@ class Referendum extends React.PureComponent<Props, State> {
return (
<Item
idNumber={idNumber}
idNumber={value.index}
proposal={value.proposal}
proposalExtra={this.renderExtra()}
>
<Voting referendumId={idNumber} />
<Voting referendumId={value.index} />
{this.renderResults()}
</Item>
);

View File

@ -6,7 +6,8 @@ import { I18nProps } from '@polkadot/ui-app/types';
import BN from 'bn.js';
import React from 'react';
import { ReferendumInfo } from '@polkadot/types';
import { ReferendumInfoExtended } from '@polkadot/api-derive/democracy/referendumInfo';
import { Option } from '@polkadot/types';
import { withCalls } from '@polkadot/ui-api/index';
import Referendum from './Referendum';
@ -15,7 +16,7 @@ import translate from './translate';
type Props = I18nProps & {
democracy_nextTally?: BN,
democracy_referendumCount?: BN,
democracy_referendums?: Array<ReferendumInfo>
democracy_referendums?: Array<Option<ReferendumInfoExtended>>
};
class Referendums extends React.PureComponent<Props> {
@ -42,15 +43,15 @@ class Referendums extends React.PureComponent<Props> {
);
}
const startIndex = referendumCount - democracy_referendums.length;
return democracy_referendums.map((referendum, index) => (
<Referendum
idNumber={index + startIndex}
key={index}
value={referendum}
/>
));
return democracy_referendums
.filter((opt) => opt.isSome)
.map((opt) => opt.unwrap())
.map((referendum) => (
<Referendum
key={referendum.index.toString()}
value={referendum}
/>
));
}
}

View File

@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { MethodFunction } from '@polkadot/types/Method';
import { MethodFunction } from '@polkadot/types/primitive/Method';
import { BareProps } from '@polkadot/ui-app/types';
import { ApiProps } from '@polkadot/ui-api/types';
import { RawParam } from '@polkadot/ui-params/types';

View File

@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { MethodFunction } from '@polkadot/types/Method';
import { MethodFunction } from '@polkadot/types/primitive/Method';
import { I18nProps } from '@polkadot/ui-app/types';
import { RawParam$OnChange } from '@polkadot/ui-params/types';

View File

@ -9,7 +9,7 @@ import { QueueTx$ExtrinsicAdd } from '@polkadot/ui-app/Status/types';
import { ApiProps } from '@polkadot/ui-api/types';
import React from 'react';
import { AccountId, Balance, ValidatorPrefs } from '@polkadot/types';
import { AccountId, Balance, Option, ValidatorPrefs } from '@polkadot/types';
import { AddressMini, AddressSummary, Button } from '@polkadot/ui-app/index';
import { withCalls } from '@polkadot/ui-api/index';
@ -23,7 +23,7 @@ type Props = ApiProps & I18nProps & {
balances: DerivedBalancesMap,
balanceArray: (_address: AccountId | string) => Array<Balance> | undefined,
name: string,
staking_nominating?: AccountId,
staking_nominating?: Option<AccountId>,
staking_nominatorsFor?: Array<string>,
staking_validatorPreferences?: ValidatorPrefs,
intentions: Array<string>,
@ -79,14 +79,16 @@ class Account extends React.PureComponent<Props, State> {
const { staking_nominating, balanceArray } = this.props;
const { isNominating } = this.state;
if (!isNominating || !staking_nominating) {
if (!isNominating || !staking_nominating || staking_nominating.isNone) {
return null;
}
const nominating = staking_nominating.unwrap();
return (
<AddressMini
balance={balanceArray(staking_nominating)}
value={staking_nominating}
balance={balanceArray(nominating)}
value={nominating}
withBalance
/>
);

View File

@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { StorageFunction } from '@polkadot/types/StorageKey';
import { StorageFunction } from '@polkadot/types/primitive/StorageKey';
import { I18nProps } from '@polkadot/ui-app/types';
import { QueryTypes, StorageModuleQuery } from './types';
@ -103,6 +103,13 @@ class Query extends React.PureComponent<Props, State> {
const { value } = this.props;
const { Component } = this.state;
const { key } = value;
const type = isU8a(key)
? 'Data'
: (
key.meta.modifier.isOptional
? `Option<${key.meta.type}>`
: key.meta.type.toString()
);
return (
<div className='storage--Query storage--actionrow'>
@ -110,11 +117,7 @@ class Query extends React.PureComponent<Props, State> {
<Labelled
label={
<div className='ui--Param-text'>
{this.keyToName(key)}: {
isU8a(key)
? 'Data'
: key.meta.type.toString()
}
{this.keyToName(key)}: {type}
</div>
}
>

View File

@ -3,7 +3,7 @@
// of the Apache-2.0 license. See the LICENSE file for details.
import { TypeDef, getTypeDef } from '@polkadot/types';
import { StorageFunction } from '@polkadot/types/StorageKey';
import { StorageFunction } from '@polkadot/types/primitive/StorageKey';
import { I18nProps } from '@polkadot/ui-app/types';
import { RawParams } from '@polkadot/ui-params/types';
import { ApiProps } from '@polkadot/ui-api/types';

View File

@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { StorageFunction } from '@polkadot/types/StorageKey';
import { StorageFunction } from '@polkadot/types/primitive/StorageKey';
import { RawParams } from '@polkadot/ui-params/types';
type IdQuery = {

View File

@ -14,7 +14,7 @@
"dependencies": {
"@babel/runtime": "^7.2.0",
"@polkadot/ui-app": "^0.23.36",
"@polkadot/ui-assets": "^0.26.7",
"@polkadot/ui-assets": "^0.26.9",
"@polkadot/ui-signer": "^0.23.36"
}
}

View File

@ -29,6 +29,9 @@ class NodeInfo extends React.PureComponent<Props> {
}
render () {
const { api } = this.props;
const uiInfo = `@polkadot/apps v${pkgJson.version}`;
return (
<div className='apps--NodeInfo'>
<div className='apps--NodeInfo-inline'>
@ -39,7 +42,9 @@ class NodeInfo extends React.PureComponent<Props> {
<NodeName />&nbsp;
<NodeVersion label='v' />
</div>
<div>polkadot-js-ui&nbsp;v{pkgJson.version}</div>
<div className='spacer' />
<div>{api.libraryInfo}</div>
<div>{uiInfo}</div>
</div>
);
}

View File

@ -33,6 +33,10 @@
> div {
margin-bottom: -0.125em;
&.spacer {
margin-bottom: 0.5rem;
}
}
div.rx--updated {

View File

@ -31,8 +31,8 @@
"homepage": "https://github.com/polkadot-js/ui/tree/master/packages/ui-reactive#readme",
"dependencies": {
"@babel/runtime": "^7.2.0",
"@polkadot/api": "^0.43.15",
"@polkadot/ui-util": "^0.26.7",
"@polkadot/api": "^0.45.8",
"@polkadot/ui-util": "^0.26.9",
"rxjs-compat": "^6.3.2"
}
}

View File

@ -11,16 +11,12 @@
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.2.0",
"@polkadot/keyring": "^0.34.20",
"@polkadot/types": "^0.43.15",
"@polkadot/ui-api": "^0.23.36",
"@polkadot/ui-identicon": "^0.26.7",
"@polkadot/ui-keyring": "^0.26.7",
"@polkadot/ui-identicon": "^0.26.9",
"@polkadot/ui-keyring": "^0.26.9",
"@polkadot/ui-reactive": "^0.23.36",
"@polkadot/ui-settings": "^0.26.7",
"@polkadot/ui-util": "^0.26.7",
"@polkadot/util": "^0.34.20",
"@polkadot/util-crypto": "^0.34.20",
"@polkadot/ui-settings": "^0.26.9",
"@polkadot/ui-util": "^0.26.9",
"@types/chart.js": "^2.7.45",
"@types/i18next": "^12.1.0",
"@types/i18next-browser-languagedetector": "^2.0.2",

View File

@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { MethodFunction } from '@polkadot/types/Method';
import { MethodFunction } from '@polkadot/types/primitive/Method';
import { BareProps } from '../types';
import { DropdownOptions } from '../util/types';

View File

@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { MethodFunction } from '@polkadot/types/Method';
import { MethodFunction } from '@polkadot/types/primitive/Method';
import { BareProps } from '../types';
import { DropdownOptions } from '../util/types';

View File

@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { MethodFunction } from '@polkadot/types/Method';
import { MethodFunction } from '@polkadot/types/primitive/Method';
import { ApiProps } from '@polkadot/ui-api/types';
import { I18nProps } from '../types';
import { DropdownOptions } from '../util/types';

View File

@ -54,7 +54,7 @@ class InputNumber extends React.PureComponent<Props, State> {
const { defaultValue, value } = this.props;
let valueBN = new BN(value || 0);
const si = formatBalance.calcSi(valueBN.toString(), formatBalance.getDefaults().decimals);
const si = formatBalance.calcSi(valueBN.toString());
valueBN = valueBN.div(new BN(10).pow(new BN(si.power)));

View File

@ -7,7 +7,7 @@ import { DropdownOptions } from '../util/types';
import { BareProps } from '../types';
import React from 'react';
import { StorageFunction } from '@polkadot/types/StorageKey';
import { StorageFunction } from '@polkadot/types/primitive/StorageKey';
import { withApi } from '@polkadot/ui-api/index';
import Dropdown from '../Dropdown';

View File

@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { StorageFunction } from '@polkadot/types/StorageKey';
import { StorageFunction } from '@polkadot/types/primitive/StorageKey';
import { DropdownOptions } from '../util/types';
import { BareProps } from '../types';

View File

@ -4,7 +4,7 @@
// TODO: We have a lot shared between this and InputExtrinsic
import { StorageFunction } from '@polkadot/types/StorageKey';
import { StorageFunction } from '@polkadot/types/primitive/StorageKey';
import { ApiProps } from '@polkadot/ui-api/types';
import { DropdownOptions } from '../util/types';
import { I18nProps } from '../types';

View File

@ -32,7 +32,11 @@ export default function createOptions (api: ApiPromise, sectionName: string): Dr
className='ui--DropdownLinked-Item-call'
key={`${sectionName}_${value}:call`}
>
{value}({input}): {type.toString()}
{value}({input}): {
method.meta.modifier.isOptional
? `Option<${type}>`
: type.toString()
}
</div>,
<div
className='ui--DropdownLinked-Item-text'

View File

@ -26,6 +26,7 @@ export default function getInitValue (def: TypeDef): RawParam$Value | Array<RawP
switch (type) {
case 'AccountIndex':
case 'Balance':
case 'BalanceOf':
case 'BlockNumber':
case 'Compact':
case 'Gas':
@ -64,6 +65,7 @@ export default function getInitValue (def: TypeDef): RawParam$Value | Array<RawP
return new Hash();
case 'AccountId':
case 'AccountIdOf':
case 'Address':
case 'Bytes':
case 'Call':

View File

@ -7,7 +7,7 @@ import './Params.css';
import React from 'react';
import { classes } from '@polkadot/ui-app/util';
import { isNull, isUndefined, u8aToHex } from '@polkadot/util';
import { U8a } from '@polkadot/types';
import { Option, U8a } from '@polkadot/types';
// import IdentityIcon from '@polkadot/ui-react/IdentityIcon';
// import formatNumber from '@polkadot/ui-util/formatNumber';
@ -165,7 +165,11 @@ function valueToText (type: string, value: any, swallowError: boolean = true, co
? '<empty>'
: value.toString()
)
: value.toString()
: (
(value instanceof Option) && value.isNone
? '<empty>'
: value.toString()
)
)
);
}

View File

@ -31,7 +31,6 @@
"homepage": "https://github.com/polkadot-js/ui/tree/master/packages/ui-reactive#readme",
"dependencies": {
"@babel/runtime": "^7.2.0",
"@polkadot/api": "^0.43.15",
"rxjs-compat": "^6.3.2"
}
}

198
yarn.lock
View File

@ -1462,30 +1462,30 @@
universal-user-agent "^2.0.0"
url-template "^2.0.8"
"@polkadot/api-derive@^0.43.15":
version "0.43.15"
resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-0.43.15.tgz#16f21a1822d9d6ad7c6fa87d1df5747c96befc71"
integrity sha512-dLJzPqhoFRiUkm7nbZBq48cLrlK3QxWzgNoVmr6Ai8ds63qsdm2ioCNmTBKHqHjz/Y687emclbuL3i8t1a06wA==
"@polkadot/api-derive@^0.45.8":
version "0.45.8"
resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-0.45.8.tgz#65bdbe47f478cf483c57d16cd7aa1044849c11cc"
integrity sha512-m9SOqDvhelQr87otPhguaPupAxeWUrzERbuKKo+2TTp5yy7gumKyGK9cS7Be6Ua5INmhzzOCMSE0LQM4SUgHdA==
dependencies:
"@babel/runtime" "^7.3.1"
"@polkadot/api" "^0.43.15"
"@polkadot/types" "^0.43.15"
"@polkadot/api" "^0.45.8"
"@polkadot/types" "^0.45.8"
"@types/memoizee" "^0.4.2"
memoizee "^0.4.14"
"@polkadot/api@^0.43.15":
version "0.43.15"
resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-0.43.15.tgz#18849c74803a8c06b4baea58292b39ff77f67ed1"
integrity sha512-HJY7p6M27KLFfGxaGO+dOQu19K5D8s4rDEo2DEgTT7Qb56nRwfZrxVr/KrA+0qlac4QxAUx/Q1FT3hOlLB18gg==
"@polkadot/api@^0.45.8":
version "0.45.8"
resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-0.45.8.tgz#4e76ba95f06f98468409397ae55d2fd4e722eff5"
integrity sha512-FOEN8Mb/A8bZtAmrS2TsDjtYMAuCA+RooNksNluNKdAlkz602xFegBiRua3eYTtT927dMUYnksFhTdZ8ULPS/Q==
dependencies:
"@babel/runtime" "^7.3.1"
"@polkadot/api-derive" "^0.43.15"
"@polkadot/extrinsics" "^0.43.15"
"@polkadot/rpc-provider" "^0.43.15"
"@polkadot/rpc-rx" "^0.43.15"
"@polkadot/storage" "^0.43.15"
"@polkadot/types" "^0.43.15"
"@polkadot/util-crypto" "^0.34.20"
"@polkadot/api-derive" "^0.45.8"
"@polkadot/extrinsics" "^0.45.8"
"@polkadot/rpc-provider" "^0.45.8"
"@polkadot/rpc-rx" "^0.45.8"
"@polkadot/storage" "^0.45.8"
"@polkadot/types" "^0.45.8"
"@polkadot/util-crypto" "^0.34.21"
"@polkadot/dev-react@^0.24.2":
version "0.24.2"
@ -1563,67 +1563,67 @@
typedoc-plugin-no-inherit "^1.1.6"
typescript "^3.3.3"
"@polkadot/extrinsics@^0.43.15":
version "0.43.15"
resolved "https://registry.yarnpkg.com/@polkadot/extrinsics/-/extrinsics-0.43.15.tgz#b7cdf3a618538d4a8cadd72426e236d16664ef0a"
integrity sha512-pw7Q2JB2CoHdO/dVa8P10KdGQg1sn3B6hkUu82+lz/j28BB8wm9b798ZPOKfEskHirVvBFEuYyA2nq51/hlifA==
"@polkadot/extrinsics@^0.45.8":
version "0.45.8"
resolved "https://registry.yarnpkg.com/@polkadot/extrinsics/-/extrinsics-0.45.8.tgz#c87112aab492bb2872742984981975c9c068beab"
integrity sha512-x8lhwpGuFCLuv+QWZ8j9ed5kN2ksvGeMdd5dLW3IcXUITdiP75k5ndROAAY4o7TkXjrH6OY1a84k0jguluXECQ==
dependencies:
"@babel/runtime" "^7.3.1"
"@polkadot/types" "^0.43.15"
"@polkadot/util" "^0.34.20"
"@polkadot/types" "^0.45.8"
"@polkadot/util" "^0.34.21"
"@polkadot/jsonrpc@^0.43.15":
version "0.43.15"
resolved "https://registry.yarnpkg.com/@polkadot/jsonrpc/-/jsonrpc-0.43.15.tgz#96f800321d91bd2ff48b945667c9b3e93dc4bc80"
integrity sha512-Vpayyg84oMsCFpOr8Smy/v+JWqcYQAa8uC+eLeelgNv0PZG2ENxPAxL0rg6FyO89K4IisgnPgqj8gLqD1BL/kA==
"@polkadot/jsonrpc@^0.45.8":
version "0.45.8"
resolved "https://registry.yarnpkg.com/@polkadot/jsonrpc/-/jsonrpc-0.45.8.tgz#18cb0eb19180bc4d72c13e089f92a63405350759"
integrity sha512-dqQIKVMiPadNs3kOgWA0VmgVUVZ2VkmhHqMNDf52C5C0Bwow9DEgAdWOulas8tod0MvPjEB2ascDoxiZjtGBCA==
dependencies:
"@babel/runtime" "^7.3.1"
"@polkadot/keyring@^0.34.20":
version "0.34.20"
resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-0.34.20.tgz#b6a9a36620b6ce668f568053870e7942175e551b"
integrity sha512-ZFhgPr2F+WqLuP3jfiReqSHaxYrxfS+tBtdsy4CdmShtRXZ115aoVhTaSXiCnNysdgZQryW6HJBlxGDgU7mSvg==
"@polkadot/keyring@^0.34.21":
version "0.34.21"
resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-0.34.21.tgz#1fa44bc90029443db960fc0edbf7a5fb251e2de0"
integrity sha512-9yIxAn51DY1/ZE6dH920MnQIzRlR+s3QKKk3rICChnzJBJFki0yfmvTZ/3Wi/p+bK7WjFMrzm03ZtAQBzOgUsQ==
dependencies:
"@babel/runtime" "^7.3.1"
"@polkadot/util" "^0.34.20"
"@polkadot/util-crypto" "^0.34.20"
"@polkadot/util" "^0.34.21"
"@polkadot/util-crypto" "^0.34.21"
"@types/bs58" "^4.0.0"
bs58 "^4.0.1"
"@polkadot/rpc-core@^0.43.15":
version "0.43.15"
resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-0.43.15.tgz#1aaddc887dcc8359420d649494b4586c2c46eae2"
integrity sha512-QDhLWfvdd/b4iM+XPL2u0flJefv7XrO3ApYpTJ9cXsDKKyH1/Dj2hSVyZUtviEkop4HtYU/nGCf4087ANVa+Yg==
"@polkadot/rpc-core@^0.45.8":
version "0.45.8"
resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-0.45.8.tgz#010eb2b829fac28e22907bf628437747fdae9e6b"
integrity sha512-jhMRLAT+BPmZIXRgVCQn8CQPxTHSHHGvWoxuyzrXQbshEO0rq+sDnQvXE8F5vmBIxd7W8c4m5ajO4jTf7/ojvg==
dependencies:
"@babel/runtime" "^7.3.1"
"@polkadot/jsonrpc" "^0.43.15"
"@polkadot/rpc-provider" "^0.43.15"
"@polkadot/types" "^0.43.15"
"@polkadot/util" "^0.34.20"
"@polkadot/jsonrpc" "^0.45.8"
"@polkadot/rpc-provider" "^0.45.8"
"@polkadot/types" "^0.45.8"
"@polkadot/util" "^0.34.21"
"@polkadot/rpc-provider@^0.43.15":
version "0.43.15"
resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-0.43.15.tgz#69b4d5df859ab39f93e7da132e82960c87eb68d4"
integrity sha512-rSUSKXbZITvqQWtgKDVU5SeIwg3bP6oQXCW/Xs1AzwsipKlJd8LBN/ZSBC+wsai+r+w7J7W5sNXxSwbLJ0qSdw==
"@polkadot/rpc-provider@^0.45.8":
version "0.45.8"
resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-0.45.8.tgz#0ea2297f210a82c0d713ec68b44a15be2f69ae66"
integrity sha512-riZdSm6tcsHCUMe2HR2f8MYMe7kWNS3vu8W/5OtDVsDH0Y0E8mR7kVJjl14yhM/4eIcmiL1a71XoSwA4vnPCnA==
dependencies:
"@babel/runtime" "^7.3.1"
"@polkadot/keyring" "^0.34.20"
"@polkadot/storage" "^0.43.15"
"@polkadot/util" "^0.34.20"
"@polkadot/util-crypto" "^0.34.20"
"@polkadot/keyring" "^0.34.21"
"@polkadot/storage" "^0.45.8"
"@polkadot/util" "^0.34.21"
"@polkadot/util-crypto" "^0.34.21"
"@types/nock" "^9.3.1"
eventemitter3 "^3.1.0"
isomorphic-fetch "^2.2.1"
websocket "^1.0.28"
"@polkadot/rpc-rx@^0.43.15":
version "0.43.15"
resolved "https://registry.yarnpkg.com/@polkadot/rpc-rx/-/rpc-rx-0.43.15.tgz#75dbbb78a92b610e6b080065c0bd9596b3c4b967"
integrity sha512-oEZ/+3LTUjVc19qX6dAxHJ2nCYGqUh7GTJT1WV/aByfWYFRu8EaQ3KnB38xdoAjAgoXv3EjU42pWtLaggKU7SQ==
"@polkadot/rpc-rx@^0.45.8":
version "0.45.8"
resolved "https://registry.yarnpkg.com/@polkadot/rpc-rx/-/rpc-rx-0.45.8.tgz#32b879767b5438eb76bd8bd4d8dcb1250dc988c7"
integrity sha512-MVMtZBJTCLNl85aSnlGbDY0gZ1eNJfhAvHZGoXBhmfKIfAwD4itDkznb2/6fEuBLV2ElUHvaz58G60wnFu6D5Q==
dependencies:
"@babel/runtime" "^7.3.1"
"@polkadot/rpc-core" "^0.43.15"
"@polkadot/rpc-provider" "^0.43.15"
"@polkadot/rpc-core" "^0.45.8"
"@polkadot/rpc-provider" "^0.45.8"
"@types/memoizee" "^0.4.2"
"@types/rx" "^4.1.1"
memoizee "^0.4.14"
@ -1634,85 +1634,85 @@
resolved "https://registry.yarnpkg.com/@polkadot/schnorrkel-js/-/schnorrkel-js-0.1.2-1.tgz#90e4e8bca54157513cf5192f4581491bcbf5c44e"
integrity sha512-Y6cJWOOJyQ6TPzWzfgPrZlWzcR89X2tOgLIrCXOyEE72+CFiBfyAQDqG2jBzxolEqqN/Fz0AUdxqPT45BzionQ==
"@polkadot/storage@^0.43.15":
version "0.43.15"
resolved "https://registry.yarnpkg.com/@polkadot/storage/-/storage-0.43.15.tgz#71e33671a3a9f5420b37697efd7abc9ea6aa8d49"
integrity sha512-D3NAKV32folkvtyBMUbesSMlkXcXDFyMDgR600w5Kcr0RsOsd2dJq9h3mzYyBF7DfeAUnrIP02VgSt5G7u3+mQ==
"@polkadot/storage@^0.45.8":
version "0.45.8"
resolved "https://registry.yarnpkg.com/@polkadot/storage/-/storage-0.45.8.tgz#ee9539e73cfa50591b9c55b069b2869b0d0cf562"
integrity sha512-hSOULuiCSEsrXCIf9x5BgIGdfko6VviCPTpmuEFhRdgDWmNwMYPFm2NwrFk8twm8CXUjqHQrr2urI8AIsK8pmQ==
dependencies:
"@babel/runtime" "^7.3.1"
"@polkadot/keyring" "^0.34.20"
"@polkadot/types" "^0.43.15"
"@polkadot/util" "^0.34.20"
"@polkadot/util-crypto" "^0.34.20"
"@polkadot/keyring" "^0.34.21"
"@polkadot/types" "^0.45.8"
"@polkadot/util" "^0.34.21"
"@polkadot/util-crypto" "^0.34.21"
"@polkadot/ts@^0.1.52":
version "0.1.52"
resolved "https://registry.yarnpkg.com/@polkadot/ts/-/ts-0.1.52.tgz#6fb09e494d244dad4b3a9ca581bfe13beec66565"
integrity sha512-sij1O0x4CY51A394RYD4/aQwDPwIxIeTOpYI4AZgdF/vq5nvF14b4XFq9vAcSnblaIosf0sYKoz1f3dkN3QqLw==
"@polkadot/types@^0.43.15":
version "0.43.15"
resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-0.43.15.tgz#5d69e741167b185eb34ca3fc3153fb1b539dc64d"
integrity sha512-/TtRdTSxXnmJDkfJcBWs78c5CLd4FZ8C0H0CFaolX0HylDu9NJP49BRD3Ol7dLGWheWym2jY/PpCo7WS/rRCgQ==
"@polkadot/types@^0.45.8":
version "0.45.8"
resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-0.45.8.tgz#a1abe64ccfce503b6da8b1136ce484692df260be"
integrity sha512-xmpK+rsz8Y5kUI1p8nPc8tB1RLj1dU2+vyvu+448nHMtd02Lukjjukl6aqqaMKdL5th2eYSJfexGSzlyTTNBNg==
dependencies:
"@babel/runtime" "^7.3.1"
"@polkadot/keyring" "^0.34.20"
"@polkadot/util" "^0.34.20"
"@polkadot/keyring" "^0.34.21"
"@polkadot/util" "^0.34.21"
core-js "^2.6.5"
"@polkadot/ui-assets@^0.26.7":
version "0.26.7"
resolved "https://registry.yarnpkg.com/@polkadot/ui-assets/-/ui-assets-0.26.7.tgz#1271011c48e330110314025a99e52405f9818aec"
integrity sha512-TJr2KHlEKuwAzwCZO9c3ws3SHofr2VQFMC/xeTobJ1nGgzn68jD+EhbAQoeYopBjtIY4vaMOs1TBhzNf1lBMpg==
"@polkadot/ui-assets@^0.26.9":
version "0.26.9"
resolved "https://registry.yarnpkg.com/@polkadot/ui-assets/-/ui-assets-0.26.9.tgz#25990dc9de13520d4e77e9073cc5d2554c2eee38"
integrity sha512-NFwkwr344KDUGZtjrm96upKweat3qwP6SvyFYisUwknSv6u6zFWoVprCgrf6xv7JyyDXahkwOgdjED6Sw1NwFg==
dependencies:
"@babel/runtime" "^7.3.1"
"@polkadot/ui-identicon@^0.26.7":
version "0.26.7"
resolved "https://registry.yarnpkg.com/@polkadot/ui-identicon/-/ui-identicon-0.26.7.tgz#088df1d3175758f7799e47fc4f9da9a7521b139c"
integrity sha512-P5tGqtILxrq4jjwZue+cQNNmCQvH+psjFMuAda29KzqFDdyVvQ2iq19q1y/0sw0zl+sRPe3Cc97D1k2kuGQ1Vg==
"@polkadot/ui-identicon@^0.26.9":
version "0.26.9"
resolved "https://registry.yarnpkg.com/@polkadot/ui-identicon/-/ui-identicon-0.26.9.tgz#bfe97680de619c7eb416fba3374c2e2a433647b7"
integrity sha512-/uEFlnEzbnWZm/MxfhP7jYcno2VR/dczSZbXd4zj0vj0kVyejCQ20xX4drXugCiehJz++WKcujrWtgoX0fGdiQ==
dependencies:
"@babel/runtime" "^7.3.1"
"@polkadot/ui-settings" "^0.26.7"
"@polkadot/ui-settings" "^0.26.9"
"@types/color" "^3.0.0"
"@types/react-copy-to-clipboard" "^4.2.6"
color "^3.0.0"
react-copy-to-clipboard "^5.0.1"
"@polkadot/ui-keyring@^0.26.7":
version "0.26.7"
resolved "https://registry.yarnpkg.com/@polkadot/ui-keyring/-/ui-keyring-0.26.7.tgz#dc24faf6961caf0a0f9b4214b090573103f6f247"
integrity sha512-/+BBfZTV9gQ/cPzSQ5fxDOFt0jP1mNn9GzhfrUCjqCvWLblV9YXuUkWlGN7CxHenfmHjlAUvCpPdO2XHk2siiQ==
"@polkadot/ui-keyring@^0.26.9":
version "0.26.9"
resolved "https://registry.yarnpkg.com/@polkadot/ui-keyring/-/ui-keyring-0.26.9.tgz#85bab4a1806c5be2e6e96bd4f34da0e925e07a4d"
integrity sha512-P+7i3hLbQcqgyoF8lo6jlO7Qm+U51r8ObDfFqzHgGWu13267i1rhu0ISfuMNfUl0gBJxmU/ez8yJ98OnXE/cXA==
dependencies:
"@babel/runtime" "^7.3.1"
"@types/store" "^2.0.1"
rxjs "^6.4.0"
store "^2.0.12"
"@polkadot/ui-settings@^0.26.7":
version "0.26.7"
resolved "https://registry.yarnpkg.com/@polkadot/ui-settings/-/ui-settings-0.26.7.tgz#c51153d10bfd05be7703a3cb69023d2a5269933a"
integrity sha512-hkNjGO/Xob2sMFNLQIALc2oBac06Y21gFn8AFxMt5+4q5BSlozsdrzXsykMxtyJSxoolW4upf+1X0iPDb7PqyA==
"@polkadot/ui-settings@^0.26.9":
version "0.26.9"
resolved "https://registry.yarnpkg.com/@polkadot/ui-settings/-/ui-settings-0.26.9.tgz#e70ecef1fe6a785c489aea5827d45edb6a4f3ed0"
integrity sha512-jUSgjCiWyofNvqlNKwTVel2IwTeYbBsHq4rJHsJ6Bm+cfXO0hXfHsh3/BB6MprQP9VxryPAeULGYDkeyeCvltA==
dependencies:
"@babel/runtime" "^7.3.1"
"@types/store" "^2.0.1"
store "^2.0.12"
"@polkadot/ui-util@^0.26.7":
version "0.26.7"
resolved "https://registry.yarnpkg.com/@polkadot/ui-util/-/ui-util-0.26.7.tgz#9a25e76f11b598c4536642d81bf0a1e02163f876"
integrity sha512-YEZp7rmmXhI2q2pVH4xxw/L74I9VxA52mId4Q8c6A6ZZZK4u+xAejWnlwSami3OlnpQcO+n7NIJoI0KAhA2biw==
"@polkadot/ui-util@^0.26.9":
version "0.26.9"
resolved "https://registry.yarnpkg.com/@polkadot/ui-util/-/ui-util-0.26.9.tgz#57d7841f1b5835791ba14c3dcc87c55a6aedb8bb"
integrity sha512-PlcswwtrwSRkijrui8Zw1r3uSmwEafHp9hg9n9z8ZCR9EsMMJzYBEBMMSJheet7V4Y8o8/5xapo44j3TsFuP7Q==
dependencies:
"@babel/runtime" "^7.3.1"
"@polkadot/util-crypto@^0.34.20":
version "0.34.20"
resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-0.34.20.tgz#4b4776833b5a6a2ce4c1307be29694c3d47e24ea"
integrity sha512-FXQqI67vhmu6+ZJBQm5aMttW3AopZyT+xgOGYpCZzuYOj1ODHEvrCrLxjRsgiYQw1tr92OTjbKeN0MRGaG6QGA==
"@polkadot/util-crypto@^0.34.21":
version "0.34.21"
resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-0.34.21.tgz#b84cd47a03522f4dfaacca3e465771fcab4b283f"
integrity sha512-nDNQEbbCr9u6SfF1/Ts+EKUO4Nl70NqeLTirQagmiU58ju7rPX18vw3nCbA8/35LCCj8gliwkkFXrLtINQmRPg==
dependencies:
"@babel/runtime" "^7.3.1"
"@polkadot/schnorrkel-js" "^0.1.2-1"
"@polkadot/util" "^0.34.20"
"@polkadot/util" "^0.34.21"
"@types/bip39" "^2.4.2"
"@types/webassembly-js-api" "^0.0.2"
"@types/xxhashjs" "^0.2.0"
@ -1722,10 +1722,10 @@
tweetnacl "^1.0.1"
xxhashjs "^0.2.2"
"@polkadot/util@^0.34.20":
version "0.34.20"
resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.34.20.tgz#3ebc10c8989c488220bece1b01028f740c5df5a7"
integrity sha512-MbMQw3qG9rfUpcCmcCEB1ZWqeXUocSnDng1CDF6n7jdqpt+KsTG4LghWXjdnvEIdKZMamfNaE4r8TZ+2iEQfJA==
"@polkadot/util@^0.34.21":
version "0.34.21"
resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.34.21.tgz#5cf793435b4db933deeda7aa6b4a7668e0652c34"
integrity sha512-tzSiEIdwht6cXZAw0cYtKJCeItV5THX0q6RfWItmEy/kYuPGrxBeEYY4HQHJqifok4rBay6E912zcelxXvmJ1w==
dependencies:
"@babel/runtime" "^7.3.1"
"@types/bn.js" "^4.11.4"