diff --git a/src/reducers/PendingTxReducer.js b/src/reducers/PendingTxReducer.js index ed1f8bdd..1f4fb8f4 100644 --- a/src/reducers/PendingTxReducer.js +++ b/src/reducers/PendingTxReducer.js @@ -4,13 +4,29 @@ import * as PENDING from 'actions/constants/pendingTx'; import type { Action } from 'flowtype'; + +// TODO: import them from trezor-connect +type Input = { + addresses: Array, + amount: string, + fee: string, + total: string, +}; + +type Output = { + addresses: Array, + amount: string, +} + export type PendingTx = { - +type: 'send' | 'recv', + +type: 'send' | 'recv' | 'self', + +address: string, +deviceState: string, + +inputs: Array, + +outputs: Array, +sequence: number, +hash: string, +network: string, - +address: string, +currency: string, +amount: string, +total: string,