Skip to content

Commit d8d0b5f

Browse files
PierreJeanjacquotabbesBenayache
authored andcommitted
feat: add support for arbitrum-mainnet
1 parent 308bb79 commit d8d0b5f

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

docs/interfaces/IExecConfigArgs.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ A web3 Eth provider, a network name, a chain id or an ethers provider
1919
read-only provider examples:
2020
- `"mainnet"` or `1` or `"1"` for ethereum mainnet provider
2121
- `"bellecour"` or `134` or `"134"` for iExec sidechain
22+
- `"arbitrum-mainnet"` or `42161` or `"42161"` for arbitrum mainnet provider
2223
- `"http://localhost:8545"` for local chain
2324
- `new ethers.JsonRpcProvider("https://bellecour.iex.ec")` ethers provider connected to bellecour
2425

src/cli/utils/templates.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ export const chains = {
148148
chains: {
149149
mainnet: {},
150150
bellecour: {},
151+
'arbitrum-mainnet': {},
151152
},
152153
};
153154

src/common/utils/config.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,27 @@ const networkConfigs = [
7373
shouldRegisterNetwork: false,
7474
isExperimental: true,
7575
},
76+
{
77+
id: 42161,
78+
name: 'arbitrum-mainnet',
79+
hub: 'TODO', // TODO: replace with actual poco address
80+
host: 'https://arb1.arbitrum.io/rpc',
81+
ensRegistry: undefined, // not supported
82+
ensPublicResolver: undefined, // not supported
83+
sms: {
84+
[TEE_FRAMEWORKS.SCONE]: 'https://sms.arbitrum-mainnet.iex.ec',
85+
},
86+
resultProxy: undefined, // not exposed
87+
ipfsGateway: 'https://ipfs-gateway.arbitrum-mainnet.iex.ec',
88+
iexecGateway: 'https://api-market.arbitrum-mainnet.iex.ec',
89+
compass: 'https://compass.arbitrum-mainnet.iex.ec',
90+
pocoSubgraph:
91+
'https://thegraph.arbitrum-mainnet.iex.ec/api/subgraphs/id/TODO', // TODO: replace with actual subgraph ID
92+
voucherHub: undefined, // no voucher
93+
voucherSubgraph: undefined, // no voucher
94+
bridge: {}, // no bridge
95+
shouldRegisterNetwork: false,
96+
},
7697
];
7798

7899
export const getId = (idOrName, { allowExperimentalNetworks = false } = {}) =>

src/lib/IExecConfig.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export interface IExecConfigArgs {
1919
* read-only provider examples:
2020
* - `"mainnet"` or `1` or `"1"` for ethereum mainnet provider
2121
* - `"bellecour"` or `134` or `"134"` for iExec sidechain
22+
* - `"arbitrum-mainnet"` or `42161` or `"42161"` for arbitrum mainnet provider
2223
* - `"http://localhost:8545"` for local chain
2324
* - `new ethers.JsonRpcProvider("https://bellecour.iex.ec")` ethers provider connected to bellecour
2425
*

0 commit comments

Comments
 (0)