From 19d10988f931a6dea07d2c7cd7412ea475708ae6 Mon Sep 17 00:00:00 2001 From: pharr117 Date: Sun, 4 Feb 2024 17:33:36 -0500 Subject: [PATCH] Add new poolmanager swap into csv parsers --- csv/parsers/accointing/accointing.go | 2 +- csv/parsers/cointracker/cointracker.go | 2 +- csv/parsers/cryptotaxcalculator/cryptotaxcalculator.go | 2 +- csv/parsers/koinly/koinly.go | 2 +- csv/parsers/taxbit/taxbit.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/csv/parsers/accointing/accointing.go b/csv/parsers/accointing/accointing.go index 1eaf81f..103c073 100644 --- a/csv/parsers/accointing/accointing.go +++ b/csv/parsers/accointing/accointing.go @@ -251,7 +251,7 @@ func ParseTx(address string, events []db.TaxableTransaction) (rows []parsers.Csv newRow, err = ParseMsgAcknowledgement(address, event) case ibc.MsgRecvPacket: newRow, err = ParseMsgRecvPacket(address, event) - case poolmanager.MsgSplitRouteSwapExactAmountIn, poolmanager.MsgSwapExactAmountIn, poolmanager.MsgSwapExactAmountOut: + case poolmanager.MsgSplitRouteSwapExactAmountIn, poolmanager.MsgSwapExactAmountIn, poolmanager.MsgSwapExactAmountOut, poolmanager.MsgSplitRouteSwapExactAmountOut: newRow, err = ParsePoolManagerSwap(event) case concentratedliquidity.MsgCollectIncentives, concentratedliquidity.MsgCollectSpreadRewards: newRow, err = ParseConcentratedLiquidityCollection(event) diff --git a/csv/parsers/cointracker/cointracker.go b/csv/parsers/cointracker/cointracker.go index f55a1c6..67f7620 100644 --- a/csv/parsers/cointracker/cointracker.go +++ b/csv/parsers/cointracker/cointracker.go @@ -213,7 +213,7 @@ func ParseTx(address string, events []db.TaxableTransaction, fees []db.Fee) (row newRow, err = ParseMsgAcknowledgement(address, event) case ibc.MsgRecvPacket: newRow, err = ParseMsgRecvPacket(address, event) - case poolmanager.MsgSplitRouteSwapExactAmountIn, poolmanager.MsgSwapExactAmountIn, poolmanager.MsgSwapExactAmountOut: + case poolmanager.MsgSplitRouteSwapExactAmountIn, poolmanager.MsgSwapExactAmountIn, poolmanager.MsgSwapExactAmountOut, poolmanager.MsgSplitRouteSwapExactAmountOut: newRow, err = ParsePoolManagerSwap(event) case concentratedliquidity.MsgCollectIncentives, concentratedliquidity.MsgCollectSpreadRewards: newRow, err = ParseConcentratedLiquidityCollection(event) diff --git a/csv/parsers/cryptotaxcalculator/cryptotaxcalculator.go b/csv/parsers/cryptotaxcalculator/cryptotaxcalculator.go index 9e3d4ef..a14f84e 100644 --- a/csv/parsers/cryptotaxcalculator/cryptotaxcalculator.go +++ b/csv/parsers/cryptotaxcalculator/cryptotaxcalculator.go @@ -214,7 +214,7 @@ func ParseTx(address string, events []db.TaxableTransaction) (rows []parsers.Csv newRow, err = ParseMsgAcknowledgement(address, event) case ibc.MsgRecvPacket: newRow, err = ParseMsgRecvPacket(address, event) - case poolmanager.MsgSplitRouteSwapExactAmountIn, poolmanager.MsgSwapExactAmountIn, poolmanager.MsgSwapExactAmountOut: + case poolmanager.MsgSplitRouteSwapExactAmountIn, poolmanager.MsgSwapExactAmountIn, poolmanager.MsgSwapExactAmountOut, poolmanager.MsgSplitRouteSwapExactAmountOut: newRow, err = ParsePoolManagerSwap(address, event) case concentratedliquidity.MsgCollectIncentives, concentratedliquidity.MsgCollectSpreadRewards: newRow, err = ParseConcentratedLiquidityCollection(event) diff --git a/csv/parsers/koinly/koinly.go b/csv/parsers/koinly/koinly.go index 427052a..3b460b3 100644 --- a/csv/parsers/koinly/koinly.go +++ b/csv/parsers/koinly/koinly.go @@ -317,7 +317,7 @@ func ParseTx(address string, events []db.TaxableTransaction) (rows []parsers.Csv newRow, err = ParseMsgAcknowledgement(address, event) case ibc.MsgRecvPacket: newRow, err = ParseMsgRecvPacket(address, event) - case poolmanager.MsgSplitRouteSwapExactAmountIn, poolmanager.MsgSwapExactAmountIn, poolmanager.MsgSwapExactAmountOut: + case poolmanager.MsgSplitRouteSwapExactAmountIn, poolmanager.MsgSwapExactAmountIn, poolmanager.MsgSwapExactAmountOut, poolmanager.MsgSplitRouteSwapExactAmountOut: newRow, err = ParsePoolManagerSwap(event) case concentratedliquidity.MsgCollectIncentives, concentratedliquidity.MsgCollectSpreadRewards: newRow, err = ParseConcentratedLiquidityCollection(event) diff --git a/csv/parsers/taxbit/taxbit.go b/csv/parsers/taxbit/taxbit.go index 2dfbffe..e3ef1bb 100644 --- a/csv/parsers/taxbit/taxbit.go +++ b/csv/parsers/taxbit/taxbit.go @@ -246,7 +246,7 @@ func ParseTx(address string, events []db.TaxableTransaction) (rows []parsers.Csv newRow, err = ParseMsgTransfer(address, event) case ibc.MsgRecvPacket: newRow, err = ParseMsgTransfer(address, event) - case poolmanager.MsgSplitRouteSwapExactAmountIn, poolmanager.MsgSwapExactAmountIn, poolmanager.MsgSwapExactAmountOut: + case poolmanager.MsgSplitRouteSwapExactAmountIn, poolmanager.MsgSwapExactAmountIn, poolmanager.MsgSwapExactAmountOut, poolmanager.MsgSplitRouteSwapExactAmountOut: newRow, err = ParsePoolManagerSwap(event) case valsetpref.MsgDelegateBondedTokens, valsetpref.MsgUndelegateFromValidatorSet, valsetpref.MsgRedelegateValidatorSet, valsetpref.MsgWithdrawDelegationRewards, valsetpref.MsgDelegateToValidatorSet, valsetpref.MsgUndelegateFromRebalancedValidatorSet: newRow, err = ParseValsetPrefRewards(event)