WA-521 Refactor transaction model type based on service's response
This commit is contained in:
parent
2991cc8cd1
commit
03d632b755
|
@ -7,11 +7,10 @@ export type TransactionProps = {
|
||||||
name: string,
|
name: string,
|
||||||
nonce: number,
|
nonce: number,
|
||||||
value: number,
|
value: number,
|
||||||
threshold: number,
|
|
||||||
confirmations: List<Confirmation>,
|
confirmations: List<Confirmation>,
|
||||||
destination: string,
|
destination: string,
|
||||||
tx: string,
|
|
||||||
data: string,
|
data: string,
|
||||||
|
isExecuted: boolean,
|
||||||
}
|
}
|
||||||
|
|
||||||
export const makeTransaction: RecordFactory<TransactionProps> = Record({
|
export const makeTransaction: RecordFactory<TransactionProps> = Record({
|
||||||
|
@ -20,9 +19,8 @@ export const makeTransaction: RecordFactory<TransactionProps> = Record({
|
||||||
value: 0,
|
value: 0,
|
||||||
confirmations: List([]),
|
confirmations: List([]),
|
||||||
destination: '',
|
destination: '',
|
||||||
tx: '',
|
|
||||||
threshold: 0,
|
|
||||||
data: '',
|
data: '',
|
||||||
|
isExecuted: false,
|
||||||
})
|
})
|
||||||
|
|
||||||
export type Transaction = RecordOf<TransactionProps>
|
export type Transaction = RecordOf<TransactionProps>
|
||||||
|
|
Loading…
Reference in New Issue