@bsv/wallet-toolbox 1.3.21 → 1.3.23

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 (558) hide show
  1. package/mobile/out/src/CWIStyleWalletManager.d.ts +437 -0
  2. package/mobile/out/src/CWIStyleWalletManager.d.ts.map +1 -0
  3. package/mobile/out/src/CWIStyleWalletManager.js +1255 -0
  4. package/mobile/out/src/CWIStyleWalletManager.js.map +1 -0
  5. package/mobile/out/src/SetupClient.d.ts +126 -0
  6. package/mobile/out/src/SetupClient.d.ts.map +1 -0
  7. package/mobile/out/src/SetupClient.js +220 -0
  8. package/mobile/out/src/SetupClient.js.map +1 -0
  9. package/mobile/out/src/SetupWallet.d.ts +100 -0
  10. package/mobile/out/src/SetupWallet.d.ts.map +1 -0
  11. package/mobile/out/src/SetupWallet.js +3 -0
  12. package/mobile/out/src/SetupWallet.js.map +1 -0
  13. package/mobile/out/src/SimpleWalletManager.d.ts +169 -0
  14. package/mobile/out/src/SimpleWalletManager.d.ts.map +1 -0
  15. package/mobile/out/src/SimpleWalletManager.js +315 -0
  16. package/mobile/out/src/SimpleWalletManager.js.map +1 -0
  17. package/mobile/out/src/Wallet.d.ts +177 -0
  18. package/mobile/out/src/Wallet.d.ts.map +1 -0
  19. package/mobile/out/src/Wallet.js +742 -0
  20. package/mobile/out/src/Wallet.js.map +1 -0
  21. package/mobile/out/src/WalletAuthenticationManager.d.ts +33 -0
  22. package/mobile/out/src/WalletAuthenticationManager.d.ts.map +1 -0
  23. package/mobile/out/src/WalletAuthenticationManager.js +113 -0
  24. package/mobile/out/src/WalletAuthenticationManager.js.map +1 -0
  25. package/mobile/out/src/WalletPermissionsManager.d.ts +598 -0
  26. package/mobile/out/src/WalletPermissionsManager.d.ts.map +1 -0
  27. package/mobile/out/src/WalletPermissionsManager.js +1868 -0
  28. package/mobile/out/src/WalletPermissionsManager.js.map +1 -0
  29. package/mobile/out/src/WalletSettingsManager.d.ts +52 -0
  30. package/mobile/out/src/WalletSettingsManager.d.ts.map +1 -0
  31. package/mobile/out/src/WalletSettingsManager.js +82 -0
  32. package/mobile/out/src/WalletSettingsManager.js.map +1 -0
  33. package/mobile/out/src/index.client.d.ts +19 -0
  34. package/mobile/out/src/index.client.d.ts.map +1 -0
  35. package/mobile/out/src/index.client.js +58 -0
  36. package/mobile/out/src/index.client.js.map +1 -0
  37. package/mobile/out/src/index.mobile.d.ts +17 -0
  38. package/mobile/out/src/index.mobile.d.ts.map +1 -0
  39. package/mobile/out/src/index.mobile.js +56 -0
  40. package/mobile/out/src/index.mobile.js.map +1 -0
  41. package/mobile/out/src/monitor/Monitor.d.ts +91 -0
  42. package/mobile/out/src/monitor/Monitor.d.ts.map +1 -0
  43. package/mobile/out/src/monitor/Monitor.js +298 -0
  44. package/mobile/out/src/monitor/Monitor.js.map +1 -0
  45. package/mobile/out/src/monitor/tasks/TaskCheckForProofs.d.ts +53 -0
  46. package/mobile/out/src/monitor/tasks/TaskCheckForProofs.d.ts.map +1 -0
  47. package/mobile/out/src/monitor/tasks/TaskCheckForProofs.js +194 -0
  48. package/mobile/out/src/monitor/tasks/TaskCheckForProofs.js.map +1 -0
  49. package/mobile/out/src/monitor/tasks/TaskCheckNoSends.d.ts +33 -0
  50. package/mobile/out/src/monitor/tasks/TaskCheckNoSends.d.ts.map +1 -0
  51. package/mobile/out/src/monitor/tasks/TaskCheckNoSends.js +65 -0
  52. package/mobile/out/src/monitor/tasks/TaskCheckNoSends.js.map +1 -0
  53. package/mobile/out/src/monitor/tasks/TaskClock.d.ts +14 -0
  54. package/mobile/out/src/monitor/tasks/TaskClock.d.ts.map +1 -0
  55. package/mobile/out/src/monitor/tasks/TaskClock.js +27 -0
  56. package/mobile/out/src/monitor/tasks/TaskClock.js.map +1 -0
  57. package/mobile/out/src/monitor/tasks/TaskFailAbandoned.d.ts +20 -0
  58. package/mobile/out/src/monitor/tasks/TaskFailAbandoned.d.ts.map +1 -0
  59. package/mobile/out/src/monitor/tasks/TaskFailAbandoned.js +52 -0
  60. package/mobile/out/src/monitor/tasks/TaskFailAbandoned.js.map +1 -0
  61. package/mobile/out/src/monitor/tasks/TaskNewHeader.d.ts +15 -0
  62. package/mobile/out/src/monitor/tasks/TaskNewHeader.d.ts.map +1 -0
  63. package/mobile/out/src/monitor/tasks/TaskNewHeader.js +43 -0
  64. package/mobile/out/src/monitor/tasks/TaskNewHeader.js.map +1 -0
  65. package/mobile/out/src/monitor/tasks/TaskPurge.d.ts +45 -0
  66. package/mobile/out/src/monitor/tasks/TaskPurge.d.ts.map +1 -0
  67. package/mobile/out/src/monitor/tasks/TaskPurge.js +34 -0
  68. package/mobile/out/src/monitor/tasks/TaskPurge.js.map +1 -0
  69. package/mobile/out/src/monitor/tasks/TaskReviewStatus.d.ts +26 -0
  70. package/mobile/out/src/monitor/tasks/TaskReviewStatus.d.ts.map +1 -0
  71. package/mobile/out/src/monitor/tasks/TaskReviewStatus.js +43 -0
  72. package/mobile/out/src/monitor/tasks/TaskReviewStatus.js.map +1 -0
  73. package/mobile/out/src/monitor/tasks/TaskSendWaiting.d.ts +35 -0
  74. package/mobile/out/src/monitor/tasks/TaskSendWaiting.d.ts.map +1 -0
  75. package/mobile/out/src/monitor/tasks/TaskSendWaiting.js +107 -0
  76. package/mobile/out/src/monitor/tasks/TaskSendWaiting.js.map +1 -0
  77. package/mobile/out/src/monitor/tasks/TaskSyncWhenIdle.d.ts +12 -0
  78. package/mobile/out/src/monitor/tasks/TaskSyncWhenIdle.d.ts.map +1 -0
  79. package/mobile/out/src/monitor/tasks/TaskSyncWhenIdle.js +22 -0
  80. package/mobile/out/src/monitor/tasks/TaskSyncWhenIdle.js.map +1 -0
  81. package/mobile/out/src/monitor/tasks/TaskUnFail.d.ts +41 -0
  82. package/mobile/out/src/monitor/tasks/TaskUnFail.d.ts.map +1 -0
  83. package/mobile/out/src/monitor/tasks/TaskUnFail.js +144 -0
  84. package/mobile/out/src/monitor/tasks/TaskUnFail.js.map +1 -0
  85. package/mobile/out/src/monitor/tasks/WalletMonitorTask.d.ts +40 -0
  86. package/mobile/out/src/monitor/tasks/WalletMonitorTask.d.ts.map +1 -0
  87. package/mobile/out/src/monitor/tasks/WalletMonitorTask.js +37 -0
  88. package/mobile/out/src/monitor/tasks/WalletMonitorTask.js.map +1 -0
  89. package/mobile/out/src/sdk/CertOpsWallet.d.ts +7 -0
  90. package/mobile/out/src/sdk/CertOpsWallet.d.ts.map +1 -0
  91. package/mobile/out/src/sdk/CertOpsWallet.js +3 -0
  92. package/mobile/out/src/sdk/CertOpsWallet.js.map +1 -0
  93. package/mobile/out/src/sdk/PrivilegedKeyManager.d.ts +125 -0
  94. package/mobile/out/src/sdk/PrivilegedKeyManager.d.ts.map +1 -0
  95. package/mobile/out/src/sdk/PrivilegedKeyManager.js +293 -0
  96. package/mobile/out/src/sdk/PrivilegedKeyManager.js.map +1 -0
  97. package/mobile/out/src/sdk/WERR_errors.d.ts +115 -0
  98. package/mobile/out/src/sdk/WERR_errors.d.ts.map +1 -0
  99. package/mobile/out/src/sdk/WERR_errors.js +158 -0
  100. package/mobile/out/src/sdk/WERR_errors.js.map +1 -0
  101. package/mobile/out/src/sdk/WalletError.d.ts +44 -0
  102. package/mobile/out/src/sdk/WalletError.d.ts.map +1 -0
  103. package/mobile/out/src/sdk/WalletError.js +118 -0
  104. package/mobile/out/src/sdk/WalletError.js.map +1 -0
  105. package/mobile/out/src/sdk/WalletServices.interfaces.d.ts +430 -0
  106. package/mobile/out/src/sdk/WalletServices.interfaces.d.ts.map +1 -0
  107. package/mobile/out/src/sdk/WalletServices.interfaces.js +3 -0
  108. package/mobile/out/src/sdk/WalletServices.interfaces.js.map +1 -0
  109. package/mobile/out/src/sdk/WalletSigner.interfaces.d.ts +10 -0
  110. package/mobile/out/src/sdk/WalletSigner.interfaces.d.ts.map +1 -0
  111. package/mobile/out/src/sdk/WalletSigner.interfaces.js +3 -0
  112. package/mobile/out/src/sdk/WalletSigner.interfaces.js.map +1 -0
  113. package/mobile/out/src/sdk/WalletStorage.interfaces.d.ts +452 -0
  114. package/mobile/out/src/sdk/WalletStorage.interfaces.d.ts.map +1 -0
  115. package/mobile/out/src/sdk/WalletStorage.interfaces.js +3 -0
  116. package/mobile/out/src/sdk/WalletStorage.interfaces.js.map +1 -0
  117. package/mobile/out/src/sdk/index.d.ts +10 -0
  118. package/mobile/out/src/sdk/index.d.ts.map +1 -0
  119. package/mobile/out/src/sdk/index.js +26 -0
  120. package/mobile/out/src/sdk/index.js.map +1 -0
  121. package/mobile/out/src/sdk/types.d.ts +158 -0
  122. package/mobile/out/src/sdk/types.d.ts.map +1 -0
  123. package/mobile/out/src/sdk/types.js +90 -0
  124. package/mobile/out/src/sdk/types.js.map +1 -0
  125. package/mobile/out/src/sdk/validationHelpers.d.ts +301 -0
  126. package/mobile/out/src/sdk/validationHelpers.d.ts.map +1 -0
  127. package/mobile/out/src/sdk/validationHelpers.js +629 -0
  128. package/mobile/out/src/sdk/validationHelpers.js.map +1 -0
  129. package/mobile/out/src/services/ServiceCollection.d.ts +25 -0
  130. package/mobile/out/src/services/ServiceCollection.d.ts.map +1 -0
  131. package/mobile/out/src/services/ServiceCollection.js +43 -0
  132. package/mobile/out/src/services/ServiceCollection.js.map +1 -0
  133. package/mobile/out/src/services/Services.d.ts +67 -0
  134. package/mobile/out/src/services/Services.d.ts.map +1 -0
  135. package/mobile/out/src/services/Services.js +391 -0
  136. package/mobile/out/src/services/Services.js.map +1 -0
  137. package/mobile/out/src/services/chaintracker/ChaintracksChainTracker.d.ts +15 -0
  138. package/mobile/out/src/services/chaintracker/ChaintracksChainTracker.d.ts.map +1 -0
  139. package/mobile/out/src/services/chaintracker/ChaintracksChainTracker.js +51 -0
  140. package/mobile/out/src/services/chaintracker/ChaintracksChainTracker.js.map +1 -0
  141. package/mobile/out/src/services/chaintracker/chaintracks/BlockHeaderApi.d.ts +98 -0
  142. package/mobile/out/src/services/chaintracker/chaintracks/BlockHeaderApi.d.ts.map +1 -0
  143. package/mobile/out/src/services/chaintracker/chaintracks/BlockHeaderApi.js +38 -0
  144. package/mobile/out/src/services/chaintracker/chaintracks/BlockHeaderApi.js.map +1 -0
  145. package/mobile/out/src/services/chaintracker/chaintracks/ChaintracksServiceClient.d.ts +36 -0
  146. package/mobile/out/src/services/chaintracker/chaintracks/ChaintracksServiceClient.d.ts.map +1 -0
  147. package/mobile/out/src/services/chaintracker/chaintracks/ChaintracksServiceClient.js +128 -0
  148. package/mobile/out/src/services/chaintracker/chaintracks/ChaintracksServiceClient.js.map +1 -0
  149. package/mobile/out/src/services/chaintracker/chaintracks/index.d.ts +3 -0
  150. package/mobile/out/src/services/chaintracker/chaintracks/index.d.ts.map +1 -0
  151. package/mobile/out/src/services/chaintracker/chaintracks/index.js +19 -0
  152. package/mobile/out/src/services/chaintracker/chaintracks/index.js.map +1 -0
  153. package/mobile/out/src/services/chaintracker/index.d.ts +3 -0
  154. package/mobile/out/src/services/chaintracker/index.d.ts.map +1 -0
  155. package/mobile/out/src/services/chaintracker/index.js +19 -0
  156. package/mobile/out/src/services/chaintracker/index.js.map +1 -0
  157. package/mobile/out/src/services/createDefaultWalletServicesOptions.d.ts +4 -0
  158. package/mobile/out/src/services/createDefaultWalletServicesOptions.d.ts.map +1 -0
  159. package/mobile/out/src/services/createDefaultWalletServicesOptions.js +46 -0
  160. package/mobile/out/src/services/createDefaultWalletServicesOptions.js.map +1 -0
  161. package/mobile/out/src/services/index.d.ts +2 -0
  162. package/mobile/out/src/services/index.d.ts.map +1 -0
  163. package/mobile/out/src/services/index.js +18 -0
  164. package/mobile/out/src/services/index.js.map +1 -0
  165. package/mobile/out/src/services/providers/ARC.d.ts +91 -0
  166. package/mobile/out/src/services/providers/ARC.d.ts.map +1 -0
  167. package/mobile/out/src/services/providers/ARC.js +267 -0
  168. package/mobile/out/src/services/providers/ARC.js.map +1 -0
  169. package/mobile/out/src/services/providers/Bitails.d.ts +49 -0
  170. package/mobile/out/src/services/providers/Bitails.d.ts.map +1 -0
  171. package/mobile/out/src/services/providers/Bitails.js +222 -0
  172. package/mobile/out/src/services/providers/Bitails.js.map +1 -0
  173. package/mobile/out/src/services/providers/SdkWhatsOnChain.d.ts +21 -0
  174. package/mobile/out/src/services/providers/SdkWhatsOnChain.d.ts.map +1 -0
  175. package/mobile/out/src/services/providers/SdkWhatsOnChain.js +67 -0
  176. package/mobile/out/src/services/providers/SdkWhatsOnChain.js.map +1 -0
  177. package/mobile/out/src/services/providers/WhatsOnChain.d.ts +71 -0
  178. package/mobile/out/src/services/providers/WhatsOnChain.d.ts.map +1 -0
  179. package/mobile/out/src/services/providers/WhatsOnChain.js +582 -0
  180. package/mobile/out/src/services/providers/WhatsOnChain.js.map +1 -0
  181. package/mobile/out/src/services/providers/echangeRates.d.ts +12 -0
  182. package/mobile/out/src/services/providers/echangeRates.d.ts.map +1 -0
  183. package/mobile/out/src/services/providers/echangeRates.js +237 -0
  184. package/mobile/out/src/services/providers/echangeRates.js.map +1 -0
  185. package/mobile/out/src/services/providers/getBeefForTxid.d.ts +4 -0
  186. package/mobile/out/src/services/providers/getBeefForTxid.d.ts.map +1 -0
  187. package/mobile/out/src/services/providers/getBeefForTxid.js +286 -0
  188. package/mobile/out/src/services/providers/getBeefForTxid.js.map +1 -0
  189. package/mobile/out/src/signer/WalletSigner.d.ts +11 -0
  190. package/mobile/out/src/signer/WalletSigner.d.ts.map +1 -0
  191. package/mobile/out/src/signer/WalletSigner.js +13 -0
  192. package/mobile/out/src/signer/WalletSigner.js.map +1 -0
  193. package/mobile/out/src/signer/methods/acquireDirectCertificate.d.ts +4 -0
  194. package/mobile/out/src/signer/methods/acquireDirectCertificate.d.ts.map +1 -0
  195. package/mobile/out/src/signer/methods/acquireDirectCertificate.js +45 -0
  196. package/mobile/out/src/signer/methods/acquireDirectCertificate.js.map +1 -0
  197. package/mobile/out/src/signer/methods/buildSignableTransaction.d.ts +10 -0
  198. package/mobile/out/src/signer/methods/buildSignableTransaction.d.ts.map +1 -0
  199. package/mobile/out/src/signer/methods/buildSignableTransaction.js +126 -0
  200. package/mobile/out/src/signer/methods/buildSignableTransaction.js.map +1 -0
  201. package/mobile/out/src/signer/methods/createAction.d.ts +20 -0
  202. package/mobile/out/src/signer/methods/createAction.d.ts.map +1 -0
  203. package/mobile/out/src/signer/methods/createAction.js +160 -0
  204. package/mobile/out/src/signer/methods/createAction.js.map +1 -0
  205. package/mobile/out/src/signer/methods/internalizeAction.d.ts +31 -0
  206. package/mobile/out/src/signer/methods/internalizeAction.d.ts.map +1 -0
  207. package/mobile/out/src/signer/methods/internalizeAction.js +95 -0
  208. package/mobile/out/src/signer/methods/internalizeAction.js.map +1 -0
  209. package/mobile/out/src/signer/methods/proveCertificate.d.ts +4 -0
  210. package/mobile/out/src/signer/methods/proveCertificate.d.ts.map +1 -0
  211. package/mobile/out/src/signer/methods/proveCertificate.js +29 -0
  212. package/mobile/out/src/signer/methods/proveCertificate.js.map +1 -0
  213. package/mobile/out/src/signer/methods/signAction.d.ts +13 -0
  214. package/mobile/out/src/signer/methods/signAction.d.ts.map +1 -0
  215. package/mobile/out/src/signer/methods/signAction.js +89 -0
  216. package/mobile/out/src/signer/methods/signAction.js.map +1 -0
  217. package/mobile/out/src/storage/StorageIdb.d.ts +209 -0
  218. package/mobile/out/src/storage/StorageIdb.d.ts.map +1 -0
  219. package/mobile/out/src/storage/StorageIdb.js +2330 -0
  220. package/mobile/out/src/storage/StorageIdb.js.map +1 -0
  221. package/mobile/out/src/storage/StorageProvider.d.ts +210 -0
  222. package/mobile/out/src/storage/StorageProvider.d.ts.map +1 -0
  223. package/mobile/out/src/storage/StorageProvider.js +585 -0
  224. package/mobile/out/src/storage/StorageProvider.js.map +1 -0
  225. package/mobile/out/src/storage/StorageReader.d.ts +77 -0
  226. package/mobile/out/src/storage/StorageReader.d.ts.map +1 -0
  227. package/mobile/out/src/storage/StorageReader.js +163 -0
  228. package/mobile/out/src/storage/StorageReader.js.map +1 -0
  229. package/mobile/out/src/storage/StorageReaderWriter.d.ts +88 -0
  230. package/mobile/out/src/storage/StorageReaderWriter.d.ts.map +1 -0
  231. package/mobile/out/src/storage/StorageReaderWriter.js +338 -0
  232. package/mobile/out/src/storage/StorageReaderWriter.js.map +1 -0
  233. package/mobile/out/src/storage/StorageSyncReader.d.ts +18 -0
  234. package/mobile/out/src/storage/StorageSyncReader.d.ts.map +1 -0
  235. package/mobile/out/src/storage/StorageSyncReader.js +71 -0
  236. package/mobile/out/src/storage/StorageSyncReader.js.map +1 -0
  237. package/mobile/out/src/storage/WalletStorageManager.d.ts +184 -0
  238. package/mobile/out/src/storage/WalletStorageManager.d.ts.map +1 -0
  239. package/mobile/out/src/storage/WalletStorageManager.js +665 -0
  240. package/mobile/out/src/storage/WalletStorageManager.js.map +1 -0
  241. package/mobile/out/src/storage/index.client.d.ts +8 -0
  242. package/mobile/out/src/storage/index.client.d.ts.map +1 -0
  243. package/mobile/out/src/storage/index.client.js +24 -0
  244. package/mobile/out/src/storage/index.client.js.map +1 -0
  245. package/mobile/out/src/storage/index.mobile.d.ts +7 -0
  246. package/mobile/out/src/storage/index.mobile.d.ts.map +1 -0
  247. package/mobile/out/src/storage/index.mobile.js +23 -0
  248. package/mobile/out/src/storage/index.mobile.js.map +1 -0
  249. package/mobile/out/src/storage/methods/ListActionsSpecOp.d.ts +16 -0
  250. package/mobile/out/src/storage/methods/ListActionsSpecOp.d.ts.map +1 -0
  251. package/mobile/out/src/storage/methods/ListActionsSpecOp.js +40 -0
  252. package/mobile/out/src/storage/methods/ListActionsSpecOp.js.map +1 -0
  253. package/mobile/out/src/storage/methods/ListOutputsSpecOp.d.ts +26 -0
  254. package/mobile/out/src/storage/methods/ListOutputsSpecOp.d.ts.map +1 -0
  255. package/mobile/out/src/storage/methods/ListOutputsSpecOp.js +71 -0
  256. package/mobile/out/src/storage/methods/ListOutputsSpecOp.js.map +1 -0
  257. package/mobile/out/src/storage/methods/attemptToPostReqsToNetwork.d.ts +41 -0
  258. package/mobile/out/src/storage/methods/attemptToPostReqsToNetwork.d.ts.map +1 -0
  259. package/mobile/out/src/storage/methods/attemptToPostReqsToNetwork.js +320 -0
  260. package/mobile/out/src/storage/methods/attemptToPostReqsToNetwork.js.map +1 -0
  261. package/mobile/out/src/storage/methods/createAction.d.ts +24 -0
  262. package/mobile/out/src/storage/methods/createAction.d.ts.map +1 -0
  263. package/mobile/out/src/storage/methods/createAction.js +705 -0
  264. package/mobile/out/src/storage/methods/createAction.js.map +1 -0
  265. package/mobile/out/src/storage/methods/generateChange.d.ts +119 -0
  266. package/mobile/out/src/storage/methods/generateChange.d.ts.map +1 -0
  267. package/mobile/out/src/storage/methods/generateChange.js +448 -0
  268. package/mobile/out/src/storage/methods/generateChange.js.map +1 -0
  269. package/mobile/out/src/storage/methods/getBeefForTransaction.d.ts +22 -0
  270. package/mobile/out/src/storage/methods/getBeefForTransaction.d.ts.map +1 -0
  271. package/mobile/out/src/storage/methods/getBeefForTransaction.js +92 -0
  272. package/mobile/out/src/storage/methods/getBeefForTransaction.js.map +1 -0
  273. package/mobile/out/src/storage/methods/getSyncChunk.d.ts +10 -0
  274. package/mobile/out/src/storage/methods/getSyncChunk.d.ts.map +1 -0
  275. package/mobile/out/src/storage/methods/getSyncChunk.js +271 -0
  276. package/mobile/out/src/storage/methods/getSyncChunk.js.map +1 -0
  277. package/mobile/out/src/storage/methods/internalizeAction.d.ts +38 -0
  278. package/mobile/out/src/storage/methods/internalizeAction.d.ts.map +1 -0
  279. package/mobile/out/src/storage/methods/internalizeAction.js +371 -0
  280. package/mobile/out/src/storage/methods/internalizeAction.js.map +1 -0
  281. package/mobile/out/src/storage/methods/listActionsIdb.d.ts +5 -0
  282. package/mobile/out/src/storage/methods/listActionsIdb.d.ts.map +1 -0
  283. package/mobile/out/src/storage/methods/listActionsIdb.js +155 -0
  284. package/mobile/out/src/storage/methods/listActionsIdb.js.map +1 -0
  285. package/mobile/out/src/storage/methods/listCertificates.d.ts +5 -0
  286. package/mobile/out/src/storage/methods/listCertificates.d.ts.map +1 -0
  287. package/mobile/out/src/storage/methods/listCertificates.js +68 -0
  288. package/mobile/out/src/storage/methods/listCertificates.js.map +1 -0
  289. package/mobile/out/src/storage/methods/listOutputsIdb.d.ts +5 -0
  290. package/mobile/out/src/storage/methods/listOutputsIdb.d.ts.map +1 -0
  291. package/mobile/out/src/storage/methods/listOutputsIdb.js +181 -0
  292. package/mobile/out/src/storage/methods/listOutputsIdb.js.map +1 -0
  293. package/mobile/out/src/storage/methods/processAction.d.ts +35 -0
  294. package/mobile/out/src/storage/methods/processAction.d.ts.map +1 -0
  295. package/mobile/out/src/storage/methods/processAction.js +311 -0
  296. package/mobile/out/src/storage/methods/processAction.js.map +1 -0
  297. package/mobile/out/src/storage/methods/purgeDataIdb.d.ts +4 -0
  298. package/mobile/out/src/storage/methods/purgeDataIdb.d.ts.map +1 -0
  299. package/mobile/out/src/storage/methods/purgeDataIdb.js +9 -0
  300. package/mobile/out/src/storage/methods/purgeDataIdb.js.map +1 -0
  301. package/mobile/out/src/storage/methods/reviewStatusIdb.d.ts +20 -0
  302. package/mobile/out/src/storage/methods/reviewStatusIdb.d.ts.map +1 -0
  303. package/mobile/out/src/storage/methods/reviewStatusIdb.js +35 -0
  304. package/mobile/out/src/storage/methods/reviewStatusIdb.js.map +1 -0
  305. package/mobile/out/src/storage/remoting/StorageClient.d.ts +283 -0
  306. package/mobile/out/src/storage/remoting/StorageClient.d.ts.map +1 -0
  307. package/mobile/out/src/storage/remoting/StorageClient.js +477 -0
  308. package/mobile/out/src/storage/remoting/StorageClient.js.map +1 -0
  309. package/mobile/out/src/storage/remoting/StorageMobile.d.ts +283 -0
  310. package/mobile/out/src/storage/remoting/StorageMobile.d.ts.map +1 -0
  311. package/mobile/out/src/storage/remoting/StorageMobile.js +477 -0
  312. package/mobile/out/src/storage/remoting/StorageMobile.js.map +1 -0
  313. package/mobile/out/src/storage/schema/StorageIdbSchema.d.ts +133 -0
  314. package/mobile/out/src/storage/schema/StorageIdbSchema.d.ts.map +1 -0
  315. package/mobile/out/src/storage/schema/StorageIdbSchema.js +3 -0
  316. package/mobile/out/src/storage/schema/StorageIdbSchema.js.map +1 -0
  317. package/mobile/out/src/storage/schema/entities/EntityBase.d.ts +105 -0
  318. package/mobile/out/src/storage/schema/entities/EntityBase.d.ts.map +1 -0
  319. package/mobile/out/src/storage/schema/entities/EntityBase.js +100 -0
  320. package/mobile/out/src/storage/schema/entities/EntityBase.js.map +1 -0
  321. package/mobile/out/src/storage/schema/entities/EntityCertificate.d.ts +43 -0
  322. package/mobile/out/src/storage/schema/entities/EntityCertificate.d.ts.map +1 -0
  323. package/mobile/out/src/storage/schema/entities/EntityCertificate.js +162 -0
  324. package/mobile/out/src/storage/schema/entities/EntityCertificate.js.map +1 -0
  325. package/mobile/out/src/storage/schema/entities/EntityCertificateField.d.ts +32 -0
  326. package/mobile/out/src/storage/schema/entities/EntityCertificateField.d.ts.map +1 -0
  327. package/mobile/out/src/storage/schema/entities/EntityCertificateField.js +111 -0
  328. package/mobile/out/src/storage/schema/entities/EntityCertificateField.js.map +1 -0
  329. package/mobile/out/src/storage/schema/entities/EntityCommission.d.ts +37 -0
  330. package/mobile/out/src/storage/schema/entities/EntityCommission.d.ts.map +1 -0
  331. package/mobile/out/src/storage/schema/entities/EntityCommission.js +127 -0
  332. package/mobile/out/src/storage/schema/entities/EntityCommission.js.map +1 -0
  333. package/mobile/out/src/storage/schema/entities/EntityOutput.d.ts +67 -0
  334. package/mobile/out/src/storage/schema/entities/EntityOutput.d.ts.map +1 -0
  335. package/mobile/out/src/storage/schema/entities/EntityOutput.js +264 -0
  336. package/mobile/out/src/storage/schema/entities/EntityOutput.js.map +1 -0
  337. package/mobile/out/src/storage/schema/entities/EntityOutputBasket.d.ts +35 -0
  338. package/mobile/out/src/storage/schema/entities/EntityOutputBasket.d.ts.map +1 -0
  339. package/mobile/out/src/storage/schema/entities/EntityOutputBasket.js +133 -0
  340. package/mobile/out/src/storage/schema/entities/EntityOutputBasket.js.map +1 -0
  341. package/mobile/out/src/storage/schema/entities/EntityOutputTag.d.ts +31 -0
  342. package/mobile/out/src/storage/schema/entities/EntityOutputTag.d.ts.map +1 -0
  343. package/mobile/out/src/storage/schema/entities/EntityOutputTag.js +104 -0
  344. package/mobile/out/src/storage/schema/entities/EntityOutputTag.js.map +1 -0
  345. package/mobile/out/src/storage/schema/entities/EntityOutputTagMap.d.ts +28 -0
  346. package/mobile/out/src/storage/schema/entities/EntityOutputTagMap.d.ts.map +1 -0
  347. package/mobile/out/src/storage/schema/entities/EntityOutputTagMap.js +97 -0
  348. package/mobile/out/src/storage/schema/entities/EntityOutputTagMap.js.map +1 -0
  349. package/mobile/out/src/storage/schema/entities/EntityProvenTx.d.ts +84 -0
  350. package/mobile/out/src/storage/schema/entities/EntityProvenTx.d.ts.map +1 -0
  351. package/mobile/out/src/storage/schema/entities/EntityProvenTx.js +276 -0
  352. package/mobile/out/src/storage/schema/entities/EntityProvenTx.js.map +1 -0
  353. package/mobile/out/src/storage/schema/entities/EntityProvenTxReq.d.ts +135 -0
  354. package/mobile/out/src/storage/schema/entities/EntityProvenTxReq.d.ts.map +1 -0
  355. package/mobile/out/src/storage/schema/entities/EntityProvenTxReq.js +522 -0
  356. package/mobile/out/src/storage/schema/entities/EntityProvenTxReq.js.map +1 -0
  357. package/mobile/out/src/storage/schema/entities/EntitySyncState.d.ts +67 -0
  358. package/mobile/out/src/storage/schema/entities/EntitySyncState.d.ts.map +1 -0
  359. package/mobile/out/src/storage/schema/entities/EntitySyncState.js +319 -0
  360. package/mobile/out/src/storage/schema/entities/EntitySyncState.js.map +1 -0
  361. package/mobile/out/src/storage/schema/entities/EntityTransaction.d.ts +67 -0
  362. package/mobile/out/src/storage/schema/entities/EntityTransaction.d.ts.map +1 -0
  363. package/mobile/out/src/storage/schema/entities/EntityTransaction.js +255 -0
  364. package/mobile/out/src/storage/schema/entities/EntityTransaction.js.map +1 -0
  365. package/mobile/out/src/storage/schema/entities/EntityTxLabel.d.ts +31 -0
  366. package/mobile/out/src/storage/schema/entities/EntityTxLabel.d.ts.map +1 -0
  367. package/mobile/out/src/storage/schema/entities/EntityTxLabel.js +104 -0
  368. package/mobile/out/src/storage/schema/entities/EntityTxLabel.js.map +1 -0
  369. package/mobile/out/src/storage/schema/entities/EntityTxLabelMap.d.ts +28 -0
  370. package/mobile/out/src/storage/schema/entities/EntityTxLabelMap.d.ts.map +1 -0
  371. package/mobile/out/src/storage/schema/entities/EntityTxLabelMap.js +97 -0
  372. package/mobile/out/src/storage/schema/entities/EntityTxLabelMap.js.map +1 -0
  373. package/mobile/out/src/storage/schema/entities/EntityUser.d.ts +29 -0
  374. package/mobile/out/src/storage/schema/entities/EntityUser.d.ts.map +1 -0
  375. package/mobile/out/src/storage/schema/entities/EntityUser.js +98 -0
  376. package/mobile/out/src/storage/schema/entities/EntityUser.js.map +1 -0
  377. package/mobile/out/src/storage/schema/entities/MergeEntity.d.ts +33 -0
  378. package/mobile/out/src/storage/schema/entities/MergeEntity.d.ts.map +1 -0
  379. package/mobile/out/src/storage/schema/entities/MergeEntity.js +62 -0
  380. package/mobile/out/src/storage/schema/entities/MergeEntity.js.map +1 -0
  381. package/mobile/out/src/storage/schema/entities/index.d.ts +17 -0
  382. package/mobile/out/src/storage/schema/entities/index.d.ts.map +1 -0
  383. package/mobile/out/src/storage/schema/entities/index.js +33 -0
  384. package/mobile/out/src/storage/schema/entities/index.js.map +1 -0
  385. package/mobile/out/src/storage/schema/tables/TableCertificate.d.ts +20 -0
  386. package/mobile/out/src/storage/schema/tables/TableCertificate.d.ts.map +1 -0
  387. package/mobile/out/src/storage/schema/tables/TableCertificate.js +3 -0
  388. package/mobile/out/src/storage/schema/tables/TableCertificate.js.map +1 -0
  389. package/mobile/out/src/storage/schema/tables/TableCertificateField.d.ts +12 -0
  390. package/mobile/out/src/storage/schema/tables/TableCertificateField.d.ts.map +1 -0
  391. package/mobile/out/src/storage/schema/tables/TableCertificateField.js +3 -0
  392. package/mobile/out/src/storage/schema/tables/TableCertificateField.js.map +1 -0
  393. package/mobile/out/src/storage/schema/tables/TableCommission.d.ts +13 -0
  394. package/mobile/out/src/storage/schema/tables/TableCommission.d.ts.map +1 -0
  395. package/mobile/out/src/storage/schema/tables/TableCommission.js +3 -0
  396. package/mobile/out/src/storage/schema/tables/TableCommission.js.map +1 -0
  397. package/mobile/out/src/storage/schema/tables/TableMonitorEvent.d.ts +9 -0
  398. package/mobile/out/src/storage/schema/tables/TableMonitorEvent.d.ts.map +1 -0
  399. package/mobile/out/src/storage/schema/tables/TableMonitorEvent.js +3 -0
  400. package/mobile/out/src/storage/schema/tables/TableMonitorEvent.js.map +1 -0
  401. package/mobile/out/src/storage/schema/tables/TableOutput.d.ts +36 -0
  402. package/mobile/out/src/storage/schema/tables/TableOutput.d.ts.map +1 -0
  403. package/mobile/out/src/storage/schema/tables/TableOutput.js +31 -0
  404. package/mobile/out/src/storage/schema/tables/TableOutput.js.map +1 -0
  405. package/mobile/out/src/storage/schema/tables/TableOutputBasket.d.ts +12 -0
  406. package/mobile/out/src/storage/schema/tables/TableOutputBasket.d.ts.map +1 -0
  407. package/mobile/out/src/storage/schema/tables/TableOutputBasket.js +3 -0
  408. package/mobile/out/src/storage/schema/tables/TableOutputBasket.js.map +1 -0
  409. package/mobile/out/src/storage/schema/tables/TableOutputTag.d.ts +10 -0
  410. package/mobile/out/src/storage/schema/tables/TableOutputTag.d.ts.map +1 -0
  411. package/mobile/out/src/storage/schema/tables/TableOutputTag.js +3 -0
  412. package/mobile/out/src/storage/schema/tables/TableOutputTag.js.map +1 -0
  413. package/mobile/out/src/storage/schema/tables/TableOutputTagMap.d.ts +9 -0
  414. package/mobile/out/src/storage/schema/tables/TableOutputTagMap.d.ts.map +1 -0
  415. package/mobile/out/src/storage/schema/tables/TableOutputTagMap.js +3 -0
  416. package/mobile/out/src/storage/schema/tables/TableOutputTagMap.js.map +1 -0
  417. package/mobile/out/src/storage/schema/tables/TableProvenTx.d.ts +14 -0
  418. package/mobile/out/src/storage/schema/tables/TableProvenTx.d.ts.map +1 -0
  419. package/mobile/out/src/storage/schema/tables/TableProvenTx.js +3 -0
  420. package/mobile/out/src/storage/schema/tables/TableProvenTx.js.map +1 -0
  421. package/mobile/out/src/storage/schema/tables/TableProvenTxReq.d.ts +64 -0
  422. package/mobile/out/src/storage/schema/tables/TableProvenTxReq.d.ts.map +1 -0
  423. package/mobile/out/src/storage/schema/tables/TableProvenTxReq.js +3 -0
  424. package/mobile/out/src/storage/schema/tables/TableProvenTxReq.js.map +1 -0
  425. package/mobile/out/src/storage/schema/tables/TableSettings.d.ts +17 -0
  426. package/mobile/out/src/storage/schema/tables/TableSettings.d.ts.map +1 -0
  427. package/mobile/out/src/storage/schema/tables/TableSettings.js +3 -0
  428. package/mobile/out/src/storage/schema/tables/TableSettings.js.map +1 -0
  429. package/mobile/out/src/storage/schema/tables/TableSyncState.d.ts +18 -0
  430. package/mobile/out/src/storage/schema/tables/TableSyncState.d.ts.map +1 -0
  431. package/mobile/out/src/storage/schema/tables/TableSyncState.js +3 -0
  432. package/mobile/out/src/storage/schema/tables/TableSyncState.js.map +1 -0
  433. package/mobile/out/src/storage/schema/tables/TableTransaction.d.ts +37 -0
  434. package/mobile/out/src/storage/schema/tables/TableTransaction.d.ts.map +1 -0
  435. package/mobile/out/src/storage/schema/tables/TableTransaction.js +21 -0
  436. package/mobile/out/src/storage/schema/tables/TableTransaction.js.map +1 -0
  437. package/mobile/out/src/storage/schema/tables/TableTxLabel.d.ts +10 -0
  438. package/mobile/out/src/storage/schema/tables/TableTxLabel.d.ts.map +1 -0
  439. package/mobile/out/src/storage/schema/tables/TableTxLabel.js +3 -0
  440. package/mobile/out/src/storage/schema/tables/TableTxLabel.js.map +1 -0
  441. package/mobile/out/src/storage/schema/tables/TableTxLabelMap.d.ts +9 -0
  442. package/mobile/out/src/storage/schema/tables/TableTxLabelMap.d.ts.map +1 -0
  443. package/mobile/out/src/storage/schema/tables/TableTxLabelMap.js +3 -0
  444. package/mobile/out/src/storage/schema/tables/TableTxLabelMap.js.map +1 -0
  445. package/mobile/out/src/storage/schema/tables/TableUser.d.ts +16 -0
  446. package/mobile/out/src/storage/schema/tables/TableUser.d.ts.map +1 -0
  447. package/mobile/out/src/storage/schema/tables/TableUser.js +3 -0
  448. package/mobile/out/src/storage/schema/tables/TableUser.js.map +1 -0
  449. package/mobile/out/src/storage/schema/tables/index.d.ts +17 -0
  450. package/mobile/out/src/storage/schema/tables/index.d.ts.map +1 -0
  451. package/mobile/out/src/storage/schema/tables/index.js +33 -0
  452. package/mobile/out/src/storage/schema/tables/index.js.map +1 -0
  453. package/mobile/out/src/utility/ScriptTemplateBRC29.d.ts +25 -0
  454. package/mobile/out/src/utility/ScriptTemplateBRC29.d.ts.map +1 -0
  455. package/mobile/out/src/utility/ScriptTemplateBRC29.js +48 -0
  456. package/mobile/out/src/utility/ScriptTemplateBRC29.js.map +1 -0
  457. package/mobile/out/src/utility/identityUtils.d.ts +31 -0
  458. package/mobile/out/src/utility/identityUtils.d.ts.map +1 -0
  459. package/mobile/out/src/utility/identityUtils.js +116 -0
  460. package/mobile/out/src/utility/identityUtils.js.map +1 -0
  461. package/mobile/out/src/utility/index.client.d.ts +7 -0
  462. package/mobile/out/src/utility/index.client.d.ts.map +1 -0
  463. package/mobile/out/src/utility/index.client.js +23 -0
  464. package/mobile/out/src/utility/index.client.js.map +1 -0
  465. package/mobile/out/src/utility/parseTxScriptOffsets.d.ts +14 -0
  466. package/mobile/out/src/utility/parseTxScriptOffsets.d.ts.map +1 -0
  467. package/mobile/out/src/utility/parseTxScriptOffsets.js +26 -0
  468. package/mobile/out/src/utility/parseTxScriptOffsets.js.map +1 -0
  469. package/mobile/out/src/utility/stampLog.d.ts +18 -0
  470. package/mobile/out/src/utility/stampLog.d.ts.map +1 -0
  471. package/mobile/out/src/utility/stampLog.js +72 -0
  472. package/mobile/out/src/utility/stampLog.js.map +1 -0
  473. package/mobile/out/src/utility/tscProofToMerklePath.d.ts +8 -0
  474. package/mobile/out/src/utility/tscProofToMerklePath.d.ts.map +1 -0
  475. package/mobile/out/src/utility/tscProofToMerklePath.js +41 -0
  476. package/mobile/out/src/utility/tscProofToMerklePath.js.map +1 -0
  477. package/mobile/out/src/utility/utilityHelpers.d.ts +129 -0
  478. package/mobile/out/src/utility/utilityHelpers.d.ts.map +1 -0
  479. package/mobile/out/src/utility/utilityHelpers.js +266 -0
  480. package/mobile/out/src/utility/utilityHelpers.js.map +1 -0
  481. package/mobile/out/src/utility/utilityHelpers.noBuffer.d.ts +9 -0
  482. package/mobile/out/src/utility/utilityHelpers.noBuffer.d.ts.map +1 -0
  483. package/mobile/out/src/utility/utilityHelpers.noBuffer.js +23 -0
  484. package/mobile/out/src/utility/utilityHelpers.noBuffer.js.map +1 -0
  485. package/mobile/out/src/wab-client/WABClient.d.ts +49 -0
  486. package/mobile/out/src/wab-client/WABClient.d.ts.map +1 -0
  487. package/mobile/out/src/wab-client/WABClient.js +80 -0
  488. package/mobile/out/src/wab-client/WABClient.js.map +1 -0
  489. package/mobile/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.d.ts +34 -0
  490. package/mobile/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.d.ts.map +1 -0
  491. package/mobile/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.js +16 -0
  492. package/mobile/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.js.map +1 -0
  493. package/mobile/out/src/wab-client/auth-method-interactors/PersonaIDInteractor.d.ts +7 -0
  494. package/mobile/out/src/wab-client/auth-method-interactors/PersonaIDInteractor.d.ts.map +1 -0
  495. package/mobile/out/src/wab-client/auth-method-interactors/PersonaIDInteractor.js +36 -0
  496. package/mobile/out/src/wab-client/auth-method-interactors/PersonaIDInteractor.js.map +1 -0
  497. package/mobile/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.d.ts +28 -0
  498. package/mobile/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.d.ts.map +1 -0
  499. package/mobile/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.js +69 -0
  500. package/mobile/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.js.map +1 -0
  501. package/mobile/out/tsconfig.mobile.tsbuildinfo +1 -0
  502. package/mobile/package-lock.json +8 -16
  503. package/mobile/package.json +1 -1
  504. package/out/src/WalletPermissionsManager.d.ts.map +1 -1
  505. package/out/src/WalletPermissionsManager.js.map +1 -1
  506. package/out/src/index.mobile.d.ts +0 -2
  507. package/out/src/index.mobile.d.ts.map +1 -1
  508. package/out/src/index.mobile.js +0 -2
  509. package/out/src/index.mobile.js.map +1 -1
  510. package/out/src/storage/StorageIdb.d.ts +2 -1
  511. package/out/src/storage/StorageIdb.d.ts.map +1 -1
  512. package/out/src/storage/StorageIdb.js +63 -29
  513. package/out/src/storage/StorageIdb.js.map +1 -1
  514. package/out/src/storage/StorageKnex.d.ts +1 -1
  515. package/out/src/storage/StorageKnex.d.ts.map +1 -1
  516. package/out/src/storage/StorageKnex.js +10 -6
  517. package/out/src/storage/StorageKnex.js.map +1 -1
  518. package/out/src/storage/StorageProvider.d.ts +2 -1
  519. package/out/src/storage/StorageProvider.d.ts.map +1 -1
  520. package/out/src/storage/StorageProvider.js +75 -40
  521. package/out/src/storage/StorageProvider.js.map +1 -1
  522. package/out/src/storage/StorageReader.d.ts +2 -1
  523. package/out/src/storage/StorageReader.d.ts.map +1 -1
  524. package/out/src/storage/StorageReader.js +45 -11
  525. package/out/src/storage/StorageReader.js.map +1 -1
  526. package/out/src/storage/StorageReaderWriter.d.ts +2 -1
  527. package/out/src/storage/StorageReaderWriter.d.ts.map +1 -1
  528. package/out/src/storage/StorageReaderWriter.js +29 -29
  529. package/out/src/storage/StorageReaderWriter.js.map +1 -1
  530. package/out/src/storage/StorageSyncReader.d.ts +2 -1
  531. package/out/src/storage/StorageSyncReader.d.ts.map +1 -1
  532. package/out/src/storage/StorageSyncReader.js +36 -3
  533. package/out/src/storage/StorageSyncReader.js.map +1 -1
  534. package/out/src/storage/index.mobile.d.ts +1 -1
  535. package/out/src/storage/index.mobile.js +1 -1
  536. package/out/src/storage/remoting/StorageClient.d.ts.map +1 -1
  537. package/out/src/storage/remoting/StorageClient.js.map +1 -1
  538. package/out/src/storage/remoting/StorageMobile.d.ts +283 -0
  539. package/out/src/storage/remoting/StorageMobile.d.ts.map +1 -0
  540. package/out/src/storage/remoting/StorageMobile.js +477 -0
  541. package/out/src/storage/remoting/StorageMobile.js.map +1 -0
  542. package/out/tsconfig.all.tsbuildinfo +1 -1
  543. package/package.json +1 -1
  544. package/src/WalletPermissionsManager.ts +19 -8
  545. package/src/index.mobile.ts +0 -2
  546. package/src/storage/StorageIdb.ts +4 -5
  547. package/src/storage/StorageKnex.ts +7 -6
  548. package/src/storage/StorageProvider.ts +5 -9
  549. package/src/storage/StorageReader.ts +4 -7
  550. package/src/storage/StorageReaderWriter.ts +4 -8
  551. package/src/storage/StorageSyncReader.ts +2 -19
  552. package/src/storage/index.mobile.ts +1 -1
  553. package/src/storage/remoting/StorageClient.ts +0 -1
  554. package/src/storage/remoting/StorageMobile.ts +527 -0
  555. package/tsconfig.all.json +2 -1
  556. package/tsconfig.client.json +6 -0
  557. package/tsconfig.json +3 -0
  558. package/tsconfig.mobile.json +28 -0
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChaintracksChainTracker = void 0;
4
+ const index_client_1 = require("../../index.client");
5
+ const ChaintracksServiceClient_1 = require("./chaintracks/ChaintracksServiceClient");
6
+ class ChaintracksChainTracker {
7
+ constructor(chain, chaintracks, options) {
8
+ chain || (chain = 'main');
9
+ this.chaintracks =
10
+ chaintracks !== null && chaintracks !== void 0 ? chaintracks : new ChaintracksServiceClient_1.ChaintracksServiceClient(chain, `https://npm-registry.babbage.systems:808${chain === 'main' ? '4' : '3'}`);
11
+ this.cache = {};
12
+ this.options = options || {};
13
+ }
14
+ async currentHeight() {
15
+ return await this.chaintracks.getPresentHeight();
16
+ }
17
+ async isValidRootForHeight(root, height) {
18
+ const cachedRoot = this.cache[height];
19
+ if (cachedRoot) {
20
+ return cachedRoot === root;
21
+ }
22
+ let header;
23
+ const retries = this.options.maxRetries || 3;
24
+ let error = undefined;
25
+ for (let tryCount = 1; tryCount <= retries; tryCount++) {
26
+ try {
27
+ header = await this.chaintracks.findHeaderForHeight(height);
28
+ if (!header) {
29
+ return false;
30
+ }
31
+ break;
32
+ }
33
+ catch (eu) {
34
+ error = index_client_1.sdk.WalletError.fromUnknown(eu);
35
+ if (tryCount > retries) {
36
+ throw error;
37
+ }
38
+ await (0, index_client_1.wait)(1000);
39
+ }
40
+ }
41
+ if (!header)
42
+ throw new index_client_1.sdk.WERR_INTERNAL('no header should have returned false or thrown an error.');
43
+ this.cache[height] = header.merkleRoot;
44
+ if (header.merkleRoot !== root) {
45
+ return false;
46
+ }
47
+ return true;
48
+ }
49
+ }
50
+ exports.ChaintracksChainTracker = ChaintracksChainTracker;
51
+ //# sourceMappingURL=ChaintracksChainTracker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChaintracksChainTracker.js","sourceRoot":"","sources":["../../../../../src/services/chaintracker/ChaintracksChainTracker.ts"],"names":[],"mappings":";;;AAAA,qDAA8C;AAG9C,qFAAiF;AAMjF,MAAa,uBAAuB;IAKlC,YAAY,KAAiB,EAAE,WAAsC,EAAE,OAAwC;QAC7G,KAAK,KAAL,KAAK,GAAK,MAAM,EAAA;QAChB,IAAI,CAAC,WAAW;YACd,WAAW,aAAX,WAAW,cAAX,WAAW,GACX,IAAI,mDAAwB,CAAC,KAAK,EAAE,2CAA2C,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAA;QAChH,IAAI,CAAC,KAAK,GAAG,EAAE,CAAA;QACf,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,EAAE,CAAA;IAC9B,CAAC;IAED,KAAK,CAAC,aAAa;QACjB,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC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1,98 @@
1
+ /**
2
+ * These are fields of 80 byte serialized header in order whose double sha256 hash is a block's hash value
3
+ * and the next block's previousHash value.
4
+ *
5
+ * All block hash values and merkleRoot values are 32 byte hex string values with the byte order reversed from the serialized byte order.
6
+ */
7
+ export interface BaseBlockHeader {
8
+ /**
9
+ * Block header version value. Serialized length is 4 bytes.
10
+ */
11
+ version: number;
12
+ /**
13
+ * Hash of previous block's block header. Serialized length is 32 bytes.
14
+ */
15
+ previousHash: string;
16
+ /**
17
+ * Root hash of the merkle tree of all transactions in this block. Serialized length is 32 bytes.
18
+ */
19
+ merkleRoot: string;
20
+ /**
21
+ * Block header time value. Serialized length is 4 bytes.
22
+ */
23
+ time: number;
24
+ /**
25
+ * Block header bits value. Serialized length is 4 bytes.
26
+ */
27
+ bits: number;
28
+ /**
29
+ * Block header nonce value. Serialized length is 4 bytes.
30
+ */
31
+ nonce: number;
32
+ }
33
+ /**
34
+ * A `BaseBlockHeader` extended with its computed hash and height in its chain.
35
+ */
36
+ export interface BlockHeader extends BaseBlockHeader {
37
+ /**
38
+ * Height of the header, starting from zero.
39
+ */
40
+ height: number;
41
+ /**
42
+ * The double sha256 hash of the serialized `BaseBlockHeader` fields.
43
+ */
44
+ hash: string;
45
+ }
46
+ /**
47
+ * The "live" portion of the block chain is recent history that can conceivably be subject to reorganizations.
48
+ * The additional fields support tracking orphan blocks, chain forks, and chain reorgs.
49
+ */
50
+ export interface LiveBlockHeader extends BlockHeader {
51
+ /**
52
+ * The cummulative chainwork achieved by the addition of this block to the chain.
53
+ * Chainwork only matters in selecting the active chain.
54
+ */
55
+ chainWork: string;
56
+ /**
57
+ * True only if this header is currently a chain tip. e.g. There is no header that follows it by previousHash or previousHeaderId.
58
+ */
59
+ isChainTip: boolean;
60
+ /**
61
+ * True only if this header is currently on the active chain.
62
+ */
63
+ isActive: boolean;
64
+ /**
65
+ * As there may be more than one header with identical height values due to orphan tracking,
66
+ * headers are assigned a unique headerId while part of the "live" portion of the block chain.
67
+ */
68
+ headerId: number;
69
+ /**
70
+ * Every header in the "live" portion of the block chain is linked to an ancestor header through
71
+ * both its previousHash and previousHeaderId properties.
72
+ *
73
+ * Due to forks, there may be multiple headers with identical `previousHash` and `previousHeaderId` values.
74
+ * Of these, only one (the header on the active chain) will have `isActive` === true.
75
+ */
76
+ previousHeaderId: number | null;
77
+ }
78
+ /**
79
+ * Type guard function.
80
+ * @publicbody
81
+ */
82
+ export declare function isLive(header: BlockHeader | LiveBlockHeader): header is LiveBlockHeader;
83
+ /**
84
+ * Type guard function.
85
+ * @publicbody
86
+ */
87
+ export declare function isBaseBlockHeader(header: BaseBlockHeader | BlockHeader | LiveBlockHeader): header is BaseBlockHeader;
88
+ /**
89
+ * Type guard function.
90
+ * @publicbody
91
+ */
92
+ export declare function isBlockHeader(header: BaseBlockHeader | BlockHeader | LiveBlockHeader): header is LiveBlockHeader;
93
+ /**
94
+ * Type guard function.
95
+ * @publicbody
96
+ */
97
+ export declare function isLiveBlockHeader(header: BaseBlockHeader | BlockHeader | LiveBlockHeader): header is LiveBlockHeader;
98
+ //# sourceMappingURL=BlockHeaderApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockHeaderApi.d.ts","sourceRoot":"","sources":["../../../../../../src/services/chaintracker/chaintracks/BlockHeaderApi.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,YAAY,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,eAAe;IAClD;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;CACb;AAED;;;GAGG;AACH,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAClD;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAA;IACjB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;;;;;OAMG;IACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;CAChC;AAMD;;;GAGG;AACH,wBAAgB,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,eAAe,GAAG,MAAM,IAAI,eAAe,CAEvF;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,WAAW,GAAG,eAAe,GAAG,MAAM,IAAI,eAAe,CAEpH;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,eAAe,GAAG,WAAW,GAAG,eAAe,GAAG,MAAM,IAAI,eAAe,CAEhH;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,WAAW,GAAG,eAAe,GAAG,MAAM,IAAI,eAAe,CAEpH"}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isLive = isLive;
4
+ exports.isBaseBlockHeader = isBaseBlockHeader;
5
+ exports.isBlockHeader = isBlockHeader;
6
+ exports.isLiveBlockHeader = isLiveBlockHeader;
7
+ //
8
+ // TYPE GUARDS
9
+ //
10
+ /**
11
+ * Type guard function.
12
+ * @publicbody
13
+ */
14
+ function isLive(header) {
15
+ return header.headerId !== undefined;
16
+ }
17
+ /**
18
+ * Type guard function.
19
+ * @publicbody
20
+ */
21
+ function isBaseBlockHeader(header) {
22
+ return typeof header.previousHash === 'string';
23
+ }
24
+ /**
25
+ * Type guard function.
26
+ * @publicbody
27
+ */
28
+ function isBlockHeader(header) {
29
+ return 'height' in header && typeof header.previousHash === 'string';
30
+ }
31
+ /**
32
+ * Type guard function.
33
+ * @publicbody
34
+ */
35
+ function isLiveBlockHeader(header) {
36
+ return 'chainwork' in header && typeof header.previousHash === 'string';
37
+ }
38
+ //# sourceMappingURL=BlockHeaderApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockHeaderApi.js","sourceRoot":"","sources":["../../../../../../src/services/chaintracker/chaintracks/BlockHeaderApi.ts"],"names":[],"mappings":";;AAwFA,wBAEC;AAMD,8CAEC;AAMD,sCAEC;AAMD,8CAEC;AAlCD,EAAE;AACF,cAAc;AACd,EAAE;AAEF;;;GAGG;AACH,SAAgB,MAAM,CAAC,MAAqC;IAC1D,OAAQ,MAA0B,CAAC,QAAQ,KAAK,SAAS,CAAA;AAC3D,CAAC;AAED;;;GAGG;AACH,SAAgB,iBAAiB,CAAC,MAAuD;IACvF,OAAO,OAAO,MAAM,CAAC,YAAY,KAAK,QAAQ,CAAA;AAChD,CAAC;AAED;;;GAGG;AACH,SAAgB,aAAa,CAAC,MAAuD;IACnF,OAAO,QAAQ,IAAI,MAAM,IAAI,OAAO,MAAM,CAAC,YAAY,KAAK,QAAQ,CAAA;AACtE,CAAC;AAED;;;GAGG;AACH,SAAgB,iBAAiB,CAAC,MAAuD;IACvF,OAAO,WAAW,IAAI,MAAM,IAAI,OAAO,MAAM,CAAC,YAAY,KAAK,QAAQ,CAAA;AACzE,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { sdk } from '../../../index.client';
2
+ import { BaseBlockHeader, BlockHeader } from './BlockHeaderApi';
3
+ export interface ChaintracksServiceClientOptions {
4
+ useAuthrite: boolean;
5
+ }
6
+ /**
7
+ * Connects to a ChaintracksService to implement 'ChaintracksClientApi'
8
+ *
9
+ */
10
+ export declare class ChaintracksServiceClient {
11
+ chain: sdk.Chain;
12
+ serviceUrl: string;
13
+ static createChaintracksServiceClientOptions(): ChaintracksServiceClientOptions;
14
+ options: ChaintracksServiceClientOptions;
15
+ constructor(chain: sdk.Chain, serviceUrl: string, options?: ChaintracksServiceClientOptions);
16
+ currentHeight(): Promise<number>;
17
+ isValidRootForHeight(root: string, height: number): Promise<boolean>;
18
+ getJsonOrUndefined<T>(path: string): Promise<T | undefined>;
19
+ getJson<T>(path: string): Promise<T>;
20
+ postJsonVoid<T>(path: string, params: T): Promise<void>;
21
+ addHeader(header: BaseBlockHeader): Promise<void>;
22
+ startListening(): Promise<void>;
23
+ listening(): Promise<void>;
24
+ getChain(): Promise<sdk.Chain>;
25
+ isListening(): Promise<boolean>;
26
+ isSynchronized(): Promise<boolean>;
27
+ getPresentHeight(): Promise<number>;
28
+ findChainTipHeader(): Promise<BlockHeader>;
29
+ findChainTipHashHex(): Promise<string>;
30
+ getHeaders(height: number, count: number): Promise<string>;
31
+ findHeaderForHeight(height: number): Promise<BlockHeader | undefined>;
32
+ findChainWorkForBlockHash(hash: string): Promise<string | undefined>;
33
+ findHeaderForBlockHash(hash: string): Promise<BlockHeader | undefined>;
34
+ findHeaderForMerkleRoot(merkleRoot: string, height?: number): Promise<BlockHeader | undefined>;
35
+ }
36
+ //# sourceMappingURL=ChaintracksServiceClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChaintracksServiceClient.d.ts","sourceRoot":"","sources":["../../../../../../src/services/chaintracker/chaintracks/ChaintracksServiceClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,GAAG,EAAE,MAAM,uBAAuB,CAAA;AAErD,OAAO,EAAE,eAAe,EAAE,WAAW,EAAqB,MAAM,kBAAkB,CAAA;AASlF,MAAM,WAAW,+BAA+B;IAC9C,WAAW,EAAE,OAAO,CAAA;CACrB;AAED;;;GAGG;AACH,qBAAa,wBAAwB;IAW1B,KAAK,EAAE,GAAG,CAAC,KAAK;IAChB,UAAU,EAAE,MAAM;IAX3B,MAAM,CAAC,qCAAqC,IAAI,+BAA+B;IAO/E,OAAO,EAAE,+BAA+B,CAAA;gBAG/B,KAAK,EAAE,GAAG,CAAC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GAAG,SAAS,CAAC;IAGtE,uBAAuB,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC;CAGrG"}
@@ -0,0 +1,128 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChaintracksServiceClient = void 0;
4
+ /* eslint-disable @typescript-eslint/no-unused-vars */
5
+ const index_client_1 = require("../../../index.client");
6
+ /**
7
+ * Connects to a ChaintracksService to implement 'ChaintracksClientApi'
8
+ *
9
+ */
10
+ class ChaintracksServiceClient {
11
+ static createChaintracksServiceClientOptions() {
12
+ const options = {
13
+ useAuthrite: false
14
+ };
15
+ return options;
16
+ }
17
+ constructor(chain, serviceUrl, options) {
18
+ this.chain = chain;
19
+ this.serviceUrl = serviceUrl;
20
+ this.options = options || ChaintracksServiceClient.createChaintracksServiceClientOptions();
21
+ }
22
+ async currentHeight() {
23
+ return await this.getPresentHeight();
24
+ }
25
+ async isValidRootForHeight(root, height) {
26
+ const r = await this.findHeaderForHeight(height);
27
+ if (!r)
28
+ return false;
29
+ const isValid = root === (0, index_client_1.asString)(r.merkleRoot);
30
+ return isValid;
31
+ }
32
+ async getJsonOrUndefined(path) {
33
+ let e = undefined;
34
+ for (let retry = 0; retry < 3; retry++) {
35
+ try {
36
+ const r = await fetch(`${this.serviceUrl}${path}`);
37
+ const v = await r.json();
38
+ if (v.status === 'success')
39
+ return v.value;
40
+ else
41
+ e = new Error(JSON.stringify(v));
42
+ }
43
+ catch (eu) {
44
+ e = eu;
45
+ }
46
+ if (e && e.name !== 'ECONNRESET')
47
+ break;
48
+ }
49
+ if (e)
50
+ throw e;
51
+ }
52
+ async getJson(path) {
53
+ const r = await this.getJsonOrUndefined(path);
54
+ if (r === undefined)
55
+ throw new Error('Value was undefined. Requested object may not exist.');
56
+ return r;
57
+ }
58
+ async postJsonVoid(path, params) {
59
+ const headers = {};
60
+ headers['Content-Type'] = 'application/json';
61
+ const r = await fetch(`${this.serviceUrl}${path}`, {
62
+ body: JSON.stringify(params),
63
+ method: 'POST',
64
+ headers
65
+ //cache: 'no-cache',
66
+ });
67
+ try {
68
+ const s = await r.json();
69
+ if (s.status === 'success')
70
+ return;
71
+ throw new Error(JSON.stringify(s));
72
+ }
73
+ catch (e) {
74
+ console.log(`Exception: ${JSON.stringify(e)}`);
75
+ throw new Error(JSON.stringify(e));
76
+ }
77
+ }
78
+ //
79
+ // HTTP API FUNCTIONS
80
+ //
81
+ async addHeader(header) {
82
+ const r = await this.postJsonVoid('/addHeaderHex', header);
83
+ if (typeof r === 'string')
84
+ throw new Error(r);
85
+ }
86
+ async startListening() {
87
+ return await this.getJsonOrUndefined('/startListening');
88
+ }
89
+ async listening() {
90
+ return await this.getJsonOrUndefined('/listening');
91
+ }
92
+ async getChain() {
93
+ return this.chain;
94
+ //return await this.getJson('/getChain')
95
+ }
96
+ async isListening() {
97
+ return await this.getJson('/isListening');
98
+ }
99
+ async isSynchronized() {
100
+ return await this.getJson('/isSynchronized');
101
+ }
102
+ async getPresentHeight() {
103
+ return await this.getJson('/getPresentHeight');
104
+ }
105
+ async findChainTipHeader() {
106
+ return await this.getJson('/findChainTipHeaderHex');
107
+ }
108
+ async findChainTipHashHex() {
109
+ return await this.getJson('/findChainTipHashHex');
110
+ }
111
+ async getHeaders(height, count) {
112
+ return await this.getJson(`/getHeaders?height=${height}&count=${count}`);
113
+ }
114
+ async findHeaderForHeight(height) {
115
+ return await this.getJsonOrUndefined(`/findHeaderHexForHeight?height=${height}`);
116
+ }
117
+ async findChainWorkForBlockHash(hash) {
118
+ return await this.getJsonOrUndefined(`/findChainWorkHexForBlockHash?hash=${(0, index_client_1.asString)(hash)}`);
119
+ }
120
+ async findHeaderForBlockHash(hash) {
121
+ return await this.getJsonOrUndefined(`/findHeaderHexForBlockHash?hash=${(0, index_client_1.asString)(hash)}`);
122
+ }
123
+ async findHeaderForMerkleRoot(merkleRoot, height) {
124
+ return await this.getJsonOrUndefined(`/findHeaderHexForMerkleRoot?root=${(0, index_client_1.asString)(merkleRoot)}&height=${height}`);
125
+ }
126
+ }
127
+ exports.ChaintracksServiceClient = ChaintracksServiceClient;
128
+ //# sourceMappingURL=ChaintracksServiceClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChaintracksServiceClient.js","sourceRoot":"","sources":["../../../../../../src/services/chaintracker/chaintracks/ChaintracksServiceClient.ts"],"names":[],"mappings":";;;AAAA,sDAAsD;AACtD,wDAAqD;AAerD;;;GAGG;AACH,MAAa,wBAAwB;IACnC,MAAM,CAAC,qCAAqC;QAC1C,MAAM,OAAO,GAAoC;YAC/C,WAAW,EAAE,KAAK;SACnB,CAAA;QACD,OAAO,OAAO,CAAA;IAChB,CAAC;IAID,YACS,KAAgB,EAChB,UAAkB,EACzB,OAAyC;QAFlC,UAAK,GAAL,KAAK,CAAW;QAChB,eAAU,GAAV,UAAU,CAAQ;QAGzB,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,wBAAwB,CAAC,qCAAqC,EAAE,CAAA;IAC5F,CAAC;IAED,KAAK,CAAC,aAAa;QACjB,OAAO,MAAM,IAAI,CAAC,gBAAgB,EAAE,CAAA;IACtC,CAAC;IAED,KAAK,CAAC,oBAAoB,CAAC,IAAY,EAAE,MAAc;QACrD,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAA;QAChD,IAAI,CAAC,CAAC;YAAE,OAAO,KAAK,CAAA;QACpB,MAAM,OAAO,GAAG,IAAI,KAAK,IAAA,uBAAQ,EAAC,CAAC,CAAC,UAAU,CAAC,CAAA;QAC/C,OAAO,OAAO,CAAA;IAChB,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAI,IAAY;QACtC,IAAI,CAAC,GAAsB,SAAS,CAAA;QACpC,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC;YACvC,IAAI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O,CAAC,wBAAwB,CAAC,CAAA;IACrD,CAAC;IACD,KAAK,CAAC,mBAAmB;QACvB,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAA;IACnD,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,MAAc,EAAE,KAAa;QAC5C,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,sBAAsB,MAAM,UAAU,KAAK,EAAE,CAAC,CAAA;IAC1E,CAAC;IACD,KAAK,CAAC,mBAAmB,CAAC,MAAc;QACtC,OAAO,MAAM,IAAI,CAAC,kBAAkB,CAAC,kCAAkC,MAAM,EAAE,CAAC,CAAA;IAClF,CAAC;IACD,KAAK,CAAC,yBAAyB,CAAC,IAAY;QAC1C,OAAO,MAAM,IAAI,CAAC,kBAAkB,CAAC,sCAAsC,IAAA,uBAAQ,EAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IAC9F,CAAC;IACD,KAAK,CAAC,sBAAsB,CAAC,IAAY;QACvC,OAAO,MAAM,IAAI,CAAC,kBAAkB,CAAC,mCAAmC,IAAA,uBAAQ,EAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IAC3F,CAAC;IACD,KAAK,CAAC,uBAAuB,CAAC,UAAkB,EAAE,MAAe;QAC/D,OAAO,MAAM,IAAI,CAAC,kBAAkB,CAAC,oCAAoC,IAAA,uBAAQ,EAAC,UAAU,CAAC,WAAW,MAAM,EAAE,CAAC,CAAA;IACnH,CAAC;CACF;AAzHD,4DAyHC"}
@@ -0,0 +1,3 @@
1
+ export * from './ChaintracksServiceClient';
2
+ export * from './BlockHeaderApi';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/services/chaintracker/chaintracks/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,kBAAkB,CAAA"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ChaintracksServiceClient"), exports);
18
+ __exportStar(require("./BlockHeaderApi"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/services/chaintracker/chaintracks/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA0C;AAC1C,mDAAgC"}
@@ -0,0 +1,3 @@
1
+ export * from './chaintracks';
2
+ export * from './ChaintracksChainTracker';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/services/chaintracker/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,2BAA2B,CAAA"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./chaintracks"), exports);
18
+ __exportStar(require("./ChaintracksChainTracker"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/services/chaintracker/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA6B;AAC7B,4DAAyC"}
@@ -0,0 +1,4 @@
1
+ import { sdk } from '../index.client';
2
+ export declare function createDefaultWalletServicesOptions(chain: sdk.Chain): sdk.WalletServicesOptions;
3
+ export declare function arcDefaultUrl(chain: sdk.Chain): string;
4
+ //# sourceMappingURL=createDefaultWalletServicesOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createDefaultWalletServicesOptions.d.ts","sourceRoot":"","sources":["../../../../src/services/createDefaultWalletServicesOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAGrD,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,GAAG,CAAC,KAAK,GAAG,GAAG,CAAC,qBAAqB,CAuC9F;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,CAAC,KAAK,GAAG,MAAM,CAGtD"}
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createDefaultWalletServicesOptions = createDefaultWalletServicesOptions;
4
+ exports.arcDefaultUrl = arcDefaultUrl;
5
+ const index_client_1 = require("../index.client");
6
+ const chaintracker_1 = require("./chaintracker");
7
+ function createDefaultWalletServicesOptions(chain) {
8
+ const taalApiKey = chain === 'main'
9
+ ? 'mainnet_9596de07e92300c6287e4393594ae39c' // no plan
10
+ : 'testnet_0e6cf72133b43ea2d7861da2a38684e3'; // personal "starter" key
11
+ const o = {
12
+ chain,
13
+ taalApiKey,
14
+ bsvExchangeRate: {
15
+ timestamp: new Date('2023-12-13'),
16
+ base: 'USD',
17
+ rate: 47.52
18
+ },
19
+ bsvUpdateMsecs: 1000 * 60 * 15, // 15 minutes
20
+ fiatExchangeRates: {
21
+ timestamp: new Date('2023-12-13'),
22
+ base: 'USD',
23
+ rates: {
24
+ USD: 1,
25
+ GBP: 0.8,
26
+ EUR: 0.93
27
+ }
28
+ },
29
+ fiatUpdateMsecs: 1000 * 60 * 60 * 24, // 24 hours
30
+ disableMapiCallback: true, // Rely on WalletMonitor by default.
31
+ exchangeratesapiKey: 'bd539d2ff492bcb5619d5f27726a766f',
32
+ chaintracksFiatExchangeRatesUrl: `https://npm-registry.babbage.systems:${chain === 'main' ? 8084 : 8083}/getFiatExchangeRates`,
33
+ chaintracks: new chaintracker_1.ChaintracksServiceClient(chain, `https://npm-registry.babbage.systems:${chain === 'main' ? 8084 : 8083}`),
34
+ arcUrl: arcDefaultUrl(chain),
35
+ arcConfig: {
36
+ apiKey: taalApiKey,
37
+ deploymentId: `wallet-toolbox-${(0, index_client_1.randomBytesHex)(16)}`
38
+ }
39
+ };
40
+ return o;
41
+ }
42
+ function arcDefaultUrl(chain) {
43
+ const url = chain === 'main' ? 'https://arc.taal.com' : 'https://arc-test.taal.com';
44
+ return url;
45
+ }
46
+ //# sourceMappingURL=createDefaultWalletServicesOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createDefaultWalletServicesOptions.js","sourceRoot":"","sources":["../../../../src/services/createDefaultWalletServicesOptions.ts"],"names":[],"mappings":";;AAGA,gFAuCC;AAED,sCAGC;AA/CD,kDAAqD;AACrD,iDAAyD;AAEzD,SAAgB,kCAAkC,CAAC,KAAgB;IACjE,MAAM,UAAU,GACd,KAAK,KAAK,MAAM;QACd,CAAC,CAAC,0CAA0C,CAAC,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+1,2 @@
1
+ export * from './Services';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Services"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B"}
@@ -0,0 +1,91 @@
1
+ import { Beef, HexString, HttpClient } from '@bsv/sdk';
2
+ import { sdk } from '../../index.client';
3
+ /** Configuration options for the ARC broadcaster. */
4
+ export interface ArcConfig {
5
+ /** Authentication token for the ARC API */
6
+ apiKey?: string;
7
+ /** The HTTP client used to make requests to the ARC API. */
8
+ httpClient?: HttpClient;
9
+ /** Deployment id used annotating api calls in XDeployment-ID header - this value will be randomly generated if not set */
10
+ deploymentId?: string;
11
+ /** notification callback endpoint for proofs and double spend notification */
12
+ callbackUrl?: string;
13
+ /** default access token for notification callback endpoint. It will be used as a Authorization header for the http callback */
14
+ callbackToken?: string;
15
+ /** additional headers to be attached to all tx submissions. */
16
+ headers?: Record<string, string>;
17
+ }
18
+ /**
19
+ * Represents an ARC transaction broadcaster.
20
+ */
21
+ export declare class ARC {
22
+ readonly URL: string;
23
+ readonly apiKey: string | undefined;
24
+ readonly deploymentId: string;
25
+ readonly callbackUrl: string | undefined;
26
+ readonly callbackToken: string | undefined;
27
+ readonly headers: Record<string, string> | undefined;
28
+ private readonly httpClient;
29
+ /**
30
+ * Constructs an instance of the ARC broadcaster.
31
+ *
32
+ * @param {string} URL - The URL endpoint for the ARC API.
33
+ * @param {ArcConfig} config - Configuration options for the ARC broadcaster.
34
+ */
35
+ constructor(URL: string, config?: ArcConfig);
36
+ /**
37
+ * Constructs an instance of the ARC broadcaster.
38
+ *
39
+ * @param {string} URL - The URL endpoint for the ARC API.
40
+ * @param {string} apiKey - The API key used for authorization with the ARC API.
41
+ */
42
+ constructor(URL: string, apiKey?: string);
43
+ /**
44
+ * Constructs a dictionary of the default & supplied request headers.
45
+ */
46
+ private requestHeaders;
47
+ /**
48
+ * The ARC '/v1/tx' endpoint, as of 2025-02-17 supports all of the following hex string formats:
49
+ * 1. Single serialized raw transaction.
50
+ * 2. Single EF serialized raw transaction (untested).
51
+ * 3. V1 serialized Beef (results returned reflect only the last transaction in the beef)
52
+ *
53
+ * The ARC '/v1/tx' endpoint, as of 2025-02-17 DOES NOT support the following hex string formats:
54
+ * 1. V2 serialized Beef
55
+ *
56
+ * @param rawTx
57
+ * @param txids
58
+ * @returns
59
+ */
60
+ postRawTx(rawTx: HexString, txids?: string[]): Promise<sdk.PostTxResultForTxid>;
61
+ /**
62
+ * ARC does not natively support a postBeef end-point aware of multiple txids of interest in the Beef.
63
+ *
64
+ * It does process multiple new transactions, however, which allows results for all txids of interest
65
+ * to be collected by the `/v1/tx/${txid}` endpoint.
66
+ *
67
+ * @param beef
68
+ * @param txids
69
+ * @returns
70
+ */
71
+ postBeef(beef: Beef, txids: string[]): Promise<sdk.PostBeefResult>;
72
+ /**
73
+ * This seems to only work for recently submitted txids...but that's all we need to complete postBeef!
74
+ * @param txid
75
+ * @returns
76
+ */
77
+ getTxData(txid: string): Promise<ArcMinerGetTxData>;
78
+ }
79
+ export interface ArcMinerGetTxData {
80
+ status: number;
81
+ title: string;
82
+ blockHash: string;
83
+ blockHeight: number;
84
+ competingTxs: null | string[];
85
+ extraInfo: string;
86
+ merklePath: string;
87
+ timestamp: string;
88
+ txid: string;
89
+ txStatus: string;
90
+ }
91
+ //# sourceMappingURL=ARC.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ARC.d.ts","sourceRoot":"","sources":["../../../../../src/services/providers/ARC.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EAIJ,SAAS,EACT,UAAU,EAIX,MAAM,UAAU,CAAA;AACjB,OAAO,EAAkB,GAAG,EAAE,MAAM,oBAAoB,CAAA;AAGxD,qDAAqD;AACrD,MAAM,WAAW,SAAS;IACxB,2CAA2C;IAC3C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,4DAA4D;IAC5D,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,0HAA0H;IAC1H,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,8EAA8E;IAC9E,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,+HAA+H;IAC/H,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,+DAA+D;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACjC;AAMD;;GAEG;AACH,qBAAa,GAAG;IACd,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IACxC,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1C,QAAQ,CAAC,OAAO,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