-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add a step to execute fuzz test from a file * tests: add some FileFuzzerStep to the integration tests * feat: add a json default formatter * docs: add FileFuzzerStep step documentation * docs: changelog * Bump version: 3.0.0-dev2 → 3.0.0-dev3 --------- Co-authored-by: github-actions <[email protected]>
- Loading branch information
1 parent
f1c6023
commit 682ef2c
Showing
11 changed files
with
402 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88 changes: 88 additions & 0 deletions
88
integration_tests/piggy_bank/mxops_scenes/data/fuzz_tests_esdt_minter.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
parameters: | ||
- endpoint: addAirdropAmount | ||
sender: jean | ||
gas_limit: 5000000 | ||
arguments: | ||
- "[thomas]" | ||
- 12471682 | ||
description: "adding airdrop" | ||
|
||
- endpoint: getAirdropAmount | ||
sender: thomas | ||
gas_limit: 5000000 | ||
arguments: | ||
- "[thomas]" | ||
expected_outputs: | ||
- 12471682 | ||
|
||
- endpoint: claimAirdrop | ||
sender: thomas | ||
gas_limit: 5000000 | ||
description: "claiming airdrop" | ||
|
||
- endpoint: getAirdropAmount | ||
sender: thomas | ||
gas_limit: 5000000 | ||
arguments: | ||
- "[thomas]" | ||
expected_outputs: | ||
- 0 | ||
|
||
- endpoint: addAirdropAmount | ||
sender: jean | ||
gas_limit: 5000000 | ||
arguments: | ||
- "[thomas]" | ||
- 1 | ||
description: "adding airdrop" | ||
|
||
- endpoint: getAirdropAmount | ||
sender: thomas | ||
gas_limit: 5000000 | ||
arguments: | ||
- "[thomas]" | ||
expected_outputs: | ||
- 1 | ||
|
||
- endpoint: claimAirdrop | ||
sender: thomas | ||
gas_limit: 5000000 | ||
description: "claiming airdrop" | ||
|
||
- endpoint: getAirdropAmount | ||
sender: thomas | ||
gas_limit: 5000000 | ||
arguments: | ||
- "[thomas]" | ||
expected_outputs: | ||
- 0 | ||
|
||
- endpoint: addAirdropAmount | ||
sender: jean | ||
gas_limit: 5000000 | ||
arguments: | ||
- "[thomas]" | ||
- 124789174012701294870129874129 | ||
description: "adding airdrop" | ||
|
||
- endpoint: getAirdropAmount | ||
sender: thomas | ||
gas_limit: 5000000 | ||
arguments: | ||
- "[thomas]" | ||
expected_outputs: | ||
- 124789174012701294870129874129 | ||
|
||
- endpoint: claimAirdrop | ||
sender: thomas | ||
gas_limit: 5000000 | ||
description: "claiming airdrop" | ||
|
||
- endpoint: getAirdropAmount | ||
sender: thomas | ||
gas_limit: 5000000 | ||
arguments: | ||
- "[thomas]" | ||
expected_outputs: | ||
- 0 | ||
|
33 changes: 33 additions & 0 deletions
33
integration_tests/piggy_bank/mxops_scenes/data/fuzz_tests_piggy_bank.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
parameters: | ||
|
||
- endpoint: deposit | ||
sender: thomas | ||
gas_limit: 8000000 | ||
description: "depositing esdt" | ||
esdt_transfers: | ||
- token_identifier: "%abc-esdt-minter.EsdtIdentifier" | ||
amount: 1247741982740 | ||
nonce: 0 | ||
|
||
- endpoint: deposit | ||
sender: thomas | ||
gas_limit: 8000000 | ||
description: "depositing esdt" | ||
esdt_transfers: | ||
- token_identifier: "%abc-esdt-minter.EsdtIdentifier" | ||
amount: 213 | ||
nonce: 0 | ||
|
||
- endpoint: deposit | ||
sender: thomas | ||
gas_limit: 8000000 | ||
description: "depositing esdt" | ||
esdt_transfers: | ||
- token_identifier: "%abc-esdt-minter.EsdtIdentifier" | ||
amount: 41496879 | ||
nonce: 0 | ||
|
||
- endpoint: withdraw | ||
sender: thomas | ||
gas_limit: 8000000 | ||
description: "withdrawing esdt" |
18 changes: 18 additions & 0 deletions
18
integration_tests/piggy_bank/mxops_scenes/user_exploit/06_fuzz_tests.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
allowed_networks: | ||
- localnet | ||
- testnet | ||
- devnet | ||
- chain-simulator | ||
|
||
allowed_scenario: | ||
- "integration_test_piggy_bank_user_exploit" | ||
|
||
steps: | ||
|
||
- type: FileFuzzer | ||
contract: "abc-esdt-minter" | ||
file_path: "./integration_tests/piggy_bank/mxops_scenes/data/fuzz_tests_esdt_minter.yaml" | ||
|
||
- type: FileFuzzer | ||
contract: "abc-piggy-bank" | ||
file_path: "./integration_tests/piggy_bank/mxops_scenes/data/fuzz_tests_piggy_bank.yaml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.