mirror of
https://github.com/trezor/trezor-wallet
synced 2025-06-26 18:02:37 +00:00
add inputs and outputs to PendingTxReducer
This commit is contained in:
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…
Reference in New Issue
Block a user