owlprotocol / web3-redux

Web3 Redux Library
6 stars 1 forks source link

`TransactionFlowModel` Component #131

Closed leovigna closed 2 years ago

leovigna commented 2 years ago

Description

Sometimes certain blockchain interactions require a specific order of transactions that MUST be made sequentially. This transaction "flow" is often displayed to users in the form of a modal that prompts the user for wallet confirmations, waits for tx confirmation, and then prompts for additional wallet confirmation etc...

Common use case for this type of UX is for something like a token bridge:

The goal of the TransactionFlowModal component is to create a flexible component that can accommodate different sequential transaction "stages", each with their own transaction data and user descriptions. The component should track progress and wait for confirmations. On the backend side of things, we should also design the data model to support recovery of an interrupted transaction flow (eg. user complets step1 but then closes their tab).

Features

Tasks

leovigna commented 2 years ago

Example Transaction Flow UXs LinkBridge LinkBridgeContinue LinkBridgeFail LinkBridgeProgress MaticBridge

netanelben commented 2 years ago

/cib

github-actions[bot] commented 2 years ago

Branch issue-131 created! Clone with: git fetch && git checkout --track origin/issue-131 Rebase develop branch changes with: git checkout issue-131 && git rebase develop

netanelben commented 2 years ago

/cib

github-actions[bot] commented 2 years ago

Branch already exists