Skip to content

Commit

Permalink
chore(bank): address lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fdymylja committed Feb 25, 2021
1 parent ee4a2e4 commit 63e6fcb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions x/bank/types/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const (
AttributeKeyBurner = "burner"
)

// NewCoinSpentEvent constructs a new coin spent sdk.Event
// nolint: interfacer
func NewCoinSpentEvent(spender sdk.AccAddress, amount sdk.Coins) sdk.Event {
return sdk.NewEvent(
EventTypeCoinSpent,
Expand All @@ -33,6 +35,8 @@ func NewCoinSpentEvent(spender sdk.AccAddress, amount sdk.Coins) sdk.Event {
)
}

// NewCoinReceivedEvent constructs a new coin received sdk.Event
// nolint: interfacer
func NewCoinReceivedEvent(receiver sdk.AccAddress, amount sdk.Coins) sdk.Event {
return sdk.NewEvent(
EventTypeCoinReceived,
Expand All @@ -41,6 +45,8 @@ func NewCoinReceivedEvent(receiver sdk.AccAddress, amount sdk.Coins) sdk.Event {
)
}

// NewCoinMintEvent construct a new coin minted sdk.Event
// nolint: interfacer
func NewCoinMintEvent(minter sdk.AccAddress, amount sdk.Coins) sdk.Event {
return sdk.NewEvent(
EventTypeCoinMint,
Expand All @@ -49,6 +55,8 @@ func NewCoinMintEvent(minter sdk.AccAddress, amount sdk.Coins) sdk.Event {
)
}

// NewCoinBurnEvent constructs a new coin burned sdk.Event
// nolint: interfacer
func NewCoinBurnEvent(burner sdk.AccAddress, amount sdk.Coins) sdk.Event {
return sdk.NewEvent(
EventTypeCoinBurn,
Expand Down

0 comments on commit 63e6fcb

Please sign in to comment.