airdrop_program
is a Solana dApp (written in Rust) that interacts with the token program onchain.
This program is the prerequisite dApp for the first phase of the WBA Turbin3 program.
- Make sure you have
rust
andcargo
installed - Run
cargo test
orcargo test -- --nocapture
to print output
Runs the function to generate a public key and secret key (keypair) via @solana/web3.js
Runs the function to claim 2 SOL for the given wallet address (runs on devnet)
Runs the function to transfer all of a wallet's SOL balance to another wallet address. The function also contains another function that transfers a set amount instead.
Runs the function to interact with the WBA onchain program to enroll into the course. In short, it generates a PDA from the required seeds as well as passing in the user's Github username to the onchain program, which upon success, "enrolls" the user into the course.
Runs a function to convert a Solana wallet secret key (i.e. a byte array) into a base-58 encoded string.
Runs a function to convert a base-58 encoded private key into a Solana wallet secret key (i.e. a byte array).