Skip to content

Commit

Permalink
chore(deps): bump utxorpc/go-codegen to 0.6.0 (#35)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Gianelloni <wolf31o2@blinklabs.io>
  • Loading branch information
wolf31o2 authored Jul 8, 2024
1 parent 3970db2 commit f54bc2e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions examples/sync/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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()),
}

Expand Down

0 comments on commit f54bc2e

Please sign in to comment.