@bsv/wallet-toolbox 2.4.3 → 2.4.20

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 (675) hide show
  1. package/CHANGELOG.md +81 -1
  2. package/LICENSE.txt +58 -0
  3. package/README.md +98 -36
  4. package/docs/README.md +3 -1
  5. package/docs/action-batch-planning.md +220 -0
  6. package/docs/authentication-observability.md +94 -0
  7. package/docs/client.md +1125 -2776
  8. package/docs/monitor.md +29 -111
  9. package/docs/services.md +296 -602
  10. package/docs/setup.md +48 -28
  11. package/docs/storage.md +329 -1692
  12. package/docs/wallet.md +9718 -4890
  13. package/out/src/CWIStyleWalletManager.d.ts +62 -6
  14. package/out/src/CWIStyleWalletManager.d.ts.map +1 -1
  15. package/out/src/CWIStyleWalletManager.js +584 -181
  16. package/out/src/CWIStyleWalletManager.js.map +1 -1
  17. package/out/src/Setup.d.ts +7 -0
  18. package/out/src/Setup.d.ts.map +1 -1
  19. package/out/src/Setup.js +10 -11
  20. package/out/src/Setup.js.map +1 -1
  21. package/out/src/SetupClient.d.ts +2 -0
  22. package/out/src/SetupClient.d.ts.map +1 -1
  23. package/out/src/SetupClient.js +8 -9
  24. package/out/src/SetupClient.js.map +1 -1
  25. package/out/src/SetupWallet.d.ts +6 -0
  26. package/out/src/SetupWallet.d.ts.map +1 -1
  27. package/out/src/ShamirWalletManager.d.ts.map +1 -1
  28. package/out/src/ShamirWalletManager.js.map +1 -1
  29. package/out/src/SimpleWalletManager.d.ts.map +1 -1
  30. package/out/src/SimpleWalletManager.js +2 -5
  31. package/out/src/SimpleWalletManager.js.map +1 -1
  32. package/out/src/Wallet.d.ts +36 -10
  33. package/out/src/Wallet.d.ts.map +1 -1
  34. package/out/src/Wallet.js +167 -132
  35. package/out/src/Wallet.js.map +1 -1
  36. package/out/src/WalletAuthenticationManager.d.ts +30 -6
  37. package/out/src/WalletAuthenticationManager.d.ts.map +1 -1
  38. package/out/src/WalletAuthenticationManager.js +215 -34
  39. package/out/src/WalletAuthenticationManager.js.map +1 -1
  40. package/out/src/WalletLogger.d.ts.map +1 -1
  41. package/out/src/WalletLogger.js +33 -30
  42. package/out/src/WalletLogger.js.map +1 -1
  43. package/out/src/WalletPermissionsManager.d.ts +22 -1
  44. package/out/src/WalletPermissionsManager.d.ts.map +1 -1
  45. package/out/src/WalletPermissionsManager.js +392 -267
  46. package/out/src/WalletPermissionsManager.js.map +1 -1
  47. package/out/src/WalletSettingsManager.d.ts.map +1 -1
  48. package/out/src/WalletSettingsManager.js.map +1 -1
  49. package/out/src/entropy/EntropyCollector.d.ts.map +1 -1
  50. package/out/src/entropy/EntropyCollector.js +6 -8
  51. package/out/src/entropy/EntropyCollector.js.map +1 -1
  52. package/out/src/fundWalletP2PKH.js.map +1 -1
  53. package/out/src/index.all.d.ts +1 -0
  54. package/out/src/index.all.d.ts.map +1 -1
  55. package/out/src/index.all.js +1 -0
  56. package/out/src/index.all.js.map +1 -1
  57. package/out/src/index.client.d.ts +2 -0
  58. package/out/src/index.client.d.ts.map +1 -1
  59. package/out/src/index.client.js +2 -0
  60. package/out/src/index.client.js.map +1 -1
  61. package/out/src/index.mobile.d.ts +2 -0
  62. package/out/src/index.mobile.d.ts.map +1 -1
  63. package/out/src/index.mobile.js +2 -0
  64. package/out/src/index.mobile.js.map +1 -1
  65. package/out/src/mockchain/MockChainMigrations.d.ts.map +1 -1
  66. package/out/src/mockchain/MockChainMigrations.js.map +1 -1
  67. package/out/src/mockchain/MockChainStorage.d.ts.map +1 -1
  68. package/out/src/mockchain/MockChainStorage.js.map +1 -1
  69. package/out/src/mockchain/MockChainTracker.d.ts.map +1 -1
  70. package/out/src/mockchain/MockChainTracker.js.map +1 -1
  71. package/out/src/mockchain/MockMiner.d.ts.map +1 -1
  72. package/out/src/mockchain/MockMiner.js.map +1 -1
  73. package/out/src/mockchain/MockServices.d.ts +4 -0
  74. package/out/src/mockchain/MockServices.d.ts.map +1 -1
  75. package/out/src/mockchain/MockServices.js +69 -74
  76. package/out/src/mockchain/MockServices.js.map +1 -1
  77. package/out/src/mockchain/merkleTree.d.ts.map +1 -1
  78. package/out/src/mockchain/merkleTree.js +51 -56
  79. package/out/src/mockchain/merkleTree.js.map +1 -1
  80. package/out/src/monitor/Monitor.d.ts +4 -0
  81. package/out/src/monitor/Monitor.d.ts.map +1 -1
  82. package/out/src/monitor/Monitor.js +60 -57
  83. package/out/src/monitor/Monitor.js.map +1 -1
  84. package/out/src/monitor/MonitorDaemon.d.ts +3 -0
  85. package/out/src/monitor/MonitorDaemon.d.ts.map +1 -1
  86. package/out/src/monitor/MonitorDaemon.js +65 -56
  87. package/out/src/monitor/MonitorDaemon.js.map +1 -1
  88. package/out/src/monitor/index.all.js.map +1 -1
  89. package/out/src/monitor/tasks/TaskArcSSE.d.ts +5 -0
  90. package/out/src/monitor/tasks/TaskArcSSE.d.ts.map +1 -1
  91. package/out/src/monitor/tasks/TaskArcSSE.js +86 -77
  92. package/out/src/monitor/tasks/TaskArcSSE.js.map +1 -1
  93. package/out/src/monitor/tasks/TaskCheckForProofs.d.ts +4 -2
  94. package/out/src/monitor/tasks/TaskCheckForProofs.d.ts.map +1 -1
  95. package/out/src/monitor/tasks/TaskCheckForProofs.js +132 -131
  96. package/out/src/monitor/tasks/TaskCheckForProofs.js.map +1 -1
  97. package/out/src/monitor/tasks/TaskCheckNoSends.d.ts +3 -1
  98. package/out/src/monitor/tasks/TaskCheckNoSends.d.ts.map +1 -1
  99. package/out/src/monitor/tasks/TaskCheckNoSends.js +3 -1
  100. package/out/src/monitor/tasks/TaskCheckNoSends.js.map +1 -1
  101. package/out/src/monitor/tasks/TaskCleanupActionBatches.d.ts +13 -0
  102. package/out/src/monitor/tasks/TaskCleanupActionBatches.d.ts.map +1 -0
  103. package/out/src/monitor/tasks/TaskCleanupActionBatches.js +24 -0
  104. package/out/src/monitor/tasks/TaskCleanupActionBatches.js.map +1 -0
  105. package/out/src/monitor/tasks/TaskClock.d.ts +1 -1
  106. package/out/src/monitor/tasks/TaskClock.d.ts.map +1 -1
  107. package/out/src/monitor/tasks/TaskClock.js +1 -1
  108. package/out/src/monitor/tasks/TaskClock.js.map +1 -1
  109. package/out/src/monitor/tasks/TaskFailAbandoned.d.ts.map +1 -1
  110. package/out/src/monitor/tasks/TaskFailAbandoned.js.map +1 -1
  111. package/out/src/monitor/tasks/TaskMineBlock.d.ts +3 -1
  112. package/out/src/monitor/tasks/TaskMineBlock.d.ts.map +1 -1
  113. package/out/src/monitor/tasks/TaskMineBlock.js +3 -1
  114. package/out/src/monitor/tasks/TaskMineBlock.js.map +1 -1
  115. package/out/src/monitor/tasks/TaskMonitorCallHistory.d.ts.map +1 -1
  116. package/out/src/monitor/tasks/TaskMonitorCallHistory.js.map +1 -1
  117. package/out/src/monitor/tasks/TaskNewHeader.d.ts +4 -3
  118. package/out/src/monitor/tasks/TaskNewHeader.d.ts.map +1 -1
  119. package/out/src/monitor/tasks/TaskNewHeader.js +4 -3
  120. package/out/src/monitor/tasks/TaskNewHeader.js.map +1 -1
  121. package/out/src/monitor/tasks/TaskPurge.d.ts +3 -1
  122. package/out/src/monitor/tasks/TaskPurge.d.ts.map +1 -1
  123. package/out/src/monitor/tasks/TaskPurge.js +3 -1
  124. package/out/src/monitor/tasks/TaskPurge.js.map +1 -1
  125. package/out/src/monitor/tasks/TaskReorg.d.ts.map +1 -1
  126. package/out/src/monitor/tasks/TaskReorg.js.map +1 -1
  127. package/out/src/monitor/tasks/TaskReviewDoubleSpends.d.ts +3 -1
  128. package/out/src/monitor/tasks/TaskReviewDoubleSpends.d.ts.map +1 -1
  129. package/out/src/monitor/tasks/TaskReviewDoubleSpends.js +3 -1
  130. package/out/src/monitor/tasks/TaskReviewDoubleSpends.js.map +1 -1
  131. package/out/src/monitor/tasks/TaskReviewProvenTxs.d.ts +3 -1
  132. package/out/src/monitor/tasks/TaskReviewProvenTxs.d.ts.map +1 -1
  133. package/out/src/monitor/tasks/TaskReviewProvenTxs.js +3 -1
  134. package/out/src/monitor/tasks/TaskReviewProvenTxs.js.map +1 -1
  135. package/out/src/monitor/tasks/TaskReviewStatus.d.ts +3 -1
  136. package/out/src/monitor/tasks/TaskReviewStatus.d.ts.map +1 -1
  137. package/out/src/monitor/tasks/TaskReviewStatus.js +3 -1
  138. package/out/src/monitor/tasks/TaskReviewStatus.js.map +1 -1
  139. package/out/src/monitor/tasks/TaskReviewUtxos.d.ts +3 -1
  140. package/out/src/monitor/tasks/TaskReviewUtxos.d.ts.map +1 -1
  141. package/out/src/monitor/tasks/TaskReviewUtxos.js +3 -1
  142. package/out/src/monitor/tasks/TaskReviewUtxos.js.map +1 -1
  143. package/out/src/monitor/tasks/TaskSendWaiting.d.ts +3 -0
  144. package/out/src/monitor/tasks/TaskSendWaiting.d.ts.map +1 -1
  145. package/out/src/monitor/tasks/TaskSendWaiting.js +53 -46
  146. package/out/src/monitor/tasks/TaskSendWaiting.js.map +1 -1
  147. package/out/src/monitor/tasks/TaskSyncWhenIdle.d.ts +1 -1
  148. package/out/src/monitor/tasks/TaskSyncWhenIdle.d.ts.map +1 -1
  149. package/out/src/monitor/tasks/TaskSyncWhenIdle.js +1 -1
  150. package/out/src/monitor/tasks/TaskSyncWhenIdle.js.map +1 -1
  151. package/out/src/monitor/tasks/TaskUnFail.d.ts +3 -1
  152. package/out/src/monitor/tasks/TaskUnFail.d.ts.map +1 -1
  153. package/out/src/monitor/tasks/TaskUnFail.js +3 -1
  154. package/out/src/monitor/tasks/TaskUnFail.js.map +1 -1
  155. package/out/src/monitor/tasks/WalletMonitorTask.d.ts.map +1 -1
  156. package/out/src/monitor/tasks/WalletMonitorTask.js.map +1 -1
  157. package/out/src/monitor/tasks/index.all.d.ts +1 -0
  158. package/out/src/monitor/tasks/index.all.d.ts.map +1 -1
  159. package/out/src/monitor/tasks/index.all.js +1 -0
  160. package/out/src/monitor/tasks/index.all.js.map +1 -1
  161. package/out/src/sdk/ActionBatch.interfaces.d.ts +159 -0
  162. package/out/src/sdk/ActionBatch.interfaces.d.ts.map +1 -0
  163. package/out/src/sdk/ActionBatch.interfaces.js +3 -0
  164. package/out/src/sdk/ActionBatch.interfaces.js.map +1 -0
  165. package/out/src/sdk/PrivilegedKeyManager.d.ts.map +1 -1
  166. package/out/src/sdk/PrivilegedKeyManager.js +3 -3
  167. package/out/src/sdk/PrivilegedKeyManager.js.map +1 -1
  168. package/out/src/sdk/WERR_errors.d.ts +1 -1
  169. package/out/src/sdk/WERR_errors.d.ts.map +1 -1
  170. package/out/src/sdk/WERR_errors.js +2 -2
  171. package/out/src/sdk/WERR_errors.js.map +1 -1
  172. package/out/src/sdk/WalletError.d.ts +3 -0
  173. package/out/src/sdk/WalletError.d.ts.map +1 -1
  174. package/out/src/sdk/WalletError.js +53 -56
  175. package/out/src/sdk/WalletError.js.map +1 -1
  176. package/out/src/sdk/WalletErrorFromJson.js.map +1 -1
  177. package/out/src/sdk/WalletServices.interfaces.d.ts +3 -1
  178. package/out/src/sdk/WalletServices.interfaces.d.ts.map +1 -1
  179. package/out/src/sdk/WalletStorage.interfaces.d.ts +22 -1
  180. package/out/src/sdk/WalletStorage.interfaces.d.ts.map +1 -1
  181. package/out/src/sdk/index.d.ts +1 -0
  182. package/out/src/sdk/index.d.ts.map +1 -1
  183. package/out/src/sdk/index.js +1 -0
  184. package/out/src/sdk/index.js.map +1 -1
  185. package/out/src/sdk/types.js.map +1 -1
  186. package/out/src/services/ServiceCollection.d.ts.map +1 -1
  187. package/out/src/services/ServiceCollection.js.map +1 -1
  188. package/out/src/services/Services.d.ts +8 -2
  189. package/out/src/services/Services.d.ts.map +1 -1
  190. package/out/src/services/Services.js +86 -44
  191. package/out/src/services/Services.js.map +1 -1
  192. package/out/src/services/chaintracker/BHServiceClient.d.ts +7 -7
  193. package/out/src/services/chaintracker/BHServiceClient.d.ts.map +1 -1
  194. package/out/src/services/chaintracker/BHServiceClient.js +9 -9
  195. package/out/src/services/chaintracker/BHServiceClient.js.map +1 -1
  196. package/out/src/services/chaintracker/ChaintracksChainTracker.d.ts +4 -1
  197. package/out/src/services/chaintracker/ChaintracksChainTracker.d.ts.map +1 -1
  198. package/out/src/services/chaintracker/ChaintracksChainTracker.js +42 -6
  199. package/out/src/services/chaintracker/ChaintracksChainTracker.js.map +1 -1
  200. package/out/src/services/chaintracker/chaintracks/Api/BlockHeaderApi.d.ts +4 -4
  201. package/out/src/services/chaintracker/chaintracks/Api/BlockHeaderApi.d.ts.map +1 -1
  202. package/out/src/services/chaintracker/chaintracks/Api/BlockHeaderApi.js +1 -1
  203. package/out/src/services/chaintracker/chaintracks/Api/BlockHeaderApi.js.map +1 -1
  204. package/out/src/services/chaintracker/chaintracks/Chaintracks.d.ts +3 -0
  205. package/out/src/services/chaintracker/chaintracks/Chaintracks.d.ts.map +1 -1
  206. package/out/src/services/chaintracker/chaintracks/Chaintracks.js +45 -40
  207. package/out/src/services/chaintracker/chaintracks/Chaintracks.js.map +1 -1
  208. package/out/src/services/chaintracker/chaintracks/ChaintracksService.d.ts +5 -0
  209. package/out/src/services/chaintracker/chaintracks/ChaintracksService.d.ts.map +1 -1
  210. package/out/src/services/chaintracker/chaintracks/ChaintracksService.js +25 -18
  211. package/out/src/services/chaintracker/chaintracks/ChaintracksService.js.map +1 -1
  212. package/out/src/services/chaintracker/chaintracks/ChaintracksServiceClient.d.ts +3 -3
  213. package/out/src/services/chaintracker/chaintracks/ChaintracksServiceClient.d.ts.map +1 -1
  214. package/out/src/services/chaintracker/chaintracks/ChaintracksServiceClient.js +6 -7
  215. package/out/src/services/chaintracker/chaintracks/ChaintracksServiceClient.js.map +1 -1
  216. package/out/src/services/chaintracker/chaintracks/GoChaintracksServiceClient.d.ts.map +1 -1
  217. package/out/src/services/chaintracker/chaintracks/GoChaintracksServiceClient.js.map +1 -1
  218. package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorBase.d.ts.map +1 -1
  219. package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorBase.js.map +1 -1
  220. package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorCDN.d.ts.map +1 -1
  221. package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorCDN.js.map +1 -1
  222. package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorCDNBabbage.d.ts.map +1 -1
  223. package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorCDNBabbage.js.map +1 -1
  224. package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorWhatsOnChainCdn.d.ts.map +1 -1
  225. package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorWhatsOnChainCdn.js +0 -1
  226. package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorWhatsOnChainCdn.js.map +1 -1
  227. package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorWhatsOnChainWs.d.ts.map +1 -1
  228. package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorWhatsOnChainWs.js.map +1 -1
  229. package/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorBase.d.ts.map +1 -1
  230. package/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorBase.js.map +1 -1
  231. package/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorChaintracksSSE.d.ts.map +1 -1
  232. package/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorChaintracksSSE.js.map +1 -1
  233. package/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorTeranodeP2P.d.ts +2 -2
  234. package/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorTeranodeP2P.d.ts.map +1 -1
  235. package/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorTeranodeP2P.js +2 -2
  236. package/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorTeranodeP2P.js.map +1 -1
  237. package/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorWhatsOnChainPoll.d.ts.map +1 -1
  238. package/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorWhatsOnChainPoll.js.map +1 -1
  239. package/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorWhatsOnChainWs.d.ts.map +1 -1
  240. package/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorWhatsOnChainWs.js.map +1 -1
  241. package/out/src/services/chaintracker/chaintracks/Ingest/WhatsOnChainIngestorWs.d.ts +12 -2
  242. package/out/src/services/chaintracker/chaintracks/Ingest/WhatsOnChainIngestorWs.d.ts.map +1 -1
  243. package/out/src/services/chaintracker/chaintracks/Ingest/WhatsOnChainIngestorWs.js +110 -103
  244. package/out/src/services/chaintracker/chaintracks/Ingest/WhatsOnChainIngestorWs.js.map +1 -1
  245. package/out/src/services/chaintracker/chaintracks/Ingest/WhatsOnChainServices.d.ts +8 -0
  246. package/out/src/services/chaintracker/chaintracks/Ingest/WhatsOnChainServices.d.ts.map +1 -1
  247. package/out/src/services/chaintracker/chaintracks/Ingest/WhatsOnChainServices.js +58 -48
  248. package/out/src/services/chaintracker/chaintracks/Ingest/WhatsOnChainServices.js.map +1 -1
  249. package/out/src/services/chaintracker/chaintracks/Storage/BulkStorageBase.d.ts.map +1 -1
  250. package/out/src/services/chaintracker/chaintracks/Storage/BulkStorageBase.js.map +1 -1
  251. package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksKnexMigrations.d.ts.map +1 -1
  252. package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksKnexMigrations.js.map +1 -1
  253. package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageBase.d.ts +3 -0
  254. package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageBase.d.ts.map +1 -1
  255. package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageBase.js +55 -54
  256. package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageBase.js.map +1 -1
  257. package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageIdb.d.ts +4 -0
  258. package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageIdb.d.ts.map +1 -1
  259. package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageIdb.js +97 -72
  260. package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageIdb.js.map +1 -1
  261. package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageKnex.d.ts +5 -0
  262. package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageKnex.d.ts.map +1 -1
  263. package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageKnex.js +145 -136
  264. package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageKnex.js.map +1 -1
  265. package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageNoDb.d.ts +4 -0
  266. package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageNoDb.d.ts.map +1 -1
  267. package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageNoDb.js +92 -68
  268. package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageNoDb.js.map +1 -1
  269. package/out/src/services/chaintracker/chaintracks/configureChaintracksIngestors.d.ts +43 -0
  270. package/out/src/services/chaintracker/chaintracks/configureChaintracksIngestors.d.ts.map +1 -1
  271. package/out/src/services/chaintracker/chaintracks/configureChaintracksIngestors.js +76 -0
  272. package/out/src/services/chaintracker/chaintracks/configureChaintracksIngestors.js.map +1 -1
  273. package/out/src/services/chaintracker/chaintracks/configureKnexChaintracks.d.ts +18 -0
  274. package/out/src/services/chaintracker/chaintracks/configureKnexChaintracks.d.ts.map +1 -0
  275. package/out/src/services/chaintracker/chaintracks/configureKnexChaintracks.js +24 -0
  276. package/out/src/services/chaintracker/chaintracks/configureKnexChaintracks.js.map +1 -0
  277. package/out/src/services/chaintracker/chaintracks/createDefaultIdbChaintracksOptions.d.ts +2 -3
  278. package/out/src/services/chaintracker/chaintracks/createDefaultIdbChaintracksOptions.d.ts.map +1 -1
  279. package/out/src/services/chaintracker/chaintracks/createDefaultIdbChaintracksOptions.js +4 -22
  280. package/out/src/services/chaintracker/chaintracks/createDefaultIdbChaintracksOptions.js.map +1 -1
  281. package/out/src/services/chaintracker/chaintracks/createDefaultKnexChaintracksOptions.d.ts +2 -4
  282. package/out/src/services/chaintracker/chaintracks/createDefaultKnexChaintracksOptions.d.ts.map +1 -1
  283. package/out/src/services/chaintracker/chaintracks/createDefaultKnexChaintracksOptions.js +12 -25
  284. package/out/src/services/chaintracker/chaintracks/createDefaultKnexChaintracksOptions.js.map +1 -1
  285. package/out/src/services/chaintracker/chaintracks/createDefaultNoDbChaintracksOptions.d.ts +2 -3
  286. package/out/src/services/chaintracker/chaintracks/createDefaultNoDbChaintracksOptions.d.ts.map +1 -1
  287. package/out/src/services/chaintracker/chaintracks/createDefaultNoDbChaintracksOptions.js +4 -22
  288. package/out/src/services/chaintracker/chaintracks/createDefaultNoDbChaintracksOptions.js.map +1 -1
  289. package/out/src/services/chaintracker/chaintracks/createIdbChaintracks.d.ts +2 -1
  290. package/out/src/services/chaintracker/chaintracks/createIdbChaintracks.d.ts.map +1 -1
  291. package/out/src/services/chaintracker/chaintracks/createIdbChaintracks.js +3 -15
  292. package/out/src/services/chaintracker/chaintracks/createIdbChaintracks.js.map +1 -1
  293. package/out/src/services/chaintracker/chaintracks/createKnexChaintracks.d.ts +2 -2
  294. package/out/src/services/chaintracker/chaintracks/createKnexChaintracks.d.ts.map +1 -1
  295. package/out/src/services/chaintracker/chaintracks/createKnexChaintracks.js +3 -15
  296. package/out/src/services/chaintracker/chaintracks/createKnexChaintracks.js.map +1 -1
  297. package/out/src/services/chaintracker/chaintracks/createNoDbChaintracks.d.ts +2 -1
  298. package/out/src/services/chaintracker/chaintracks/createNoDbChaintracks.d.ts.map +1 -1
  299. package/out/src/services/chaintracker/chaintracks/createNoDbChaintracks.js +3 -15
  300. package/out/src/services/chaintracker/chaintracks/createNoDbChaintracks.js.map +1 -1
  301. package/out/src/services/chaintracker/chaintracks/index.mobile.d.ts +1 -1
  302. package/out/src/services/chaintracker/chaintracks/index.mobile.d.ts.map +1 -1
  303. package/out/src/services/chaintracker/chaintracks/index.mobile.js.map +1 -1
  304. package/out/src/services/chaintracker/chaintracks/util/BulkFileDataManager.d.ts +2 -0
  305. package/out/src/services/chaintracker/chaintracks/util/BulkFileDataManager.d.ts.map +1 -1
  306. package/out/src/services/chaintracker/chaintracks/util/BulkFileDataManager.js +64 -61
  307. package/out/src/services/chaintracker/chaintracks/util/BulkFileDataManager.js.map +1 -1
  308. package/out/src/services/chaintracker/chaintracks/util/BulkFileDataReader.d.ts.map +1 -1
  309. package/out/src/services/chaintracker/chaintracks/util/BulkFileDataReader.js.map +1 -1
  310. package/out/src/services/chaintracker/chaintracks/util/BulkFilesReader.d.ts.map +1 -1
  311. package/out/src/services/chaintracker/chaintracks/util/BulkFilesReader.js +4 -3
  312. package/out/src/services/chaintracker/chaintracks/util/BulkFilesReader.js.map +1 -1
  313. package/out/src/services/chaintracker/chaintracks/util/BulkHeaderFile.d.ts.map +1 -1
  314. package/out/src/services/chaintracker/chaintracks/util/BulkHeaderFile.js.map +1 -1
  315. package/out/src/services/chaintracker/chaintracks/util/ChaintracksFetch.d.ts.map +1 -1
  316. package/out/src/services/chaintracker/chaintracks/util/ChaintracksFetch.js.map +1 -1
  317. package/out/src/services/chaintracker/chaintracks/util/ChaintracksFs.d.ts +8 -10
  318. package/out/src/services/chaintracker/chaintracks/util/ChaintracksFs.d.ts.map +1 -1
  319. package/out/src/services/chaintracker/chaintracks/util/ChaintracksFs.js +14 -24
  320. package/out/src/services/chaintracker/chaintracks/util/ChaintracksFs.js.map +1 -1
  321. package/out/src/services/chaintracker/chaintracks/util/HeightRange.d.ts.map +1 -1
  322. package/out/src/services/chaintracker/chaintracks/util/HeightRange.js.map +1 -1
  323. package/out/src/services/chaintracker/chaintracks/util/SingleWriterMultiReaderLock.d.ts.map +1 -1
  324. package/out/src/services/chaintracker/chaintracks/util/SingleWriterMultiReaderLock.js.map +1 -1
  325. package/out/src/services/chaintracker/chaintracks/util/blockHeaderUtilities.d.ts +1 -11
  326. package/out/src/services/chaintracker/chaintracks/util/blockHeaderUtilities.d.ts.map +1 -1
  327. package/out/src/services/chaintracker/chaintracks/util/blockHeaderUtilities.js +20 -49
  328. package/out/src/services/chaintracker/chaintracks/util/blockHeaderUtilities.js.map +1 -1
  329. package/out/src/services/chaintracker/chaintracks/util/dirtyHashes.d.ts.map +1 -1
  330. package/out/src/services/chaintracker/chaintracks/util/dirtyHashes.js +4 -2
  331. package/out/src/services/chaintracker/chaintracks/util/dirtyHashes.js.map +1 -1
  332. package/out/src/services/chaintracker/chaintracks/util/validBulkHeaderFilesByFileHash.js.map +1 -1
  333. package/out/src/services/createDefaultWalletServicesOptions.d.ts +23 -14
  334. package/out/src/services/createDefaultWalletServicesOptions.d.ts.map +1 -1
  335. package/out/src/services/createDefaultWalletServicesOptions.js +1 -14
  336. package/out/src/services/createDefaultWalletServicesOptions.js.map +1 -1
  337. package/out/src/services/networkConfig.js.map +1 -1
  338. package/out/src/services/providers/ARC.d.ts +4 -0
  339. package/out/src/services/providers/ARC.d.ts.map +1 -1
  340. package/out/src/services/providers/ARC.js +96 -83
  341. package/out/src/services/providers/ARC.js.map +1 -1
  342. package/out/src/services/providers/ArcSSEClient.d.ts.map +1 -1
  343. package/out/src/services/providers/ArcSSEClient.js.map +1 -1
  344. package/out/src/services/providers/Arcade.d.ts +4 -0
  345. package/out/src/services/providers/Arcade.d.ts.map +1 -1
  346. package/out/src/services/providers/Arcade.js +118 -92
  347. package/out/src/services/providers/Arcade.js.map +1 -1
  348. package/out/src/services/providers/Bitails.d.ts.map +1 -1
  349. package/out/src/services/providers/Bitails.js +107 -86
  350. package/out/src/services/providers/Bitails.js.map +1 -1
  351. package/out/src/services/providers/SdkWhatsOnChain.d.ts.map +1 -1
  352. package/out/src/services/providers/SdkWhatsOnChain.js.map +1 -1
  353. package/out/src/services/providers/WhatsOnChain.d.ts.map +1 -1
  354. package/out/src/services/providers/WhatsOnChain.js +19 -6
  355. package/out/src/services/providers/WhatsOnChain.js.map +1 -1
  356. package/out/src/services/providers/exchangeRates.js +1 -1
  357. package/out/src/services/providers/exchangeRates.js.map +1 -1
  358. package/out/src/services/providers/getBeefForTxid.js.map +1 -1
  359. package/out/src/services/providers/whatsOnChainHelpers.js.map +1 -1
  360. package/out/src/signer/WalletSigner.d.ts.map +1 -1
  361. package/out/src/signer/WalletSigner.js.map +1 -1
  362. package/out/src/signer/actionBatch/ActionBatchPlanner.d.ts +29 -0
  363. package/out/src/signer/actionBatch/ActionBatchPlanner.d.ts.map +1 -0
  364. package/out/src/signer/actionBatch/ActionBatchPlanner.js +346 -0
  365. package/out/src/signer/actionBatch/ActionBatchPlanner.js.map +1 -0
  366. package/out/src/signer/actionBatch/ActionBatchWorkspace.d.ts +33 -0
  367. package/out/src/signer/actionBatch/ActionBatchWorkspace.d.ts.map +1 -0
  368. package/out/src/signer/actionBatch/ActionBatchWorkspace.js +869 -0
  369. package/out/src/signer/actionBatch/ActionBatchWorkspace.js.map +1 -0
  370. package/out/src/signer/actionBatch/actionBatchBootstrap.d.ts +11 -0
  371. package/out/src/signer/actionBatch/actionBatchBootstrap.d.ts.map +1 -0
  372. package/out/src/signer/actionBatch/actionBatchBootstrap.js +38 -0
  373. package/out/src/signer/actionBatch/actionBatchBootstrap.js.map +1 -0
  374. package/out/src/signer/methods/acquireDirectCertificate.js.map +1 -1
  375. package/out/src/signer/methods/buildSignableTransaction.d.ts.map +1 -1
  376. package/out/src/signer/methods/buildSignableTransaction.js +97 -107
  377. package/out/src/signer/methods/buildSignableTransaction.js.map +1 -1
  378. package/out/src/signer/methods/completeSignedTransaction.d.ts +3 -7
  379. package/out/src/signer/methods/completeSignedTransaction.d.ts.map +1 -1
  380. package/out/src/signer/methods/completeSignedTransaction.js +14 -57
  381. package/out/src/signer/methods/completeSignedTransaction.js.map +1 -1
  382. package/out/src/signer/methods/createAction.d.ts.map +1 -1
  383. package/out/src/signer/methods/createAction.js +50 -20
  384. package/out/src/signer/methods/createAction.js.map +1 -1
  385. package/out/src/signer/methods/internalizeAction.d.ts.map +1 -1
  386. package/out/src/signer/methods/internalizeAction.js +4 -4
  387. package/out/src/signer/methods/internalizeAction.js.map +1 -1
  388. package/out/src/signer/methods/proveCertificate.js.map +1 -1
  389. package/out/src/signer/methods/resultBeef.js.map +1 -1
  390. package/out/src/signer/methods/signAction.d.ts.map +1 -1
  391. package/out/src/signer/methods/signAction.js +29 -4
  392. package/out/src/signer/methods/signAction.js.map +1 -1
  393. package/out/src/signer/methods/verifyUnlockScripts.d.ts +17 -0
  394. package/out/src/signer/methods/verifyUnlockScripts.d.ts.map +1 -0
  395. package/out/src/signer/methods/verifyUnlockScripts.js +137 -0
  396. package/out/src/signer/methods/verifyUnlockScripts.js.map +1 -0
  397. package/out/src/storage/StorageIdb.d.ts +19 -3
  398. package/out/src/storage/StorageIdb.d.ts.map +1 -1
  399. package/out/src/storage/StorageIdb.js +232 -53
  400. package/out/src/storage/StorageIdb.js.map +1 -1
  401. package/out/src/storage/StorageKnex.d.ts +29 -1
  402. package/out/src/storage/StorageKnex.d.ts.map +1 -1
  403. package/out/src/storage/StorageKnex.js +225 -10
  404. package/out/src/storage/StorageKnex.js.map +1 -1
  405. package/out/src/storage/StorageProvider.d.ts +57 -1
  406. package/out/src/storage/StorageProvider.d.ts.map +1 -1
  407. package/out/src/storage/StorageProvider.js +277 -145
  408. package/out/src/storage/StorageProvider.js.map +1 -1
  409. package/out/src/storage/StorageReader.d.ts +13 -5
  410. package/out/src/storage/StorageReader.d.ts.map +1 -1
  411. package/out/src/storage/StorageReader.js +3 -0
  412. package/out/src/storage/StorageReader.js.map +1 -1
  413. package/out/src/storage/StorageReaderWriter.d.ts.map +1 -1
  414. package/out/src/storage/StorageReaderWriter.js.map +1 -1
  415. package/out/src/storage/StorageSyncReader.d.ts.map +1 -1
  416. package/out/src/storage/StorageSyncReader.js.map +1 -1
  417. package/out/src/storage/WalletStorageManager.d.ts +10 -0
  418. package/out/src/storage/WalletStorageManager.d.ts.map +1 -1
  419. package/out/src/storage/WalletStorageManager.js +49 -6
  420. package/out/src/storage/WalletStorageManager.js.map +1 -1
  421. package/out/src/storage/adminServer/adminServer.d.ts +79 -0
  422. package/out/src/storage/adminServer/adminServer.d.ts.map +1 -1
  423. package/out/src/storage/adminServer/adminServer.js +47 -16
  424. package/out/src/storage/adminServer/adminServer.js.map +1 -1
  425. package/out/src/storage/adminServer/adminUi.js.map +1 -1
  426. package/out/src/storage/idbHelpers.d.ts +2 -0
  427. package/out/src/storage/idbHelpers.d.ts.map +1 -1
  428. package/out/src/storage/idbHelpers.js +19 -0
  429. package/out/src/storage/idbHelpers.js.map +1 -1
  430. package/out/src/storage/index.all.js.map +1 -1
  431. package/out/src/storage/methods/ListActionsSpecOp.d.ts.map +1 -1
  432. package/out/src/storage/methods/ListActionsSpecOp.js +48 -71
  433. package/out/src/storage/methods/ListActionsSpecOp.js.map +1 -1
  434. package/out/src/storage/methods/ListOutputsSpecOp.d.ts.map +1 -1
  435. package/out/src/storage/methods/ListOutputsSpecOp.js +29 -27
  436. package/out/src/storage/methods/ListOutputsSpecOp.js.map +1 -1
  437. package/out/src/storage/methods/actionBatch.d.ts +15 -0
  438. package/out/src/storage/methods/actionBatch.d.ts.map +1 -0
  439. package/out/src/storage/methods/actionBatch.js +737 -0
  440. package/out/src/storage/methods/actionBatch.js.map +1 -0
  441. package/out/src/storage/methods/actionBatchBlobs.d.ts +15 -0
  442. package/out/src/storage/methods/actionBatchBlobs.d.ts.map +1 -0
  443. package/out/src/storage/methods/actionBatchBlobs.js +184 -0
  444. package/out/src/storage/methods/actionBatchBlobs.js.map +1 -0
  445. package/out/src/storage/methods/actionBatchValidation.d.ts +17 -0
  446. package/out/src/storage/methods/actionBatchValidation.d.ts.map +1 -0
  447. package/out/src/storage/methods/actionBatchValidation.js +416 -0
  448. package/out/src/storage/methods/actionBatchValidation.js.map +1 -0
  449. package/out/src/storage/methods/actionPlanning.d.ts +12 -0
  450. package/out/src/storage/methods/actionPlanning.d.ts.map +1 -0
  451. package/out/src/storage/methods/actionPlanning.js +48 -0
  452. package/out/src/storage/methods/actionPlanning.js.map +1 -0
  453. package/out/src/storage/methods/attemptToPostReqsToNetwork.d.ts +0 -21
  454. package/out/src/storage/methods/attemptToPostReqsToNetwork.d.ts.map +1 -1
  455. package/out/src/storage/methods/attemptToPostReqsToNetwork.js +43 -51
  456. package/out/src/storage/methods/attemptToPostReqsToNetwork.js.map +1 -1
  457. package/out/src/storage/methods/createAction.d.ts +1 -1
  458. package/out/src/storage/methods/createAction.d.ts.map +1 -1
  459. package/out/src/storage/methods/createAction.js +66 -63
  460. package/out/src/storage/methods/createAction.js.map +1 -1
  461. package/out/src/storage/methods/generateChange.d.ts +2 -2
  462. package/out/src/storage/methods/generateChange.d.ts.map +1 -1
  463. package/out/src/storage/methods/generateChange.js +66 -38
  464. package/out/src/storage/methods/generateChange.js.map +1 -1
  465. package/out/src/storage/methods/getBeefForTransaction.d.ts.map +1 -1
  466. package/out/src/storage/methods/getBeefForTransaction.js +48 -42
  467. package/out/src/storage/methods/getBeefForTransaction.js.map +1 -1
  468. package/out/src/storage/methods/getSyncChunk.d.ts.map +1 -1
  469. package/out/src/storage/methods/getSyncChunk.js +8 -6
  470. package/out/src/storage/methods/getSyncChunk.js.map +1 -1
  471. package/out/src/storage/methods/internalizeAction.js +145 -121
  472. package/out/src/storage/methods/internalizeAction.js.map +1 -1
  473. package/out/src/storage/methods/listActionsIdb.js.map +1 -1
  474. package/out/src/storage/methods/listActionsKnex.js +1 -1
  475. package/out/src/storage/methods/listActionsKnex.js.map +1 -1
  476. package/out/src/storage/methods/listCertificates.d.ts +1 -1
  477. package/out/src/storage/methods/listCertificates.d.ts.map +1 -1
  478. package/out/src/storage/methods/listCertificates.js +1 -1
  479. package/out/src/storage/methods/listCertificates.js.map +1 -1
  480. package/out/src/storage/methods/listOutputsIdb.d.ts +1 -1
  481. package/out/src/storage/methods/listOutputsIdb.d.ts.map +1 -1
  482. package/out/src/storage/methods/listOutputsIdb.js +133 -152
  483. package/out/src/storage/methods/listOutputsIdb.js.map +1 -1
  484. package/out/src/storage/methods/listOutputsKnex.d.ts +1 -1
  485. package/out/src/storage/methods/listOutputsKnex.d.ts.map +1 -1
  486. package/out/src/storage/methods/listOutputsKnex.js +213 -254
  487. package/out/src/storage/methods/listOutputsKnex.js.map +1 -1
  488. package/out/src/storage/methods/managedChange.d.ts +3 -3
  489. package/out/src/storage/methods/managedChange.d.ts.map +1 -1
  490. package/out/src/storage/methods/managedChange.js +1 -2
  491. package/out/src/storage/methods/managedChange.js.map +1 -1
  492. package/out/src/storage/methods/offsetKey.d.ts.map +1 -1
  493. package/out/src/storage/methods/offsetKey.js +0 -1
  494. package/out/src/storage/methods/offsetKey.js.map +1 -1
  495. package/out/src/storage/methods/processAction.d.ts +2 -0
  496. package/out/src/storage/methods/processAction.d.ts.map +1 -1
  497. package/out/src/storage/methods/processAction.js +8 -8
  498. package/out/src/storage/methods/processAction.js.map +1 -1
  499. package/out/src/storage/methods/purgeData.d.ts.map +1 -1
  500. package/out/src/storage/methods/purgeData.js +157 -179
  501. package/out/src/storage/methods/purgeData.js.map +1 -1
  502. package/out/src/storage/methods/purgeDataIdb.d.ts +1 -1
  503. package/out/src/storage/methods/purgeDataIdb.d.ts.map +1 -1
  504. package/out/src/storage/methods/purgeDataIdb.js +1 -1
  505. package/out/src/storage/methods/purgeDataIdb.js.map +1 -1
  506. package/out/src/storage/methods/reviewStatus.js +6 -6
  507. package/out/src/storage/methods/reviewStatus.js.map +1 -1
  508. package/out/src/storage/methods/reviewStatusIdb.js.map +1 -1
  509. package/out/src/storage/methods/utils.Buffer.js.map +1 -1
  510. package/out/src/storage/methods/utils.js.map +1 -1
  511. package/out/src/storage/portable/index.js +2 -2
  512. package/out/src/storage/portable/index.js.map +1 -1
  513. package/out/src/storage/remoting/BinaryJson.d.ts.map +1 -1
  514. package/out/src/storage/remoting/BinaryJson.js +84 -38
  515. package/out/src/storage/remoting/BinaryJson.js.map +1 -1
  516. package/out/src/storage/remoting/KnexSessionManager.d.ts.map +1 -1
  517. package/out/src/storage/remoting/KnexSessionManager.js.map +1 -1
  518. package/out/src/storage/remoting/RateLimitPolicy.d.ts +10 -0
  519. package/out/src/storage/remoting/RateLimitPolicy.d.ts.map +1 -0
  520. package/out/src/storage/remoting/RateLimitPolicy.js +37 -0
  521. package/out/src/storage/remoting/RateLimitPolicy.js.map +1 -0
  522. package/out/src/storage/remoting/StorageClient.d.ts +2 -0
  523. package/out/src/storage/remoting/StorageClient.d.ts.map +1 -1
  524. package/out/src/storage/remoting/StorageClient.js +82 -50
  525. package/out/src/storage/remoting/StorageClient.js.map +1 -1
  526. package/out/src/storage/remoting/StorageClientBase.d.ts +23 -4
  527. package/out/src/storage/remoting/StorageClientBase.d.ts.map +1 -1
  528. package/out/src/storage/remoting/StorageClientBase.js +97 -4
  529. package/out/src/storage/remoting/StorageClientBase.js.map +1 -1
  530. package/out/src/storage/remoting/StorageMobile.d.ts.map +1 -1
  531. package/out/src/storage/remoting/StorageMobile.js +34 -22
  532. package/out/src/storage/remoting/StorageMobile.js.map +1 -1
  533. package/out/src/storage/remoting/StorageServer.d.ts +62 -1
  534. package/out/src/storage/remoting/StorageServer.d.ts.map +1 -1
  535. package/out/src/storage/remoting/StorageServer.js +451 -172
  536. package/out/src/storage/remoting/StorageServer.js.map +1 -1
  537. package/out/src/storage/remoting/edgePolicy.d.ts +57 -0
  538. package/out/src/storage/remoting/edgePolicy.d.ts.map +1 -0
  539. package/out/src/storage/remoting/edgePolicy.js +387 -0
  540. package/out/src/storage/remoting/edgePolicy.js.map +1 -0
  541. package/out/src/storage/remoting/entityValidationHelpers.d.ts.map +1 -1
  542. package/out/src/storage/remoting/entityValidationHelpers.js +22 -5
  543. package/out/src/storage/remoting/entityValidationHelpers.js.map +1 -1
  544. package/out/src/storage/schema/KnexMigrations.d.ts.map +1 -1
  545. package/out/src/storage/schema/KnexMigrations.js +56 -0
  546. package/out/src/storage/schema/KnexMigrations.js.map +1 -1
  547. package/out/src/storage/schema/StorageIdbSchema.d.ts +24 -0
  548. package/out/src/storage/schema/StorageIdbSchema.d.ts.map +1 -1
  549. package/out/src/storage/schema/entities/EntityBase.d.ts.map +1 -1
  550. package/out/src/storage/schema/entities/EntityBase.js.map +1 -1
  551. package/out/src/storage/schema/entities/EntityCertificate.d.ts.map +1 -1
  552. package/out/src/storage/schema/entities/EntityCertificate.js.map +1 -1
  553. package/out/src/storage/schema/entities/EntityCertificateField.d.ts.map +1 -1
  554. package/out/src/storage/schema/entities/EntityCertificateField.js.map +1 -1
  555. package/out/src/storage/schema/entities/EntityCommission.d.ts.map +1 -1
  556. package/out/src/storage/schema/entities/EntityCommission.js.map +1 -1
  557. package/out/src/storage/schema/entities/EntityOutput.d.ts.map +1 -1
  558. package/out/src/storage/schema/entities/EntityOutput.js.map +1 -1
  559. package/out/src/storage/schema/entities/EntityOutputBasket.d.ts.map +1 -1
  560. package/out/src/storage/schema/entities/EntityOutputBasket.js.map +1 -1
  561. package/out/src/storage/schema/entities/EntityOutputTag.d.ts.map +1 -1
  562. package/out/src/storage/schema/entities/EntityOutputTag.js.map +1 -1
  563. package/out/src/storage/schema/entities/EntityOutputTagMap.d.ts.map +1 -1
  564. package/out/src/storage/schema/entities/EntityOutputTagMap.js.map +1 -1
  565. package/out/src/storage/schema/entities/EntityProvenTx.d.ts +3 -0
  566. package/out/src/storage/schema/entities/EntityProvenTx.d.ts.map +1 -1
  567. package/out/src/storage/schema/entities/EntityProvenTx.js +46 -36
  568. package/out/src/storage/schema/entities/EntityProvenTx.js.map +1 -1
  569. package/out/src/storage/schema/entities/EntityProvenTxReq.d.ts +2 -2
  570. package/out/src/storage/schema/entities/EntityProvenTxReq.d.ts.map +1 -1
  571. package/out/src/storage/schema/entities/EntityProvenTxReq.js +12 -10
  572. package/out/src/storage/schema/entities/EntityProvenTxReq.js.map +1 -1
  573. package/out/src/storage/schema/entities/EntitySyncState.d.ts.map +1 -1
  574. package/out/src/storage/schema/entities/EntitySyncState.js +25 -34
  575. package/out/src/storage/schema/entities/EntitySyncState.js.map +1 -1
  576. package/out/src/storage/schema/entities/EntityTransaction.d.ts.map +1 -1
  577. package/out/src/storage/schema/entities/EntityTransaction.js.map +1 -1
  578. package/out/src/storage/schema/entities/EntityTxLabel.d.ts.map +1 -1
  579. package/out/src/storage/schema/entities/EntityTxLabel.js.map +1 -1
  580. package/out/src/storage/schema/entities/EntityTxLabelMap.d.ts.map +1 -1
  581. package/out/src/storage/schema/entities/EntityTxLabelMap.js.map +1 -1
  582. package/out/src/storage/schema/entities/EntityUser.d.ts.map +1 -1
  583. package/out/src/storage/schema/entities/EntityUser.js.map +1 -1
  584. package/out/src/storage/schema/entities/MergeEntity.d.ts.map +1 -1
  585. package/out/src/storage/schema/entities/MergeEntity.js +9 -14
  586. package/out/src/storage/schema/entities/MergeEntity.js.map +1 -1
  587. package/out/src/storage/schema/tables/TableActionBatch.d.ts +26 -0
  588. package/out/src/storage/schema/tables/TableActionBatch.d.ts.map +1 -0
  589. package/out/src/storage/schema/tables/TableActionBatch.js +3 -0
  590. package/out/src/storage/schema/tables/TableActionBatch.js.map +1 -0
  591. package/out/src/storage/schema/tables/TableAuthSession.js.map +1 -1
  592. package/out/src/storage/schema/tables/index.d.ts +1 -0
  593. package/out/src/storage/schema/tables/index.d.ts.map +1 -1
  594. package/out/src/storage/schema/tables/index.js +1 -0
  595. package/out/src/storage/schema/tables/index.js.map +1 -1
  596. package/out/src/storage/storageProviderHelpers.js.map +1 -1
  597. package/out/src/storage/sync/StorageMySQLDojoReader.d.ts +3 -0
  598. package/out/src/storage/sync/StorageMySQLDojoReader.d.ts.map +1 -1
  599. package/out/src/storage/sync/StorageMySQLDojoReader.js +30 -16
  600. package/out/src/storage/sync/StorageMySQLDojoReader.js.map +1 -1
  601. package/out/src/utility/Format.d.ts.map +1 -1
  602. package/out/src/utility/Format.js +2 -2
  603. package/out/src/utility/Format.js.map +1 -1
  604. package/out/src/utility/ScriptTemplateBRC29.d.ts.map +1 -1
  605. package/out/src/utility/ScriptTemplateBRC29.js.map +1 -1
  606. package/out/src/utility/actionBatchDigest.d.ts +9 -0
  607. package/out/src/utility/actionBatchDigest.d.ts.map +1 -0
  608. package/out/src/utility/actionBatchDigest.js +86 -0
  609. package/out/src/utility/actionBatchDigest.js.map +1 -0
  610. package/out/src/utility/actionBatchPack.d.ts +16 -0
  611. package/out/src/utility/actionBatchPack.d.ts.map +1 -0
  612. package/out/src/utility/actionBatchPack.js +220 -0
  613. package/out/src/utility/actionBatchPack.js.map +1 -0
  614. package/out/src/utility/aggregateResults.d.ts.map +1 -1
  615. package/out/src/utility/aggregateResults.js.map +1 -1
  616. package/out/src/utility/beefForTxids.d.ts +9 -0
  617. package/out/src/utility/beefForTxids.d.ts.map +1 -0
  618. package/out/src/utility/beefForTxids.js +35 -0
  619. package/out/src/utility/beefForTxids.js.map +1 -0
  620. package/out/src/utility/brc114ActionTimeLabels.d.ts.map +1 -1
  621. package/out/src/utility/brc114ActionTimeLabels.js +26 -30
  622. package/out/src/utility/brc114ActionTimeLabels.js.map +1 -1
  623. package/out/src/utility/formatUnknown.d.ts +6 -0
  624. package/out/src/utility/formatUnknown.d.ts.map +1 -0
  625. package/out/src/utility/formatUnknown.js +39 -0
  626. package/out/src/utility/formatUnknown.js.map +1 -0
  627. package/out/src/utility/hashWasm.d.ts +5 -0
  628. package/out/src/utility/hashWasm.d.ts.map +1 -0
  629. package/out/src/utility/hashWasm.js +15 -0
  630. package/out/src/utility/hashWasm.js.map +1 -0
  631. package/out/src/utility/identityUtils.d.ts.map +1 -1
  632. package/out/src/utility/identityUtils.js +2 -4
  633. package/out/src/utility/identityUtils.js.map +1 -1
  634. package/out/src/utility/parseTxScriptOffsets.d.ts +1 -1
  635. package/out/src/utility/parseTxScriptOffsets.d.ts.map +1 -1
  636. package/out/src/utility/parseTxScriptOffsets.js +1 -1
  637. package/out/src/utility/parseTxScriptOffsets.js.map +1 -1
  638. package/out/src/utility/stampLog.d.ts.map +1 -1
  639. package/out/src/utility/stampLog.js +49 -42
  640. package/out/src/utility/stampLog.js.map +1 -1
  641. package/out/src/utility/traceContext.d.ts +13 -0
  642. package/out/src/utility/traceContext.d.ts.map +1 -0
  643. package/out/src/utility/traceContext.js +34 -0
  644. package/out/src/utility/traceContext.js.map +1 -0
  645. package/out/src/utility/tscProofToMerklePath.d.ts.map +1 -1
  646. package/out/src/utility/tscProofToMerklePath.js +1 -1
  647. package/out/src/utility/tscProofToMerklePath.js.map +1 -1
  648. package/out/src/utility/utilityHelpers.buffer.js.map +1 -1
  649. package/out/src/utility/utilityHelpers.d.ts +2 -2
  650. package/out/src/utility/utilityHelpers.d.ts.map +1 -1
  651. package/out/src/utility/utilityHelpers.js +8 -4
  652. package/out/src/utility/utilityHelpers.js.map +1 -1
  653. package/out/src/utility/utilityHelpers.noBuffer.d.ts.map +1 -1
  654. package/out/src/utility/utilityHelpers.noBuffer.js +1 -2
  655. package/out/src/utility/utilityHelpers.noBuffer.js.map +1 -1
  656. package/out/src/wab-client/WABClient.d.ts +36 -90
  657. package/out/src/wab-client/WABClient.d.ts.map +1 -1
  658. package/out/src/wab-client/WABClient.js +103 -151
  659. package/out/src/wab-client/WABClient.js.map +1 -1
  660. package/out/src/wab-client/WABTransport.d.ts +81 -0
  661. package/out/src/wab-client/WABTransport.d.ts.map +1 -0
  662. package/out/src/wab-client/WABTransport.js +420 -0
  663. package/out/src/wab-client/WABTransport.js.map +1 -0
  664. package/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.d.ts +10 -10
  665. package/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.d.ts.map +1 -1
  666. package/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.js +16 -21
  667. package/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.js.map +1 -1
  668. package/out/src/wab-client/auth-method-interactors/DevConsoleInteractor.js.map +1 -1
  669. package/out/src/wab-client/auth-method-interactors/PersonaIDInteractor.js.map +1 -1
  670. package/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.d.ts +2 -1
  671. package/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.d.ts.map +1 -1
  672. package/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.js +14 -0
  673. package/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.js.map +1 -1
  674. package/package.json +66 -30
  675. package/license.md +0 -28
package/docs/storage.md CHANGED
@@ -22,28 +22,25 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
22
22
 
23
23
  | | | |
24
24
  | --- | --- | --- |
25
- | [AdminStatsResult](#interface-adminstatsresult) | [MonitorAdminContextConfig](#interface-monitoradmincontextconfig) | [TableCertificateField](#interface-tablecertificatefield) |
26
- | [AggregatePostBeefTxResult](#interface-aggregatepostbeeftxresult) | [PostBeefResultForTxidApi](#interface-postbeefresultfortxidapi) | [TableCertificateX](#interface-tablecertificatex) |
27
- | [BRC38ImportOptions](#interface-brc38importoptions) | [PostReqsToNetworkDetails](#interface-postreqstonetworkdetails) | [TableCommission](#interface-tablecommission) |
28
- | [BRC38ImportResult](#interface-brc38importresult) | [PostReqsToNetworkResult](#interface-postreqstonetworkresult) | [TableMonitorEvent](#interface-tablemonitorevent) |
29
- | [BRC38Tables](#interface-brc38tables) | [ProvenTxFromTxidResult](#interface-proventxfromtxidresult) | [TableOutput](#interface-tableoutput) |
30
- | [BRC38WalletData](#interface-brc38walletdata) | [ProvenTxReqHistory](#interface-proventxreqhistory) | [TableOutputBasket](#interface-tableoutputbasket) |
31
- | [BRC39Options](#interface-brc39options) | [ProvenTxReqHistorySummaryApi](#interface-proventxreqhistorysummaryapi) | [TableOutputTag](#interface-tableoutputtag) |
32
- | [CommitNewTxResults](#interface-commitnewtxresults) | [ProvenTxReqNotify](#interface-proventxreqnotify) | [TableOutputTagMap](#interface-tableoutputtagmap) |
33
- | [EntitySyncMap](#interface-entitysyncmap) | [SpentInputTransition](#interface-spentinputtransition) | [TableOutputX](#interface-tableoutputx) |
34
- | [GenerateChangeSdkChangeInput](#interface-generatechangesdkchangeinput) | [StorageAdminStats](#interface-storageadminstats) | [TableProvenTx](#interface-tableproventx) |
35
- | [GenerateChangeSdkChangeOutput](#interface-generatechangesdkchangeoutput) | [StorageClientOptions](#interface-storageclientoptions) | [TableProvenTxReq](#interface-tableproventxreq) |
36
- | [GenerateChangeSdkInput](#interface-generatechangesdkinput) | [StorageIdbOptions](#interface-storageidboptions) | [TableProvenTxReqDynamics](#interface-tableproventxreqdynamics) |
37
- | [GenerateChangeSdkOutput](#interface-generatechangesdkoutput) | [StorageIdbSchema](#interface-storageidbschema) | [TableSettings](#interface-tablesettings) |
38
- | [GenerateChangeSdkParams](#interface-generatechangesdkparams) | [StorageKnexOptions](#interface-storageknexoptions) | [TableSyncState](#interface-tablesyncstate) |
39
- | [GenerateChangeSdkResult](#interface-generatechangesdkresult) | [StorageMySQLDojoReaderOptions](#interface-storagemysqldojoreaderoptions) | [TableTransaction](#interface-tabletransaction) |
40
- | [GenerateChangeSdkStorageChange](#interface-generatechangesdkstoragechange) | [StorageProviderOptions](#interface-storageprovideroptions) | [TableTxLabel](#interface-tabletxlabel) |
41
- | [GetReqsAndBeefDetail](#interface-getreqsandbeefdetail) | [StorageReaderOptions](#interface-storagereaderoptions) | [TableTxLabelMap](#interface-tabletxlabelmap) |
42
- | [GetReqsAndBeefResult](#interface-getreqsandbeefresult) | [StorageReaderWriterOptions](#interface-storagereaderwriteroptions) | [TableUser](#interface-tableuser) |
43
- | [KnexSessionManagerOptions](#interface-knexsessionmanageroptions) | [SyncError](#interface-syncerror) | [ValidateGenerateChangeSdkParamsResult](#interface-validategeneratechangesdkparamsresult) |
44
- | [ListActionsSpecOp](#interface-listactionsspecop) | [SyncMap](#interface-syncmap) | [VerifyAndRepairBeefResult](#interface-verifyandrepairbeefresult) |
45
- | [ListOutputsSpecOp](#interface-listoutputsspecop) | [TableAuthSession](#interface-tableauthsession) | [WalletStorageServerOptions](#interface-walletstorageserveroptions) |
46
- | [MonitorAdminContext](#interface-monitoradmincontext) | [TableCertificate](#interface-tablecertificate) | [XValidCreateActionOutput](#interface-xvalidcreateactionoutput) |
25
+ | [AdminStatsResult](#interface-adminstatsresult) | [ProvenTxFromTxidResult](#interface-proventxfromtxidresult) | [TableOutputBasket](#interface-tableoutputbasket) |
26
+ | [CommitNewTxResults](#interface-commitnewtxresults) | [ProvenTxReqHistory](#interface-proventxreqhistory) | [TableOutputTag](#interface-tableoutputtag) |
27
+ | [EntitySyncMap](#interface-entitysyncmap) | [ProvenTxReqHistorySummaryApi](#interface-proventxreqhistorysummaryapi) | [TableOutputTagMap](#interface-tableoutputtagmap) |
28
+ | [GenerateChangeSdkChangeInput](#interface-generatechangesdkchangeinput) | [ProvenTxReqNotify](#interface-proventxreqnotify) | [TableOutputX](#interface-tableoutputx) |
29
+ | [GenerateChangeSdkChangeOutput](#interface-generatechangesdkchangeoutput) | [StorageAdminStats](#interface-storageadminstats) | [TableProvenTx](#interface-tableproventx) |
30
+ | [GenerateChangeSdkInput](#interface-generatechangesdkinput) | [StorageIdbOptions](#interface-storageidboptions) | [TableProvenTxReq](#interface-tableproventxreq) |
31
+ | [GenerateChangeSdkOutput](#interface-generatechangesdkoutput) | [StorageIdbSchema](#interface-storageidbschema) | [TableProvenTxReqDynamics](#interface-tableproventxreqdynamics) |
32
+ | [GenerateChangeSdkParams](#interface-generatechangesdkparams) | [StorageKnexOptions](#interface-storageknexoptions) | [TableSettings](#interface-tablesettings) |
33
+ | [GenerateChangeSdkResult](#interface-generatechangesdkresult) | [StorageProviderOptions](#interface-storageprovideroptions) | [TableSyncState](#interface-tablesyncstate) |
34
+ | [GenerateChangeSdkStorageChange](#interface-generatechangesdkstoragechange) | [StorageReaderOptions](#interface-storagereaderoptions) | [TableTransaction](#interface-tabletransaction) |
35
+ | [GetReqsAndBeefDetail](#interface-getreqsandbeefdetail) | [StorageReaderWriterOptions](#interface-storagereaderwriteroptions) | [TableTxLabel](#interface-tabletxlabel) |
36
+ | [GetReqsAndBeefResult](#interface-getreqsandbeefresult) | [SyncError](#interface-syncerror) | [TableTxLabelMap](#interface-tabletxlabelmap) |
37
+ | [ListActionsSpecOp](#interface-listactionsspecop) | [SyncMap](#interface-syncmap) | [TableUser](#interface-tableuser) |
38
+ | [ListOutputsSpecOp](#interface-listoutputsspecop) | [TableCertificate](#interface-tablecertificate) | [ValidateGenerateChangeSdkParamsResult](#interface-validategeneratechangesdkparamsresult) |
39
+ | [MonitorAdminContext](#interface-monitoradmincontext) | [TableCertificateField](#interface-tablecertificatefield) | [VerifyAndRepairBeefResult](#interface-verifyandrepairbeefresult) |
40
+ | [MonitorAdminContextConfig](#interface-monitoradmincontextconfig) | [TableCertificateX](#interface-tablecertificatex) | [WalletStorageServerOptions](#interface-walletstorageserveroptions) |
41
+ | [PostBeefResultForTxidApi](#interface-postbeefresultfortxidapi) | [TableCommission](#interface-tablecommission) | [XValidCreateActionOutput](#interface-xvalidcreateactionoutput) |
42
+ | [PostReqsToNetworkDetails](#interface-postreqstonetworkdetails) | [TableMonitorEvent](#interface-tablemonitorevent) | |
43
+ | [PostReqsToNetworkResult](#interface-postreqstonetworkresult) | [TableOutput](#interface-tableoutput) | |
47
44
 
48
45
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
49
46
 
@@ -58,117 +55,7 @@ export interface AdminStatsResult extends StorageAdminStats {
58
55
  }
59
56
  ```
60
57
 
61
- See also: [ServicesCallHistory](./client.md#interface-servicescallhistory), [StorageAdminStats](./storage.md#interface-storageadminstats)
62
-
63
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
64
-
65
- ---
66
- ##### Interface: AggregatePostBeefTxResult
67
-
68
- ```ts
69
- export interface AggregatePostBeefTxResult {
70
- txid: string;
71
- txidResults: sdk.PostTxResultForTxid[];
72
- status: AggregateStatus;
73
- vreq: PostReqsToNetworkDetails;
74
- successCount: number;
75
- doubleSpendCount: number;
76
- statusErrorCount: number;
77
- serviceErrorCount: number;
78
- competingTxs: string[];
79
- }
80
- ```
81
-
82
- See also: [PostReqsToNetworkDetails](./storage.md#interface-postreqstonetworkdetails), [PostTxResultForTxid](./client.md#interface-posttxresultfortxid)
83
-
84
- ###### Property competingTxs
85
-
86
- Any competing double spend txids reported for this txid
87
-
88
- ```ts
89
- competingTxs: string[]
90
- ```
91
-
92
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
93
-
94
- ---
95
- ##### Interface: BRC38ImportOptions
96
-
97
- ```ts
98
- export interface BRC38ImportOptions {
99
- mode: "merge" | "restore";
100
- }
101
- ```
102
-
103
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
104
-
105
- ---
106
- ##### Interface: BRC38ImportResult
107
-
108
- ```ts
109
- export interface BRC38ImportResult {
110
- mode: "merge" | "restore";
111
- identityKey: string;
112
- userId: number;
113
- inserts: number;
114
- updates: number;
115
- }
116
- ```
117
-
118
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
119
-
120
- ---
121
- ##### Interface: BRC38Tables
122
-
123
- ```ts
124
- export interface BRC38Tables {
125
- provenTxs: PortableRow[];
126
- provenTxReqs: PortableRow[];
127
- outputBaskets: PortableRow[];
128
- transactions: PortableRow[];
129
- commissions: PortableRow[];
130
- outputs: PortableRow[];
131
- outputTags: PortableRow[];
132
- outputTagMaps: PortableRow[];
133
- txLabels: PortableRow[];
134
- txLabelMaps: PortableRow[];
135
- certificates: PortableRow[];
136
- certificateFields: PortableRow[];
137
- syncStates: PortableRow[];
138
- }
139
- ```
140
-
141
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
142
-
143
- ---
144
- ##### Interface: BRC38WalletData
145
-
146
- ```ts
147
- export interface BRC38WalletData {
148
- brc: 38;
149
- title: "User Wallet Data Format";
150
- formatVersion: 1;
151
- exportedAt: string;
152
- sourceStorage: PortableRow;
153
- user: PortableRow;
154
- tables: BRC38Tables;
155
- }
156
- ```
157
-
158
- See also: [BRC38Tables](./storage.md#interface-brc38tables)
159
-
160
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
161
-
162
- ---
163
- ##### Interface: BRC39Options
164
-
165
- ```ts
166
- export interface BRC39Options {
167
- iterations?: number;
168
- memoryKiB?: number;
169
- parallelism?: number;
170
- }
171
- ```
58
+ See also: [ServicesCallHistory](./client.md#type-servicescallhistory), [StorageAdminStats](./storage.md#interface-storageadminstats)
172
59
 
173
60
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
174
61
 
@@ -426,34 +313,6 @@ See also: [GetReqsAndBeefDetail](./storage.md#interface-getreqsandbeefdetail)
426
313
 
427
314
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
428
315
 
429
- ---
430
- ##### Interface: KnexSessionManagerOptions
431
-
432
- ```ts
433
- export interface KnexSessionManagerOptions {
434
- ttlMs?: number;
435
- now?: () => number;
436
- }
437
- ```
438
-
439
- ###### Property now
440
-
441
- Testable clock source. Defaults to `Date.now`.
442
-
443
- ```ts
444
- now?: () => number
445
- ```
446
-
447
- ###### Property ttlMs
448
-
449
- Session lifetime since its most recent authenticated use. Default: 24 hours.
450
-
451
- ```ts
452
- ttlMs?: number
453
- ```
454
-
455
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
456
-
457
316
  ---
458
317
  ##### Interface: ListActionsSpecOp
459
318
 
@@ -462,7 +321,7 @@ export interface ListActionsSpecOp {
462
321
  name: string;
463
322
  labelsToIntercept?: string[];
464
323
  setStatusFilter?: () => TransactionStatus[];
465
- postProcess?: (s: StorageProvider, auth: AuthId, vargs: Validation.ValidListActionsArgs, specOpLabels: string[], txs: Array<Partial<TableTransaction>>) => Promise<void>;
324
+ postProcess?: (s: StorageProvider, auth: AuthId, vargs: Validation.ValidListActionsArgs, specOpLabels: string[], txs: Partial<TableTransaction>[]) => Promise<void>;
466
325
  }
467
326
  ```
468
327
 
@@ -491,7 +350,6 @@ export interface ListOutputsSpecOp {
491
350
  includeOutputScripts?: boolean;
492
351
  includeSpent?: boolean;
493
352
  totalOutputsIsSumOfSatoshis?: boolean;
494
- managedChangeOnly?: boolean;
495
353
  resultFromTags?: (s: StorageProvider, auth: AuthId, vargs: Validation.ValidListOutputsArgs, specOpTags: string[]) => Promise<ListOutputsResult>;
496
354
  resultFromOutputs?: (s: StorageProvider, auth: AuthId, vargs: Validation.ValidListOutputsArgs, specOpTags: string[], outputs: TableOutput[]) => Promise<ListOutputsResult>;
497
355
  filterOutputs?: (s: StorageProvider, auth: AuthId, vargs: Validation.ValidListOutputsArgs, specOpTags: string[], outputs: TableOutput[]) => Promise<TableOutput[]>;
@@ -502,14 +360,6 @@ export interface ListOutputsSpecOp {
502
360
 
503
361
  See also: [AuthId](./client.md#interface-authid), [StorageProvider](./storage.md#class-storageprovider), [TableOutput](./storage.md#interface-tableoutput)
504
362
 
505
- ###### Property managedChangeOnly
506
-
507
- Restrict the operation to wallet-managed, BRC-29-signable change.
508
-
509
- ```ts
510
- managedChangeOnly?: boolean
511
- ```
512
-
513
363
  ###### Property tagsParamsCount
514
364
 
515
365
  How many positional tags to intercept.
@@ -668,7 +518,7 @@ export interface ProvenTxReqHistory {
668
518
  }
669
519
  ```
670
520
 
671
- See also: [ReqHistoryNote](./client.md#interface-reqhistorynote)
521
+ See also: [ReqHistoryNote](./client.md#type-reqhistorynote)
672
522
 
673
523
  ###### Property notes
674
524
 
@@ -678,7 +528,7 @@ Values are a description of what happened.
678
528
  ```ts
679
529
  notes?: ReqHistoryNote[]
680
530
  ```
681
- See also: [ReqHistoryNote](./client.md#interface-reqhistorynote)
531
+ See also: [ReqHistoryNote](./client.md#type-reqhistorynote)
682
532
 
683
533
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
684
534
 
@@ -709,26 +559,6 @@ export interface ProvenTxReqNotify {
709
559
 
710
560
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
711
561
 
712
- ---
713
- ##### Interface: SpentInputTransition
714
-
715
- ```ts
716
- export interface SpentInputTransition {
717
- outputId: number;
718
- setSpentBy: boolean;
719
- }
720
- ```
721
-
722
- ###### Property setSpentBy
723
-
724
- true if the call set spentBy; false if only spendable was flipped.
725
-
726
- ```ts
727
- setSpentBy: boolean
728
- ```
729
-
730
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
731
-
732
562
  ---
733
563
  ##### Interface: StorageAdminStats
734
564
 
@@ -809,27 +639,6 @@ export interface StorageAdminStats {
809
639
 
810
640
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
811
641
 
812
- ---
813
- ##### Interface: StorageClientOptions
814
-
815
- ```ts
816
- export interface StorageClientOptions {
817
- binaryRequests?: boolean;
818
- }
819
- ```
820
-
821
- ###### Property binaryRequests
822
-
823
- Send compact tagged binary request values after the server advertises
824
- support. Leave disabled during rolling deployments where an endpoint may
825
- still route requests to legacy server instances.
826
-
827
- ```ts
828
- binaryRequests?: boolean
829
- ```
830
-
831
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
832
-
833
642
  ---
834
643
  ##### Interface: StorageIdbOptions
835
644
 
@@ -1020,28 +829,6 @@ knex: Knex
1020
829
 
1021
830
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
1022
831
 
1023
- ---
1024
- ##### Interface: StorageMySQLDojoReaderOptions
1025
-
1026
- ```ts
1027
- export interface StorageMySQLDojoReaderOptions extends StorageReaderOptions {
1028
- chain: Chain;
1029
- knex: Knex;
1030
- }
1031
- ```
1032
-
1033
- See also: [Chain](./client.md#type-chain), [StorageReaderOptions](./storage.md#interface-storagereaderoptions)
1034
-
1035
- ###### Property knex
1036
-
1037
- Knex database interface initialized with valid connection configuration.
1038
-
1039
- ```ts
1040
- knex: Knex
1041
- ```
1042
-
1043
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
1044
-
1045
832
  ---
1046
833
  ##### Interface: StorageProviderOptions
1047
834
 
@@ -1051,6 +838,7 @@ export interface StorageProviderOptions extends StorageReaderWriterOptions {
1051
838
  feeModel: StorageFeeModel;
1052
839
  commissionSatoshis: number;
1053
840
  commissionPubKeyHex?: PubKeyHex;
841
+ scriptVerifier?: SpendVerifierInterface;
1054
842
  }
1055
843
  ```
1056
844
 
@@ -1075,6 +863,15 @@ A value of zero disables commission fees.
1075
863
  commissionSatoshis: number
1076
864
  ```
1077
865
 
866
+ ###### Property scriptVerifier
867
+
868
+ Optional verifier for server-side action-batch script checks. This Wallet
869
+ Toolbox extension leaves the BRC-100 interface unchanged.
870
+
871
+ ```ts
872
+ scriptVerifier?: SpendVerifierInterface
873
+ ```
874
+
1078
875
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
1079
876
 
1080
877
  ---
@@ -1139,30 +936,6 @@ See also: [EntitySyncMap](./storage.md#interface-entitysyncmap)
1139
936
 
1140
937
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
1141
938
 
1142
- ---
1143
- ##### Interface: TableAuthSession
1144
-
1145
- Durable representation of a BRC-103 peer session.
1146
-
1147
- The session nonce is the authoritative key. `lastUpdate` also acts as the
1148
- optimistic-write version so a delayed request from one replica cannot
1149
- overwrite newer authentication state written by another replica.
1150
-
1151
- ```ts
1152
- export interface TableAuthSession {
1153
- sessionNonce: string;
1154
- peerNonce?: string | null;
1155
- peerIdentityKey?: string | null;
1156
- isAuthenticated: boolean | number;
1157
- lastUpdate: number | string;
1158
- certificatesRequired?: boolean | number | null;
1159
- certificatesValidated?: boolean | number | null;
1160
- expiresAt: number | string;
1161
- }
1162
- ```
1163
-
1164
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
1165
-
1166
939
  ---
1167
940
  ##### Interface: TableCertificate
1168
941
 
@@ -1403,8 +1176,6 @@ export interface TableProvenTxReq extends TableProvenTxReqDynamics {
1403
1176
  notify: string;
1404
1177
  rawTx: number[];
1405
1178
  inputBEEF?: number[];
1406
- wasBroadcast?: boolean;
1407
- rebroadcastAttempts?: number;
1408
1179
  }
1409
1180
  ```
1410
1181
 
@@ -1452,27 +1223,6 @@ Parses to `ProvenTxReqNotifyApi`.
1452
1223
  notify: string
1453
1224
  ```
1454
1225
 
1455
- ###### Property rebroadcastAttempts
1456
-
1457
- Count of how many times this req has been reset to 'unsent' for rebroadcast
1458
- after proof check timeout. Used by the circuit-breaker (maxRebroadcastAttempts).
1459
- Defaults to 0 (added by migration 2026-04-30-001).
1460
-
1461
- ```ts
1462
- rebroadcastAttempts?: number
1463
- ```
1464
-
1465
- ###### Property wasBroadcast
1466
-
1467
- Set to true the first time this req transitions to 'unmined' or 'callback' status,
1468
- indicating the transaction was successfully broadcast to the network.
1469
- Used to distinguish rebroadcast candidates from transactions that were never sent.
1470
- Defaults to false (added by migration 2026-04-30-001).
1471
-
1472
- ```ts
1473
- wasBroadcast?: boolean
1474
- ```
1475
-
1476
1226
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
1477
1227
 
1478
1228
  ---
@@ -1490,8 +1240,6 @@ export interface TableProvenTxReqDynamics extends sdk.EntityTimeStamp {
1490
1240
  batch?: string;
1491
1241
  history: string;
1492
1242
  notify: string;
1493
- wasBroadcast?: boolean;
1494
- rebroadcastAttempts?: number;
1495
1243
  }
1496
1244
  ```
1497
1245
 
@@ -1539,24 +1287,6 @@ Parses to `ProvenTxReqNotifyApi`.
1539
1287
  notify: string
1540
1288
  ```
1541
1289
 
1542
- ###### Property rebroadcastAttempts
1543
-
1544
- Count of rebroadcast cycles for this req. Used by the circuit-breaker.
1545
- Defaults to 0 (added by migration 2026-04-30-001).
1546
-
1547
- ```ts
1548
- rebroadcastAttempts?: number
1549
- ```
1550
-
1551
- ###### Property wasBroadcast
1552
-
1553
- Set to true the first time this req transitions to 'unmined' or 'callback' status.
1554
- Defaults to false (added by migration 2026-04-30-001).
1555
-
1556
- ```ts
1557
- wasBroadcast?: boolean
1558
- ```
1559
-
1560
1290
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
1561
1291
 
1562
1292
  ---
@@ -1793,30 +1523,11 @@ export interface WalletStorageServerOptions {
1793
1523
  calculateRequestPrice?: (req: Request) => number | Promise<number>;
1794
1524
  adminIdentityKeys?: string[];
1795
1525
  makeLogger?: MakeWalletLogger;
1796
- sessionManager?: AuthMiddlewareOptions["sessionManager"];
1797
- logRpcRequests?: boolean;
1798
1526
  }
1799
1527
  ```
1800
1528
 
1801
1529
  See also: [Wallet](./client.md#class-wallet)
1802
1530
 
1803
- ###### Property logRpcRequests
1804
-
1805
- Emit one JSON log record for each authenticated RPC. Default: true.
1806
-
1807
- ```ts
1808
- logRpcRequests?: boolean
1809
- ```
1810
-
1811
- ###### Property sessionManager
1812
-
1813
- Shared BRC-103 session storage for multi-process or multi-replica servers.
1814
- Defaults to the auth middleware's in-process SessionManager.
1815
-
1816
- ```ts
1817
- sessionManager?: AuthMiddlewareOptions["sessionManager"]
1818
- ```
1819
-
1820
1531
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
1821
1532
 
1822
1533
  ---
@@ -1841,16 +1552,15 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
1841
1552
 
1842
1553
  | | | |
1843
1554
  | --- | --- | --- |
1844
- | [AdminServer](#class-adminserver) | [EntityProvenTxReq](#class-entityproventxreq) | [StorageClientBase](#class-storageclientbase) |
1845
- | [EntityBase](#class-entitybase) | [EntitySyncState](#class-entitysyncstate) | [StorageIdb](#class-storageidb) |
1846
- | [EntityCertificate](#class-entitycertificate) | [EntityTransaction](#class-entitytransaction) | [StorageKnex](#class-storageknex) |
1847
- | [EntityCertificateField](#class-entitycertificatefield) | [EntityTxLabel](#class-entitytxlabel) | [StorageMySQLDojoReader](#class-storagemysqldojoreader) |
1848
- | [EntityCommission](#class-entitycommission) | [EntityTxLabelMap](#class-entitytxlabelmap) | [StorageProvider](#class-storageprovider) |
1849
- | [EntityOutput](#class-entityoutput) | [EntityUser](#class-entityuser) | [StorageReader](#class-storagereader) |
1850
- | [EntityOutputBasket](#class-entityoutputbasket) | [KnexMigrations](#class-knexmigrations) | [StorageReaderWriter](#class-storagereaderwriter) |
1851
- | [EntityOutputTag](#class-entityoutputtag) | [KnexSessionManager](#class-knexsessionmanager) | [StorageServer](#class-storageserver) |
1852
- | [EntityOutputTagMap](#class-entityoutputtagmap) | [MergeEntity](#class-mergeentity) | [StorageSyncReader](#class-storagesyncreader) |
1853
- | [EntityProvenTx](#class-entityproventx) | [StorageClient](#class-storageclient) | [WalletStorageManager](#class-walletstoragemanager) |
1555
+ | [AdminServer](#class-adminserver) | [EntityProvenTx](#class-entityproventx) | [StorageClient](#class-storageclient) |
1556
+ | [EntityBase](#class-entitybase) | [EntityProvenTxReq](#class-entityproventxreq) | [StorageIdb](#class-storageidb) |
1557
+ | [EntityCertificate](#class-entitycertificate) | [EntitySyncState](#class-entitysyncstate) | [StorageKnex](#class-storageknex) |
1558
+ | [EntityCertificateField](#class-entitycertificatefield) | [EntityTransaction](#class-entitytransaction) | [StorageProvider](#class-storageprovider) |
1559
+ | [EntityCommission](#class-entitycommission) | [EntityTxLabel](#class-entitytxlabel) | [StorageReader](#class-storagereader) |
1560
+ | [EntityOutput](#class-entityoutput) | [EntityTxLabelMap](#class-entitytxlabelmap) | [StorageReaderWriter](#class-storagereaderwriter) |
1561
+ | [EntityOutputBasket](#class-entityoutputbasket) | [EntityUser](#class-entityuser) | [StorageServer](#class-storageserver) |
1562
+ | [EntityOutputTag](#class-entityoutputtag) | [KnexMigrations](#class-knexmigrations) | [StorageSyncReader](#class-storagesyncreader) |
1563
+ | [EntityOutputTagMap](#class-entityoutputtagmap) | [MergeEntity](#class-mergeentity) | [WalletStorageManager](#class-walletstoragemanager) |
1854
1564
 
1855
1565
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
1856
1566
 
@@ -2326,9 +2036,9 @@ export class EntityProvenTx extends EntityBase<TableProvenTx> {
2326
2036
  }>
2327
2037
  override async mergeNew(storage: EntityStorage, userId: number, syncMap: SyncMap, trx?: TrxToken): Promise<void>
2328
2038
  override async mergeExisting(storage: EntityStorage, since: Date | undefined, ei: TableProvenTx, syncMap: SyncMap, trx?: TrxToken): Promise<boolean>
2329
- static readonly getProofAttemptsLimit = 8;
2330
- static readonly getProofMinutes = 60;
2331
- static async fromReq(req: EntityProvenTxReq, gmpResult: GetMerklePathResult, countsAsAttempt: boolean, maxRebroadcastAttempts = 0): Promise<EntityProvenTx | undefined>
2039
+ static getProofAttemptsLimit = 8;
2040
+ static getProofMinutes = 60;
2041
+ static async fromReq(req: EntityProvenTxReq, gmpResult: GetMerklePathResult, countsAsAttempt: boolean): Promise<EntityProvenTx | undefined>
2332
2042
  }
2333
2043
  ```
2334
2044
 
@@ -2339,7 +2049,7 @@ See also: [EntityBase](./storage.md#class-entitybase), [EntityProvenTxReq](./sto
2339
2049
  How high attempts can go before status is forced to invalid
2340
2050
 
2341
2051
  ```ts
2342
- static readonly getProofAttemptsLimit = 8
2052
+ static getProofAttemptsLimit = 8
2343
2053
  ```
2344
2054
 
2345
2055
  ###### Property getProofMinutes
@@ -2347,7 +2057,7 @@ static readonly getProofAttemptsLimit = 8
2347
2057
  How many hours we have to try for a poof
2348
2058
 
2349
2059
  ```ts
2350
- static readonly getProofMinutes = 60
2060
+ static getProofMinutes = 60
2351
2061
  ```
2352
2062
 
2353
2063
  ###### Method fromReq
@@ -2357,7 +2067,7 @@ Try to create a new ProvenTx from a ProvenTxReq and GetMerkleProofResultApi
2357
2067
  Otherwise it returns undefined and updates req.status to either 'unknown', 'invalid', or 'unconfirmed'
2358
2068
 
2359
2069
  ```ts
2360
- static async fromReq(req: EntityProvenTxReq, gmpResult: GetMerklePathResult, countsAsAttempt: boolean, maxRebroadcastAttempts = 0): Promise<EntityProvenTx | undefined>
2070
+ static async fromReq(req: EntityProvenTxReq, gmpResult: GetMerklePathResult, countsAsAttempt: boolean): Promise<EntityProvenTx | undefined>
2361
2071
  ```
2362
2072
  See also: [EntityProvenTx](./storage.md#class-entityproventx), [EntityProvenTxReq](./storage.md#class-entityproventxreq), [GetMerklePathResult](./client.md#interface-getmerklepathresult)
2363
2073
 
@@ -2395,7 +2105,6 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
2395
2105
 
2396
2106
  ```ts
2397
2107
  export class EntityProvenTxReq extends EntityBase<TableProvenTxReq> {
2398
- static readonly wasBroadcastStatuses: ProvenTxReqStatus[] = ["unmined", "callback", "unconfirmed", "completed"];
2399
2108
  static async fromStorageTxid(storage: EntityStorage, txid: string, trx?: TrxToken): Promise<EntityProvenTxReq | undefined>
2400
2109
  static async fromStorageId(storage: EntityStorage, id: number, trx?: TrxToken): Promise<EntityProvenTxReq>
2401
2110
  static fromTxid(txid: string, rawTx: number[], inputBEEF?: number[]): EntityProvenTxReq
@@ -2445,14 +2154,6 @@ export class EntityProvenTxReq extends EntityBase<TableProvenTxReq> {
2445
2154
  set notified(v: boolean)
2446
2155
  get batch()
2447
2156
  set batch(v: string | undefined)
2448
- get wasBroadcast(): boolean
2449
- set wasBroadcast(v: boolean)
2450
- get rebroadcastAttempts(): number
2451
- set rebroadcastAttempts(v: number)
2452
- applyProofTimeout(maxRebroadcastAttempts = 0): {
2453
- action: "invalid" | "rebroadcast";
2454
- rebroadcastAttempts: number;
2455
- }
2456
2157
  override get id()
2457
2158
  override set id(v: number)
2458
2159
  override get entityName(): string
@@ -2472,7 +2173,7 @@ export class EntityProvenTxReq extends EntityBase<TableProvenTxReq> {
2472
2173
  }
2473
2174
  ```
2474
2175
 
2475
- See also: [EntityBase](./storage.md#class-entitybase), [EntityStorage](./storage.md#type-entitystorage), [ProvenTxReqHistory](./storage.md#interface-proventxreqhistory), [ProvenTxReqHistorySummaryApi](./storage.md#interface-proventxreqhistorysummaryapi), [ProvenTxReqNotify](./storage.md#interface-proventxreqnotify), [ProvenTxReqStatus](./client.md#type-proventxreqstatus), [ReqHistoryNote](./client.md#interface-reqhistorynote), [StorageProvider](./storage.md#class-storageprovider), [SyncMap](./storage.md#interface-syncmap), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TrxToken](./client.md#interface-trxtoken), [WalletStorageManager](./storage.md#class-walletstoragemanager)
2176
+ See also: [EntityBase](./storage.md#class-entitybase), [EntityStorage](./storage.md#type-entitystorage), [ProvenTxReqHistory](./storage.md#interface-proventxreqhistory), [ProvenTxReqHistorySummaryApi](./storage.md#interface-proventxreqhistorysummaryapi), [ProvenTxReqNotify](./storage.md#interface-proventxreqnotify), [ProvenTxReqStatus](./client.md#type-proventxreqstatus), [ReqHistoryNote](./client.md#type-reqhistorynote), [StorageProvider](./storage.md#class-storageprovider), [SyncMap](./storage.md#interface-syncmap), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TrxToken](./client.md#interface-trxtoken), [WalletStorageManager](./storage.md#class-walletstoragemanager)
2476
2177
 
2477
2178
  ###### Method addHistoryNote
2478
2179
 
@@ -2482,7 +2183,7 @@ Notes with identical property values to an existing note are ignored.
2482
2183
  ```ts
2483
2184
  addHistoryNote(note: ReqHistoryNote, noDupes?: boolean)
2484
2185
  ```
2485
- See also: [ReqHistoryNote](./client.md#interface-reqhistorynote)
2186
+ See also: [ReqHistoryNote](./client.md#type-reqhistorynote)
2486
2187
 
2487
2188
  Argument Details
2488
2189
 
@@ -2608,28 +2309,28 @@ export class EntitySyncState extends EntityBase<TableSyncState> {
2608
2309
  to storage: ${c.toStorageIdentityKey}
2609
2310
  for user: ${c.userIdentityKey}
2610
2311
  `;
2611
- if (c.user != null)
2312
+ if (c.user)
2612
2313
  log += ` USER activeStorage ${c.user.activeStorage}\n`;
2613
- if (c.provenTxs != null) {
2614
- log += " PROVEN_TXS\n";
2314
+ if (!!c.provenTxs) {
2315
+ log += ` PROVEN_TXS\n`;
2615
2316
  for (const r of c.provenTxs) {
2616
2317
  log += ` ${r.provenTxId} ${r.txid}\n`;
2617
2318
  }
2618
2319
  }
2619
- if (c.provenTxReqs != null) {
2620
- log += " PROVEN_TX_REQS\n";
2320
+ if (!!c.provenTxReqs) {
2321
+ log += ` PROVEN_TX_REQS\n`;
2621
2322
  for (const r of c.provenTxReqs) {
2622
2323
  log += ` ${r.provenTxReqId} ${r.txid} ${r.status} ${r.provenTxId || ""}\n`;
2623
2324
  }
2624
2325
  }
2625
- if (c.transactions != null) {
2626
- log += " TRANSACTIONS\n";
2326
+ if (!!c.transactions) {
2327
+ log += ` TRANSACTIONS\n`;
2627
2328
  for (const r of c.transactions) {
2628
2329
  log += ` ${r.transactionId} ${r.txid} ${r.status} ${r.provenTxId || ""} sats:${r.satoshis}\n`;
2629
2330
  }
2630
2331
  }
2631
- if (c.outputs != null) {
2632
- log += " OUTPUTS\n";
2332
+ if (!!c.outputs) {
2333
+ log += ` OUTPUTS\n`;
2633
2334
  for (const r of c.outputs) {
2634
2335
  log += ` ${r.outputId} ${r.txid}.${r.vout} ${r.transactionId} ${r.spendable ? "spendable" : ""} sats:${r.satoshis}\n`;
2635
2336
  }
@@ -2896,40 +2597,6 @@ Argument Details
2896
2597
 
2897
2598
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
2898
2599
 
2899
- ---
2900
- ##### Class: KnexSessionManager
2901
-
2902
- Shared BRC-103 session storage for horizontally scaled StorageServer nodes.
2903
-
2904
- Every instance must use the same Knex database. The wallet-toolbox migration
2905
- creates the required `auth_sessions` table. Writes are monotonic by
2906
- `PeerSession.lastUpdate`, preventing a delayed request on one replica from
2907
- replacing newer session state written by another replica.
2908
-
2909
- ```ts
2910
- export class KnexSessionManager implements AsyncSessionManager {
2911
- constructor(private readonly knex: Knex, options: KnexSessionManagerOptions = {})
2912
- async addSession(session: PeerSession): Promise<void>
2913
- async updateSession(session: PeerSession): Promise<void>
2914
- async getSession(identifier: string): Promise<PeerSession | undefined>
2915
- async removeSession(session: PeerSession): Promise<void>
2916
- async hasSession(identifier: string): Promise<boolean>
2917
- async pruneExpiredSessions(): Promise<number>
2918
- }
2919
- ```
2920
-
2921
- See also: [KnexSessionManagerOptions](./storage.md#interface-knexsessionmanageroptions)
2922
-
2923
- ###### Method pruneExpiredSessions
2924
-
2925
- Delete expired rows. Call from an operator-controlled maintenance task.
2926
-
2927
- ```ts
2928
- async pruneExpiredSessions(): Promise<number>
2929
- ```
2930
-
2931
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
2932
-
2933
2600
  ---
2934
2601
  ##### Class: MergeEntity
2935
2602
 
@@ -2985,51 +2652,11 @@ the party making requests of the remote service.
2985
2652
  For details of the API implemented, follow the "See also" link for the `WalletStorageProvider` interface.
2986
2653
 
2987
2654
  ```ts
2988
- export class StorageClient extends StorageClientBase {
2989
- constructor(wallet: WalletInterface, endpointUrl: string, options: StorageClientOptions = {})
2990
- protected async rpcCall<T>(method: string, params: unknown[]): Promise<T>
2991
- }
2992
- ```
2993
-
2994
- See also: [StorageClientBase](./storage.md#class-storageclientbase), [StorageClientOptions](./storage.md#interface-storageclientoptions)
2995
-
2996
- ###### Method rpcCall
2997
-
2998
- Make a JSON-RPC call to the remote server.
2999
-
3000
- ```ts
3001
- protected async rpcCall<T>(method: string, params: unknown[]): Promise<T>
3002
- ```
3003
-
3004
- Argument Details
3005
-
3006
- + **method**
3007
- + The WalletStorage method name to call.
3008
- + **params**
3009
- + The array of parameters to pass to the method in order.
3010
-
3011
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
3012
-
3013
- ---
3014
- ##### Class: StorageClientBase
3015
-
3016
- Abstract base class shared by `StorageClient` and `StorageMobile`.
3017
-
3018
- Contains all `WalletStorageProvider` method implementations and entity-validation
3019
- helpers. Subclasses only need to provide `rpcCall`, which differs between
3020
- the full (logger-aware) and mobile (lightweight) variants.
3021
-
3022
- ```ts
3023
- export abstract class StorageClientBase implements WalletStorageProvider {
2655
+ export class StorageClient implements WalletStorageProvider {
3024
2656
  readonly endpointUrl: string;
3025
- protected readonly authClient: AuthFetch;
3026
- protected nextId = 1;
3027
- protected serverSupportsBinary = false;
3028
- protected readonly binaryRequests: boolean;
3029
2657
  public settings?: TableSettings;
3030
- constructor(wallet: WalletInterface, endpointUrl: string, options: StorageClientOptions = {})
2658
+ constructor(wallet: WalletInterface, endpointUrl: string)
3031
2659
  isStorageProvider(): boolean
3032
- protected abstract rpcCall<T>(method: string, params: unknown[]): Promise<T>;
3033
2660
  isAvailable(): boolean
3034
2661
  getSettings(): TableSettings
3035
2662
  async makeAvailable(): Promise<TableSettings>
@@ -3069,7 +2696,7 @@ export abstract class StorageClientBase implements WalletStorageProvider {
3069
2696
  }
3070
2697
  ```
3071
2698
 
3072
- See also: [AuthId](./client.md#interface-authid), [EntityTimeStamp](./client.md#interface-entitytimestamp), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindProvenTxReqsArgs](./client.md#interface-findproventxreqsargs), [ProcessSyncChunkResult](./client.md#interface-processsyncchunkresult), [RequestSyncChunkArgs](./client.md#interface-requestsyncchunkargs), [StorageClientOptions](./storage.md#interface-storageclientoptions), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult), [StorageInternalizeActionResult](./client.md#interface-storageinternalizeactionresult), [StorageProcessActionArgs](./client.md#interface-storageprocessactionargs), [StorageProcessActionResults](./client.md#interface-storageprocessactionresults), [SyncChunk](./client.md#interface-syncchunk), [TableCertificateX](./storage.md#interface-tablecertificatex), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableSettings](./storage.md#interface-tablesettings), [TableSyncState](./storage.md#interface-tablesyncstate), [TableUser](./storage.md#interface-tableuser), [UpdateProvenTxReqWithNewProvenTxArgs](./client.md#interface-updateproventxreqwithnewproventxargs), [UpdateProvenTxReqWithNewProvenTxResult](./client.md#interface-updateproventxreqwithnewproventxresult), [WalletServices](./client.md#interface-walletservices), [WalletStorageProvider](./client.md#interface-walletstorageprovider), [createAction](./storage.md#function-createaction), [getSyncChunk](./storage.md#function-getsyncchunk), [internalizeAction](./storage.md#function-internalizeaction), [listActions](./storage.md#function-listactions), [listCertificates](./storage.md#function-listcertificates), [listOutputs](./storage.md#function-listoutputs), [processAction](./storage.md#function-processaction), [validateDate](./storage.md#function-validatedate), [validateEntities](./storage.md#function-validateentities), [validateEntity](./storage.md#function-validateentity)
2699
+ See also: [AuthId](./client.md#interface-authid), [EntityTimeStamp](./client.md#interface-entitytimestamp), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindProvenTxReqsArgs](./client.md#interface-findproventxreqsargs), [ProcessSyncChunkResult](./client.md#interface-processsyncchunkresult), [RequestSyncChunkArgs](./client.md#interface-requestsyncchunkargs), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult), [StorageInternalizeActionResult](./client.md#interface-storageinternalizeactionresult), [StorageProcessActionArgs](./client.md#interface-storageprocessactionargs), [StorageProcessActionResults](./client.md#interface-storageprocessactionresults), [SyncChunk](./client.md#interface-syncchunk), [TableCertificateX](./storage.md#interface-tablecertificatex), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableSettings](./storage.md#interface-tablesettings), [TableSyncState](./storage.md#interface-tablesyncstate), [TableUser](./storage.md#interface-tableuser), [UpdateProvenTxReqWithNewProvenTxArgs](./client.md#interface-updateproventxreqwithnewproventxargs), [UpdateProvenTxReqWithNewProvenTxResult](./client.md#interface-updateproventxreqwithnewproventxresult), [WalletServices](./client.md#interface-walletservices), [WalletStorageProvider](./client.md#interface-walletstorageprovider), [createAction](./storage.md#function-createaction), [getSyncChunk](./storage.md#function-getsyncchunk), [internalizeAction](./storage.md#function-internalizeaction), [listActions](./storage.md#function-listactions), [listCertificates](./storage.md#function-listcertificates), [listOutputs](./storage.md#function-listoutputs), [processAction](./storage.md#function-processaction)
3073
2700
 
3074
2701
  ###### Method abortAction
3075
2702
 
@@ -3559,22 +3186,6 @@ This must match the `AuthFetch` identity securing the remote conneciton.
3559
3186
  + **args**
3560
3187
  + original wallet `relinquishOutput` args.
3561
3188
 
3562
- ###### Method rpcCall
3563
-
3564
- Make a JSON-RPC call to the remote server.
3565
- Implemented differently by each subclass (with or without logger support).
3566
-
3567
- ```ts
3568
- protected abstract rpcCall<T>(method: string, params: unknown[]): Promise<T>
3569
- ```
3570
-
3571
- Argument Details
3572
-
3573
- + **method**
3574
- + The WalletStorage method name to call.
3575
- + **params**
3576
- + The array of parameters to pass to the method in order.
3577
-
3578
3189
  ###### Method setActive
3579
3190
 
3580
3191
  Ensures up-to-date wallet data replication to all configured backup storage providers,
@@ -3715,7 +3326,7 @@ export class StorageIdb extends StorageProvider implements WalletStorageProvider
3715
3326
  async insertTxLabelMap(labelMap: TableTxLabelMap, trx?: TrxToken): Promise<void>
3716
3327
  async insertUser(user: TableUser, trx?: TrxToken): Promise<number>
3717
3328
  async updateIdb<T>(id: number | number[], update: Partial<T>, keyProp: string, storeName: string, trx?: TrxToken): Promise<number>
3718
- async updateIdbKey<T>(key: Array<number | string>, update: Partial<T>, keyProps: string[], storeName: string, trx?: TrxToken): Promise<number>
3329
+ async updateIdbKey<T>(key: (number | string)[], update: Partial<T>, keyProps: string[], storeName: string, trx?: TrxToken): Promise<number>
3719
3330
  async updateCertificate(id: number, update: Partial<TableCertificate>, trx?: TrxToken): Promise<number>
3720
3331
  async updateCertificateField(certificateId: number, fieldName: string, update: Partial<TableCertificateField>, trx?: TrxToken): Promise<number>
3721
3332
  async updateCommission(id: number, update: Partial<TableCommission>, trx?: TrxToken): Promise<number>
@@ -3797,7 +3408,7 @@ export class StorageIdb extends StorageProvider implements WalletStorageProvider
3797
3408
  }
3798
3409
  ```
3799
3410
 
3800
- See also: [AuthId](./client.md#interface-authid), [DBType](./storage.md#type-dbtype), [EntityTimeStamp](./client.md#interface-entitytimestamp), [FindCertificateFieldsArgs](./client.md#interface-findcertificatefieldsargs), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindCommissionsArgs](./client.md#interface-findcommissionsargs), [FindForUserSincePagedArgs](./client.md#interface-findforusersincepagedargs), [FindMonitorEventsArgs](./client.md#interface-findmonitoreventsargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputTagMapsArgs](./client.md#interface-findoutputtagmapsargs), [FindOutputTagsArgs](./client.md#interface-findoutputtagsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindProvenTxReqsArgs](./client.md#interface-findproventxreqsargs), [FindProvenTxsArgs](./client.md#interface-findproventxsargs), [FindSyncStatesArgs](./client.md#interface-findsyncstatesargs), [FindTransactionsArgs](./client.md#interface-findtransactionsargs), [FindTxLabelMapsArgs](./client.md#interface-findtxlabelmapsargs), [FindTxLabelsArgs](./client.md#interface-findtxlabelsargs), [FindUsersArgs](./client.md#interface-findusersargs), [ProvenOrRawTx](./client.md#interface-provenorrawtx), [PurgeParams](./client.md#interface-purgeparams), [PurgeResults](./client.md#interface-purgeresults), [StorageAdminStats](./storage.md#interface-storageadminstats), [StorageIdbOptions](./storage.md#interface-storageidboptions), [StorageIdbSchema](./storage.md#interface-storageidbschema), [StorageProvider](./storage.md#class-storageprovider), [TableCertificate](./storage.md#interface-tablecertificate), [TableCertificateField](./storage.md#interface-tablecertificatefield), [TableCertificateX](./storage.md#interface-tablecertificatex), [TableCommission](./storage.md#interface-tablecommission), [TableMonitorEvent](./storage.md#interface-tablemonitorevent), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableOutputTag](./storage.md#interface-tableoutputtag), [TableOutputTagMap](./storage.md#interface-tableoutputtagmap), [TableProvenTx](./storage.md#interface-tableproventx), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableSettings](./storage.md#interface-tablesettings), [TableSyncState](./storage.md#interface-tablesyncstate), [TableTransaction](./storage.md#interface-tabletransaction), [TableTxLabel](./storage.md#interface-tabletxlabel), [TableTxLabelMap](./storage.md#interface-tabletxlabelmap), [TableUser](./storage.md#interface-tableuser), [TrxToken](./client.md#interface-trxtoken), [WalletStorageProvider](./client.md#interface-walletstorageprovider), [listActions](./storage.md#function-listactions), [listOutputs](./storage.md#function-listoutputs), [purgeData](./storage.md#function-purgedata), [reviewStatus](./storage.md#function-reviewstatus), [validateEntities](./storage.md#function-validateentities), [validateEntity](./storage.md#function-validateentity)
3411
+ See also: [AuthId](./client.md#interface-authid), [DBType](./storage.md#type-dbtype), [EntityTimeStamp](./client.md#interface-entitytimestamp), [FindCertificateFieldsArgs](./client.md#interface-findcertificatefieldsargs), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindCommissionsArgs](./client.md#interface-findcommissionsargs), [FindForUserSincePagedArgs](./client.md#interface-findforusersincepagedargs), [FindMonitorEventsArgs](./client.md#interface-findmonitoreventsargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputTagMapsArgs](./client.md#interface-findoutputtagmapsargs), [FindOutputTagsArgs](./client.md#interface-findoutputtagsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindProvenTxReqsArgs](./client.md#interface-findproventxreqsargs), [FindProvenTxsArgs](./client.md#interface-findproventxsargs), [FindSyncStatesArgs](./client.md#interface-findsyncstatesargs), [FindTransactionsArgs](./client.md#interface-findtransactionsargs), [FindTxLabelMapsArgs](./client.md#interface-findtxlabelmapsargs), [FindTxLabelsArgs](./client.md#interface-findtxlabelsargs), [FindUsersArgs](./client.md#interface-findusersargs), [ProvenOrRawTx](./client.md#interface-provenorrawtx), [PurgeParams](./client.md#interface-purgeparams), [PurgeResults](./client.md#interface-purgeresults), [StorageAdminStats](./storage.md#interface-storageadminstats), [StorageIdbOptions](./storage.md#interface-storageidboptions), [StorageIdbSchema](./storage.md#interface-storageidbschema), [StorageProvider](./storage.md#class-storageprovider), [TableCertificate](./storage.md#interface-tablecertificate), [TableCertificateField](./storage.md#interface-tablecertificatefield), [TableCertificateX](./storage.md#interface-tablecertificatex), [TableCommission](./storage.md#interface-tablecommission), [TableMonitorEvent](./storage.md#interface-tablemonitorevent), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableOutputTag](./storage.md#interface-tableoutputtag), [TableOutputTagMap](./storage.md#interface-tableoutputtagmap), [TableProvenTx](./storage.md#interface-tableproventx), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableSettings](./storage.md#interface-tablesettings), [TableSyncState](./storage.md#interface-tablesyncstate), [TableTransaction](./storage.md#interface-tabletransaction), [TableTxLabel](./storage.md#interface-tabletxlabel), [TableTxLabelMap](./storage.md#interface-tabletxlabelmap), [TableUser](./storage.md#interface-tableuser), [TrxToken](./client.md#interface-trxtoken), [WalletStorageProvider](./client.md#interface-walletstorageprovider), [listActions](./storage.md#function-listactions), [listOutputs](./storage.md#function-listoutputs), [purgeData](./storage.md#function-purgedata), [reviewStatus](./storage.md#function-reviewstatus)
3801
3412
 
3802
3413
  ###### Method allocateChangeInput
3803
3414
 
@@ -3807,8 +3418,7 @@ Proceeds in three stages:
3807
3418
  3. Find an output that comes as close to funding as possible (targetSatoshis).
3808
3419
  4. Return undefined if no output is found.
3809
3420
 
3810
- Outputs must belong to userId and basketId and satisfy the wallet-managed
3811
- BRC-29 change policy.
3421
+ Outputs must belong to userId and basketId and have spendable true.
3812
3422
  Their corresponding transaction must have status of 'completed', 'unproven', or 'sending' (if excludeSending is false).
3813
3423
 
3814
3424
  ```ts
@@ -3923,7 +3533,7 @@ export class StorageKnex extends StorageProvider implements WalletStorageProvide
3923
3533
  constructor(options: StorageKnexOptions)
3924
3534
  async readSettings(): Promise<TableSettings>
3925
3535
  override async getProvenOrRawTx(txid: string, trx?: TrxToken): Promise<ProvenOrRawTx>
3926
- dbTypeSubstring(source: string, fromOffset: number, forLength?: number): string
3536
+ dbTypeSubstring(source: string, fromOffset: number, forLength?: number)
3927
3537
  override async getRawTxOfKnownValidTransaction(txid?: string, offset?: number, length?: number, trx?: TrxToken): Promise<number[] | undefined>
3928
3538
  getProvenTxsForUserQuery(args: FindForUserSincePagedArgs): Knex.QueryBuilder
3929
3539
  override async getProvenTxsForUser(args: FindForUserSincePagedArgs): Promise<TableProvenTx[]>
@@ -4023,7 +3633,7 @@ export class StorageKnex extends StorageProvider implements WalletStorageProvide
4023
3633
  override async migrate(storageName: string, storageIdentityKey: string): Promise<string>
4024
3634
  override async dropAllData(): Promise<void>
4025
3635
  override async transaction<T>(scope: (trx: TrxToken) => Promise<T>, trx?: TrxToken): Promise<T>
4026
- toDb(trx?: TrxToken): Knex | Knex.Transaction<any, any[]>
3636
+ toDb(trx?: TrxToken)
4027
3637
  async validateRawTransaction(t: TableTransaction, trx?: TrxToken): Promise<void>
4028
3638
  _verifiedReadyForDatabaseAccess: boolean = false;
4029
3639
  async verifyReadyForDatabaseAccess(trx?: TrxToken): Promise<DBType>
@@ -4058,81 +3668,81 @@ export class StorageKnex extends StorageProvider implements WalletStorageProvide
4058
3668
  orderDescending: true,
4059
3669
  paged: { limit: 1 }
4060
3670
  }));
4061
- const monitorStats: ServicesCallHistory | undefined = (monitorEvent != null) ? JSON.parse(monitorEvent.details as string) : undefined;
3671
+ const monitorStats: ServicesCallHistory | undefined = monitorEvent ? JSON.parse(monitorEvent.details!) : undefined;
4062
3672
  const servicesStats = this.getServices().getServicesCallHistory(true);
4063
- const oneDayAgo = new Date(Date.now() - 24 * 60 * 60 * 1000).toISOString();
4064
- const oneWeekAgo = new Date(Date.now() - 7 * 24 * 60 * 60 * 1000).toISOString();
4065
- const oneMonthAgo = new Date(Date.now() - 30 * 24 * 60 * 60 * 1000).toISOString();
3673
+ const one_day_ago = new Date(Date.now() - 24 * 60 * 60 * 1000).toISOString();
3674
+ const one_week_ago = new Date(Date.now() - 7 * 24 * 60 * 60 * 1000).toISOString();
3675
+ const one_month_ago = new Date(Date.now() - 30 * 24 * 60 * 60 * 1000).toISOString();
4066
3676
  const [[{ usersDay, usersMonth, usersWeek, usersTotal, transactionsDay, transactionsMonth, transactionsWeek, transactionsTotal, txCompletedDay, txCompletedMonth, txCompletedWeek, txCompletedTotal, txFailedDay, txFailedMonth, txFailedWeek, txFailedTotal, txAbandonedDay, txAbandonedMonth, txAbandonedWeek, txAbandonedTotal, txUnprocessedDay, txUnprocessedMonth, txUnprocessedWeek, txUnprocessedTotal, txSendingDay, txSendingMonth, txSendingWeek, txSendingTotal, txUnprovenDay, txUnprovenMonth, txUnprovenWeek, txUnprovenTotal, txUnsignedDay, txUnsignedMonth, txUnsignedWeek, txUnsignedTotal, txNosendDay, txNosendMonth, txNosendWeek, txNosendTotal, txNonfinalDay, txNonfinalMonth, txNonfinalWeek, txNonfinalTotal, txUnfailDay, txUnfailMonth, txUnfailWeek, txUnfailTotal, satoshisDefaultDay, satoshisDefaultMonth, satoshisDefaultWeek, satoshisDefaultTotal, satoshisOtherDay, satoshisOtherMonth, satoshisOtherWeek, satoshisOtherTotal, basketsDay, basketsMonth, basketsWeek, basketsTotal, labelsDay, labelsMonth, labelsWeek, labelsTotal, tagsDay, tagsMonth, tagsWeek, tagsTotal }]] = await this.knex.raw(`
4067
3677
  select
4068
- (select count(*) from users where created_at > '${oneDayAgo}') as usersDay,
4069
- (select count(*) from users where created_at > '${oneWeekAgo}') as usersWeek,
4070
- (select count(*) from users where created_at > '${oneMonthAgo}') as usersMonth,
4071
- (select count(*) from users) as usersTotal,
4072
- (select count(*) from transactions where created_at > '${oneDayAgo}') as transactionsDay,
4073
- (select count(*) from transactions where created_at > '${oneWeekAgo}') as transactionsWeek,
4074
- (select count(*) from transactions where created_at > '${oneMonthAgo}') as transactionsMonth,
4075
- (select count(*) from transactions) as transactionsTotal,
4076
- (select count(*) from transactions where status = 'completed' and created_at > '${oneDayAgo}') as txCompletedDay,
4077
- (select count(*) from transactions where status = 'completed' and created_at > '${oneWeekAgo}') as txCompletedWeek,
4078
- (select count(*) from transactions where status = 'completed' and created_at > '${oneMonthAgo}') as txCompletedMonth,
4079
- (select count(*) from transactions where status = 'completed') as txCompletedTotal,
4080
- (select count(*) from transactions where status = 'failed' and not txid is null and created_at > '${oneDayAgo}') as txFailedDay,
4081
- (select count(*) from transactions where status = 'failed' and not txid is null and created_at > '${oneWeekAgo}') as txFailedWeek,
4082
- (select count(*) from transactions where status = 'failed' and not txid is null and created_at > '${oneMonthAgo}') as txFailedMonth,
4083
- (select count(*) from transactions where status = 'failed' and not txid is null) as txFailedTotal,
4084
- (select count(*) from transactions where status = 'failed' and txid is null and created_at > '${oneDayAgo}') as txAbandonedDay,
4085
- (select count(*) from transactions where status = 'failed' and txid is null and created_at > '${oneWeekAgo}') as txAbandonedWeek,
4086
- (select count(*) from transactions where status = 'failed' and txid is null and created_at > '${oneMonthAgo}') as txAbandonedMonth,
4087
- (select count(*) from transactions where status = 'failed' and txid is null) as txAbandonedTotal,
4088
- (select count(*) from transactions where status = 'unprocessed' and created_at > '${oneDayAgo}') as txUnprocessedDay,
4089
- (select count(*) from transactions where status = 'unprocessed' and created_at > '${oneWeekAgo}') as txUnprocessedWeek,
4090
- (select count(*) from transactions where status = 'unprocessed' and created_at > '${oneMonthAgo}') as txUnprocessedMonth,
4091
- (select count(*) from transactions where status = 'unprocessed') as txUnprocessedTotal,
4092
- (select count(*) from transactions where status = 'sending' and created_at > '${oneDayAgo}') as txSendingDay,
4093
- (select count(*) from transactions where status = 'sending' and created_at > '${oneWeekAgo}') as txSendingWeek,
4094
- (select count(*) from transactions where status = 'sending' and created_at > '${oneMonthAgo}') as txSendingMonth,
4095
- (select count(*) from transactions where status = 'sending') as txSendingTotal,
4096
- (select count(*) from transactions where status = 'unproven' and created_at > '${oneDayAgo}') as txUnprovenDay,
4097
- (select count(*) from transactions where status = 'unproven' and created_at > '${oneWeekAgo}') as txUnprovenWeek,
4098
- (select count(*) from transactions where status = 'unproven' and created_at > '${oneMonthAgo}') as txUnprovenMonth,
4099
- (select count(*) from transactions where status = 'unproven') as txUnprovenTotal,
4100
- (select count(*) from transactions where status = 'unsigned' and created_at > '${oneDayAgo}') as txUnsignedDay,
4101
- (select count(*) from transactions where status = 'unsigned' and created_at > '${oneWeekAgo}') as txUnsignedWeek,
4102
- (select count(*) from transactions where status = 'unsigned' and created_at > '${oneMonthAgo}') as txUnsignedMonth,
4103
- (select count(*) from transactions where status = 'unsigned') as txUnsignedTotal,
4104
- (select count(*) from transactions where status = 'nosend' and created_at > '${oneDayAgo}') as txNosendDay,
4105
- (select count(*) from transactions where status = 'nosend' and created_at > '${oneWeekAgo}') as txNosendWeek,
4106
- (select count(*) from transactions where status = 'nosend' and created_at > '${oneMonthAgo}') as txNosendMonth,
4107
- (select count(*) from transactions where status = 'nosend') as txNosendTotal,
4108
- (select count(*) from transactions where status = 'nonfinal' and created_at > '${oneDayAgo}') as txNonfinalDay,
4109
- (select count(*) from transactions where status = 'nonfinal' and created_at > '${oneWeekAgo}') as txNonfinalWeek,
4110
- (select count(*) from transactions where status = 'nonfinal' and created_at > '${oneMonthAgo}') as txNonfinalMonth,
4111
- (select count(*) from transactions where status = 'nonfinal') as txNonfinalTotal,
4112
- (select count(*) from transactions where status = 'unfail' and created_at > '${oneDayAgo}') as txUnfailDay,
4113
- (select count(*) from transactions where status = 'unfail' and created_at > '${oneWeekAgo}') as txUnfailWeek,
4114
- (select count(*) from transactions where status = 'unfail' and created_at > '${oneMonthAgo}') as txUnfailMonth,
4115
- (select count(*) from transactions where status = 'unfail') as txUnfailTotal,
4116
- (select sum(o.satoshis) from outputs o, transactions t where o.transactionId = t.transactionId and t.status = 'completed' and o.spendable = 1 and o.change = 1 and o.created_at > '${oneDayAgo}') as satoshisDefaultDay,
4117
- (select sum(o.satoshis) from outputs o, transactions t where o.transactionId = t.transactionId and t.status = 'completed' and o.spendable = 1 and o.change = 1 and o.created_at > '${oneWeekAgo}') as satoshisDefaultWeek,
4118
- (select sum(o.satoshis) from outputs o, transactions t where o.transactionId = t.transactionId and t.status = 'completed' and o.spendable = 1 and o.change = 1 and o.created_at > '${oneMonthAgo}') as satoshisDefaultMonth,
4119
- (select sum(o.satoshis) from outputs o, transactions t where o.transactionId = t.transactionId and t.status = 'completed' and o.spendable = 1 and o.change = 1) as satoshisDefaultTotal,
4120
- (select sum(o.satoshis) from outputs o, transactions t where o.transactionId = t.transactionId and t.status = 'completed' and o.spendable = 1 and o.change = 0 and not o.basketId is null and o.created_at > '${oneDayAgo}') as satoshisOtherDay,
4121
- (select sum(o.satoshis) from outputs o, transactions t where o.transactionId = t.transactionId and t.status = 'completed' and o.spendable = 1 and o.change = 0 and not o.basketId is null and o.created_at > '${oneWeekAgo}') as satoshisOtherWeek,
4122
- (select sum(o.satoshis) from outputs o, transactions t where o.transactionId = t.transactionId and t.status = 'completed' and o.spendable = 1 and o.change = 0 and not o.basketId is null and o.created_at > '${oneMonthAgo}') as satoshisOtherMonth,
4123
- (select sum(o.satoshis) from outputs o, transactions t where o.transactionId = t.transactionId and t.status = 'completed' and o.spendable = 1 and o.change = 0 and not o.basketId is null) as satoshisOtherTotal,
4124
- (select count(*) from output_baskets where created_at > '${oneDayAgo}') as basketsDay,
4125
- (select count(*) from output_baskets where created_at > '${oneWeekAgo}') as basketsWeek,
4126
- (select count(*) from output_baskets where created_at > '${oneMonthAgo}') as basketsMonth,
4127
- (select count(*) from output_baskets) as basketsTotal,
4128
- (select count(*) from tx_labels where created_at > '${oneDayAgo}') as labelsDay,
4129
- (select count(*) from tx_labels where created_at > '${oneWeekAgo}') as labelsWeek,
4130
- (select count(*) from tx_labels where created_at > '${oneMonthAgo}') as labelsMonth,
4131
- (select count(*) from tx_labels) as labelsTotal,
4132
- (select count(*) from output_tags where created_at > '${oneDayAgo}') as tagsDay,
4133
- (select count(*) from output_tags where created_at > '${oneWeekAgo}') as tagsWeek,
4134
- (select count(*) from output_tags where created_at > '${oneMonthAgo}') as tagsMonth,
4135
- (select count(*) from output_tags) as tagsTotal
3678
+ (select count(*) from users where created_at > '${one_day_ago}') as usersDay,
3679
+ (select count(*) from users where created_at > '${one_week_ago}') as usersWeek,
3680
+ (select count(*) from users where created_at > '${one_month_ago}') as usersMonth,
3681
+ (select count(*) from users) as usersTotal,
3682
+ (select count(*) from transactions where created_at > '${one_day_ago}') as transactionsDay,
3683
+ (select count(*) from transactions where created_at > '${one_week_ago}') as transactionsWeek,
3684
+ (select count(*) from transactions where created_at > '${one_month_ago}') as transactionsMonth,
3685
+ (select count(*) from transactions) as transactionsTotal,
3686
+ (select count(*) from transactions where status = 'completed' and created_at > '${one_day_ago}') as txCompletedDay,
3687
+ (select count(*) from transactions where status = 'completed' and created_at > '${one_week_ago}') as txCompletedWeek,
3688
+ (select count(*) from transactions where status = 'completed' and created_at > '${one_month_ago}') as txCompletedMonth,
3689
+ (select count(*) from transactions where status = 'completed') as txCompletedTotal,
3690
+ (select count(*) from transactions where status = 'failed' and not txid is null and created_at > '${one_day_ago}') as txFailedDay,
3691
+ (select count(*) from transactions where status = 'failed' and not txid is null and created_at > '${one_week_ago}') as txFailedWeek,
3692
+ (select count(*) from transactions where status = 'failed' and not txid is null and created_at > '${one_month_ago}') as txFailedMonth,
3693
+ (select count(*) from transactions where status = 'failed' and not txid is null) as txFailedTotal,
3694
+ (select count(*) from transactions where status = 'failed' and txid is null and created_at > '${one_day_ago}') as txAbandonedDay,
3695
+ (select count(*) from transactions where status = 'failed' and txid is null and created_at > '${one_week_ago}') as txAbandonedWeek,
3696
+ (select count(*) from transactions where status = 'failed' and txid is null and created_at > '${one_month_ago}') as txAbandonedMonth,
3697
+ (select count(*) from transactions where status = 'failed' and txid is null) as txAbandonedTotal,
3698
+ (select count(*) from transactions where status = 'unprocessed' and created_at > '${one_day_ago}') as txUnprocessedDay,
3699
+ (select count(*) from transactions where status = 'unprocessed' and created_at > '${one_week_ago}') as txUnprocessedWeek,
3700
+ (select count(*) from transactions where status = 'unprocessed' and created_at > '${one_month_ago}') as txUnprocessedMonth,
3701
+ (select count(*) from transactions where status = 'unprocessed') as txUnprocessedTotal,
3702
+ (select count(*) from transactions where status = 'sending' and created_at > '${one_day_ago}') as txSendingDay,
3703
+ (select count(*) from transactions where status = 'sending' and created_at > '${one_week_ago}') as txSendingWeek,
3704
+ (select count(*) from transactions where status = 'sending' and created_at > '${one_month_ago}') as txSendingMonth,
3705
+ (select count(*) from transactions where status = 'sending') as txSendingTotal,
3706
+ (select count(*) from transactions where status = 'unproven' and created_at > '${one_day_ago}') as txUnprovenDay,
3707
+ (select count(*) from transactions where status = 'unproven' and created_at > '${one_week_ago}') as txUnprovenWeek,
3708
+ (select count(*) from transactions where status = 'unproven' and created_at > '${one_month_ago}') as txUnprovenMonth,
3709
+ (select count(*) from transactions where status = 'unproven') as txUnprovenTotal,
3710
+ (select count(*) from transactions where status = 'unsigned' and created_at > '${one_day_ago}') as txUnsignedDay,
3711
+ (select count(*) from transactions where status = 'unsigned' and created_at > '${one_week_ago}') as txUnsignedWeek,
3712
+ (select count(*) from transactions where status = 'unsigned' and created_at > '${one_month_ago}') as txUnsignedMonth,
3713
+ (select count(*) from transactions where status = 'unsigned') as txUnsignedTotal,
3714
+ (select count(*) from transactions where status = 'nosend' and created_at > '${one_day_ago}') as txNosendDay,
3715
+ (select count(*) from transactions where status = 'nosend' and created_at > '${one_week_ago}') as txNosendWeek,
3716
+ (select count(*) from transactions where status = 'nosend' and created_at > '${one_month_ago}') as txNosendMonth,
3717
+ (select count(*) from transactions where status = 'nosend') as txNosendTotal,
3718
+ (select count(*) from transactions where status = 'nonfinal' and created_at > '${one_day_ago}') as txNonfinalDay,
3719
+ (select count(*) from transactions where status = 'nonfinal' and created_at > '${one_week_ago}') as txNonfinalWeek,
3720
+ (select count(*) from transactions where status = 'nonfinal' and created_at > '${one_month_ago}') as txNonfinalMonth,
3721
+ (select count(*) from transactions where status = 'nonfinal') as txNonfinalTotal,
3722
+ (select count(*) from transactions where status = 'unfail' and created_at > '${one_day_ago}') as txUnfailDay,
3723
+ (select count(*) from transactions where status = 'unfail' and created_at > '${one_week_ago}') as txUnfailWeek,
3724
+ (select count(*) from transactions where status = 'unfail' and created_at > '${one_month_ago}') as txUnfailMonth,
3725
+ (select count(*) from transactions where status = 'unfail') as txUnfailTotal,
3726
+ (select sum(satoshis) from outputs where spendable = 1 and \`change\` = 1 and created_at > '${one_day_ago}') as satoshisDefaultDay,
3727
+ (select sum(satoshis) from outputs where spendable = 1 and \`change\` = 1 and created_at > '${one_week_ago}') as satoshisDefaultWeek,
3728
+ (select sum(satoshis) from outputs where spendable = 1 and \`change\` = 1 and created_at > '${one_month_ago}') as satoshisDefaultMonth,
3729
+ (select sum(satoshis) from outputs where spendable = 1 and \`change\` = 1) as satoshisDefaultTotal,
3730
+ (select sum(satoshis) from outputs where spendable = 1 and \`change\` = 0 and not basketId is null and created_at > '${one_day_ago}') as satoshisOtherDay,
3731
+ (select sum(satoshis) from outputs where spendable = 1 and \`change\` = 0 and not basketId is null and created_at > '${one_week_ago}') as satoshisOtherWeek,
3732
+ (select sum(satoshis) from outputs where spendable = 1 and \`change\` = 0 and not basketId is null and created_at > '${one_month_ago}') as satoshisOtherMonth,
3733
+ (select sum(satoshis) from outputs where spendable = 1 and \`change\` = 0 and not basketId is null) as satoshisOtherTotal,
3734
+ (select count(*) from output_baskets where created_at > '${one_day_ago}') as basketsDay,
3735
+ (select count(*) from output_baskets where created_at > '${one_week_ago}') as basketsWeek,
3736
+ (select count(*) from output_baskets where created_at > '${one_month_ago}') as basketsMonth,
3737
+ (select count(*) from output_baskets) as basketsTotal,
3738
+ (select count(*) from tx_labels where created_at > '${one_day_ago}') as labelsDay,
3739
+ (select count(*) from tx_labels where created_at > '${one_week_ago}') as labelsWeek,
3740
+ (select count(*) from tx_labels where created_at > '${one_month_ago}') as labelsMonth,
3741
+ (select count(*) from tx_labels) as labelsTotal,
3742
+ (select count(*) from output_tags where created_at > '${one_day_ago}') as tagsDay,
3743
+ (select count(*) from output_tags where created_at > '${one_week_ago}') as tagsWeek,
3744
+ (select count(*) from output_tags where created_at > '${one_month_ago}') as tagsMonth,
3745
+ (select count(*) from output_tags) as tagsTotal
4136
3746
  `);
4137
3747
  const r: AdminStatsResult = {
4138
3748
  monitorStats,
@@ -4213,7 +3823,7 @@ select
4213
3823
  }
4214
3824
  ```
4215
3825
 
4216
- See also: [AdminStatsResult](./storage.md#interface-adminstatsresult), [AuthId](./client.md#interface-authid), [DBType](./storage.md#type-dbtype), [EntityTimeStamp](./client.md#interface-entitytimestamp), [FindCertificateFieldsArgs](./client.md#interface-findcertificatefieldsargs), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindCommissionsArgs](./client.md#interface-findcommissionsargs), [FindForUserSincePagedArgs](./client.md#interface-findforusersincepagedargs), [FindMonitorEventsArgs](./client.md#interface-findmonitoreventsargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputTagMapsArgs](./client.md#interface-findoutputtagmapsargs), [FindOutputTagsArgs](./client.md#interface-findoutputtagsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindPartialSincePagedArgs](./client.md#interface-findpartialsincepagedargs), [FindProvenTxReqsArgs](./client.md#interface-findproventxreqsargs), [FindProvenTxsArgs](./client.md#interface-findproventxsargs), [FindStaleMerkleRootsArgs](./client.md#interface-findstalemerklerootsargs), [FindSyncStatesArgs](./client.md#interface-findsyncstatesargs), [FindTransactionsArgs](./client.md#interface-findtransactionsargs), [FindTxLabelMapsArgs](./client.md#interface-findtxlabelmapsargs), [FindTxLabelsArgs](./client.md#interface-findtxlabelsargs), [FindUsersArgs](./client.md#interface-findusersargs), [ProvenOrRawTx](./client.md#interface-provenorrawtx), [PurgeParams](./client.md#interface-purgeparams), [PurgeResults](./client.md#interface-purgeresults), [ServicesCallHistory](./client.md#interface-servicescallhistory), [StorageKnexOptions](./storage.md#interface-storageknexoptions), [StorageProvider](./storage.md#class-storageprovider), [TableCertificate](./storage.md#interface-tablecertificate), [TableCertificateField](./storage.md#interface-tablecertificatefield), [TableCertificateX](./storage.md#interface-tablecertificatex), [TableCommission](./storage.md#interface-tablecommission), [TableMonitorEvent](./storage.md#interface-tablemonitorevent), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableOutputTag](./storage.md#interface-tableoutputtag), [TableOutputTagMap](./storage.md#interface-tableoutputtagmap), [TableProvenTx](./storage.md#interface-tableproventx), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableSettings](./storage.md#interface-tablesettings), [TableSyncState](./storage.md#interface-tablesyncstate), [TableTransaction](./storage.md#interface-tabletransaction), [TableTxLabel](./storage.md#interface-tabletxlabel), [TableTxLabelMap](./storage.md#interface-tabletxlabelmap), [TableUser](./storage.md#interface-tableuser), [TrxToken](./client.md#interface-trxtoken), [WERR_NOT_IMPLEMENTED](./client.md#class-werr_not_implemented), [WalletStorageProvider](./client.md#interface-walletstorageprovider), [listActions](./storage.md#function-listactions), [listOutputs](./storage.md#function-listoutputs), [purgeData](./storage.md#function-purgedata), [reviewStatus](./storage.md#function-reviewstatus), [validateEntities](./storage.md#function-validateentities), [validateEntity](./storage.md#function-validateentity), [verifyOneOrNone](./client.md#function-verifyoneornone)
3826
+ See also: [AdminStatsResult](./storage.md#interface-adminstatsresult), [AuthId](./client.md#interface-authid), [DBType](./storage.md#type-dbtype), [EntityTimeStamp](./client.md#interface-entitytimestamp), [FindCertificateFieldsArgs](./client.md#interface-findcertificatefieldsargs), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindCommissionsArgs](./client.md#interface-findcommissionsargs), [FindForUserSincePagedArgs](./client.md#interface-findforusersincepagedargs), [FindMonitorEventsArgs](./client.md#interface-findmonitoreventsargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputTagMapsArgs](./client.md#interface-findoutputtagmapsargs), [FindOutputTagsArgs](./client.md#interface-findoutputtagsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindPartialSincePagedArgs](./client.md#interface-findpartialsincepagedargs), [FindProvenTxReqsArgs](./client.md#interface-findproventxreqsargs), [FindProvenTxsArgs](./client.md#interface-findproventxsargs), [FindStaleMerkleRootsArgs](./client.md#interface-findstalemerklerootsargs), [FindSyncStatesArgs](./client.md#interface-findsyncstatesargs), [FindTransactionsArgs](./client.md#interface-findtransactionsargs), [FindTxLabelMapsArgs](./client.md#interface-findtxlabelmapsargs), [FindTxLabelsArgs](./client.md#interface-findtxlabelsargs), [FindUsersArgs](./client.md#interface-findusersargs), [ProvenOrRawTx](./client.md#interface-provenorrawtx), [PurgeParams](./client.md#interface-purgeparams), [PurgeResults](./client.md#interface-purgeresults), [ServicesCallHistory](./client.md#type-servicescallhistory), [StorageKnexOptions](./storage.md#interface-storageknexoptions), [StorageProvider](./storage.md#class-storageprovider), [TableCertificate](./storage.md#interface-tablecertificate), [TableCertificateField](./storage.md#interface-tablecertificatefield), [TableCertificateX](./storage.md#interface-tablecertificatex), [TableCommission](./storage.md#interface-tablecommission), [TableMonitorEvent](./storage.md#interface-tablemonitorevent), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableOutputTag](./storage.md#interface-tableoutputtag), [TableOutputTagMap](./storage.md#interface-tableoutputtagmap), [TableProvenTx](./storage.md#interface-tableproventx), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableSettings](./storage.md#interface-tablesettings), [TableSyncState](./storage.md#interface-tablesyncstate), [TableTransaction](./storage.md#interface-tabletransaction), [TableTxLabel](./storage.md#interface-tabletxlabel), [TableTxLabelMap](./storage.md#interface-tabletxlabelmap), [TableUser](./storage.md#interface-tableuser), [TrxToken](./client.md#interface-trxtoken), [WERR_NOT_IMPLEMENTED](./client.md#class-werr_not_implemented), [WalletStorageProvider](./client.md#interface-walletstorageprovider), [listActions](./storage.md#function-listactions), [listOutputs](./storage.md#function-listoutputs), [purgeData](./storage.md#function-purgedata), [reviewStatus](./storage.md#function-reviewstatus), [verifyOneOrNone](./client.md#function-verifyoneornone)
4217
3827
 
4218
3828
  ###### Method allocateChangeInput
4219
3829
 
@@ -4228,8 +3838,7 @@ See also: [TableOutput](./storage.md#interface-tableoutput)
4228
3838
 
4229
3839
  ###### Method countChangeInputs
4230
3840
 
4231
- Counts wallet-managed BRC-29 change outputs for userId in basketId that
4232
- are currently eligible for automatic allocation
3841
+ Counts the outputs for userId in basketId that are spendable: true
4233
3842
  AND whose transaction status is one of:
4234
3843
  - completed
4235
3844
  - unproven
@@ -4245,7 +3854,7 @@ Convert the standard optional `TrxToken` parameter into either a direct knex dat
4245
3854
  or a Knex.Transaction as appropriate.
4246
3855
 
4247
3856
  ```ts
4248
- toDb(trx?: TrxToken): Knex | Knex.Transaction<any, any[]>
3857
+ toDb(trx?: TrxToken)
4249
3858
  ```
4250
3859
  See also: [TrxToken](./client.md#interface-trxtoken)
4251
3860
 
@@ -4308,91 +3917,7 @@ See also: [DBType](./storage.md#type-dbtype), [TrxToken](./client.md#interface-t
4308
3917
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
4309
3918
 
4310
3919
  ---
4311
- ##### Class: StorageMySQLDojoReader
4312
-
4313
- ```ts
4314
- export class StorageMySQLDojoReader extends StorageReader implements WalletStorageSyncReader {
4315
- knex: Knex;
4316
- constructor(options: StorageMySQLDojoReaderOptions)
4317
- override async destroy(): Promise<void>
4318
- override async transaction<T>(scope: (trx: TrxToken) => Promise<T>, trx?: TrxToken): Promise<T>
4319
- toDb(trx?: TrxToken)
4320
- override async readSettings(trx?: TrxToken): Promise<TableSettings>
4321
- setupQuery<T extends object>(table: string, args: FindPartialSincePagedArgs<T>): Knex.QueryBuilder
4322
- findOutputBasketsQuery(args: FindOutputBasketsArgs): Knex.QueryBuilder
4323
- async findOutputBaskets(args: FindOutputBasketsArgs): Promise<TableOutputBasket[]>
4324
- findTxLabelsQuery(args: FindTxLabelsArgs): Knex.QueryBuilder
4325
- async findTxLabels(args: FindTxLabelsArgs): Promise<TableTxLabel[]>
4326
- findOutputTagsQuery(args: FindOutputTagsArgs): Knex.QueryBuilder
4327
- async findOutputTags(args: FindOutputTagsArgs): Promise<TableOutputTag[]>
4328
- findTransactionsQuery(args: FindTransactionsArgs, count?: boolean): Knex.QueryBuilder
4329
- async findTransactions(args: FindTransactionsArgs): Promise<TableTransaction[]>
4330
- findCommissionsQuery(args: FindCommissionsArgs): Knex.QueryBuilder
4331
- async findCommissions(args: FindCommissionsArgs): Promise<TableCommission[]>
4332
- limitString(s: string, maxLen: number): string
4333
- findOutputsQuery(args: FindOutputsArgs, count?: boolean): Knex.QueryBuilder
4334
- async findOutputs(args: FindOutputsArgs): Promise<TableOutput[]>
4335
- findCertificatesQuery(args: FindCertificatesArgs): Knex.QueryBuilder
4336
- async findCertificates(args: FindCertificatesArgs): Promise<TableCertificateX[]>
4337
- findCertificateFieldsQuery(args: FindCertificateFieldsArgs): Knex.QueryBuilder
4338
- async findCertificateFields(args: FindCertificateFieldsArgs): Promise<TableCertificateField[]>
4339
- override async findSyncStates(args: FindSyncStatesArgs): Promise<TableSyncState[]>
4340
- override async findUsers(args: FindUsersArgs): Promise<TableUser[]>
4341
- getProvenTxsForUserQuery(args: FindForUserSincePagedArgs): Knex.QueryBuilder
4342
- async getProvenTxsForUser(args: FindForUserSincePagedArgs): Promise<TableProvenTx[]>
4343
- getProvenTxReqsForUserQuery(args: FindForUserSincePagedArgs): Knex.QueryBuilder
4344
- async getProvenTxReqsForUser(args: FindForUserSincePagedArgs): Promise<TableProvenTxReq[]>
4345
- getTxLabelMapsForUserQuery(args: FindForUserSincePagedArgs): Knex.QueryBuilder
4346
- async getTxLabelMapsForUser(args: FindForUserSincePagedArgs): Promise<TableTxLabelMap[]>
4347
- getOutputTagMapsForUserQuery(args: FindForUserSincePagedArgs): Knex.QueryBuilder
4348
- async getOutputTagMapsForUser(args: FindForUserSincePagedArgs): Promise<TableOutputTagMap[]>
4349
- override countCertificateFields(args: FindCertificateFieldsArgs): Promise<number>
4350
- override countCertificates(args: FindCertificatesArgs): Promise<number>
4351
- override countCommissions(args: FindCommissionsArgs): Promise<number>
4352
- override countOutputBaskets(args: FindOutputBasketsArgs): Promise<number>
4353
- override countOutputs(args: FindOutputsArgs): Promise<number>
4354
- override countOutputTags(args: FindOutputTagsArgs): Promise<number>
4355
- override countSyncStates(args: FindSyncStatesArgs): Promise<number>
4356
- override countTransactions(args: FindTransactionsArgs): Promise<number>
4357
- override countTxLabels(args: FindTxLabelsArgs): Promise<number>
4358
- override countUsers(args: FindUsersArgs): Promise<number>
4359
- override findMonitorEvents(args: FindMonitorEventsArgs): Promise<TableMonitorEvent[]>
4360
- override countMonitorEvents(args: FindMonitorEventsArgs): Promise<number>
4361
- validateEntity<T extends EntityTimeStamp>(entity: T, dateFields?: string[], booleanFields?: string[]): T
4362
- validateEntities<T extends EntityTimeStamp>(entities: T[], dateFields?: string[], booleanFields?: string[]): T[]
4363
- }
4364
- ```
4365
-
4366
- See also: [EntityTimeStamp](./client.md#interface-entitytimestamp), [FindCertificateFieldsArgs](./client.md#interface-findcertificatefieldsargs), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindCommissionsArgs](./client.md#interface-findcommissionsargs), [FindForUserSincePagedArgs](./client.md#interface-findforusersincepagedargs), [FindMonitorEventsArgs](./client.md#interface-findmonitoreventsargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputTagsArgs](./client.md#interface-findoutputtagsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindPartialSincePagedArgs](./client.md#interface-findpartialsincepagedargs), [FindSyncStatesArgs](./client.md#interface-findsyncstatesargs), [FindTransactionsArgs](./client.md#interface-findtransactionsargs), [FindTxLabelsArgs](./client.md#interface-findtxlabelsargs), [FindUsersArgs](./client.md#interface-findusersargs), [StorageMySQLDojoReaderOptions](./storage.md#interface-storagemysqldojoreaderoptions), [StorageReader](./storage.md#class-storagereader), [TableCertificateField](./storage.md#interface-tablecertificatefield), [TableCertificateX](./storage.md#interface-tablecertificatex), [TableCommission](./storage.md#interface-tablecommission), [TableMonitorEvent](./storage.md#interface-tablemonitorevent), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableOutputTag](./storage.md#interface-tableoutputtag), [TableOutputTagMap](./storage.md#interface-tableoutputtagmap), [TableProvenTx](./storage.md#interface-tableproventx), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableSettings](./storage.md#interface-tablesettings), [TableSyncState](./storage.md#interface-tablesyncstate), [TableTransaction](./storage.md#interface-tabletransaction), [TableTxLabel](./storage.md#interface-tabletxlabel), [TableTxLabelMap](./storage.md#interface-tabletxlabelmap), [TableUser](./storage.md#interface-tableuser), [TrxToken](./client.md#interface-trxtoken), [WalletStorageSyncReader](./client.md#interface-walletstoragesyncreader), [validateEntities](./storage.md#function-validateentities), [validateEntity](./storage.md#function-validateentity)
4367
-
4368
- ###### Method validateEntities
4369
-
4370
- Helper to force uniform behavior across database engines.
4371
- Use to process all arrays of records with time stamps retreived from database.
4372
-
4373
- ```ts
4374
- validateEntities<T extends EntityTimeStamp>(entities: T[], dateFields?: string[], booleanFields?: string[]): T[]
4375
- ```
4376
- See also: [EntityTimeStamp](./client.md#interface-entitytimestamp)
4377
-
4378
- Returns
4379
-
4380
- input `entities` array with contained values validated.
4381
-
4382
- ###### Method validateEntity
4383
-
4384
- Helper to force uniform behavior across database engines.
4385
- Use to process all individual records with time stamps retreived from database.
4386
-
4387
- ```ts
4388
- validateEntity<T extends EntityTimeStamp>(entity: T, dateFields?: string[], booleanFields?: string[]): T
4389
- ```
4390
- See also: [EntityTimeStamp](./client.md#interface-entitytimestamp)
4391
-
4392
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
4393
-
4394
- ---
4395
- ##### Class: StorageProvider
3920
+ ##### Class: StorageProvider
4396
3921
 
4397
3922
  ```ts
4398
3923
  export abstract class StorageProvider extends StorageReaderWriter implements WalletStorageProvider {
@@ -4402,11 +3927,7 @@ export abstract class StorageProvider extends StorageReaderWriter implements Wal
4402
3927
  commissionSatoshis: number;
4403
3928
  commissionPubKeyHex?: PubKeyHex;
4404
3929
  maxRecursionDepth?: number;
4405
- static defaultOptions(): {
4406
- feeModel: StorageFeeModel;
4407
- commissionSatoshis: number;
4408
- commissionPubKeyHex: undefined;
4409
- }
3930
+ static defaultOptions()
4410
3931
  static createStorageBaseOptions(chain: Chain): StorageProviderOptions
4411
3932
  constructor(options: StorageProviderOptions)
4412
3933
  abstract reviewStatus(args: {
@@ -4440,7 +3961,7 @@ export abstract class StorageProvider extends StorageReaderWriter implements Wal
4440
3961
  abstract adminStats(adminIdentityKey: string): Promise<AdminStatsResult>;
4441
3962
  async recentlyActiveUsers(limit = 50, trx?: TrxToken): Promise<TableUser[]>
4442
3963
  override isStorageProvider(): boolean
4443
- setServices(v: WalletServices): void
3964
+ setServices(v: WalletServices)
4444
3965
  getServices(): WalletServices
4445
3966
  async abortAction(auth: AuthId, args: AbortActionArgs): Promise<AbortActionResult>
4446
3967
  async internalizeAction(auth: AuthId, args: InternalizeActionArgs): Promise<StorageInternalizeActionResult>
@@ -4462,10 +3983,6 @@ export abstract class StorageProvider extends StorageReaderWriter implements Wal
4462
3983
  async relinquishOutput(auth: AuthId, args: RelinquishOutputArgs): Promise<number>
4463
3984
  async processSyncChunk(args: RequestSyncChunkArgs, chunk: SyncChunk): Promise<ProcessSyncChunkResult>
4464
3985
  async updateProvenTxReqWithNewProvenTx(args: UpdateProvenTxReqWithNewProvenTxArgs): Promise<UpdateProvenTxReqWithNewProvenTxResult>
4465
- async reconcileCompletedProvenTxReqs(): Promise<{
4466
- log: string;
4467
- }>
4468
- async unfailTransactionsForProof(req: EntityProvenTxReq, indent = 0, requestUpdate?: Pick<TableProvenTxReqDynamics, "status" | "attempts">): Promise<string>
4469
3986
  async confirmSpendableOutputs(): Promise<{
4470
3987
  invalidSpendableOutputs: TableOutput[];
4471
3988
  }>
@@ -4494,6 +4011,21 @@ Returns
4494
4011
 
4495
4012
  object with invalidSpendableOutputs array. A good result is an empty array.
4496
4013
 
4014
+ ###### Method getProvenOrReq
4015
+
4016
+ Checks if txid is a known valid ProvenTx and returns it if found.
4017
+ Next checks if txid is a current ProvenTxReq and returns that if found.
4018
+ If `newReq` is provided and an existing ProvenTxReq isn't found,
4019
+ use `newReq` to create a new ProvenTxReq.
4020
+
4021
+ This is safe "findOrInsert" operation using retry if unique index constraint
4022
+ is violated by a race condition insert.
4023
+
4024
+ ```ts
4025
+ async getProvenOrReq(txid: string, newReq?: TableProvenTxReq, trx?: TrxToken): Promise<StorageProvenOrReq>
4026
+ ```
4027
+ See also: [StorageProvenOrReq](./client.md#interface-storageprovenorreq), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TrxToken](./client.md#interface-trxtoken)
4028
+
4497
4029
  ###### Method getReqsAndBeefToShareWithWorld
4498
4030
 
4499
4031
  Given an array of transaction txids with current ProvenTxReq ready-to-share status,
@@ -4517,31 +4049,6 @@ async getValidBeefForKnownTxid(txid: string, mergeToBeef?: Beef, trustSelf?: Tru
4517
4049
  ```
4518
4050
  See also: [TrxToken](./client.md#interface-trxtoken)
4519
4051
 
4520
- ###### Method reconcileCompletedProvenTxReqs
4521
-
4522
- Reconcile completed proof requests whose transaction fan-out previously
4523
- failed or whose durable notification state drifted.
4524
-
4525
- This is called by TaskReviewStatus so a completed request with
4526
- `notified = false` is retried and can become eligible for normal purge.
4527
-
4528
- ```ts
4529
- async reconcileCompletedProvenTxReqs(): Promise<{
4530
- log: string;
4531
- }>
4532
- ```
4533
-
4534
- ###### Method unfailTransactionsForProof
4535
-
4536
- Restore every failed local copy of a transaction before proof completion.
4537
- Also heals the request's notification set from the authoritative txid
4538
- lookup so TaskUnFail cannot omit a local copy after notification drift.
4539
-
4540
- ```ts
4541
- async unfailTransactionsForProof(req: EntityProvenTxReq, indent = 0, requestUpdate?: Pick<TableProvenTxReqDynamics, "status" | "attempts">): Promise<string>
4542
- ```
4543
- See also: [EntityProvenTxReq](./storage.md#class-entityproventxreq), [TableProvenTxReqDynamics](./storage.md#interface-tableproventxreqdynamics)
4544
-
4545
4052
  ###### Method updateProvenTxReqWithNewProvenTx
4546
4053
 
4547
4054
  Handles storage changes when a valid MerklePath and mined block header are found for a ProvenTxReq txid.
@@ -4565,8 +4072,7 @@ See also: [UpdateProvenTxReqWithNewProvenTxArgs](./client.md#interface-updatepro
4565
4072
 
4566
4073
  For all `status` values besides 'failed', just updates the transaction records status property.
4567
4074
 
4568
- For 'status' of 'failed', attempts to make outputs previously allocated as inputs to this transaction usable again
4569
- and makes outputs generated by this transaction non-spendable.
4075
+ For 'status' of 'failed', attempts to make outputs previously allocated as inputs to this transaction usable again.
4570
4076
 
4571
4077
  ```ts
4572
4078
  async updateTransactionStatus(status: TransactionStatus, transactionId?: number, userId?: number, reference?: string, trx?: TrxToken): Promise<void>
@@ -4639,7 +4145,7 @@ export abstract class StorageReader implements sdk.WalletStorageSyncReader {
4639
4145
  }
4640
4146
  ```
4641
4147
 
4642
- See also: [Chain](./client.md#type-chain), [DBType](./storage.md#type-dbtype), [FindCertificateFieldsArgs](./client.md#interface-findcertificatefieldsargs), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindCommissionsArgs](./client.md#interface-findcommissionsargs), [FindForUserSincePagedArgs](./client.md#interface-findforusersincepagedargs), [FindMonitorEventsArgs](./client.md#interface-findmonitoreventsargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputTagsArgs](./client.md#interface-findoutputtagsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindSyncStatesArgs](./client.md#interface-findsyncstatesargs), [FindTransactionsArgs](./client.md#interface-findtransactionsargs), [FindTxLabelsArgs](./client.md#interface-findtxlabelsargs), [FindUsersArgs](./client.md#interface-findusersargs), [RequestSyncChunkArgs](./client.md#interface-requestsyncchunkargs), [StorageReaderOptions](./storage.md#interface-storagereaderoptions), [SyncChunk](./client.md#interface-syncchunk), [TableCertificateField](./storage.md#interface-tablecertificatefield), [TableCertificateX](./storage.md#interface-tablecertificatex), [TableCommission](./storage.md#interface-tablecommission), [TableMonitorEvent](./storage.md#interface-tablemonitorevent), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableOutputTag](./storage.md#interface-tableoutputtag), [TableOutputTagMap](./storage.md#interface-tableoutputtagmap), [TableProvenTx](./storage.md#interface-tableproventx), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableSettings](./storage.md#interface-tablesettings), [TableSyncState](./storage.md#interface-tablesyncstate), [TableTransaction](./storage.md#interface-tabletransaction), [TableTxLabel](./storage.md#interface-tabletxlabel), [TableTxLabelMap](./storage.md#interface-tabletxlabelmap), [TableUser](./storage.md#interface-tableuser), [TrxToken](./client.md#interface-trxtoken), [WalletStorageSyncReader](./client.md#interface-walletstoragesyncreader), [getSyncChunk](./storage.md#function-getsyncchunk), [validateDate](./storage.md#function-validatedate)
4148
+ See also: [Chain](./client.md#type-chain), [DBType](./storage.md#type-dbtype), [FindCertificateFieldsArgs](./client.md#interface-findcertificatefieldsargs), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindCommissionsArgs](./client.md#interface-findcommissionsargs), [FindForUserSincePagedArgs](./client.md#interface-findforusersincepagedargs), [FindMonitorEventsArgs](./client.md#interface-findmonitoreventsargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputTagsArgs](./client.md#interface-findoutputtagsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindSyncStatesArgs](./client.md#interface-findsyncstatesargs), [FindTransactionsArgs](./client.md#interface-findtransactionsargs), [FindTxLabelsArgs](./client.md#interface-findtxlabelsargs), [FindUsersArgs](./client.md#interface-findusersargs), [RequestSyncChunkArgs](./client.md#interface-requestsyncchunkargs), [StorageReaderOptions](./storage.md#interface-storagereaderoptions), [SyncChunk](./client.md#interface-syncchunk), [TableCertificateField](./storage.md#interface-tablecertificatefield), [TableCertificateX](./storage.md#interface-tablecertificatex), [TableCommission](./storage.md#interface-tablecommission), [TableMonitorEvent](./storage.md#interface-tablemonitorevent), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableOutputTag](./storage.md#interface-tableoutputtag), [TableOutputTagMap](./storage.md#interface-tableoutputtagmap), [TableProvenTx](./storage.md#interface-tableproventx), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableSettings](./storage.md#interface-tablesettings), [TableSyncState](./storage.md#interface-tablesyncstate), [TableTransaction](./storage.md#interface-tabletransaction), [TableTxLabel](./storage.md#interface-tabletxlabel), [TableTxLabelMap](./storage.md#interface-tabletxlabelmap), [TableUser](./storage.md#interface-tableuser), [TrxToken](./client.md#interface-trxtoken), [WalletStorageSyncReader](./client.md#interface-walletstoragesyncreader), [getSyncChunk](./storage.md#function-getsyncchunk)
4643
4149
 
4644
4150
  ###### Method validateEntityDate
4645
4151
 
@@ -4667,6 +4173,7 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
4667
4173
 
4668
4174
  ```ts
4669
4175
  export abstract class StorageReaderWriter extends StorageReader {
4176
+ constructor(options: StorageReaderWriterOptions)
4670
4177
  abstract dropAllData(): Promise<void>;
4671
4178
  abstract migrate(storageName: string, storageIdentityKey: string): Promise<string>;
4672
4179
  abstract findOutputTagMaps(args: FindOutputTagMapsArgs): Promise<TableOutputTagMap[]>;
@@ -4750,7 +4257,7 @@ export abstract class StorageReaderWriter extends StorageReader {
4750
4257
  }
4751
4258
  ```
4752
4259
 
4753
- See also: [AuthId](./client.md#interface-authid), [FindOutputTagMapsArgs](./client.md#interface-findoutputtagmapsargs), [FindProvenTxReqsArgs](./client.md#interface-findproventxreqsargs), [FindProvenTxsArgs](./client.md#interface-findproventxsargs), [FindStaleMerkleRootsArgs](./client.md#interface-findstalemerklerootsargs), [FindTxLabelMapsArgs](./client.md#interface-findtxlabelmapsargs), [ProcessSyncChunkResult](./client.md#interface-processsyncchunkresult), [RequestSyncChunkArgs](./client.md#interface-requestsyncchunkargs), [StorageReader](./storage.md#class-storagereader), [SyncChunk](./client.md#interface-syncchunk), [TableCertificate](./storage.md#interface-tablecertificate), [TableCertificateField](./storage.md#interface-tablecertificatefield), [TableCommission](./storage.md#interface-tablecommission), [TableMonitorEvent](./storage.md#interface-tablemonitorevent), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableOutputTag](./storage.md#interface-tableoutputtag), [TableOutputTagMap](./storage.md#interface-tableoutputtagmap), [TableProvenTx](./storage.md#interface-tableproventx), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableSyncState](./storage.md#interface-tablesyncstate), [TableTransaction](./storage.md#interface-tabletransaction), [TableTxLabel](./storage.md#interface-tabletxlabel), [TableTxLabelMap](./storage.md#interface-tabletxlabelmap), [TableUser](./storage.md#interface-tableuser), [TrxToken](./client.md#interface-trxtoken)
4260
+ See also: [AuthId](./client.md#interface-authid), [FindOutputTagMapsArgs](./client.md#interface-findoutputtagmapsargs), [FindProvenTxReqsArgs](./client.md#interface-findproventxreqsargs), [FindProvenTxsArgs](./client.md#interface-findproventxsargs), [FindStaleMerkleRootsArgs](./client.md#interface-findstalemerklerootsargs), [FindTxLabelMapsArgs](./client.md#interface-findtxlabelmapsargs), [ProcessSyncChunkResult](./client.md#interface-processsyncchunkresult), [RequestSyncChunkArgs](./client.md#interface-requestsyncchunkargs), [StorageReader](./storage.md#class-storagereader), [StorageReaderWriterOptions](./storage.md#interface-storagereaderwriteroptions), [SyncChunk](./client.md#interface-syncchunk), [TableCertificate](./storage.md#interface-tablecertificate), [TableCertificateField](./storage.md#interface-tablecertificatefield), [TableCommission](./storage.md#interface-tablecommission), [TableMonitorEvent](./storage.md#interface-tablemonitorevent), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableOutputTag](./storage.md#interface-tableoutputtag), [TableOutputTagMap](./storage.md#interface-tableoutputtagmap), [TableProvenTx](./storage.md#interface-tableproventx), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableSyncState](./storage.md#interface-tablesyncstate), [TableTransaction](./storage.md#interface-tabletransaction), [TableTxLabel](./storage.md#interface-tabletxlabel), [TableTxLabelMap](./storage.md#interface-tabletxlabelmap), [TableUser](./storage.md#interface-tableuser), [TrxToken](./client.md#interface-trxtoken)
4754
4261
 
4755
4262
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
4756
4263
 
@@ -4769,7 +4276,7 @@ export class StorageServer {
4769
4276
  }
4770
4277
  ```
4771
4278
 
4772
- See also: [EntityTimeStamp](./client.md#interface-entitytimestamp), [StorageProvider](./storage.md#class-storageprovider), [WalletStorageServerOptions](./storage.md#interface-walletstorageserveroptions), [validateDate](./storage.md#function-validatedate), [validateEntities](./storage.md#function-validateentities), [validateEntity](./storage.md#function-validateentity)
4279
+ See also: [EntityTimeStamp](./client.md#interface-entitytimestamp), [StorageProvider](./storage.md#class-storageprovider), [WalletStorageServerOptions](./storage.md#interface-walletstorageserveroptions)
4773
4280
 
4774
4281
  ###### Method validateEntities
4775
4282
 
@@ -4809,7 +4316,7 @@ and the `StorageBaseReader` to be protected.
4809
4316
  export class StorageSyncReader implements sdk.WalletStorageSyncReader {
4810
4317
  constructor(public auth: sdk.AuthId, public storage: StorageReader)
4811
4318
  async makeAvailable(): Promise<TableSettings>
4812
- async destroy(): Promise<void>
4319
+ destroy(): Promise<void>
4813
4320
  async getSyncChunk(args: sdk.RequestSyncChunkArgs): Promise<sdk.SyncChunk>
4814
4321
  }
4815
4322
  ```
@@ -4866,7 +4373,7 @@ export class WalletStorageManager implements sdk.WalletStorage {
4866
4373
  async runAsStorageProvider<R>(sync: (active: StorageProvider) => Promise<R>): Promise<R>
4867
4374
  isActiveStorageProvider(): boolean
4868
4375
  async addWalletStorageProvider(provider: sdk.WalletStorageProvider): Promise<void>
4869
- setServices(v: sdk.WalletServices): void
4376
+ setServices(v: sdk.WalletServices)
4870
4377
  getServices(): sdk.WalletServices
4871
4378
  getSettings(): TableSettings
4872
4379
  async migrate(storageName: string, storageIdentityKey: string): Promise<string>
@@ -5007,6 +4514,26 @@ Returns
5007
4514
 
5008
4515
  true if the active `WalletStorageProvider` also implements `StorageProvider`
5009
4516
 
4517
+ ###### Method makeAvailable
4518
+
4519
+ This async function must be called after construction and before
4520
+ any other async function can proceed.
4521
+
4522
+ Runs through `_stores` validating all properties and partitioning across `_active`, `_backups`, `_conflictingActives`.
4523
+
4524
+ ```ts
4525
+ async makeAvailable(): Promise<TableSettings>
4526
+ ```
4527
+ See also: [TableSettings](./storage.md#interface-tablesettings)
4528
+
4529
+ Returns
4530
+
4531
+ from the active storage.
4532
+
4533
+ Throws
4534
+
4535
+ WERR_INVALID_PARAMETER if canMakeAvailable returns false.
4536
+
5010
4537
  ###### Method reproveHeader
5011
4538
 
5012
4539
  For each proven_txs record currently sourcing its transaction merkle proof from the given deactivated header,
@@ -5035,6 +4562,23 @@ async reproveHeightMerkleRoot(height: number, staleMerkleRoot: string): Promise<
5035
4562
  ```
5036
4563
  See also: [ReproveHeaderResult](./client.md#interface-reproveheaderresult)
5037
4564
 
4565
+ ###### Method reproveProven
4566
+
4567
+ Attempt to reprove the transaction against the current chain,
4568
+ If a new valid proof is found and noUpdate is not true,
4569
+ update the proven_txs record with new block and merkle proof data.
4570
+ If noUpdate is true, the update to be applied is available in the returned result.
4571
+
4572
+ ```ts
4573
+ async reproveProven(ptx: TableProvenTx, noUpdate?: boolean): Promise<sdk.ReproveProvenResult>
4574
+ ```
4575
+ See also: [ReproveProvenResult](./client.md#interface-reproveprovenresult), [TableProvenTx](./storage.md#interface-tableproventx)
4576
+
4577
+ Argument Details
4578
+
4579
+ + **ptx**
4580
+ + proven_txs record to reprove
4581
+
5038
4582
  ###### Method runAsSync
5039
4583
 
5040
4584
  ```ts
@@ -5071,39 +4615,18 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
5071
4615
 
5072
4616
  | | | |
5073
4617
  | --- | --- | --- |
5074
- | [attemptToPostReqsToNetwork](#function-attempttopostreqstonetwork) | [markStaleInputsAsSpent](#function-markstaleinputsasspent) | [shareReqsWithWorld](#function-sharereqswithworld) |
5075
- | [binaryJsonReplacer](#function-binaryjsonreplacer) | [markUserInputsSpent](#function-markuserinputsspent) | [stringifyJsonRpc](#function-stringifyjsonrpc) |
5076
- | [binaryJsonReviver](#function-binaryjsonreviver) | [matchesCertificateFieldPartial](#function-matchescertificatefieldpartial) | [tableAuthSessionToPeerSession](#function-tableauthsessiontopeersession) |
5077
- | [classifyReqStatus](#function-classifyreqstatus) | [matchesCertificatePartial](#function-matchescertificatepartial) | [transactionInputSize](#function-transactioninputsize) |
5078
- | [createAction](#function-createaction) | [matchesCommissionPartial](#function-matchescommissionpartial) | [transactionOutputSize](#function-transactionoutputsize) |
5079
- | [createStorageServiceChargeScript](#function-createstorageservicechargescript) | [matchesMonitorEventPartial](#function-matchesmonitoreventpartial) | [transactionSize](#function-transactionsize) |
5080
- | [createSyncMap](#function-createsyncmap) | [matchesOutputBasketPartial](#function-matchesoutputbasketpartial) | [updateReqsFromAggregateResults](#function-updatereqsfromaggregateresults) |
5081
- | [dateMatches](#function-datematches) | [matchesOutputPartial](#function-matchesoutputpartial) | [upgradeAllStoresV1](#function-upgradeallstoresv1) |
5082
- | [decodeBinaryJsonValue](#function-decodebinaryjsonvalue) | [matchesOutputTagMapPartial](#function-matchesoutputtagmappartial) | [upgradeCertificateFields](#function-upgradecertificatefields) |
5083
- | [decryptBRC39](#function-decryptbrc39) | [matchesOutputTagPartial](#function-matchesoutputtagpartial) | [upgradeCertificates](#function-upgradecertificates) |
5084
- | [determineDBType](#function-determinedbtype) | [matchesProvenTxPartial](#function-matchesproventxpartial) | [upgradeCommissions](#function-upgradecommissions) |
5085
- | [encryptBRC39](#function-encryptbrc39) | [matchesProvenTxReqPartial](#function-matchesproventxreqpartial) | [upgradeMonitorEvents](#function-upgrademonitorevents) |
5086
- | [exportBRC38](#function-exportbrc38) | [matchesSyncStatePartial](#function-matchessyncstatepartial) | [upgradeOutputBaskets](#function-upgradeoutputbaskets) |
5087
- | [exportBRC38Json](#function-exportbrc38json) | [matchesTransactionPartial](#function-matchestransactionpartial) | [upgradeOutputTags](#function-upgradeoutputtags) |
5088
- | [exportBRC39](#function-exportbrc39) | [matchesTxLabelMapPartial](#function-matchestxlabelmappartial) | [upgradeOutputTagsMap](#function-upgradeoutputtagsmap) |
5089
- | [generateChangeSdk](#function-generatechangesdk) | [matchesTxLabelPartial](#function-matchestxlabelpartial) | [upgradeOutputs](#function-upgradeoutputs) |
5090
- | [generateChangeSdkMakeStorage](#function-generatechangesdkmakestorage) | [mergeInputBeefs](#function-mergeinputbeefs) | [upgradeProvenTxReqs](#function-upgradeproventxreqs) |
5091
- | [getBeefForTransaction](#function-getbeeffortransaction) | [mergeInputsIntoBeef](#function-mergeinputsintobeef) | [upgradeProvenTxs](#function-upgradeproventxs) |
5092
- | [getListOutputsSpecOp](#function-getlistoutputsspecop) | [notifyTransactionsOfProof](#function-notifytransactionsofproof) | [upgradeSyncStates](#function-upgradesyncstates) |
5093
- | [getSyncChunk](#function-getsyncchunk) | [offsetPrivKey](#function-offsetprivkey) | [upgradeTransactions](#function-upgradetransactions) |
5094
- | [importBRC38](#function-importbrc38) | [offsetPubKey](#function-offsetpubkey) | [upgradeTxLabels](#function-upgradetxlabels) |
5095
- | [importBRC39](#function-importbrc39) | [parseBRC38Json](#function-parsebrc38json) | [upgradeTxLabelsMap](#function-upgradetxlabelsmap) |
5096
- | [internalizeAction](#function-internalizeaction) | [parseJsonRpc](#function-parsejsonrpc) | [upgradeUsers](#function-upgradeusers) |
5097
- | [isAutoSpendableChangeOutput](#function-isautospendablechangeoutput) | [partitionActionLabels](#function-partitionactionlabels) | [validateDate](#function-validatedate) |
5098
- | [isManagedChangeOutput](#function-ismanagedchangeoutput) | [processAction](#function-processaction) | [validateEntities](#function-validateentities) |
5099
- | [keyOffsetToHashedSecret](#function-keyoffsettohashedsecret) | [purgeData](#function-purgedata) | [validateEntity](#function-validateentity) |
5100
- | [legacyBinaryJsonReplacer](#function-legacybinaryjsonreplacer) | [purgeDataIdb](#function-purgedataidb) | [validateGenerateChangeSdkParams](#function-validategeneratechangesdkparams) |
5101
- | [listActions](#function-listactions) | [redeemServiceCharges](#function-redeemservicecharges) | [validateGenerateChangeSdkResult](#function-validategeneratechangesdkresult) |
5102
- | [listActionsIdb](#function-listactionsidb) | [renderAdminPage](#function-renderadminpage) | [validateStorageFeeModel](#function-validatestoragefeemodel) |
5103
- | [listCertificates](#function-listcertificates) | [restoreInputsToSpendable](#function-restoreinputstospendable) | [validateSyncChunkEntities](#function-validatesyncchunkentities) |
5104
- | [listOutputs](#function-listoutputs) | [reviewStatus](#function-reviewstatus) | [varUintSize](#function-varuintsize) |
5105
- | [listOutputsIdb](#function-listoutputsidb) | [reviewStatusIdb](#function-reviewstatusidb) | |
5106
- | [lockScriptWithKeyOffsetFromPubKey](#function-lockscriptwithkeyoffsetfrompubkey) | [setDisableDoubleSpendCheckForTest](#function-setdisabledoublespendcheckfortest) | |
4618
+ | [attemptToPostReqsToNetwork](#function-attempttopostreqstonetwork) | [listActions](#function-listactions) | [renderAdminPage](#function-renderadminpage) |
4619
+ | [createAction](#function-createaction) | [listActionsIdb](#function-listactionsidb) | [reviewStatus](#function-reviewstatus) |
4620
+ | [createStorageServiceChargeScript](#function-createstorageservicechargescript) | [listCertificates](#function-listcertificates) | [reviewStatusIdb](#function-reviewstatusidb) |
4621
+ | [createSyncMap](#function-createsyncmap) | [listOutputs](#function-listoutputs) | [setDisableDoubleSpendCheckForTest](#function-setdisabledoublespendcheckfortest) |
4622
+ | [determineDBType](#function-determinedbtype) | [listOutputsIdb](#function-listoutputsidb) | [shareReqsWithWorld](#function-sharereqswithworld) |
4623
+ | [generateChangeSdk](#function-generatechangesdk) | [lockScriptWithKeyOffsetFromPubKey](#function-lockscriptwithkeyoffsetfrompubkey) | [transactionInputSize](#function-transactioninputsize) |
4624
+ | [generateChangeSdkMakeStorage](#function-generatechangesdkmakestorage) | [offsetPrivKey](#function-offsetprivkey) | [transactionOutputSize](#function-transactionoutputsize) |
4625
+ | [getBeefForTransaction](#function-getbeeffortransaction) | [offsetPubKey](#function-offsetpubkey) | [transactionSize](#function-transactionsize) |
4626
+ | [getListOutputsSpecOp](#function-getlistoutputsspecop) | [processAction](#function-processaction) | [validateGenerateChangeSdkParams](#function-validategeneratechangesdkparams) |
4627
+ | [getSyncChunk](#function-getsyncchunk) | [purgeData](#function-purgedata) | [validateGenerateChangeSdkResult](#function-validategeneratechangesdkresult) |
4628
+ | [internalizeAction](#function-internalizeaction) | [purgeDataIdb](#function-purgedataidb) | [validateStorageFeeModel](#function-validatestoragefeemodel) |
4629
+ | [keyOffsetToHashedSecret](#function-keyoffsettohashedsecret) | [redeemServiceCharges](#function-redeemservicecharges) | [varUintSize](#function-varuintsize) |
5107
4630
 
5108
4631
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5109
4632
 
@@ -5122,38 +4645,6 @@ See also: [EntityProvenTxReq](./storage.md#class-entityproventxreq), [PostReqsTo
5122
4645
 
5123
4646
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5124
4647
 
5125
- ---
5126
- ##### Function: binaryJsonReplacer
5127
-
5128
- ```ts
5129
- export function binaryJsonReplacer(this: Record<string, unknown>, key: string, value: unknown): unknown
5130
- ```
5131
-
5132
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5133
-
5134
- ---
5135
- ##### Function: binaryJsonReviver
5136
-
5137
- ```ts
5138
- export function binaryJsonReviver(_key: string, value: unknown): unknown
5139
- ```
5140
-
5141
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5142
-
5143
- ---
5144
- ##### Function: classifyReqStatus
5145
-
5146
- Classify a ProvenTxReq status into beef-sharing lifecycle status.
5147
- Mutates `d` in place.
5148
-
5149
- ```ts
5150
- export function classifyReqStatus(d: GetReqsAndBeefDetail, req: TableProvenTxReq): void
5151
- ```
5152
-
5153
- See also: [GetReqsAndBeefDetail](./storage.md#interface-getreqsandbeefdetail), [TableProvenTxReq](./storage.md#interface-tableproventxreq)
5154
-
5155
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5156
-
5157
4648
  ---
5158
4649
  ##### Function: createAction
5159
4650
 
@@ -5188,35 +4679,6 @@ See also: [SyncMap](./storage.md#interface-syncmap)
5188
4679
 
5189
4680
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5190
4681
 
5191
- ---
5192
- ##### Function: dateMatches
5193
-
5194
- ```ts
5195
- export function dateMatches(a: Date | undefined, b: Date | undefined): boolean
5196
- ```
5197
-
5198
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5199
-
5200
- ---
5201
- ##### Function: decodeBinaryJsonValue
5202
-
5203
- ```ts
5204
- export function decodeBinaryJsonValue(value: unknown): unknown
5205
- ```
5206
-
5207
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5208
-
5209
- ---
5210
- ##### Function: decryptBRC39
5211
-
5212
- ```ts
5213
- export async function decryptBRC39(bytes: number[] | Uint8Array, password: string): Promise<BRC38WalletData>
5214
- ```
5215
-
5216
- See also: [BRC38WalletData](./storage.md#interface-brc38walletdata)
5217
-
5218
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5219
-
5220
4682
  ---
5221
4683
  ##### Function: determineDBType
5222
4684
 
@@ -5232,50 +4694,6 @@ connected database engine variant
5232
4694
 
5233
4695
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5234
4696
 
5235
- ---
5236
- ##### Function: encryptBRC39
5237
-
5238
- ```ts
5239
- export async function encryptBRC39(documentOrJson: BRC38WalletData | string, password: string, options?: BRC39Options): Promise<number[]>
5240
- ```
5241
-
5242
- See also: [BRC38WalletData](./storage.md#interface-brc38walletdata), [BRC39Options](./storage.md#interface-brc39options)
5243
-
5244
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5245
-
5246
- ---
5247
- ##### Function: exportBRC38
5248
-
5249
- ```ts
5250
- export async function exportBRC38(storage: StorageProvider, identityKey: string): Promise<BRC38WalletData>
5251
- ```
5252
-
5253
- See also: [BRC38WalletData](./storage.md#interface-brc38walletdata), [StorageProvider](./storage.md#class-storageprovider)
5254
-
5255
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5256
-
5257
- ---
5258
- ##### Function: exportBRC38Json
5259
-
5260
- ```ts
5261
- export async function exportBRC38Json(storage: StorageProvider, identityKey: string): Promise<string>
5262
- ```
5263
-
5264
- See also: [StorageProvider](./storage.md#class-storageprovider)
5265
-
5266
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5267
-
5268
- ---
5269
- ##### Function: exportBRC39
5270
-
5271
- ```ts
5272
- export async function exportBRC39(storage: StorageProvider, identityKey: string, password: string, options?: BRC39Options): Promise<number[]>
5273
- ```
5274
-
5275
- See also: [BRC39Options](./storage.md#interface-brc39options), [StorageProvider](./storage.md#class-storageprovider)
5276
-
5277
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5278
-
5279
4697
  ---
5280
4698
  ##### Function: generateChangeSdk
5281
4699
 
@@ -5369,28 +4787,6 @@ See also: [RequestSyncChunkArgs](./client.md#interface-requestsyncchunkargs), [S
5369
4787
 
5370
4788
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5371
4789
 
5372
- ---
5373
- ##### Function: importBRC38
5374
-
5375
- ```ts
5376
- export async function importBRC38(storage: StorageProvider, documentOrJson: BRC38WalletData | string, options: BRC38ImportOptions): Promise<BRC38ImportResult>
5377
- ```
5378
-
5379
- See also: [BRC38ImportOptions](./storage.md#interface-brc38importoptions), [BRC38ImportResult](./storage.md#interface-brc38importresult), [BRC38WalletData](./storage.md#interface-brc38walletdata), [StorageProvider](./storage.md#class-storageprovider)
5380
-
5381
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5382
-
5383
- ---
5384
- ##### Function: importBRC39
5385
-
5386
- ```ts
5387
- export async function importBRC39(storage: StorageProvider, bytes: number[] | Uint8Array, password: string, options: BRC38ImportOptions): Promise<BRC38ImportResult>
5388
- ```
5389
-
5390
- See also: [BRC38ImportOptions](./storage.md#interface-brc38importoptions), [BRC38ImportResult](./storage.md#interface-brc38importresult), [StorageProvider](./storage.md#class-storageprovider)
5391
-
5392
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5393
-
5394
4790
  ---
5395
4791
  ##### Function: internalizeAction
5396
4792
 
@@ -5406,19 +4802,7 @@ A "wallet payment" adds an outputs value to the wallet's change "balance". These
5406
4802
  Processing starts with simple validation and then checks for a pre-existing transaction.
5407
4803
  If the transaction is already known to the user, then the outputs are reviewed against the existing outputs treatment,
5408
4804
  and merge rules are added to the arguments passed to the storage layer.
5409
-
5410
- The existing transaction's `status` determines what the merge path does next:
5411
- - `'unproven'`, `'completed'`, or `'sending'`: outputs are merged into the existing record. The transaction status is left as-is.
5412
- The `'sending'` case covers a transaction this wallet already signed and handed to broadcast processing, but
5413
- whose proven_tx_req has not yet been advanced by the normal monitor/posting flow.
5414
- - `'nosend'`: an ambiguous case. The transaction was created with `noSend: true` and may have been externally
5415
- broadcast, may be sitting in a sendWith chain, or may be stuck mid-flight. The merge path treats the
5416
- `internalizeAction` call as explicit authorization to advance the lifecycle. Specifically: `transactions.status`
5417
- is promoted to `'completed'` (when a BUMP is included in the BEEF) or `'unproven'` (otherwise), and the
5418
- `proven_tx_req` is moved out of `'nosend'` so Monitor's standard proof-fetching flow can finalize it.
5419
- This makes the `internalizeAction` semantics consistent regardless of whether the originator shares the
5420
- same storage as the internalizer or not.
5421
- - Any other status: an error.
4805
+ The existing transaction must be in the 'unproven' or 'completed' status. Any other status is an error.
5422
4806
 
5423
4807
  When the transaction already exists, the description is updated. The isOutgoing sense is not changed.
5424
4808
 
@@ -5428,10 +4812,8 @@ When the transaction already exists, the description is updated. The isOutgoing
5428
4812
  3. Basket insertions do not affect wallet balance and are typed "custom".
5429
4813
 
5430
4814
  "wallet payment" Merge Rules:
5431
- 1. Targeting an existing managed output is idempotent.
5432
- 2. Targeting an existing custom output converts it to managed BRC-29
5433
- change and increases wallet balance. This includes verified recovery of
5434
- a legacy custom row that was incorrectly placed in the default basket.
4815
+ 1. Targeting existing managed change in the default basket is idempotent.
4816
+ 2. Targeting a custom output promotes it to managed BRC-29 change and increases wallet balance. This includes recovery of a legacy custom row incorrectly stored in the default basket.
5435
4817
 
5436
4818
  ```ts
5437
4819
  export async function internalizeAction(storage: StorageProvider, auth: AuthId, args: InternalizeActionArgs): Promise<StorageInternalizeActionResult>
@@ -5441,35 +4823,6 @@ See also: [AuthId](./client.md#interface-authid), [StorageInternalizeActionResul
5441
4823
 
5442
4824
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5443
4825
 
5444
- ---
5445
- ##### Function: isAutoSpendableChangeOutput
5446
-
5447
- True when managed change is currently eligible for automatic allocation.
5448
-
5449
- ```ts
5450
- export function isAutoSpendableChangeOutput(output: TableOutput | undefined): output is TableOutput
5451
- ```
5452
-
5453
- See also: [TableOutput](./storage.md#interface-tableoutput)
5454
-
5455
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5456
-
5457
- ---
5458
- ##### Function: isManagedChangeOutput
5459
-
5460
- True when an output has all metadata required to use the wallet-managed
5461
- BRC-29 signing path. `senderIdentityKey` is optional: wallet-created change
5462
- uses the client's change public key when it is absent, while received
5463
- BRC-29 payments record the sender's identity key.
5464
-
5465
- ```ts
5466
- export function isManagedChangeOutput(output: TableOutput | undefined): output is TableOutput
5467
- ```
5468
-
5469
- See also: [TableOutput](./storage.md#interface-tableoutput)
5470
-
5471
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5472
-
5473
4826
  ---
5474
4827
  ##### Function: keyOffsetToHashedSecret
5475
4828
 
@@ -5482,15 +4835,6 @@ export function keyOffsetToHashedSecret(pub: PublicKey, keyOffset?: string): {
5482
4835
 
5483
4836
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5484
4837
 
5485
- ---
5486
- ##### Function: legacyBinaryJsonReplacer
5487
-
5488
- ```ts
5489
- export function legacyBinaryJsonReplacer(_key: string, value: unknown): unknown
5490
- ```
5491
-
5492
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5493
-
5494
4838
  ---
5495
4839
  ##### Function: listActions
5496
4840
 
@@ -5559,97 +4903,67 @@ export function lockScriptWithKeyOffsetFromPubKey(pubKey: string, keyOffset?: st
5559
4903
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5560
4904
 
5561
4905
  ---
5562
- ##### Function: markStaleInputsAsSpent
5563
-
5564
- After any failed broadcast (doubleSpend, invalidTx, etc.), query each
5565
- consumed-input outpoint of the failed transaction against on-chain
5566
- UTXO state. For inputs the chain authoritatively confirms are spent
5567
- (i.e. NOT a UTXO), update the corresponding wallet basket entry to
5568
- spendable=false.
5569
-
5570
- Background: `updateTransactionStatus(failed)` optimistically restores
5571
- all consumed-input outputs to spendable=true so the user can retry
5572
- with the same inputs. For some failures (genuine doubleSpend, or any
5573
- 'missing-inputs' outcome where the input has been spent on chain by
5574
- a different transaction), restoration is incorrect — the input is
5575
- gone and restoring it produces an infinite missing-inputs loop on
5576
- the next createAction → broadcast cycle. Apps cannot evict from the
5577
- default basket on app-isolated wallets (admin-only policy), so this
5578
- self-heal must run inside the wallet.
5579
-
5580
- Different broadcasters classify the same on-chain reality differently
5581
- (ARC → doubleSpend, WhatsOnChain/Bitails → invalidTx via
5582
- 'missing-inputs'); this helper is broadcaster-agnostic because its
5583
- decision is based on services.isUtxo, not the aggregate failure
5584
- classification.
4906
+ ##### Function: offsetPrivKey
5585
4907
 
5586
- Pre-broadcast races where concurrent createActions reach the same
5587
- UTXO across separate app processes are out of scope; see PR
5588
- description.
4908
+ ```ts
4909
+ export function offsetPrivKey(privKey: string, keyOffset?: string): {
4910
+ offsetPrivKey: string;
4911
+ keyOffset: string;
4912
+ }
4913
+ ```
5589
4914
 
5590
- Conservatively scoped:
5591
- - Only inputs found in the failing user's basket are touched.
5592
- - Inputs whose on-chain UTXO status cannot be determined (service
5593
- error / inconclusive) are left spendable=true. Eviction is opt-in
5594
- based on positive evidence of stale state.
5595
- - Inputs the chain confirms are still UTXOs (e.g. a competing tx
5596
- itself failed, or a malformed/fee failure where inputs are intact)
5597
- are left spendable=true — preserving the existing transient-retry
5598
- semantics callers depend on.
4915
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5599
4916
 
5600
- Returns counts for instrumentation and the set of stale outpoints
5601
- that were actually evicted (added to history note for diagnostics).
4917
+ ---
4918
+ ##### Function: offsetPubKey
5602
4919
 
5603
4920
  ```ts
5604
- export async function markStaleInputsAsSpent(ar: AggregatePostBeefTxResult, storage: StorageProvider, services: sdk.WalletServices, trx?: sdk.TrxToken, logger?: WalletLoggerInterface): Promise<{
5605
- checked: number;
5606
- staleConfirmed: number;
5607
- staleOutpoints: string[];
5608
- }>
4921
+ export function offsetPubKey(pubKey: string, keyOffset?: string): {
4922
+ offsetPubKey: string;
4923
+ keyOffset: string;
4924
+ }
5609
4925
  ```
5610
4926
 
5611
- See also: [AggregatePostBeefTxResult](./storage.md#interface-aggregatepostbeeftxresult), [StorageProvider](./storage.md#class-storageprovider), [TrxToken](./client.md#interface-trxtoken), [WalletServices](./client.md#interface-walletservices), [logger](./client.md#variable-logger)
5612
-
5613
4927
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5614
4928
 
5615
4929
  ---
5616
- ##### Function: markUserInputsSpent
4930
+ ##### Function: processAction
5617
4931
 
5618
4932
  ```ts
5619
- export async function markUserInputsSpent(storage: StorageProvider, userId: number, tx: BsvTransaction, transactionId: number): Promise<SpentInputTransition[]>
4933
+ export async function processAction(storage: StorageProvider, auth: AuthId, args: StorageProcessActionArgs): Promise<StorageProcessActionResults>
5620
4934
  ```
5621
4935
 
5622
- See also: [SpentInputTransition](./storage.md#interface-spentinputtransition), [StorageProvider](./storage.md#class-storageprovider)
4936
+ See also: [AuthId](./client.md#interface-authid), [StorageProcessActionArgs](./client.md#interface-storageprocessactionargs), [StorageProcessActionResults](./client.md#interface-storageprocessactionresults), [StorageProvider](./storage.md#class-storageprovider)
5623
4937
 
5624
4938
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5625
4939
 
5626
4940
  ---
5627
- ##### Function: matchesCertificateFieldPartial
4941
+ ##### Function: purgeData
5628
4942
 
5629
4943
  ```ts
5630
- export function matchesCertificateFieldPartial(r: TableCertificateField, partial: Partial<TableCertificateField>): boolean
4944
+ export async function purgeData(storage: StorageKnex, params: PurgeParams, trx?: TrxToken): Promise<PurgeResults>
5631
4945
  ```
5632
4946
 
5633
- See also: [TableCertificateField](./storage.md#interface-tablecertificatefield)
4947
+ See also: [PurgeParams](./client.md#interface-purgeparams), [PurgeResults](./client.md#interface-purgeresults), [StorageKnex](./storage.md#class-storageknex), [TrxToken](./client.md#interface-trxtoken)
5634
4948
 
5635
4949
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5636
4950
 
5637
4951
  ---
5638
- ##### Function: matchesCertificatePartial
4952
+ ##### Function: purgeDataIdb
5639
4953
 
5640
4954
  ```ts
5641
- export function matchesCertificatePartial(r: TableCertificate, partial: Partial<TableCertificate>): boolean
4955
+ export async function purgeDataIdb(storage: StorageIdb, params: PurgeParams, trx?: TrxToken): Promise<PurgeResults>
5642
4956
  ```
5643
4957
 
5644
- See also: [TableCertificate](./storage.md#interface-tablecertificate)
4958
+ See also: [PurgeParams](./client.md#interface-purgeparams), [PurgeResults](./client.md#interface-purgeresults), [StorageIdb](./storage.md#class-storageidb), [TrxToken](./client.md#interface-trxtoken)
5645
4959
 
5646
4960
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5647
4961
 
5648
4962
  ---
5649
- ##### Function: matchesCommissionPartial
4963
+ ##### Function: redeemServiceCharges
5650
4964
 
5651
4965
  ```ts
5652
- export function matchesCommissionPartial(r: TableCommission, partial: Partial<TableCommission>): boolean
4966
+ export function redeemServiceCharges(privateKeyWif: string, charges: TableCommission[]): {}[]
5653
4967
  ```
5654
4968
 
5655
4969
  See also: [TableCommission](./storage.md#interface-tablecommission)
@@ -5657,702 +4971,147 @@ See also: [TableCommission](./storage.md#interface-tablecommission)
5657
4971
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5658
4972
 
5659
4973
  ---
5660
- ##### Function: matchesMonitorEventPartial
4974
+ ##### Function: renderAdminPage
5661
4975
 
5662
4976
  ```ts
5663
- export function matchesMonitorEventPartial(r: TableMonitorEvent, partial: Partial<TableMonitorEvent>): boolean
4977
+ export function renderAdminPage(): string
5664
4978
  ```
5665
4979
 
5666
- See also: [TableMonitorEvent](./storage.md#interface-tablemonitorevent)
5667
-
5668
4980
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5669
4981
 
5670
4982
  ---
5671
- ##### Function: matchesOutputBasketPartial
4983
+ ##### Function: reviewStatus
4984
+
4985
+ Looks for unpropagated state:
4986
+
4987
+ 1. set transactions to 'failed' if not already failed and provenTxReq with matching txid has status of 'invalid'.
4988
+ 2. sets outputs to spendable true, spentBy undefined if spentBy is a transaction with status 'failed'.
4989
+ 3. sets transactions to 'completed' if provenTx with matching txid exists and current provenTxId is null.
5672
4990
 
5673
4991
  ```ts
5674
- export function matchesOutputBasketPartial(r: TableOutputBasket, partial: Partial<TableOutputBasket>): boolean
4992
+ export async function reviewStatus(storage: StorageKnex, args: {
4993
+ agedLimit: Date;
4994
+ trx?: TrxToken;
4995
+ }): Promise<{
4996
+ log: string;
4997
+ }>
5675
4998
  ```
5676
4999
 
5677
- See also: [TableOutputBasket](./storage.md#interface-tableoutputbasket)
5000
+ See also: [StorageKnex](./storage.md#class-storageknex), [TrxToken](./client.md#interface-trxtoken)
5678
5001
 
5679
5002
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5680
5003
 
5681
5004
  ---
5682
- ##### Function: matchesOutputPartial
5005
+ ##### Function: reviewStatusIdb
5006
+
5007
+ Looks for unpropagated state:
5008
+
5009
+ 1. set transactions to 'failed' if not already failed and provenTxReq with matching txid has status of 'invalid'.
5010
+ 2. sets transactions to 'completed' if provenTx with matching txid exists and current provenTxId is null.
5011
+ 3. sets outputs to spendable true, spentBy undefined if spentBy is a transaction with status 'failed'.
5683
5012
 
5684
5013
  ```ts
5685
- export function matchesOutputPartial(r: TableOutput, partial: Partial<TableOutput>): boolean
5014
+ export async function reviewStatusIdb(storage: StorageIdb, args: {
5015
+ agedLimit: Date;
5016
+ trx?: sdk.TrxToken;
5017
+ }): Promise<{
5018
+ log: string;
5019
+ }>
5686
5020
  ```
5687
5021
 
5688
- See also: [TableOutput](./storage.md#interface-tableoutput)
5022
+ See also: [StorageIdb](./storage.md#class-storageidb), [TrxToken](./client.md#interface-trxtoken)
5689
5023
 
5690
5024
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5691
5025
 
5692
5026
  ---
5693
- ##### Function: matchesOutputTagMapPartial
5027
+ ##### Function: setDisableDoubleSpendCheckForTest
5694
5028
 
5695
5029
  ```ts
5696
- export function matchesOutputTagMapPartial(r: TableOutputTagMap, partial: Partial<TableOutputTagMap>): boolean
5697
- ```
5698
-
5699
- See also: [TableOutputTagMap](./storage.md#interface-tableoutputtagmap)
5700
-
5701
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5702
-
5703
- ---
5704
- ##### Function: matchesOutputTagPartial
5705
-
5706
- ```ts
5707
- export function matchesOutputTagPartial(r: TableOutputTag, partial: Partial<TableOutputTag>): boolean
5708
- ```
5709
-
5710
- See also: [TableOutputTag](./storage.md#interface-tableoutputtag)
5711
-
5712
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5713
-
5714
- ---
5715
- ##### Function: matchesProvenTxPartial
5716
-
5717
- ```ts
5718
- export function matchesProvenTxPartial(r: TableProvenTx, partial: Partial<TableProvenTx>): boolean
5719
- ```
5720
-
5721
- See also: [TableProvenTx](./storage.md#interface-tableproventx)
5722
-
5723
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5724
-
5725
- ---
5726
- ##### Function: matchesProvenTxReqPartial
5727
-
5728
- ```ts
5729
- export function matchesProvenTxReqPartial(r: TableProvenTxReq, partial: Partial<TableProvenTxReq>): boolean
5730
- ```
5731
-
5732
- See also: [TableProvenTxReq](./storage.md#interface-tableproventxreq)
5733
-
5734
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5735
-
5736
- ---
5737
- ##### Function: matchesSyncStatePartial
5738
-
5739
- ```ts
5740
- export function matchesSyncStatePartial(r: TableSyncState, partial: Partial<TableSyncState>): boolean
5741
- ```
5742
-
5743
- See also: [TableSyncState](./storage.md#interface-tablesyncstate)
5744
-
5745
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5746
-
5747
- ---
5748
- ##### Function: matchesTransactionPartial
5749
-
5750
- ```ts
5751
- export function matchesTransactionPartial(r: TableTransaction, partial: Partial<TableTransaction>): boolean
5752
- ```
5753
-
5754
- See also: [TableTransaction](./storage.md#interface-tabletransaction)
5755
-
5756
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5757
-
5758
- ---
5759
- ##### Function: matchesTxLabelMapPartial
5760
-
5761
- ```ts
5762
- export function matchesTxLabelMapPartial(r: TableTxLabelMap, partial: Partial<TableTxLabelMap>): boolean
5763
- ```
5764
-
5765
- See also: [TableTxLabelMap](./storage.md#interface-tabletxlabelmap)
5766
-
5767
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5768
-
5769
- ---
5770
- ##### Function: matchesTxLabelPartial
5771
-
5772
- ```ts
5773
- export function matchesTxLabelPartial(r: TableTxLabel, partial: Partial<TableTxLabel>): boolean
5774
- ```
5775
-
5776
- See also: [TableTxLabel](./storage.md#interface-tabletxlabel)
5777
-
5778
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5779
-
5780
- ---
5781
- ##### Function: mergeInputBeefs
5782
-
5783
- For each input of `rawTx`, ensure the source txid is represented in `beef`.
5784
-
5785
- When `requiredLevels` is undefined/0 and `knownTxids` contains the source txid,
5786
- a txid-only stub is merged rather than recursing into storage.
5787
-
5788
- ```ts
5789
- export async function mergeInputBeefs(rawTx: number[], beef: Beef, trustSelf: "known" | undefined, knownTxids: string[] | undefined, trx: TrxToken | undefined, requiredLevels: number | undefined, getValidBeef: (txid: string, beef: Beef, trustSelf: "known" | undefined, knownTxids: string[] | undefined, trx: TrxToken | undefined, requiredLevels: number | undefined) => Promise<unknown>): Promise<void>
5790
- ```
5791
-
5792
- See also: [TrxToken](./client.md#interface-trxtoken)
5793
-
5794
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5795
-
5796
- ---
5797
- ##### Function: mergeInputsIntoBeef
5798
-
5799
- Convenience wrapper for the external-sharing path where `trustSelf` and
5800
- `requiredLevels` are always absent.
5801
-
5802
- ```ts
5803
- export async function mergeInputsIntoBeef(rawTx: number[], beef: Beef, knownTxids: string[], trx: TrxToken | undefined, getValidBeef: (txid: string, beef: Beef, trustSelf: undefined, knownTxids: string[], trx: TrxToken | undefined) => Promise<unknown>): Promise<void>
5804
- ```
5805
-
5806
- See also: [TrxToken](./client.md#interface-trxtoken)
5807
-
5808
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5809
-
5810
- ---
5811
- ##### Function: notifyTransactionsOfProof
5812
-
5813
- Notify each transaction that a proof has been found.
5814
- Mutates `req` history notes in place.
5815
-
5816
- The `addNote` callback avoids coupling this helper to a specific entity type.
5817
- Returns false if any transaction update failed so callers can retain the
5818
- request for later status repair.
5819
-
5820
- ```ts
5821
- export async function notifyTransactionsOfProof(ids: number[], provenTxId: number, addNote: (note: ReqHistoryNote) => void, updateTransaction: (id: number, update: {
5822
- provenTxId: number;
5823
- status: "completed";
5824
- }) => Promise<unknown>): Promise<boolean>
5825
- ```
5826
-
5827
- See also: [ReqHistoryNote](./client.md#interface-reqhistorynote)
5828
-
5829
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5830
-
5831
- ---
5832
- ##### Function: offsetPrivKey
5833
-
5834
- ```ts
5835
- export function offsetPrivKey(privKey: string, keyOffset?: string): {
5836
- offsetPrivKey: string;
5837
- keyOffset: string;
5838
- }
5839
- ```
5840
-
5841
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5842
-
5843
- ---
5844
- ##### Function: offsetPubKey
5845
-
5846
- ```ts
5847
- export function offsetPubKey(pubKey: string, keyOffset?: string): {
5848
- offsetPubKey: string;
5849
- keyOffset: string;
5850
- }
5851
- ```
5852
-
5853
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5854
-
5855
- ---
5856
- ##### Function: parseBRC38Json
5857
-
5858
- ```ts
5859
- export function parseBRC38Json(json: string): BRC38WalletData
5860
- ```
5861
-
5862
- See also: [BRC38WalletData](./storage.md#interface-brc38walletdata)
5863
-
5864
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5865
-
5866
- ---
5867
- ##### Function: parseJsonRpc
5868
-
5869
- ```ts
5870
- export function parseJsonRpc(text: string, binary: boolean = false): any
5871
- ```
5872
-
5873
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5874
-
5875
- ---
5876
- ##### Function: partitionActionLabels
5877
-
5878
- ```ts
5879
- export function partitionActionLabels(ordinaryLabels: string[]): {
5880
- specOp: ListActionsSpecOp | undefined;
5881
- specOpLabels: string[];
5882
- labels: string[];
5883
- }
5884
- ```
5885
-
5886
- See also: [ListActionsSpecOp](./storage.md#interface-listactionsspecop)
5887
-
5888
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5889
-
5890
- ---
5891
- ##### Function: processAction
5892
-
5893
- ```ts
5894
- export async function processAction(storage: StorageProvider, auth: AuthId, args: StorageProcessActionArgs): Promise<StorageProcessActionResults>
5895
- ```
5896
-
5897
- See also: [AuthId](./client.md#interface-authid), [StorageProcessActionArgs](./client.md#interface-storageprocessactionargs), [StorageProcessActionResults](./client.md#interface-storageprocessactionresults), [StorageProvider](./storage.md#class-storageprovider)
5898
-
5899
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5900
-
5901
- ---
5902
- ##### Function: purgeData
5903
-
5904
- ```ts
5905
- export async function purgeData(storage: StorageKnex, params: PurgeParams, trx?: TrxToken): Promise<PurgeResults>
5906
- ```
5907
-
5908
- See also: [PurgeParams](./client.md#interface-purgeparams), [PurgeResults](./client.md#interface-purgeresults), [StorageKnex](./storage.md#class-storageknex), [TrxToken](./client.md#interface-trxtoken)
5909
-
5910
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5911
-
5912
- ---
5913
- ##### Function: purgeDataIdb
5914
-
5915
- ```ts
5916
- export async function purgeDataIdb(storage: StorageIdb, params: PurgeParams, trx?: TrxToken): Promise<PurgeResults>
5917
- ```
5918
-
5919
- See also: [PurgeParams](./client.md#interface-purgeparams), [PurgeResults](./client.md#interface-purgeresults), [StorageIdb](./storage.md#class-storageidb), [TrxToken](./client.md#interface-trxtoken)
5920
-
5921
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5922
-
5923
- ---
5924
- ##### Function: redeemServiceCharges
5925
-
5926
- ```ts
5927
- export function redeemServiceCharges(privateKeyWif: string, charges: TableCommission[]): Array<{}>
5928
- ```
5929
-
5930
- See also: [TableCommission](./storage.md#interface-tablecommission)
5931
-
5932
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5933
-
5934
- ---
5935
- ##### Function: renderAdminPage
5936
-
5937
- ```ts
5938
- export function renderAdminPage(): string
5939
- ```
5940
-
5941
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5942
-
5943
- ---
5944
- ##### Function: restoreInputsToSpendable
5945
-
5946
- ```ts
5947
- export async function restoreInputsToSpendable(storage: StorageProvider, transitions: SpentInputTransition[]): Promise<void>
5948
- ```
5949
-
5950
- See also: [SpentInputTransition](./storage.md#interface-spentinputtransition), [StorageProvider](./storage.md#class-storageprovider)
5951
-
5952
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5953
-
5954
- ---
5955
- ##### Function: reviewStatus
5956
-
5957
- Looks for unpropagated state:
5958
-
5959
- 1. set transactions to 'failed' if not already failed and provenTxReq with matching txid has status of 'invalid'.
5960
- 2. sets outputs to spendable true, spentBy undefined if spentBy is a terminal failed transaction.
5961
- 3. sets outputs generated by terminal failed transactions to spendable false, spentBy undefined.
5962
- 4. sets transactions to 'completed' if provenTx with matching txid exists and current provenTxId is null.
5963
-
5964
- ```ts
5965
- export async function reviewStatus(storage: StorageKnex, args: {
5966
- agedLimit: Date;
5967
- trx?: TrxToken;
5968
- }): Promise<{
5969
- log: string;
5970
- }>
5971
- ```
5972
-
5973
- See also: [StorageKnex](./storage.md#class-storageknex), [TrxToken](./client.md#interface-trxtoken)
5974
-
5975
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5976
-
5977
- ---
5978
- ##### Function: reviewStatusIdb
5979
-
5980
- Looks for unpropagated state:
5981
-
5982
- 1. set transactions to 'failed' if not already failed and provenTxReq with matching txid has status of 'invalid'.
5983
- 2. sets outputs to spendable true, spentBy undefined if spentBy is a terminal failed transaction.
5984
- 3. sets outputs generated by terminal failed transactions to spendable false, spentBy undefined.
5985
-
5986
- ```ts
5987
- export async function reviewStatusIdb(storage: StorageIdb, args: {
5988
- agedLimit: Date;
5989
- trx?: sdk.TrxToken;
5990
- }): Promise<{
5991
- log: string;
5992
- }>
5993
- ```
5994
-
5995
- See also: [StorageIdb](./storage.md#class-storageidb), [TrxToken](./client.md#interface-trxtoken)
5996
-
5997
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5998
-
5999
- ---
6000
- ##### Function: setDisableDoubleSpendCheckForTest
6001
-
6002
- ```ts
6003
- export function setDisableDoubleSpendCheckForTest(v: boolean)
6004
- ```
6005
-
6006
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6007
-
6008
- ---
6009
- ##### Function: shareReqsWithWorld
6010
-
6011
- ```ts
6012
- export async function shareReqsWithWorld(storage: StorageProvider, userId: number, txids: string[], isDelayed: boolean, r?: GetReqsAndBeefResult, logger?: WalletLoggerInterface): Promise<{
6013
- swr: SendWithResult[];
6014
- ndr: ReviewActionResult[] | undefined;
6015
- }>
6016
- ```
6017
-
6018
- See also: [GetReqsAndBeefResult](./storage.md#interface-getreqsandbeefresult), [ReviewActionResult](./client.md#interface-reviewactionresult), [StorageProvider](./storage.md#class-storageprovider), [logger](./client.md#variable-logger)
6019
-
6020
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6021
-
6022
- ---
6023
- ##### Function: stringifyJsonRpc
6024
-
6025
- ```ts
6026
- export function stringifyJsonRpc(value: unknown, binary: boolean): string
6027
- ```
6028
-
6029
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6030
-
6031
- ---
6032
- ##### Function: tableAuthSessionToPeerSession
6033
-
6034
- ```ts
6035
- export function tableAuthSessionToPeerSession(row: TableAuthSession): PeerSession
6036
- ```
6037
-
6038
- See also: [TableAuthSession](./storage.md#interface-tableauthsession)
6039
-
6040
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6041
-
6042
- ---
6043
- ##### Function: transactionInputSize
6044
-
6045
- ```ts
6046
- export function transactionInputSize(scriptSize: number): number
6047
- ```
6048
-
6049
- Returns
6050
-
6051
- serialized byte length a transaction input
6052
-
6053
- Argument Details
6054
-
6055
- + **scriptSize**
6056
- + byte length of input script
6057
-
6058
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6059
-
6060
- ---
6061
- ##### Function: transactionOutputSize
6062
-
6063
- ```ts
6064
- export function transactionOutputSize(scriptSize: number): number
6065
- ```
6066
-
6067
- Returns
6068
-
6069
- serialized byte length a transaction output
6070
-
6071
- Argument Details
6072
-
6073
- + **scriptSize**
6074
- + byte length of output script
6075
-
6076
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6077
-
6078
- ---
6079
- ##### Function: transactionSize
6080
-
6081
- Compute the serialized binary transaction size in bytes
6082
- given the number of inputs and outputs,
6083
- and the size of each script.
6084
-
6085
- ```ts
6086
- export function transactionSize(inputs: number[], outputs: number[]): number
6087
- ```
6088
-
6089
- Returns
6090
-
6091
- total transaction size in bytes
6092
-
6093
- Argument Details
6094
-
6095
- + **inputs**
6096
- + array of input script lengths, in bytes
6097
- + **outputs**
6098
- + array of output script lengths, in bytes
6099
-
6100
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6101
-
6102
- ---
6103
- ##### Function: updateReqsFromAggregateResults
6104
-
6105
- For each txid in submitted `txids`:
6106
-
6107
- Based on its aggregate status, and whether broadcast happening in background (isDelayed) or immediately (!isDelayed),
6108
- and iff current req.status is not 'unproven' or 'completed':
6109
-
6110
- 'success':
6111
- req.status => 'unmined', tx.status => 'unproven'
6112
- 'doubleSpend':
6113
- req.status => 'doubleSpend', tx.status => 'failed'
6114
- 'invalidTx':
6115
- req.status => 'invalid', tx.status => 'failed'
6116
- 'serviceError':
6117
- increment req.attempts
6118
-
6119
- ```ts
6120
- export async function updateReqsFromAggregateResults(txids: string[], r: PostReqsToNetworkResult, apbrs: Record<string, AggregatePostBeefTxResult>, storage: StorageProvider, services?: sdk.WalletServices, trx?: sdk.TrxToken, logger?: WalletLoggerInterface): Promise<void>
6121
- ```
6122
-
6123
- See also: [AggregatePostBeefTxResult](./storage.md#interface-aggregatepostbeeftxresult), [PostReqsToNetworkResult](./storage.md#interface-postreqstonetworkresult), [StorageProvider](./storage.md#class-storageprovider), [TrxToken](./client.md#interface-trxtoken), [WalletServices](./client.md#interface-walletservices), [logger](./client.md#variable-logger)
6124
-
6125
- Argument Details
6126
-
6127
- + **services**
6128
- + if valid, doubleSpend results will be verified (but only if not within a trx. e.g. trx must be undefined)
6129
-
6130
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6131
-
6132
- ---
6133
- ##### Function: upgradeAllStoresV1
6134
-
6135
- Upgrade handler for every store that existed at schema version 1.
6136
-
6137
- ```ts
6138
- export function upgradeAllStoresV1(db: IDBPDatabase<StorageIdbSchema>): void
6139
- ```
6140
-
6141
- See also: [StorageIdbSchema](./storage.md#interface-storageidbschema)
6142
-
6143
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6144
-
6145
- ---
6146
- ##### Function: upgradeCertificateFields
6147
-
6148
- ```ts
6149
- export function upgradeCertificateFields(db: IDBPDatabase<StorageIdbSchema>): void
6150
- ```
6151
-
6152
- See also: [StorageIdbSchema](./storage.md#interface-storageidbschema)
6153
-
6154
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6155
-
6156
- ---
6157
- ##### Function: upgradeCertificates
6158
-
6159
- ```ts
6160
- export function upgradeCertificates(db: IDBPDatabase<StorageIdbSchema>): void
6161
- ```
6162
-
6163
- See also: [StorageIdbSchema](./storage.md#interface-storageidbschema)
6164
-
6165
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6166
-
6167
- ---
6168
- ##### Function: upgradeCommissions
6169
-
6170
- ```ts
6171
- export function upgradeCommissions(db: IDBPDatabase<StorageIdbSchema>): void
6172
- ```
6173
-
6174
- See also: [StorageIdbSchema](./storage.md#interface-storageidbschema)
6175
-
6176
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6177
-
6178
- ---
6179
- ##### Function: upgradeMonitorEvents
6180
-
6181
- ```ts
6182
- export function upgradeMonitorEvents(db: IDBPDatabase<StorageIdbSchema>): void
6183
- ```
6184
-
6185
- See also: [StorageIdbSchema](./storage.md#interface-storageidbschema)
6186
-
6187
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6188
-
6189
- ---
6190
- ##### Function: upgradeOutputBaskets
6191
-
6192
- ```ts
6193
- export function upgradeOutputBaskets(db: IDBPDatabase<StorageIdbSchema>): void
6194
- ```
6195
-
6196
- See also: [StorageIdbSchema](./storage.md#interface-storageidbschema)
6197
-
6198
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6199
-
6200
- ---
6201
- ##### Function: upgradeOutputTags
6202
-
6203
- ```ts
6204
- export function upgradeOutputTags(db: IDBPDatabase<StorageIdbSchema>): void
6205
- ```
6206
-
6207
- See also: [StorageIdbSchema](./storage.md#interface-storageidbschema)
6208
-
6209
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6210
-
6211
- ---
6212
- ##### Function: upgradeOutputTagsMap
6213
-
6214
- ```ts
6215
- export function upgradeOutputTagsMap(db: IDBPDatabase<StorageIdbSchema>): void
6216
- ```
6217
-
6218
- See also: [StorageIdbSchema](./storage.md#interface-storageidbschema)
6219
-
6220
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6221
-
6222
- ---
6223
- ##### Function: upgradeOutputs
6224
-
6225
- ```ts
6226
- export function upgradeOutputs(db: IDBPDatabase<StorageIdbSchema>): void
6227
- ```
6228
-
6229
- See also: [StorageIdbSchema](./storage.md#interface-storageidbschema)
6230
-
6231
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6232
-
6233
- ---
6234
- ##### Function: upgradeProvenTxReqs
6235
-
6236
- ```ts
6237
- export function upgradeProvenTxReqs(db: IDBPDatabase<StorageIdbSchema>): void
5030
+ export function setDisableDoubleSpendCheckForTest(v: boolean)
6238
5031
  ```
6239
5032
 
6240
- See also: [StorageIdbSchema](./storage.md#interface-storageidbschema)
6241
-
6242
5033
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6243
5034
 
6244
5035
  ---
6245
- ##### Function: upgradeProvenTxs
6246
-
6247
- ```ts
6248
- export function upgradeProvenTxs(db: IDBPDatabase<StorageIdbSchema>): void
6249
- ```
6250
-
6251
- See also: [StorageIdbSchema](./storage.md#interface-storageidbschema)
6252
-
6253
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5036
+ ##### Function: shareReqsWithWorld
6254
5037
 
6255
- ---
6256
- ##### Function: upgradeSyncStates
5038
+ Verifies that all the txids are known reqs with ready-to-share status.
5039
+ Assigns a batch identifier and updates all the provenTxReqs.
5040
+ If not isDelayed, triggers an initial attempt to broadcast the batch and returns the results.
6257
5041
 
6258
5042
  ```ts
6259
- export function upgradeSyncStates(db: IDBPDatabase<StorageIdbSchema>): void
5043
+ export async function shareReqsWithWorld(storage: StorageProvider, userId: number, txids: string[], isDelayed: boolean, r?: GetReqsAndBeefResult, logger?: WalletLoggerInterface): Promise<{
5044
+ swr: SendWithResult[];
5045
+ ndr: ReviewActionResult[] | undefined;
5046
+ }>
6260
5047
  ```
6261
5048
 
6262
- See also: [StorageIdbSchema](./storage.md#interface-storageidbschema)
6263
-
6264
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6265
-
6266
- ---
6267
- ##### Function: upgradeTransactions
5049
+ See also: [GetReqsAndBeefResult](./storage.md#interface-getreqsandbeefresult), [ReviewActionResult](./client.md#interface-reviewactionresult), [StorageProvider](./storage.md#class-storageprovider), [logger](./client.md#variable-logger)
6268
5050
 
6269
- ```ts
6270
- export function upgradeTransactions(db: IDBPDatabase<StorageIdbSchema>): void
6271
- ```
5051
+ Argument Details
6272
5052
 
6273
- See also: [StorageIdbSchema](./storage.md#interface-storageidbschema)
5053
+ + **r**
5054
+ + Optional. Ignores txids and allows ProvenTxReqs and merged beef to be passed in.
6274
5055
 
6275
5056
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6276
5057
 
6277
5058
  ---
6278
- ##### Function: upgradeTxLabels
5059
+ ##### Function: transactionInputSize
6279
5060
 
6280
5061
  ```ts
6281
- export function upgradeTxLabels(db: IDBPDatabase<StorageIdbSchema>): void
5062
+ export function transactionInputSize(scriptSize: number): number
6282
5063
  ```
6283
5064
 
6284
- See also: [StorageIdbSchema](./storage.md#interface-storageidbschema)
6285
-
6286
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
5065
+ Returns
6287
5066
 
6288
- ---
6289
- ##### Function: upgradeTxLabelsMap
5067
+ serialized byte length a transaction input
6290
5068
 
6291
- ```ts
6292
- export function upgradeTxLabelsMap(db: IDBPDatabase<StorageIdbSchema>): void
6293
- ```
5069
+ Argument Details
6294
5070
 
6295
- See also: [StorageIdbSchema](./storage.md#interface-storageidbschema)
5071
+ + **scriptSize**
5072
+ + byte length of input script
6296
5073
 
6297
5074
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6298
5075
 
6299
5076
  ---
6300
- ##### Function: upgradeUsers
5077
+ ##### Function: transactionOutputSize
6301
5078
 
6302
5079
  ```ts
6303
- export function upgradeUsers(db: IDBPDatabase<StorageIdbSchema>): void
5080
+ export function transactionOutputSize(scriptSize: number): number
6304
5081
  ```
6305
5082
 
6306
- See also: [StorageIdbSchema](./storage.md#interface-storageidbschema)
6307
-
6308
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6309
-
6310
- ---
6311
- ##### Function: validateDate
5083
+ Returns
6312
5084
 
6313
- Shared entity-validation helpers used by both client-side storage remoting
6314
- (StorageClientBase / StorageMobile) and the server-side StorageServer.
5085
+ serialized byte length a transaction output
6315
5086
 
6316
- These helpers normalise records returned from remote calls or database queries:
6317
- - Coerce date strings / timestamps to `Date` objects.
6318
- - Replace `null` values with `undefined`.
6319
- - Replace `Uint8Array` / `Buffer` values with plain `number[]` arrays.
5087
+ Argument Details
6320
5088
 
6321
- ```ts
6322
- export function validateDate(date: Date | string | number): Date
6323
- ```
5089
+ + **scriptSize**
5090
+ + byte length of output script
6324
5091
 
6325
5092
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6326
5093
 
6327
5094
  ---
6328
- ##### Function: validateEntities
5095
+ ##### Function: transactionSize
6329
5096
 
6330
- Force uniform behaviour across database engines.
6331
- Use to process all arrays of records with timestamps retrieved from database.
5097
+ Compute the serialized binary transaction size in bytes
5098
+ given the number of inputs and outputs,
5099
+ and the size of each script.
6332
5100
 
6333
5101
  ```ts
6334
- export function validateEntities<T extends EntityTimeStamp>(entities: T[], dateFields?: string[]): T[]
5102
+ export function transactionSize(inputs: number[], outputs: number[]): number
6335
5103
  ```
6336
5104
 
6337
- See also: [EntityTimeStamp](./client.md#interface-entitytimestamp)
6338
-
6339
5105
  Returns
6340
5106
 
6341
- input `entities` array with contained values validated.
6342
-
6343
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6344
-
6345
- ---
6346
- ##### Function: validateEntity
6347
-
6348
- Force uniform behaviour across database engines.
6349
- Use to process all individual records with timestamps retrieved from database.
5107
+ total transaction size in bytes
6350
5108
 
6351
- ```ts
6352
- export function validateEntity<T extends EntityTimeStamp>(entity: T, dateFields?: string[]): T
6353
- ```
5109
+ Argument Details
6354
5110
 
6355
- See also: [EntityTimeStamp](./client.md#interface-entitytimestamp)
5111
+ + **inputs**
5112
+ + array of input script lengths, in bytes
5113
+ + **outputs**
5114
+ + array of output script lengths, in bytes
6356
5115
 
6357
5116
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6358
5117
 
@@ -6392,20 +5151,6 @@ See also: [StorageFeeModel](./client.md#interface-storagefeemodel)
6392
5151
 
6393
5152
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6394
5153
 
6395
- ---
6396
- ##### Function: validateSyncChunkEntities
6397
-
6398
- Validate all entity arrays within a `SyncChunk` received from a remote storage call.
6399
- Normalises timestamps, nulls, and binary fields in-place.
6400
-
6401
- ```ts
6402
- export function validateSyncChunkEntities(r: SyncChunk): SyncChunk
6403
- ```
6404
-
6405
- See also: [SyncChunk](./client.md#interface-syncchunk)
6406
-
6407
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6408
-
6409
5154
  ---
6410
5155
  ##### Function: varUintSize
6411
5156
 
@@ -6415,13 +5160,7 @@ Returns the byte size required to encode number as Bitcoin VarUint
6415
5160
  export function varUintSize(val: number): 1 | 3 | 5 | 9 {
6416
5161
  if (val < 0)
6417
5162
  throw new WERR_INVALID_PARAMETER("varUint", "non-negative");
6418
- if (val <= 252)
6419
- return 1;
6420
- if (val <= 65535)
6421
- return 3;
6422
- if (val <= 4294967295)
6423
- return 5;
6424
- return 9;
5163
+ return val <= 252 ? 1 : val <= 65535 ? 3 : val <= 4294967295 ? 5 : 9;
6425
5164
  }
6426
5165
  ```
6427
5166
 
@@ -6484,83 +5223,18 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
6484
5223
  ---
6485
5224
  #### Variables
6486
5225
 
6487
- | | |
6488
- | --- | --- |
6489
- | [AUTH_SESSION_MIGRATION](#variable-auth_session_migration) | [getLabelToSpecOp](#variable-getlabeltospecop) |
6490
- | [AUTH_SESSION_TABLE](#variable-auth_session_table) | [managedChangeOutputFields](#variable-managedchangeoutputfields) |
6491
- | [BINARY_ENCODING](#variable-binary_encoding) | [maxChangeOutputsPerTransaction](#variable-maxchangeoutputspertransaction) |
6492
- | [BINARY_ENCODING_HEADER](#variable-binary_encoding_header) | [maxPossibleSatoshis](#variable-maxpossiblesatoshis) |
6493
- | [BINARY_REQUEST_ENCODING_HEADER](#variable-binary_request_encoding_header) | [outputColumnsWithoutLockingScript](#variable-outputcolumnswithoutlockingscript) |
6494
- | [DEFAULT_AUTH_SESSION_TTL_MS](#variable-default_auth_session_ttl_ms) | [transactionColumnsWithoutRawTx](#variable-transactioncolumnswithoutrawtx) |
6495
- | [MONITOR_CREATED_AT_INDEX_MIGRATION](#variable-monitor_created_at_index_migration) | |
6496
-
6497
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6498
-
6499
- ---
6500
-
6501
- ##### Variable: AUTH_SESSION_MIGRATION
6502
-
6503
- ```ts
6504
- AUTH_SESSION_MIGRATION = "2026-07-14-001 add shared auth sessions"
6505
- ```
6506
-
6507
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6508
-
6509
- ---
6510
- ##### Variable: AUTH_SESSION_TABLE
6511
-
6512
- ```ts
6513
- AUTH_SESSION_TABLE = "auth_sessions"
6514
- ```
6515
-
6516
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6517
-
6518
- ---
6519
- ##### Variable: BINARY_ENCODING
6520
-
6521
- ```ts
6522
- BINARY_ENCODING = "base64"
6523
- ```
6524
-
6525
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6526
-
6527
- ---
6528
- ##### Variable: BINARY_ENCODING_HEADER
6529
-
6530
- ```ts
6531
- BINARY_ENCODING_HEADER = "X-BSV-Binary-Encoding"
6532
- ```
6533
-
6534
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6535
-
6536
- ---
6537
- ##### Variable: BINARY_REQUEST_ENCODING_HEADER
6538
-
6539
- ```ts
6540
- BINARY_REQUEST_ENCODING_HEADER = "X-BSV-Binary-Request-Encoding"
6541
- ```
6542
-
6543
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6544
-
6545
- ---
6546
- ##### Variable: DEFAULT_AUTH_SESSION_TTL_MS
6547
-
6548
- ```ts
6549
- DEFAULT_AUTH_SESSION_TTL_MS = 24 * 60 * 60 * 1000
6550
- ```
5226
+ | |
5227
+ | --- |
5228
+ | [getLabelToSpecOp](#variable-getlabeltospecop) |
5229
+ | [maxChangeOutputsPerTransaction](#variable-maxchangeoutputspertransaction) |
5230
+ | [maxPossibleSatoshis](#variable-maxpossiblesatoshis) |
5231
+ | [outputColumnsWithoutLockingScript](#variable-outputcolumnswithoutlockingscript) |
5232
+ | [transactionColumnsWithoutRawTx](#variable-transactioncolumnswithoutrawtx) |
6551
5233
 
6552
5234
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6553
5235
 
6554
5236
  ---
6555
- ##### Variable: MONITOR_CREATED_AT_INDEX_MIGRATION
6556
-
6557
- ```ts
6558
- MONITOR_CREATED_AT_INDEX_MIGRATION = "2026-07-14-002 add monitor created index"
6559
- ```
6560
-
6561
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6562
5237
 
6563
- ---
6564
5238
  ##### Variable: getLabelToSpecOp
6565
5239
 
6566
5240
  ```ts
@@ -6570,37 +5244,14 @@ getLabelToSpecOp: () => Record<string, ListActionsSpecOp> = () => {
6570
5244
  name: "noSendActions",
6571
5245
  labelsToIntercept: ["abort"],
6572
5246
  setStatusFilter: () => ["nosend"],
6573
- postProcess: async (s: StorageProvider, auth: AuthId, vargs: Validation.ValidListActionsArgs, specOpLabels: string[], txs: Array<Partial<TableTransaction>>): Promise<void> => {
6574
- if (!specOpLabels.includes("abort"))
6575
- return;
6576
- const candidates = txs.filter(tx => tx.status === "nosend" && !!tx.txid);
6577
- const candidateTxids = candidates.map(tx => tx.txid as string);
6578
- const protectedTxids = new Set<string>();
6579
- if (candidateTxids.length > 0) {
6580
- const services = s.getServices();
6581
- try {
6582
- const r = await services.getStatusForTxids(candidateTxids);
6583
- if (r.status === "success") {
6584
- for (const result of r.results) {
6585
- if (result.status === "mined" || result.status === "known") {
6586
- protectedTxids.add(result.txid);
6587
- }
6588
- }
5247
+ postProcess: async (s: StorageProvider, auth: AuthId, vargs: Validation.ValidListActionsArgs, specOpLabels: string[], txs: Partial<TableTransaction>[]): Promise<void> => {
5248
+ if (specOpLabels.indexOf("abort") >= 0) {
5249
+ for (const tx of txs) {
5250
+ if (tx.status === "nosend") {
5251
+ await s.abortAction(auth, { reference: tx.reference! });
5252
+ tx.status = "failed";
6589
5253
  }
6590
5254
  }
6591
- catch {
6592
- }
6593
- }
6594
- for (const tx of txs) {
6595
- if (tx.status !== "nosend")
6596
- continue;
6597
- if (tx.txid && protectedTxids.has(tx.txid)) {
6598
- continue;
6599
- }
6600
- const result = await s.abortAction(auth, { reference: tx.reference! });
6601
- if (result.aborted) {
6602
- tx.status = "failed";
6603
- }
6604
5255
  }
6605
5256
  }
6606
5257
  },
@@ -6608,8 +5259,8 @@ getLabelToSpecOp: () => Record<string, ListActionsSpecOp> = () => {
6608
5259
  name: "failedActions",
6609
5260
  labelsToIntercept: ["unfail"],
6610
5261
  setStatusFilter: () => ["failed"],
6611
- postProcess: async (s: StorageProvider, auth: AuthId, vargs: Validation.ValidListActionsArgs, specOpLabels: string[], txs: Array<Partial<TableTransaction>>): Promise<void> => {
6612
- if (specOpLabels.includes("unfail")) {
5262
+ postProcess: async (s: StorageProvider, auth: AuthId, vargs: Validation.ValidListActionsArgs, specOpLabels: string[], txs: Partial<TableTransaction>[]): Promise<void> => {
5263
+ if (specOpLabels.indexOf("unfail") >= 0) {
6613
5264
  for (const tx of txs) {
6614
5265
  if (tx.status === "failed") {
6615
5266
  await s.updateTransaction(tx.transactionId!, { status: "unfail" });
@@ -6626,20 +5277,6 @@ See also: [AuthId](./client.md#interface-authid), [ListActionsSpecOp](./storage.
6626
5277
 
6627
5278
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6628
5279
 
6629
- ---
6630
- ##### Variable: managedChangeOutputFields
6631
-
6632
- ```ts
6633
- managedChangeOutputFields = {
6634
- type: "P2PKH",
6635
- change: true,
6636
- providedBy: "storage",
6637
- purpose: "change"
6638
- } as const
6639
- ```
6640
-
6641
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
6642
-
6643
5280
  ---
6644
5281
  ##### Variable: maxChangeOutputsPerTransaction
6645
5282