WA-521 Refactor confirmation model type based on service's response
This commit is contained in:
parent
cbab03ace9
commit
2991cc8cd1
|
@ -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: '',
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue