Skip to content

Commit

Permalink
amend tbs for hydration scraper suite deployment.
Browse files Browse the repository at this point in the history
  • Loading branch information
jppade committed Nov 5, 2024
1 parent 6623f41 commit 31739f4
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/assetCollectionService/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/diadata-org/diadata/assetCollectionService
go 1.22

require (
github.com/diadata-org/diadata v1.4.552
github.com/diadata-org/diadata v1.4.556
github.com/sirupsen/logrus v1.9.3
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/exchange-scrapers/collector/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/diadata-org/diadata/exchange-scrapers/collector
go 1.22

require (
github.com/diadata-org/diadata v1.4.552
github.com/diadata-org/diadata v1.4.556
github.com/segmentio/kafka-go v0.4.35
github.com/sirupsen/logrus v1.9.3
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/liquidityScraper/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/diadata-org/diadata/liquidityScraper
go 1.22

require (
github.com/diadata-org/diadata v1.4.553
github.com/diadata-org/diadata v1.4.556
github.com/sirupsen/logrus v1.9.3
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/services/tradesBlockService/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/diadata-org/diadata/services/tradesBlockService
go 1.22

require (
github.com/diadata-org/diadata v1.4.555
github.com/diadata-org/diadata v1.4.556
github.com/segmentio/kafka-go v0.4.35
github.com/sirupsen/logrus v1.9.3
)
Expand Down
16 changes: 16 additions & 0 deletions internal/pkg/tradesBlockService/tradesBlockService.go
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,22 @@ func buildBridge(t dia.Trade) dia.Asset {
}
}
}
if basetoken.Blockchain == dia.HYDRATION && t.Source == dia.HydrationExchange {
if basetoken.Address == "18" {
basetoken = dia.Asset{
Symbol: "DAI",
Address: "0x6B175474E89094C44Da98b954EedeAC495271d0F",
Blockchain: dia.ETHEREUM,
}
}
if basetoken.Address == "10" {
basetoken = dia.Asset{
Symbol: "USDT",
Address: "0xdAC17F958D2ee523a2206206994597C13D831ec7",
Blockchain: dia.ETHEREUM,
}
}
}

return basetoken
}
1 change: 1 addition & 0 deletions pkg/dia/Messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const (
ALEPHIUM = "Alephium"
BASE = "Base"
FILECOIN = "Filecoin"
HYDRATION = "Hydration"
)

var CRYPTO_ZERO_UNIX_TIME = time.Unix(1230768000, 0)
Expand Down

0 comments on commit 31739f4

Please sign in to comment.