1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-15 21:08:57 +00:00

add inputs and outputs to PendingTxReducer

This commit is contained in:
Szymon Lesisz 2018-12-18 22:09:32 +01:00
parent 780e6e27ef
commit cbc0151a62

View File

@ -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<string>,
amount: string,
fee: string,
total: string,
};
type Output = {
addresses: Array<string>,
amount: string,
}
export type PendingTx = {
+type: 'send' | 'recv',
+type: 'send' | 'recv' | 'self',
+address: string,
+deviceState: string,
+inputs: Array<Input>,
+outputs: Array<Output>,
+sequence: number,
+hash: string,
+network: string,
+address: string,
+currency: string,
+amount: string,
+total: string,