mlabs-haskell / nft-marketplace

Other
2 stars 0 forks source link

Add mock wallet context #113

Closed nrutledge closed 2 years ago

nrutledge commented 2 years ago

For the Dec. 17 beta launch, the new plan as of Dec. 10, is to use test (backend) wallets instead of integrating with Nami. This is due to issues encountered with the end to end integration that likely won't be resolved in time.

The user interaction will be as follows:

  1. User clicks on the wallet icon at the top-right
  2. User is presented with a username/password form.
  3. After submitting, an API request to the server will validate their credentials and return back any necessary info (pubKeyHash at a minimum).
  4. The UI will show visual confirmation the user is connected successfully to the test wallet.
  5. User performs a desired action, such as buying an NFT.
  6. Endpoint is called (via seabug SDK) and the backend creates the tx, signs with test wallet and submits the transaction.
  7. Frontend will need to fetch the new state and update the UI.

UPDATE 2021-12-15: The above is no longer the plan. We will proceed with building proper wallet integration using new frontend PAB that our team is working on. For now, we just need mock wallet data to continue development of features that interact with the wallet.