Skip to content

Commit c11251e

Browse files
authored
Remove deprecated chains, simplify dependencies (#3633)
* remove deprecated chains, simplify dependencies * fix playwright * fix package-lock :) * bump playwright lol * don't use ^
1 parent fe4d469 commit c11251e

File tree

12 files changed

+2105
-2312
lines changed

12 files changed

+2105
-2312
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
run:
2323
working-directory: './'
2424
container:
25-
image: mcr.microsoft.com/playwright:v1.52.0-noble
25+
image: mcr.microsoft.com/playwright:v1.54.1-noble
2626
options: --user 1001 # Default user ID in Ubuntu
2727
steps:
2828
- uses: actions/checkout@v4

package-lock.json

Lines changed: 2097 additions & 2217 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
"@reduxjs/toolkit": "^2.5.1",
5555
"@solana/spl-token": "0.4.0",
5656
"@solana/wallet-adapter-wallets": "0.19.32",
57-
"@solana/web3.js": "1.98.0",
5857
"@wormhole-foundation/sdk": "3.0.1",
5958
"@wormhole-foundation/sdk-definitions": "3.0.1",
6059
"@wormhole-foundation/sdk-definitions-ntt": "1.0.4",
@@ -68,7 +67,7 @@
6867
"@wormhole-labs/wallet-aggregator-evm": "0.4.0",
6968
"@wormhole-labs/wallet-aggregator-solana": "0.0.1",
7069
"@wormhole-labs/wallet-aggregator-sui": "0.0.1",
71-
"axios": "1.4.0",
70+
"axios": "1.10.0",
7271
"binary-parser": "^2.2.1",
7372
"color": "^5.0.0",
7473
"ethers": "6.13.5",
@@ -122,7 +121,7 @@
122121
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
123122
"@babel/preset-env": "^7.24.4",
124123
"@kev1n-peters/vite-plugin-node-polyfills": "^0.17.4",
125-
"@playwright/test": "^1.52.0",
124+
"@playwright/test": "1.54.1",
126125
"@types/node": "^20",
127126
"@types/node-fetch": "^2.6.3",
128127
"@types/react": "^19.1.4",
@@ -138,7 +137,7 @@
138137
"eslint-config-prettier": "^8.6.0",
139138
"eslint-plugin-react-hooks": "^5.0.0",
140139
"husky": "^8.0.3",
141-
"lint-staged": "^13.2.3",
140+
"lint-staged": "^15.2.11",
142141
"prettier": "^2.8.8",
143142
"react": "^19.0.0",
144143
"react-dom": "^19.0.0",
@@ -168,23 +167,7 @@
168167
"*": "prettier --write --ignore-unknown"
169168
},
170169
"overrides": {
171-
"@injectivelabs/sdk-ts@1.10.72": {
172-
"@injectivelabs/token-metadata": "1.10.42",
173-
"axios": "1.4.0"
174-
},
175-
"@injectivelabs/sdk-ts@1.14.11": {
176-
"axios": "1.4.0",
177-
"ethers": "5.7.2"
178-
},
179-
"@injectivelabs/utils": {
180-
"axios": "1.4.0"
181-
},
182-
"@injectivelabs/test-utils": {
183-
"axios": "1.4.0"
184-
},
185-
"@cosmjs/tendermint-rpc": {
186-
"axios": "1.4.0"
187-
},
170+
"axios": "1.10.0",
188171
"@ledgerhq/hw-transport@6.27.1": {
189172
"@ledgerhq/errors": "6.10.2",
190173
"@ledgerhq/logs": "6.12.0",
@@ -195,9 +178,6 @@
195178
"@ledgerhq/logs": "6.12.0",
196179
"@ledgerhq/devices": "6.27.1"
197180
},
198-
"@wormhole-foundation/sdk": {
199-
"axios": "1.4.0"
200-
},
201181
"@mayanfinance/wormhole-sdk-route": {
202182
"@wormhole-foundation/sdk-connect": "3.0.1",
203183
"@wormhole-foundation/sdk-evm": "3.0.1",
@@ -215,8 +195,7 @@
215195
"@wormhole-foundation/sdk-evm-core": "3.0.1"
216196
},
217197
"@wormhole-foundation/sdk-route-ntt": {
218-
"@wormhole-foundation/sdk-connect": "3.0.1",
219-
"axios": "1.4.0"
198+
"@wormhole-foundation/sdk-connect": "3.0.1"
220199
},
221200
"@wormhole-foundation/sdk-solana-ntt": {
222201
"@wormhole-foundation/sdk-base": "3.0.1",
@@ -236,15 +215,6 @@
236215
"@wormhole-foundation/wormhole-connect": {
237216
"aptos": "1.5.2"
238217
},
239-
"@json-rpc-tools/provider": {
240-
"axios": "0.27.2"
241-
},
242-
"@aptos-labs/aptos-client": {
243-
"axios": "1.4.0"
244-
},
245-
"tronweb": {
246-
"axios": "1.4.0"
247-
},
248218
"vite-plugin-dts": {
249219
"vue-tsc": "2.0.0"
250220
},

src/config/constants.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export const CHAIN_ORDER: Chain[] = [
2424
'Moonbeam',
2525
'Klaytn',
2626
'Scroll',
27-
'Evmos',
2827
'Mantle',
2928
'Berachain',
3029
'Mezo',

src/config/devnet/chains.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,4 @@ export const DEVNET_CHAINS: ChainsConfig = {
99
icon: 'Ethereum',
1010
symbol: 'ETH',
1111
},
12-
Osmosis: {
13-
displayName: 'Osmosis',
14-
sdkName: 'Osmosis',
15-
explorerUrl: '',
16-
explorerName: '',
17-
icon: 'Osmosis',
18-
symbol: 'OSMO',
19-
},
20-
Wormchain: {
21-
sdkName: 'Wormchain',
22-
displayName: 'Wormchain',
23-
explorerUrl: '',
24-
explorerName: '',
25-
icon: 'Osmosis',
26-
symbol: 'OSMO',
27-
},
28-
Terra2: {
29-
sdkName: 'Terra2',
30-
displayName: 'Terra',
31-
explorerUrl: '',
32-
explorerName: '',
33-
icon: 'Terra2',
34-
symbol: 'OSMO',
35-
},
3612
};

src/icons/ChainIcons.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import KAIA from './Chains/KAIA';
2121
import SCROLL from './Chains/SCROLL';
2222
import MANTLE from './Chains/MANTLE';
2323
import XLAYER from './Chains/XLAYER';
24-
import OSMO from './Chains/OSMO';
2524
import WORLD from './Chains/WORLD';
2625
import UNI from './Chains/UNI';
2726
import BERA from './Chains/BERA';
@@ -49,7 +48,6 @@ const iconMap: { [key in Chain]?: React.JSX.Element } = {
4948
Scroll: SCROLL(),
5049
Xlayer: XLAYER(),
5150
Mantle: MANTLE(),
52-
Osmosis: OSMO(),
5351
Worldchain: WORLD(),
5452
Unichain: UNI(),
5553
Berachain: BERA(),

src/sdklegacy/config/DEVNET.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ const DEVNET_CONFIG: WormholeConfig = {
77
env: 'Devnet',
88
rpcs: {
99
Ethereum: 'http://localhost:8545',
10-
Wormchain: 'http://localhost:26659',
11-
Osmosis: 'http://localhost:33043',
12-
Terra2: 'http://localhost:26658',
1310
},
1411
};
1512

src/sdklegacy/config/MAINNET.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@ const MAINNET_CONFIG: WormholeConfig = {
2020
Optimism: 'https://optimism-rpc.publicnode.com',
2121
Base: 'https://base.publicnode.com',
2222
Sei: '', // TODO: fill in
23-
Wormchain: 'https://wormchain-rpc.quickapi.com',
24-
Osmosis: 'https://osmosis-rpc.polkachu.com',
25-
Cosmoshub: 'https://cosmos-rpc.polkachu.com',
26-
Evmos: 'https://evmos-rpc.polkachu.com',
27-
Kujira: 'https://kujira-rpc.polkachu.com',
28-
Injective: 'https://injective-rpc.publicnode.com/', // TODO: use the library to get the correct rpc https://docs.ts.injective.network/querying/querying-api/querying-indexer-explorer#fetch-transaction-using-transaction-hash
2923
Klaytn: 'https://public-en.node.kaia.io',
3024
Scroll: 'https://scroll-rpc.publicnode.com',
3125
Xlayer: 'https://rpc.xlayer.tech',

src/sdklegacy/config/TESTNET.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ const TESTNET_CONFIG: WormholeConfig = {
1515
Sui: 'https://fullnode.testnet.sui.io',
1616
Aptos: 'https://fullnode.testnet.aptoslabs.com/v1',
1717
Sei: 'https://rpc.atlantic-2.seinetwork.io',
18-
Wormchain: '',
19-
Osmosis: 'https://rpc.osmotest5.osmosis.zone',
20-
Cosmoshub: 'https://rpc.sentry-02.theta-testnet.polypore.xyz',
21-
Evmos: 'https://evmos-testnet-rpc.polkachu.com',
22-
Kujira: 'https://kujira-testnet-rpc.polkachu.com',
23-
Injective: 'https://injective-testnet-rpc.polkachu.com',
2418
Klaytn: 'https://public-en-kairos.node.kaia.io',
2519
Sepolia: 'https://ethereum-sepolia-rpc.publicnode.com',
2620
ArbitrumSepolia: 'https://sepolia-rollup.arbitrum.io/rpc',

src/store/transferInput.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,7 @@ export const transferInputSlice = createSlice({
257257

258258
export const isDisabledChain = (chain: Chain, wallet: WalletData) => {
259259
// Check if the wallet type (i.e. Metamask, Phantom...) is supported for the given chain
260-
if (wallet.name === 'OKX Wallet' && chain === 'Evmos') {
261-
return true;
262-
} else {
260+
{
263261
return !walletAcceptedChains(wallet.type).includes(chain);
264262
}
265263
};

0 commit comments

Comments
 (0)