Requests for Insights Integrations #338
hugomrdias
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Metamask Snaps supports Transaction and Signature Insights.
Filsnap has support for multiple insights both for transactions and signatures and we would like to integrate with other projects to provide extra Filecoin specific information to users.
Important
We are asking anyone using smart contracts, custom signatures or any custom transactions to suggest an integration in this discussion.
We can build new insights and provide extra information inside the Metamask UI like in the examples below.
At this point we are looking to gather interest in this feature, we will try to implement a couple more insights from this discussion and in the future open for direct PRs from the community.
Post your use case we will keep an eye out and pick some to be included in the next snap version.
Check out this wagmi example using filsnap-adapter to enable insights.
Handler Examples
Transaction Insights for FilForwarder calls. source
Signatures Insights showing the Filecoin addresses for the 0x address requesting a signature. source
Interfaces
Insight handlers have the following interface:
New Transaction handlers should be added here
filsnap/packages/snap/src/index.tsx
Line 309 in 5e2c58c
and Signature handlers here
filsnap/packages/snap/src/index.tsx
Line 342 in 5e2c58c
each handler can return a JSX
Component
ornull
if the transaction or signature is not supported.Warning
Keep in mind first handler to return a
Component
wins no other handlers in the list will run.Beta Was this translation helpful? Give feedback.
All reactions