Brice Dobry
a9c14f9b01
Merge pull request #4698 from stacks-network/test/pox-4-unit
...
PoX-4 unit testing
2024-05-03 15:58:17 +00:00
Brice Dobry
9bce63865b
fix: revert changes in contrib/core-contract-tests/
...
The removal of package-lock.json causes `npm ci` to fail and it should
not be removed by this PR any way.
2024-05-03 11:21:39 -04:00
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
Hugo Caillard
be1afc8c0a
refactor: remove changes from core-contract-test package.json
2024-04-29 15:39:47 +02:00
Hugo Caillard
0067106ff1
chore ugprade clarinet-sdk to v2.6.0
2024-04-29 15:38:09 +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
Brice Dobry
878e17d3de
Merge branch 'develop' into test/pox-4-unit
2024-04-25 17:07:53 -04:00
Brice Dobry
90a6e74fa0
test: add unit tests for get-partial-stacked-by-cycle
2024-04-25 16:58:38 -04:00
Brice Dobry
ff2b49ee42
test: add unit tests for get-num-reward-set-pox-addresses
2024-04-25 16:44:33 -04:00
BowTiedRadone
43a801dac8
Add StackIncreaseAuthCommand
2024-04-25 23:41:44 +03:00
Brice Dobry
d29f7dfca1
test: add unit tests for get-allowance-contract-callers
...
Opened https://github.com/stacks-network/stacks-core/issues/4718 to
update the comment on this function in the next iteration of PoX.
2024-04-25 16:14:14 -04:00
Brice Dobry
5875554ab6
test: add unit tests for get-delegation-info
2024-04-25 15:45:07 -04:00
Brice Dobry
c9cec42bc8
chore: cleanup
2024-04-25 14:16:14 -04:00
Brice Dobry
096444b11a
test: add unit tests for delegate-stack-increase
2024-04-25 14:12:53 -04:00
Brice Dobry
95b6908093
test: add unit tests for stack-extend
2024-04-25 08:27:48 -04:00
Brice Dobry
ae191625d2
test: add unit tests for stack-increase
2024-04-24 22:57:46 -04:00
Brice Dobry
598c033870
test: add unit tests for set-signer-key-authorization
2024-04-24 17:16:32 -04:00
Brice Dobry
6b35576350
test: add unit tests for delegate-stack-extend
...
I believe the remaining uncovered lines are not reachable.
2024-04-24 16:40:46 -04:00
Brice Dobry
74697949fd
test: increase coverage on stack-aggregation-increase
...
I think the remaining uncovered errors may be unreachable, but could use
some further study.
2024-04-24 11:27:18 -04: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
Hugo Caillard
c2530a8ef5
test: fix simnet deployment plan
2024-04-23 11:04:35 +02:00
Hugo Caillard
85d11cc928
test: add stack-extend case
2024-04-22 23:40:49 +02:00
Brice Dobry
2fcf440469
test: add basic test for stack-aggregation-increase
2024-04-22 16:36:29 -04:00
Hugo Caillard
a8d5808583
chore: misc update of moving boot contract tests
2024-04-22 20:56:37 +02: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
Hugo Caillard
29aee854ec
chore: move boot contracts unit tests in their own directory
2024-04-22 14:18:27 +02:00
Brice Dobry
389ae6fa17
test: use a bigint for stacking minimum
2024-04-19 10:55:08 -04:00
Brice Dobry
9d5718ad0f
test: add unit tests for stack-stx
2024-04-19 08:25:39 -04:00
Brice Dobry
4b73f36477
test: add unit tests for delegate=stack-stx
2024-04-19 08:25:39 -04:00
Brice Dobry
261e70b1dc
test: add unit tests for stack-aggregation-commit
2024-04-19 08:25:39 -04:00
Brice Dobry
38f4cc2d1e
test: add unit tests for consume-signer-key-authorization
2024-04-19 08:25:39 -04:00
Brice Dobry
54cf0793da
test: add unit tests for stack-aggregation-commit-indexed
2024-04-19 08:25:39 -04:00
Brice Dobry
ec142f9234
test: add tests for verify-signer-key-sig
2024-04-19 08:25:39 -04:00
Brice Dobry
383837704f
test: add more pox-4 unit tests
2024-04-19 08:25:39 -04:00
Hugo Caillard
3ad0a9c958
feat: code coverage for pox-4 unit tests
2024-04-19 08:25:39 -04:00
Brice Dobry
cce3995f07
test: add pox scenarios test
...
Initial test is validating the situation where a user switching pools
requires one cycle of down time.
2024-04-19 08:25:39 -04:00
Hugo Caillard
47e22f662c
tests: add solo-stacker unlocked check
2024-04-19 08:25:39 -04:00
Brice Dobry
2ce93bc282
test: add helpers for delegate-stack-extend and
...
`delegate-stack-increase`
2024-04-19 08:25:39 -04:00
Hugo Caillard
3a0c79c0dc
feat: solo-stacker tests
2024-04-19 08:25:39 -04:00