Skip to content

Commit 075d8a8

Browse files
committed
review fixes
1 parent ed6f0b2 commit 075d8a8

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

configs/app/chain.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { RollupType } from 'types/client/rollup';
2-
import type { NetworkVerificationType, NetworkVerificationTypeL1 } from 'types/networks';
2+
import type { NetworkVerificationType, NetworkVerificationTypeEnvs } from 'types/networks';
33

44
import { getEnvValue } from './utils';
55

@@ -14,7 +14,7 @@ const verificationType: NetworkVerificationType = (() => {
1414
if (rollupType === 'zkEvm') {
1515
return 'sequencing';
1616
}
17-
return getEnvValue('NEXT_PUBLIC_NETWORK_VERIFICATION_TYPE') as NetworkVerificationTypeL1 || 'mining';
17+
return getEnvValue('NEXT_PUBLIC_NETWORK_VERIFICATION_TYPE') as NetworkVerificationTypeEnvs || 'mining';
1818
})();
1919

2020
const chain = Object.freeze({

deploy/tools/envs-validator/schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { SUPPORTED_WALLETS } from '../../../types/client/wallets';
2929
import type { CustomLink, CustomLinksGroup } from '../../../types/footerLinks';
3030
import { CHAIN_INDICATOR_IDS } from '../../../types/homepage';
3131
import type { ChainIndicatorId } from '../../../types/homepage';
32-
import { type NetworkVerificationTypeL1, type NetworkExplorer, type FeaturedNetwork, NETWORK_GROUPS } from '../../../types/networks';
32+
import { type NetworkVerificationTypeEnvs, type NetworkExplorer, type FeaturedNetwork, NETWORK_GROUPS } from '../../../types/networks';
3333
import { COLOR_THEME_IDS } from '../../../types/settings';
3434
import type { AddressViewId } from '../../../types/views/address';
3535
import { ADDRESS_VIEWS_IDS, IDENTICON_TYPES } from '../../../types/views/address';
@@ -509,7 +509,7 @@ const schema = yup
509509
NEXT_PUBLIC_NETWORK_SECONDARY_COIN_SYMBOL: yup.string(),
510510
NEXT_PUBLIC_NETWORK_MULTIPLE_GAS_CURRENCIES: yup.boolean(),
511511
NEXT_PUBLIC_NETWORK_VERIFICATION_TYPE: yup
512-
.string<NetworkVerificationTypeL1>().oneOf([ 'validation', 'mining' ])
512+
.string<NetworkVerificationTypeEnvs>().oneOf([ 'validation', 'mining' ])
513513
.when('NEXT_PUBLIC_ROLLUP_TYPE', {
514514
is: (value: string) => value === 'arbitrum' || value === 'zkEvm',
515515
then: (schema) => schema.test(

docs/ENVS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Please be aware that all environment variables prefixed with `NEXT_PUBLIC_` will
9292
| NEXT_PUBLIC_NETWORK_CURRENCY_DECIMALS | `string` | Network currency decimals | - | `18` | `6` | v1.0.x+ |
9393
| NEXT_PUBLIC_NETWORK_SECONDARY_COIN_SYMBOL | `string` | Network secondary coin symbol. | - | - | `GNO` | v1.29.0+ |
9494
| NEXT_PUBLIC_NETWORK_MULTIPLE_GAS_CURRENCIES | `boolean` | Set to `true` for networks where users can pay transaction fees in either the native coin or ERC-20 tokens. | - | `false` | `true` | v1.33.0+ |
95-
| NEXT_PUBLIC_NETWORK_VERIFICATION_TYPE | `validation` | `mining` | `posting` | Verification type in the network | - | `mining` | `validation` | v1.0.x+ |
95+
| NEXT_PUBLIC_NETWORK_VERIFICATION_TYPE | `validation` | `mining` | Verification type in the network. Irrelevant for Arbitrum (verification type is always `posting`) and ZkEvm (verification type is always `sequencing`) L2s | - | `mining` | `validation` | v1.0.x+ |
9696
| NEXT_PUBLIC_NETWORK_TOKEN_STANDARD_NAME | `string` | Name of the standard for creating tokens | - | `ERC` | `BEP` | v1.31.0+ |
9797
| NEXT_PUBLIC_IS_TESTNET | `boolean`| Set to true if network is testnet | - | `false` | `true` | v1.0.x+ |
9898

types/networks.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ export interface NetworkExplorer {
2424
};
2525
}
2626

27-
export type NetworkVerificationTypeL1 = 'mining' | 'validation';
28-
export type NetworkVerificationTypeL2 = 'posting' | 'sequencing';
29-
export type NetworkVerificationType = NetworkVerificationTypeL1 | NetworkVerificationTypeL2;
27+
export type NetworkVerificationTypeEnvs = 'mining' | 'validation';
28+
export type NetworkVerificationTypeComputed = 'posting' | 'sequencing';
29+
export type NetworkVerificationType = NetworkVerificationTypeEnvs | NetworkVerificationTypeComputed;

0 commit comments

Comments
 (0)