-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Use approval controller for permissions requests #9401
Conversation
65605ce
to
08aa491
Compare
Builds ready [08aa491]
Page Load Metrics (578 ± 94 ms)
|
44a9977
to
d4557da
Compare
Builds ready [648c7c2]
Page Load Metrics (426 ± 49 ms)
|
648c7c2
to
b01bb6c
Compare
Builds ready [b01bb6c]
Page Load Metrics (445 ± 61 ms)
|
b01bb6c
to
274765e
Compare
Builds ready [274765e]
Page Load Metrics (468 ± 61 ms)
|
I'm gonna do this on in TypeScript, so reverting to draft until MetaMask/core#289 is merged and we can update Edit: This was done. |
274765e
to
efb8c2e
Compare
1b6d7b3
to
59ef71b
Compare
5ab5ed7
to
c50ff31
Compare
Builds ready [c50ff31]
Page Load Metrics (358 ± 46 ms)
|
c50ff31
to
19d492b
Compare
Builds ready [19d492b]
Page Load Metrics (443 ± 77 ms)
|
Builds ready [35007dc]
Page Load Metrics (386 ± 48 ms)
|
ApprovalController major version bump MetaMask/core#313 |
35007dc
to
e78cefd
Compare
Builds ready [e78cefd]
Page Load Metrics (520 ± 47 ms)
|
Builds ready [b176c8b]
Page Load Metrics (493 ± 32 ms)
|
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.
awesome work, @rekmarks -- the separation of concerns in the permissions controller is super clean.
* Use approval controller for badge updates
b176c8b
to
b5b5282
Compare
Builds ready [b5b5282]
Page Load Metrics (529 ± 14 ms)
|
This PR introduces the new approval controller to the extension codebase. We use it for the permissions controller's pending approval functionality.
The approval controller sets us up for a new pattern of requesting and managing user confirmations in RPC methods. Along with the generic RPC method middleware, the approval controller will allow us to eliminate our message managers, and decouple these method handlers from our provider stack, making the implementations more portable between the extension and mobile.