Skip to content

Commit

Permalink
Merge branch 'main' of github.com:IntensiveCoLearning/starknet
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaopengjun5162 committed Oct 5, 2024
2 parents 8c773d7 + 89dafc8 commit 61484f3
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
2 changes: 2 additions & 0 deletions MartinYeung5.md
Original file line number Diff line number Diff line change
Expand Up @@ -452,5 +452,7 @@ https://github.com/PhilippeR26/starknet.js-workshop-typescript
需要自行編寫declare.js, deploy.js,
雖然可以根據影片中的代碼,但有些地方不太清晰,如有文檣提供就好。

### 2024.10.05
在互聯網上查看declare.js, deploy.js的寫法,但各有不同,不太知道哪個是正確

<!-- Content_END -->
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ Starknet 残酷共学是由 LXDAO、Starknet Astro、AAStar 联合发起,旨
| Reign ||||||||||||||||||| | | |
| qiaopengjun |||||||||||||||||| | | | |
| Ric-Li-C || ⭕️ | ⭕️ |||||||| ⭕️ || ⭕️ | ⭕️ || | | | | | |
| River |||||||||||||||||| | | | |
| River |||||||||||||||||| ⭕️ | | | |
| awaqawaqawaq |||| ⭕️ | ⭕️ |||||| ⭕️ | ⭕️ |||||| | | | |
| phipupt |||||||||||||||||| | | | |
| MartinYeung5 |||||||||||| ⭕️ |||||| | | | |
| phipupt |||||||||||||||||| | | | |
| MartinYeung5 |||||||||||| ⭕️ |||||| | | | |
| dethan3 || ⭕️ || ⭕️ || | | | | | | | | | | | | | | | |
| Cavn ||| ⭕️ | ⭕️ || | | | | | | | | | | | | | | | |
| Ellen || ⭕️ | ⭕️ |||| ⭕️ | ⭕️ || | | | | | | | | | | | |
Expand Down Expand Up @@ -328,6 +328,8 @@ Starknet 残酷共学是由 LXDAO、Starknet Astro、AAStar 联合发起,旨








Expand Down
22 changes: 22 additions & 0 deletions phipupt.md
Original file line number Diff line number Diff line change
Expand Up @@ -344,4 +344,26 @@ Cairo提供了全面的测试工具,可以帮助开发者编写可靠的代码:

9. 集成测试的组织:可以使用子模块来组织集成测试


### 2024.10.05

Cairo 笔记:Cairo 编程语言的一些高级特性:

1. 自定义数据结构
- 使用 Felt252Dict<T> 来模拟可变数据结构
- 实现了自定义的 UserDatabase 和 MemoryVec (动态数组)结构
- 实现了 Stack(栈)数据结构

2. 智能指针
- Box<T> 类型,用于在 boxed segment 中存储数据
- Box<T> 可以用来实现递归类型,如二叉树
- Box<T> 可以提高性能,通过传递指针而不是复制大量数据

3. Nullable<T> 类型
- 用于字典中存储不支持 zero_default 的类型

4. 运算符重载
- 通过实现特定 trait 来重载运算符
- 给出了 Potion 结构体重载加法运算符的例子

<!-- Content_END -->

0 comments on commit 61484f3

Please sign in to comment.