@bsv/wallet-toolbox 2.12.0 → 2.13.0

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 (98) hide show
  1. package/CHANGELOG.md +67 -0
  2. package/README.md +153 -1
  3. package/docs/sync-transfer.md +144 -0
  4. package/out/src/sdk/WalletServices.interfaces.d.ts +6 -0
  5. package/out/src/sdk/WalletServices.interfaces.d.ts.map +1 -1
  6. package/out/src/sdk/WalletStorage.interfaces.d.ts +49 -3
  7. package/out/src/sdk/WalletStorage.interfaces.d.ts.map +1 -1
  8. package/out/src/services/ServiceCollection.js +2 -2
  9. package/out/src/services/ServiceCollection.js.map +1 -1
  10. package/out/src/services/Services.d.ts +1 -0
  11. package/out/src/services/Services.d.ts.map +1 -1
  12. package/out/src/services/Services.js +23 -0
  13. package/out/src/services/Services.js.map +1 -1
  14. package/out/src/storage/StorageIdb.d.ts +1 -0
  15. package/out/src/storage/StorageIdb.d.ts.map +1 -1
  16. package/out/src/storage/StorageIdb.js +55 -22
  17. package/out/src/storage/StorageIdb.js.map +1 -1
  18. package/out/src/storage/StorageKnex.d.ts +3 -1
  19. package/out/src/storage/StorageKnex.d.ts.map +1 -1
  20. package/out/src/storage/StorageKnex.js +43 -0
  21. package/out/src/storage/StorageKnex.js.map +1 -1
  22. package/out/src/storage/StorageProvider.d.ts.map +1 -1
  23. package/out/src/storage/StorageProvider.js +17 -2
  24. package/out/src/storage/StorageProvider.js.map +1 -1
  25. package/out/src/storage/StorageReader.d.ts +6 -0
  26. package/out/src/storage/StorageReader.d.ts.map +1 -1
  27. package/out/src/storage/StorageReader.js +8 -0
  28. package/out/src/storage/StorageReader.js.map +1 -1
  29. package/out/src/storage/StorageReaderWriter.d.ts +1 -0
  30. package/out/src/storage/StorageReaderWriter.d.ts.map +1 -1
  31. package/out/src/storage/StorageReaderWriter.js +26 -2
  32. package/out/src/storage/StorageReaderWriter.js.map +1 -1
  33. package/out/src/storage/WalletStorageManager.d.ts +1 -0
  34. package/out/src/storage/WalletStorageManager.d.ts.map +1 -1
  35. package/out/src/storage/WalletStorageManager.js +42 -9
  36. package/out/src/storage/WalletStorageManager.js.map +1 -1
  37. package/out/src/storage/methods/getSyncChunk.d.ts.map +1 -1
  38. package/out/src/storage/methods/getSyncChunk.js +42 -11
  39. package/out/src/storage/methods/getSyncChunk.js.map +1 -1
  40. package/out/src/storage/methods/validateSyncProof.d.ts +10 -2
  41. package/out/src/storage/methods/validateSyncProof.d.ts.map +1 -1
  42. package/out/src/storage/methods/validateSyncProof.js +24 -1
  43. package/out/src/storage/methods/validateSyncProof.js.map +1 -1
  44. package/out/src/storage/remoting/BinaryJson.d.ts.map +1 -1
  45. package/out/src/storage/remoting/BinaryJson.js +57 -8
  46. package/out/src/storage/remoting/BinaryJson.js.map +1 -1
  47. package/out/src/storage/remoting/KnexSyncTransferStore.d.ts +26 -0
  48. package/out/src/storage/remoting/KnexSyncTransferStore.d.ts.map +1 -0
  49. package/out/src/storage/remoting/KnexSyncTransferStore.js +223 -0
  50. package/out/src/storage/remoting/KnexSyncTransferStore.js.map +1 -0
  51. package/out/src/storage/remoting/StorageClient.js +2 -2
  52. package/out/src/storage/remoting/StorageClient.js.map +1 -1
  53. package/out/src/storage/remoting/StorageClientBase.d.ts +30 -4
  54. package/out/src/storage/remoting/StorageClientBase.d.ts.map +1 -1
  55. package/out/src/storage/remoting/StorageClientBase.js +167 -1
  56. package/out/src/storage/remoting/StorageClientBase.js.map +1 -1
  57. package/out/src/storage/remoting/StorageMobile.js +2 -2
  58. package/out/src/storage/remoting/StorageMobile.js.map +1 -1
  59. package/out/src/storage/remoting/StorageServer.d.ts +5 -0
  60. package/out/src/storage/remoting/StorageServer.d.ts.map +1 -1
  61. package/out/src/storage/remoting/StorageServer.js +123 -14
  62. package/out/src/storage/remoting/StorageServer.js.map +1 -1
  63. package/out/src/storage/remoting/SyncTransfer.d.ts +29 -0
  64. package/out/src/storage/remoting/SyncTransfer.d.ts.map +1 -0
  65. package/out/src/storage/remoting/SyncTransfer.js +152 -0
  66. package/out/src/storage/remoting/SyncTransfer.js.map +1 -0
  67. package/out/src/storage/remoting/entityValidationHelpers.d.ts.map +1 -1
  68. package/out/src/storage/remoting/entityValidationHelpers.js +35 -0
  69. package/out/src/storage/remoting/entityValidationHelpers.js.map +1 -1
  70. package/out/src/storage/remoting/syncChunkBinary.d.ts +4 -0
  71. package/out/src/storage/remoting/syncChunkBinary.d.ts.map +1 -0
  72. package/out/src/storage/remoting/syncChunkBinary.js +38 -0
  73. package/out/src/storage/remoting/syncChunkBinary.js.map +1 -0
  74. package/out/src/storage/remoting/validateRpcSyncProofs.d.ts +5 -0
  75. package/out/src/storage/remoting/validateRpcSyncProofs.d.ts.map +1 -0
  76. package/out/src/storage/remoting/validateRpcSyncProofs.js +82 -0
  77. package/out/src/storage/remoting/validateRpcSyncProofs.js.map +1 -0
  78. package/out/src/storage/schema/KnexMigrations.d.ts +2 -0
  79. package/out/src/storage/schema/KnexMigrations.d.ts.map +1 -1
  80. package/out/src/storage/schema/KnexMigrations.js +66 -1
  81. package/out/src/storage/schema/KnexMigrations.js.map +1 -1
  82. package/out/src/storage/schema/StorageIdbSchema.d.ts +1 -0
  83. package/out/src/storage/schema/StorageIdbSchema.d.ts.map +1 -1
  84. package/out/src/storage/schema/entities/EntityProvenTx.js +2 -2
  85. package/out/src/storage/schema/entities/EntityProvenTx.js.map +1 -1
  86. package/out/src/storage/schema/entities/EntitySyncState.d.ts +3 -1
  87. package/out/src/storage/schema/entities/EntitySyncState.d.ts.map +1 -1
  88. package/out/src/storage/schema/entities/EntitySyncState.js +6 -0
  89. package/out/src/storage/schema/entities/EntitySyncState.js.map +1 -1
  90. package/out/src/storage/sync/SyncPageBudget.d.ts +8 -0
  91. package/out/src/storage/sync/SyncPageBudget.d.ts.map +1 -0
  92. package/out/src/storage/sync/SyncPageBudget.js +24 -0
  93. package/out/src/storage/sync/SyncPageBudget.js.map +1 -0
  94. package/out/src/storage/sync/syncCheckpoint.d.ts +4 -0
  95. package/out/src/storage/sync/syncCheckpoint.d.ts.map +1 -0
  96. package/out/src/storage/sync/syncCheckpoint.js +49 -0
  97. package/out/src/storage/sync/syncCheckpoint.js.map +1 -0
  98. package/package.json +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bsv/wallet-toolbox",
3
- "version": "2.12.0",
3
+ "version": "2.13.0",
4
4
  "sideEffects": false,
5
5
  "type": "commonjs",
6
6
  "engines": {
@@ -72,7 +72,7 @@
72
72
  "ws": "^8.21.1"
73
73
  },
74
74
  "devDependencies": {
75
- "@bsv/sdk": "^2.5.0",
75
+ "@bsv/sdk": "^2.6.0",
76
76
  "@bsv/verifast": "^0.3.5",
77
77
  "@jest/globals": "^30.4.1",
78
78
  "@types/body-parser": "^1.19.6",
@@ -114,6 +114,7 @@
114
114
  "bench:action-batch": "pnpm build && jest --runInBand --runTestsByPath benchmarks/action-batch.bench.test.ts --testPathIgnorePatterns=man.test.ts",
115
115
  "bench:create-action-funding": "pnpm build && jest --runInBand --runTestsByPath benchmarks/create-action-funding.bench.test.ts --testPathIgnorePatterns=man.test.ts",
116
116
  "bench:create-action-beef": "pnpm build && jest --runInBand --runTestsByPath benchmarks/create-action-beef.bench.test.ts --testPathIgnorePatterns=man.test.ts",
117
+ "bench:storage-sync": "pnpm build && jest --runInBand --runTestsByPath benchmarks/storage-sync.bench.test.ts --testPathIgnorePatterns=man.test.ts",
117
118
  "format:check": "pnpm --workspace-root exec prettier --check \"packages/wallet/wallet-toolbox/{README.md,jest.config.cjs,package.json,tsconfig*.json}\"",
118
119
  "lint": "oxlint src test benchmarks examples operator --deny-warnings",
119
120
  "lint:ci": "pnpm lint",