Skip to content

Commit cf70b19

Browse files
authored
gen: updates script to remove Hyperliquid (#85)
* gen: updates script to remove Hyperliquid * gen: updates testing.env * ci: updates default RPC URLs for fork tests
1 parent 9206704 commit cf70b19

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

gen/chains.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ pragma solidity ^0.8.0;
1212
// In the wormhole wire format, 0 indicates that a message is for any destination chain
1313
uint16 constant CHAIN_ID_UNSET = 0;`);
1414

15-
//the insane decision was made to add Hyperliquid with a fake chainId of -1 to the TS SDK...
16-
for (const chain of chains.filter(chain => chain !== "Hyperliquid"))
15+
for (const chain of chains)
1716
console.log(`uint16 constant CHAIN_ID_${toCapsSnakeCase(chain)} = ${chainToChainId(chain)};`);

gen/testing.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
TEST_RPC_URL=https://rpc.ankr.com/eth
1+
TEST_RPC_URL=https://ethereum-rpc.publicnode.com
22
TEST_USDC_ADDRESS=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
33
TEST_CCTP_TOKEN_MESSENGER_ADDRESS=0xbd3fa81b58ba92a82136038b25adec7066af3155
44
TEST_CCTP_MESSAGE_TRANSMITTER_ADDRESS=0x0a992d191deec32afe36203ad87d7d289a738f81

src/constants/Chains.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ uint16 constant CHAIN_ID_XPLA = 28;
3535
uint16 constant CHAIN_ID_BTC = 29;
3636
uint16 constant CHAIN_ID_BASE = 30;
3737
uint16 constant CHAIN_ID_SEI = 32;
38-
uint16 constant CHAIN_ID_ROOTSTOCK = 33;
3938
uint16 constant CHAIN_ID_SCROLL = 34;
4039
uint16 constant CHAIN_ID_MANTLE = 35;
4140
uint16 constant CHAIN_ID_BLAST = 36;
@@ -49,6 +48,7 @@ uint16 constant CHAIN_ID_WORLDCHAIN = 45;
4948
uint16 constant CHAIN_ID_INK = 46;
5049
uint16 constant CHAIN_ID_HYPER_E_V_M = 47;
5150
uint16 constant CHAIN_ID_MONAD = 48;
51+
uint16 constant CHAIN_ID_MEZO = 50;
5252
uint16 constant CHAIN_ID_WORMCHAIN = 3104;
5353
uint16 constant CHAIN_ID_COSMOSHUB = 4000;
5454
uint16 constant CHAIN_ID_EVMOS = 4001;

src/testing/WormholeRelayerTest.sol

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ abstract contract WormholeRelayerTest is Test {
306306
name: "ethereum",
307307
url: vm.envOr(
308308
"ETHEREUM_RPC_URL",
309-
string("https://rpc.ankr.com/eth")
309+
string("https://ethereum-rpc.publicnode.com")
310310
),
311311
relayer: IWormholeRelayer(
312312
0x27428DD2d3DD32A4D7f7C497eAaa23130d894911
@@ -346,7 +346,7 @@ abstract contract WormholeRelayerTest is Test {
346346
name: "avalanche",
347347
url: vm.envOr(
348348
"AVALANCHE_RPC_URL",
349-
string("https://rpc.ankr.com/avalanche")
349+
string("https://avalanche-c-chain-rpc.publicnode.com")
350350
),
351351
relayer: IWormholeRelayer(
352352
0x27428DD2d3DD32A4D7f7C497eAaa23130d894911
@@ -368,7 +368,7 @@ abstract contract WormholeRelayerTest is Test {
368368
name: "fantom",
369369
url: vm.envOr(
370370
"FANTOM_RPC_URL",
371-
string("https://rpc.ankr.com/fantom")
371+
string("https://rpcapi.fantom.network")
372372
),
373373
relayer: IWormholeRelayer(
374374
0x27428DD2d3DD32A4D7f7C497eAaa23130d894911
@@ -455,7 +455,7 @@ abstract contract WormholeRelayerTest is Test {
455455
name: "moombeam",
456456
url: vm.envOr(
457457
"MOOMBEAM_RPC_URL",
458-
string("https://rpc.ankr.com/moonbeam")
458+
string("https://moonbeam-rpc.publicnode.com")
459459
),
460460
relayer: IWormholeRelayer(
461461
0x27428DD2d3DD32A4D7f7C497eAaa23130d894911
@@ -495,7 +495,7 @@ abstract contract WormholeRelayerTest is Test {
495495
name: "optimism",
496496
url: vm.envOr(
497497
"OPTIMISM_RPC_URL",
498-
string("https://rpc.ankr.com/optimism")
498+
string("https://mainnet.optimism.io")
499499
),
500500
relayer: IWormholeRelayer(
501501
0x27428DD2d3DD32A4D7f7C497eAaa23130d894911

0 commit comments

Comments
 (0)