Skip to content

Commit

Permalink
events
Browse files Browse the repository at this point in the history
  • Loading branch information
klim0v committed Sep 23, 2020
1 parent 2c4dafd commit fa1fa16
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions api/v2/service/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
2 changes: 1 addition & 1 deletion core/events/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions core/transaction/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ import (
"math/big"
)

// TxType of transaction is determined by a single byte.
type TxType byte

type SigType byte

const (
Expand Down

0 comments on commit fa1fa16

Please sign in to comment.