diff --git a/proto/cosmos/staking/v1beta1/tx.proto b/proto/cosmos/staking/v1beta1/tx.proto index b4866d36db..196660049b 100644 --- a/proto/cosmos/staking/v1beta1/tx.proto +++ b/proto/cosmos/staking/v1beta1/tx.proto @@ -21,23 +21,30 @@ service Msg { // EditValidator defines a method for editing an existing validator. rpc EditValidator(MsgEditValidator) returns (MsgEditValidatorResponse); + // RemoveValidator defines a method for removing an existing validator. + rpc RemoveValidator(MsgRemoveValidator) returns (MsgRemoveValidatorResponse); + + // SelfDelegate defines a method for performing a delegation of coins + // for a validator itself. + rpc SelfDelegate(MsgSelfDelegate) returns (MsgDelegateResponse); + // Delegate defines a method for performing a delegation of coins // from a delegator to a validator. - rpc Delegate(MsgDelegate) returns (MsgDelegateResponse); + // rpc Delegate(MsgDelegate) returns (MsgDelegateResponse); // BeginRedelegate defines a method for performing a redelegation // of coins from a delegator and source validator to a destination validator. - rpc BeginRedelegate(MsgBeginRedelegate) returns (MsgBeginRedelegateResponse); + // rpc BeginRedelegate(MsgBeginRedelegate) returns (MsgBeginRedelegateResponse); // Undelegate defines a method for performing an undelegation from a // delegate and a validator. - rpc Undelegate(MsgUndelegate) returns (MsgUndelegateResponse); + // rpc Undelegate(MsgUndelegate) returns (MsgUndelegateResponse); // CancelUnbondingDelegation defines a method for performing canceling the unbonding delegation // and delegate back to previous validator. // // Since: cosmos-sdk 0.46 - rpc CancelUnbondingDelegation(MsgCancelUnbondingDelegation) returns (MsgCancelUnbondingDelegationResponse); + // rpc CancelUnbondingDelegation(MsgCancelUnbondingDelegation) returns (MsgCancelUnbondingDelegationResponse); } // MsgCreateValidator defines a SDK message for creating a new validator. @@ -60,8 +67,9 @@ message MsgCreateValidator { ]; string delegator_address = 4 [(cosmos_proto.scalar) = "cosmos.AddressString"]; string validator_address = 5 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - google.protobuf.Any pubkey = 6 [(cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; - cosmos.base.v1beta1.Coin value = 7 [(gogoproto.nullable) = false]; + string operator_blskey = 6 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + google.protobuf.Any pubkey = 7 [(cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; + cosmos.base.v1beta1.Coin value = 8 [(gogoproto.nullable) = false]; } // MsgCreateValidatorResponse defines the Msg/CreateValidator response type. @@ -76,20 +84,45 @@ message MsgEditValidator { Description description = 1 [(gogoproto.nullable) = false]; string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + string operator_blskey = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // We pass a reference to the new commission rate and min self delegation as // it's not mandatory to update. If not updated, the deserialized rate will be // zero with no way to distinguish if an update was intended. // REF: #2373 - string commission_rate = 3 + string commission_rate = 4 [(cosmos_proto.scalar) = "cosmos.Dec", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"]; - string min_self_delegation = 4 + string min_self_delegation = 5 [(cosmos_proto.scalar) = "cosmos.Int", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; } // MsgEditValidatorResponse defines the Msg/EditValidator response type. message MsgEditValidatorResponse {} +// MsgRemoveValidator defines a SDK message for removing an existing validator. +message MsgRemoveValidator { + option (cosmos.msg.v1.signer) = "validator_address"; + + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string validator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; +} + +// MsgRemoveValidatorResponse defines the Msg/RemoveValidator response type. +message MsgRemoveValidatorResponse {} + +// MsgSelfDelegate defines a SDK message for performing a delegation of coins +// for a validator itself. +message MsgSelfDelegate { + option (cosmos.msg.v1.signer) = "validator_address"; + + option (gogoproto.equal) = false; + + string validator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + cosmos.base.v1beta1.Coin amount = 2 [(gogoproto.nullable) = false]; +} + // MsgDelegate defines a SDK message for performing a delegation of coins // from a delegator to a validator. message MsgDelegate { diff --git a/x/staking/keeper/alias_functions.go b/x/staking/keeper/alias_functions.go index 59c4d23be2..580f9db21d 100644 --- a/x/staking/keeper/alias_functions.go +++ b/x/staking/keeper/alias_functions.go @@ -133,6 +133,26 @@ func (k Keeper) IterateDelegations(ctx sdk.Context, delAddr sdk.AccAddress, } } +// iterate through all of the delegations to a validator +func (k Keeper) IterateDelegationsToValidator(ctx sdk.Context, valAddr sdk.AccAddress, + fn func(del types.DelegationI) (stop bool), +) { + store := ctx.KVStore(k.storeKey) + iterator := sdk.KVStorePrefixIterator(store, types.DelegationKey) + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + del := types.MustUnmarshalDelegation(k.cdc, iterator.Value()) + if del.ValidatorAddress != valAddr.String() { + continue + } + stop := fn(del) + if stop { + break + } + } +} + // return all delegations used during genesis dump // TODO: remove this func, change all usage for iterate functionality func (k Keeper) GetAllSDKDelegations(ctx sdk.Context) (delegations []types.Delegation) { diff --git a/x/staking/keeper/msg_server.go b/x/staking/keeper/msg_server.go index cf74b61ea0..3b354717fb 100644 --- a/x/staking/keeper/msg_server.go +++ b/x/staking/keeper/msg_server.go @@ -205,6 +205,45 @@ func (k msgServer) EditValidator(goCtx context.Context, msg *types.MsgEditValida return &types.MsgEditValidatorResponse{}, nil } +// RemoveValidator defines a method for removing an existing validator +func (k msgServer) RemoveValidator(goCtx context.Context, msg *types.MsgRemoveValidator) (*types.MsgRemoveValidatorResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + valAddr, err := sdk.ValAddressFromBech32(msg.ValidatorAddress) + if err != nil { + return nil, err + } + // validator must already be registered + _, found := k.GetValidator(ctx, valAddr) + if !found { + return nil, types.ErrNoValidatorFound + } + + k.IterateDelegationsToValidator(ctx, sdk.MustAccAddressFromBech32(msg.ValidatorAddress), func(del types.DelegationI) (stop bool) { + _, err = k.Keeper.Undelegate(ctx, del.GetDelegatorAddr(), del.GetValidatorAddr(), del.GetShares()) + if err != nil { + return true + } + + // TODO: emit events for undelegation? + return false + }) + + if err != nil { + return nil, err + } + + return &types.MsgRemoveValidatorResponse{}, nil +} + +// SelfDelegate defines a method for performing a delegation of coins for a validator itself +func (k msgServer) SelfDelegate(goCtx context.Context, msg *types.MsgSelfDelegate) (*types.MsgDelegateResponse, error) { + return k.Delegate(goCtx, &types.MsgDelegate{ + DelegatorAddress: msg.ValidatorAddress, + ValidatorAddress: msg.ValidatorAddress, + Amount: msg.Amount, + }) +} + // Delegate defines a method for performing a delegation of coins from a delegator to a validator func (k msgServer) Delegate(goCtx context.Context, msg *types.MsgDelegate) (*types.MsgDelegateResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) diff --git a/x/staking/types/tx.pb.go b/x/staking/types/tx.pb.go index de558ee1a4..0d18c58769 100644 --- a/x/staking/types/tx.pb.go +++ b/x/staking/types/tx.pb.go @@ -44,8 +44,9 @@ type MsgCreateValidator struct { MinSelfDelegation github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=min_self_delegation,json=minSelfDelegation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"min_self_delegation"` DelegatorAddress string `protobuf:"bytes,4,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` ValidatorAddress string `protobuf:"bytes,5,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` - Pubkey *types.Any `protobuf:"bytes,6,opt,name=pubkey,proto3" json:"pubkey,omitempty"` - Value types1.Coin `protobuf:"bytes,7,opt,name=value,proto3" json:"value"` + OperatorBlskey string `protobuf:"bytes,6,opt,name=operator_blskey,json=operatorBlskey,proto3" json:"operator_blskey,omitempty"` + Pubkey *types.Any `protobuf:"bytes,7,opt,name=pubkey,proto3" json:"pubkey,omitempty"` + Value types1.Coin `protobuf:"bytes,8,opt,name=value,proto3" json:"value"` } func (m *MsgCreateValidator) Reset() { *m = MsgCreateValidator{} } @@ -122,12 +123,13 @@ var xxx_messageInfo_MsgCreateValidatorResponse proto.InternalMessageInfo type MsgEditValidator struct { Description Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description"` ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` + OperatorBlskey string `protobuf:"bytes,3,opt,name=operator_blskey,json=operatorBlskey,proto3" json:"operator_blskey,omitempty"` // We pass a reference to the new commission rate and min self delegation as // it's not mandatory to update. If not updated, the deserialized rate will be // zero with no way to distinguish if an update was intended. // REF: #2373 - CommissionRate *github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=commission_rate,json=commissionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"commission_rate,omitempty"` - MinSelfDelegation *github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=min_self_delegation,json=minSelfDelegation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"min_self_delegation,omitempty"` + CommissionRate *github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=commission_rate,json=commissionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"commission_rate,omitempty"` + MinSelfDelegation *github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=min_self_delegation,json=minSelfDelegation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"min_self_delegation,omitempty"` } func (m *MsgEditValidator) Reset() { *m = MsgEditValidator{} } @@ -200,6 +202,135 @@ func (m *MsgEditValidatorResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgEditValidatorResponse proto.InternalMessageInfo +// MsgRemoveValidator defines a SDK message for removing an existing validator. +type MsgRemoveValidator struct { + ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` +} + +func (m *MsgRemoveValidator) Reset() { *m = MsgRemoveValidator{} } +func (m *MsgRemoveValidator) String() string { return proto.CompactTextString(m) } +func (*MsgRemoveValidator) ProtoMessage() {} +func (*MsgRemoveValidator) Descriptor() ([]byte, []int) { + return fileDescriptor_0926ef28816b35ab, []int{4} +} +func (m *MsgRemoveValidator) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRemoveValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRemoveValidator.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 *MsgRemoveValidator) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRemoveValidator.Merge(m, src) +} +func (m *MsgRemoveValidator) XXX_Size() int { + return m.Size() +} +func (m *MsgRemoveValidator) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRemoveValidator.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRemoveValidator proto.InternalMessageInfo + +// MsgRemoveValidatorResponse defines the Msg/RemoveValidator response type. +type MsgRemoveValidatorResponse struct { +} + +func (m *MsgRemoveValidatorResponse) Reset() { *m = MsgRemoveValidatorResponse{} } +func (m *MsgRemoveValidatorResponse) String() string { return proto.CompactTextString(m) } +func (*MsgRemoveValidatorResponse) ProtoMessage() {} +func (*MsgRemoveValidatorResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_0926ef28816b35ab, []int{5} +} +func (m *MsgRemoveValidatorResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRemoveValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRemoveValidatorResponse.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 *MsgRemoveValidatorResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRemoveValidatorResponse.Merge(m, src) +} +func (m *MsgRemoveValidatorResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgRemoveValidatorResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRemoveValidatorResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRemoveValidatorResponse proto.InternalMessageInfo + +// MsgSelfDelegate defines a SDK message for performing a delegation of coins +// for a validator itself. +type MsgSelfDelegate struct { + ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` + Amount types1.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"` +} + +func (m *MsgSelfDelegate) Reset() { *m = MsgSelfDelegate{} } +func (m *MsgSelfDelegate) String() string { return proto.CompactTextString(m) } +func (*MsgSelfDelegate) ProtoMessage() {} +func (*MsgSelfDelegate) Descriptor() ([]byte, []int) { + return fileDescriptor_0926ef28816b35ab, []int{6} +} +func (m *MsgSelfDelegate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSelfDelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSelfDelegate.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 *MsgSelfDelegate) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSelfDelegate.Merge(m, src) +} +func (m *MsgSelfDelegate) XXX_Size() int { + return m.Size() +} +func (m *MsgSelfDelegate) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSelfDelegate.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSelfDelegate proto.InternalMessageInfo + +func (m *MsgSelfDelegate) GetValidatorAddress() string { + if m != nil { + return m.ValidatorAddress + } + return "" +} + +func (m *MsgSelfDelegate) GetAmount() types1.Coin { + if m != nil { + return m.Amount + } + return types1.Coin{} +} + // MsgDelegate defines a SDK message for performing a delegation of coins // from a delegator to a validator. type MsgDelegate struct { @@ -212,7 +343,7 @@ func (m *MsgDelegate) Reset() { *m = MsgDelegate{} } func (m *MsgDelegate) String() string { return proto.CompactTextString(m) } func (*MsgDelegate) ProtoMessage() {} func (*MsgDelegate) Descriptor() ([]byte, []int) { - return fileDescriptor_0926ef28816b35ab, []int{4} + return fileDescriptor_0926ef28816b35ab, []int{7} } func (m *MsgDelegate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -270,7 +401,7 @@ func (m *MsgDelegateResponse) Reset() { *m = MsgDelegateResponse{} } func (m *MsgDelegateResponse) String() string { return proto.CompactTextString(m) } func (*MsgDelegateResponse) ProtoMessage() {} func (*MsgDelegateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0926ef28816b35ab, []int{5} + return fileDescriptor_0926ef28816b35ab, []int{8} } func (m *MsgDelegateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -312,7 +443,7 @@ func (m *MsgBeginRedelegate) Reset() { *m = MsgBeginRedelegate{} } func (m *MsgBeginRedelegate) String() string { return proto.CompactTextString(m) } func (*MsgBeginRedelegate) ProtoMessage() {} func (*MsgBeginRedelegate) Descriptor() ([]byte, []int) { - return fileDescriptor_0926ef28816b35ab, []int{6} + return fileDescriptor_0926ef28816b35ab, []int{9} } func (m *MsgBeginRedelegate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -378,7 +509,7 @@ func (m *MsgBeginRedelegateResponse) Reset() { *m = MsgBeginRedelegateRe func (m *MsgBeginRedelegateResponse) String() string { return proto.CompactTextString(m) } func (*MsgBeginRedelegateResponse) ProtoMessage() {} func (*MsgBeginRedelegateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0926ef28816b35ab, []int{7} + return fileDescriptor_0926ef28816b35ab, []int{10} } func (m *MsgBeginRedelegateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -426,7 +557,7 @@ func (m *MsgUndelegate) Reset() { *m = MsgUndelegate{} } func (m *MsgUndelegate) String() string { return proto.CompactTextString(m) } func (*MsgUndelegate) ProtoMessage() {} func (*MsgUndelegate) Descriptor() ([]byte, []int) { - return fileDescriptor_0926ef28816b35ab, []int{8} + return fileDescriptor_0926ef28816b35ab, []int{11} } func (m *MsgUndelegate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -485,7 +616,7 @@ func (m *MsgUndelegateResponse) Reset() { *m = MsgUndelegateResponse{} } func (m *MsgUndelegateResponse) String() string { return proto.CompactTextString(m) } func (*MsgUndelegateResponse) ProtoMessage() {} func (*MsgUndelegateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0926ef28816b35ab, []int{9} + return fileDescriptor_0926ef28816b35ab, []int{12} } func (m *MsgUndelegateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -537,7 +668,7 @@ func (m *MsgCancelUnbondingDelegation) Reset() { *m = MsgCancelUnbonding func (m *MsgCancelUnbondingDelegation) String() string { return proto.CompactTextString(m) } func (*MsgCancelUnbondingDelegation) ProtoMessage() {} func (*MsgCancelUnbondingDelegation) Descriptor() ([]byte, []int) { - return fileDescriptor_0926ef28816b35ab, []int{10} + return fileDescriptor_0926ef28816b35ab, []int{13} } func (m *MsgCancelUnbondingDelegation) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -604,7 +735,7 @@ func (m *MsgCancelUnbondingDelegationResponse) Reset() { *m = MsgCancelU func (m *MsgCancelUnbondingDelegationResponse) String() string { return proto.CompactTextString(m) } func (*MsgCancelUnbondingDelegationResponse) ProtoMessage() {} func (*MsgCancelUnbondingDelegationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0926ef28816b35ab, []int{11} + return fileDescriptor_0926ef28816b35ab, []int{14} } func (m *MsgCancelUnbondingDelegationResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -638,6 +769,9 @@ func init() { proto.RegisterType((*MsgCreateValidatorResponse)(nil), "cosmos.staking.v1beta1.MsgCreateValidatorResponse") proto.RegisterType((*MsgEditValidator)(nil), "cosmos.staking.v1beta1.MsgEditValidator") proto.RegisterType((*MsgEditValidatorResponse)(nil), "cosmos.staking.v1beta1.MsgEditValidatorResponse") + proto.RegisterType((*MsgRemoveValidator)(nil), "cosmos.staking.v1beta1.MsgRemoveValidator") + proto.RegisterType((*MsgRemoveValidatorResponse)(nil), "cosmos.staking.v1beta1.MsgRemoveValidatorResponse") + proto.RegisterType((*MsgSelfDelegate)(nil), "cosmos.staking.v1beta1.MsgSelfDelegate") proto.RegisterType((*MsgDelegate)(nil), "cosmos.staking.v1beta1.MsgDelegate") proto.RegisterType((*MsgDelegateResponse)(nil), "cosmos.staking.v1beta1.MsgDelegateResponse") proto.RegisterType((*MsgBeginRedelegate)(nil), "cosmos.staking.v1beta1.MsgBeginRedelegate") @@ -651,66 +785,68 @@ func init() { func init() { proto.RegisterFile("cosmos/staking/v1beta1/tx.proto", fileDescriptor_0926ef28816b35ab) } var fileDescriptor_0926ef28816b35ab = []byte{ - // 936 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x57, 0xcf, 0x6f, 0xdc, 0x44, - 0x14, 0x5e, 0x67, 0x37, 0xa1, 0x4c, 0xd4, 0xa6, 0x75, 0x12, 0xd8, 0x58, 0xd5, 0x6e, 0xb5, 0x2d, - 0x6d, 0x54, 0x88, 0x97, 0x86, 0x22, 0x50, 0xd4, 0x4b, 0xb7, 0xdb, 0x8a, 0xaa, 0xac, 0x84, 0x1c, - 0xca, 0x01, 0x21, 0xad, 0xc6, 0xf6, 0x64, 0x32, 0x5a, 0x7b, 0xc6, 0xf5, 0xcc, 0x46, 0xdd, 0x2b, - 0x27, 0x6e, 0x54, 0xe2, 0x1f, 0xe8, 0x19, 0x71, 0xe0, 0xd0, 0x3f, 0xa2, 0x42, 0x1c, 0xaa, 0x9e, - 0x10, 0x87, 0x02, 0xc9, 0x01, 0x8e, 0x88, 0xbf, 0x00, 0x79, 0x3c, 0x9e, 0xfd, 0xed, 0x3a, 0x28, - 0x3d, 0xa0, 0x9e, 0xd6, 0x9a, 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0xd2, 0x81, 0x02, 0x71, - 0xc5, 0x37, 0x42, 0x60, 0x06, 0x60, 0x35, 0x24, 0xb4, 0xcb, 0x51, 0xb0, 0xd7, 0xf5, 0x51, 0x80, - 0x30, 0x94, 0x67, 0x2c, 0x5f, 0x30, 0x36, 0xdf, 0x6c, 0xdd, 0x48, 0xe0, 0xbf, 0xbe, 0xa8, 0x5f, - 0xc6, 0x44, 0xec, 0xf7, 0x5d, 0xdb, 0x63, 0xa1, 0xd2, 0x53, 0xfd, 0x6c, 0x71, 0xbf, 0xd7, 0x14, - 0x83, 0x08, 0x71, 0xfb, 0x2e, 0x15, 0xcf, 0x9f, 0x6c, 0x01, 0x75, 0x90, 0xbb, 0x54, 0x38, 0xe7, - 0x42, 0x42, 0x77, 0x51, 0xb0, 0xd7, 0xd6, 0xb4, 0xe6, 0x6d, 0x70, 0x4e, 0x25, 0x61, 0x71, 0x17, - 0xfa, 0x7e, 0x8c, 0x38, 0xaf, 0x56, 0x64, 0xae, 0xea, 0xf3, 0x27, 0x5b, 0x6b, 0x2a, 0xfa, 0x66, - 0xba, 0xb3, 0x2b, 0x62, 0x42, 0xb1, 0x73, 0x56, 0x87, 0xa8, 0xf5, 0x84, 0xe6, 0x20, 0x53, 0x57, - 0xd3, 0x2c, 0xbe, 0x8c, 0x46, 0x87, 0x64, 0x34, 0x77, 0xc0, 0x52, 0xd4, 0x77, 0x7b, 0x68, 0x50, - 0x5d, 0x92, 0x32, 0xae, 0xd9, 0xa9, 0xe1, 0xec, 0xcc, 0x70, 0xf6, 0x4d, 0x3a, 0x68, 0x55, 0x7f, - 0x1a, 0x32, 0x7a, 0xf1, 0x20, 0x12, 0xcc, 0xfe, 0xac, 0xef, 0xde, 0x43, 0x03, 0x47, 0x45, 0x9b, - 0x1f, 0x82, 0xc5, 0x03, 0x18, 0xf4, 0x51, 0xf5, 0x0d, 0x49, 0xb3, 0x91, 0x55, 0x23, 0x71, 0xd9, - 0x48, 0x29, 0x48, 0x56, 0xcf, 0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5f, 0xe7, 0xa9, 0x37, 0x81, 0xcd, 0x55, 0x6f, 0x5e, 0xe7, 0x72, 0x01, 0x18, - 0x69, 0x33, 0xef, 0xe4, 0x30, 0x0c, 0x61, 0xd6, 0x56, 0x21, 0x98, 0xce, 0xf1, 0xad, 0x01, 0x36, - 0xe6, 0x5f, 0xb7, 0xeb, 0x79, 0x35, 0x9f, 0x17, 0x65, 0xdd, 0xf8, 0x2f, 0x51, 0xd9, 0x89, 0x5a, - 0x77, 0x9e, 0x1e, 0xd6, 0x8c, 0x67, 0x87, 0x35, 0xe3, 0xf7, 0xc3, 0x9a, 0xf1, 0xe8, 0xa8, 0x56, - 0x7a, 0x76, 0x54, 0x2b, 0xfd, 0x72, 0x54, 0x2b, 0x7d, 0xf9, 0x5e, 0xee, 0x57, 0xcc, 0x43, 0xfd, - 0x5f, 0x46, 0x7e, 0xcf, 0xb8, 0x4b, 0xb2, 0xf3, 0x7c, 0xf0, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, - 0x2b, 0xfb, 0x94, 0x91, 0xb0, 0x0d, 0x00, 0x00, + // 976 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x57, 0xcf, 0x6f, 0x1b, 0x45, + 0x14, 0xf6, 0xda, 0x49, 0x28, 0x13, 0x1a, 0xb7, 0x9b, 0x04, 0x9c, 0x55, 0x65, 0x57, 0xa6, 0x6a, + 0xa2, 0x42, 0xd6, 0x34, 0x80, 0x40, 0x11, 0x97, 0xb8, 0x6e, 0x45, 0x55, 0x2c, 0xa1, 0x0d, 0xe5, + 0xc0, 0xc5, 0xda, 0x1f, 0x93, 0xc9, 0xc8, 0xbb, 0x33, 0xdb, 0x9d, 0x71, 0x54, 0x8b, 0x1b, 0x27, + 0x8e, 0xfd, 0x13, 0x7a, 0xe0, 0x84, 0x84, 0xc4, 0xa1, 0x67, 0xce, 0x15, 0xe2, 0x50, 0xf5, 0x80, + 0x10, 0x87, 0x82, 0x92, 0x03, 0x1c, 0x11, 0x7f, 0x01, 0xda, 0xd9, 0xd9, 0xcd, 0x7a, 0xd7, 0x5e, + 0x3b, 0xe0, 0x1c, 0x50, 0x4f, 0x5e, 0xcd, 0x7c, 0xef, 0x9b, 0xf7, 0xbe, 0xf7, 0xe6, 0xcd, 0x33, + 0x68, 0xd8, 0x94, 0x79, 0x94, 0xb5, 0x18, 0x37, 0xfb, 0x98, 0xa0, 0xd6, 0xd1, 0x4d, 0x0b, 0x72, + 0xf3, 0x66, 0x8b, 0x3f, 0xd4, 0xfd, 0x80, 0x72, 0xaa, 0xbe, 0x1e, 0x01, 0x74, 0x09, 0xd0, 0x25, + 0x40, 0xdb, 0x40, 0x94, 0x22, 0x17, 0xb6, 0x04, 0xca, 0x1a, 0x1c, 0xb4, 0x4c, 0x32, 0x8c, 0x4c, + 0xb4, 0x46, 0x76, 0x8b, 0x63, 0x0f, 0x32, 0x6e, 0x7a, 0xbe, 0x04, 0xac, 0x21, 0x8a, 0xa8, 0xf8, + 0x6c, 0x85, 0x5f, 0x72, 0x75, 0x23, 0x3a, 0xa9, 0x17, 0x6d, 0xc8, 0x63, 0xa3, 0xad, 0xba, 0xf4, + 0xd2, 0x32, 0x19, 0x4c, 0x5c, 0xb4, 0x29, 0x26, 0x72, 0xff, 0xda, 0x84, 0x28, 0x62, 0xa7, 0x23, + 0xd4, 0x1b, 0x12, 0xe5, 0xb1, 0x10, 0x11, 0xfe, 0x44, 0x1b, 0xcd, 0x6f, 0x16, 0x81, 0xda, 0x65, + 0xe8, 0x56, 0x00, 0x4d, 0x0e, 0x3f, 0x37, 0x5d, 0xec, 0x98, 0x9c, 0x06, 0xea, 0x3d, 0xb0, 0xec, + 0x40, 0x66, 0x07, 0xd8, 0xe7, 0x98, 0x92, 0x9a, 0x72, 0x55, 0xd9, 0x5a, 0xde, 0x79, 0x53, 0x1f, + 0x2f, 0x88, 0xde, 0x39, 0x85, 0xb6, 0x17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x89, 0x83, 0x09, 0x9a, 0x36, 0x27, 0xfd, 0xef, 0xb4, 0x56, 0x37, + 0x41, 0xd5, 0x0e, 0xa7, 0x8c, 0x50, 0xb4, 0x43, 0x88, 0xd1, 0x61, 0x74, 0x1f, 0x2a, 0xc6, 0x4a, + 0xbc, 0xfc, 0xb1, 0x58, 0x2d, 0x4c, 0xca, 0x75, 0x70, 0xad, 0x48, 0xab, 0x38, 0x47, 0x3b, 0x3f, + 0x54, 0x40, 0xa5, 0xcb, 0x90, 0xfa, 0x00, 0x54, 0xb3, 0x03, 0xf8, 0x8d, 0x49, 0x83, 0x4a, 0x7e, + 0x0c, 0xd2, 0x76, 0x66, 0xc7, 0x26, 0xe5, 0xd1, 0x07, 0x17, 0x47, 0xc7, 0xa5, 0xad, 0x02, 0x92, + 0x11, 0xa4, 0xf6, 0xce, 0xac, 0xc8, 0xe4, 0xb0, 0x07, 0xa0, 0x9a, 0x7d, 0xa7, 0x8b, 0xe2, 0xcb, + 0x60, 0x0b, 0xe3, 0x9b, 0xf0, 0x04, 0xab, 0x0e, 0x78, 0x6d, 0xe4, 0xf9, 0xdd, 0x2c, 0xe0, 0x48, + 0x03, 0xb5, 0xb7, 0x0a, 0x80, 0xd9, 0xe7, 0xa2, 0x7d, 0xe7, 0xe9, 0x71, 0x5d, 0x79, 0x76, 0x5c, + 0x57, 0x7e, 0x3f, 0xae, 0x2b, 0x8f, 0x4e, 0xea, 0xa5, 0x67, 0x27, 0xf5, 0xd2, 0x2f, 0x27, 0xf5, + 0xd2, 0x17, 0x6f, 0x17, 0x8e, 0x48, 0x0f, 0x93, 0xbf, 0x6b, 0x62, 0x58, 0xb2, 0x96, 0xc4, 0x5d, + 0x7c, 0xf7, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x04, 0xb0, 0x01, 0x2c, 0x93, 0x0e, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -729,20 +865,11 @@ type MsgClient interface { CreateValidator(ctx context.Context, in *MsgCreateValidator, opts ...grpc.CallOption) (*MsgCreateValidatorResponse, error) // EditValidator defines a method for editing an existing validator. EditValidator(ctx context.Context, in *MsgEditValidator, opts ...grpc.CallOption) (*MsgEditValidatorResponse, error) - // Delegate defines a method for performing a delegation of coins - // from a delegator to a validator. - Delegate(ctx context.Context, in *MsgDelegate, opts ...grpc.CallOption) (*MsgDelegateResponse, error) - // BeginRedelegate defines a method for performing a redelegation - // of coins from a delegator and source validator to a destination validator. - BeginRedelegate(ctx context.Context, in *MsgBeginRedelegate, opts ...grpc.CallOption) (*MsgBeginRedelegateResponse, error) - // Undelegate defines a method for performing an undelegation from a - // delegate and a validator. - Undelegate(ctx context.Context, in *MsgUndelegate, opts ...grpc.CallOption) (*MsgUndelegateResponse, error) - // CancelUnbondingDelegation defines a method for performing canceling the unbonding delegation - // and delegate back to previous validator. - // - // Since: cosmos-sdk 0.46 - CancelUnbondingDelegation(ctx context.Context, in *MsgCancelUnbondingDelegation, opts ...grpc.CallOption) (*MsgCancelUnbondingDelegationResponse, error) + // RemoveValidator defines a method for removing an existing validator. + RemoveValidator(ctx context.Context, in *MsgRemoveValidator, opts ...grpc.CallOption) (*MsgRemoveValidatorResponse, error) + // SelfDelegate defines a method for performing a delegation of coins + // for a validator itself. + SelfDelegate(ctx context.Context, in *MsgSelfDelegate, opts ...grpc.CallOption) (*MsgDelegateResponse, error) } type msgClient struct { @@ -771,36 +898,18 @@ func (c *msgClient) EditValidator(ctx context.Context, in *MsgEditValidator, opt return out, nil } -func (c *msgClient) Delegate(ctx context.Context, in *MsgDelegate, opts ...grpc.CallOption) (*MsgDelegateResponse, error) { - out := new(MsgDelegateResponse) - err := c.cc.Invoke(ctx, "/cosmos.staking.v1beta1.Msg/Delegate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) BeginRedelegate(ctx context.Context, in *MsgBeginRedelegate, opts ...grpc.CallOption) (*MsgBeginRedelegateResponse, error) { - out := new(MsgBeginRedelegateResponse) - err := c.cc.Invoke(ctx, "/cosmos.staking.v1beta1.Msg/BeginRedelegate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) Undelegate(ctx context.Context, in *MsgUndelegate, opts ...grpc.CallOption) (*MsgUndelegateResponse, error) { - out := new(MsgUndelegateResponse) - err := c.cc.Invoke(ctx, "/cosmos.staking.v1beta1.Msg/Undelegate", in, out, opts...) +func (c *msgClient) RemoveValidator(ctx context.Context, in *MsgRemoveValidator, opts ...grpc.CallOption) (*MsgRemoveValidatorResponse, error) { + out := new(MsgRemoveValidatorResponse) + err := c.cc.Invoke(ctx, "/cosmos.staking.v1beta1.Msg/RemoveValidator", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *msgClient) CancelUnbondingDelegation(ctx context.Context, in *MsgCancelUnbondingDelegation, opts ...grpc.CallOption) (*MsgCancelUnbondingDelegationResponse, error) { - out := new(MsgCancelUnbondingDelegationResponse) - err := c.cc.Invoke(ctx, "/cosmos.staking.v1beta1.Msg/CancelUnbondingDelegation", in, out, opts...) +func (c *msgClient) SelfDelegate(ctx context.Context, in *MsgSelfDelegate, opts ...grpc.CallOption) (*MsgDelegateResponse, error) { + out := new(MsgDelegateResponse) + err := c.cc.Invoke(ctx, "/cosmos.staking.v1beta1.Msg/SelfDelegate", in, out, opts...) if err != nil { return nil, err } @@ -813,20 +922,11 @@ type MsgServer interface { CreateValidator(context.Context, *MsgCreateValidator) (*MsgCreateValidatorResponse, error) // EditValidator defines a method for editing an existing validator. EditValidator(context.Context, *MsgEditValidator) (*MsgEditValidatorResponse, error) - // Delegate defines a method for performing a delegation of coins - // from a delegator to a validator. - Delegate(context.Context, *MsgDelegate) (*MsgDelegateResponse, error) - // BeginRedelegate defines a method for performing a redelegation - // of coins from a delegator and source validator to a destination validator. - BeginRedelegate(context.Context, *MsgBeginRedelegate) (*MsgBeginRedelegateResponse, error) - // Undelegate defines a method for performing an undelegation from a - // delegate and a validator. - Undelegate(context.Context, *MsgUndelegate) (*MsgUndelegateResponse, error) - // CancelUnbondingDelegation defines a method for performing canceling the unbonding delegation - // and delegate back to previous validator. - // - // Since: cosmos-sdk 0.46 - CancelUnbondingDelegation(context.Context, *MsgCancelUnbondingDelegation) (*MsgCancelUnbondingDelegationResponse, error) + // RemoveValidator defines a method for removing an existing validator. + RemoveValidator(context.Context, *MsgRemoveValidator) (*MsgRemoveValidatorResponse, error) + // SelfDelegate defines a method for performing a delegation of coins + // for a validator itself. + SelfDelegate(context.Context, *MsgSelfDelegate) (*MsgDelegateResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. @@ -839,17 +939,11 @@ func (*UnimplementedMsgServer) CreateValidator(ctx context.Context, req *MsgCrea func (*UnimplementedMsgServer) EditValidator(ctx context.Context, req *MsgEditValidator) (*MsgEditValidatorResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method EditValidator not implemented") } -func (*UnimplementedMsgServer) Delegate(ctx context.Context, req *MsgDelegate) (*MsgDelegateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Delegate not implemented") -} -func (*UnimplementedMsgServer) BeginRedelegate(ctx context.Context, req *MsgBeginRedelegate) (*MsgBeginRedelegateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method BeginRedelegate not implemented") +func (*UnimplementedMsgServer) RemoveValidator(ctx context.Context, req *MsgRemoveValidator) (*MsgRemoveValidatorResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveValidator not implemented") } -func (*UnimplementedMsgServer) Undelegate(ctx context.Context, req *MsgUndelegate) (*MsgUndelegateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Undelegate not implemented") -} -func (*UnimplementedMsgServer) CancelUnbondingDelegation(ctx context.Context, req *MsgCancelUnbondingDelegation) (*MsgCancelUnbondingDelegationResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CancelUnbondingDelegation not implemented") +func (*UnimplementedMsgServer) SelfDelegate(ctx context.Context, req *MsgSelfDelegate) (*MsgDelegateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SelfDelegate not implemented") } func RegisterMsgServer(s grpc1.Server, srv MsgServer) { @@ -892,74 +986,38 @@ func _Msg_EditValidator_Handler(srv interface{}, ctx context.Context, dec func(i return interceptor(ctx, in, info, handler) } -func _Msg_Delegate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgDelegate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).Delegate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cosmos.staking.v1beta1.Msg/Delegate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).Delegate(ctx, req.(*MsgDelegate)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_BeginRedelegate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgBeginRedelegate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).BeginRedelegate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/cosmos.staking.v1beta1.Msg/BeginRedelegate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).BeginRedelegate(ctx, req.(*MsgBeginRedelegate)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_Undelegate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUndelegate) +func _Msg_RemoveValidator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRemoveValidator) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).Undelegate(ctx, in) + return srv.(MsgServer).RemoveValidator(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/cosmos.staking.v1beta1.Msg/Undelegate", + FullMethod: "/cosmos.staking.v1beta1.Msg/RemoveValidator", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).Undelegate(ctx, req.(*MsgUndelegate)) + return srv.(MsgServer).RemoveValidator(ctx, req.(*MsgRemoveValidator)) } return interceptor(ctx, in, info, handler) } -func _Msg_CancelUnbondingDelegation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCancelUnbondingDelegation) +func _Msg_SelfDelegate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSelfDelegate) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).CancelUnbondingDelegation(ctx, in) + return srv.(MsgServer).SelfDelegate(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/cosmos.staking.v1beta1.Msg/CancelUnbondingDelegation", + FullMethod: "/cosmos.staking.v1beta1.Msg/SelfDelegate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CancelUnbondingDelegation(ctx, req.(*MsgCancelUnbondingDelegation)) + return srv.(MsgServer).SelfDelegate(ctx, req.(*MsgSelfDelegate)) } return interceptor(ctx, in, info, handler) } @@ -977,20 +1035,12 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ Handler: _Msg_EditValidator_Handler, }, { - MethodName: "Delegate", - Handler: _Msg_Delegate_Handler, - }, - { - MethodName: "BeginRedelegate", - Handler: _Msg_BeginRedelegate_Handler, - }, - { - MethodName: "Undelegate", - Handler: _Msg_Undelegate_Handler, + MethodName: "RemoveValidator", + Handler: _Msg_RemoveValidator_Handler, }, { - MethodName: "CancelUnbondingDelegation", - Handler: _Msg_CancelUnbondingDelegation_Handler, + MethodName: "SelfDelegate", + Handler: _Msg_SelfDelegate_Handler, }, }, Streams: []grpc.StreamDesc{}, @@ -1026,7 +1076,7 @@ func (m *MsgCreateValidator) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintTx(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x3a + dAtA[i] = 0x42 if m.Pubkey != nil { { size, err := m.Pubkey.MarshalToSizedBuffer(dAtA[:i]) @@ -1037,6 +1087,13 @@ func (m *MsgCreateValidator) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintTx(dAtA, i, uint64(size)) } i-- + dAtA[i] = 0x3a + } + if len(m.OperatorBlskey) > 0 { + i -= len(m.OperatorBlskey) + copy(dAtA[i:], m.OperatorBlskey) + i = encodeVarintTx(dAtA, i, uint64(len(m.OperatorBlskey))) + i-- dAtA[i] = 0x32 } if len(m.ValidatorAddress) > 0 { @@ -1139,7 +1196,7 @@ func (m *MsgEditValidator) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintTx(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x22 + dAtA[i] = 0x2a } if m.CommissionRate != nil { { @@ -1151,6 +1208,13 @@ func (m *MsgEditValidator) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintTx(dAtA, i, uint64(size)) } i-- + dAtA[i] = 0x22 + } + if len(m.OperatorBlskey) > 0 { + i -= len(m.OperatorBlskey) + copy(dAtA[i:], m.OperatorBlskey) + i = encodeVarintTx(dAtA, i, uint64(len(m.OperatorBlskey))) + i-- dAtA[i] = 0x1a } if len(m.ValidatorAddress) > 0 { @@ -1196,6 +1260,99 @@ func (m *MsgEditValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } +func (m *MsgRemoveValidator) 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 *MsgRemoveValidator) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRemoveValidator) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ValidatorAddress) > 0 { + i -= len(m.ValidatorAddress) + copy(dAtA[i:], m.ValidatorAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.ValidatorAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgRemoveValidatorResponse) 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 *MsgRemoveValidatorResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRemoveValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *MsgSelfDelegate) 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 *MsgSelfDelegate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSelfDelegate) 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 = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.ValidatorAddress) > 0 { + i -= len(m.ValidatorAddress) + copy(dAtA[i:], m.ValidatorAddress) + i = encodeVarintTx(dAtA, i, uint64(len(m.ValidatorAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *MsgDelegate) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1340,12 +1497,12 @@ func (m *MsgBeginRedelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, err _ = i var l int _ = l - n8, err8 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.CompletionTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.CompletionTime):]) - if err8 != nil { - return 0, err8 + n9, err9 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.CompletionTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.CompletionTime):]) + if err9 != nil { + return 0, err9 } - i -= n8 - i = encodeVarintTx(dAtA, i, uint64(n8)) + i -= n9 + i = encodeVarintTx(dAtA, i, uint64(n9)) i-- dAtA[i] = 0xa return len(dAtA) - i, nil @@ -1418,12 +1575,12 @@ func (m *MsgUndelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - n10, err10 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.CompletionTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.CompletionTime):]) - if err10 != nil { - return 0, err10 + n11, err11 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.CompletionTime, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.CompletionTime):]) + if err11 != nil { + return 0, err11 } - i -= n10 - i = encodeVarintTx(dAtA, i, uint64(n10)) + i -= n11 + i = encodeVarintTx(dAtA, i, uint64(n11)) i-- dAtA[i] = 0xa return len(dAtA) - i, nil @@ -1535,6 +1692,10 @@ func (m *MsgCreateValidator) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } + l = len(m.OperatorBlskey) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } if m.Pubkey != nil { l = m.Pubkey.Size() n += 1 + l + sovTx(uint64(l)) @@ -1565,6 +1726,10 @@ func (m *MsgEditValidator) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } + l = len(m.OperatorBlskey) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } if m.CommissionRate != nil { l = m.CommissionRate.Size() n += 1 + l + sovTx(uint64(l)) @@ -1585,26 +1750,20 @@ func (m *MsgEditValidatorResponse) Size() (n int) { return n } -func (m *MsgDelegate) Size() (n int) { +func (m *MsgRemoveValidator) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.DelegatorAddress) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } l = len(m.ValidatorAddress) if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = m.Amount.Size() - n += 1 + l + sovTx(uint64(l)) return n } -func (m *MsgDelegateResponse) Size() (n int) { +func (m *MsgRemoveValidatorResponse) Size() (n int) { if m == nil { return 0 } @@ -1613,21 +1772,13 @@ func (m *MsgDelegateResponse) Size() (n int) { return n } -func (m *MsgBeginRedelegate) Size() (n int) { +func (m *MsgSelfDelegate) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.DelegatorAddress) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.ValidatorSrcAddress) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.ValidatorDstAddress) + l = len(m.ValidatorAddress) if l > 0 { n += 1 + l + sovTx(uint64(l)) } @@ -1636,13 +1787,64 @@ func (m *MsgBeginRedelegate) Size() (n int) { return n } -func (m *MsgBeginRedelegateResponse) Size() (n int) { +func (m *MsgDelegate) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = github_com_gogo_protobuf_types.SizeOfStdTime(m.CompletionTime) + l = len(m.DelegatorAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ValidatorAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Amount.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgDelegateResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgBeginRedelegate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.DelegatorAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ValidatorSrcAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.ValidatorDstAddress) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Amount.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgBeginRedelegateResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = github_com_gogo_protobuf_types.SizeOfStdTime(m.CompletionTime) n += 1 + l + sovTx(uint64(l)) return n } @@ -1908,6 +2110,38 @@ func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error { m.ValidatorAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OperatorBlskey", 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.OperatorBlskey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Pubkey", wireType) } @@ -1943,7 +2177,7 @@ func (m *MsgCreateValidator) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 7: + case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } @@ -2142,6 +2376,38 @@ func (m *MsgEditValidator) Unmarshal(dAtA []byte) error { m.ValidatorAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OperatorBlskey", 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.OperatorBlskey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field CommissionRate", wireType) } @@ -2177,7 +2443,7 @@ func (m *MsgEditValidator) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 4: + case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MinSelfDelegation", wireType) } @@ -2284,6 +2550,253 @@ func (m *MsgEditValidatorResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *MsgRemoveValidator) 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: MsgRemoveValidator: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRemoveValidator: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", 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.ValidatorAddress = 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 *MsgRemoveValidatorResponse) 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: MsgRemoveValidatorResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRemoveValidatorResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgSelfDelegate) 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: MsgSelfDelegate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSelfDelegate: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddress", 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.ValidatorAddress = 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 ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + 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 := 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 *MsgDelegate) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0