Deploy: Router contract rejects set_wrap_mapper — variant not implemented #28
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#28
Loading…
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?
Environment: LocalTerra, fresh deploy via deploy-dex-local.sh\n\nSteps to Reproduce:\n1. Run bash scripts/deploy-dex-local.sh\n2. Observe Phase 1b step [9b.9]\n\nExpected: Router accepts set_wrap_mapper and registers the wrap-mapper address.\n\nGot:\n
\nError parsing into type cl8y_dex_router::msg::ExecuteMsg: unknown variant `set_wrap_mapper`, expected `receive` or `execute_swap_operations`\n\n\nImpact: Router cannot perform native denom swaps (uluna/uusd) via wrap→swap→unwrap path. Wrap/unwrap works standalone via Treasury + Wrap-Mapper, but router integration is blocked.\n\nDeploy script reference: scripts/deploy-dex-local.sh step [9b.9]mentioned in issue #35
mentioned in commit
e7283280b7Fixed in
e728328— three changes:Deploy script staleness guard —
deploy-dex-local.shnow checks everycl8y_dex_*.wasmartifact against its source.rsfiles at startup. If any artifact is older than its source, the script exits immediately with a clear error listing the stale contracts and telling you to runmake build-optimized.Makefile dependency —
deploy-localnow depends onbuild-optimized, somake deploy-localalways rebuilds contracts first. This was the actual root cause: the WASM artifacts were built on Mar 11 but theSetWrapMappervariant was added on Mar 17. All 4 deployed contracts (factory, pair, router, fee-discount) were stale — not just the router.QA onboarding doc updated — the "What the deploy script does" section now reflects the current 16-step flow including treasury, wrap-mapper, native token wrapping, non-whitelisted tokens, and unpaired tokens.
@Brouie — please pull latest
main, runmake reset && make dev-full(ormake start && make deploy-local), and verify step [9b.9] passes without theunknown varianterror. The build-optimized step will now run automatically before deploy.Verified on fresh deploy (
86f148d). Router config now shows wrap_mapper registered. set_wrap_mapper tx succeeded. Native swap via router still needs LUNC-C/USTC-C pairs created — tracked in #35.mentioned in issue #26