|
+
+ {(canSelect || isSelected) && (
+
+ )}
+ |
a.isFavorite === b.isFavorite
+ ? 0
+ : (a.isFavorite ? -1 : 1)
+ );
}
function extractInfo (allAccounts: string[], amount: BN = new BN(0), electedInfo: DeriveStakingElected, favorites: string[], lastReward = new BN(1)): AllInfo {
@@ -157,7 +166,7 @@ function extractInfo (allAccounts: string[], amount: BN = new BN(0), electedInfo
}
function sort (sortBy: SortBy, sortFromMax: boolean, validators: ValidatorInfo[]): ValidatorInfo[] {
- return validators
+ return [...validators]
.sort((a, b): number => sortFromMax
? a[sortBy] - b[sortBy]
: b[sortBy] - a[sortBy]
@@ -168,12 +177,12 @@ function sort (sortBy: SortBy, sortFromMax: boolean, validators: ValidatorInfo[]
);
}
-function Targets ({ className }: Props): React.ReactElement {
+function Targets ({ className, ownStashes }: Props): React.ReactElement {
const { t } = useTranslation();
const { api } = useApi();
const { allAccounts } = useAccounts();
+ const ownNominators = useOwnNominators(ownStashes);
const lastEra = useCall(api.derive.session.indexes, [], {
- defaultValue: new BN(0),
transform: ({ activeEra }: DeriveSessionIndexes) => activeEra.gtn(0) ? activeEra.subn(1) : new BN(0)
}) || new BN(0);
const lastReward = useCall(api.query.staking.erasValidatorReward, [lastEra], {
@@ -182,6 +191,7 @@ function Targets ({ className }: Props): React.ReactElement {
const [_amount, setAmount] = useState(new BN(1_000));
const electedInfo = useCall(api.derive.staking.electedInfo, []);
const [favorites, toggleFavorite] = useFavorites(STORE_FAVS_BASE);
+ const [selected, setSelected] = useState([]);
const [{ nominators, sorted, totalStaked, validators }, setWorkable] = useState({ nominators: [], validators: [] });
const [{ sortBy, sortFromMax }, setSortBy] = useState<{ sortBy: SortBy; sortFromMax: boolean }>({ sortBy: 'rankOverall', sortFromMax: true });
const amount = useDebounce(_amount);
@@ -201,6 +211,24 @@ function Targets ({ className }: Props): React.ReactElement {
[]
);
+ const _toggleSelected = useCallback(
+ (address: string) => setSelected(
+ selected.includes(address)
+ ? selected.filter((accountId): boolean => address !== accountId)
+ : [...selected, address]
+ ),
+ [selected]
+ );
+
+ const _selectProfitable = useCallback(
+ (): void => setSelected(
+ validators
+ .filter((_, index) => index < MAX_NOMINATIONS)
+ .map(({ key }) => key)
+ ),
+ [validators]
+ );
+
useEffect((): void => {
if (electedInfo) {
const { nominators, totalStaked, validators } = extractInfo(allAccounts, amount, electedInfo, favorites, lastReward);
@@ -224,7 +252,7 @@ function Targets ({ className }: Props): React.ReactElement {
const filter = useMemo(() => (
{
numValidators={validators.length}
totalStaked={totalStaked}
/>
+
+
+
+
+
{sorted?.map((info): React.ReactNode =>
)}
@@ -259,7 +303,7 @@ function Targets ({ className }: Props): React.ReactElement {
export default React.memo(styled(Targets)`
text-align: center;
-
+
th {
i.icon {
margin-left: 0.5rem;
diff --git a/packages/page-staking/src/Targets/useOwnNominators.ts b/packages/page-staking/src/Targets/useOwnNominators.ts
new file mode 100644
index 0000000000..a297eb1759
--- /dev/null
+++ b/packages/page-staking/src/Targets/useOwnNominators.ts
@@ -0,0 +1,19 @@
+// Copyright 2017-2020 @polkadot/app-staking authors & contributors
+// This software may be modified and distributed under the terms
+// of the Apache-2.0 license. See the LICENSE file for details.
+
+import { StakerState } from '@polkadot/react-hooks/types';
+
+import { useEffect, useState } from 'react';
+
+export default function useOwnNominators (ownStashes?: StakerState[]): StakerState[] | undefined {
+ const [state, setState] = useState();
+
+ useEffect((): void => {
+ ownStashes && setState(
+ ownStashes.filter(({ isOwnController, isStashValidating }) => isOwnController && !isStashValidating)
+ );
+ }, [ownStashes]);
+
+ return state;
+}
diff --git a/packages/page-staking/src/index.tsx b/packages/page-staking/src/index.tsx
index c2f1274fc4..a662810231 100644
--- a/packages/page-staking/src/index.tsx
+++ b/packages/page-staking/src/index.tsx
@@ -4,7 +4,7 @@
import { DeriveStakingOverview } from '@polkadot/api-derive/types';
import { AppProps as Props } from '@polkadot/react-components/types';
-import { AccountId, ElectionStatus } from '@polkadot/types/interfaces';
+import { ElectionStatus } from '@polkadot/types/interfaces';
import React, { useEffect, useMemo, useReducer, useState } from 'react';
import { Route, Switch } from 'react-router';
@@ -12,7 +12,7 @@ import { useLocation } from 'react-router-dom';
import styled from 'styled-components';
import { HelpOverlay } from '@polkadot/react-components';
import Tabs from '@polkadot/react-components/Tabs';
-import { useAccounts, useApi, useCall } from '@polkadot/react-hooks';
+import { useAccounts, useApi, useCall, useOwnStashInfos, useStashIds } from '@polkadot/react-hooks';
import basicMd from './md/basic.md';
import Actions from './Actions';
@@ -38,10 +38,8 @@ function StakingApp ({ basePath, className }: Props): React.ReactElement
const { hasAccounts } = useAccounts();
const { pathname } = useLocation();
const [{ next, validators }, setValidators] = useState({});
- const allStashes = useCall(api.derive.staking.stashes, [], {
- transform: (stashes: AccountId[]): string[] =>
- stashes.map((accountId): string => accountId.toString())
- });
+ const allStashes = useStashIds();
+ const ownStashes = useOwnStashInfos();
const stakingOverview = useCall(api.derive.staking.overview, []);
const isInElection = useCall(api.query.staking?.eraElectionStatus, [], {
transform: (status: ElectionStatus) => status.isOpen
@@ -69,8 +67,8 @@ function StakingApp ({ basePath, className }: Props): React.ReactElement
}
: null,
{
- name: 'calculator',
- text: t('Calculator')
+ name: 'targets',
+ text: t('Targets')
},
{
name: 'waiting',
@@ -116,15 +114,15 @@ function StakingApp ({ basePath, className }: Props): React.ReactElement
stakingOverview={stakingOverview}
/>
-
-
-
+
+
+
.ui--FormatBalance {
- min-width: 11rem;
+ min-width: 10rem;
}
> div {
diff --git a/packages/react-components/src/InputAddress/index.tsx b/packages/react-components/src/InputAddress/index.tsx
index 0c7dea75ed..2977ca6706 100644
--- a/packages/react-components/src/InputAddress/index.tsx
+++ b/packages/react-components/src/InputAddress/index.tsx
@@ -145,19 +145,15 @@ class InputAddress extends React.PureComponent {
const actualValue = transformToAddress(
isDisabled || (defaultValue && this.hasValue(defaultValue))
? defaultValue
- : (
- this.hasValue(lastValue)
- ? lastValue
- : (lastOption && lastOption.value)
- )
+ : this.hasValue(lastValue)
+ ? lastValue
+ : (lastOption && lastOption.value)
);
const actualOptions: Option[] = options
? options.map((o): Option => createItem(o))
- : (
- isDisabled && actualValue
- ? [createOption(actualValue)]
- : this.getFiltered()
- );
+ : isDisabled && actualValue
+ ? [createOption(actualValue)]
+ : this.getFiltered();
const _defaultValue = (isMultiple || !isUndefined(value))
? undefined
: actualValue;
diff --git a/packages/react-components/src/Table/Body.tsx b/packages/react-components/src/Table/Body.tsx
index 340d0fabb6..6596f2aca6 100644
--- a/packages/react-components/src/Table/Body.tsx
+++ b/packages/react-components/src/Table/Body.tsx
@@ -75,6 +75,10 @@ export default React.memo(styled(Body)`
padding: 0.85rem 1rem;
}
+ &.badge {
+ padding: 0;
+ }
+
&.button {
text-align: right;
white-space: nowrap;
diff --git a/packages/react-components/src/Toggle.tsx b/packages/react-components/src/Toggle.tsx
index 56a17b28a9..66c8726761 100644
--- a/packages/react-components/src/Toggle.tsx
+++ b/packages/react-components/src/Toggle.tsx
@@ -32,7 +32,7 @@ function Toggle ({ asSwitch = true, className, defaultValue, isDisabled, label,
);
return (
-
+
void;
onForgetAddress: VoidFn;
}
+
+export interface StakerState {
+ controllerId: string | null;
+ destination?: string;
+ destinationId: number;
+ exposure?: Exposure;
+ hexSessionIdNext: string | null;
+ hexSessionIdQueue: string | null;
+ isLoading: boolean;
+ isOwnController: boolean;
+ isOwnStash: boolean;
+ isStashNominating: boolean;
+ isStashValidating: boolean;
+ nominating?: string[];
+ sessionIds: string[];
+ stakingLedger?: StakingLedger;
+ stashId: string;
+ validatorPrefs?: ValidatorPrefs;
+}
diff --git a/packages/react-hooks/src/useOwnStashInfos.ts b/packages/react-hooks/src/useOwnStashInfos.ts
new file mode 100644
index 0000000000..14736a8171
--- /dev/null
+++ b/packages/react-hooks/src/useOwnStashInfos.ts
@@ -0,0 +1,109 @@
+// Copyright 2017-2020 @polkadot/react-hooks authors & contributors
+// This software may be modified and distributed under the terms
+// of the Apache-2.0 license. See the LICENSE file for details.
+
+import { DeriveStakingAccount } from '@polkadot/api-derive/types';
+import { AccountId, ValidatorPrefs } from '@polkadot/types/interfaces';
+import { Codec, ITuple } from '@polkadot/types/types';
+import { StakerState } from './types';
+
+import { useEffect, useState } from 'react';
+import { u8aConcat, u8aToHex } from '@polkadot/util';
+
+import useAccounts from './useAccounts';
+import useApi from './useApi';
+import useIsMountedRef from './useIsMountedRef';
+import useOwnStashes from './useOwnStashes';
+import useStashIds from './useStashIds';
+
+type ValidatorInfo = ITuple<[ValidatorPrefs, Codec]> | ValidatorPrefs;
+type Queried = Record;
+
+function toIdString (id?: AccountId | null): string | null {
+ return id
+ ? id.toString()
+ : null;
+}
+
+function getStakerState (stashId: string, allAccounts: string[], allStashes: string[] | undefined, [isOwnStash, { controllerId: _controllerId, exposure, nextSessionIds, nominators, rewardDestination, sessionIds, stakingLedger, validatorPrefs }, validateInfo]: [boolean, DeriveStakingAccount, ValidatorInfo]): StakerState {
+ const isStashNominating = !!(nominators?.length);
+ const isStashValidating = !(Array.isArray(validateInfo) ? validateInfo[1].isEmpty : validateInfo.isEmpty) || !!allStashes?.includes(stashId);
+ const nextConcat = u8aConcat(...nextSessionIds.map((id): Uint8Array => id.toU8a()));
+ const currConcat = u8aConcat(...sessionIds.map((id): Uint8Array => id.toU8a()));
+ const controllerId = toIdString(_controllerId);
+
+ return {
+ controllerId,
+ destination: rewardDestination?.toString().toLowerCase(),
+ destinationId: rewardDestination?.toNumber() || 0,
+ exposure,
+ hexSessionIdNext: u8aToHex(nextConcat, 48),
+ hexSessionIdQueue: u8aToHex(currConcat.length ? currConcat : nextConcat, 48),
+ isLoading: false,
+ isOwnController: allAccounts.includes(controllerId || ''),
+ isOwnStash,
+ isStashNominating,
+ isStashValidating,
+ // we assume that all ids are non-null
+ nominating: nominators?.map(toIdString) as string[],
+ sessionIds: (
+ nextSessionIds.length
+ ? nextSessionIds
+ : sessionIds
+ ).map(toIdString) as string[],
+ stakingLedger,
+ stashId,
+ validatorPrefs
+ };
+}
+
+export default function useOwnStashInfos (): StakerState[] | undefined {
+ const { api } = useApi();
+ const { allAccounts } = useAccounts();
+ const mountedRef = useIsMountedRef();
+ const ownStashes = useOwnStashes();
+ const allStashes = useStashIds();
+ const [queried, setQueried] = useState();
+ const [state, setState] = useState();
+
+ useEffect((): () => void => {
+ let unsub: (() => void) | undefined;
+
+ if (ownStashes) {
+ if (ownStashes.length) {
+ const stashIds = ownStashes.map(([stashId]) => stashId);
+ const fns: any[] = [
+ [api.derive.staking.accounts as any, stashIds],
+ [api.query.staking.validators.multi as any, stashIds]
+ ];
+
+ api.combineLatest<[DeriveStakingAccount[], ValidatorInfo[]]>(fns, ([accounts, validators]): void => {
+ mountedRef.current && ownStashes.length === accounts.length && ownStashes.length === validators.length && setQueried(
+ ownStashes.reduce((queried: Queried, [stashId, isOwnStash], index): Queried => ({
+ ...queried,
+ [stashId]: [isOwnStash, accounts[index], validators[index]]
+ }), {})
+ );
+ }).then((_unsub): void => {
+ unsub = _unsub;
+ });
+ } else {
+ mountedRef.current && setQueried({});
+ }
+ }
+
+ return (): void => {
+ unsub && unsub();
+ };
+ }, [api, mountedRef, ownStashes]);
+
+ useEffect((): void => {
+ allAccounts && allStashes && ownStashes && queried && ownStashes.length === Object.keys(queried).length && setState(
+ ownStashes
+ .filter(([stashId]) => queried[stashId])
+ .map(([stashId]) => getStakerState(stashId, allAccounts, allStashes, queried[stashId]))
+ );
+ }, [allAccounts, allStashes, ownStashes, queried]);
+
+ return state;
+}
diff --git a/packages/react-hooks/src/useOwnStashes.ts b/packages/react-hooks/src/useOwnStashes.ts
index b399c773b7..312ca1a9cf 100644
--- a/packages/react-hooks/src/useOwnStashes.ts
+++ b/packages/react-hooks/src/useOwnStashes.ts
@@ -25,7 +25,7 @@ function getStashes (allAccounts: string[], ownBonded: Option[], ownL
if (ledger.isSome) {
const stashId = ledger.unwrap().stash.toString();
- !result.some(([accountId]): boolean => accountId === stashId) && result.push([stashId, false]);
+ !result.some(([accountId]) => accountId === stashId) && result.push([stashId, false]);
}
});
diff --git a/packages/react-hooks/src/useStashIds.ts b/packages/react-hooks/src/useStashIds.ts
new file mode 100644
index 0000000000..9d890fc83c
--- /dev/null
+++ b/packages/react-hooks/src/useStashIds.ts
@@ -0,0 +1,17 @@
+// Copyright 2017-2020 @polkadot/react-hooks authors & contributors
+// This software may be modified and distributed under the terms
+// of the Apache-2.0 license. See the LICENSE file for details.
+
+import { AccountId } from '@polkadot/types/interfaces';
+
+import useApi from './useApi';
+import useCall from './useCall';
+
+export default function useStashIds (): string[] | undefined {
+ const { api } = useApi();
+ const allStashes = useCall(api.derive.staking.stashes, [], {
+ transform: (stashes: AccountId[]) => stashes.map((accountId) => accountId.toString())
+ });
+
+ return allStashes;
+}
diff --git a/yarn.lock b/yarn.lock
index ccfd0d4bb0..531ff75a4b 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2837,57 +2837,57 @@ __metadata:
languageName: node
linkType: hard
-"@polkadot/api-contract@npm:^1.12.0-beta.9":
- version: 1.12.0-beta.9
- resolution: "@polkadot/api-contract@npm:1.12.0-beta.9"
+"@polkadot/api-contract@npm:^1.12.0-beta.11":
+ version: 1.12.0-beta.11
+ resolution: "@polkadot/api-contract@npm:1.12.0-beta.11"
dependencies:
"@babel/runtime": ^7.9.2
- "@polkadot/api": 1.12.0-beta.9
- "@polkadot/rpc-core": 1.12.0-beta.9
- "@polkadot/types": 1.12.0-beta.9
+ "@polkadot/api": 1.12.0-beta.11
+ "@polkadot/rpc-core": 1.12.0-beta.11
+ "@polkadot/types": 1.12.0-beta.11
"@polkadot/util": ^2.9.0-beta.1
bn.js: ^5.1.1
rxjs: ^6.5.5
- checksum: 2/a18128414dae5e962cc71be75b302b96d64dafc0bf3809056e19d0573cb7a7a0e83b6e1fb48f922418054568ebadf2022d6f4ee6e7e77c05fb771bbfb106709b
+ checksum: 2/1f7d964033971778c276e45afd898049d2a5e022deffced8967d819e05b21dfbdbedec2120420d744972c0e8c4e3b53e918f2a662bf5cae729be38b088794c18
languageName: node
linkType: hard
-"@polkadot/api-derive@npm:1.12.0-beta.9":
- version: 1.12.0-beta.9
- resolution: "@polkadot/api-derive@npm:1.12.0-beta.9"
+"@polkadot/api-derive@npm:1.12.0-beta.11":
+ version: 1.12.0-beta.11
+ resolution: "@polkadot/api-derive@npm:1.12.0-beta.11"
dependencies:
"@babel/runtime": ^7.9.2
- "@polkadot/api": 1.12.0-beta.9
- "@polkadot/rpc-core": 1.12.0-beta.9
- "@polkadot/rpc-provider": 1.12.0-beta.9
- "@polkadot/types": 1.12.0-beta.9
+ "@polkadot/api": 1.12.0-beta.11
+ "@polkadot/rpc-core": 1.12.0-beta.11
+ "@polkadot/rpc-provider": 1.12.0-beta.11
+ "@polkadot/types": 1.12.0-beta.11
"@polkadot/util": ^2.9.0-beta.1
"@polkadot/util-crypto": ^2.9.0-beta.1
bn.js: ^5.1.1
memoizee: ^0.4.14
rxjs: ^6.5.5
- checksum: 2/bb0e4ed3bfd2c78affa3bcf4b180cfac338673bbb8309980b9f6554c01b745917907a4086c166400704d9ae0ef1f923f6af26ce1861c67c8b3132d089d91c40c
+ checksum: 2/83b431b7d1a806710de97fea63b285a46ff8fd8bc59d6e8066b8f1064400b92a208fdd634303a9f314ffdd9a14b48fa493eb891844d5908d041b1949ca535774
languageName: node
linkType: hard
-"@polkadot/api@npm:^1.12.0-beta.9":
- version: 1.12.0-beta.9
- resolution: "@polkadot/api@npm:1.12.0-beta.9"
+"@polkadot/api@npm:^1.12.0-beta.11":
+ version: 1.12.0-beta.11
+ resolution: "@polkadot/api@npm:1.12.0-beta.11"
dependencies:
"@babel/runtime": ^7.9.2
- "@polkadot/api-derive": 1.12.0-beta.9
+ "@polkadot/api-derive": 1.12.0-beta.11
"@polkadot/keyring": ^2.9.0-beta.1
- "@polkadot/metadata": 1.12.0-beta.9
- "@polkadot/rpc-core": 1.12.0-beta.9
- "@polkadot/rpc-provider": 1.12.0-beta.9
- "@polkadot/types": 1.12.0-beta.9
- "@polkadot/types-known": 1.12.0-beta.9
+ "@polkadot/metadata": 1.12.0-beta.11
+ "@polkadot/rpc-core": 1.12.0-beta.11
+ "@polkadot/rpc-provider": 1.12.0-beta.11
+ "@polkadot/types": 1.12.0-beta.11
+ "@polkadot/types-known": 1.12.0-beta.11
"@polkadot/util": ^2.9.0-beta.1
"@polkadot/util-crypto": ^2.9.0-beta.1
bn.js: ^5.1.1
eventemitter3: ^4.0.0
rxjs: ^6.5.5
- checksum: 2/c473b273f579d7a9bec3b27042cf77c34f0eb9698a74eea87931ea30336ef513a73e2656e38ee51f4c87f03a3de2f3d6ba13b669206f75cc8f70fca2f1472a40
+ checksum: 2/b59304e26d75df39c88a2c94108d3df691c52ba09adbf64328ec5277ebda8197ff27dddffef976ccd5e829d55953f276e701b010b736e49ebd0e9d9df0c4deec
languageName: node
linkType: hard
@@ -2928,7 +2928,7 @@ __metadata:
resolution: "@polkadot/app-contracts@workspace:packages/page-contracts"
dependencies:
"@babel/runtime": ^7.9.2
- "@polkadot/api-contract": ^1.12.0-beta.9
+ "@polkadot/api-contract": ^1.12.0-beta.11
languageName: unknown
linkType: soft
@@ -3252,28 +3252,28 @@ __metadata:
languageName: node
linkType: hard
-"@polkadot/keyring@npm:^2.9.0-beta.1":
- version: 2.9.0-beta.1
- resolution: "@polkadot/keyring@npm:2.9.0-beta.1"
+"@polkadot/keyring@npm:^2.9.0-beta.3":
+ version: 2.9.0-beta.3
+ resolution: "@polkadot/keyring@npm:2.9.0-beta.3"
dependencies:
"@babel/runtime": ^7.9.2
- "@polkadot/util": 2.9.0-beta.1
- "@polkadot/util-crypto": 2.9.0-beta.1
- checksum: 2/e250a3c1a7b556d3d47f12c353dab99bceda512872b21ad22804d19c5ce2f279dcd30b506406819dae8c9eda57d90ada0ab98e7142ff75095a0d60f6d7c1b500
+ "@polkadot/util": 2.9.0-beta.3
+ "@polkadot/util-crypto": 2.9.0-beta.3
+ checksum: 2/5b7c4baeed6a8d133c425f341b557202657e7b94a9489f50792425fda3c90104916714c256518fee79c034cad85ca7ff6131444eb7fc7947f65466dc3410f1bc
languageName: node
linkType: hard
-"@polkadot/metadata@npm:1.12.0-beta.9":
- version: 1.12.0-beta.9
- resolution: "@polkadot/metadata@npm:1.12.0-beta.9"
+"@polkadot/metadata@npm:1.12.0-beta.11":
+ version: 1.12.0-beta.11
+ resolution: "@polkadot/metadata@npm:1.12.0-beta.11"
dependencies:
"@babel/runtime": ^7.9.2
- "@polkadot/types": 1.12.0-beta.9
- "@polkadot/types-known": 1.12.0-beta.9
+ "@polkadot/types": 1.12.0-beta.11
+ "@polkadot/types-known": 1.12.0-beta.11
"@polkadot/util": ^2.9.0-beta.1
"@polkadot/util-crypto": ^2.9.0-beta.1
bn.js: ^5.1.1
- checksum: 2/e0c38041390b9efcc287d4522188f869f30a56c0df1e269e6dfe468763e6449931641a9ecdc761f983cc3324f6b436d8042af6def25c1e7f728802f41183b20d
+ checksum: 2/7176263ddb1b220cac47ebb1b8da090149d1e8c57b1461b3f38120e25d4036e0d4437bb6bc0b720791603e59d926ae7f2ecff6fb2ceb6d582d15f4249ece3c19
languageName: node
linkType: hard
@@ -3282,7 +3282,7 @@ __metadata:
resolution: "@polkadot/react-api@workspace:packages/react-api"
dependencies:
"@babel/runtime": ^7.9.2
- "@polkadot/api": ^1.12.0-beta.9
+ "@polkadot/api": ^1.12.0-beta.11
"@polkadot/extension-dapp": ^0.25.0-beta.3
rxjs-compat: ^6.5.5
languageName: unknown
@@ -3293,7 +3293,7 @@ __metadata:
resolution: "@polkadot/react-components@workspace:packages/react-components"
dependencies:
"@babel/runtime": ^7.9.2
- "@polkadot/keyring": ^2.9.0-beta.1
+ "@polkadot/keyring": ^2.9.0-beta.3
"@polkadot/react-api": 0.42.0-beta.39
"@polkadot/react-identicon": ^0.53.0-beta.1
"@polkadot/react-query": 0.42.0-beta.39
@@ -3399,35 +3399,35 @@ __metadata:
languageName: unknown
linkType: soft
-"@polkadot/rpc-core@npm:1.12.0-beta.9":
- version: 1.12.0-beta.9
- resolution: "@polkadot/rpc-core@npm:1.12.0-beta.9"
+"@polkadot/rpc-core@npm:1.12.0-beta.11":
+ version: 1.12.0-beta.11
+ resolution: "@polkadot/rpc-core@npm:1.12.0-beta.11"
dependencies:
"@babel/runtime": ^7.9.2
- "@polkadot/metadata": 1.12.0-beta.9
- "@polkadot/rpc-provider": 1.12.0-beta.9
- "@polkadot/types": 1.12.0-beta.9
+ "@polkadot/metadata": 1.12.0-beta.11
+ "@polkadot/rpc-provider": 1.12.0-beta.11
+ "@polkadot/types": 1.12.0-beta.11
"@polkadot/util": ^2.9.0-beta.1
memoizee: ^0.4.14
rxjs: ^6.5.5
- checksum: 2/ed045b5461615cdc8678fc5a4415d6e5ccf62b777216c57bc16545373307d1c89ecfed9b9f2ce7d79b7cd86c055aa7d9ed786243181068b722f25ee2cb4b45a3
+ checksum: 2/5fdbd93bc8524746c0b399441e7ad46a0dcbab0954cf05f404fe3afdd4c978c15a399b05d46d81904fb820bbfea8d02fd67a719911273576c2d64f0db83d62eb
languageName: node
linkType: hard
-"@polkadot/rpc-provider@npm:1.12.0-beta.9":
- version: 1.12.0-beta.9
- resolution: "@polkadot/rpc-provider@npm:1.12.0-beta.9"
+"@polkadot/rpc-provider@npm:1.12.0-beta.11":
+ version: 1.12.0-beta.11
+ resolution: "@polkadot/rpc-provider@npm:1.12.0-beta.11"
dependencies:
"@babel/runtime": ^7.9.2
- "@polkadot/metadata": 1.12.0-beta.9
- "@polkadot/types": 1.12.0-beta.9
+ "@polkadot/metadata": 1.12.0-beta.11
+ "@polkadot/types": 1.12.0-beta.11
"@polkadot/util": ^2.9.0-beta.1
"@polkadot/util-crypto": ^2.9.0-beta.1
bn.js: ^5.1.1
eventemitter3: ^4.0.0
isomorphic-fetch: ^2.2.1
websocket: ^1.0.31
- checksum: 2/19e789398e2c5b7ca62a2f9688b08f59f9a73ff519ac15d9b15740e4093088276dbc878428385d19e7f6fca374094533e0c9cfef7a8aae42025bceaf0d2165b4
+ checksum: 2/ae4d2e8125c56e2cedeaa25b0d40cbcd5fec0b2e52e5fc5f5ee42613edfe4893bafc76184c9f2b257a19831f273bf5d3426b5691b4ed2b70313bc0cf569dd402
languageName: node
linkType: hard
@@ -3440,31 +3440,31 @@ __metadata:
languageName: node
linkType: hard
-"@polkadot/types-known@npm:1.12.0-beta.9":
- version: 1.12.0-beta.9
- resolution: "@polkadot/types-known@npm:1.12.0-beta.9"
+"@polkadot/types-known@npm:1.12.0-beta.11":
+ version: 1.12.0-beta.11
+ resolution: "@polkadot/types-known@npm:1.12.0-beta.11"
dependencies:
"@babel/runtime": ^7.9.2
- "@polkadot/types": 1.12.0-beta.9
+ "@polkadot/types": 1.12.0-beta.11
"@polkadot/util": ^2.9.0-beta.1
bn.js: ^5.1.1
- checksum: 2/f3505dd113d97f900fd6c2dd71abc08af3c1790d31901a097421912e8764e6e56d07455c5e0284818188a60be8cf8ba34f87cf8ae700d020404bec99b1787d71
+ checksum: 2/1ddca8deefcdbb643e921accefcf6a67c77b48a6889d10ef8a4850e0a1fdb85500854bec0ec7a0370b2f96d16f6005db1c46bf981cfdfd9583f824167dac9950
languageName: node
linkType: hard
-"@polkadot/types@npm:^1.12.0-beta.9":
- version: 1.12.0-beta.9
- resolution: "@polkadot/types@npm:1.12.0-beta.9"
+"@polkadot/types@npm:^1.12.0-beta.11":
+ version: 1.12.0-beta.11
+ resolution: "@polkadot/types@npm:1.12.0-beta.11"
dependencies:
"@babel/runtime": ^7.9.2
- "@polkadot/metadata": 1.12.0-beta.9
+ "@polkadot/metadata": 1.12.0-beta.11
"@polkadot/util": ^2.9.0-beta.1
"@polkadot/util-crypto": ^2.9.0-beta.1
"@types/bn.js": ^4.11.6
bn.js: ^5.1.1
memoizee: ^0.4.14
rxjs: ^6.5.5
- checksum: 2/c1e522284ef0865feccde24c62de6655e32a05914d3dd74298b02c41c4311492e9313e02bc0c2eacdb702a29ad7ad880c1071a0b09a3ec8a78414c1e2828762e
+ checksum: 2/ac3bdd1effcc57830935d8e3534331378b12d8ade4e78f6a2657f7bb12c22e9646eba143c8052a4d77c58d54727f8cf2c7f348781c9382e29dfee548f2d87945
languageName: node
linkType: hard
@@ -3517,12 +3517,12 @@ __metadata:
languageName: node
linkType: hard
-"@polkadot/util-crypto@npm:^2.9.0-beta.1":
- version: 2.9.0-beta.1
- resolution: "@polkadot/util-crypto@npm:2.9.0-beta.1"
+"@polkadot/util-crypto@npm:^2.9.0-beta.3":
+ version: 2.9.0-beta.3
+ resolution: "@polkadot/util-crypto@npm:2.9.0-beta.3"
dependencies:
"@babel/runtime": ^7.9.2
- "@polkadot/util": 2.9.0-beta.1
+ "@polkadot/util": 2.9.0-beta.3
"@polkadot/wasm-crypto": ^1.2.1
base-x: ^3.0.8
bip39: ^3.0.2
@@ -3534,13 +3534,13 @@ __metadata:
pbkdf2: ^3.0.17
tweetnacl: ^1.0.3
xxhashjs: ^0.2.2
- checksum: 2/ec3339cce2808102cf6c645a522f08d844e1010d504e9cf3ee8f67a4fea249cd90b3d9acb7dc0c0f63bb16ecf8812a6ec1986c666c00d84a3f8a0adb0f1e7bd2
+ checksum: 2/f3825919b8d8b94cf977937d3113afd1d350b47f89903959778ed4b618d7a95fac37f22d69af0c16fe95657049acf8579c3ebc907ad0bb702d4e9025d3d52a6a
languageName: node
linkType: hard
-"@polkadot/util@npm:^2.9.0-beta.1":
- version: 2.9.0-beta.1
- resolution: "@polkadot/util@npm:2.9.0-beta.1"
+"@polkadot/util@npm:^2.9.0-beta.3":
+ version: 2.9.0-beta.3
+ resolution: "@polkadot/util@npm:2.9.0-beta.3"
dependencies:
"@babel/runtime": ^7.9.2
"@types/bn.js": ^4.11.6
@@ -3548,7 +3548,7 @@ __metadata:
camelcase: ^5.3.1
chalk: ^4.0.0
ip-regex: ^4.1.0
- checksum: 2/4d2d9f16413ae2b23c49dab1681907563196db3e41c0a926e72b0aa8f689ac860a2066f16be78d1301edf7d5ef176024f6a3776d49920386fb85eb992189734f
+ checksum: 2/c2231b36075654bf7e7b91a682ac647028d351f48fa651e2d54d1c424cede45612a2bd896f4b06264f7c1e165d50c44f125df5a38046a21ea53735f316209428
languageName: node
linkType: hard
|