From fa1fa16ca90709412cfb22d400ee98c0ff4a101b Mon Sep 17 00:00:00 2001 From: klim0v Date: Wed, 23 Sep 2020 10:50:15 +0300 Subject: [PATCH] events --- api/v2/service/events.go | 2 ++ core/events/types.go | 2 +- core/transaction/transaction.go | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) 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 (