Skip to content

Commit c7ec7fd

Browse files
Fix: events => ws
1 parent 5b5bd2f commit c7ec7fd

File tree

3 files changed

+212
-367
lines changed

3 files changed

+212
-367
lines changed

cmd/metadata/tzkt/scanner.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func New(cfg config.DataSource, contracts ...string) (*Scanner, error) {
4040
if err != nil {
4141
return nil, err
4242
}
43-
eventsURL := baseURL.JoinPath("v1/events")
43+
eventsURL := baseURL.JoinPath("v1/ws")
4444

4545
return &Scanner{
4646
client: events.NewTzKT(eventsURL.String()),

go.mod

+62-44
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.19
55
require (
66
github.com/aws/aws-sdk-go v1.43.31
77
github.com/cenkalti/backoff v2.2.1+incompatible
8-
github.com/dipdup-net/go-lib v0.2.34
8+
github.com/dipdup-net/go-lib v0.3.7
99
github.com/disintegration/imaging v1.6.2
1010
github.com/elastic/go-elasticsearch/v8 v8.1.0
1111
github.com/go-pg/pg/v10 v10.10.6
@@ -18,7 +18,7 @@ require (
1818
github.com/libp2p/go-libp2p v0.28.1
1919
github.com/multiformats/go-multiaddr v0.9.0
2020
github.com/pkg/errors v0.9.1
21-
github.com/rs/zerolog v1.26.1
21+
github.com/rs/zerolog v1.30.0
2222
github.com/shopspring/decimal v1.3.1
2323
github.com/spf13/cobra v1.6.1
2424
github.com/stretchr/testify v1.8.4
@@ -27,7 +27,11 @@ require (
2727

2828
require (
2929
bazil.org/fuse v0.0.0-20200117225306-7b5117fecadc // indirect
30+
dario.cat/mergo v1.0.0 // indirect
3031
github.com/AndreasBriese/bbloom v0.0.0-20190825152654-46b345b51c96 // indirect
32+
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
33+
github.com/Microsoft/go-winio v0.6.1 // indirect
34+
github.com/Microsoft/hcsshim v0.11.4 // indirect
3135
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 // indirect
3236
github.com/alexbrainman/goissue34681 v0.0.0-20191006012335-3fc7a47baff5 // indirect
3337
github.com/benbjohnson/clock v1.3.5 // indirect
@@ -38,14 +42,20 @@ require (
3842
github.com/cespare/xxhash v1.1.0 // indirect
3943
github.com/cespare/xxhash/v2 v2.2.0 // indirect
4044
github.com/containerd/cgroups v1.1.0 // indirect
45+
github.com/containerd/containerd v1.7.11 // indirect
46+
github.com/containerd/log v0.1.0 // indirect
4147
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
48+
github.com/cpuguy83/dockercfg v0.3.1 // indirect
4249
github.com/crackcomm/go-gitignore v0.0.0-20170627025303-887ab5e44cc3 // indirect
4350
github.com/cskr/pubsub v1.0.2 // indirect
4451
github.com/davecgh/go-spew v1.1.1 // indirect
4552
github.com/davidlazar/go-crypto v0.0.0-20200604182044-b73af7476f6c // indirect
4653
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect
4754
github.com/dgraph-io/badger v1.6.2 // indirect
4855
github.com/dgraph-io/ristretto v0.0.2 // indirect
56+
github.com/docker/distribution v2.8.2+incompatible // indirect
57+
github.com/docker/docker v24.0.7+incompatible // indirect
58+
github.com/docker/go-connections v0.4.0 // indirect
4959
github.com/docker/go-units v0.5.0 // indirect
5060
github.com/dustin/go-humanize v1.0.1 // indirect
5161
github.com/ebellocchia/go-base58 v0.1.0 // indirect
@@ -54,14 +64,14 @@ require (
5464
github.com/facebookgo/atomicfile v0.0.0-20151019160806-2de1f203e7d5 // indirect
5565
github.com/flynn/noise v1.0.0 // indirect
5666
github.com/francoispqt/gojay v1.2.13 // indirect
57-
github.com/gabriel-vasile/mimetype v1.4.1 // indirect
67+
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
5868
github.com/go-logr/logr v1.2.4 // indirect
5969
github.com/go-logr/stdr v1.2.2 // indirect
6070
github.com/go-pg/zerochecker v0.2.0 // indirect
61-
github.com/go-playground/locales v0.14.0 // indirect
62-
github.com/go-playground/universal-translator v0.18.0 // indirect
63-
github.com/go-playground/validator/v10 v10.10.1 // indirect
64-
github.com/go-sql-driver/mysql v1.6.0 // indirect
71+
github.com/go-playground/locales v0.14.1 // indirect
72+
github.com/go-playground/universal-translator v0.18.1 // indirect
73+
github.com/go-playground/validator/v10 v10.15.0 // indirect
74+
github.com/go-sql-driver/mysql v1.7.1 // indirect
6575
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
6676
github.com/godbus/dbus/v5 v5.1.0 // indirect
6777
github.com/gogo/protobuf v1.3.2 // indirect
@@ -74,7 +84,7 @@ require (
7484
github.com/google/uuid v1.3.0 // indirect
7585
github.com/gorilla/mux v1.8.0 // indirect
7686
github.com/gorilla/websocket v1.5.0 // indirect
77-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0 // indirect
87+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect
7888
github.com/hannahhoward/go-pubsub v0.0.0-20200423002714-8d62886cc36e // indirect
7989
github.com/hashicorp/errwrap v1.1.0 // indirect
8090
github.com/hashicorp/go-multierror v1.1.1 // indirect
@@ -115,14 +125,9 @@ require (
115125
github.com/ipld/edelweiss v0.2.0 // indirect
116126
github.com/ipld/go-codec-dagpb v1.6.0 // indirect
117127
github.com/ipld/go-ipld-prime v0.20.0 // indirect
118-
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
119-
github.com/jackc/pgconn v1.11.0 // indirect
120-
github.com/jackc/pgio v1.0.0 // indirect
121128
github.com/jackc/pgpassfile v1.0.0 // indirect
122-
github.com/jackc/pgproto3/v2 v2.2.0 // indirect
123-
github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect
124-
github.com/jackc/pgtype v1.10.0 // indirect
125-
github.com/jackc/pgx/v4 v4.15.0 // indirect
129+
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
130+
github.com/jackc/pgx/v5 v5.4.3 // indirect
126131
github.com/jackpal/go-nat-pmp v1.0.2 // indirect
127132
github.com/jbenet/go-temp-err-catcher v0.1.0 // indirect
128133
github.com/jbenet/goprocess v0.1.4 // indirect
@@ -133,7 +138,7 @@ require (
133138
github.com/klauspost/cpuid/v2 v2.2.5 // indirect
134139
github.com/koron/go-ssdp v0.0.4 // indirect
135140
github.com/labstack/gommon v0.3.1 // indirect
136-
github.com/leodido/go-urn v1.2.1 // indirect
141+
github.com/leodido/go-urn v1.2.4 // indirect
137142
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
138143
github.com/libp2p/go-cidranger v1.1.0 // indirect
139144
github.com/libp2p/go-doh-resolver v0.4.0 // indirect
@@ -154,18 +159,23 @@ require (
154159
github.com/libp2p/go-reuseport v0.3.0 // indirect
155160
github.com/libp2p/go-yamux/v4 v4.0.0 // indirect
156161
github.com/libp2p/zeroconf/v2 v2.2.0 // indirect
162+
github.com/magiconair/properties v1.8.7 // indirect
157163
github.com/marten-seemann/tcp v0.0.0-20210406111302-dfbc87cc63fd // indirect
158-
github.com/mattn/go-colorable v0.1.12 // indirect
164+
github.com/mattn/go-colorable v0.1.13 // indirect
159165
github.com/mattn/go-isatty v0.0.19 // indirect
160-
github.com/mattn/go-sqlite3 v1.14.12 // indirect
166+
github.com/mattn/go-sqlite3 v1.14.17 // indirect
161167
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
162168
github.com/miekg/dns v1.1.54 // indirect
163169
github.com/mikioh/tcpinfo v0.0.0-20190314235526-30a79bb1804b // indirect
164170
github.com/mikioh/tcpopt v0.0.0-20190314235656-172688c1accc // indirect
165171
github.com/minio/sha256-simd v1.0.1 // indirect
166172
github.com/mitchellh/go-homedir v1.1.0 // indirect
173+
github.com/moby/patternmatcher v0.5.0 // indirect
174+
github.com/moby/sys/sequential v0.5.0 // indirect
175+
github.com/moby/term v0.5.0 // indirect
167176
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
168177
github.com/modern-go/reflect2 v1.0.2 // indirect
178+
github.com/morikuni/aec v1.0.0 // indirect
169179
github.com/mr-tron/base58 v1.2.0 // indirect
170180
github.com/multiformats/go-base32 v0.1.0 // indirect
171181
github.com/multiformats/go-base36 v0.2.0 // indirect
@@ -177,29 +187,37 @@ require (
177187
github.com/multiformats/go-multistream v0.4.1 // indirect
178188
github.com/multiformats/go-varint v0.0.7 // indirect
179189
github.com/onsi/ginkgo/v2 v2.9.7 // indirect
180-
github.com/opencontainers/runtime-spec v1.0.2 // indirect
190+
github.com/opencontainers/go-digest v1.0.0 // indirect
191+
github.com/opencontainers/image-spec v1.1.0-rc4 // indirect
192+
github.com/opencontainers/runc v1.1.12 // indirect
193+
github.com/opencontainers/runtime-spec v1.1.0-rc.1 // indirect
181194
github.com/opentracing/opentracing-go v1.2.0 // indirect
182195
github.com/openzipkin/zipkin-go v0.4.1 // indirect
183196
github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 // indirect
184197
github.com/petar/GoLLRB v0.0.0-20210522233825-ae3b015fd3e9 // indirect
185198
github.com/pmezard/go-difflib v1.0.0 // indirect
186199
github.com/polydawn/refmt v0.89.0 // indirect
187-
github.com/prometheus/client_golang v1.14.0 // indirect
200+
github.com/prometheus/client_golang v1.16.0 // indirect
188201
github.com/prometheus/client_model v0.4.0 // indirect
189202
github.com/prometheus/common v0.42.0 // indirect
190-
github.com/prometheus/procfs v0.9.0 // indirect
203+
github.com/prometheus/procfs v0.10.1 // indirect
191204
github.com/quic-go/qpack v0.4.0 // indirect
192205
github.com/quic-go/qtls-go1-19 v0.3.2 // indirect
193206
github.com/quic-go/qtls-go1-20 v0.2.2 // indirect
194207
github.com/quic-go/quic-go v0.33.0 // indirect
195208
github.com/quic-go/webtransport-go v0.5.3 // indirect
196209
github.com/raulk/go-watchdog v1.3.0 // indirect
197210
github.com/samber/lo v1.36.0 // indirect
211+
github.com/sirupsen/logrus v1.9.3 // indirect
198212
github.com/spaolacci/murmur3 v1.1.0 // indirect
199213
github.com/spf13/pflag v1.0.5 // indirect
200214
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect
215+
github.com/testcontainers/testcontainers-go v0.22.0 // indirect
216+
github.com/testcontainers/testcontainers-go/modules/postgres v0.22.0 // indirect
201217
github.com/tmthrgd/go-hex v0.0.0-20190904060850-447a3041c3bc // indirect
202218
github.com/ucarion/urlpath v0.0.0-20200424170820-7ccc79b76bbb // indirect
219+
github.com/uptrace/bun v1.1.14 // indirect
220+
github.com/uptrace/bun/dialect/pgdialect v1.1.14 // indirect
203221
github.com/valyala/bytebufferpool v1.0.0 // indirect
204222
github.com/valyala/fasttemplate v1.2.1 // indirect
205223
github.com/vmihailenco/bufpool v0.1.11 // indirect
@@ -214,44 +232,44 @@ require (
214232
github.com/whyrusleeping/multiaddr-filter v0.0.0-20160516205228-e903e4adabd7 // indirect
215233
github.com/whyrusleeping/tar-utils v0.0.0-20201201191210-20a61371de5b // indirect
216234
go.opencensus.io v0.24.0 // indirect
217-
go.opentelemetry.io/otel v1.16.0 // indirect
235+
go.opentelemetry.io/otel v1.19.0 // indirect
218236
go.opentelemetry.io/otel/exporters/jaeger v1.14.0 // indirect
219-
go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.16.0 // indirect
220-
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.16.0 // indirect
221-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.14.0 // indirect
222-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.16.0 // indirect
237+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.19.0 // indirect
238+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.19.0 // indirect
239+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.19.0 // indirect
223240
go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.14.0 // indirect
224241
go.opentelemetry.io/otel/exporters/zipkin v1.14.0 // indirect
225-
go.opentelemetry.io/otel/metric v1.16.0 // indirect
226-
go.opentelemetry.io/otel/sdk v1.16.0 // indirect
227-
go.opentelemetry.io/otel/trace v1.16.0 // indirect
228-
go.opentelemetry.io/proto/otlp v0.19.0 // indirect
242+
go.opentelemetry.io/otel/metric v1.19.0 // indirect
243+
go.opentelemetry.io/otel/sdk v1.19.0 // indirect
244+
go.opentelemetry.io/otel/trace v1.19.0 // indirect
245+
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
229246
go.uber.org/atomic v1.11.0 // indirect
230247
go.uber.org/dig v1.17.0 // indirect
231248
go.uber.org/fx v1.19.3 // indirect
232249
go.uber.org/multierr v1.11.0 // indirect
233250
go.uber.org/zap v1.24.0 // indirect
234251
go4.org v0.0.0-20230225012048-214862532bf5 // indirect
235-
golang.org/x/crypto v0.10.0 // indirect
236-
golang.org/x/exp v0.0.0-20230321023759-10a507213a29 // indirect
252+
golang.org/x/crypto v0.17.0 // indirect
253+
golang.org/x/exp v0.0.0-20230510235704-dd950f8aeaea // indirect
237254
golang.org/x/image v0.6.0 // indirect
238-
golang.org/x/mod v0.10.0 // indirect
239-
golang.org/x/net v0.10.0 // indirect
240-
golang.org/x/sync v0.2.0 // indirect
241-
golang.org/x/sys v0.9.0 // indirect
242-
golang.org/x/text v0.10.0 // indirect
243-
golang.org/x/tools v0.9.1 // indirect
255+
golang.org/x/mod v0.11.0 // indirect
256+
golang.org/x/net v0.17.0 // indirect
257+
golang.org/x/sync v0.3.0 // indirect
258+
golang.org/x/sys v0.15.0 // indirect
259+
golang.org/x/text v0.14.0 // indirect
260+
golang.org/x/tools v0.10.0 // indirect
244261
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
245262
gonum.org/v1/gonum v0.13.0 // indirect
246-
google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4 // indirect
247-
google.golang.org/grpc v1.55.0 // indirect
263+
google.golang.org/genproto/googleapis/api v0.0.0-20230711160842-782d3b101e98 // indirect
264+
google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 // indirect
265+
google.golang.org/grpc v1.58.3 // indirect
248266
google.golang.org/protobuf v1.31.0 // indirect
249267
gopkg.in/square/go-jose.v2 v2.5.1 // indirect
250268
gopkg.in/yaml.v3 v3.0.1 // indirect
251-
gorm.io/driver/mysql v1.3.3 // indirect
252-
gorm.io/driver/postgres v1.3.3 // indirect
253-
gorm.io/driver/sqlite v1.3.1 // indirect
254-
gorm.io/gorm v1.23.4 // indirect
269+
gorm.io/driver/mysql v1.5.1 // indirect
270+
gorm.io/driver/postgres v1.5.2 // indirect
271+
gorm.io/driver/sqlite v1.5.2 // indirect
272+
gorm.io/gorm v1.25.3 // indirect
255273
lukechampine.com/blake3 v1.2.1 // indirect
256274
mellium.im/sasl v0.3.1 // indirect
257275
)

0 commit comments

Comments
 (0)