Skip to content

Commit ad85b0c

Browse files
authored
Merge pull request #4 from abstractswap/ted/add-cyber
Add cyber + bob networks
2 parents 46387c5 + fad60e3 commit ad85b0c

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

apps/web/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ REACT_APP_UNISWAP_GATEWAY_DNS="https://apiv2.staging.reservoir.w3us.site"
2121
REACT_APP_WALLET_CONNECT_PROJECT_ID=""
2222
REACT_APP_IS_UNISWAP_INTERFACE=true
2323
REACT_APP_SENTRY_ENABLED=false
24-
REACT_APP_WEB_SUPPORTED_CHAINS=543210,7560
24+
REACT_APP_WEB_SUPPORTED_CHAINS=543210,60808,7560

apps/web/src/components/NavBar/Tabs/TabsContent.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ export const useTabsContent = (props?: { includeNftsLink?: boolean }): TabsSecti
3636
const areTabsVisible = useTabsVisible()
3737
const { chainId } = useSwapAndLimitContext()
3838

39-
console.log('chainId', chainId)
40-
4139
return [
4240
{
4341
title: t('common.trade'),

apps/web/src/graphql/thegraph/apolloLegacy.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ const CHAIN_SUBGRAPH_URL: Record<number, string> = {
1010
[UniverseChainId.AbstractTestnet]:
1111
'https://graph-node.internal.reservoir.tools/subgraphs/name/absctract-testnet/v3-subgraph',
1212
[UniverseChainId.Zero]: 'https://graph-node.internal.reservoir.tools/subgraphs/name/zero/v3-subgraph',
13-
[UniverseChainId.BOB]: 'https://graph-node.internal.reservoir.tools/subgraphs/bob/zero/v3-subgraph',
13+
[UniverseChainId.BOB]: 'https://graph-node.internal.reservoir.tools/subgraphs/name/bob/v3-subgraph',
14+
[UniverseChainId.CYBER]: 'https://graph-node.internal.reservoir.tools/subgraphs/name/cyber/v3-subgraph',
1415
}
1516

1617
const httpLink = new HttpLink({ uri: CHAIN_SUBGRAPH_URL[UniverseChainId.Zero] })

packages/uniswap/src/constants/chains.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ export const UNIVERSE_CHAIN_INFO: Record<UniverseChainId, UniverseChainInfo> = {
11741174
},
11751175
blockPerMainnetEpochForChainId: 12,
11761176
blockWaitMsBeforeWarning: 600000,
1177-
bridge: 'https://app.gobob.xyz',
1177+
bridge: 'https://www.relay.link/bridge/bob',
11781178
chainPriority: 0,
11791179
docs: 'https://docs.gobob.xyz',
11801180
elementName: ElementName.ChainBob,
@@ -1184,7 +1184,7 @@ export const UNIVERSE_CHAIN_INFO: Record<UniverseChainId, UniverseChainInfo> = {
11841184
apiURL: 'https://explorer.gobob.xyz/api',
11851185
},
11861186
helpCenterUrl: undefined,
1187-
infoLink: 'https://www.gobob.xyz',
1187+
infoLink: 'https://info.reservoir.app/#/bob',
11881188
infuraPrefix: undefined,
11891189
interfaceName: 'bob',
11901190
label: 'BOB',
@@ -1256,7 +1256,7 @@ export const UNIVERSE_CHAIN_INFO: Record<UniverseChainId, UniverseChainInfo> = {
12561256
default: { http: ['https://cyber.alt.technology'] },
12571257
appOnly: { http: ['https://cyber.alt.technology'] },
12581258
},
1259-
urlParam: 'bob',
1259+
urlParam: 'cyber',
12601260
statusPage: undefined,
12611261
spotPriceStablecoinAmount: CurrencyAmount.fromRawAmount(USDC_CYBER, 10_000e6),
12621262
stablecoins: [USDC_CYBER],

packages/uniswap/src/types/chains.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export type WalletChainId =
5050
| UniverseChainId.BOB
5151
| UniverseChainId.CYBER
5252

53+
5354
// DON'T CHANGE - order here determines ordering of networks in app
5455
// TODO: [MOB-250] Add back in testnets once our endpoints support them
5556
export const WALLET_SUPPORTED_CHAIN_IDS: WalletChainId[] = [

0 commit comments

Comments
 (0)