File tree 3 files changed +21
-4
lines changed
3 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { Firestore } from 'firebase-admin/firestore';
7
7
import { ACCOUNTANT_CONTRACT_ADDRESS } from '@wormhole-foundation/wormhole-monitor-common' ;
8
8
9
9
const WORMCHAIN_URLS : string [ ] = [
10
+ 'https://gateway.mainnet.xlabs.xyz' ,
10
11
'https://tncnt-eu-wormchain-main-01.rpc.p2p.world' ,
11
12
'https://wormchain-rpc.quickapi.com' ,
12
13
] ;
Original file line number Diff line number Diff line change 1
1
import { chainIdToChain , chainIds } from '@wormhole-foundation/sdk-base' ;
2
2
import { chainToIcon } from '@wormhole-foundation/sdk-icons' ;
3
3
4
- export const WORMCHAIN_URL = 'https://tncnt-eu-wormchain-main-01.rpc.p2p.world' ;
5
- export const TESTNET_WORMCHAIN_URL = `https://corsproxy.io/?${ encodeURIComponent (
6
- 'https://gateway.testnet.xlabs.xyz'
7
- ) } `;
4
+ export const WORMCHAIN_URL = import . meta. env . DEV
5
+ ? '/wormchain'
6
+ : 'https://gateway.mainnet.xlabs.xyz' ;
7
+ export const TESTNET_WORMCHAIN_URL = import . meta. env . DEV
8
+ ? '/wormchain-testnet'
9
+ : 'https://gateway.testnet.xlabs.xyz' ;
8
10
9
11
export const WORMHOLE_RPC_HOSTS = [
10
12
'https://wormhole-v2-mainnet-api.mcf.rocks' ,
Original file line number Diff line number Diff line change @@ -22,4 +22,18 @@ export default defineConfig({
22
22
include : [ / c o m m o n / , / n o d e _ m o d u l e s / ] ,
23
23
} ,
24
24
} ,
25
+ server : {
26
+ proxy : {
27
+ '/wormchain' : {
28
+ target : 'https://gateway.mainnet.xlabs.xyz' ,
29
+ changeOrigin : true ,
30
+ rewrite : ( path ) => path . replace ( / ^ \/ w o r m c h a i n / , '' ) ,
31
+ } ,
32
+ '/wormchain-testnet' : {
33
+ target : 'https://gateway.testnet.xlabs.xyz' ,
34
+ changeOrigin : true ,
35
+ rewrite : ( path ) => path . replace ( / ^ \/ w o r m c h a i n - t e s t n e t / , '' ) ,
36
+ } ,
37
+ } ,
38
+ } ,
25
39
} ) ;
You can’t perform that action at this time.
0 commit comments