fix(indexer): scope lifecycle events by reserved _contract_address only (#285) #744
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!744
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "qa/285-forged-contract-address-parser"
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?
The forgeable no-underscore
contract_addressattribute was trusted as the event emitter alongside the runtime-reserved_contract_address. A malicious contract emittingcontract_address=<victim_pair>before itsactionhad the forged fill/cancel/placement attributed to the victim pair. Fix: only the wasmd-stamped_contract_addressscopes an event.Demonstrated + non-vacuous: forged-fill / forged-cancel tests assert the row scopes to the real emitter not the victim; they FAIL on the pre-fix predicate (verified by reverting + re-running). No regression — confirmed against a live v4
limit_order_filltx (real events carry_contract_address). Pre-existing fixtures that used the no-underscore key as the sole scope were corrected. Parser suite 29/29.Follow-up (flagged on #285, not here): factory provenance in
discover_new_pair— clusters with #279/#286/#287.GitLab #285
mentioned in commit
31d090c12a