Skip to content

Commit 23f04d1

Browse files
committed
refactor: 💡 pr comments
1 parent 31a69fd commit 23f04d1

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

src/generated/types.ts

-6
Original file line numberDiff line numberDiff line change
@@ -983,9 +983,3 @@ export const TxTags = {
983983
stateTrieMigration: StateTrieMigrationTx,
984984
electionProviderMultiPhase: ElectionProviderMultiPhaseTx,
985985
};
986-
987-
export const TX_TAG_VALUES: string[] = Object.values(TxTags)
988-
.map(v => Object.values(v))
989-
.flat();
990-
991-
export const MODULE_NAMES: string[] = Object.values(ModuleName);

src/utils/constants.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import BigNumber from 'bignumber.js';
22
import { coerce } from 'semver';
33

4-
import { TransactionArgumentType } from '~/types';
4+
import { ModuleName, TransactionArgumentType, TxTags } from '~/types';
55

66
/**
77
* Maximum amount of decimals for on-chain values
@@ -178,3 +178,7 @@ export const GLOBAL_TOKEN_URI_NAME = 'tokenUri';
178178
export const GLOBAL_BASE_TOKEN_URI_NAME = 'baseTokenUri';
179179

180180
export const ASSET_ID_PREFIX = 'modlpy/pallet_asset';
181+
182+
export const TX_TAG_VALUES: string[] = Object.values(TxTags).flatMap(v => Object.values(v));
183+
184+
export const MODULE_NAMES: string[] = Object.values(ModuleName);

src/utils/conversion.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ import {
227227
MetadataType,
228228
MetadataValue,
229229
MetadataValueDetails,
230-
MODULE_NAMES,
231230
ModuleName,
232231
MultiClaimCondition,
233232
NftMetadataInput,
@@ -275,7 +274,6 @@ import {
275274
TransferRestrictionType,
276275
TransferStatus,
277276
TrustedClaimIssuer,
278-
TX_TAG_VALUES,
279277
TxGroup,
280278
TxTag,
281279
TxTags,
@@ -308,6 +306,8 @@ import {
308306
MAX_MODULE_LENGTH,
309307
MAX_OFF_CHAIN_METADATA_LENGTH,
310308
MAX_TICKER_LENGTH,
309+
MODULE_NAMES,
310+
TX_TAG_VALUES,
311311
} from '~/utils/constants';
312312
import {
313313
asAccount,

0 commit comments

Comments
 (0)