add inputs and outputs to PendingTxReducer

pull/282/head
Szymon Lesisz 6 years ago
parent 780e6e27ef
commit cbc0151a62

@ -4,13 +4,29 @@ import * as PENDING from 'actions/constants/pendingTx';
import type { Action } from 'flowtype'; import type { Action } from 'flowtype';
// TODO: import them from trezor-connect
type Input = {
addresses: Array<string>,
amount: string,
fee: string,
total: string,
};
type Output = {
addresses: Array<string>,
amount: string,
}
export type PendingTx = { export type PendingTx = {
+type: 'send' | 'recv', +type: 'send' | 'recv' | 'self',
+address: string,
+deviceState: string, +deviceState: string,
+inputs: Array<Input>,
+outputs: Array<Output>,
+sequence: number, +sequence: number,
+hash: string, +hash: string,
+network: string, +network: string,
+address: string,
+currency: string, +currency: string,
+amount: string, +amount: string,
+total: string, +total: string,

Loading…
Cancel
Save