Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vaigay committed Aug 28, 2024
1 parent 8939bb9 commit b5ce8cc
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions pkg/parser/hashflow/hashflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/parser/hashflow_v3/hashflowv3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/parser/kyberswap_rfq/kyberswap_rfq_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions pkg/parser/oneinch/oneinch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
}
Expand Down
6 changes: 3 additions & 3 deletions pkg/parser/paraswap/paraswap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions pkg/parser/zxotc/zxotc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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())
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b5ce8cc

Please sign in to comment.