Transactions

Description

The transaction module abstracts the difficulties of managing transaction notifications. Once a transaction hash has been passed off to it, the saga will continuously poll until the transaction is completed. At that point, it will update the state. Frontend UI can be updated by hooking into its dispatched actions.

Actions

setPendingReceipt(txHash)

Add txHash to a transaction watch list to be notified once complete

State

{
  "transactions": object,
  "transactionsInitiated": bool,
  "walkthroughStage": string,
  "walkthroughVisible": bool,
  "pendingReceiptHash": string
}

Selectors

transactionsSelector(state)

Retrieve the entire state as described above

walkthroughVisibleSelector(state)

Determine if the walkthrough is currently visible

pendingReceiptHashSelector(state)

Retrieve pendingReceiptHash from the state

getTransactionSelector(txHash, state)

Retrieve a specific transaction object from transactions

transactionsInitiatedSelector(state)

Retrieve transactionsInitiated from the state