Skip to content

Commit

Permalink
fix: one more
Browse files Browse the repository at this point in the history
  • Loading branch information
ratik committed Dec 12, 2023
1 parent 3acfc28 commit accfa5c
Show file tree
Hide file tree
Showing 28 changed files with 785 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.idea/
target/
artifacts/
**/schema/
**/schema/
/artifacts/
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
22 changes: 22 additions & 0 deletions integration_tests/artifacts/scripts/init-gaia.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

declare -A ADDR_TO_NAME_MAP

sleep 10 #trying to deal with runtime error: invalid memory address or nil pointer dereference: panic

while IFS=" " read -r ADDR NAME; do
TRIMMED_ADDR=${ADDR:0:-6}
ADDR_TO_NAME_MAP["$TRIMMED_ADDR"]=$NAME
done < <(gaiad keys list --keyring-backend=test --home=/opt --output json | jq -r '.[] | .address + " " + .name')

gaiad query staking validators --output json | jq -r '.validators | .[] | .operator_address' | while read -r VAL_ADDRESS; do
KEY_ADDRESS="cosmos${VAL_ADDRESS:13:-6}"

KEY_NAME=${ADDR_TO_NAME_MAP["$KEY_ADDRESS"]}

if [ -n "$KEY_NAME" ]; then
gaiad tx staking validator-bond "$VAL_ADDRESS" --from "$KEY_NAME" --chain-id testgaia --home=/opt --keyring-backend=test --broadcast-mode=block -y >> /opt/gaiad.log 2>&1
else
echo "No key name found for address: $KEY_ADDRESS"
fi
done
22 changes: 22 additions & 0 deletions integration_tests/artifacts/scripts/init-lsm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

declare -A ADDR_TO_NAME_MAP

sleep 10 #trying to deal with runtime error: invalid memory address or nil pointer dereference: panic

while IFS=" " read -r ADDR NAME; do
TRIMMED_ADDR=${ADDR:0:-6}
ADDR_TO_NAME_MAP["$TRIMMED_ADDR"]=$NAME
done < <(liquidstakingd keys list --keyring-backend=test --home=/opt --output json | jq -r '.[] | .address + " " + .name')

liquidstakingd query staking validators --output json | jq -r '.validators | .[] | .operator_address' | while read -r VAL_ADDRESS; do
KEY_ADDRESS="cosmos${VAL_ADDRESS:13:-6}"

KEY_NAME=${ADDR_TO_NAME_MAP["$KEY_ADDRESS"]}

if [ -n "$KEY_NAME" ]; then
liquidstakingd tx staking validator-bond "$VAL_ADDRESS" --from "$KEY_NAME" --chain-id testlsm --home=/opt --keyring-backend=test --broadcast-mode=block -y >> /opt/liquidstakingd.log 2>&1
else
echo "No key name found for address: $KEY_ADDRESS"
fi
done
739 changes: 739 additions & 0 deletions integration_tests/artifacts/scripts/init-neutrond.sh

Large diffs are not rendered by default.

0 comments on commit accfa5c

Please sign in to comment.