ops: P0 upgrade-582 script, ContractInfo probe, freeze/unfreeze runbook #1108
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!1108
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "584-ops-p0-order-enforcing-upgrade-582-script-columbus-5-contractinfo-probe-freeze-unfreeze-runbook"
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?
Implements the #584 ops rollout for invariant F6 (depends on !1107 / #582). Does not change fund-moving contract logic. Launch-checklist BLOCK remains until this script has run on columbus-5.
Related to #584 (do not auto-close: live columbus-5 migrate + LocalTerra rehearsal still open).
Summary
scripts/upgrade-582-code-id-pin.sh: factory 1.9.0 before any pair 1.15.0 migrate; abort if factory cw2< 1.9.0orIsCodeIdWhitelistedfails (UPGRADE582_FORCE_FACTORY_VERSIONcovers DRY_RUN).pairsatlimit: 30withstart_after= lastasset_infos; reconcile toGetPairCount(fail closed on mismatch / mid-loop create).GET /cosmwasm/wasm/v1/contract/{addr}for factory + every listed asset; fail closed ifcode_idis missing.GetAssetCodeIds(hard-error on unmigrated) + whitelist check +HybridSimulation(queries are ungated — quote ≠ tradable).SetPairPausedthrough refresh + private rebalance; batch refresh skip viastart_after; never de-whitelist 10184.make verify-issue-584+make verify-issue-582greps the script (cannot pass if it is deleted).Test plan
bash -n scripts/upgrade-582-code-id-pin.shDRY_RUN=1factory 1.9.0 → prints factory-then-pairs /PAIR_MIGRATE_BEGINDRY_RUN=1UPGRADE582_FORCE_FACTORY_VERSION=1.8.0exits beforePAIR_MIGRATE_BEGINmake verify-issue-584first pass + retestmake verify-issue-582first pass + retest (pin tests still pass)make deploy-local(UPGRADE582_LOCAL=1)Columbus-5 read-only probe (2026-08-20)
LCD
https://terra-classic-lcd.publicnode.com. Factoryterra1ejpgvv7g3hj0u6fpcnxhflqp84g0w3cnaskqkg5733ygwlmf963sfchseacode_id 11585. Enumerated 14 pairs =GetPairCount. Listed assets: 10184 (mintable) and 6036 (PEARL/QUARTZ).marked this merge request as ready
changed the description
mentioned in issue #584
added 3 commits
5402859e- docs(audit): add MR 389 code-id pin security audit reportb2b8b52a- Merge origin/main into fix/584-upgrade-582-ops.363b17f9- ops: enforce factory-first F6 migrate and freeze runbookCompare with previous version
mentioned in commit
70e7950873mentioned in issue #585