Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for optimism chain #1816

Merged
merged 5 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 13 additions & 1 deletion src/ethereum-providers/connectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,19 @@ export const connectors = [
{
id: 'injected',
properties: {
chainId: [1, 5, 137, 80001, 1666600000, 1666700000, 97, 56, 588, 1088], // add here to handle more injected chains
chainId: [
1,
5,
10,
137,
80001,
1666600000,
1666700000,
97,
56,
588,
1088,
], // add here to handle more injected chains
},
},
{
Expand Down
19 changes: 19 additions & 0 deletions src/network-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,25 @@ export const networkConfigs = {
live: true,
},
},
[chains.getChainInformation(10).type]: {
isActive: true,
addresses: {
ensRegistry:
localEnsRegistryAddress || '0x6f2CA655f58d5fb94A08460aC19A552EB19909FD',
dai: '0xdc31ee1784292379fbb2964b3b9c4124d8f89c60',
0xGabi marked this conversation as resolved.
Show resolved Hide resolved
governExecutorProxy: null,
},
nodes: {
defaultEth: null, // TBD
0xGabi marked this conversation as resolved.
Show resolved Hide resolved
},
connectGraphEndpoint: null,
settings: {
chainId: 10,
testnet: false,
...chains.getChainInformation(10),
live: true,
},
},
[chains.getChainInformation(1337).type]: {
isActive: false,
addresses: {
Expand Down
1 change: 1 addition & 0 deletions src/templates/dandelion/config/helpers/getBlockTime.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const NETWORK_TIMES = new Map([
['ropsten', 11],
['goerli', 15],
['private', 2],
['optimism', 2],
['matic', 2],
['mumbai', 2],
['harmonyTest', 2],
Expand Down