|
|
@@ -1,15 +1,19 @@
|
|
|
import { describe, expect, it } from "@jest/globals";
|
|
|
import { Connection, PublicKey } from "@solana/web3.js";
|
|
|
|
|
|
+const ci = !!process.env.CI;
|
|
|
+
|
|
|
// see devnet.md
|
|
|
-export const ETH_NODE_URL = "ws://localhost:8545";
|
|
|
+export const ETH_NODE_URL = ci ? "ws://eth-devnet:8545" : "ws://localhost:8545";
|
|
|
export const ETH_PRIVATE_KEY =
|
|
|
"0x4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d";
|
|
|
export const ETH_CORE_BRIDGE_ADDRESS =
|
|
|
"0xC89Ce4735882C9F0f0FE26686c53074E09B0D550";
|
|
|
export const ETH_TOKEN_BRIDGE_ADDRESS =
|
|
|
"0x0290FB167208Af455bB137780163b7B7a9a10C16";
|
|
|
-export const SOLANA_HOST = "http://localhost:8899";
|
|
|
+export const SOLANA_HOST = ci
|
|
|
+ ? "http://solana-devnet:8899"
|
|
|
+ : "http://localhost:8899";
|
|
|
export const SOLANA_PRIVATE_KEY = new Uint8Array([
|
|
|
14, 173, 153, 4, 176, 224, 201, 111, 32, 237, 183, 185, 159, 247, 22, 161, 89,
|
|
|
84, 215, 209, 212, 137, 10, 92, 157, 49, 29, 192, 101, 164, 152, 70, 87, 65,
|
|
|
@@ -20,9 +24,13 @@ export const SOLANA_CORE_BRIDGE_ADDRESS =
|
|
|
"Bridge1p5gheXUvJ6jGWGeCsgPKgnE3YgdGKRVCMY9o";
|
|
|
export const SOLANA_TOKEN_BRIDGE_ADDRESS =
|
|
|
"B6RHG3mfcckmrYN1UhmJzyS1XX3fZKbkeUcpJe9Sy3FE";
|
|
|
-export const TERRA_NODE_URL = "http://localhost:1317";
|
|
|
+export const TERRA_NODE_URL = ci
|
|
|
+ ? "http://terra-terrad:1317"
|
|
|
+ : "http://localhost:1317";
|
|
|
export const TERRA_CHAIN_ID = "localterra";
|
|
|
-export const TERRA_GAS_PRICES_URL = "http://localhost:3060/v1/txs/gas_prices";
|
|
|
+export const TERRA_GAS_PRICES_URL = ci
|
|
|
+ ? "http://terra-fcd:3060/v1/txs/gas_prices"
|
|
|
+ : "http://localhost:3060/v1/txs/gas_prices";
|
|
|
export const TERRA_CORE_BRIDGE_ADDRESS =
|
|
|
"terra18vd8fpwxzck93qlwghaj6arh4p7c5n896xzem5";
|
|
|
export const TERRA_TOKEN_BRIDGE_ADDRESS =
|
|
|
@@ -31,7 +39,9 @@ export const TERRA_PRIVATE_KEY =
|
|
|
"notice oak worry limit wrap speak medal online prefer cluster roof addict wrist behave treat actual wasp year salad speed social layer crew genius";
|
|
|
export const TEST_ERC20 = "0x2D8BE6BF0baA74e0A907016679CaE9190e80dD0A";
|
|
|
export const TEST_SOLANA_TOKEN = "2WDq7wSs9zYrpx2kbHDA4RUTRch2CCTP6ZWaH4GNfnQQ";
|
|
|
-export const WORMHOLE_RPC_HOSTS = ["http://localhost:7071"];
|
|
|
+export const WORMHOLE_RPC_HOSTS = ci
|
|
|
+ ? ["http://guardian:7071"]
|
|
|
+ : ["http://localhost:7071"];
|
|
|
|
|
|
describe("consts should exist", () => {
|
|
|
it("has Solana test token", () => {
|