graph-program
graph-program copied to clipboard
Graph Program
A program to connect accounts with public keys that allows for the creation of a very flexible graph structure on the blockchain.
Table of contents:
- Source Code
- Usage
Source Code
The programs/graph_program/lib.rs file acts as an entry point to the graph program.
- Instructions are laid out in the
programs/graph_program/instructionsfolder, which acts as a module (be sure to list each instructions in themod.rsfile). - Altough Solana Programs are stateless, the
"State"structs and impls are stored inprograms/graph_program/state, likewise list them onmod.rs. Here is where a lot of the business logic related to structs that are passed as accounts into the program by the instructions should live and function. - Constants are stored in the
programs/graph_program/constantsfolder, here is where we store some useful constants like PDA seed parts and static pubKeys.
Usage
Docs and Sdk in the making, please refer to the tests folder for implementation reference.