Fix/hway db driver (#1198)

* fix/hway-db-driver

* fix/hway-db-driver

* chore(scripts): add tx indexer and psql connection to test

* fix(scripts): make testnet setup more robust and configurable
This commit is contained in:
Prad Nukala
2024-12-19 11:22:44 +00:00
committed by GitHub
parent 36191d2bd4
commit 9d86dad38d
20 changed files with 439 additions and 374 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/bin/bash
set -e
# Ensure we're in the right directory
ROOT_DIR=$(git rev-parse --show-toplevel)
cd $ROOT_DIR
DOPPLER_TOKEN=$(skate get DOPPLER_NETWORK)
ACC0=$(doppler secrets get KEY0_NAME --plain)
ACC1=$(doppler secrets get KEY1_NAME --plain)
MNEM0=$(doppler secrets get KEY0_MNEMONIC --plain)
MNEM1=$(doppler secrets get KEY1_MNEMONIC --plain)
CHAIN_ID=$(doppler secrets get CHAIN_ID --plain)
TX_INDEX_INDEXER=$(doppler secrets get TX_INDEXER --plain)
TX_INDEX_PSQL_CONN=$(doppler secrets get TX_PSQL_CONN --plain)
# Run the node setup with all variables properly exported
KEY0_NAME=$ACC0 KEY0_MNEMONIC=$MNEM0 KEY1_NAME=$ACC1 KEY1_MNEMONIC=$MNEM1 CHAIN_ID=$CHAIN_ID TX_INDEX_INDEXER=$TX_INDEX_INDEXER TX_INDEX_PSQL_CONN=$TX_INDEX_PSQL_CONN sh scripts/test_node.sh