-
Notifications
You must be signed in to change notification settings - Fork 7
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
[Integrity Migration] Allow users to buy NUM in Capture App #2729
Comments
➤ Ethan Wu commented: Tammy Yang can i get some clarification on this one? |
➤ Ethan Wu commented: Tammy Yang with the wallet page release we should be able to buy credits |
➤ Tammy Yang commented: Ethan Wu this is for allowing users buy NUM in the App. We want to have a workflow that
Maybe we can aim to determine the user flow and draw some mockup on miro in this sprint and implement it in the next sprint. How do you think? |
➤ Ethan Wu commented: Tammy Yang ok i understand generally. so one question, we need to support MetaMask Wallet Connection? and yes i think it would be best to draw the flow first. does this mean we are going to phase out NUM credits? —- just some general information: most browsers to my knowledge do not support metamask connection on mobile. typically the wallet itself (MetaMask) has a in-wallet browser that supports this behavior. I can see if there is a plugin available. Will need to see. |
➤ Tammy Yang commented:
No, we will still keep it.
As far as I understand, many dApp (web-based) support connecting to Metamask and TrustWallet. I didn't try it myself yet, but I knew Bofu Chen had experiences. |
➤ Ethan Wu commented: Tammy Yang I found a bubble plugin that might be able to connect to wallet via mobile |
➤ Bofu Chen commented: It should be achievable by using MetaMask deeplinking ( https://docs.metamask.io/guide/mobile-best-practices.html#deeplinking ). The user journey will be like
|
➤ Bofu Chen commented: After installing the MetaMask mobile app, you can try to click the link on your mobile browser. Your MetaMask should be launched and show the payment page with the specified payment info. https://metamask.app.link/send/pay-0x64f7f6b122daaD47Fc427B2B8b620D6130BCb4cE@1?value=1e17 ( https://metamask.app.link/send/pay-0x64f7f6b122daaD47Fc427B2B8b620D6130BCb4cE@1?value=1e17 ) |
➤ Ethan Wu commented: Bofu Chen thanks for the share. will look into it. |
➤ Bofu Chen commented: Ethan Wu Could you remind me what's the current status of this task? |
➤ Ethan Wu commented: There is currently no progress on this one. Was never organized into sprint task |
➤ Ethan Wu commented: I think the stage it is at is research phase |
➤ Ethan Wu commented: Bofu Chen how do we check that payment has been received? |
➤ Tammy Yang commented: Ethan Wu maybe we start from ETH, AVAX <> NUM swap? In that case, we can leverage plugins to call the Metamask or Trust wallet App installed on user's mobile |
➤ Ethan Wu commented: Tammy Yang so you mean implement a sort of swap similar to what we did in cc checkout page previously? |
➤ Ethan Wu commented: oh wait i think its possible to generate a deeplink for token swap via metamask. |
➤ Ethan Wu commented: Tammy YangBofu Chen for the buy NUM in Capture APP feature, we want to support mainnet NUM right? if that's the case maybe it might not be a good idea to go with the ETH swap route? also from my research i don't think metamask supports non ethereum based swap via deeplinking though i may be wrong about this. |
➤ Tammy Yang commented: Ethan Wu we can do it in a smart way. We just receive ETH and send out Mainnet to asset wallet, I think it can be very simple without depending on any other external swap service (yes, similar to what we did in cc checkout). |
➤ Ethan Wu commented: Tammy YangBofu Chen i need the metamask plugin to be added to capture iframe project. project name: capture-app-iframe |
➤ Ethan Wu commented: the metamask bubble plugin doesn't work. the request accountdoesn't work. i can use deeplinks as previously suggested however i need a way to inform iframe that the transaction has been sent. |
➤ Tammy Yang commented: Ethan Wu metamask plugin works in the staking site and also work previously in CC. If it doesn't work in iframe, I believe we need to figure out the reason why before applying other workaround. |
➤ Ethan Wu commented: Tammy Yang i am investigating now |
➤ Ethan Wu commented: Tammy Yang ok i figured it out. i accidentally had the metamask hidden. everything should be fine now |
➤ Kenny Hung commented: Ethan Wu Could you provide the flow? QA test current flow is
There are some questions
|
➤ Ethan Wu commented: Kenny Hung yes one sec. |
➤ Ethan Wu commented: Kenny Hunghttps://miro.com/app/board/o9J_knEiIYo=/?moveToWidget=3458764556100597994&cot=14 ( https://miro.com/app/board/o9J_knEiIYo=/?moveToWidget=3458764556100597994&cot=14 ) in summary:
https://miro.com/app/board/o9J_knEiIYo=/?moveToWidget=3458764556100597994&cot=14 ( https://miro.com/app/board/o9J_knEiIYo=/?moveToWidget=3458764556100597994&cot=14 ) |
➤ Ethan Wu commented: Kenny Hung i can adjust the number of decimal places. what is your suggestion. the num purchased show be mainnet num since we use the network action transfer action. |
➤ Kenny Hung commented: I suggest four decimal places. |
➤ Ethan Wu commented: done |
➤ Kenny Hung commented: Ethan WuTammy Yang (cc Scott Yan) There are some questions.
|
➤ Ethan Wu commented: Kenny Hung
|
➤ Kenny Hung commented: Ethan Wu A little question for #1, if you remove the URL parameter, how the iframe know who buys these NUM? |
➤ Ethan Wu commented: Kenny Hung so for NUM purchase all we need is the asset wallet. so instead of passing in the full token parameters in the url i can potentially just pass in the asset wallet and it should work. |
➤ Ethan Wu commented: Kenny Hung It will be ready tomorrow morning. I made the changes already but need to test |
➤ Kenny Hung commented: Ethan Wu I summarize the detail of testing process. https://app.claap.io/numbers-protocol/iframe-v230601-in-app-num-purchase-test-2-c-O35CsUM4Uy-mbiLJqfTEZDy ( https://app.claap.io/numbers-protocol/iframe-v230601-in-app-num-purchase-test-2-c-O35CsUM4Uy-mbiLJqfTEZDy ) #2, there is limitation because metamask seems not to support webhooks. |
➤ Kenny Hung commented: Ethan Wu (cc Tammy YangScott Yan) Buy NUM can’t work on pixel6 / iphone 8. Reproduce steps
https://app.claap.io/numbers-protocol/can-t-buy-num-on-pixel-6-c-O35CsUM4Uy-ikrcKIlRMeXX ( https://app.claap.io/numbers-protocol/can-t-buy-num-on-pixel-6-c-O35CsUM4Uy-ikrcKIlRMeXX ) Current only iPhone 12 pro could work. Ethan Wu said This might be a metamask issue. I can implement a workaround potentially where I have users I put the amount in iframe and than we generate a link with the eth amount as url parameter and see if it works. Ethan will finish workaround implementation tomorrow morning. |
➤ Ethan Wu commented: Kenny HungBofu Chen so it seems like this issue also happens on my desktop browser as well. this didn't happen before. my guess is when we sendTransaction to metamask the value field isn't converting to the right wei-hex value. |
➤ Ethan Wu commented: re-release to qa. confirmed that metamask plugin is working as expected again |
➤ Kenny Hung commented: qa pass |
➤ Kenny Hung commented: Ethan WuTammy Yang I found an issue on iframe live version about “SWAP NUM”. When user copy the link, but the link is “version-test” branch instead of “live” branch. |
➤ Tammy Yang commented: Already fixed and feedback on Slack. |
Current flow:
┆Issue is synchronized with this Asana task by Unito
┆Created By: Tammy Yang
The text was updated successfully, but these errors were encountered: