Skip to content

Commit

Permalink
Add ignorer for CancelUnbondingDelegation
Browse files Browse the repository at this point in the history
  • Loading branch information
pharr117 committed Jan 23, 2024
1 parent 786a87a commit 21d26cf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
5 changes: 3 additions & 2 deletions core/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,9 @@ var messageTypeIgnorer = map[string]interface{}{
slashing.MsgUnjail: nil,
slashing.MsgUpdateParams: nil,
// Creating and editing validator is not taxable
staking.MsgCreateValidator: nil,
staking.MsgEditValidator: nil,
staking.MsgCreateValidator: nil,
staking.MsgEditValidator: nil,
staking.MsgCancelUnbondingDelegation: nil, // No rewards are withdrawn when cancelling an unbonding delegation
// Delegating and Locking are not taxable
superfluid.MsgSuperfluidDelegate: nil,
superfluid.MsgSuperfluidUndelegate: nil,
Expand Down
11 changes: 6 additions & 5 deletions cosmos/modules/staking/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ import (
)

const (
MsgDelegate = "/cosmos.staking.v1beta1.MsgDelegate"
MsgUndelegate = "/cosmos.staking.v1beta1.MsgUndelegate"
MsgBeginRedelegate = "/cosmos.staking.v1beta1.MsgBeginRedelegate"
MsgCreateValidator = "/cosmos.staking.v1beta1.MsgCreateValidator" // An explicitly ignored msg for tx parsing purposes
MsgEditValidator = "/cosmos.staking.v1beta1.MsgEditValidator" // An explicitly ignored msg for tx parsing purposes
MsgDelegate = "/cosmos.staking.v1beta1.MsgDelegate"
MsgUndelegate = "/cosmos.staking.v1beta1.MsgUndelegate"
MsgBeginRedelegate = "/cosmos.staking.v1beta1.MsgBeginRedelegate"
MsgCreateValidator = "/cosmos.staking.v1beta1.MsgCreateValidator" // An explicitly ignored msg for tx parsing purposes
MsgEditValidator = "/cosmos.staking.v1beta1.MsgEditValidator" // An explicitly ignored msg for tx parsing purposes
MsgCancelUnbondingDelegation = "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation"
)

type WrapperMsgDelegate struct {
Expand Down

0 comments on commit 21d26cf

Please sign in to comment.