本篇是 NEAR 智能合约 (以下简称合约) 开发教程 (基础篇), 适合刚接触合约发开的新人开发者
通过本篇的学习, 你将了解合约开发的基本知识, 学会编写和测试合约代码, 学会部署合约并与之进行交互. 在本篇的最后还会带你了解 NEAR 协议标准 NEPs 并带你实现其中的两个标准合约 FungibleToken 与 NonFungibleToken
学习本篇之前, 希望你拥有以下前置知识
- Rust 编程语言基础
- NEAR 区块链核心概念
- Account Model
- Abstract Account
- Multi Key
- Key Permission
- Transaction, Action, Receipt
- Signer, Predecessor, Receiver
- Account Model
- 认识 NEAR 智能合约
- 合约的编译与部署
- [状态存储与容器](3. 状态存储与容器/README.md)
- 跨合约调用与回调函数
- 单元测试
- 集成测试
- 编写一个 FungibleToken 合约
- 编写一个 NonFungibleToken 合约