mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-04-22 03:07:56 +00:00
fix: fix lint errors and update headers
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
import type { ApiPromise } from '@pezkuwi/api';
|
import type { ApiPromise } from '@pezkuwi/api';
|
||||||
|
|
||||||
import { CERE_NETWORK_GENESIS, CERE_NETWORK_TESTNET_GENESIS, DOCK_POS_TESTNET_GENESIS, JOYSTREAM_GENESIS, DICLE_GENESIS, NEATCOIN_GENESIS, NFTMART_GENESIS, PEZKUWI_GENESIS, VARA_NETWORK_GENESIS, VARA_NETWORK_TESTNET_GENESIS, ZKVERIFY_GENESIS, ZKVERIFY_VOLTA_GENESIS } from '../constants.js';
|
import { CERE_NETWORK_GENESIS, CERE_NETWORK_TESTNET_GENESIS, DICLE_GENESIS, DOCK_POS_TESTNET_GENESIS, JOYSTREAM_GENESIS, NEATCOIN_GENESIS, NFTMART_GENESIS, PEZKUWI_GENESIS, VARA_NETWORK_GENESIS, VARA_NETWORK_TESTNET_GENESIS, ZKVERIFY_GENESIS, ZKVERIFY_VOLTA_GENESIS } from '../constants.js';
|
||||||
|
|
||||||
interface InflationParams {
|
interface InflationParams {
|
||||||
auctionAdjust: number;
|
auctionAdjust: number;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
import type { ApiPromise } from '@pezkuwi/api';
|
import type { ApiPromise } from '@pezkuwi/api';
|
||||||
|
|
||||||
import { KULUPU_GENESIS, DICLE_GENESIS, PEZKUWI_GENESIS } from '../constants.js';
|
import { DICLE_GENESIS, KULUPU_GENESIS, PEZKUWI_GENESIS } from '../constants.js';
|
||||||
|
|
||||||
// normal fast-track proposals
|
// normal fast-track proposals
|
||||||
const FAST_TRACK: Record<string, number> = {
|
const FAST_TRACK: Record<string, number> = {
|
||||||
@@ -16,8 +16,8 @@ const FAST_TRACK_NO_DELAY: Record<string, number> = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const PROPOSE: Record<string, number> = {
|
const PROPOSE: Record<string, number> = {
|
||||||
[KULUPU_GENESIS]: 1,
|
|
||||||
[DICLE_GENESIS]: 1 / 2,
|
[DICLE_GENESIS]: 1 / 2,
|
||||||
|
[KULUPU_GENESIS]: 1,
|
||||||
[PEZKUWI_GENESIS]: 3 / 5,
|
[PEZKUWI_GENESIS]: 3 / 5,
|
||||||
default: 1 / 2
|
default: 1 / 2
|
||||||
};
|
};
|
||||||
@@ -29,8 +29,8 @@ const SLASH: Record<string, number> = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const TREASURY: Record<string, number> = {
|
const TREASURY: Record<string, number> = {
|
||||||
[KULUPU_GENESIS]: 1 / 2,
|
|
||||||
[DICLE_GENESIS]: 3 / 5,
|
[DICLE_GENESIS]: 3 / 5,
|
||||||
|
[KULUPU_GENESIS]: 1 / 2,
|
||||||
[PEZKUWI_GENESIS]: 3 / 5,
|
[PEZKUWI_GENESIS]: 3 / 5,
|
||||||
default: 3 / 5
|
default: 3 / 5
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ import bifrost from './bifrost.js';
|
|||||||
import bifrostAsgard from './bifrost-asgard.js';
|
import bifrostAsgard from './bifrost-asgard.js';
|
||||||
import bifrostTeyrchain from './bifrost-parachain.js';
|
import bifrostTeyrchain from './bifrost-parachain.js';
|
||||||
import bitcountry from './bitcountry.js';
|
import bitcountry from './bitcountry.js';
|
||||||
import bitcountryPioneer from './bitcountry-pioneer.js';
|
|
||||||
import bitcountryTeyrchain from './bitcountry-pezkuwichain.js';
|
import bitcountryTeyrchain from './bitcountry-pezkuwichain.js';
|
||||||
|
import bitcountryPioneer from './bitcountry-pioneer.js';
|
||||||
import bittensor from './bittensor.js';
|
import bittensor from './bittensor.js';
|
||||||
import centrifuge from './centrifuge.js';
|
import centrifuge from './centrifuge.js';
|
||||||
import centrifugeChain from './centrifuge-chain.js';
|
import centrifugeChain from './centrifuge-chain.js';
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ export const prodRelayDicle: EndpointOption = {
|
|||||||
],
|
],
|
||||||
providers: {
|
providers: {
|
||||||
'Pezkuwi Foundation': 'wss://dicle-rpc.pezkuwichain.io',
|
'Pezkuwi Foundation': 'wss://dicle-rpc.pezkuwichain.io',
|
||||||
'Local': 'ws://127.0.0.1:9944'
|
Local: 'ws://127.0.0.1:9944'
|
||||||
},
|
},
|
||||||
teleport: [1000],
|
teleport: [1000],
|
||||||
text: 'Dicle',
|
text: 'Dicle',
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ export const prodRelayPezkuwi: EndpointOption = {
|
|||||||
providers: {
|
providers: {
|
||||||
'Pezkuwi Foundation': 'wss://rpc.pezkuwichain.io',
|
'Pezkuwi Foundation': 'wss://rpc.pezkuwichain.io',
|
||||||
'Pezkuwi Zagros': 'wss://zagros-rpc.pezkuwichain.io',
|
'Pezkuwi Zagros': 'wss://zagros-rpc.pezkuwichain.io',
|
||||||
'Local': 'ws://127.0.0.1:9944'
|
Local: 'ws://127.0.0.1:9944'
|
||||||
},
|
},
|
||||||
teleport: [1000],
|
teleport: [1000],
|
||||||
text: 'Pezkuwi',
|
text: 'Pezkuwi',
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import type { EndpointOption } from './types.js';
|
|||||||
|
|
||||||
import { ZKVERIFY_VOLTA_GENESIS } from '../api/constants.js';
|
import { ZKVERIFY_VOLTA_GENESIS } from '../api/constants.js';
|
||||||
import { chains3dpassSVG, chainsAcalaSVG, chainsAlephSVG, chainsAllfeatSVG, chainsAnalogSVG, chainsArgonSVG, chainsBrainstormPNG, chainsChainflipPNG, chainsCreditcoinTestPNG, chainsDebioSVG, chainsEquilibriumSVG, chainsFerrumPNG, chainsFragnovaPNG, chainsJurPNG, chainsKintsugiPNG, chainsLiberlandPNG, chainsLogionPNG, chainsMyriadPNG, chainsQfNetworkPNG, chainsSkyekiwiPNG, chainsTanglePNG, chainsVaraTestnetPNG } from '../ui/logos/chains/index.js';
|
import { chains3dpassSVG, chainsAcalaSVG, chainsAlephSVG, chainsAllfeatSVG, chainsAnalogSVG, chainsArgonSVG, chainsBrainstormPNG, chainsChainflipPNG, chainsCreditcoinTestPNG, chainsDebioSVG, chainsEquilibriumSVG, chainsFerrumPNG, chainsFragnovaPNG, chainsJurPNG, chainsKintsugiPNG, chainsLiberlandPNG, chainsLogionPNG, chainsMyriadPNG, chainsQfNetworkPNG, chainsSkyekiwiPNG, chainsTanglePNG, chainsVaraTestnetPNG } from '../ui/logos/chains/index.js';
|
||||||
import { nodesArcticPNG, nodesAresGladiosSVG, nodesAutonomysPNG, nodesBifrostSVG, nodesBitcountryPNG, nodesCereSVG, nodesCessPNG, nodesCloverSVG, nodesCrustMaxwellSVG, nodesCurioSVG, nodesDancelightSVG, nodesDatahighwayPNG, nodesDockPNG, nodesDolphinSVG, nodesDotmogSVG, nodesEdgewareWhitePNG, nodesEncointerBlueSVG, nodesFantourPNG, nodesGalitalLogoPNG, nodesGamepowerSVG, nodesGeekSVG, nodesInterlaySVG, nodesIpsePNG, nodesJazPNG, nodesJupiterSVG, nodesKarmachainSVG, nodesKhalaSVG, nodesKlugPNG, nodesKylinPNG, nodesLaminarCircleSVG, nodesMantaPNG, nodesMathSVG, nodesMinixPNG, nodesMoonbaseAlphaSVG, nodesMybankPNG, nodesNftmartPNG, nodesNodleSVG, nodesOpportunityPNG, nodesPhalaSVG, nodesPhoenixPNG, nodesPhykenNetworkPNG, nodesPichiuPNG, nodesPolkadexSVG, nodesPolkafoundrySVG, nodesPolymeshSVG, nodesPontemSVG, nodesPrismPNG, nodesRealisPNG, nodesRiochainSVG, nodesSherpaxPNG, nodesSoonsocialPNG, nodesSoraSubstrateSVG, nodesSubdaoPNG, nodesSubgameSVG, nodesSubspacePNG, nodesBizinikiwiHexagonSVG, nodesTernoaSVG, nodesThebifrostPNG, nodesUniartsPNG, nodesUniqueSVG, nodesUnitnetworkPNG, nodesVFlowPNG, nodesWeb3gamesSVG, nodesZCloakSVG, nodesZeroSVG, nodesZkVerifyPNG } from '../ui/logos/nodes/index.js';
|
import { nodesArcticPNG, nodesAresGladiosSVG, nodesAutonomysPNG, nodesBifrostSVG, nodesBitcountryPNG, nodesBizinikiwiHexagonSVG, nodesCereSVG, nodesCessPNG, nodesCloverSVG, nodesCrustMaxwellSVG, nodesCurioSVG, nodesDancelightSVG, nodesDatahighwayPNG, nodesDockPNG, nodesDolphinSVG, nodesDotmogSVG, nodesEdgewareWhitePNG, nodesEncointerBlueSVG, nodesFantourPNG, nodesGalitalLogoPNG, nodesGamepowerSVG, nodesGeekSVG, nodesInterlaySVG, nodesIpsePNG, nodesJazPNG, nodesJupiterSVG, nodesKarmachainSVG, nodesKhalaSVG, nodesKlugPNG, nodesKylinPNG, nodesLaminarCircleSVG, nodesMantaPNG, nodesMathSVG, nodesMinixPNG, nodesMoonbaseAlphaSVG, nodesMybankPNG, nodesNftmartPNG, nodesNodleSVG, nodesOpportunityPNG, nodesPhalaSVG, nodesPhoenixPNG, nodesPhykenNetworkPNG, nodesPichiuPNG, nodesPolkadexSVG, nodesPolkafoundrySVG, nodesPolymeshSVG, nodesPontemSVG, nodesPrismPNG, nodesRealisPNG, nodesRiochainSVG, nodesSherpaxPNG, nodesSoonsocialPNG, nodesSoraSubstrateSVG, nodesSubdaoPNG, nodesSubgameSVG, nodesSubspacePNG, nodesTernoaSVG, nodesThebifrostPNG, nodesUniartsPNG, nodesUniqueSVG, nodesUnitnetworkPNG, nodesVFlowPNG, nodesWeb3gamesSVG, nodesZCloakSVG, nodesZeroSVG, nodesZkVerifyPNG } from '../ui/logos/nodes/index.js';
|
||||||
|
|
||||||
export * from './testingRelayPaseo.js';
|
export * from './testingRelayPaseo.js';
|
||||||
export * from './testingRelayZagros.js';
|
export * from './testingRelayZagros.js';
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ export const testRelayZagros: EndpointOption = {
|
|||||||
],
|
],
|
||||||
providers: {
|
providers: {
|
||||||
'Pezkuwi Foundation': 'wss://zagros-rpc.pezkuwichain.io',
|
'Pezkuwi Foundation': 'wss://zagros-rpc.pezkuwichain.io',
|
||||||
'Local': 'ws://127.0.0.1:9944'
|
Local: 'ws://127.0.0.1:9944'
|
||||||
},
|
},
|
||||||
teleport: [1000],
|
teleport: [1000],
|
||||||
text: 'Zagros',
|
text: 'Zagros',
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ import js from './js.js';
|
|||||||
import membership from './membership.js';
|
import membership from './membership.js';
|
||||||
import nfts from './nfts.js';
|
import nfts from './nfts.js';
|
||||||
import nis from './nis.js';
|
import nis from './nis.js';
|
||||||
import teyrchains from './teyrchains.js';
|
|
||||||
import poll from './poll.js';
|
import poll from './poll.js';
|
||||||
import preimages from './preimages.js';
|
import preimages from './preimages.js';
|
||||||
import ranked from './ranked.js';
|
import ranked from './ranked.js';
|
||||||
@@ -45,6 +44,7 @@ import storage from './storage.js';
|
|||||||
import sudo from './sudo.js';
|
import sudo from './sudo.js';
|
||||||
import techcomm from './techcomm.js';
|
import techcomm from './techcomm.js';
|
||||||
import teleport from './teleport.js';
|
import teleport from './teleport.js';
|
||||||
|
import teyrchains from './teyrchains.js';
|
||||||
import transfer from './transfer.js';
|
import transfer from './transfer.js';
|
||||||
import treasury from './treasury.js';
|
import treasury from './treasury.js';
|
||||||
import utilities from './utilities.js';
|
import utilities from './utilities.js';
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ module.exports = merge(
|
|||||||
{
|
{
|
||||||
devServer: {
|
devServer: {
|
||||||
client: {
|
client: {
|
||||||
overlay: false // Disable error overlay
|
overlay: false // Disable error overlay
|
||||||
},
|
},
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Security-Policy': "frame-ancestors 'none'",
|
'Content-Security-Policy': "frame-ancestors 'none'",
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ function Overview ({ className = '', onStatusChange }: Props): React.ReactElemen
|
|||||||
const accountsMap = useMemo(
|
const accountsMap = useMemo(
|
||||||
() => allAccounts
|
() => allAccounts
|
||||||
.map((address, index): Omit<SortedAccount, 'account'> & { account: KeyringAddress | undefined } => {
|
.map((address, index): Omit<SortedAccount, 'account'> & { account: KeyringAddress | undefined } => {
|
||||||
const deleg = delegations && delegations[index]?.isDelegating && delegations[index]?.asDelegating;
|
const deleg = delegations?.[index]?.isDelegating && delegations[index]?.asDelegating;
|
||||||
const delegation: Delegation | undefined = (deleg && {
|
const delegation: Delegation | undefined = (deleg && {
|
||||||
accountDelegated: deleg.target.toString(),
|
accountDelegated: deleg.target.toString(),
|
||||||
amount: deleg.balance,
|
amount: deleg.balance,
|
||||||
|
|||||||
@@ -13,9 +13,9 @@ import { ThemeProvider } from 'styled-components';
|
|||||||
import AccountsApp from '@pezkuwi/app-accounts';
|
import AccountsApp from '@pezkuwi/app-accounts';
|
||||||
import { ApiCtxRoot } from '@pezkuwi/react-api';
|
import { ApiCtxRoot } from '@pezkuwi/react-api';
|
||||||
import { lightTheme } from '@pezkuwi/react-components';
|
import { lightTheme } from '@pezkuwi/react-components';
|
||||||
|
import { BIZINIKIWI_PORT } from '@pezkuwi/test-support/bizinikiwi';
|
||||||
import { MemoryStore } from '@pezkuwi/test-support/keyring';
|
import { MemoryStore } from '@pezkuwi/test-support/keyring';
|
||||||
import { WaitForApi } from '@pezkuwi/test-support/react';
|
import { WaitForApi } from '@pezkuwi/test-support/react';
|
||||||
import { BIZINIKIWI_PORT } from '@pezkuwi/test-support/bizinikiwi';
|
|
||||||
|
|
||||||
function noop (): void {
|
function noop (): void {
|
||||||
// do nothing
|
// do nothing
|
||||||
|
|||||||
@@ -1,19 +1,19 @@
|
|||||||
// Copyright 2017-2026 @pezkuwi/app-accounts authors & contributors
|
// Copyright 2017-2026 @pezkuwi/app-accounts authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
import type { GeneratorMatch, GeneratorMatches, GeneratorResult } from '@polkadot/vanitygen/types';
|
||||||
import type { ActionStatus } from '@pezkuwi/react-components/Status/types';
|
import type { ActionStatus } from '@pezkuwi/react-components/Status/types';
|
||||||
import type { KeypairType } from '@pezkuwi/util-crypto/types';
|
import type { KeypairType } from '@pezkuwi/util-crypto/types';
|
||||||
import type { GeneratorMatch, GeneratorMatches, GeneratorResult } from '@polkadot/vanitygen/types';
|
|
||||||
|
|
||||||
|
import generator from '@polkadot/vanitygen/generator';
|
||||||
|
import matchRegex from '@polkadot/vanitygen/regex';
|
||||||
|
import generatorSort from '@polkadot/vanitygen/sort';
|
||||||
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
||||||
|
|
||||||
import { Button, Dropdown, Input, styled, Table } from '@pezkuwi/react-components';
|
import { Button, Dropdown, Input, styled, Table } from '@pezkuwi/react-components';
|
||||||
import { useApi, useIsMountedRef } from '@pezkuwi/react-hooks';
|
import { useApi, useIsMountedRef } from '@pezkuwi/react-hooks';
|
||||||
import { settings } from '@pezkuwi/ui-settings';
|
import { settings } from '@pezkuwi/ui-settings';
|
||||||
import { nextTick } from '@pezkuwi/util';
|
import { nextTick } from '@pezkuwi/util';
|
||||||
import generator from '@polkadot/vanitygen/generator';
|
|
||||||
import matchRegex from '@polkadot/vanitygen/regex';
|
|
||||||
import generatorSort from '@polkadot/vanitygen/sort';
|
|
||||||
|
|
||||||
import CreateModal from '../modals/Create.js';
|
import CreateModal from '../modals/Create.js';
|
||||||
import { useTranslation } from '../translate.js';
|
import { useTranslation } from '../translate.js';
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ interface Props {
|
|||||||
relayName: RelayName,
|
relayName: RelayName,
|
||||||
}
|
}
|
||||||
|
|
||||||
function Summary ({ config, teyrchainCount, relayName, status }: Props): React.ReactElement<Props> {
|
function Summary ({ config, relayName, status, teyrchainCount }: Props): React.ReactElement<Props> {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const { coretimeInfo, currentRegionEnd, currentRegionStart, saleEndDate, saleStartDate } = useCoretimeContext();
|
const { coretimeInfo, currentRegionEnd, currentRegionStart, saleEndDate, saleStartDate } = useCoretimeContext();
|
||||||
|
|
||||||
|
|||||||
@@ -22,11 +22,11 @@ function Overview ({ className, relayName }: Props): React.ReactElement<Props> {
|
|||||||
{coretimeInfo && (
|
{coretimeInfo && (
|
||||||
<Summary
|
<Summary
|
||||||
config={coretimeInfo?.config}
|
config={coretimeInfo?.config}
|
||||||
teyrchainCount={coretimeInfo.taskIds?.length || 0}
|
|
||||||
region={coretimeInfo?.region}
|
region={coretimeInfo?.region}
|
||||||
relayName={relayName}
|
relayName={relayName}
|
||||||
saleInfo={coretimeInfo?.salesInfo}
|
saleInfo={coretimeInfo?.salesInfo}
|
||||||
status={coretimeInfo?.status}
|
status={coretimeInfo?.status}
|
||||||
|
teyrchainCount={coretimeInfo.taskIds?.length || 0}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{!!coretimeInfo &&
|
{!!coretimeInfo &&
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ function Collection ({ className, value: { details, id, ipfsData } }: Props): Re
|
|||||||
}
|
}
|
||||||
</td>
|
</td>
|
||||||
<td className='address media--1000'>{details && <AddressSmall value={details.owner} />}</td>
|
<td className='address media--1000'>{details && <AddressSmall value={details.owner} />}</td>
|
||||||
<td className='string'>{details && details.isFrozen.isTrue && t('Frozen')}</td>
|
<td className='string'>{details?.isFrozen.isTrue && t('Frozen')}</td>
|
||||||
<td className='number'>{details && formatNumber(details.items || (details as unknown as { instances: BN }).instances)}</td>
|
<td className='number'>{details && formatNumber(details.items || (details as unknown as { instances: BN }).instances)}</td>
|
||||||
</tr>
|
</tr>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ interface Props {
|
|||||||
upcomingCount?: number;
|
upcomingCount?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
function Summary ({ leasePeriod, teyrchainCount, proposalCount, upcomingCount }: Props): React.ReactElement<Props> {
|
function Summary ({ leasePeriod, proposalCount, teyrchainCount, upcomingCount }: Props): React.ReactElement<Props> {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ import { formatNumber } from '@pezkuwi/util';
|
|||||||
|
|
||||||
import { useTranslation } from '../translate.js';
|
import { useTranslation } from '../translate.js';
|
||||||
import Lifecycle from './Lifecycle.js';
|
import Lifecycle from './Lifecycle.js';
|
||||||
import TeyrchainInfo from './TeyrchainInfo.js';
|
|
||||||
import Periods from './Periods.js';
|
import Periods from './Periods.js';
|
||||||
|
import TeyrchainInfo from './TeyrchainInfo.js';
|
||||||
import useParaInfo from './useParaInfo.js';
|
import useParaInfo from './useParaInfo.js';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import type { LeasePeriod, Proposals, QueuedAction } from '../types.js';
|
|||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import Teyrchains from './Teyrchains.js';
|
|
||||||
import Summary from './Summary.js';
|
import Summary from './Summary.js';
|
||||||
|
import Teyrchains from './Teyrchains.js';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
actionsQueue: QueuedAction[];
|
actionsQueue: QueuedAction[];
|
||||||
@@ -24,8 +24,8 @@ function Overview ({ actionsQueue, className, leasePeriod, paraIds, proposals, t
|
|||||||
<div className={className}>
|
<div className={className}>
|
||||||
<Summary
|
<Summary
|
||||||
leasePeriod={leasePeriod}
|
leasePeriod={leasePeriod}
|
||||||
teyrchainCount={paraIds?.length}
|
|
||||||
proposalCount={proposals?.proposalIds.length}
|
proposalCount={proposals?.proposalIds.length}
|
||||||
|
teyrchainCount={paraIds?.length}
|
||||||
upcomingCount={threadIds?.length}
|
upcomingCount={threadIds?.length}
|
||||||
/>
|
/>
|
||||||
<Teyrchains
|
<Teyrchains
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { Option } from '@pezkuwi/types';
|
import type { Option } from '@pezkuwi/types';
|
||||||
import type { TeyrchainProposal, ParaId } from '@pezkuwi/types/interfaces';
|
import type { ParaId, TeyrchainProposal } from '@pezkuwi/types/interfaces';
|
||||||
import type { ProposalExt, ScheduledProposals } from '../types.js';
|
import type { ProposalExt, ScheduledProposals } from '../types.js';
|
||||||
|
|
||||||
import { useMemo } from 'react';
|
import { useMemo } from 'react';
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
// Copyright 2017-2026 @pezkuwi/app-teyrchains authors & contributors
|
// Copyright 2017-2026 @pezkuwi/app-teyrchains authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import type { AccountId, AuctionIndex, BalanceOf, BlockNumber, LeasePeriodOf, TeyrchainProposal, ParaId, SessionIndex } from '@pezkuwi/types/interfaces';
|
import type { AccountId, AuctionIndex, BalanceOf, BlockNumber, LeasePeriodOf, ParaId, SessionIndex, TeyrchainProposal } from '@pezkuwi/types/interfaces';
|
||||||
import type { PezkuwiTeyrchainPrimitivesPrimitivesHrmpChannelId, PezkuwiRuntimeCommonCrowdloanFundInfo, PezkuwiRuntimeCommonParasRegistrarParaInfo, PezkuwiRuntimeTeyrchainsHrmpHrmpChannel } from '@pezkuwi/types/lookup';
|
import type { PezkuwiRuntimeCommonCrowdloanFundInfo, PezkuwiRuntimeCommonParasRegistrarParaInfo, PezkuwiRuntimeTeyrchainsHrmpHrmpChannel, PezkuwiTeyrchainPrimitivesPrimitivesHrmpChannelId } from '@pezkuwi/types/lookup';
|
||||||
import type { BN } from '@pezkuwi/util';
|
import type { BN } from '@pezkuwi/util';
|
||||||
|
|
||||||
export type ChannelMap = Record<string, [PezkuwiTeyrchainPrimitivesPrimitivesHrmpChannelId, PezkuwiRuntimeTeyrchainsHrmpHrmpChannel][]>;
|
export type ChannelMap = Record<string, [PezkuwiTeyrchainPrimitivesPrimitivesHrmpChannelId, PezkuwiRuntimeTeyrchainsHrmpHrmpChannel][]>;
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ function Free ({ className, value: { count, deposit, proposalHash, status } }: P
|
|||||||
const { api } = useApi();
|
const { api } = useApi();
|
||||||
const { allAccounts } = useAccounts();
|
const { allAccounts } = useAccounts();
|
||||||
const isAvailable = useMemo(
|
const isAvailable = useMemo(
|
||||||
() => count === 0 && status && status.isUnrequested && deposit && allAccounts.includes(deposit.who),
|
() => count === 0 && status?.isUnrequested && deposit && allAccounts.includes(deposit.who),
|
||||||
[allAccounts, count, deposit, status]
|
[allAccounts, count, deposit, status]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ function group (tracks: TrackDescription[], totalIssuance?: BN, referenda?: Refe
|
|||||||
for (let i = 0, count = referenda.length; i < count; i++) {
|
for (let i = 0, count = referenda.length; i < count; i++) {
|
||||||
const ref = referenda[i];
|
const ref = referenda[i];
|
||||||
|
|
||||||
if (!ref.info || !ref.info.isOngoing) {
|
if (!ref.info?.isOngoing) {
|
||||||
// info is undefined or not ongoing — can't get track
|
// info is undefined or not ongoing — can't get track
|
||||||
other.referenda.push(ref);
|
other.referenda.push(ref);
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ function Pool ({ className = '', members, ownAccounts, params, poolId }: Props):
|
|||||||
withLoading
|
withLoading
|
||||||
/>
|
/>
|
||||||
<td className='number media--1400'>{info && !info.rewardClaimable.isZero() && <FormatBalance value={info.rewardClaimable} />}</td>
|
<td className='number media--1400'>{info && !info.rewardClaimable.isZero() && <FormatBalance value={info.rewardClaimable} />}</td>
|
||||||
<td className='number'>{info && info.bonded.commission.current.value && <div>{info.bonded.commission.current.value[0]?.toHuman()}</div>}</td>
|
<td className='number'>{info?.bonded.commission.current.value && <div>{info.bonded.commission.current.value[0]?.toHuman()}</div>}</td>
|
||||||
<td className='number'>
|
<td className='number'>
|
||||||
{info && info.nominating.length !== 0 && (
|
{info && info.nominating.length !== 0 && (
|
||||||
<ExpanderScroll
|
<ExpanderScroll
|
||||||
|
|||||||
@@ -10,9 +10,10 @@ import type { Signer, SignerResult } from '@pezkuwi/api/types';
|
|||||||
import type { Ledger, LedgerGeneric } from '@pezkuwi/hw-ledger';
|
import type { Ledger, LedgerGeneric } from '@pezkuwi/hw-ledger';
|
||||||
import type { Registry, SignerPayloadJSON } from '@pezkuwi/types/types';
|
import type { Registry, SignerPayloadJSON } from '@pezkuwi/types/types';
|
||||||
|
|
||||||
|
import { merkleizeMetadata } from '@polkadot-api/merkleize-metadata';
|
||||||
|
|
||||||
import { settings } from '@pezkuwi/ui-settings';
|
import { settings } from '@pezkuwi/ui-settings';
|
||||||
import { objectSpread, u8aToHex } from '@pezkuwi/util';
|
import { objectSpread, u8aToHex } from '@pezkuwi/util';
|
||||||
import { merkleizeMetadata } from '@polkadot-api/merkleize-metadata';
|
|
||||||
|
|
||||||
let id = 0;
|
let id = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2026 @polkadot/apps authors & contributors
|
// Copyright 2017-2026 @pezkuwi/apps authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
const fs = require('node:fs');
|
const fs = require('node:fs');
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2026 @polkadot/apps authors & contributors
|
// Copyright 2017-2026 @pezkuwi/apps authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
const fs = require('node:fs');
|
const fs = require('node:fs');
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2026 @polkadot/apps authors & contributors
|
// Copyright 2017-2026 @pezkuwi/apps authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
const fs = require('node:fs');
|
const fs = require('node:fs');
|
||||||
|
|||||||
@@ -1,15 +1,14 @@
|
|||||||
// Copyright 2017-2026 @polkadot/apps authors & contributors
|
// Copyright 2017-2026 @pezkuwi/apps authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
import { formatNumber, stringCamelCase } from '@pezkuwi/util';
|
||||||
import fs from 'node:fs';
|
import fs from 'node:fs';
|
||||||
import path from 'node:path';
|
import path from 'node:path';
|
||||||
|
|
||||||
import { formatNumber, stringCamelCase } from '@polkadot/util';
|
|
||||||
|
|
||||||
const MAX_SIZE = 48 * 1024;
|
const MAX_SIZE = 48 * 1024;
|
||||||
|
|
||||||
// FIXME The sorting here and the sorting from linting seems like a mismatch...
|
// FIXME The sorting here and the sorting from linting seems like a mismatch...
|
||||||
const HEADER = '// Copyright 2017-2026 @polkadot/apps authors & contributors\n// SPDX-License-Identifier: Apache-2.0\n\n// Do not edit. Auto-generated via node scripts/imgConvert.mjs\n\n';
|
const HEADER = '// Copyright 2017-2026 @pezkuwi/apps authors & contributors\n// SPDX-License-Identifier: Apache-2.0\n\n// Do not edit. Auto-generated via node scripts/imgConvert.mjs\n\n';
|
||||||
|
|
||||||
/** @type {Record<string, string>} */
|
/** @type {Record<string, string>} */
|
||||||
const MIME = {
|
const MIME = {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2017-2026 @polkadot/apps authors & contributors
|
// Copyright 2017-2026 @pezkuwi/apps authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
@@ -7,12 +7,11 @@
|
|||||||
import CrustPinner from '@crustio/crust-pin';
|
import CrustPinner from '@crustio/crust-pin';
|
||||||
import PinataSDK from '@pinata/sdk';
|
import PinataSDK from '@pinata/sdk';
|
||||||
// @ts-expect-error No definition file
|
// @ts-expect-error No definition file
|
||||||
|
import { execSync } from '@pezkuwi/dev/scripts/util.mjs';
|
||||||
|
// @ts-expect-error No definition file
|
||||||
import cloudflare from 'dnslink-cloudflare';
|
import cloudflare from 'dnslink-cloudflare';
|
||||||
import fs from 'node:fs';
|
import fs from 'node:fs';
|
||||||
|
|
||||||
// @ts-expect-error No definition file
|
|
||||||
import { execSync } from '@polkadot/dev/scripts/util.mjs';
|
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
// @ts-ignore Using ignore since the file won't be there in dev
|
// @ts-ignore Using ignore since the file won't be there in dev
|
||||||
import { createWsEndpoints } from '../packages/apps-config/build/endpoints/index.js';
|
import { createWsEndpoints } from '../packages/apps-config/build/endpoints/index.js';
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
// Copyright 2017-2026 @polkadot/react-components authors & contributors
|
// Copyright 2017-2026 @pezkuwi/react-components authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
const fs = require('node:fs');
|
const fs = require('node:fs');
|
||||||
const path = require('node:path');
|
const path = require('node:path');
|
||||||
|
|
||||||
const HEADER = `// Copyright 2017-2026 @polkadot/react-components authors & contributors
|
const HEADER = `// Copyright 2017-2026 @pezkuwi/react-components authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
// Automatically generated, do not edit
|
// Automatically generated, do not edit
|
||||||
|
|||||||
Reference in New Issue
Block a user