Skip to content

Commit d9283f7

Browse files
authored
Merge branch 'rpcpool:main' into adityas2/jetstreamer
2 parents 4f0b758 + 1ac5fa2 commit d9283f7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/codama-parser-generation.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Vixen is a framework for building real-time program data pipelines in Rust. This
1313

1414
3. **Initialize a JavaScript Project (for Codegen)**
1515

16-
From within the parser directory (where the `idl.json` file is located) run:
16+
From within the parser directory (where the `idl.json` file is located), run:
1717

1818
```bash
1919
pnpm init
@@ -40,7 +40,7 @@ pnpm install \
4040

4141
**1. Create a Parser Generation Script**
4242

43-
In the same directory create a new file called `codama.cjs`:
43+
In the same directory, create a new file called `codama.cjs`:
4444

4545
```javascript
4646
// codama.cjs
@@ -74,7 +74,9 @@ visit(
7474
```bash
7575
node codama.cjs
7676
```
77+
7778
Your folder structure should look like this:
79+
7880
```bash
7981
example-parser/
8082
├── proto/
@@ -98,14 +100,16 @@ example-parser/
98100
```
99101
100102
**3. Build and Verify**
101-
Before building you project, ensure there is a const export of the program address in `generated_sdk/programs.rs`:
103+
Before building your project, ensure there is a const export of the program address in `generated_sdk/programs.rs`:
102104
103105
```rust
104106
pub const DCA_ID: Pubkey = pubkey!("DCA265Vj8a9CEuX1eb1LWRnDT7uK6q1xMipnNyatn23M");
107+
```
105108
106109
```bash
107110
cargo build
108111
```
112+
109113
If successful, you now have a working parser for Solana account data using Yellowstone Vixen.
110114
111115
## 🎉 You’re Done!

0 commit comments

Comments
 (0)