diff --git a/app/modules.go b/app/modules.go index b04707d96e..f6628dd16c 100644 --- a/app/modules.go +++ b/app/modules.go @@ -1,7 +1,6 @@ package gaia import ( - lsmtypes "github.com/cosmos/gaia/v22/x/lsm/types" feemarket "github.com/skip-mev/feemarket/x/feemarket" feemarkettypes "github.com/skip-mev/feemarket/x/feemarket/types" @@ -63,6 +62,7 @@ import ( wasm "github.com/CosmWasm/wasmd/x/wasm" wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" + lsmtypes "github.com/cosmos/gaia/v22/x/lsm/types" "github.com/cosmos/gaia/v22/x/metaprotocols" metaprotocolstypes "github.com/cosmos/gaia/v22/x/metaprotocols/types" ) diff --git a/tests/e2e/e2e_setup_test.go b/tests/e2e/e2e_setup_test.go index fec21da34e..1512123d70 100644 --- a/tests/e2e/e2e_setup_test.go +++ b/tests/e2e/e2e_setup_test.go @@ -762,12 +762,18 @@ func (s *IntegrationTestSuite) writeLiquidStakingParamsUpdateProposal(c *chain, "max_entries": %d, "historical_entries": %d, "bond_denom": "%s", - "min_commission_rate": "%s", + "min_commission_rate": "%s" + }, + { + "@type": "/gaia.lsm.v1beta1.MsgUpdateParams", + "authority": "%s", + "params": { "validator_bond_factor": "%s", "global_liquid_staking_cap": "%s", "validator_liquid_staking_cap": "%s" } } + } ], "metadata": "ipfs://CID", "deposit": "100uatom", @@ -783,6 +789,7 @@ func (s *IntegrationTestSuite) writeLiquidStakingParamsUpdateProposal(c *chain, oldParams.HistoricalEntries, oldParams.BondDenom, oldParams.MinCommissionRate, + govAuthority, math.LegacyNewDec(250), // validator bond factor math.LegacyNewDecWithPrec(25, 2), // 25 global_liquid_staking_cap math.LegacyNewDecWithPrec(50, 2), // 50 validator_liquid_staking_cap diff --git a/x/lsm/client/cli/tx.go b/x/lsm/client/cli/tx.go index 601951badb..f27da0e1fd 100644 --- a/x/lsm/client/cli/tx.go +++ b/x/lsm/client/cli/tx.go @@ -178,7 +178,7 @@ $ %s tx lsm transfer-tokenize-share-record 1 %s1gghjut3ccd8ay0zduzj64hwre2fxs9ld msg := &types.MsgTransferTokenizeShareRecord{ Sender: clientCtx.GetFromAddress().String(), - TokenizeShareRecordId: uint64(recordID), //nolint:gosec + TokenizeShareRecordId: uint64(recordID), NewOwner: ownerAddr, } @@ -326,7 +326,7 @@ $ %s tx distribution withdraw-tokenize-share-rewards 1 --from mykey return err } - msg := types.NewMsgWithdrawTokenizeShareRecordReward(ownerAddr, uint64(recordID)) //nolint:gosec + msg := types.NewMsgWithdrawTokenizeShareRecordReward(ownerAddr, uint64(recordID)) return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) }, diff --git a/x/lsm/types/tokenize_share_record.go b/x/lsm/types/tokenize_share_record.go index 7f20bd2116..cbd5c8554b 100644 --- a/x/lsm/types/tokenize_share_record.go +++ b/x/lsm/types/tokenize_share_record.go @@ -18,5 +18,5 @@ func (r TokenizeShareRecord) GetModuleAddress() sdk.AccAddress { } func (r TokenizeShareRecord) GetShareTokenDenom() string { - return fmt.Sprintf("%s/%s", strings.ToLower(r.Validator), strconv.Itoa(int(r.Id))) //nolint:gosec + return fmt.Sprintf("%s/%s", strings.ToLower(r.Validator), strconv.Itoa(int(r.Id))) }