GithubHelp home page GithubHelp logo

danyatheslayer / solana-examples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from max-block/solana-examples

0.0 0.0 0.0 500 KB

Examples of Solana on-chain programs

Rust 58.90% TypeScript 39.18% HTML 1.92%

solana-examples's Introduction

spl-examples

List of Solana on-chain programs which demonstrate different aspects of Solana architecture.


state

It's a counter program. Each user has his own counter. There is one settings account which only admin can manage.

Topics:

  • Basics about Solana programming model
  • Serialization and deserialization instruction_data and state in Rust using borsh
  • Serialization and deserialization instruction_data and state on the client side using buffer-layout
  • Unit and functional tests for on-chain Solana programs
  • Using Solana client @solana/web3.js
  • Program Derived Addresses
  • Create accounts inside on-chain programs
  • Deploy on testnet and check it using Solana explorer

Comments about this example on YouTube (in Russian)


transfer-lamports

Transfer lamports inside a Solana on-chain program

Topics:

  • Invoke system instructions inside on-chain programs
  • Cross-Program Invocations
  • Privilege extension
  • Phantom and Sollet wallet integrations

Comments about this example on YouTube (in Russian)


transfer-tokens

Transfer and approve SPL tokens inside a Solana on-chain program

Topics:

  • SPL Token
  • SPL Associated Token Account Program
  • javascript @solana/spl-token
  • The community maintained Solana token registry

Comments about this example on YouTube (in Russian)


TODO:

  • Pseudo random
  • Python Solana client
  • Subscription on changes in Accounts on the client side
  • Compare Solana vs Ethereum

solana-examples's People

Contributors

max-block avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.