Skip to content

Commit

Permalink
V17 testing scripts (#1064)
Browse files Browse the repository at this point in the history
Co-authored-by: sampocs <[email protected]>
Co-authored-by: sampocs <[email protected]>
  • Loading branch information
3 people authored Jan 11, 2024
1 parent 9914611 commit 1d161c6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
6 changes: 0 additions & 6 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,6 @@ func (app *StrideApp) setupUpgradeHandlers(appOpts servertypes.AppOptions) {
Added: []string{packetforwardtypes.ModuleName},
}
}
// TODO: uncomment when v17 upgrade is ready
// case "v17":
// storeUpgrades = &storetypes.StoreUpgrades{
// // Add PFM store key
// Added: []string{packetforwardtypes.ModuleName},
// }

if storeUpgrades != nil {
app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, storeUpgrades))
Expand Down
2 changes: 1 addition & 1 deletion dockernet/scripts/community-pool-staking/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ make start-docker
```
* Start relayers between dydx, noble and osmosis
```bash
bash dockernet/scripts/community-pool-staking/start_relayers.sh
bash dockernet/scripts/community-pool-staking/setup_relayers.sh
```
* Create a pool on osmosis to allow trades between dydx and noble
```bash
Expand Down
11 changes: 5 additions & 6 deletions dockernet/scripts/community-pool-staking/claim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,20 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
source ${SCRIPT_DIR}/../../config.sh

HOST_CHAIN=$REWARD_CONVERTER_HOST_ZONE
HOST_MAIN_CMD=$(GET_VAR_VALUE ${HOST_CHAIN}_MAIN_CMD)
HOST_DENOM=$(GET_VAR_VALUE ${HOST_CHAIN}_DENOM)
HOST_CHAIN_ID=$(GET_VAR_VALUE ${HOST_CHAIN}_CHAIN_ID)
HOST_MAIN_CMD=$(GET_VAR_VALUE ${HOST_CHAIN}_MAIN_CMD)
HOST_DENOM=$(GET_VAR_VALUE ${HOST_CHAIN}_DENOM)

community_pool_return_address=$(GET_ICA_ADDR $HOST_CHAIN community_pool_return)
community_pool_holding_address=$(GET_HOST_ZONE_FIELD $HOST_CHAIN community_pool_redeem_holding_address)

# check balances before claiming redeemed stake
echo ">>> Balances before claim..."
$HOST_MAIN_CMD q bank balances $community_pool_return_address

#claim stake
echo -e "\n>>> Claiming redeemed tokens..."
epoch=$($STRIDE_MAIN_CMD q records list-user-redemption-record | grep -B 3 -m 1 "receiver: $community_pool_return_address" | grep "epoch_number"| NUMBERS_ONLY)

$STRIDE_MAIN_CMD tx stakeibc claim-undelegated-tokens $HOST_CHAIN_ID $epoch $community_pool_holding_address --from ${STRIDE_VAL_PREFIX}1 -y | TRIM_TX
epoch=$($STRIDE_MAIN_CMD q records list-user-redemption-record | grep -B 5 -m 1 "receiver: $community_pool_return_address" | grep "epoch_number"| NUMBERS_ONLY)
$STRIDE_MAIN_CMD tx stakeibc claim-undelegated-tokens $HOST_CHAIN_ID $epoch $community_pool_return_address --from ${STRIDE_VAL_PREFIX}1 -y | TRIM_TX
sleep 5

# check balances after claiming redeemed stake
Expand Down

0 comments on commit 1d161c6

Please sign in to comment.