This is the Solana Program which is an account factory for the Mojo-sdk written with Pinocchio, bytemuck, sha2.
🚨 it is expected that you have already set up your Solana cli
# enter the program directory
cd mojo-program
# set environment to devnet
solana config set --url devnet
# build an .so file to deploy
cargo build-sbfnow make sure the address at target/deploy/mojo_program-keypair.json
can be checked with
solana address -k target/deploy/mojo_program-keypair.jsonis the same as what you have in your pinocchio_pubkey::declare_id!("7iMdvW8A4Tw3yxjbXjpx4b8LTW13EQLB4eTmPyqRvxzM"); in lib.rs
if not, just paste up what's in the terminal from the last command into that string pinocchio_pubkey::declare_id!("YourNewAddress111111111111111111111111111111");
save and deploy the program
# deploy the program to devnet
solana program deploy --program-id target/deploy/mojo_program-keypair.json target/deploy/mojo_program.so🚨 it is expected that you have already set up your Solana cli
# enter the program directory
cd mojo-program
# set environment to devnet
solana config set --url devnet
# create a new keypair to test on devnet
solana-keygen new -s -o dev_wallet.json
# airdrop some SOL to that wallet
solana airdrop 1 $(solana address -k dev_wallet.json)
# build and test the program
cargo build-sbf && cargo test -- --nocaptureMoodboard 1 - https://excalidraw.com/#room=a46b67cad46194a6070f,KQR06GWzcammufK6P9A7uQ
Tasks Sheet - https://docs.google.com/spreadsheets/d/1TqDlBIDCJ5K4CVYf0-OmwYorXIHBadmHVW4ndQMU79w/edit?hl=en-GB&gid=0#gid=0
Scratchboard - https://gist.github.com/inspi-writer001/aa5020faafd44e320a0a0e0c5e71d344