-
Notifications
You must be signed in to change notification settings - Fork 667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stateful property-tests for the error/failure paths in PoX-4 #4842
Stateful property-tests for the error/failure paths in PoX-4 #4842
Commits on May 21, 2024
-
feat(pox-4-tests): add check function delegate to PoxCommand-derived …
…types - Added import for StackStxSigCommand_Err and StackStxAuthCommand_Err - Added StackStxAuthCommand_Err with a custom check function delegate to PoxCommands - Added StackStxSigCommand_Err with a custom check function delegate to PoxCommands This allows the check function to be parameterized, reducing the need for copy-pasting classes. Note: This is a very work in progress.
Configuration menu - View commit details
-
Copy full SHA for 050418c - Browse repository at this point
Copy the full SHA 050418cView commit details
Commits on May 22, 2024
-
feat(pox-4-tests): add check function delegate to PoxCommand-derived …
…types - Separate success paths from failure paths to keep pox_Commands.ts focused on success cases only. This prevents the file from growing with out-of-scope cases. Note: This is a work in progress.
Configuration menu - View commit details
-
Copy full SHA for 6f02aeb - Browse repository at this point
Copy the full SHA 6f02aebView commit details -
Remove command tracking from the command's
run
methodThe command run tracking will be added to the command's `check` method.
Configuration menu - View commit details
-
Copy full SHA for 04e7fe6 - Browse repository at this point
Copy the full SHA 04e7fe6View commit details -
Pass the incremented burn height when calling
stack-stx
If not passed incremented, the call will result in an `ERR_INVALID_START_BURN_HEIGHT` when being sent at the limit between 2 cycles.
Configuration menu - View commit details
-
Copy full SHA for a243d3b - Browse repository at this point
Copy the full SHA a243d3bView commit details -
Add the unhappy path cases for
StackStxXCommand_Err
This commit: - adds 6 unhappy path cases for the `stack-stx` PoX-4 method, 3 for each signing method (authorization or signature) - adds a dictionary that contains the PoX-4 error names and the error codes - adds the command run tracking inside the `check` method, resulting in displaying all the paths hit and the number of times.
Configuration menu - View commit details
-
Copy full SHA for 7a0c1fd - Browse repository at this point
Copy the full SHA 7a0c1fdView commit details -
Remove
StackStxXCommand.ts
from statisticsThey needed to be excluded as we have removed the command run tracking from the run method.
Configuration menu - View commit details
-
Copy full SHA for bd159e3 - Browse repository at this point
Copy the full SHA bd159e3View commit details
Commits on May 24, 2024
-
Add unhappy path for
revoke-delegate-stx
The added unhappy path tries to call revoke-delegate-stx with an address that is not delegating.
Configuration menu - View commit details
-
Copy full SHA for 7405ab0 - Browse repository at this point
Copy the full SHA 7405ab0View commit details -
Remove
RevokeDelegateStxCommand_Err
from statisticsThe command run tracking was moved inside the command's check function. No need to report the run using the file name anymore.
Configuration menu - View commit details
-
Copy full SHA for 10d0b9b - Browse repository at this point
Copy the full SHA 10d0b9bView commit details -
Add unhappy path for
delegate-stx
The added unhappy path tries to call delegate-stx with an address that is already delegating.
Configuration menu - View commit details
-
Copy full SHA for 0c83016 - Browse repository at this point
Copy the full SHA 0c83016View commit details -
Remove
DelegateStxCommand_Err
from statisticsThe command run tracking was moved inside the command's check function. No need to report the run using the file name anymore.
Configuration menu - View commit details
-
Copy full SHA for 48b9032 - Browse repository at this point
Copy the full SHA 48b9032View commit details -
Use simnet
mineBlock
insideStackStxAuthCommand_Err
This commit: - includes the authorization and the function call in the same block. It is needed because otherwise, it can result in issuing the authorization for the wrong reward cycle. - updates the passed start-burn-ht param, different from the StackStxSigCommand. If not doing it like this, the test fails when the command is called at the limit between 2 reward cycles. - removes unnecessary operations: retrieving the reward cycle, retrieving the unlockBurnHeight.
Configuration menu - View commit details
-
Copy full SHA for b38c224 - Browse repository at this point
Copy the full SHA b38c224View commit details
Commits on May 27, 2024
-
Add the unhappy path cases for
StackAggCommitSigCommand_Err
This commit: - adds 3 unhappy path cases for the `stack-aggregation-commit` PoX-4 method, called using a signature. - adds the command run tracking inside the `check` method. - adds the expected `stack-aggregation-commit` PoX-4 errors to the POX_4_ERRORS dictionary.
Configuration menu - View commit details
-
Copy full SHA for 93bfa6c - Browse repository at this point
Copy the full SHA 93bfa6cView commit details -
Remove
StackAggregationCommitSigCommand_Err
from statisticsThe command run tracking was moved inside the command's check function. No need to report the run using the file name anymore.
Configuration menu - View commit details
-
Copy full SHA for 16311d8 - Browse repository at this point
Copy the full SHA 16311d8View commit details -
Add the unhappy path cases for
StackAggCommitAuthCommand_Err
This commit: - adds 3 unhappy path cases for the `stack-aggregation-commit` PoX-4 method, called using an authorization. - adds the command run tracking inside the `check` method.
Configuration menu - View commit details
-
Copy full SHA for a8e7ea3 - Browse repository at this point
Copy the full SHA a8e7ea3View commit details -
Remove
StackAggregationCommitAuthCommand_Err
from statisticsThe command run tracking was moved inside the command's check function. No need to report the run using the file name anymore.
Configuration menu - View commit details
-
Copy full SHA for b592998 - Browse repository at this point
Copy the full SHA b592998View commit details -
Configuration menu - View commit details
-
Copy full SHA for 41c0386 - Browse repository at this point
Copy the full SHA 41c0386View commit details -
Order statistics alphabetically
This commit improves the unhappy paths execution visibility after the test suite run is complete.
Configuration menu - View commit details
-
Copy full SHA for 788f986 - Browse repository at this point
Copy the full SHA 788f986View commit details -
Add the unhappy path cases for
StackAggCommitIndexedSigCommand_Err
This commit: - adds 3 unhappy path cases for the `stack-aggregation-commit-indexed` PoX-4 method, called using a signature. - adds the command run tracking inside the `check` method.
Configuration menu - View commit details
-
Copy full SHA for 23e6bc1 - Browse repository at this point
Copy the full SHA 23e6bc1View commit details
Commits on May 29, 2024
-
Add the unhappy path cases for
StackAggCommitIndexedAuthCommand_Err
This commit: - adds 3 unhappy path cases for the `stack-aggregation-commit-indexed` PoX-4 method, called using an authorization. - adds the command run tracking inside the `check` method.
Configuration menu - View commit details
-
Copy full SHA for 74b4a92 - Browse repository at this point
Copy the full SHA 74b4a92View commit details -
Remove all files containing
_Err
from command trackingThe command run tracking for the unhappy paths was moved inside the commands' check function. No need to report the run using the file name anymore.
Configuration menu - View commit details
-
Copy full SHA for 91f99db - Browse repository at this point
Copy the full SHA 91f99dbView commit details -
Add one unhappy path case for
StackAggIncreaseCommand_Err
This commit: - adds one unhappy path case for the `stack-aggregation-increase` PoX-4 method, called using an authorization. - adds the command run tracking inside the `check` method.
Configuration menu - View commit details
-
Copy full SHA for 48a759a - Browse repository at this point
Copy the full SHA 48a759aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 70990a4 - Browse repository at this point
Copy the full SHA 70990a4View commit details -
Add unhappy path cases for
DelegateStackStxCommand_Err
This commit: - adds 3 unhappy path cases for the `delegate-stack-stx` PoX-4 method. - adds the command run tracking inside the `check` method. - adds the expected `delegate-stack-stx` PoX-4 errors to the `POX_4_ERRORS` dictionary. - exports the `nextCycleFirstBlock` method from pox_commands, as it is used inside err_Commands.
Configuration menu - View commit details
-
Copy full SHA for c66e679 - Browse repository at this point
Copy the full SHA c66e679View commit details -
Add unhappy path cases for
StackIncreaseSigCommand_Err
This commit: - adds 3 unhappy path cases for the `stack-increase` PoX-4 method, called using a signature. - adds the command run tracking inside the `check` method. - adds the expected `stack-increase` PoX-4 errors to the `POX_4_ERRORS` dictionary.
Configuration menu - View commit details
-
Copy full SHA for 17fddaf - Browse repository at this point
Copy the full SHA 17fddafView commit details
Commits on May 30, 2024
-
Add unhappy path cases for
StackIncreaseAuthCommand_Err
This commit: - adds 3 unhappy path cases for the `stack-increase` PoX-4 method, called using an authorization. - adds the command run tracking inside the `check` method.
Configuration menu - View commit details
-
Copy full SHA for 2a7135f - Browse repository at this point
Copy the full SHA 2a7135fView commit details -
Add unhappy path cases for
StackExtendSigCommand_Err
This commit: - adds 5 unhappy path cases for the `stack-increase` PoX-4 method, called using a signature. - adds the command run tracking inside the `check` method. - adds the expected `stack-extend` PoX-4 errors to the `POX_4_ERRORS` dictionary.
Configuration menu - View commit details
-
Copy full SHA for 9a4f775 - Browse repository at this point
Copy the full SHA 9a4f775View commit details -
Add unhappy path cases for
StackExtendAuthCommand_Err
This commit: - adds 5 unhappy path cases for the `stack-extend` PoX-4 method, called using an authorization. - adds the command run tracking inside the `check` method.
Configuration menu - View commit details
-
Copy full SHA for eaf9274 - Browse repository at this point
Copy the full SHA eaf9274View commit details
Commits on May 31, 2024
-
Add unhappy path cases for
DelegateStackExtendCommand_Err
This commit: - adds 4 unhappy path cases for the `delegate-stack-extend` PoX-4 method. - adds the command run tracking inside the `check` method. - adds the expected `delegate-stack-extend` PoX-4 error to the `POX_4_ERRORS` dictionary.
Configuration menu - View commit details
-
Copy full SHA for be39b1a - Browse repository at this point
Copy the full SHA be39b1aView commit details -
feat(pox-4-tests): add check function delegate to PoxCommand-derived …
…types - Added import for StackStxSigCommand_Err and StackStxAuthCommand_Err - Added StackStxAuthCommand_Err with a custom check function delegate to PoxCommands - Added StackStxSigCommand_Err with a custom check function delegate to PoxCommands This allows the check function to be parameterized, reducing the need for copy-pasting classes. Note: This is a very work in progress.
Configuration menu - View commit details
-
Copy full SHA for 64e2ece - Browse repository at this point
Copy the full SHA 64e2eceView commit details -
feat(pox-4-tests): add check function delegate to PoxCommand-derived …
…types - Separate success paths from failure paths to keep pox_Commands.ts focused on success cases only. This prevents the file from growing with out-of-scope cases. Note: This is a work in progress.
Configuration menu - View commit details
-
Copy full SHA for 7f4b536 - Browse repository at this point
Copy the full SHA 7f4b536View commit details -
Remove command tracking from the command's
run
methodThe command run tracking will be added to the command's `check` method.
Configuration menu - View commit details
-
Copy full SHA for 124abd4 - Browse repository at this point
Copy the full SHA 124abd4View commit details -
Pass the incremented burn height when calling
stack-stx
If not passed incremented, the call will result in an `ERR_INVALID_START_BURN_HEIGHT` when being sent at the limit between 2 cycles.
Configuration menu - View commit details
-
Copy full SHA for dfb7230 - Browse repository at this point
Copy the full SHA dfb7230View commit details -
Add the unhappy path cases for
StackStxXCommand_Err
This commit: - adds 6 unhappy path cases for the `stack-stx` PoX-4 method, 3 for each signing method (authorization or signature) - adds a dictionary that contains the PoX-4 error names and the error codes - adds the command run tracking inside the `check` method, resulting in displaying all the paths hit and the number of times.
Configuration menu - View commit details
-
Copy full SHA for 1de982d - Browse repository at this point
Copy the full SHA 1de982dView commit details -
Remove
StackStxXCommand.ts
from statisticsThey needed to be excluded as we have removed the command run tracking from the run method.
Configuration menu - View commit details
-
Copy full SHA for be6966c - Browse repository at this point
Copy the full SHA be6966cView commit details -
Add unhappy path for
revoke-delegate-stx
The added unhappy path tries to call revoke-delegate-stx with an address that is not delegating.
Configuration menu - View commit details
-
Copy full SHA for 544382c - Browse repository at this point
Copy the full SHA 544382cView commit details -
Remove
RevokeDelegateStxCommand_Err
from statisticsThe command run tracking was moved inside the command's check function. No need to report the run using the file name anymore.
Configuration menu - View commit details
-
Copy full SHA for 3227bc4 - Browse repository at this point
Copy the full SHA 3227bc4View commit details -
Add unhappy path for
delegate-stx
The added unhappy path tries to call delegate-stx with an address that is already delegating.
Configuration menu - View commit details
-
Copy full SHA for e7610e3 - Browse repository at this point
Copy the full SHA e7610e3View commit details -
Remove
DelegateStxCommand_Err
from statisticsThe command run tracking was moved inside the command's check function. No need to report the run using the file name anymore.
Configuration menu - View commit details
-
Copy full SHA for 232d388 - Browse repository at this point
Copy the full SHA 232d388View commit details -
Use simnet
mineBlock
insideStackStxAuthCommand_Err
This commit: - includes the authorization and the function call in the same block. It is needed because otherwise, it can result in issuing the authorization for the wrong reward cycle. - updates the passed start-burn-ht param, different from the StackStxSigCommand. If not doing it like this, the test fails when the command is called at the limit between 2 reward cycles. - removes unnecessary operations: retrieving the reward cycle, retrieving the unlockBurnHeight.
Configuration menu - View commit details
-
Copy full SHA for bdcee6b - Browse repository at this point
Copy the full SHA bdcee6bView commit details -
Add the unhappy path cases for
StackAggCommitSigCommand_Err
This commit: - adds 3 unhappy path cases for the `stack-aggregation-commit` PoX-4 method, called using a signature. - adds the command run tracking inside the `check` method. - adds the expected `stack-aggregation-commit` PoX-4 errors to the POX_4_ERRORS dictionary.
Configuration menu - View commit details
-
Copy full SHA for 190d7a5 - Browse repository at this point
Copy the full SHA 190d7a5View commit details -
Remove
StackAggregationCommitSigCommand_Err
from statisticsThe command run tracking was moved inside the command's check function. No need to report the run using the file name anymore.
Configuration menu - View commit details
-
Copy full SHA for b0f8464 - Browse repository at this point
Copy the full SHA b0f8464View commit details -
Add the unhappy path cases for
StackAggCommitAuthCommand_Err
This commit: - adds 3 unhappy path cases for the `stack-aggregation-commit` PoX-4 method, called using an authorization. - adds the command run tracking inside the `check` method.
Configuration menu - View commit details
-
Copy full SHA for 367e89a - Browse repository at this point
Copy the full SHA 367e89aView commit details -
Remove
StackAggregationCommitAuthCommand_Err
from statisticsThe command run tracking was moved inside the command's check function. No need to report the run using the file name anymore.
Configuration menu - View commit details
-
Copy full SHA for abdf8bd - Browse repository at this point
Copy the full SHA abdf8bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ab6e61 - Browse repository at this point
Copy the full SHA 3ab6e61View commit details -
Order statistics alphabetically
This commit improves the unhappy paths execution visibility after the test suite run is complete.
Configuration menu - View commit details
-
Copy full SHA for 91a7c43 - Browse repository at this point
Copy the full SHA 91a7c43View commit details -
Add the unhappy path cases for
StackAggCommitIndexedSigCommand_Err
This commit: - adds 3 unhappy path cases for the `stack-aggregation-commit-indexed` PoX-4 method, called using a signature. - adds the command run tracking inside the `check` method.
Configuration menu - View commit details
-
Copy full SHA for ab686c4 - Browse repository at this point
Copy the full SHA ab686c4View commit details -
Add the unhappy path cases for
StackAggCommitIndexedAuthCommand_Err
This commit: - adds 3 unhappy path cases for the `stack-aggregation-commit-indexed` PoX-4 method, called using an authorization. - adds the command run tracking inside the `check` method.
Configuration menu - View commit details
-
Copy full SHA for 50475b7 - Browse repository at this point
Copy the full SHA 50475b7View commit details -
Remove all files containing
_Err
from command trackingThe command run tracking for the unhappy paths was moved inside the commands' check function. No need to report the run using the file name anymore.
Configuration menu - View commit details
-
Copy full SHA for 7173ad6 - Browse repository at this point
Copy the full SHA 7173ad6View commit details -
Add one unhappy path case for
StackAggIncreaseCommand_Err
This commit: - adds one unhappy path case for the `stack-aggregation-increase` PoX-4 method, called using an authorization. - adds the command run tracking inside the `check` method.
Configuration menu - View commit details
-
Copy full SHA for c6ff82d - Browse repository at this point
Copy the full SHA c6ff82dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a267a04 - Browse repository at this point
Copy the full SHA a267a04View commit details -
Add unhappy path cases for
DelegateStackStxCommand_Err
This commit: - adds 3 unhappy path cases for the `delegate-stack-stx` PoX-4 method. - adds the command run tracking inside the `check` method. - adds the expected `delegate-stack-stx` PoX-4 errors to the `POX_4_ERRORS` dictionary. - exports the `nextCycleFirstBlock` method from pox_commands, as it is used inside err_Commands.
Configuration menu - View commit details
-
Copy full SHA for 1bd9c78 - Browse repository at this point
Copy the full SHA 1bd9c78View commit details -
Add unhappy path cases for
StackIncreaseSigCommand_Err
This commit: - adds 3 unhappy path cases for the `stack-increase` PoX-4 method, called using a signature. - adds the command run tracking inside the `check` method. - adds the expected `stack-increase` PoX-4 errors to the `POX_4_ERRORS` dictionary.
Configuration menu - View commit details
-
Copy full SHA for b66b19c - Browse repository at this point
Copy the full SHA b66b19cView commit details -
Add unhappy path cases for
StackIncreaseAuthCommand_Err
This commit: - adds 3 unhappy path cases for the `stack-increase` PoX-4 method, called using an authorization. - adds the command run tracking inside the `check` method.
Configuration menu - View commit details
-
Copy full SHA for 50bd1b5 - Browse repository at this point
Copy the full SHA 50bd1b5View commit details -
Add unhappy path cases for
StackExtendSigCommand_Err
This commit: - adds 5 unhappy path cases for the `stack-increase` PoX-4 method, called using a signature. - adds the command run tracking inside the `check` method. - adds the expected `stack-extend` PoX-4 errors to the `POX_4_ERRORS` dictionary.
Configuration menu - View commit details
-
Copy full SHA for 4c2f3b6 - Browse repository at this point
Copy the full SHA 4c2f3b6View commit details -
Add unhappy path cases for
StackExtendAuthCommand_Err
This commit: - adds 5 unhappy path cases for the `stack-extend` PoX-4 method, called using an authorization. - adds the command run tracking inside the `check` method.
Configuration menu - View commit details
-
Copy full SHA for add9d55 - Browse repository at this point
Copy the full SHA add9d55View commit details -
Add unhappy path cases for
DelegateStackExtendCommand_Err
This commit: - adds 4 unhappy path cases for the `delegate-stack-extend` PoX-4 method. - adds the command run tracking inside the `check` method. - adds the expected `delegate-stack-extend` PoX-4 error to the `POX_4_ERRORS` dictionary.
Configuration menu - View commit details
-
Copy full SHA for 3f3da16 - Browse repository at this point
Copy the full SHA 3f3da16View commit details -
Merge branch 'feat/pox-4-stateful-prop-tests-check-err' of https://gi…
…thub.com/stacks-network/stacks-core into feat/pox-4-stateful-prop-tests-check-err
Configuration menu - View commit details
-
Copy full SHA for 8a3dc45 - Browse repository at this point
Copy the full SHA 8a3dc45View commit details -
Update
err_Commands
to include thedelegatedUntilBurnHt
none branchThis commit adds the undefined check in the `err_Commands` comparisons that involve `delegatedUntilBurnHt`.
Configuration menu - View commit details
-
Copy full SHA for 115a385 - Browse repository at this point
Copy the full SHA 115a385View commit details -
Add unhappy path cases for
DelegateStackIncreaseCommand_Err
This commit: - adds 4 unhappy path cases for the `delegate-stack-increase` PoX-4 method. - adds the command run tracking inside the `check` method.
Configuration menu - View commit details
-
Copy full SHA for 6eb8eec - Browse repository at this point
Copy the full SHA 6eb8eecView commit details -
Configuration menu - View commit details
-
Copy full SHA for da87ec8 - Browse repository at this point
Copy the full SHA da87ec8View commit details -
Add unhappy path case for
DisallowContractCallerCommand_Err
This commit: - adds one unhappy path case for the `disallow-contract-caller` PoX-4 method. - adds the command run tracking inside the `check` method.
Configuration menu - View commit details
-
Copy full SHA for 9365892 - Browse repository at this point
Copy the full SHA 9365892View commit details
Commits on Jun 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f03bedf - Browse repository at this point
Copy the full SHA f03bedfView commit details
Commits on Jun 10, 2024
-
Fix PoX-4 stateful prop tests comments
This commit brings typo fixes for all the comments inside the PoX-4 stateful property tests.
Configuration menu - View commit details
-
Copy full SHA for dc9e019 - Browse repository at this point
Copy the full SHA dc9e019View commit details
Commits on Jun 18, 2024
-
Remove types from
err_Commands
check
functionsThis update simplifies the err_Commands generators file.
Configuration menu - View commit details
-
Copy full SHA for f460834 - Browse repository at this point
Copy the full SHA f460834View commit details
Commits on Jun 20, 2024
-
Add an additional condition inside
DelegateStackIncreaseCommand
The added condition ensures that an active lock does not expire at the end of the current cycle, and avoids the PoX-4 Clarity error 2 - ERR_STACKING_INVALID_LOCK_PERIOD
Configuration menu - View commit details
-
Copy full SHA for 452d7bd - Browse repository at this point
Copy the full SHA 452d7bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 90d4a2b - Browse repository at this point
Copy the full SHA 90d4a2bView commit details -
Update the err_Commands check functions to return the false first
This commit refactors all the unhappy path check functions, returning early the false and removing the else branch.
Configuration menu - View commit details
-
Copy full SHA for fa5b78f - Browse repository at this point
Copy the full SHA fa5b78fView commit details -
Update the way
firstRewardCycle
is calculatedThis commit: - simplifies the way firstRewardCycle is calculated, replacing the ternary operator with the max Math method. - standardizes the const name of the stacker retrieved from the model.
Configuration menu - View commit details
-
Copy full SHA for d10d760 - Browse repository at this point
Copy the full SHA d10d760View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c8c540 - Browse repository at this point
Copy the full SHA 7c8c540View commit details -
Update the way
firstRewardCycle
is calculated all over the stateful…… testing environment
Configuration menu - View commit details
-
Copy full SHA for 934d554 - Browse repository at this point
Copy the full SHA 934d554View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3057aaa - Browse repository at this point
Copy the full SHA 3057aaaView commit details -
Configuration menu - View commit details
-
Copy full SHA for dbaf000 - Browse repository at this point
Copy the full SHA dbaf000View commit details -
Configuration menu - View commit details
-
Copy full SHA for 00c0738 - Browse repository at this point
Copy the full SHA 00c0738View commit details