Skip to content

Commit

Permalink
chore: add more samples
Browse files Browse the repository at this point in the history
  • Loading branch information
jiachengxu committed Sep 11, 2023
1 parent 8f57355 commit 6711d5a
Show file tree
Hide file tree
Showing 48 changed files with 11,492 additions and 16 deletions.
3 changes: 2 additions & 1 deletion docs/TSB-2023-001.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ This is a honeypot smart contract sample demonstrating unpredictable behavior wh

- [01.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-001/samples/01.sol)
- [02.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-001/samples/02.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-001/samples/03.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-001/samples/03.sol)
- [04.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-001/samples/04.sol)
3 changes: 2 additions & 1 deletion docs/TSB-2023-002.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ function mint(unit256 amount) external onlyowner {

- [01.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-002/samples/01.sol)
- [02.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-002/samples/02.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-002/samples/03.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-002/samples/03.sol)
- [04.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-002/samples/04.sol)
3 changes: 2 additions & 1 deletion docs/TSB-2023-003.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ function unlock() public virtual {

- [01.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-003/samples/01.sol)
- [02.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-003/samples/02.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-003/samples/03.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-003/samples/03.sol)
- [04.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-003/samples/04.sol)
3 changes: 2 additions & 1 deletion docs/TSB-2023-004.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ function setBalance(address user, uint256 value) public onlyOwner returns (bool)

- [01.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-004/samples/01.sol)
- [02.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-004/samples/02.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-004/samples/03.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-004/samples/03.sol)
- [04.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-004/samples/04.sol)
3 changes: 2 additions & 1 deletion docs/TSB-2023-005.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ modifier superman() {

- [01.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-005/samples/01.sol)
- [02.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-005/samples/02.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-005/samples/03.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-005/samples/03.sol)
- [04.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-005/samples/04.sol)
3 changes: 2 additions & 1 deletion docs/TSB-2023-006.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ function close(address payable to) external onlyOwner {

- [01.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-006/samples/01.sol)
- [02.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-006/samples/02.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-006/samples/03.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-006/samples/03.sol)
- [04.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-006/samples/04.sol)
3 changes: 2 additions & 1 deletion docs/TSB-2023-007.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ function _transfer(address from, address recipient, uint256 amount) internal vir

- [01.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-007/samples/01.sol)
- [02.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-007/samples/02.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-007/samples/03.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-007/samples/03.sol)
- [04.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-007/samples/04.sol)
3 changes: 2 additions & 1 deletion docs/TSB-2023-008.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ function _transfer(address from, address recipient, uint256 amount) internal vir

- [01.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-008/samples/01.sol)
- [02.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-008/samples/02.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-008/samples/03.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-008/samples/03.sol)
- [04.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-008/samples/04.sol)
3 changes: 2 additions & 1 deletion docs/TSB-2023-009.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ function _transfer(address from, address recipient, uint256 amount) internal vir

- [01.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-009/samples/01.sol)
- [02.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-009/samples/02.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-009/samples/03.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-009/samples/03.sol)
- [04.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-009/samples/04.sol)
3 changes: 2 additions & 1 deletion docs/TSB-2023-010.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ function setFee(uint256 _fee) external onlyOwner{

- [01.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-010/samples/01.sol)
- [02.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-010/samples/02.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-010/samples/03.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-010/samples/03.sol)
- [04.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-010/samples/04.sol)
3 changes: 2 additions & 1 deletion docs/TSB-2023-011.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ function setTradeEnabled(bool _enabled) external onlyOwner {

- [01.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-011/samples/01.sol)
- [02.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-011/samples/02.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-011/samples/03.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-011/samples/03.sol)
- [04.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-011/samples/04.sol)
3 changes: 2 additions & 1 deletion docs/TSB-2023-012.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ function setFee(address _address, uint256 _fee) external onlyOwner{

- [01.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-012/samples/01.sol)
- [02.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-012/samples/02.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-012/samples/03.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-012/samples/03.sol)
- [04.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-012/samples/04.sol)
3 changes: 2 additions & 1 deletion docs/TSB-2023-013.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ function _transfer(address from, address recipient, uint256 amount) internal vir

- [01.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-013/samples/01.sol)
- [02.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-013/samples/02.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-013/samples/03.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-013/samples/03.sol)
- [04.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-013/samples/04.sol)
3 changes: 2 additions & 1 deletion docs/TSB-2023-014.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ function _transfer(address from, address recipient, uint256 amount) internal vir

- [01.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-014/samples/01.sol)
- [02.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-014/samples/02.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-014/samples/03.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-014/samples/03.sol)
- [04.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-014/samples/04.sol)
3 changes: 2 additions & 1 deletion docs/TSB-2023-015.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ function setMaxAmount(uint256 _maxAmount) external onlyOwner {

- [01.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-015/samples/01.sol)
- [02.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-015/samples/02.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-015/samples/03.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-015/samples/03.sol)
- [04.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-015/samples/04.sol)
3 changes: 2 additions & 1 deletion docs/TSB-2023-016.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ function _transfer(address from, address recipient, uint256 amount) internal vir

- [01.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-016/samples/01.sol)
- [02.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-016/samples/02.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-016/samples/03.sol)
- [03.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-016/samples/03.sol)
- [04.sol](https://github.com/cryptousersecurity/token-security-benchmark/blob/main/src/TSB-2023-016/samples/04.sol)
3 changes: 3 additions & 0 deletions src/TSB-2023-001/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
},
{
"name": "03.sol"
},
{
"name": "04.sol"
}
]
}
Loading

0 comments on commit 6711d5a

Please sign in to comment.