-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
785 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 added
BIN
+437 KB
integration_tests/artifacts/contracts/cwd_subdao_pre_propose_single.wasm
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Large diffs are not rendered by default.
Oops, something went wrong.