Skip to content

Commit

Permalink
Add ignorers for new message types, bump lens to version that support…
Browse files Browse the repository at this point in the history
…s IBC interchainaccounts (#539)
  • Loading branch information
pharr117 committed Mar 24, 2024
1 parent b2a559a commit 90793a3
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
4 changes: 4 additions & 0 deletions core/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
"github.com/DefiantLabs/cosmos-tax-cli/osmosis/modules/gamm"
"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/superfluid"
"github.com/DefiantLabs/cosmos-tax-cli/osmosis/modules/tokenfactory"
"github.com/DefiantLabs/cosmos-tax-cli/osmosis/modules/valsetpref"
Expand Down Expand Up @@ -93,6 +94,7 @@ var messageTypeIgnorer = map[string]interface{}{
ibc.MsgChannelOpenAck: nil,
ibc.MsgChannelCloseConfirm: nil,
ibc.MsgChannelCloseInit: nil,
ibc.MsgSubmitMisbehaviour: nil,
// Creating and modifying gauges does not create taxable events
incentives.MsgCreateGauge: nil,
incentives.MsgAddToGauge: nil,
Expand All @@ -102,6 +104,8 @@ var messageTypeIgnorer = map[string]interface{}{
lockup.MsgBeginUnlockingAll: nil,
lockup.MsgUnlockPeriodLock: nil,
lockup.MsgUnlockTokens: nil,
// Protorev taxable events are handled in epoch BeginBlock events
protorev.MsgSetDeveloperAccount: nil,
// Unjailing and updating params is not taxable
slashing.MsgUnjail: nil,
slashing.MsgUpdateParams: nil,
Expand Down
2 changes: 2 additions & 0 deletions cosmos/modules/ibc/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ const (
MsgCreateClient = "/ibc.core.client.v1.MsgCreateClient"
MsgUpdateClient = "/ibc.core.client.v1.MsgUpdateClient"

MsgSubmitMisbehaviour = "/ibc.core.client.v1.MsgSubmitMisbehaviour"

// Consts used for classifying Ack messages
// We may need to keep extending these consts for other types
AckFungibleTokenTransfer = 0
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/BurntSushi/toml v1.3.2
// FYI, you can do go get github.com/DefiantLabs/lens@1f6f34841280df179c6e098f040bd584ced43a4c
// (using the commit hash from github) to pin to a specific commit.
github.com/DefiantLabs/lens v0.3.1-0.20240101000419-bb969d3477ae
github.com/DefiantLabs/lens v0.3.1-0.20240324163350-914cc2a29ee6
github.com/cosmos/cosmos-sdk v0.47.5
github.com/gin-gonic/gin v1.9.1
github.com/go-co-op/gocron v1.13.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -562,8 +562,8 @@ github.com/CosmWasm/wasmvm v1.5.0/go.mod h1:fXB+m2gyh4v9839zlIXdMZGeLAxqUdYdFQqY
github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM=
github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ=
github.com/DataDog/zstd v1.5.0/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw=
github.com/DefiantLabs/lens v0.3.1-0.20240101000419-bb969d3477ae h1:7M4OG9kQiYpZzrW6h27ZrRDRPBk8GKgE91k0bFpOQa0=
github.com/DefiantLabs/lens v0.3.1-0.20240101000419-bb969d3477ae/go.mod h1:ekVRslkfBkX2+qSbsJxZ+lcB6Yi22M7Tk4a7cvaDbCM=
github.com/DefiantLabs/lens v0.3.1-0.20240324163350-914cc2a29ee6 h1:I64YDD/RIyROZZNGBv5GhiOzIL+twLvCZ7CD96J3i/8=
github.com/DefiantLabs/lens v0.3.1-0.20240324163350-914cc2a29ee6/go.mod h1:ekVRslkfBkX2+qSbsJxZ+lcB6Yi22M7Tk4a7cvaDbCM=
github.com/JohnCGriffin/overflow v0.0.0-20211019200055-46fa312c352c/go.mod h1:X0CRv0ky0k6m906ixxpzmDRLvX58TFUKS2eePweuyxk=
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0=
github.com/KyleBanks/depth v1.2.1 h1:5h8fQADFrWtarTdtDudMmGsC7GPbOAu6RVB3ffsVFHc=
Expand Down
5 changes: 5 additions & 0 deletions osmosis/modules/protorev/types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package protorev

const (
MsgSetDeveloperAccount = "/osmosis.protorev.v1beta1.MsgSetDeveloperAccount"
)

0 comments on commit 90793a3

Please sign in to comment.