diff --git a/dockernet/scripts/set_bound.sh b/dockernet/scripts/set_bound.sh new file mode 100644 index 0000000000..2255acd99d --- /dev/null +++ b/dockernet/scripts/set_bound.sh @@ -0,0 +1,11 @@ +### IBC TRANSFER +SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +source ${SCRIPT_DIR}/../config.sh + +## Set the redemption rate bounds +# Set bounds from the correct account (success) +# $STRIDE_MAIN_CMD tx stakeibc set-redemption-rate-bounds GAIA 1 1.4 --from $STRIDE_ADMIN_ACCT -y | TRIM_TX +# Set bounds from the wrong account (fail) +# $STRIDE_MAIN_CMD tx stakeibc set-redemption-rate-bounds GAIA 1.1 1.3 --from val1 -y | TRIM_TX +# Set tight bound and observe halt +$STRIDE_MAIN_CMD tx stakeibc set-redemption-rate-bounds GAIA 1 1.000001 --from $STRIDE_ADMIN_ACCT -y | TRIM_TX diff --git a/proto/stride/stakeibc/host_zone.proto b/proto/stride/stakeibc/host_zone.proto index c8e72aff7c..d55c67a84e 100644 --- a/proto/stride/stakeibc/host_zone.proto +++ b/proto/stride/stakeibc/host_zone.proto @@ -52,6 +52,16 @@ message HostZone { (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false ]; + string min_inner_redemption_rate = 28 [ + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.nullable) = false + ]; + string max_inner_redemption_rate = 29 [ + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.nullable) = false + ]; bool lsm_liquid_stake_enabled = 27; bool halted = 19; reserved 4, 5, 6, 7, 14, 15, 16; diff --git a/proto/stride/stakeibc/tx.proto b/proto/stride/stakeibc/tx.proto index d73a785298..d908e7245b 100644 --- a/proto/stride/stakeibc/tx.proto +++ b/proto/stride/stakeibc/tx.proto @@ -28,8 +28,27 @@ service Msg { rpc UpdateValidatorSharesExchRate(MsgUpdateValidatorSharesExchRate) returns (MsgUpdateValidatorSharesExchRateResponse); rpc ClearBalance(MsgClearBalance) returns (MsgClearBalanceResponse); + rpc UpdateInnerRedemptionRateBounds(MsgUpdateInnerRedemptionRateBounds) + returns (MsgUpdateInnerRedemptionRateBoundsResponse); } +message MsgUpdateInnerRedemptionRateBounds { + string creator = 1; + string chain_id = 2; + string min_inner_redemption_rate = 3 [ + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.nullable) = false + ]; + string max_inner_redemption_rate = 4 [ + (cosmos_proto.scalar) = "cosmos.Dec", + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.nullable) = false + ]; +} + +message MsgUpdateInnerRedemptionRateBoundsResponse {} + message MsgLiquidStake { string creator = 1; string amount = 2 [ diff --git a/x/stakeibc/client/cli/tx.go b/x/stakeibc/client/cli/tx.go index 4ac08a0077..a7c269f227 100644 --- a/x/stakeibc/client/cli/tx.go +++ b/x/stakeibc/client/cli/tx.go @@ -36,6 +36,7 @@ func GetTxCmd() *cobra.Command { cmd.AddCommand(CmdRestoreInterchainAccount()) cmd.AddCommand(CmdUpdateValidatorSharesExchRate()) cmd.AddCommand(CmdClearBalance()) + cmd.AddCommand(CmdUpdateInnerRedemptionRateBounds()) return cmd } diff --git a/x/stakeibc/client/cli/tx_update_inner_redemption_rate_bounds.go b/x/stakeibc/client/cli/tx_update_inner_redemption_rate_bounds.go new file mode 100644 index 0000000000..216cf92f9b --- /dev/null +++ b/x/stakeibc/client/cli/tx_update_inner_redemption_rate_bounds.go @@ -0,0 +1,44 @@ +package cli + +import ( + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/cosmos/cosmos-sdk/client/tx" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/spf13/cobra" + + "github.com/Stride-Labs/stride/v14/x/stakeibc/types" +) + +func CmdUpdateInnerRedemptionRateBounds() *cobra.Command { + cmd := &cobra.Command{ + Use: "set-redemption-rate-bounds [chainid] [min-bound] [max-bound]", + Short: "Broadcast message set-redemption-rate-bounds", + Args: cobra.ExactArgs(3), + RunE: func(cmd *cobra.Command, args []string) (err error) { + argChainId := args[0] + minInnerRedemptionRate := sdk.MustNewDecFromStr(args[1]) + maxInnerRedemptionRate := sdk.MustNewDecFromStr(args[2]) + + clientCtx, err := client.GetClientTxContext(cmd) + if err != nil { + return err + } + + msg := types.NewMsgUpdateInnerRedemptionRateBounds( + clientCtx.GetFromAddress().String(), + argChainId, + minInnerRedemptionRate, + maxInnerRedemptionRate, + ) + if err := msg.ValidateBasic(); err != nil { + return err + } + return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) + }, + } + + flags.AddTxFlagsToCmd(cmd) + + return cmd +} diff --git a/x/stakeibc/handler.go b/x/stakeibc/handler.go index 1f5abd4090..bad3d8d516 100644 --- a/x/stakeibc/handler.go +++ b/x/stakeibc/handler.go @@ -58,6 +58,9 @@ func NewMessageHandler(k keeper.Keeper) sdk.Handler { case *types.MsgUpdateValidatorSharesExchRate: res, err := msgServer.UpdateValidatorSharesExchRate(sdk.WrapSDKContext(ctx), msg) return sdk.WrapServiceResult(ctx, res, err) + case *types.MsgUpdateInnerRedemptionRateBounds: + res, err := msgServer.UpdateInnerRedemptionRateBounds(sdk.WrapSDKContext(ctx), msg) + return sdk.WrapServiceResult(ctx, res, err) default: errMsg := fmt.Sprintf("unrecognized %s message type: %T", types.ModuleName, msg) return nil, errorsmod.Wrap(sdkerrors.ErrUnknownRequest, errMsg) diff --git a/x/stakeibc/keeper/host_zone_test.go b/x/stakeibc/keeper/host_zone_test.go index f1383b427a..e8fcd15562 100644 --- a/x/stakeibc/keeper/host_zone_test.go +++ b/x/stakeibc/keeper/host_zone_test.go @@ -23,6 +23,8 @@ func createNHostZone(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.Host items[i].LastRedemptionRate = sdk.NewDec(1) items[i].MinRedemptionRate = sdk.NewDecWithPrec(5, 1) items[i].MaxRedemptionRate = sdk.NewDecWithPrec(15, 1) + items[i].MinInnerRedemptionRate = sdk.NewDecWithPrec(5, 1) + items[i].MaxInnerRedemptionRate = sdk.NewDecWithPrec(15, 1) items[i].TotalDelegations = sdkmath.ZeroInt() keeper.SetHostZone(ctx, items[i]) } diff --git a/x/stakeibc/keeper/keeper.go b/x/stakeibc/keeper/keeper.go index 4d80a063f3..82a1e83bf5 100644 --- a/x/stakeibc/keeper/keeper.go +++ b/x/stakeibc/keeper/keeper.go @@ -254,6 +254,33 @@ func (k Keeper) GetICATimeoutNanos(ctx sdk.Context, epochType string) (uint64, e // safety check: ensure the redemption rate is NOT below our min safety threshold && NOT above our max safety threshold on host zone func (k Keeper) IsRedemptionRateWithinSafetyBounds(ctx sdk.Context, zone types.HostZone) (bool, error) { + // Get the wide bounds + minSafetyThreshold, maxSafetyThreshold := k.GetOuterSafetyBounds(ctx, zone) + + redemptionRate := zone.RedemptionRate + + if redemptionRate.LT(minSafetyThreshold) || redemptionRate.GT(maxSafetyThreshold) { + errMsg := fmt.Sprintf("IsRedemptionRateWithinSafetyBounds check failed %s is outside safety bounds [%s, %s]", redemptionRate.String(), minSafetyThreshold.String(), maxSafetyThreshold.String()) + k.Logger(ctx).Error(errMsg) + return false, errorsmod.Wrapf(types.ErrRedemptionRateOutsideSafetyBounds, errMsg) + } + + // Verify the redemption rate is within the inner safety bounds + // The inner safety bounds should always be within the safety bounds, but + // the redundancy above is cheap. + // There is also one scenario where the outer bounds go within the inner bounds - if they're updated as part of a param change proposal. + minInnerSafetyThreshold, maxInnerSafetyThreshold := k.GetInnerSafetyBounds(ctx, zone) + if redemptionRate.LT(minInnerSafetyThreshold) || redemptionRate.GT(maxInnerSafetyThreshold) { + errMsg := fmt.Sprintf("IsRedemptionRateWithinSafetyBounds check failed %s is outside inner safety bounds [%s, %s]", redemptionRate.String(), minInnerSafetyThreshold.String(), maxInnerSafetyThreshold.String()) + k.Logger(ctx).Error(errMsg) + return false, errorsmod.Wrapf(types.ErrRedemptionRateOutsideSafetyBounds, errMsg) + } + + return true, nil +} + +func (k Keeper) GetOuterSafetyBounds(ctx sdk.Context, zone types.HostZone) (sdk.Dec, sdk.Dec) { + // Fetch the wide bounds minSafetyThresholdInt := k.GetParam(ctx, types.KeyDefaultMinRedemptionRateThreshold) minSafetyThreshold := sdk.NewDec(int64(minSafetyThresholdInt)).Quo(sdk.NewDec(100)) @@ -268,12 +295,19 @@ func (k Keeper) IsRedemptionRateWithinSafetyBounds(ctx sdk.Context, zone types.H maxSafetyThreshold = zone.MaxRedemptionRate } - redemptionRate := zone.RedemptionRate + return minSafetyThreshold, maxSafetyThreshold +} - if redemptionRate.LT(minSafetyThreshold) || redemptionRate.GT(maxSafetyThreshold) { - errMsg := fmt.Sprintf("IsRedemptionRateWithinSafetyBounds check failed %s is outside safety bounds [%s, %s]", redemptionRate.String(), minSafetyThreshold.String(), maxSafetyThreshold.String()) - k.Logger(ctx).Error(errMsg) - return false, errorsmod.Wrapf(types.ErrRedemptionRateOutsideSafetyBounds, errMsg) +func (k Keeper) GetInnerSafetyBounds(ctx sdk.Context, zone types.HostZone) (sdk.Dec, sdk.Dec) { + // Fetch the inner bounds + minSafetyThreshold, maxSafetyThreshold := k.GetOuterSafetyBounds(ctx, zone) + + if !zone.MinInnerRedemptionRate.IsNil() && zone.MinInnerRedemptionRate.IsPositive() && zone.MinInnerRedemptionRate.GT(minSafetyThreshold) { + minSafetyThreshold = zone.MinInnerRedemptionRate } - return true, nil + if !zone.MaxInnerRedemptionRate.IsNil() && zone.MaxInnerRedemptionRate.IsPositive() && zone.MaxInnerRedemptionRate.LT(maxSafetyThreshold) { + maxSafetyThreshold = zone.MaxInnerRedemptionRate + } + + return minSafetyThreshold, maxSafetyThreshold } diff --git a/x/stakeibc/keeper/msg_server_register_host_zone.go b/x/stakeibc/keeper/msg_server_register_host_zone.go index 28de4ab7b8..fd991ccc0e 100644 --- a/x/stakeibc/keeper/msg_server_register_host_zone.go +++ b/x/stakeibc/keeper/msg_server_register_host_zone.go @@ -92,13 +92,16 @@ func (k msgServer) RegisterHostZone(goCtx context.Context, msg *types.MsgRegiste HostDenom: msg.HostDenom, TransferChannelId: msg.TransferChannelId, // Start sharesToTokens rate at 1 upon registration - RedemptionRate: sdk.NewDec(1), - LastRedemptionRate: sdk.NewDec(1), - UnbondingPeriod: msg.UnbondingPeriod, - DepositAddress: depositAddress.String(), - MinRedemptionRate: msg.MinRedemptionRate, - MaxRedemptionRate: msg.MaxRedemptionRate, - LsmLiquidStakeEnabled: msg.LsmLiquidStakeEnabled, + RedemptionRate: sdk.NewDec(1), + LastRedemptionRate: sdk.NewDec(1), + UnbondingPeriod: msg.UnbondingPeriod, + DepositAddress: depositAddress.String(), + MinRedemptionRate: msg.MinRedemptionRate, + MaxRedemptionRate: msg.MaxRedemptionRate, + // Default the inner bounds to the outer bounds + MinInnerRedemptionRate: msg.MinRedemptionRate, + MaxInnerRedemptionRate: msg.MaxRedemptionRate, + LsmLiquidStakeEnabled: msg.LsmLiquidStakeEnabled, } // write the zone back to the store k.SetHostZone(ctx, zone) diff --git a/x/stakeibc/keeper/msg_server_update_inner_redemption_rate_bounds.go b/x/stakeibc/keeper/msg_server_update_inner_redemption_rate_bounds.go new file mode 100644 index 0000000000..7f2170fc81 --- /dev/null +++ b/x/stakeibc/keeper/msg_server_update_inner_redemption_rate_bounds.go @@ -0,0 +1,48 @@ +package keeper + +import ( + "context" + "fmt" + + errorsmod "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" + + "github.com/Stride-Labs/stride/v14/x/stakeibc/types" +) + +func (k msgServer) UpdateInnerRedemptionRateBounds(goCtx context.Context, msg *types.MsgUpdateInnerRedemptionRateBounds) (*types.MsgUpdateInnerRedemptionRateBoundsResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + // Confirm host zone exists + zone, found := k.GetHostZone(ctx, msg.ChainId) + if !found { + k.Logger(ctx).Error(fmt.Sprintf("Host Zone not found: %s", msg.ChainId)) + return nil, types.ErrInvalidHostZone + } + + // Get the wide bounds + outerMinSafetyThreshold, outerMaxSafetyThreshold := k.GetOuterSafetyBounds(ctx, zone) + + innerMinSafetyThreshold := msg.MinInnerRedemptionRate + innerMaxSafetyThreshold := msg.MaxInnerRedemptionRate + + // Confirm the inner bounds are within the outer bounds + if innerMinSafetyThreshold.LT(outerMinSafetyThreshold) { + errMsg := fmt.Sprintf("inner min safety threshold (%s) is less than outer min safety threshold (%s)", innerMinSafetyThreshold, outerMinSafetyThreshold) + k.Logger(ctx).Error(errMsg) + return nil, errorsmod.Wrapf(types.ErrInvalidBounds, errMsg) + } + + if innerMaxSafetyThreshold.GT(outerMaxSafetyThreshold) { + errMsg := fmt.Sprintf("inner max safety threshold (%s) is greater than outer max safety threshold (%s)", innerMaxSafetyThreshold, outerMaxSafetyThreshold) + k.Logger(ctx).Error(errMsg) + return nil, errorsmod.Wrapf(types.ErrInvalidBounds, errMsg) + } + + // Set the inner bounds on the host zone + zone.MinInnerRedemptionRate = innerMinSafetyThreshold + zone.MaxInnerRedemptionRate = innerMaxSafetyThreshold + k.SetHostZone(ctx, zone) + + return &types.MsgUpdateInnerRedemptionRateBoundsResponse{}, nil +} diff --git a/x/stakeibc/keeper/msg_server_update_inner_redemption_rate_bounds_test.go b/x/stakeibc/keeper/msg_server_update_inner_redemption_rate_bounds_test.go new file mode 100644 index 0000000000..671f567dcb --- /dev/null +++ b/x/stakeibc/keeper/msg_server_update_inner_redemption_rate_bounds_test.go @@ -0,0 +1,111 @@ +package keeper_test + +import ( + "fmt" + + sdk "github.com/cosmos/cosmos-sdk/types" + _ "github.com/stretchr/testify/suite" + + stakeibctypes "github.com/Stride-Labs/stride/v14/x/stakeibc/types" +) + +type UpdateInnerRedemptionRateBoundsTestCase struct { + validMsg stakeibctypes.MsgUpdateInnerRedemptionRateBounds + zone stakeibctypes.HostZone +} + +func (s *KeeperTestSuite) SetupUpdateInnerRedemptionRateBounds() UpdateInnerRedemptionRateBoundsTestCase { + // Register a host zone + hostZone := stakeibctypes.HostZone{ + ChainId: HostChainId, + HostDenom: Atom, + IbcDenom: IbcAtom, + RedemptionRate: sdk.NewDec(1.0), + MinRedemptionRate: sdk.NewDec(9).Quo(sdk.NewDec(10)), + MaxRedemptionRate: sdk.NewDec(15).Quo(sdk.NewDec(10)), + } + + s.App.StakeibcKeeper.SetHostZone(s.Ctx, hostZone) + + defaultMsg := stakeibctypes.MsgUpdateInnerRedemptionRateBounds{ + // TODO: does this need to be the admin address? + Creator: s.TestAccs[0].String(), + ChainId: HostChainId, + MinInnerRedemptionRate: sdk.NewDec(1), + MaxInnerRedemptionRate: sdk.NewDec(11).Quo(sdk.NewDec(10)), + } + + return UpdateInnerRedemptionRateBoundsTestCase{ + validMsg: defaultMsg, + zone: hostZone, + } +} + +// Verify that bounds can be set successfully +func (s *KeeperTestSuite) TestUpdateInnerRedemptionRateBounds_Success() { + tc := s.SetupUpdateInnerRedemptionRateBounds() + + // Set the inner bounds on the host zone + _, err := s.GetMsgServer().UpdateInnerRedemptionRateBounds(s.Ctx, &tc.validMsg) + s.Require().NoError(err, "should not throw an error") + + // Confirm the inner bounds were set + zone, found := s.App.StakeibcKeeper.GetHostZone(s.Ctx, HostChainId) + s.Require().True(found, "host zone should be in the store") + s.Require().Equal(tc.validMsg.MinInnerRedemptionRate, zone.MinInnerRedemptionRate, "min inner redemption rate should be set") + s.Require().Equal(tc.validMsg.MaxInnerRedemptionRate, zone.MaxInnerRedemptionRate, "max inner redemption rate should be set") +} + +// Setting inner bounds outside of outer bounds should throw an error +func (s *KeeperTestSuite) TestUpdateInnerRedemptionRateBounds_OutOfBounds() { + tc := s.SetupUpdateInnerRedemptionRateBounds() + + // Set the min inner bound to be less than the min outer bound + tc.validMsg.MinInnerRedemptionRate = sdk.NewDec(0) + + // Set the inner bounds on the host zone + _, err := s.GetMsgServer().UpdateInnerRedemptionRateBounds(s.Ctx, &tc.validMsg) + // verify it throws an error + errMsg := fmt.Sprintf("inner min safety threshold (%s) is less than outer min safety threshold (%s)", tc.validMsg.MinInnerRedemptionRate, sdk.NewDec(9).Quo(sdk.NewDec(10))) + s.Require().ErrorContains(err, errMsg) + + // Set the min inner bound to be valid, but the max inner bound to be greater than the max outer bound + tc.validMsg.MinInnerRedemptionRate = sdk.NewDec(1) + tc.validMsg.MaxInnerRedemptionRate = sdk.NewDec(3) + // Set the inner bounds on the host zone + _, err = s.GetMsgServer().UpdateInnerRedemptionRateBounds(s.Ctx, &tc.validMsg) + // verify it throws an error + errMsg = fmt.Sprintf("inner max safety threshold (%s) is greater than outer max safety threshold (%s)", tc.validMsg.MaxInnerRedemptionRate, sdk.NewDec(15).Quo(sdk.NewDec(10))) + s.Require().ErrorContains(err, errMsg) +} + +// Validate basic tests +func (s *KeeperTestSuite) TestUpdateInnerRedemptionRateBounds_InvalidMsg() { + tc := s.SetupUpdateInnerRedemptionRateBounds() + + // Set the min inner bound to be greater than than the max inner bound + invalidMsg := tc.validMsg + invalidMsg.MinInnerRedemptionRate = sdk.NewDec(2) + + err := invalidMsg.ValidateBasic() + + // Verify the error + errMsg := fmt.Sprintf("Inner max safety threshold (%s) is less than inner min safety threshold (%s)", invalidMsg.MaxInnerRedemptionRate, invalidMsg.MinInnerRedemptionRate) + s.Require().ErrorContains(err, errMsg) +} + +// Verify that if inner bounds end up outside of outer bounds (somehow), the outer bounds are returned +func (s *KeeperTestSuite) TestGetInnerSafetyBounds() { + tc := s.SetupUpdateInnerRedemptionRateBounds() + + // Set the inner bounds outside the outer bounds on the host zone directly + tc.zone.MinInnerRedemptionRate = sdk.NewDec(0) + tc.zone.MaxInnerRedemptionRate = sdk.NewDec(3) + // Set the host zone + s.App.StakeibcKeeper.SetHostZone(s.Ctx, tc.zone) + + // Get the inner bounds and verify the outer bounds are used + innerMinSafetyThreshold, innerMaxSafetyThreshold := s.App.StakeibcKeeper.GetInnerSafetyBounds(s.Ctx, tc.zone) + s.Require().Equal(tc.zone.MinRedemptionRate, innerMinSafetyThreshold, "min inner redemption rate should be set") + s.Require().Equal(tc.zone.MaxRedemptionRate, innerMaxSafetyThreshold, "max inner redemption rate should be set") +} diff --git a/x/stakeibc/types/codec.go b/x/stakeibc/types/codec.go index 857737d6ba..e0f63edc89 100644 --- a/x/stakeibc/types/codec.go +++ b/x/stakeibc/types/codec.go @@ -23,6 +23,7 @@ func RegisterCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&ToggleLSMProposal{}, "stakeibc/ToggleLSMProposal", nil) cdc.RegisterConcrete(&MsgRestoreInterchainAccount{}, "stakeibc/RestoreInterchainAccount", nil) cdc.RegisterConcrete(&MsgUpdateValidatorSharesExchRate{}, "stakeibc/UpdateValidatorSharesExchRate", nil) + cdc.RegisterConcrete(&MsgUpdateInnerRedemptionRateBounds{}, "stakeibc/UpdateInnerRedemptionRateBounds", nil) // this line is used by starport scaffolding # 2 } @@ -39,6 +40,7 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { &MsgDeleteValidator{}, &MsgRestoreInterchainAccount{}, &MsgUpdateValidatorSharesExchRate{}, + &MsgUpdateInnerRedemptionRateBounds{}, ) registry.RegisterImplementations((*govtypes.Content)(nil), diff --git a/x/stakeibc/types/errors.go b/x/stakeibc/types/errors.go index bf9f815aee..a0805b6f3f 100644 --- a/x/stakeibc/types/errors.go +++ b/x/stakeibc/types/errors.go @@ -56,4 +56,5 @@ var ( ErrInvalidValidatorDelegationUpdates = errorsmod.Register(ModuleName, 1548, "Invalid validator delegation updates") ErrLSMLiquidStakeDisabledForHostZone = errorsmod.Register(ModuleName, 1549, "LSM liquid stake is disabled for host zone") ErrUnableToRemoveValidator = errorsmod.Register(ModuleName, 1550, "Unable to remove validator") + ErrInvalidBounds = errorsmod.Register(ModuleName, 1551, "Invalid safety bounds - inner bounds must be within outer bounds") ) diff --git a/x/stakeibc/types/host_zone.pb.go b/x/stakeibc/types/host_zone.pb.go index da47a3bb88..09a60e96d0 100644 --- a/x/stakeibc/types/host_zone.pb.go +++ b/x/stakeibc/types/host_zone.pb.go @@ -33,21 +33,23 @@ type HostZone struct { // ibc denom on stride IbcDenom string `protobuf:"bytes,8,opt,name=ibc_denom,json=ibcDenom,proto3" json:"ibc_denom,omitempty"` // native denom on host zone - HostDenom string `protobuf:"bytes,9,opt,name=host_denom,json=hostDenom,proto3" json:"host_denom,omitempty"` - UnbondingPeriod uint64 `protobuf:"varint,26,opt,name=unbonding_period,json=unbondingPeriod,proto3" json:"unbonding_period,omitempty"` - Validators []*Validator `protobuf:"bytes,3,rep,name=validators,proto3" json:"validators,omitempty"` - DepositAddress string `protobuf:"bytes,18,opt,name=deposit_address,json=depositAddress,proto3" json:"deposit_address,omitempty"` - WithdrawalIcaAddress string `protobuf:"bytes,22,opt,name=withdrawal_ica_address,json=withdrawalIcaAddress,proto3" json:"withdrawal_ica_address,omitempty"` - FeeIcaAddress string `protobuf:"bytes,23,opt,name=fee_ica_address,json=feeIcaAddress,proto3" json:"fee_ica_address,omitempty"` - DelegationIcaAddress string `protobuf:"bytes,24,opt,name=delegation_ica_address,json=delegationIcaAddress,proto3" json:"delegation_ica_address,omitempty"` - RedemptionIcaAddress string `protobuf:"bytes,25,opt,name=redemption_ica_address,json=redemptionIcaAddress,proto3" json:"redemption_ica_address,omitempty"` - TotalDelegations github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,13,opt,name=total_delegations,json=totalDelegations,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_delegations"` - LastRedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,10,opt,name=last_redemption_rate,json=lastRedemptionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"last_redemption_rate"` - RedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,11,opt,name=redemption_rate,json=redemptionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"redemption_rate"` - MinRedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,20,opt,name=min_redemption_rate,json=minRedemptionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"min_redemption_rate"` - MaxRedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,21,opt,name=max_redemption_rate,json=maxRedemptionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"max_redemption_rate"` - LsmLiquidStakeEnabled bool `protobuf:"varint,27,opt,name=lsm_liquid_stake_enabled,json=lsmLiquidStakeEnabled,proto3" json:"lsm_liquid_stake_enabled,omitempty"` - Halted bool `protobuf:"varint,19,opt,name=halted,proto3" json:"halted,omitempty"` + HostDenom string `protobuf:"bytes,9,opt,name=host_denom,json=hostDenom,proto3" json:"host_denom,omitempty"` + UnbondingPeriod uint64 `protobuf:"varint,26,opt,name=unbonding_period,json=unbondingPeriod,proto3" json:"unbonding_period,omitempty"` + Validators []*Validator `protobuf:"bytes,3,rep,name=validators,proto3" json:"validators,omitempty"` + DepositAddress string `protobuf:"bytes,18,opt,name=deposit_address,json=depositAddress,proto3" json:"deposit_address,omitempty"` + WithdrawalIcaAddress string `protobuf:"bytes,22,opt,name=withdrawal_ica_address,json=withdrawalIcaAddress,proto3" json:"withdrawal_ica_address,omitempty"` + FeeIcaAddress string `protobuf:"bytes,23,opt,name=fee_ica_address,json=feeIcaAddress,proto3" json:"fee_ica_address,omitempty"` + DelegationIcaAddress string `protobuf:"bytes,24,opt,name=delegation_ica_address,json=delegationIcaAddress,proto3" json:"delegation_ica_address,omitempty"` + RedemptionIcaAddress string `protobuf:"bytes,25,opt,name=redemption_ica_address,json=redemptionIcaAddress,proto3" json:"redemption_ica_address,omitempty"` + TotalDelegations github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,13,opt,name=total_delegations,json=totalDelegations,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"total_delegations"` + LastRedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,10,opt,name=last_redemption_rate,json=lastRedemptionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"last_redemption_rate"` + RedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,11,opt,name=redemption_rate,json=redemptionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"redemption_rate"` + MinRedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,20,opt,name=min_redemption_rate,json=minRedemptionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"min_redemption_rate"` + MaxRedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,21,opt,name=max_redemption_rate,json=maxRedemptionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"max_redemption_rate"` + MinInnerRedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,28,opt,name=min_inner_redemption_rate,json=minInnerRedemptionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"min_inner_redemption_rate"` + MaxInnerRedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,29,opt,name=max_inner_redemption_rate,json=maxInnerRedemptionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"max_inner_redemption_rate"` + LsmLiquidStakeEnabled bool `protobuf:"varint,27,opt,name=lsm_liquid_stake_enabled,json=lsmLiquidStakeEnabled,proto3" json:"lsm_liquid_stake_enabled,omitempty"` + Halted bool `protobuf:"varint,19,opt,name=halted,proto3" json:"halted,omitempty"` } func (m *HostZone) Reset() { *m = HostZone{} } @@ -195,51 +197,53 @@ func init() { func init() { proto.RegisterFile("stride/stakeibc/host_zone.proto", fileDescriptor_f81bf5b42c61245a) } var fileDescriptor_f81bf5b42c61245a = []byte{ - // 699 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0x4f, 0x4f, 0x1a, 0x41, - 0x18, 0xc6, 0xa1, 0xae, 0xb8, 0x8c, 0x7f, 0x58, 0x56, 0xa4, 0x2b, 0xa6, 0x48, 0x6c, 0xd2, 0xd0, - 0x03, 0x4b, 0xaa, 0x4d, 0x9a, 0x34, 0x3d, 0x54, 0x4b, 0x93, 0x42, 0x8c, 0x69, 0xd6, 0xa4, 0x07, - 0x7b, 0xd8, 0xcc, 0xee, 0xbc, 0xc0, 0xc4, 0xdd, 0x19, 0xba, 0x33, 0x2a, 0xed, 0xa7, 0xe8, 0x87, - 0xf1, 0x0b, 0xf4, 0xe6, 0xd1, 0x78, 0x6a, 0x7a, 0x30, 0x8d, 0x7e, 0x91, 0x86, 0xd9, 0xe5, 0x9f, - 0x1c, 0x48, 0x13, 0x4f, 0xcc, 0xbc, 0xcf, 0xf3, 0xfe, 0x9e, 0x99, 0x01, 0x5e, 0xb4, 0x2d, 0x64, - 0x44, 0x09, 0xd4, 0x85, 0xc4, 0xa7, 0x40, 0x3d, 0xbf, 0xde, 0xe5, 0x42, 0xba, 0x3f, 0x38, 0x03, - 0xbb, 0x17, 0x71, 0xc9, 0xcd, 0x5c, 0x6c, 0xb0, 0x87, 0x86, 0xd2, 0x4c, 0xc7, 0x39, 0x0e, 0x28, - 0xc1, 0x92, 0x47, 0x71, 0x47, 0xa9, 0xd0, 0xe1, 0x1d, 0xae, 0x96, 0xf5, 0xc1, 0x2a, 0xa9, 0x6e, - 0xfa, 0x5c, 0x84, 0x5c, 0xb8, 0xb1, 0x10, 0x6f, 0x62, 0x69, 0xe7, 0x17, 0x42, 0xfa, 0x27, 0x2e, - 0xe4, 0x09, 0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0x36, - 0x73, 0xab, 0xc2, 0x23, 0x44, 0xe5, 0x43, 0xca, 0x9c, 0xd9, 0x34, 0xdc, 0x9f, 0x49, 0xdb, 0x78, - 0x94, 0x34, 0xdc, 0x7f, 0x90, 0xf6, 0x06, 0x59, 0x81, 0x08, 0xdd, 0x80, 0x7e, 0x3b, 0xa3, 0xc4, - 0x55, 0xff, 0x58, 0x17, 0x18, 0xf6, 0x02, 0x20, 0xd6, 0x56, 0x25, 0x5d, 0xd5, 0x9d, 0x8d, 0x40, - 0x84, 0x87, 0x4a, 0x3e, 0x1e, 0xa8, 0x1f, 0x63, 0xd1, 0x2c, 0xa2, 0x4c, 0x17, 0x07, 0x12, 0x88, - 0xb5, 0xae, 0x6c, 0xc9, 0xae, 0xa5, 0xe9, 0x9a, 0xb1, 0xd8, 0xd2, 0xf4, 0x45, 0x23, 0xd3, 0xd2, - 0xf4, 0x8c, 0xb1, 0xd4, 0xd2, 0xf4, 0x25, 0x43, 0x6f, 0x69, 0xfa, 0x9a, 0x91, 0x6b, 0x69, 0x7a, - 0xce, 0x30, 0x5a, 0x9a, 0x6e, 0x18, 0xf9, 0x83, 0xc3, 0xab, 0xbb, 0x72, 0xfa, 0xfa, 0xae, 0x9c, - 0xfe, 0x7b, 0x57, 0x4e, 0xff, 0xbc, 0x2f, 0xa7, 0xae, 0xef, 0xcb, 0xa9, 0xdf, 0xf7, 0xe5, 0xd4, - 0xc9, 0xee, 0xc4, 0xed, 0x8e, 0xd5, 0x2c, 0xa9, 0x1d, 0x62, 0x4f, 0xd4, 0x93, 0x31, 0x7e, 0xfe, - 0xea, 0x75, 0xbd, 0x3f, 0x1e, 0xe6, 0xea, 0xb6, 0x5e, 0x46, 0x0d, 0xe6, 0xbd, 0x7f, 0x01, 0x00, - 0x00, 0xff, 0xff, 0x02, 0xf8, 0xf7, 0x43, 0x1e, 0x06, 0x00, 0x00, + // 734 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x95, 0xcf, 0x4e, 0xeb, 0x46, + 0x14, 0xc6, 0x93, 0x62, 0x82, 0x33, 0xfc, 0x89, 0x63, 0x42, 0xea, 0x84, 0x12, 0x22, 0x2a, 0x55, + 0xe9, 0x22, 0x8e, 0x0a, 0x95, 0x2a, 0x55, 0x5d, 0x14, 0x9a, 0x4a, 0x4d, 0x84, 0x50, 0x65, 0xa4, + 0x2e, 0xe8, 0xc2, 0x1a, 0x7b, 0x4e, 0x92, 0x11, 0xf6, 0x4c, 0xea, 0x19, 0x20, 0xed, 0x53, 0xf4, + 0x5d, 0xca, 0x43, 0xb0, 0x44, 0xac, 0xaa, 0x2e, 0x50, 0x05, 0x2f, 0x72, 0xe5, 0xb1, 0xf3, 0x8f, + 0x70, 0x15, 0x5d, 0x29, 0xab, 0x78, 0xce, 0xf7, 0x9d, 0xdf, 0x37, 0x67, 0x62, 0x79, 0xd0, 0xa1, + 0x90, 0x11, 0x25, 0xd0, 0x12, 0x12, 0x5f, 0x03, 0xf5, 0xfc, 0xd6, 0x80, 0x0b, 0xe9, 0xfe, 0xc5, + 0x19, 0xd8, 0xc3, 0x88, 0x4b, 0x6e, 0x16, 0x12, 0x83, 0x3d, 0x36, 0x54, 0x17, 0x3a, 0x6e, 0x71, + 0x40, 0x09, 0x96, 0x3c, 0x4a, 0x3a, 0xaa, 0xa5, 0x3e, 0xef, 0x73, 0xf5, 0xd8, 0x8a, 0x9f, 0xd2, + 0x6a, 0xc5, 0xe7, 0x22, 0xe4, 0xc2, 0x4d, 0x84, 0x64, 0x91, 0x48, 0x47, 0xff, 0x6c, 0x21, 0xfd, + 0x17, 0x2e, 0xe4, 0x15, 0x67, 0x60, 0x56, 0x90, 0xee, 0x0f, 0x30, 0x65, 0x2e, 0x25, 0x56, 0xb6, + 0x9e, 0x6d, 0xe4, 0x9d, 0x0d, 0xb5, 0xee, 0x10, 0xf3, 0x08, 0x6d, 0x79, 0xe0, 0x0f, 0x4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0xf1, 0x6c, 0x94, 0x31, 0x88, 0x16, + 0x32, 0xbf, 0x58, 0x41, 0x66, 0x39, 0xa4, 0xac, 0x13, 0xd3, 0xdf, 0x09, 0xc6, 0xa3, 0x8f, 0x04, + 0x1f, 0xac, 0x24, 0x18, 0x8f, 0xde, 0x0b, 0xfe, 0x0e, 0x59, 0x81, 0x08, 0xdd, 0x80, 0xfe, 0x71, + 0x43, 0x89, 0xab, 0xbe, 0x51, 0x2e, 0x30, 0xec, 0x05, 0x40, 0xac, 0xfd, 0x7a, 0xb6, 0xa1, 0x3b, + 0x7b, 0x81, 0x08, 0xcf, 0x95, 0x7c, 0x19, 0xab, 0x3f, 0x27, 0xa2, 0x59, 0x46, 0xb9, 0x01, 0x0e, + 0x24, 0x10, 0x6b, 0x57, 0xd9, 0xd2, 0x55, 0x57, 0xd3, 0x35, 0x63, 0xbd, 0xab, 0xe9, 0xeb, 0x46, + 0xae, 0xab, 0xe9, 0x39, 0x63, 0xa3, 0xab, 0xe9, 0x1b, 0x86, 0xde, 0xd5, 0xf4, 0x1d, 0xa3, 0xd0, + 0xd5, 0xf4, 0x82, 0x61, 0x74, 0x35, 0xdd, 0x30, 0x8a, 0x67, 0xe7, 0x0f, 0x2f, 0xb5, 0xec, 0xe3, + 0x4b, 0x2d, 0xfb, 0xff, 0x4b, 0x2d, 0xfb, 0xf7, 0x6b, 0x2d, 0xf3, 0xf8, 0x5a, 0xcb, 0xfc, 0xfb, + 0x5a, 0xcb, 0x5c, 0x1d, 0xcf, 0x8c, 0x78, 0xa9, 0xbe, 0x9e, 0xcd, 0x73, 0xec, 0x89, 0x56, 0x7a, + 0x71, 0xdd, 0x7e, 0xf3, 0x6d, 0x6b, 0x34, 0xbd, 0xbe, 0xd4, 0xc8, 0x5e, 0x4e, 0x5d, 0x45, 0x27, + 0x1f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xfc, 0xcf, 0xeb, 0xfc, 0x10, 0x07, 0x00, 0x00, } func (m *HostZone) Marshal() (dAtA []byte, err error) { @@ -262,6 +266,30 @@ func (m *HostZone) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + { + size := m.MaxInnerRedemptionRate.Size() + i -= size + if _, err := m.MaxInnerRedemptionRate.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintHostZone(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xea + { + size := m.MinInnerRedemptionRate.Size() + i -= size + if _, err := m.MinInnerRedemptionRate.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintHostZone(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xe2 if m.LsmLiquidStakeEnabled { i-- if m.LsmLiquidStakeEnabled { @@ -539,6 +567,10 @@ func (m *HostZone) Size() (n int) { if m.LsmLiquidStakeEnabled { n += 3 } + l = m.MinInnerRedemptionRate.Size() + n += 2 + l + sovHostZone(uint64(l)) + l = m.MaxInnerRedemptionRate.Size() + n += 2 + l + sovHostZone(uint64(l)) return n } @@ -1192,6 +1224,74 @@ func (m *HostZone) Unmarshal(dAtA []byte) error { } } m.LsmLiquidStakeEnabled = bool(v != 0) + case 28: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MinInnerRedemptionRate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthHostZone + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MinInnerRedemptionRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 29: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxInnerRedemptionRate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowHostZone + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthHostZone + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthHostZone + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MaxInnerRedemptionRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipHostZone(dAtA[iNdEx:]) diff --git a/x/stakeibc/types/message_update_inner_redemption_rate_bounds.go b/x/stakeibc/types/message_update_inner_redemption_rate_bounds.go new file mode 100644 index 0000000000..02415d0640 --- /dev/null +++ b/x/stakeibc/types/message_update_inner_redemption_rate_bounds.go @@ -0,0 +1,58 @@ +package types + +import ( + errorsmod "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + + "github.com/Stride-Labs/stride/v14/utils" +) + +const TypeMsgUpdateInnerRedemptionRateBounds = "update_inner_redemption_rate_bounds" + +var _ sdk.Msg = &MsgUpdateInnerRedemptionRateBounds{} + +func NewMsgUpdateInnerRedemptionRateBounds(creator string, chainId string, minInnerRedemptionRate sdk.Dec, maxInnerRedemptionRate sdk.Dec) *MsgUpdateInnerRedemptionRateBounds { + return &MsgUpdateInnerRedemptionRateBounds{ + Creator: creator, + ChainId: chainId, + MinInnerRedemptionRate: minInnerRedemptionRate, + MaxInnerRedemptionRate: maxInnerRedemptionRate, + } +} + +func (msg *MsgUpdateInnerRedemptionRateBounds) Route() string { + return RouterKey +} + +func (msg *MsgUpdateInnerRedemptionRateBounds) Type() string { + return TypeMsgUpdateInnerRedemptionRateBounds +} + +func (msg *MsgUpdateInnerRedemptionRateBounds) GetSigners() []sdk.AccAddress { + creator, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + panic(err) + } + return []sdk.AccAddress{creator} +} + +func (msg *MsgUpdateInnerRedemptionRateBounds) GetSignBytes() []byte { + bz := ModuleCdc.MustMarshalJSON(msg) + return sdk.MustSortJSON(bz) +} + +func (msg *MsgUpdateInnerRedemptionRateBounds) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + } + // Confirm the max is greater than the min + if msg.MaxInnerRedemptionRate.LTE(msg.MinInnerRedemptionRate) { + return errorsmod.Wrapf(ErrInvalidBounds, "Inner max safety threshold (%s) is less than inner min safety threshold (%s)", msg.MaxInnerRedemptionRate, msg.MinInnerRedemptionRate) + } + if err := utils.ValidateAdminAddress(msg.Creator); err != nil { + return err + } + return nil +} diff --git a/x/stakeibc/types/tx.pb.go b/x/stakeibc/types/tx.pb.go index e987b67adc..3580557e09 100644 --- a/x/stakeibc/types/tx.pb.go +++ b/x/stakeibc/types/tx.pb.go @@ -30,6 +30,100 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +type MsgUpdateInnerRedemptionRateBounds struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + MinInnerRedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=min_inner_redemption_rate,json=minInnerRedemptionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"min_inner_redemption_rate"` + MaxInnerRedemptionRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=max_inner_redemption_rate,json=maxInnerRedemptionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"max_inner_redemption_rate"` +} + +func (m *MsgUpdateInnerRedemptionRateBounds) Reset() { *m = MsgUpdateInnerRedemptionRateBounds{} } +func (m *MsgUpdateInnerRedemptionRateBounds) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateInnerRedemptionRateBounds) ProtoMessage() {} +func (*MsgUpdateInnerRedemptionRateBounds) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7e09c9ad51cd54, []int{0} +} +func (m *MsgUpdateInnerRedemptionRateBounds) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateInnerRedemptionRateBounds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateInnerRedemptionRateBounds.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateInnerRedemptionRateBounds) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateInnerRedemptionRateBounds.Merge(m, src) +} +func (m *MsgUpdateInnerRedemptionRateBounds) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateInnerRedemptionRateBounds) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateInnerRedemptionRateBounds.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateInnerRedemptionRateBounds proto.InternalMessageInfo + +func (m *MsgUpdateInnerRedemptionRateBounds) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgUpdateInnerRedemptionRateBounds) GetChainId() string { + if m != nil { + return m.ChainId + } + return "" +} + +type MsgUpdateInnerRedemptionRateBoundsResponse struct { +} + +func (m *MsgUpdateInnerRedemptionRateBoundsResponse) Reset() { + *m = MsgUpdateInnerRedemptionRateBoundsResponse{} +} +func (m *MsgUpdateInnerRedemptionRateBoundsResponse) String() string { + return proto.CompactTextString(m) +} +func (*MsgUpdateInnerRedemptionRateBoundsResponse) ProtoMessage() {} +func (*MsgUpdateInnerRedemptionRateBoundsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7e09c9ad51cd54, []int{1} +} +func (m *MsgUpdateInnerRedemptionRateBoundsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateInnerRedemptionRateBoundsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateInnerRedemptionRateBoundsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgUpdateInnerRedemptionRateBoundsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateInnerRedemptionRateBoundsResponse.Merge(m, src) +} +func (m *MsgUpdateInnerRedemptionRateBoundsResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateInnerRedemptionRateBoundsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateInnerRedemptionRateBoundsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateInnerRedemptionRateBoundsResponse proto.InternalMessageInfo + type MsgLiquidStake struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"` @@ -40,7 +134,7 @@ func (m *MsgLiquidStake) Reset() { *m = MsgLiquidStake{} } func (m *MsgLiquidStake) String() string { return proto.CompactTextString(m) } func (*MsgLiquidStake) ProtoMessage() {} func (*MsgLiquidStake) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{0} + return fileDescriptor_9b7e09c9ad51cd54, []int{2} } func (m *MsgLiquidStake) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -90,7 +184,7 @@ func (m *MsgLiquidStakeResponse) Reset() { *m = MsgLiquidStakeResponse{} func (m *MsgLiquidStakeResponse) String() string { return proto.CompactTextString(m) } func (*MsgLiquidStakeResponse) ProtoMessage() {} func (*MsgLiquidStakeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{1} + return fileDescriptor_9b7e09c9ad51cd54, []int{3} } func (m *MsgLiquidStakeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -129,7 +223,7 @@ func (m *MsgLSMLiquidStake) Reset() { *m = MsgLSMLiquidStake{} } func (m *MsgLSMLiquidStake) String() string { return proto.CompactTextString(m) } func (*MsgLSMLiquidStake) ProtoMessage() {} func (*MsgLSMLiquidStake) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{2} + return fileDescriptor_9b7e09c9ad51cd54, []int{4} } func (m *MsgLSMLiquidStake) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -180,7 +274,7 @@ func (m *MsgLSMLiquidStakeResponse) Reset() { *m = MsgLSMLiquidStakeResp func (m *MsgLSMLiquidStakeResponse) String() string { return proto.CompactTextString(m) } func (*MsgLSMLiquidStakeResponse) ProtoMessage() {} func (*MsgLSMLiquidStakeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{3} + return fileDescriptor_9b7e09c9ad51cd54, []int{5} } func (m *MsgLSMLiquidStakeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -227,7 +321,7 @@ func (m *MsgClearBalance) Reset() { *m = MsgClearBalance{} } func (m *MsgClearBalance) String() string { return proto.CompactTextString(m) } func (*MsgClearBalance) ProtoMessage() {} func (*MsgClearBalance) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{4} + return fileDescriptor_9b7e09c9ad51cd54, []int{6} } func (m *MsgClearBalance) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -284,7 +378,7 @@ func (m *MsgClearBalanceResponse) Reset() { *m = MsgClearBalanceResponse func (m *MsgClearBalanceResponse) String() string { return proto.CompactTextString(m) } func (*MsgClearBalanceResponse) ProtoMessage() {} func (*MsgClearBalanceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{5} + return fileDescriptor_9b7e09c9ad51cd54, []int{7} } func (m *MsgClearBalanceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -324,7 +418,7 @@ func (m *MsgRedeemStake) Reset() { *m = MsgRedeemStake{} } func (m *MsgRedeemStake) String() string { return proto.CompactTextString(m) } func (*MsgRedeemStake) ProtoMessage() {} func (*MsgRedeemStake) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{6} + return fileDescriptor_9b7e09c9ad51cd54, []int{8} } func (m *MsgRedeemStake) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -381,7 +475,7 @@ func (m *MsgRedeemStakeResponse) Reset() { *m = MsgRedeemStakeResponse{} func (m *MsgRedeemStakeResponse) String() string { return proto.CompactTextString(m) } func (*MsgRedeemStakeResponse) ProtoMessage() {} func (*MsgRedeemStakeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{7} + return fileDescriptor_9b7e09c9ad51cd54, []int{9} } func (m *MsgRedeemStakeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -428,7 +522,7 @@ func (m *MsgRegisterHostZone) Reset() { *m = MsgRegisterHostZone{} } func (m *MsgRegisterHostZone) String() string { return proto.CompactTextString(m) } func (*MsgRegisterHostZone) ProtoMessage() {} func (*MsgRegisterHostZone) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{8} + return fileDescriptor_9b7e09c9ad51cd54, []int{10} } func (m *MsgRegisterHostZone) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -464,7 +558,7 @@ func (m *MsgRegisterHostZoneResponse) Reset() { *m = MsgRegisterHostZone func (m *MsgRegisterHostZoneResponse) String() string { return proto.CompactTextString(m) } func (*MsgRegisterHostZoneResponse) ProtoMessage() {} func (*MsgRegisterHostZoneResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{9} + return fileDescriptor_9b7e09c9ad51cd54, []int{11} } func (m *MsgRegisterHostZoneResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -505,7 +599,7 @@ func (m *MsgClaimUndelegatedTokens) Reset() { *m = MsgClaimUndelegatedTo func (m *MsgClaimUndelegatedTokens) String() string { return proto.CompactTextString(m) } func (*MsgClaimUndelegatedTokens) ProtoMessage() {} func (*MsgClaimUndelegatedTokens) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{10} + return fileDescriptor_9b7e09c9ad51cd54, []int{12} } func (m *MsgClaimUndelegatedTokens) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -569,7 +663,7 @@ func (m *MsgClaimUndelegatedTokensResponse) Reset() { *m = MsgClaimUndel func (m *MsgClaimUndelegatedTokensResponse) String() string { return proto.CompactTextString(m) } func (*MsgClaimUndelegatedTokensResponse) ProtoMessage() {} func (*MsgClaimUndelegatedTokensResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{11} + return fileDescriptor_9b7e09c9ad51cd54, []int{13} } func (m *MsgClaimUndelegatedTokensResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -608,7 +702,7 @@ func (m *MsgRebalanceValidators) Reset() { *m = MsgRebalanceValidators{} func (m *MsgRebalanceValidators) String() string { return proto.CompactTextString(m) } func (*MsgRebalanceValidators) ProtoMessage() {} func (*MsgRebalanceValidators) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{12} + return fileDescriptor_9b7e09c9ad51cd54, []int{14} } func (m *MsgRebalanceValidators) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -665,7 +759,7 @@ func (m *MsgRebalanceValidatorsResponse) Reset() { *m = MsgRebalanceVali func (m *MsgRebalanceValidatorsResponse) String() string { return proto.CompactTextString(m) } func (*MsgRebalanceValidatorsResponse) ProtoMessage() {} func (*MsgRebalanceValidatorsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{13} + return fileDescriptor_9b7e09c9ad51cd54, []int{15} } func (m *MsgRebalanceValidatorsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -704,7 +798,7 @@ func (m *MsgAddValidators) Reset() { *m = MsgAddValidators{} } func (m *MsgAddValidators) String() string { return proto.CompactTextString(m) } func (*MsgAddValidators) ProtoMessage() {} func (*MsgAddValidators) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{14} + return fileDescriptor_9b7e09c9ad51cd54, []int{16} } func (m *MsgAddValidators) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -761,7 +855,7 @@ func (m *MsgAddValidatorsResponse) Reset() { *m = MsgAddValidatorsRespon func (m *MsgAddValidatorsResponse) String() string { return proto.CompactTextString(m) } func (*MsgAddValidatorsResponse) ProtoMessage() {} func (*MsgAddValidatorsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{15} + return fileDescriptor_9b7e09c9ad51cd54, []int{17} } func (m *MsgAddValidatorsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -801,7 +895,7 @@ func (m *MsgChangeValidatorWeight) Reset() { *m = MsgChangeValidatorWeig func (m *MsgChangeValidatorWeight) String() string { return proto.CompactTextString(m) } func (*MsgChangeValidatorWeight) ProtoMessage() {} func (*MsgChangeValidatorWeight) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{16} + return fileDescriptor_9b7e09c9ad51cd54, []int{18} } func (m *MsgChangeValidatorWeight) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -865,7 +959,7 @@ func (m *MsgChangeValidatorWeightResponse) Reset() { *m = MsgChangeValid func (m *MsgChangeValidatorWeightResponse) String() string { return proto.CompactTextString(m) } func (*MsgChangeValidatorWeightResponse) ProtoMessage() {} func (*MsgChangeValidatorWeightResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{17} + return fileDescriptor_9b7e09c9ad51cd54, []int{19} } func (m *MsgChangeValidatorWeightResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -904,7 +998,7 @@ func (m *MsgDeleteValidator) Reset() { *m = MsgDeleteValidator{} } func (m *MsgDeleteValidator) String() string { return proto.CompactTextString(m) } func (*MsgDeleteValidator) ProtoMessage() {} func (*MsgDeleteValidator) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{18} + return fileDescriptor_9b7e09c9ad51cd54, []int{20} } func (m *MsgDeleteValidator) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -961,7 +1055,7 @@ func (m *MsgDeleteValidatorResponse) Reset() { *m = MsgDeleteValidatorRe func (m *MsgDeleteValidatorResponse) String() string { return proto.CompactTextString(m) } func (*MsgDeleteValidatorResponse) ProtoMessage() {} func (*MsgDeleteValidatorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{19} + return fileDescriptor_9b7e09c9ad51cd54, []int{21} } func (m *MsgDeleteValidatorResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1000,7 +1094,7 @@ func (m *MsgRestoreInterchainAccount) Reset() { *m = MsgRestoreInterchai func (m *MsgRestoreInterchainAccount) String() string { return proto.CompactTextString(m) } func (*MsgRestoreInterchainAccount) ProtoMessage() {} func (*MsgRestoreInterchainAccount) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{20} + return fileDescriptor_9b7e09c9ad51cd54, []int{22} } func (m *MsgRestoreInterchainAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1057,7 +1151,7 @@ func (m *MsgRestoreInterchainAccountResponse) Reset() { *m = MsgRestoreI func (m *MsgRestoreInterchainAccountResponse) String() string { return proto.CompactTextString(m) } func (*MsgRestoreInterchainAccountResponse) ProtoMessage() {} func (*MsgRestoreInterchainAccountResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{21} + return fileDescriptor_9b7e09c9ad51cd54, []int{23} } func (m *MsgRestoreInterchainAccountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1096,7 +1190,7 @@ func (m *MsgUpdateValidatorSharesExchRate) Reset() { *m = MsgUpdateValid func (m *MsgUpdateValidatorSharesExchRate) String() string { return proto.CompactTextString(m) } func (*MsgUpdateValidatorSharesExchRate) ProtoMessage() {} func (*MsgUpdateValidatorSharesExchRate) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{22} + return fileDescriptor_9b7e09c9ad51cd54, []int{24} } func (m *MsgUpdateValidatorSharesExchRate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1155,7 +1249,7 @@ func (m *MsgUpdateValidatorSharesExchRateResponse) Reset() { func (m *MsgUpdateValidatorSharesExchRateResponse) String() string { return proto.CompactTextString(m) } func (*MsgUpdateValidatorSharesExchRateResponse) ProtoMessage() {} func (*MsgUpdateValidatorSharesExchRateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b7e09c9ad51cd54, []int{23} + return fileDescriptor_9b7e09c9ad51cd54, []int{25} } func (m *MsgUpdateValidatorSharesExchRateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1185,6 +1279,8 @@ func (m *MsgUpdateValidatorSharesExchRateResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdateValidatorSharesExchRateResponse proto.InternalMessageInfo func init() { + proto.RegisterType((*MsgUpdateInnerRedemptionRateBounds)(nil), "stride.stakeibc.MsgUpdateInnerRedemptionRateBounds") + proto.RegisterType((*MsgUpdateInnerRedemptionRateBoundsResponse)(nil), "stride.stakeibc.MsgUpdateInnerRedemptionRateBoundsResponse") proto.RegisterType((*MsgLiquidStake)(nil), "stride.stakeibc.MsgLiquidStake") proto.RegisterType((*MsgLiquidStakeResponse)(nil), "stride.stakeibc.MsgLiquidStakeResponse") proto.RegisterType((*MsgLSMLiquidStake)(nil), "stride.stakeibc.MsgLSMLiquidStake") @@ -1214,90 +1310,96 @@ func init() { func init() { proto.RegisterFile("stride/stakeibc/tx.proto", fileDescriptor_9b7e09c9ad51cd54) } var fileDescriptor_9b7e09c9ad51cd54 = []byte{ - // 1327 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0x4f, 0x6f, 0x1b, 0x45, - 0x14, 0xcf, 0x36, 0x69, 0xea, 0xbe, 0x38, 0xff, 0x36, 0x69, 0xbb, 0xd9, 0x52, 0xdb, 0xdd, 0xf0, - 0x27, 0x14, 0x62, 0x2b, 0x69, 0x25, 0x44, 0x05, 0x87, 0x38, 0x29, 0xc2, 0x52, 0x53, 0xa1, 0x4d, - 0x4b, 0xa5, 0x4a, 0x68, 0x19, 0xef, 0x4c, 0xd7, 0xab, 0xee, 0xce, 0xb8, 0x3b, 0xeb, 0xe0, 0x72, - 0x40, 0x5c, 0x90, 0xb8, 0x20, 0x81, 0x90, 0x38, 0xa2, 0x1e, 0x38, 0x20, 0x71, 0x43, 0xfd, 0x10, - 0x3d, 0x56, 0x3d, 0x21, 0x0e, 0x16, 0x6a, 0x2f, 0x9c, 0xf3, 0x09, 0xd0, 0xce, 0xae, 0xc7, 0xbb, - 0xf6, 0xc6, 0x49, 0x5b, 0xd4, 0x53, 0xfc, 0xe6, 0xfd, 0xe6, 0xbd, 0xdf, 0x7b, 0xf3, 0xe6, 0xcd, - 0xcb, 0x82, 0xc6, 0xc3, 0xc0, 0xc5, 0xa4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87, 0xd4, 0x5b, 0x3e, 0x5a, 0xbf, - 0xf2, 0x22, 0x68, 0xe9, 0xff, 0x07, 0x05, 0x2e, 0x8c, 0x6f, 0x63, 0xb9, 0x99, 0x1b, 0xbb, 0x45, - 0xff, 0xf0, 0x85, 0xb7, 0x48, 0x3e, 0x77, 0xa0, 0x98, 0xf9, 0x2f, 0xae, 0x92, 0x5f, 0xff, 0x03, - 0x84, 0xbe, 0x76, 0x14, 0xa2, 0x6f, 0xbb, 0x7e, 0xfd, 0xf1, 0xb3, 0x92, 0xf2, 0xe4, 0x59, 0x49, - 0xf9, 0xe7, 0x59, 0x49, 0xf9, 0xf1, 0x79, 0x69, 0xe2, 0xc9, 0xf3, 0xd2, 0xc4, 0x5f, 0xcf, 0x4b, - 0x13, 0x77, 0x36, 0x53, 0x83, 0xe8, 0x9e, 0xb0, 0xb6, 0x7e, 0x1d, 0x35, 0x79, 0x2d, 0xf9, 0x9a, - 0xb0, 0xbf, 0x71, 0xa5, 0xd6, 0x4d, 0x7d, 0xa1, 0x88, 0x06, 0xd3, 0xe6, 0xb4, 0xf8, 0x3e, 0x70, - 0xf9, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xbc, 0xd4, 0x1b, 0x0b, 0xc1, 0x10, 0x00, 0x00, + // 1409 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcf, 0x6f, 0x1b, 0x45, + 0x14, 0xce, 0x36, 0x69, 0x9a, 0xbe, 0x38, 0xbf, 0x36, 0x69, 0xba, 0xd9, 0x52, 0xdb, 0xdd, 0xf0, + 0x23, 0x94, 0xc6, 0x56, 0x92, 0x4a, 0x88, 0x02, 0x87, 0x38, 0x29, 0xc2, 0x52, 0x5d, 0xa1, 0x4d, + 0x4b, 0xa5, 0x4a, 0x68, 0x19, 0xef, 0x4e, 0xd7, 0xab, 0xee, 0xce, 0xba, 0x3b, 0xeb, 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8f, 0x9f, 0xe5, 0xa5, 0x27, + 0xcf, 0xf2, 0xd2, 0xbf, 0xcf, 0xf2, 0xd2, 0x0f, 0xcf, 0xf3, 0x63, 0x4f, 0x9e, 0xe7, 0xc7, 0xfe, + 0x7e, 0x9e, 0x1f, 0xbb, 0xbd, 0xd9, 0xd7, 0x1e, 0xef, 0x71, 0x82, 0xf5, 0x6b, 0xa8, 0x4e, 0xcb, + 0xf1, 0xf7, 0xa5, 0xfd, 0x8d, 0xcb, 0xe5, 0x76, 0xdf, 0x37, 0x2b, 0xd6, 0x2e, 0xd7, 0x27, 0xf9, + 0x17, 0xa3, 0xad, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0x05, 0x5b, 0x99, 0x1e, 0xd3, 0x12, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1324,6 +1426,7 @@ type MsgClient interface { RestoreInterchainAccount(ctx context.Context, in *MsgRestoreInterchainAccount, opts ...grpc.CallOption) (*MsgRestoreInterchainAccountResponse, error) UpdateValidatorSharesExchRate(ctx context.Context, in *MsgUpdateValidatorSharesExchRate, opts ...grpc.CallOption) (*MsgUpdateValidatorSharesExchRateResponse, error) ClearBalance(ctx context.Context, in *MsgClearBalance, opts ...grpc.CallOption) (*MsgClearBalanceResponse, error) + UpdateInnerRedemptionRateBounds(ctx context.Context, in *MsgUpdateInnerRedemptionRateBounds, opts ...grpc.CallOption) (*MsgUpdateInnerRedemptionRateBoundsResponse, error) } type msgClient struct { @@ -1442,6 +1545,15 @@ func (c *msgClient) ClearBalance(ctx context.Context, in *MsgClearBalance, opts return out, nil } +func (c *msgClient) UpdateInnerRedemptionRateBounds(ctx context.Context, in *MsgUpdateInnerRedemptionRateBounds, opts ...grpc.CallOption) (*MsgUpdateInnerRedemptionRateBoundsResponse, error) { + out := new(MsgUpdateInnerRedemptionRateBoundsResponse) + err := c.cc.Invoke(ctx, "/stride.stakeibc.Msg/UpdateInnerRedemptionRateBounds", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // MsgServer is the server API for Msg service. type MsgServer interface { LiquidStake(context.Context, *MsgLiquidStake) (*MsgLiquidStakeResponse, error) @@ -1456,6 +1568,7 @@ type MsgServer interface { RestoreInterchainAccount(context.Context, *MsgRestoreInterchainAccount) (*MsgRestoreInterchainAccountResponse, error) UpdateValidatorSharesExchRate(context.Context, *MsgUpdateValidatorSharesExchRate) (*MsgUpdateValidatorSharesExchRateResponse, error) ClearBalance(context.Context, *MsgClearBalance) (*MsgClearBalanceResponse, error) + UpdateInnerRedemptionRateBounds(context.Context, *MsgUpdateInnerRedemptionRateBounds) (*MsgUpdateInnerRedemptionRateBoundsResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. @@ -1498,6 +1611,9 @@ func (*UnimplementedMsgServer) UpdateValidatorSharesExchRate(ctx context.Context func (*UnimplementedMsgServer) ClearBalance(ctx context.Context, req *MsgClearBalance) (*MsgClearBalanceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ClearBalance not implemented") } +func (*UnimplementedMsgServer) UpdateInnerRedemptionRateBounds(ctx context.Context, req *MsgUpdateInnerRedemptionRateBounds) (*MsgUpdateInnerRedemptionRateBoundsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateInnerRedemptionRateBounds not implemented") +} func RegisterMsgServer(s grpc1.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) @@ -1719,6 +1835,24 @@ func _Msg_ClearBalance_Handler(srv interface{}, ctx context.Context, dec func(in return interceptor(ctx, in, info, handler) } +func _Msg_UpdateInnerRedemptionRateBounds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateInnerRedemptionRateBounds) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateInnerRedemptionRateBounds(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.stakeibc.Msg/UpdateInnerRedemptionRateBounds", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateInnerRedemptionRateBounds(ctx, req.(*MsgUpdateInnerRedemptionRateBounds)) + } + return interceptor(ctx, in, info, handler) +} + var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "stride.stakeibc.Msg", HandlerType: (*MsgServer)(nil), @@ -1771,11 +1905,95 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "ClearBalance", Handler: _Msg_ClearBalance_Handler, }, + { + MethodName: "UpdateInnerRedemptionRateBounds", + Handler: _Msg_UpdateInnerRedemptionRateBounds_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "stride/stakeibc/tx.proto", } +func (m *MsgUpdateInnerRedemptionRateBounds) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUpdateInnerRedemptionRateBounds) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateInnerRedemptionRateBounds) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.MaxInnerRedemptionRate.Size() + i -= size + if _, err := m.MaxInnerRedemptionRate.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size := m.MinInnerRedemptionRate.Size() + i -= size + if _, err := m.MinInnerRedemptionRate.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.ChainId) > 0 { + i -= len(m.ChainId) + copy(dAtA[i:], m.ChainId) + i = encodeVarintTx(dAtA, i, uint64(len(m.ChainId))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateInnerRedemptionRateBoundsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgUpdateInnerRedemptionRateBoundsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateInnerRedemptionRateBoundsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + func (m *MsgLiquidStake) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -2696,6 +2914,36 @@ func encodeVarintTx(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } +func (m *MsgUpdateInnerRedemptionRateBounds) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ChainId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.MinInnerRedemptionRate.Size() + n += 1 + l + sovTx(uint64(l)) + l = m.MaxInnerRedemptionRate.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgUpdateInnerRedemptionRateBoundsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + func (m *MsgLiquidStake) Size() (n int) { if m == nil { return 0 @@ -3093,6 +3341,238 @@ func sovTx(x uint64) (n int) { func sozTx(x uint64) (n int) { return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (m *MsgUpdateInnerRedemptionRateBounds) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgUpdateInnerRedemptionRateBounds: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateInnerRedemptionRateBounds: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChainId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChainId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MinInnerRedemptionRate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MinInnerRedemptionRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxInnerRedemptionRate", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MaxInnerRedemptionRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUpdateInnerRedemptionRateBoundsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgUpdateInnerRedemptionRateBoundsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateInnerRedemptionRateBoundsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *MsgLiquidStake) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0