Bump deps (#9040)
* Bump deps * Bumps * Adjust * Adjust * Adjust test imports * Adjust * Re-adjust * Fix frequency package name * Adjust build * Adjust * Fix before import * Adjust * require script * Adjust checks * Linting fixes * Fix json alongside other tests * Move fixup script * Remove main type: "module" * Adjust (some) tests * Adjust chartjs imports * Bump deps * Adjust * Bump deps * Adjust styled imports * Bump deps * Adjust
This commit is contained in:
parent
cb1dff5408
commit
27098f34b8
71
package.json
71
package.json
@ -33,7 +33,7 @@
|
||||
"build:electron": "yarn clean:electronBuild && yarn build:electronMain && yarn build:electronRenderer",
|
||||
"build:electronMain": "cd packages/apps-electron && NODE_ENV=production yarn polkadot-exec-webpack --config webpack.main.cjs",
|
||||
"build:electronRenderer": "cd packages/apps-electron && NODE_ENV=production yarn polkadot-exec-webpack --config webpack.renderer.cjs",
|
||||
"build:extra": "yarn build:images && yarn run test:one packages/apps-config/src/api/typesBundle.spec.ts",
|
||||
"build:extra": "yarn build:images && yarn build:typesBundle",
|
||||
"build:i18n": "i18next-scanner --config i18next-scanner.config.cjs && node ./scripts/i18nSort.cjs",
|
||||
"build:images": "node scripts/imgConvert.mjs",
|
||||
"build:release:electron": "yarn build && yarn build:electron && yarn postinstall:electron",
|
||||
@ -41,9 +41,10 @@
|
||||
"build:release:ipfs": "node scripts/ipfsUpload.mjs",
|
||||
"build:release:www": "yarn polkadot-ci-ghact-build && yarn build:release:ghpages && yarn build:release:ipfs",
|
||||
"build:robohash": "node scripts/robohash.cjs",
|
||||
"build:typesBundle": "polkadot-dev-run-test --env node --require ./scripts/fixupModules.cjs --experimental-specifier-resolution=node packages/apps-config/src/api/typesBundle.spec.ts",
|
||||
"build:www": "rm -rf packages/apps/build && mkdir -p packages/apps/build && yarn run build:i18n && cd packages/apps && yarn polkadot-exec-webpack --config webpack.config.cjs",
|
||||
"ci:chainEndpoints": "NODE_OPTIONS=--experimental-vm-modules polkadot-dev-run-test --config ./jest-ci.config.cjs --runInBand --forceExit packages/apps-config/src/ci/chainEndpoints",
|
||||
"ci:chainTypes": "NODE_OPTIONS=--experimental-vm-modules polkadot-dev-run-test --config ./jest-ci.config.cjs --runInBand --forceExit packages/apps-config/src/ci/chainTypes",
|
||||
"ci:chainEndpoints": "polkadot-dev-run-test --env jest --require ./scripts/fixupModules.cjs packages/apps-config/src/ci/chainEndpoints -- --config ./jest-ci.config.cjs --runInBand --forceExit",
|
||||
"ci:chainTypes": "polkadot-dev-run-test --env jest --require ./scripts/fixupModules.cjs packages/apps-config/src/ci/chainTypes -- --config ./jest-ci.config.cjs --runInBand --forceExit",
|
||||
"clean": "polkadot-dev-clean-build",
|
||||
"clean:electronBuild": "cd packages/apps-electron && polkadot-dev-clean-build",
|
||||
"clean:electronRelease": "cd packages/apps-electron && rm -rf release",
|
||||
@ -59,9 +60,9 @@
|
||||
"postinstall:electron": "electron-builder install-app-deps",
|
||||
"start": "yarn clean && cd packages/apps && yarn polkadot-exec-webpack serve --config webpack.serve.cjs --port 3000",
|
||||
"start:electron": "yarn clean:electronBuild && concurrently 'yarn build:devElectronMain && cd packages/apps-electron && electron ./build/electron.js' 'yarn build:devElectronRenderer'",
|
||||
"test": "polkadot-dev-run-test --runInBand --testPathIgnorePatterns slow --testNamePattern='^((?!--SLOW--).)*$'",
|
||||
"test:all": "polkadot-dev-run-test --runInBand --config ./jest-slow.config.cjs",
|
||||
"test:one": "polkadot-dev-run-test",
|
||||
"test": "polkadot-dev-run-test --env browser --require ./scripts/fixupModules.cjs --experimental-specifier-resolution=node ^typesBundle ^chainEndpoints ^chainTypes ^page- ^react- ^apps-electron",
|
||||
"test:all": "polkadot-dev-run-test --env browser -- --runInBand --config ./jest-slow.config.cjs",
|
||||
"test:one": "polkadot-dev-run-test --env browser",
|
||||
"test:skipped": "echo 'tests skipped'"
|
||||
},
|
||||
"devDependencies": {
|
||||
@ -70,13 +71,13 @@
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"@crustio/crust-pin": "^1.0.0",
|
||||
"@pinata/sdk": "^1.2.1",
|
||||
"@polkadot/dev": "^0.68.10",
|
||||
"@polkadot/dev": "^0.68.41",
|
||||
"@types/chart.js": "^2.9.37",
|
||||
"@types/file-saver": "^2.0.5",
|
||||
"@types/jest": "^29.4.0",
|
||||
"@types/react-beautiful-dnd": "^13.1.3",
|
||||
"@types/react-copy-to-clipboard": "^5.0.4",
|
||||
"@types/react-dom": "^18.0.10",
|
||||
"@types/react-dom": "^18.0.11",
|
||||
"@types/react-router-dom": "^5.3.3",
|
||||
"@types/store": "^2.0.2",
|
||||
"@types/styled-components": "^5.1.26",
|
||||
@ -95,34 +96,34 @@
|
||||
"styled-components": "^5.3.6"
|
||||
},
|
||||
"resolutions": {
|
||||
"@polkadot/api": "^9.13.6",
|
||||
"@polkadot/api-augment": "^9.13.6",
|
||||
"@polkadot/api-base": "^9.13.6",
|
||||
"@polkadot/api-contract": "^9.13.6",
|
||||
"@polkadot/api-derive": "^9.13.6",
|
||||
"@polkadot/hw-ledger": "^10.3.1",
|
||||
"@polkadot/keyring": "^10.3.1",
|
||||
"@polkadot/networks": "^10.3.1",
|
||||
"@polkadot/phishing": "^0.19.1",
|
||||
"@polkadot/rpc-augment": "^9.13.6",
|
||||
"@polkadot/rpc-core": "^9.13.6",
|
||||
"@polkadot/rpc-provider": "^9.13.6",
|
||||
"@polkadot/types": "^9.13.6",
|
||||
"@polkadot/types-augment": "^9.13.6",
|
||||
"@polkadot/types-codec": "^9.13.6",
|
||||
"@polkadot/types-create": "^9.13.6",
|
||||
"@polkadot/types-known": "^9.13.6",
|
||||
"@polkadot/types-support": "^9.13.6",
|
||||
"@polkadot/util": "^10.3.1",
|
||||
"@polkadot/util-crypto": "^10.3.1",
|
||||
"@polkadot/api": "^9.14.2",
|
||||
"@polkadot/api-augment": "^9.14.2",
|
||||
"@polkadot/api-base": "^9.14.2",
|
||||
"@polkadot/api-contract": "^9.14.2",
|
||||
"@polkadot/api-derive": "^9.14.2",
|
||||
"@polkadot/hw-ledger": "^10.4.2",
|
||||
"@polkadot/keyring": "^10.4.2",
|
||||
"@polkadot/networks": "^10.4.2",
|
||||
"@polkadot/phishing": "^0.19.3",
|
||||
"@polkadot/rpc-augment": "^9.14.2",
|
||||
"@polkadot/rpc-core": "^9.14.2",
|
||||
"@polkadot/rpc-provider": "^9.14.2",
|
||||
"@polkadot/types": "^9.14.2",
|
||||
"@polkadot/types-augment": "^9.14.2",
|
||||
"@polkadot/types-codec": "^9.14.2",
|
||||
"@polkadot/types-create": "^9.14.2",
|
||||
"@polkadot/types-known": "^9.14.2",
|
||||
"@polkadot/types-support": "^9.14.2",
|
||||
"@polkadot/util": "^10.4.2",
|
||||
"@polkadot/util-crypto": "^10.4.2",
|
||||
"@polkadot/wasm-crypto": "^6.4.1",
|
||||
"@polkadot/x-bigint": "^10.3.1",
|
||||
"@polkadot/x-fetch": "^10.3.1",
|
||||
"@polkadot/x-global": "^10.3.1",
|
||||
"@polkadot/x-randomvalues": "^10.3.1",
|
||||
"@polkadot/x-textdecoder": "^10.3.1",
|
||||
"@polkadot/x-textencoder": "^10.3.1",
|
||||
"@polkadot/x-ws": "^10.3.1",
|
||||
"@polkadot/x-bigint": "^10.4.2",
|
||||
"@polkadot/x-fetch": "^10.4.2",
|
||||
"@polkadot/x-global": "^10.4.2",
|
||||
"@polkadot/x-randomvalues": "^10.4.2",
|
||||
"@polkadot/x-textdecoder": "^10.4.2",
|
||||
"@polkadot/x-textencoder": "^10.4.2",
|
||||
"@polkadot/x-ws": "^10.4.2",
|
||||
"babel-core": "^7.0.0-bridge.0",
|
||||
"styled-components": "^5.3.1",
|
||||
"typescript": "^4.9.5"
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"version": "0.124.2-85-x",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@acala-network/type-definitions": "4.1.8-1",
|
||||
"@acala-network/type-definitions": "4.1.8-13",
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"@bifrost-finance/type-definitions": "1.7.2",
|
||||
"@crustio/type-definitions": "1.3.0",
|
||||
@ -23,7 +23,7 @@
|
||||
"@docknetwork/node-types": "0.15.0",
|
||||
"@edgeware/node-types": "3.6.2-wako",
|
||||
"@equilab/definitions": "1.4.18",
|
||||
"@frequency-chain/api-augment": "1.2.0-rc1",
|
||||
"@frequency-chain/api-augment": "1.2.1",
|
||||
"@interlay/interbtc-types": "1.11.1",
|
||||
"@kiltprotocol/type-definitions": "0.31.0",
|
||||
"@laminar/type-definitions": "0.3.1",
|
||||
@ -32,24 +32,24 @@
|
||||
"@metaverse-network-sdk/type-definitions": "0.0.1-13",
|
||||
"@parallel-finance/type-definitions": "1.7.14",
|
||||
"@phala/typedefs": "0.2.33",
|
||||
"@polkadot/api": "^9.13.6",
|
||||
"@polkadot/api-derive": "^9.13.6",
|
||||
"@polkadot/networks": "^10.3.1",
|
||||
"@polkadot/types": "^9.13.6",
|
||||
"@polkadot/util": "^10.3.1",
|
||||
"@polkadot/api": "^9.14.2",
|
||||
"@polkadot/api-derive": "^9.14.2",
|
||||
"@polkadot/networks": "^10.4.2",
|
||||
"@polkadot/types": "^9.14.2",
|
||||
"@polkadot/util": "^10.4.2",
|
||||
"@polkadot/wasm-util": "^6.4.1",
|
||||
"@polkadot/x-fetch": "^10.3.1",
|
||||
"@polkadot/x-fetch": "^10.4.2",
|
||||
"@polymathnetwork/polymesh-types": "0.0.2",
|
||||
"@snowfork/snowbridge-types": "0.2.7",
|
||||
"@sora-substrate/type-definitions": "1.14.9",
|
||||
"@subsocial/definitions": "0.7.12",
|
||||
"@sora-substrate/type-definitions": "1.15.2",
|
||||
"@subsocial/definitions": "0.7.13",
|
||||
"@unique-nft/opal-testnet-types": "937.52.0",
|
||||
"@unique-nft/quartz-mainnet-types": "936.50.4",
|
||||
"@unique-nft/sapphire-mainnet-types": "937.52.0",
|
||||
"@unique-nft/unique-mainnet-types": "930.33.0",
|
||||
"@zeitgeistpm/type-defs": "1.0.0",
|
||||
"@zeroio/type-definitions": "0.0.14",
|
||||
"moonbeam-types-bundle": "2.0.9",
|
||||
"moonbeam-types-bundle": "2.0.10",
|
||||
"pontem-types-bundle": "1.0.15",
|
||||
"rxjs": "^7.8.0"
|
||||
}
|
||||
|
||||
@ -3,9 +3,9 @@
|
||||
|
||||
import type { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
import { spec } from '@edgeware/node-types';
|
||||
import pkg from '@edgeware/node-types';
|
||||
|
||||
// There is no separate types bundle for testnet at this time
|
||||
const beresheet = spec.typesBundle.spec?.edgeware as OverrideBundleDefinition;
|
||||
const beresheet = pkg.spec.typesBundle.spec?.edgeware as OverrideBundleDefinition;
|
||||
|
||||
export default beresheet;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { typesBundleForPolkadotApps } from '@darwinia/types/mix';
|
||||
import { typesBundleForPolkadotApps } from '@darwinia/types/mix/index.js';
|
||||
|
||||
export default typesBundleForPolkadotApps.spec.Crab;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { typesBundleForPolkadotApps } from '@darwinia/types/mix';
|
||||
import { typesBundleForPolkadotApps } from '@darwinia/types/mix/index.js';
|
||||
|
||||
export default typesBundleForPolkadotApps.spec.Darwinia;
|
||||
|
||||
@ -3,8 +3,7 @@
|
||||
|
||||
import type { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-var-requires
|
||||
const types: any = require('@docknetwork/node-types');
|
||||
import types from '@docknetwork/node-types';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
||||
const definitions = types.spec['dock-main-runtime'] as OverrideBundleDefinition;
|
||||
|
||||
@ -3,8 +3,7 @@
|
||||
|
||||
import type { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-var-requires
|
||||
const types: any = require('@docknetwork/node-types');
|
||||
import types from '@docknetwork/node-types';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
||||
const definitions = types.spec['dock-test-runtime'] as OverrideBundleDefinition;
|
||||
|
||||
4
packages/apps-config/src/api/spec/docknetwork__node-types.d.ts
vendored
Normal file
4
packages/apps-config/src/api/spec/docknetwork__node-types.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
declare module '@docknetwork/node-types';
|
||||
@ -3,8 +3,8 @@
|
||||
|
||||
import type { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
import { spec } from '@edgeware/node-types';
|
||||
import pkg from '@edgeware/node-types';
|
||||
|
||||
const edgeware = spec.typesBundle.spec?.edgeware as OverrideBundleDefinition;
|
||||
const edgeware = pkg.spec.typesBundle.spec?.edgeware as OverrideBundleDefinition;
|
||||
|
||||
export default edgeware;
|
||||
|
||||
@ -6,7 +6,7 @@ import type { ApiInterfaceRx, AugmentedQuery, RxResult } from '@polkadot/api/typ
|
||||
import type { AccountData, AccountId, AccountIndex, Address, Balance } from '@polkadot/types/interfaces';
|
||||
import type { Codec, OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
import { equilibrium, equilibriumNext } from '@equilab/definitions';
|
||||
import eqDefs from '@equilab/definitions';
|
||||
import { map } from 'rxjs';
|
||||
|
||||
import { Enum } from '@polkadot/types';
|
||||
@ -37,6 +37,8 @@ type EqBalanceDoubleMap<T> = AugmentedQuery<
|
||||
[AccountId, Currency]
|
||||
>
|
||||
|
||||
const { equilibrium, equilibriumNext } = eqDefs;
|
||||
|
||||
export const u64FromCurrency = (currency: string): number => {
|
||||
const buf = Buffer.from(currency.toLowerCase());
|
||||
const size = buf.length;
|
||||
|
||||
@ -3,10 +3,12 @@
|
||||
|
||||
import type { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
import { genshiro } from '@equilab/definitions';
|
||||
import eqDefs from '@equilab/definitions';
|
||||
|
||||
import { createCustomAccount, u64FromCurrency } from './equilibrium';
|
||||
|
||||
const { genshiro } = eqDefs;
|
||||
|
||||
const definitions: OverrideBundleDefinition = {
|
||||
derives: {
|
||||
...genshiro.instances.balances.reduce(
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
import logionDefault, { session as logionSession } from '@logion/node-api/dist/interfaces/definitions';
|
||||
|
||||
// structs need to be in order
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
import logionDefault, { session as logionSession } from '@logion/node-api/dist/interfaces/definitions.js';
|
||||
|
||||
const defaultTypesUpTo109 = {
|
||||
Address: 'MultiAddress',
|
||||
LookupSource: 'MultiAddress',
|
||||
|
||||
@ -3,11 +3,17 @@
|
||||
|
||||
import type { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
import { appPromotion, unique } from '@unique-nft/opal-testnet-types/definitions';
|
||||
import pkg from '@unique-nft/opal-testnet-types/definitions.js';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
const { appPromotion, unique } = pkg;
|
||||
|
||||
export default {
|
||||
rpc: {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
|
||||
appPromotion: appPromotion.rpc,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
|
||||
unique: unique.rpc
|
||||
}
|
||||
} as OverrideBundleDefinition;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
declare module '@digitalnative/type-definitions/opportunity';
|
||||
declare module '@digitalnative/type-definitions/opportunity/index.js';
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import definitions from '@digitalnative/type-definitions/opportunity';
|
||||
import definitions from '@digitalnative/type-definitions/opportunity/index.js';
|
||||
|
||||
import { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { typesBundleForPolkadotApps } from '@darwinia/types/mix';
|
||||
import { typesBundleForPolkadotApps } from '@darwinia/types/mix/index.js';
|
||||
|
||||
export default typesBundleForPolkadotApps.spec.Pangolin;
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { typesBundleForPolkadotApps } from '@darwinia/types/mix';
|
||||
import { typesBundleForPolkadotApps } from '@darwinia/types/mix/index.js';
|
||||
|
||||
// use pangolin types;
|
||||
export default typesBundleForPolkadotApps.spec.Pangolin;
|
||||
|
||||
@ -3,11 +3,17 @@
|
||||
|
||||
import type { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
import { appPromotion, unique } from '@unique-nft/quartz-mainnet-types/definitions';
|
||||
import pkg from '@unique-nft/quartz-mainnet-types/definitions.js';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
const { appPromotion, unique } = pkg;
|
||||
|
||||
export default {
|
||||
rpc: {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
|
||||
appPromotion: appPromotion.rpc,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
|
||||
unique: unique.rpc
|
||||
}
|
||||
} as OverrideBundleDefinition;
|
||||
|
||||
@ -3,11 +3,17 @@
|
||||
|
||||
import type { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
import { appPromotion, unique } from '@unique-nft/sapphire-mainnet-types/definitions';
|
||||
import pkg from '@unique-nft/sapphire-mainnet-types/definitions.js';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
const { appPromotion, unique } = pkg;
|
||||
|
||||
export default {
|
||||
rpc: {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
|
||||
appPromotion: appPromotion.rpc,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
|
||||
unique: unique.rpc
|
||||
}
|
||||
} as OverrideBundleDefinition;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
declare module '@digitalnative/type-definitions/standard';
|
||||
declare module '@digitalnative/type-definitions/standard/index.js';
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import definitions from '@digitalnative/type-definitions/standard';
|
||||
import definitions from '@digitalnative/type-definitions/standard/index.js';
|
||||
|
||||
import { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
|
||||
@ -7,6 +7,6 @@
|
||||
// import { types } from '@subsocial/types';
|
||||
// we end up with multiple version of types/API since it uses CJS,
|
||||
// therefore here we explicitly import from the definitions (as re-exported)
|
||||
import { types } from '@subsocial/definitions/interfaces/subsocial/definitions'; // KEEP, see above
|
||||
import { types } from '@subsocial/definitions/interfaces/subsocial/definitions.js'; // KEEP, see above
|
||||
|
||||
export default { types };
|
||||
|
||||
@ -3,8 +3,15 @@
|
||||
|
||||
import type { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
import { unique } from '@unique-nft/unique-mainnet-types/definitions';
|
||||
import pkg from '@unique-nft/unique-mainnet-types/definitions.js';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
const { unique } = pkg;
|
||||
|
||||
export default {
|
||||
rpc: { unique: unique.rpc }
|
||||
rpc: {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
|
||||
unique: unique.rpc
|
||||
}
|
||||
} as OverrideBundleDefinition;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -95,23 +95,28 @@ function createChecker (issueFile: string, failures: string[]): (name: string, w
|
||||
|
||||
export function checkEndpoints (issueFile: string, failures: string[]): void {
|
||||
const checker = createChecker(issueFile, failures);
|
||||
const checks: Record<string, Endpoint> = createWsEndpoints()
|
||||
.filter(({ isDisabled, isUnreachable, value }) =>
|
||||
!isDisabled &&
|
||||
!isUnreachable &&
|
||||
value &&
|
||||
isString(value) &&
|
||||
!value.includes('127.0.0.1') &&
|
||||
!value.startsWith('light://')
|
||||
)
|
||||
.map(({ text, value }): Partial<Endpoint> => ({
|
||||
name: text as string,
|
||||
ws: value
|
||||
}))
|
||||
.filter((v): v is Endpoint => !!v.ws)
|
||||
.reduce((all, e) => ({
|
||||
...all,
|
||||
[`${e.name} @ ${e.ws}`]: e
|
||||
}), {});
|
||||
|
||||
it.each(Object.keys(checks))('%s', async (key): Promise<void> => {
|
||||
const { name, ws } = checks[key];
|
||||
|
||||
it.each(
|
||||
createWsEndpoints()
|
||||
.filter(({ isDisabled, isUnreachable, value }) =>
|
||||
!isDisabled &&
|
||||
!isUnreachable &&
|
||||
value &&
|
||||
isString(value) &&
|
||||
!value.includes('127.0.0.1') &&
|
||||
!value.startsWith('light://')
|
||||
)
|
||||
.map(({ text, value }): Partial<Endpoint> => ({
|
||||
name: text as string,
|
||||
ws: value
|
||||
}))
|
||||
.filter((v): v is Endpoint => !!v.ws)
|
||||
)('$name @ $ws', async ({ name, ws }): Promise<void> => {
|
||||
expect(await checker(name, ws)).toBe(true);
|
||||
});
|
||||
}
|
||||
|
||||
@ -16,7 +16,7 @@ const allEndpoints = createWsEndpoints(undefined, false, false);
|
||||
const INVALID_CHARS = ['%'];
|
||||
|
||||
describe('WS urls are all valid', (): void => {
|
||||
const endpoints = allEndpoints
|
||||
const endpoints: Record<string, Endpoint> = allEndpoints
|
||||
.filter(({ value }) =>
|
||||
value &&
|
||||
isString(value) &&
|
||||
@ -26,9 +26,15 @@ describe('WS urls are all valid', (): void => {
|
||||
name: text as string,
|
||||
provider: textBy,
|
||||
value
|
||||
}));
|
||||
}))
|
||||
.reduce((all, e) => ({
|
||||
...all,
|
||||
[`${e.name}:: ${e.provider}`]: e
|
||||
}), {});
|
||||
|
||||
it.each(Object.keys(endpoints))('%s', (key): void => {
|
||||
const { name, provider, value } = endpoints[key];
|
||||
|
||||
it.each(endpoints)('$name:: $provider', ({ name, provider, value }): void => {
|
||||
assert(value.startsWith('wss://') || value.startsWith('light://substrate-connect/'), `${name}:: ${provider} -> ${value} should start with wss:// or light://`);
|
||||
assert(!INVALID_CHARS.some((c) => value.includes(c)), `${value} should not contain invalid characters such as ${INVALID_CHARS.join(', ')}`);
|
||||
});
|
||||
@ -93,7 +99,7 @@ describe('urls are not duplicated', (): void => {
|
||||
|
||||
describe('endpopints naming', (): void => {
|
||||
const emoji = /(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/;
|
||||
const endpoints = allEndpoints
|
||||
const endpoints: Record<string, Endpoint> = allEndpoints
|
||||
.filter(({ value }) =>
|
||||
value &&
|
||||
isString(value) &&
|
||||
@ -103,23 +109,29 @@ describe('endpopints naming', (): void => {
|
||||
name: text as string,
|
||||
provider: textBy,
|
||||
value
|
||||
}));
|
||||
}))
|
||||
.reduce((all, e) => ({
|
||||
...all,
|
||||
[`${e.name}:: ${e.provider}`]: e
|
||||
}), {});
|
||||
|
||||
describe.each(endpoints)('$name:: $provider', ({ name, provider }): void => {
|
||||
it('name/provider has no emojis', (): void => {
|
||||
describe.each(Object.keys(endpoints))('%s', (key): void => {
|
||||
const { name, provider } = endpoints[key];
|
||||
|
||||
it(`[${key}] has no emojis`, (): void => {
|
||||
assert(!emoji.test(name), `${name} should not contain any emojis`);
|
||||
assert(!emoji.test(provider), `${name}:: ${provider} should not contain any emojis`);
|
||||
});
|
||||
|
||||
it('provider not all uppercase', (): void => {
|
||||
it(`[${key}] not all uppercase`, (): void => {
|
||||
assert(!provider.includes(' ') || (provider.toLocaleUpperCase() !== provider), `${name}:: ${provider} should not be all uppercase`);
|
||||
});
|
||||
|
||||
it('does not contain "Parachain', (): void => {
|
||||
it(`[${key}] does not contain "Parachain`, (): void => {
|
||||
assert(!name.includes('Parachain'), `${name} should not contain "Parachain" (redundant)`);
|
||||
});
|
||||
|
||||
it('does not contain a relay name', (): void => {
|
||||
it(`[${key}] does not contain a relay name`, (): void => {
|
||||
assert(!name.includes(' ') || !name.includes('Kusama'), `${name} should not contain "Kusama" (redundant)`);
|
||||
assert(!name.includes(' ') || !name.includes('Polkadot'), `${name} should not contain "Polkadot" (redundant)`);
|
||||
assert(!name.includes(' ') || !name.includes('Rococo'), `${name} should not contain "Rococo" (redundant)`);
|
||||
|
||||
@ -14,13 +14,13 @@
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.20.12",
|
||||
"@babel/polyfill": "^7.12.1",
|
||||
"@polkadot/dev": "^0.68.10",
|
||||
"@polkadot/dev": "^0.68.41",
|
||||
"@polkadot/react-components": "^0.124.2-85-x",
|
||||
"electron-log": "^5.0.0-beta.16",
|
||||
"electron-updater": "^5.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react-dom": "^18.0.10",
|
||||
"@types/react-dom": "^18.0.11",
|
||||
"@types/tmp": "^0.2.3",
|
||||
"babel-loader": "^9.1.2",
|
||||
"copy-webpack-plugin": "^11.0.0",
|
||||
|
||||
@ -49,13 +49,13 @@ describe('Account store', () => {
|
||||
});
|
||||
|
||||
it('get returns null if account does not exist', async () => {
|
||||
jest.spyOn(console, 'error').mockImplementationOnce(() => { /**/ });
|
||||
// jest.spyOn(console, 'error').mockImplementationOnce(() => { /**/ });
|
||||
|
||||
expect(await accountStore['account-store-get']('1')).toEqual(null);
|
||||
});
|
||||
|
||||
it('account disappears from list after it is removed', async () => {
|
||||
jest.spyOn(console, 'error').mockImplementationOnce(() => { /**/ });
|
||||
// jest.spyOn(console, 'error').mockImplementationOnce(() => { /**/ });
|
||||
|
||||
await accountStore['account-store-set']('1', exampleAccount('a'));
|
||||
await accountStore['account-store-remove']('1');
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
import type { KeyringJson } from '@polkadot/ui-keyring/types';
|
||||
|
||||
import { app } from 'electron';
|
||||
import electron from 'electron';
|
||||
import path from 'path';
|
||||
|
||||
import { FileStore } from '@polkadot/ui-keyring/stores';
|
||||
@ -49,7 +49,7 @@ export const accountStoreIpcHandler = (fileStore: FileStore): IpcMainHandler =>
|
||||
});
|
||||
|
||||
export const registerAccountStoreHandlers = (): void => {
|
||||
const defaultStorePath = path.join(app.getPath('userData'), ACCOUNTS_SUBFOLDER);
|
||||
const defaultStorePath = path.join(electron.app.getPath('userData'), ACCOUNTS_SUBFOLDER);
|
||||
const fileStore = new FileStore(defaultStorePath);
|
||||
|
||||
registerIpcHandler(accountStoreIpcHandler(fileStore));
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
// Copyright 2017-2023 @polkadot/apps authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { ipcMain } from 'electron';
|
||||
import electron from 'electron';
|
||||
|
||||
import { IpcMainHandler } from './ipc-main-handler';
|
||||
|
||||
export const registerIpcHandler = (ipcHandler: IpcMainHandler): void => {
|
||||
for (const [channel, listener] of Object.entries(ipcHandler)) {
|
||||
ipcMain.handle(channel, (_, ...args: unknown[]) => {
|
||||
electron.ipcMain.handle(channel, (_, ...args: unknown[]) => {
|
||||
return listener(...args);
|
||||
});
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"@polkadot/apps-config": "^0.124.2-85-x",
|
||||
"@polkadot/apps-routing": "^0.124.2-85-x",
|
||||
"@polkadot/dev": "^0.68.10",
|
||||
"@polkadot/dev": "^0.68.41",
|
||||
"@polkadot/react-api": "^0.124.2-85-x",
|
||||
"@polkadot/react-components": "^0.124.2-85-x",
|
||||
"@polkadot/react-hooks": "^0.124.2-85-x",
|
||||
|
||||
@ -4,9 +4,9 @@
|
||||
import type { BareProps as Props } from '@polkadot/react-components/types';
|
||||
|
||||
import React, { useMemo } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import AccountSidebar from '@polkadot/app-accounts/Sidebar';
|
||||
import { styled } from '@polkadot/react-components/styled';
|
||||
import GlobalStyle from '@polkadot/react-components/styles';
|
||||
import { useApi, useTheme } from '@polkadot/react-hooks';
|
||||
import Signer from '@polkadot/react-signer';
|
||||
|
||||
@ -5,10 +5,9 @@ import type { Route } from '@polkadot/apps-routing/types';
|
||||
|
||||
import React, { Suspense, useMemo } from 'react';
|
||||
import { useLocation } from 'react-router-dom';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import createRoutes from '@polkadot/apps-routing';
|
||||
import { ErrorBoundary, Spinner, TabsCtx } from '@polkadot/react-components';
|
||||
import { ErrorBoundary, Spinner, styled, TabsCtx } from '@polkadot/react-components';
|
||||
import { useApi, useQueue } from '@polkadot/react-hooks';
|
||||
|
||||
import { findMissingApis } from '../endpoint';
|
||||
|
||||
@ -4,9 +4,8 @@
|
||||
import type { Group } from './types';
|
||||
|
||||
import React, { useCallback, useMemo } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Icon } from '@polkadot/react-components';
|
||||
import { Icon, styled } from '@polkadot/react-components';
|
||||
|
||||
import Network from './Network';
|
||||
|
||||
|
||||
@ -4,9 +4,8 @@
|
||||
import type { Network } from './types';
|
||||
|
||||
import React, { useCallback, useMemo } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { ChainImg } from '@polkadot/react-components';
|
||||
import { ChainImg, styled } from '@polkadot/react-components';
|
||||
|
||||
import { useTranslation } from '../translate';
|
||||
import Url from './Url';
|
||||
|
||||
@ -2,9 +2,8 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import React, { useCallback } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Toggle } from '@polkadot/react-components';
|
||||
import { styled, Toggle } from '@polkadot/react-components';
|
||||
|
||||
interface Props {
|
||||
apiUrl: string;
|
||||
|
||||
@ -8,10 +8,9 @@ import type { Group } from './types';
|
||||
import punycode from 'punycode/';
|
||||
import React, { useCallback, useMemo, useRef, useState } from 'react';
|
||||
import store from 'store';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { createWsEndpoints, CUSTOM_ENDPOINT_KEY } from '@polkadot/apps-config';
|
||||
import { Button, Input, Sidebar } from '@polkadot/react-components';
|
||||
import { Button, Input, Sidebar, styled } from '@polkadot/react-components';
|
||||
import { settings } from '@polkadot/ui-settings';
|
||||
import { isAscii } from '@polkadot/util';
|
||||
|
||||
|
||||
@ -4,9 +4,8 @@
|
||||
import type { RuntimeVersion } from '@polkadot/types/interfaces';
|
||||
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { ChainImg, Icon } from '@polkadot/react-components';
|
||||
import { ChainImg, Icon, styled } from '@polkadot/react-components';
|
||||
import { useApi, useCall, useIpfs, useToggle } from '@polkadot/react-hooks';
|
||||
import { BestNumber, Chain } from '@polkadot/react-query';
|
||||
|
||||
|
||||
@ -4,9 +4,8 @@
|
||||
import type { Group } from './types';
|
||||
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Icon } from '@polkadot/react-components';
|
||||
import { Icon, styled } from '@polkadot/react-components';
|
||||
|
||||
import Item from './Item';
|
||||
|
||||
|
||||
@ -4,9 +4,8 @@
|
||||
import type { ItemRoute } from './types';
|
||||
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Badge, Icon } from '@polkadot/react-components';
|
||||
import { Badge, Icon, styled } from '@polkadot/react-components';
|
||||
import { useToggle } from '@polkadot/react-hooks';
|
||||
|
||||
interface Props {
|
||||
|
||||
@ -4,8 +4,8 @@
|
||||
import type { BareProps as Props } from '@polkadot/react-components/types';
|
||||
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { styled } from '@polkadot/react-components';
|
||||
import { useApi } from '@polkadot/react-hooks';
|
||||
import { NodeName, NodeVersion } from '@polkadot/react-query';
|
||||
|
||||
|
||||
@ -9,9 +9,9 @@ import type { Group, Groups, ItemRoute } from './types';
|
||||
|
||||
import React, { useMemo, useRef } from 'react';
|
||||
import { useLocation } from 'react-router-dom';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import createRoutes from '@polkadot/apps-routing';
|
||||
import { styled } from '@polkadot/react-components';
|
||||
import { useAccounts, useApi, useCall, useTeleport } from '@polkadot/react-hooks';
|
||||
|
||||
import { findMissingApis } from '../endpoint';
|
||||
|
||||
@ -4,8 +4,8 @@
|
||||
// Unused atm, experiment as a replacement for NodeInfo on the SideBar
|
||||
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { styled } from '@polkadot/react-components';
|
||||
import { BestNumber, Chain, NodeName, NodeVersion } from '@polkadot/react-query';
|
||||
|
||||
interface Props {
|
||||
|
||||
@ -4,9 +4,8 @@
|
||||
import type { IconName } from '@fortawesome/fontawesome-svg-core';
|
||||
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Button, Icon } from '@polkadot/react-components';
|
||||
import { Button, Icon, styled } from '@polkadot/react-components';
|
||||
import { useToggle } from '@polkadot/react-hooks';
|
||||
|
||||
interface Props {
|
||||
|
||||
@ -14,12 +14,12 @@
|
||||
"version": "0.124.2-85-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"@polkadot/hw-ledger": "^10.3.1",
|
||||
"@polkadot/phishing": "^0.19.1",
|
||||
"@polkadot/hw-ledger": "^10.4.2",
|
||||
"@polkadot/phishing": "^0.19.3",
|
||||
"@polkadot/react-components": "^0.124.2-85-x",
|
||||
"@polkadot/react-hooks": "^0.124.2-85-x",
|
||||
"@polkadot/util": "^10.3.1",
|
||||
"@polkadot/vanitygen": "^0.52.27",
|
||||
"@polkadot/util": "^10.4.2",
|
||||
"@polkadot/vanitygen": "^0.52.29",
|
||||
"detect-browser": "^5.3.0",
|
||||
"file-saver": "^2.0.5"
|
||||
},
|
||||
|
||||
@ -11,11 +11,10 @@ import type { KeyringAddress, KeyringJson$Meta } from '@polkadot/ui-keyring/type
|
||||
import type { AccountBalance, Delegation } from '../types';
|
||||
|
||||
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { ApiPromise } from '@polkadot/api';
|
||||
import useAccountLocks from '@polkadot/app-referenda/useAccountLocks';
|
||||
import { AddressInfo, AddressSmall, Badge, Button, ChainLock, Columar, CryptoType, Forget, LinkExternal, Menu, Popup, Table, Tags } from '@polkadot/react-components';
|
||||
import { AddressInfo, AddressSmall, Badge, Button, ChainLock, Columar, CryptoType, Forget, LinkExternal, Menu, Popup, styled, Table, Tags } from '@polkadot/react-components';
|
||||
import { useAccountInfo, useApi, useBalancesAll, useBestNumber, useCall, useLedger, useQueue, useStakingInfo, useToggle } from '@polkadot/react-hooks';
|
||||
import { keyring } from '@polkadot/ui-keyring';
|
||||
import { BN, BN_ZERO, formatBalance, formatNumber, isFunction } from '@polkadot/util';
|
||||
|
||||
@ -2,7 +2,8 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { styled } from '@polkadot/react-components';
|
||||
|
||||
interface Props {
|
||||
children: React.ReactNode;
|
||||
|
||||
@ -8,9 +8,8 @@ import type { AccountBalance, Delegation, SortedAccount } from '../types';
|
||||
import type { SortCategory } from '../util';
|
||||
|
||||
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Button, FilterInput, SortDropdown, SummaryBox, Table } from '@polkadot/react-components';
|
||||
import { Button, FilterInput, SortDropdown, styled, SummaryBox, Table } from '@polkadot/react-components';
|
||||
import { getAccountCryptoType } from '@polkadot/react-components/util';
|
||||
import { useAccounts, useApi, useDelegations, useFavorites, useIpfs, useLedger, useNextTick, useProxies, useToggle } from '@polkadot/react-hooks';
|
||||
import { keyring } from '@polkadot/ui-keyring';
|
||||
|
||||
@ -44,7 +44,7 @@ const renderAccounts = () => {
|
||||
);
|
||||
};
|
||||
|
||||
describe('--SLOW--: Account Create', () => {
|
||||
describe.skip('--SLOW--: Account Create', () => {
|
||||
it('created account is added to list', async () => {
|
||||
const { findByTestId, findByText, queryByText } = renderAccounts();
|
||||
|
||||
|
||||
@ -2,9 +2,8 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import React, { useCallback } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Button } from '@polkadot/react-components';
|
||||
import { Button, styled } from '@polkadot/react-components';
|
||||
import { useApi, useToggle } from '@polkadot/react-hooks';
|
||||
import { AddressFlags } from '@polkadot/react-hooks/types';
|
||||
import { isFunction } from '@polkadot/util';
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import React from 'react';
|
||||
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
||||
import CopyToClipboard from 'react-copy-to-clipboard';
|
||||
|
||||
import { AccountName, Button, IdentityIcon, Input } from '@polkadot/react-components';
|
||||
import { useToggle } from '@polkadot/react-hooks';
|
||||
|
||||
@ -2,9 +2,8 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { AddressInfo } from '@polkadot/react-components';
|
||||
import { AddressInfo, styled } from '@polkadot/react-components';
|
||||
|
||||
import { useTranslation } from '../translate';
|
||||
|
||||
|
||||
@ -4,9 +4,8 @@
|
||||
import type { AddressFlags } from '@polkadot/react-hooks/types';
|
||||
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Flag } from '@polkadot/react-components';
|
||||
import { Flag, styled } from '@polkadot/react-components';
|
||||
|
||||
import { useTranslation } from '../translate';
|
||||
|
||||
|
||||
@ -2,9 +2,8 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Tag } from '@polkadot/react-components';
|
||||
import { styled, Tag } from '@polkadot/react-components';
|
||||
import { useJudgements } from '@polkadot/react-hooks';
|
||||
|
||||
import { useTranslation } from '../translate';
|
||||
|
||||
@ -2,9 +2,8 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import React, { useRef, useState } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { LinkExternal } from '@polkadot/react-components';
|
||||
import { LinkExternal, styled } from '@polkadot/react-components';
|
||||
import Sidebar from '@polkadot/react-components/Sidebar';
|
||||
import { colorLink } from '@polkadot/react-components/styles/theme';
|
||||
import { useAccountInfo } from '@polkadot/react-hooks';
|
||||
|
||||
@ -2,9 +2,8 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import React, { useCallback, useMemo } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Button, IdentityIcon } from '@polkadot/react-components';
|
||||
import { Button, IdentityIcon, styled } from '@polkadot/react-components';
|
||||
import { u8aToHex } from '@polkadot/util';
|
||||
|
||||
import { useTranslation } from '../translate';
|
||||
|
||||
@ -6,9 +6,8 @@ import type { KeypairType } from '@polkadot/util-crypto/types';
|
||||
import type { GeneratorMatch, GeneratorMatches, GeneratorResult } from '@polkadot/vanitygen/types';
|
||||
|
||||
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Button, Dropdown, Input, Table } from '@polkadot/react-components';
|
||||
import { Button, Dropdown, Input, styled, Table } from '@polkadot/react-components';
|
||||
import { useApi, useIsMountedRef } from '@polkadot/react-hooks';
|
||||
import { settings } from '@polkadot/ui-settings';
|
||||
import { nextTick } from '@polkadot/util';
|
||||
|
||||
@ -5,10 +5,9 @@ import type { ActionStatus } from '@polkadot/react-components/Status/types';
|
||||
import type { AddressState, CreateOptions, CreateProps, DeriveValidationOutput, PairType, SeedType } from '../types';
|
||||
|
||||
import React, { useCallback, useRef, useState } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { DEV_PHRASE } from '@polkadot/keyring/defaults';
|
||||
import { AddressRow, Button, Checkbox, CopyButton, Dropdown, Expander, Input, MarkError, MarkWarning, Modal, TextArea } from '@polkadot/react-components';
|
||||
import { AddressRow, Button, Checkbox, CopyButton, Dropdown, Expander, Input, MarkError, MarkWarning, Modal, styled, TextArea } from '@polkadot/react-components';
|
||||
import { useApi, useLedger, useStepper } from '@polkadot/react-hooks';
|
||||
import { keyring } from '@polkadot/ui-keyring';
|
||||
import { settings } from '@polkadot/ui-settings';
|
||||
|
||||
@ -6,9 +6,8 @@ import type { AccountId, Call, H256, Multisig } from '@polkadot/types/interfaces
|
||||
import type { CallFunction } from '@polkadot/types/types';
|
||||
|
||||
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { AddressMini, Call as CallDisplay, Dropdown, Expander, Input, InputAddress, MarkError, Modal, Toggle, TxButton } from '@polkadot/react-components';
|
||||
import { AddressMini, Call as CallDisplay, Dropdown, Expander, Input, InputAddress, MarkError, Modal, styled, Toggle, TxButton } from '@polkadot/react-components';
|
||||
import { useAccounts, useApi, useWeight } from '@polkadot/react-hooks';
|
||||
import { assert, isHex } from '@polkadot/util';
|
||||
|
||||
|
||||
@ -5,9 +5,8 @@ import type { ActionStatus } from '@polkadot/react-components/Status/types';
|
||||
import type { ModalProps } from '../types';
|
||||
|
||||
import React, { useCallback, useState } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { AddressMini, Button, IconLink, Input, InputAddressMulti, InputFile, InputNumber, Labelled, MarkError, Modal, Toggle } from '@polkadot/react-components';
|
||||
import { AddressMini, Button, IconLink, Input, InputAddressMulti, InputFile, InputNumber, Labelled, MarkError, Modal, styled, Toggle } from '@polkadot/react-components';
|
||||
import { useApi } from '@polkadot/react-hooks';
|
||||
import { keyring } from '@polkadot/ui-keyring';
|
||||
import { assert, BN, u8aToString } from '@polkadot/util';
|
||||
|
||||
@ -9,9 +9,8 @@ import type { KitchensinkRuntimeProxyType, PalletProxyProxyDefinition } from '@p
|
||||
import type { BN } from '@polkadot/util';
|
||||
|
||||
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { BatchWarning, Button, Dropdown, InputAddress, InputBalance, MarkError, Modal, TxButton } from '@polkadot/react-components';
|
||||
import { BatchWarning, Button, Dropdown, InputAddress, InputBalance, MarkError, Modal, styled, TxButton } from '@polkadot/react-components';
|
||||
import { useApi, useTxBatch } from '@polkadot/react-hooks';
|
||||
import { BN_ZERO } from '@polkadot/util';
|
||||
|
||||
|
||||
@ -5,9 +5,8 @@ import type { ActionStatus } from '@polkadot/react-components/Status/types';
|
||||
import type { ModalProps } from '../types';
|
||||
|
||||
import React, { useCallback, useMemo, useState } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { AddressRow, Button, Input, InputAddress, MarkWarning, Modal, QrScanAddress } from '@polkadot/react-components';
|
||||
import { AddressRow, Button, Input, InputAddress, MarkWarning, Modal, QrScanAddress, styled } from '@polkadot/react-components';
|
||||
import { useApi, useIpfs } from '@polkadot/react-hooks';
|
||||
import { keyring } from '@polkadot/ui-keyring';
|
||||
|
||||
|
||||
@ -6,10 +6,9 @@ import type { AccountInfoWithProviders, AccountInfoWithRefCount } from '@polkado
|
||||
import type { BN } from '@polkadot/util';
|
||||
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { checkAddress } from '@polkadot/phishing';
|
||||
import { InputAddress, InputBalance, MarkError, MarkWarning, Toggle, TxButton } from '@polkadot/react-components';
|
||||
import { InputAddress, InputBalance, MarkError, MarkWarning, styled, Toggle, TxButton } from '@polkadot/react-components';
|
||||
import Modal from '@polkadot/react-components/Modal';
|
||||
import { useApi, useCall } from '@polkadot/react-hooks';
|
||||
import { Available } from '@polkadot/react-query';
|
||||
|
||||
@ -19,6 +19,6 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@testing-library/react": "^13.4.0",
|
||||
"testcontainers": "^9.1.2"
|
||||
"testcontainers": "^9.1.3"
|
||||
}
|
||||
}
|
||||
|
||||
@ -4,9 +4,8 @@
|
||||
import type { ActionStatus } from '@polkadot/react-components/Status/types';
|
||||
|
||||
import React, { useEffect, useRef, useState } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Button, FilterInput, SummaryBox, Table } from '@polkadot/react-components';
|
||||
import { Button, FilterInput, styled, SummaryBox, Table } from '@polkadot/react-components';
|
||||
import { useAddresses, useFavorites, useNextTick, useToggle } from '@polkadot/react-hooks';
|
||||
|
||||
import CreateModal from '../modals/Create';
|
||||
|
||||
@ -4,9 +4,8 @@
|
||||
import type { AssetInfo, AssetInfoComplete } from '../types';
|
||||
|
||||
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Dropdown, Table } from '@polkadot/react-components';
|
||||
import { Dropdown, styled, Table } from '@polkadot/react-components';
|
||||
import { formatNumber } from '@polkadot/util';
|
||||
|
||||
import { useTranslation } from '../translate';
|
||||
|
||||
@ -44,7 +44,7 @@ const renderBounties = () => {
|
||||
);
|
||||
};
|
||||
|
||||
describe('--SLOW--: Bounties', () => {
|
||||
describe.skip('--SLOW--: Bounties', () => {
|
||||
it('list shows an existing bounty', async () => {
|
||||
const api = await createApi();
|
||||
|
||||
|
||||
@ -4,10 +4,9 @@
|
||||
import type { BN } from '@polkadot/util';
|
||||
|
||||
import React, { useMemo, useRef } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import Summary from '@polkadot/app-bounties/Summary';
|
||||
import { Button, Table } from '@polkadot/react-components';
|
||||
import { Button, styled, Table } from '@polkadot/react-components';
|
||||
|
||||
import Bounty from './Bounty';
|
||||
import BountyCreate from './BountyCreate';
|
||||
|
||||
@ -6,9 +6,8 @@ import type { Bounty as BountyType, BountyIndex } from '@polkadot/types/interfac
|
||||
import type { BN } from '@polkadot/util';
|
||||
|
||||
import React, { useMemo } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { AddressSmall, Columar, ExpandButton, LinkExternal, Table } from '@polkadot/react-components';
|
||||
import { AddressSmall, Columar, ExpandButton, LinkExternal, styled, Table } from '@polkadot/react-components';
|
||||
import { useToggle } from '@polkadot/react-hooks';
|
||||
import { FormatBalance } from '@polkadot/react-query';
|
||||
|
||||
|
||||
@ -5,9 +5,8 @@ import type { DeriveCollectiveProposal } from '@polkadot/api-derive/types';
|
||||
import type { BountyStatus } from '@polkadot/types/interfaces';
|
||||
|
||||
import React, { useRef } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { LabelHelp } from '@polkadot/react-components';
|
||||
import { LabelHelp, styled } from '@polkadot/react-components';
|
||||
|
||||
import { proposalNameToDisplay } from '../helpers/extendedStatuses';
|
||||
import { useTranslation } from '../translate';
|
||||
|
||||
@ -2,7 +2,8 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { styled } from '@polkadot/react-components';
|
||||
|
||||
import { useTranslation } from '../translate';
|
||||
|
||||
|
||||
@ -5,9 +5,9 @@ import type { DeriveCollectiveProposal } from '@polkadot/api-derive/types';
|
||||
import type { BountyStatus } from '@polkadot/types/interfaces';
|
||||
|
||||
import React, { useMemo } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import VotingDescriptionInfo from '@polkadot/app-bounties/BountyInfos/VotingDescriptionInfo';
|
||||
import { styled } from '@polkadot/react-components';
|
||||
import { useCollectiveMembers } from '@polkadot/react-hooks';
|
||||
|
||||
import { useTranslation } from '../translate';
|
||||
|
||||
@ -4,9 +4,8 @@
|
||||
import type { ThemeProps } from '@polkadot/react-components/types';
|
||||
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Icon } from '@polkadot/react-components';
|
||||
import { Icon, styled } from '@polkadot/react-components';
|
||||
|
||||
import { bountySvgColor } from '../theme';
|
||||
|
||||
|
||||
@ -2,7 +2,8 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { styled } from '@polkadot/react-components';
|
||||
|
||||
import { insertSpaceBeforeCapitalLetter } from './helpers';
|
||||
import { StatusName } from './types';
|
||||
|
||||
@ -2,7 +2,8 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { styled } from '@polkadot/react-components';
|
||||
|
||||
interface Props {
|
||||
className?: string;
|
||||
|
||||
@ -6,9 +6,8 @@ import type { DeriveCollectiveProposal } from '@polkadot/api-derive/types';
|
||||
import type { BountyStatus } from '@polkadot/types/interfaces';
|
||||
|
||||
import React, { useMemo } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { AddressSmall, Icon } from '@polkadot/react-components';
|
||||
import { AddressSmall, Icon, styled } from '@polkadot/react-components';
|
||||
|
||||
import { getProposalToDisplay } from './helpers/extendedStatuses';
|
||||
import { useTranslation } from './translate';
|
||||
|
||||
@ -14,7 +14,7 @@ export const defaultBountyUpdatePeriod = new BN(100000);
|
||||
export const defaultBountyApi: BountyApi = {
|
||||
acceptCurator: jest.fn() as unknown as SubmittableExtrinsicFunction<'promise'>,
|
||||
approveBounty: jest.fn() as unknown as SubmittableExtrinsicFunction<'promise'>,
|
||||
awardBounty: jest.fn().mockReturnValue('mockAwardExtrinsic') as unknown as SubmittableExtrinsicFunction<'promise'>,
|
||||
awardBounty: jest.fn(() => 'mockAwardExtrinsic') as unknown as SubmittableExtrinsicFunction<'promise'>,
|
||||
bestNumber: BN_ONE,
|
||||
bounties: [] as DeriveBounties,
|
||||
bountyCuratorDeposit: balanceOf(500000),
|
||||
@ -22,13 +22,13 @@ export const defaultBountyApi: BountyApi = {
|
||||
bountyUpdatePeriod: defaultBountyUpdatePeriod,
|
||||
bountyValueMinimum: BN_ONE,
|
||||
claimBounty: jest.fn() as unknown as SubmittableExtrinsicFunction<'promise'>,
|
||||
closeBounty: jest.fn().mockReturnValue({ length: 4 }) as unknown as SubmittableExtrinsicFunction<'promise'>,
|
||||
closeBounty: jest.fn(() => ({ length: 4 })) as unknown as SubmittableExtrinsicFunction<'promise'>,
|
||||
dataDepositPerByte: BN_ONE,
|
||||
extendBountyExpiry: jest.fn().mockReturnValue('mockExtendExtrinsic') as unknown as SubmittableExtrinsicFunction<'promise'>,
|
||||
extendBountyExpiry: jest.fn(() => 'mockExtendExtrinsic') as unknown as SubmittableExtrinsicFunction<'promise'>,
|
||||
maximumReasonLength: 100,
|
||||
proposeBounty: jest.fn() as unknown as SubmittableExtrinsicFunction<'promise'>,
|
||||
proposeCurator: jest.fn() as unknown as SubmittableExtrinsicFunction<'promise'>,
|
||||
unassignCurator: jest.fn().mockReturnValue('mockUnassignExtrinsic') as unknown as SubmittableExtrinsicFunction<'promise'>
|
||||
unassignCurator: jest.fn(() => 'mockUnassignExtrinsic') as unknown as SubmittableExtrinsicFunction<'promise'>
|
||||
};
|
||||
|
||||
const defaultBalance = balanceOf(1);
|
||||
|
||||
@ -42,7 +42,7 @@ class NotYetRendered extends Error {
|
||||
}
|
||||
|
||||
let queueExtrinsic: (value: PartialQueueTxExtrinsic) => void;
|
||||
const propose = jest.fn().mockReturnValue('mockProposeExtrinsic');
|
||||
const propose = jest.fn(() => 'mockProposeExtrinsic');
|
||||
|
||||
interface RenderedBountiesPage {
|
||||
findAllByTestId: FindManyWithMatcher;
|
||||
|
||||
@ -4,9 +4,8 @@
|
||||
import type { EntryInfoTyped } from './types';
|
||||
|
||||
import React, { useCallback, useMemo, useRef } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Button } from '@polkadot/react-components';
|
||||
import { Button, styled } from '@polkadot/react-components';
|
||||
|
||||
import { MONTHS } from './constants';
|
||||
import DayHour from './DayHour';
|
||||
|
||||
@ -4,7 +4,8 @@
|
||||
import type { EntryInfoTyped } from './types';
|
||||
|
||||
import React, { useMemo } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { styled } from '@polkadot/react-components';
|
||||
|
||||
import DayItem from './DayItem';
|
||||
|
||||
|
||||
@ -4,9 +4,8 @@
|
||||
import type { EntryInfoTyped } from './types';
|
||||
|
||||
import React, { useCallback, useMemo, useState } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Button } from '@polkadot/react-components';
|
||||
import { Button, styled } from '@polkadot/react-components';
|
||||
import { formatNumber, isString } from '@polkadot/util';
|
||||
|
||||
import { useTranslation } from './translate';
|
||||
|
||||
@ -4,9 +4,8 @@
|
||||
import type { DateState, EntryInfo } from './types';
|
||||
|
||||
import React, { useMemo, useRef } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Button } from '@polkadot/react-components';
|
||||
import { Button, styled } from '@polkadot/react-components';
|
||||
|
||||
import { DAYS, MONTHS } from './constants';
|
||||
import MonthDay from './MonthDay';
|
||||
|
||||
@ -4,7 +4,8 @@
|
||||
import type { EntryInfo } from './types';
|
||||
|
||||
import React, { useCallback, useMemo } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { styled } from '@polkadot/react-components';
|
||||
|
||||
interface Props {
|
||||
className?: string;
|
||||
|
||||
@ -4,9 +4,8 @@
|
||||
import type { EntryInfoTyped } from './types';
|
||||
|
||||
import React, { useCallback, useMemo } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Button } from '@polkadot/react-components';
|
||||
import { Button, styled } from '@polkadot/react-components';
|
||||
|
||||
import DayItem from './DayItem';
|
||||
import { useTranslation } from './translate';
|
||||
|
||||
@ -4,9 +4,8 @@
|
||||
import type { DateState } from './types';
|
||||
|
||||
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Tabs } from '@polkadot/react-components';
|
||||
import { styled, Tabs } from '@polkadot/react-components';
|
||||
|
||||
import Day from './Day';
|
||||
import Month from './Month';
|
||||
|
||||
@ -7,9 +7,8 @@ import type { BalanceOf, EthereumAddress, StatementKind } from '@polkadot/types/
|
||||
import type { BN } from '@polkadot/util';
|
||||
|
||||
import React, { useEffect, useMemo, useState } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Button, Card, TxButton } from '@polkadot/react-components';
|
||||
import { Button, Card, styled, TxButton } from '@polkadot/react-components';
|
||||
import { useAccounts, useApi } from '@polkadot/react-hooks';
|
||||
import { FormatBalance } from '@polkadot/react-query';
|
||||
import { BN_ZERO } from '@polkadot/util';
|
||||
|
||||
@ -9,9 +9,8 @@ import type { BalanceOf, EthereumAddress, EthereumSignature, StatementKind } fro
|
||||
import type { BN } from '@polkadot/util';
|
||||
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Button, Card, TxButton } from '@polkadot/react-components';
|
||||
import { Button, Card, styled, TxButton } from '@polkadot/react-components';
|
||||
import { useApi } from '@polkadot/react-hooks';
|
||||
import { FormatBalance } from '@polkadot/react-query';
|
||||
import { BN_ZERO } from '@polkadot/util';
|
||||
|
||||
@ -4,7 +4,8 @@
|
||||
import type { StatementKind } from '@polkadot/types/interfaces';
|
||||
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { styled } from '@polkadot/react-components';
|
||||
|
||||
import { useTranslation } from './translate';
|
||||
import { getStatement } from './util';
|
||||
|
||||
@ -2,9 +2,8 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { AddressMini, Card } from '@polkadot/react-components';
|
||||
import { AddressMini, Card, styled } from '@polkadot/react-components';
|
||||
|
||||
import { useTranslation } from './translate';
|
||||
import usePolkadotPreclaims from './usePolkadotPreclaims';
|
||||
|
||||
@ -8,9 +8,8 @@ import type { EcdsaSignature, EthereumAddress, StatementKind } from '@polkadot/t
|
||||
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
||||
import CopyToClipboard from 'react-copy-to-clipboard';
|
||||
import { Trans } from 'react-i18next';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Button, Card, Columar, Input, InputAddress, Tabs, Tooltip } from '@polkadot/react-components';
|
||||
import { Button, Card, Columar, Input, InputAddress, styled, Tabs, Tooltip } from '@polkadot/react-components';
|
||||
import { TokenUnit } from '@polkadot/react-components/InputNumber';
|
||||
import { useApi, useCall } from '@polkadot/react-hooks';
|
||||
import { u8aToHex, u8aToString } from '@polkadot/util';
|
||||
|
||||
2
packages/page-claims/src/secp256k1.d.ts
vendored
2
packages/page-claims/src/secp256k1.d.ts
vendored
@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/app-claims authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
declare module 'secp256k1/elliptic' {
|
||||
declare module 'secp256k1/elliptic.js' {
|
||||
export function publicKeyConvert (publicKey: Buffer, expanded: boolean): Buffer;
|
||||
export function recover (msgHash: Buffer, signature: Buffer, recovery: number): Buffer;
|
||||
}
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
import type { EcdsaSignature, EthereumAddress, StatementKind } from '@polkadot/types/interfaces';
|
||||
|
||||
import secp256k1 from 'secp256k1/elliptic';
|
||||
import secp256k1 from 'secp256k1/elliptic.js';
|
||||
|
||||
import registry from '@polkadot/react-api/typeRegistry';
|
||||
import { assert, hexToU8a, stringToU8a, u8aConcat, u8aToBuffer } from '@polkadot/util';
|
||||
|
||||
@ -14,6 +14,6 @@
|
||||
"version": "0.124.2-85-x",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"@polkadot/api-contract": "^9.13.6"
|
||||
"@polkadot/api-contract": "^9.14.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -6,9 +6,8 @@ import type { Codec } from '@polkadot/types/types';
|
||||
import type { CodeStored } from '../types';
|
||||
|
||||
import React, { useCallback } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Button, Card, CopyButton, Forget } from '@polkadot/react-components';
|
||||
import { Button, Card, CopyButton, Forget, styled } from '@polkadot/react-components';
|
||||
import { useApi, useCall, useToggle } from '@polkadot/react-hooks';
|
||||
|
||||
import { CodeRow, Messages } from '../shared';
|
||||
|
||||
@ -7,9 +7,8 @@ import type { ContractCallOutcome } from '@polkadot/api-contract/types';
|
||||
import type { CallResult } from './types';
|
||||
|
||||
import React, { useCallback, useEffect, useState } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Button, Dropdown, Expander, InputAddress, InputBalance, Modal, Toggle, TxButton } from '@polkadot/react-components';
|
||||
import { Button, Dropdown, Expander, InputAddress, InputBalance, Modal, styled, Toggle, TxButton } from '@polkadot/react-components';
|
||||
import { useAccountId, useDebounce, useFormField, useToggle } from '@polkadot/react-hooks';
|
||||
import { convertWeight } from '@polkadot/react-hooks/useWeight';
|
||||
import { Available } from '@polkadot/react-query';
|
||||
|
||||
@ -9,9 +9,8 @@ import type { ContractInfo } from '@polkadot/types/interfaces';
|
||||
import type { ContractLink } from './types';
|
||||
|
||||
import React, { useCallback } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { AddressInfo, AddressMini, Button, Forget } from '@polkadot/react-components';
|
||||
import { AddressInfo, AddressMini, Button, Forget, styled } from '@polkadot/react-components';
|
||||
import { useApi, useCall, useToggle } from '@polkadot/react-hooks';
|
||||
import { keyring } from '@polkadot/ui-keyring';
|
||||
import { isUndefined } from '@polkadot/util';
|
||||
|
||||
@ -4,9 +4,8 @@
|
||||
import type { CallResult } from './types';
|
||||
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Button, IdentityIcon, Output } from '@polkadot/react-components';
|
||||
import { Button, IdentityIcon, Output, styled } from '@polkadot/react-components';
|
||||
import valueToText from '@polkadot/react-params/valueToText';
|
||||
|
||||
import MessageSignature from '../shared/MessageSignature';
|
||||
|
||||
@ -2,9 +2,8 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import React, { useCallback, useState } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Button } from '@polkadot/react-components';
|
||||
import { Button, styled } from '@polkadot/react-components';
|
||||
import { useToggle } from '@polkadot/react-hooks';
|
||||
|
||||
import Codes from '../Codes';
|
||||
|
||||
@ -4,9 +4,8 @@
|
||||
import type { CodeStored } from '../types';
|
||||
|
||||
import React, { useCallback, useEffect, useState } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Icon } from '@polkadot/react-components';
|
||||
import { Icon, styled } from '@polkadot/react-components';
|
||||
import Row from '@polkadot/react-components/Row';
|
||||
|
||||
import contracts from '../store';
|
||||
|
||||
@ -5,9 +5,8 @@ import type { BN } from '@polkadot/util';
|
||||
import type { UseWeight } from '../types';
|
||||
|
||||
import React, { useEffect, useMemo, useState } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { InputNumber, Toggle } from '@polkadot/react-components';
|
||||
import { InputNumber, styled, Toggle } from '@polkadot/react-components';
|
||||
import { BN_MILLION, BN_ONE, BN_ZERO } from '@polkadot/util';
|
||||
|
||||
import { useTranslation } from '../translate';
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user