1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-01-13 09:30:54 +00:00
trezor-wallet/src/actions/PendingTxActions.js

24 lines
503 B
JavaScript

/* @flow */
import * as PENDING from 'actions/constants/pendingTx';
import type { State, PendingTx } from 'reducers/PendingTxReducer';
export type PendingTxAction = {
type: typeof PENDING.FROM_STORAGE,
payload: State
} | {
type: typeof PENDING.ADD,
payload: PendingTx
} | {
type: typeof PENDING.TX_RESOLVED,
tx: PendingTx,
receipt?: Object,
} | {
type: typeof PENDING.TX_REJECTED,
tx: PendingTx,
} | {
type: typeof PENDING.TX_TOKEN_ERROR,
tx: PendingTx,
}