2018-04-23 10:20:15 +00:00
|
|
|
/* @flow */
|
2018-07-30 10:52:13 +00:00
|
|
|
|
2018-04-23 10:20:15 +00:00
|
|
|
|
2018-08-14 13:18:16 +00:00
|
|
|
import * as PENDING from 'actions/constants/pendingTx';
|
2018-10-01 10:02:54 +00:00
|
|
|
|
2018-08-14 13:18:16 +00:00
|
|
|
import type { State, PendingTx } from 'reducers/PendingTxReducer';
|
2018-04-23 10:20:15 +00:00
|
|
|
|
|
|
|
export type PendingTxAction = {
|
|
|
|
type: typeof PENDING.FROM_STORAGE,
|
|
|
|
payload: State
|
2018-09-12 11:25:21 +00:00
|
|
|
} | {
|
|
|
|
type: typeof PENDING.ADD,
|
|
|
|
payload: PendingTx
|
2018-04-23 10:20:15 +00:00
|
|
|
} | {
|
|
|
|
type: typeof PENDING.TX_RESOLVED,
|
2018-11-30 17:55:57 +00:00
|
|
|
hash: string,
|
2018-05-23 17:13:24 +00:00
|
|
|
} | {
|
2018-09-26 16:46:49 +00:00
|
|
|
type: typeof PENDING.TX_REJECTED,
|
2018-11-30 17:55:57 +00:00
|
|
|
hash: string,
|
2018-05-23 17:13:24 +00:00
|
|
|
} | {
|
|
|
|
type: typeof PENDING.TX_TOKEN_ERROR,
|
2018-11-30 17:55:57 +00:00
|
|
|
hash: string,
|
2018-10-08 10:17:31 +00:00
|
|
|
}
|