File tree Expand file tree Collapse file tree 12 files changed +164
-5
lines changed
Expand file tree Collapse file tree 12 files changed +164
-5
lines changed Original file line number Diff line number Diff line change 1+ ## 升级<br >
2+
3+ <br >
4+
5+ 默认情况下,智能合约是不可变的。 一旦创建,就无法更改它们,有效地充当参与者之间牢不可破的契约。 但是,对于某些场景,希望能够修改它们。<br >
6+
7+ <br >
8+ <br >
9+ <br >
10+
11+ ** 访问以下链接以了解更多相关信息** <br >
12+
13+ 升级以太坊合约<br >
14+ [ Upgrading Ethereum contracts] ( https://ethereum.org/en/developers/docs/smart-contracts/upgrading/ ) <br >
15+ 升级智能合约<br >
16+ [ Upgrading smart contracts] ( https://docs.openzeppelin.com/learn/upgrading-smart-contracts ) <br >
17+ 什么是可升级智能合约? 完整指南<br >
18+ [ What are Upgradable Smart Contracts? Full Guide] ( https://moralis.io/what-are-upgradable-smart-contracts-full-guide/ ) <br >
19+ 升级您的智能合约 | 教程和介绍<br >
20+ [ Upgrading your Smart Contracts | A Tutorial & Introduction] ( https://youtu.be/bdXJmWajZRY ) <br >
Original file line number Diff line number Diff line change 1+ ## 测试<br >
2+
3+ <br >
4+
5+ 测试智能合约是提高智能合约安全性的最重要措施之一。 与传统软件不同,智能合约在启动后通常无法更新,因此必须在将合约部署到主网上之前进行严格测试。<br >
6+
7+ <br >
8+ <br >
9+ <br >
10+
11+ ** 访问以下链接以了解更多相关信息** <br >
12+
13+ 测试智能合约<br >
14+ [ Testing Smart Contracts] ( https://ethereum.org/en/developers/docs/smart-contracts/testing/ ) <br >
15+ 如何测试以太坊智能合约<br >
16+ [ How to Test Ethereum Smart Contracts] ( https://betterprogramming.pub/how-to-test-ethereum-smart-contracts-35abc8fa199d ) <br >
17+ 编写自动化智能合约测试<br >
18+ [ Writing automated smart contract tests] ( https://docs.openzeppelin.com/learn/writing-automated-tests ) <br >
19+
20+ <br >
21+ <br >
22+
23+ ***
24+
25+ <br >
26+ <br >
27+
28+ ** 包含:** <br >
29+
30+ <br >
31+
32+ ## 单元测试<br >
33+
34+ <br >
35+
36+ 单元测试涉及测试智能合约中各个组件的正确性。 单元测试简单、运行迅速,并且在测试失败时清楚地表明出了什么问题。<br >
37+
38+ <br >
39+ <br >
40+ <br >
41+
42+ ** 访问以下链接以了解更多相关信息** <br >
43+
44+ 智能合约单元测试<br >
45+ [ Smart Contracts Unit Testing] ( https://ethereum.org/en/developers/docs/smart-contracts/testing/#unit-testing ) <br >
46+ 在 Solidity 中对以太坊智能合约进行单元测试的技巧<br >
47+ [ Tips for Unit Testing Ethereum Smart Contracts in Solidity] ( https://betterprogramming.pub/a-few-tips-for-unit-testing-ethereum-smart-contract-in-solidity-d804062068fb ) <br >
48+
49+ <br >
50+ <br >
51+
52+ ***
53+
54+ <br >
55+ <br >
56+
57+ ## 集成测试<br >
58+ 集成测试验证多个组件之间的交互。 对于智能合约测试,这可能意味着单个合约的不同组件之间或多个合约之间的交互。<br >
59+
60+ <br >
61+ <br >
62+ <br >
63+
64+ ** 访问以下链接以了解更多相关信息** <br >
65+
66+ 单元测试与集成测试 | 智能合约测试课程<br >
67+ [ Unit tests vs integration tests | Smart contract testing course] ( https://youtu.be/GxnX9k8i0zM ) <br >
68+
69+ <br >
70+ <br >
71+
72+ ***
73+
74+ <br >
75+ <br >
76+
77+ ## 代码覆盖率<br >
78+ 代码覆盖率是一种指标,可以帮助您了解测试了多少源代码。 这是一个非常有用的指标,可以帮助您评估测试套件的质量。<br >
79+
80+ <br >
81+ <br >
82+ <br >
83+
84+ ** 访问以下链接以了解更多相关信息** <br >
85+
86+ 测试智能合约<br >
87+ [ Testing Smart Contracts] ( https://ethereum.org/en/developers/docs/smart-contracts/testing/ ) <br >
88+ Hardhat 中的智能合约代码覆盖率<br >
89+ [ Smart Contract Code Coverage In Hardhat] ( https://medium.com/coinmonks/smart-contract-code-coverage-in-hardhat-d4a5ff6c9ba6 ) <br >
Original file line number Diff line number Diff line change 1+ ## 监控<br >
2+
3+ <br >
4+
5+ 监控智能合约允许其作者根据生成的交易和事件查看其活动和交互,从而验证合约的预期目的和功能。<br >
6+
7+ <br >
8+ <br >
9+ <br >
10+
11+ ** 访问以下链接以了解更多相关信息** <br >
12+
13+ 监控智能合约<br >
14+ [ Monitoring Smart Contracts] ( https://consensys.github.io/smart-contract-best-practices/development-recommendations/solidity-specific/event-monitoring/ ) <br >
You can’t perform that action at this time.
0 commit comments