Commit Graph

142 Commits

Author SHA1 Message Date
Nikos Baxevanis
482c195b0d refactor(pox-4-tests): Move PoX-4 stateful property-based tests
- Relocate PoX-4 stateful property-based tests from
  ../core-contract-tests/tests/pox-4/ to
  boot-contracts-stateful-prop-tests/tests/pox-4.
- Implement a minimalistic vitest and Clarinet project setup.
- Adjust configurations for optimal test isolation.
- Ensure Clarinet config is as minimalistic as possible.
- For more details, see: https://github.com/stacks-network/stacks-core/pull/4725#issuecomment-2082701083
2024-04-29 18:31:11 +02:00
BowTiedRadone
aaaca7781a Update numRuns and verbose for CI 2024-04-26 18:01:03 +03:00
BowTiedRadone
d72629e78a Add StackIncreaseSigCommand 2024-04-26 14:53:16 +03:00
BowTiedRadone
4aa7732766 Fix StackExtendCommands period calculation inside check 2024-04-26 14:49:26 +03:00
BowTiedRadone
609b8d7fcf Log period after successful stack-stx calls 2024-04-26 14:48:39 +03:00
BowTiedRadone
a3aaeb6e38 Update StackIncreaseAuth to issue authorization using correct period 2024-04-26 14:45:34 +03:00
BowTiedRadone
43a801dac8 Add StackIncreaseAuthCommand 2024-04-25 23:41:44 +03:00
BowTiedRadone
ebf7808058 Remove unused import, use amountLocked for signature max-amount 2024-04-24 17:07:17 +03:00
BowTiedRadone
2b6a2c8dfa Add StackExtendSigCommand 2024-04-24 16:31:23 +03:00
BowTiedRadone
879906edf0 Use burn block inside StackStxAuth and StackStxSIg commands 2024-04-24 16:11:45 +03:00
BowTiedRadone
dbe90accd8 Add StackExtendAuthCommand 2024-04-24 16:09:14 +03:00
BowTiedRadone
f60e1e9758 Add StackStxAuthCommand 2024-04-23 13:52:59 +03:00
BowTiedRadone
5679afaca2 fix(pox-4-tests): Replace pox values REWARD_CYCLE_LENGTH and FIRST_BURNCHAIN_BLOCK_HEIGHT consts 2024-04-22 16:32:34 +02:00
BowTiedRadone
e33895fa78 fix(pox-4-tests): Update AllowContractCallerCommand to remove the wallet from ex-allowed's list 2024-04-22 16:32:26 +02:00
BowTiedRadone
d2c1eb74dd chore(pox-4-tests): Update comment
Co-authored-by: Nikos Baxevanis <nikos.baxevanis@gmail.com>
2024-04-22 16:28:09 +02:00
BowTiedRadone
ab837a1739 fix(pox-4-tests): Refine refresh command, fix state simulation issues 2024-04-22 16:27:59 +02:00
Nikos Baxevanis
9945c5eba2 fix(pox-4-tests): Set fast-check command size to 'small' from 'xsmall' 2024-04-17 10:17:11 +02:00
Nikos Baxevanis
742dbf504e feat(pox-4-tests): Pretty-print burn block height in each command 2024-04-17 10:11:05 +02:00
Nikos Baxevanis
cc176006e7 chore(pox-4-tests): Format code and wrap comments at 79 chars 2024-04-17 09:37:16 +02:00
BowTiedRadone
a0d8352d3c chore(pox-4-tests): Add burn height logging 2024-04-17 09:37:11 +02:00
BowTiedRadone
3089e8bfe1 chore(pox-4-tests): Remove StackAggregationIncrease logging 2024-04-17 09:37:04 +02:00
BowTiedRadone
4a3ca5ceb6 chore(pox-4-tests): Remove state update log 2024-04-17 09:36:56 +02:00
BowTiedRadone
5a8c01712e fix(pox-4-tests): Fix StackAggregationIncrease reward cycle calculation 2024-04-17 09:36:52 +02:00
BowTiedRadone
1c0206bb6c fix(pox-4-tests): Fix StackAggregationCommitX
This commit fixes the way the current cycle is calculated.
2024-04-17 09:36:38 +02:00
BowTiedRadone
552648ca43 chore(pox-4-tests): Remove unused dependency cvToJSON 2024-04-17 09:36:23 +02:00
BowTiedRadone
eb95d20ac3 fix(pox-4-tests): Fix DelegateStackStx, StackStx, DelegateStackExtend, RevokeDelegateStx
This commit fixes issues regarding values generated at the generator level
that are not available after the reward cycle change.
2024-04-17 09:36:10 +02:00
BowTiedRadone
53170b9da5 fix(pox-4-tests): Update @stacks/stacking to version 6.13.2 2024-04-17 09:36:00 +02:00
BowTiedRadone
25ee419411 fix(pox-4-tests): Update StackAggregationIncreaseCommand to use a signature 2024-04-17 09:35:56 +02:00
BowTiedRadone
7dba97566e fix(pox-4-tests): Use stackers instead of wallets, update model initialization 2024-04-17 09:35:41 +02:00
Nikos Baxevanis
fc23590371 fix(pox-4-tests): Separate stacker from wallet
to ensure command updates propagate:

- Split wallet data into Wallet and Stacker types in pox-4 tests.
- Address fast-check execution order issues affecting state propagation.
- Initialize Wallet in constructor, modify Stacker in command runs.
- Ensure accurate reflection and propagation of updates across commands.
2024-04-15 14:43:38 +02:00
Nikos Baxevanis
5185e580dd fix(pox-4-tests): update @hirosystems/clarinet-sdk-wasm to 2.4.2 for bug fixes
This includes the fixes in
- https://github.com/stacks-network/stacks-core/pull/4644
- https://github.com/stacks-network/stacks-core/pull/4670
2024-04-12 16:55:25 +02:00
Nikos Baxevanis
466f45b27d chore(pox-4-tests): Format code and wrap comments at 79 chars
- Ran `deno fmt` to ensure code formatting adheres to standard practices.
- Manually wrapped comments to 79 characters width for improved readability
  across various code editors and diff tools.
- Fixed minor typos and standardized comment punctuation.
- Added missing periods at the end of parameter descriptions.
2024-04-11 19:32:58 +02:00
Nikos Baxevanis
c7b31f53d3 refactor(pox-4-tests): Rename stateRefresh to refreshStateForNextRewardCycle
Rename `stateRefresh` to `refreshStateForNextRewardCycle` to more
explicitly indicate its function of updating the model's state upon
transitioning to the next reward cycle.
2024-04-11 19:32:57 +02:00
BowTiedRadone
b75cb1e93b fix(pox-4-tests): Refresh the model's state if the network gets to the next reward cycle 2024-04-11 19:32:55 +02:00
BowTiedRadone
e0493305c4 test(pox-4-tests): Add DisallowContractCallerCommand 2024-04-11 19:32:54 +02:00
BowTiedRadone
fb48e073e3 test(pox-4-tests): Add StackAggregationIncreaseCommand
Adding the `StackAggregationIncreaseCommand` is currently causing the tests to fail.
To investigate:
- this may be a PoX-4 bug
- this may be a command implementation issue
2024-04-11 19:32:53 +02:00
BowTiedRadone
04be682c9b chore(pox-4-tests): Update stdout logging to console.log 2024-04-11 19:32:52 +02:00
BowTiedRadone
b726a24ff9 test(pox-4-tests): Add StackAggregationCommitIndexedCommand authorization-based 2024-04-11 19:32:51 +02:00
BowTiedRadone
79893f504d test(pox-4-tests): Add StackAggregationCommitIndexedCommand signature-based 2024-04-11 19:32:49 +02:00
BowTiedRadone
b23cd8d2d0 fix(pox-4-tests): Address same pool pox address comment
- removed check that verifies all the stackers have delegated to the same PoX address
- addressed comments:
  - https://github.com/stacks-network/stacks-core/pull/4628#discussion_r1549535566
  - https://github.com/stacks-network/stacks-core/pull/4628#discussion_r1549559748
  - https://github.com/stacks-network/stacks-core/pull/4628#discussion_r1549631930
2024-04-11 19:32:11 +02:00
BowTiedRadone
fe10e3d6b4 fix(pox-4-tests): Address committedAmount variable comment
https://github.com/stacks-network/stacks-core/pull/4628/files#r1549622406
2024-04-11 19:32:10 +02:00
BowTiedRadone
ba564dcba4 fix(pox-4-tests): Address not needed new line comment
https://github.com/stacks-network/stacks-core/pull/4628/files#r1549556367

Co-authored-by: Nikos Baxevanis <nikos.baxevanis@gmail.com>
2024-04-11 19:32:09 +02:00
BowTiedRadone
03e415826e fix(pox-4-tests): Addres not needed new line comment
https://github.com/stacks-network/stacks-core/pull/4628/files#r1549557014

Co-authored-by: Nikos Baxevanis <nikos.baxevanis@gmail.com>
2024-04-11 19:32:08 +02:00
BowTiedRadone
6646688114 fix(pox-4-tests): Address documentation comment
https://github.com/stacks-network/stacks-core/pull/4628/files#r1549546009

Co-authored-by: Nikos Baxevanis <nikos.baxevanis@gmail.com>
2024-04-11 19:32:07 +02:00
BowTiedRadone
ed6e4fd680 fix(pox-4-tests): Address format comment
https://github.com/stacks-network/stacks-core/pull/4628/files#r1549544650

Co-authored-by: Nikos Baxevanis <nikos.baxevanis@gmail.com>
2024-04-11 19:32:06 +02:00
BowTiedRadone
bb5bb99ddb fix(pox-4-tests): Address format comment
https://github.com/stacks-network/stacks-core/pull/4628/files#r1549544398

Co-authored-by: Nikos Baxevanis <nikos.baxevanis@gmail.com>
2024-04-11 19:32:05 +02:00
BowTiedRadone
fdf188077d fix(pox-4-tests): Address commands documentation comment
852b0c5ca8 (r1549587969)
2024-04-11 19:31:59 +02:00
BowTiedRadone
caf62d68c8 Add StackAggregationCommitCommand signature-based 2024-04-11 19:31:55 +02:00
BowTiedRadone
f12bcc062a test(pox-4-tests): Rename StackAggregationCommit to StackAggregationCommitAuth 2024-04-11 19:31:53 +02:00
BowTiedRadone
43c39605f5 test(pox-4-tests): Add StackAggregationCommitCommand authorization-based 2024-04-11 19:31:52 +02:00