Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MIPX v1 - New json rpc method for swaps #25
MIPX v1 - New json rpc method for swaps #25
Changes from 18 commits
1447a80
c937f19
4d007d1
2487b5c
bf9e4d2
c8ec086
7b65338
cb3717d
59b0df9
a0ba3ae
89c269a
ed3b859
fcb37f7
5b7282e
61bee6d
210d269
f1490e1
21ed5a6
b200f89
3d2bc1c
5cd62ad
54bedb4
7ee3634
d87d5bf
aae1e4e
23bf4eb
f6269fe
6eb6317
091e2ac
63762e5
69b7f5b
55c71d3
d64432f
e3f7244
2b1211a
3fe0f34
c119eeb
f78e3ad
09fd777
326c0a4
61f515e
5892b6b
cae24e9
a4c38d4
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we specify format here? For example, checksummed address?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the json rpc api documentation, we do not specify the checksummed format for the developers: https://docs.metamask.io/wallet/reference/eth_signtypeddata_v4/
In my opinion, the wallet should handle that validation and checksum the address if needed, wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The openRPC spec may be the best place to specify formats.
Here's doc example with some formatting guidelines included for some params: https://docs.metamask.io/wallet/reference/personal_sign/
And in the api-spec: https://github.com/MetaMask/api-specs/blob/6d55565c9312923b533e580efca88f98364c4da4/openrpc.yaml#L1074
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this section could probably use a bit more explanation of what specific work will be required to enable this feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not blocking for draft status, but perhaps we could just say here that the initial plan is simply to hook into the existing swaps architecture, essentially the API proposes inputs and kicks off a swap
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.