Skip to content

Commit

Permalink
examples: fix commitment in TypeScript example (#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid authored Oct 11, 2024
1 parent 8a9fca6 commit 5096395
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 1 deletion.
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

0 comments on commit 5096395

Please sign in to comment.