WA-521 Refactor confirmation model type based on service's response

This commit is contained in:
apanizo 2018-08-10 17:35:52 +02:00
parent cbab03ace9
commit 2991cc8cd1
1 changed files with 3 additions and 2 deletions

View File

@ -2,16 +2,17 @@
import { Record } from 'immutable'
import type { RecordFactory, RecordOf } from 'immutable'
import { makeOwner, type Owner } from '~/routes/safe/store/model/owner'
import { type TxServiceType } from '~/wallets/safeTxHistory'
export type ConfirmationProps = {
owner: Owner,
status: boolean, // false: not confirmed, true: confirmed
type: TxServiceType,
hash: string,
}
export const makeConfirmation: RecordFactory<ConfirmationProps> = Record({
owner: makeOwner(),
status: false,
type: 'confirmation',
hash: '',
})