Skip to content

Commit f00ab9a

Browse files
Refactor Network and Navbar Components to Remove Testnet References
- Commented out upcoming chains in NetworkSelector and removed references to 'Camp Testnet' and 'Ozean Testnet' from Navbar and web3 configuration. - Updated constants to reflect the removal of testnet networks, streamlining the codebase.
1 parent 8aa69c0 commit f00ab9a

5 files changed

Lines changed: 8 additions & 76 deletions

File tree

packages/ui/app/market/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export default function Market() {
139139
<div className="w-full my-4 flex flex-wrap">
140140
<NetworkSelector
141141
dropdownSelectedChain={+chain}
142-
upcomingChains={['FX', 'Kroma', 'Unichain']}
142+
// upcomingChains={['FX', 'Kroma', 'Unichain']}
143143
/>
144144
</div>
145145
<div className="bg-grayone w-full rounded-xl py-4 px-4 lg:px-[1%] xl:px-[3%]">

packages/ui/components/Navbar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,11 @@ export default function Navbar() {
150150
label="Earn"
151151
isActive={pathname === '/earn'}
152152
/>
153-
<NavLink
153+
{/* <NavLink
154154
href="/claim"
155155
label="Claim"
156156
isActive={pathname === '/claim'}
157-
/>
157+
/> */}
158158
<NavLink
159159
href="/incentives"
160160
label="Incentivize"

packages/ui/components/markets/NetworkSelector.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ const ACTIVE_NETWORKS = [
3939
'Worldchain',
4040
'Swell',
4141
'Soneium',
42-
'Superseed',
43-
'Ozean Testnet',
44-
'Camp Testnet'
42+
'Superseed'
43+
// 'Ozean Testnet',
44+
// 'Camp Testnet'
4545
];
4646

4747
export const ALL_CHAINS_VALUE = 0;

packages/ui/config/web3.ts

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -74,40 +74,6 @@ export const swellchain: AppKitNetwork = {
7474
}
7575
};
7676

77-
export const camptest: AppKitNetwork = {
78-
id: 325000,
79-
name: 'Camp Testnet',
80-
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
81-
rpcUrls: {
82-
default: {
83-
http: ['https://rpc-campnetwork.xyz']
84-
}
85-
},
86-
blockExplorers: {
87-
default: {
88-
name: 'Camp Testnet Explorer',
89-
url: 'https://camp-network-testnet.blockscout.com',
90-
apiUrl: 'https://camp-network-testnet.blockscout.com/api'
91-
}
92-
}
93-
};
94-
95-
export const ozeantest: AppKitNetwork = {
96-
id: 7849306,
97-
name: 'Ozean Testnet',
98-
nativeCurrency: { name: 'USDX', symbol: 'USDX', decimals: 18 },
99-
rpcUrls: {
100-
default: { http: ['https://ozean-testnet.rpc.caldera.xyz/http'] }
101-
},
102-
blockExplorers: {
103-
default: {
104-
name: 'Ozean Testnet Explorer',
105-
url: 'https://ozean-testnet.explorer.caldera.xyz',
106-
apiUrl: 'https://ozean-testnet.explorer.caldera.xyz/api'
107-
}
108-
}
109-
};
110-
11177
export const soneium: AppKitNetwork = {
11278
id: 1868,
11379
name: 'Soneium',
@@ -140,9 +106,7 @@ export const networks: AppKitNetwork[] = [
140106
superseed,
141107
worldchain,
142108
fraxtal,
143-
swellchain,
144-
camptest,
145-
ozeantest
109+
swellchain
146110
];
147111

148112
export const metadata = {

packages/ui/constants/index.ts

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,7 @@ import type { TxStep } from '@ui/types/ComponentPropsType';
1414

1515
import type { Address } from 'viem';
1616

17-
import {
18-
camptest,
19-
ink,
20-
ozeantest,
21-
soneium,
22-
swellchain
23-
} from '@ionicprotocol/chains';
17+
import { ink, soneium, swellchain } from '@ionicprotocol/chains';
2418
import { SupportedChainsArray } from '@ionicprotocol/types';
2519

2620
export const SUPPORTED_NETWORKS_REGEX = new RegExp(
@@ -421,32 +415,6 @@ export const pools: Record<number, PoolParams> = {
421415
}
422416
]
423417
},
424-
[camptest.chainId]: {
425-
name: 'Camp Testnet',
426-
arrow: 'ffffff',
427-
bg: 'bg-camp',
428-
text: 'text-white',
429-
border: 'border-camp',
430-
logo: '/img/logo/CAMP.png',
431-
pools: [{ id: '0', name: 'Main Pool', assets: ['WETH'] }]
432-
},
433-
[ozeantest.chainId]: {
434-
arrow: 'ffffff',
435-
name: 'Ozean Testnet',
436-
hexcode: '#2467ed',
437-
bg: 'bg-blue-600',
438-
accentbg: 'bg-blue-600',
439-
text: 'text-white',
440-
border: 'border-base',
441-
logo: '/img/logo/OZEAN.png',
442-
pools: [
443-
{
444-
id: '0',
445-
name: 'Main Pool',
446-
assets: ['WUSDX']
447-
}
448-
]
449-
},
450418
[soneium.chainId]: {
451419
name: 'Soneium',
452420
arrow: 'ffffff',

0 commit comments

Comments
 (0)