onflow / flip-fest

A backlog of all the available tasks to complete for Flow's FLIP Fest.
50 stars 39 forks source link

Non-custodial wallets #28 - Milestone 4 - Zay Codes #90

Closed aishairzay closed 3 years ago

aishairzay commented 3 years ago

Non-custodial wallets #28 - Milestone 4 - Zay Codes

Description

This PR is for issue #28 .

Previous milestone submissions here: #54 , #84 , #88

Not included in the deliverable (yet, we'd like to address these after flip-fest in order to get closer to releasing an MVP publicly) :

The additional RFP listed items would likely be added after an MVP is released.

Submission Links & Documents

Some GIFs of the extension working:

Authn + Preauthz + Authz Popups are ugly right now, because we can not modify them per FCL. Currently using FCL's pop-up for the service type, but plan to use the new extension one when it is more ready, which we can then customize to look better: https://gyazo.com/a0a2e39ad5fa474ee95fa97692ddd157

Popup UI https://gyazo.com/99421332be463db4dcfa1ea133b2101c

Source and readme with information is here: https://github.com/Zay-Codes-Lab/zay-wallet <- Currently private, will be opened up later. Ping me on discord for fastest permission add (amit#4491)

Documentation here: https://github.com/Zay-Codes-Lab/zay-wallet/tree/main/docs

Requirements Check

Other Details

gregsantos commented 3 years ago

Will have a chance to review M4 tomorrow @aishairzay

gregsantos commented 3 years ago

Still waiting for some testnet issues to finish testing for approval. Wanted to suggest something, though not required. Mentioned the double popup issue needing explicit approval by user. Implementing the pre-authz service as a backchannel HTTP/POST might be a quick way to solve. Here's how Blocto defines for example

{
  "f_type": "Service",
  "f_vsn": "1.0.0",
  "type": "pre-authz",
  "uid": "blocto#pre-authz",
  "method": "HTTP/POST",
  "endpoint": "https://flow-wallet.blocto.app/api/flow/pre-authz",
  "params": {
    "sessionId": "GvTT_nhkX-vv44iXUiyp"
  }
}

And a link to the Wallet Provider Spec

gregsantos commented 3 years ago

MoonPay integration is nice! 🚀🌛 Slight UI issue as extension closes when switching tab/window to get the email login code. Can't continue transaction from where it was left off. Should the FLOW and FUSD balances and links be working? Not showing balance when using emulator account locally, so may be specific to that.

kerrywei commented 3 years ago

merge in the PR per Greg's comment. Congratulations team!