diff --git a/pkg/parser/hashflow/hashflow_test.go b/pkg/parser/hashflow/hashflow_test.go index 5d68730..7ee50f6 100644 --- a/pkg/parser/hashflow/hashflow_test.go +++ b/pkg/parser/hashflow/hashflow_test.go @@ -3,7 +3,7 @@ package hashflow import ( "context" "encoding/json" - tradelogs_type "github.com/KyberNetwork/tradelogs/pkg/types" + tradelogstype "github.com/KyberNetwork/tradelogs/pkg/types" tradingTypes "github.com/KyberNetwork/tradinglib/pkg/types" "math/big" "strings" @@ -85,7 +85,7 @@ func TestParseWithCallFrame(t *testing.T) { continue } - parse, err := p.ParseWithCallFrame(tradelogs_type.ConvertCallFrame(&callFrame), *eventLog, uint64(time.Now().Unix())) + parse, err := p.ParseWithCallFrame(tradelogstype.ConvertCallFrame(&callFrame), *eventLog, uint64(time.Now().Unix())) require.NoError(t, err) t.Log(parse) } diff --git a/pkg/parser/hashflow_v3/hashflowv3_test.go b/pkg/parser/hashflow_v3/hashflowv3_test.go index 68fcf89..59cfdea 100644 --- a/pkg/parser/hashflow_v3/hashflowv3_test.go +++ b/pkg/parser/hashflow_v3/hashflowv3_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - tradelogs_types "github.com/KyberNetwork/tradelogs/pkg/types" + tradelogstypes "github.com/KyberNetwork/tradelogs/pkg/types" "github.com/ethereum/go-ethereum" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" @@ -85,7 +85,7 @@ func TestParseWithCallFrame(t *testing.T) { continue } - parse, err := p.ParseWithCallFrame(tradelogs_types.ConvertCallFrame(&callFrame), *eventLog, uint64(time.Now().Unix())) + parse, err := p.ParseWithCallFrame(tradelogstypes.ConvertCallFrame(&callFrame), *eventLog, uint64(time.Now().Unix())) require.NoError(t, err) t.Log(parse) } diff --git a/pkg/parser/kyberswap_rfq/kyberswap_rfq_test.go b/pkg/parser/kyberswap_rfq/kyberswap_rfq_test.go index a009d6d..b8dc1cf 100644 --- a/pkg/parser/kyberswap_rfq/kyberswap_rfq_test.go +++ b/pkg/parser/kyberswap_rfq/kyberswap_rfq_test.go @@ -4,7 +4,7 @@ import ( "context" "encoding/json" "github.com/KyberNetwork/tradelogs/pkg/storage" - tradelogs_type "github.com/KyberNetwork/tradelogs/pkg/types" + tradelogstype "github.com/KyberNetwork/tradelogs/pkg/types" tradingTypes "github.com/KyberNetwork/tradinglib/pkg/types" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethclient" @@ -56,7 +56,7 @@ func TestParseWithCallFrame(t *testing.T) { continue } - parse, err := p.ParseWithCallFrame(tradelogs_type.ConvertCallFrame(&callFrame), *eventLog, 0) + parse, err := p.ParseWithCallFrame(tradelogstype.ConvertCallFrame(&callFrame), *eventLog, 0) require.NoError(t, err) t.Log(parse) require.Equal(t, expectedTradelog, parse) diff --git a/pkg/parser/oneinch/oneinch_test.go b/pkg/parser/oneinch/oneinch_test.go index f19ad2a..15f5588 100644 --- a/pkg/parser/oneinch/oneinch_test.go +++ b/pkg/parser/oneinch/oneinch_test.go @@ -3,7 +3,7 @@ package oneinch import ( "context" "encoding/json" - tradelogs_type "github.com/KyberNetwork/tradelogs/pkg/types" + tradelogstype "github.com/KyberNetwork/tradelogs/pkg/types" "math/big" "strings" "testing" @@ -156,7 +156,7 @@ func TestParseWithCallFrame(t *testing.T) { continue } - parse, err := p.ParseWithCallFrame(tradelogs_type.ConvertCallFrame(&callFrame), *eventLog, 0) + parse, err := p.ParseWithCallFrame(tradelogstype.ConvertCallFrame(&callFrame), *eventLog, 0) require.NoError(t, err) require.Equal(t, expectedTradeLog, parse) } diff --git a/pkg/parser/paraswap/paraswap_test.go b/pkg/parser/paraswap/paraswap_test.go index 351a020..1b1bbf1 100644 --- a/pkg/parser/paraswap/paraswap_test.go +++ b/pkg/parser/paraswap/paraswap_test.go @@ -4,7 +4,7 @@ import ( "context" "encoding/json" "github.com/KyberNetwork/tradelogs/pkg/storage" - tradelogs_type "github.com/KyberNetwork/tradelogs/pkg/types" + tradelogstype "github.com/KyberNetwork/tradelogs/pkg/types" tradingTypes "github.com/KyberNetwork/tradinglib/pkg/types" "math/big" "strings" @@ -70,7 +70,7 @@ func TestGetExpiry(t *testing.T) { p := MustNewParser() err := json.Unmarshal([]byte(rawData), &callFrame) require.NoError(t, err) - rfqOrderParam, err := p.getRFQOrderParams(tradelogs_type.ConvertCallFrame(&callFrame)) + rfqOrderParam, err := p.getRFQOrderParams(tradelogstype.ConvertCallFrame(&callFrame)) require.NoError(t, err) require.NotNil(t, rfqOrderParam) t.Log(rfqOrderParam) @@ -118,7 +118,7 @@ func TestParseWithCallFrame(t *testing.T) { continue } - parse, err := p.ParseWithCallFrame(tradelogs_type.ConvertCallFrame(&callFrame), *eventLog, 0) + parse, err := p.ParseWithCallFrame(tradelogstype.ConvertCallFrame(&callFrame), *eventLog, 0) require.NoError(t, err) t.Log(parse) require.Equal(t, expectedTradeLog, parse) diff --git a/pkg/parser/zxotc/zxotc_test.go b/pkg/parser/zxotc/zxotc_test.go index 8f2f7a8..1c28f71 100644 --- a/pkg/parser/zxotc/zxotc_test.go +++ b/pkg/parser/zxotc/zxotc_test.go @@ -4,7 +4,7 @@ import ( "context" "encoding/json" "github.com/KyberNetwork/tradelogs/pkg/storage" - tradelogs_type "github.com/KyberNetwork/tradelogs/pkg/types" + tradelogstype "github.com/KyberNetwork/tradelogs/pkg/types" "math/big" "strings" "testing" @@ -93,7 +93,7 @@ func TestGetExpiry(t *testing.T) { p := MustNewParser() err := json.Unmarshal([]byte(rawData), &callFrame) require.NoError(t, err) - rfqOrderParam, err := p.getRFQOrderParams(tradelogs_type.ConvertCallFrame(&callFrame)) + rfqOrderParam, err := p.getRFQOrderParams(tradelogstype.ConvertCallFrame(&callFrame)) require.NoError(t, err) require.NotNil(t, rfqOrderParam) require.Equal(t, uint64(1719460132), rfqOrderParam.GetExpiry()) @@ -140,7 +140,7 @@ func TestParseWithCallFrame(t *testing.T) { continue } - parse, err := p.ParseWithCallFrame(tradelogs_type.ConvertCallFrame(&callFrame), *eventLog, 0) + parse, err := p.ParseWithCallFrame(tradelogstype.ConvertCallFrame(&callFrame), *eventLog, 0) require.NoError(t, err) t.Log(parse) require.Equal(t, expectedTradeLog, parse)