Scaffolding for a dapp built on Solana using Redux
git clone https://github.com/k0beLeenders/solana-dapp-scaffold.git
cd dapp-scaffold
yarn
yarn start
-
Install Rust from https://rustup.rs/
-
Install Solana v1.6.7 or later from https://docs.solana.com/cli/install-solana-cli-tools#use-solanas-install-tool
-
Install Node
-
Install NPM, Yarn
Run the following from the program/ subdirectory:
$ cargo build-bpf
$ cargo test-bpf
Solana program template in Rust
process_instruction function is used to run all calls issued to the smart contract
Setup here actions that will interact with Solana programs using sendTransaction function
React context objects that are used propagate state of accounts across the application
React redux state that are used to manage state
Generic react hooks to interact with token program:
Home - main page for your app