-
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
Create wallet page with iframe #2430
Comments
➤ Ethan Wu commented: Current functions in wallet page include: Buy Credits => NUM Credits (currently handled with ionic. maybe we can use postmessage to show page? Sam) Deposit => QR Code + My Asset Wallet address Withdraw => Asset Wallet => Integrity Wallet. Gas Fee. Pending => Calculate Gas (Sam can you share briefly how ionic does this?) Export Integrity Wallet (Button) Copy Asset Wallet Copy Integrity Wallet Pull down to refresh |
➤ Sam commented: Ethan Wu (cc: Tammy Yang) regarding buy credits. We use in app purchase (apple and google might reject if we use non apple/google payment thing) Buy Credits (can stay ionic) |
➤ Sam commented: Ethan Wu, yes for buy credit sub-page we will use postMessage thing. |
➤ Ethan Wu commented: Sam how does ionic do the withdraw action? does it leverage network actions? |
➤ Sam commented: Ethan Wu, I need to look at code I never worked on withdraw function. |
➤ Tammy Yang commented: Ethan Wu as far as I remember, withdraw is just calling backend API to transfer fund from asset wallet to integrity wallet Since users own the private key of the integrity wallet, they are free to import the key and do whatever they want with those fund. This is how we handle it currently |
➤ Tammy Yang commented: Sam one thing that I would like to confirm with you. Does App store the private key of the integrity wallet locally? We may want to do a bit more Web3 activities locally with Ionic in the coming future, that's why I ask. |
➤ Sam commented: Tammy Yang, I need to time to check |
➤ Sam commented: Yes they are stored in app locally |
➤ Ethan Wu commented: Sam how do we get the integrity wallet address? |
➤ Ethan Wu commented: also what bsc scan link is passed into asset wallet history? |
➤ Ethan Wu commented: current progress: |
➤ Ethan Wu commented: info pop up view |
➤ Tammy Yang commented: Ethan Wu BEP20 has changed to Mainnet. You may refer to the latest update in Ionic side. Plus, all BSCscan history should be replaced by Mainnet explorer (mainnet.num.network) |
➤ Ethan Wu commented: Does storage backend reflect this? |
➤ Tammy Yang commented: See progress of NUM migration ( https://app.asana.com/0/0/1203615853062040/f/ ) |
➤ Tammy Yang commented: However, the latest Ionic App already has it implemented even the storage Backend has not yet been deployed. |
➤ Ethan Wu commented: Sam how is the integrity wallet obtained? it doesn't seem like it can be grabbed from backend. also how do we export the private key? |
➤ Sam commented: Ethan Wu, the private key is stored locally. |
➤ Sam commented: Ethan Wu, I think if I pass tmp token to wallets iframe. Am I missing anything?😅 |
➤ Ethan Wu commented: Sam for now it is ok 🙂 |
➤ Ethan Wu commented: Sam how do we get integrity wallet? from documentation it looks like there is asset wallet, num wallet, default. which one is integrity wallet? |
➤ Ethan Wu commented: also when i try to pass in token for asset-wallet get authorization error. |
➤ Tammy Yang commented: Ethan Wu I think it may be easier to include Olga in the conversation since the purpose of this page is for the "future". No matter how Ionic implement it, we want to review and make sure everything is correct from the backend point of views. |
➤ Sam commented: Ethan Wu, I checked the ionic code.
|
➤ Sam commented: Ethan Wu, on the ionic codebase (
JS code snipped from ionic codebase (
{ authorization: token ${await this.getToken()} };before calling endpoint ( https://dia-backend-dev.numbersprotocol.io/api/v3/redoc/#operation/wallets_asset-wallet_read ) So in your case, you also might need to include header authorization: token {{ tmpTokenPassedFromIframe }} We need to ask Olga if endpoint ( https://dia-backend-dev.numbersprotocol.io/api/v3/redoc/#operation/wallets_asset-wallet_read ) can accept tmp tokens as authorization header. |
➤ Olga commented: Sam if the passed token is jwt token, the answer is yes, jwt token can be used like user token. |
➤ Sam commented: Olga, as an authorization token header, should I pass the access token? |
➤ Sam commented: Ethan Wu, I got it working. |
➤ Ethan Wu commented: Sam how are you labeling the wallet page when it migrates to numbers mainnet. for example bep20 => ? also for the view asset wallet history which link will you pass for numbers mainnet history? |
➤ Sam commented: Ethan Wu, bep20 text was replaced by Mainnet text. "num_balance": { |
➤ Ethan Wu commented: Sam what link are you adding to the "view asset history" section? |
➤ Sam commented: Ethan Wu |
➤ Kenny Hung commented: Ethan Wu I'll submit the testing result fail first, when you fixed them, please help to submit new release & ping me to test. Thanks
|
➤ Ethan Wu commented: bep20 text was replaced by Mainnet text. "num_balance": { ^^ Sam when i run the api the num_balance only shows bsc_num and eth_num. there is no field for num |
➤ Ethan Wu commented: status update for above ^^ storage backend had to be deployed to have response return what is above. issue is now resolved. |
➤ Ethan Wu commented: Kenny Hung can you clarify #5 on the list where should it say chain name on send page? |
➤ Kenny Hung commented: Ethan Wu There is the 0.72.4 wallet page withdraw screen. |
➤ Ethan Wu commented: miro updated to reflect fixes. https://miro.com/app/board/o9J_knEiIYo=/?moveToWidget=3458764543160051415&cot=14 ( https://miro.com/app/board/o9J_knEiIYo=/?moveToWidget=3458764543160051415&cot=14 ) |
➤ Kenny Hung commented: Ethan Wu I'll submit the testing result fail first, when you fixed them, please help to submit new release & ping me to test. Thanks
|
➤ Ethan Wu commented: Kenny Hung can you screenshot this for me? |
➤ Kenny Hung commented: Ethan Wu Just confirm, about iframe wallet page |
➤ Ethan Wu commented: Kenny Hung needs the app. |
➤ Sam commented: Ethan Wu maybe in the future when user click copy we can do
Then it will work in both environments |
➤ Kenny Hung commented: Ethan Wu #1-#5 is new issue for iframe wallet
|
➤ Ethan Wu commented: Kenny Hung fixed 1, 2, 3, 4 can retest now |
➤ Ethan Wu commented: i didn't change this one lol. it was always calculate first and after you press it becomes send |
➤ Kenny Hung commented: Okay, I think we could skip #5, I think the CALCULATE is okay. |
In the future, we want to support the wallet page with an iframe. Please create a wallet page
┆Issue is synchronized with this Asana task by Unito
┆Created By: Tammy Yang
The text was updated successfully, but these errors were encountered: