Skip to content

Commit

Permalink
add mark fusion for oneinchv6 parser
Browse files Browse the repository at this point in the history
  • Loading branch information
iostream1308 committed Dec 18, 2024
1 parent 92322c5 commit 2cc0e5d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions v2/cmd/backfill/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
promotion1inchv2 "github.com/KyberNetwork/tradelogs/v2/pkg/promotionparser/oneinchv2"
"github.com/KyberNetwork/tradelogs/v2/pkg/rpcnode"
"github.com/KyberNetwork/tradelogs/v2/pkg/storage/backfill"
promoteeStorage "github.com/KyberNetwork/tradelogs/v2/pkg/storage/promotees"
promotee_storage "github.com/KyberNetwork/tradelogs/v2/pkg/storage/promotees"
"github.com/KyberNetwork/tradelogs/v2/pkg/storage/state"
"github.com/KyberNetwork/tradelogs/v2/pkg/storage/tradelogs"
bebopStorage "github.com/KyberNetwork/tradelogs/v2/pkg/storage/tradelogs/bebop"
Expand Down Expand Up @@ -99,10 +99,10 @@ func run(c *cli.Context) error {
manager := tradelogs.NewManager(l, storages)

//promotee storage
promotee_storage := promoteeStorage.New(l, db)
promoteeStorage := promotee_storage.New(l, db)

// mark fusion for oneinchv6
markFusion, err := oneinchv6.NewMarkFusion(promotee_storage, l)
markFusion, err := oneinchv6.NewMarkFusion(promoteeStorage, l)
if err != nil {
return fmt.Errorf("cannot init mark fusion: %w", err)
}
Expand Down Expand Up @@ -161,7 +161,7 @@ func run(c *cli.Context) error {
}

// trade log handler
tradeLogHandler := handler.NewTradeLogHandler(l, rpcNode, manager, promotee_storage, parsers, promotionParsers, broadcastTopic, kafkaPublisher)
tradeLogHandler := handler.NewTradeLogHandler(l, rpcNode, manager, promoteeStorage, parsers, promotionParsers, broadcastTopic, kafkaPublisher)

// parse log worker
w := worker.NewBackFiller(tradeLogHandler, backfillStorage, stateStorage, l, rpcNode, parsers)
Expand Down
8 changes: 4 additions & 4 deletions v2/cmd/parse_log/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/KyberNetwork/tradelogs/v2/pkg/promotionparser"
promotion1inchv2 "github.com/KyberNetwork/tradelogs/v2/pkg/promotionparser/oneinchv2"
"github.com/KyberNetwork/tradelogs/v2/pkg/rpcnode"
promoteeStorage "github.com/KyberNetwork/tradelogs/v2/pkg/storage/promotees"
promotee_storage "github.com/KyberNetwork/tradelogs/v2/pkg/storage/promotees"
"github.com/KyberNetwork/tradelogs/v2/pkg/storage/state"
"github.com/KyberNetwork/tradelogs/v2/pkg/storage/tradelogs"
bebopStorage "github.com/KyberNetwork/tradelogs/v2/pkg/storage/tradelogs/bebop"
Expand Down Expand Up @@ -98,10 +98,10 @@ func run(c *cli.Context) error {
})

//promotee storage
promotee_storage := promoteeStorage.New(l, db)
promoteeStorage := promotee_storage.New(l, db)

// mark fusion for oneinchv6
markFusion, err := oneinchv6.NewMarkFusion(promotee_storage, l)
markFusion, err := oneinchv6.NewMarkFusion(promoteeStorage, l)
if err != nil {
return fmt.Errorf("cannot init mark fusion: %w", err)
}
Expand Down Expand Up @@ -157,7 +157,7 @@ func run(c *cli.Context) error {
}

// trade log handler
tradeLogHandler := handler.NewTradeLogHandler(l, rpcNode, manager, promotee_storage, parsers, promotionParsers, broadcastTopic, kafkaPublisher)
tradeLogHandler := handler.NewTradeLogHandler(l, rpcNode, manager, promoteeStorage, parsers, promotionParsers, broadcastTopic, kafkaPublisher)

// parse log worker
w := worker.NewParseLog(tradeLogHandler, s, l)
Expand Down

0 comments on commit 2cc0e5d

Please sign in to comment.