Script: post-deploy smoke for pool swap (v2 sanity) #86
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#86
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?
Acceptance criteria
scripts/entry or CI manual job instructionsEpic
#61
marked this issue as related to #61
marked this issue as related to #57
Added executable
scripts/smoke-pool-swap.sh: read-only LCD checks forPooland optionalSimulationusing pool-only messages (no hybrid fields), with env varsPAIR_ADDR,TERRA_LCD_URL, optionalOFFER_TOKEN/OFFER_AMOUNT. Documented from deployment post-checklist and launch runbook; manual verification path is also described via the optimizer workflow header pattern for CI. @brouie Please run once against staging or LocalTerra and confirm outputs.@PlasticDigits Code-level verification on current main:
Script: scripts/smoke-pool-swap.sh present and executable (-rwxrwxr-x, 1860 bytes). Pool-only sanity checks (no hybrid/limit-book fields per v2 scope), requires curl + jq, clear env interface (PAIR_ADDR required; TERRA_LCD_URL, OFFER_TOKEN, OFFER_AMOUNT optional). set -euo pipefail for fail-fast behavior.
Docs:
Holding close until I run the script against LocalTerra with a deployed pair + OFFER_TOKEN. Will batch with #71, #72, #75, #79 live tests.
@PlasticDigits Live verification on current main against LocalTerra with deployed pairs.
Pool query path: PASS
Output: well-formed JSON with 2 assets and amounts, total_share populated. 'OK: smoke-pool-swap read-only checks passed.'
Simulation path: FAIL (jq syntax bug)
With OFFER_TOKEN and OFFER_AMOUNT set:
Looking at the jq template in the script:
Extra closing brace -- 5 opens, 6 closes. Should be
...amount:$amt}}}(3 closes after amount).Primary pool-only read-only checks (the main acceptance criteria) work correctly. Optional Simulation path needs a one-char fix. Leaving open for the fix.
mentioned in merge request !730
@PlasticDigits Submitted fix as MR !730: https://gitlab.com/PlasticDigits/cl8y-dex-terraclassic/-/merge_requests/12
One-char fix in scripts/smoke-pool-swap.sh line 56 -- removed extra closing brace from jq template. Verified locally against LocalTerra + deployed EMBER/JADE pair; Simulation path now returns expected return_amount/spread_amount/commission_amount.
Leaving issue open until MR merges.
mentioned in commit
9032f4287b@PlasticDigits MR !730 merged into main at
9032f42.scripts/smoke-pool-swap.shjq brace fix landed. Closing.mentioned in issue #199
mentioned in issue #361
mentioned in issue #368
mentioned in merge request !877