@1sat/wallet-toolbox 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/README.md +21 -21
  2. package/dist/OneSatWallet.d.ts +209 -54
  3. package/dist/index.d.ts +6 -4
  4. package/dist/index.js +34940 -32915
  5. package/dist/indexers/Bsv21Indexer.d.ts +5 -5
  6. package/dist/indexers/CosignIndexer.d.ts +3 -3
  7. package/dist/indexers/FundIndexer.d.ts +3 -3
  8. package/dist/indexers/InscriptionIndexer.d.ts +3 -2
  9. package/dist/indexers/LockIndexer.d.ts +3 -3
  10. package/dist/indexers/MapIndexer.d.ts +2 -3
  11. package/dist/indexers/OpNSIndexer.d.ts +2 -2
  12. package/dist/indexers/OrdLockIndexer.d.ts +3 -3
  13. package/dist/indexers/OriginIndexer.d.ts +19 -5
  14. package/dist/indexers/SigmaIndexer.d.ts +14 -2
  15. package/dist/indexers/index.d.ts +5 -6
  16. package/dist/indexers/types.d.ts +24 -10
  17. package/dist/services/OneSatServices.d.ts +39 -61
  18. package/dist/services/client/ArcadeClient.d.ts +45 -0
  19. package/dist/services/client/BaseClient.d.ts +32 -0
  20. package/dist/services/client/BeefClient.d.ts +26 -0
  21. package/dist/services/client/Bsv21Client.d.ts +46 -0
  22. package/dist/services/client/ChaintracksClient.d.ts +62 -0
  23. package/dist/services/client/OrdfsClient.d.ts +47 -0
  24. package/dist/services/client/OwnerClient.d.ts +41 -0
  25. package/dist/services/client/TxoClient.d.ts +41 -0
  26. package/dist/services/client/index.d.ts +8 -0
  27. package/dist/services/types.d.ts +253 -0
  28. package/dist/signers/ReadOnlySigner.d.ts +1 -1
  29. package/dist/sync/IndexedDbSyncQueue.d.ts +30 -0
  30. package/dist/sync/SqliteSyncQueue.d.ts +54 -0
  31. package/dist/sync/index.d.ts +3 -0
  32. package/dist/sync/types.d.ts +129 -0
  33. package/package.json +6 -3
  34. package/dist/indexers/TransactionParser.d.ts +0 -53
@@ -1,53 +0,0 @@
1
- import { Transaction } from "@bsv/sdk";
2
- import type { Indexer } from "./types";
3
- import type { OneSatServices } from "../services/OneSatServices";
4
- /**
5
- * Represents the result of parsing a single output
6
- */
7
- export interface ParsedOutput {
8
- vout: number;
9
- basket: string;
10
- tags: string[];
11
- customInstructions?: unknown;
12
- }
13
- /**
14
- * Represents the result of parsing an entire transaction
15
- */
16
- export interface ParseResult {
17
- outputs: ParsedOutput[];
18
- summary?: unknown;
19
- }
20
- /**
21
- * TransactionParser runs indexers over a transaction to extract
22
- * basket, tags, and custom instructions for wallet-toolbox.
23
- *
24
- * This is a stripped-down version of TxoStore.ingest() that only
25
- * handles parsing without SPV verification or storage.
26
- */
27
- export declare class TransactionParser {
28
- indexers: Indexer[];
29
- owners: Set<string>;
30
- private services;
31
- constructor(indexers: Indexer[], owners: Set<string>, services: OneSatServices);
32
- /**
33
- * Parse a transaction and extract wallet-toolbox metadata
34
- */
35
- parse(tx: Transaction, isBroadcasted: boolean): Promise<ParseResult>;
36
- /**
37
- * Parse all inputs - run indexers on source outputs to populate ctx.spends
38
- */
39
- private parseInputs;
40
- /**
41
- * Load source transactions for all inputs and set them on tx.inputs[].sourceTransaction
42
- */
43
- private loadSourceTransactions;
44
- /**
45
- * Build minimal parse context from transaction
46
- */
47
- private buildContext;
48
- /**
49
- * Convert parsed context to wallet-toolbox format with baskets and tags
50
- * Filters outputs to only return those owned by addresses in the owners set
51
- */
52
- private convertToWalletToolboxFormat;
53
- }