Skip to content

Commit 5f27432

Browse files
committed
sync contracts & test scripts...etc with the source repo. Some new tests are added.
1 parent 171948a commit 5f27432

File tree

151 files changed

+906
-18996
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+906
-18996
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
- 介绍与个人地址和合约地址交互会产生的不同后果以及如何甄别这两种地址。
3434
- [工厂证明](./patterns/factory-proofs)
3535
- 在链上证明合约是由可信任的部署人部署的。
36+
- [闪电贷](./patterns/flash-loans/)
37+
- 设计一个基本的闪电贷机制.
3638
- [初始化可升级合约](./patterns/initializing-upgradeable-contracts)
3739
- 安全且高效地为代理合约初始化变量的方法。
3840
- [默克尔证明](./patterns/merkle-proofs)

foundry.toml

+1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
src = 'patterns'
33
out = 'out'
44
libs = ['lib']
5+
ignored_error_codes=[3628,5159]
56

67
# See more config options https://github.com/foundry-rs/foundry/tree/master/config

lib/forge-std/.github/workflows/tests.yml

-26
This file was deleted.

lib/forge-std/.gitignore

-4
This file was deleted.

lib/forge-std/.gitmodules

-3
This file was deleted.

lib/forge-std/LICENSE-APACHE

-203
This file was deleted.

lib/forge-std/LICENSE-MIT

-25
This file was deleted.

0 commit comments

Comments
 (0)