From 6047ba174d0513fec30a53010695f098ea201a39 Mon Sep 17 00:00:00 2001 From: pharr117 Date: Sun, 24 Mar 2024 12:37:15 -0400 Subject: [PATCH] Add ignorers for new message types, bump lens to version that supports IBC interchainaccounts --- core/tx.go | 4 ++++ cosmos/modules/ibc/types.go | 2 ++ go.mod | 2 +- go.sum | 4 ++-- osmosis/modules/protorev/types.go | 5 +++++ 5 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 osmosis/modules/protorev/types.go diff --git a/core/tx.go b/core/tx.go index ca2600d..e94d2f1 100644 --- a/core/tx.go +++ b/core/tx.go @@ -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" @@ -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, @@ -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, diff --git a/cosmos/modules/ibc/types.go b/cosmos/modules/ibc/types.go index 6182362..4b7c426 100644 --- a/cosmos/modules/ibc/types.go +++ b/cosmos/modules/ibc/types.go @@ -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 diff --git a/go.mod b/go.mod index 1732a26..17b8f07 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index 1bb6961..f027800 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/osmosis/modules/protorev/types.go b/osmosis/modules/protorev/types.go new file mode 100644 index 0000000..1181e5d --- /dev/null +++ b/osmosis/modules/protorev/types.go @@ -0,0 +1,5 @@ +package protorev + +const ( + MsgSetDeveloperAccount = "/osmosis.protorev.v1beta1.MsgSetDeveloperAccount" +)