-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: auto-add key to wallet, support for test wallet #630
Conversation
Extension builds preview
|
c96c81f
to
b5af5d5
Compare
instead of flaky UI with difficult to understand DOM
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.
test-e2e
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.
test-e2e
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.
test-e2e
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.
If only we had an "auto-add" API route in rafiki.money :)
This makes sense, worked for me when logged in already and not logged in. Just some minor comments
Context
Changes proposed in this pull request
content/keyAutoAdd/*
content/keyAutoAdd/lib/*
contains script integration with background, along with some helper utils.content/keyAutoAdd/testWallet.ts
contains a sample automation for the test wallet, via API reverse engineering.background/keyAutoAdd.ts
contains background service to orchestrate key-addition. It sends theBEGIN
message to content script and monitors progress viaRuntime.Port
based messaging.connectWallet
inbackground/openPayments.ts
handles key-addition, if needed.background/openPayments.ts
are to handle rejections, tab closes, and reusing tabs for further process.transientPopupState
to give user more info if they re-open popup during connect process.Follow-up: