import { TransactNote } from '../note/transact-note'; import { CommitmentType, OutputType, TokenData } from './formatted-types'; import { POIsPerList } from './poi-types'; export type TXO = { tree: number; position: number; txid: string; timestamp: Optional; blockNumber: number; spendtxid: string | false; nullifier: string; note: TransactNote; poisPerList: Optional; blindedCommitment: Optional; commitmentType: CommitmentType; transactCreationRailgunTxid: Optional; }; export type SentCommitment = { tree: number; position: number; txid: string; timestamp: Optional; note: TransactNote; walletSource: Optional; outputType: Optional; isLegacyTransactNote: boolean; railgunTxid: Optional; poisPerList: Optional; blindedCommitment: Optional; commitmentType: CommitmentType; }; export type SpendingSolutionGroup = { utxos: TXO[]; spendingTree: number; tokenOutputs: TransactNote[]; unshieldValue: bigint; tokenData: TokenData; }; export type UnshieldData = { toAddress: string; value: bigint; tokenData: TokenData; allowOverride?: boolean; }; type TXOsReceivedPOIStatusInfoShared = { tree: number; position: number; txid: string; commitment: string; blindedCommitment: string; poisPerList: Optional; }; export type TXOsReceivedPOIStatusInfo = { strings: TXOsReceivedPOIStatusInfoShared; emojis: TXOsReceivedPOIStatusInfoShared; }; export type TXOsSpentPOIStatusInfoShared = { blockNumber: number; txid: string; railgunTxid: string; railgunTransactionInfo: string; poiStatusesSpentTXOs: Optional[]; sentCommitmentsBlinded: string; poiStatusesSentCommitments: Optional[]; unshieldEventsBlinded: string; poiStatusesUnshieldEvents: Optional[]; listKeysCanGenerateSpentPOIs: string[]; }; export type TXOsSpentPOIStatusInfo = { strings: TXOsSpentPOIStatusInfoShared; emojis: TXOsSpentPOIStatusInfoShared; }; export declare enum WalletBalanceBucket { Spendable = "Spendable", ShieldBlocked = "ShieldBlocked", ShieldPending = "ShieldPending", ProofSubmitted = "ProofSubmitted", MissingInternalPOI = "MissingInternalPOI",// Change or DeFi interaction (Swap receipt) MissingExternalPOI = "MissingExternalPOI", Spent = "Spent" } export {};