diff --git a/x/liquidstakeibc/client/tx.go b/x/liquidstakeibc/client/tx.go index 1e897c90f..5f7d0e10b 100644 --- a/x/liquidstakeibc/client/tx.go +++ b/x/liquidstakeibc/client/tx.go @@ -36,7 +36,6 @@ func NewTxCmd() *cobra.Command { NewLiquidUnstakeCmd(), NewRedeemCmd(), NewUpdateParamsCmd(), - NewRedeemDeprecatedCmd(), ) return txCmd @@ -364,37 +363,3 @@ Params file contents: return cmd } - -func NewRedeemDeprecatedCmd() *cobra.Command { - cmd := &cobra.Command{ - Use: "redeem-deprecated [amount]", - Short: `Instantly redeem stk tokens from a deprecated host chain`, - Long: strings.TrimSpace( - fmt.Sprintf( - `Submit a redeem-deprecated transaction: $ %s tx liquidstakeibc redeem-deprecated 50000000stk/uatom`, - version.AppName, - ), - ), - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) error { - clientctx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - amount, err := sdk.ParseCoinNormalized(args[0]) - if err != nil { - return err - } - - delegatorAddress := clientctx.GetFromAddress() - msg := types.NewMsgRedeemDeprecated(amount, delegatorAddress) - - return tx.GenerateOrBroadcastTxCLI(clientctx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} diff --git a/x/liquidstakeibc/keeper/msg_server.go b/x/liquidstakeibc/keeper/msg_server.go index 66b87c3d1..b4bfa8953 100644 --- a/x/liquidstakeibc/keeper/msg_server.go +++ b/x/liquidstakeibc/keeper/msg_server.go @@ -1063,121 +1063,3 @@ func (k msgServer) validateLiquidStakeLSMDeposit( return hc, validator, &denomTrace, nil } - -// Redeem defines a method for deprecated redeem liquid staked tokens -func (k msgServer) RedeemDeprecated( - goCtx context.Context, - msg *types.MsgRedeemDeprecated, -) (*types.MsgRedeemDeprecatedResponse, error) { - ctx := sdktypes.UnwrapSDKContext(goCtx) - - // parse the chain host denom from the stk denom - hostDenom, found := types.MintDenomToHostDenom(msg.Amount.Denom) - if !found { - return nil, errorsmod.Wrapf(types.ErrInvalidHostChain, - "could not parse chain host denom from %s", - msg.Amount.Denom, - ) - } - - // get the host chain we need to unstake from - hc, found := k.GetHostChainFromHostDenom(ctx, hostDenom) - if !found { - return nil, errorsmod.Wrapf(types.ErrInvalidHostChain, - "host chain with host denom %s not registered", - hostDenom, - ) - } - - if hc.Active { - return nil, types.ErrHostChainActive - } - - // check the msg amount denom is the host chain mint denom - if msg.Amount.Denom != hc.MintDenom() { - return nil, errorsmod.Wrapf( - types.ErrInvalidDenom, - "expected %s, got %s", - hc.MintDenom(), - msg.Amount.Denom, - ) - } - - // get the redeem address - redeemAddress, err := sdktypes.AccAddressFromBech32(msg.DelegatorAddress) - if err != nil { - return nil, errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "got error : %s", err) - } - - // send the redeem amount to the module account - err = k.bankKeeper.SendCoinsFromAccountToModule( - ctx, - redeemAddress, - types.ModuleName, - sdktypes.NewCoins(msg.Amount)) - if err != nil { - return nil, errorsmod.Wrapf( - types.ErrMintFailed, - "failed to send deprecated redeemed coins from account %s to module %s: %s", - redeemAddress.String(), - types.ModuleName, - err.Error(), - ) - } - - // amount of tokens to be redeemed - stkAmount := msg.Amount - redeemAmount := sdktypes.NewDecCoinFromCoin(stkAmount).Amount.Quo(hc.CValue) - redeemToken, _ := sdktypes.NewDecCoinFromDec(hc.IBCDenom(), redeemAmount).TruncateDecimal() - - // send the deprecated redeemed token from module to the account, - // this will error out if there are insufficient redeemTokens - err = k.bankKeeper.SendCoinsFromModuleToAccount( - ctx, - types.UndelegationModuleAccount, - redeemAddress, - sdktypes.NewCoins(redeemToken), - ) - if err != nil { - return nil, errorsmod.Wrapf( - types.ErrRedeemFailed, - "failed to send deprecated redeemed coins from module %s to account %s: %s", - types.UndelegationModuleAccount, - redeemAddress.String(), - err.Error(), - ) - } - - // burn the stk tokens - err = k.bankKeeper.BurnCoins(ctx, types.ModuleName, sdktypes.NewCoins(stkAmount)) - if err != nil { - return nil, errorsmod.Wrapf( - types.ErrBurnFailed, - "failed to burn deprecated redeemed coins on module %s: %s", - types.ModuleName, - err.Error(), - ) - } - - ctx.EventManager().EmitEvents(sdktypes.Events{ - sdktypes.NewEvent( - types.EventTypeRedeemDeprecated, - sdktypes.NewAttribute(types.AttributeChainID, hc.ChainId), - sdktypes.NewAttribute(types.AttributeDelegatorAddress, redeemAddress.String()), - sdktypes.NewAttribute(types.AttributeInputAmount, - sdktypes.NewCoin(hc.MintDenom(), msg.Amount.Amount).String()), - sdktypes.NewAttribute(types.AttributeOutputAmount, - sdktypes.NewCoin(hc.HostDenom, redeemToken.Amount).String()), - ), - sdktypes.NewEvent( - sdktypes.EventTypeMessage, - sdktypes.NewAttribute(sdktypes.AttributeKeyModule, types.AttributeValueCategory), - sdktypes.NewAttribute(sdktypes.AttributeKeySender, msg.DelegatorAddress), - ), - }, - ) - - telemetry.IncrCounter(float32(1), hc.ChainId, "redeem_deprecated") - - return &types.MsgRedeemDeprecatedResponse{}, nil -} diff --git a/x/liquidstakeibc/types/msgs.go b/x/liquidstakeibc/types/msgs.go index 18ded7c81..7984dbf97 100644 --- a/x/liquidstakeibc/types/msgs.go +++ b/x/liquidstakeibc/types/msgs.go @@ -24,7 +24,6 @@ const ( MsgTypeLiquidUnstake string = "msg_liquid_unstake" MsgTypeRedeem string = "msg_redeem" MsgTypeUpdateParams string = "msg_update_params" - MsgTypeRedeemDeprecated string = "msg_redeem_deprecated" ) var ( @@ -34,7 +33,7 @@ var ( _ sdk.Msg = &MsgLiquidUnstake{} _ sdk.Msg = &MsgRedeem{} _ sdk.Msg = &MsgLiquidStakeLSM{} - _ sdk.Msg = &MsgRedeemDeprecated{} + _ sdk.Msg = &MsgUpdateParams{} ) func NewMsgRegisterHostChain( @@ -678,53 +677,3 @@ func (m *MsgUpdateParams) ValidateBasic() error { } return nil } - -func NewMsgRedeemDeprecated(amount sdk.Coin, address sdk.AccAddress) *MsgRedeemDeprecated { - return &MsgRedeemDeprecated{ - DelegatorAddress: address.String(), - Amount: amount, - } -} - -func (m *MsgRedeemDeprecated) Route() string { - return RouterKey -} - -// Type should return the action -func (m *MsgRedeemDeprecated) Type() string { - return MsgTypeRedeemDeprecated -} - -// GetSignBytes encodes the message for signing -func (m *MsgRedeemDeprecated) GetSignBytes() []byte { - return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(m)) -} - -// GetSigners defines whose signature is required -func (m *MsgRedeemDeprecated) GetSigners() []sdk.AccAddress { - acc, err := sdk.AccAddressFromBech32(m.DelegatorAddress) - if err != nil { - panic(err) - } - return []sdk.AccAddress{acc} -} - -// ValidateBasic performs stateless checks -func (m *MsgRedeemDeprecated) ValidateBasic() error { - if _, err := sdk.AccAddressFromBech32(m.DelegatorAddress); err != nil { - return errorsmod.Wrap(sdkerrors.ErrInvalidAddress, m.DelegatorAddress) - } - - if !m.Amount.IsValid() { - return errorsmod.Wrap(sdkerrors.ErrInvalidCoins, m.Amount.String()) - } - - if !m.Amount.IsPositive() { - return errorsmod.Wrap(sdkerrors.ErrInvalidCoins, m.Amount.String()) - } - - if !IsLiquidStakingDenom(m.Amount.Denom) { - return sdkerrors.ErrInvalidCoins.Wrapf("invalid denom, required stk/{host-denom} got %s", m.Amount.Denom) - } - return nil -} diff --git a/x/liquidstakeibc/types/msgs.pb.go b/x/liquidstakeibc/types/msgs.pb.go index 0905b2dc9..b32aed559 100644 --- a/x/liquidstakeibc/types/msgs.pb.go +++ b/x/liquidstakeibc/types/msgs.pb.go @@ -621,94 +621,6 @@ func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo -type MsgRedeemDeprecated struct { - DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` - Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"` -} - -func (m *MsgRedeemDeprecated) Reset() { *m = MsgRedeemDeprecated{} } -func (m *MsgRedeemDeprecated) String() string { return proto.CompactTextString(m) } -func (*MsgRedeemDeprecated) ProtoMessage() {} -func (*MsgRedeemDeprecated) Descriptor() ([]byte, []int) { - return fileDescriptor_dce3cdc829e5c7d3, []int{14} -} -func (m *MsgRedeemDeprecated) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgRedeemDeprecated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgRedeemDeprecated.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 *MsgRedeemDeprecated) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgRedeemDeprecated.Merge(m, src) -} -func (m *MsgRedeemDeprecated) XXX_Size() int { - return m.Size() -} -func (m *MsgRedeemDeprecated) XXX_DiscardUnknown() { - xxx_messageInfo_MsgRedeemDeprecated.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgRedeemDeprecated proto.InternalMessageInfo - -func (m *MsgRedeemDeprecated) GetDelegatorAddress() string { - if m != nil { - return m.DelegatorAddress - } - return "" -} - -func (m *MsgRedeemDeprecated) GetAmount() types.Coin { - if m != nil { - return m.Amount - } - return types.Coin{} -} - -type MsgRedeemDeprecatedResponse struct { -} - -func (m *MsgRedeemDeprecatedResponse) Reset() { *m = MsgRedeemDeprecatedResponse{} } -func (m *MsgRedeemDeprecatedResponse) String() string { return proto.CompactTextString(m) } -func (*MsgRedeemDeprecatedResponse) ProtoMessage() {} -func (*MsgRedeemDeprecatedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dce3cdc829e5c7d3, []int{15} -} -func (m *MsgRedeemDeprecatedResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgRedeemDeprecatedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgRedeemDeprecatedResponse.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 *MsgRedeemDeprecatedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgRedeemDeprecatedResponse.Merge(m, src) -} -func (m *MsgRedeemDeprecatedResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgRedeemDeprecatedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgRedeemDeprecatedResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgRedeemDeprecatedResponse proto.InternalMessageInfo - func init() { proto.RegisterType((*MsgRegisterHostChain)(nil), "pstake.liquidstakeibc.v1beta1.MsgRegisterHostChain") proto.RegisterType((*MsgRegisterHostChainResponse)(nil), "pstake.liquidstakeibc.v1beta1.MsgRegisterHostChainResponse") @@ -724,8 +636,6 @@ func init() { proto.RegisterType((*MsgRedeemResponse)(nil), "pstake.liquidstakeibc.v1beta1.MsgRedeemResponse") proto.RegisterType((*MsgUpdateParams)(nil), "pstake.liquidstakeibc.v1beta1.MsgUpdateParams") proto.RegisterType((*MsgUpdateParamsResponse)(nil), "pstake.liquidstakeibc.v1beta1.MsgUpdateParamsResponse") - proto.RegisterType((*MsgRedeemDeprecated)(nil), "pstake.liquidstakeibc.v1beta1.MsgRedeemDeprecated") - proto.RegisterType((*MsgRedeemDeprecatedResponse)(nil), "pstake.liquidstakeibc.v1beta1.MsgRedeemDeprecatedResponse") } func init() { @@ -733,83 +643,79 @@ func init() { } var fileDescriptor_dce3cdc829e5c7d3 = []byte{ - // 1210 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0x4f, 0x6f, 0x1b, 0xc5, - 0x1b, 0xf6, 0x36, 0xad, 0x53, 0x4f, 0xfe, 0x6f, 0xf3, 0x6b, 0xd6, 0x9b, 0xc4, 0x89, 0xf6, 0xa7, - 0x52, 0x13, 0x6a, 0x6f, 0xe2, 0x34, 0x09, 0x18, 0x2e, 0x4d, 0x42, 0x15, 0x8b, 0x58, 0x20, 0x47, - 0xe5, 0x00, 0x42, 0xd6, 0x78, 0x77, 0xba, 0x59, 0x35, 0x3b, 0xb3, 0xec, 0x8c, 0x23, 0x7a, 0x42, - 0xaa, 0x84, 0x84, 0x38, 0x21, 0xf5, 0x0b, 0xf4, 0x06, 0xe2, 0x42, 0x24, 0x7a, 0x40, 0xe2, 0xc6, - 0x01, 0xe5, 0xc0, 0xa1, 0x2a, 0x17, 0xc4, 0xa1, 0xa0, 0x04, 0x29, 0x1c, 0xf8, 0x0c, 0x08, 0xcd, - 0xec, 0x78, 0xed, 0x6c, 0xe2, 0xd8, 0x2e, 0x91, 0x72, 0x69, 0xbd, 0xef, 0xbc, 0xcf, 0x33, 0xcf, - 0xf3, 0xce, 0xcc, 0x3b, 0x13, 0x90, 0xf5, 0x29, 0x83, 0x0f, 0x90, 0xb9, 0xe3, 0x7e, 0x5c, 0x77, - 0x6d, 0xf1, 0xdb, 0xad, 0x59, 0xe6, 0xee, 0x42, 0x0d, 0x31, 0xb8, 0x60, 0x7a, 0xd4, 0xa1, 0x79, - 0x3f, 0x20, 0x8c, 0xa8, 0xd3, 0x61, 0x66, 0xfe, 0x78, 0x66, 0x5e, 0x66, 0xea, 0x53, 0x0e, 0x21, - 0xce, 0x0e, 0x32, 0xa1, 0xef, 0x9a, 0x10, 0x63, 0xc2, 0x20, 0x73, 0x09, 0x96, 0x60, 0x3d, 0x6d, - 0x11, 0xea, 0x11, 0x5a, 0x15, 0x5f, 0x66, 0xf8, 0x21, 0x87, 0xc6, 0x1d, 0xe2, 0x90, 0x30, 0xce, - 0x7f, 0xc9, 0xe8, 0x44, 0x98, 0xc3, 0x05, 0x98, 0xbb, 0x42, 0x87, 0x1c, 0xc8, 0xc8, 0x81, 0x1a, - 0xa4, 0x28, 0x92, 0x69, 0x11, 0x17, 0xcb, 0xf1, 0x31, 0xe8, 0xb9, 0x98, 0x98, 0x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0x7b, 0xcb, 0x6f, 0x08, 0x5e, 0xfd, - 0x70, 0xff, 0x20, 0xa3, 0x3c, 0x3b, 0xc8, 0x28, 0x7f, 0x1c, 0x64, 0x94, 0x2f, 0x0f, 0x33, 0x89, - 0x67, 0x87, 0x99, 0xc4, 0xaf, 0x87, 0x99, 0xc4, 0x07, 0x77, 0x5a, 0x1e, 0x46, 0x3e, 0x0a, 0x28, - 0xef, 0x4f, 0xd8, 0x42, 0xef, 0x62, 0x24, 0xbd, 0xe5, 0x30, 0x64, 0xee, 0x2e, 0x32, 0x77, 0x0b, - 0xe6, 0x27, 0x71, 0x9f, 0xe2, 0xdd, 0x54, 0x4b, 0x8a, 0xbf, 0xa4, 0x17, 0xff, 0x0d, 0x00, 0x00, - 0xff, 0xff, 0x45, 0xdb, 0x6c, 0xf1, 0x8f, 0x10, 0x00, 0x00, + // 1142 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0xcf, 0x6f, 0xdc, 0x44, + 0x14, 0x5e, 0x27, 0xed, 0x26, 0x3b, 0xf9, 0x6d, 0x42, 0xe3, 0x75, 0xd3, 0x4d, 0x64, 0x54, 0xba, + 0x84, 0xae, 0x9d, 0x6c, 0xda, 0x14, 0x02, 0x97, 0x26, 0xa1, 0xca, 0x8a, 0xac, 0x40, 0x8e, 0xca, + 0x01, 0x84, 0x56, 0x5e, 0x7b, 0xea, 0x58, 0x8d, 0x67, 0x8c, 0x67, 0x1c, 0xd1, 0x13, 0x52, 0x25, + 0x24, 0xc4, 0x09, 0xa9, 0xff, 0x40, 0x6f, 0x20, 0x0e, 0x10, 0x89, 0x1e, 0x38, 0x73, 0x40, 0x39, + 0x56, 0xe5, 0x82, 0x38, 0x14, 0x94, 0x20, 0x85, 0xbf, 0x02, 0xa1, 0x19, 0xcf, 0x7a, 0x37, 0x4e, + 0xf6, 0x57, 0x89, 0xd4, 0x4b, 0xbb, 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0x66, 0xb3, + 0x54, 0x7e, 0x0d, 0x8c, 0xd9, 0x18, 0x21, 0x68, 0xb3, 0x16, 0xd6, 0x3c, 0x47, 0x19, 0x60, 0x58, + 0x73, 0xb4, 0x19, 0xac, 0x38, 0xf2, 0xa7, 0x60, 0xc4, 0x81, 0x01, 0x26, 0x1e, 0xad, 0xdd, 0x83, + 0x50, 0x19, 0xe4, 0xf4, 0xef, 0x1e, 0x3c, 0x9f, 0xcb, 0xfc, 0xf1, 0x7c, 0xee, 0x75, 0xd7, 0xa3, + 0x3b, 0x51, 0x5d, 0xb7, 0xb1, 0x2f, 0xba, 0x2d, 0xfe, 0x2b, 0x11, 0xe7, 0xbe, 0x41, 0x1f, 0x04, + 0x90, 0xe8, 0x1b, 0xd0, 0x7e, 0xf6, 0xa4, 0x04, 0x84, 0x98, 0x0d, 0x68, 0x9b, 0x40, 0x10, 0xde, + 0x81, 0x90, 0xd1, 0x87, 0x90, 0xfb, 0xe6, 0xf4, 0x17, 0xce, 0x83, 0x5e, 0x10, 0x0a, 0xfa, 0x08, + 0x35, 0xe9, 0x2f, 0x9e, 0x07, 0xbd, 0x20, 0x64, 0xf4, 0x36, 0x18, 0x0f, 0xa1, 0x03, 0xfd, 0x80, + 0x77, 0x90, 0xad, 0x90, 0x3d, 0x87, 0x15, 0xc6, 0x9a, 0x9c, 0x6c, 0x91, 0x2b, 0x00, 0xd8, 0x3b, + 0x16, 0x42, 0x70, 0x97, 0xed, 0xd1, 0x10, 0xdf, 0xa3, 0x9c, 0x88, 0x54, 0x1c, 0x79, 0x06, 0x0c, + 0x05, 0x38, 0xa4, 0x2c, 0x37, 0xcc, 0x73, 0x59, 0xf6, 0x58, 0x71, 0x18, 0x6e, 0x07, 0x13, 0x5a, + 0x73, 0x20, 0xc2, 0xbe, 0x92, 0x8b, 0x71, 0x2c, 0xb2, 0xc1, 0x02, 0x32, 0x04, 0x13, 0xbe, 0x87, + 0x3c, 0x3f, 0xf2, 0x6b, 0x62, 0x3f, 0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, 0xd7, 0x7b, 0x92, 0xdc, 0xd0, 0xf7, 0x48, + 0x02, 0x59, 0x31, 0xd3, 0x8a, 0xbd, 0x1c, 0x6d, 0x56, 0xa9, 0x2e, 0xf6, 0x5a, 0x99, 0x88, 0x2b, + 0x71, 0x71, 0xd7, 0xb4, 0xab, 0x5d, 0xc4, 0x09, 0x29, 0x7b, 0x60, 0xf4, 0xc4, 0x60, 0xd2, 0x7b, + 0x3d, 0xf2, 0x71, 0xbd, 0xba, 0xd2, 0x5f, 0x7d, 0x43, 0xe6, 0xda, 0x27, 0x07, 0x87, 0x05, 0xe9, + 0xe9, 0x61, 0x41, 0xfa, 0xeb, 0xb0, 0x20, 0x7d, 0x73, 0x54, 0xc8, 0x3c, 0x3d, 0x2a, 0x64, 0x7e, + 0x3f, 0x2a, 0x64, 0x3e, 0xbe, 0xdd, 0xf2, 0xb2, 0x0d, 0x60, 0x48, 0xd8, 0x0d, 0x47, 0x36, 0xfc, + 0x00, 0x41, 0xe1, 0xa8, 0x84, 0x2c, 0xea, 0xed, 0x41, 0x63, 0xaf, 0x6c, 0x7c, 0x9e, 0x76, 0xc7, + 0xdf, 0xc5, 0xf5, 0x2c, 0xff, 0xeb, 0x6c, 0xf9, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7a, 0xd9, + 0x72, 0x74, 0xe3, 0x0e, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -830,7 +736,6 @@ type MsgClient interface { LiquidStakeLSM(ctx context.Context, in *MsgLiquidStakeLSM, opts ...grpc.CallOption) (*MsgLiquidStakeLSMResponse, error) LiquidUnstake(ctx context.Context, in *MsgLiquidUnstake, opts ...grpc.CallOption) (*MsgLiquidUnstakeResponse, error) Redeem(ctx context.Context, in *MsgRedeem, opts ...grpc.CallOption) (*MsgRedeemResponse, error) - RedeemDeprecated(ctx context.Context, in *MsgRedeemDeprecated, opts ...grpc.CallOption) (*MsgRedeemDeprecatedResponse, error) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) } @@ -896,15 +801,6 @@ func (c *msgClient) Redeem(ctx context.Context, in *MsgRedeem, opts ...grpc.Call return out, nil } -func (c *msgClient) RedeemDeprecated(ctx context.Context, in *MsgRedeemDeprecated, opts ...grpc.CallOption) (*MsgRedeemDeprecatedResponse, error) { - out := new(MsgRedeemDeprecatedResponse) - err := c.cc.Invoke(ctx, "/pstake.liquidstakeibc.v1beta1.Msg/RedeemDeprecated", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { out := new(MsgUpdateParamsResponse) err := c.cc.Invoke(ctx, "/pstake.liquidstakeibc.v1beta1.Msg/UpdateParams", in, out, opts...) @@ -922,7 +818,6 @@ type MsgServer interface { LiquidStakeLSM(context.Context, *MsgLiquidStakeLSM) (*MsgLiquidStakeLSMResponse, error) LiquidUnstake(context.Context, *MsgLiquidUnstake) (*MsgLiquidUnstakeResponse, error) Redeem(context.Context, *MsgRedeem) (*MsgRedeemResponse, error) - RedeemDeprecated(context.Context, *MsgRedeemDeprecated) (*MsgRedeemDeprecatedResponse, error) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) } @@ -948,9 +843,6 @@ func (*UnimplementedMsgServer) LiquidUnstake(ctx context.Context, req *MsgLiquid func (*UnimplementedMsgServer) Redeem(ctx context.Context, req *MsgRedeem) (*MsgRedeemResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Redeem not implemented") } -func (*UnimplementedMsgServer) RedeemDeprecated(ctx context.Context, req *MsgRedeemDeprecated) (*MsgRedeemDeprecatedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RedeemDeprecated not implemented") -} func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") } @@ -1067,24 +959,6 @@ func _Msg_Redeem_Handler(srv interface{}, ctx context.Context, dec func(interfac return interceptor(ctx, in, info, handler) } -func _Msg_RedeemDeprecated_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgRedeemDeprecated) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).RedeemDeprecated(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/pstake.liquidstakeibc.v1beta1.Msg/RedeemDeprecated", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).RedeemDeprecated(ctx, req.(*MsgRedeemDeprecated)) - } - return interceptor(ctx, in, info, handler) -} - func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(MsgUpdateParams) if err := dec(in); err != nil { @@ -1131,10 +1005,6 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "Redeem", Handler: _Msg_Redeem_Handler, }, - { - MethodName: "RedeemDeprecated", - Handler: _Msg_RedeemDeprecated_Handler, - }, { MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, @@ -1678,69 +1548,6 @@ func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *MsgRedeemDeprecated) 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 *MsgRedeemDeprecated) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgRedeemDeprecated) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Amount.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMsgs(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if len(m.DelegatorAddress) > 0 { - i -= len(m.DelegatorAddress) - copy(dAtA[i:], m.DelegatorAddress) - i = encodeVarintMsgs(dAtA, i, uint64(len(m.DelegatorAddress))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgRedeemDeprecatedResponse) 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 *MsgRedeemDeprecatedResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgRedeemDeprecatedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - func encodeVarintMsgs(dAtA []byte, offset int, v uint64) int { offset -= sovMsgs(v) base := offset @@ -1962,30 +1769,6 @@ func (m *MsgUpdateParamsResponse) Size() (n int) { return n } -func (m *MsgRedeemDeprecated) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DelegatorAddress) - if l > 0 { - n += 1 + l + sovMsgs(uint64(l)) - } - l = m.Amount.Size() - n += 1 + l + sovMsgs(uint64(l)) - return n -} - -func (m *MsgRedeemDeprecatedResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - func sovMsgs(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -3484,171 +3267,6 @@ func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgRedeemDeprecated) 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 ErrIntOverflowMsgs - } - 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: MsgRedeemDeprecated: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgRedeemDeprecated: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMsgs - } - 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 ErrInvalidLengthMsgs - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMsgs - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DelegatorAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMsgs - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMsgs - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMsgs - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMsgs(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMsgs - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgRedeemDeprecatedResponse) 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 ErrIntOverflowMsgs - } - 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: MsgRedeemDeprecatedResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgRedeemDeprecatedResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipMsgs(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMsgs - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func skipMsgs(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/liquidstakeibc/types/msgs.pb.gw.go b/x/liquidstakeibc/types/msgs.pb.gw.go index a10ccdef9..e001e9a6b 100644 --- a/x/liquidstakeibc/types/msgs.pb.gw.go +++ b/x/liquidstakeibc/types/msgs.pb.gw.go @@ -177,42 +177,6 @@ func local_request_Msg_Redeem_0(ctx context.Context, marshaler runtime.Marshaler } -var ( - filter_Msg_RedeemDeprecated_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_Msg_RedeemDeprecated_0(ctx context.Context, marshaler runtime.Marshaler, client MsgClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MsgRedeemDeprecated - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Msg_RedeemDeprecated_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.RedeemDeprecated(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Msg_RedeemDeprecated_0(ctx context.Context, marshaler runtime.Marshaler, server MsgServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MsgRedeemDeprecated - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Msg_RedeemDeprecated_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.RedeemDeprecated(ctx, &protoReq) - return msg, metadata, err - -} - // RegisterMsgHandlerServer registers the http handlers for service Msg to "mux". // UnaryRPC :call MsgServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -311,29 +275,6 @@ func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server }) - mux.Handle("POST", pattern_Msg_RedeemDeprecated_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Msg_RedeemDeprecated_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Msg_RedeemDeprecated_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - return nil } @@ -455,26 +396,6 @@ func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client }) - mux.Handle("POST", pattern_Msg_RedeemDeprecated_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Msg_RedeemDeprecated_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Msg_RedeemDeprecated_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - return nil } @@ -486,8 +407,6 @@ var ( pattern_Msg_LiquidUnstake_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"pstake", "liquidstakeibc", "v1beta1", "LiquidUnstake"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Msg_Redeem_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"pstake", "liquidstakeibc", "v1beta1", "Redeem"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Msg_RedeemDeprecated_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"pstake", "liquidstakeibc", "v1beta1", "RedeemDeprecated"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( @@ -498,6 +417,4 @@ var ( forward_Msg_LiquidUnstake_0 = runtime.ForwardResponseMessage forward_Msg_Redeem_0 = runtime.ForwardResponseMessage - - forward_Msg_RedeemDeprecated_0 = runtime.ForwardResponseMessage )