Squid based data used to index, process, and query on top of Solana for KodaDot NFT Marketplace.
- Solana Mainet: 🚧 Coming soon 🚧
src/generated
- model/server definitions created bycodegen
. Do not alter the contents of this directory manually.src/server-extension
- module with customtype-graphql
based resolvers.src/types
- data type definitions for chain events and extrinsics created bytypegen
.src/mappings
- mapping module.lib
- compiled js files. The structure of this directory must reflectsrc
..env
- environment variables defined here or supplied by a shell.
- Node 20.x
- Docker
- npm
- just
# 1. Install dependencies
npm install
# 2. Build project
just build
# 3. Start target Postgres database container
just upd
# 4. Update database with data objects
just migrate
# 5. Start the processor
just process
# 6. Open a separate terminal and launch the graphql server to query the processed data
just serve
# 7. Visit localhost:4350/graphql to see the result
@subsquid/borsh
package allows to easily define fast and type-safe codec for any Solana data structure.
In the future we plan to develop robust code generation tools, that would allow to create all relevant definitions from IDL files automatically.
Meanwhile, abi module gives an example of how that might look like.
Solana support is in beta.
In particular, we expect to make Subsquid Network data ingestion at least 50 times faster.