Pre-launch: no LocalTerra smoke test for wrap-mapper pause and unpause cycle [SEC-B06] #396
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#396
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Checklist Item
SEC-B06: Verify wrap mapper pause blocks wrapping/unwrapping and produces clear UI copy. Verify: frontend unit test plus LocalTerra smoke test.
Summary
The e2e test in
wrap-swap.spec.tsconfirms the wrap-mapper pause disables the UI button with correct copy. However, no LocalTerra smoke test exists to demonstrate that the wrap-mapper contract itself rejects wrap and unwrap transactions when paused, or that unpausing restores execution. The checklist requires both a frontend test and a LocalTerra smoke test.What Was Checked
frontend-dapp/e2e/wrap-swap.spec.tslines 243-255 -- e2e test confirms "Wrapping is Temporarily Paused" button is visible and disabled in UIfrontend-dapp/src/pages/SwapPage.tsxlines 893-895 -- UI copy exists for wrap pause statedocs/runbooks/-- no wrap-mapper pause runbook or LocalTerra transcript foundscripts/-- no script for wrap-mapper pause/unpause testingdocs/security-model.md-- wrap-mapper listed as external dependency, no associated smoke test evidenceExpected (per checklist)
A LocalTerra smoke test or equivalent transcript attached to an issue or MR must demonstrate that the wrap-mapper contract rejects wrap and unwrap transactions when paused and that unpausing restores normal execution.
Actual
The only test coverage is the e2e UI test in
wrap-swap.spec.ts, which mocks the pause state at the frontend layer viarouteWrapMapperPaused. There is no evidence of contract-level rejection being exercised on LocalTerra or any network. No smoke test transcript or runbook step exists for this.Evidence
frontend-dapp/e2e/wrap-swap.spec.tslines 243-255: UI disabled state test exists using LCD mockdocs/runbooks/: no wrap-mapper pause runbook or smoke test logscripts/: no wrap-mapper pause/unpause test scriptSuggested Fix
Add a LocalTerra smoke test or attach a transcript to this issue demonstrating:
If the wrap-mapper contract is external and cannot be paused on LocalTerra, document this explicitly with a risk acceptance note referencing the external dependency.
Verification Checklist
Labels
security,pre-launchCc: @PlasticDigits
Pause state should be tracked by indexer then consumed by frontend
mentioned in issue #381
mentioned in commit
294de27a82mentioned in merge request !926
mentioned in commit
96e814ab22Verification complete — GitLab #396 / SEC-B06
All acceptance criteria PASS on
main(no repo changes required).Checklist
make verify-issue-396→scripts/smoke-wrap-mapper-pause.sh:wrap_deposit while paused — rejected at broadcast with paused errorunwrap send while paused — rejected at broadcast with paused errorwrap_deposit after unpauseandunwrap send after unpausetxsustr-cmmon LocalTerra duringmake deploy-local(docs/testing.md§ Wrap-mapper pause smoke)Additional coverage (issue context)
SwapPage.test.tsx -t SEC-A02(5 tests) viamake verify-issue-396frontend-dapp/e2e/wrap-swap.spec.ts— disabled Wrapping is Temporarily Paused buttondocs/runbooks/launch-checklist.mdSEC-B06 →make smoke-wrap-mapper-pauseEnvironment
make setup-cloud-localterra --fresh --skip-build --no-indexer(first attempt on stale volumes hit treasury fund insufficient-funds; fresh reset succeeded).terra124tapgv8wsn5t3rv2cvywh4ckkmj6mc6fkya005qjmshnzewwm9qe9llrj; pause tx2A25B2FE…, unpause tx552E45AA…, restored wrap21DC06EE…, restored unwrapEEB23204….Follow-ups
config.pausedin the indexer and serving it to the frontend instead of per-client LCD queries — separate from SEC-B06 on-chain smoke, which is satisfied.Closing as verified.
mentioned in issue #337