diff --git a/proto/stride/stakeibc/tx.proto b/proto/stride/stakeibc/tx.proto index d908e7245b..0244edf150 100644 --- a/proto/stride/stakeibc/tx.proto +++ b/proto/stride/stakeibc/tx.proto @@ -27,6 +27,8 @@ service Msg { returns (MsgRestoreInterchainAccountResponse); rpc UpdateValidatorSharesExchRate(MsgUpdateValidatorSharesExchRate) returns (MsgUpdateValidatorSharesExchRateResponse); + rpc CalibrateDelegation(MsgCalibrateDelegation) + returns (MsgCalibrateDelegationResponse); rpc ClearBalance(MsgClearBalance) returns (MsgClearBalanceResponse); rpc UpdateInnerRedemptionRateBounds(MsgUpdateInnerRedemptionRateBounds) returns (MsgUpdateInnerRedemptionRateBoundsResponse); @@ -170,3 +172,10 @@ message MsgUpdateValidatorSharesExchRate { string valoper = 3; } message MsgUpdateValidatorSharesExchRateResponse {} + +message MsgCalibrateDelegation { + string creator = 1; + string chain_id = 2; + string valoper = 3; +} +message MsgCalibrateDelegationResponse {} diff --git a/x/stakeibc/client/cli/tx.go b/x/stakeibc/client/cli/tx.go index a7c269f227..3d29b21bad 100644 --- a/x/stakeibc/client/cli/tx.go +++ b/x/stakeibc/client/cli/tx.go @@ -35,6 +35,7 @@ func GetTxCmd() *cobra.Command { cmd.AddCommand(CmdDeleteValidator()) cmd.AddCommand(CmdRestoreInterchainAccount()) cmd.AddCommand(CmdUpdateValidatorSharesExchRate()) + cmd.AddCommand(CmdCalibrateDelegation()) cmd.AddCommand(CmdClearBalance()) cmd.AddCommand(CmdUpdateInnerRedemptionRateBounds()) diff --git a/x/stakeibc/client/cli/tx_calibrate_delegation.go b/x/stakeibc/client/cli/tx_calibrate_delegation.go new file mode 100644 index 0000000000..42df00e22a --- /dev/null +++ b/x/stakeibc/client/cli/tx_calibrate_delegation.go @@ -0,0 +1,41 @@ +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/v14/x/stakeibc/types" +) + +func CmdCalibrateDelegation() *cobra.Command { + cmd := &cobra.Command{ + Use: "calibrate-delegation [chainid] [valoper]", + Short: "Broadcast message calibrate-delegation", + Args: cobra.ExactArgs(2), + RunE: func(cmd *cobra.Command, args []string) (err error) { + argChainId := args[0] + argValoper := args[1] + + clientCtx, err := client.GetClientTxContext(cmd) + if err != nil { + return err + } + + msg := types.NewMsgCalibrateDelegation( + clientCtx.GetFromAddress().String(), + argChainId, + argValoper, + ) + 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 bad3d8d516..5bea7e9488 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.MsgCalibrateDelegation: + res, err := msgServer.CalibrateDelegation(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) diff --git a/x/stakeibc/keeper/icqcallbacks.go b/x/stakeibc/keeper/icqcallbacks.go index b27b05518e..a134243c40 100644 --- a/x/stakeibc/keeper/icqcallbacks.go +++ b/x/stakeibc/keeper/icqcallbacks.go @@ -11,6 +11,7 @@ const ( ICQCallbackID_FeeBalance = "feebalance" ICQCallbackID_Delegation = "delegation" ICQCallbackID_Validator = "validator" + ICQCallbackID_Calibrate = "calibrate" ) // ICQCallbacks wrapper struct for stakeibc keeper @@ -46,5 +47,6 @@ func (c ICQCallbacks) RegisterICQCallbacks() icqtypes.QueryCallbacks { AddICQCallback(ICQCallbackID_WithdrawalBalance, ICQCallback(WithdrawalBalanceCallback)). AddICQCallback(ICQCallbackID_FeeBalance, ICQCallback(FeeBalanceCallback)). AddICQCallback(ICQCallbackID_Delegation, ICQCallback(DelegatorSharesCallback)). - AddICQCallback(ICQCallbackID_Validator, ICQCallback(ValidatorSharesToTokensRateCallback)) + AddICQCallback(ICQCallbackID_Validator, ICQCallback(ValidatorSharesToTokensRateCallback)). + AddICQCallback(ICQCallbackID_Calibrate, ICQCallback(CalibrateDelegationCallback)) } diff --git a/x/stakeibc/keeper/icqcallbacks_callibrate_delegation.go b/x/stakeibc/keeper/icqcallbacks_callibrate_delegation.go new file mode 100644 index 0000000000..4032321d39 --- /dev/null +++ b/x/stakeibc/keeper/icqcallbacks_callibrate_delegation.go @@ -0,0 +1,110 @@ +package keeper + +import ( + errorsmod "cosmossdk.io/errors" + sdk "github.com/cosmos/cosmos-sdk/types" + stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/cosmos/gogoproto/proto" + + "github.com/Stride-Labs/stride/v14/utils" + icqtypes "github.com/Stride-Labs/stride/v14/x/interchainquery/types" + "github.com/Stride-Labs/stride/v14/x/stakeibc/types" +) + +// DelegatorSharesCallback is a callback handler for UpdateValidatorSharesExchRate queries. +// +// In an attempt to get the ICA's delegation amount on a given validator, we have to query: +// 1. the validator's internal shares to tokens rate +// 2. the Delegation ICA's delegated shares +// And apply the following equation: +// numTokens = numShares * sharesToTokensRate +// +// This is the callback from query #2 +// +// Note: for now, to get proofs in your ICQs, you need to query the entire store on the host zone! e.g. "store/bank/key" +func CalibrateDelegationCallback(k Keeper, ctx sdk.Context, args []byte, query icqtypes.Query) error { + k.Logger(ctx).Info(utils.LogICQCallbackWithHostZone(query.ChainId, ICQCallbackID_Calibrate, + "Starting delegator shares callback, QueryId: %vs, QueryType: %s, Connection: %s", query.Id, query.QueryType, query.ConnectionId)) + + // Confirm host exists + chainId := query.ChainId + hostZone, found := k.GetHostZone(ctx, chainId) + if !found { + return errorsmod.Wrapf(types.ErrHostZoneNotFound, "no registered zone for queried chain ID (%s)", chainId) + } + + // Unmarshal the query response which returns a delegation object for the delegator/validator pair + queriedDelegation := stakingtypes.Delegation{} + err := k.cdc.Unmarshal(args, &queriedDelegation) + if err != nil { + return errorsmod.Wrapf(err, "unable to unmarshal delegator shares query response into Delegation type") + } + k.Logger(ctx).Info(utils.LogICQCallbackWithHostZone(chainId, ICQCallbackID_Calibrate, "Query response - Delegator: %s, Validator: %s, Shares: %v", + queriedDelegation.DelegatorAddress, queriedDelegation.ValidatorAddress, queriedDelegation.Shares)) + + // Unmarshal the callback data containing the previous delegation to the validator (from the time the query was submitted) + var callbackData types.DelegatorSharesQueryCallback + if err := proto.Unmarshal(query.CallbackData, &callbackData); err != nil { + return errorsmod.Wrapf(err, "unable to unmarshal delegator shares callback data") + } + + // Grab the validator object from the hostZone using the address returned from the query + validator, valIndex, found := GetValidatorFromAddress(hostZone.Validators, queriedDelegation.ValidatorAddress) + if !found { + return errorsmod.Wrapf(types.ErrValidatorNotFound, "no registered validator for address (%s)", queriedDelegation.ValidatorAddress) + } + + // Check if the ICQ overlapped a delegation, undelegation, or detokenization ICA + // that would have modfied the number of delegated tokens + prevInternalDelegation := callbackData.InitialValidatorDelegation + currInternalDelegation := validator.Delegation + icaOverlappedIcq, err := k.CheckDelegationChangedDuringQuery(ctx, validator, prevInternalDelegation, currInternalDelegation) + if err != nil { + return err + } + + // If the ICA/ICQ overlapped, submit a new query + if icaOverlappedIcq { + // Store the updated validator delegation amount + callbackDataBz, err := proto.Marshal(&types.DelegatorSharesQueryCallback{ + InitialValidatorDelegation: currInternalDelegation, + }) + if err != nil { + return errorsmod.Wrapf(err, "unable to marshal delegator shares callback data") + } + query.CallbackData = callbackDataBz + + if err := k.InterchainQueryKeeper.RetryICQRequest(ctx, query); err != nil { + return errorsmod.Wrapf(err, "unable to resubmit delegator shares query") + } + return nil + } + + // If there was no ICA/ICQ overlap, update the validator to indicate that the query + // is no longer in progress (which will unblock LSM liquid stakes to that validator) + validator.SlashQueryInProgress = false + + // Calculate the number of tokens delegated (using the internal sharesToTokensRate) + // note: truncateInt per https://github.com/cosmos/cosmos-sdk/blob/cb31043d35bad90c4daa923bb109f38fd092feda/x/staking/types/validator.go#L431 + delegatedTokens := queriedDelegation.Shares.Mul(validator.SharesToTokensRate).TruncateInt() + k.Logger(ctx).Info(utils.LogICQCallbackWithHostZone(chainId, ICQCallbackID_Calibrate, + "Previous Delegation: %v, Current Delegation: %v", validator.Delegation, delegatedTokens)) + + // Confirm the validator has actually been slashed + if delegatedTokens.Equal(validator.Delegation) { + k.Logger(ctx).Info(utils.LogICQCallbackWithHostZone(chainId, ICQCallbackID_Calibrate, "Validator delegation is correct")) + return nil + } + + delegationChange := validator.Delegation.Sub(delegatedTokens) + validator.Delegation = validator.Delegation.Sub(delegationChange) + hostZone.TotalDelegations = hostZone.TotalDelegations.Sub(delegationChange) + + k.Logger(ctx).Info(utils.LogICQCallbackWithHostZone(chainId, ICQCallbackID_Calibrate, + "Delegation updated to: %v", validator.Delegation)) + + hostZone.Validators[valIndex] = &validator + k.SetHostZone(ctx, hostZone) + + return nil +} diff --git a/x/stakeibc/keeper/msg_server_calibrate_delegation.go b/x/stakeibc/keeper/msg_server_calibrate_delegation.go new file mode 100644 index 0000000000..995f1b7365 --- /dev/null +++ b/x/stakeibc/keeper/msg_server_calibrate_delegation.go @@ -0,0 +1,25 @@ +package keeper + +import ( + "context" + + sdk "github.com/cosmos/cosmos-sdk/types" + + "github.com/Stride-Labs/stride/v14/x/stakeibc/types" +) + +// Submits an ICQ to get the validator's delegated shares +func (k msgServer) CalibrateDelegation(goCtx context.Context, msg *types.MsgCalibrateDelegation) (*types.MsgCalibrateDelegationResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + hostZone, found := k.GetHostZone(ctx, msg.ChainId) + if !found { + return nil, types.ErrHostZoneNotFound + } + + if err := k.SubmitCalibrationICQ(ctx, hostZone, msg.Valoper); err != nil { + return nil, err + } + + return &types.MsgCalibrateDelegationResponse{}, nil +} diff --git a/x/stakeibc/keeper/msg_server_submit_tx.go b/x/stakeibc/keeper/msg_server_submit_tx.go index 50cfdba142..6351c3194e 100644 --- a/x/stakeibc/keeper/msg_server_submit_tx.go +++ b/x/stakeibc/keeper/msg_server_submit_tx.go @@ -492,3 +492,61 @@ func (k Keeper) SubmitDelegationICQ(ctx sdk.Context, hostZone types.HostZone, va return nil } + +// Submits an ICQ to get a validator's delegations +// This is called after the validator's sharesToTokens rate is determined +// The timeoutDuration parameter represents the length of the timeout (not to be confused with an actual timestamp) +func (k Keeper) SubmitCalibrationICQ(ctx sdk.Context, hostZone types.HostZone, validatorAddress string) error { + if hostZone.DelegationIcaAddress == "" { + return errorsmod.Wrapf(types.ErrICAAccountNotFound, "no delegation address found for %s", hostZone.ChainId) + } + validator, valIndex, found := GetValidatorFromAddress(hostZone.Validators, validatorAddress) + if !found { + return errorsmod.Wrapf(types.ErrValidatorNotFound, "no registered validator for address (%s)", validatorAddress) + } + + // Get the validator and delegator encoded addresses to form the query request + _, validatorAddressBz, err := bech32.DecodeAndConvert(validatorAddress) + if err != nil { + return errorsmod.Wrapf(sdkerrors.ErrInvalidRequest, "invalid validator address, could not decode (%s)", err.Error()) + } + _, delegatorAddressBz, err := bech32.DecodeAndConvert(hostZone.DelegationIcaAddress) + if err != nil { + return errorsmod.Wrapf(sdkerrors.ErrInvalidRequest, "invalid delegator address, could not decode (%s)", err.Error()) + } + queryData := stakingtypes.GetDelegationKey(delegatorAddressBz, validatorAddressBz) + + // Store the current validator's delegation in the callback data so we can determine if it changed + // while the query was in flight + callbackData := types.DelegatorSharesQueryCallback{ + InitialValidatorDelegation: validator.Delegation, + } + callbackDataBz, err := proto.Marshal(&callbackData) + if err != nil { + return errorsmod.Wrapf(err, "unable to marshal delegator shares callback data") + } + + // Update the validator to indicate that the slash query is in progress + validator.SlashQueryInProgress = true + hostZone.Validators[valIndex] = &validator + k.SetHostZone(ctx, hostZone) + + // Submit delegator shares ICQ + query := icqtypes.Query{ + ChainId: hostZone.ChainId, + ConnectionId: hostZone.ConnectionId, + QueryType: icqtypes.STAKING_STORE_QUERY_WITH_PROOF, + RequestData: queryData, + CallbackModule: types.ModuleName, + CallbackId: ICQCallbackID_Calibrate, + CallbackData: callbackDataBz, + TimeoutDuration: time.Hour, + TimeoutPolicy: icqtypes.TimeoutPolicy_RETRY_QUERY_REQUEST, + } + if err := k.InterchainQueryKeeper.SubmitICQRequest(ctx, query, false); err != nil { + k.Logger(ctx).Error(fmt.Sprintf("Error submitting ICQ for delegation, error : %s", err.Error())) + return err + } + + return nil +} diff --git a/x/stakeibc/types/codec.go b/x/stakeibc/types/codec.go index e0f63edc89..c28fb0b674 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(&MsgCalibrateDelegation{}, "stakeibc/CalibrateDelegation", nil) cdc.RegisterConcrete(&MsgUpdateInnerRedemptionRateBounds{}, "stakeibc/UpdateInnerRedemptionRateBounds", nil) // this line is used by starport scaffolding # 2 } @@ -40,6 +41,7 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { &MsgDeleteValidator{}, &MsgRestoreInterchainAccount{}, &MsgUpdateValidatorSharesExchRate{}, + &MsgCalibrateDelegation{}, &MsgUpdateInnerRedemptionRateBounds{}, ) diff --git a/x/stakeibc/types/message_calibrate_delegation.go b/x/stakeibc/types/message_calibrate_delegation.go new file mode 100644 index 0000000000..5863ae220f --- /dev/null +++ b/x/stakeibc/types/message_calibrate_delegation.go @@ -0,0 +1,66 @@ +package types + +import ( + "strings" + + 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 TypeMsgCalibrateDelegation = "calibrate_delegation" + +var _ sdk.Msg = &MsgCalibrateDelegation{} + +func NewMsgCalibrateDelegation(creator string, chainid string, valoper string) *MsgCalibrateDelegation { + return &MsgCalibrateDelegation{ + Creator: creator, + ChainId: chainid, + Valoper: valoper, + } +} + +func (msg *MsgCalibrateDelegation) Route() string { + return RouterKey +} + +func (msg *MsgCalibrateDelegation) Type() string { + return TypeMsgCalibrateDelegation +} + +func (msg *MsgCalibrateDelegation) GetSigners() []sdk.AccAddress { + creator, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + panic(err) + } + return []sdk.AccAddress{creator} +} + +func (msg *MsgCalibrateDelegation) GetSignBytes() []byte { + bz := ModuleCdc.MustMarshalJSON(msg) + return sdk.MustSortJSON(bz) +} + +func (msg *MsgCalibrateDelegation) 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 + } + + if len(msg.ChainId) == 0 { + return errorsmod.Wrapf(sdkerrors.ErrInvalidRequest, "chainid is required") + } + if len(msg.Valoper) == 0 { + return errorsmod.Wrapf(sdkerrors.ErrInvalidRequest, "valoper is required") + } + if !strings.Contains(msg.Valoper, "valoper") { + return errorsmod.Wrapf(sdkerrors.ErrInvalidRequest, "validator operator address must contrain 'valoper'") + } + + return nil +} diff --git a/x/stakeibc/types/tx.pb.go b/x/stakeibc/types/tx.pb.go index 3580557e09..558a2b33d0 100644 --- a/x/stakeibc/types/tx.pb.go +++ b/x/stakeibc/types/tx.pb.go @@ -1278,6 +1278,102 @@ func (m *MsgUpdateValidatorSharesExchRateResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdateValidatorSharesExchRateResponse proto.InternalMessageInfo +type MsgCalibrateDelegation 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"` + Valoper string `protobuf:"bytes,3,opt,name=valoper,proto3" json:"valoper,omitempty"` +} + +func (m *MsgCalibrateDelegation) Reset() { *m = MsgCalibrateDelegation{} } +func (m *MsgCalibrateDelegation) String() string { return proto.CompactTextString(m) } +func (*MsgCalibrateDelegation) ProtoMessage() {} +func (*MsgCalibrateDelegation) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7e09c9ad51cd54, []int{26} +} +func (m *MsgCalibrateDelegation) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCalibrateDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCalibrateDelegation.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 *MsgCalibrateDelegation) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCalibrateDelegation.Merge(m, src) +} +func (m *MsgCalibrateDelegation) XXX_Size() int { + return m.Size() +} +func (m *MsgCalibrateDelegation) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCalibrateDelegation.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCalibrateDelegation proto.InternalMessageInfo + +func (m *MsgCalibrateDelegation) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgCalibrateDelegation) GetChainId() string { + if m != nil { + return m.ChainId + } + return "" +} + +func (m *MsgCalibrateDelegation) GetValoper() string { + if m != nil { + return m.Valoper + } + return "" +} + +type MsgCalibrateDelegationResponse struct { +} + +func (m *MsgCalibrateDelegationResponse) Reset() { *m = MsgCalibrateDelegationResponse{} } +func (m *MsgCalibrateDelegationResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCalibrateDelegationResponse) ProtoMessage() {} +func (*MsgCalibrateDelegationResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9b7e09c9ad51cd54, []int{27} +} +func (m *MsgCalibrateDelegationResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgCalibrateDelegationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgCalibrateDelegationResponse.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 *MsgCalibrateDelegationResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCalibrateDelegationResponse.Merge(m, src) +} +func (m *MsgCalibrateDelegationResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgCalibrateDelegationResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCalibrateDelegationResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgCalibrateDelegationResponse proto.InternalMessageInfo + func init() { proto.RegisterType((*MsgUpdateInnerRedemptionRateBounds)(nil), "stride.stakeibc.MsgUpdateInnerRedemptionRateBounds") proto.RegisterType((*MsgUpdateInnerRedemptionRateBoundsResponse)(nil), "stride.stakeibc.MsgUpdateInnerRedemptionRateBoundsResponse") @@ -1305,101 +1401,105 @@ func init() { proto.RegisterType((*MsgRestoreInterchainAccountResponse)(nil), "stride.stakeibc.MsgRestoreInterchainAccountResponse") proto.RegisterType((*MsgUpdateValidatorSharesExchRate)(nil), "stride.stakeibc.MsgUpdateValidatorSharesExchRate") proto.RegisterType((*MsgUpdateValidatorSharesExchRateResponse)(nil), "stride.stakeibc.MsgUpdateValidatorSharesExchRateResponse") + proto.RegisterType((*MsgCalibrateDelegation)(nil), "stride.stakeibc.MsgCalibrateDelegation") + proto.RegisterType((*MsgCalibrateDelegationResponse)(nil), "stride.stakeibc.MsgCalibrateDelegationResponse") } func init() { proto.RegisterFile("stride/stakeibc/tx.proto", fileDescriptor_9b7e09c9ad51cd54) } var fileDescriptor_9b7e09c9ad51cd54 = []byte{ - // 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, 0xd4, 0xe5, - 0x80, 0xb8, 0x20, 0x71, 0x41, 0x02, 0x21, 0x71, 0x44, 0x3d, 0x70, 0x00, 0x71, 0x43, 0xfd, 0x23, - 0x2a, 0x71, 0xa9, 0x7a, 0x42, 0x1c, 0x2c, 0xd4, 0x5e, 0x38, 0xe7, 0x2f, 0x40, 0x33, 0xbb, 0x1e, - 0x7b, 0xd7, 0xeb, 0x38, 0x4d, 0xab, 0x9e, 0xe2, 0x99, 0xf7, 0xcd, 0xfb, 0xbe, 0x79, 0xf3, 0xe6, - 0xcd, 0xcb, 0x82, 0x42, 0xc3, 0xc0, 0xb1, 0x70, 0x99, 0x86, 0xe8, 0x2e, 0x76, 0xea, 0x66, 0x39, - 0x6c, 0x97, 0x9a, 0x81, 0x1f, 0xfa, 0xf2, 0x5c, 0x64, 0x29, 0x75, 0x2d, 0xea, 0x85, 0x34, 0xd4, - 0x31, 0x91, 0x81, 0x4c, 0xd3, 0x6f, 0x91, 0x30, 0x5a, 0xa3, 0x16, 0xd2, 0x90, 0x7d, 0xe4, 0x3a, - 0x16, 0x0a, 0xfd, 0x20, 0x06, 0x2c, 0xd9, 0xbe, 0xed, 0xf3, 0x9f, 0x65, 0xf6, 0x2b, 0x9e, 0x5d, - 0x31, 0x7d, 0xea, 0xf9, 0xd4, 0x88, 0x0c, 0xd1, 0x20, 0x32, 0x69, 0x7f, 0x9d, 0x00, 0xad, 0x46, - 0xed, 0x9b, 0x4d, 0x0b, 0x85, 0xb8, 0x4a, 0x08, 0x0e, 0x74, 0x6c, 0x61, 0xaf, 0x19, 0x3a, 0x3e, - 0xd1, 0x51, 0x88, 0x2b, 0x7e, 0x8b, 0x58, 0x54, 0x56, 0xe0, 0x94, 0x19, 0x60, 0x46, 0xa4, 0x48, - 0x45, 0x69, 0xed, 0xb4, 0xde, 0x1d, 0xca, 0x2b, 0x30, 0x65, 0x36, 0x90, 0x43, 0x0c, 0xc7, 0x52, - 0x4e, 0xc4, 0x26, 0x36, 0xae, 0x5a, 0xf2, 0x7d, 0x58, 0xf1, 0x98, 0x81, 0x79, 0x35, 0x02, 0xe1, - 0xd6, 0x08, 0x50, 0x88, 0x95, 0x71, 0x86, 0xad, 0x7c, 0xf4, 0xb8, 0x53, 0x18, 0xfb, 0xa7, 0x53, - 0x78, 0xdb, 0x76, 0xc2, 0x46, 0xab, 0x5e, 0x32, 0x7d, 0x2f, 0xd6, 0x17, 0xff, 0x59, 0xa7, 0xd6, - 0xdd, 0x72, 0xf8, 0xa0, 0x89, 0x69, 0x69, 0x17, 0x9b, 0x4f, 0x1f, 0xad, 0x43, 0x2c, 0x7f, 0x17, - 0x9b, 0xfa, 0xb2, 0xe7, 0x90, 0x0c, 0xcd, 0x9c, 0x18, 0xb5, 0x87, 0x10, 0x4f, 0xbc, 0x12, 0x62, - 0xd4, 0xce, 0x20, 0xd6, 0x2e, 0xc1, 0xc5, 0xd1, 0xc1, 0xd4, 0x31, 0x6d, 0xfa, 0x84, 0x62, 0xed, - 0x47, 0x09, 0x66, 0x6b, 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64, 0xa8, 0xa0, 0x35, 0x61, 0x2e, 0x5d, 0x40, 0x57, 0xb3, 0xbc, 0xa4, 0x40, 0xea, - 0x7b, 0x47, 0x00, 0x09, 0x92, 0xaf, 0x41, 0x19, 0x5a, 0x04, 0x87, 0xe4, 0x5b, 0x36, 0x5a, 0xbd, - 0xfc, 0x22, 0x68, 0xc1, 0xff, 0xbd, 0x04, 0xe7, 0x0f, 0x2f, 0x63, 0x99, 0x91, 0x3b, 0x74, 0x89, - 0xfa, 0xc1, 0x0b, 0x2f, 0x11, 0x7a, 0x6e, 0x43, 0x2e, 0xf1, 0x5f, 0x5c, 0x31, 0x3b, 0xff, 0x7b, - 0x08, 0x75, 0x6d, 0x14, 0x42, 0xf8, 0xfe, 0x49, 0x82, 0xc2, 0xa8, 0x6f, 0x28, 0x5b, 0xc3, 0xa5, - 0x0f, 0x5d, 0xa4, 0x7e, 0x78, 0x8c, 0x45, 0x5d, 0x55, 0x95, 0x6b, 0x8f, 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, + // 1451 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcf, 0x6f, 0xdb, 0xc6, + 0x12, 0x36, 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11, 0x40, 0xc2, + 0xc9, 0x97, 0xa0, 0x0c, 0xd5, 0xe3, 0x21, 0xf9, 0x96, 0x8e, 0x56, 0xaf, 0xbe, 0x0a, 0x5a, 0xf8, + 0xff, 0x56, 0x82, 0x8b, 0xa3, 0x15, 0x35, 0x35, 0x72, 0x23, 0x97, 0xa8, 0xef, 0xbd, 0xf2, 0x92, + 0xde, 0xdc, 0x4d, 0x53, 0xd0, 0xd4, 0xdc, 0x4d, 0x01, 0xa6, 0xe7, 0xee, 0x08, 0xa9, 0x94, 0xef, + 0x42, 0xb6, 0xef, 0x17, 0x6c, 0x21, 0xbd, 0xe0, 0xba, 0x08, 0x75, 0x7d, 0x1c, 0x42, 0xec, 0xfd, + 0x83, 0x04, 0xf9, 0x71, 0xdf, 0x8f, 0xb6, 0x87, 0xc7, 0x6a, 0xe8, 0x22, 0xf5, 0xfd, 0x63, 0x2c, + 0xea, 0xb0, 0x2a, 0xdf, 0x78, 0xfa, 0x22, 0x27, 0x3d, 0x7b, 0x91, 0x93, 0xfe, 0x7e, 0x91, 0x93, + 0xbe, 0x7b, 0x99, 0x9b, 0x78, 0xf6, 0x32, 0x37, 0xf1, 0xe7, 0xcb, 0xdc, 0xc4, 0xdd, 0xad, 0x9e, + 0x9f, 0x06, 0xfb, 0xdc, 0xc1, 0xc6, 0x0d, 0x54, 0xa3, 0xa5, 0xf8, 0xdb, 0xda, 0xc1, 0xe6, 0xd5, + 0x52, 0xab, 0xe7, 0x7b, 0x1d, 0xfb, 0xa9, 0x50, 0x9b, 0xe6, 0x5f, 0xcb, 0xb6, 0xff, 0x0d, 0x00, + 0x00, 0xff, 0xff, 0x10, 0x8e, 0x60, 0x6c, 0xcf, 0x13, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1425,6 +1525,7 @@ type MsgClient interface { DeleteValidator(ctx context.Context, in *MsgDeleteValidator, opts ...grpc.CallOption) (*MsgDeleteValidatorResponse, error) RestoreInterchainAccount(ctx context.Context, in *MsgRestoreInterchainAccount, opts ...grpc.CallOption) (*MsgRestoreInterchainAccountResponse, error) UpdateValidatorSharesExchRate(ctx context.Context, in *MsgUpdateValidatorSharesExchRate, opts ...grpc.CallOption) (*MsgUpdateValidatorSharesExchRateResponse, error) + CalibrateDelegation(ctx context.Context, in *MsgCalibrateDelegation, opts ...grpc.CallOption) (*MsgCalibrateDelegationResponse, error) ClearBalance(ctx context.Context, in *MsgClearBalance, opts ...grpc.CallOption) (*MsgClearBalanceResponse, error) UpdateInnerRedemptionRateBounds(ctx context.Context, in *MsgUpdateInnerRedemptionRateBounds, opts ...grpc.CallOption) (*MsgUpdateInnerRedemptionRateBoundsResponse, error) } @@ -1536,6 +1637,15 @@ func (c *msgClient) UpdateValidatorSharesExchRate(ctx context.Context, in *MsgUp return out, nil } +func (c *msgClient) CalibrateDelegation(ctx context.Context, in *MsgCalibrateDelegation, opts ...grpc.CallOption) (*MsgCalibrateDelegationResponse, error) { + out := new(MsgCalibrateDelegationResponse) + err := c.cc.Invoke(ctx, "/stride.stakeibc.Msg/CalibrateDelegation", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *msgClient) ClearBalance(ctx context.Context, in *MsgClearBalance, opts ...grpc.CallOption) (*MsgClearBalanceResponse, error) { out := new(MsgClearBalanceResponse) err := c.cc.Invoke(ctx, "/stride.stakeibc.Msg/ClearBalance", in, out, opts...) @@ -1567,6 +1677,7 @@ type MsgServer interface { DeleteValidator(context.Context, *MsgDeleteValidator) (*MsgDeleteValidatorResponse, error) RestoreInterchainAccount(context.Context, *MsgRestoreInterchainAccount) (*MsgRestoreInterchainAccountResponse, error) UpdateValidatorSharesExchRate(context.Context, *MsgUpdateValidatorSharesExchRate) (*MsgUpdateValidatorSharesExchRateResponse, error) + CalibrateDelegation(context.Context, *MsgCalibrateDelegation) (*MsgCalibrateDelegationResponse, error) ClearBalance(context.Context, *MsgClearBalance) (*MsgClearBalanceResponse, error) UpdateInnerRedemptionRateBounds(context.Context, *MsgUpdateInnerRedemptionRateBounds) (*MsgUpdateInnerRedemptionRateBoundsResponse, error) } @@ -1608,6 +1719,9 @@ func (*UnimplementedMsgServer) RestoreInterchainAccount(ctx context.Context, req func (*UnimplementedMsgServer) UpdateValidatorSharesExchRate(ctx context.Context, req *MsgUpdateValidatorSharesExchRate) (*MsgUpdateValidatorSharesExchRateResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateValidatorSharesExchRate not implemented") } +func (*UnimplementedMsgServer) CalibrateDelegation(ctx context.Context, req *MsgCalibrateDelegation) (*MsgCalibrateDelegationResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CalibrateDelegation not implemented") +} func (*UnimplementedMsgServer) ClearBalance(ctx context.Context, req *MsgClearBalance) (*MsgClearBalanceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ClearBalance not implemented") } @@ -1817,6 +1931,24 @@ func _Msg_UpdateValidatorSharesExchRate_Handler(srv interface{}, ctx context.Con return interceptor(ctx, in, info, handler) } +func _Msg_CalibrateDelegation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCalibrateDelegation) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).CalibrateDelegation(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/stride.stakeibc.Msg/CalibrateDelegation", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).CalibrateDelegation(ctx, req.(*MsgCalibrateDelegation)) + } + return interceptor(ctx, in, info, handler) +} + func _Msg_ClearBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(MsgClearBalance) if err := dec(in); err != nil { @@ -1901,6 +2033,10 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "UpdateValidatorSharesExchRate", Handler: _Msg_UpdateValidatorSharesExchRate_Handler, }, + { + MethodName: "CalibrateDelegation", + Handler: _Msg_CalibrateDelegation_Handler, + }, { MethodName: "ClearBalance", Handler: _Msg_ClearBalance_Handler, @@ -2903,6 +3039,73 @@ func (m *MsgUpdateValidatorSharesExchRateResponse) MarshalToSizedBuffer(dAtA []b return len(dAtA) - i, nil } +func (m *MsgCalibrateDelegation) 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 *MsgCalibrateDelegation) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCalibrateDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Valoper) > 0 { + i -= len(m.Valoper) + copy(dAtA[i:], m.Valoper) + i = encodeVarintTx(dAtA, i, uint64(len(m.Valoper))) + 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 *MsgCalibrateDelegationResponse) 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 *MsgCalibrateDelegationResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgCalibrateDelegationResponse) 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 @@ -3335,6 +3538,36 @@ func (m *MsgUpdateValidatorSharesExchRateResponse) Size() (n int) { return n } +func (m *MsgCalibrateDelegation) 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 = len(m.Valoper) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgCalibrateDelegationResponse) 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 } @@ -6234,6 +6467,202 @@ func (m *MsgUpdateValidatorSharesExchRateResponse) Unmarshal(dAtA []byte) error } return nil } +func (m *MsgCalibrateDelegation) 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: MsgCalibrateDelegation: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCalibrateDelegation: 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 Valoper", 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.Valoper = 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 *MsgCalibrateDelegationResponse) 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: MsgCalibrateDelegationResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgCalibrateDelegationResponse: 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