Skip to content

Commit

Permalink
Merge branch 'protofire-feature/bifrost-ws'
Browse files Browse the repository at this point in the history
  • Loading branch information
jppade committed Oct 30, 2024
2 parents e337a56 + f7e3315 commit c66e377
Show file tree
Hide file tree
Showing 195 changed files with 28,312 additions and 678 deletions.
5 changes: 5 additions & 0 deletions cmd/assetCollectionService/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ func NewAssetScraper(exchange string, secret string, relDB *models.RelDB) source
return source.NewJSONReader(exchange, secret)
case dia.AyinExchange:
return source.NewAyinAssetSource(exchanges[dia.AyinExchange], relDB)
<<<<<<< HEAD
case dia.BitflowExchange:
return source.NewBitflowAssetSource(exchanges[dia.BitflowExchange], relDB)
case dia.VelarExchange:
Expand All @@ -178,6 +179,10 @@ func NewAssetScraper(exchange string, secret string, relDB *models.RelDB) source
return source.NewVelodromeAssetSource(exchanges[dia.AerodromeSlipstreamExchange], relDB)
case dia.AerodromeV1Exchange:
return source.NewVelodromeAssetSource(exchanges[dia.AerodromeV1Exchange], relDB)
=======
case dia.BifrostExchange:
return source.NewBifrostAssetSource(exchanges[dia.BifrostExchange], relDB)
>>>>>>> cd7e3ff50b351adef5c2999645e18ccd225ead0e
default:
return nil
}
Expand Down
4 changes: 4 additions & 0 deletions cmd/exchange-scrapers/collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,12 @@ var (
dia.ZenlinkswapExchangeBifrostPolkadot,
dia.PearlfiExchangeTestnet,
dia.PanCakeSwapExchangeV3,
<<<<<<< HEAD
dia.BitflowExchange,
dia.VelarExchange,
=======
dia.BifrostExchange,
>>>>>>> cd7e3ff50b351adef5c2999645e18ccd225ead0e
}

exchange = flag.String("exchange", "", "which exchange")
Expand Down
3 changes: 1 addition & 2 deletions deployments/local/local.env
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ export POSTGRES_HOST=localhost
export POSTGRES_DB=postgres
export REDISURL=localhost:6379
export KAFKAURL=localhost:9094
export KAFKA_TOPIC_SUFFIX=dia

export KAFKA_TOPIC_SUFFIX=dia
86 changes: 47 additions & 39 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/diadata-org/diadata

go 1.17
go 1.22

toolchain go1.22.8

require (
github.com/Kucoin/kucoin-go-sdk v1.2.7
Expand All @@ -14,7 +16,7 @@ require (
github.com/cosmos/ibc-go/v3 v3.0.0
github.com/cryptwire/go-binance/v2 v2.2.3
github.com/davecgh/go-spew v1.1.1
github.com/ethereum/go-ethereum v1.10.10
github.com/ethereum/go-ethereum v1.10.26
github.com/fatih/structs v1.1.0
github.com/gagliardetto/binary v0.7.9
github.com/gagliardetto/gofuzz v1.2.2
Expand All @@ -25,41 +27,46 @@ require (
github.com/go-redis/redis v6.15.9+incompatible
github.com/go-resty/resty/v2 v2.7.0
github.com/gocolly/colly v1.2.0
github.com/google/gofuzz v1.2.0
github.com/gorilla/websocket v1.5.0
github.com/graph-gophers/graphql-go v1.1.0
github.com/influxdata/influxdb1-client v0.0.0-20200827194710-b269163b24ab
github.com/graph-gophers/graphql-go v1.3.0
github.com/influxdata/influxdb1-client v0.0.0-20220302092344-a9ab5670611c
github.com/jackc/pgtype v1.7.0
github.com/jackc/pgx/v4 v4.11.0
github.com/machinebox/graphql v0.2.2
github.com/mr-tron/base58 v1.2.0
github.com/onflow/cadence v0.15.0
github.com/onflow/flow-go-sdk v0.20.0
github.com/op/go-logging v0.0.0-20160315200505-970db520ece7
github.com/osmosis-labs/osmosis/v6 v6.4.1
github.com/pierrec/xxHash v0.1.5
github.com/pkg/errors v0.9.1
github.com/portto/solana-go-sdk v1.22.0
github.com/preichenberger/go-coinbasepro/v2 v2.0.5
github.com/rs/cors v1.8.2
github.com/segmentio/kafka-go v0.4.35
github.com/shopspring/decimal v1.3.1
github.com/shopspring/decimal v1.4.0
github.com/sirupsen/logrus v1.9.3
github.com/status-im/keycard-go v0.0.0-20200402102358-957c09536969
github.com/status-im/keycard-go v0.2.0
github.com/streamingfast/solana-go v0.5.1-0.20220502224452-432fbe84aee8
github.com/stretchr/testify v1.8.4
github.com/stretchr/testify v1.9.0
github.com/tendermint/liquidity v1.5.0
github.com/tendermint/tendermint v0.34.15
github.com/tkanos/gonfig v0.0.0-20181112185242-896f3d81fadf
github.com/vincent-petithory/dataurl v1.0.0
github.com/x-cray/logrus-prefixed-formatter v0.5.2
go.uber.org/ratelimit v0.2.0
golang.org/x/crypto v0.18.0
golang.org/x/sync v0.1.0
golang.org/x/crypto v0.28.0
golang.org/x/sync v0.8.0
google.golang.org/grpc v1.44.0
google.golang.org/protobuf v1.32.0
google.golang.org/protobuf v1.34.2
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce
)

require (
filippo.io/edwards25519 v1.0.0 // indirect
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d // indirect
github.com/ChainSafe/go-schnorrkel v0.0.0-20210318173838-ccb5cd955283 // indirect
github.com/DataDog/zstd v1.4.5 // indirect
github.com/GeertJohan/go.rice v1.0.0 // indirect
github.com/StackExchange/wmi v1.2.1 // indirect
Expand All @@ -73,10 +80,11 @@ require (
github.com/bitly/go-simplejson v0.5.0 // indirect
github.com/blendle/zapdriver v1.3.1 // indirect
github.com/btcsuite/btcd v0.22.0-beta // indirect
github.com/btcsuite/btcd/btcec/v2 v2.3.4 // indirect
github.com/buger/jsonparser v1.1.1 // indirect
github.com/bytedance/sonic v1.10.2 // indirect
github.com/cespare/xxhash v1.1.0 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/cheekybits/genny v1.0.0 // indirect
github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect
github.com/chenzhuoyu/iasm v0.9.1 // indirect
Expand All @@ -88,33 +96,34 @@ require (
github.com/cosmos/ledger-go v0.9.2 // indirect
github.com/daaku/go.zipexe v1.0.0 // indirect
github.com/danieljoos/wincred v1.1.2 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect
github.com/dgraph-io/badger/v2 v2.2007.3 // indirect
github.com/dgraph-io/ristretto v0.0.3 // indirect
github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect
github.com/dustin/go-humanize v1.0.0 // indirect
github.com/dvsekhvalnov/jose2go v1.5.0 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/fsnotify/fsnotify v1.5.1 // indirect
github.com/fatih/color v1.16.0 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/fxamacker/cbor/v2 v2.2.1-0.20201006223149-25f67fca9803 // indirect
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
github.com/ghodss/yaml v1.0.0 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-kit/kit v0.12.0 // indirect
github.com/go-kit/log v0.2.0 // indirect
github.com/go-logfmt/logfmt v0.5.1 // indirect
github.com/go-ole/go-ole v1.2.5 // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.17.0 // indirect
github.com/go-stack/stack v1.8.0 // indirect
github.com/go-stack/stack v1.8.1 // indirect
github.com/go-test/deep v1.0.5 // indirect
github.com/gobwas/glob v0.2.3 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect
github.com/gogo/protobuf v1.3.3 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect
github.com/google/btree v1.0.1 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/uuid v1.3.0 // indirect
Expand All @@ -129,6 +138,7 @@ require (
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/holiman/uint256 v1.3.1 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
github.com/jackc/pgconn v1.8.1 // indirect
Expand All @@ -140,17 +150,18 @@ require (
github.com/jmhodges/levigo v1.0.0 // indirect
github.com/jpillora/backoff v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/compress v1.15.7 // indirect
github.com/klauspost/compress v1.16.0 // indirect
github.com/klauspost/cpuid/v2 v2.2.6 // indirect
github.com/kr/pretty v0.3.0 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/leodido/go-urn v1.3.0 // indirect
github.com/libp2p/go-buffer-pool v0.0.2 // indirect
github.com/logrusorgru/aurora v2.0.3+incompatible // indirect
github.com/machinebox/graphql v0.2.2 // indirect
github.com/magiconair/properties v1.8.5 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/matryer/is v1.4.1 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
github.com/mimoo/StrobeGo v0.0.0-20181016162300-f8f6d4d2b643 // indirect
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
github.com/mitchellh/mapstructure v1.4.3 // indirect
Expand All @@ -167,13 +178,14 @@ require (
github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 // indirect
github.com/pierrec/lz4/v4 v4.1.15 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_golang v1.11.0 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.30.0 // indirect
github.com/prometheus/client_golang v1.12.0 // indirect
github.com/prometheus/client_model v0.2.1-0.20210607210712-147c58e9608a // indirect
github.com/prometheus/common v0.32.1 // indirect
github.com/prometheus/procfs v0.7.3 // indirect
github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0 // indirect
github.com/regen-network/cosmos-proto v0.3.1 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/rjeczalik/notify v0.9.1 // indirect
github.com/rogpeppe/go-internal v1.10.0 // indirect
github.com/sasha-s/go-deadlock v0.2.1-0.20190427202633-1595213edefa // indirect
github.com/segmentio/fasthash v1.0.3 // indirect
Expand All @@ -185,6 +197,7 @@ require (
github.com/spf13/viper v1.10.1 // indirect
github.com/streamingfast/binary v0.0.0-20210928223119-44fc44e4a0b5 // indirect
github.com/streamingfast/logging v0.0.0-20230608130331-f22c91403091 // indirect
github.com/stretchr/objx v0.5.2 // indirect
github.com/subosito/gotenv v1.2.0 // indirect
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect
github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c // indirect
Expand All @@ -194,8 +207,8 @@ require (
github.com/tendermint/tm-db v0.6.6 // indirect
github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.0 // indirect
github.com/tklauser/go-sysconf v0.3.7 // indirect
github.com/tklauser/numcpus v0.2.3 // indirect
github.com/tklauser/go-sysconf v0.3.12 // indirect
github.com/tklauser/numcpus v0.6.1 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.2.12 // indirect
github.com/x448/float16 v0.8.4 // indirect
Expand All @@ -206,15 +219,14 @@ require (
go.uber.org/multierr v1.7.0 // indirect
go.uber.org/zap v1.21.0 // indirect
golang.org/x/arch v0.7.0 // indirect
golang.org/x/net v0.20.0 // indirect
golang.org/x/sys v0.16.0 // indirect
golang.org/x/term v0.16.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect
golang.org/x/net v0.24.0 // indirect
golang.org/x/sys v0.26.0 // indirect
golang.org/x/term v0.25.0 // indirect
golang.org/x/text v0.19.0 // indirect
golang.org/x/time v0.5.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa // indirect
gopkg.in/ini.v1 v1.66.2 // indirect
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Expand All @@ -225,21 +237,17 @@ require (
github.com/adshao/go-binance/v2 v2.3.6
github.com/antchfx/htmlquery v1.2.5 // indirect
github.com/antchfx/xmlquery v1.3.13 // indirect
github.com/deckarep/golang-set v1.7.1 // indirect
github.com/deckarep/golang-set v1.8.0
github.com/gballet/go-libpcsclite v0.0.0-20191108122812-4678299bea08 // indirect
github.com/hdevalence/ed25519consensus v0.1.0 // indirect
github.com/jackpal/go-nat-pmp v1.0.2 // indirect
github.com/kennygrant/sanitize v1.2.4 // indirect
github.com/machinebox/graphql v0.2.2
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
github.com/prometheus/tsdb v0.10.0 // indirect
github.com/rjeczalik/notify v0.9.2 // indirect
github.com/rs/zerolog v1.29.0 // indirect
github.com/saintfish/chardet v0.0.0-20230101081208-5e3ef4b5456d // indirect
github.com/spf13/cobra v1.3.0 // indirect
github.com/spf13/cobra v1.5.0 // indirect
github.com/temoto/robotstxt v1.1.2 // indirect
github.com/tidwall/gjson v1.17.0
github.com/tyler-smith/go-bip39 v1.1.0 // indirect
github.com/zekroTJA/timedmap v1.4.0
)

Expand Down
Loading

0 comments on commit c66e377

Please sign in to comment.