File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed
Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff line change 11import BigNumber from 'bignumber.js' ;
22import { 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';
178178export const GLOBAL_BASE_TOKEN_URI_NAME = 'baseTokenUri' ;
179179
180180export 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 ) ;
Original file line number Diff line number Diff 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' ;
312312import {
313313 asAccount ,
You can’t perform that action at this time.
0 commit comments