More informative staking page (buttons based on actions) (#855)

* WIP

* Render nominees

* Staking statics & buttons
This commit is contained in:
Jaco Greeff 2019-03-27 18:26:35 +01:00 committed by GitHub
parent 50ff4afb5c
commit 9bd7392d73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 212 additions and 162 deletions

View File

@ -10,9 +10,9 @@
"packages/*"
],
"resolutions": {
"@polkadot/api": "^0.52.0-beta.1",
"@polkadot/api": "^0.52.0-beta.3",
"@polkadot/keyring": "^0.42.0-beta.1",
"@polkadot/types": "^0.52.0-beta.1",
"@polkadot/types": "^0.52.0-beta.3",
"@polkadot/util": "^0.42.0-beta.1",
"@polkadot/util-crypto": "^0.42.0-beta.1",
"babel-core": "^7.0.0-bridge.0",

View File

@ -15,8 +15,7 @@ type Props = I18nProps & {
isOpen: boolean,
onClose: () => void,
intentions: Array<string>,
stashId: string,
validators: Array<string>
stashId: string
};
type State = {
@ -141,7 +140,7 @@ class Nominating extends React.PureComponent<Props, State> {
}
private onChangeNominee = (nominee: string) => {
const { intentions, validators } = this.props;
// const { intentions } = this.props;
let isAddressFormatValid = false;
@ -154,7 +153,7 @@ class Nominating extends React.PureComponent<Props, State> {
}
this.setState({
isNomineeValid: validators.includes(nominee) || intentions.includes(nominee),
isNomineeValid: isAddressFormatValid, // intentions.includes(nominee),
isAddressFormatValid,
nominees: [nominee]
});

View File

@ -25,7 +25,10 @@ type State = {
};
class Staking extends React.PureComponent<Props, State> {
state: State = {};
state: State = {
unstakeThreshold: new BN(3),
validatorPayment: new BN(0)
};
// inject the preferences are returned via RPC once into the state (from this
// point forward it will be entirely managed by the actual inputs)
@ -34,6 +37,8 @@ class Staking extends React.PureComponent<Props, State> {
return null;
}
console.error('preferences', props.preferences);
const { unstakeThreshold, validatorPayment } = props.preferences;
return {

View File

@ -5,9 +5,10 @@
import { DerivedBalancesMap } from '@polkadot/api-derive/types';
import { I18nProps } from '@polkadot/ui-app/types';
import { ApiProps } from '@polkadot/ui-api/types';
import { Nominators } from '../types';
import React from 'react';
import { AccountId, Balance, Option, StakingLedger, ValidatorPrefs } from '@polkadot/types';
import { AccountId, Balance, Exposure, Option, StakingLedger, ValidatorPrefs } from '@polkadot/types';
import { AddressMini, AddressSummary, Button, TxButton } from '@polkadot/ui-app';
import { withCalls } from '@polkadot/ui-api';
@ -25,15 +26,16 @@ type Props = ApiProps & I18nProps & {
session_nextKeyFor?: Option<AccountId>,
staking_bonded?: Option<AccountId>,
staking_ledger?: Option<StakingLedger>,
staking_nominating?: Option<AccountId>,
staking_nominatorsFor?: Array<string>,
staking_validators?: ValidatorPrefs,
staking_stakers?: Exposure,
staking_validators?: [ValidatorPrefs],
intentions: Array<string>,
nominators: Nominators,
isValidator: boolean,
validators: Array<string>
};
type State = {
isAccountValidating: boolean,
isBondingOpen: boolean,
isNominateOpen: boolean,
isSessionKeyOpen: boolean,
@ -41,12 +43,12 @@ type State = {
isUnbondOpen: boolean,
bondedId: string | null,
sessionId: string | null,
nomineeId: string | null,
stashId: string | null
};
class Account extends React.PureComponent<Props, State> {
state: State = {
isAccountValidating: false,
isBondingOpen: false,
isSessionKeyOpen: false,
isNominateOpen: false,
@ -54,21 +56,21 @@ class Account extends React.PureComponent<Props, State> {
isUnbondOpen: false,
bondedId: null,
sessionId: null,
nomineeId: null,
stashId: null
};
static getDerivedStateFromProps ({ session_nextKeyFor, staking_bonded, staking_ledger, staking_nominating }: Props): Partial<State> {
static getDerivedStateFromProps ({ accountId, session_nextKeyFor, staking_bonded, staking_ledger, validators }: Props): Partial<State> {
// console.error('staking_stakers', JSON.stringify(staking_stakers));
return {
isAccountValidating: validators.indexOf(accountId) !== -1,
bondedId: staking_bonded && staking_bonded.isSome
? staking_bonded.unwrap().toString()
: null,
sessionId: session_nextKeyFor && session_nextKeyFor.isSome
? session_nextKeyFor.unwrap().toString()
: null,
nomineeId: staking_nominating && staking_nominating.isSome
? staking_nominating.unwrap().toString()
: null,
stashId: staking_ledger && staking_ledger.isSome
? staking_ledger.unwrap().stash.toString()
: null
@ -129,7 +131,7 @@ class Account extends React.PureComponent<Props, State> {
accountId={accountId}
isOpen
onClose={this.toggleValidating}
preferences={staking_validators}
preferences={staking_validators[0]}
stashId={stashId}
/>
);
@ -166,48 +168,58 @@ class Account extends React.PureComponent<Props, State> {
// );
// }
private renderNominee () {
const { balanceArray } = this.props;
const { nomineeId } = this.state;
private getNominees () {
const { nominators } = this.props;
const { stashId } = this.state;
if (!nomineeId) {
return stashId ? nominators[stashId] : null;
}
private renderNominee () {
const nominees = this.getNominees();
if (!nominees || !nominees.length) {
return null;
}
return (
<div className='staking--Account-detail'>
<label className='staking--label'>nominating</label>
<AddressMini
balance={balanceArray(nomineeId)}
value={nomineeId}
withBalance
/>
{
nominees.map((nomineeId, index) => (
<AddressMini
key={index}
value={nomineeId}
withBalance
/>
))
}
</div>
);
}
private renderNominators () {
const { staking_nominatorsFor } = this.props;
// const { staking_nominatorsFor } = this.props;
if (!staking_nominatorsFor) {
return null;
}
// if (!staking_nominatorsFor) {
// return null;
// }
return (
<div className='staking--Account-detail'>
<label className='staking--label'>nominators</label>
<div className='ui--Nominators'>
{staking_nominatorsFor.map((nominator) => (
<AddressMini
isPadded={false}
key={nominator}
value={nominator}
withBalance
/>
))}
</div>
</div>
);
// return (
// <div className='staking--Account-detail'>
// <label className='staking--label'>nominators</label>
// <div className='ui--Nominators'>
// {staking_nominatorsFor.map((nominator) => (
// <AddressMini
// isPadded={false}
// key={nominator}
// value={nominator}
// withBalance
// />
// ))}
// </div>
// </div>
// );
}
private renderBondedId () {
@ -247,7 +259,7 @@ class Account extends React.PureComponent<Props, State> {
}
private renderNominating () {
const { accountId, intentions, validators } = this.props;
const { accountId, intentions } = this.props;
const { isNominateOpen, stashId } = this.state;
if (!stashId) {
@ -261,14 +273,13 @@ class Account extends React.PureComponent<Props, State> {
onClose={this.toggleNominate}
intentions={intentions}
stashId={stashId}
validators={validators}
/>
);
}
private renderButtons () {
const { accountId, t } = this.props;
const { sessionId, stashId } = this.state;
const { accountId, intentions, t } = this.props;
const { isAccountValidating, sessionId, stashId } = this.state;
const buttons = [];
if (!stashId) {
@ -292,42 +303,58 @@ class Account extends React.PureComponent<Props, State> {
);
}
} else {
// buttons.push(
// <Button
// isNegative
// label={t('Unbond')}
// key='unbond'
// onClick={this.toggleUnbond}
// />
// );
// buttons.push(<Button.Or key='validate.or' />);
buttons.push(
<Button
isPrimary
key='validate'
onClick={this.toggleValidating}
label={t('Validate')}
/>
);
buttons.push(<Button.Or key='nominate.or' />);
buttons.push(
<Button
isPrimary
key='nominate'
onClick={this.toggleNominate}
label={t('Nominate')}
/>
);
buttons.push(<Button.Or key='stop.or' />);
buttons.push(
<TxButton
accountId={accountId}
isNegative
label={t('Stop')}
key='stop'
tx='staking.chill'
/>
);
if (isAccountValidating) {
buttons.push(
<TxButton
accountId={accountId}
isNegative
label={t('Stop Validation')}
key='stop'
tx='staking.chill'
/>
);
} else {
const nominees = this.getNominees();
const hasNominees = nominees && nominees.length;
const isValidating = stashId && intentions.indexOf(stashId) !== -1;
if (!hasNominees) {
buttons.push(
<Button
isPrimary
key='validate'
onClick={this.toggleValidating}
label={t('Validate')}
/>
);
}
if (!isValidating) {
if (!hasNominees) {
buttons.push(<Button.Or key='nominate.or' />);
}
buttons.push(
<Button
isPrimary
key='nominate'
onClick={this.toggleNominate}
label={t('Nominate')}
/>
);
}
buttons.push(<Button.Or key='stop.or' />);
buttons.push(
<TxButton
accountId={accountId}
isNegative
label={t('Stop')}
key='stop'
tx='staking.chill'
/>
);
}
}
return (
@ -373,8 +400,7 @@ export default translate(
['query.session.nextKeyFor', { paramName: 'accountId' }],
['query.staking.bonded', { paramName: 'accountId' }],
['query.staking.ledger', { paramName: 'accountId' }],
['query.staking.nominatorsFor', { paramName: 'accountId' }],
['query.staking.nominating', { paramName: 'accountId' }],
['query.staking.stakers', { paramName: 'accountId' }],
['query.staking.validators', { paramName: 'accountId' }]
)(Account)
);

View File

@ -54,12 +54,12 @@ class CurrentList extends React.PureComponent<Props> {
}
private renderNext () {
const { next, t } = this.props;
const { t } = this.props;
return (
<>
<h1>{t('next up')}</h1>
{this.renderColumn(next, t('intention'))}
{/*this.renderColumn(next, t('intention'))*/}
</>
);
}

View File

@ -15,7 +15,7 @@ type Props = I18nProps & ComponentProps;
class StakeList extends React.PureComponent<Props> {
render () {
const { balances, balanceArray, intentions, validators } = this.props;
const { balances, balanceArray, intentions, nominators, validators } = this.props;
return (
<div className='staking--StakeList'>
@ -32,6 +32,7 @@ class StakeList extends React.PureComponent<Props> {
isValidator={validators.includes(address)}
key={address}
name={name}
nominators={nominators}
validators={validators}
/>
);

View File

@ -2,10 +2,8 @@
/* This software may be modified and distributed under the terms
/* of the Apache-2.0 license. See the LICENSE file for details. */
.staking--App {
.rx--updated {
background: transparent !important;
}
.staking--App .rx--updated {
background: transparent !important;
}
.staking--App-navigation.ui--Button-Group {
@ -20,6 +18,10 @@
.ui--AddressMini {
display: block;
}
.ui--AddressSummary {
padding: 0;
}
}
.ui--Nominators {
@ -28,10 +30,6 @@
padding-right: 18px;
}
.staking--Account .ui--AddressSummary {
padding: 0;
}
.staking--Account-expand {
min-width: 14rem;
text-align: right;

View File

@ -5,7 +5,7 @@
import { DerivedBalancesMap } from '@polkadot/api-derive/types';
import { AppProps, I18nProps } from '@polkadot/ui-app/types';
import { ApiProps } from '@polkadot/ui-api/types';
import { ComponentProps } from './types';
import { ComponentProps, Nominators } from './types';
import React from 'react';
import { Route, Switch } from 'react-router';
@ -21,12 +21,14 @@ import translate from './translate';
type Props = AppProps & ApiProps & I18nProps & {
balances?: DerivedBalancesMap,
intentions?: Array<AccountId>,
session_validators?: Array<AccountId>
session_validators?: Array<AccountId>,
staking_validators?: [Array<AccountId>, Array<AccountId>],
staking_nominators?: [Array<AccountId>, Array<Array<AccountId>>]
};
type State = {
intentions: Array<string>,
nominators: Nominators,
tabs: Array<TabItem>,
validators: Array<string>
};
@ -41,6 +43,7 @@ class App extends React.PureComponent<Props, State> {
this.state = {
intentions: [],
nominators: {},
tabs: [
{
name: 'overview',
@ -55,12 +58,22 @@ class App extends React.PureComponent<Props, State> {
};
}
static getDerivedStateFromProps ({ session_validators, intentions }: Props): State {
static getDerivedStateFromProps ({ session_validators = [], staking_nominators = [[], []], staking_validators = [[], []] }: Props): State {
// console.error('staking_nominators', JSON.stringify(staking_nominators));
// console.error('staking_validators', JSON.stringify(staking_validators));
// console.error('session_validators', JSON.stringify(session_validators));
return {
intentions: (intentions || []).map((accountId) =>
intentions: staking_validators[0].map((accountId) =>
accountId.toString()
),
validators: (session_validators || []).map((authorityId) =>
nominators: staking_nominators[0].reduce((result, accountId, index) => {
result[accountId.toString()] = staking_nominators[1][index].map((accountId) => accountId.toString());
return result;
}, {} as Nominators),
validators: session_validators.map((authorityId) =>
authorityId.toString()
)
} as State;
@ -88,7 +101,7 @@ class App extends React.PureComponent<Props, State> {
private renderComponent (Component: React.ComponentType<ComponentProps>) {
return (): React.ReactNode => {
const { intentions, validators } = this.state;
const { intentions, nominators, validators } = this.state;
const { balances = {} } = this.props;
return (
@ -96,6 +109,7 @@ class App extends React.PureComponent<Props, State> {
balances={balances}
balanceArray={this.balanceArray}
intentions={intentions}
nominators={nominators}
validators={validators}
/>
);
@ -125,7 +139,8 @@ export default withMulti(
translate,
withCalls<Props>(
'query.session.validators',
['query.staking.intentions', { propName: 'intentions' }],
'query.staking.nominators',
'query.staking.validators',
['derive.staking.intentionsBalances', { propName: 'balances' }]
)
);

View File

@ -5,9 +5,15 @@
import { DerivedBalancesMap } from '@polkadot/api-derive/types';
import { AccountId, Balance } from '@polkadot/types';
export type Nominators = {
// stash account and who is being nominated
[index: string]: Array<string>
};
export type ComponentProps = {
balances: DerivedBalancesMap,
balanceArray: (_address: AccountId | string) => Array<Balance> | undefined,
intentions: Array<string>,
nominators: Nominators,
validators: Array<string>
};

View File

@ -31,7 +31,7 @@
"homepage": "https://github.com/polkadot-js/ui/tree/master/packages/ui-reactive#readme",
"dependencies": {
"@babel/runtime": "^7.4.0",
"@polkadot/api": "^0.52.0-beta.1",
"@polkadot/api": "^0.52.0-beta.3",
"@polkadot/ui-util": "^0.34.0-beta.0",
"rxjs-compat": "^6.3.2"
}

View File

@ -135,7 +135,7 @@ export default function withCall<P extends ApiProps> (endpoint: string, { at, at
if (area === 'query' && meta && meta.type.isMap) {
const arg = newParams[0];
assert(!isUndefined(arg) && !isNull(arg), `${meta.name} expects one argument`);
assert((!isUndefined(arg) && !isNull(arg)) || meta.type.asMap.isLinked, `${meta.name} expects one argument`);
}
return [
@ -196,7 +196,7 @@ export default function withCall<P extends ApiProps> (endpoint: string, { at, at
callUpdatedAt: Date.now()
});
} catch (error) {
console.error(endpoint, '::', error.message);
// console.error(endpoint, '::', error.message);
}
}

104
yarn.lock
View File

@ -1621,29 +1621,29 @@
universal-user-agent "^2.0.0"
url-template "^2.0.8"
"@polkadot/api-derive@^0.52.0-beta.1":
version "0.52.0-beta.1"
resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-0.52.0-beta.1.tgz#7423cde930ff48bbe11af612fada2e6488ee1d6a"
integrity sha512-RL6K0vHgFetBDR1eU34QlW6iXYEKw4OIXouWq3kvhf8PuFQ8KJZWIa39xWGnMu9jSRXq2wOISTssD3AN9XXrpg==
"@polkadot/api-derive@^0.52.0-beta.3":
version "0.52.0-beta.3"
resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-0.52.0-beta.3.tgz#33666749828d0ea67d2807e76d000594bcb68ff6"
integrity sha512-ecmhawyBT0XGLO4agvRnELxYNNIfUJQnG+PEDeoT0a2szlvqW7byx/gW3sXtq7st6ds0y60hz63EejSXWPbVqg==
dependencies:
"@babel/runtime" "^7.4.0"
"@polkadot/api" "^0.52.0-beta.1"
"@polkadot/types" "^0.52.0-beta.1"
"@polkadot/api" "^0.52.0-beta.3"
"@polkadot/types" "^0.52.0-beta.3"
"@types/memoizee" "^0.4.2"
memoizee "^0.4.14"
"@polkadot/api@^0.52.0-beta.1":
version "0.52.0-beta.1"
resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-0.52.0-beta.1.tgz#be2c9a4c53a202f40e68a286d5cd235312a4114b"
integrity sha512-IQduWZeD7sF69Ho7xhwmU6mkhgTG8vsznJfsjhWZenuNGXHX/Yn3Ora63iLGHRLwJ6K8hQnQtWypyDshPcLV5Q==
"@polkadot/api@^0.52.0-beta.3":
version "0.52.0-beta.3"
resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-0.52.0-beta.3.tgz#13992e85ef0facad98fa155a6825c2a9691fc706"
integrity sha512-HbQgZid3sABMpioZUVdlTaN3fGqjiDV8lZ+prxTDPI2+YFWLPVZI4BdNhyccR6+MVWDXcwua7vQJZ2w9Ye8Lmg==
dependencies:
"@babel/runtime" "^7.4.0"
"@polkadot/api-derive" "^0.52.0-beta.1"
"@polkadot/extrinsics" "^0.52.0-beta.1"
"@polkadot/rpc-provider" "^0.52.0-beta.1"
"@polkadot/rpc-rx" "^0.52.0-beta.1"
"@polkadot/storage" "^0.52.0-beta.1"
"@polkadot/types" "^0.52.0-beta.1"
"@polkadot/api-derive" "^0.52.0-beta.3"
"@polkadot/extrinsics" "^0.52.0-beta.3"
"@polkadot/rpc-provider" "^0.52.0-beta.3"
"@polkadot/rpc-rx" "^0.52.0-beta.3"
"@polkadot/storage" "^0.52.0-beta.3"
"@polkadot/types" "^0.52.0-beta.3"
"@polkadot/util-crypto" "^0.42.0-beta.1"
"@polkadot/dev-react@^0.28.1":
@ -1718,19 +1718,19 @@
typescript "^3.3.4000"
vuepress "^1.0.0-alpha.44"
"@polkadot/extrinsics@^0.52.0-beta.1":
version "0.52.0-beta.1"
resolved "https://registry.yarnpkg.com/@polkadot/extrinsics/-/extrinsics-0.52.0-beta.1.tgz#08098007fe113c1733abfba23dbf32f05c892bc9"
integrity sha512-edVrb7bSaK791eScTTfFSSwJmvJQBur1c3gPPZ1jYTfyxK+vDDcno+Xjqj9NTM+s91JLvf/IFTfLy3Be/KPqVg==
"@polkadot/extrinsics@^0.52.0-beta.3":
version "0.52.0-beta.3"
resolved "https://registry.yarnpkg.com/@polkadot/extrinsics/-/extrinsics-0.52.0-beta.3.tgz#b73d0835431551f6b84a76bea12a3adc3a507acc"
integrity sha512-+vzD0mheHi/bc4haRjBMQ3UIp5CjsFiLRWXY4o9RK3wP/TqKRf4EqioZhbShtGqhb3Y8bY3L5e+gbt0fChSynQ==
dependencies:
"@babel/runtime" "^7.4.0"
"@polkadot/types" "^0.52.0-beta.1"
"@polkadot/types" "^0.52.0-beta.3"
"@polkadot/util" "^0.42.0-beta.1"
"@polkadot/jsonrpc@^0.52.0-beta.1":
version "0.52.0-beta.1"
resolved "https://registry.yarnpkg.com/@polkadot/jsonrpc/-/jsonrpc-0.52.0-beta.1.tgz#bb1510857e847164de305d2094976d0a65137d5e"
integrity sha512-VZNEMrfl8GwcC9y+oB8uXPg2lKFzCqCRk6ytPRw4O5qd2cUu5RawWDKV11Hpc5pfeWzvWKnLK/OYsyas9CgMLg==
"@polkadot/jsonrpc@^0.52.0-beta.3":
version "0.52.0-beta.3"
resolved "https://registry.yarnpkg.com/@polkadot/jsonrpc/-/jsonrpc-0.52.0-beta.3.tgz#40953c0c597050ee6e3af0ec1b8cd6ae5276f11c"
integrity sha512-7Vcjrc4O8ZvH1aU18VOACRIvqI3HdCPUMZXMswS9oafPTN8OlruwNrer3Er+Cyd48NAzxaS+0KM3fNt8PIkNjw==
dependencies:
"@babel/runtime" "^7.4.0"
@ -1745,25 +1745,25 @@
"@types/bs58" "^4.0.0"
bs58 "^4.0.1"
"@polkadot/rpc-core@^0.52.0-beta.1":
version "0.52.0-beta.1"
resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-0.52.0-beta.1.tgz#47bac0a8043c2b3747e356e7d5c6dfaf3ce33969"
integrity sha512-2EcOgUi18OV0epPnIXTjf6CAcv2eOH1QfWBbQaVQVa8XS7mRkNbDesiLjo6PJSwYxsf+hX1FNugX2Ciq/dlJzw==
"@polkadot/rpc-core@^0.52.0-beta.3":
version "0.52.0-beta.3"
resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-0.52.0-beta.3.tgz#4099a3431bf31e8371aed7d59b3309a453089e2a"
integrity sha512-xWema6kBr6WIaFpWrsoQqNvVQJWlAohtRwcLnC2uO/Ph5pDd+A5z1LxH9dGmCwXuBJWMdcalwjc+NW/Kq1wejw==
dependencies:
"@babel/runtime" "^7.4.0"
"@polkadot/jsonrpc" "^0.52.0-beta.1"
"@polkadot/rpc-provider" "^0.52.0-beta.1"
"@polkadot/types" "^0.52.0-beta.1"
"@polkadot/jsonrpc" "^0.52.0-beta.3"
"@polkadot/rpc-provider" "^0.52.0-beta.3"
"@polkadot/types" "^0.52.0-beta.3"
"@polkadot/util" "^0.42.0-beta.1"
"@polkadot/rpc-provider@^0.52.0-beta.1":
version "0.52.0-beta.1"
resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-0.52.0-beta.1.tgz#0e9af85ea80ce88f9bdb38ee69ce22318ea9813a"
integrity sha512-CPI/PkrOkR52kcP39wv4xAJMUwqKi/o2XODx3LwpcxF0oSCZ60udugnNpU41LkPxW0k/IGWFH/NSXuXHAf1TEA==
"@polkadot/rpc-provider@^0.52.0-beta.3":
version "0.52.0-beta.3"
resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-0.52.0-beta.3.tgz#cf2db0ec700dd64b35ba9c0856659125f5f3c81f"
integrity sha512-AElTVFDifAlYLSt+KZW7o9R4JCygpkyDUc3utlP85M37ELda6JMMYeeEVOd2Va2rGBI6ytqG6jxBJzSpOXD2zw==
dependencies:
"@babel/runtime" "^7.4.0"
"@polkadot/keyring" "^0.42.0-beta.1"
"@polkadot/storage" "^0.52.0-beta.1"
"@polkadot/storage" "^0.52.0-beta.3"
"@polkadot/util" "^0.42.0-beta.1"
"@polkadot/util-crypto" "^0.42.0-beta.1"
"@types/nock" "^9.3.1"
@ -1771,27 +1771,27 @@
isomorphic-fetch "^2.2.1"
websocket "^1.0.28"
"@polkadot/rpc-rx@^0.52.0-beta.1":
version "0.52.0-beta.1"
resolved "https://registry.yarnpkg.com/@polkadot/rpc-rx/-/rpc-rx-0.52.0-beta.1.tgz#fbfb877d623680fb9536589c5736ddbd91a01515"
integrity sha512-jzTXuWoLasIp6WYLYsomQ9WlNn82u/9tAFUVuPDi36fToWwr4gt91FnGecxGpqE6rUEk3R3JY38YPos4DaN9uw==
"@polkadot/rpc-rx@^0.52.0-beta.3":
version "0.52.0-beta.3"
resolved "https://registry.yarnpkg.com/@polkadot/rpc-rx/-/rpc-rx-0.52.0-beta.3.tgz#cc7e7c533e5114b4b8832180da93821f353bace2"
integrity sha512-f5SpqZuWbyZMKVcb9HupTvjrroY/77wVtTv+kfY1HJja7ZaPi3R1JreL+XIe6n46ok3owOJTDVgq7Xp61Co78w==
dependencies:
"@babel/runtime" "^7.4.0"
"@polkadot/rpc-core" "^0.52.0-beta.1"
"@polkadot/rpc-provider" "^0.52.0-beta.1"
"@polkadot/rpc-core" "^0.52.0-beta.3"
"@polkadot/rpc-provider" "^0.52.0-beta.3"
"@types/memoizee" "^0.4.2"
"@types/rx" "^4.1.1"
memoizee "^0.4.14"
rxjs "^6.4.0"
"@polkadot/storage@^0.52.0-beta.1":
version "0.52.0-beta.1"
resolved "https://registry.yarnpkg.com/@polkadot/storage/-/storage-0.52.0-beta.1.tgz#c5d825948fc8bcc90060f38ab51ddc8134e3cc29"
integrity sha512-ZCHEqEP1XIh6+eq3fvG6c2rv6ct09cZvg9yFEaUtdWRQK17pZXwiVLh7ODc8ZaeIV/IWvQEfc9b+SKBV9mm87Q==
"@polkadot/storage@^0.52.0-beta.3":
version "0.52.0-beta.3"
resolved "https://registry.yarnpkg.com/@polkadot/storage/-/storage-0.52.0-beta.3.tgz#7e15263a8c7f00661fd83d2a21c659be3722b7b7"
integrity sha512-e4kbjRlD/+gqUDvm+ls33+o5RUHHfCeOgA3V3L5MD1Yp83ZyTnfOIRRHvI+EhikshhkKaVyrUPm+ZQiqWRDtuw==
dependencies:
"@babel/runtime" "^7.4.0"
"@polkadot/keyring" "^0.42.0-beta.1"
"@polkadot/types" "^0.52.0-beta.1"
"@polkadot/types" "^0.52.0-beta.3"
"@polkadot/util" "^0.42.0-beta.1"
"@polkadot/util-crypto" "^0.42.0-beta.1"
@ -1800,10 +1800,10 @@
resolved "https://registry.yarnpkg.com/@polkadot/ts/-/ts-0.1.56.tgz#ffd6e9c95704a7fb90b918193b9dc5c440114b27"
integrity sha512-wnt4zXxZXyz6WaubTO/I+nUElwV2DogFzdl6CrKfVn2PTWp8uHN06W9s40FH57ORtmQfDr9rLRP8Nq+oIyElbg==
"@polkadot/types@^0.52.0-beta.1":
version "0.52.0-beta.1"
resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-0.52.0-beta.1.tgz#cfefaff3c0cf5da62b971f895e89bd6d2b2b03b4"
integrity sha512-bXxe4ztsjfAAxC90pEIK0/Dh/qMgcq0P1af6P9vqeMBVfIVSn7X1KLr4JfjWP9L2DiknAGBZj+7TvXSF7khRKA==
"@polkadot/types@^0.52.0-beta.3":
version "0.52.0-beta.3"
resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-0.52.0-beta.3.tgz#050c7226ac39d5c244f4b09c80e2b35bd67e09bc"
integrity sha512-uDIJWX+dwJkpXLd59Qu6EeA0LpLYCv/NhgFm8VsYxorAYvqQkdy8e9c9EUKhNIXYGLVQudtXfPiedSScuNo9Yw==
dependencies:
"@babel/runtime" "^7.4.0"
"@polkadot/keyring" "^0.42.0-beta.1"