Bump dev with package-specific tsconfig.json (#6691)

* Bump dev with package-specific tsconfig.json

* Bump tsc

* Bumps

* Adjust

* Bumps

* Bump dev
This commit is contained in:
Jaco 2021-12-16 11:08:06 +01:00 committed by GitHub
parent f89dfce470
commit 0f58b96f76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
86 changed files with 1135 additions and 779 deletions

View File

@ -7,13 +7,10 @@ const base = require('@polkadot/dev/config/eslint.cjs');
module.exports = {
...base,
ignorePatterns: [
'.eslintrc.cjs',
'.github/**',
'.vscode/**',
'.yarn/**',
'**/build/*',
'**/coverage/*',
'**/node_modules/*'
...base.ignorePatterns,
'jest/**/*',
'scripts/**/*',
'*.cjs'
],
parserOptions: {
...base.parserOptions,

View File

@ -56,13 +56,13 @@
"test:skipped": "echo 'tests skipped'"
},
"devDependencies": {
"@babel/core": "^7.16.0",
"@babel/register": "^7.16.0",
"@babel/runtime": "^7.16.3",
"@babel/core": "^7.16.5",
"@babel/register": "^7.16.5",
"@babel/runtime": "^7.16.5",
"@crustio/crust-pin": "^1.0.0",
"@pinata/sdk": "^1.1.23",
"@polkadot/dev": "^0.63.39",
"@polkadot/ts": "^0.4.18",
"@polkadot/dev": "^0.64.5",
"@polkadot/ts": "^0.4.20",
"@types/bn.js": "^4.11.6",
"@types/chart.js": "^2.9.34",
"@types/file-saver": "^2.0.4",
@ -72,7 +72,7 @@
"@types/react-dom": "^17.0.11",
"@types/react-router-dom": "^5.3.2",
"@types/store": "^2.0.2",
"@types/styled-components": "^5.1.17",
"@types/styled-components": "^5.1.18",
"@types/styled-theming": "^2.2.5",
"concurrently": "^6.4.0",
"devtron": "^1.4.0",
@ -105,6 +105,6 @@
"@polkadot/wasm-crypto": "^4.5.1",
"babel-core": "^7.0.0-bridge.0",
"styled-components": "^5.3.1",
"typescript": "^4.5.3"
"typescript": "^4.5.4"
}
}

View File

@ -14,7 +14,7 @@
"main": "index.js",
"dependencies": {
"@acala-network/type-definitions": "^3.0.2-4",
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@bifrost-finance/type-definitions": "1.3.15",
"@crustio/type-definitions": "1.2.0",
"@darwinia/types": "2.6.100-2",

View File

@ -0,0 +1,7 @@
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
declare module '*.gif' {
const content: any;
export default content;
}

View File

@ -0,0 +1,7 @@
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
declare module '*.png' {
const content: any;
export default content;
}

View File

@ -0,0 +1,7 @@
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
declare module '*.svg' {
const content: any;
export default content;
}

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -12,9 +12,9 @@
"sideEffects": false,
"version": "0.98.2-156",
"dependencies": {
"@babel/core": "^7.16.0",
"@babel/core": "^7.16.5",
"@babel/polyfill": "^7.12.1",
"@polkadot/dev": "^0.63.39",
"@polkadot/dev": "^0.64.5",
"@polkadot/react-components": "^0.98.2-156",
"electron-log": "^4.4.1",
"electron-updater": "^4.6.5"

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,6 +13,6 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3"
"@babel/runtime": "^7.16.5"
}
}

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,12 +13,12 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/core": "^7.16.0",
"@babel/core": "^7.16.5",
"@babel/polyfill": "^7.12.1",
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/apps-config": "^0.98.2-156",
"@polkadot/apps-routing": "^0.98.2-156",
"@polkadot/dev": "^0.63.39",
"@polkadot/dev": "^0.64.5",
"@polkadot/react-api": "^0.98.2-156",
"@polkadot/react-components": "^0.98.2-156",
"@polkadot/react-hooks": "^0.98.2-156",

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,10 +13,10 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@polkadot/phishing": "^0.6.529",
"@babel/runtime": "^7.16.5",
"@polkadot/phishing": "^0.6.551",
"@polkadot/react-components": "^0.98.2-156",
"@polkadot/vanitygen": "^0.48.6",
"@polkadot/vanitygen": "^0.48.7",
"detect-browser": "^5.3.0",
"file-saver": "^2.0.5"
},

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,7 +13,7 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/react-components": "^0.98.2-156",
"file-saver": "^2.0.5"
},

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,7 +13,7 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/react-components": "^0.98.2-156"
}
}

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,7 +13,7 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/react-components": "^0.98.2-156"
},
"devDependencies": {

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,7 +13,7 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/react-components": "^0.98.2-156"
}
}

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,7 +13,7 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/react-components": "^0.98.2-156",
"secp256k1": "^3.8.0"
}

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,7 +13,7 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/api-contract": "^6.11.1"
}
}

View File

@ -2,6 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
import type { SubmittableExtrinsic } from '@polkadot/api/types';
import type { ContractPromise } from '@polkadot/api-contract';
import type { ContractCallOutcome } from '@polkadot/api-contract/types';
import type { CallResult } from './types';
@ -9,7 +10,6 @@ import BN from 'bn.js';
import React, { useCallback, useEffect, useState } from 'react';
import styled from 'styled-components';
import { ContractPromise } from '@polkadot/api-contract';
import { Button, Dropdown, Expander, InputAddress, InputBalance, Modal, Toggle, TxButton } from '@polkadot/react-components';
import { useAccountId, useDebounce, useFormField, useToggle } from '@polkadot/react-hooks';
import { Available } from '@polkadot/react-query';

View File

@ -1,6 +1,7 @@
// Copyright 2017-2021 @polkadot/app-staking authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { ContractPromise } from '@polkadot/api-contract';
import type { ContractCallOutcome } from '@polkadot/api-contract/types';
import type { ActionStatus } from '@polkadot/react-components/Status/types';
import type { Option } from '@polkadot/types';
@ -10,7 +11,6 @@ import type { ContractLink } from './types';
import React, { useCallback } from 'react';
import styled from 'styled-components';
import { ContractPromise } from '@polkadot/api-contract';
import { AddressInfo, AddressMini, Button, Forget } from '@polkadot/react-components';
import { useApi, useCall, useToggle } from '@polkadot/react-hooks';
import { keyring } from '@polkadot/ui-keyring';

View File

@ -1,14 +1,14 @@
// Copyright 2017-2021 @polkadot/app-staking authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { ApiPromise } from '@polkadot/api';
import type { ContractPromise } from '@polkadot/api-contract';
import type { ContractCallOutcome } from '@polkadot/api-contract/types';
import type { SignedBlockExtended } from '@polkadot/api-derive/types';
import type { ContractLink } from './types';
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { ApiPromise } from '@polkadot/api';
import { ContractPromise } from '@polkadot/api-contract';
import { Table } from '@polkadot/react-components';
import { useApi, useCall } from '@polkadot/react-hooks';
import { formatNumber } from '@polkadot/util';

View File

@ -1,43 +1,43 @@
// Copyright 2017-2021 @polkadot/app-contracts authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { ApiPromise } from '@polkadot/api';
import type { AbiMessage } from '@polkadot/api-contract/types';
import React from 'react';
import { ApiPromise } from '@polkadot/api';
import { ContractPromise as Contract } from '@polkadot/api-contract';
import { ContractPromise } from '@polkadot/api-contract';
import { getContractAbi } from '@polkadot/react-components/util';
import MessageSignature from '../shared/MessageSignature';
export function findCallMethod (callContract: Contract | null, callMethodIndex = 0): AbiMessage | null {
export function findCallMethod (callContract: ContractPromise | null, callMethodIndex = 0): AbiMessage | null {
const message = callContract && callContract.abi.messages[callMethodIndex];
return message || null;
}
export function getContractMethodFn (callContract: Contract | null, callMethodIndex: number | null): AbiMessage | null {
export function getContractMethodFn (callContract: ContractPromise | null, callMethodIndex: number | null): AbiMessage | null {
const fn = callContract && callContract.abi && callMethodIndex !== null && callContract.abi.messages[callMethodIndex];
return fn || null;
}
export function getContractForAddress (api: ApiPromise, address: string | null): Contract | null {
export function getContractForAddress (api: ApiPromise, address: string | null): ContractPromise | null {
if (!address) {
return null;
} else {
const abi = getContractAbi(address);
return abi
? new Contract(api, abi, address)
? new ContractPromise(api, abi, address)
: null;
}
}
export function getCallMessageOptions (callContract: Contract | null): unknown[] {
export function getCallMessageOptions (callContract: ContractPromise | null): unknown[] {
return callContract
? callContract.abi.messages.map((m, index): { key: string; text: React.ReactNode; value: number } => ({
? callContract.abi.messages.map((m, index) => ({
key: m.identifier,
text: (
<MessageSignature message={m} />

View File

@ -1,6 +1,7 @@
// Copyright 2017-2021 @polkadot/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { ContractPromise } from '@polkadot/api-contract';
import type { AbiMessage, ContractCallOutcome } from '@polkadot/api-contract/types';
import type { Option } from '@polkadot/types';
import type { ContractInfo } from '@polkadot/types/interfaces';
@ -8,7 +9,7 @@ import type { ContractInfo } from '@polkadot/types/interfaces';
import React, { useCallback, useEffect, useState } from 'react';
import styled from 'styled-components';
import { Abi, ContractPromise } from '@polkadot/api-contract';
import { Abi } from '@polkadot/api-contract';
import { Expander } from '@polkadot/react-components';
import { useApi, useCall } from '@polkadot/react-hooks';
import { formatNumber } from '@polkadot/util';

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,7 +13,7 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/react-components": "^0.98.2-156",
"@polkadot/react-query": "^0.98.2-156"
}

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,7 +13,7 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/react-components": "^0.98.2-156",
"@polkadot/react-query": "^0.98.2-156"
}

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,7 +13,7 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/react-components": "^0.98.2-156"
}
}

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,7 +13,7 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/react-components": "^0.98.2-156",
"@polkadot/react-params": "^0.98.2-156",
"@polkadot/react-signer": "^0.98.2-156"

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,7 +13,7 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/react-components": "^0.98.2-156"
}
}

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,7 +13,7 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/react-components": "^0.98.2-156"
}
}

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,7 +13,7 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/react-components": "^0.98.2-156",
"@polkadot/react-query": "^0.98.2-156"
}

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,7 +13,7 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/react-components": "^0.98.2-156",
"@polkadot/react-query": "^0.98.2-156"
}

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,7 +13,7 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/react-components": "^0.98.2-156"
}
}

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,7 +13,7 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/react-components": "^0.98.2-156"
}
}

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,7 +13,7 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/apps-config": "^0.98.2-156",
"@polkadot/react-components": "^0.98.2-156",
"@polkadot/react-query": "^0.98.2-156",

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,7 +13,7 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/react-components": "^0.98.2-156"
}
}

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,7 +13,7 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/react-components": "^0.98.2-156"
}
}

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,7 +13,7 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/app-explorer": "^0.98.2-156",
"@polkadot/react-components": "^0.98.2-156",
"@polkadot/react-query": "^0.98.2-156"

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,7 +13,7 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/react-components": "^0.98.2-156",
"@polkadot/react-params": "^0.98.2-156"
}

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,7 +13,7 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/react-components": "^0.98.2-156"
}
}

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,7 +13,7 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/react-components": "^0.98.2-156",
"@polkadot/react-query": "^0.98.2-156"
}

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,7 +13,7 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/react-components": "^0.98.2-156",
"@polkadot/react-query": "^0.98.2-156"
}

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,7 +13,7 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/api": "^6.11.1",
"@polkadot/extension-compat-metamask": "^0.42.2",
"@polkadot/extension-dapp": "^0.42.2",

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,7 +13,7 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@fortawesome/fontawesome-svg-core": "^1.2.36",
"@fortawesome/free-solid-svg-icons": "^5.15.4",
"@fortawesome/react-fontawesome": "^0.1.16",
@ -37,7 +37,7 @@
"react-copy-to-clipboard": "^5.0.4",
"react-dom": "^17.0.2",
"react-dropzone": "^11.4.2",
"react-i18next": "^11.15.0",
"react-i18next": "^11.15.1",
"react-is": "^17.0.2",
"react-markdown": "^5.0.3",
"react-router": "^5.2.1",

View File

@ -93,12 +93,12 @@ function extractEvents (result?: SubmittableResult): ActionStatus[] {
const mod = dispatchError.asModule;
const error = dispatchError.registry.findMetaError(mod);
message = `${error.section}.${error.name}`;
message = `${error.section}.${error.name}` as unknown as 'Other';
} catch (error) {
// swallow
}
} else if (dispatchError.isToken) {
message = `${dispatchError.type}.${dispatchError.asToken.type}`;
message = `${dispatchError.type}.${dispatchError.asToken.type}` as unknown as 'Other';
}
return {

View File

@ -1,8 +1,6 @@
// Copyright 2017-2021 @polkadot/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { AnyJson } from '@polkadot/types/types';
import { Abi } from '@polkadot/api-contract';
import { api } from '@polkadot/react-api';
@ -17,7 +15,7 @@ export function getContractAbi (address: string | null): Abi | null {
const meta = getAddressMeta(address, 'contract');
try {
const data = meta.contract && JSON.parse(meta.contract.abi) as AnyJson;
const data = (meta.contract && JSON.parse(meta.contract.abi)) as string;
abi = new Abi(data, api.registry.getChainProperties());
} catch (error) {

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,6 +13,6 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3"
"@babel/runtime": "^7.16.5"
}
}

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,7 +13,7 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/react-components": "^0.98.2-156"
}
}

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,6 +13,6 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3"
"@babel/runtime": "^7.16.5"
}
}

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -13,7 +13,7 @@
"type": "module",
"version": "0.98.2-156",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@babel/runtime": "^7.16.5",
"@polkadot/react-components": "^0.98.2-156"
}
}

View File

@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src"
},
"references": []
}

View File

@ -1,7 +1,8 @@
{
"extends": "@polkadot/dev/config/tsconfig.json",
"compilerOptions": {
"composite": true,
"composite": false,
"jsx": "react",
"paths": {
"@polkadot/apps/*": ["apps/src/*"],
"@polkadot/apps": ["apps/src"],

10
tsconfig.eslint.json Normal file
View File

@ -0,0 +1,10 @@
{
"extends": "./tsconfig.base.json",
"exclude": [
"build/**/*",
"**/build/**/*"
],
"compilerOptions": {
"baseUrl": "./packages"
}
}

View File

@ -6,6 +6,6 @@
],
"compilerOptions": {
"baseUrl": "./packages",
"jsx": "react"
"outDir": "./build"
}
}

1421
yarn.lock

File diff suppressed because it is too large Load Diff