Skip to content

Added new storage key that allows looking up a wasm name from a hash - #4690

Open
batconjurer wants to merge 3 commits into
mainfrom
bat/wasm-name-lookups
Open

Added new storage key that allows looking up a wasm name from a hash#4690
batconjurer wants to merge 3 commits into
mainfrom
bat/wasm-name-lookups

Conversation

@batconjurer

Copy link
Copy Markdown
Contributor

Describe your changes

Indexers fail to identify the types of older txs since these types use wasm hasheh. If those hashes were overwritten by governance proposals, the indexer is unable to determine how to deserialize these txs. This PR adds a new key to storage which allows looking up a tx type from a wasm hash, even if that hash is of code no longer in use.

Checklist before merging

  • If this PR has some consensus breaking changes, I added the corresponding breaking:: labels
    • This will require 2 reviewers to approve the changes
  • If this PR requires changes to the docs or specs, a corresponding PR is opened in the namada-docs repo
    • Relevant PR if applies:
  • If this PR affects services such as namada-indexer or namada-masp-indexer, a corresponding PR is opened in that repo
    • Relevant PR if applies:

@github-actions github-actions Bot added the breaking:api public API breaking change label Jun 8, 2025
@batconjurer
batconjurer requested a review from sug0 June 9, 2025 06:40
@batconjurer batconjurer closed this Jun 9, 2025
@codecov

codecov Bot commented Jun 9, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (a2856a4) to head (80eb56e).
Report is 1 commits behind head on main.

Additional details and impacted files
@@     Coverage Diff      @@
##   main   #4690   +/-   ##
============================
============================

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@batconjurer batconjurer reopened this Jun 9, 2025
Comment thread .changelog/unreleased/improvements/4690-wasm-name-lookups.md Outdated
@brentstone

Copy link
Copy Markdown
Contributor

We should close and abandon this now though, right? @batconjurer

@sug0

sug0 commented Jun 9, 2025

Copy link
Copy Markdown
Collaborator

no, we still need this pr, to look-up the tx code aliases

@batconjurer
batconjurer requested a review from sug0 June 9, 2025 14:06
@batconjurer batconjurer mentioned this pull request Jun 9, 2025
3 tasks
@tzemanovic tzemanovic added the requires-migration Requires DB migration to update some state label Jul 16, 2025
tzemanovic added a commit that referenced this pull request Jul 16, 2025
* origin/bat/wasm-name-lookups:
  Fix changelog
  Added changelog
  Added new storage key that allows looking up a wasm name from a hash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking:api public API breaking change requires-migration Requires DB migration to update some state

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants