Switch on tsconfig composite (#9465)
* Switch on tsconfig composite * Rebuild locales * Fix CallExpander import
This commit is contained in:
parent
0ce6e2fed1
commit
26bcc6073d
@ -68,7 +68,7 @@
|
||||
"devDependencies": {
|
||||
"@crustio/crust-pin": "^1.0.0",
|
||||
"@pinata/sdk": "^1.2.1",
|
||||
"@polkadot/dev": "^0.73.17",
|
||||
"@polkadot/dev": "^0.74.1",
|
||||
"@types/chart.js": "^2.9.37",
|
||||
"@types/file-saver": "^2.0.5",
|
||||
"@types/react-beautiful-dnd": "^13.1.4",
|
||||
|
||||
@ -3,7 +3,13 @@
|
||||
"compilerOptions": {
|
||||
"baseUrl": "..",
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
"rootDir": "./src",
|
||||
/* Some of our types dependencies are not playing along nicely */
|
||||
"verbatimModuleSyntax": false
|
||||
},
|
||||
"exclude": [
|
||||
"**/build-*",
|
||||
"**/*.spec.ts"
|
||||
],
|
||||
"references": []
|
||||
}
|
||||
|
||||
16
packages/apps-config/tsconfig.spec.json
Normal file
16
packages/apps-config/tsconfig.spec.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": "..",
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src",
|
||||
"emitDeclarationOnly": false,
|
||||
"noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"**/*.spec.ts"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../apps-config/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
@ -15,7 +15,7 @@
|
||||
"sideEffects": false,
|
||||
"version": "0.130.2-13-x",
|
||||
"dependencies": {
|
||||
"@polkadot/dev": "^0.73.17",
|
||||
"@polkadot/dev": "^0.74.1",
|
||||
"@polkadot/react-components": "^0.130.2-13-x",
|
||||
"electron-log": "^5.0.0-beta.23",
|
||||
"electron-updater": "^5.3.0",
|
||||
|
||||
@ -7,5 +7,12 @@
|
||||
/* Since this is a forced-by-electron-CJS-module, we have to switch this off */
|
||||
"verbatimModuleSyntax": false
|
||||
},
|
||||
"references": []
|
||||
"exclude": [
|
||||
"webpack.*.cjs"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../apps/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -5,5 +5,47 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../page-accounts/tsconfig.build.json" },
|
||||
{ "path": "../page-addresses/tsconfig.build.json" },
|
||||
{ "path": "../page-alliance/tsconfig.build.json" },
|
||||
{ "path": "../page-assets/tsconfig.build.json" },
|
||||
{ "path": "../page-bounties/tsconfig.build.json" },
|
||||
{ "path": "../page-calendar/tsconfig.build.json" },
|
||||
{ "path": "../page-claims/tsconfig.build.json" },
|
||||
{ "path": "../page-collator/tsconfig.build.json" },
|
||||
{ "path": "../page-contracts/tsconfig.build.json" },
|
||||
{ "path": "../page-council/tsconfig.build.json" },
|
||||
{ "path": "../page-democracy/tsconfig.build.json" },
|
||||
{ "path": "../page-explorer/tsconfig.build.json" },
|
||||
{ "path": "../page-extrinsics/tsconfig.build.json" },
|
||||
{ "path": "../page-fellowship/tsconfig.build.json" },
|
||||
{ "path": "../page-files/tsconfig.build.json" },
|
||||
{ "path": "../page-gilt/tsconfig.build.json" },
|
||||
{ "path": "../page-js/tsconfig.build.json" },
|
||||
{ "path": "../page-membership/tsconfig.build.json" },
|
||||
{ "path": "../page-nfts/tsconfig.build.json" },
|
||||
{ "path": "../page-nis/tsconfig.build.json" },
|
||||
{ "path": "../page-parachains/tsconfig.build.json" },
|
||||
{ "path": "../page-poll/tsconfig.build.json" },
|
||||
{ "path": "../page-preimages/tsconfig.build.json" },
|
||||
{ "path": "../page-ranked/tsconfig.build.json" },
|
||||
{ "path": "../page-referenda/tsconfig.build.json" },
|
||||
{ "path": "../page-rpc/tsconfig.build.json" },
|
||||
{ "path": "../page-runtime/tsconfig.build.json" },
|
||||
{ "path": "../page-scheduler/tsconfig.build.json" },
|
||||
{ "path": "../page-settings/tsconfig.build.json" },
|
||||
{ "path": "../page-signing/tsconfig.build.json" },
|
||||
{ "path": "../page-society/tsconfig.build.json" },
|
||||
{ "path": "../page-staking/tsconfig.build.json" },
|
||||
{ "path": "../page-staking2/tsconfig.build.json" },
|
||||
{ "path": "../page-storage/tsconfig.build.json" },
|
||||
{ "path": "../page-sudo/tsconfig.build.json" },
|
||||
{ "path": "../page-tech-comm/tsconfig.build.json" },
|
||||
{ "path": "../page-treasury/tsconfig.build.json" },
|
||||
{ "path": "../page-utilities/tsconfig.build.json" },
|
||||
{ "path": "../page-whitelist/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
"dependencies": {
|
||||
"@polkadot/apps-config": "^0.130.2-13-x",
|
||||
"@polkadot/apps-routing": "^0.130.2-13-x",
|
||||
"@polkadot/dev": "^0.73.17",
|
||||
"@polkadot/dev": "^0.74.1",
|
||||
"@polkadot/react-api": "^0.130.2-13-x",
|
||||
"@polkadot/react-components": "^0.130.2-13-x",
|
||||
"@polkadot/react-hooks": "^0.130.2-13-x",
|
||||
|
||||
@ -14,7 +14,6 @@
|
||||
"Aura": "Aura",
|
||||
"Babe": "Babe",
|
||||
"Bags": "Bags",
|
||||
"Blocks nominations": "Blocks nominations",
|
||||
"Bond": "Bond",
|
||||
"Bond & Nominate": "Bond & Nominate",
|
||||
"Bond & Validate": "Bond & Validate",
|
||||
@ -29,10 +28,8 @@
|
||||
"Change reward destination": "Change reward destination",
|
||||
"Change session keys": "Change session keys",
|
||||
"Change validator preferences": "Change validator preferences",
|
||||
"Chilled": "Chilled",
|
||||
"Controller account": "Controller account",
|
||||
"Distinct stash and controller accounts are recommended to ensure fund security. You will be allowed to make the transaction, but take care to not tie up all funds, only use a portion of the available funds during this period.": "Distinct stash and controller accounts are recommended to ensure fund security. You will be allowed to make the transaction, but take care to not tie up all funds, only use a portion of the available funds during this period.",
|
||||
"Era points": "Era points",
|
||||
"For fund security, your session key should not match your stash key.": "For fund security, your session key should not match your stash key.",
|
||||
"Free balance": "Free balance",
|
||||
"Grandpa": "Grandpa",
|
||||
@ -47,7 +44,6 @@
|
||||
"Most profitable": "Most profitable",
|
||||
"Move up {{jumpCount}}": "Move up {{jumpCount}}",
|
||||
"My bags": "My bags",
|
||||
"Next session": "Next session",
|
||||
"No active validators found": "No active validators found",
|
||||
"No active validators to check": "No active validators to check",
|
||||
"No available bags": "No available bags",
|
||||
@ -60,7 +56,6 @@
|
||||
"Nominate Validators": "Nominate Validators",
|
||||
"Nominate selected": "Nominate selected",
|
||||
"Nominate validators": "Nominate validators",
|
||||
"Nominating": "Nominating",
|
||||
"Nominations ({{count}})": "Nominations ({{count}})",
|
||||
"Nominator": "Nominator",
|
||||
"Nominators": "Nominators",
|
||||
@ -71,13 +66,10 @@
|
||||
"Once transmitted the new selection will only take effect in 2 eras since the selection criteria for the next era was done at the end of the previous era. Until then, the nominations will show as inactive.": "Once transmitted the new selection will only take effect in 2 eras since the selection criteria for the next era was done at the end of the previous era. Until then, the nominations will show as inactive.",
|
||||
"Once transmitted the new selection will only take effect in 2 eras taking the new validator election cycle into account. Until then, the nominations will show as inactive.": "Once transmitted the new selection will only take effect in 2 eras taking the new validator election cycle into account. Until then, the nominations will show as inactive.",
|
||||
"One of your available nomination accounts, keyed by the stash. The transaction will be sent from the controller.": "One of your available nomination accounts, keyed by the stash. The transaction will be sent from the controller.",
|
||||
"Online message": "Online message",
|
||||
"Oversubscribed": "Oversubscribed",
|
||||
"Oversubscribed nominations ({{count}})": "Oversubscribed nominations ({{count}})",
|
||||
"Overview": "Overview",
|
||||
"Own stashes": "Own stashes",
|
||||
"Own validators": "Own validators",
|
||||
"Para validator": "Para validator",
|
||||
"Parachains": "Parachains",
|
||||
"Payout": "Payout",
|
||||
"Payout all": "Payout all",
|
||||
@ -89,7 +81,6 @@
|
||||
"Pools": "Pools",
|
||||
"Preparing target display": "Preparing target display",
|
||||
"Preparing validator list": "Preparing validator list",
|
||||
"Produced blocks": "Produced blocks",
|
||||
"Rebag": "Rebag",
|
||||
"Rebag dislocated entries": "Rebag dislocated entries",
|
||||
"Rebag {{count}}": "Rebag {{count}}",
|
||||
@ -115,7 +106,6 @@
|
||||
"Setup Nominator {{step}}/{{NUM_STEPS}}": "Setup Nominator {{step}}/{{NUM_STEPS}}",
|
||||
"Setup Validator {{step}}/{{NUM_STEPS}}": "Setup Validator {{step}}/{{NUM_STEPS}}",
|
||||
"Since this transaction deals with funding, the stash account will be used.": "Since this transaction deals with funding, the stash account will be used.",
|
||||
"Slashed": "Slashed",
|
||||
"Slashed in era {{eras}}": "Slashed in era {{eras}}",
|
||||
"Slashes": "Slashes",
|
||||
"Specified payment account": "Specified payment account",
|
||||
|
||||
@ -2,22 +2,32 @@
|
||||
"Active": "Active",
|
||||
"Add pool": "Add pool",
|
||||
"All pools": "All pools",
|
||||
"Blocks nominations": "Blocks nominations",
|
||||
"Chilled": "Chilled",
|
||||
"Create": "Create",
|
||||
"Create nomination pool": "Create nomination pool",
|
||||
"Era points": "Era points",
|
||||
"Join": "Join",
|
||||
"Join nomination pool": "Join nomination pool",
|
||||
"Members ({{count}})": "Members ({{count}})",
|
||||
"Next session": "Next session",
|
||||
"No available nomination pools": "No available nomination pools",
|
||||
"No members": "No members",
|
||||
"No nominees": "No nominees",
|
||||
"No session validators found": "No session validators found",
|
||||
"No waiting validators found": "No waiting validators found",
|
||||
"Nominating": "Nominating",
|
||||
"Nominees ({{count}})": "Nominees ({{count}})",
|
||||
"Online message": "Online message",
|
||||
"Oversubscribed": "Oversubscribed",
|
||||
"Own pools": "Own pools",
|
||||
"Para validator": "Para validator",
|
||||
"Pools": "Pools",
|
||||
"Produced blocks": "Produced blocks",
|
||||
"Retrieving nomination pools": "Retrieving nomination pools",
|
||||
"Retrieving session validators": "Retrieving session validators",
|
||||
"Retrieving waiting validators": "Retrieving waiting validators",
|
||||
"Slashed": "Slashed",
|
||||
"The account that will join the pool.": "The account that will join the pool.",
|
||||
"The id that will be assigned to this nomination pool.": "The id that will be assigned to this nomination pool.",
|
||||
"The initial value to assign to the pool. It is set to the maximum of the minimum bond and the minium nomination value.": "The initial value to assign to the pool. It is set to the maximum of the minimum bond and the minium nomination value.",
|
||||
|
||||
@ -20,7 +20,6 @@
|
||||
"Judge": "Judge",
|
||||
"Make Transfer": "Make Transfer",
|
||||
"Multisig": "Multisig",
|
||||
"No execution details available for this proposal": "No execution details available for this proposal",
|
||||
"No identity associated with account": "No identity associated with account",
|
||||
"No judgements": "No judgements",
|
||||
"Nominator": "Nominator",
|
||||
@ -72,21 +71,18 @@
|
||||
"click to select or drag and drop the file here": "click to select or drag and drop the file here",
|
||||
"clipboard": "clipboard",
|
||||
"commission": "commission",
|
||||
"contract event": "contract event",
|
||||
"democracy": "democracy",
|
||||
"discord": "discord",
|
||||
"email": "email",
|
||||
"everything": "everything",
|
||||
"existential deposit": "existential deposit",
|
||||
"external links": "external links",
|
||||
"extrinsic hash": "extrinsic hash",
|
||||
"filter by name, address, or account index": "filter by name, address, or account index",
|
||||
"identity": "identity",
|
||||
"identity hash": "identity hash",
|
||||
"index": "index",
|
||||
"invalid/unknown registrar account": "invalid/unknown registrar account",
|
||||
"judgement": "judgement",
|
||||
"lifetime": "lifetime",
|
||||
"link": "link",
|
||||
"lock expired": "lock expired",
|
||||
"locked": "locked",
|
||||
@ -97,7 +93,6 @@
|
||||
"only this network": "only this network",
|
||||
"parent": "parent",
|
||||
"per block": "per block",
|
||||
"preimage": "preimage",
|
||||
"proposed by": "proposed by",
|
||||
"redeemable": "redeemable",
|
||||
"referenda": "referenda",
|
||||
@ -110,11 +105,9 @@
|
||||
"session keys": "session keys",
|
||||
"session next": "session next",
|
||||
"signatories": "signatories",
|
||||
"signature {{type}}": "signature {{type}}",
|
||||
"strong": "strong",
|
||||
"subs": "subs",
|
||||
"threshold": "threshold",
|
||||
"tip": "tip",
|
||||
"total": "total",
|
||||
"transactions": "transactions",
|
||||
"transferrable": "transferrable",
|
||||
|
||||
@ -11,17 +11,24 @@
|
||||
"Locked6x": "Locked6x",
|
||||
"Nay": "Nay",
|
||||
"No": "No",
|
||||
"No execution details available for this proposal": "No execution details available for this proposal",
|
||||
"None": "None",
|
||||
"Remove item": "Remove item",
|
||||
"Yes": "Yes",
|
||||
"aye: bool": "aye: bool",
|
||||
"call hash / {{section}}.{{method}}": "call hash / {{section}}.{{method}}",
|
||||
"click to select or drag and drop JSON key/value (hex-encoded) file": "click to select or drag and drop JSON key/value (hex-encoded) file",
|
||||
"contract event": "contract event",
|
||||
"conviction: Conviction": "conviction: Conviction",
|
||||
"details": "details",
|
||||
"extrinsic hash": "extrinsic hash",
|
||||
"file upload": "file upload",
|
||||
"hash a file": "hash a file",
|
||||
"include option": "include option",
|
||||
"lifetime": "lifetime",
|
||||
"preimage": "preimage",
|
||||
"signature {{type}}": "signature {{type}}",
|
||||
"tip": "tip",
|
||||
"type": "type",
|
||||
"{{count}} key/value pairs encoded for submission": "{{count}} key/value pairs encoded for submission"
|
||||
}
|
||||
@ -5,5 +5,15 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"exclude": [
|
||||
"public/*",
|
||||
"webpack.*.cjs"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../apps-config/tsconfig.build.json" },
|
||||
{ "path": "../apps-routing/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" },
|
||||
{ "path": "../react-signer/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -7,8 +7,9 @@ import type { CallFunction } from '@polkadot/types/types';
|
||||
|
||||
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
||||
|
||||
import { AddressMini, Call as CallDisplay, Dropdown, Expander, Input, InputAddress, MarkError, Modal, styled, Toggle, TxButton } from '@polkadot/react-components';
|
||||
import { AddressMini, Dropdown, Expander, Input, InputAddress, MarkError, Modal, styled, Toggle, TxButton } from '@polkadot/react-components';
|
||||
import { useAccounts, useApi, useWeight } from '@polkadot/react-hooks';
|
||||
import { Call as CallDisplay } from '@polkadot/react-params';
|
||||
import { assert, isHex } from '@polkadot/util';
|
||||
|
||||
import { useTranslation } from '../translate.js';
|
||||
|
||||
@ -5,5 +5,17 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"exclude": [
|
||||
"**/*.spec.ts",
|
||||
"**/*.spec.tsx",
|
||||
"**/test/**/*"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../page-claims/tsconfig.build.json" },
|
||||
{ "path": "../page-referenda/tsconfig.build.json" },
|
||||
{ "path": "../page-settings/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" },
|
||||
{ "path": "../react-params/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
|
||||
20
packages/page-accounts/tsconfig.spec.json
Normal file
20
packages/page-accounts/tsconfig.spec.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": "..",
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src",
|
||||
"emitDeclarationOnly": false,
|
||||
"noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"**/*.spec.ts",
|
||||
"**/*.spec.tsx"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../apps-config/tsconfig.build.json" },
|
||||
{ "path": "../page-accounts/tsconfig.build.json" },
|
||||
{ "path": "../page-accounts/tsconfig.test.json" },
|
||||
{ "path": "../test-support/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
18
packages/page-accounts/tsconfig.test.json
Normal file
18
packages/page-accounts/tsconfig.test.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": "..",
|
||||
"outDir": "./build",
|
||||
"rootDir": ".",
|
||||
// "emitDeclarationOnly": false,
|
||||
// "noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"**/test/**/*"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../apps-config/tsconfig.build.json" },
|
||||
{ "path": "../page-accounts/tsconfig.build.json" },
|
||||
{ "path": "../test-support/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
@ -5,5 +5,13 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"exclude": [
|
||||
"**/*.spec.ts",
|
||||
"**/*.spec.tsx",
|
||||
"**/test/**/*"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
|
||||
19
packages/page-addresses/tsconfig.spec.json
Normal file
19
packages/page-addresses/tsconfig.spec.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": "..",
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src",
|
||||
"emitDeclarationOnly": false,
|
||||
"noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"**/*.spec.ts",
|
||||
"**/*.spec.tsx"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../page-addresses/tsconfig.build.json" },
|
||||
{ "path": "../page-addresses/tsconfig.test.json" },
|
||||
{ "path": "../test-support/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
18
packages/page-addresses/tsconfig.test.json
Normal file
18
packages/page-addresses/tsconfig.test.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": "..",
|
||||
"outDir": "./build",
|
||||
"rootDir": ".",
|
||||
// "emitDeclarationOnly": false,
|
||||
// "noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"**/test/**/*"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../apps-config/tsconfig.build.json" },
|
||||
{ "path": "../page-addresses/tsconfig.build.json" },
|
||||
{ "path": "../test-support/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
@ -5,5 +5,9 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../page-tech-comm/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -1,6 +1,9 @@
|
||||
// Copyright 2017-2023 @polkadot/app-assets authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// augment package
|
||||
import '@polkadot/api-augment/substrate';
|
||||
|
||||
import type { PalletAssetsAssetAccount } from '@polkadot/types/lookup';
|
||||
import type { bool } from '@polkadot/types-codec';
|
||||
import type { BN } from '@polkadot/util';
|
||||
@ -13,7 +16,10 @@ import { FormatBalance } from '@polkadot/react-query';
|
||||
import { useTranslation } from '../translate.js';
|
||||
import Transfer from './Transfer.js';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore This looks correct in the editor, but incorrect in composite mode
|
||||
interface Account extends PalletAssetsAssetAccount {
|
||||
isFrozen?: bool;
|
||||
sufficient?: bool
|
||||
}
|
||||
|
||||
@ -35,7 +41,7 @@ function Account ({ account: { balance, isFrozen, reason, sufficient }, accountI
|
||||
<AddressSmall value={accountId} />
|
||||
</td>
|
||||
<td className='start'>
|
||||
{isFrozen.isTrue ? t<string>('Yes') : t<string>('No')}
|
||||
{isFrozen?.isTrue ? t<string>('Yes') : t<string>('No')}
|
||||
</td>
|
||||
<td className='start'>
|
||||
{sufficient
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/app-assets authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// augment package
|
||||
import '@polkadot/api-augment/substrate';
|
||||
|
||||
import type { BN } from '@polkadot/util';
|
||||
|
||||
@ -5,5 +5,8 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -5,5 +5,13 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"exclude": [
|
||||
"**/*.spec.ts",
|
||||
"**/*.spec.tsx",
|
||||
"**/test/**/*"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
|
||||
19
packages/page-bounties/tsconfig.spec.json
Normal file
19
packages/page-bounties/tsconfig.spec.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": "..",
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src",
|
||||
"emitDeclarationOnly": false,
|
||||
"noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"**/*.spec.ts",
|
||||
"**/*.spec.tsx"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../page-bounties/tsconfig.build.json" },
|
||||
{ "path": "../page-bounties/tsconfig.test.json" },
|
||||
{ "path": "../test-support/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
18
packages/page-bounties/tsconfig.test.json
Normal file
18
packages/page-bounties/tsconfig.test.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": "..",
|
||||
"outDir": "./build",
|
||||
"rootDir": ".",
|
||||
// "emitDeclarationOnly": false,
|
||||
// "noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"**/test/**/*"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../apps-config/tsconfig.build.json" },
|
||||
{ "path": "../page-bounties/tsconfig.build.json" },
|
||||
{ "path": "../test-support/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
@ -5,5 +5,9 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../page-parachains/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@ import type { EcdsaSignature, EthereumAddress, StatementKind } from '@polkadot/t
|
||||
|
||||
import secp256k1 from 'secp256k1/elliptic.js';
|
||||
|
||||
import { statics } from '@polkadot/react-api';
|
||||
import { statics } from '@polkadot/react-api/statics';
|
||||
import { assert, hexToU8a, stringToU8a, u8aConcat, u8aToBuffer } from '@polkadot/util';
|
||||
import { keccakAsHex, keccakAsU8a } from '@polkadot/util-crypto';
|
||||
|
||||
|
||||
@ -5,5 +5,9 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../react-api/tsconfig.xref.json" },
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -5,5 +5,8 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@ import { EventEmitter } from 'eventemitter3';
|
||||
import store from 'store';
|
||||
|
||||
import { Abi } from '@polkadot/api-contract';
|
||||
import { statics } from '@polkadot/react-api';
|
||||
import { statics } from '@polkadot/react-api/statics';
|
||||
import { isString } from '@polkadot/util';
|
||||
|
||||
const KEY_CODE = 'code:';
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
|
||||
import { Abi } from '@polkadot/api-contract';
|
||||
import { statics } from '@polkadot/react-api';
|
||||
import { statics } from '@polkadot/react-api/statics';
|
||||
import { createNamedHook } from '@polkadot/react-hooks';
|
||||
import { u8aToString } from '@polkadot/util';
|
||||
|
||||
|
||||
@ -5,5 +5,10 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../react-api/tsconfig.xref.json" },
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" },
|
||||
{ "path": "../react-params/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -5,8 +5,9 @@ import type { Hash, Proposal, ProposalIndex } from '@polkadot/types/interfaces';
|
||||
|
||||
import React, { useState } from 'react';
|
||||
|
||||
import { Button, InputAddress, Modal, ProposedAction, TxButton } from '@polkadot/react-components';
|
||||
import { Button, InputAddress, Modal, TxButton } from '@polkadot/react-components';
|
||||
import { useApi, useCollectiveInstance, useToggle, useWeight } from '@polkadot/react-hooks';
|
||||
import { ProposedAction } from '@polkadot/react-params';
|
||||
|
||||
import { useTranslation } from '../translate.js';
|
||||
|
||||
|
||||
@ -6,8 +6,9 @@ import type { SubmittableExtrinsic } from '@polkadot/api/types';
|
||||
import React, { useCallback, useEffect, useState } from 'react';
|
||||
|
||||
import { getProposalThreshold } from '@polkadot/apps-config';
|
||||
import { Button, Extrinsic, InputAddress, InputNumber, Modal, TxButton } from '@polkadot/react-components';
|
||||
import { Button, InputAddress, InputNumber, Modal, TxButton } from '@polkadot/react-components';
|
||||
import { useApi, useCollectiveInstance, useToggle } from '@polkadot/react-hooks';
|
||||
import { Extrinsic } from '@polkadot/react-params';
|
||||
import { BN, BN_ZERO } from '@polkadot/util';
|
||||
|
||||
import { useTranslation } from '../translate.js';
|
||||
|
||||
@ -5,8 +5,9 @@ import type { AccountId, Hash, Proposal, ProposalIndex } from '@polkadot/types/i
|
||||
|
||||
import React, { useState } from 'react';
|
||||
|
||||
import { Button, MarkWarning, Modal, ProposedAction, TxButton, VoteAccount } from '@polkadot/react-components';
|
||||
import { Button, MarkWarning, Modal, TxButton, VoteAccount } from '@polkadot/react-components';
|
||||
import { useAccounts, useApi, useCollectiveInstance, useToggle } from '@polkadot/react-hooks';
|
||||
import { ProposedAction } from '@polkadot/react-params';
|
||||
|
||||
import { useTranslation } from '../translate.js';
|
||||
|
||||
|
||||
@ -5,5 +5,10 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../page-democracy/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" },
|
||||
{ "path": "../react-params/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -6,9 +6,8 @@ import type { Hash } from '@polkadot/types/interfaces';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import { CallExpander } from '@polkadot/react-components';
|
||||
import { useApi, useCall } from '@polkadot/react-hooks';
|
||||
import { Holder } from '@polkadot/react-params';
|
||||
import { CallExpander, Holder } from '@polkadot/react-params';
|
||||
|
||||
import { useTranslation } from '../translate.js';
|
||||
|
||||
|
||||
@ -7,8 +7,9 @@ import type { HexString } from '@polkadot/util/types';
|
||||
|
||||
import React, { useEffect, useMemo, useState } from 'react';
|
||||
|
||||
import { Extrinsic, InputAddress, InputBalance, Modal, Static, styled, TxButton } from '@polkadot/react-components';
|
||||
import { InputAddress, InputBalance, Modal, Static, styled, TxButton } from '@polkadot/react-components';
|
||||
import { useApi } from '@polkadot/react-hooks';
|
||||
import { Extrinsic } from '@polkadot/react-params';
|
||||
import { Available } from '@polkadot/react-query';
|
||||
import { BN, BN_ZERO, isString } from '@polkadot/util';
|
||||
import { blake2AsHex } from '@polkadot/util-crypto';
|
||||
|
||||
@ -7,8 +7,9 @@ import type { HexString } from '@polkadot/util/types';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import { CallExpander, styled } from '@polkadot/react-components';
|
||||
import { styled } from '@polkadot/react-components';
|
||||
import { useApi, usePreimage } from '@polkadot/react-hooks';
|
||||
import { CallExpander } from '@polkadot/react-params';
|
||||
|
||||
import { useTranslation } from '../translate.js';
|
||||
import ExternalCell from './ExternalCell.js';
|
||||
|
||||
@ -7,8 +7,9 @@ import type { BN } from '@polkadot/util';
|
||||
|
||||
import React, { useState } from 'react';
|
||||
|
||||
import { Button, InputAddress, InputBalance, Modal, ProposedAction, TxButton } from '@polkadot/react-components';
|
||||
import { Button, InputAddress, InputBalance, Modal, TxButton } from '@polkadot/react-components';
|
||||
import { useAccounts, useApi, useToggle } from '@polkadot/react-hooks';
|
||||
import { ProposedAction } from '@polkadot/react-params';
|
||||
|
||||
import { useTranslation } from '../translate.js';
|
||||
|
||||
|
||||
@ -6,8 +6,9 @@ import type { BN } from '@polkadot/util';
|
||||
|
||||
import React, { useMemo, useState } from 'react';
|
||||
|
||||
import { Button, ConvictionDropdown, Modal, ProposedAction, TxButton, VoteAccount, VoteValue } from '@polkadot/react-components';
|
||||
import { Button, ConvictionDropdown, Modal, TxButton, VoteAccount, VoteValue } from '@polkadot/react-components';
|
||||
import { useAccounts, useApi, useToggle } from '@polkadot/react-hooks';
|
||||
import { ProposedAction } from '@polkadot/react-params';
|
||||
|
||||
import { useTranslation } from '../translate.js';
|
||||
|
||||
|
||||
@ -5,5 +5,9 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" },
|
||||
{ "path": "../react-params/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -7,8 +7,9 @@ import type { ICompact, INumber } from '@polkadot/types/types';
|
||||
|
||||
import React, { useMemo } from 'react';
|
||||
|
||||
import { AddressMini, CallExpander, LinkExternal, styled } from '@polkadot/react-components';
|
||||
import { AddressMini, LinkExternal, styled } from '@polkadot/react-components';
|
||||
import { convertWeight } from '@polkadot/react-hooks/useWeight';
|
||||
import { CallExpander } from '@polkadot/react-params';
|
||||
import { BN, formatNumber } from '@polkadot/util';
|
||||
|
||||
import Event from '../Event.js';
|
||||
|
||||
@ -5,7 +5,8 @@ import type { EventRecord } from '@polkadot/types/interfaces';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import { Event as EventDisplay, Expander } from '@polkadot/react-components';
|
||||
import { Expander } from '@polkadot/react-components';
|
||||
import { Event as EventDisplay } from '@polkadot/react-params';
|
||||
|
||||
interface Props {
|
||||
className?: string;
|
||||
|
||||
@ -5,5 +5,9 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" },
|
||||
{ "path": "../react-params/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -9,8 +9,9 @@ import type { DecodedExtrinsic } from './types.js';
|
||||
import React, { useCallback, useState } from 'react';
|
||||
import { useParams } from 'react-router-dom';
|
||||
|
||||
import { Call as CallDisplay, Input, InputExtrinsic, MarkError, styled } from '@polkadot/react-components';
|
||||
import { Input, InputExtrinsic, MarkError, styled } from '@polkadot/react-components';
|
||||
import { useApi } from '@polkadot/react-hooks';
|
||||
import { Call as CallDisplay } from '@polkadot/react-params';
|
||||
import { assert, compactToU8a, isHex, u8aConcat, u8aEq } from '@polkadot/util';
|
||||
|
||||
import Decoded from './Decoded.js';
|
||||
|
||||
@ -7,8 +7,9 @@ import type { DecodedExtrinsic } from './types.js';
|
||||
|
||||
import React, { useCallback, useState } from 'react';
|
||||
|
||||
import { Button, Extrinsic, InputAddress, MarkError, TxButton } from '@polkadot/react-components';
|
||||
import { Button, InputAddress, MarkError, TxButton } from '@polkadot/react-components';
|
||||
import { useApi } from '@polkadot/react-hooks';
|
||||
import { Extrinsic } from '@polkadot/react-params';
|
||||
import { BalanceFree } from '@polkadot/react-query';
|
||||
|
||||
import Decoded from './Decoded.js';
|
||||
|
||||
@ -5,5 +5,9 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" },
|
||||
{ "path": "../react-params/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -5,5 +5,9 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../page-ranked/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
|
||||
12
packages/page-files/tsconfig.build.json
Normal file
12
packages/page-files/tsconfig.build.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": "..",
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": [
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
@ -5,5 +5,8 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -5,5 +5,8 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -5,5 +5,9 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../page-tech-comm/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -5,5 +5,8 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -5,5 +5,8 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -5,5 +5,10 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../apps-config/tsconfig.build.json" },
|
||||
{ "path": "../page-explorer/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -5,5 +5,8 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -9,8 +9,9 @@ import type { HashState } from './types.js';
|
||||
|
||||
import React, { useCallback, useState } from 'react';
|
||||
|
||||
import { Extrinsic, InputBalance, Modal, Static } from '@polkadot/react-components';
|
||||
import { InputBalance, Modal, Static } from '@polkadot/react-components';
|
||||
import { useApi } from '@polkadot/react-hooks';
|
||||
import { Extrinsic } from '@polkadot/react-params';
|
||||
import { BN_ZERO } from '@polkadot/util';
|
||||
import { blake2AsHex } from '@polkadot/util-crypto';
|
||||
|
||||
|
||||
@ -5,8 +5,9 @@ import type { Preimage } from '@polkadot/react-hooks/types';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import { AddressMini, CallExpander, MarkError, MarkWarning } from '@polkadot/react-components';
|
||||
import { AddressMini, MarkError, MarkWarning } from '@polkadot/react-components';
|
||||
import { ZERO_ACCOUNT } from '@polkadot/react-hooks/useWeight';
|
||||
import { CallExpander } from '@polkadot/react-params';
|
||||
|
||||
import { useTranslation } from '../translate.js';
|
||||
|
||||
|
||||
@ -5,5 +5,9 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" },
|
||||
{ "path": "../react-params/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -5,5 +5,9 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../page-referenda/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -10,9 +10,10 @@ import type { Referendum, ReferendumProps as Props } from '../types.js';
|
||||
|
||||
import React, { useMemo } from 'react';
|
||||
|
||||
import { CallExpander, Progress } from '@polkadot/react-components';
|
||||
import { Progress } from '@polkadot/react-components';
|
||||
import { useApi, usePreimage } from '@polkadot/react-hooks';
|
||||
import { getPreimageHash } from '@polkadot/react-hooks/usePreimage';
|
||||
import { CallExpander } from '@polkadot/react-params';
|
||||
|
||||
import { useTranslation } from '../translate.js';
|
||||
import Deposits from './Deposits/index.js';
|
||||
|
||||
@ -9,8 +9,9 @@ import type { PalletVote, TrackInfo } from '../../types.js';
|
||||
|
||||
import React, { useMemo, useState } from 'react';
|
||||
|
||||
import { Button, Modal, ProposedAction, styled, ToggleGroup, TxButton, VoteAccount } from '@polkadot/react-components';
|
||||
import { Button, Modal, styled, ToggleGroup, TxButton, VoteAccount } from '@polkadot/react-components';
|
||||
import { useAccounts, useApi, useToggle } from '@polkadot/react-hooks';
|
||||
import { ProposedAction } from '@polkadot/react-params';
|
||||
|
||||
import { useTranslation } from '../../translate.js';
|
||||
import VoteAbstain from './VoteAbstain.js';
|
||||
|
||||
@ -5,5 +5,10 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../page-preimages/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" },
|
||||
{ "path": "../react-params/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -5,5 +5,9 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" },
|
||||
{ "path": "../react-params/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -5,5 +5,9 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" },
|
||||
{ "path": "../react-params/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -7,8 +7,8 @@ import type { ScheduledExt } from './types.js';
|
||||
import React from 'react';
|
||||
|
||||
import Hash from '@polkadot/app-preimages/Preimages/Hash';
|
||||
import { CallExpander } from '@polkadot/react-components';
|
||||
import { usePreimage } from '@polkadot/react-hooks';
|
||||
import { CallExpander } from '@polkadot/react-params';
|
||||
import { BlockToTime } from '@polkadot/react-query';
|
||||
import { formatNumber } from '@polkadot/util';
|
||||
|
||||
|
||||
@ -5,5 +5,10 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../page-democracy/tsconfig.build.json" },
|
||||
{ "path": "../page-preimages/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -5,5 +5,10 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../apps-config/tsconfig.build.json" },
|
||||
{ "path": "../react-api/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -5,5 +5,8 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -5,5 +5,8 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -9,6 +9,7 @@ import type { NominatedByMap, SortedTargets, TargetSortBy, ValidatorInfo } from
|
||||
|
||||
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
||||
|
||||
import Legend from '@polkadot/app-staking2/Legend';
|
||||
import { Button, Icon, styled, Table, Toggle } from '@polkadot/react-components';
|
||||
import { useApi, useAvailableSlashes, useBlocksPerDays, useSavedFlags } from '@polkadot/react-hooks';
|
||||
import { BN_HUNDRED } from '@polkadot/util';
|
||||
@ -16,7 +17,6 @@ import { BN_HUNDRED } from '@polkadot/util';
|
||||
import { MAX_NOMINATIONS } from '../constants.js';
|
||||
import ElectionBanner from '../ElectionBanner.js';
|
||||
import Filtering from '../Filtering.js';
|
||||
import Legend from '../Legend.js';
|
||||
import { useTranslation } from '../translate.js';
|
||||
import useIdentities from '../useIdentities.js';
|
||||
import Nominate from './Nominate.js';
|
||||
|
||||
@ -8,11 +8,11 @@ import type { NominatedByMap, SortedTargets, ValidatorInfo } from '../types.js';
|
||||
|
||||
import React, { useMemo, useRef, useState } from 'react';
|
||||
|
||||
import Legend from '@polkadot/app-staking2/Legend';
|
||||
import { Table } from '@polkadot/react-components';
|
||||
import { useApi, useBlockAuthors, useNextTick } from '@polkadot/react-hooks';
|
||||
|
||||
import Filtering from '../Filtering.js';
|
||||
import Legend from '../Legend.js';
|
||||
import { useTranslation } from '../translate.js';
|
||||
import Address from './Address/index.js';
|
||||
|
||||
|
||||
@ -5,5 +5,10 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../page-explorer/tsconfig.build.json" },
|
||||
{ "path": "../page-staking2/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -5,9 +5,9 @@ import type { SessionInfo } from '../types.js';
|
||||
|
||||
import React, { useRef, useState } from 'react';
|
||||
|
||||
import Legend from '@polkadot/app-staking/Legend';
|
||||
import { Button, styled, ToggleGroup } from '@polkadot/react-components';
|
||||
|
||||
import Legend from '../Legend.js';
|
||||
import { useTranslation } from '../translate.js';
|
||||
import useValidatorsActive from '../useValidatorsActive.js';
|
||||
import Active from './Active/index.js';
|
||||
|
||||
@ -5,5 +5,8 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -5,5 +5,9 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" },
|
||||
{ "path": "../react-params/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -6,8 +6,9 @@ import type { BN } from '@polkadot/util';
|
||||
|
||||
import React, { useCallback, useState } from 'react';
|
||||
|
||||
import { Button, Extrinsic, Icon, InputNumber, styled, Toggle, TxButton } from '@polkadot/react-components';
|
||||
import { Button, Icon, InputNumber, styled, Toggle, TxButton } from '@polkadot/react-components';
|
||||
import { useApi, useToggle } from '@polkadot/react-hooks';
|
||||
import { Extrinsic } from '@polkadot/react-params';
|
||||
import { BN_ZERO, isFunction } from '@polkadot/util';
|
||||
|
||||
import { useTranslation } from './translate.js';
|
||||
|
||||
@ -5,5 +5,9 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" },
|
||||
{ "path": "../react-params/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -6,8 +6,9 @@ import type { Hash, Proposal, ProposalIndex } from '@polkadot/types/interfaces';
|
||||
|
||||
import React, { useState } from 'react';
|
||||
|
||||
import { Button, InputAddress, Modal, ProposedAction, TxButton } from '@polkadot/react-components';
|
||||
import { Button, InputAddress, Modal, TxButton } from '@polkadot/react-components';
|
||||
import { useApi, useCollectiveInstance, useToggle, useWeight } from '@polkadot/react-hooks';
|
||||
import { ProposedAction } from '@polkadot/react-params';
|
||||
|
||||
import { useTranslation } from '../translate.js';
|
||||
|
||||
|
||||
@ -6,8 +6,9 @@ import type { CollectiveType } from '@polkadot/react-hooks/types';
|
||||
|
||||
import React, { useCallback, useState } from 'react';
|
||||
|
||||
import { Button, Extrinsic, InputAddress, InputNumber, Modal, TxButton } from '@polkadot/react-components';
|
||||
import { Button, InputAddress, InputNumber, Modal, TxButton } from '@polkadot/react-components';
|
||||
import { useApi, useCollectiveInstance, useModal } from '@polkadot/react-hooks';
|
||||
import { Extrinsic } from '@polkadot/react-params';
|
||||
import { BN } from '@polkadot/util';
|
||||
|
||||
import { useTranslation } from '../translate.js';
|
||||
|
||||
@ -5,5 +5,10 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../page-democracy/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" },
|
||||
{ "path": "../react-params/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -5,5 +5,8 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -5,5 +5,9 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../page-settings/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -5,5 +5,9 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"references": [
|
||||
{ "path": "../page-preimages/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@ import { web3Accounts, web3Enable } from '@polkadot/extension-dapp';
|
||||
import { TokenUnit } from '@polkadot/react-components/InputConsts/units';
|
||||
import { useApiUrl, useEndpoint, useQueue } from '@polkadot/react-hooks';
|
||||
import { ApiCtx } from '@polkadot/react-hooks/ctx/Api';
|
||||
import { ApiSigner } from '@polkadot/react-signer';
|
||||
import { ApiSigner } from '@polkadot/react-signer/signers';
|
||||
import { keyring } from '@polkadot/ui-keyring';
|
||||
import { settings } from '@polkadot/ui-settings';
|
||||
import { formatBalance, isNumber, isTestChain, objectSpread, stringify } from '@polkadot/util';
|
||||
|
||||
@ -7,9 +7,7 @@ import type { Environment } from '../types.js';
|
||||
function isElectron () {
|
||||
if (process?.versions?.electron) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (window?.process?.type === 'renderer') {
|
||||
} else if ((window?.process as unknown as (Record<string, string> | undefined))?.type === 'renderer') {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@ -5,5 +5,20 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"exclude": [
|
||||
"src/statics.ts",
|
||||
"src/types.ts",
|
||||
"src/hoc/*",
|
||||
"src/transform/*",
|
||||
"src/util/*"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../apps-config/tsconfig.build.json" },
|
||||
{ "path": "../react-api/tsconfig.xref.json" },
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" },
|
||||
{ "path": "../react-hooks/tsconfig.build.json" },
|
||||
{ "path": "../react-hooks/tsconfig.xref.json" },
|
||||
{ "path": "../react-signer/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
|
||||
18
packages/react-api/tsconfig.xref.json
Normal file
18
packages/react-api/tsconfig.xref.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": "..",
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"include": [
|
||||
"src/statics.ts",
|
||||
"src/types.ts",
|
||||
"src/hoc/*",
|
||||
"src/transform/*",
|
||||
"src/util/*"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../react-hooks/tsconfig.xref.json" }
|
||||
]
|
||||
}
|
||||
@ -7,7 +7,7 @@ import type { AccountId, AccountIndex, Address } from '@polkadot/types/interface
|
||||
|
||||
import React, { useCallback, useContext, useEffect, useState } from 'react';
|
||||
|
||||
import { statics } from '@polkadot/react-api';
|
||||
import { statics } from '@polkadot/react-api/statics';
|
||||
import { useDeriveAccountInfo, useSystemApi } from '@polkadot/react-hooks';
|
||||
import { AccountSidebarCtx } from '@polkadot/react-hooks/ctx/AccountSidebar';
|
||||
import { formatNumber, isCodec, isFunction, stringToU8a, u8aEmpty, u8aEq, u8aToBn } from '@polkadot/util';
|
||||
|
||||
@ -3,7 +3,15 @@
|
||||
|
||||
import type React from 'react';
|
||||
|
||||
export interface ElementPosition {
|
||||
x: number,
|
||||
y: number,
|
||||
width: number,
|
||||
height: number,
|
||||
}
|
||||
|
||||
export type HorizontalPosition = 'left' | 'middle' | 'right'
|
||||
|
||||
export type VerticalPosition = 'top' | 'bottom'
|
||||
|
||||
export interface PopupWindowProps {
|
||||
|
||||
@ -2,8 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { WindowSize } from '@polkadot/react-hooks/ctx/types';
|
||||
import type { ElementPosition } from '@polkadot/react-hooks/useElementPosition';
|
||||
import type { HorizontalPosition, VerticalPosition } from './types.js';
|
||||
import type { ElementPosition, HorizontalPosition, VerticalPosition } from './types.js';
|
||||
|
||||
interface Coords {
|
||||
x: number;
|
||||
|
||||
@ -1,6 +1,9 @@
|
||||
// Copyright 2017-2023 @polkadot/react-components authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// we use augmented types in this tsconfig
|
||||
import '@polkadot/api-augment/substrate';
|
||||
|
||||
import type { DispatchError, DispatchResult, Event, EventRecord } from '@polkadot/types/interfaces';
|
||||
import type { XcmV3TraitsOutcome } from '@polkadot/types/lookup';
|
||||
|
||||
|
||||
@ -1,54 +1,8 @@
|
||||
// Copyright 2017-2023 @polkadot/react-components authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ComponentMap } from '@polkadot/react-params/types';
|
||||
|
||||
import BalanceParam from '@polkadot/react-params/Param/Balance';
|
||||
|
||||
export const rewardDestinationOptions = [
|
||||
{ text: 'Stash account (increase the amount at stake)', value: 0 },
|
||||
{ text: 'Stash account (do not increase the amount at stake)', value: 1 },
|
||||
{ text: 'Controller account', value: 2 }
|
||||
];
|
||||
|
||||
export const balanceCalls = [
|
||||
'auctions.bid',
|
||||
'balances.forceTransfer', 'balances.forceUnreserve', 'balances.setBalance', 'balances.transfer', 'balances.transferAllowDeath', 'balances.transferKeepAlive',
|
||||
'bounties.proposeBounty', 'bounties.proposeCurator',
|
||||
'childBounties.proposeCurator',
|
||||
'claims.mintClaim',
|
||||
'convictionVoting.delegate', 'convictionVoting.vote',
|
||||
'crowdloan.contribute', 'crowdloan.create', 'crowdloan.edit',
|
||||
'democracy.delegate', 'democracy.propose', 'democracy.vote',
|
||||
'identity.requestJudgement', 'identity.setFee',
|
||||
'nominationPools.bondExtra', 'nominationPools.join', 'nominationPools.unbond',
|
||||
'phragmenElection.vote',
|
||||
'society.bid', 'society.vouch',
|
||||
'staking.bond', 'staking.bondExtra', 'staking.rebond', 'staking.unbond',
|
||||
'tips.tip', 'tips.tipNew',
|
||||
'treasury.proposeSpend', 'treasury.spend',
|
||||
'vesting.forceVestedTransfer', 'vesting.vestedTransfer'
|
||||
];
|
||||
|
||||
// needs expansion with events from above
|
||||
export const balanceEvents = [
|
||||
'auctions.BidAccepted', 'auctions.ReserveConfiscated', 'auctions.Reserved', 'auctions.Unreserved',
|
||||
'balances.Deposit', 'balances.DustLost', 'balances.Endowed', 'balances.Transfer', 'balances.Unreserved', 'balances.Withdraw',
|
||||
'bounties.BountyClaimed', 'bounties.BountyRejected',
|
||||
'claims.Claimed',
|
||||
'convictionVoting.Voted',
|
||||
'crowdloan.Contributed', 'crowdloan.Withdrew',
|
||||
'democracy.Voted',
|
||||
'nominationPools.Bonded', 'nominationPools.PaidOut', 'nominationPools.PoolSlashed', 'nominationPools.Unbonded', 'nominationPools.UnbondingPoolSlashed',
|
||||
'referenda.DecisionDepositPlaced', 'referenda.DecisionDepositRefunded', 'referenda.DepositSlashed', 'referenda.SubmissionDepositRefunded',
|
||||
'staking.Bonded', 'staking.Rewarded', 'staking.Unbonded', 'staking.Withdrawn',
|
||||
'transactionPayment.TransactionFeePaid',
|
||||
'treasury.Deposit'
|
||||
];
|
||||
|
||||
export const balanceCallsOverrides: ComponentMap = {
|
||||
'Compact<u128>': BalanceParam,
|
||||
u128: BalanceParam
|
||||
};
|
||||
|
||||
export const balanceEventsOverrides = balanceCallsOverrides;
|
||||
|
||||
@ -18,8 +18,6 @@ export { default as BatchWarning } from './BatchWarning.js';
|
||||
export { default as Bonded } from './Bonded.js';
|
||||
export { default as Button } from './Button/index.js';
|
||||
export { default as ButtonCancel } from './ButtonCancel.js';
|
||||
export { default as Call } from './Call.js';
|
||||
export { default as CallExpander } from './CallExpander.js';
|
||||
export { default as Card } from './Card.js';
|
||||
export { default as CardSummary } from './CardSummary.js';
|
||||
export { default as ChainImg } from './ChainImg.js';
|
||||
@ -34,11 +32,9 @@ export { default as Dropdown } from './Dropdown.js';
|
||||
export { default as EditButton } from './EditButton.js';
|
||||
export { default as Editor } from './Editor.js';
|
||||
export { default as ErrorBoundary } from './ErrorBoundary.js';
|
||||
export { default as Event } from './Event.js';
|
||||
export { default as ExpandButton } from './ExpandButton.js';
|
||||
export { default as Expander } from './Expander.js';
|
||||
export { default as ExpanderScroll } from './ExpanderScroll.js';
|
||||
export { default as Extrinsic } from './Extrinsic.js';
|
||||
export { default as FilterInput } from './FilterInput.js';
|
||||
export { default as FilterOverlay } from './FilterOverlay.js';
|
||||
export { default as Flag } from './Flag.js';
|
||||
@ -80,7 +76,6 @@ export { default as Password } from './Password.js';
|
||||
export { default as PasswordStrength } from './PasswordStrength.js';
|
||||
export { default as Popup } from './Popup/index.js';
|
||||
export { default as Progress } from './Progress.js';
|
||||
export { default as ProposedAction } from './ProposedAction.js';
|
||||
export { default as Row } from './Row.js';
|
||||
export { default as Sidebar } from './Sidebar.js';
|
||||
export { default as SortDropdown } from './SortDropdown.js';
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import { Abi } from '@polkadot/api-contract';
|
||||
import { statics } from '@polkadot/react-api';
|
||||
import { statics } from '@polkadot/react-api/statics';
|
||||
|
||||
import { getAddressMeta } from './getAddressMeta.js';
|
||||
|
||||
|
||||
@ -5,5 +5,22 @@
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src"
|
||||
},
|
||||
"references": []
|
||||
"exclude": [
|
||||
"**/*.spec.ts",
|
||||
"**/*.spec.tsx",
|
||||
"src/Popup/types.ts",
|
||||
"src/Popup/utils.ts",
|
||||
"src/Status/checks.ts",
|
||||
"src/Status/constants.ts",
|
||||
"src/Status/types.ts",
|
||||
"src/styled.ts",
|
||||
"src/types.ts",
|
||||
"src/util/*"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../apps-config/tsconfig.build.json" },
|
||||
{ "path": "../react-api/tsconfig.xref.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" },
|
||||
{ "path": "../react-query/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
|
||||
20
packages/react-components/tsconfig.spec.json
Normal file
20
packages/react-components/tsconfig.spec.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": "..",
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src",
|
||||
"emitDeclarationOnly": false,
|
||||
"noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"**/*.spec.ts",
|
||||
"**/*.spec.tsx"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../page-accounts/tsconfig.test.json" },
|
||||
{ "path": "../react-components/tsconfig.build.json" },
|
||||
{ "path": "../react-components/tsconfig.xref.json" },
|
||||
{ "path": "../test-support/tsconfig.build.json" }
|
||||
]
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user