Skip to content

Commit

Permalink
Merge pull request #561 from DefiantLabs/patch/ibc-apps-smart-account…
Browse files Browse the repository at this point in the history
…s-ignore

patch/Add ignorers for new message types in need of research
  • Loading branch information
pharr117 authored Jul 19, 2024
2 parents 0ba52e5 + 7b3467f commit 6191481
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 6191481

Please sign in to comment.