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:
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/instructions
folder, which acts as a module (be sure to list each instructions in themod.rs
file). - 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/constants
folder, here is where we store some useful constants like PDA seed parts and static pubKeys.
Docs and Sdk in the making, please refer to the tests
folder for implementation reference.