In my talk, I'll be covering basic Solana concepts by going through a practical example: creating a token vesting contract. This repository contains diagrams, program implementation, and program testing.
You can run the sample codebase using the following commands:
Anchor recommends reading chapters 1-9 of the Rust book which cover the basics of using Rust (Most of the time you don't need advanced Rust to write anchor programs).
You can install Anchor. Follow the installation guide on this page.
❯ cd token_vesting_program
❯ anchor test
All tests should run successfully, Hurra!
- All code is unaudited. Please sure at your own risk! ☠️
- The Anchor project config is fairly standard, but I did enable the
seeds
feature that is disabled in Anchor by default.
- Danni Hu (@danniphu) - for being supportive and helping me with slides
- Henry Elder (@Henry_E__) - for reviewing my code and for being the Anchor Expert
- Armani Ferrante (@armaniferrante) - for creating Anchor!
- Phantom fam - for being present and supporting me!