@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,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EntityCommission = void 0;
|
|
4
|
+
const index_client_1 = require("../../../index.client");
|
|
5
|
+
const _1 = require(".");
|
|
6
|
+
class EntityCommission extends _1.EntityBase {
|
|
7
|
+
constructor(api) {
|
|
8
|
+
const now = new Date();
|
|
9
|
+
super(api || {
|
|
10
|
+
commissionId: 0,
|
|
11
|
+
created_at: now,
|
|
12
|
+
updated_at: now,
|
|
13
|
+
transactionId: 0,
|
|
14
|
+
userId: 0,
|
|
15
|
+
isRedeemed: false,
|
|
16
|
+
keyOffset: '',
|
|
17
|
+
lockingScript: [],
|
|
18
|
+
satoshis: 0
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
updateApi() {
|
|
22
|
+
/* nothing needed yet... */
|
|
23
|
+
}
|
|
24
|
+
get commissionId() {
|
|
25
|
+
return this.api.commissionId;
|
|
26
|
+
}
|
|
27
|
+
set commissionId(v) {
|
|
28
|
+
this.api.commissionId = v;
|
|
29
|
+
}
|
|
30
|
+
get created_at() {
|
|
31
|
+
return this.api.created_at;
|
|
32
|
+
}
|
|
33
|
+
set created_at(v) {
|
|
34
|
+
this.api.created_at = v;
|
|
35
|
+
}
|
|
36
|
+
get updated_at() {
|
|
37
|
+
return this.api.updated_at;
|
|
38
|
+
}
|
|
39
|
+
set updated_at(v) {
|
|
40
|
+
this.api.updated_at = v;
|
|
41
|
+
}
|
|
42
|
+
get transactionId() {
|
|
43
|
+
return this.api.transactionId;
|
|
44
|
+
}
|
|
45
|
+
set transactionId(v) {
|
|
46
|
+
this.api.transactionId = v;
|
|
47
|
+
}
|
|
48
|
+
get userId() {
|
|
49
|
+
return this.api.userId;
|
|
50
|
+
}
|
|
51
|
+
set userId(v) {
|
|
52
|
+
this.api.userId = v;
|
|
53
|
+
}
|
|
54
|
+
get isRedeemed() {
|
|
55
|
+
return this.api.isRedeemed;
|
|
56
|
+
}
|
|
57
|
+
set isRedeemed(v) {
|
|
58
|
+
this.api.isRedeemed = v;
|
|
59
|
+
}
|
|
60
|
+
get keyOffset() {
|
|
61
|
+
return this.api.keyOffset;
|
|
62
|
+
}
|
|
63
|
+
set keyOffset(v) {
|
|
64
|
+
this.api.keyOffset = v;
|
|
65
|
+
}
|
|
66
|
+
get lockingScript() {
|
|
67
|
+
return this.api.lockingScript;
|
|
68
|
+
}
|
|
69
|
+
set lockingScript(v) {
|
|
70
|
+
this.api.lockingScript = v;
|
|
71
|
+
}
|
|
72
|
+
get satoshis() {
|
|
73
|
+
return this.api.satoshis;
|
|
74
|
+
}
|
|
75
|
+
set satoshis(v) {
|
|
76
|
+
this.api.satoshis = v;
|
|
77
|
+
}
|
|
78
|
+
get id() {
|
|
79
|
+
return this.api.commissionId;
|
|
80
|
+
}
|
|
81
|
+
set id(v) {
|
|
82
|
+
this.api.commissionId = v;
|
|
83
|
+
}
|
|
84
|
+
get entityName() {
|
|
85
|
+
return 'commission';
|
|
86
|
+
}
|
|
87
|
+
get entityTable() {
|
|
88
|
+
return 'commissions';
|
|
89
|
+
}
|
|
90
|
+
equals(ei, syncMap) {
|
|
91
|
+
if (this.isRedeemed !== ei.isRedeemed ||
|
|
92
|
+
this.transactionId !== (syncMap ? syncMap.transaction.idMap[ei.transactionId] : ei.transactionId) ||
|
|
93
|
+
this.keyOffset !== ei.keyOffset ||
|
|
94
|
+
!(0, index_client_1.arraysEqual)(this.lockingScript, ei.lockingScript) ||
|
|
95
|
+
this.satoshis !== ei.satoshis)
|
|
96
|
+
return false;
|
|
97
|
+
return true;
|
|
98
|
+
}
|
|
99
|
+
static async mergeFind(storage, userId, ei, syncMap, trx) {
|
|
100
|
+
const transactionId = syncMap.transaction.idMap[ei.transactionId];
|
|
101
|
+
const ef = (0, index_client_1.verifyOneOrNone)(await storage.findCommissions({ partial: { transactionId, userId }, trx }));
|
|
102
|
+
return {
|
|
103
|
+
found: !!ef,
|
|
104
|
+
eo: new EntityCommission(ef || { ...ei }),
|
|
105
|
+
eiId: (0, index_client_1.verifyId)(ei.commissionId)
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
async mergeNew(storage, userId, syncMap, trx) {
|
|
109
|
+
if (this.transactionId)
|
|
110
|
+
this.transactionId = syncMap.transaction.idMap[this.transactionId];
|
|
111
|
+
this.userId = userId;
|
|
112
|
+
this.commissionId = 0;
|
|
113
|
+
this.commissionId = await storage.insertCommission(this.toApi(), trx);
|
|
114
|
+
}
|
|
115
|
+
async mergeExisting(storage, since, ei, syncMap, trx) {
|
|
116
|
+
let wasMerged = false;
|
|
117
|
+
if (ei.updated_at > this.updated_at) {
|
|
118
|
+
this.isRedeemed = ei.isRedeemed;
|
|
119
|
+
this.updated_at = new Date(Math.max(ei.updated_at.getTime(), this.updated_at.getTime()));
|
|
120
|
+
await storage.updateCommission(this.id, this.toApi(), trx);
|
|
121
|
+
wasMerged = true;
|
|
122
|
+
}
|
|
123
|
+
return wasMerged;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
exports.EntityCommission = EntityCommission;
|
|
127
|
+
//# sourceMappingURL=EntityCommission.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EntityCommission.js","sourceRoot":"","sources":["../../../../../../src/storage/schema/entities/EntityCommission.ts"],"names":[],"mappings":";;;AAEA,wDAAoG;AACpG,wBAAsD;AAEtD,MAAa,gBAAiB,SAAQ,aAA2B;IAC/D,YAAY,GAAqB;QAC/B,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAA;QACtB,KAAK,CACH,GAAG,IAAI;YACL,YAAY,EAAE,CAAC;YACf,UAAU,EAAE,GAAG;YACf,UAAU,EAAE,GAAG;YACf,aAAa,EAAE,CAAC;YAChB,MAAM,EAAE,CAAC;YACT,UAAU,EAAE,KAAK;YACjB,SAAS,EAAE,EAAE;YACb,aAAa,EAAE,EAAE;YACjB,QAAQ,EAAE,CAAC;SACZ,CACF,CAAA;IACH,CAAC;IAEQ,SAAS;QAChB,2BAA2B;IAC7B,CAAC;IAED,IAAI,YAAY;QACd,OAAO,IAAI,CAAC,GAAG,CAAC,YAAY,CAAA;IAC9B,CAAC;IACD,IAAI,YAAY,CAAC,CAAS;QACxB,IAAI,CAAC,GAAG,CAAC,YAAY,GAAG,CAAC,CAAA;IAC3B,CAAC;IACD,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,GAAG,CAAC,UAAU,CAAA;IAC5B,CAAC;IACD,IAAI,UAAU,CAAC,CAAO;QACpB,IAAI,CAAC,GAAG,CAAC,UAAU,GAAG,CAAC,CAAA;IACzB,CAAC;IACD,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,GAAG,CAAC,UAAU,CAAA;IAC5B,CAAC;IACD,IAAI,UAAU,CAAC,CAAO;QACpB,IAAI,CAAC,GAAG,CAAC,UAAU,GAAG,CAAC,CAAA;IACzB,CAAC;IACD,IAAI,aAAa;QACf,OAAO,IAAI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C,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;QAC1F,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,YAAY,GAAG,CAAC,CAAA;QACrB,IAAI,CAAC,YAAY,GAAG,MAAM,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,GAAG,CAAC,CAAA;IACvE,CAAC;IAEQ,KAAK,CAAC,aAAa,CAC1B,OAAsB,EACtB,KAAuB,EACvB,EAAmB,EACnB,OAAgB,EAChB,GAAkB;QAElB,IAAI,SAAS,GAAG,KAAK,CAAA;QACrB,IAAI,EAAE,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;YACpC,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC,UAAU,CAAA;YAC/B,IAAI,CAAC,UAAU,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC,CAAA;YACxF,MAAM,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,GAAG,CAAC,CAAA;YAC1D,SAAS,GAAG,IAAI,CAAA;QAClB,CAAC;QACD,OAAO,SAAS,CAAA;IAClB,CAAC;CACF;AA9ID,4CA8IC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { sdk, TableOutput } from '../../../index.client';
|
|
2
|
+
import { EntityBase, EntityStorage, SyncMap } from '.';
|
|
3
|
+
export declare class EntityOutput extends EntityBase<TableOutput> {
|
|
4
|
+
constructor(api?: TableOutput);
|
|
5
|
+
updateApi(): void;
|
|
6
|
+
get outputId(): number;
|
|
7
|
+
set outputId(v: number);
|
|
8
|
+
get created_at(): Date;
|
|
9
|
+
set created_at(v: Date);
|
|
10
|
+
get updated_at(): Date;
|
|
11
|
+
set updated_at(v: Date);
|
|
12
|
+
get userId(): number;
|
|
13
|
+
set userId(v: number);
|
|
14
|
+
get transactionId(): number;
|
|
15
|
+
set transactionId(v: number);
|
|
16
|
+
get basketId(): number | undefined;
|
|
17
|
+
set basketId(v: number | undefined);
|
|
18
|
+
get spentBy(): number | undefined;
|
|
19
|
+
set spentBy(v: number | undefined);
|
|
20
|
+
get vout(): number;
|
|
21
|
+
set vout(v: number);
|
|
22
|
+
get satoshis(): number;
|
|
23
|
+
set satoshis(v: number);
|
|
24
|
+
get outputDescription(): string;
|
|
25
|
+
set outputDescription(v: string);
|
|
26
|
+
get spendable(): boolean;
|
|
27
|
+
set spendable(v: boolean);
|
|
28
|
+
get change(): boolean;
|
|
29
|
+
set change(v: boolean);
|
|
30
|
+
get txid(): string | undefined;
|
|
31
|
+
set txid(v: string | undefined);
|
|
32
|
+
get type(): string;
|
|
33
|
+
set type(v: string);
|
|
34
|
+
get providedBy(): sdk.StorageProvidedBy;
|
|
35
|
+
set providedBy(v: sdk.StorageProvidedBy);
|
|
36
|
+
get purpose(): string;
|
|
37
|
+
set purpose(v: string);
|
|
38
|
+
get spendingDescription(): string | undefined;
|
|
39
|
+
set spendingDescription(v: string | undefined);
|
|
40
|
+
get derivationPrefix(): string | undefined;
|
|
41
|
+
set derivationPrefix(v: string | undefined);
|
|
42
|
+
get derivationSuffix(): string | undefined;
|
|
43
|
+
set derivationSuffix(v: string | undefined);
|
|
44
|
+
get senderIdentityKey(): string | undefined;
|
|
45
|
+
set senderIdentityKey(v: string | undefined);
|
|
46
|
+
get customInstructions(): string | undefined;
|
|
47
|
+
set customInstructions(v: string | undefined);
|
|
48
|
+
get lockingScript(): number[] | undefined;
|
|
49
|
+
set lockingScript(v: number[] | undefined);
|
|
50
|
+
get scriptLength(): number | undefined;
|
|
51
|
+
set scriptLength(v: number | undefined);
|
|
52
|
+
get scriptOffset(): number | undefined;
|
|
53
|
+
set scriptOffset(v: number | undefined);
|
|
54
|
+
get id(): number;
|
|
55
|
+
set id(v: number);
|
|
56
|
+
get entityName(): string;
|
|
57
|
+
get entityTable(): string;
|
|
58
|
+
equals(ei: TableOutput, syncMap?: SyncMap | undefined): boolean;
|
|
59
|
+
static mergeFind(storage: EntityStorage, userId: number, ei: TableOutput, syncMap: SyncMap, trx?: sdk.TrxToken): Promise<{
|
|
60
|
+
found: boolean;
|
|
61
|
+
eo: EntityOutput;
|
|
62
|
+
eiId: number;
|
|
63
|
+
}>;
|
|
64
|
+
mergeNew(storage: EntityStorage, userId: number, syncMap: SyncMap, trx?: sdk.TrxToken): Promise<void>;
|
|
65
|
+
mergeExisting(storage: EntityStorage, since: Date | undefined, ei: TableOutput, syncMap: SyncMap, trx?: sdk.TrxToken): Promise<boolean>;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=EntityOutput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EntityOutput.d.ts","sourceRoot":"","sources":["../../../../../../src/storage/schema/entities/EntityOutput.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoC,GAAG,EAAE,WAAW,EAA6B,MAAM,uBAAuB,CAAA;AACrH,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,GAAG,CAAA;AAEtD,qBAAa,YAAa,SAAQ,UAAU,CAAC,WAAW,CAAC;gBAC3C,GAAG,CAAC,EAAE,WAAW;IAiCpB,SAAS,IAAI,IAAI;IAI1B,IAAI,QAAQ,IAGI,MAAM,CADrB;IACD,IAAI,QAAQ,CAAC,CAAC,EAAE,MAAM,EAErB;IACD,IAAI,UAAU,IAGI,IAAI,CADrB;IACD,IAAI,UAAU,CAAC,CAAC,EAAE,IAAI,EAErB;IACD,IAAI,UAAU,IAGI,IAAI,CADrB;IACD,IAAI,UAAU,CAAC,CAAC,EAAE,IAAI,EAErB;IACD,IAAI,MAAM,IAGI,MAAM,CADnB;IACD,IAAI,MAAM,CAAC,CAAC,EAAE,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C,EAAE,EAAE,YAAY,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAgB/C,QAAQ,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IASrG,aAAa,CAC1B,OAAO,EAAE,aAAa,EACtB,KAAK,EAAE,IAAI,GAAG,SAAS,EACvB,EAAE,EAAE,WAAW,EACf,OAAO,EAAE,OAAO,EAChB,GAAG,CAAC,EAAE,GAAG,CAAC,QAAQ,GACjB,OAAO,CAAC,OAAO,CAAC;CAsBpB"}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EntityOutput = void 0;
|
|
4
|
+
const index_client_1 = require("../../../index.client");
|
|
5
|
+
const _1 = require(".");
|
|
6
|
+
class EntityOutput extends _1.EntityBase {
|
|
7
|
+
constructor(api) {
|
|
8
|
+
const now = new Date();
|
|
9
|
+
super(api || {
|
|
10
|
+
outputId: 0,
|
|
11
|
+
created_at: now,
|
|
12
|
+
updated_at: now,
|
|
13
|
+
userId: 0,
|
|
14
|
+
transactionId: 0,
|
|
15
|
+
spendable: false,
|
|
16
|
+
change: false,
|
|
17
|
+
satoshis: 0,
|
|
18
|
+
outputDescription: '',
|
|
19
|
+
vout: 0,
|
|
20
|
+
type: '',
|
|
21
|
+
providedBy: 'you',
|
|
22
|
+
purpose: '',
|
|
23
|
+
txid: undefined,
|
|
24
|
+
basketId: undefined,
|
|
25
|
+
spentBy: undefined,
|
|
26
|
+
derivationPrefix: undefined,
|
|
27
|
+
derivationSuffix: undefined,
|
|
28
|
+
senderIdentityKey: undefined,
|
|
29
|
+
customInstructions: undefined,
|
|
30
|
+
spendingDescription: undefined,
|
|
31
|
+
scriptLength: undefined,
|
|
32
|
+
scriptOffset: undefined,
|
|
33
|
+
lockingScript: undefined
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
updateApi() {
|
|
37
|
+
/* nothing needed yet... */
|
|
38
|
+
}
|
|
39
|
+
get outputId() {
|
|
40
|
+
return this.api.outputId;
|
|
41
|
+
}
|
|
42
|
+
set outputId(v) {
|
|
43
|
+
this.api.outputId = v;
|
|
44
|
+
}
|
|
45
|
+
get created_at() {
|
|
46
|
+
return this.api.created_at;
|
|
47
|
+
}
|
|
48
|
+
set created_at(v) {
|
|
49
|
+
this.api.created_at = v;
|
|
50
|
+
}
|
|
51
|
+
get updated_at() {
|
|
52
|
+
return this.api.updated_at;
|
|
53
|
+
}
|
|
54
|
+
set updated_at(v) {
|
|
55
|
+
this.api.updated_at = v;
|
|
56
|
+
}
|
|
57
|
+
get userId() {
|
|
58
|
+
return this.api.userId;
|
|
59
|
+
}
|
|
60
|
+
set userId(v) {
|
|
61
|
+
this.api.userId = v;
|
|
62
|
+
}
|
|
63
|
+
get transactionId() {
|
|
64
|
+
return this.api.transactionId;
|
|
65
|
+
}
|
|
66
|
+
set transactionId(v) {
|
|
67
|
+
this.api.transactionId = v;
|
|
68
|
+
}
|
|
69
|
+
get basketId() {
|
|
70
|
+
return this.api.basketId;
|
|
71
|
+
}
|
|
72
|
+
set basketId(v) {
|
|
73
|
+
this.api.basketId = v;
|
|
74
|
+
}
|
|
75
|
+
get spentBy() {
|
|
76
|
+
return this.api.spentBy;
|
|
77
|
+
}
|
|
78
|
+
set spentBy(v) {
|
|
79
|
+
this.api.spentBy = v;
|
|
80
|
+
}
|
|
81
|
+
get vout() {
|
|
82
|
+
return this.api.vout;
|
|
83
|
+
}
|
|
84
|
+
set vout(v) {
|
|
85
|
+
this.api.vout = v;
|
|
86
|
+
}
|
|
87
|
+
get satoshis() {
|
|
88
|
+
return this.api.satoshis;
|
|
89
|
+
}
|
|
90
|
+
set satoshis(v) {
|
|
91
|
+
this.api.satoshis = v;
|
|
92
|
+
}
|
|
93
|
+
get outputDescription() {
|
|
94
|
+
return this.api.outputDescription;
|
|
95
|
+
}
|
|
96
|
+
set outputDescription(v) {
|
|
97
|
+
this.api.outputDescription = v;
|
|
98
|
+
}
|
|
99
|
+
get spendable() {
|
|
100
|
+
return this.api.spendable;
|
|
101
|
+
}
|
|
102
|
+
set spendable(v) {
|
|
103
|
+
this.api.spendable = v;
|
|
104
|
+
}
|
|
105
|
+
get change() {
|
|
106
|
+
return this.api.change;
|
|
107
|
+
}
|
|
108
|
+
set change(v) {
|
|
109
|
+
this.api.change = v;
|
|
110
|
+
}
|
|
111
|
+
get txid() {
|
|
112
|
+
return this.api.txid;
|
|
113
|
+
}
|
|
114
|
+
set txid(v) {
|
|
115
|
+
this.api.txid = v;
|
|
116
|
+
}
|
|
117
|
+
get type() {
|
|
118
|
+
return this.api.type;
|
|
119
|
+
}
|
|
120
|
+
set type(v) {
|
|
121
|
+
this.api.type = v;
|
|
122
|
+
}
|
|
123
|
+
get providedBy() {
|
|
124
|
+
return this.api.providedBy;
|
|
125
|
+
}
|
|
126
|
+
set providedBy(v) {
|
|
127
|
+
this.api.providedBy = v;
|
|
128
|
+
}
|
|
129
|
+
get purpose() {
|
|
130
|
+
return this.api.purpose;
|
|
131
|
+
}
|
|
132
|
+
set purpose(v) {
|
|
133
|
+
this.api.purpose = v;
|
|
134
|
+
}
|
|
135
|
+
get spendingDescription() {
|
|
136
|
+
return this.api.spendingDescription;
|
|
137
|
+
}
|
|
138
|
+
set spendingDescription(v) {
|
|
139
|
+
this.api.spendingDescription = v;
|
|
140
|
+
}
|
|
141
|
+
get derivationPrefix() {
|
|
142
|
+
return this.api.derivationPrefix;
|
|
143
|
+
}
|
|
144
|
+
set derivationPrefix(v) {
|
|
145
|
+
this.api.derivationPrefix = v;
|
|
146
|
+
}
|
|
147
|
+
get derivationSuffix() {
|
|
148
|
+
return this.api.derivationSuffix;
|
|
149
|
+
}
|
|
150
|
+
set derivationSuffix(v) {
|
|
151
|
+
this.api.derivationSuffix = v;
|
|
152
|
+
}
|
|
153
|
+
get senderIdentityKey() {
|
|
154
|
+
return this.api.senderIdentityKey;
|
|
155
|
+
}
|
|
156
|
+
set senderIdentityKey(v) {
|
|
157
|
+
this.api.senderIdentityKey = v;
|
|
158
|
+
}
|
|
159
|
+
get customInstructions() {
|
|
160
|
+
return this.api.customInstructions;
|
|
161
|
+
}
|
|
162
|
+
set customInstructions(v) {
|
|
163
|
+
this.api.customInstructions = v;
|
|
164
|
+
}
|
|
165
|
+
get lockingScript() {
|
|
166
|
+
return this.api.lockingScript;
|
|
167
|
+
}
|
|
168
|
+
set lockingScript(v) {
|
|
169
|
+
this.api.lockingScript = v;
|
|
170
|
+
}
|
|
171
|
+
get scriptLength() {
|
|
172
|
+
return this.api.scriptLength;
|
|
173
|
+
}
|
|
174
|
+
set scriptLength(v) {
|
|
175
|
+
this.api.scriptLength = v;
|
|
176
|
+
}
|
|
177
|
+
get scriptOffset() {
|
|
178
|
+
return this.api.scriptOffset;
|
|
179
|
+
}
|
|
180
|
+
set scriptOffset(v) {
|
|
181
|
+
this.api.scriptOffset = v;
|
|
182
|
+
}
|
|
183
|
+
get id() {
|
|
184
|
+
return this.api.outputId;
|
|
185
|
+
}
|
|
186
|
+
set id(v) {
|
|
187
|
+
this.api.outputId = v;
|
|
188
|
+
}
|
|
189
|
+
get entityName() {
|
|
190
|
+
return 'output';
|
|
191
|
+
}
|
|
192
|
+
get entityTable() {
|
|
193
|
+
return 'outputs';
|
|
194
|
+
}
|
|
195
|
+
equals(ei, syncMap) {
|
|
196
|
+
if (this.transactionId !== (syncMap ? syncMap.transaction.idMap[ei.transactionId] : ei.transactionId) ||
|
|
197
|
+
this.basketId !== (syncMap && ei.basketId ? syncMap.outputBasket.idMap[ei.basketId] : ei.basketId) ||
|
|
198
|
+
this.spentBy !== (syncMap && ei.spentBy ? syncMap.transaction.idMap[ei.spentBy] : ei.spentBy) ||
|
|
199
|
+
this.vout !== ei.vout ||
|
|
200
|
+
this.satoshis !== ei.satoshis ||
|
|
201
|
+
this.spendable !== ei.spendable ||
|
|
202
|
+
this.change !== ei.change ||
|
|
203
|
+
this.txid !== ei.txid ||
|
|
204
|
+
this.type !== ei.type ||
|
|
205
|
+
this.providedBy !== ei.providedBy ||
|
|
206
|
+
this.purpose !== ei.purpose ||
|
|
207
|
+
this.outputDescription !== ei.outputDescription ||
|
|
208
|
+
this.spendingDescription !== ei.spendingDescription ||
|
|
209
|
+
this.derivationPrefix !== ei.derivationPrefix ||
|
|
210
|
+
this.derivationSuffix !== ei.derivationSuffix ||
|
|
211
|
+
this.senderIdentityKey !== ei.senderIdentityKey ||
|
|
212
|
+
this.customInstructions !== ei.customInstructions ||
|
|
213
|
+
!(0, index_client_1.optionalArraysEqual)(this.lockingScript, ei.lockingScript) ||
|
|
214
|
+
this.scriptLength !== ei.scriptLength ||
|
|
215
|
+
this.scriptOffset !== ei.scriptOffset)
|
|
216
|
+
return false;
|
|
217
|
+
return true;
|
|
218
|
+
}
|
|
219
|
+
static async mergeFind(storage, userId, ei, syncMap, trx) {
|
|
220
|
+
const transactionId = syncMap.transaction.idMap[ei.transactionId];
|
|
221
|
+
const basketId = ei.basketId ? syncMap.outputBasket.idMap[ei.basketId] : null;
|
|
222
|
+
const ef = (0, index_client_1.verifyOneOrNone)(await storage.findOutputs({
|
|
223
|
+
partial: { userId, transactionId, vout: ei.vout },
|
|
224
|
+
trx
|
|
225
|
+
}));
|
|
226
|
+
return {
|
|
227
|
+
found: !!ef,
|
|
228
|
+
eo: new EntityOutput(ef || { ...ei }),
|
|
229
|
+
eiId: (0, index_client_1.verifyId)(ei.outputId)
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
async mergeNew(storage, userId, syncMap, trx) {
|
|
233
|
+
this.userId = userId;
|
|
234
|
+
this.basketId = this.basketId ? syncMap.outputBasket.idMap[this.basketId] : undefined;
|
|
235
|
+
this.transactionId = syncMap.transaction.idMap[this.transactionId];
|
|
236
|
+
this.spentBy = this.spentBy ? syncMap.transaction.idMap[this.spentBy] : undefined;
|
|
237
|
+
this.outputId = 0;
|
|
238
|
+
this.outputId = await storage.insertOutput(this.toApi(), trx);
|
|
239
|
+
}
|
|
240
|
+
async mergeExisting(storage, since, ei, syncMap, trx) {
|
|
241
|
+
let wasMerged = false;
|
|
242
|
+
if (ei.updated_at > this.updated_at) {
|
|
243
|
+
this.spentBy = ei.spentBy ? syncMap.transaction.idMap[ei.spentBy] : undefined;
|
|
244
|
+
this.spendable = ei.spendable;
|
|
245
|
+
this.change = ei.change;
|
|
246
|
+
this.type = ei.type;
|
|
247
|
+
this.providedBy = ei.providedBy;
|
|
248
|
+
this.purpose = ei.purpose;
|
|
249
|
+
this.outputDescription = ei.outputDescription;
|
|
250
|
+
this.spendingDescription = ei.spendingDescription;
|
|
251
|
+
this.senderIdentityKey = ei.senderIdentityKey;
|
|
252
|
+
this.customInstructions = ei.customInstructions;
|
|
253
|
+
this.scriptLength = ei.scriptLength;
|
|
254
|
+
this.scriptOffset = ei.scriptOffset;
|
|
255
|
+
this.lockingScript = ei.lockingScript;
|
|
256
|
+
this.updated_at = new Date(Math.max(ei.updated_at.getTime(), this.updated_at.getTime()));
|
|
257
|
+
await storage.updateOutput(this.id, this.toApi(), trx);
|
|
258
|
+
wasMerged = true;
|
|
259
|
+
}
|
|
260
|
+
return wasMerged;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
exports.EntityOutput = EntityOutput;
|
|
264
|
+
//# sourceMappingURL=EntityOutput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EntityOutput.js","sourceRoot":"","sources":["../../../../../../src/storage/schema/entities/EntityOutput.ts"],"names":[],"mappings":";;;AAEA,wDAAqH;AACrH,wBAAsD;AAEtD,MAAa,YAAa,SAAQ,aAAuB;IACvD,YAAY,GAAiB;QAC3B,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAA;QACtB,KAAK,CACH,GAAG,IAAI;YACL,QAAQ,EAAE,CAAC;Y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I,CAAA;YACnB,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC,UAAU,CAAA;YAC/B,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,OAAO,CAAA;YACzB,IAAI,CAAC,iBAAiB,GAAG,EAAE,CAAC,iBAAiB,CAAA;YAC7C,IAAI,CAAC,mBAAmB,GAAG,EAAE,CAAC,mBAAmB,CAAA;YACjD,IAAI,CAAC,iBAAiB,GAAG,EAAE,CAAC,iBAAiB,CAAA;YAC7C,IAAI,CAAC,kBAAkB,GAAG,EAAE,CAAC,kBAAkB,CAAA;YAC/C,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC,YAAY,CAAA;YACnC,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC,YAAY,CAAA;YACnC,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC,aAAa,CAAA;YACrC,IAAI,CAAC,UAAU,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC,CAAA;YACxF,MAAM,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,GAAG,CAAC,CAAA;YACtD,SAAS,GAAG,IAAI,CAAA;QAClB,CAAC;QACD,OAAO,SAAS,CAAA;IAClB,CAAC;CACF;AA5RD,oCA4RC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { sdk, TableOutputBasket } from '../../../index.client';
|
|
2
|
+
import { EntityBase, EntityStorage, SyncMap } from '.';
|
|
3
|
+
export declare class EntityOutputBasket extends EntityBase<TableOutputBasket> {
|
|
4
|
+
constructor(api?: TableOutputBasket);
|
|
5
|
+
get basketId(): number;
|
|
6
|
+
set basketId(v: number);
|
|
7
|
+
get created_at(): Date;
|
|
8
|
+
set created_at(v: Date);
|
|
9
|
+
get updated_at(): Date;
|
|
10
|
+
set updated_at(v: Date);
|
|
11
|
+
get userId(): number;
|
|
12
|
+
set userId(v: number);
|
|
13
|
+
get name(): string;
|
|
14
|
+
set name(v: string);
|
|
15
|
+
get numberOfDesiredUTXOs(): number;
|
|
16
|
+
set numberOfDesiredUTXOs(v: number);
|
|
17
|
+
get minimumDesiredUTXOValue(): number;
|
|
18
|
+
set minimumDesiredUTXOValue(v: number);
|
|
19
|
+
get isDeleted(): boolean;
|
|
20
|
+
set isDeleted(v: boolean);
|
|
21
|
+
get id(): number;
|
|
22
|
+
set id(v: number);
|
|
23
|
+
get entityName(): string;
|
|
24
|
+
get entityTable(): string;
|
|
25
|
+
updateApi(): void;
|
|
26
|
+
equals(ei: TableOutputBasket, syncMap?: SyncMap): boolean;
|
|
27
|
+
static mergeFind(storage: EntityStorage, userId: number, ei: TableOutputBasket, syncMap: SyncMap, trx?: sdk.TrxToken): Promise<{
|
|
28
|
+
found: boolean;
|
|
29
|
+
eo: EntityOutputBasket;
|
|
30
|
+
eiId: number;
|
|
31
|
+
}>;
|
|
32
|
+
mergeNew(storage: EntityStorage, userId: number, syncMap: SyncMap, trx?: sdk.TrxToken): Promise<void>;
|
|
33
|
+
mergeExisting(storage: EntityStorage, since: Date | undefined, ei: TableOutputBasket, syncMap: SyncMap, trx?: sdk.TrxToken): Promise<boolean>;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=EntityOutputBasket.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EntityOutputBasket.d.ts","sourceRoot":"","sources":["../../../../../../src/storage/schema/entities/EntityOutputBasket.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,GAAG,EAAE,iBAAiB,EAA6B,MAAM,uBAAuB,CAAA;AACtG,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,GAAG,CAAA;AAEtD,qBAAa,kBAAmB,SAAQ,UAAU,CAAC,iBAAiB,CAAC;gBACvD,GAAG,CAAC,EAAE,iBAAiB;IAg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AAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAQrG,aAAa,CAC1B,OAAO,EAAE,aAAa,EACtB,KAAK,EAAE,IAAI,GAAG,SAAS,EACvB,EAAE,EAAE,iBAAiB,EACrB,OAAO,EAAE,OAAO,EAChB,GAAG,CAAC,EAAE,GAAG,CAAC,QAAQ,GACjB,OAAO,CAAC,OAAO,CAAC;CAapB"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EntityOutputBasket = void 0;
|
|
4
|
+
const index_client_1 = require("../../../index.client");
|
|
5
|
+
const _1 = require(".");
|
|
6
|
+
class EntityOutputBasket extends _1.EntityBase {
|
|
7
|
+
constructor(api) {
|
|
8
|
+
const now = new Date();
|
|
9
|
+
super(api || {
|
|
10
|
+
basketId: 0,
|
|
11
|
+
created_at: now,
|
|
12
|
+
updated_at: now,
|
|
13
|
+
userId: 0,
|
|
14
|
+
name: '',
|
|
15
|
+
numberOfDesiredUTXOs: 0,
|
|
16
|
+
minimumDesiredUTXOValue: 0,
|
|
17
|
+
isDeleted: false
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
get basketId() {
|
|
21
|
+
return this.api.basketId;
|
|
22
|
+
}
|
|
23
|
+
set basketId(v) {
|
|
24
|
+
this.api.basketId = v;
|
|
25
|
+
}
|
|
26
|
+
get created_at() {
|
|
27
|
+
return this.api.created_at;
|
|
28
|
+
}
|
|
29
|
+
set created_at(v) {
|
|
30
|
+
this.api.created_at = v;
|
|
31
|
+
}
|
|
32
|
+
get updated_at() {
|
|
33
|
+
return this.api.updated_at;
|
|
34
|
+
}
|
|
35
|
+
set updated_at(v) {
|
|
36
|
+
this.api.updated_at = v;
|
|
37
|
+
}
|
|
38
|
+
get userId() {
|
|
39
|
+
return this.api.userId;
|
|
40
|
+
}
|
|
41
|
+
set userId(v) {
|
|
42
|
+
this.api.userId = v;
|
|
43
|
+
}
|
|
44
|
+
get name() {
|
|
45
|
+
return this.api.name;
|
|
46
|
+
}
|
|
47
|
+
set name(v) {
|
|
48
|
+
this.api.name = v;
|
|
49
|
+
}
|
|
50
|
+
get numberOfDesiredUTXOs() {
|
|
51
|
+
return this.api.numberOfDesiredUTXOs;
|
|
52
|
+
}
|
|
53
|
+
set numberOfDesiredUTXOs(v) {
|
|
54
|
+
this.api.numberOfDesiredUTXOs = v;
|
|
55
|
+
}
|
|
56
|
+
get minimumDesiredUTXOValue() {
|
|
57
|
+
return this.api.minimumDesiredUTXOValue;
|
|
58
|
+
}
|
|
59
|
+
set minimumDesiredUTXOValue(v) {
|
|
60
|
+
this.api.minimumDesiredUTXOValue = v;
|
|
61
|
+
}
|
|
62
|
+
get isDeleted() {
|
|
63
|
+
return this.api.isDeleted;
|
|
64
|
+
}
|
|
65
|
+
set isDeleted(v) {
|
|
66
|
+
this.api.isDeleted = v;
|
|
67
|
+
}
|
|
68
|
+
get id() {
|
|
69
|
+
return this.api.basketId;
|
|
70
|
+
}
|
|
71
|
+
set id(v) {
|
|
72
|
+
this.api.basketId = v;
|
|
73
|
+
}
|
|
74
|
+
get entityName() {
|
|
75
|
+
return 'outputBasket';
|
|
76
|
+
}
|
|
77
|
+
get entityTable() {
|
|
78
|
+
return 'output_baskets';
|
|
79
|
+
}
|
|
80
|
+
updateApi() {
|
|
81
|
+
/* nothing needed yet... */
|
|
82
|
+
}
|
|
83
|
+
equals(ei, syncMap) {
|
|
84
|
+
const eo = this.api;
|
|
85
|
+
if (eo.name != ei.name ||
|
|
86
|
+
eo.numberOfDesiredUTXOs != ei.numberOfDesiredUTXOs ||
|
|
87
|
+
eo.minimumDesiredUTXOValue != ei.minimumDesiredUTXOValue)
|
|
88
|
+
return false;
|
|
89
|
+
if (syncMap) {
|
|
90
|
+
if (eo.basketId !== syncMap.outputBasket.idMap[(0, index_client_1.verifyId)(ei.basketId)])
|
|
91
|
+
return false;
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
if (eo.basketId !== ei.basketId || eo.userId !== ei.userId)
|
|
95
|
+
return false;
|
|
96
|
+
}
|
|
97
|
+
return true;
|
|
98
|
+
}
|
|
99
|
+
static async mergeFind(storage, userId, ei, syncMap, trx) {
|
|
100
|
+
const ef = (0, index_client_1.verifyOneOrNone)(await storage.findOutputBaskets({
|
|
101
|
+
partial: { name: ei.name, userId },
|
|
102
|
+
trx
|
|
103
|
+
}));
|
|
104
|
+
return {
|
|
105
|
+
found: !!ef,
|
|
106
|
+
eo: new EntityOutputBasket(ef || { ...ei }),
|
|
107
|
+
eiId: (0, index_client_1.verifyId)(ei.basketId)
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
111
|
+
async mergeNew(storage, userId, syncMap, trx) {
|
|
112
|
+
this.userId = userId;
|
|
113
|
+
this.name || (this.name = 'default');
|
|
114
|
+
this.basketId = 0;
|
|
115
|
+
this.basketId = await storage.insertOutputBasket(this.toApi(), trx);
|
|
116
|
+
}
|
|
117
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
118
|
+
async mergeExisting(storage, since, ei, syncMap, trx) {
|
|
119
|
+
let wasMerged = false;
|
|
120
|
+
if (ei.updated_at > this.updated_at) {
|
|
121
|
+
// basket name is its identity, should not change
|
|
122
|
+
this.minimumDesiredUTXOValue = ei.minimumDesiredUTXOValue;
|
|
123
|
+
this.numberOfDesiredUTXOs = ei.numberOfDesiredUTXOs;
|
|
124
|
+
this.isDeleted = ei.isDeleted;
|
|
125
|
+
this.updated_at = new Date(Math.max(ei.updated_at.getTime(), this.updated_at.getTime()));
|
|
126
|
+
await storage.updateOutputBasket(this.id, this.toApi(), trx);
|
|
127
|
+
wasMerged = true;
|
|
128
|
+
}
|
|
129
|
+
return wasMerged;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
exports.EntityOutputBasket = EntityOutputBasket;
|
|
133
|
+
//# sourceMappingURL=EntityOutputBasket.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EntityOutputBasket.js","sourceRoot":"","sources":["../../../../../../src/storage/schema/entities/EntityOutputBasket.ts"],"names":[],"mappings":";;;AACA,wDAAsG;AACtG,wBAAsD;AAEtD,MAAa,kBAAmB,SAAQ,aAA6B;IACnE,YAAY,GAAuB;QACjC,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAA;QACtB,KAAK,CACH,GAAG,IAAI;YACL,QAAQ,EAAE,CAAC;YACX,UAAU,EAAE,GAAG;YACf,UAAU,EAAE,GAAG;YACf,MAAM,EAAE,CAAC;YACT,IAAI,EAAE,EAAE;YACR,oBAAoB,EAAE,CAAC;YACvB,uBAAuB,EAAE,CAAC;YAC1B,SAAS,EAAE,KAAK;SACjB,CACF,CAAA;IACH,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAA;IAC1B,CAAC;IACD,IAAI,QAAQ,CAAC,CAAS;QACpB,IAAI,CAAC,GAAG,CAAC,QAAQ,GAAG,CAAC,CAAA;IACvB,CAAC;IACD,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,GAAG,CAAC,UAAU,CAAA;IAC5B,CAAC;IACD,IAAI,UAAU,CAAC,CAAO;QACpB,IAAI,CAAC,GAAG,CAAC,UAAU,GAAG,CAAC,CAAA;IACzB,CAAC;IACD,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,GAAG,CAAC,UAAU,CAAA;IAC5B,CAAC;IACD,IAAI,UAAU,CAAC,CAAO;QACpB,IAAI,CAAC,GAAG,CAAC,UAAU,GAAG,CAAC,CAAA;IACzB,CAAC;IACD,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,CAAA;IACxB,CAAC;IACD,IAAI,MAA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