Skip to content

Commit 53ec9ee

Browse files
refactor: remove unused CHAIN_IDS export and simplify chain config
1 parent 68cd682 commit 53ec9ee

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/config/config.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@ export const MAX_DESIRED_WORKERPOOL_ORDER_PRICE = 0;
44
export const DEFAULT_CONTENT_TYPE = 'text/plain';
55
export const ANY_DATASET_ADDRESS = 'any';
66

7-
export const CHAIN_IDS = {
8-
BELLECOUR: 134,
9-
AVALANCHE_FUJI: 43113,
10-
ARBITRUM_SEPOLIA: 421614,
11-
} as const;
12-
13-
export const DEFAULT_CHAIN_ID = CHAIN_IDS.BELLECOUR;
7+
export const DEFAULT_CHAIN_ID = 134;
148

159
interface ChainConfig {
1610
name: string;
@@ -24,7 +18,7 @@ interface ChainConfig {
2418
}
2519

2620
const CHAIN_CONFIG: Record<number, ChainConfig> = {
27-
[CHAIN_IDS.BELLECOUR]: {
21+
134: {
2822
name: 'bellecour',
2923
dappAddress: 'web3mail.apps.iexec.eth',
3024
prodWorkerpoolAddress: 'prod-v8-bellecour.main.pools.iexec.eth',
@@ -34,7 +28,7 @@ const CHAIN_CONFIG: Record<number, ChainConfig> = {
3428
ipfsGateway: 'https://ipfs-gateway.v8-bellecour.iex.ec',
3529
whitelistSmartContract: '0x781482C39CcE25546583EaC4957Fb7Bf04C277D2',
3630
},
37-
[CHAIN_IDS.ARBITRUM_SEPOLIA]: {
31+
421614: {
3832
name: 'arbitrum-sepolia-testnet',
3933
dappAddress: 'web3mail.apps.iexec.eth',
4034
prodWorkerpoolAddress: '0x39c3cdd91a7f1c4ed59108a9da4e79de9a1c1b59',

0 commit comments

Comments
 (0)