From 7d0c42a674761ab75757f812cb4fdb6deaf7ee11 Mon Sep 17 00:00:00 2001 From: dan13ram Date: Fri, 28 Jun 2024 12:26:15 +0530 Subject: [PATCH] added testnet config --- .dockerignore | 3 + .gitignore | 3 - Makefile | 15 ++-- defaults/config.local.one.yml | 86 ------------------- defaults/config.local.two.yml | 86 ------------------- ...onfig.local.three.yml => config.local.yml} | 20 ++--- defaults/config.testnet.yml | 86 +++++++++++++++++++ docker/docker-compose.yml | 72 ++++++++++++++++ e2e/docker-compose.yml | 16 ++-- e2e/src/util/config.ts | 16 ++-- 10 files changed, 194 insertions(+), 209 deletions(-) delete mode 100644 defaults/config.local.one.yml delete mode 100644 defaults/config.local.two.yml rename defaults/{config.local.three.yml => config.local.yml} (76%) create mode 100644 defaults/config.testnet.yml create mode 100644 docker/docker-compose.yml diff --git a/.dockerignore b/.dockerignore index d655ef4..97dfdbc 100644 --- a/.dockerignore +++ b/.dockerignore @@ -54,3 +54,6 @@ e2e/ # docker files docker/ !docker/set_eth_envs.sh + +# secrets +secrets/ diff --git a/.gitignore b/.gitignore index a8eff4a..ffa2a1c 100644 --- a/.gitignore +++ b/.gitignore @@ -30,8 +30,5 @@ credentials.json # build /wpokt-oracle -# docker -docker/docker-compose.yml - # secrets secrets/ diff --git a/Makefile b/Makefile index fa67945..436f746 100644 --- a/Makefile +++ b/Makefile @@ -6,13 +6,13 @@ all: clean install test build dev : dev_one .PHONY: dev_one -dev_one:; go run . --yaml ./defaults/config.local.one.yml +dev_one:; MNEMONIC="infant apart enroll relief kangaroo patch awesome wagon trap feature armor approve" go run . --yaml ./defaults/config.local.yml .PHONY: dev_two -dev_two:; go run . --yaml ./defaults/config.local.two.yml +dev_two:; MNEMONIC="shy smile praise educate custom fashion gun enjoy zero powder garden second" go run . --yaml ./defaults/config.local.yml .PHONY: dev_three -dev_three:; go run . --yaml ./defaults/config.local.three.yml +dev_three:; MNEMONIC="wink giant track dwarf visa feed visual drip play grant royal noise" go run . --yaml ./defaults/config.local.yml .PHONY: clean clean: clean_tmp_data @@ -42,17 +42,20 @@ build :; go build -o wpokt-oracle . .PHONY: docker_build docker_build :; docker buildx build . -t dan13ram/wpokt-oracle:v0.0.1 --file ./docker/Dockerfile +.PHONY: docker_push +docker_push :; docker push dan13ram/wpokt-oracle:v0.0.1 + .PHONY: docker_dev docker_dev : docker_one .PHONY: docker_one -docker_one :; YAML_FILE=/app/defaults/config.local.one.yml docker compose -f docker/docker-compose.yml up --force-recreate +docker_one :; MNEMONIC="infant apart enroll relief kangaroo patch awesome wagon trap feature armor approve" YAML_FILE=/app/defaults/config.local.yml docker compose -f docker/docker-compose.yml up --force-recreate .PHONY: docker_two -docker_two :; YAML_FILE=/app/defaults/config.local.two.yml docker compose -f docker/docker-compose.yml up --force-recreate +docker_two :; MNEMONIC="shy smile praise educate custom fashion gun enjoy zero powder garden second" YAML_FILE=/app/defaults/config.local.yml docker compose -f docker/docker-compose.yml up --force-recreate .PHONY: docker_three -docker_three :; YAML_FILE=/app/defaults/config.local.three.yml docker compose -f docker/docker-compose.yml up --force-recreate +docker_three :; MNEMONIC="wink giant track dwarf visa feed visual drip play grant royal noise" YAML_FILE=/app/defaults/config.local.yml docker compose -f docker/docker-compose.yml up --force-recreate .PHONY: localnet_up localnet_up:; docker compose -f e2e/docker-compose.yml up --force-recreate diff --git a/defaults/config.local.one.yml b/defaults/config.local.one.yml deleted file mode 100644 index d92f353..0000000 --- a/defaults/config.local.one.yml +++ /dev/null @@ -1,86 +0,0 @@ -mnemonic: "infant apart enroll relief kangaroo patch awesome wagon trap feature armor approve" -health_check: - interval_ms: 1000 - read_last_health: false -logger: - level: "debug" - format: "json" -mongodb: - uri: "mongodb://127.0.0.1:27017/test?retryWrites=true&w=majority" - database: "test" - timeout_ms: 10000 -ethereum_networks: - - start_block_height: 1 - confirmations: 6 - rpc_url: "http://127.0.0.1:38545" - timeout_ms: 5000 - chain_id: 38545 - chain_name: "anvil-one" - mailbox_address: "0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9" - warp_ism_address: "0x0165878A594ca255338adfa4d48449f69242Eb8F" - omni_token_address: "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853" - mint_controller_address: "0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6" - oracle_addresses: - - "0x0E90A32Df6f6143F1A91c25d9552dCbc789C34Eb" - - "0x958d1F55E14Cba24a077b9634F16f83565fc9411" - - "0x4c672Edd2ec8eac8f0F1709f33de9A2E786e6912" - message_monitor: - enabled: true - interval_ms: 1000 - message_signer: - enabled: true - interval_ms: 1000 - message_relayer: - enabled: true - interval_ms: 1000 - - start_block_height: 1 - confirmations: 6 - rpc_url: "http://127.0.0.1:38546" - timeout_ms: 5000 - chain_id: 38546 - chain_name: "anvil-two" - mailbox_address: "0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9" - warp_ism_address: "0x0165878A594ca255338adfa4d48449f69242Eb8F" - omni_token_address: "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853" - mint_controller_address: "0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6" - oracle_addresses: - - "0x0E90A32Df6f6143F1A91c25d9552dCbc789C34Eb" - - "0x958d1F55E14Cba24a077b9634F16f83565fc9411" - - "0x4c672Edd2ec8eac8f0F1709f33de9A2E786e6912" - message_monitor: - enabled: true - interval_ms: 1000 - message_signer: - enabled: true - interval_ms: 1000 - message_relayer: - enabled: true - interval_ms: 1000 -cosmos_network: - start_block_height: 1 - confirmations: 3 - rpc_url: "http://127.0.0.1:26657" - grpc_enabled: false - grpc_host: '127.0.0.1' - grpc_port: 9090 - timeout_ms: 5000 - chain_id: "poktroll" - chain_name: "pokt_localnet" - tx_fee: 0 - bech32_prefix: "pokt" - coin_denom: "upokt" - multisig_address: "pokt13tsl3aglfyzf02n7x28x2ajzw94muu6y57k2ar" - multisig_public_keys: - - "026892de2ec7fdf3125bc1bfd2ff2590d2c9ba756f98a05e9e843ac4d2a1acd4d9" - - "02faaaf0f385bb17381f36dcd86ab2486e8ff8d93440436496665ac007953076c2" - - "02cae233806460db75a941a269490ca5165a620b43241edb8bc72e169f4143a6df" - multisig_threshold: 2 - message_monitor: - enabled: true - interval_ms: 1000 - message_signer: - enabled: true - interval_ms: 1000 - message_relayer: - enabled: true - interval_ms: 1000 diff --git a/defaults/config.local.two.yml b/defaults/config.local.two.yml deleted file mode 100644 index 432c9da..0000000 --- a/defaults/config.local.two.yml +++ /dev/null @@ -1,86 +0,0 @@ -mnemonic: "shy smile praise educate custom fashion gun enjoy zero powder garden second" -health_check: - interval_ms: 1000 - read_last_health: false -logger: - level: "debug" - format: "json" -mongodb: - uri: "mongodb://127.0.0.1:27017/test?retryWrites=true&w=majority" - database: "test" - timeout_ms: 10000 -ethereum_networks: - - start_block_height: 1 - confirmations: 6 - rpc_url: "http://127.0.0.1:38545" - timeout_ms: 5000 - chain_id: 38545 - chain_name: "anvil-one" - mailbox_address: "0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9" - warp_ism_address: "0x0165878A594ca255338adfa4d48449f69242Eb8F" - omni_token_address: "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853" - mint_controller_address: "0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6" - oracle_addresses: - - "0x0E90A32Df6f6143F1A91c25d9552dCbc789C34Eb" - - "0x958d1F55E14Cba24a077b9634F16f83565fc9411" - - "0x4c672Edd2ec8eac8f0F1709f33de9A2E786e6912" - message_monitor: - enabled: true - interval_ms: 1000 - message_signer: - enabled: true - interval_ms: 1000 - message_relayer: - enabled: true - interval_ms: 1000 - - start_block_height: 1 - confirmations: 6 - rpc_url: "http://127.0.0.1:38546" - timeout_ms: 5000 - chain_id: 38546 - chain_name: "anvil-two" - mailbox_address: "0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9" - warp_ism_address: "0x0165878A594ca255338adfa4d48449f69242Eb8F" - omni_token_address: "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853" - mint_controller_address: "0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6" - oracle_addresses: - - "0x0E90A32Df6f6143F1A91c25d9552dCbc789C34Eb" - - "0x958d1F55E14Cba24a077b9634F16f83565fc9411" - - "0x4c672Edd2ec8eac8f0F1709f33de9A2E786e6912" - message_monitor: - enabled: true - interval_ms: 1000 - message_signer: - enabled: true - interval_ms: 1000 - message_relayer: - enabled: true - interval_ms: 1000 -cosmos_network: - start_block_height: 1 - confirmations: 3 - rpc_url: "http://127.0.0.1:26657" - grpc_enabled: true - grpc_host: '127.0.0.1' - grpc_port: 9090 - timeout_ms: 5000 - chain_id: "poktroll" - chain_name: "pokt_localnet" - tx_fee: 0 - bech32_prefix: "pokt" - coin_denom: "upokt" - multisig_address: "pokt13tsl3aglfyzf02n7x28x2ajzw94muu6y57k2ar" - multisig_public_keys: - - "026892de2ec7fdf3125bc1bfd2ff2590d2c9ba756f98a05e9e843ac4d2a1acd4d9" - - "02faaaf0f385bb17381f36dcd86ab2486e8ff8d93440436496665ac007953076c2" - - "02cae233806460db75a941a269490ca5165a620b43241edb8bc72e169f4143a6df" - multisig_threshold: 2 - message_monitor: - enabled: true - interval_ms: 1000 - message_signer: - enabled: true - interval_ms: 1000 - message_relayer: - enabled: true - interval_ms: 1000 diff --git a/defaults/config.local.three.yml b/defaults/config.local.yml similarity index 76% rename from defaults/config.local.three.yml rename to defaults/config.local.yml index 70fbddb..6d2aed8 100644 --- a/defaults/config.local.three.yml +++ b/defaults/config.local.yml @@ -1,4 +1,4 @@ -mnemonic: "wink giant track dwarf visa feed visual drip play grant royal noise" +mnemonic: "" health_check: interval_ms: 1000 read_last_health: false @@ -7,7 +7,7 @@ logger: format: "json" mongodb: uri: "mongodb://127.0.0.1:27017/test?retryWrites=true&w=majority" - database: "test" + database: "bridge" timeout_ms: 10000 ethereum_networks: - start_block_height: 1 @@ -16,10 +16,10 @@ ethereum_networks: timeout_ms: 5000 chain_id: 38545 chain_name: "anvil-one" - mailbox_address: "0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9" - warp_ism_address: "0x0165878A594ca255338adfa4d48449f69242Eb8F" - omni_token_address: "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853" - mint_controller_address: "0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6" + mailbox_address: "0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0" + warp_ism_address: "0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9" + omni_token_address: "0x5FC8d32690cc91D4c39d9d3abcBD16989F875707" + mint_controller_address: "0x0165878A594ca255338adfa4d48449f69242Eb8F" oracle_addresses: - "0x0E90A32Df6f6143F1A91c25d9552dCbc789C34Eb" - "0x958d1F55E14Cba24a077b9634F16f83565fc9411" @@ -39,10 +39,10 @@ ethereum_networks: timeout_ms: 5000 chain_id: 38546 chain_name: "anvil-two" - mailbox_address: "0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9" - warp_ism_address: "0x0165878A594ca255338adfa4d48449f69242Eb8F" - omni_token_address: "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853" - mint_controller_address: "0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6" + mailbox_address: "0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0" + warp_ism_address: "0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9" + omni_token_address: "0x5FC8d32690cc91D4c39d9d3abcBD16989F875707" + mint_controller_address: "0x0165878A594ca255338adfa4d48449f69242Eb8F" oracle_addresses: - "0x0E90A32Df6f6143F1A91c25d9552dCbc789C34Eb" - "0x958d1F55E14Cba24a077b9634F16f83565fc9411" diff --git a/defaults/config.testnet.yml b/defaults/config.testnet.yml new file mode 100644 index 0000000..1511155 --- /dev/null +++ b/defaults/config.testnet.yml @@ -0,0 +1,86 @@ +mnemonic: "" +health_check: + interval_ms: 30000 + read_last_health: false +logger: + level: "info" + format: "json" +mongodb: + uri: "" + database: "bridge" + timeout_ms: 30000 +ethereum_networks: + - start_block_height: 6202882 + confirmations: 6 + rpc_url: "" + timeout_ms: 30000 + chain_id: 11155111 + chain_name: "sepolia" + mailbox_address: "0x7039cedcff94939f9E0ab6E2c8e696788E3bC892" + warp_ism_address: "0xFFC2b08B0601e629f3b3F13ABD62667F31fb56eb" + omni_token_address: "0x87C4D1570e89eA78B0491714681D76ACeF28E9f5" + mint_controller_address: "0x4490b9a48696Db8B0F974b1BCC59397c67997Ff2" + oracle_addresses: + - "0xf838e8bc158bB2A2142e899c048627e28cEDa9c0" + - "0x124A773FFE06822E6Aa0eBC13cdBce8709916234" + - "0x11D95B5933542f33F8476Eb2a4A9aDD47DF18BF0" + message_monitor: + enabled: true + interval_ms: 30000 + message_signer: + enabled: true + interval_ms: 30000 + message_relayer: + enabled: true + interval_ms: 30000 + - start_block_height: 1822758 + confirmations: 6 + rpc_url: "" + timeout_ms: 30000 + chain_id: 17000 + chain_name: "holesky" + mailbox_address: "0x7039cedcff94939f9E0ab6E2c8e696788E3bC892" + warp_ism_address: "0xFFC2b08B0601e629f3b3F13ABD62667F31fb56eb" + omni_token_address: "0x87C4D1570e89eA78B0491714681D76ACeF28E9f5" + mint_controller_address: "0x4490b9a48696Db8B0F974b1BCC59397c67997Ff2" + oracle_addresses: + - "0xf838e8bc158bB2A2142e899c048627e28cEDa9c0" + - "0x124A773FFE06822E6Aa0eBC13cdBce8709916234" + - "0x11D95B5933542f33F8476Eb2a4A9aDD47DF18BF0" + message_monitor: + enabled: true + interval_ms: 30000 + message_signer: + enabled: true + interval_ms: 30000 + message_relayer: + enabled: true + interval_ms: 30000 +cosmos_network: + start_block_height: 59705 + confirmations: 1 + rpc_url: "" + grpc_enabled: false + grpc_host: '' + grpc_port: 9090 + timeout_ms: 30000 + chain_id: "poktroll" + chain_name: "pokt_shannon_testnet" + tx_fee: 0 + bech32_prefix: "pokt" + coin_denom: "upokt" + multisig_address: "pokt1msx54e7a8x6xyhc36a6denw8tq0mnc7glzdfj7" + multisig_public_keys: + - "0259ee1331a4516f348ecbf03fa23653492e0230bbef4d1f309922366158d317cb" + - "03db75b9c8219c98e4ab29429b8c27043b1ef09bd78f230377823fb24314efd682" + - "02829550d134aae863792bc0f0631b387026bb046424ec1ab21b136c64af63c920" + multisig_threshold: 2 + message_monitor: + enabled: true + interval_ms: 30000 + message_signer: + enabled: true + interval_ms: 30000 + message_relayer: + enabled: true + interval_ms: 30000 diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml new file mode 100644 index 0000000..b442ba2 --- /dev/null +++ b/docker/docker-compose.yml @@ -0,0 +1,72 @@ +services: + oracle-service: + image: dan13ram/wpokt-oracle:v0.0.1 + entrypoint: ["/bin/sh", "-c", "/app/set_eth_envs.sh && /bin/oracle ${YAML_FILE:+--yaml ${YAML_FILE}}"] + network_mode: host + environment: + YAML_FILE: ${YAML_FILE} + MONGODB_URI: ${MONGODB_URI} + MONGODB_DATABASE: ${MONGODB_DATABASE} + MONGODB_TIMEOUT_SECS: ${MONGODB_TIMEOUT_SECS} + HEALTH_CHECK_INTERVAL_SECS: ${HEALTH_CHECK_INTERVAL_SECS} + HEALTH_CHECK_READ_LAST_HEALTH: ${HEALTH_CHECK_READ_LAST_HEALTH} + LOGGER_LEVEL: ${LOGGER_LEVEL} + LOGGER_FORMAT: ${LOGGER_FORMAT} + MNEMONIC: ${MNEMONIC} + COSMOS_NETWORK_START_BLOCK_HEIGHT: ${COSMOS_NETWORK_START_BLOCK_HEIGHT} + COSMOS_NETWORK_CONFIRMATIONS: ${COSMOS_NETWORK_CONFIRMATIONS} + COSMOS_NETWORK_RPC_URL: ${COSMOS_NETWORK_RPC_URL} + COSMOS_NETWORK_GRPC_ENABLED: ${COSMOS_NETWORK_GRPC_ENABLED} + COSMOS_NETWORK_GRPC_HOST: ${COSMOS_NETWORK_GRPC_HOST} + COSMOS_NETWORK_GRPC_PORT: ${COSMOS_NETWORK_GRPC_PORT} + COSMOS_NETWORK_TIMEOUT_MS: ${COSMOS_NETWORK_TIMEOUT_MS} + COSMOS_NETWORK_CHAIN_ID: ${COSMOS_NETWORK_CHAIN_ID} + COSMOS_NETWORK_CHAIN_NAME: ${COSMOS_NETWORK_CHAIN_NAME} + COSMOS_NETWORK_TX_FEE: ${COSMOS_NETWORK_TX_FEE} + COSMOS_NETWORK_BECH32_PREFIX: ${COSMOS_NETWORK_BECH32_PREFIX} + COSMOS_NETWORK_COIN_DENOM: ${COSMOS_NETWORK_COIN_DENOM} + COSMOS_NETWORK_MULTISIG_ADDRESS: ${COSMOS_NETWORK_MULTISIG_ADDRESS} + COSMOS_NETWORK_MULTISIG_PUBLIC_KEYS: ${COSMOS_NETWORK_MULTISIG_PUBLIC_KEYS} + COSMOS_NETWORK_MULTISIG_THRESHOLD: ${COSMOS_NETWORK_MULTISIG_THRESHOLD} + COSMOS_NETWORK_MESSAGE_MONITOR_ENABLED: ${COSMOS_NETWORK_MESSAGE_MONITOR_ENABLED} + COSMOS_NETWORK_MESSAGE_MONITOR_INTERVAL_MS: ${COSMOS_NETWORK_MESSAGE_MONITOR_INTERVAL_MS} + COSMOS_NETWORK_MESSAGE_SIGNER_ENABLED: ${COSMOS_NETWORK_MESSAGE_SIGNER_ENABLED} + COSMOS_NETWORK_MESSAGE_SIGNER_INTERVAL_MS: ${COSMOS_NETWORK_MESSAGE_SIGNER_INTERVAL_MS} + COSMOS_NETWORK_MESSAGE_RELAYER_ENABLED: ${COSMOS_NETWORK_MESSAGE_RELAYER_ENABLED} + COSMOS_NETWORK_MESSAGE_RELAYER_INTERVAL_MS: ${COSMOS_NETWORK_MESSAGE_RELAYER_INTERVAL_MS} + NUM_ETHEREUM_NETWORKS: ${NUM_ETHEREUM_NETWORKS} + ETHEREUM_NETWORKS_0_START_BLOCK_HEIGHT: ${ETHEREUM_NETWORKS_0_START_BLOCK_HEIGHT} + ETHEREUM_NETWORKS_0_CONFIRMATIONS: ${ETHEREUM_NETWORKS_0_CONFIRMATIONS} + ETHEREUM_NETWORKS_0_RPC_URL: ${ETHEREUM_NETWORKS_0_RPC_URL} + ETHEREUM_NETWORKS_0_TIMEOUT_MS: ${ETHEREUM_NETWORKS_0_TIMEOUT_MS} + ETHEREUM_NETWORKS_0_CHAIN_ID: ${ETHEREUM_NETWORKS_0_CHAIN_ID} + ETHEREUM_NETWORKS_0_CHAIN_NAME: ${ETHEREUM_NETWORKS_0_CHAIN_NAME} + ETHEREUM_NETWORKS_0_MAILBOX_ADDRESS: ${ETHEREUM_NETWORKS_0_MAILBOX_ADDRESS} + ETHEREUM_NETWORKS_0_MINT_CONTROLLER_ADDRESS: ${ETHEREUM_NETWORKS_0_MINT_CONTROLLER_ADDRESS} + ETHEREUM_NETWORKS_0_OMNI_TOKEN_ADDRESS: ${ETHEREUM_NETWORKS_0_OMNI_TOKEN_ADDRESS} + ETHEREUM_NETWORKS_0_WARP_ISM_ADDRESS: ${ETHEREUM_NETWORKS_0_WARP_ISM_ADDRESS} + ETHEREUM_NETWORKS_0_ORACLE_ADDRESSES: ${ETHEREUM_NETWORKS_0_ORACLE_ADDRESSES} + ETHEREUM_NETWORKS_0_MESSAGE_MONITOR_ENABLED: ${ETHEREUM_NETWORKS_0_MESSAGE_MONITOR_ENABLED} + ETHEREUM_NETWORKS_0_MESSAGE_MONITOR_INTERVAL_MS: ${ETHEREUM_NETWORKS_0_MESSAGE_MONITOR_INTERVAL_MS} + ETHEREUM_NETWORKS_0_MESSAGE_SIGNER_ENABLED: ${ETHEREUM_NETWORKS_0_MESSAGE_SIGNER_ENABLED} + ETHEREUM_NETWORKS_0_MESSAGE_SIGNER_INTERVAL_MS: ${ETHEREUM_NETWORKS_0_MESSAGE_SIGNER_INTERVAL_MS} + ETHEREUM_NETWORKS_0_MESSAGE_RELAYER_ENABLED: ${ETHEREUM_NETWORKS_0_MESSAGE_RELAYER_ENABLED} + ETHEREUM_NETWORKS_0_MESSAGE_RELAYER_INTERVAL_MS: ${ETHEREUM_NETWORKS_0_MESSAGE_RELAYER_INTERVAL_MS} + ETHEREUM_NETWORKS_1_START_BLOCK_HEIGHT: ${ETHEREUM_NETWORKS_1_START_BLOCK_HEIGHT} + ETHEREUM_NETWORKS_1_CONFIRMATIONS: ${ETHEREUM_NETWORKS_1_CONFIRMATIONS} + ETHEREUM_NETWORKS_1_RPC_URL: ${ETHEREUM_NETWORKS_1_RPC_URL} + ETHEREUM_NETWORKS_1_TIMEOUT_MS: ${ETHEREUM_NETWORKS_1_TIMEOUT_MS} + ETHEREUM_NETWORKS_1_CHAIN_ID: ${ETHEREUM_NETWORKS_1_CHAIN_ID} + ETHEREUM_NETWORKS_1_CHAIN_NAME: ${ETHEREUM_NETWORKS_1_CHAIN_NAME} + ETHEREUM_NETWORKS_1_MAILBOX_ADDRESS: ${ETHEREUM_NETWORKS_1_MAILBOX_ADDRESS} + ETHEREUM_NETWORKS_1_MINT_CONTROLLER_ADDRESS: ${ETHEREUM_NETWORKS_1_MINT_CONTROLLER_ADDRESS} + ETHEREUM_NETWORKS_1_OMNI_TOKEN_ADDRESS: ${ETHEREUM_NETWORKS_1_OMNI_TOKEN_ADDRESS} + ETHEREUM_NETWORKS_1_WARP_ISM_ADDRESS: ${ETHEREUM_NETWORKS_1_WARP_ISM_ADDRESS} + ETHEREUM_NETWORKS_1_ORACLE_ADDRESSES: ${ETHEREUM_NETWORKS_1_ORACLE_ADDRESSES} + ETHEREUM_NETWORKS_1_MESSAGE_MONITOR_ENABLED: ${ETHEREUM_NETWORKS_1_MESSAGE_MONITOR_ENABLED} + ETHEREUM_NETWORKS_1_MESSAGE_MONITOR_INTERVAL_MS: ${ETHEREUM_NETWORKS_1_MESSAGE_MONITOR_INTERVAL_MS} + ETHEREUM_NETWORKS_1_MESSAGE_SIGNER_ENABLED: ${ETHEREUM_NETWORKS_1_MESSAGE_SIGNER_ENABLED} + ETHEREUM_NETWORKS_1_MESSAGE_SIGNER_INTERVAL_MS: ${ETHEREUM_NETWORKS_1_MESSAGE_SIGNER_INTERVAL_MS} + ETHEREUM_NETWORKS_1_MESSAGE_RELAYER_ENABLED: ${ETHEREUM_NETWORKS_1_MESSAGE_RELAYER_ENABLED} + ETHEREUM_NETWORKS_1_MESSAGE_RELAYER_INTERVAL_MS: ${ETHEREUM_NETWORKS_1_MESSAGE_RELAYER_INTERVAL_MS} + diff --git a/e2e/docker-compose.yml b/e2e/docker-compose.yml index 153a5b8..f1c2327 100644 --- a/e2e/docker-compose.yml +++ b/e2e/docker-compose.yml @@ -7,8 +7,6 @@ services: environment: PORT: "38545" CHAIN_ID: "38545" - ports: - - "38545:38545" expose: - "38545" @@ -18,42 +16,42 @@ services: environment: PORT: "38546" CHAIN_ID: "38546" - ports: - - "38546:38546" expose: - "38546" oracle-one: image: dan13ram/wpokt-oracle:v0.0.1 network_mode: host - entrypoint: ["/bin/sh", "-c", "sleep 30 && /app/set_eth_envs.sh && /bin/oracle --yaml /app/defaults/config.local.one.yml"] + entrypoint: ["/bin/sh", "-c", "sleep 30 && /app/set_eth_envs.sh && /bin/oracle --yaml /app/defaults/config.local.yml"] environment: LOGGER_LEVEL: info LOGGER_FORMAT: text + MNEMONIC: "infant apart enroll relief kangaroo patch awesome wagon trap feature armor approve" + COSMOS_NETWORK_GRPC_ENABLED: false oracle-two: image: dan13ram/wpokt-oracle:v0.0.1 network_mode: host - entrypoint: ["/bin/sh", "-c", "sleep 30 && /app/set_eth_envs.sh && /bin/oracle --yaml /app/defaults/config.local.two.yml"] + entrypoint: ["/bin/sh", "-c", "sleep 30 && /app/set_eth_envs.sh && /bin/oracle --yaml /app/defaults/config.local.yml"] environment: LOGGER_LEVEL: info LOGGER_FORMAT: text + MNEMONIC: "shy smile praise educate custom fashion gun enjoy zero powder garden second" oracle-three: image: dan13ram/wpokt-oracle:v0.0.1 network_mode: host - entrypoint: ["/bin/sh", "-c", "sleep 30 && /app/set_eth_envs.sh && /bin/oracle --yaml /app/defaults/config.local.three.yml"] + entrypoint: ["/bin/sh", "-c", "sleep 30 && /app/set_eth_envs.sh && /bin/oracle --yaml /app/defaults/config.local.yml"] environment: LOGGER_LEVEL: info LOGGER_FORMAT: text + MNEMONIC: "wink giant track dwarf visa feed visual drip play grant royal noise" mongodb: image: mongo network_mode: host volumes: - /tmp/data/oracle/mongodb:/data/db - ports: - - "27017:27017" expose: - "27017" command: mongod --quiet --logpath /dev/null diff --git a/e2e/src/util/config.ts b/e2e/src/util/config.ts index 76adb42..1d9ba2a 100644 --- a/e2e/src/util/config.ts +++ b/e2e/src/util/config.ts @@ -2,17 +2,15 @@ import yaml from "js-yaml"; import fs from "fs"; const CONFIG_PATH = - process.env.CONFIG_PATH || "../defaults/config.local.one.yml"; + process.env.CONFIG_PATH || "../defaults/config.local.yml"; export const HyperlaneVersion = 3; -export const PausableIsm = "0x5FbDB2315678afecb367f032d93F642f64180aa3"; -export const Mailbox = "0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9"; -export const WarpISM = "0x0165878A594ca255338adfa4d48449f69242Eb8F"; -export const Token = "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853"; -export const MintController = "0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6"; -export const AccountFactory = "0x0DCd1Bf9A1b36cE34237eEaFef220932846BCD82"; -export const Multicall3 = "0x9A676e781A523b5d0C0e43731313A708CB607508"; - +export const Mailbox = "0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0"; +export const WarpISM = "0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9"; +export const Token = "0x5FC8d32690cc91D4c39d9d3abcBD16989F875707"; +export const MintController = "0x0165878A594ca255338adfa4d48449f69242Eb8F"; +export const AccountFactory = "0xB7f8BC63BbcaD18155201308C8f3540b07f84F5e"; +export const Multicall3 = "0xA51c1fc2f0D1a1b8494Ed1FE312d7C3a78Ed91C0"; export type Config = { mnemonic: string;