Skip to content

A Solana Rust smart contract (or program) that emits log events, listens to emitted events, and performs an action whenever events got intercepted

License

Notifications You must be signed in to change notification settings

ifabrisarabellapark/sc-solana-examples

Repository files navigation

Solana Programs 101 | Templates 🐥

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

  • ➡️ tictactoe
    play tic-tac-toe game
    ft. Anchor & Trdelnik

⚠️ All the above programs are coded in Rust native, expect for calculator and tictactoe which were built with the Anchor framework.

About

A Solana Rust smart contract (or program) that emits log events, listens to emitted events, and performs an action whenever events got intercepted

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published