@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.
- package/mobile/out/src/CWIStyleWalletManager.d.ts +437 -0
- package/mobile/out/src/CWIStyleWalletManager.d.ts.map +1 -0
- package/mobile/out/src/CWIStyleWalletManager.js +1255 -0
- package/mobile/out/src/CWIStyleWalletManager.js.map +1 -0
- package/mobile/out/src/SetupClient.d.ts +126 -0
- package/mobile/out/src/SetupClient.d.ts.map +1 -0
- package/mobile/out/src/SetupClient.js +220 -0
- package/mobile/out/src/SetupClient.js.map +1 -0
- package/mobile/out/src/SetupWallet.d.ts +100 -0
- package/mobile/out/src/SetupWallet.d.ts.map +1 -0
- package/mobile/out/src/SetupWallet.js +3 -0
- package/mobile/out/src/SetupWallet.js.map +1 -0
- package/mobile/out/src/SimpleWalletManager.d.ts +169 -0
- package/mobile/out/src/SimpleWalletManager.d.ts.map +1 -0
- package/mobile/out/src/SimpleWalletManager.js +315 -0
- package/mobile/out/src/SimpleWalletManager.js.map +1 -0
- package/mobile/out/src/Wallet.d.ts +177 -0
- package/mobile/out/src/Wallet.d.ts.map +1 -0
- package/mobile/out/src/Wallet.js +742 -0
- package/mobile/out/src/Wallet.js.map +1 -0
- package/mobile/out/src/WalletAuthenticationManager.d.ts +33 -0
- package/mobile/out/src/WalletAuthenticationManager.d.ts.map +1 -0
- package/mobile/out/src/WalletAuthenticationManager.js +113 -0
- package/mobile/out/src/WalletAuthenticationManager.js.map +1 -0
- package/mobile/out/src/WalletPermissionsManager.d.ts +598 -0
- package/mobile/out/src/WalletPermissionsManager.d.ts.map +1 -0
- package/mobile/out/src/WalletPermissionsManager.js +1868 -0
- package/mobile/out/src/WalletPermissionsManager.js.map +1 -0
- package/mobile/out/src/WalletSettingsManager.d.ts +52 -0
- package/mobile/out/src/WalletSettingsManager.d.ts.map +1 -0
- package/mobile/out/src/WalletSettingsManager.js +82 -0
- package/mobile/out/src/WalletSettingsManager.js.map +1 -0
- package/mobile/out/src/index.client.d.ts +19 -0
- package/mobile/out/src/index.client.d.ts.map +1 -0
- package/mobile/out/src/index.client.js +58 -0
- package/mobile/out/src/index.client.js.map +1 -0
- package/mobile/out/src/index.mobile.d.ts +17 -0
- package/mobile/out/src/index.mobile.d.ts.map +1 -0
- package/mobile/out/src/index.mobile.js +56 -0
- package/mobile/out/src/index.mobile.js.map +1 -0
- package/mobile/out/src/monitor/Monitor.d.ts +91 -0
- package/mobile/out/src/monitor/Monitor.d.ts.map +1 -0
- package/mobile/out/src/monitor/Monitor.js +298 -0
- package/mobile/out/src/monitor/Monitor.js.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskCheckForProofs.d.ts +53 -0
- package/mobile/out/src/monitor/tasks/TaskCheckForProofs.d.ts.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskCheckForProofs.js +194 -0
- package/mobile/out/src/monitor/tasks/TaskCheckForProofs.js.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskCheckNoSends.d.ts +33 -0
- package/mobile/out/src/monitor/tasks/TaskCheckNoSends.d.ts.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskCheckNoSends.js +65 -0
- package/mobile/out/src/monitor/tasks/TaskCheckNoSends.js.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskClock.d.ts +14 -0
- package/mobile/out/src/monitor/tasks/TaskClock.d.ts.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskClock.js +27 -0
- package/mobile/out/src/monitor/tasks/TaskClock.js.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskFailAbandoned.d.ts +20 -0
- package/mobile/out/src/monitor/tasks/TaskFailAbandoned.d.ts.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskFailAbandoned.js +52 -0
- package/mobile/out/src/monitor/tasks/TaskFailAbandoned.js.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskNewHeader.d.ts +15 -0
- package/mobile/out/src/monitor/tasks/TaskNewHeader.d.ts.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskNewHeader.js +43 -0
- package/mobile/out/src/monitor/tasks/TaskNewHeader.js.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskPurge.d.ts +45 -0
- package/mobile/out/src/monitor/tasks/TaskPurge.d.ts.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskPurge.js +34 -0
- package/mobile/out/src/monitor/tasks/TaskPurge.js.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskReviewStatus.d.ts +26 -0
- package/mobile/out/src/monitor/tasks/TaskReviewStatus.d.ts.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskReviewStatus.js +43 -0
- package/mobile/out/src/monitor/tasks/TaskReviewStatus.js.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskSendWaiting.d.ts +35 -0
- package/mobile/out/src/monitor/tasks/TaskSendWaiting.d.ts.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskSendWaiting.js +107 -0
- package/mobile/out/src/monitor/tasks/TaskSendWaiting.js.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskSyncWhenIdle.d.ts +12 -0
- package/mobile/out/src/monitor/tasks/TaskSyncWhenIdle.d.ts.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskSyncWhenIdle.js +22 -0
- package/mobile/out/src/monitor/tasks/TaskSyncWhenIdle.js.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskUnFail.d.ts +41 -0
- package/mobile/out/src/monitor/tasks/TaskUnFail.d.ts.map +1 -0
- package/mobile/out/src/monitor/tasks/TaskUnFail.js +144 -0
- package/mobile/out/src/monitor/tasks/TaskUnFail.js.map +1 -0
- package/mobile/out/src/monitor/tasks/WalletMonitorTask.d.ts +40 -0
- package/mobile/out/src/monitor/tasks/WalletMonitorTask.d.ts.map +1 -0
- package/mobile/out/src/monitor/tasks/WalletMonitorTask.js +37 -0
- package/mobile/out/src/monitor/tasks/WalletMonitorTask.js.map +1 -0
- package/mobile/out/src/sdk/CertOpsWallet.d.ts +7 -0
- package/mobile/out/src/sdk/CertOpsWallet.d.ts.map +1 -0
- package/mobile/out/src/sdk/CertOpsWallet.js +3 -0
- package/mobile/out/src/sdk/CertOpsWallet.js.map +1 -0
- package/mobile/out/src/sdk/PrivilegedKeyManager.d.ts +125 -0
- package/mobile/out/src/sdk/PrivilegedKeyManager.d.ts.map +1 -0
- package/mobile/out/src/sdk/PrivilegedKeyManager.js +293 -0
- package/mobile/out/src/sdk/PrivilegedKeyManager.js.map +1 -0
- package/mobile/out/src/sdk/WERR_errors.d.ts +115 -0
- package/mobile/out/src/sdk/WERR_errors.d.ts.map +1 -0
- package/mobile/out/src/sdk/WERR_errors.js +158 -0
- package/mobile/out/src/sdk/WERR_errors.js.map +1 -0
- package/mobile/out/src/sdk/WalletError.d.ts +44 -0
- package/mobile/out/src/sdk/WalletError.d.ts.map +1 -0
- package/mobile/out/src/sdk/WalletError.js +118 -0
- package/mobile/out/src/sdk/WalletError.js.map +1 -0
- package/mobile/out/src/sdk/WalletServices.interfaces.d.ts +430 -0
- package/mobile/out/src/sdk/WalletServices.interfaces.d.ts.map +1 -0
- package/mobile/out/src/sdk/WalletServices.interfaces.js +3 -0
- package/mobile/out/src/sdk/WalletServices.interfaces.js.map +1 -0
- package/mobile/out/src/sdk/WalletSigner.interfaces.d.ts +10 -0
- package/mobile/out/src/sdk/WalletSigner.interfaces.d.ts.map +1 -0
- package/mobile/out/src/sdk/WalletSigner.interfaces.js +3 -0
- package/mobile/out/src/sdk/WalletSigner.interfaces.js.map +1 -0
- package/mobile/out/src/sdk/WalletStorage.interfaces.d.ts +452 -0
- package/mobile/out/src/sdk/WalletStorage.interfaces.d.ts.map +1 -0
- package/mobile/out/src/sdk/WalletStorage.interfaces.js +3 -0
- package/mobile/out/src/sdk/WalletStorage.interfaces.js.map +1 -0
- package/mobile/out/src/sdk/index.d.ts +10 -0
- package/mobile/out/src/sdk/index.d.ts.map +1 -0
- package/mobile/out/src/sdk/index.js +26 -0
- package/mobile/out/src/sdk/index.js.map +1 -0
- package/mobile/out/src/sdk/types.d.ts +158 -0
- package/mobile/out/src/sdk/types.d.ts.map +1 -0
- package/mobile/out/src/sdk/types.js +90 -0
- package/mobile/out/src/sdk/types.js.map +1 -0
- package/mobile/out/src/sdk/validationHelpers.d.ts +301 -0
- package/mobile/out/src/sdk/validationHelpers.d.ts.map +1 -0
- package/mobile/out/src/sdk/validationHelpers.js +629 -0
- package/mobile/out/src/sdk/validationHelpers.js.map +1 -0
- package/mobile/out/src/services/ServiceCollection.d.ts +25 -0
- package/mobile/out/src/services/ServiceCollection.d.ts.map +1 -0
- package/mobile/out/src/services/ServiceCollection.js +43 -0
- package/mobile/out/src/services/ServiceCollection.js.map +1 -0
- package/mobile/out/src/services/Services.d.ts +67 -0
- package/mobile/out/src/services/Services.d.ts.map +1 -0
- package/mobile/out/src/services/Services.js +391 -0
- package/mobile/out/src/services/Services.js.map +1 -0
- package/mobile/out/src/services/chaintracker/ChaintracksChainTracker.d.ts +15 -0
- package/mobile/out/src/services/chaintracker/ChaintracksChainTracker.d.ts.map +1 -0
- package/mobile/out/src/services/chaintracker/ChaintracksChainTracker.js +51 -0
- package/mobile/out/src/services/chaintracker/ChaintracksChainTracker.js.map +1 -0
- package/mobile/out/src/services/chaintracker/chaintracks/BlockHeaderApi.d.ts +98 -0
- package/mobile/out/src/services/chaintracker/chaintracks/BlockHeaderApi.d.ts.map +1 -0
- package/mobile/out/src/services/chaintracker/chaintracks/BlockHeaderApi.js +38 -0
- package/mobile/out/src/services/chaintracker/chaintracks/BlockHeaderApi.js.map +1 -0
- package/mobile/out/src/services/chaintracker/chaintracks/ChaintracksServiceClient.d.ts +36 -0
- package/mobile/out/src/services/chaintracker/chaintracks/ChaintracksServiceClient.d.ts.map +1 -0
- package/mobile/out/src/services/chaintracker/chaintracks/ChaintracksServiceClient.js +128 -0
- package/mobile/out/src/services/chaintracker/chaintracks/ChaintracksServiceClient.js.map +1 -0
- package/mobile/out/src/services/chaintracker/chaintracks/index.d.ts +3 -0
- package/mobile/out/src/services/chaintracker/chaintracks/index.d.ts.map +1 -0
- package/mobile/out/src/services/chaintracker/chaintracks/index.js +19 -0
- package/mobile/out/src/services/chaintracker/chaintracks/index.js.map +1 -0
- package/mobile/out/src/services/chaintracker/index.d.ts +3 -0
- package/mobile/out/src/services/chaintracker/index.d.ts.map +1 -0
- package/mobile/out/src/services/chaintracker/index.js +19 -0
- package/mobile/out/src/services/chaintracker/index.js.map +1 -0
- package/mobile/out/src/services/createDefaultWalletServicesOptions.d.ts +4 -0
- package/mobile/out/src/services/createDefaultWalletServicesOptions.d.ts.map +1 -0
- package/mobile/out/src/services/createDefaultWalletServicesOptions.js +46 -0
- package/mobile/out/src/services/createDefaultWalletServicesOptions.js.map +1 -0
- package/mobile/out/src/services/index.d.ts +2 -0
- package/mobile/out/src/services/index.d.ts.map +1 -0
- package/mobile/out/src/services/index.js +18 -0
- package/mobile/out/src/services/index.js.map +1 -0
- package/mobile/out/src/services/providers/ARC.d.ts +91 -0
- package/mobile/out/src/services/providers/ARC.d.ts.map +1 -0
- package/mobile/out/src/services/providers/ARC.js +267 -0
- package/mobile/out/src/services/providers/ARC.js.map +1 -0
- package/mobile/out/src/services/providers/Bitails.d.ts +49 -0
- package/mobile/out/src/services/providers/Bitails.d.ts.map +1 -0
- package/mobile/out/src/services/providers/Bitails.js +222 -0
- package/mobile/out/src/services/providers/Bitails.js.map +1 -0
- package/mobile/out/src/services/providers/SdkWhatsOnChain.d.ts +21 -0
- package/mobile/out/src/services/providers/SdkWhatsOnChain.d.ts.map +1 -0
- package/mobile/out/src/services/providers/SdkWhatsOnChain.js +67 -0
- package/mobile/out/src/services/providers/SdkWhatsOnChain.js.map +1 -0
- package/mobile/out/src/services/providers/WhatsOnChain.d.ts +71 -0
- package/mobile/out/src/services/providers/WhatsOnChain.d.ts.map +1 -0
- package/mobile/out/src/services/providers/WhatsOnChain.js +582 -0
- package/mobile/out/src/services/providers/WhatsOnChain.js.map +1 -0
- package/mobile/out/src/services/providers/echangeRates.d.ts +12 -0
- package/mobile/out/src/services/providers/echangeRates.d.ts.map +1 -0
- package/mobile/out/src/services/providers/echangeRates.js +237 -0
- package/mobile/out/src/services/providers/echangeRates.js.map +1 -0
- package/mobile/out/src/services/providers/getBeefForTxid.d.ts +4 -0
- package/mobile/out/src/services/providers/getBeefForTxid.d.ts.map +1 -0
- package/mobile/out/src/services/providers/getBeefForTxid.js +286 -0
- package/mobile/out/src/services/providers/getBeefForTxid.js.map +1 -0
- package/mobile/out/src/signer/WalletSigner.d.ts +11 -0
- package/mobile/out/src/signer/WalletSigner.d.ts.map +1 -0
- package/mobile/out/src/signer/WalletSigner.js +13 -0
- package/mobile/out/src/signer/WalletSigner.js.map +1 -0
- package/mobile/out/src/signer/methods/acquireDirectCertificate.d.ts +4 -0
- package/mobile/out/src/signer/methods/acquireDirectCertificate.d.ts.map +1 -0
- package/mobile/out/src/signer/methods/acquireDirectCertificate.js +45 -0
- package/mobile/out/src/signer/methods/acquireDirectCertificate.js.map +1 -0
- package/mobile/out/src/signer/methods/buildSignableTransaction.d.ts +10 -0
- package/mobile/out/src/signer/methods/buildSignableTransaction.d.ts.map +1 -0
- package/mobile/out/src/signer/methods/buildSignableTransaction.js +126 -0
- package/mobile/out/src/signer/methods/buildSignableTransaction.js.map +1 -0
- package/mobile/out/src/signer/methods/createAction.d.ts +20 -0
- package/mobile/out/src/signer/methods/createAction.d.ts.map +1 -0
- package/mobile/out/src/signer/methods/createAction.js +160 -0
- package/mobile/out/src/signer/methods/createAction.js.map +1 -0
- package/mobile/out/src/signer/methods/internalizeAction.d.ts +31 -0
- package/mobile/out/src/signer/methods/internalizeAction.d.ts.map +1 -0
- package/mobile/out/src/signer/methods/internalizeAction.js +95 -0
- package/mobile/out/src/signer/methods/internalizeAction.js.map +1 -0
- package/mobile/out/src/signer/methods/proveCertificate.d.ts +4 -0
- package/mobile/out/src/signer/methods/proveCertificate.d.ts.map +1 -0
- package/mobile/out/src/signer/methods/proveCertificate.js +29 -0
- package/mobile/out/src/signer/methods/proveCertificate.js.map +1 -0
- package/mobile/out/src/signer/methods/signAction.d.ts +13 -0
- package/mobile/out/src/signer/methods/signAction.d.ts.map +1 -0
- package/mobile/out/src/signer/methods/signAction.js +89 -0
- package/mobile/out/src/signer/methods/signAction.js.map +1 -0
- package/mobile/out/src/storage/StorageIdb.d.ts +209 -0
- package/mobile/out/src/storage/StorageIdb.d.ts.map +1 -0
- package/mobile/out/src/storage/StorageIdb.js +2330 -0
- package/mobile/out/src/storage/StorageIdb.js.map +1 -0
- package/mobile/out/src/storage/StorageProvider.d.ts +210 -0
- package/mobile/out/src/storage/StorageProvider.d.ts.map +1 -0
- package/mobile/out/src/storage/StorageProvider.js +585 -0
- package/mobile/out/src/storage/StorageProvider.js.map +1 -0
- package/mobile/out/src/storage/StorageReader.d.ts +77 -0
- package/mobile/out/src/storage/StorageReader.d.ts.map +1 -0
- package/mobile/out/src/storage/StorageReader.js +163 -0
- package/mobile/out/src/storage/StorageReader.js.map +1 -0
- package/mobile/out/src/storage/StorageReaderWriter.d.ts +88 -0
- package/mobile/out/src/storage/StorageReaderWriter.d.ts.map +1 -0
- package/mobile/out/src/storage/StorageReaderWriter.js +338 -0
- package/mobile/out/src/storage/StorageReaderWriter.js.map +1 -0
- package/mobile/out/src/storage/StorageSyncReader.d.ts +18 -0
- package/mobile/out/src/storage/StorageSyncReader.d.ts.map +1 -0
- package/mobile/out/src/storage/StorageSyncReader.js +71 -0
- package/mobile/out/src/storage/StorageSyncReader.js.map +1 -0
- package/mobile/out/src/storage/WalletStorageManager.d.ts +184 -0
- package/mobile/out/src/storage/WalletStorageManager.d.ts.map +1 -0
- package/mobile/out/src/storage/WalletStorageManager.js +665 -0
- package/mobile/out/src/storage/WalletStorageManager.js.map +1 -0
- package/mobile/out/src/storage/index.client.d.ts +8 -0
- package/mobile/out/src/storage/index.client.d.ts.map +1 -0
- package/mobile/out/src/storage/index.client.js +24 -0
- package/mobile/out/src/storage/index.client.js.map +1 -0
- package/mobile/out/src/storage/index.mobile.d.ts +7 -0
- package/mobile/out/src/storage/index.mobile.d.ts.map +1 -0
- package/mobile/out/src/storage/index.mobile.js +23 -0
- package/mobile/out/src/storage/index.mobile.js.map +1 -0
- package/mobile/out/src/storage/methods/ListActionsSpecOp.d.ts +16 -0
- package/mobile/out/src/storage/methods/ListActionsSpecOp.d.ts.map +1 -0
- package/mobile/out/src/storage/methods/ListActionsSpecOp.js +40 -0
- package/mobile/out/src/storage/methods/ListActionsSpecOp.js.map +1 -0
- package/mobile/out/src/storage/methods/ListOutputsSpecOp.d.ts +26 -0
- package/mobile/out/src/storage/methods/ListOutputsSpecOp.d.ts.map +1 -0
- package/mobile/out/src/storage/methods/ListOutputsSpecOp.js +71 -0
- package/mobile/out/src/storage/methods/ListOutputsSpecOp.js.map +1 -0
- package/mobile/out/src/storage/methods/attemptToPostReqsToNetwork.d.ts +41 -0
- package/mobile/out/src/storage/methods/attemptToPostReqsToNetwork.d.ts.map +1 -0
- package/mobile/out/src/storage/methods/attemptToPostReqsToNetwork.js +320 -0
- package/mobile/out/src/storage/methods/attemptToPostReqsToNetwork.js.map +1 -0
- package/mobile/out/src/storage/methods/createAction.d.ts +24 -0
- package/mobile/out/src/storage/methods/createAction.d.ts.map +1 -0
- package/mobile/out/src/storage/methods/createAction.js +705 -0
- package/mobile/out/src/storage/methods/createAction.js.map +1 -0
- package/mobile/out/src/storage/methods/generateChange.d.ts +119 -0
- package/mobile/out/src/storage/methods/generateChange.d.ts.map +1 -0
- package/mobile/out/src/storage/methods/generateChange.js +448 -0
- package/mobile/out/src/storage/methods/generateChange.js.map +1 -0
- package/mobile/out/src/storage/methods/getBeefForTransaction.d.ts +22 -0
- package/mobile/out/src/storage/methods/getBeefForTransaction.d.ts.map +1 -0
- package/mobile/out/src/storage/methods/getBeefForTransaction.js +92 -0
- package/mobile/out/src/storage/methods/getBeefForTransaction.js.map +1 -0
- package/mobile/out/src/storage/methods/getSyncChunk.d.ts +10 -0
- package/mobile/out/src/storage/methods/getSyncChunk.d.ts.map +1 -0
- package/mobile/out/src/storage/methods/getSyncChunk.js +271 -0
- package/mobile/out/src/storage/methods/getSyncChunk.js.map +1 -0
- package/mobile/out/src/storage/methods/internalizeAction.d.ts +38 -0
- package/mobile/out/src/storage/methods/internalizeAction.d.ts.map +1 -0
- package/mobile/out/src/storage/methods/internalizeAction.js +371 -0
- package/mobile/out/src/storage/methods/internalizeAction.js.map +1 -0
- package/mobile/out/src/storage/methods/listActionsIdb.d.ts +5 -0
- package/mobile/out/src/storage/methods/listActionsIdb.d.ts.map +1 -0
- package/mobile/out/src/storage/methods/listActionsIdb.js +155 -0
- package/mobile/out/src/storage/methods/listActionsIdb.js.map +1 -0
- package/mobile/out/src/storage/methods/listCertificates.d.ts +5 -0
- package/mobile/out/src/storage/methods/listCertificates.d.ts.map +1 -0
- package/mobile/out/src/storage/methods/listCertificates.js +68 -0
- package/mobile/out/src/storage/methods/listCertificates.js.map +1 -0
- package/mobile/out/src/storage/methods/listOutputsIdb.d.ts +5 -0
- package/mobile/out/src/storage/methods/listOutputsIdb.d.ts.map +1 -0
- package/mobile/out/src/storage/methods/listOutputsIdb.js +181 -0
- package/mobile/out/src/storage/methods/listOutputsIdb.js.map +1 -0
- package/mobile/out/src/storage/methods/processAction.d.ts +35 -0
- package/mobile/out/src/storage/methods/processAction.d.ts.map +1 -0
- package/mobile/out/src/storage/methods/processAction.js +311 -0
- package/mobile/out/src/storage/methods/processAction.js.map +1 -0
- package/mobile/out/src/storage/methods/purgeDataIdb.d.ts +4 -0
- package/mobile/out/src/storage/methods/purgeDataIdb.d.ts.map +1 -0
- package/mobile/out/src/storage/methods/purgeDataIdb.js +9 -0
- package/mobile/out/src/storage/methods/purgeDataIdb.js.map +1 -0
- package/mobile/out/src/storage/methods/reviewStatusIdb.d.ts +20 -0
- package/mobile/out/src/storage/methods/reviewStatusIdb.d.ts.map +1 -0
- package/mobile/out/src/storage/methods/reviewStatusIdb.js +35 -0
- package/mobile/out/src/storage/methods/reviewStatusIdb.js.map +1 -0
- package/mobile/out/src/storage/remoting/StorageClient.d.ts +283 -0
- package/mobile/out/src/storage/remoting/StorageClient.d.ts.map +1 -0
- package/mobile/out/src/storage/remoting/StorageClient.js +477 -0
- package/mobile/out/src/storage/remoting/StorageClient.js.map +1 -0
- package/mobile/out/src/storage/remoting/StorageMobile.d.ts +283 -0
- package/mobile/out/src/storage/remoting/StorageMobile.d.ts.map +1 -0
- package/mobile/out/src/storage/remoting/StorageMobile.js +477 -0
- package/mobile/out/src/storage/remoting/StorageMobile.js.map +1 -0
- package/mobile/out/src/storage/schema/StorageIdbSchema.d.ts +133 -0
- package/mobile/out/src/storage/schema/StorageIdbSchema.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/StorageIdbSchema.js +3 -0
- package/mobile/out/src/storage/schema/StorageIdbSchema.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityBase.d.ts +105 -0
- package/mobile/out/src/storage/schema/entities/EntityBase.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityBase.js +100 -0
- package/mobile/out/src/storage/schema/entities/EntityBase.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityCertificate.d.ts +43 -0
- package/mobile/out/src/storage/schema/entities/EntityCertificate.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityCertificate.js +162 -0
- package/mobile/out/src/storage/schema/entities/EntityCertificate.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityCertificateField.d.ts +32 -0
- package/mobile/out/src/storage/schema/entities/EntityCertificateField.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityCertificateField.js +111 -0
- package/mobile/out/src/storage/schema/entities/EntityCertificateField.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityCommission.d.ts +37 -0
- package/mobile/out/src/storage/schema/entities/EntityCommission.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityCommission.js +127 -0
- package/mobile/out/src/storage/schema/entities/EntityCommission.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityOutput.d.ts +67 -0
- package/mobile/out/src/storage/schema/entities/EntityOutput.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityOutput.js +264 -0
- package/mobile/out/src/storage/schema/entities/EntityOutput.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityOutputBasket.d.ts +35 -0
- package/mobile/out/src/storage/schema/entities/EntityOutputBasket.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityOutputBasket.js +133 -0
- package/mobile/out/src/storage/schema/entities/EntityOutputBasket.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityOutputTag.d.ts +31 -0
- package/mobile/out/src/storage/schema/entities/EntityOutputTag.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityOutputTag.js +104 -0
- package/mobile/out/src/storage/schema/entities/EntityOutputTag.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityOutputTagMap.d.ts +28 -0
- package/mobile/out/src/storage/schema/entities/EntityOutputTagMap.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityOutputTagMap.js +97 -0
- package/mobile/out/src/storage/schema/entities/EntityOutputTagMap.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityProvenTx.d.ts +84 -0
- package/mobile/out/src/storage/schema/entities/EntityProvenTx.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityProvenTx.js +276 -0
- package/mobile/out/src/storage/schema/entities/EntityProvenTx.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityProvenTxReq.d.ts +135 -0
- package/mobile/out/src/storage/schema/entities/EntityProvenTxReq.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityProvenTxReq.js +522 -0
- package/mobile/out/src/storage/schema/entities/EntityProvenTxReq.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntitySyncState.d.ts +67 -0
- package/mobile/out/src/storage/schema/entities/EntitySyncState.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntitySyncState.js +319 -0
- package/mobile/out/src/storage/schema/entities/EntitySyncState.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityTransaction.d.ts +67 -0
- package/mobile/out/src/storage/schema/entities/EntityTransaction.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityTransaction.js +255 -0
- package/mobile/out/src/storage/schema/entities/EntityTransaction.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityTxLabel.d.ts +31 -0
- package/mobile/out/src/storage/schema/entities/EntityTxLabel.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityTxLabel.js +104 -0
- package/mobile/out/src/storage/schema/entities/EntityTxLabel.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityTxLabelMap.d.ts +28 -0
- package/mobile/out/src/storage/schema/entities/EntityTxLabelMap.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityTxLabelMap.js +97 -0
- package/mobile/out/src/storage/schema/entities/EntityTxLabelMap.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityUser.d.ts +29 -0
- package/mobile/out/src/storage/schema/entities/EntityUser.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/EntityUser.js +98 -0
- package/mobile/out/src/storage/schema/entities/EntityUser.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/MergeEntity.d.ts +33 -0
- package/mobile/out/src/storage/schema/entities/MergeEntity.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/MergeEntity.js +62 -0
- package/mobile/out/src/storage/schema/entities/MergeEntity.js.map +1 -0
- package/mobile/out/src/storage/schema/entities/index.d.ts +17 -0
- package/mobile/out/src/storage/schema/entities/index.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/entities/index.js +33 -0
- package/mobile/out/src/storage/schema/entities/index.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableCertificate.d.ts +20 -0
- package/mobile/out/src/storage/schema/tables/TableCertificate.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableCertificate.js +3 -0
- package/mobile/out/src/storage/schema/tables/TableCertificate.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableCertificateField.d.ts +12 -0
- package/mobile/out/src/storage/schema/tables/TableCertificateField.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableCertificateField.js +3 -0
- package/mobile/out/src/storage/schema/tables/TableCertificateField.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableCommission.d.ts +13 -0
- package/mobile/out/src/storage/schema/tables/TableCommission.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableCommission.js +3 -0
- package/mobile/out/src/storage/schema/tables/TableCommission.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableMonitorEvent.d.ts +9 -0
- package/mobile/out/src/storage/schema/tables/TableMonitorEvent.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableMonitorEvent.js +3 -0
- package/mobile/out/src/storage/schema/tables/TableMonitorEvent.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableOutput.d.ts +36 -0
- package/mobile/out/src/storage/schema/tables/TableOutput.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableOutput.js +31 -0
- package/mobile/out/src/storage/schema/tables/TableOutput.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableOutputBasket.d.ts +12 -0
- package/mobile/out/src/storage/schema/tables/TableOutputBasket.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableOutputBasket.js +3 -0
- package/mobile/out/src/storage/schema/tables/TableOutputBasket.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableOutputTag.d.ts +10 -0
- package/mobile/out/src/storage/schema/tables/TableOutputTag.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableOutputTag.js +3 -0
- package/mobile/out/src/storage/schema/tables/TableOutputTag.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableOutputTagMap.d.ts +9 -0
- package/mobile/out/src/storage/schema/tables/TableOutputTagMap.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableOutputTagMap.js +3 -0
- package/mobile/out/src/storage/schema/tables/TableOutputTagMap.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableProvenTx.d.ts +14 -0
- package/mobile/out/src/storage/schema/tables/TableProvenTx.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableProvenTx.js +3 -0
- package/mobile/out/src/storage/schema/tables/TableProvenTx.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableProvenTxReq.d.ts +64 -0
- package/mobile/out/src/storage/schema/tables/TableProvenTxReq.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableProvenTxReq.js +3 -0
- package/mobile/out/src/storage/schema/tables/TableProvenTxReq.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableSettings.d.ts +17 -0
- package/mobile/out/src/storage/schema/tables/TableSettings.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableSettings.js +3 -0
- package/mobile/out/src/storage/schema/tables/TableSettings.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableSyncState.d.ts +18 -0
- package/mobile/out/src/storage/schema/tables/TableSyncState.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableSyncState.js +3 -0
- package/mobile/out/src/storage/schema/tables/TableSyncState.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableTransaction.d.ts +37 -0
- package/mobile/out/src/storage/schema/tables/TableTransaction.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableTransaction.js +21 -0
- package/mobile/out/src/storage/schema/tables/TableTransaction.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableTxLabel.d.ts +10 -0
- package/mobile/out/src/storage/schema/tables/TableTxLabel.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableTxLabel.js +3 -0
- package/mobile/out/src/storage/schema/tables/TableTxLabel.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableTxLabelMap.d.ts +9 -0
- package/mobile/out/src/storage/schema/tables/TableTxLabelMap.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableTxLabelMap.js +3 -0
- package/mobile/out/src/storage/schema/tables/TableTxLabelMap.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableUser.d.ts +16 -0
- package/mobile/out/src/storage/schema/tables/TableUser.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/TableUser.js +3 -0
- package/mobile/out/src/storage/schema/tables/TableUser.js.map +1 -0
- package/mobile/out/src/storage/schema/tables/index.d.ts +17 -0
- package/mobile/out/src/storage/schema/tables/index.d.ts.map +1 -0
- package/mobile/out/src/storage/schema/tables/index.js +33 -0
- package/mobile/out/src/storage/schema/tables/index.js.map +1 -0
- package/mobile/out/src/utility/ScriptTemplateBRC29.d.ts +25 -0
- package/mobile/out/src/utility/ScriptTemplateBRC29.d.ts.map +1 -0
- package/mobile/out/src/utility/ScriptTemplateBRC29.js +48 -0
- package/mobile/out/src/utility/ScriptTemplateBRC29.js.map +1 -0
- package/mobile/out/src/utility/identityUtils.d.ts +31 -0
- package/mobile/out/src/utility/identityUtils.d.ts.map +1 -0
- package/mobile/out/src/utility/identityUtils.js +116 -0
- package/mobile/out/src/utility/identityUtils.js.map +1 -0
- package/mobile/out/src/utility/index.client.d.ts +7 -0
- package/mobile/out/src/utility/index.client.d.ts.map +1 -0
- package/mobile/out/src/utility/index.client.js +23 -0
- package/mobile/out/src/utility/index.client.js.map +1 -0
- package/mobile/out/src/utility/parseTxScriptOffsets.d.ts +14 -0
- package/mobile/out/src/utility/parseTxScriptOffsets.d.ts.map +1 -0
- package/mobile/out/src/utility/parseTxScriptOffsets.js +26 -0
- package/mobile/out/src/utility/parseTxScriptOffsets.js.map +1 -0
- package/mobile/out/src/utility/stampLog.d.ts +18 -0
- package/mobile/out/src/utility/stampLog.d.ts.map +1 -0
- package/mobile/out/src/utility/stampLog.js +72 -0
- package/mobile/out/src/utility/stampLog.js.map +1 -0
- package/mobile/out/src/utility/tscProofToMerklePath.d.ts +8 -0
- package/mobile/out/src/utility/tscProofToMerklePath.d.ts.map +1 -0
- package/mobile/out/src/utility/tscProofToMerklePath.js +41 -0
- package/mobile/out/src/utility/tscProofToMerklePath.js.map +1 -0
- package/mobile/out/src/utility/utilityHelpers.d.ts +129 -0
- package/mobile/out/src/utility/utilityHelpers.d.ts.map +1 -0
- package/mobile/out/src/utility/utilityHelpers.js +266 -0
- package/mobile/out/src/utility/utilityHelpers.js.map +1 -0
- package/mobile/out/src/utility/utilityHelpers.noBuffer.d.ts +9 -0
- package/mobile/out/src/utility/utilityHelpers.noBuffer.d.ts.map +1 -0
- package/mobile/out/src/utility/utilityHelpers.noBuffer.js +23 -0
- package/mobile/out/src/utility/utilityHelpers.noBuffer.js.map +1 -0
- package/mobile/out/src/wab-client/WABClient.d.ts +49 -0
- package/mobile/out/src/wab-client/WABClient.d.ts.map +1 -0
- package/mobile/out/src/wab-client/WABClient.js +80 -0
- package/mobile/out/src/wab-client/WABClient.js.map +1 -0
- package/mobile/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.d.ts +34 -0
- package/mobile/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.d.ts.map +1 -0
- package/mobile/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.js +16 -0
- package/mobile/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.js.map +1 -0
- package/mobile/out/src/wab-client/auth-method-interactors/PersonaIDInteractor.d.ts +7 -0
- package/mobile/out/src/wab-client/auth-method-interactors/PersonaIDInteractor.d.ts.map +1 -0
- package/mobile/out/src/wab-client/auth-method-interactors/PersonaIDInteractor.js +36 -0
- package/mobile/out/src/wab-client/auth-method-interactors/PersonaIDInteractor.js.map +1 -0
- package/mobile/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.d.ts +28 -0
- package/mobile/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.d.ts.map +1 -0
- package/mobile/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.js +69 -0
- package/mobile/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.js.map +1 -0
- package/mobile/out/tsconfig.mobile.tsbuildinfo +1 -0
- package/mobile/package-lock.json +8 -16
- package/mobile/package.json +1 -1
- package/out/src/WalletPermissionsManager.d.ts.map +1 -1
- package/out/src/WalletPermissionsManager.js.map +1 -1
- package/out/src/index.mobile.d.ts +0 -2
- package/out/src/index.mobile.d.ts.map +1 -1
- package/out/src/index.mobile.js +0 -2
- package/out/src/index.mobile.js.map +1 -1
- package/out/src/storage/StorageIdb.d.ts +2 -1
- package/out/src/storage/StorageIdb.d.ts.map +1 -1
- package/out/src/storage/StorageIdb.js +63 -29
- package/out/src/storage/StorageIdb.js.map +1 -1
- package/out/src/storage/StorageKnex.d.ts +1 -1
- package/out/src/storage/StorageKnex.d.ts.map +1 -1
- package/out/src/storage/StorageKnex.js +10 -6
- package/out/src/storage/StorageKnex.js.map +1 -1
- package/out/src/storage/StorageProvider.d.ts +2 -1
- package/out/src/storage/StorageProvider.d.ts.map +1 -1
- package/out/src/storage/StorageProvider.js +75 -40
- package/out/src/storage/StorageProvider.js.map +1 -1
- package/out/src/storage/StorageReader.d.ts +2 -1
- package/out/src/storage/StorageReader.d.ts.map +1 -1
- package/out/src/storage/StorageReader.js +45 -11
- package/out/src/storage/StorageReader.js.map +1 -1
- package/out/src/storage/StorageReaderWriter.d.ts +2 -1
- package/out/src/storage/StorageReaderWriter.d.ts.map +1 -1
- package/out/src/storage/StorageReaderWriter.js +29 -29
- package/out/src/storage/StorageReaderWriter.js.map +1 -1
- package/out/src/storage/StorageSyncReader.d.ts +2 -1
- package/out/src/storage/StorageSyncReader.d.ts.map +1 -1
- package/out/src/storage/StorageSyncReader.js +36 -3
- package/out/src/storage/StorageSyncReader.js.map +1 -1
- package/out/src/storage/index.mobile.d.ts +1 -1
- package/out/src/storage/index.mobile.js +1 -1
- package/out/src/storage/remoting/StorageClient.d.ts.map +1 -1
- package/out/src/storage/remoting/StorageClient.js.map +1 -1
- package/out/src/storage/remoting/StorageMobile.d.ts +283 -0
- package/out/src/storage/remoting/StorageMobile.d.ts.map +1 -0
- package/out/src/storage/remoting/StorageMobile.js +477 -0
- package/out/src/storage/remoting/StorageMobile.js.map +1 -0
- package/out/tsconfig.all.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/WalletPermissionsManager.ts +19 -8
- package/src/index.mobile.ts +0 -2
- package/src/storage/StorageIdb.ts +4 -5
- package/src/storage/StorageKnex.ts +7 -6
- package/src/storage/StorageProvider.ts +5 -9
- package/src/storage/StorageReader.ts +4 -7
- package/src/storage/StorageReaderWriter.ts +4 -8
- package/src/storage/StorageSyncReader.ts +2 -19
- package/src/storage/index.mobile.ts +1 -1
- package/src/storage/remoting/StorageClient.ts +0 -1
- package/src/storage/remoting/StorageMobile.ts +527 -0
- package/tsconfig.all.json +2 -1
- package/tsconfig.client.json +6 -0
- package/tsconfig.json +3 -0
- package/tsconfig.mobile.json +28 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ListOutputsResult, OriginatorDomainNameStringUnder250Bytes } from '@bsv/sdk';
|
|
2
|
+
import { sdk } from '../../index.client';
|
|
3
|
+
import { StorageIdb } from '../StorageIdb';
|
|
4
|
+
export declare function listOutputsIdb(storage: StorageIdb, auth: sdk.AuthId, vargs: sdk.ValidListOutputsArgs, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<ListOutputsResult>;
|
|
5
|
+
//# sourceMappingURL=listOutputsIdb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listOutputsIdb.d.ts","sourceRoot":"","sources":["../../../../../src/storage/methods/listOutputsIdb.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,iBAAiB,EAAE,uCAAuC,EAAgB,MAAM,UAAU,CAAA;AAEzG,OAAO,EAAY,GAAG,EAAuB,MAAM,oBAAoB,CAAA;AAEvE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAG1C,wBAAsB,cAAc,CAClC,OAAO,EAAE,UAAU,EACnB,IAAI,EAAE,GAAG,CAAC,MAAM,EAChB,KAAK,EAAE,GAAG,CAAC,oBAAoB,EAC/B,UAAU,CAAC,EAAE,uCAAuC,GACnD,OAAO,CAAC,iBAAiB,CAAC,CA0L5B"}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.listOutputsIdb = listOutputsIdb;
|
|
4
|
+
const sdk_1 = require("@bsv/sdk");
|
|
5
|
+
const index_client_1 = require("../../index.client");
|
|
6
|
+
const ListOutputsSpecOp_1 = require("./ListOutputsSpecOp");
|
|
7
|
+
async function listOutputsIdb(storage, auth, vargs, originator) {
|
|
8
|
+
const userId = (0, index_client_1.verifyId)(auth.userId);
|
|
9
|
+
const limit = vargs.limit;
|
|
10
|
+
const offset = vargs.offset;
|
|
11
|
+
const r = {
|
|
12
|
+
totalOutputs: 0,
|
|
13
|
+
outputs: []
|
|
14
|
+
};
|
|
15
|
+
/*
|
|
16
|
+
ListOutputsArgs {
|
|
17
|
+
basket: BasketStringUnder300Bytes
|
|
18
|
+
|
|
19
|
+
tags?: OutputTagStringUnder300Bytes[]
|
|
20
|
+
tagQueryMode?: 'all' | 'any' // default any
|
|
21
|
+
|
|
22
|
+
limit?: PositiveIntegerDefault10Max10000
|
|
23
|
+
offset?: PositiveIntegerOrZero
|
|
24
|
+
}
|
|
25
|
+
*/
|
|
26
|
+
let specOp = undefined;
|
|
27
|
+
let basketId = undefined;
|
|
28
|
+
const basketsById = {};
|
|
29
|
+
if (vargs.basket) {
|
|
30
|
+
let b = vargs.basket;
|
|
31
|
+
specOp = (0, ListOutputsSpecOp_1.getBasketToSpecOp)()[b];
|
|
32
|
+
b = specOp ? (specOp.useBasket ? specOp.useBasket : '') : b;
|
|
33
|
+
if (b) {
|
|
34
|
+
const baskets = await storage.findOutputBaskets({
|
|
35
|
+
partial: { userId, name: b }
|
|
36
|
+
});
|
|
37
|
+
if (baskets.length !== 1) {
|
|
38
|
+
// If basket does not exist, result is no outputs.
|
|
39
|
+
return r;
|
|
40
|
+
}
|
|
41
|
+
const basket = baskets[0];
|
|
42
|
+
basketId = basket.basketId;
|
|
43
|
+
basketsById[basketId] = basket;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
let tags = [...vargs.tags];
|
|
47
|
+
const specOpTags = [];
|
|
48
|
+
if (specOp && specOp.tagsParamsCount) {
|
|
49
|
+
specOpTags.push(...tags.splice(0, Math.min(tags.length, specOp.tagsParamsCount)));
|
|
50
|
+
}
|
|
51
|
+
if (specOp && specOp.tagsToIntercept) {
|
|
52
|
+
// Pull out tags used by current specOp
|
|
53
|
+
const ts = tags;
|
|
54
|
+
tags = [];
|
|
55
|
+
for (const t of ts) {
|
|
56
|
+
if (specOp.tagsToIntercept.length === 0 || specOp.tagsToIntercept.indexOf(t) >= 0) {
|
|
57
|
+
specOpTags.push(t);
|
|
58
|
+
if (t === 'all') {
|
|
59
|
+
basketId = undefined;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
tags.push(t);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
if (specOp && specOp.resultFromTags) {
|
|
68
|
+
const r = await specOp.resultFromTags(storage, auth, vargs, specOpTags);
|
|
69
|
+
return r;
|
|
70
|
+
}
|
|
71
|
+
let tagIds = [];
|
|
72
|
+
if (tags && tags.length > 0) {
|
|
73
|
+
await storage.filterOutputTags({ partial: { userId, isDeleted: false } }, ot => {
|
|
74
|
+
if (tags.includes(ot.tag)) {
|
|
75
|
+
tagIds.push(ot.outputTagId);
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
const isQueryModeAll = vargs.tagQueryMode === 'all';
|
|
80
|
+
if (isQueryModeAll && tagIds.length < tags.length)
|
|
81
|
+
// all the required tags don't exist, impossible to satisfy.
|
|
82
|
+
return r;
|
|
83
|
+
if (!isQueryModeAll && tagIds.length === 0 && tags.length > 0)
|
|
84
|
+
// any and only non-existing labels, impossible to satisfy.
|
|
85
|
+
return r;
|
|
86
|
+
const noTags = tagIds.length === 0;
|
|
87
|
+
const includeSpent = false;
|
|
88
|
+
const stati = ['completed', 'unproven', 'nosend'];
|
|
89
|
+
const args = {
|
|
90
|
+
partial: {
|
|
91
|
+
userId,
|
|
92
|
+
basketId,
|
|
93
|
+
spendable: !includeSpent ? true : undefined
|
|
94
|
+
},
|
|
95
|
+
txStatus: stati,
|
|
96
|
+
noScript: true
|
|
97
|
+
};
|
|
98
|
+
if (!specOp || !specOp.ignoreLimit)
|
|
99
|
+
args.paged = { limit, offset };
|
|
100
|
+
let outputs = await storage.findOutputs(args, tagIds, isQueryModeAll);
|
|
101
|
+
if (outputs.length === vargs.limit) {
|
|
102
|
+
args.paged = undefined;
|
|
103
|
+
r.totalOutputs = await storage.countOutputs(args, tagIds, isQueryModeAll);
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
r.totalOutputs = outputs.length;
|
|
107
|
+
}
|
|
108
|
+
if (specOp) {
|
|
109
|
+
if (specOp.filterOutputs)
|
|
110
|
+
outputs = await specOp.filterOutputs(storage, auth, vargs, specOpTags, outputs);
|
|
111
|
+
if (specOp.resultFromOutputs) {
|
|
112
|
+
const r = await specOp.resultFromOutputs(storage, auth, vargs, specOpTags, outputs);
|
|
113
|
+
return r;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
/*
|
|
117
|
+
ListOutputsArgs {
|
|
118
|
+
include?: 'locking scripts' | 'entire transactions'
|
|
119
|
+
includeCustomInstructions?: BooleanDefaultFalse
|
|
120
|
+
includeTags?: BooleanDefaultFalse
|
|
121
|
+
includeLabels?: BooleanDefaultFalse
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
ListOutputsResult {
|
|
125
|
+
totalOutputs: PositiveIntegerOrZero
|
|
126
|
+
BEEF?: BEEF
|
|
127
|
+
outputs: Array<WalletOutput>
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
WalletOutput {
|
|
131
|
+
satoshis: SatoshiValue
|
|
132
|
+
spendable: boolean
|
|
133
|
+
outpoint: OutpointString
|
|
134
|
+
|
|
135
|
+
customInstructions?: string
|
|
136
|
+
lockingScript?: HexString
|
|
137
|
+
tags?: OutputTagStringUnder300Bytes[]
|
|
138
|
+
labels?: LabelStringUnder300Bytes[]
|
|
139
|
+
}
|
|
140
|
+
*/
|
|
141
|
+
const labelsByTxid = {};
|
|
142
|
+
const beef = new sdk_1.Beef();
|
|
143
|
+
for (const o of outputs) {
|
|
144
|
+
const wo = {
|
|
145
|
+
satoshis: Number(o.satoshis),
|
|
146
|
+
spendable: !!o.spendable,
|
|
147
|
+
outpoint: `${o.txid}.${o.vout}`
|
|
148
|
+
};
|
|
149
|
+
r.outputs.push(wo);
|
|
150
|
+
//if (vargs.includeBasket && o.basketId) {
|
|
151
|
+
// if (!basketsById[o.basketId]) {
|
|
152
|
+
// basketsById[o.basketId] = verifyTruthy(await dsk.findOutputBasketId(o.basketId!, trx))
|
|
153
|
+
// }
|
|
154
|
+
// wo.basket = basketsById[o.basketId].name
|
|
155
|
+
//}
|
|
156
|
+
if (vargs.includeCustomInstructions && o.customInstructions)
|
|
157
|
+
wo.customInstructions = o.customInstructions;
|
|
158
|
+
if (vargs.includeLabels && o.txid) {
|
|
159
|
+
if (labelsByTxid[o.txid] === undefined) {
|
|
160
|
+
labelsByTxid[o.txid] = (await storage.getLabelsForTransactionId(o.transactionId)).map(l => l.label);
|
|
161
|
+
}
|
|
162
|
+
wo.labels = labelsByTxid[o.txid];
|
|
163
|
+
}
|
|
164
|
+
if (vargs.includeTags) {
|
|
165
|
+
wo.tags = (await storage.getTagsForOutputId(o.outputId)).map(t => t.tag);
|
|
166
|
+
}
|
|
167
|
+
if (vargs.includeLockingScripts) {
|
|
168
|
+
await storage.validateOutputScript(o);
|
|
169
|
+
if (o.lockingScript)
|
|
170
|
+
wo.lockingScript = (0, index_client_1.asString)(o.lockingScript);
|
|
171
|
+
}
|
|
172
|
+
if (vargs.includeTransactions && !beef.findTxid(o.txid)) {
|
|
173
|
+
await storage.getValidBeefForKnownTxid(o.txid, beef, undefined, vargs.knownTxids);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
if (vargs.includeTransactions) {
|
|
177
|
+
r.BEEF = beef.toBinary();
|
|
178
|
+
}
|
|
179
|
+
return r;
|
|
180
|
+
}
|
|
181
|
+
//# sourceMappingURL=listOutputsIdb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listOutputsIdb.js","sourceRoot":"","sources":["../../../../../src/storage/methods/listOutputsIdb.ts"],"names":[],"mappings":";;AAOA,wCA+LC;AAtMD,kCAAyG;AAEzG,qDAAuE;AACvE,2DAA0E;AAInE,KAAK,UAAU,cAAc,CAClC,OAAmB,EACnB,IAAgB,EAChB,KAA+B,EAC/B,UAAoD;IAEpD,MAAM,MAAM,GAAG,IAAA,uBAAQ,EAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IACpC,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAA;IACzB,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAA;IAE3B,MAAM,CAAC,GAAsB;QAC3B,YAAY,EAAE,CAAC;QACf,OAAO,EAAE,EAAE;KACZ,CAAA;IAED;;;;;;;;;;QAUI;IAEJ,IAAI,MAAM,GAAkC,SAAS,CAAA;IACrD,IAAI,QAAQ,GAAuB,SAAS,CAAA;IAC5C,MAAM,WAAW,GAAsC,EAAE,CAAA;IACzD,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;QACjB,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,CAAA;QACpB,MAAM,GAAG,IAAA,qCAAiB,GAAE,CAAC,CAAC,CAAC,CAAA;QAC/B,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,M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A;QAC1E,CAAC;QACD,IAAI,KAAK,CAAC,qBAAqB,EAAE,CAAC;YAChC,MAAM,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAA;YACrC,IAAI,CAAC,CAAC,aAAa;gBAAE,EAAE,CAAC,aAAa,GAAG,IAAA,uBAAQ,EAAC,CAAC,CAAC,aAAa,CAAC,CAAA;QACnE,CAAC;QACD,IAAI,KAAK,CAAC,mBAAmB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAK,CAAC,EAAE,CAAC;YACzD,MAAM,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,IAAK,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,UAAU,CAAC,CAAA;QACpF,CAAC;IACH,CAAC;IAED,IAAI,KAAK,CAAC,mBAAmB,EAAE,CAAC;QAC9B,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAA;IAC1B,CAAC;IAED,OAAO,CAAC,CAAA;AACV,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Beef } from '@bsv/sdk';
|
|
2
|
+
import { EntityProvenTxReq, sdk, StorageProvider, TableProvenTx, TableProvenTxReq } from '../../index.client';
|
|
3
|
+
export declare function processAction(storage: StorageProvider, auth: sdk.AuthId, args: sdk.StorageProcessActionArgs): Promise<sdk.StorageProcessActionResults>;
|
|
4
|
+
export interface GetReqsAndBeefDetail {
|
|
5
|
+
txid: string;
|
|
6
|
+
req?: TableProvenTxReq;
|
|
7
|
+
proven?: TableProvenTx;
|
|
8
|
+
status: 'readyToSend' | 'alreadySent' | 'error' | 'unknown';
|
|
9
|
+
error?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface GetReqsAndBeefResult {
|
|
12
|
+
beef: Beef;
|
|
13
|
+
details: GetReqsAndBeefDetail[];
|
|
14
|
+
}
|
|
15
|
+
export interface PostBeefResultForTxidApi {
|
|
16
|
+
txid: string;
|
|
17
|
+
/**
|
|
18
|
+
* 'success' - The transaction was accepted for processing
|
|
19
|
+
*/
|
|
20
|
+
status: 'success' | 'error';
|
|
21
|
+
/**
|
|
22
|
+
* if true, the transaction was already known to this service. Usually treat as a success.
|
|
23
|
+
*
|
|
24
|
+
* Potentially stop posting to additional transaction processors.
|
|
25
|
+
*/
|
|
26
|
+
alreadyKnown?: boolean;
|
|
27
|
+
blockHash?: string;
|
|
28
|
+
blockHeight?: number;
|
|
29
|
+
merklePath?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface CommitNewTxResults {
|
|
32
|
+
req: EntityProvenTxReq;
|
|
33
|
+
log?: string;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=processAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processAction.d.ts","sourceRoot":"","sources":["../../../../../src/storage/methods/processAction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAuE,MAAM,UAAU,CAAA;AACpG,OAAO,EAGL,iBAAiB,EAGjB,GAAG,EAIH,eAAe,EAGf,aAAa,EACb,gBAAgB,EAUjB,MAAM,oBAAoB,CAAA;AAI3B,wBAAsB,aAAa,CACjC,OAAO,EAAE,eAAe,EACxB,IAAI,EAAE,GAAG,CAAC,MAAM,EAChB,IAAI,EAAE,GAAG,CAAC,wBAAwB,GACjC,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,CA+B1C;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,gBAAgB,CAAA;IACtB,MAAM,CAAC,EAAE,aAAa,CAAA;IACtB,MAAM,EAAE,aAAa,GAAG,aAAa,GAAG,OAAO,GAAG,SAAS,CAAA;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,IAAI,CAAA;IACV,OAAO,EAAE,oBAAoB,EAAE,CAAA;CAChC;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,MAAM,EAAE,SAAS,GAAG,OAAO,CAAA;IAE3B;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IAEtB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAmTD,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,iBAAiB,CAAA;IACtB,GAAG,CAAC,EAAE,MAAM,CAAA;CACb"}
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.processAction = processAction;
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5
|
+
const sdk_1 = require("@bsv/sdk");
|
|
6
|
+
const index_client_1 = require("../../index.client");
|
|
7
|
+
async function processAction(storage, auth, args) {
|
|
8
|
+
(0, index_client_1.stampLog)(args.log, `start storage processActionSdk`);
|
|
9
|
+
const userId = (0, index_client_1.verifyId)(auth.userId);
|
|
10
|
+
const r = {
|
|
11
|
+
sendWithResults: undefined
|
|
12
|
+
};
|
|
13
|
+
let req;
|
|
14
|
+
const txidsOfReqsToShareWithWorld = [...args.sendWith];
|
|
15
|
+
if (args.isNewTx) {
|
|
16
|
+
const vargs = await validateCommitNewTxToStorageArgs(storage, userId, args);
|
|
17
|
+
({ req, log: args.log } = await commitNewTxToStorage(storage, userId, vargs));
|
|
18
|
+
if (!req)
|
|
19
|
+
throw new index_client_1.sdk.WERR_INTERNAL();
|
|
20
|
+
// Add the new txid to sendWith unless there are no others to send and the noSend option is set.
|
|
21
|
+
if (args.isNoSend && !args.isSendWith)
|
|
22
|
+
(0, index_client_1.stampLog)(args.log, `... storage processActionSdk newTx committed noSend`);
|
|
23
|
+
else {
|
|
24
|
+
txidsOfReqsToShareWithWorld.push(req.txid);
|
|
25
|
+
(0, index_client_1.stampLog)(args.log, `... storage processActionSdk newTx committed sendWith ${req.txid}`);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
const { swr, ndr } = await shareReqsWithWorld(storage, userId, txidsOfReqsToShareWithWorld, args.isDelayed);
|
|
29
|
+
r.sendWithResults = swr;
|
|
30
|
+
r.notDelayedResults = ndr;
|
|
31
|
+
(0, index_client_1.stampLog)(args.log, `end storage processActionSdk`);
|
|
32
|
+
return r;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Verifies that all the txids are known reqs with ready-to-share status.
|
|
36
|
+
* Assigns a batch identifier and updates all the provenTxReqs.
|
|
37
|
+
* If not isDelayed, triggers an initial attempt to broadcast the batch and returns the results.
|
|
38
|
+
*
|
|
39
|
+
* @param storage
|
|
40
|
+
* @param userId
|
|
41
|
+
* @param txids
|
|
42
|
+
* @param isDelayed
|
|
43
|
+
*/
|
|
44
|
+
async function shareReqsWithWorld(storage, userId, txids, isDelayed) {
|
|
45
|
+
let swr = [];
|
|
46
|
+
let ndr = undefined;
|
|
47
|
+
if (txids.length < 1)
|
|
48
|
+
return { swr, ndr };
|
|
49
|
+
// Collect what we know about these sendWith transaction txids from storage.
|
|
50
|
+
const r = await storage.getReqsAndBeefToShareWithWorld(txids, []);
|
|
51
|
+
// Initialize aggregate results for each txid
|
|
52
|
+
const ars = [];
|
|
53
|
+
const readyToSendReqs = [];
|
|
54
|
+
for (const getReq of r.details) {
|
|
55
|
+
let status = 'failed';
|
|
56
|
+
if (getReq.status === 'alreadySent')
|
|
57
|
+
status = 'unproven';
|
|
58
|
+
else if (getReq.status === 'readyToSend') {
|
|
59
|
+
status = 'sending';
|
|
60
|
+
readyToSendReqs.push(new index_client_1.EntityProvenTxReq(getReq.req));
|
|
61
|
+
}
|
|
62
|
+
ars.push({
|
|
63
|
+
txid: getReq.txid,
|
|
64
|
+
getReq,
|
|
65
|
+
status
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
// Filter original txids down to reqIds that are available and need sending
|
|
69
|
+
const readyToSendReqIds = readyToSendReqs.map(r => r.id);
|
|
70
|
+
const transactionIds = readyToSendReqs.map(r => r.notify.transactionIds || []).flat();
|
|
71
|
+
// If there are reqs to send, verify that we have a valid aggregate beef for them.
|
|
72
|
+
// If isDelayed, this (or a different beef) will have to be rebuilt at the time of sending.
|
|
73
|
+
if (readyToSendReqs.length > 0) {
|
|
74
|
+
const beefIsValid = await r.beef.verify(await storage.getServices().getChainTracker());
|
|
75
|
+
if (!beefIsValid)
|
|
76
|
+
throw new index_client_1.sdk.WERR_INTERNAL(`merged Beef failed validation.`);
|
|
77
|
+
}
|
|
78
|
+
// Set req batch property for the reqs being sent
|
|
79
|
+
// If delayed, also bump status to 'unsent' and we're done here
|
|
80
|
+
const batch = txids.length > 1 ? (0, index_client_1.randomBytesBase64)(16) : undefined;
|
|
81
|
+
if (isDelayed) {
|
|
82
|
+
// Just bump the req status to 'unsent' to enable background sending...
|
|
83
|
+
if (readyToSendReqIds.length > 0) {
|
|
84
|
+
await storage.transaction(async (trx) => {
|
|
85
|
+
await storage.updateProvenTxReq(readyToSendReqIds, { status: 'unsent', batch }, trx);
|
|
86
|
+
await storage.updateTransaction(transactionIds, { status: 'sending' }, trx);
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
return createResults();
|
|
90
|
+
}
|
|
91
|
+
if (readyToSendReqIds.length < 1) {
|
|
92
|
+
return createResults();
|
|
93
|
+
}
|
|
94
|
+
if (batch) {
|
|
95
|
+
// Keep batch values in sync...
|
|
96
|
+
for (const req of readyToSendReqs)
|
|
97
|
+
req.batch = batch;
|
|
98
|
+
await storage.updateProvenTxReq(readyToSendReqIds, { batch });
|
|
99
|
+
}
|
|
100
|
+
//
|
|
101
|
+
// Handle the NON-DELAYED-SEND-NOW case
|
|
102
|
+
//
|
|
103
|
+
const prtn = await storage.attemptToPostReqsToNetwork(readyToSendReqs);
|
|
104
|
+
// merge the individual PostBeefResultForTxid results to postBeef in aggregate results.
|
|
105
|
+
for (const ar of ars) {
|
|
106
|
+
const txid = ar.txid;
|
|
107
|
+
const d = prtn.details.find(d => d.txid === txid);
|
|
108
|
+
if (!d)
|
|
109
|
+
throw new index_client_1.sdk.WERR_INTERNAL(`missing details for ${txid}`);
|
|
110
|
+
ar.ndr = { txid: d.txid, status: 'success', competingTxs: d.competingTxs };
|
|
111
|
+
switch (d.status) {
|
|
112
|
+
case 'success':
|
|
113
|
+
// processing network has accepted this transaction
|
|
114
|
+
ar.status = 'unproven';
|
|
115
|
+
break;
|
|
116
|
+
case 'doubleSpend':
|
|
117
|
+
// confirmed double spend.
|
|
118
|
+
ar.status = 'failed';
|
|
119
|
+
ar.ndr.status = 'doubleSpend';
|
|
120
|
+
if (d.competingTxs)
|
|
121
|
+
ar.ndr.competingBeef = await createMergedBeefOfTxids(d.competingTxs, storage);
|
|
122
|
+
break;
|
|
123
|
+
case 'serviceError':
|
|
124
|
+
// services might improve
|
|
125
|
+
ar.status = 'sending';
|
|
126
|
+
ar.ndr.status = 'serviceError';
|
|
127
|
+
break;
|
|
128
|
+
case 'invalidTx':
|
|
129
|
+
// nothing will fix this transaction
|
|
130
|
+
ar.status = 'failed';
|
|
131
|
+
ar.ndr.status = 'invalidTx';
|
|
132
|
+
break;
|
|
133
|
+
case 'unknown':
|
|
134
|
+
case 'invalid':
|
|
135
|
+
default:
|
|
136
|
+
throw new index_client_1.sdk.WERR_INTERNAL(`processAction with notDelayed status ${d.status} should not occur.`);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
return createResults();
|
|
140
|
+
function createResults() {
|
|
141
|
+
swr = [];
|
|
142
|
+
ndr = isDelayed ? undefined : [];
|
|
143
|
+
for (const ar of ars) {
|
|
144
|
+
swr.push({ txid: ar.txid, status: ar.status });
|
|
145
|
+
if (ar.ndr && ndr) {
|
|
146
|
+
ndr.push(ar.ndr);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
return { swr, ndr };
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
async function validateCommitNewTxToStorageArgs(storage, userId, params) {
|
|
153
|
+
if (!params.reference || !params.txid || !params.rawTx)
|
|
154
|
+
throw new index_client_1.sdk.WERR_INVALID_OPERATION('One or more expected params are undefined.');
|
|
155
|
+
let tx;
|
|
156
|
+
try {
|
|
157
|
+
tx = sdk_1.Transaction.fromBinary(params.rawTx);
|
|
158
|
+
}
|
|
159
|
+
catch (e) {
|
|
160
|
+
throw new index_client_1.sdk.WERR_INVALID_OPERATION('Parsing serialized transaction failed.');
|
|
161
|
+
}
|
|
162
|
+
if (params.txid !== tx.id('hex'))
|
|
163
|
+
throw new index_client_1.sdk.WERR_INVALID_OPERATION(`Hash of serialized transaction doesn't match expected txid`);
|
|
164
|
+
if (!(await storage.getServices()).nLockTimeIsFinal(tx)) {
|
|
165
|
+
throw new index_client_1.sdk.WERR_INVALID_OPERATION(`This transaction is not final.
|
|
166
|
+
Ensure that the transaction meets the rules for being a finalized
|
|
167
|
+
which can be found at https://wiki.bitcoinsv.io/index.php/NLocktime_and_nSequence`);
|
|
168
|
+
}
|
|
169
|
+
const txScriptOffsets = (0, index_client_1.parseTxScriptOffsets)(params.rawTx);
|
|
170
|
+
const transaction = (0, index_client_1.verifyOne)(await storage.findTransactions({
|
|
171
|
+
partial: { userId, reference: params.reference }
|
|
172
|
+
}));
|
|
173
|
+
if (!transaction.isOutgoing)
|
|
174
|
+
throw new index_client_1.sdk.WERR_INVALID_OPERATION('isOutgoing is not true');
|
|
175
|
+
if (!transaction.inputBEEF)
|
|
176
|
+
throw new index_client_1.sdk.WERR_INVALID_OPERATION();
|
|
177
|
+
const beef = sdk_1.Beef.fromBinary((0, index_client_1.asArray)(transaction.inputBEEF));
|
|
178
|
+
// TODO: Could check beef validates transaction inputs...
|
|
179
|
+
// Transaction must have unsigned or unprocessed status
|
|
180
|
+
if (transaction.status !== 'unsigned' && transaction.status !== 'unprocessed')
|
|
181
|
+
throw new index_client_1.sdk.WERR_INVALID_OPERATION(`invalid transaction status ${transaction.status}`);
|
|
182
|
+
const transactionId = (0, index_client_1.verifyId)(transaction.transactionId);
|
|
183
|
+
const outputOutputs = await storage.findOutputs({
|
|
184
|
+
partial: { userId, transactionId }
|
|
185
|
+
});
|
|
186
|
+
const inputOutputs = await storage.findOutputs({
|
|
187
|
+
partial: { userId, spentBy: transactionId }
|
|
188
|
+
});
|
|
189
|
+
const commission = (0, index_client_1.verifyOneOrNone)(await storage.findCommissions({ partial: { transactionId, userId } }));
|
|
190
|
+
if (storage.commissionSatoshis > 0) {
|
|
191
|
+
// A commission is required...
|
|
192
|
+
if (!commission)
|
|
193
|
+
throw new index_client_1.sdk.WERR_INTERNAL();
|
|
194
|
+
const commissionValid = tx.outputs.some(x => x.satoshis === commission.satoshis && x.lockingScript.toHex() === (0, index_client_1.asString)(commission.lockingScript));
|
|
195
|
+
if (!commissionValid)
|
|
196
|
+
throw new index_client_1.sdk.WERR_INVALID_OPERATION('Transaction did not include an output to cover service fee.');
|
|
197
|
+
}
|
|
198
|
+
const req = index_client_1.EntityProvenTxReq.fromTxid(params.txid, params.rawTx, transaction.inputBEEF);
|
|
199
|
+
req.addNotifyTransactionId(transactionId);
|
|
200
|
+
// "Processing" a transaction is the final step of creating a new one.
|
|
201
|
+
// If it is to be sent to the network directly (prior to return from processAction),
|
|
202
|
+
// then there is status pre-send and post-send.
|
|
203
|
+
// Otherwise there is no post-send status.
|
|
204
|
+
// Note that isSendWith trumps isNoSend, e.g. isNoSend && !isSendWith
|
|
205
|
+
//
|
|
206
|
+
// Determine what status the req and transaction should have pre- at the end of processing.
|
|
207
|
+
// Pre-Status (to newReq/newTx) Post-Status (to all sent reqs/txs)
|
|
208
|
+
// req tx req tx
|
|
209
|
+
// isNoSend noSend noSend
|
|
210
|
+
// !isNoSend && isDelayed unsent unprocessed
|
|
211
|
+
// !isNoSend && !isDelayed unprocessed unprocessed sending/unmined sending/unproven This is the only case that sends immediately.
|
|
212
|
+
let postStatus = undefined;
|
|
213
|
+
let status;
|
|
214
|
+
if (params.isNoSend && !params.isSendWith)
|
|
215
|
+
status = { req: 'nosend', tx: 'nosend' };
|
|
216
|
+
else if (!params.isNoSend && params.isDelayed)
|
|
217
|
+
status = { req: 'unsent', tx: 'unprocessed' };
|
|
218
|
+
else if (!params.isNoSend && !params.isDelayed) {
|
|
219
|
+
status = { req: 'unprocessed', tx: 'unprocessed' };
|
|
220
|
+
postStatus = { req: 'unmined', tx: 'unproven' };
|
|
221
|
+
}
|
|
222
|
+
else
|
|
223
|
+
throw new index_client_1.sdk.WERR_INTERNAL('logic error');
|
|
224
|
+
req.status = status.req;
|
|
225
|
+
const vargs = {
|
|
226
|
+
reference: params.reference,
|
|
227
|
+
txid: params.txid,
|
|
228
|
+
rawTx: params.rawTx,
|
|
229
|
+
isSendWith: !!params.sendWith && params.sendWith.length > 0,
|
|
230
|
+
isDelayed: params.isDelayed,
|
|
231
|
+
isNoSend: params.isNoSend,
|
|
232
|
+
// Properties with values added during validation.
|
|
233
|
+
tx,
|
|
234
|
+
txScriptOffsets,
|
|
235
|
+
transactionId,
|
|
236
|
+
transaction,
|
|
237
|
+
inputOutputs,
|
|
238
|
+
outputOutputs,
|
|
239
|
+
commission,
|
|
240
|
+
beef,
|
|
241
|
+
req,
|
|
242
|
+
outputUpdates: [],
|
|
243
|
+
// update txid, status in transactions table and drop rawTransaction value
|
|
244
|
+
transactionUpdate: {
|
|
245
|
+
txid: params.txid,
|
|
246
|
+
rawTx: undefined,
|
|
247
|
+
inputBEEF: undefined,
|
|
248
|
+
status: status.tx
|
|
249
|
+
},
|
|
250
|
+
postStatus
|
|
251
|
+
};
|
|
252
|
+
// update outputs with txid, script offsets and lengths, drop long output scripts from outputs table
|
|
253
|
+
// outputs spendable will be updated for change to true and all others to !!o.tracked when tx has been broadcast
|
|
254
|
+
// MAX_OUTPUTSCRIPT_LENGTH is limit for scripts left in outputs table
|
|
255
|
+
for (const o of vargs.outputOutputs) {
|
|
256
|
+
const vout = (0, index_client_1.verifyInteger)(o.vout);
|
|
257
|
+
const offset = vargs.txScriptOffsets.outputs[vout];
|
|
258
|
+
const rawTxScript = (0, index_client_1.asString)(vargs.rawTx.slice(offset.offset, offset.offset + offset.length));
|
|
259
|
+
if (o.lockingScript && rawTxScript !== (0, index_client_1.asString)(o.lockingScript))
|
|
260
|
+
throw new index_client_1.sdk.WERR_INVALID_OPERATION(`rawTx output locking script for vout ${vout} not equal to expected output script.`);
|
|
261
|
+
if (tx.outputs[vout].lockingScript.toHex() !== rawTxScript)
|
|
262
|
+
throw new index_client_1.sdk.WERR_INVALID_OPERATION(`parsed transaction output locking script for vout ${vout} not equal to expected output script.`);
|
|
263
|
+
const update = {
|
|
264
|
+
txid: vargs.txid,
|
|
265
|
+
spendable: o.basketId !== undefined, // spendability is gated by transaction status. Remains true until the output is spent.
|
|
266
|
+
scriptLength: offset.length,
|
|
267
|
+
scriptOffset: offset.offset
|
|
268
|
+
};
|
|
269
|
+
if (offset.length > (await storage.getSettings()).maxOutputScript)
|
|
270
|
+
// Remove long lockingScript data from outputs table, will be read from rawTx in proven_tx or proven_tx_reqs tables.
|
|
271
|
+
update.lockingScript = undefined;
|
|
272
|
+
vargs.outputUpdates.push({ id: o.outputId, update });
|
|
273
|
+
}
|
|
274
|
+
return vargs;
|
|
275
|
+
}
|
|
276
|
+
async function commitNewTxToStorage(storage, userId, vargs) {
|
|
277
|
+
let log = vargs.log;
|
|
278
|
+
log = (0, index_client_1.stampLog)(log, `start storage commitNewTxToStorage`);
|
|
279
|
+
let req;
|
|
280
|
+
await storage.transaction(async (trx) => {
|
|
281
|
+
log = (0, index_client_1.stampLog)(log, `... storage commitNewTxToStorage storage transaction start`);
|
|
282
|
+
// Create initial 'nosend' proven_tx_req record to store signed, valid rawTx and input beef
|
|
283
|
+
req = await vargs.req.insertOrMerge(storage, trx);
|
|
284
|
+
log = (0, index_client_1.stampLog)(log, `... storage commitNewTxToStorage req inserted`);
|
|
285
|
+
for (const ou of vargs.outputUpdates) {
|
|
286
|
+
await storage.updateOutput(ou.id, ou.update, trx);
|
|
287
|
+
}
|
|
288
|
+
log = (0, index_client_1.stampLog)(log, `... storage commitNewTxToStorage outputs updated`);
|
|
289
|
+
await storage.updateTransaction(vargs.transactionId, vargs.transactionUpdate, trx);
|
|
290
|
+
log = (0, index_client_1.stampLog)(log, `... storage commitNewTxToStorage storage transaction end`);
|
|
291
|
+
});
|
|
292
|
+
log = (0, index_client_1.stampLog)(log, `... storage commitNewTxToStorage storage transaction await done`);
|
|
293
|
+
const r = {
|
|
294
|
+
req: (0, index_client_1.verifyTruthy)(req),
|
|
295
|
+
log
|
|
296
|
+
};
|
|
297
|
+
log = (0, index_client_1.stampLog)(log, `end storage commitNewTxToStorage`);
|
|
298
|
+
return r;
|
|
299
|
+
}
|
|
300
|
+
async function createMergedBeefOfTxids(txids, storage) {
|
|
301
|
+
const beef = new sdk_1.Beef();
|
|
302
|
+
const options = {
|
|
303
|
+
mergeToBeef: beef,
|
|
304
|
+
ignoreNewProven: true
|
|
305
|
+
};
|
|
306
|
+
for (const txid of txids) {
|
|
307
|
+
await storage.getBeefForTransaction(txid, options);
|
|
308
|
+
}
|
|
309
|
+
return beef.toBinary();
|
|
310
|
+
}
|
|
311
|
+
//# sourceMappingURL=processAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processAction.js","sourceRoot":"","sources":["../../../../../src/storage/methods/processAction.ts"],"names":[],"mappings":";;AA8BA,sCAmCC;AAjED,6DAA6D;AAC7D,kCAAoG;AACpG,qDAwB2B;AAIpB,KAAK,UAAU,aAAa,CACjC,OAAwB,EACxB,IAAgB,EAChB,IAAkC;IAElC,IAAA,uBAAQ,EAAC,IAAI,CAAC,GAAG,EAAE,gCAAgC,CAAC,CAAA;IAEpD,MAAM,MAAM,GAAG,IAAA,uBAAQ,EAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IACpC,MAAM,CAAC,GAAoC;QACzC,eAAe,EAAE,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AAU,uBAAuB,CAAC,KAAe,EAAE,OAAwB;IAC9E,MAAM,IAAI,GAAG,IAAI,UAAI,EAAE,CAAA;IACvB,MAAM,OAAO,GAA0B;QACrC,WAAW,EAAE,IAAI;QACjB,eAAe,EAAE,IAAI;KACtB,CAAA;IACD,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,OAAO,CAAC,qBAAqB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IACpD,CAAC;IACD,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAA;AACxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"purgeDataIdb.d.ts","sourceRoot":"","sources":["../../../../../src/storage/methods/purgeDataIdb.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAA;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE1C,wBAAsB,YAAY,CAChC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,GAAG,CAAC,WAAW,EACvB,GAAG,CAAC,EAAE,GAAG,CAAC,QAAQ,GACjB,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAI3B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.purgeDataIdb = purgeDataIdb;
|
|
4
|
+
async function purgeDataIdb(storage, params, trx) {
|
|
5
|
+
const r = { count: 0, log: '' };
|
|
6
|
+
// TODO: implement purgeDataIdb
|
|
7
|
+
return r;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=purgeDataIdb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"purgeDataIdb.js","sourceRoot":"","sources":["../../../../../src/storage/methods/purgeDataIdb.ts"],"names":[],"mappings":";;AAMA,oCAQC;AARM,KAAK,UAAU,YAAY,CAChC,OAAmB,EACnB,MAAuB,EACvB,GAAkB;IAElB,MAAM,CAAC,GAAqB,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAA;IACjD,+BAA+B;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { sdk } from '../../index.client';
|
|
2
|
+
import { StorageIdb } from '../StorageIdb';
|
|
3
|
+
/**
|
|
4
|
+
* Looks for unpropagated state:
|
|
5
|
+
*
|
|
6
|
+
* 1. set transactions to 'failed' if not already failed and provenTxReq with matching txid has status of 'invalid'.
|
|
7
|
+
* 2. sets transactions to 'completed' if provenTx with matching txid exists and current provenTxId is null.
|
|
8
|
+
* 3. sets outputs to spendable true, spentBy undefined if spentBy is a transaction with status 'failed'.
|
|
9
|
+
*
|
|
10
|
+
* @param storage
|
|
11
|
+
* @param args
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
export declare function reviewStatusIdb(storage: StorageIdb, args: {
|
|
15
|
+
agedLimit: Date;
|
|
16
|
+
trx?: sdk.TrxToken;
|
|
17
|
+
}): Promise<{
|
|
18
|
+
log: string;
|
|
19
|
+
}>;
|
|
20
|
+
//# sourceMappingURL=reviewStatusIdb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reviewStatusIdb.d.ts","sourceRoot":"","sources":["../../../../../src/storage/methods/reviewStatusIdb.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAA;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE1C;;;;;;;;;;GAUG;AACH,wBAAsB,eAAe,CACnC,OAAO,EAAE,UAAU,EACnB,IAAI,EAAE;IAAE,SAAS,EAAE,IAAI,CAAC;IAAC,GAAG,CAAC,EAAE,GAAG,CAAC,QAAQ,CAAA;CAAE,GAC5C,OAAO,CAAC;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,CAsB1B"}
|