test(pair): claim/clean owner + no-transfer coverage (#271) #734
No reviewers
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-dex-terraclassic!734
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "qa/271-claim-clean-test-coverage"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Tests-only follow-ups for #271 (closes the #263 / #264 coverage gaps). No wasm behavior change — only
limit_order_tests.rs+contracts-security-audit.md.Adds three integration tests:
clean_limit_book_emits_no_cw20_transfers(#263 / audit L15) — force-dustCleanLimitBookparks a sub-threshold bid with zero CW20 transfer to the maker in the clean tx, checked by both event scan and maker balance-delta. The scanner is self-checked against the real transfer in the claim tx so the clean-tx assertion can't pass vacuously. The owner claim then pays the full remaining, which also provesPENDING_ESCROWwas untouched by the clean.claim_expired_limit_order_non_owner_rejected(#264 / audit L1) — non-ownerClaimExpiredLimitOrder->Unauthorized; parked row + maker/attacker balances unchanged; owner can still claim afterward. Mirror ofcancel_limit_order_non_owner_rejected.batch_claim_expired_foreign_owner_reverts_whole_tx(audit L11, the optional stretch) — foreign-owner batch claim reverts the whole tx, both rows persist. Twin ofbatch_cancel_foreign_owner_reverts_whole_tx.Covered the force-dust clean path only — both force and time-expiry park through the same
park_limit_order_for_cleanpath (L15/L16), so per the issue one test suffices.contracts-security-audit.mdL1/L11/L15 cite the new test names.Verification:
make test-contracts: 405 passed, 0 failed (was 402).cargo test -p cl8y-dex-tests limit_order: 71 passed, 0 failed.cargo clippy -p cl8y-dex-tests --tests: clean.Closes #271 once merged.
mentioned in issue #271
mentioned in commit
12308a3803