-
Notifications
You must be signed in to change notification settings - Fork 190
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 Base support to Uniswap widget #619
Changes from 3 commits
a328aef
cbabcb8
c857610
163f7c2
e71f896
711854d
49847f5
62eff2c
e2158e7
3143459
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,8 @@ export enum SupportedChainId { | |
CELO_ALFAJORES = 44787, | ||
|
||
BNB = 56, | ||
|
||
BASE = 8453, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. at some point our team might remove this enum entirely, like i started to do in #615 but for now this works |
||
} | ||
|
||
export enum ChainName { | ||
|
@@ -38,6 +40,7 @@ export enum ChainName { | |
CELO = 'celo', | ||
CELO_ALFAJORES = 'celo-alfajores', | ||
BNB = 'bnb', | ||
BASE = 'base', | ||
} | ||
|
||
export const CHAIN_NAMES_TO_IDS: { [chainName: string]: SupportedChainId } = { | ||
|
@@ -55,6 +58,7 @@ export const CHAIN_NAMES_TO_IDS: { [chainName: string]: SupportedChainId } = { | |
[ChainName.CELO]: SupportedChainId.CELO, | ||
[ChainName.CELO_ALFAJORES]: SupportedChainId.CELO_ALFAJORES, | ||
[ChainName.BNB]: SupportedChainId.BNB, | ||
[ChainName.BASE]: SupportedChainId.BASE, | ||
} | ||
|
||
/** | ||
|
@@ -71,6 +75,7 @@ export const SUPPORTED_GAS_ESTIMATE_CHAIN_IDS = [ | |
SupportedChainId.ARBITRUM_ONE, | ||
SupportedChainId.CELO, | ||
SupportedChainId.BNB, | ||
SupportedChainId.BASE, | ||
] | ||
|
||
/** | ||
|
@@ -86,6 +91,7 @@ export const L1_CHAIN_IDS = [ | |
SupportedChainId.POLYGON_MUMBAI, | ||
SupportedChainId.CELO, | ||
SupportedChainId.CELO_ALFAJORES, | ||
SupportedChainId.BASE, | ||
] as const | ||
|
||
export type SupportedL1ChainId = typeof L1_CHAIN_IDS[number] | ||
|
@@ -99,6 +105,7 @@ export const L2_CHAIN_IDS = [ | |
SupportedChainId.ARBITRUM_RINKEBY, | ||
SupportedChainId.OPTIMISM, | ||
SupportedChainId.OPTIMISM_GOERLI, | ||
SupportedChainId.BASE, | ||
] as const | ||
|
||
export type SupportedL2ChainId = typeof L2_CHAIN_IDS[number] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,4 +86,14 @@ export const JSON_RPC_FALLBACK_ENDPOINTS: Record<SupportedChainId, string[]> = { | |
'https://bsc-dataseed4.defibit.io', | ||
'https://rpc.ankr.com/bsc', | ||
], | ||
[SupportedChainId.BASE]: [ | ||
// "Safe" URLs | ||
'https://mainnet.base.org', | ||
'https://developer-access-mainnet.base.org/', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lets remove |
||
'https://base.gateway.tenderly.co', | ||
'https://base.publicnode.com', | ||
// "Fallback" URLs | ||
'https://1rpc.io/base', | ||
'https://base.meowrpc.com', | ||
], | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It maybe worth making this match optimism: