diff --git a/app/upgrades.go b/app/upgrades.go index bbc9b3757c..591b9c44ec 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -19,6 +19,7 @@ import ( v13 "github.com/Stride-Labs/stride/v15/app/upgrades/v13" v14 "github.com/Stride-Labs/stride/v15/app/upgrades/v14" v15 "github.com/Stride-Labs/stride/v15/app/upgrades/v15" + v16 "github.com/Stride-Labs/stride/v15/app/upgrades/v16" v2 "github.com/Stride-Labs/stride/v15/app/upgrades/v2" v3 "github.com/Stride-Labs/stride/v15/app/upgrades/v3" v4 "github.com/Stride-Labs/stride/v15/app/upgrades/v4" @@ -204,6 +205,17 @@ func (app *StrideApp) setupUpgradeHandlers(appOpts servertypes.AppOptions) { ), ) + // v16 upgrade handler + app.UpgradeKeeper.SetUpgradeHandler( + v16.UpgradeName, + v16.CreateUpgradeHandler( + app.mm, + app.configurator, + app.StakeibcKeeper, + app.RatelimitKeeper, + ), + ) + upgradeInfo, err := app.UpgradeKeeper.ReadUpgradeInfoFromDisk() if err != nil { panic(fmt.Errorf("Failed to read upgrade info from disk: %w", err)) diff --git a/app/upgrades/README.md b/app/upgrades/README.md index ec0d5a36ed..5137957838 100644 --- a/app/upgrades/README.md +++ b/app/upgrades/README.md @@ -63,20 +63,20 @@ func (app *StrideApp) setupUpgradeHandlers() { } ``` -# Migrations (Only required if the state changed) -## Store Old Proto Types +## Migrations (Only required if the state changed) +### Store Old Proto Types ```go // x/{moduleName}/migrations/{oldVersion}/types/{data_type}.pb.go ``` -## Increment the Module's Consensus Version +### Increment the Module's Consensus Version * The consensus version is different from the chain version - it is specific to each module and is incremented every time state is migrated ```go // x/{moduleName}/module.go func (AppModule) ConsensusVersion() uint64 { return 2 } ``` -## Define Migration Logic +### Define Migration Logic ```go // x/{moduleName}/migrations/{new-consensus-version}/migrations.go package {upgradeVersion} @@ -93,7 +93,7 @@ func MigrateStore(ctx sdk.Context) error { } ``` -## Specify the Migration in the Upgrade Handler +### Specify the Migration in the Upgrade Handler ```go // app/upgrades/{upgradeVersion}/upgrades.go @@ -118,10 +118,22 @@ func CreateUpgradeHandler( } ``` -## Add Additional Parameters to `CreateUpgradeHandler` Invocation +### Add Additional Parameters to `CreateUpgradeHandler` Invocation ```go // app/upgrades.go ... {upgradeVersion}.CreateUpgradeHandler(app.mm, app.configurator, app.appCodec, app.{module}Keeper), ... -``` \ No newline at end of file +``` + +## Import Paths +* Go to GitHub Actions and manually trigger the "Version" job +* This will replace the import path of each file and open a new PR with the changes +* To make the review easier, you can pipe the diffs into a file and open them in an editor which will let you quickly scroll through them (rather than having to wait for each file to render on github) +``` +git diff origin/main..origin/actions/update-stride-version-{upgradeVersion} > diffs.txt +``` + +## Changelog +* Go to GitHub Actions and manually trigger the "Changelog" job +* This will open a PR with the changes \ No newline at end of file diff --git a/app/upgrades/v16/upgrades.go b/app/upgrades/v16/upgrades.go new file mode 100644 index 0000000000..e8df3d8372 --- /dev/null +++ b/app/upgrades/v16/upgrades.go @@ -0,0 +1,46 @@ +package v16 + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/module" + upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" + + ratelimitkeeper "github.com/Stride-Labs/stride/v15/x/ratelimit/keeper" + stakeibckeeper "github.com/Stride-Labs/stride/v15/x/stakeibc/keeper" + stakeibctypes "github.com/Stride-Labs/stride/v15/x/stakeibc/types" +) + +var ( + UpgradeName = "v16" + + CosmosHubChainId = "cosmoshub-4" + CosmosHubStToken = "stuatom" +) + +// CreateUpgradeHandler creates an SDK upgrade handler for v15 +func CreateUpgradeHandler( + mm *module.Manager, + configurator module.Configurator, + stakeibcKeeper stakeibckeeper.Keeper, + ratelimitKeeper ratelimitkeeper.Keeper, +) upgradetypes.UpgradeHandler { + return func(ctx sdk.Context, _ upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { + ctx.Logger().Info("Starting upgrade v16...") + + // unhalt Cosmos Hub host zone + ctx.Logger().Info("Unhalting Cosmos Hub...") + hostZone, found := stakeibcKeeper.GetHostZone(ctx, CosmosHubChainId) + if !found { + return vm, stakeibctypes.ErrHostZoneNotFound.Wrap(CosmosHubChainId) + } + + hostZone.Halted = false + stakeibcKeeper.SetHostZone(ctx, hostZone) + + // remove stuatom from rate limits + ctx.Logger().Info("Removing stuatom as a blacklisted asset...") + ratelimitKeeper.RemoveDenomFromBlacklist(ctx, CosmosHubStToken) + + return mm.RunMigrations(ctx, configurator, vm) + } +} diff --git a/app/upgrades/v16/upgrades_test.go b/app/upgrades/v16/upgrades_test.go new file mode 100644 index 0000000000..2859612f39 --- /dev/null +++ b/app/upgrades/v16/upgrades_test.go @@ -0,0 +1,85 @@ +package v16_test + +import ( + "fmt" + "testing" + + sdk "github.com/cosmos/cosmos-sdk/types" + + "github.com/stretchr/testify/suite" + + "github.com/Stride-Labs/stride/v15/app/apptesting" + stakeibctypes "github.com/Stride-Labs/stride/v15/x/stakeibc/types" +) + +type UpgradeTestSuite struct { + apptesting.AppTestHelper +} + +func (s *UpgradeTestSuite) SetupTest() { + s.Setup() +} + +var ( + CosmosHubChainIdTest = "cosmoshub-4" +) + +func TestKeeperTestSuite(t *testing.T) { + suite.Run(t, new(UpgradeTestSuite)) +} + +func (s *UpgradeTestSuite) TestUpgrade() { + dummyUpgradeHeight := int64(5) + + // Setup the store before the ugprade + checkCosmosHubAfterUpgrade := s.SetupHostZonesBeforeUpgrade() + + // Run the upgrade to set the bounds and clear pending queries + s.ConfirmUpgradeSucceededs("v16", dummyUpgradeHeight) + + // Check the store after the upgrade + checkCosmosHubAfterUpgrade() +} + +func (s *UpgradeTestSuite) SetupHostZonesBeforeUpgrade() func() { + + // Create 10 dummy host zones + for i := 0; i < 10; i++ { + chainId := fmt.Sprintf("chain-%d", i) + + hostZone := stakeibctypes.HostZone{ + ChainId: chainId, + Halted: false, + RedemptionRate: sdk.MustNewDecFromStr("1.0"), + MinInnerRedemptionRate: sdk.MustNewDecFromStr("0.95"), + MinRedemptionRate: sdk.MustNewDecFromStr("0.97"), + MaxInnerRedemptionRate: sdk.MustNewDecFromStr("1.05"), + MaxRedemptionRate: sdk.MustNewDecFromStr("1.10"), + } + s.App.StakeibcKeeper.SetHostZone(s.Ctx, hostZone) + } + // create Cosmos Hub Host Zone + hostZone := stakeibctypes.HostZone{ + ChainId: CosmosHubChainIdTest, + Halted: true, + RedemptionRate: sdk.MustNewDecFromStr("1.0"), + MinInnerRedemptionRate: sdk.MustNewDecFromStr("0.95"), + MinRedemptionRate: sdk.MustNewDecFromStr("0.97"), + MaxInnerRedemptionRate: sdk.MustNewDecFromStr("1.05"), + MaxRedemptionRate: sdk.MustNewDecFromStr("1.10"), + } + s.App.StakeibcKeeper.SetHostZone(s.Ctx, hostZone) + + return func() { + + hostZones := s.App.StakeibcKeeper.GetAllHostZone(s.Ctx) + + for _, hostZone := range hostZones { + s.Require().False(hostZone.Halted, fmt.Sprintf("host zone %s should not be halted: %v", hostZone.ChainId, hostZone)) + } + // Confirm Cosmos Hub host zone is not unhalted + cosmosHubHostZone, found := s.App.StakeibcKeeper.GetHostZone(s.Ctx, CosmosHubChainIdTest) + s.Require().True(found, "Cosmos Hub host zone not found!") + s.Require().False(cosmosHubHostZone.Halted, "Cosmos Hub host zone should not be halted") + } +} diff --git a/proto/stride/stakeibc/tx.proto b/proto/stride/stakeibc/tx.proto index f62c63825c..df7c0b8ca1 100644 --- a/proto/stride/stakeibc/tx.proto +++ b/proto/stride/stakeibc/tx.proto @@ -33,6 +33,7 @@ service Msg { rpc UndelegateHost(MsgUndelegateHost) returns (MsgUndelegateHostResponse); rpc UpdateInnerRedemptionRateBounds(MsgUpdateInnerRedemptionRateBounds) returns (MsgUpdateInnerRedemptionRateBoundsResponse); + rpc ResumeHostZone(MsgResumeHostZone) returns (MsgResumeHostZoneResponse); } message MsgUpdateInnerRedemptionRateBounds { @@ -188,3 +189,9 @@ message MsgCalibrateDelegation { string valoper = 3; } message MsgCalibrateDelegationResponse {} + +message MsgResumeHostZone { + string creator = 1; + string chain_id = 2; +} +message MsgResumeHostZoneResponse {} \ No newline at end of file diff --git a/x/stakeibc/client/cli/tx.go b/x/stakeibc/client/cli/tx.go index c58b818b89..ff5edaf35d 100644 --- a/x/stakeibc/client/cli/tx.go +++ b/x/stakeibc/client/cli/tx.go @@ -39,6 +39,7 @@ func GetTxCmd() *cobra.Command { cmd.AddCommand(CmdClearBalance()) cmd.AddCommand(CmdUndelegateHost()) cmd.AddCommand(CmdUpdateInnerRedemptionRateBounds()) + cmd.AddCommand(CmdResumeHostZone()) return cmd } diff --git a/x/stakeibc/client/cli/tx_resume_host_zone.go b/x/stakeibc/client/cli/tx_resume_host_zone.go new file mode 100644 index 0000000000..30f60501de --- /dev/null +++ b/x/stakeibc/client/cli/tx_resume_host_zone.go @@ -0,0 +1,39 @@ +package cli + +import ( + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/cosmos/cosmos-sdk/client/tx" + "github.com/spf13/cobra" + + "github.com/Stride-Labs/stride/v15/x/stakeibc/types" +) + +func CmdResumeHostZone() *cobra.Command { + cmd := &cobra.Command{ + Use: "resume-host-zone [chainid]", + Short: "Broadcast message resume-host-zone", + Args: cobra.ExactArgs(1), + RunE: func(cmd *cobra.Command, args []string) (err error) { + argChainId := args[0] + + clientCtx, err := client.GetClientTxContext(cmd) + if err != nil { + return err + } + + msg := types.NewMsgResumeHostZone( + clientCtx.GetFromAddress().String(), + argChainId, + ) + 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 ba216c46bd..c06f1a4dea 100644 --- a/x/stakeibc/handler.go +++ b/x/stakeibc/handler.go @@ -67,6 +67,9 @@ func NewMessageHandler(k keeper.Keeper) sdk.Handler { case *types.MsgUpdateInnerRedemptionRateBounds: res, err := msgServer.UpdateInnerRedemptionRateBounds(sdk.WrapSDKContext(ctx), msg) return sdk.WrapServiceResult(ctx, res, err) + case *types.MsgResumeHostZone: + res, err := msgServer.ResumeHostZone(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/msg_server_lsm_liquid_stake.go b/x/stakeibc/keeper/msg_server_lsm_liquid_stake.go index a458c7eb7d..cad193efa6 100644 --- a/x/stakeibc/keeper/msg_server_lsm_liquid_stake.go +++ b/x/stakeibc/keeper/msg_server_lsm_liquid_stake.go @@ -67,6 +67,10 @@ func (k Keeper) StartLSMLiquidStake(ctx sdk.Context, msg types.MsgLSMLiquidStake } hostZone := lsmLiquidStake.HostZone + if hostZone.Halted { + return types.LSMLiquidStake{}, errorsmod.Wrapf(types.ErrHaltedHostZone, "host zone %s is halted", hostZone.ChainId) + } + // Check if we already have tokens with this denom in records _, found := k.RecordsKeeper.GetLSMTokenDeposit(ctx, hostZone.ChainId, lsmLiquidStake.Deposit.Denom) if found { diff --git a/x/stakeibc/keeper/msg_server_resume_host_zone.go b/x/stakeibc/keeper/msg_server_resume_host_zone.go new file mode 100644 index 0000000000..96857bf111 --- /dev/null +++ b/x/stakeibc/keeper/msg_server_resume_host_zone.go @@ -0,0 +1,40 @@ +package keeper + +import ( + "context" + "fmt" + + "github.com/Stride-Labs/stride/v15/x/stakeibc/types" + + errorsmod "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +func (k msgServer) ResumeHostZone(goCtx context.Context, msg *types.MsgResumeHostZone) (*types.MsgResumeHostZoneResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + // Get Host Zone + hostZone, found := k.GetHostZone(ctx, msg.ChainId) + if !found { + errMsg := fmt.Sprintf("invalid chain id, zone for %s not found", msg.ChainId) + k.Logger(ctx).Error(errMsg) + return nil, errorsmod.Wrapf(types.ErrHostZoneNotFound, errMsg) + } + + // Check the zone is halted + if !hostZone.Halted { + errMsg := fmt.Sprintf("invalid chain id, zone for %s not halted", msg.ChainId) + k.Logger(ctx).Error(errMsg) + return nil, errorsmod.Wrapf(types.ErrHostZoneNotHalted, errMsg) + } + + // remove from blacklist + stDenom := types.StAssetDenomFromHostZoneDenom(hostZone.HostDenom) + k.RatelimitKeeper.RemoveDenomFromBlacklist(ctx, stDenom) + + // Resume zone + hostZone.Halted = false + k.SetHostZone(ctx, hostZone) + + return &types.MsgResumeHostZoneResponse{}, nil +} diff --git a/x/stakeibc/keeper/msg_server_resume_host_zone_test.go b/x/stakeibc/keeper/msg_server_resume_host_zone_test.go new file mode 100644 index 0000000000..1ccfea0b89 --- /dev/null +++ b/x/stakeibc/keeper/msg_server_resume_host_zone_test.go @@ -0,0 +1,99 @@ +package keeper_test + +import ( + "fmt" + + sdk "github.com/cosmos/cosmos-sdk/types" + _ "github.com/stretchr/testify/suite" + + stakeibctypes "github.com/Stride-Labs/stride/v15/x/stakeibc/types" +) + +type ResumeHostZoneTestCase struct { + validMsg stakeibctypes.MsgResumeHostZone + zone stakeibctypes.HostZone +} + +func (s *KeeperTestSuite) SetupResumeHostZone() ResumeHostZoneTestCase { + // 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)), + Halted: true, + } + + s.App.StakeibcKeeper.SetHostZone(s.Ctx, hostZone) + + defaultMsg := stakeibctypes.MsgResumeHostZone{ + Creator: s.TestAccs[0].String(), + ChainId: HostChainId, + } + + return ResumeHostZoneTestCase{ + validMsg: defaultMsg, + zone: hostZone, + } +} + +// Verify that bounds can be set successfully +func (s *KeeperTestSuite) TestResumeHostZone_Success() { + tc := s.SetupResumeHostZone() + + // Set the inner bounds on the host zone + _, err := s.GetMsgServer().ResumeHostZone(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().False(zone.Halted, "host zone should not be halted") +} + +// verify that non-admins can't call the tx +func (s *KeeperTestSuite) TestResumeHostZone_NonAdmin() { + tc := s.SetupResumeHostZone() + + invalidMsg := tc.validMsg + invalidMsg.Creator = s.TestAccs[1].String() + + err := invalidMsg.ValidateBasic() + s.Require().Error(err, "nonadmins shouldn't be able to call this tx") +} + +// verify that the function can't be called on missing zones +func (s *KeeperTestSuite) TestResumeHostZone_MissingZones() { + tc := s.SetupResumeHostZone() + + invalidMsg := tc.validMsg + invalidChainId := "invalid-chain" + invalidMsg.ChainId = invalidChainId + + // Set the inner bounds on the host zone + _, err := s.GetMsgServer().ResumeHostZone(s.Ctx, &invalidMsg) + + s.Require().Error(err, "shouldn't be able to call tx on missing zones") + expectedErrorMsg := fmt.Sprintf("invalid chain id, zone for %s not found: host zone not found", invalidChainId) + s.Require().Equal(expectedErrorMsg, err.Error(), "should return correct error msg") +} + +// verify that the function can't be called on unhalted zones +func (s *KeeperTestSuite) TestResumeHostZone_UnhaltedZones() { + tc := s.SetupResumeHostZone() + + zone, found := s.App.StakeibcKeeper.GetHostZone(s.Ctx, HostChainId) + s.Require().True(found, "host zone should be in the store") + s.Require().True(zone.Halted, "host zone should be halted") + zone.Halted = false + s.App.StakeibcKeeper.SetHostZone(s.Ctx, zone) + + // Set the inner bounds on the host zone + _, err := s.GetMsgServer().ResumeHostZone(s.Ctx, &tc.validMsg) + s.Require().Error(err, "shouldn't be able to call tx on unhalted zones") + expectedErrorMsg := fmt.Sprintf("invalid chain id, zone for %s not halted: host zone is not halted", HostChainId) + s.Require().Equal(expectedErrorMsg, err.Error(), "should return correct error msg") +} 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 index 4e0bbff4a5..bfd8a55719 100644 --- a/x/stakeibc/keeper/msg_server_update_inner_redemption_rate_bounds.go +++ b/x/stakeibc/keeper/msg_server_update_inner_redemption_rate_bounds.go @@ -42,6 +42,7 @@ func (k msgServer) UpdateInnerRedemptionRateBounds(goCtx context.Context, msg *t // 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/types/codec.go b/x/stakeibc/types/codec.go index 71a00545b6..a57537ab16 100644 --- a/x/stakeibc/types/codec.go +++ b/x/stakeibc/types/codec.go @@ -26,6 +26,7 @@ func RegisterCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgUndelegateHost{}, "stakeibc/UndelegateHost", nil) cdc.RegisterConcrete(&MsgCalibrateDelegation{}, "stakeibc/CalibrateDelegation", nil) cdc.RegisterConcrete(&MsgUpdateInnerRedemptionRateBounds{}, "stakeibc/UpdateInnerRedemptionRateBounds", nil) + cdc.RegisterConcrete(&MsgResumeHostZone{}, "stakeibc/ResumeHostZone", nil) // this line is used by starport scaffolding # 2 } @@ -45,6 +46,7 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { &MsgUndelegateHost{}, &MsgCalibrateDelegation{}, &MsgUpdateInnerRedemptionRateBounds{}, + &MsgResumeHostZone{}, ) registry.RegisterImplementations((*govtypes.Content)(nil), diff --git a/x/stakeibc/types/errors.go b/x/stakeibc/types/errors.go index 1ab443f0a4..513d44b009 100644 --- a/x/stakeibc/types/errors.go +++ b/x/stakeibc/types/errors.go @@ -58,4 +58,5 @@ var ( ErrUnableToRemoveValidator = errorsmod.Register(ModuleName, 1550, "Unable to remove validator") ErrUndelegateHostNotCallable = errorsmod.Register(ModuleName, 1551, "Undelegate host is disabled") ErrInvalidBounds = errorsmod.Register(ModuleName, 1552, "Invalid safety bounds - inner bounds must be within outer bounds") + ErrHostZoneNotHalted = errorsmod.Register(ModuleName, 1553, "host zone is not halted") ) diff --git a/x/stakeibc/types/events.go b/x/stakeibc/types/events.go index dd5bccb4af..c62f9c3aef 100644 --- a/x/stakeibc/types/events.go +++ b/x/stakeibc/types/events.go @@ -34,7 +34,7 @@ const ( AttributeKeyNativeBaseDenom = "native_base_denom" AttributeKeyNativeIBCDenom = "native_ibc_denom" AttributeKeyTotalUnbondAmount = "total_unbond_amount" - AttributeKeyLSMTokenBaseDenom = "lsm_token_base_denom" + AttributeKeyLSMTokenBaseDenom = "lsm_token_base_denom" // #nosec G101 AttributeKeyNativeAmount = "native_amount" AttributeKeyStTokenAmount = "sttoken_amount" AttributeKeyValidator = "validator" diff --git a/x/stakeibc/types/lsm_msgs.go b/x/stakeibc/types/lsm_msgs.go index 7fd586e6c4..92757e918a 100644 --- a/x/stakeibc/types/lsm_msgs.go +++ b/x/stakeibc/types/lsm_msgs.go @@ -1,3 +1,4 @@ +// #nosec G101 package types import ( @@ -7,10 +8,8 @@ import ( ) // staking message types -// -// #nosec G101 const ( - TypeMsgRedeemTokensForShares = "redeem_tokens_for_shares" + TypeMsgRedeemTokensForShares = "redeem_tokens_for_shares" // #nosec G101 ) var ( diff --git a/x/stakeibc/types/message_resume_host_zone.go b/x/stakeibc/types/message_resume_host_zone.go new file mode 100644 index 0000000000..188a103144 --- /dev/null +++ b/x/stakeibc/types/message_resume_host_zone.go @@ -0,0 +1,52 @@ +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/v15/utils" +) + +const TypeMsgResumeHostZone = "resume_host_zone" + +var _ sdk.Msg = &MsgResumeHostZone{} + +func NewMsgResumeHostZone(creator string, chainId string) *MsgResumeHostZone { + return &MsgResumeHostZone{ + Creator: creator, + ChainId: chainId, + } +} + +func (msg *MsgResumeHostZone) Route() string { + return RouterKey +} + +func (msg *MsgResumeHostZone) Type() string { + return TypeMsgResumeHostZone +} + +func (msg *MsgResumeHostZone) GetSigners() []sdk.AccAddress { + creator, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + panic(err) + } + return []sdk.AccAddress{creator} +} + +func (msg *MsgResumeHostZone) GetSignBytes() []byte { + bz := ModuleCdc.MustMarshalJSON(msg) + return sdk.MustSortJSON(bz) +} + +func (msg *MsgResumeHostZone) ValidateBasic() error { + _, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + } + 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 e58d0709fa..ac5c3e6e6f 100644 --- a/x/stakeibc/types/tx.pb.go +++ b/x/stakeibc/types/tx.pb.go @@ -1455,6 +1455,94 @@ func (m *MsgCalibrateDelegationResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgCalibrateDelegationResponse proto.InternalMessageInfo +type MsgResumeHostZone 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"` +} + +func (m *MsgResumeHostZone) Reset() { *m = MsgResumeHostZone{} } +func (m *MsgResumeHostZone) String() string { return proto.CompactTextString(m) } +func (*MsgResumeHostZone) ProtoMessage() {} +func (*MsgResumeHostZone) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7e09c9ad51cd54, []int{30} +} +func (m *MsgResumeHostZone) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgResumeHostZone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgResumeHostZone.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 *MsgResumeHostZone) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgResumeHostZone.Merge(m, src) +} +func (m *MsgResumeHostZone) XXX_Size() int { + return m.Size() +} +func (m *MsgResumeHostZone) XXX_DiscardUnknown() { + xxx_messageInfo_MsgResumeHostZone.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgResumeHostZone proto.InternalMessageInfo + +func (m *MsgResumeHostZone) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgResumeHostZone) GetChainId() string { + if m != nil { + return m.ChainId + } + return "" +} + +type MsgResumeHostZoneResponse struct { +} + +func (m *MsgResumeHostZoneResponse) Reset() { *m = MsgResumeHostZoneResponse{} } +func (m *MsgResumeHostZoneResponse) String() string { return proto.CompactTextString(m) } +func (*MsgResumeHostZoneResponse) ProtoMessage() {} +func (*MsgResumeHostZoneResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7e09c9ad51cd54, []int{31} +} +func (m *MsgResumeHostZoneResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgResumeHostZoneResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgResumeHostZoneResponse.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 *MsgResumeHostZoneResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgResumeHostZoneResponse.Merge(m, src) +} +func (m *MsgResumeHostZoneResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgResumeHostZoneResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgResumeHostZoneResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgResumeHostZoneResponse proto.InternalMessageInfo + func init() { proto.RegisterType((*MsgUpdateInnerRedemptionRateBounds)(nil), "stride.stakeibc.MsgUpdateInnerRedemptionRateBounds") proto.RegisterType((*MsgUpdateInnerRedemptionRateBoundsResponse)(nil), "stride.stakeibc.MsgUpdateInnerRedemptionRateBoundsResponse") @@ -1486,105 +1574,109 @@ func init() { proto.RegisterType((*MsgUndelegateHostResponse)(nil), "stride.stakeibc.MsgUndelegateHostResponse") proto.RegisterType((*MsgCalibrateDelegation)(nil), "stride.stakeibc.MsgCalibrateDelegation") proto.RegisterType((*MsgCalibrateDelegationResponse)(nil), "stride.stakeibc.MsgCalibrateDelegationResponse") + proto.RegisterType((*MsgResumeHostZone)(nil), "stride.stakeibc.MsgResumeHostZone") + proto.RegisterType((*MsgResumeHostZoneResponse)(nil), "stride.stakeibc.MsgResumeHostZoneResponse") } func init() { proto.RegisterFile("stride/stakeibc/tx.proto", fileDescriptor_9b7e09c9ad51cd54) } var fileDescriptor_9b7e09c9ad51cd54 = []byte{ - // 1482 bytes of a gzipped FileDescriptorProto + // 1512 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcf, 0x6f, 0xdc, 0xc4, - 0x17, 0x8f, 0x9b, 0x34, 0x4d, 0x5f, 0x36, 0xbf, 0x9c, 0x34, 0x75, 0x9c, 0x6f, 0x77, 0x53, 0xe7, - 0xfb, 0xfd, 0x12, 0x4a, 0x93, 0x28, 0x49, 0x11, 0xa2, 0xc0, 0x21, 0x9b, 0x14, 0xb1, 0x52, 0x53, - 0x21, 0xa7, 0xa5, 0x52, 0x25, 0x64, 0x66, 0xed, 0xa9, 0xd7, 0xaa, 0x3d, 0xde, 0x7a, 0xbc, 0xe9, - 0x96, 0x03, 0xe2, 0x82, 0xc4, 0x05, 0x09, 0x84, 0xc4, 0x11, 0xf5, 0xc0, 0x01, 0x89, 0x1b, 0xea, - 0x1f, 0x51, 0x89, 0x4b, 0xd5, 0x13, 0xe2, 0x10,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9, 0xde, 0x81, 0x52, 0xee, 0xbf, 0xea, 0x39, 0xf9, 0x83, 0xeb, 0x22, 0xf4, 0x85, 0xc3, 0x10, - 0x59, 0x95, 0x2c, 0x94, 0x28, 0xa9, 0x4a, 0xe6, 0x31, 0x72, 0x95, 0x94, 0xd7, 0x1c, 0xf5, 0x7b, - 0x05, 0x2a, 0x87, 0x7d, 0x35, 0x5b, 0xeb, 0x7d, 0x1b, 0x3d, 0x17, 0xe9, 0xef, 0x1d, 0x63, 0x51, - 0x87, 0x55, 0xf5, 0xfa, 0x93, 0xe7, 0x65, 0xe5, 0xe9, 0xf3, 0xb2, 0xf2, 0xe7, 0xf3, 0xb2, 0xf2, - 0xed, 0x8b, 0x72, 0xdf, 0xd3, 0x17, 0xe5, 0xbe, 0xdf, 0x5f, 0x94, 0xfb, 0xee, 0xac, 0x66, 0x0a, - 0xee, 0x36, 0x77, 0xb0, 0x78, 0x1d, 0xd5, 0xe9, 0x72, 0xfa, 0x45, 0x71, 0x67, 0xe5, 0xed, 0xe5, - 0x76, 0xe6, 0x2b, 0x25, 0x2b, 0xc0, 0xf5, 0x41, 0xfe, 0x8d, 0x70, 0xed, 0x9f, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xc4, 0x68, 0xae, 0x73, 0xc5, 0x14, 0x00, 0x00, + 0x17, 0x8f, 0x9b, 0x34, 0x4d, 0x5f, 0x7e, 0x3b, 0x69, 0xea, 0x38, 0xdf, 0xee, 0xa6, 0xce, 0xf7, + 0xfb, 0x25, 0x94, 0x26, 0x51, 0x92, 0x22, 0x44, 0x81, 0x43, 0x36, 0x29, 0xea, 0x4a, 0x4d, 0x85, + 0x9c, 0x96, 0x4a, 0x95, 0x90, 0x99, 0xb5, 0xa7, 0x5e, 0xab, 0xf6, 0x78, 0xeb, 0xf1, 0xa6, 0x5b, + 0x0e, 0x88, 0x0b, 0x12, 0x17, 0x24, 0x10, 0x12, 0x47, 0xd4, 0x03, 0x07, 0x24, 0x6e, 0xa8, 0x7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2e, 0xf2, 0xd9, 0x0c, + 0xcb, 0x80, 0x87, 0xdc, 0x2b, 0xcf, 0x80, 0x01, 0x33, 0x1d, 0x19, 0x06, 0xcc, 0xf7, 0xe2, 0x27, + 0x0e, 0xf1, 0x95, 0x02, 0xea, 0x36, 0x75, 0xb7, 0x30, 0xab, 0x8e, 0x02, 0xf4, 0x26, 0xe9, 0x1b, + 0xff, 0x01, 0x7d, 0x3f, 0x03, 0x41, 0xf0, 0x47, 0x25, 0x7d, 0x6e, 0x34, 0x0e, 0x23, 0x5c, 0x25, + 0x31, 0x8e, 0x78, 0x09, 0xde, 0x48, 0x3a, 0xe9, 0xe3, 0x15, 0xef, 0x0a, 0x8c, 0xa4, 0x9d, 0xb8, + 0xc5, 0xb4, 0x83, 0x73, 0x1d, 0x5b, 0x2b, 0xef, 0x4b, 0x8a, 0xea, 0xe6, 0x46, 0xea, 0xe7, 0xd6, + 0xa3, 0x06, 0x36, 0x87, 0x51, 0x77, 0x60, 0xfc, 0x0f, 0x16, 0x0e, 0xe0, 0x25, 0xf8, 0x3f, 0xe0, + 0x97, 0x90, 0xf4, 0x90, 0xe2, 0x74, 0x3b, 0x75, 0x14, 0x61, 0x7a, 0xad, 0x65, 0xd7, 0xb9, 0x28, + 0x1d, 0xeb, 0x0c, 0x1a, 0xb0, 0x08, 0x86, 0x0d, 0x9c, 0x86, 0xda, 0xec, 0x0c, 0x8d, 0x4b, 0xb0, + 0x78, 0x98, 0x4b, 0x41, 0xaf, 0xc9, 0xbb, 0xc0, 0xae, 0x40, 0x30, 0x39, 0xfb, 0xf7, 0x7b, 0x09, + 0x63, 0x8e, 0x6b, 0x64, 0xde, 0xad, 0xe0, 0xe4, 0x72, 0x51, 0xda, 0x44, 0xbe, 0x57, 0x63, 0xa5, + 0x60, 0x2b, 0xc1, 0x78, 0x21, 0x39, 0xe9, 0x40, 0x25, 0x3a, 0x24, 0x71, 0x24, 0xa8, 0x5c, 0xe7, + 0xe1, 0x31, 0x31, 0x6d, 0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0x77, 0xe0, 0x12, 0xfd, + 0xfd, 0x57, 0x5e, 0x92, 0xcd, 0x5d, 0x99, 0x50, 0x4b, 0x73, 0x57, 0x02, 0x94, 0xe7, 0xee, 0x01, + 0x8a, 0xac, 0xde, 0x85, 0x91, 0xdc, 0x3f, 0xef, 0xf3, 0xf2, 0x07, 0xd7, 0x45, 0xe8, 0x8b, 0x87, + 0x21, 0xb2, 0x2a, 0x59, 0xa8, 0x84, 0x52, 0x95, 0xcc, 0x63, 0xe4, 0x2a, 0x29, 0x2f, 0x6d, 0xea, + 0x0f, 0x0a, 0x94, 0x0f, 0xfb, 0x38, 0xb7, 0xde, 0xfb, 0x36, 0x7a, 0x2e, 0xd2, 0x3f, 0x38, 0xc6, + 0xa2, 0xec, 0xb9, 0x0b, 0x25, 0xce, 0xe8, 0x91, 0x9c, 0x19, 0x8c, 0xfc, 0xdc, 0xf2, 0x02, 0x57, + 0xb9, 0xf1, 0xf4, 0x45, 0x49, 0x79, 0xf6, 0xa2, 0xa4, 0xfc, 0xf5, 0xa2, 0xa4, 0x7c, 0xf7, 0xb2, + 0xd4, 0xf7, 0xec, 0x65, 0xa9, 0xef, 0x8f, 0x97, 0xa5, 0xbe, 0xbb, 0x6b, 0x99, 0xce, 0x61, 0x87, + 0xef, 0xb7, 0x74, 0x03, 0xd5, 0xe8, 0x4a, 0xfa, 0x69, 0x74, 0x77, 0xf5, 0xdd, 0x95, 0x56, 0xe6, + 0x73, 0x2b, 0xeb, 0x24, 0x6a, 0x83, 0xfc, 0x63, 0xe7, 0xfa, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, + 0xfc, 0x33, 0xdb, 0xaa, 0x8e, 0x15, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1614,6 +1706,7 @@ type MsgClient interface { ClearBalance(ctx context.Context, in *MsgClearBalance, opts ...grpc.CallOption) (*MsgClearBalanceResponse, error) UndelegateHost(ctx context.Context, in *MsgUndelegateHost, opts ...grpc.CallOption) (*MsgUndelegateHostResponse, error) UpdateInnerRedemptionRateBounds(ctx context.Context, in *MsgUpdateInnerRedemptionRateBounds, opts ...grpc.CallOption) (*MsgUpdateInnerRedemptionRateBoundsResponse, error) + ResumeHostZone(ctx context.Context, in *MsgResumeHostZone, opts ...grpc.CallOption) (*MsgResumeHostZoneResponse, error) } type msgClient struct { @@ -1759,6 +1852,15 @@ func (c *msgClient) UpdateInnerRedemptionRateBounds(ctx context.Context, in *Msg return out, nil } +func (c *msgClient) ResumeHostZone(ctx context.Context, in *MsgResumeHostZone, opts ...grpc.CallOption) (*MsgResumeHostZoneResponse, error) { + out := new(MsgResumeHostZoneResponse) + err := c.cc.Invoke(ctx, "/stride.stakeibc.Msg/ResumeHostZone", 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) @@ -1776,6 +1878,7 @@ type MsgServer interface { ClearBalance(context.Context, *MsgClearBalance) (*MsgClearBalanceResponse, error) UndelegateHost(context.Context, *MsgUndelegateHost) (*MsgUndelegateHostResponse, error) UpdateInnerRedemptionRateBounds(context.Context, *MsgUpdateInnerRedemptionRateBounds) (*MsgUpdateInnerRedemptionRateBoundsResponse, error) + ResumeHostZone(context.Context, *MsgResumeHostZone) (*MsgResumeHostZoneResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. @@ -1827,6 +1930,9 @@ func (*UnimplementedMsgServer) UndelegateHost(ctx context.Context, req *MsgUndel func (*UnimplementedMsgServer) UpdateInnerRedemptionRateBounds(ctx context.Context, req *MsgUpdateInnerRedemptionRateBounds) (*MsgUpdateInnerRedemptionRateBoundsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateInnerRedemptionRateBounds not implemented") } +func (*UnimplementedMsgServer) ResumeHostZone(ctx context.Context, req *MsgResumeHostZone) (*MsgResumeHostZoneResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ResumeHostZone not implemented") +} func RegisterMsgServer(s grpc1.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) @@ -2102,6 +2208,24 @@ func _Msg_UpdateInnerRedemptionRateBounds_Handler(srv interface{}, ctx context.C return interceptor(ctx, in, info, handler) } +func _Msg_ResumeHostZone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgResumeHostZone) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ResumeHostZone(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.stakeibc.Msg/ResumeHostZone", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ResumeHostZone(ctx, req.(*MsgResumeHostZone)) + } + return interceptor(ctx, in, info, handler) +} + var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "stride.stakeibc.Msg", HandlerType: (*MsgServer)(nil), @@ -2166,6 +2290,10 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "UpdateInnerRedemptionRateBounds", Handler: _Msg_UpdateInnerRedemptionRateBounds_Handler, }, + { + MethodName: "ResumeHostZone", + Handler: _Msg_ResumeHostZone_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "stride/stakeibc/tx.proto", @@ -3290,6 +3418,66 @@ func (m *MsgCalibrateDelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } +func (m *MsgResumeHostZone) 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 *MsgResumeHostZone) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgResumeHostZone) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + 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 *MsgResumeHostZoneResponse) 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 *MsgResumeHostZoneResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgResumeHostZoneResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + func encodeVarintTx(dAtA []byte, offset int, v uint64) int { offset -= sovTx(v) base := offset @@ -3776,6 +3964,32 @@ func (m *MsgCalibrateDelegationResponse) Size() (n int) { return n } +func (m *MsgResumeHostZone) 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)) + } + return n +} + +func (m *MsgResumeHostZoneResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + func sovTx(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -7037,6 +7251,170 @@ func (m *MsgCalibrateDelegationResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *MsgResumeHostZone) 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: MsgResumeHostZone: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgResumeHostZone: 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 + 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 *MsgResumeHostZoneResponse) 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: MsgResumeHostZoneResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgResumeHostZoneResponse: 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 skipTx(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0