This Repo contains a handful of Solana smart contracts (programs). Use them for inspiration / boilerplates and build more complex smart contracts upon them. The featured templares are:
-
➡️ calculator
a math calculator as a Rust smart contract
ft. Anchor & Trdelnik -
➡️ ecoswap
unidirectional 1:1 SOL → ECOV tokenswap
Rust program & TypeScript client -
➡️ helloworld-counter
print 'helloword' & emits log events
built 100% in Rust -
➡️ pda
create a Program Derived Account, aka PDA
Rust program & TypeScript client -
➡️ soltransfer
transfer SOL from wallet A to wallet B
Rust program & TypeScript client -
➡️ spltransfer
transfer SPL-tokens from wallet A to wallet B
Rust program & TypeScript client
⚠️ All the above programs are coded in Rust native, expect forcalculator
andtictactoe
which were built with the Anchor framework.