Skip to content

Commit

Permalink
Update Solana-Co-Learn README and week files
Browse files Browse the repository at this point in the history
- Updated week numbers in README.md
- Renamed week0 to week1, week1 to week2, week2 to week3, and so on
- Added new week files for weeks 5, 6, 7, 8, and 9
- Modified sidebar labels and positions

(commit message should be meaningful according to the specific context)
  • Loading branch information
DaviRain-Su committed Aug 2, 2023
1 parent acdb6c7 commit 2659c22
Show file tree
Hide file tree
Showing 12 changed files with 137 additions and 13 deletions.
21 changes: 10 additions & 11 deletions docs/Solana-Co-Learn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sidebar_class_name: green

# Solana Co Learn

## Week1: 区块链基本概念介绍以及Solana基本概念原理介绍及本地开发环境配置
## Week0: 区块链基本概念介绍以及Solana基本概念原理介绍及本地开发环境配置

- 区块链基本概念介绍
- Solana基本概念原理介绍
Expand All @@ -20,7 +20,7 @@ sidebar_class_name: green
- Anchor 合约框架实现《hello, World》
- 使用Solang编译器编译solidity合约实现《hello, World》

## Week2: 与Solana网络的客户互动
## Week1: 与Solana网络的客户互动

- 从网络中读取数据
- 将数据写入网络
Expand All @@ -29,26 +29,25 @@ sidebar_class_name: green
- 反序列化自定义账户数据
- 页面、订单和筛选自定义账户数据

## Week3: 与常见的Solana程序的客户互动
## Week2: 与常见的Solana程序的客户互动

- 使用Token程序创建令牌
- 使用Token Swap程序进行代币交换
- 使用Metaplex创建Solana NFTs

## Week4: Solana基础程序开发
## Week3: Solana基础程序开发

- Hello, World!
- 创建一个基本程序,第一部分 - 处理指令数据
- 创建一个基本程序,第二部分 - 状态管理
- 创建一个基本程序,第三部分 - 基本安全和验证

## Week5: Solana中级程序开发
## Week4: Solana中级程序开发

- 程序派生地址(PDA)
- 跨程序调用(CPI)


## Week 6: Anchor Program Development
## Week 5: Anchor Program Development

- Anchor 开发简介
- intro to Solana
Expand All @@ -63,21 +62,21 @@ sidebar_class_name: green
- Anchor PDAs与账户
- Anchor CPIs与error

## Week 7: Beyond the Basics
## Week 6: Beyond the Basics

- Solana程序中的环境变量
- Solana Pay
- 版本化的事务和查找表
- Rust过程宏

## Week 8: Solana program of Solidity by Solang Developement
## Week 7: Solana program of Solidity by Solang Developement

- 开始使用solang
- Solidity 与PDAs
- Solidity 与 CPIs
- etc

## Weeks9: Solana程序安全
## Weeks 8: Solana程序安全

- 如何处理程序安全模块
- 签名人授权
Expand All @@ -91,7 +90,7 @@ sidebar_class_name: green
- 关闭账户和恢复攻击
- PDA sharing

## Week 10: 其他
## Week 9: 其他

- token2020 token如何发行
- Compression NFT 如何发行
Expand Down
2 changes: 1 addition & 1 deletion docs/Solana-Co-Learn/week0/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 0
sidebar_label: week0
sidebar_label: week0 区块链基本概念介绍以及Solana基本概念原理介绍
sidebar_class_name: green
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ crate-type = ["cdylib", "lib"]
当你准备构建你的Solana程序时,你可以使用`cargo build-sbf`命令。

```bash
cargo build-bpf
cargo build-sbf
```

这个命令的输出将包含部署程序的指令,大致如下:
Expand Down
14 changes: 14 additions & 0 deletions docs/Solana-Co-Learn/week1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
sidebar_position: 11
sidebar_label: week1 与Solana网络的客户互动
sidebar_class_name: green
---

# 与Solana网络的客户互动

- 从网络中读取数据
- 将数据写入网络
- 与钱包互动
- 序列化自定义指令数据
- 反序列化自定义账户数据
- 页面、订单和筛选自定义账户数据
11 changes: 11 additions & 0 deletions docs/Solana-Co-Learn/week2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
sidebar_position: 18
sidebar_label: week2 与常见的Solana程序的客户互动
sidebar_class_name: green
---

# 与常见的Solana程序的客户互动

- 使用Token程序创建令牌
- 使用Token Swap程序进行代币交换
- 使用Metaplex创建Solana NFTs
12 changes: 12 additions & 0 deletions docs/Solana-Co-Learn/week3/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
sidebar_position: 22
sidebar_label: week3 Solana基础程序开发
sidebar_class_name: green
---


# Solana基础程序开发

- 创建一个基本程序,第一部分 - 处理指令数据
- 创建一个基本程序,第二部分 - 状态管理
- 创建一个基本程序,第三部分 - 基本安全和验证
10 changes: 10 additions & 0 deletions docs/Solana-Co-Learn/week4/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
sidebar_position: 26
sidebar_label: week4 Solana中级程序开发
sidebar_class_name: green
---

# Solana中级程序开发

- 程序派生地址(PDA)
- 跨程序调用(CPI)
20 changes: 20 additions & 0 deletions docs/Solana-Co-Learn/week5/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
sidebar_position: 29
sidebar_label: week5 Anchor Program Development
sidebar_class_name: green
---

# Anchor Program Development

- Anchor 开发简介
- intro to Solana
- Core Concepts
- High-level Overview
- The Accounts Struct
- The Program Module
- Errors
- Cross-Program Invocations
- Program Derived Address
- anchor client 开发简介
- Anchor PDAs与账户
- Anchor CPIs与error
12 changes: 12 additions & 0 deletions docs/Solana-Co-Learn/week6/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
sidebar_position: 30
sidebar_label: week6 Beyond the Basics
sidebar_class_name: green
---

# Beyond the Basics

- Solana程序中的环境变量
- Solana Pay
- 版本化的事务和查找表
- Rust过程宏
11 changes: 11 additions & 0 deletions docs/Solana-Co-Learn/week7/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
sidebar_position: 31
sidebar_label: week7 Solana program of Solidity by Solang Developement
sidebar_class_name: green
---

# Solana program of Solidity by Solang Developement

- Solidity 与PDAs
- Solidity 与 CPIs
- etc
19 changes: 19 additions & 0 deletions docs/Solana-Co-Learn/week8/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
sidebar_position: 32
sidebar_label: week8 Solana程序安全
sidebar_class_name: green
---

# Solana程序安全

- 如何处理程序安全模块
- 签名人授权
- Owner check
- 账户数据匹配
- 重新初始化攻击
- 重复的可变账户
- Type cosplay
- Arbitrary CPIs
- 碰撞种子规范化
- 关闭账户和恢复攻击
- PDA sharing
16 changes: 16 additions & 0 deletions docs/Solana-Co-Learn/week9/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
sidebar_position: 33
sidebar_label: week8 其他
sidebar_class_name: green
---

# 其他

- token2020 token如何发行
- Compression NFT 如何发行
- 如何在Solana中使用The Graph
- Oracles Pyth sdk的使用
- TipLink 如何使用
- 如何在quicknode申请RPC endpoint
- 如何在helius申请RPC endpoint
- etc ...

1 comment on commit 2659c22

@vercel
Copy link

@vercel vercel bot commented on 2659c22 Aug 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.