Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples: fix commitment in TypeScript example #440

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ The minor version will be incremented upon a breaking change and the patch versi

### Fixes

- examples: fix commitment in TypeScript example ([#440](https://github.com/rpcpool/yellowstone-grpc/pull/440))

### Features

- proto: use `gzip`/`zstd` features by default ([#436](https://github.com/rpcpool/yellowstone-grpc/pull/436))
Expand Down
6 changes: 6 additions & 0 deletions examples/golang/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Golang client for Solana gRPC interface

## DISCLAIMER

This example can contains errors or be behind of the latest stable version, please use it only as an example of how your subscription can looks like. If you want well tested production ready example, please check our implementation on Rust.

<hr>

This is a sample golang client for the Solana gRPC interface.

Requires golang 1.17
Expand Down
8 changes: 7 additions & 1 deletion examples/python/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Python example

## DISCLAIMER

This example can contains errors or be behind of the latest stable version, please use it only as an example of how your subscription can looks like. If you want well tested production ready example, please check our implementation on Rust.

<hr>

## Instruction

This Python example uses [grpc.io](https://grpc.io/) library.
Expand Down Expand Up @@ -69,4 +75,4 @@ Which you can then import into your code.

- [secure_channel](https://grpc.github.io/grpc/python/grpc.html#create-client-credentials)

- [extend auth method via call credentials](https://grpc.io/docs/guides/auth/#extending-grpc-to-support-other-authentication-mechanisms)
- [extend auth method via call credentials](https://grpc.io/docs/guides/auth/#extending-grpc-to-support-other-authentication-mechanisms)
6 changes: 6 additions & 0 deletions examples/typescript/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# TypeScript client example

## DISCLAIMER

This example can contains errors or be behind of the latest stable version, please use it only as an example of how your subscription can looks like. If you want well tested production ready example, please check our implementation on Rust.

<hr>

This is a sample client for Solana geyser gRPC written in TypeScript.

This can be used in the following way:
Expand Down
1 change: 1 addition & 0 deletions examples/typescript/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ async function subscribeCommand(client, args) {
entry: {},
blocks: {},
blocksMeta: {},
commitment: parseCommitmentLevel(args.commitment),
accountsDataSlice: [],
ping: undefined,
};
Expand Down