1 import type { WasmApiWalletTransaction, WasmTransactionDetails } from '@proton/andromeda';
2 import { type SimpleMap } from '@proton/shared/lib/interfaces';
4 export type DecryptedTransactionData = Omit<WasmApiWalletTransaction, 'ToList' | 'TransactionID' | 'Sender'> & {
5 Sender: SenderObject | string | null;
6 ToList: SimpleMap<string>;
7 TransactionID: string | null;
10 export interface SenderObject {
15 export type TransactionDataTuple = [WasmTransactionDetails, DecryptedTransactionData | null];
16 export type TransactionDataByHashedTxId = SimpleMap<TransactionDataTuple>;
17 export type NetworkTransactionByHashedTxId = SimpleMap<WasmTransactionDetails & { HashedTransactionID: string }>;
19 export interface TransactionData {
20 networkData: WasmTransactionDetails;
21 apiData: DecryptedTransactionData | null;