@bsv/wallet-toolbox 1.1.10 → 1.1.12

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 (109) hide show
  1. package/docs/client.md +217 -87
  2. package/docs/monitor.md +2 -2
  3. package/docs/services.md +2 -2
  4. package/docs/setup.md +159 -25
  5. package/docs/storage.md +2 -2
  6. package/docs/wallet.md +217 -87
  7. package/out/src/SetupClient.d.ts +14 -14
  8. package/out/src/SetupClient.d.ts.map +1 -1
  9. package/out/src/SetupClient.js +44 -9
  10. package/out/src/SetupClient.js.map +1 -1
  11. package/out/src/services/providers/arcServices.js.map +1 -1
  12. package/out/src/signer/methods/internalizeAction.js.map +1 -1
  13. package/out/src/storage/WalletStorageManager.d.ts +2 -2
  14. package/out/src/storage/WalletStorageManager.js +2 -2
  15. package/out/src/storage/methods/createAction.js.map +1 -1
  16. package/out/src/storage/methods/internalizeAction.js.map +1 -1
  17. package/out/src/utility/ScriptTemplateSABPPP.d.ts +2 -6
  18. package/out/src/utility/ScriptTemplateSABPPP.d.ts.map +1 -1
  19. package/out/src/utility/ScriptTemplateSABPPP.js +3 -4
  20. package/out/src/utility/ScriptTemplateSABPPP.js.map +1 -1
  21. package/out/test/storage/update.test.js +8 -5
  22. package/out/test/storage/update.test.js.map +1 -1
  23. package/out/test/utils/TestUtilsWalletStorage.d.ts +1 -2
  24. package/out/test/utils/TestUtilsWalletStorage.d.ts.map +1 -1
  25. package/out/test/utils/TestUtilsWalletStorage.js +3 -5
  26. package/out/test/utils/TestUtilsWalletStorage.js.map +1 -1
  27. package/out/test/wallet/action/abortAction.test.d.ts.map +1 -0
  28. package/out/test/{Wallet → wallet}/action/abortAction.test.js.map +1 -1
  29. package/out/test/wallet/action/createAction.test.d.ts.map +1 -0
  30. package/out/test/{Wallet → wallet}/action/createAction.test.js +30 -19
  31. package/out/test/wallet/action/createAction.test.js.map +1 -0
  32. package/out/test/{Wallet → wallet}/action/createAction2.test.d.ts.map +1 -1
  33. package/out/test/{Wallet → wallet}/action/createAction2.test.js.map +1 -1
  34. package/out/test/wallet/action/createActionToGenerateBeefs.man.test.d.ts.map +1 -0
  35. package/out/test/{Wallet → wallet}/action/createActionToGenerateBeefs.man.test.js.map +1 -1
  36. package/out/test/wallet/action/internalizeAction.test.d.ts.map +1 -0
  37. package/out/test/{Wallet → wallet}/action/internalizeAction.test.js.map +1 -1
  38. package/out/test/wallet/action/relinquishOutput.test.d.ts.map +1 -0
  39. package/out/test/{Wallet → wallet}/action/relinquishOutput.test.js.map +1 -1
  40. package/out/test/wallet/construct/Wallet.constructor.test.d.ts.map +1 -0
  41. package/out/test/{Wallet → wallet}/construct/Wallet.constructor.test.js.map +1 -1
  42. package/out/test/wallet/list/listActions.test.d.ts.map +1 -0
  43. package/out/test/{Wallet → wallet}/list/listActions.test.js.map +1 -1
  44. package/out/test/wallet/list/listActions2.test.d.ts.map +1 -0
  45. package/out/test/{Wallet → wallet}/list/listActions2.test.js.map +1 -1
  46. package/out/test/wallet/list/listCertificates.test.d.ts.map +1 -0
  47. package/out/test/{Wallet → wallet}/list/listCertificates.test.js.map +1 -1
  48. package/out/test/wallet/list/listOutputs.test.d.ts.map +1 -0
  49. package/out/test/{Wallet → wallet}/list/listOutputs.test.js.map +1 -1
  50. package/out/test/wallet/sync/Wallet.sync.test.d.ts.map +1 -0
  51. package/out/test/{Wallet → wallet}/sync/Wallet.sync.test.js.map +1 -1
  52. package/out/tsconfig.all.tsbuildinfo +1 -1
  53. package/package.json +2 -2
  54. package/src/SetupClient.ts +16 -17
  55. package/src/services/providers/arcServices.ts +1 -1
  56. package/src/signer/methods/internalizeAction.ts +1 -1
  57. package/src/storage/WalletStorageManager.ts +2 -2
  58. package/src/storage/methods/createAction.ts +2 -2
  59. package/src/storage/methods/internalizeAction.ts +1 -1
  60. package/src/utility/ScriptTemplateSABPPP.ts +7 -6
  61. package/test/storage/update.test.ts +10 -5
  62. package/test/utils/TestUtilsWalletStorage.ts +6 -7
  63. package/test/{Wallet → wallet}/action/createAction.test.ts +35 -28
  64. package/test/{Wallet → wallet}/action/createActionToGenerateBeefs.man.test.ts +2 -2
  65. package/out/test/Wallet/action/abortAction.test.d.ts.map +0 -1
  66. package/out/test/Wallet/action/createAction.test.d.ts.map +0 -1
  67. package/out/test/Wallet/action/createAction.test.js.map +0 -1
  68. package/out/test/Wallet/action/createActionToGenerateBeefs.man.test.d.ts.map +0 -1
  69. package/out/test/Wallet/action/internalizeAction.test.d.ts.map +0 -1
  70. package/out/test/Wallet/action/relinquishOutput.test.d.ts.map +0 -1
  71. package/out/test/Wallet/construct/Wallet.constructor.test.d.ts.map +0 -1
  72. package/out/test/Wallet/list/listActions.test.d.ts.map +0 -1
  73. package/out/test/Wallet/list/listActions2.test.d.ts.map +0 -1
  74. package/out/test/Wallet/list/listCertificates.test.d.ts.map +0 -1
  75. package/out/test/Wallet/list/listOutputs.test.d.ts.map +0 -1
  76. package/out/test/Wallet/sync/Wallet.sync.test.d.ts.map +0 -1
  77. /package/out/test/{Wallet → wallet}/action/abortAction.test.d.ts +0 -0
  78. /package/out/test/{Wallet → wallet}/action/abortAction.test.js +0 -0
  79. /package/out/test/{Wallet → wallet}/action/createAction.test.d.ts +0 -0
  80. /package/out/test/{Wallet → wallet}/action/createAction2.test.d.ts +0 -0
  81. /package/out/test/{Wallet → wallet}/action/createAction2.test.js +0 -0
  82. /package/out/test/{Wallet → wallet}/action/createActionToGenerateBeefs.man.test.d.ts +0 -0
  83. /package/out/test/{Wallet → wallet}/action/createActionToGenerateBeefs.man.test.js +0 -0
  84. /package/out/test/{Wallet → wallet}/action/internalizeAction.test.d.ts +0 -0
  85. /package/out/test/{Wallet → wallet}/action/internalizeAction.test.js +0 -0
  86. /package/out/test/{Wallet → wallet}/action/relinquishOutput.test.d.ts +0 -0
  87. /package/out/test/{Wallet → wallet}/action/relinquishOutput.test.js +0 -0
  88. /package/out/test/{Wallet → wallet}/construct/Wallet.constructor.test.d.ts +0 -0
  89. /package/out/test/{Wallet → wallet}/construct/Wallet.constructor.test.js +0 -0
  90. /package/out/test/{Wallet → wallet}/list/listActions.test.d.ts +0 -0
  91. /package/out/test/{Wallet → wallet}/list/listActions.test.js +0 -0
  92. /package/out/test/{Wallet → wallet}/list/listActions2.test.d.ts +0 -0
  93. /package/out/test/{Wallet → wallet}/list/listActions2.test.js +0 -0
  94. /package/out/test/{Wallet → wallet}/list/listCertificates.test.d.ts +0 -0
  95. /package/out/test/{Wallet → wallet}/list/listCertificates.test.js +0 -0
  96. /package/out/test/{Wallet → wallet}/list/listOutputs.test.d.ts +0 -0
  97. /package/out/test/{Wallet → wallet}/list/listOutputs.test.js +0 -0
  98. /package/out/test/{Wallet → wallet}/sync/Wallet.sync.test.d.ts +0 -0
  99. /package/out/test/{Wallet → wallet}/sync/Wallet.sync.test.js +0 -0
  100. /package/test/{Wallet → wallet}/action/abortAction.test.ts +0 -0
  101. /package/test/{Wallet → wallet}/action/createAction2.test.ts +0 -0
  102. /package/test/{Wallet → wallet}/action/internalizeAction.test.ts +0 -0
  103. /package/test/{Wallet → wallet}/action/relinquishOutput.test.ts +0 -0
  104. /package/test/{Wallet → wallet}/construct/Wallet.constructor.test.ts +0 -0
  105. /package/test/{Wallet → wallet}/list/listActions.test.ts +0 -0
  106. /package/test/{Wallet → wallet}/list/listActions2.test.ts +0 -0
  107. /package/test/{Wallet → wallet}/list/listCertificates.test.ts +0 -0
  108. /package/test/{Wallet → wallet}/list/listOutputs.test.ts +0 -0
  109. /package/test/{Wallet → wallet}/sync/Wallet.sync.test.ts +0 -0
package/docs/client.md CHANGED
@@ -14,57 +14,57 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
14
14
 
15
15
  | | | |
16
16
  | --- | --- | --- |
17
- | [ArcMinerGetTxData](#interface-arcminergettxdata) | [PostBeefResult](#interface-postbeefresult) | [TableProvenTx](#interface-tableproventx) |
18
- | [ArcMinerPostBeefDataApi](#interface-arcminerpostbeefdataapi) | [PostBeefResultForTxidApi](#interface-postbeefresultfortxidapi) | [TableProvenTxReq](#interface-tableproventxreq) |
19
- | [ArcMinerPostTxsData](#interface-arcminerposttxsdata) | [PostReqsToNetworkDetails](#interface-postreqstonetworkdetails) | [TableProvenTxReqDynamics](#interface-tableproventxreqdynamics) |
20
- | [ArcServiceConfig](#interface-arcserviceconfig) | [PostReqsToNetworkResult](#interface-postreqstonetworkresult) | [TableSettings](#interface-tablesettings) |
21
- | [AuthId](#interface-authid) | [PostTxResultForTxid](#interface-posttxresultfortxid) | [TableSyncState](#interface-tablesyncstate) |
22
- | [BaseBlockHeader](#interface-baseblockheader) | [PostTxsResult](#interface-posttxsresult) | [TableTransaction](#interface-tabletransaction) |
23
- | [BlockHeader](#interface-blockheader) | [ProcessSyncChunkResult](#interface-processsyncchunkresult) | [TableTxLabel](#interface-tabletxlabel) |
24
- | [BsvExchangeRate](#interface-bsvexchangerate) | [ProvenOrRawTx](#interface-provenorrawtx) | [TableTxLabelMap](#interface-tabletxlabelmap) |
25
- | [CertOpsWallet](#interface-certopswallet) | [ProvenTxFromTxidResult](#interface-proventxfromtxidresult) | [TableUser](#interface-tableuser) |
26
- | [CommitNewTxResults](#interface-commitnewtxresults) | [ProvenTxReqHistory](#interface-proventxreqhistory) | [TaskPurgeParams](#interface-taskpurgeparams) |
27
- | [EntitySyncMap](#interface-entitysyncmap) | [ProvenTxReqHistorySummaryApi](#interface-proventxreqhistorysummaryapi) | [TrxToken](#interface-trxtoken) |
28
- | [EntityTimeStamp](#interface-entitytimestamp) | [ProvenTxReqNotify](#interface-proventxreqnotify) | [TscMerkleProofApi](#interface-tscmerkleproofapi) |
29
- | [ExchangeRatesIoApi](#interface-exchangeratesioapi) | [PurgeParams](#interface-purgeparams) | [TxScriptOffsets](#interface-txscriptoffsets) |
30
- | [FiatExchangeRates](#interface-fiatexchangerates) | [PurgeResults](#interface-purgeresults) | [UpdateProvenTxReqWithNewProvenTxArgs](#interface-updateproventxreqwithnewproventxargs) |
31
- | [FindCertificateFieldsArgs](#interface-findcertificatefieldsargs) | [RequestSyncChunkArgs](#interface-requestsyncchunkargs) | [UpdateProvenTxReqWithNewProvenTxResult](#interface-updateproventxreqwithnewproventxresult) |
32
- | [FindCertificatesArgs](#interface-findcertificatesargs) | [ScriptTemplateParamsSABPPP](#interface-scripttemplateparamssabppp) | [ValidAbortActionArgs](#interface-validabortactionargs) |
33
- | [FindCommissionsArgs](#interface-findcommissionsargs) | [ScriptTemplateUnlock](#interface-scripttemplateunlock) | [ValidAcquireCertificateArgs](#interface-validacquirecertificateargs) |
34
- | [FindForUserSincePagedArgs](#interface-findforusersincepagedargs) | [SetupEnv](#interface-setupenv) | [ValidAcquireDirectCertificateArgs](#interface-validacquiredirectcertificateargs) |
35
- | [FindMonitorEventsArgs](#interface-findmonitoreventsargs) | [SetupWallet](#interface-setupwallet) | [ValidAcquireIssuanceCertificateArgs](#interface-validacquireissuancecertificateargs) |
36
- | [FindOutputBasketsArgs](#interface-findoutputbasketsargs) | [SetupWalletArgs](#interface-setupwalletargs) | [ValidBasketInsertion](#interface-validbasketinsertion) |
37
- | [FindOutputTagMapsArgs](#interface-findoutputtagmapsargs) | [SetupWalletClient](#interface-setupwalletclient) | [ValidCreateActionArgs](#interface-validcreateactionargs) |
38
- | [FindOutputTagsArgs](#interface-findoutputtagsargs) | [SetupWalletClientArgs](#interface-setupwalletclientargs) | [ValidCreateActionInput](#interface-validcreateactioninput) |
39
- | [FindOutputsArgs](#interface-findoutputsargs) | [StorageCreateActionResult](#interface-storagecreateactionresult) | [ValidCreateActionOptions](#interface-validcreateactionoptions) |
40
- | [FindPartialSincePagedArgs](#interface-findpartialsincepagedargs) | [StorageCreateTransactionSdkInput](#interface-storagecreatetransactionsdkinput) | [ValidCreateActionOutput](#interface-validcreateactionoutput) |
41
- | [FindProvenTxReqsArgs](#interface-findproventxreqsargs) | [StorageCreateTransactionSdkOutput](#interface-storagecreatetransactionsdkoutput) | [ValidDiscoverByAttributesArgs](#interface-validdiscoverbyattributesargs) |
42
- | [FindProvenTxsArgs](#interface-findproventxsargs) | [StorageFeeModel](#interface-storagefeemodel) | [ValidDiscoverByIdentityKeyArgs](#interface-validdiscoverbyidentitykeyargs) |
43
- | [FindSincePagedArgs](#interface-findsincepagedargs) | [StorageGetBeefOptions](#interface-storagegetbeefoptions) | [ValidInternalizeActionArgs](#interface-validinternalizeactionargs) |
44
- | [FindSyncStatesArgs](#interface-findsyncstatesargs) | [StorageIdentity](#interface-storageidentity) | [ValidInternalizeOutput](#interface-validinternalizeoutput) |
45
- | [FindTransactionsArgs](#interface-findtransactionsargs) | [StorageInternalizeActionResult](#interface-storageinternalizeactionresult) | [ValidListActionsArgs](#interface-validlistactionsargs) |
46
- | [FindTxLabelMapsArgs](#interface-findtxlabelmapsargs) | [StorageProcessActionArgs](#interface-storageprocessactionargs) | [ValidListCertificatesArgs](#interface-validlistcertificatesargs) |
47
- | [FindTxLabelsArgs](#interface-findtxlabelsargs) | [StorageProcessActionResults](#interface-storageprocessactionresults) | [ValidListOutputsArgs](#interface-validlistoutputsargs) |
48
- | [FindUsersArgs](#interface-findusersargs) | [StorageProvenOrReq](#interface-storageprovenorreq) | [ValidProcessActionArgs](#interface-validprocessactionargs) |
49
- | [GenerateChangeSdkChangeInput](#interface-generatechangesdkchangeinput) | [StorageProviderOptions](#interface-storageprovideroptions) | [ValidProcessActionOptions](#interface-validprocessactionoptions) |
50
- | [GenerateChangeSdkChangeOutput](#interface-generatechangesdkchangeoutput) | [StorageReaderOptions](#interface-storagereaderoptions) | [ValidProveCertificateArgs](#interface-validprovecertificateargs) |
51
- | [GenerateChangeSdkInput](#interface-generatechangesdkinput) | [StorageReaderWriterOptions](#interface-storagereaderwriteroptions) | [ValidRelinquishCertificateArgs](#interface-validrelinquishcertificateargs) |
52
- | [GenerateChangeSdkOutput](#interface-generatechangesdkoutput) | [StorageSyncReader](#interface-storagesyncreader) | [ValidRelinquishOutputArgs](#interface-validrelinquishoutputargs) |
53
- | [GenerateChangeSdkParams](#interface-generatechangesdkparams) | [StorageSyncReaderOptions](#interface-storagesyncreaderoptions) | [ValidSignActionArgs](#interface-validsignactionargs) |
54
- | [GenerateChangeSdkResult](#interface-generatechangesdkresult) | [StorageSyncReaderWriter](#interface-storagesyncreaderwriter) | [ValidSignActionOptions](#interface-validsignactionoptions) |
55
- | [GenerateChangeSdkStorageChange](#interface-generatechangesdkstoragechange) | [SyncChunk](#interface-syncchunk) | [ValidWalletPayment](#interface-validwalletpayment) |
56
- | [GetMerklePathResult](#interface-getmerklepathresult) | [SyncError](#interface-syncerror) | [ValidWalletSignerArgs](#interface-validwalletsignerargs) |
57
- | [GetRawTxResult](#interface-getrawtxresult) | [SyncMap](#interface-syncmap) | [WalletArgs](#interface-walletargs) |
58
- | [GetReqsAndBeefDetail](#interface-getreqsandbeefdetail) | [TableCertificate](#interface-tablecertificate) | [WalletServices](#interface-walletservices) |
59
- | [GetReqsAndBeefResult](#interface-getreqsandbeefresult) | [TableCertificateField](#interface-tablecertificatefield) | [WalletServicesOptions](#interface-walletservicesoptions) |
60
- | [GetUtxoStatusDetails](#interface-getutxostatusdetails) | [TableCertificateX](#interface-tablecertificatex) | [WalletSigner](#interface-walletsigner) |
61
- | [GetUtxoStatusResult](#interface-getutxostatusresult) | [TableCommission](#interface-tablecommission) | [WalletStorage](#interface-walletstorage) |
62
- | [KeyPair](#interface-keypair) | [TableMonitorEvent](#interface-tablemonitorevent) | [WalletStorageProvider](#interface-walletstorageprovider) |
17
+ | [ArcMinerGetTxData](#interface-arcminergettxdata) | [PendingStorageInput](#interface-pendingstorageinput) | [TableOutputX](#interface-tableoutputx) |
18
+ | [ArcMinerPostBeefDataApi](#interface-arcminerpostbeefdataapi) | [PostBeefResult](#interface-postbeefresult) | [TableProvenTx](#interface-tableproventx) |
19
+ | [ArcMinerPostTxsData](#interface-arcminerposttxsdata) | [PostBeefResultForTxidApi](#interface-postbeefresultfortxidapi) | [TableProvenTxReq](#interface-tableproventxreq) |
20
+ | [ArcServiceConfig](#interface-arcserviceconfig) | [PostReqsToNetworkDetails](#interface-postreqstonetworkdetails) | [TableProvenTxReqDynamics](#interface-tableproventxreqdynamics) |
21
+ | [AuthId](#interface-authid) | [PostReqsToNetworkResult](#interface-postreqstonetworkresult) | [TableSettings](#interface-tablesettings) |
22
+ | [BaseBlockHeader](#interface-baseblockheader) | [PostTxResultForTxid](#interface-posttxresultfortxid) | [TableSyncState](#interface-tablesyncstate) |
23
+ | [BlockHeader](#interface-blockheader) | [PostTxsResult](#interface-posttxsresult) | [TableTransaction](#interface-tabletransaction) |
24
+ | [BsvExchangeRate](#interface-bsvexchangerate) | [ProcessSyncChunkResult](#interface-processsyncchunkresult) | [TableTxLabel](#interface-tabletxlabel) |
25
+ | [CertOpsWallet](#interface-certopswallet) | [ProvenOrRawTx](#interface-provenorrawtx) | [TableTxLabelMap](#interface-tabletxlabelmap) |
26
+ | [CommitNewTxResults](#interface-commitnewtxresults) | [ProvenTxFromTxidResult](#interface-proventxfromtxidresult) | [TableUser](#interface-tableuser) |
27
+ | [EntitySyncMap](#interface-entitysyncmap) | [ProvenTxReqHistory](#interface-proventxreqhistory) | [TaskPurgeParams](#interface-taskpurgeparams) |
28
+ | [EntityTimeStamp](#interface-entitytimestamp) | [ProvenTxReqHistorySummaryApi](#interface-proventxreqhistorysummaryapi) | [TrxToken](#interface-trxtoken) |
29
+ | [ExchangeRatesIoApi](#interface-exchangeratesioapi) | [ProvenTxReqNotify](#interface-proventxreqnotify) | [TscMerkleProofApi](#interface-tscmerkleproofapi) |
30
+ | [FiatExchangeRates](#interface-fiatexchangerates) | [PurgeParams](#interface-purgeparams) | [TxScriptOffsets](#interface-txscriptoffsets) |
31
+ | [FindCertificateFieldsArgs](#interface-findcertificatefieldsargs) | [PurgeResults](#interface-purgeresults) | [UpdateProvenTxReqWithNewProvenTxArgs](#interface-updateproventxreqwithnewproventxargs) |
32
+ | [FindCertificatesArgs](#interface-findcertificatesargs) | [RequestSyncChunkArgs](#interface-requestsyncchunkargs) | [UpdateProvenTxReqWithNewProvenTxResult](#interface-updateproventxreqwithnewproventxresult) |
33
+ | [FindCommissionsArgs](#interface-findcommissionsargs) | [ScriptTemplateParamsSABPPP](#interface-scripttemplateparamssabppp) | [ValidAbortActionArgs](#interface-validabortactionargs) |
34
+ | [FindForUserSincePagedArgs](#interface-findforusersincepagedargs) | [ScriptTemplateUnlock](#interface-scripttemplateunlock) | [ValidAcquireCertificateArgs](#interface-validacquirecertificateargs) |
35
+ | [FindMonitorEventsArgs](#interface-findmonitoreventsargs) | [SetupEnv](#interface-setupenv) | [ValidAcquireDirectCertificateArgs](#interface-validacquiredirectcertificateargs) |
36
+ | [FindOutputBasketsArgs](#interface-findoutputbasketsargs) | [SetupWallet](#interface-setupwallet) | [ValidAcquireIssuanceCertificateArgs](#interface-validacquireissuancecertificateargs) |
37
+ | [FindOutputTagMapsArgs](#interface-findoutputtagmapsargs) | [SetupWalletArgs](#interface-setupwalletargs) | [ValidBasketInsertion](#interface-validbasketinsertion) |
38
+ | [FindOutputTagsArgs](#interface-findoutputtagsargs) | [SetupWalletClient](#interface-setupwalletclient) | [ValidCreateActionArgs](#interface-validcreateactionargs) |
39
+ | [FindOutputsArgs](#interface-findoutputsargs) | [SetupWalletClientArgs](#interface-setupwalletclientargs) | [ValidCreateActionInput](#interface-validcreateactioninput) |
40
+ | [FindPartialSincePagedArgs](#interface-findpartialsincepagedargs) | [StorageCreateActionResult](#interface-storagecreateactionresult) | [ValidCreateActionOptions](#interface-validcreateactionoptions) |
41
+ | [FindProvenTxReqsArgs](#interface-findproventxreqsargs) | [StorageCreateTransactionSdkInput](#interface-storagecreatetransactionsdkinput) | [ValidCreateActionOutput](#interface-validcreateactionoutput) |
42
+ | [FindProvenTxsArgs](#interface-findproventxsargs) | [StorageCreateTransactionSdkOutput](#interface-storagecreatetransactionsdkoutput) | [ValidDiscoverByAttributesArgs](#interface-validdiscoverbyattributesargs) |
43
+ | [FindSincePagedArgs](#interface-findsincepagedargs) | [StorageFeeModel](#interface-storagefeemodel) | [ValidDiscoverByIdentityKeyArgs](#interface-validdiscoverbyidentitykeyargs) |
44
+ | [FindSyncStatesArgs](#interface-findsyncstatesargs) | [StorageGetBeefOptions](#interface-storagegetbeefoptions) | [ValidInternalizeActionArgs](#interface-validinternalizeactionargs) |
45
+ | [FindTransactionsArgs](#interface-findtransactionsargs) | [StorageIdentity](#interface-storageidentity) | [ValidInternalizeOutput](#interface-validinternalizeoutput) |
46
+ | [FindTxLabelMapsArgs](#interface-findtxlabelmapsargs) | [StorageInternalizeActionResult](#interface-storageinternalizeactionresult) | [ValidListActionsArgs](#interface-validlistactionsargs) |
47
+ | [FindTxLabelsArgs](#interface-findtxlabelsargs) | [StorageProcessActionArgs](#interface-storageprocessactionargs) | [ValidListCertificatesArgs](#interface-validlistcertificatesargs) |
48
+ | [FindUsersArgs](#interface-findusersargs) | [StorageProcessActionResults](#interface-storageprocessactionresults) | [ValidListOutputsArgs](#interface-validlistoutputsargs) |
49
+ | [GenerateChangeSdkChangeInput](#interface-generatechangesdkchangeinput) | [StorageProvenOrReq](#interface-storageprovenorreq) | [ValidProcessActionArgs](#interface-validprocessactionargs) |
50
+ | [GenerateChangeSdkChangeOutput](#interface-generatechangesdkchangeoutput) | [StorageProviderOptions](#interface-storageprovideroptions) | [ValidProcessActionOptions](#interface-validprocessactionoptions) |
51
+ | [GenerateChangeSdkInput](#interface-generatechangesdkinput) | [StorageReaderOptions](#interface-storagereaderoptions) | [ValidProveCertificateArgs](#interface-validprovecertificateargs) |
52
+ | [GenerateChangeSdkOutput](#interface-generatechangesdkoutput) | [StorageReaderWriterOptions](#interface-storagereaderwriteroptions) | [ValidRelinquishCertificateArgs](#interface-validrelinquishcertificateargs) |
53
+ | [GenerateChangeSdkParams](#interface-generatechangesdkparams) | [StorageSyncReader](#interface-storagesyncreader) | [ValidRelinquishOutputArgs](#interface-validrelinquishoutputargs) |
54
+ | [GenerateChangeSdkResult](#interface-generatechangesdkresult) | [StorageSyncReaderOptions](#interface-storagesyncreaderoptions) | [ValidSignActionArgs](#interface-validsignactionargs) |
55
+ | [GenerateChangeSdkStorageChange](#interface-generatechangesdkstoragechange) | [StorageSyncReaderWriter](#interface-storagesyncreaderwriter) | [ValidSignActionOptions](#interface-validsignactionoptions) |
56
+ | [GetMerklePathResult](#interface-getmerklepathresult) | [SyncChunk](#interface-syncchunk) | [ValidWalletPayment](#interface-validwalletpayment) |
57
+ | [GetRawTxResult](#interface-getrawtxresult) | [SyncError](#interface-syncerror) | [ValidWalletSignerArgs](#interface-validwalletsignerargs) |
58
+ | [GetReqsAndBeefDetail](#interface-getreqsandbeefdetail) | [SyncMap](#interface-syncmap) | [WalletArgs](#interface-walletargs) |
59
+ | [GetReqsAndBeefResult](#interface-getreqsandbeefresult) | [TableCertificate](#interface-tablecertificate) | [WalletServices](#interface-walletservices) |
60
+ | [GetUtxoStatusDetails](#interface-getutxostatusdetails) | [TableCertificateField](#interface-tablecertificatefield) | [WalletServicesOptions](#interface-walletservicesoptions) |
61
+ | [GetUtxoStatusResult](#interface-getutxostatusresult) | [TableCertificateX](#interface-tablecertificatex) | [WalletSigner](#interface-walletsigner) |
62
+ | [KeyPair](#interface-keypair) | [TableCommission](#interface-tablecommission) | [WalletStorage](#interface-walletstorage) |
63
+ | [KeyPairAddress](#interface-keypairaddress) | [TableMonitorEvent](#interface-tablemonitorevent) | [WalletStorageProvider](#interface-walletstorageprovider) |
63
64
  | [MonitorOptions](#interface-monitoroptions) | [TableOutput](#interface-tableoutput) | [WalletStorageReader](#interface-walletstoragereader) |
64
65
  | [OutPoint](#interface-outpoint) | [TableOutputBasket](#interface-tableoutputbasket) | [WalletStorageSync](#interface-walletstoragesync) |
65
66
  | [Paged](#interface-paged) | [TableOutputTag](#interface-tableoutputtag) | [WalletStorageWriter](#interface-walletstoragewriter) |
66
67
  | [PendingSignAction](#interface-pendingsignaction) | [TableOutputTagMap](#interface-tableoutputtagmap) | [XValidCreateActionOutput](#interface-xvalidcreateactionoutput) |
67
- | [PendingStorageInput](#interface-pendingstorageinput) | [TableOutputX](#interface-tableoutputx) | |
68
68
 
69
69
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
70
70
 
@@ -1033,6 +1033,21 @@ export interface KeyPair {
1033
1033
 
1034
1034
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
1035
1035
 
1036
+ ---
1037
+ ##### Interface: KeyPairAddress
1038
+
1039
+ A private key and associated public key and address.
1040
+
1041
+ ```ts
1042
+ export interface KeyPairAddress {
1043
+ privateKey: PrivateKey;
1044
+ publicKey: PublicKey;
1045
+ address: string;
1046
+ }
1047
+ ```
1048
+
1049
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
1050
+
1036
1051
  ---
1037
1052
  ##### Interface: MonitorOptions
1038
1053
 
@@ -5231,15 +5246,12 @@ export class ScriptTemplateSABPPP implements ScriptTemplate {
5231
5246
  getKeyID()
5232
5247
  getKeyDeriver(privKey: PrivateKey | HexString): KeyDeriverApi
5233
5248
  lock(lockerPrivKey: string, unlockerPubKey: string): LockingScript
5234
- unlock(unlockerPrivKey: string, lockerPubKey: string, sourceSatoshis?: number, lockingScript?: Script): {
5235
- sign: (tx: Transaction, inputIndex: number) => Promise<UnlockingScript>;
5236
- estimateLength: (tx?: Transaction, inputIndex?: number) => Promise<number>;
5237
- }
5249
+ unlock(unlockerPrivKey: string, lockerPubKey: string, sourceSatoshis?: number, lockingScript?: Script): ScriptTemplateUnlock
5238
5250
  unlockLength = 108;
5239
5251
  }
5240
5252
  ```
5241
5253
 
5242
- See also: [ScriptTemplateParamsSABPPP](./client.md#interface-scripttemplateparamssabppp)
5254
+ See also: [ScriptTemplateParamsSABPPP](./client.md#interface-scripttemplateparamssabppp), [ScriptTemplateUnlock](./client.md#interface-scripttemplateunlock)
5243
5255
 
5244
5256
  ###### Property unlockLength
5245
5257
 
@@ -5377,7 +5389,29 @@ export abstract class SetupClient {
5377
5389
  console.log(log);
5378
5390
  return log;
5379
5391
  }
5380
- static getEnv(chain: sdk.Chain): SetupEnv
5392
+ static getEnv(chain: sdk.Chain): SetupEnv {
5393
+ const identityKey = chain === "main"
5394
+ ? process.env.MY_MAIN_IDENTITY
5395
+ : process.env.MY_TEST_IDENTITY;
5396
+ const identityKey2 = chain === "main"
5397
+ ? process.env.MY_MAIN_IDENTITY2
5398
+ : process.env.MY_TEST_IDENTITY2;
5399
+ const DEV_KEYS = process.env.DEV_KEYS || "{}";
5400
+ const mySQLConnection = process.env.MYSQL_CONNECTION || "{}";
5401
+ const taalApiKey = verifyTruthy(chain === "main"
5402
+ ? process.env.MAIN_TAAL_API_KEY
5403
+ : process.env.TEST_TAAL_API_KEY, `.env value for '${chain.toUpperCase()}_TAAL_API_KEY' is required.`);
5404
+ if (!identityKey || !identityKey2)
5405
+ throw new sdk.WERR_INVALID_OPERATION(".env is not a valid SetupEnv configuration.");
5406
+ return {
5407
+ chain,
5408
+ identityKey,
5409
+ identityKey2,
5410
+ taalApiKey,
5411
+ devKeys: JSON.parse(DEV_KEYS) as Record<string, string>,
5412
+ mySQLConnection
5413
+ };
5414
+ }
5381
5415
  static async createWallet(args: SetupWalletArgs): Promise<SetupWallet> {
5382
5416
  const chain = args.env.chain;
5383
5417
  args.rootKeyHex ||= args.env.devKeys[args.env.identityKey];
@@ -5418,17 +5452,60 @@ export abstract class SetupClient {
5418
5452
  };
5419
5453
  return r;
5420
5454
  }
5421
- static async createWalletClient(args: SetupWalletClientArgs): Promise<SetupWalletClient>
5422
- static getKeyPair(priv?: string | PrivateKey): KeyPairAddress
5423
- static getLockP2PKH(address: string)
5424
- static getUnlockP2PKH(priv: PrivateKey, satoshis: number): sdk.ScriptTemplateUnlock
5455
+ static async createWalletClient(args: SetupWalletClientArgs): Promise<SetupWalletClient> {
5456
+ const wo = await SetupClient.createWallet(args);
5457
+ if (wo.chain === "main")
5458
+ throw new sdk.WERR_INVALID_PARAMETER("chain", `'test' for now, 'main' is not yet supported.`);
5459
+ const endpointUrl = args.endpointUrl || "https://staging-dojo.babbage.systems";
5460
+ const client = new StorageClient(wo.wallet, endpointUrl);
5461
+ await wo.storage.addWalletStorageProvider(client);
5462
+ await wo.storage.makeAvailable();
5463
+ return {
5464
+ ...wo,
5465
+ endpointUrl
5466
+ };
5467
+ }
5468
+ static getKeyPair(priv?: string | PrivateKey): KeyPairAddress {
5469
+ if (priv === undefined)
5470
+ priv = PrivateKey.fromRandom();
5471
+ else if (typeof priv === "string")
5472
+ priv = new PrivateKey(priv, "hex");
5473
+ const pub = PublicKey.fromPrivateKey(priv);
5474
+ const address = pub.toAddress();
5475
+ return { privateKey: priv, publicKey: pub, address };
5476
+ }
5477
+ static getLockP2PKH(address: string): LockingScript {
5478
+ const p2pkh = new P2PKH();
5479
+ const lock = p2pkh.lock(address);
5480
+ return lock;
5481
+ }
5482
+ static getUnlockP2PKH(priv: PrivateKey, satoshis: number): sdk.ScriptTemplateUnlock {
5483
+ const p2pkh = new P2PKH();
5484
+ const lock = SetupClient.getLockP2PKH(SetupClient.getKeyPair(priv).address);
5485
+ const unlock = p2pkh.unlock(priv, "all", false, satoshis, lock);
5486
+ return unlock;
5487
+ }
5425
5488
  static createP2PKHOutputs(outputs: {
5426
5489
  address: string;
5427
5490
  satoshis: number;
5428
5491
  outputDescription?: string;
5429
5492
  basket?: string;
5430
5493
  tags?: string[];
5431
- }[]): CreateActionOutput[]
5494
+ }[]): CreateActionOutput[] {
5495
+ const os: CreateActionOutput[] = [];
5496
+ const count = outputs.length;
5497
+ for (let i = 0; i < count; i++) {
5498
+ const o = outputs[i];
5499
+ os.push({
5500
+ basket: o.basket,
5501
+ tags: o.tags,
5502
+ satoshis: o.satoshis,
5503
+ lockingScript: SetupClient.getLockP2PKH(o.address).toHex(),
5504
+ outputDescription: o.outputDescription || `p2pkh ${i}`
5505
+ });
5506
+ }
5507
+ return os;
5508
+ }
5432
5509
  static async createP2PKHOutputsAction(wallet: WalletInterface, outputs: {
5433
5510
  address: string;
5434
5511
  satoshis: number;
@@ -5438,12 +5515,29 @@ export abstract class SetupClient {
5438
5515
  }[], options?: CreateActionOptions): Promise<{
5439
5516
  cr: CreateActionResult;
5440
5517
  outpoints: string[] | undefined;
5441
- }>
5442
- static async fundWalletFromP2PKHOutpoints(wallet: WalletInterface, outpoints: string[], p2pkhKey: KeyPairAddress, inputBEEF?: BEEF)
5518
+ }> {
5519
+ const os = SetupClient.createP2PKHOutputs(outputs);
5520
+ const createArgs: CreateActionArgs = {
5521
+ description: `createP2PKHOutputs`,
5522
+ outputs: os,
5523
+ options: {
5524
+ ...options,
5525
+ randomizeOutputs: false
5526
+ }
5527
+ };
5528
+ const cr = await wallet.createAction(createArgs);
5529
+ let outpoints: string[] | undefined;
5530
+ if (cr.txid) {
5531
+ outpoints = os.map((o, i) => `${cr.txid}.${i}`);
5532
+ }
5533
+ return { cr, outpoints };
5534
+ }
5535
+ static async fundWalletFromP2PKHOutpoints(wallet: WalletInterface, outpoints: string[], p2pkhKey: KeyPairAddress, inputBEEF?: BEEF) {
5536
+ }
5443
5537
  }
5444
5538
  ```
5445
5539
 
5446
- See also: [Chain](./client.md#type-chain), [KeyPairAddress](./setup.md#type-keypairaddress), [Monitor](./monitor.md#class-monitor), [PrivilegedKeyManager](./client.md#class-privilegedkeymanager), [ScriptTemplateUnlock](./client.md#interface-scripttemplateunlock), [Services](./services.md#class-services), [SetupEnv](./setup.md#interface-setupenv), [SetupWallet](./setup.md#interface-setupwallet), [SetupWalletArgs](./setup.md#interface-setupwalletargs), [SetupWalletClient](./setup.md#interface-setupwalletclient), [SetupWalletClientArgs](./setup.md#interface-setupwalletclientargs), [Wallet](./client.md#class-wallet), [WalletStorageManager](./storage.md#class-walletstoragemanager)
5540
+ See also: [Chain](./client.md#type-chain), [KeyPairAddress](./setup.md#interface-keypairaddress), [Monitor](./monitor.md#class-monitor), [PrivilegedKeyManager](./client.md#class-privilegedkeymanager), [ScriptTemplateUnlock](./client.md#interface-scripttemplateunlock), [Services](./services.md#class-services), [SetupEnv](./setup.md#interface-setupenv), [SetupWallet](./setup.md#interface-setupwallet), [SetupWalletArgs](./setup.md#interface-setupwalletargs), [SetupWalletClient](./setup.md#interface-setupwalletclient), [SetupWalletClientArgs](./setup.md#interface-setupwalletclientargs), [StorageClient](./storage.md#class-storageclient), [WERR_INVALID_OPERATION](./client.md#class-werr_invalid_operation), [WERR_INVALID_PARAMETER](./client.md#class-werr_invalid_parameter), [Wallet](./client.md#class-wallet), [WalletStorageManager](./storage.md#class-walletstoragemanager), [createAction](./storage.md#function-createaction), [verifyTruthy](./client.md#function-verifytruthy)
5447
5541
 
5448
5542
  ###### Method createWallet
5449
5543
 
@@ -5505,9 +5599,31 @@ Returns values for designated `chain`.
5505
5599
  Access private keys through the `devKeys` object: `devKeys[identityKey]`
5506
5600
 
5507
5601
  ```ts
5508
- static getEnv(chain: sdk.Chain): SetupEnv
5602
+ static getEnv(chain: sdk.Chain): SetupEnv {
5603
+ const identityKey = chain === "main"
5604
+ ? process.env.MY_MAIN_IDENTITY
5605
+ : process.env.MY_TEST_IDENTITY;
5606
+ const identityKey2 = chain === "main"
5607
+ ? process.env.MY_MAIN_IDENTITY2
5608
+ : process.env.MY_TEST_IDENTITY2;
5609
+ const DEV_KEYS = process.env.DEV_KEYS || "{}";
5610
+ const mySQLConnection = process.env.MYSQL_CONNECTION || "{}";
5611
+ const taalApiKey = verifyTruthy(chain === "main"
5612
+ ? process.env.MAIN_TAAL_API_KEY
5613
+ : process.env.TEST_TAAL_API_KEY, `.env value for '${chain.toUpperCase()}_TAAL_API_KEY' is required.`);
5614
+ if (!identityKey || !identityKey2)
5615
+ throw new sdk.WERR_INVALID_OPERATION(".env is not a valid SetupEnv configuration.");
5616
+ return {
5617
+ chain,
5618
+ identityKey,
5619
+ identityKey2,
5620
+ taalApiKey,
5621
+ devKeys: JSON.parse(DEV_KEYS) as Record<string, string>,
5622
+ mySQLConnection
5623
+ };
5624
+ }
5509
5625
  ```
5510
- See also: [Chain](./client.md#type-chain), [SetupEnv](./setup.md#interface-setupenv)
5626
+ See also: [Chain](./client.md#type-chain), [SetupEnv](./setup.md#interface-setupenv), [WERR_INVALID_OPERATION](./client.md#class-werr_invalid_operation), [verifyTruthy](./client.md#function-verifytruthy)
5511
5627
 
5512
5628
  Returns
5513
5629
 
@@ -5528,7 +5644,34 @@ Loading secrets from a .env file is intended only for experimentation and gettin
5528
5644
  Private keys should never be included directly in your source code.
5529
5645
 
5530
5646
  ```ts
5531
- static makeEnv(): string
5647
+ static makeEnv(): string {
5648
+ const testPrivKey1 = PrivateKey.fromRandom();
5649
+ const testIdentityKey1 = testPrivKey1.toPublicKey().toString();
5650
+ const testPrivKey2 = PrivateKey.fromRandom();
5651
+ const testIdentityKey2 = testPrivKey2.toPublicKey().toString();
5652
+ const mainPrivKey1 = PrivateKey.fromRandom();
5653
+ const mainIdentityKey1 = mainPrivKey1.toPublicKey().toString();
5654
+ const mainPrivKey2 = PrivateKey.fromRandom();
5655
+ const mainIdentityKey2 = mainPrivKey2.toPublicKey().toString();
5656
+ const log = `
5657
+ # Add the following to .env file:
5658
+ MAIN_TAAL_API_KEY='mainnet_9596de07e92300c6287e4393594ae39c'
5659
+ TEST_TAAL_API_KEY='testnet_0e6cf72133b43ea2d7861da2a38684e3'
5660
+ MY_TEST_IDENTITY = '${testIdentityKey1}'
5661
+ MY_TEST_IDENTITY2 = '${testIdentityKey2}'
5662
+ MY_MAIN_IDENTITY = '${mainIdentityKey1}'
5663
+ MY_MAIN_IDENTITY2 = '${mainIdentityKey2}'
5664
+ DEV_KEYS = '{
5665
+ "${testIdentityKey1}": "${testPrivKey1.toString()}",
5666
+ "${testIdentityKey2}": "${testPrivKey2.toString()}"
5667
+ "${mainIdentityKey1}": "${mainPrivKey1.toString()}",
5668
+ "${mainIdentityKey2}": "${mainPrivKey2.toString()}"
5669
+ }'
5670
+ MYSQL_CONNECTION='{"port":3306,"host":"127.0.0.1","user":"root","password":"<your_password>","database":"<your_database>", "timezone": "Z"}'
5671
+ `;
5672
+ console.log(log);
5673
+ return log;
5674
+ }
5532
5675
  ```
5533
5676
 
5534
5677
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
@@ -7197,13 +7340,13 @@ The `WalletStorageManager` class delivers authentication checking storage access
7197
7340
  If manages multiple `StorageBase` derived storage services: one actice, the rest as backups.
7198
7341
 
7199
7342
  Of the storage services, one is 'active' at any one time.
7200
- On startup, and whenever triggered by the wallet, `SignerStorage` runs a syncrhonization sequence:
7343
+ On startup, and whenever triggered by the wallet, `WalletStorageManager` runs a syncrhonization sequence:
7201
7344
 
7202
7345
  1. While synchronizing, all other access to storage is blocked waiting.
7203
7346
  2. The active service is confirmed, potentially triggering a resolution process if there is disagreement.
7204
7347
  3. Changes are pushed from the active storage service to each inactive, backup service.
7205
7348
 
7206
- Some storage services do not support multiple writers. `SignerStorage` manages wait-blocking write requests
7349
+ Some storage services do not support multiple writers. `WalletStorageManager` manages wait-blocking write requests
7207
7350
  for these services.
7208
7351
 
7209
7352
  ```ts
@@ -8950,15 +9093,15 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
8950
9093
 
8951
9094
  | | |
8952
9095
  | --- | --- |
8953
- | [Chain](#type-chain) | [PostBeefService](#type-postbeefservice) |
8954
- | [DBType](#type-dbtype) | [PostReqsToNetworkDetailsStatus](#type-postreqstonetworkdetailsstatus) |
8955
- | [EntityStorage](#type-entitystorage) | [PostTxsService](#type-posttxsservice) |
8956
- | [GetMerklePathService](#type-getmerklepathservice) | [ProvenTxReqStatus](#type-proventxreqstatus) |
8957
- | [GetRawTxService](#type-getrawtxservice) | [StorageProvidedBy](#type-storageprovidedby) |
8958
- | [GetUtxoStatusOutputFormat](#type-getutxostatusoutputformat) | [SyncProtocolVersion](#type-syncprotocolversion) |
8959
- | [GetUtxoStatusService](#type-getutxostatusservice) | [SyncStatus](#type-syncstatus) |
8960
- | [KeyPairAddress](#type-keypairaddress) | [TransactionStatus](#type-transactionstatus) |
9096
+ | [Chain](#type-chain) | [PostReqsToNetworkDetailsStatus](#type-postreqstonetworkdetailsstatus) |
9097
+ | [DBType](#type-dbtype) | [PostTxsService](#type-posttxsservice) |
9098
+ | [EntityStorage](#type-entitystorage) | [ProvenTxReqStatus](#type-proventxreqstatus) |
9099
+ | [GetMerklePathService](#type-getmerklepathservice) | [StorageProvidedBy](#type-storageprovidedby) |
9100
+ | [GetRawTxService](#type-getrawtxservice) | [SyncProtocolVersion](#type-syncprotocolversion) |
9101
+ | [GetUtxoStatusOutputFormat](#type-getutxostatusoutputformat) | [SyncStatus](#type-syncstatus) |
9102
+ | [GetUtxoStatusService](#type-getutxostatusservice) | [TransactionStatus](#type-transactionstatus) |
8961
9103
  | [MonitorStorage](#type-monitorstorage) | [UpdateFiatExchangeRateService](#type-updatefiatexchangerateservice) |
9104
+ | [PostBeefService](#type-postbeefservice) | |
8962
9105
 
8963
9106
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
8964
9107
 
@@ -9034,19 +9177,6 @@ See also: [Chain](./client.md#type-chain), [GetUtxoStatusOutputFormat](./client.
9034
9177
 
9035
9178
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
9036
9179
 
9037
- ---
9038
- ##### Type: KeyPairAddress
9039
-
9040
- ```ts
9041
- export type KeyPairAddress = {
9042
- privateKey: PrivateKey;
9043
- publicKey: PublicKey;
9044
- address: string;
9045
- }
9046
- ```
9047
-
9048
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
9049
-
9050
9180
  ---
9051
9181
  ##### Type: MonitorStorage
9052
9182
 
package/docs/monitor.md CHANGED
@@ -8,7 +8,7 @@ To function properly, a wallet must be able to perform a number of house keeping
8
8
  1. Obtain and merge proofs when transactions are mined.
9
9
  1. Detect and propagate transactions that fail due to double-spend, reorgs, or other reasons.
10
10
 
11
- These tasks are the responssibility of the [Monitor](#class-monitor) class.
11
+ These tasks are the responsibility of the [Monitor](#class-monitor) class.
12
12
 
13
13
  [Return To Top](./README.md)
14
14
 
@@ -621,4 +621,4 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
621
621
  #### Variables
622
622
 
623
623
 
624
- <!--#endregion ts2md-api-merged-here-->
624
+ <!--#endregion ts2md-api-merged-here-->
package/docs/services.md CHANGED
@@ -10,7 +10,7 @@ To function properly, a wallet makes use of a variety of services provided by th
10
10
  2. Obtain block headers for proof validation.
11
11
  3. Obtain exchange rates for UI and fee calculations.
12
12
 
13
- These tasks are the responssibility of the [Services](#class-services) class.
13
+ These tasks are the responsibility of the [Services](#class-services) class.
14
14
 
15
15
  [Return To Top](./README.md)
16
16
 
@@ -494,4 +494,4 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
494
494
  #### Variables
495
495
 
496
496
 
497
- <!--#endregion ts2md-api-merged-here-->
497
+ <!--#endregion ts2md-api-merged-here-->