split reconciliation and summary of reserve history
This commit is contained in:
parent
62de27d2ac
commit
1728e5011e
@ -115,7 +115,6 @@ export async function createReserve(
|
|||||||
retryInfo: initRetryInfo(),
|
retryInfo: initRetryInfo(),
|
||||||
lastError: undefined,
|
lastError: undefined,
|
||||||
reserveTransactions: [],
|
reserveTransactions: [],
|
||||||
history: [],
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const senderWire = req.senderWire;
|
const senderWire = req.senderWire;
|
||||||
|
@ -35,7 +35,13 @@ import {
|
|||||||
|
|
||||||
import { Index, Store } from "../util/query";
|
import { Index, Store } from "../util/query";
|
||||||
import { OperationError, RefreshReason } from "./walletTypes";
|
import { OperationError, RefreshReason } from "./walletTypes";
|
||||||
import { ReserveTransaction, ReserveCreditTransaction, ReserveWithdrawTransaction, ReserveClosingTransaction, ReserveRecoupTransaction } from "./ReserveTransaction";
|
import {
|
||||||
|
ReserveTransaction,
|
||||||
|
ReserveCreditTransaction,
|
||||||
|
ReserveWithdrawTransaction,
|
||||||
|
ReserveClosingTransaction,
|
||||||
|
ReserveRecoupTransaction,
|
||||||
|
} from "./ReserveTransaction";
|
||||||
import { Timestamp, Duration, getTimestampNow } from "../util/time";
|
import { Timestamp, Duration, getTimestampNow } from "../util/time";
|
||||||
import { Wallet } from "../wallet";
|
import { Wallet } from "../wallet";
|
||||||
|
|
||||||
@ -191,7 +197,7 @@ export interface WalletReserveHistoryRecoupItem {
|
|||||||
matchedExchangeTransaction?: ReserveRecoupTransaction;
|
matchedExchangeTransaction?: ReserveRecoupTransaction;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type WalletReserveHistoryItem =
|
export type WalletReserveHistoryItem =
|
||||||
| WalletReserveHistoryCreditItem
|
| WalletReserveHistoryCreditItem
|
||||||
| WalletReserveHistoryWithdrawItem
|
| WalletReserveHistoryWithdrawItem
|
||||||
| WalletReserveHistoryRecoupItem
|
| WalletReserveHistoryRecoupItem
|
||||||
@ -300,13 +306,6 @@ export interface ReserveRecord {
|
|||||||
lastError: OperationError | undefined;
|
lastError: OperationError | undefined;
|
||||||
|
|
||||||
reserveTransactions: ReserveTransaction[];
|
reserveTransactions: ReserveTransaction[];
|
||||||
|
|
||||||
/**
|
|
||||||
* History of the reserve as modeled by the wallet.
|
|
||||||
* Reconciled with the history kept by the exchange
|
|
||||||
* when we request the reserve status.
|
|
||||||
*/
|
|
||||||
history: WalletReserveHistoryItem[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user