Skip to content

Commit

Permalink
added testnet config
Browse files Browse the repository at this point in the history
  • Loading branch information
dan13ram committed Jun 28, 2024
1 parent 566eeea commit 7d0c42a
Show file tree
Hide file tree
Showing 10 changed files with 194 additions and 209 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,6 @@ e2e/
# docker files
docker/
!docker/set_eth_envs.sh

# secrets
secrets/
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,5 @@ credentials.json
# build
/wpokt-oracle

# docker
docker/docker-compose.yml

# secrets
secrets/
15 changes: 9 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
86 changes: 0 additions & 86 deletions defaults/config.local.one.yml

This file was deleted.

86 changes: 0 additions & 86 deletions defaults/config.local.two.yml

This file was deleted.

20 changes: 10 additions & 10 deletions defaults/config.local.three.yml → defaults/config.local.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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"
Expand All @@ -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"
Expand Down
86 changes: 86 additions & 0 deletions defaults/config.testnet.yml
Original file line number Diff line number Diff line change
@@ -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
Loading

0 comments on commit 7d0c42a

Please sign in to comment.