forked from cosmos/cosmos-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deps!: use cosmos-sdk v0.45.16-lsm-ics (cosmos#2643)
* deps: use cosmos-sdk v0.45.16-lsm-ics * deps&rebase: use cosmos-sdk v0.45.16-lsm-ics * add local testing script * fix: update test_helpers; use latest lsm/ics versions * chore: bump iqlusion:cosmos-sdk to latest * Jstr/lsm e2e tests (cosmos#2679) * lsm e2e test work - wip * Add validator bond functionality on lsm happy path * add tokenize share check on lsm test & redeemShare utility function * add bank send lsm tokens test * Add test for transfer reward ownership, and redeem shares * Add staking param query utility & LSM params update process on LSM e2e test * Add IBC transfer test on LSM share tokens & Resolve e2e tests by updating gas configs and result checker * resolve github action bot comments * bring all e2e test items back to enabled * Update tests/e2e/e2e_lsm_test.go Co-authored-by: sampocs <sam@stridelabs.co> * resolve comments * reenable tokenize share record module account balance check --------- Co-authored-by: jstr1121 <jun@stridelabs.co> Co-authored-by: jstr1121 <118450565+jstr1121@users.noreply.github.com> Co-authored-by: sampocs <sam@stridelabs.co> * Add lsm params to upgrade handler (cosmos#2686) * set LSM params in upgrade handler * added comments around constants * test: add migrateUBDEntries to upgrade handler — required adding exported.go to sdk * Revert "test: add migrateUBDEntries to upgrade handler — required adding exported.go to sdk" This reverts commit 7bd9727ce734e829ef54538485c3bbf327009345. --------- Co-authored-by: Riley Edmunds <riley@stridelabs.co> * chore: bump cosmos-sdk and ics to latest * Fix staking & distribution e2e test with LSM (cosmos#2687) * lsm e2e test work - wip * Add validator bond functionality on lsm happy path * add tokenize share check on lsm test & redeemShare utility function * add bank send lsm tokens test * Add test for transfer reward ownership, and redeem shares * Add staking param query utility & LSM params update process on LSM e2e test * Add IBC transfer test on LSM share tokens & Resolve e2e tests by updating gas configs and result checker * resolve github action bot comments * bring all e2e test items back to enabled * Update tests/e2e/e2e_lsm_test.go Co-authored-by: sampocs <sam@stridelabs.co> * resolve comments * reenable tokenize share record module account balance check * fix staking test affected by other test --------- Co-authored-by: jstr1121 <jun@stridelabs.co> Co-authored-by: jstr1121 <118450565+jstr1121@users.noreply.github.com> * chore: appease lint rules * docs: Add LSM docs (cosmos#2683) * docs: validator FAQ updated with LSM docs * docs: validator faq - remove min self delegation references * docs: delegator faq - add lsm docs * docs: address Marius review comments on docs * bump SDK to 0.45.16-ics-lsm-rc0 and ICS to 2.0.0-lsm-rc0 * add .changelog entries * use sdk.Dec * Update constants.go --------- Co-authored-by: riley-stride <104941670+riley-stride@users.noreply.github.com> Co-authored-by: jstr1121 <jun@stridelabs.co> Co-authored-by: jstr1121 <118450565+jstr1121@users.noreply.github.com> Co-authored-by: sampocs <sam@stridelabs.co> Co-authored-by: Riley Edmunds <riley@stridelabs.co> Co-authored-by: Marius Poke <marius.poke@posteo.de> Co-authored-by: Shawn <44221603+smarshall-spitzbart@users.noreply.github.com>
- Loading branch information
1 parent
027e0cc
commit 75f0714
Showing
23 changed files
with
621 additions
and
44 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- Add Liquid Staking Module (LSM) and initialize the LSM params: | ||
ValidatorBondFactor, ValidatorLiquidStakingCap, GlobalLiquidStakingCap | ||
([\#2643](https://github.com/cosmos/gaia/pull/2643)) |
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,3 @@ | ||
- Bump [interchain-security](https://github.com/cosmos/interchain-security) to | ||
[v2.0.0-lsm](https://github.com/cosmos/interchain-security/releases/tag/v2.0.0-lsm) | ||
([\#2643](https://github.com/cosmos/gaia/pull/2643)) |
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,3 @@ | ||
- Bump [cosmos-sdk](https://github.com/cosmos/cosmos-sdk) to | ||
[v0.45.16-ics-lsm](https://github.com/cosmos/ibc-go/releases/tag/v0.45.16-ics-lsm) | ||
([\#2643](https://github.com/cosmos/gaia/pull/2643)) |
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,3 @@ | ||
- Add Liquid Staking Module (LSM) and initialize the LSM params: | ||
ValidatorBondFactor, ValidatorLiquidStakingCap, GlobalLiquidStakingCap | ||
([\#2643](https://github.com/cosmos/gaia/pull/2643)) |
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,3 @@ | ||
- Add Liquid Staking Module (LSM) and initialize the LSM params: | ||
ValidatorBondFactor, ValidatorLiquidStakingCap, GlobalLiquidStakingCap | ||
([\#2643](https://github.com/cosmos/gaia/pull/2643)) |
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
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
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
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
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,65 @@ | ||
#!/bin/bash | ||
set -eux | ||
|
||
# User balance of stake tokens | ||
USER_COINS="100000000000stake" | ||
# Amount of stake tokens staked | ||
STAKE="100000000stake" | ||
# Node IP address | ||
NODE_IP="127.0.0.1" | ||
|
||
# Home directory | ||
HOME_DIR="/Users/msalopek" | ||
|
||
# Validator moniker | ||
MONIKER="coordinator" | ||
|
||
# Validator directory | ||
PROV_NODE_DIR=${HOME_DIR}/provider-${MONIKER} | ||
|
||
# Coordinator key | ||
PROV_KEY=${MONIKER}-key | ||
|
||
|
||
# Clean start | ||
pkill -f gaiad &> /dev/null || true | ||
rm -rf ${PROV_NODE_DIR} | ||
|
||
# Build file and node directory structure | ||
gaiad init $MONIKER --chain-id provider --home ${PROV_NODE_DIR} | ||
jq ".app_state.gov.voting_params.voting_period = \"20s\" | .app_state.staking.params.unbonding_time = \"86400s\"" \ | ||
${PROV_NODE_DIR}/config/genesis.json > \ | ||
${PROV_NODE_DIR}/edited_genesis.json && mv ${PROV_NODE_DIR}/edited_genesis.json ${PROV_NODE_DIR}/config/genesis.json | ||
|
||
sleep 1 | ||
|
||
# Create account keypair | ||
gaiad keys add $PROV_KEY --home ${PROV_NODE_DIR} --keyring-backend test --output json > ${PROV_NODE_DIR}/${PROV_KEY}.json 2>&1 | ||
sleep 1 | ||
|
||
# Add stake to user | ||
PROV_ACCOUNT_ADDR=$(jq -r '.address' ${PROV_NODE_DIR}/${PROV_KEY}.json) | ||
gaiad add-genesis-account $PROV_ACCOUNT_ADDR $USER_COINS --home ${PROV_NODE_DIR} --keyring-backend test | ||
sleep 1 | ||
|
||
|
||
# Stake 1/1000 user's coins | ||
gaiad gentx $PROV_KEY $STAKE --chain-id provider --home ${PROV_NODE_DIR} --keyring-backend test --moniker $MONIKER | ||
sleep 1 | ||
|
||
gaiad collect-gentxs --home ${PROV_NODE_DIR} --gentx-dir ${PROV_NODE_DIR}/config/gentx/ | ||
sleep 1 | ||
|
||
sed -i -r "/node =/ s/= .*/= \"tcp:\/\/${NODE_IP}:26658\"/" ${PROV_NODE_DIR}/config/client.toml | ||
sed -i -r 's/timeout_commit = "5s"/timeout_commit = "3s"/g' ${PROV_NODE_DIR}/config/config.toml | ||
sed -i -r 's/timeout_propose = "3s"/timeout_propose = "1s"/g' ${PROV_NODE_DIR}/config/config.toml | ||
|
||
|
||
# Start gaia | ||
gaiad start \ | ||
--home ${PROV_NODE_DIR} \ | ||
--rpc.laddr tcp://${NODE_IP}:26658 \ | ||
--grpc.address ${NODE_IP}:9091 \ | ||
--address tcp://${NODE_IP}:26655 \ | ||
--p2p.laddr tcp://${NODE_IP}:26656 \ | ||
--grpc-web.enable=false &> ${PROV_NODE_DIR}/logs |
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
Oops, something went wrong.