Skip to content

Commit

Permalink
Add ignorers for new message types in need of research
Browse files Browse the repository at this point in the history
  • Loading branch information
pharr117 committed Jul 18, 2024
1 parent abbba5c commit 28879d2
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
10 changes: 10 additions & 0 deletions core/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (
"github.com/DefiantLabs/cosmos-tax-cli/osmosis/modules/incentives"
"github.com/DefiantLabs/cosmos-tax-cli/osmosis/modules/lockup"
"github.com/DefiantLabs/cosmos-tax-cli/osmosis/modules/protorev"
"github.com/DefiantLabs/cosmos-tax-cli/osmosis/modules/smartaccount"
"github.com/DefiantLabs/cosmos-tax-cli/osmosis/modules/superfluid"
"github.com/DefiantLabs/cosmos-tax-cli/osmosis/modules/tokenfactory"
"github.com/DefiantLabs/cosmos-tax-cli/osmosis/modules/valsetpref"
Expand Down Expand Up @@ -106,6 +107,10 @@ var messageTypeIgnorer = map[string]interface{}{
ibc.MsgChannelCloseConfirm: nil,
ibc.MsgChannelCloseInit: nil,
ibc.MsgSubmitMisbehaviour: nil,

// Interchain accounts are being explored for taxable types
ibc.InterchainAccountsMsgRegisterInterchainAccount: nil,
ibc.InterchainAccountsMsgSendTX: nil,
// Creating and modifying gauges does not create taxable events
incentives.MsgCreateGauge: nil,
incentives.MsgAddToGauge: nil,
Expand All @@ -121,6 +126,11 @@ var messageTypeIgnorer = map[string]interface{}{
// Unjailing and updating params is not taxable
slashing.MsgUnjail: nil,
slashing.MsgUpdateParams: nil,

// Smart accounts are being explored
smartaccount.MsgAddAuthenticator: nil,
smartaccount.MsgRemoveAuthenticator: nil,

// Creating and editing validator is not taxable
staking.MsgCreateValidator: nil,
staking.MsgEditValidator: nil,
Expand Down
6 changes: 6 additions & 0 deletions cosmos/modules/ibc/interchainaccounts_types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package ibc

const (
InterchainAccountsMsgRegisterInterchainAccount = "/ibc.applications.interchain_accounts.controller.v1.MsgRegisterInterchainAccount"
InterchainAccountsMsgSendTX = "/ibc.applications.interchain_accounts.controller.v1.MsgSendTx"
)
6 changes: 6 additions & 0 deletions osmosis/modules/smartaccount/types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package smartaccount

const (
MsgAddAuthenticator = "/osmosis.smartaccount.v1beta1.MsgAddAuthenticator"
MsgRemoveAuthenticator = "/osmosis.smartaccount.v1beta1.MsgRemoveAuthenticator"
)

0 comments on commit 28879d2

Please sign in to comment.