Skip to content

Commit

Permalink
refactor: 💡 pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sansan committed Jan 28, 2025
1 parent a938003 commit e47b6f4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
6 changes: 0 additions & 6 deletions src/generated/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -983,9 +983,3 @@ export const TxTags = {
stateTrieMigration: StateTrieMigrationTx,
electionProviderMultiPhase: ElectionProviderMultiPhaseTx,
};

export const TX_TAG_VALUES: string[] = Object.values(TxTags)
.map(v => Object.values(v))
.flat();

export const MODULE_NAMES: string[] = Object.values(ModuleName);
6 changes: 5 additions & 1 deletion src/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import BigNumber from 'bignumber.js';
import { coerce } from 'semver';

import { TransactionArgumentType } from '~/types';
import { ModuleName, TransactionArgumentType, TxTags } from '~/types';

/**
* Maximum amount of decimals for on-chain values
Expand Down Expand Up @@ -178,3 +178,7 @@ export const GLOBAL_TOKEN_URI_NAME = 'tokenUri';
export const GLOBAL_BASE_TOKEN_URI_NAME = 'baseTokenUri';

export const ASSET_ID_PREFIX = 'modlpy/pallet_asset';

export const TX_TAG_VALUES: string[] = Object.values(TxTags).flatMap(v => Object.values(v));

export const MODULE_NAMES: string[] = Object.values(ModuleName);
4 changes: 2 additions & 2 deletions src/utils/conversion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ import {
MetadataType,
MetadataValue,
MetadataValueDetails,
MODULE_NAMES,
ModuleName,
MultiClaimCondition,
NftMetadataInput,
Expand Down Expand Up @@ -275,7 +274,6 @@ import {
TransferRestrictionType,
TransferStatus,
TrustedClaimIssuer,
TX_TAG_VALUES,
TxGroup,
TxTag,
TxTags,
Expand Down Expand Up @@ -308,6 +306,8 @@ import {
MAX_MODULE_LENGTH,
MAX_OFF_CHAIN_METADATA_LENGTH,
MAX_TICKER_LENGTH,
MODULE_NAMES,
TX_TAG_VALUES,
} from '~/utils/constants';
import {
asAccount,
Expand Down

0 comments on commit e47b6f4

Please sign in to comment.