Skip to content

Conversation

@pedroferreira1
Copy link
Member

@pedroferreira1 pedroferreira1 commented Dec 27, 2024

Acceptance Criteria

  • Add guide/reference level for the MetaMask snaps integration with all supported methods.
  • Add guide level and list of features for the Web Wallet v1.

Rendered

@pedroferreira1 pedroferreira1 self-assigned this Dec 27, 2024
@pedroferreira1 pedroferreira1 moved this from Todo to In Progress (WIP) in Hathor Network Mar 7, 2025
@pedroferreira1 pedroferreira1 changed the title docs: add metamask snaps high level design docs: metamask snaps high level design Mar 7, 2025
@pedroferreira1 pedroferreira1 moved this from In Progress (WIP) to Todo in Hathor Network Mar 13, 2025
@pedroferreira1 pedroferreira1 moved this from Todo to In Progress (WIP) in Hathor Network Mar 19, 2025
@pedroferreira1 pedroferreira1 changed the title docs: metamask snaps high level design docs: MetaMask snaps design Mar 31, 2025
@pedroferreira1 pedroferreira1 moved this from In Progress (WIP) to In Progress (Done) in Hathor Network Mar 31, 2025
@pedroferreira1 pedroferreira1 marked this pull request as ready for review March 31, 2025 18:36
@pedroferreira1 pedroferreira1 moved this from In Progress (Done) to In Progress (WIP) in Hathor Network Jun 27, 2025
@pedroferreira1 pedroferreira1 moved this from In Progress (WIP) to In Progress (Done) in Hathor Network Jul 10, 2025

#### Using wallet service

The wallet service is still not ready to be used by the MetaMask snaps, especially because it currently still doesn't support nano contracts and its wallet lib in use is old.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is about to change though

After the dApp call above, the MetaMask snaps code will receive and identify each request with a code similar to the one below:

```
export const onRpcRequest: OnRpcRequestHandler = async ({
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should normalize the request methods so we can use the handleRpcRequest method of the rpc-lib.

The handler method will be implemented using the RPC lib already developed for the Reown integration.

```
// This is a prompt handler expected by the RPC lib when the method requires user confirmation
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we going to be able to use the rpc-lib existing Triggers? e.g. CreateNanoContractCreateTokenTxLoadingFinishedTrigger

...
```

The handler method will be implemented using the RPC lib already developed for the Reown integration.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be great to better describe how the rpc-lib integration will be done, are we going to use the existing rpcMethods and just listen for triggers in the snap code?

@andreabadesso andreabadesso moved this from In Progress (Done) to In Review (Done) in Hathor Network Jul 14, 2025
@andreabadesso andreabadesso moved this from In Review (Done) to In Review (WIP) in Hathor Network Jul 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Review (WIP)

Development

Successfully merging this pull request may close these issues.

3 participants