diff --git a/api/v2/service/events.go b/api/v2/service/events.go index 04fec7405..e90fec82b 100644 --- a/api/v2/service/events.go +++ b/api/v2/service/events.go @@ -50,6 +50,8 @@ func (s *Service) Events(ctx context.Context, req *pb.EventsRequest) (*pb.Events t = "minter/SlashEvent" case *eventsdb.UnbondEvent: t = "minter/UnbondEvent" + case *eventsdb.StakeKickEvent: + t = "minter/StakeKickEvent" default: t = "Undefined Type" } diff --git a/core/events/types.go b/core/events/types.go index 96a426448..c3ecbf5e8 100644 --- a/core/events/types.go +++ b/core/events/types.go @@ -16,7 +16,7 @@ func RegisterAminoEvents(codec *amino.Codec) { codec.RegisterConcrete(UnbondEvent{}, "minter/UnbondEvent", nil) codec.RegisterConcrete(StakeKickEvent{}, - "minter/StakeKick", nil) + "minter/StakeKickEvent", nil) } type Event interface { diff --git a/core/transaction/transaction.go b/core/transaction/transaction.go index 462d1cc81..d99d7f3bd 100644 --- a/core/transaction/transaction.go +++ b/core/transaction/transaction.go @@ -15,7 +15,9 @@ import ( "math/big" ) +// TxType of transaction is determined by a single byte. type TxType byte + type SigType byte const (