Skip to content

Commit

Permalink
add tips
Browse files Browse the repository at this point in the history
  • Loading branch information
v1xingyue committed Sep 11, 2024
1 parent 0d38be3 commit 185b5a5
Showing 1 changed file with 42 additions and 4 deletions.
46 changes: 42 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,40 +26,78 @@ Solana Local Node、Solana CLI Tools、Network Wallet 交互
- 初始化账户,秘钥对,获得 airdrop
- 导入导出秘钥,切换网络
- 启动本地节点,监控 logs
- 浏览器 wallet 安装使用 (Phantom, Solflare,Phantom)
- 初始化账户,秘钥对,导入、导出账户
- 浏览器 wallet 安装使用 (Phantom, Solflare,Phantom)
- 初始化账户,助记词、秘钥 导入、导出
- 网络浏览器查看交易内容、切换网络、连接到本地网络

### 1.2 solana 基本读写

使用 Solana Native 开发、读写 Account Data、

🔗 [ Solana Hello world](https://solana.com/zh/developers/guides/getstarted/local-rust-hello-world)
🔗 [solana-developers/program-examples](https://github.com/solana-developers/program-examples/tree/main/basics)
🔗 [solana playground](https://beta.solpg.io/)

#### 学习目标

- 熟悉 rust 编写合约
- 熟悉 rust 编写合约过程
- 熟悉 solana 合约编译、部署、调用
- 区块浏览器查看合约
- 使用 solana playground 编写合约

## Module 2

### 2.1 Sdk 和序列化数据

Account 数据传输序列化,数据检查(TypeScript SDK 基本使用)

🔗 [solana account read and write](https://creatorsdao.github.io/solana-co-learn/Solana-Co-Learn/module3/native-solana-development/build-a-movie-review-program/)
🔗 [状态管理和序列化](https://creatorsdao.github.io/solana-co-learn/Solana-Co-Learn/module3/native-solana-development/state-management/)
🔗 [https://solana.com/docs/clients/javascript](https://solana.com/docs/clients/javascript)
🔗 [Connet solana from react](https://solana.com/developers/cookbook/wallets/connect-wallet-react)

#### 学习目标:

- 合约读取数据
- 合约使用 PDA 账户
- 迭代用户
- 序列化反序列化数据
- 使用 javascript 操作合约
- 使用 javascript 构建 dapp

### 2.2 solana 快速开发

使用 Anchor framework 开发

🔗 [Anchor 官方文档](https://www.anchor-lang.com/)
🔗 [Anchor hello world](https://www.anchor-lang.com/docs/hello-world)
🔗 [Anchor the accounts struct](https://www.anchor-lang.com/docs/the-accounts-struct)

#### 学习目标

- Anchor 框架开发合约
- Anchor 框架开发 dapp
- Anchor 快速修改 account 数据和约束
- Anchor 中 pda 初始化和 cpi 调用

## Module 3

### 3.1 solana 进阶

PDA , CPI , SPL Token

🔗 [PDA 生命周期](https://solanacookbook.com/zh/core-concepts/pdas.html#%E7%BB%BC%E8%BF%B0)
🔗 [CPI 调用](https://solana.com/docs/core/cpi)
🔗 [https://spl.solana.com/token](https://spl.solana.com/token)

#### 学习目标

- 生成 PDA 地址 (合约部分,客户端)
- 创建 PDA 账户 (合约创建)
- 写入 数据 到 PDA
- 合约内部如何调用其他程序
- 创建 Token
- mint Token

### 3.2 solana 前沿

Actions and Blinks
Expand Down

0 comments on commit 185b5a5

Please sign in to comment.