From f54bc2eb49f7af73fd82515ddc0235142e302842 Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Mon, 8 Jul 2024 15:57:50 -0400 Subject: [PATCH] chore(deps): bump utxorpc/go-codegen to 0.6.0 (#35) Signed-off-by: Chris Gianelloni --- examples/sync/main.go | 4 ++-- go.mod | 4 ++-- go.sum | 8 ++++---- main.go | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/examples/sync/main.go b/examples/sync/main.go index c905a70..7f99c5a 100644 --- a/examples/sync/main.go +++ b/examples/sync/main.go @@ -31,7 +31,7 @@ func fetchBlock(ctx context.Context, client *utxorpc.UtxorpcClient) { client.AddHeadersToRequest(req) fmt.Println("connecting to utxorpc host:", client.URL()) - chainSync, err := client.ChainSync.FetchBlock(ctx, req) + chainSync, err := client.Sync.FetchBlock(ctx, req) if err != nil { utxorpc.HandleError(err) } @@ -64,7 +64,7 @@ func followTip(ctx context.Context, client *utxorpc.UtxorpcClient, blockHash str } client.AddHeadersToRequest(req) fmt.Println("connecting to utxorpc host:", client.URL()) - stream, err := client.ChainSync.FollowTip(ctx, req) + stream, err := client.Sync.FollowTip(ctx, req) if err != nil { utxorpc.HandleError(err) return diff --git a/go.mod b/go.mod index 8ccaf35..3d38143 100644 --- a/go.mod +++ b/go.mod @@ -7,12 +7,12 @@ go 1.21 require ( connectrpc.com/connect v1.16.2 - github.com/utxorpc/go-codegen v0.5.1 + github.com/utxorpc/go-codegen v0.6.0 golang.org/x/net v0.26.0 ) require ( github.com/google/go-cmp v0.6.0 // indirect golang.org/x/text v0.16.0 // indirect - google.golang.org/protobuf v1.33.0 // indirect + google.golang.org/protobuf v1.34.2 // indirect ) diff --git a/go.sum b/go.sum index 940184a..b6cc842 100644 --- a/go.sum +++ b/go.sum @@ -2,11 +2,11 @@ connectrpc.com/connect v1.16.2 h1:ybd6y+ls7GOlb7Bh5C8+ghA6SvCBajHwxssO2CGFjqE= connectrpc.com/connect v1.16.2/go.mod h1:n2kgwskMHXC+lVqb18wngEpF95ldBHXjZYJussz5FRc= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/utxorpc/go-codegen v0.5.1 h1:Xhq3CdWAQEJgi46Naq7epeO4G5EyGApP38yNxMCqCbY= -github.com/utxorpc/go-codegen v0.5.1/go.mod h1:sEfglXN19j3cq0qQvb2NS4IcxUSrK1crYXbsVf11SGM= +github.com/utxorpc/go-codegen v0.6.0 h1:pQerOpy2W3k3DtaWfH+9U+eCfTHLx309NBNDYXSnRMw= +github.com/utxorpc/go-codegen v0.6.0/go.mod h1:+npvJc9wftIf8JMtWaRXxwjX0YlOCpNp1OlZVioNEO0= golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ= golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE= golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= -google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= -google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= +google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= diff --git a/main.go b/main.go index 1456143..bee34aa 100644 --- a/main.go +++ b/main.go @@ -19,9 +19,9 @@ type UtxorpcClient struct { httpClient connect.HTTPClient baseUrl string headers map[string]string - ChainSync syncconnect.ChainSyncServiceClient Query queryconnect.QueryServiceClient Submit submitconnect.SubmitServiceClient + Sync syncconnect.SyncServiceClient Watch watchconnect.WatchServiceClient } @@ -37,9 +37,9 @@ func NewClient(httpClient *http.Client, baseUrl string, options ...ClientOption) client := &UtxorpcClient{ httpClient: httpClient, baseUrl: baseUrl, - ChainSync: syncconnect.NewChainSyncServiceClient(httpClient, baseUrl, connect.WithGRPC()), Query: queryconnect.NewQueryServiceClient(httpClient, baseUrl, connect.WithGRPC()), Submit: submitconnect.NewSubmitServiceClient(httpClient, baseUrl, connect.WithGRPC()), + Sync: syncconnect.NewSyncServiceClient(httpClient, baseUrl, connect.WithGRPC()), Watch: watchconnect.NewWatchServiceClient(httpClient, baseUrl, connect.WithGRPC()), }