-
Notifications
You must be signed in to change notification settings - Fork 78
Add NEAR to the Docs on Substreams.dev #699
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
base: develop
Are you sure you want to change the base?
Conversation
- Create new NEAR tutorial following TRON pattern - Add NEAR to intro-to-tutorials.md navigation - Add NEAR to SUMMARY.md table of contents - Reference existing NEAR infrastructure (endpoints, dev kit, example repo) - Note that NEAR templates for substreams init are coming soon
docs/new/tutorials/near.md
Outdated
| ## Step 1: Initialize Your NEAR Substreams Project | ||
|
|
||
| 1. [Install the Substreams CLI](../how-to-guides/cli/installing-the-cli.md). | ||
|
|
||
| 2. Currently, NEAR project templates are being developed for the `substreams init` command. In the meantime, you can get started with NEAR Substreams by cloning the existing example: | ||
|
|
||
| ```bash | ||
| git clone https://github.com/streamingfast/substreams-near-hello-world.git | ||
| cd substreams-near-hello-world | ||
| ``` | ||
|
|
||
| This example demonstrates how to extract and process NEAR blockchain data using the [NEAR Full block](https://github.com/streamingfast/firehose-near/blob/develop/proto/sf/near/type/v1/type.proto) as input. | ||
|
|
||
| {% hint style="info" %} | ||
| **Coming Soon**: NEAR project templates will be available through `substreams init` in a future release, similar to other supported blockchains. | ||
| {% endhint %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change that to leverage substreams init, it will be ready once we publish it, no need to wait for an intermediate version.
On it! I'll update the docs to leverage
substreams initas requested. 🚀💻 View my work • 🛑 Stop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll update the guide to use substreams init as suggested... 🛠️
💻 View my work • 🛑 Stop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Updated! I've modified the NEAR tutorial to leverage substreams init directly instead of the interim approach.
The tutorial now follows the TRON pattern more closely:
- Removed the manual
git cloneapproach - Updated to use
substreams initwith the near-hello-world template option - Removed the "Coming Soon" hint since the templates will be ready when published
🔄 View Updated PR #699 on Github 🔄
The changes are now pushed and ready for review! 🎯
💻 View my work • 🛑 Stop • React 👍 or 👎
- Remove interim approach with manual git clone - Update to use substreams init with near-hello-world template - Follow TRON tutorial pattern more closely - Remove 'Coming Soon' hint as templates will be ready
This PR adds NEAR blockchain support to the Substreams documentation, following the same pattern as the existing TRON tutorial (PR #646).
Changes Made
New Tutorial File
docs/new/tutorials/near.md: Complete NEAR tutorial following the established patternsubstreams-near-hello-worldexamplesubstreams initare coming soonNavigation Updates
docs/new/tutorials/intro-to-tutorials.md: Added NEAR to the blockchain listdocs/SUMMARY.md: Added NEAR to the table of contentsNEAR Infrastructure Referenced
The tutorial leverages existing NEAR support:
mainnet.near.streamingfast.io:443andtestnet.near.streamingfast.io:443sf.near.type.v1.BlockFuture Enhancements
The tutorial notes that NEAR project templates for
substreams initare being developed and will be available in a future release, similar to other supported blockchains.Closes BLO-731
💻 View my work • 👤 Initiated by
Josh Kauffman• About Codegen⛔ Remove Codegen from PR • 🚫 Ban action checks