Skip to content

Commit 3c5fb39

Browse files
committed
docs: fix typos
1 parent 4059024 commit 3c5fb39

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ There are multiple ways for listening to updates in Solana blockchain. The defau
44

55
`blockSubscribe` is considered unstable and may not be supported by all RPC providers. Moreover, this method doesn't support `processed` commitment level. It waits for complete blocks to be confirmed or finalized before sending data.
66

7-
`logsSubscribe` is faster than `blockSubscribe` since it streams logs in real-time as transactions are processed. Its limitation is that it truncates log messages that exceed size limits (typically around 10KB). If you need complete transaction data, you still need to use `blockSubscribe` or send additional RPC calls.
7+
`logsSubscribe` is faster than `blockSubscribe` since it streams logs in real-time as transactions are processed. Its limitation is that it truncates log messages that exceed size limits. If you need complete transaction data, you still need to use `blockSubscribe` or send additional RPC calls.
88

99
Luckily, a plugin mechanism has been introduced to Solana nodes. They have been enhanced to support a Geyser plugin mechanism which is a special interface that allows RPC providers to stream information about accounts, slots, blocks, and transactions to external data stores.
1010

@@ -16,7 +16,7 @@ In this tutorial, we focus on the gRPC plugin which uses the [gRPC](https://grpc
1616

1717
By default, gRPC uses [protocol buffers](https://developers.google.com/protocol-buffers) as the Interface Definition Language (IDL) for describing both the service interface and the structure of the messages. For a user of Yellowstone gRPC plugin, it means that there are special proto files based on which client code will be generated and imported into other modules.
1818

19-
Those [proto files](https://github.com/rpcpool/yellowstone-grpc/tree/master/yellowstone-grpc-proto/proto) define the service interface (what RPC methods are available), message structures (request/response formats), data types, and enums. These definitions support code generation for all popular programming languages including Python, Go, Java, C++, JavaScript/Node.js, Rust, C#, and many others. A few examples below show the service interface and message structures defined in the proto files.
19+
Those [proto files](https://github.com/rpcpool/yellowstone-grpc/tree/master/yellowstone-grpc-proto/proto) define the service interface (what methods are available), message structures (request/response formats), data types, and enums. These definitions support code generation for all popular programming languages including Python, Go, Java, C++, JavaScript/Node.js, Rust, C#, and many others. A few examples below show the service interface and message structures defined in the proto files.
2020

2121
```protobuf
2222
// Service interface definition
@@ -64,7 +64,14 @@ The generated client code handles all the low-level complexity: serialization an
6464

6565
Let's build a real-time token monitor that detects new pump.fun tokens the moment they're created. We'll construct this step-by-step.
6666

67-
For package management, we will super fast and modern [uv](https://docs.astral.sh/uv/getting-started/installation/) tool.
67+
For package management, we will use super fast and modern [uv](https://docs.astral.sh/uv/getting-started/installation/) tool.
68+
69+
*If you are in a hurry, simply clone this repository and sync dependencies*.
70+
71+
```bash
72+
git clone https://github.com/chainstacklabs/grpc-geyser-tutorial .
73+
uv sync
74+
```
6875

6976
### Step 1: Project setup and dependencies
7077

learning-examples/meteora_dlmm_monitor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ def get_token_symbol(mint):
3939
def calculate_dlmm_price_actual(active_id: int, bin_step: int) -> float:
4040
"""
4141
Calculate the actual price for Meteora DLMM.
42-
Formula: price = (1 + bin_step/10000)^active_id
42+
Formula: price = (1 + bin_step/10000)^active_id^decimal_adjustment
43+
where decimal_adjustment is 10^(9 - 6) for WSOL and token decimals.
4344
"""
4445
try:
4546
bin_step_decimal = bin_step / 10000.0

0 commit comments

Comments
 (0)