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

const { conversions } = params;

const conversionRates =
await this.#priceService.getMultipleTokenConversions(conversions);

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.

getMultipleTokenConversions
getMultipleTokensMarketData
getHistoricalPriceWithAllTimePeriods

can be remove from

  • PriceService
  • price.fixtures

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Should be included now ✅

@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 from 03a7326 to 15459e9 Compare September 4, 2026 08:59
Remove the onAssetsLookup, onAssetsConversion, onAssetHistoricalPrice,
and onAssetsMarketData entry points, along with the now-unused
AssetsHandler module and the endowment:assets permission.

Closes WPN-2014
@ulissesferreira
ulissesferreira force-pushed the WPN-2014-remove-asset-handlers branch 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

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