Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | import type { BigNumber } from "bignumber.js";
type JournalEntryType = "DEBIT" | "CREDIT";
const transactionTypes = {
WithdrawalRequest: "WTD-R",
WithdrawalNotification: "WTD-N",
DepositRequest: "DPT-R",
DepositNotification: "DPT-N",
} as const;
type TransactionType = (typeof transactionTypes)[keyof typeof transactionTypes];
interface JournalEntry {
eventId: string;
bookId: string;
counterBookId: string;
pairId: string;
account: string;
amount: BigNumber;
entryType: JournalEntryType;
description?: string;
tags: string[];
type: TransactionType;
}
export { transactionTypes };
export type { JournalEntry };
|