Remove deprecated contracts calls (#5183)

* Remove deprectaed contracts calls

* Drop support for contracts V2
This commit is contained in:
Jaco 2021-05-01 11:27:10 +03:00 committed by GitHub
parent 9014b2f225
commit 8825a693f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
19 changed files with 231 additions and 229 deletions

View File

@ -12,13 +12,13 @@
"packages/*"
],
"resolutions": {
"@polkadot/api": "^4.7.3-3",
"@polkadot/api-contract": "^4.7.3-3",
"@polkadot/api": "^4.7.3-10",
"@polkadot/api-contract": "^4.7.3-10",
"@polkadot/hw-ledger": "^6.3.1",
"@polkadot/keyring": "^6.3.1",
"@polkadot/networks": "^6.3.1",
"@polkadot/phishing": "^0.6.118",
"@polkadot/types": "^4.7.3-3",
"@polkadot/phishing": "^0.6.121",
"@polkadot/types": "^4.7.3-10",
"@polkadot/util": "^6.3.1",
"@polkadot/util-crypto": "^6.3.1",
"@polkadot/wasm-crypto": "^4.0.2",

View File

@ -12,7 +12,7 @@ export default function create (t: TFunction): Route {
display: {
needsAccounts: true,
needsApi: [
'tx.contracts.call'
'tx.contracts.instantiateWithCode'
]
},
group: 'developer',

View File

@ -7,7 +7,7 @@
"@babel/runtime": "^7.14.0",
"@polkadot/phishing": "^0.6.121",
"@polkadot/react-components": "^0.89.2-25",
"@polkadot/vanitygen": "^0.33.1",
"@polkadot/vanitygen": "^0.33.2-0",
"detect-browser": "^5.2.0",
"file-saver": "^2.0.5"
},

View File

@ -5,6 +5,6 @@
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@polkadot/api-contract": "^4.7.3-3"
"@polkadot/api-contract": "^4.7.3-10"
}
}

View File

@ -29,12 +29,8 @@ function Add ({ onClose }: Props): React.ReactElement {
return;
}
store
.saveCode(codeHash, { abi, name, tags: [] })
.then(() => onClose())
.catch((error): void => {
console.error('Unable to save code', error);
});
store.saveCode(codeHash, { abi, name, tags: [] });
onClose();
},
[abi, codeHash, name, onClose]
);

View File

@ -3,6 +3,7 @@
import type { SubmittableExtrinsic } from '@polkadot/api/types';
import type { CodeSubmittableResult } from '@polkadot/api-contract/promise/types';
import type { AbiParam } from '@polkadot/api-contract/types';
import React, { useCallback, useEffect, useMemo, useState } from 'react';
@ -11,7 +12,7 @@ import { Button, Dropdown, InputAddress, InputBalance, InputFile, MarkError, Mod
import { useAccountId, useApi, useNonEmptyString, useNonZeroBn, useStepper } from '@polkadot/react-hooks';
import { Available } from '@polkadot/react-query';
import { keyring } from '@polkadot/ui-keyring';
import { isFunction, isNull, isWasm } from '@polkadot/util';
import { isNull, isWasm, stringify } from '@polkadot/util';
import { ENDOWMENT } from '../constants';
import { ABI, InputMegaGas, InputName, MessageSignature, Params } from '../shared';
@ -30,9 +31,10 @@ function Upload ({ onClose }: Props): React.ReactElement {
const [accountId, setAccountId] = useAccountId();
const [step, nextStep, prevStep] = useStepper();
const [[uploadTx, error], setUploadTx] = useState<[SubmittableExtrinsic<'promise'> | null, string | null]>([null, null]);
const [constructorIndex, setConstructorIndex] = useState(0);
const [constructorId, setConstructorId] = useState<string | null>();
const [endowment, isEndowmentValid, setEndowment] = useNonZeroBn(ENDOWMENT);
const [params, setParams] = useState<any[]>([]);
const [abiParams, setAbiParams] = useState<AbiParam[]>([]);
const [[wasm, isWasmValid], setWasm] = useState<[Uint8Array | null, boolean]>([null, false]);
const [name, isNameValid, setName] = useNonEmptyString();
const { abiName, contractAbi, errorText, isAbiError, isAbiSupplied, isAbiValid, onChangeAbi, onRemoveAbi } = useAbi();
@ -47,30 +49,31 @@ function Upload ({ onClose }: Props): React.ReactElement {
const constructOptions = useMemo(
() => contractAbi
? contractAbi.constructors.map((message, index) => ({
info: message.identifier,
key: `${index}`,
? contractAbi.constructors.map((c) => ({
info: c.identifier,
key: c.identifier,
text: (
<MessageSignature
asConstructor
message={message}
message={c}
/>
),
value: index
value: c.method
}))
: [],
[contractAbi]
);
useEffect((): void => {
setConstructorIndex(() =>
constructOptions.find(({ info }) => info === 'default')?.value || 0
setConstructorId(
(constructOptions.find(({ info }) => info === 'default') || constructOptions[0]).value
);
}, [constructOptions]);
useEffect((): void => {
setParams([]);
}, [constructorIndex]);
constructorId && contractAbi && setAbiParams(contractAbi.findConstructor(constructorId).args);
}, [contractAbi, constructorId]);
useEffect((): void => {
setWasm(
@ -89,15 +92,15 @@ function Upload ({ onClose }: Props): React.ReactElement {
let error: string | null = null;
try {
contract = code && contractAbi && endowment
? code.createContract(constructorIndex, { gasLimit: weight.weight, value: endowment }, params)
contract = code && contractAbi && endowment && constructorId
? code.tx[constructorId]({ gasLimit: weight.weight, value: endowment }, params)
: null;
} catch (e) {
error = (e as Error).message;
}
setUploadTx(() => [contract, error]);
}, [code, contractAbi, constructorIndex, endowment, params, weight]);
}, [code, contractAbi, constructorId, endowment, params, weight]);
const _onAddWasm = useCallback(
(wasm: Uint8Array, name: string): void => {
@ -109,16 +112,14 @@ function Upload ({ onClose }: Props): React.ReactElement {
const _onSuccess = useCallback(
(result: CodeSubmittableResult): void => {
result.blueprint && store
.saveCode(result.blueprint.codeHash, {
abi: JSON.stringify(result.blueprint.abi.json),
name: name || '<>',
tags: []
})
.catch(console.error);
result.blueprint && store.saveCode(result.blueprint.codeHash, {
abi: stringify(result.blueprint.abi.json),
name: name || '<>',
tags: []
});
result.contract && keyring.saveContract(result.contract.address.toString(), {
contract: {
abi: JSON.stringify(result.contract.abi.json),
abi: stringify(result.contract.abi.json),
genesisHash: api.genesisHash.toHex()
},
name: name || '<>',
@ -130,7 +131,6 @@ function Upload ({ onClose }: Props): React.ReactElement {
const isSubmittable = !!accountId && (!isNull(name) && isNameValid) && isWasmValid && isAbiSupplied && isAbiValid && !!uploadTx && step === 2;
const invalidAbi = isAbiError || !isAbiSupplied;
const hasBatchDeploy = isFunction(api.tx.contracts.instantiateWithCode) || isFunction(api.tx.utility?.batch);
return (
<Modal header={t('Upload & deploy code {{info}}', { replace: { info: `${step}/2` } })}>
@ -162,9 +162,6 @@ function Upload ({ onClose }: Props): React.ReactElement {
onRemove={onRemoveAbi}
withWasm
/>
{!hasBatchDeploy && (
<MarkError content={t<string>('Your environment does not support the latest instantiateWithCode contracts call, nor does it have utility.batch functionality available. This operation is not available.')} />
)}
{!invalidAbi && contractAbi && (
<>
{!contractAbi.project.source.wasm.length && (
@ -191,13 +188,13 @@ function Upload ({ onClose }: Props): React.ReactElement {
help={t<string>('The deployment constructor information for this contract, as provided by the ABI.')}
isDisabled={contractAbi.constructors.length <= 1}
label={t('deployment constructor')}
onChange={setConstructorIndex}
onChange={setConstructorId}
options={constructOptions}
value={constructorIndex}
value={constructorId}
/>
<Params
onChange={setParams}
params={contractAbi.constructors[constructorIndex].args}
params={abiParams}
registry={contractAbi.registry}
/>
<InputBalance
@ -222,7 +219,7 @@ function Upload ({ onClose }: Props): React.ReactElement {
? (
<Button
icon='step-forward'
isDisabled={!code || !contractAbi || !hasBatchDeploy}
isDisabled={!code || !contractAbi}
label={t<string>('Next')}
onClick={nextStep}
/>

View File

@ -54,7 +54,7 @@ function Call ({ className = '', contract, messageIndex, onCallResult, onChangeM
useEffect((): void => {
value && message.isMutating && setExecTx((): SubmittableExtrinsic<'promise'> | null => {
try {
return contract.exec(message, { gasLimit: weight.weight, value: message.isPayable ? value : 0 }, ...params);
return contract.tx[message.method]({ gasLimit: weight.weight, value: message.isPayable ? value : 0 }, ...params);
} catch (error) {
return null;
}
@ -65,8 +65,7 @@ function Call ({ className = '', contract, messageIndex, onCallResult, onChangeM
if (!accountId || !message || !dbParams || !dbValue) return;
contract
.read(message, { gasLimit: -1, value: message.isPayable ? dbValue : 0 }, ...dbParams)
.send(accountId)
.query[message.method](accountId, { gasLimit: -1, value: message.isPayable ? dbValue : 0 }, ...dbParams)
.then(({ gasConsumed, result }) => setEstimatedWeight(
result.isOk
? gasConsumed
@ -80,8 +79,7 @@ function Call ({ className = '', contract, messageIndex, onCallResult, onChangeM
if (!accountId || !message || !value || !weight) return;
contract
.read(message, { gasLimit: weight.isEmpty ? -1 : weight.weight, value: message.isPayable ? value : 0 }, ...params)
.send(accountId)
.query[message.method](accountId, { gasLimit: weight.isEmpty ? -1 : weight.weight, value: message.isPayable ? value : 0 }, ...params)
.then((result): void => {
setOutcomes([{
...result,

View File

@ -11,7 +11,7 @@ import { Dropdown, Input, InputAddress, InputBalance, Modal, Toggle, TxButton }
import { useApi, useFormField, useNonEmptyString, useNonZeroBn } from '@polkadot/react-hooks';
import { Available } from '@polkadot/react-query';
import { keyring } from '@polkadot/ui-keyring';
import { isHex } from '@polkadot/util';
import { isHex, stringify } from '@polkadot/util';
import { randomAsHex } from '@polkadot/util-crypto';
import { ENDOWMENT } from '../constants';
@ -94,7 +94,7 @@ function Deploy ({ codeHash, constructorIndex = 0, onClose, setConstructorIndex
if (result.contract) {
keyring.saveContract(result.contract.address.toString(), {
contract: {
abi: JSON.stringify(result.contract.abi.json),
abi: stringify(result.contract.abi.json),
genesisHash: api.genesisHash.toHex()
},
name,

View File

@ -3,33 +3,33 @@
import type { AppProps as Props } from '@polkadot/react-components/types';
import React, { useCallback, useEffect, useState } from 'react';
import React, { useCallback, useState } from 'react';
import styled from 'styled-components';
import { Button } from '@polkadot/react-components';
import { useContracts, useToggle } from '@polkadot/react-hooks';
import { useToggle } from '@polkadot/react-hooks';
import Codes from '../Codes';
import CodeAdd from '../Codes/Add';
import CodeUpload from '../Codes/Upload';
import ContractAdd from '../Contracts/Add';
import ContractsTable from '../Contracts/ContractsTable';
import store from '../store';
import { useTranslation } from '../translate';
import { useCodes } from '../useCodes';
import { useContracts } from '../useContracts';
import Deploy from './Deploy';
import Summary from './Summary';
function Contracts ({ className = '' }: Props): React.ReactElement<Props> {
const { t } = useTranslation();
const { allCodes, codeTrigger } = useCodes();
const { allContracts } = useContracts();
const [codeHash, setCodeHash] = useState<string | undefined>();
const [constructorIndex, setConstructorIndex] = useState(0);
const [isAddOpen, toggleAdd] = useToggle();
const [isDeployOpen, toggleDeploy, setIsDeployOpen] = useToggle();
const [isHashOpen, toggleHash] = useToggle();
const [isUploadOpen, toggleUpload] = useToggle();
const [updated, setUpdated] = useState(() => Date.now());
const [allCodes, setAllCodes] = useState(() => store.getAllCode());
const [codeHash, setCodeHash] = useState<string | undefined>();
const [constructorIndex, setConstructorIndex] = useState(0);
const _onShowDeploy = useCallback(
(codeHash: string, constructorIndex: number): void => {
@ -45,28 +45,9 @@ function Contracts ({ className = '' }: Props): React.ReactElement<Props> {
[setIsDeployOpen]
);
useEffect(
(): void => {
const triggerUpdate = (): void => {
setUpdated(Date.now());
setAllCodes(store.getAllCode());
};
store.on('new-code', triggerUpdate);
store.on('removed-code', triggerUpdate);
store
.loadAll()
.then(() => setAllCodes(store.getAllCode()))
.catch((): void => {
// noop, handled internally
});
},
[]
);
return (
<div className={className}>
<Summary trigger={updated} />
<Summary trigger={codeTrigger} />
<Button.Group>
<Button
icon='plus'
@ -86,11 +67,11 @@ function Contracts ({ className = '' }: Props): React.ReactElement<Props> {
</Button.Group>
<ContractsTable
contracts={allContracts}
updated={updated}
updated={codeTrigger}
/>
<Codes
onShowDeploy={_onShowDeploy}
updated={updated}
updated={codeTrigger}
/>
{codeHash && isDeployOpen && (
<Deploy

View File

@ -8,7 +8,6 @@ import styled from 'styled-components';
import { Icon } from '@polkadot/react-components';
import Row from '@polkadot/react-components/Row';
import { useApi } from '@polkadot/react-hooks';
import contracts from '../store';
@ -25,7 +24,6 @@ const DEFAULT_HASH = '0x';
const DEFAULT_NAME = '<unknown>';
function CodeRow ({ buttons, children, className, code: { json }, isInline, withTags }: Props): React.ReactElement<Props> {
const { api } = useApi();
const [name, setName] = useState(json.name || DEFAULT_NAME);
const [tags, setTags] = useState(json.tags || []);
const [codeHash, setCodeHash] = useState(json.codeHash || DEFAULT_HASH);
@ -41,20 +39,17 @@ function CodeRow ({ buttons, children, className, code: { json }, isInline, with
const trimmedName = name.trim();
if (trimmedName && codeHash) {
contracts.saveCode(api.createType('Hash', codeHash), { name })
.catch((e): void => console.error(e));
contracts.saveCode(codeHash, { name });
}
},
[api, codeHash, name]
[codeHash, name]
);
const _onSaveTags = useCallback(
(): void => {
codeHash && contracts
.saveCode(api.createType('Hash', codeHash), { tags })
.catch((e): void => console.error(e));
codeHash && contracts.saveCode(codeHash, { tags });
},
[api, codeHash, tags]
[codeHash, tags]
);
return (

View File

@ -8,7 +8,6 @@ import styled from 'styled-components';
import { Icon, Tooltip } from '@polkadot/react-components';
import { encodeTypeDef } from '@polkadot/types/create';
import { stringCamelCase } from '@polkadot/util';
import { useTranslation } from '../translate';
@ -28,12 +27,12 @@ function truncate (param: string): string {
: param;
}
function MessageSignature ({ className, message: { args, identifier, isConstructor, isMutating, returnType }, params = [], withTooltip = false }: Props): React.ReactElement<Props> {
function MessageSignature ({ className, message: { args, isConstructor, isMutating, method, returnType }, params = [], withTooltip = false }: Props): React.ReactElement<Props> {
const { t } = useTranslation();
return (
<div className={className}>
<span className='ui--MessageSignature-name'>{stringCamelCase(identifier)}</span>
<span className='ui--MessageSignature-name'>{method}</span>
{' '}({args.map(({ name, type }, index): React.ReactNode => {
return (
<React.Fragment key={`${name}-args-${index}`}>
@ -63,12 +62,12 @@ function MessageSignature ({ className, message: { args, identifier, isConstruct
<Icon
className='ui--MessageSignature-mutates'
icon='database'
tooltip={`mutates-${identifier}`}
tooltip={`mutates-${method}`}
/>
{withTooltip && (
<Tooltip
text={t<string>('Mutates contract state')}
trigger={`mutates-${identifier}`}
trigger={`mutates-${method}`}
/>
)}
</>

View File

@ -10,7 +10,7 @@ import UIParams from '@polkadot/react-params';
interface Props {
isDisabled?: boolean;
params?: ParamDef[];
params?: ParamDef[] | null | '';
onChange: (values: any[]) => void;
onEnter?: () => void;
registry: Registry;

View File

@ -9,32 +9,32 @@ import store from 'store';
import { Abi } from '@polkadot/api-contract';
import { api } from '@polkadot/react-api';
import { isString } from '@polkadot/util';
const KEY_CODE = 'code:';
class Store extends EventEmitter {
private allCode: Record<string, CodeStored> = {};
#allCode: Record<string, CodeStored> = {};
public get hasCode (): boolean {
return Object.keys(this.allCode).length !== 0;
return Object.keys(this.#allCode).length !== 0;
}
public getAllCode (): CodeStored[] {
return Object.values(this.allCode);
return Object.values(this.#allCode);
}
public getCode (codeHash: string): CodeStored | undefined {
return this.allCode[codeHash];
return this.#allCode[codeHash];
}
// eslint-disable-next-line @typescript-eslint/require-await
public async saveCode (codeHash: string | Hash, partial: Partial<CodeJson>): Promise<void> {
const hex = (typeof codeHash === 'string' ? api.registry.createType('Hash', codeHash) : codeHash).toHex();
const existing = this.getCode(hex);
public saveCode (_codeHash: string | Hash, partial: Partial<CodeJson>): void {
const codeHash = (isString(_codeHash) ? api.registry.createType('Hash', _codeHash) : _codeHash).toHex();
const existing = this.getCode(codeHash);
const json = {
...(existing ? existing.json : {}),
...partial,
codeHash: hex,
codeHash,
genesisHash: api.genesisHash.toHex(),
whenCreated: existing?.json.whenCreated || Date.now()
};
@ -48,21 +48,17 @@ class Store extends EventEmitter {
this.removeCode(`${KEY_CODE}${codeHash}`, codeHash);
}
public async loadAll (): Promise<void> {
public loadAll (onLoaded?: () => void): void {
try {
await api.isReady;
const genesisHash = api.genesisHash.toHex();
store.each((json: CodeJson, key: string): void => {
if (json && json.genesisHash !== genesisHash) {
return;
}
if (key.startsWith(KEY_CODE)) {
if (json && json.genesisHash === genesisHash && key.startsWith(KEY_CODE)) {
this.addCode(key, json);
}
});
onLoaded && onLoaded();
} catch (error) {
console.error('Unable to load code', error);
}
@ -70,7 +66,7 @@ class Store extends EventEmitter {
private addCode (key: string, json: CodeJson): void {
try {
this.allCode[json.codeHash] = {
this.#allCode[json.codeHash] = {
contractAbi: json.abi
? new Abi(json.abi, api.registry.getChainProperties())
: undefined,
@ -86,7 +82,7 @@ class Store extends EventEmitter {
private removeCode (key: string, codeHash: string): void {
try {
delete this.allCode[codeHash];
delete this.#allCode[codeHash];
store.remove(key);
this.emit('removed-code');
} catch (error) {

View File

@ -0,0 +1,39 @@
// Copyright 2017-2021 @polkadot/react-hooks authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { CodeStored } from './types';
import { useEffect, useState } from 'react';
import { useIsMountedRef } from '@polkadot/react-hooks';
import store from './store';
interface UseCodes {
allCodes: CodeStored[];
codeTrigger: number;
}
const DEFAULT_STATE: UseCodes = { allCodes: [], codeTrigger: Date.now() };
export function useCodes (): UseCodes {
const mountedRef = useIsMountedRef();
const [state, setState] = useState<UseCodes>(DEFAULT_STATE);
useEffect(
(): void => {
const triggerUpdate = (): void => {
mountedRef.current &&
setState({ allCodes: store.getAllCode(), codeTrigger: Date.now() });
};
store.on('new-code', triggerUpdate);
store.on('removed-code', triggerUpdate);
store.loadAll(triggerUpdate);
},
// eslint-disable-next-line react-hooks/exhaustive-deps
[]
);
return state;
}

View File

@ -3,26 +3,27 @@
import { useEffect, useState } from 'react';
import { useIsMountedRef } from '@polkadot/react-hooks';
import { keyring } from '@polkadot/ui-keyring';
import { useIsMountedRef } from './useIsMountedRef';
interface UseContracts {
allContracts: string[];
hasContracts: boolean;
isContract: (address: string) => boolean;
}
const DEFAULT_STATE: UseContracts = { allContracts: [], hasContracts: false, isContract: () => false };
export function useContracts (): UseContracts {
const mountedRef = useIsMountedRef();
const [state, setState] = useState<UseContracts>({ allContracts: [], hasContracts: false, isContract: () => false });
const [state, setState] = useState<UseContracts>(DEFAULT_STATE);
useEffect((): () => void => {
const subscription = keyring.contracts.subject.subscribe((contracts): void => {
if (mountedRef.current) {
const allContracts = contracts ? Object.keys(contracts) : [];
const hasContracts = allContracts.length !== 0;
const isContract = (address: string): boolean => allContracts.includes(address);
const isContract = (address: string) => allContracts.includes(address);
setState({ allContracts, hasContracts, isContract });
}
@ -31,7 +32,8 @@ export function useContracts (): UseContracts {
return (): void => {
setTimeout(() => subscription.unsubscribe(), 0);
};
}, [mountedRef]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
return state;
}

View File

@ -5,7 +5,7 @@
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.14.0",
"@polkadot/api": "^4.7.3-3",
"@polkadot/api": "^4.7.3-10",
"@polkadot/extension-dapp": "^0.37.3-17",
"@polkadot/x-rxjs": "^6.3.1",
"fflate": "^0.6.10"

View File

@ -10,11 +10,11 @@
"@fortawesome/react-fontawesome": "^0.1.14",
"@polkadot/keyring": "^6.3.1",
"@polkadot/react-api": "^0.89.2-25",
"@polkadot/react-identicon": "^0.75.1",
"@polkadot/react-qr": "^0.75.1",
"@polkadot/react-identicon": "^0.75.2-0",
"@polkadot/react-qr": "^0.75.2-0",
"@polkadot/react-query": "^0.89.2-25",
"@polkadot/ui-keyring": "^0.75.1",
"@polkadot/ui-settings": "^0.75.1",
"@polkadot/ui-keyring": "^0.75.2-0",
"@polkadot/ui-settings": "^0.75.2-0",
"@polkadot/util": "^6.3.1",
"@polkadot/util-crypto": "^6.3.1",
"chart.js": "^2.9.4",

View File

@ -13,7 +13,6 @@ export { useBlocksPerDays } from './useBlocksPerDays';
export { useCacheKey } from './useCacheKey';
export { useCall } from './useCall';
export { useCallMulti } from './useCallMulti';
export { useContracts } from './useContracts';
export { useFormField } from './useFormField';
export { useDebounce } from './useDebounce';
export { useEventTrigger } from './useEventTrigger';

212
yarn.lock
View File

@ -73,7 +73,7 @@ __metadata:
languageName: node
linkType: hard
"@babel/core@npm:7.14.0, @babel/core@npm:>=7.9.0, @babel/core@npm:^7.1.0, @babel/core@npm:^7.13.16, @babel/core@npm:^7.14.0, @babel/core@npm:^7.7.5":
"@babel/core@npm:7.14.0, @babel/core@npm:>=7.9.0, @babel/core@npm:^7.1.0, @babel/core@npm:^7.14.0, @babel/core@npm:^7.7.5":
version: 7.14.0
resolution: "@babel/core@npm:7.14.0"
dependencies:
@ -2198,54 +2198,54 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/api-contract@npm:^4.7.3-3":
version: 4.7.3-3
resolution: "@polkadot/api-contract@npm:4.7.3-3"
"@polkadot/api-contract@npm:^4.7.3-10":
version: 4.7.3-10
resolution: "@polkadot/api-contract@npm:4.7.3-10"
dependencies:
"@babel/runtime": ^7.13.17
"@polkadot/api": 4.7.3-3
"@polkadot/types": 4.7.3-3
"@babel/runtime": ^7.14.0
"@polkadot/api": 4.7.3-10
"@polkadot/types": 4.7.3-10
"@polkadot/util": ^6.3.1
"@polkadot/x-rxjs": ^6.3.1
bn.js: ^4.11.9
checksum: a04d6a7b910f93a09db84ac8e88c91e0ee7f72094097e6c92b284074207357a5f371b2ffaa60ef486b3c264794e23e02c2e67d776e86a89666ffef0f12e9f9ca
checksum: 976196bf7229878559d322bc927fc0307cd92daa80c3365ec29afeec48f22081503e80549981263ca4b89c19f6a27c167407ed8ea1cda373d889d28194447b54
languageName: node
linkType: hard
"@polkadot/api-derive@npm:4.7.3-3":
version: 4.7.3-3
resolution: "@polkadot/api-derive@npm:4.7.3-3"
"@polkadot/api-derive@npm:4.7.3-10":
version: 4.7.3-10
resolution: "@polkadot/api-derive@npm:4.7.3-10"
dependencies:
"@babel/runtime": ^7.13.17
"@polkadot/api": 4.7.3-3
"@polkadot/rpc-core": 4.7.3-3
"@polkadot/types": 4.7.3-3
"@babel/runtime": ^7.14.0
"@polkadot/api": 4.7.3-10
"@polkadot/rpc-core": 4.7.3-10
"@polkadot/types": 4.7.3-10
"@polkadot/util": ^6.3.1
"@polkadot/util-crypto": ^6.3.1
"@polkadot/x-rxjs": ^6.3.1
bn.js: ^4.11.9
checksum: 581f5e79c86735c02585cc8ad87773fea4f50fbd19701666037a192be70f4e7e19c42a0cb3f71ca053d6b332002a2f81e8a44086faa908567dacce50f34c37af
checksum: d1dd7c4fbe5c6f21a32732ca9f2084874baa530e2a580a728dae9154a0e136f79074155499bed9646e525308374c5d3fb2356f654b3885439248201db205b2f0
languageName: node
linkType: hard
"@polkadot/api@npm:^4.7.3-3":
version: 4.7.3-3
resolution: "@polkadot/api@npm:4.7.3-3"
"@polkadot/api@npm:^4.7.3-10":
version: 4.7.3-10
resolution: "@polkadot/api@npm:4.7.3-10"
dependencies:
"@babel/runtime": ^7.13.17
"@polkadot/api-derive": 4.7.3-3
"@babel/runtime": ^7.14.0
"@polkadot/api-derive": 4.7.3-10
"@polkadot/keyring": ^6.3.1
"@polkadot/metadata": 4.7.3-3
"@polkadot/rpc-core": 4.7.3-3
"@polkadot/rpc-provider": 4.7.3-3
"@polkadot/types": 4.7.3-3
"@polkadot/types-known": 4.7.3-3
"@polkadot/metadata": 4.7.3-10
"@polkadot/rpc-core": 4.7.3-10
"@polkadot/rpc-provider": 4.7.3-10
"@polkadot/types": 4.7.3-10
"@polkadot/types-known": 4.7.3-10
"@polkadot/util": ^6.3.1
"@polkadot/util-crypto": ^6.3.1
"@polkadot/x-rxjs": ^6.3.1
bn.js: ^4.11.9
eventemitter3: ^4.0.7
checksum: 76cc1687b32b35ca7ac2ec3607d80aa8e055797e52fffee5e50569939bf70305bf0d91f0775205e428591083dfb64f691db225758b9a175a801b7e63e2de3d71
checksum: 846d13c5bbbd313c8b2c95237533feaf50228b9851036a36fe9d6f531c346468fda5190d6b6fc422e64e30917454d1dd9c62c3480ae22a22f0a77880b8daa7e1
languageName: node
linkType: hard
@ -2257,7 +2257,7 @@ __metadata:
"@polkadot/phishing": ^0.6.121
"@polkadot/react-components": ^0.89.2-25
"@polkadot/test-support": 0.89.2-25
"@polkadot/vanitygen": ^0.33.1
"@polkadot/vanitygen": ^0.33.2-0
detect-browser: ^5.2.0
file-saver: ^2.0.5
languageName: unknown
@ -2318,7 +2318,7 @@ __metadata:
resolution: "@polkadot/app-contracts@workspace:packages/page-contracts"
dependencies:
"@babel/runtime": ^7.14.0
"@polkadot/api-contract": ^4.7.3-3
"@polkadot/api-contract": ^4.7.3-10
languageName: unknown
linkType: soft
@ -2748,17 +2748,17 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/metadata@npm:4.7.3-3":
version: 4.7.3-3
resolution: "@polkadot/metadata@npm:4.7.3-3"
"@polkadot/metadata@npm:4.7.3-10":
version: 4.7.3-10
resolution: "@polkadot/metadata@npm:4.7.3-10"
dependencies:
"@babel/runtime": ^7.13.17
"@polkadot/types": 4.7.3-3
"@polkadot/types-known": 4.7.3-3
"@babel/runtime": ^7.14.0
"@polkadot/types": 4.7.3-10
"@polkadot/types-known": 4.7.3-10
"@polkadot/util": ^6.3.1
"@polkadot/util-crypto": ^6.3.1
bn.js: ^4.11.9
checksum: cd581c7cae754117f94b8486e4205569dc11c4a55dc20e5d422aa99457e76ae2b6c37e8844e35c6dadf10124374b8969e59e14c95bf73f99534bb631f5d09552
checksum: 40c1ad6dd22deb170e99a2d4e6bc9a7fbe33643c22da6967c46294655295e07ceebb97946e6f96e9bbf367ab861fea280d18b33585430ba36d0639a662ea9b02
languageName: node
linkType: hard
@ -2771,15 +2771,15 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/phishing@npm:^0.6.118":
version: 0.6.118
resolution: "@polkadot/phishing@npm:0.6.118"
"@polkadot/phishing@npm:^0.6.121":
version: 0.6.121
resolution: "@polkadot/phishing@npm:0.6.121"
dependencies:
"@babel/runtime": ^7.13.17
"@babel/runtime": ^7.14.0
"@polkadot/util": ^6.3.1
"@polkadot/util-crypto": ^6.3.1
"@polkadot/x-fetch": ^6.3.1
checksum: c9af2c79d3bbe252e55ceb557f9d9c64e5bf19e7b5ebbc689668d3e7113001ba1933049669fc4c64615f06ae86fc43ef31d8f31e7de81f583cfaf8931f837e68
checksum: 12590b5f2f8dd5ba92fbe68885f98b0928ac6677dc35a40f10540835bf2a66de98f77d13e0d48ea3a1b172ba9664f4a43181a665ba65342933f7ebcf3fae790f
languageName: node
linkType: hard
@ -2788,7 +2788,7 @@ __metadata:
resolution: "@polkadot/react-api@workspace:packages/react-api"
dependencies:
"@babel/runtime": ^7.14.0
"@polkadot/api": ^4.7.3-3
"@polkadot/api": ^4.7.3-10
"@polkadot/extension-dapp": ^0.37.3-17
"@polkadot/x-rxjs": ^6.3.1
fflate: ^0.6.10
@ -2805,11 +2805,11 @@ __metadata:
"@fortawesome/react-fontawesome": ^0.1.14
"@polkadot/keyring": ^6.3.1
"@polkadot/react-api": ^0.89.2-25
"@polkadot/react-identicon": ^0.75.1
"@polkadot/react-qr": ^0.75.1
"@polkadot/react-identicon": ^0.75.2-0
"@polkadot/react-qr": ^0.75.2-0
"@polkadot/react-query": ^0.89.2-25
"@polkadot/ui-keyring": ^0.75.1
"@polkadot/ui-settings": ^0.75.1
"@polkadot/ui-keyring": ^0.75.2-0
"@polkadot/ui-settings": ^0.75.2-0
"@polkadot/util": ^6.3.1
"@polkadot/util-crypto": ^6.3.1
"@types/codeflask": ^1.4.2
@ -2846,14 +2846,14 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/react-identicon@npm:^0.75.1":
version: 0.75.1
resolution: "@polkadot/react-identicon@npm:0.75.1"
"@polkadot/react-identicon@npm:^0.75.2-0":
version: 0.75.2-0
resolution: "@polkadot/react-identicon@npm:0.75.2-0"
dependencies:
"@babel/runtime": ^7.13.17
"@babel/runtime": ^7.14.0
"@polkadot/keyring": ^6.3.1
"@polkadot/ui-settings": 0.75.1
"@polkadot/ui-shared": 0.75.1
"@polkadot/ui-settings": 0.75.2-0
"@polkadot/ui-shared": 0.75.2-0
"@polkadot/util": ^6.3.1
"@polkadot/util-crypto": ^6.3.1
color: ^3.1.3
@ -2869,7 +2869,7 @@ __metadata:
react-dom: "*"
react-is: "*"
styled-components: "*"
checksum: 4ad3fe9789c8ba1ff388828130843736fc751ba2326b545fdcd35a860ebac087bb0a4f9e92247f5d7a7836a2051c97540e2fe3404f62465db67a5eaffc8d9c39
checksum: 14919db1d1968d01c99fc1129bbbe80ce23b6c4e9fcdeacea562629a4fecbb8d7f68cccc7310074738a317ac51db6a20668ecd355ed8b9d7b64acbc005afc225
languageName: node
linkType: hard
@ -2882,11 +2882,11 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/react-qr@npm:^0.75.1":
version: 0.75.1
resolution: "@polkadot/react-qr@npm:0.75.1"
"@polkadot/react-qr@npm:^0.75.2-0":
version: 0.75.2-0
resolution: "@polkadot/react-qr@npm:0.75.2-0"
dependencies:
"@babel/runtime": ^7.13.17
"@babel/runtime": ^7.14.0
"@polkadot/util": ^6.3.1
"@polkadot/util-crypto": ^6.3.1
qrcode-generator: ^1.4.4
@ -2898,7 +2898,7 @@ __metadata:
react: "*"
react-dom: "*"
styled-components: "*"
checksum: bbfeff426ae39d55d85ccdbe347a48765ab0c673d397dcfdc0f3ccf54911d0cda63929a011a0caf471a7353ce504115908316fa9ded9203fe3fce2197e8257e8
checksum: adbad965f4d638de87e5df5298d5249c93e331ef4eeefa6f065bf9353769f5ed04e73cbe6e32eaf1c68718ad5dfe2bf8ebdf437c509dc47e7b374d5ae052f9ba
languageName: node
linkType: hard
@ -2919,26 +2919,26 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/rpc-core@npm:4.7.3-3":
version: 4.7.3-3
resolution: "@polkadot/rpc-core@npm:4.7.3-3"
"@polkadot/rpc-core@npm:4.7.3-10":
version: 4.7.3-10
resolution: "@polkadot/rpc-core@npm:4.7.3-10"
dependencies:
"@babel/runtime": ^7.13.17
"@polkadot/metadata": 4.7.3-3
"@polkadot/rpc-provider": 4.7.3-3
"@polkadot/types": 4.7.3-3
"@babel/runtime": ^7.14.0
"@polkadot/metadata": 4.7.3-10
"@polkadot/rpc-provider": 4.7.3-10
"@polkadot/types": 4.7.3-10
"@polkadot/util": ^6.3.1
"@polkadot/x-rxjs": ^6.3.1
checksum: f227b4b087b8e028978abc41be9630e4fe0e55ef428dd042bdcc2ca4a76726d3681167d2d6d597186a84e2a643c0b40379908c72a223295d468edc7960836b9a
checksum: 173cd14c09c1e4d23b426e767ea7c6e0774a1f4184dfda610924f332c8ff8779bafd9e47bfa786cae529efc8be7afca8aec1b6093a5a6210cf9b378ec2d5255d
languageName: node
linkType: hard
"@polkadot/rpc-provider@npm:4.7.3-3":
version: 4.7.3-3
resolution: "@polkadot/rpc-provider@npm:4.7.3-3"
"@polkadot/rpc-provider@npm:4.7.3-10":
version: 4.7.3-10
resolution: "@polkadot/rpc-provider@npm:4.7.3-10"
dependencies:
"@babel/runtime": ^7.13.17
"@polkadot/types": 4.7.3-3
"@babel/runtime": ^7.14.0
"@polkadot/types": 4.7.3-10
"@polkadot/util": ^6.3.1
"@polkadot/util-crypto": ^6.3.1
"@polkadot/x-fetch": ^6.3.1
@ -2946,7 +2946,7 @@ __metadata:
"@polkadot/x-ws": ^6.3.1
bn.js: ^4.11.9
eventemitter3: ^4.0.7
checksum: 941f6346011b24f00c462366bd4a37ee3d6ac4e16041563d19b08bcd13702de449669ed6e69c5120f4e6b1ed754b1bcaa4f0817f147237efba98d8a13a32b717
checksum: 5e9ae579aaf2c8776239ceb0f55f293a3f814fd7ea6d1a91172f3dc78abe75bfb2d4e954361402a2c97281513d7f1113c0d934f8655649a0779b476dbce116f4
languageName: node
linkType: hard
@ -2971,42 +2971,42 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/types-known@npm:4.7.3-3":
version: 4.7.3-3
resolution: "@polkadot/types-known@npm:4.7.3-3"
"@polkadot/types-known@npm:4.7.3-10":
version: 4.7.3-10
resolution: "@polkadot/types-known@npm:4.7.3-10"
dependencies:
"@babel/runtime": ^7.13.17
"@babel/runtime": ^7.14.0
"@polkadot/networks": ^6.3.1
"@polkadot/types": 4.7.3-3
"@polkadot/types": 4.7.3-10
"@polkadot/util": ^6.3.1
bn.js: ^4.11.9
checksum: df79369ed62586f000ab8862b7c625c9e401d93fd8ca83eda436a90122a771a89e539e86f96892f2bd94204790d491e090786822eba1b7aced2c962d190b85f6
checksum: 0bd0f9bf775bbd0ab12c1cada537cd03abc8131b86f96f646d82d260aaccb66e781308aa5bbc925e11f366ce0bc622a81518d6e510f15f06b59673c2394d4c13
languageName: node
linkType: hard
"@polkadot/types@npm:^4.7.3-3":
version: 4.7.3-3
resolution: "@polkadot/types@npm:4.7.3-3"
"@polkadot/types@npm:^4.7.3-10":
version: 4.7.3-10
resolution: "@polkadot/types@npm:4.7.3-10"
dependencies:
"@babel/runtime": ^7.13.17
"@polkadot/metadata": 4.7.3-3
"@babel/runtime": ^7.14.0
"@polkadot/metadata": 4.7.3-10
"@polkadot/util": ^6.3.1
"@polkadot/util-crypto": ^6.3.1
"@polkadot/x-rxjs": ^6.3.1
"@types/bn.js": ^4.11.6
bn.js: ^4.11.9
checksum: cdb459396342075ab5e0b92f9fc0a66b3234274b6487bef30b590cb9a931947feae64e00292f558de6ac371cbfb1212ae9c3a14fd3a021864cfac3fe2fe52ba0
checksum: 9e8256b884643c292c21695658e3a0486cad4c4bd4395b27921c6878ddde8ec321dac1776b3594e2705123ba65eef6299631a43c30776548b6bf8edd1fc0aeea
languageName: node
linkType: hard
"@polkadot/ui-keyring@npm:^0.75.1":
version: 0.75.1
resolution: "@polkadot/ui-keyring@npm:0.75.1"
"@polkadot/ui-keyring@npm:^0.75.2-0":
version: 0.75.2-0
resolution: "@polkadot/ui-keyring@npm:0.75.2-0"
dependencies:
"@babel/runtime": ^7.13.17
"@babel/runtime": ^7.14.0
"@polkadot/hw-ledger": ^6.3.1
"@polkadot/keyring": ^6.3.1
"@polkadot/ui-settings": 0.75.1
"@polkadot/ui-settings": 0.75.2-0
"@polkadot/util": ^6.3.1
"@polkadot/x-rxjs": ^6.3.1
mkdirp: ^1.0.4
@ -3015,15 +3015,15 @@ __metadata:
"@polkadot/keyring": "*"
"@polkadot/ui-settings": "*"
"@polkadot/util": "*"
checksum: 78383b764592db4732e86dfac2398fb3c305fe63f8ab599d73da8012328cf1561b20e47387aa36a61f9379c6b3f4a6b28b916bc5309f7df0c6fc5118efc2f013
checksum: a40bbd98352fede24ff50ced71d02f0bceb34546b9ab45b90e757893239f4a8e40311c9047afe2fdfc0b4a4cecfb7252e16e0b0d37827041215380532f220399
languageName: node
linkType: hard
"@polkadot/ui-settings@npm:0.75.1, @polkadot/ui-settings@npm:^0.75.1":
version: 0.75.1
resolution: "@polkadot/ui-settings@npm:0.75.1"
"@polkadot/ui-settings@npm:0.75.2-0, @polkadot/ui-settings@npm:^0.75.2-0":
version: 0.75.2-0
resolution: "@polkadot/ui-settings@npm:0.75.2-0"
dependencies:
"@babel/runtime": ^7.13.17
"@babel/runtime": ^7.14.0
"@polkadot/networks": ^6.3.1
"@polkadot/util": ^6.3.1
eventemitter3: ^4.0.7
@ -3031,20 +3031,20 @@ __metadata:
peerDependencies:
"@polkadot/networks": "*"
"@polkadot/util": "*"
checksum: d4b2f37215df12fd0a5348ca69b8444c6d8b85de679432d69f316d513cb09f1b757b8238d0e98bf3e80bab6dbba016c99eb447d626b888da02136f0de3e0b5dd
checksum: b5906b5acb9c42ffa7c22721f40bc4fb1d7db53d49c16eee87dcf861aa8610d20480860fd57959c845efe87f1da66666e0ad183b1cbc48edcb3abbde528bc9dc
languageName: node
linkType: hard
"@polkadot/ui-shared@npm:0.75.1":
version: 0.75.1
resolution: "@polkadot/ui-shared@npm:0.75.1"
"@polkadot/ui-shared@npm:0.75.2-0":
version: 0.75.2-0
resolution: "@polkadot/ui-shared@npm:0.75.2-0"
dependencies:
"@babel/runtime": ^7.13.17
"@babel/runtime": ^7.14.0
color: ^3.1.3
peerDependencies:
"@polkadot/util": "*"
"@polkadot/util-crypto": "*"
checksum: 48175cd328771363e8a4bbcb611ab8150c5f2cc59a9263d57f32b0c5222d982503aa0acc8b7c35965a27e497e94c05023ad44b6306da23d85b7eb04237dcefb0
checksum: f89234d7023dd1a87c5252e34c9c4c050233fc69f167e844548552b259198eef8a65877084c152cec6c42ae816d1052224021e17b8fb0a2c3e1c5052eb753390
languageName: node
linkType: hard
@ -3089,20 +3089,20 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/vanitygen@npm:^0.33.1":
version: 0.33.1
resolution: "@polkadot/vanitygen@npm:0.33.1"
"@polkadot/vanitygen@npm:^0.33.2-0":
version: 0.33.2-0
resolution: "@polkadot/vanitygen@npm:0.33.2-0"
dependencies:
"@babel/core": ^7.13.16
"@babel/core": ^7.14.0
"@babel/register": ^7.13.16
"@babel/runtime": ^7.13.17
"@babel/runtime": ^7.14.0
"@polkadot/util": ^6.3.1
"@polkadot/util-crypto": ^6.3.1
chalk: ^4.1.1
yargs: ^16.2.0
bin:
polkadot-js-vanitygen: index.cjs
checksum: 7d9bf529f98fa01a14e79b1cace54049722ac61a2c21bebd9d29cfe5309445c1686e2e843f7f8737aa7514ce14e7b04023c97cb007e597e1658206d457485df7
checksum: b56f9562024c0ee328ce6397fb9ca4f0cd63ea1e2090ee59a572aa6b614dd3aa9b0431178d538931f80237f9a68b904e671338ae3b2ff1a2ec401f2e1105280b
languageName: node
linkType: hard