Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patch/Add ignorers for new message types in need of research #561

Merged
merged 2 commits into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
)
Loading