返回
项目实战

Build a Counter on Solana

In the following chapters, we will together complete a simple yet practical counter project.

语言rust
难度简单
总时长1.5小时

目标学习者

这门课是给谁上的

  • For developers who are interested in the Solana ecosystem

要求

  • Basic understanding of Rust and Anchor framework is recommended - At least completed the four foundational courses: Solana Basic Concepts, Rust Basic Concepts, Solana Program Development, and Introduction to Anchor Framework
  • No Solana development experience is needed- this course contains the simplest and most basic procedures

你会学到什么

  • Writing a project to implement a simple counter using Rust and Anchor.
  • How to configure a project, claim SOL, and get your counter on-chain in Solana Playground.
Counter
Initialize
Increment

课程安排

  • Unit 0 - Course Intro

    Introduction to Counter


  • Unit 1 - Initialization of On-Chain Programs

    In this chapter, we will configure the initialization of on-chain programs.


  • Unit 2 - Account Structure Definition

    In this chapter, we will define the basic data structure required for Counter.


  • Unit 3 - initialize(1)

    In this chapter, we will implement the initialization of the counter, focusing primarily on data definition.


  • Unit 4 - initialize(2)

    In this chapter, we will implement the initialization of the counter, focusing primarily on the implementation of its function.


  • Unit 5 - Increment(1)

    In this chapter, we will learn about the data definition in the counter increment logic.


  • Unit 6 - Increment(2)

    In this chapter, we will learn about the function implementation in the counter increment logic.


  • Unit 7 - Interaction

    In this chapter, we will implement the deployment of Counter on Solana.

practice

Build a Counter on Solana

28 小节
移动端和桌面端均可访问