Skip to content

Commit 1912118

Browse files
TzKT: events => ws
1 parent b22ec32 commit 1912118

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

cmd/tezgen/template/contract.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ type {{.TypeName}} struct {
5757
func New(baseURL string) *{{.TypeName}} {
5858
return &{{.TypeName}} {
5959
tzktAPI: api.New(baseURL),
60-
tzktEvents: events.NewTzKT(fmt.Sprintf("%s/v1/events", baseURL)),
60+
tzktEvents: events.NewTzKT(fmt.Sprintf("%s/v1/ws", baseURL)),
6161
address: "{{ .Contract }}",
6262
{{- range $key, $value := .EntrypointTypes }}
6363
{{ $value.Var }}: make(chan {{ $value.Type }}Tx, 1024),

tzkt/data/consts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ const (
4646
// urls
4747
const (
4848
BaseURL = "https://api.tzkt.io"
49-
BaseEventsURL = "https://api.tzkt.io/v1/events"
49+
BaseEventsURL = "https://api.tzkt.io/v1/ws"
5050
)

tzkt/events/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ If you want to write custom client or re-use SignalR in another package you can
5959
```golang
6060
import "github.com/dipdup-net/go-lib/tzkt/events/signalr"
6161

62-
client := signalr.NewSignalR("https://api.tzkt.io/v1/events")
62+
client := signalr.NewSignalR("https://api.tzkt.io/v1/ws")
6363
```

tzkt/events/tzkt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type TzKT struct {
2828
wg sync.WaitGroup
2929
}
3030

31-
// NewTzKT - constructor of `TzKT`. `url` is TzKT events base URL. If it's empty https://api.tzkt.io/v1/events is set.
31+
// NewTzKT - constructor of `TzKT`. `url` is TzKT events base URL. If it's empty https://api.tzkt.io/v1/ws is set.
3232
func NewTzKT(url string) *TzKT {
3333
if url == "" {
3434
url = tzktData.BaseEventsURL

0 commit comments

Comments
 (0)