Skip to content

feat(stellar-wallet-snap)!: remove assets handlers - #262

Open
ulissesferreira wants to merge 1 commit into
mainfrom
WPN-2014-remove-asset-handlers
Open

feat(stellar-wallet-snap)!: remove assets handlers#262
ulissesferreira wants to merge 1 commit into
mainfrom
WPN-2014-remove-asset-handlers

Conversation

@ulissesferreira

Copy link
Copy Markdown
Contributor

Closes WPN-2014

Summary

  • Removes the onAssetsLookup, onAssetsConversion, onAssetHistoricalPrice, and onAssetsMarketData entry points from stellar-wallet-snap
  • Removes the now-unused AssetsHandler module (src/handlers/asset/)
  • Removes the now-unused endowment:assets permission from the manifest

The AssetMetadataService, PriceService, and src/api/asset structs are kept since they are used by client request handlers, cronjobs, and sync services.

Breaking change

The asset handler entry points are no longer exported by the snap.

@ulissesferreira
ulissesferreira requested a review from a team as a code owner September 2, 2026 17:14
@ulissesferreira
ulissesferreira force-pushed the WPN-2014-remove-asset-handlers branch from 3ae3fd4 to 734f1ce Compare September 2, 2026 17:31

@stanleyyconsensys stanleyyconsensys left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can do more clean up, but it also work if we just remove the entry

Comment thread packages/stellar-wallet-snap/src/handlers/asset/assets.ts
@ulissesferreira
ulissesferreira force-pushed the WPN-2014-remove-asset-handlers branch from 734f1ce to 03a7326 Compare September 3, 2026 16:39
@ulissesferreira
ulissesferreira requested a review from a team as a code owner September 3, 2026 16:39
@ulissesferreira
ulissesferreira force-pushed the WPN-2014-remove-asset-handlers branch 2 times, most recently from 15459e9 to e7a796a Compare September 4, 2026 09:15
@sonarqubecloud

sonarqubecloud Bot commented Sep 4, 2026

Copy link
Copy Markdown

@ulissesferreira ulissesferreira changed the title feat(stellar-wallet-snap)!: remove asset handler entry points feat(stellar-wallet-snap)!: remove assets handlers Sep 4, 2026
@stanleyyconsensys

Copy link
Copy Markdown
Contributor

@metamaskbot publish-preview

@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Preview builds have been published. Learn how to use preview builds in other projects.

Expand for full list of packages and versions.
@metamask-previews/bitcoin-wallet-snap@2.0.1-preview-e7a796a2
@metamask-previews/snap-networks-utils@1.0.0-preview-e7a796a2
@metamask-previews/solana-wallet-snap@6.0.0-preview-e7a796a2
@metamask-previews/stellar-wallet-snap@0.1.0-preview-e7a796a2
@metamask-previews/tron-wallet-snap@3.2.0-preview-e7a796a2

@ulissesferreira
ulissesferreira force-pushed the WPN-2014-remove-asset-handlers branch 4 times, most recently from 987f43b to 1b40f82 Compare September 4, 2026 14:51
Remove the onAssetsLookup, onAssetsConversion, onAssetHistoricalPrice,
and onAssetsMarketData entry points, along with the now-unused
AssetsHandler module. Keep the endowment:assets permission and export
no-op asset handler entry points so the permission survives the
manifest validation.

Closes WPN-2014
@ulissesferreira
ulissesferreira force-pushed the WPN-2014-remove-asset-handlers branch from 1b40f82 to 07fa2d1 Compare September 4, 2026 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants