@bopen-io/wallet-toolbox 1.7.18 → 1.7.19
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/.claude/settings.local.json +5 -1
- package/CHANGELOG.md +4 -0
- package/out/src/CWIStyleWalletManager.d.ts +439 -0
- package/out/src/CWIStyleWalletManager.d.ts.map +1 -0
- package/out/src/CWIStyleWalletManager.js +1317 -0
- package/out/src/CWIStyleWalletManager.js.map +1 -0
- package/out/src/Setup.d.ts +267 -0
- package/out/src/Setup.d.ts.map +1 -0
- package/out/src/Setup.js +408 -0
- package/out/src/Setup.js.map +1 -0
- package/out/src/SetupClient.d.ts +130 -0
- package/out/src/SetupClient.d.ts.map +1 -0
- package/out/src/SetupClient.js +226 -0
- package/out/src/SetupClient.js.map +1 -0
- package/out/src/SetupWallet.d.ts +103 -0
- package/out/src/SetupWallet.d.ts.map +1 -0
- package/out/src/SetupWallet.js +3 -0
- package/out/src/SetupWallet.js.map +1 -0
- package/out/src/SimpleWalletManager.d.ts +169 -0
- package/out/src/SimpleWalletManager.d.ts.map +1 -0
- package/out/src/SimpleWalletManager.js +315 -0
- package/out/src/SimpleWalletManager.js.map +1 -0
- package/out/src/Wallet.d.ts +206 -0
- package/out/src/Wallet.d.ts.map +1 -0
- package/out/src/Wallet.js +797 -0
- package/out/src/Wallet.js.map +1 -0
- package/out/src/WalletAuthenticationManager.d.ts +33 -0
- package/out/src/WalletAuthenticationManager.d.ts.map +1 -0
- package/out/src/WalletAuthenticationManager.js +113 -0
- package/out/src/WalletAuthenticationManager.js.map +1 -0
- package/out/src/WalletLogger.d.ts +65 -0
- package/out/src/WalletLogger.d.ts.map +1 -0
- package/out/src/WalletLogger.js +167 -0
- package/out/src/WalletLogger.js.map +1 -0
- package/out/src/WalletPermissionsManager.d.ts +760 -0
- package/out/src/WalletPermissionsManager.d.ts.map +1 -0
- package/out/src/WalletPermissionsManager.js +2679 -0
- package/out/src/WalletPermissionsManager.js.map +1 -0
- package/out/src/WalletSettingsManager.d.ts +53 -0
- package/out/src/WalletSettingsManager.d.ts.map +1 -0
- package/out/src/WalletSettingsManager.js +83 -0
- package/out/src/WalletSettingsManager.js.map +1 -0
- package/out/src/__tests/CWIStyleWalletManager.test.d.ts +2 -0
- package/out/src/__tests/CWIStyleWalletManager.test.d.ts.map +1 -0
- package/out/src/__tests/CWIStyleWalletManager.test.js +527 -0
- package/out/src/__tests/CWIStyleWalletManager.test.js.map +1 -0
- package/out/src/__tests/WalletPermissionsManager.callbacks.test.d.ts +2 -0
- package/out/src/__tests/WalletPermissionsManager.callbacks.test.d.ts.map +1 -0
- package/out/src/__tests/WalletPermissionsManager.callbacks.test.js +239 -0
- package/out/src/__tests/WalletPermissionsManager.callbacks.test.js.map +1 -0
- package/out/src/__tests/WalletPermissionsManager.checks.test.d.ts +2 -0
- package/out/src/__tests/WalletPermissionsManager.checks.test.d.ts.map +1 -0
- package/out/src/__tests/WalletPermissionsManager.checks.test.js +642 -0
- package/out/src/__tests/WalletPermissionsManager.checks.test.js.map +1 -0
- package/out/src/__tests/WalletPermissionsManager.encryption.test.d.ts +2 -0
- package/out/src/__tests/WalletPermissionsManager.encryption.test.d.ts.map +1 -0
- package/out/src/__tests/WalletPermissionsManager.encryption.test.js +335 -0
- package/out/src/__tests/WalletPermissionsManager.encryption.test.js.map +1 -0
- package/out/src/__tests/WalletPermissionsManager.fixtures.d.ts +87 -0
- package/out/src/__tests/WalletPermissionsManager.fixtures.d.ts.map +1 -0
- package/out/src/__tests/WalletPermissionsManager.fixtures.js +281 -0
- package/out/src/__tests/WalletPermissionsManager.fixtures.js.map +1 -0
- package/out/src/__tests/WalletPermissionsManager.flows.test.d.ts +2 -0
- package/out/src/__tests/WalletPermissionsManager.flows.test.d.ts.map +1 -0
- package/out/src/__tests/WalletPermissionsManager.flows.test.js +380 -0
- package/out/src/__tests/WalletPermissionsManager.flows.test.js.map +1 -0
- package/out/src/__tests/WalletPermissionsManager.initialization.test.d.ts +2 -0
- package/out/src/__tests/WalletPermissionsManager.initialization.test.d.ts.map +1 -0
- package/out/src/__tests/WalletPermissionsManager.initialization.test.js +227 -0
- package/out/src/__tests/WalletPermissionsManager.initialization.test.js.map +1 -0
- package/out/src/__tests/WalletPermissionsManager.pmodules.test.d.ts +2 -0
- package/out/src/__tests/WalletPermissionsManager.pmodules.test.d.ts.map +1 -0
- package/out/src/__tests/WalletPermissionsManager.pmodules.test.js +624 -0
- package/out/src/__tests/WalletPermissionsManager.pmodules.test.js.map +1 -0
- package/out/src/__tests/WalletPermissionsManager.proxying.test.d.ts +2 -0
- package/out/src/__tests/WalletPermissionsManager.proxying.test.d.ts.map +1 -0
- package/out/src/__tests/WalletPermissionsManager.proxying.test.js +584 -0
- package/out/src/__tests/WalletPermissionsManager.proxying.test.js.map +1 -0
- package/out/src/__tests/WalletPermissionsManager.tokens.test.d.ts +2 -0
- package/out/src/__tests/WalletPermissionsManager.tokens.test.d.ts.map +1 -0
- package/out/src/__tests/WalletPermissionsManager.tokens.test.js +415 -0
- package/out/src/__tests/WalletPermissionsManager.tokens.test.js.map +1 -0
- package/out/src/index.all.d.ts +24 -0
- package/out/src/index.all.d.ts.map +1 -0
- package/out/src/index.all.js +63 -0
- package/out/src/index.all.js.map +1 -0
- package/out/src/index.client.d.ts +23 -0
- package/out/src/index.client.d.ts.map +1 -0
- package/out/src/index.client.js +62 -0
- package/out/src/index.client.js.map +1 -0
- package/out/src/index.d.ts +2 -0
- package/out/src/index.d.ts.map +1 -0
- package/out/src/index.js +18 -0
- package/out/src/index.js.map +1 -0
- package/out/src/index.mobile.d.ts +20 -0
- package/out/src/index.mobile.d.ts.map +1 -0
- package/out/src/index.mobile.js +59 -0
- package/out/src/index.mobile.js.map +1 -0
- package/out/src/monitor/Monitor.d.ts +148 -0
- package/out/src/monitor/Monitor.d.ts.map +1 -0
- package/out/src/monitor/Monitor.js +317 -0
- package/out/src/monitor/Monitor.js.map +1 -0
- package/out/src/monitor/MonitorDaemon.d.ts +38 -0
- package/out/src/monitor/MonitorDaemon.d.ts.map +1 -0
- package/out/src/monitor/MonitorDaemon.js +142 -0
- package/out/src/monitor/MonitorDaemon.js.map +1 -0
- package/out/src/monitor/__test/MonitorDaemon.man.test.d.ts +2 -0
- package/out/src/monitor/__test/MonitorDaemon.man.test.d.ts.map +1 -0
- package/out/src/monitor/__test/MonitorDaemon.man.test.js +41 -0
- package/out/src/monitor/__test/MonitorDaemon.man.test.js.map +1 -0
- package/out/src/monitor/tasks/TaskCheckForProofs.d.ts +53 -0
- package/out/src/monitor/tasks/TaskCheckForProofs.d.ts.map +1 -0
- package/out/src/monitor/tasks/TaskCheckForProofs.js +213 -0
- package/out/src/monitor/tasks/TaskCheckForProofs.js.map +1 -0
- package/out/src/monitor/tasks/TaskCheckNoSends.d.ts +33 -0
- package/out/src/monitor/tasks/TaskCheckNoSends.d.ts.map +1 -0
- package/out/src/monitor/tasks/TaskCheckNoSends.js +71 -0
- package/out/src/monitor/tasks/TaskCheckNoSends.js.map +1 -0
- package/out/src/monitor/tasks/TaskClock.d.ts +14 -0
- package/out/src/monitor/tasks/TaskClock.d.ts.map +1 -0
- package/out/src/monitor/tasks/TaskClock.js +28 -0
- package/out/src/monitor/tasks/TaskClock.js.map +1 -0
- package/out/src/monitor/tasks/TaskFailAbandoned.d.ts +20 -0
- package/out/src/monitor/tasks/TaskFailAbandoned.d.ts.map +1 -0
- package/out/src/monitor/tasks/TaskFailAbandoned.js +52 -0
- package/out/src/monitor/tasks/TaskFailAbandoned.js.map +1 -0
- package/out/src/monitor/tasks/TaskMonitorCallHistory.d.ts +12 -0
- package/out/src/monitor/tasks/TaskMonitorCallHistory.d.ts.map +1 -0
- package/out/src/monitor/tasks/TaskMonitorCallHistory.js +24 -0
- package/out/src/monitor/tasks/TaskMonitorCallHistory.js.map +1 -0
- package/out/src/monitor/tasks/TaskNewHeader.d.ts +50 -0
- package/out/src/monitor/tasks/TaskNewHeader.d.ts.map +1 -0
- package/out/src/monitor/tasks/TaskNewHeader.js +84 -0
- package/out/src/monitor/tasks/TaskNewHeader.js.map +1 -0
- package/out/src/monitor/tasks/TaskPurge.d.ts +45 -0
- package/out/src/monitor/tasks/TaskPurge.d.ts.map +1 -0
- package/out/src/monitor/tasks/TaskPurge.js +34 -0
- package/out/src/monitor/tasks/TaskPurge.js.map +1 -0
- package/out/src/monitor/tasks/TaskReorg.d.ts +43 -0
- package/out/src/monitor/tasks/TaskReorg.d.ts.map +1 -0
- package/out/src/monitor/tasks/TaskReorg.js +82 -0
- package/out/src/monitor/tasks/TaskReorg.js.map +1 -0
- package/out/src/monitor/tasks/TaskReviewStatus.d.ts +26 -0
- package/out/src/monitor/tasks/TaskReviewStatus.d.ts.map +1 -0
- package/out/src/monitor/tasks/TaskReviewStatus.js +43 -0
- package/out/src/monitor/tasks/TaskReviewStatus.js.map +1 -0
- package/out/src/monitor/tasks/TaskSendWaiting.d.ts +35 -0
- package/out/src/monitor/tasks/TaskSendWaiting.d.ts.map +1 -0
- package/out/src/monitor/tasks/TaskSendWaiting.js +117 -0
- package/out/src/monitor/tasks/TaskSendWaiting.js.map +1 -0
- package/out/src/monitor/tasks/TaskSyncWhenIdle.d.ts +12 -0
- package/out/src/monitor/tasks/TaskSyncWhenIdle.d.ts.map +1 -0
- package/out/src/monitor/tasks/TaskSyncWhenIdle.js +22 -0
- package/out/src/monitor/tasks/TaskSyncWhenIdle.js.map +1 -0
- package/out/src/monitor/tasks/TaskUnFail.d.ts +41 -0
- package/out/src/monitor/tasks/TaskUnFail.d.ts.map +1 -0
- package/out/src/monitor/tasks/TaskUnFail.js +145 -0
- package/out/src/monitor/tasks/TaskUnFail.js.map +1 -0
- package/out/src/monitor/tasks/WalletMonitorTask.d.ts +40 -0
- package/out/src/monitor/tasks/WalletMonitorTask.d.ts.map +1 -0
- package/out/src/monitor/tasks/WalletMonitorTask.js +37 -0
- package/out/src/monitor/tasks/WalletMonitorTask.js.map +1 -0
- package/out/src/sdk/CertOpsWallet.d.ts +7 -0
- package/out/src/sdk/CertOpsWallet.d.ts.map +1 -0
- package/out/src/sdk/CertOpsWallet.js +3 -0
- package/out/src/sdk/CertOpsWallet.js.map +1 -0
- package/out/src/sdk/PrivilegedKeyManager.d.ts +125 -0
- package/out/src/sdk/PrivilegedKeyManager.d.ts.map +1 -0
- package/out/src/sdk/PrivilegedKeyManager.js +293 -0
- package/out/src/sdk/PrivilegedKeyManager.js.map +1 -0
- package/out/src/sdk/WERR_errors.d.ts +136 -0
- package/out/src/sdk/WERR_errors.d.ts.map +1 -0
- package/out/src/sdk/WERR_errors.js +218 -0
- package/out/src/sdk/WERR_errors.js.map +1 -0
- package/out/src/sdk/WalletError.d.ts +63 -0
- package/out/src/sdk/WalletError.d.ts.map +1 -0
- package/out/src/sdk/WalletError.js +169 -0
- package/out/src/sdk/WalletError.js.map +1 -0
- package/out/src/sdk/WalletErrorFromJson.d.ts +12 -0
- package/out/src/sdk/WalletErrorFromJson.d.ts.map +1 -0
- package/out/src/sdk/WalletErrorFromJson.js +69 -0
- package/out/src/sdk/WalletErrorFromJson.js.map +1 -0
- package/out/src/sdk/WalletServices.interfaces.d.ts +618 -0
- package/out/src/sdk/WalletServices.interfaces.d.ts.map +1 -0
- package/out/src/sdk/WalletServices.interfaces.js +3 -0
- package/out/src/sdk/WalletServices.interfaces.js.map +1 -0
- package/out/src/sdk/WalletSigner.interfaces.d.ts +10 -0
- package/out/src/sdk/WalletSigner.interfaces.d.ts.map +1 -0
- package/out/src/sdk/WalletSigner.interfaces.js +3 -0
- package/out/src/sdk/WalletSigner.interfaces.js.map +1 -0
- package/out/src/sdk/WalletStorage.interfaces.d.ts +522 -0
- package/out/src/sdk/WalletStorage.interfaces.d.ts.map +1 -0
- package/out/src/sdk/WalletStorage.interfaces.js +3 -0
- package/out/src/sdk/WalletStorage.interfaces.js.map +1 -0
- package/out/src/sdk/__test/CertificateLifeCycle.test.d.ts +2 -0
- package/out/src/sdk/__test/CertificateLifeCycle.test.d.ts.map +1 -0
- package/out/src/sdk/__test/CertificateLifeCycle.test.js +62 -0
- package/out/src/sdk/__test/CertificateLifeCycle.test.js.map +1 -0
- package/out/src/sdk/__test/PrivilegedKeyManager.test.d.ts +2 -0
- package/out/src/sdk/__test/PrivilegedKeyManager.test.d.ts.map +1 -0
- package/out/src/sdk/__test/PrivilegedKeyManager.test.js +647 -0
- package/out/src/sdk/__test/PrivilegedKeyManager.test.js.map +1 -0
- package/out/src/sdk/__test/WalletError.test.d.ts +2 -0
- package/out/src/sdk/__test/WalletError.test.d.ts.map +1 -0
- package/out/src/sdk/__test/WalletError.test.js +255 -0
- package/out/src/sdk/__test/WalletError.test.js.map +1 -0
- package/out/src/sdk/__test/validationHelpers.test.d.ts +2 -0
- package/out/src/sdk/__test/validationHelpers.test.d.ts.map +1 -0
- package/out/src/sdk/__test/validationHelpers.test.js +20 -0
- package/out/src/sdk/__test/validationHelpers.test.js.map +1 -0
- package/out/src/sdk/index.d.ts +11 -0
- package/out/src/sdk/index.d.ts.map +1 -0
- package/out/src/sdk/index.js +29 -0
- package/out/src/sdk/index.js.map +1 -0
- package/out/src/sdk/types.d.ts +169 -0
- package/out/src/sdk/types.d.ts.map +1 -0
- package/out/src/sdk/types.js +90 -0
- package/out/src/sdk/types.js.map +1 -0
- package/out/src/services/ServiceCollection.d.ts +79 -0
- package/out/src/services/ServiceCollection.d.ts.map +1 -0
- package/out/src/services/ServiceCollection.js +192 -0
- package/out/src/services/ServiceCollection.js.map +1 -0
- package/out/src/services/Services.d.ts +71 -0
- package/out/src/services/Services.d.ts.map +1 -0
- package/out/src/services/Services.js +532 -0
- package/out/src/services/Services.js.map +1 -0
- package/out/src/services/__tests/ARC.man.test.d.ts +2 -0
- package/out/src/services/__tests/ARC.man.test.d.ts.map +1 -0
- package/out/src/services/__tests/ARC.man.test.js +104 -0
- package/out/src/services/__tests/ARC.man.test.js.map +1 -0
- package/out/src/services/__tests/ARC.timeout.man.test.d.ts +2 -0
- package/out/src/services/__tests/ARC.timeout.man.test.d.ts.map +1 -0
- package/out/src/services/__tests/ARC.timeout.man.test.js +74 -0
- package/out/src/services/__tests/ARC.timeout.man.test.js.map +1 -0
- package/out/src/services/__tests/ArcGorillaPool.man.test.d.ts +2 -0
- package/out/src/services/__tests/ArcGorillaPool.man.test.d.ts.map +1 -0
- package/out/src/services/__tests/ArcGorillaPool.man.test.js +93 -0
- package/out/src/services/__tests/ArcGorillaPool.man.test.js.map +1 -0
- package/out/src/services/__tests/arcServices.test.d.ts +2 -0
- package/out/src/services/__tests/arcServices.test.d.ts.map +1 -0
- package/out/src/services/__tests/arcServices.test.js +7 -0
- package/out/src/services/__tests/arcServices.test.js.map +1 -0
- package/out/src/services/__tests/bitrails.test.d.ts +2 -0
- package/out/src/services/__tests/bitrails.test.d.ts.map +1 -0
- package/out/src/services/__tests/bitrails.test.js +53 -0
- package/out/src/services/__tests/bitrails.test.js.map +1 -0
- package/out/src/services/__tests/getMerklePath.test.d.ts +2 -0
- package/out/src/services/__tests/getMerklePath.test.d.ts.map +1 -0
- package/out/src/services/__tests/getMerklePath.test.js +16 -0
- package/out/src/services/__tests/getMerklePath.test.js.map +1 -0
- package/out/src/services/__tests/getRawTx.test.d.ts +2 -0
- package/out/src/services/__tests/getRawTx.test.d.ts.map +1 -0
- package/out/src/services/__tests/getRawTx.test.js +13 -0
- package/out/src/services/__tests/getRawTx.test.js.map +1 -0
- package/out/src/services/__tests/postBeef.test.d.ts +2 -0
- package/out/src/services/__tests/postBeef.test.d.ts.map +1 -0
- package/out/src/services/__tests/postBeef.test.js +101 -0
- package/out/src/services/__tests/postBeef.test.js.map +1 -0
- package/out/src/services/__tests/verifyBeef.test.d.ts +2 -0
- package/out/src/services/__tests/verifyBeef.test.d.ts.map +1 -0
- package/out/src/services/__tests/verifyBeef.test.js +43 -0
- package/out/src/services/__tests/verifyBeef.test.js.map +1 -0
- package/out/src/services/chaintracker/BHServiceClient.d.ts +39 -0
- package/out/src/services/chaintracker/BHServiceClient.d.ts.map +1 -0
- package/out/src/services/chaintracker/BHServiceClient.js +174 -0
- package/out/src/services/chaintracker/BHServiceClient.js.map +1 -0
- package/out/src/services/chaintracker/ChaintracksChainTracker.d.ts +15 -0
- package/out/src/services/chaintracker/ChaintracksChainTracker.d.ts.map +1 -0
- package/out/src/services/chaintracker/ChaintracksChainTracker.js +53 -0
- package/out/src/services/chaintracker/ChaintracksChainTracker.js.map +1 -0
- package/out/src/services/chaintracker/__tests/ChaintracksChainTracker.test.d.ts +2 -0
- package/out/src/services/chaintracker/__tests/ChaintracksChainTracker.test.d.ts.map +1 -0
- package/out/src/services/chaintracker/__tests/ChaintracksChainTracker.test.js +25 -0
- package/out/src/services/chaintracker/__tests/ChaintracksChainTracker.test.js.map +1 -0
- package/out/src/services/chaintracker/__tests/ChaintracksServiceClient.test.d.ts +2 -0
- package/out/src/services/chaintracker/__tests/ChaintracksServiceClient.test.d.ts.map +1 -0
- package/out/src/services/chaintracker/__tests/ChaintracksServiceClient.test.js +27 -0
- package/out/src/services/chaintracker/__tests/ChaintracksServiceClient.test.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Api/BlockHeaderApi.d.ts +55 -0
- package/out/src/services/chaintracker/chaintracks/Api/BlockHeaderApi.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Api/BlockHeaderApi.js +38 -0
- package/out/src/services/chaintracker/chaintracks/Api/BlockHeaderApi.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Api/BulkIngestorApi.d.ts +70 -0
- package/out/src/services/chaintracker/chaintracks/Api/BulkIngestorApi.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Api/BulkIngestorApi.js +3 -0
- package/out/src/services/chaintracker/chaintracks/Api/BulkIngestorApi.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Api/BulkStorageApi.d.ts +81 -0
- package/out/src/services/chaintracker/chaintracks/Api/BulkStorageApi.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Api/BulkStorageApi.js +3 -0
- package/out/src/services/chaintracker/chaintracks/Api/BulkStorageApi.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Api/ChaintracksApi.d.ts +54 -0
- package/out/src/services/chaintracker/chaintracks/Api/ChaintracksApi.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Api/ChaintracksApi.js +3 -0
- package/out/src/services/chaintracker/chaintracks/Api/ChaintracksApi.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Api/ChaintracksClientApi.d.ts +163 -0
- package/out/src/services/chaintracker/chaintracks/Api/ChaintracksClientApi.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Api/ChaintracksClientApi.js +3 -0
- package/out/src/services/chaintracker/chaintracks/Api/ChaintracksClientApi.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Api/ChaintracksFetchApi.d.ts +18 -0
- package/out/src/services/chaintracker/chaintracks/Api/ChaintracksFetchApi.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Api/ChaintracksFetchApi.js +3 -0
- package/out/src/services/chaintracker/chaintracks/Api/ChaintracksFetchApi.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Api/ChaintracksFsApi.d.ts +55 -0
- package/out/src/services/chaintracker/chaintracks/Api/ChaintracksFsApi.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Api/ChaintracksFsApi.js +3 -0
- package/out/src/services/chaintracker/chaintracks/Api/ChaintracksFsApi.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Api/ChaintracksStorageApi.d.ts +338 -0
- package/out/src/services/chaintracker/chaintracks/Api/ChaintracksStorageApi.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Api/ChaintracksStorageApi.js +3 -0
- package/out/src/services/chaintracker/chaintracks/Api/ChaintracksStorageApi.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Api/LiveIngestorApi.d.ts +19 -0
- package/out/src/services/chaintracker/chaintracks/Api/LiveIngestorApi.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Api/LiveIngestorApi.js +3 -0
- package/out/src/services/chaintracker/chaintracks/Api/LiveIngestorApi.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Chaintracks.d.ts +101 -0
- package/out/src/services/chaintracker/chaintracks/Chaintracks.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Chaintracks.js +550 -0
- package/out/src/services/chaintracker/chaintracks/Chaintracks.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/ChaintracksService.d.ts +30 -0
- package/out/src/services/chaintracker/chaintracks/ChaintracksService.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/ChaintracksService.js +157 -0
- package/out/src/services/chaintracker/chaintracks/ChaintracksService.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/ChaintracksServiceClient.d.ts +38 -0
- package/out/src/services/chaintracker/chaintracks/ChaintracksServiceClient.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/ChaintracksServiceClient.js +139 -0
- package/out/src/services/chaintracker/chaintracks/ChaintracksServiceClient.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorBase.d.ts +60 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorBase.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorBase.js +119 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorBase.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorCDN.d.ts +76 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorCDN.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorCDN.js +114 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorCDN.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorCDNBabbage.d.ts +13 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorCDNBabbage.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorCDNBabbage.js +20 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorCDNBabbage.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorWhatsOnChainCdn.d.ts +62 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorWhatsOnChainCdn.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorWhatsOnChainCdn.js +59 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorWhatsOnChainCdn.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorWhatsOnChainWs.d.ts +23 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorWhatsOnChainWs.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorWhatsOnChainWs.js +57 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/BulkIngestorWhatsOnChainWs.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorBase.d.ts +62 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorBase.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorBase.js +42 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorBase.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorTeranodeP2P.d.ts +20 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorTeranodeP2P.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorTeranodeP2P.js +44 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorTeranodeP2P.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorWhatsOnChainPoll.d.ts +51 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorWhatsOnChainPoll.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorWhatsOnChainPoll.js +55 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorWhatsOnChainPoll.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorWhatsOnChainWs.d.ts +16 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorWhatsOnChainWs.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorWhatsOnChainWs.js +53 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/LiveIngestorWhatsOnChainWs.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/WhatsOnChainIngestorWs.d.ts +171 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/WhatsOnChainIngestorWs.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/WhatsOnChainIngestorWs.js +501 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/WhatsOnChainIngestorWs.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/WhatsOnChainServices.d.ts +89 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/WhatsOnChainServices.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/WhatsOnChainServices.js +137 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/WhatsOnChainServices.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/__tests/BulkIngestorCDNBabbage.test.d.ts +2 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/__tests/BulkIngestorCDNBabbage.test.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/__tests/BulkIngestorCDNBabbage.test.js +50 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/__tests/BulkIngestorCDNBabbage.test.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/__tests/LiveIngestorWhatsOnChainPoll.test.d.ts +2 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/__tests/LiveIngestorWhatsOnChainPoll.test.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/__tests/LiveIngestorWhatsOnChainPoll.test.js +34 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/__tests/LiveIngestorWhatsOnChainPoll.test.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/__tests/WhatsOnChainServices.test.d.ts +2 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/__tests/WhatsOnChainServices.test.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/__tests/WhatsOnChainServices.test.js +102 -0
- package/out/src/services/chaintracker/chaintracks/Ingest/__tests/WhatsOnChainServices.test.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Storage/BulkStorageBase.d.ts +23 -0
- package/out/src/services/chaintracker/chaintracks/Storage/BulkStorageBase.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Storage/BulkStorageBase.js +68 -0
- package/out/src/services/chaintracker/chaintracks/Storage/BulkStorageBase.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksKnexMigrations.d.ts +24 -0
- package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksKnexMigrations.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksKnexMigrations.js +82 -0
- package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksKnexMigrations.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageBase.d.ts +68 -0
- package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageBase.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageBase.js +290 -0
- package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageBase.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageIdb.d.ts +92 -0
- package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageIdb.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageIdb.js +465 -0
- package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageIdb.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageKnex.d.ts +62 -0
- package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageKnex.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageKnex.js +378 -0
- package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageKnex.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageMemory.d.ts +5 -0
- package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageMemory.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageMemory.js +24 -0
- package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageMemory.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageNoDb.d.ts +37 -0
- package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageNoDb.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageNoDb.js +260 -0
- package/out/src/services/chaintracker/chaintracks/Storage/ChaintracksStorageNoDb.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Storage/__tests/ChaintracksStorageIdb.test.d.ts +2 -0
- package/out/src/services/chaintracker/chaintracks/Storage/__tests/ChaintracksStorageIdb.test.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Storage/__tests/ChaintracksStorageIdb.test.js +81 -0
- package/out/src/services/chaintracker/chaintracks/Storage/__tests/ChaintracksStorageIdb.test.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Storage/__tests/ChaintracksStorageKnex.test.d.ts +2 -0
- package/out/src/services/chaintracker/chaintracks/Storage/__tests/ChaintracksStorageKnex.test.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/Storage/__tests/ChaintracksStorageKnex.test.js +39 -0
- package/out/src/services/chaintracker/chaintracks/Storage/__tests/ChaintracksStorageKnex.test.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/__tests/Chaintracks.test.d.ts +2 -0
- package/out/src/services/chaintracker/chaintracks/__tests/Chaintracks.test.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/__tests/Chaintracks.test.js +67 -0
- package/out/src/services/chaintracker/chaintracks/__tests/Chaintracks.test.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/__tests/ChaintracksClientApi.test.d.ts +2 -0
- package/out/src/services/chaintracker/chaintracks/__tests/ChaintracksClientApi.test.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/__tests/ChaintracksClientApi.test.js +160 -0
- package/out/src/services/chaintracker/chaintracks/__tests/ChaintracksClientApi.test.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/__tests/LocalCdnServer.d.ts +12 -0
- package/out/src/services/chaintracker/chaintracks/__tests/LocalCdnServer.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/__tests/LocalCdnServer.js +69 -0
- package/out/src/services/chaintracker/chaintracks/__tests/LocalCdnServer.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/__tests/createIdbChaintracks.test.d.ts +2 -0
- package/out/src/services/chaintracker/chaintracks/__tests/createIdbChaintracks.test.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/__tests/createIdbChaintracks.test.js +51 -0
- package/out/src/services/chaintracker/chaintracks/__tests/createIdbChaintracks.test.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/createDefaultIdbChaintracksOptions.d.ts +5 -0
- package/out/src/services/chaintracker/chaintracks/createDefaultIdbChaintracksOptions.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/createDefaultIdbChaintracksOptions.js +68 -0
- package/out/src/services/chaintracker/chaintracks/createDefaultIdbChaintracksOptions.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/createDefaultKnexChaintracksOptions.d.ts +12 -0
- package/out/src/services/chaintracker/chaintracks/createDefaultKnexChaintracksOptions.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/createDefaultKnexChaintracksOptions.js +85 -0
- package/out/src/services/chaintracker/chaintracks/createDefaultKnexChaintracksOptions.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/createDefaultNoDbChaintracksOptions.d.ts +5 -0
- package/out/src/services/chaintracker/chaintracks/createDefaultNoDbChaintracksOptions.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/createDefaultNoDbChaintracksOptions.js +68 -0
- package/out/src/services/chaintracker/chaintracks/createDefaultNoDbChaintracksOptions.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/createIdbChaintracks.d.ts +13 -0
- package/out/src/services/chaintracker/chaintracks/createIdbChaintracks.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/createIdbChaintracks.js +27 -0
- package/out/src/services/chaintracker/chaintracks/createIdbChaintracks.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/createKnexChaintracks.d.ts +14 -0
- package/out/src/services/chaintracker/chaintracks/createKnexChaintracks.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/createKnexChaintracks.js +27 -0
- package/out/src/services/chaintracker/chaintracks/createKnexChaintracks.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/createNoDbChaintracks.d.ts +13 -0
- package/out/src/services/chaintracker/chaintracks/createNoDbChaintracks.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/createNoDbChaintracks.js +27 -0
- package/out/src/services/chaintracker/chaintracks/createNoDbChaintracks.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/index.all.d.ts +10 -0
- package/out/src/services/chaintracker/chaintracks/index.all.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/index.all.js +26 -0
- package/out/src/services/chaintracker/chaintracks/index.all.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/index.client.d.ts +4 -0
- package/out/src/services/chaintracker/chaintracks/index.client.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/index.client.js +20 -0
- package/out/src/services/chaintracker/chaintracks/index.client.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/index.mobile.d.ts +30 -0
- package/out/src/services/chaintracker/chaintracks/index.mobile.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/index.mobile.js +68 -0
- package/out/src/services/chaintracker/chaintracks/index.mobile.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/BulkFileDataManager.d.ts +155 -0
- package/out/src/services/chaintracker/chaintracks/util/BulkFileDataManager.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/BulkFileDataManager.js +848 -0
- package/out/src/services/chaintracker/chaintracks/util/BulkFileDataManager.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/BulkFileDataReader.d.ts +22 -0
- package/out/src/services/chaintracker/chaintracks/util/BulkFileDataReader.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/BulkFileDataReader.js +60 -0
- package/out/src/services/chaintracker/chaintracks/util/BulkFileDataReader.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/BulkFilesReader.d.ts +78 -0
- package/out/src/services/chaintracker/chaintracks/util/BulkFilesReader.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/BulkFilesReader.js +261 -0
- package/out/src/services/chaintracker/chaintracks/util/BulkFilesReader.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/BulkHeaderFile.d.ts +129 -0
- package/out/src/services/chaintracker/chaintracks/util/BulkHeaderFile.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/BulkHeaderFile.js +145 -0
- package/out/src/services/chaintracker/chaintracks/util/BulkHeaderFile.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/ChaintracksFetch.d.ts +14 -0
- package/out/src/services/chaintracker/chaintracks/util/ChaintracksFetch.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/ChaintracksFetch.js +67 -0
- package/out/src/services/chaintracker/chaintracks/util/ChaintracksFetch.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/ChaintracksFs.d.ts +47 -0
- package/out/src/services/chaintracker/chaintracks/util/ChaintracksFs.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/ChaintracksFs.js +120 -0
- package/out/src/services/chaintracker/chaintracks/util/ChaintracksFs.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/HeightRange.d.ts +90 -0
- package/out/src/services/chaintracker/chaintracks/util/HeightRange.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/HeightRange.js +140 -0
- package/out/src/services/chaintracker/chaintracks/util/HeightRange.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/SingleWriterMultiReaderLock.d.ts +14 -0
- package/out/src/services/chaintracker/chaintracks/util/SingleWriterMultiReaderLock.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/SingleWriterMultiReaderLock.js +88 -0
- package/out/src/services/chaintracker/chaintracks/util/SingleWriterMultiReaderLock.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/__tests/BulkFileDataManager.test.d.ts +2 -0
- package/out/src/services/chaintracker/chaintracks/util/__tests/BulkFileDataManager.test.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/__tests/BulkFileDataManager.test.js +255 -0
- package/out/src/services/chaintracker/chaintracks/util/__tests/BulkFileDataManager.test.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/__tests/ChaintracksFetch.test.d.ts +2 -0
- package/out/src/services/chaintracker/chaintracks/util/__tests/ChaintracksFetch.test.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/__tests/ChaintracksFetch.test.js +56 -0
- package/out/src/services/chaintracker/chaintracks/util/__tests/ChaintracksFetch.test.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/__tests/HeightRange.test.d.ts +2 -0
- package/out/src/services/chaintracker/chaintracks/util/__tests/HeightRange.test.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/__tests/HeightRange.test.js +69 -0
- package/out/src/services/chaintracker/chaintracks/util/__tests/HeightRange.test.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/__tests/SingleWriterMultiReaderLock.test.d.ts +2 -0
- package/out/src/services/chaintracker/chaintracks/util/__tests/SingleWriterMultiReaderLock.test.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/__tests/SingleWriterMultiReaderLock.test.js +51 -0
- package/out/src/services/chaintracker/chaintracks/util/__tests/SingleWriterMultiReaderLock.test.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/blockHeaderUtilities.d.ts +159 -0
- package/out/src/services/chaintracker/chaintracks/util/blockHeaderUtilities.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/blockHeaderUtilities.js +520 -0
- package/out/src/services/chaintracker/chaintracks/util/blockHeaderUtilities.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/dirtyHashes.d.ts +20 -0
- package/out/src/services/chaintracker/chaintracks/util/dirtyHashes.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/dirtyHashes.js +31 -0
- package/out/src/services/chaintracker/chaintracks/util/dirtyHashes.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/validBulkHeaderFilesByFileHash.d.ts +37 -0
- package/out/src/services/chaintracker/chaintracks/util/validBulkHeaderFilesByFileHash.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/util/validBulkHeaderFilesByFileHash.js +432 -0
- package/out/src/services/chaintracker/chaintracks/util/validBulkHeaderFilesByFileHash.js.map +1 -0
- package/out/src/services/chaintracker/index.all.d.ts +4 -0
- package/out/src/services/chaintracker/index.all.d.ts.map +1 -0
- package/out/src/services/chaintracker/index.all.js +20 -0
- package/out/src/services/chaintracker/index.all.js.map +1 -0
- package/out/src/services/chaintracker/index.client.d.ts +4 -0
- package/out/src/services/chaintracker/index.client.d.ts.map +1 -0
- package/out/src/services/chaintracker/index.client.js +20 -0
- package/out/src/services/chaintracker/index.client.js.map +1 -0
- package/out/src/services/chaintracker/index.mobile.d.ts +4 -0
- package/out/src/services/chaintracker/index.mobile.d.ts.map +1 -0
- package/out/src/services/chaintracker/index.mobile.js +20 -0
- package/out/src/services/chaintracker/index.mobile.js.map +1 -0
- package/out/src/services/createDefaultWalletServicesOptions.d.ts +7 -0
- package/out/src/services/createDefaultWalletServicesOptions.d.ts.map +1 -0
- package/out/src/services/createDefaultWalletServicesOptions.js +65 -0
- package/out/src/services/createDefaultWalletServicesOptions.js.map +1 -0
- package/out/src/services/index.d.ts +2 -0
- package/out/src/services/index.d.ts.map +1 -0
- package/out/src/services/index.js +18 -0
- package/out/src/services/index.js.map +1 -0
- package/out/src/services/providers/ARC.d.ts +92 -0
- package/out/src/services/providers/ARC.d.ts.map +1 -0
- package/out/src/services/providers/ARC.js +270 -0
- package/out/src/services/providers/ARC.js.map +1 -0
- package/out/src/services/providers/Bitails.d.ts +50 -0
- package/out/src/services/providers/Bitails.d.ts.map +1 -0
- package/out/src/services/providers/Bitails.js +224 -0
- package/out/src/services/providers/Bitails.js.map +1 -0
- package/out/src/services/providers/SdkWhatsOnChain.d.ts +21 -0
- package/out/src/services/providers/SdkWhatsOnChain.d.ts.map +1 -0
- package/out/src/services/providers/SdkWhatsOnChain.js +67 -0
- package/out/src/services/providers/SdkWhatsOnChain.js.map +1 -0
- package/out/src/services/providers/WhatsOnChain.d.ts +130 -0
- package/out/src/services/providers/WhatsOnChain.d.ts.map +1 -0
- package/out/src/services/providers/WhatsOnChain.js +679 -0
- package/out/src/services/providers/WhatsOnChain.js.map +1 -0
- package/out/src/services/providers/__tests/WhatsOnChain.test.d.ts +2 -0
- package/out/src/services/providers/__tests/WhatsOnChain.test.d.ts.map +1 -0
- package/out/src/services/providers/__tests/WhatsOnChain.test.js +191 -0
- package/out/src/services/providers/__tests/WhatsOnChain.test.js.map +1 -0
- package/out/src/services/providers/__tests/exchangeRates.test.d.ts +2 -0
- package/out/src/services/providers/__tests/exchangeRates.test.d.ts.map +1 -0
- package/out/src/services/providers/__tests/exchangeRates.test.js +19 -0
- package/out/src/services/providers/__tests/exchangeRates.test.js.map +1 -0
- package/out/src/services/providers/exchangeRates.d.ts +12 -0
- package/out/src/services/providers/exchangeRates.d.ts.map +1 -0
- package/out/src/services/providers/exchangeRates.js +237 -0
- package/out/src/services/providers/exchangeRates.js.map +1 -0
- package/out/src/services/providers/getBeefForTxid.d.ts +4 -0
- package/out/src/services/providers/getBeefForTxid.d.ts.map +1 -0
- package/out/src/services/providers/getBeefForTxid.js +286 -0
- package/out/src/services/providers/getBeefForTxid.js.map +1 -0
- package/out/src/signer/WalletSigner.d.ts +11 -0
- package/out/src/signer/WalletSigner.d.ts.map +1 -0
- package/out/src/signer/WalletSigner.js +13 -0
- package/out/src/signer/WalletSigner.js.map +1 -0
- package/out/src/signer/methods/acquireDirectCertificate.d.ts +5 -0
- package/out/src/signer/methods/acquireDirectCertificate.d.ts.map +1 -0
- package/out/src/signer/methods/acquireDirectCertificate.js +45 -0
- package/out/src/signer/methods/acquireDirectCertificate.js.map +1 -0
- package/out/src/signer/methods/buildSignableTransaction.d.ts +15 -0
- package/out/src/signer/methods/buildSignableTransaction.d.ts.map +1 -0
- package/out/src/signer/methods/buildSignableTransaction.js +142 -0
- package/out/src/signer/methods/buildSignableTransaction.js.map +1 -0
- package/out/src/signer/methods/completeSignedTransaction.d.ts +10 -0
- package/out/src/signer/methods/completeSignedTransaction.d.ts.map +1 -0
- package/out/src/signer/methods/completeSignedTransaction.js +106 -0
- package/out/src/signer/methods/completeSignedTransaction.js.map +1 -0
- package/out/src/signer/methods/createAction.d.ts +14 -0
- package/out/src/signer/methods/createAction.d.ts.map +1 -0
- package/out/src/signer/methods/createAction.js +117 -0
- package/out/src/signer/methods/createAction.js.map +1 -0
- package/out/src/signer/methods/internalizeAction.d.ts +32 -0
- package/out/src/signer/methods/internalizeAction.d.ts.map +1 -0
- package/out/src/signer/methods/internalizeAction.js +93 -0
- package/out/src/signer/methods/internalizeAction.js.map +1 -0
- package/out/src/signer/methods/proveCertificate.d.ts +5 -0
- package/out/src/signer/methods/proveCertificate.d.ts.map +1 -0
- package/out/src/signer/methods/proveCertificate.js +29 -0
- package/out/src/signer/methods/proveCertificate.js.map +1 -0
- package/out/src/signer/methods/signAction.d.ts +11 -0
- package/out/src/signer/methods/signAction.d.ts.map +1 -0
- package/out/src/signer/methods/signAction.js +41 -0
- package/out/src/signer/methods/signAction.js.map +1 -0
- package/out/src/storage/StorageIdb.d.ts +210 -0
- package/out/src/storage/StorageIdb.d.ts.map +1 -0
- package/out/src/storage/StorageIdb.js +2297 -0
- package/out/src/storage/StorageIdb.js.map +1 -0
- package/out/src/storage/StorageKnex.d.ts +178 -0
- package/out/src/storage/StorageKnex.d.ts.map +1 -0
- package/out/src/storage/StorageKnex.js +1218 -0
- package/out/src/storage/StorageKnex.js.map +1 -0
- package/out/src/storage/StorageProvider.d.ts +222 -0
- package/out/src/storage/StorageProvider.d.ts.map +1 -0
- package/out/src/storage/StorageProvider.js +567 -0
- package/out/src/storage/StorageProvider.js.map +1 -0
- package/out/src/storage/StorageReader.d.ts +77 -0
- package/out/src/storage/StorageReader.d.ts.map +1 -0
- package/out/src/storage/StorageReader.js +163 -0
- package/out/src/storage/StorageReader.js.map +1 -0
- package/out/src/storage/StorageReaderWriter.d.ts +102 -0
- package/out/src/storage/StorageReaderWriter.d.ts.map +1 -0
- package/out/src/storage/StorageReaderWriter.js +338 -0
- package/out/src/storage/StorageReaderWriter.js.map +1 -0
- package/out/src/storage/StorageSyncReader.d.ts +18 -0
- package/out/src/storage/StorageSyncReader.d.ts.map +1 -0
- package/out/src/storage/StorageSyncReader.js +71 -0
- package/out/src/storage/StorageSyncReader.js.map +1 -0
- package/out/src/storage/WalletStorageManager.d.ts +221 -0
- package/out/src/storage/WalletStorageManager.d.ts.map +1 -0
- package/out/src/storage/WalletStorageManager.js +819 -0
- package/out/src/storage/WalletStorageManager.js.map +1 -0
- package/out/src/storage/__test/StorageIdb.test.d.ts +2 -0
- package/out/src/storage/__test/StorageIdb.test.d.ts.map +1 -0
- package/out/src/storage/__test/StorageIdb.test.js +44 -0
- package/out/src/storage/__test/StorageIdb.test.js.map +1 -0
- package/out/src/storage/__test/WalletStorageManager.test.d.ts +2 -0
- package/out/src/storage/__test/WalletStorageManager.test.d.ts.map +1 -0
- package/out/src/storage/__test/WalletStorageManager.test.js +254 -0
- package/out/src/storage/__test/WalletStorageManager.test.js.map +1 -0
- package/out/src/storage/__test/adminStats.man.test.d.ts +2 -0
- package/out/src/storage/__test/adminStats.man.test.d.ts.map +1 -0
- package/out/src/storage/__test/adminStats.man.test.js +78 -0
- package/out/src/storage/__test/adminStats.man.test.js.map +1 -0
- package/out/src/storage/__test/getBeefForTransaction.test.d.ts +2 -0
- package/out/src/storage/__test/getBeefForTransaction.test.d.ts.map +1 -0
- package/out/src/storage/__test/getBeefForTransaction.test.js +300 -0
- package/out/src/storage/__test/getBeefForTransaction.test.js.map +1 -0
- package/out/src/storage/index.all.d.ts +12 -0
- package/out/src/storage/index.all.d.ts.map +1 -0
- package/out/src/storage/index.all.js +51 -0
- package/out/src/storage/index.all.js.map +1 -0
- package/out/src/storage/index.client.d.ts +8 -0
- package/out/src/storage/index.client.d.ts.map +1 -0
- package/out/src/storage/index.client.js +24 -0
- package/out/src/storage/index.client.js.map +1 -0
- package/out/src/storage/index.mobile.d.ts +7 -0
- package/out/src/storage/index.mobile.d.ts.map +1 -0
- package/out/src/storage/index.mobile.js +23 -0
- package/out/src/storage/index.mobile.js.map +1 -0
- package/out/src/storage/methods/ListActionsSpecOp.d.ts +18 -0
- package/out/src/storage/methods/ListActionsSpecOp.d.ts.map +1 -0
- package/out/src/storage/methods/ListActionsSpecOp.js +40 -0
- package/out/src/storage/methods/ListActionsSpecOp.js.map +1 -0
- package/out/src/storage/methods/ListOutputsSpecOp.d.ts +26 -0
- package/out/src/storage/methods/ListOutputsSpecOp.d.ts.map +1 -0
- package/out/src/storage/methods/ListOutputsSpecOp.js +75 -0
- package/out/src/storage/methods/ListOutputsSpecOp.js.map +1 -0
- package/out/src/storage/methods/__test/GenerateChange/generateChangeSdk.test.d.ts +2 -0
- package/out/src/storage/methods/__test/GenerateChange/generateChangeSdk.test.d.ts.map +1 -0
- package/out/src/storage/methods/__test/GenerateChange/generateChangeSdk.test.js +959 -0
- package/out/src/storage/methods/__test/GenerateChange/generateChangeSdk.test.js.map +1 -0
- package/out/src/storage/methods/__test/GenerateChange/randomValsUsed1.d.ts +2 -0
- package/out/src/storage/methods/__test/GenerateChange/randomValsUsed1.d.ts.map +1 -0
- package/out/src/storage/methods/__test/GenerateChange/randomValsUsed1.js +24 -0
- package/out/src/storage/methods/__test/GenerateChange/randomValsUsed1.js.map +1 -0
- package/out/src/storage/methods/__test/offsetKey.test.d.ts +2 -0
- package/out/src/storage/methods/__test/offsetKey.test.d.ts.map +1 -0
- package/out/src/storage/methods/__test/offsetKey.test.js +216 -0
- package/out/src/storage/methods/__test/offsetKey.test.js.map +1 -0
- package/out/src/storage/methods/attemptToPostReqsToNetwork.d.ts +41 -0
- package/out/src/storage/methods/attemptToPostReqsToNetwork.d.ts.map +1 -0
- package/out/src/storage/methods/attemptToPostReqsToNetwork.js +324 -0
- package/out/src/storage/methods/attemptToPostReqsToNetwork.js.map +1 -0
- package/out/src/storage/methods/createAction.d.ts +13 -0
- package/out/src/storage/methods/createAction.d.ts.map +1 -0
- package/out/src/storage/methods/createAction.js +732 -0
- package/out/src/storage/methods/createAction.js.map +1 -0
- package/out/src/storage/methods/generateChange.d.ts +96 -0
- package/out/src/storage/methods/generateChange.d.ts.map +1 -0
- package/out/src/storage/methods/generateChange.js +405 -0
- package/out/src/storage/methods/generateChange.js.map +1 -0
- package/out/src/storage/methods/getBeefForTransaction.d.ts +23 -0
- package/out/src/storage/methods/getBeefForTransaction.d.ts.map +1 -0
- package/out/src/storage/methods/getBeefForTransaction.js +109 -0
- package/out/src/storage/methods/getBeefForTransaction.js.map +1 -0
- package/out/src/storage/methods/getSyncChunk.d.ts +10 -0
- package/out/src/storage/methods/getSyncChunk.d.ts.map +1 -0
- package/out/src/storage/methods/getSyncChunk.js +272 -0
- package/out/src/storage/methods/getSyncChunk.js.map +1 -0
- package/out/src/storage/methods/internalizeAction.d.ts +31 -0
- package/out/src/storage/methods/internalizeAction.d.ts.map +1 -0
- package/out/src/storage/methods/internalizeAction.js +462 -0
- package/out/src/storage/methods/internalizeAction.js.map +1 -0
- package/out/src/storage/methods/listActionsIdb.d.ts +5 -0
- package/out/src/storage/methods/listActionsIdb.d.ts.map +1 -0
- package/out/src/storage/methods/listActionsIdb.js +155 -0
- package/out/src/storage/methods/listActionsIdb.js.map +1 -0
- package/out/src/storage/methods/listActionsKnex.d.ts +5 -0
- package/out/src/storage/methods/listActionsKnex.d.ts.map +1 -0
- package/out/src/storage/methods/listActionsKnex.js +198 -0
- package/out/src/storage/methods/listActionsKnex.js.map +1 -0
- package/out/src/storage/methods/listCertificates.d.ts +5 -0
- package/out/src/storage/methods/listCertificates.d.ts.map +1 -0
- package/out/src/storage/methods/listCertificates.js +68 -0
- package/out/src/storage/methods/listCertificates.js.map +1 -0
- package/out/src/storage/methods/listOutputsIdb.d.ts +5 -0
- package/out/src/storage/methods/listOutputsIdb.d.ts.map +1 -0
- package/out/src/storage/methods/listOutputsIdb.js +185 -0
- package/out/src/storage/methods/listOutputsIdb.js.map +1 -0
- package/out/src/storage/methods/listOutputsKnex.d.ts +5 -0
- package/out/src/storage/methods/listOutputsKnex.d.ts.map +1 -0
- package/out/src/storage/methods/listOutputsKnex.js +241 -0
- package/out/src/storage/methods/listOutputsKnex.js.map +1 -0
- package/out/src/storage/methods/offsetKey.d.ts +24 -0
- package/out/src/storage/methods/offsetKey.d.ts.map +1 -0
- package/out/src/storage/methods/offsetKey.js +67 -0
- package/out/src/storage/methods/offsetKey.js.map +1 -0
- package/out/src/storage/methods/processAction.d.ts +54 -0
- package/out/src/storage/methods/processAction.d.ts.map +1 -0
- package/out/src/storage/methods/processAction.js +267 -0
- package/out/src/storage/methods/processAction.js.map +1 -0
- package/out/src/storage/methods/purgeData.d.ts +4 -0
- package/out/src/storage/methods/purgeData.d.ts.map +1 -0
- package/out/src/storage/methods/purgeData.js +207 -0
- package/out/src/storage/methods/purgeData.js.map +1 -0
- package/out/src/storage/methods/purgeDataIdb.d.ts +4 -0
- package/out/src/storage/methods/purgeDataIdb.d.ts.map +1 -0
- package/out/src/storage/methods/purgeDataIdb.js +9 -0
- package/out/src/storage/methods/purgeDataIdb.js.map +1 -0
- package/out/src/storage/methods/reviewStatus.d.ts +20 -0
- package/out/src/storage/methods/reviewStatus.d.ts.map +1 -0
- package/out/src/storage/methods/reviewStatus.js +84 -0
- package/out/src/storage/methods/reviewStatus.js.map +1 -0
- package/out/src/storage/methods/reviewStatusIdb.d.ts +20 -0
- package/out/src/storage/methods/reviewStatusIdb.d.ts.map +1 -0
- package/out/src/storage/methods/reviewStatusIdb.js +35 -0
- package/out/src/storage/methods/reviewStatusIdb.js.map +1 -0
- package/out/src/storage/methods/utils.Buffer.d.ts +21 -0
- package/out/src/storage/methods/utils.Buffer.d.ts.map +1 -0
- package/out/src/storage/methods/utils.Buffer.js +37 -0
- package/out/src/storage/methods/utils.Buffer.js.map +1 -0
- package/out/src/storage/methods/utils.d.ts +25 -0
- package/out/src/storage/methods/utils.d.ts.map +1 -0
- package/out/src/storage/methods/utils.js +53 -0
- package/out/src/storage/methods/utils.js.map +1 -0
- package/out/src/storage/remoting/StorageClient.d.ts +292 -0
- package/out/src/storage/remoting/StorageClient.d.ts.map +1 -0
- package/out/src/storage/remoting/StorageClient.js +497 -0
- package/out/src/storage/remoting/StorageClient.js.map +1 -0
- package/out/src/storage/remoting/StorageMobile.d.ts +292 -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/src/storage/remoting/StorageServer.d.ts +48 -0
- package/out/src/storage/remoting/StorageServer.d.ts.map +1 -0
- package/out/src/storage/remoting/StorageServer.js +279 -0
- package/out/src/storage/remoting/StorageServer.js.map +1 -0
- package/out/src/storage/remoting/__test/StorageClient.test.d.ts +2 -0
- package/out/src/storage/remoting/__test/StorageClient.test.d.ts.map +1 -0
- package/out/src/storage/remoting/__test/StorageClient.test.js +98 -0
- package/out/src/storage/remoting/__test/StorageClient.test.js.map +1 -0
- package/out/src/storage/schema/KnexMigrations.d.ts +39 -0
- package/out/src/storage/schema/KnexMigrations.d.ts.map +1 -0
- package/out/src/storage/schema/KnexMigrations.js +458 -0
- package/out/src/storage/schema/KnexMigrations.js.map +1 -0
- package/out/src/storage/schema/StorageIdbSchema.d.ts +133 -0
- package/out/src/storage/schema/StorageIdbSchema.d.ts.map +1 -0
- package/out/src/storage/schema/StorageIdbSchema.js +3 -0
- package/out/src/storage/schema/StorageIdbSchema.js.map +1 -0
- package/out/src/storage/schema/entities/EntityBase.d.ts +106 -0
- package/out/src/storage/schema/entities/EntityBase.d.ts.map +1 -0
- package/out/src/storage/schema/entities/EntityBase.js +100 -0
- package/out/src/storage/schema/entities/EntityBase.js.map +1 -0
- package/out/src/storage/schema/entities/EntityCertificate.d.ts +44 -0
- package/out/src/storage/schema/entities/EntityCertificate.d.ts.map +1 -0
- package/out/src/storage/schema/entities/EntityCertificate.js +162 -0
- package/out/src/storage/schema/entities/EntityCertificate.js.map +1 -0
- package/out/src/storage/schema/entities/EntityCertificateField.d.ts +33 -0
- package/out/src/storage/schema/entities/EntityCertificateField.d.ts.map +1 -0
- package/out/src/storage/schema/entities/EntityCertificateField.js +112 -0
- package/out/src/storage/schema/entities/EntityCertificateField.js.map +1 -0
- package/out/src/storage/schema/entities/EntityCommission.d.ts +38 -0
- package/out/src/storage/schema/entities/EntityCommission.d.ts.map +1 -0
- package/out/src/storage/schema/entities/EntityCommission.js +127 -0
- package/out/src/storage/schema/entities/EntityCommission.js.map +1 -0
- package/out/src/storage/schema/entities/EntityOutput.d.ts +68 -0
- package/out/src/storage/schema/entities/EntityOutput.d.ts.map +1 -0
- package/out/src/storage/schema/entities/EntityOutput.js +264 -0
- package/out/src/storage/schema/entities/EntityOutput.js.map +1 -0
- package/out/src/storage/schema/entities/EntityOutputBasket.d.ts +36 -0
- package/out/src/storage/schema/entities/EntityOutputBasket.d.ts.map +1 -0
- package/out/src/storage/schema/entities/EntityOutputBasket.js +133 -0
- package/out/src/storage/schema/entities/EntityOutputBasket.js.map +1 -0
- package/out/src/storage/schema/entities/EntityOutputTag.d.ts +32 -0
- package/out/src/storage/schema/entities/EntityOutputTag.d.ts.map +1 -0
- package/out/src/storage/schema/entities/EntityOutputTag.js +104 -0
- package/out/src/storage/schema/entities/EntityOutputTag.js.map +1 -0
- package/out/src/storage/schema/entities/EntityOutputTagMap.d.ts +29 -0
- package/out/src/storage/schema/entities/EntityOutputTagMap.d.ts.map +1 -0
- package/out/src/storage/schema/entities/EntityOutputTagMap.js +98 -0
- package/out/src/storage/schema/entities/EntityOutputTagMap.js.map +1 -0
- package/out/src/storage/schema/entities/EntityProvenTx.d.ts +87 -0
- package/out/src/storage/schema/entities/EntityProvenTx.d.ts.map +1 -0
- package/out/src/storage/schema/entities/EntityProvenTx.js +278 -0
- package/out/src/storage/schema/entities/EntityProvenTx.js.map +1 -0
- package/out/src/storage/schema/entities/EntityProvenTxReq.d.ts +139 -0
- package/out/src/storage/schema/entities/EntityProvenTxReq.d.ts.map +1 -0
- package/out/src/storage/schema/entities/EntityProvenTxReq.js +524 -0
- package/out/src/storage/schema/entities/EntityProvenTxReq.js.map +1 -0
- package/out/src/storage/schema/entities/EntitySyncState.d.ts +69 -0
- package/out/src/storage/schema/entities/EntitySyncState.d.ts.map +1 -0
- package/out/src/storage/schema/entities/EntitySyncState.js +334 -0
- package/out/src/storage/schema/entities/EntitySyncState.js.map +1 -0
- package/out/src/storage/schema/entities/EntityTransaction.d.ts +71 -0
- package/out/src/storage/schema/entities/EntityTransaction.d.ts.map +1 -0
- package/out/src/storage/schema/entities/EntityTransaction.js +255 -0
- package/out/src/storage/schema/entities/EntityTransaction.js.map +1 -0
- package/out/src/storage/schema/entities/EntityTxLabel.d.ts +32 -0
- package/out/src/storage/schema/entities/EntityTxLabel.d.ts.map +1 -0
- package/out/src/storage/schema/entities/EntityTxLabel.js +104 -0
- package/out/src/storage/schema/entities/EntityTxLabel.js.map +1 -0
- package/out/src/storage/schema/entities/EntityTxLabelMap.d.ts +29 -0
- package/out/src/storage/schema/entities/EntityTxLabelMap.d.ts.map +1 -0
- package/out/src/storage/schema/entities/EntityTxLabelMap.js +98 -0
- package/out/src/storage/schema/entities/EntityTxLabelMap.js.map +1 -0
- package/out/src/storage/schema/entities/EntityUser.d.ts +30 -0
- package/out/src/storage/schema/entities/EntityUser.d.ts.map +1 -0
- package/out/src/storage/schema/entities/EntityUser.js +99 -0
- package/out/src/storage/schema/entities/EntityUser.js.map +1 -0
- package/out/src/storage/schema/entities/MergeEntity.d.ts +34 -0
- package/out/src/storage/schema/entities/MergeEntity.d.ts.map +1 -0
- package/out/src/storage/schema/entities/MergeEntity.js +63 -0
- package/out/src/storage/schema/entities/MergeEntity.js.map +1 -0
- package/out/src/storage/schema/entities/__tests/CertificateFieldTests.test.d.ts +2 -0
- package/out/src/storage/schema/entities/__tests/CertificateFieldTests.test.d.ts.map +1 -0
- package/out/src/storage/schema/entities/__tests/CertificateFieldTests.test.js +301 -0
- package/out/src/storage/schema/entities/__tests/CertificateFieldTests.test.js.map +1 -0
- package/out/src/storage/schema/entities/__tests/CertificateTests.test.d.ts +2 -0
- package/out/src/storage/schema/entities/__tests/CertificateTests.test.d.ts.map +1 -0
- package/out/src/storage/schema/entities/__tests/CertificateTests.test.js +308 -0
- package/out/src/storage/schema/entities/__tests/CertificateTests.test.js.map +1 -0
- package/out/src/storage/schema/entities/__tests/CommissionTests.test.d.ts +2 -0
- package/out/src/storage/schema/entities/__tests/CommissionTests.test.d.ts.map +1 -0
- package/out/src/storage/schema/entities/__tests/CommissionTests.test.js +316 -0
- package/out/src/storage/schema/entities/__tests/CommissionTests.test.js.map +1 -0
- package/out/src/storage/schema/entities/__tests/OutputBasketTests.test.d.ts +2 -0
- package/out/src/storage/schema/entities/__tests/OutputBasketTests.test.d.ts.map +1 -0
- package/out/src/storage/schema/entities/__tests/OutputBasketTests.test.js +228 -0
- package/out/src/storage/schema/entities/__tests/OutputBasketTests.test.js.map +1 -0
- package/out/src/storage/schema/entities/__tests/OutputTagMapTests.test.d.ts +2 -0
- package/out/src/storage/schema/entities/__tests/OutputTagMapTests.test.d.ts.map +1 -0
- package/out/src/storage/schema/entities/__tests/OutputTagMapTests.test.js +191 -0
- package/out/src/storage/schema/entities/__tests/OutputTagMapTests.test.js.map +1 -0
- package/out/src/storage/schema/entities/__tests/OutputTagTests.test.d.ts +2 -0
- package/out/src/storage/schema/entities/__tests/OutputTagTests.test.d.ts.map +1 -0
- package/out/src/storage/schema/entities/__tests/OutputTagTests.test.js +226 -0
- package/out/src/storage/schema/entities/__tests/OutputTagTests.test.js.map +1 -0
- package/out/src/storage/schema/entities/__tests/OutputTests.test.d.ts +2 -0
- package/out/src/storage/schema/entities/__tests/OutputTests.test.d.ts.map +1 -0
- package/out/src/storage/schema/entities/__tests/OutputTests.test.js +413 -0
- package/out/src/storage/schema/entities/__tests/OutputTests.test.js.map +1 -0
- package/out/src/storage/schema/entities/__tests/ProvenTxReqTests.test.d.ts +2 -0
- package/out/src/storage/schema/entities/__tests/ProvenTxReqTests.test.d.ts.map +1 -0
- package/out/src/storage/schema/entities/__tests/ProvenTxReqTests.test.js +299 -0
- package/out/src/storage/schema/entities/__tests/ProvenTxReqTests.test.js.map +1 -0
- package/out/src/storage/schema/entities/__tests/ProvenTxTests.test.d.ts +2 -0
- package/out/src/storage/schema/entities/__tests/ProvenTxTests.test.d.ts.map +1 -0
- package/out/src/storage/schema/entities/__tests/ProvenTxTests.test.js +470 -0
- package/out/src/storage/schema/entities/__tests/ProvenTxTests.test.js.map +1 -0
- package/out/src/storage/schema/entities/__tests/SyncStateTests.test.d.ts +2 -0
- package/out/src/storage/schema/entities/__tests/SyncStateTests.test.d.ts.map +1 -0
- package/out/src/storage/schema/entities/__tests/SyncStateTests.test.js +234 -0
- package/out/src/storage/schema/entities/__tests/SyncStateTests.test.js.map +1 -0
- package/out/src/storage/schema/entities/__tests/TransactionTests.test.d.ts +2 -0
- package/out/src/storage/schema/entities/__tests/TransactionTests.test.d.ts.map +1 -0
- package/out/src/storage/schema/entities/__tests/TransactionTests.test.js +539 -0
- package/out/src/storage/schema/entities/__tests/TransactionTests.test.js.map +1 -0
- package/out/src/storage/schema/entities/__tests/TxLabelMapTests.test.d.ts +2 -0
- package/out/src/storage/schema/entities/__tests/TxLabelMapTests.test.d.ts.map +1 -0
- package/out/src/storage/schema/entities/__tests/TxLabelMapTests.test.js +304 -0
- package/out/src/storage/schema/entities/__tests/TxLabelMapTests.test.js.map +1 -0
- package/out/src/storage/schema/entities/__tests/TxLabelTests.test.d.ts +2 -0
- package/out/src/storage/schema/entities/__tests/TxLabelTests.test.d.ts.map +1 -0
- package/out/src/storage/schema/entities/__tests/TxLabelTests.test.js +170 -0
- package/out/src/storage/schema/entities/__tests/TxLabelTests.test.js.map +1 -0
- package/out/src/storage/schema/entities/__tests/stampLogTests.test.d.ts +2 -0
- package/out/src/storage/schema/entities/__tests/stampLogTests.test.d.ts.map +1 -0
- package/out/src/storage/schema/entities/__tests/stampLogTests.test.js +81 -0
- package/out/src/storage/schema/entities/__tests/stampLogTests.test.js.map +1 -0
- package/out/src/storage/schema/entities/__tests/usersTests.test.d.ts +2 -0
- package/out/src/storage/schema/entities/__tests/usersTests.test.d.ts.map +1 -0
- package/out/src/storage/schema/entities/__tests/usersTests.test.js +277 -0
- package/out/src/storage/schema/entities/__tests/usersTests.test.js.map +1 -0
- package/out/src/storage/schema/entities/index.d.ts +17 -0
- package/out/src/storage/schema/entities/index.d.ts.map +1 -0
- package/out/src/storage/schema/entities/index.js +33 -0
- package/out/src/storage/schema/entities/index.js.map +1 -0
- package/out/src/storage/schema/tables/TableCertificate.d.ts +20 -0
- package/out/src/storage/schema/tables/TableCertificate.d.ts.map +1 -0
- package/out/src/storage/schema/tables/TableCertificate.js +3 -0
- package/out/src/storage/schema/tables/TableCertificate.js.map +1 -0
- package/out/src/storage/schema/tables/TableCertificateField.d.ts +12 -0
- package/out/src/storage/schema/tables/TableCertificateField.d.ts.map +1 -0
- package/out/src/storage/schema/tables/TableCertificateField.js +3 -0
- package/out/src/storage/schema/tables/TableCertificateField.js.map +1 -0
- package/out/src/storage/schema/tables/TableCommission.d.ts +13 -0
- package/out/src/storage/schema/tables/TableCommission.d.ts.map +1 -0
- package/out/src/storage/schema/tables/TableCommission.js +3 -0
- package/out/src/storage/schema/tables/TableCommission.js.map +1 -0
- package/out/src/storage/schema/tables/TableMonitorEvent.d.ts +9 -0
- package/out/src/storage/schema/tables/TableMonitorEvent.d.ts.map +1 -0
- package/out/src/storage/schema/tables/TableMonitorEvent.js +3 -0
- package/out/src/storage/schema/tables/TableMonitorEvent.js.map +1 -0
- package/out/src/storage/schema/tables/TableOutput.d.ts +36 -0
- package/out/src/storage/schema/tables/TableOutput.d.ts.map +1 -0
- package/out/src/storage/schema/tables/TableOutput.js +31 -0
- package/out/src/storage/schema/tables/TableOutput.js.map +1 -0
- package/out/src/storage/schema/tables/TableOutputBasket.d.ts +12 -0
- package/out/src/storage/schema/tables/TableOutputBasket.d.ts.map +1 -0
- package/out/src/storage/schema/tables/TableOutputBasket.js +3 -0
- package/out/src/storage/schema/tables/TableOutputBasket.js.map +1 -0
- package/out/src/storage/schema/tables/TableOutputTag.d.ts +10 -0
- package/out/src/storage/schema/tables/TableOutputTag.d.ts.map +1 -0
- package/out/src/storage/schema/tables/TableOutputTag.js +3 -0
- package/out/src/storage/schema/tables/TableOutputTag.js.map +1 -0
- package/out/src/storage/schema/tables/TableOutputTagMap.d.ts +9 -0
- package/out/src/storage/schema/tables/TableOutputTagMap.d.ts.map +1 -0
- package/out/src/storage/schema/tables/TableOutputTagMap.js +3 -0
- package/out/src/storage/schema/tables/TableOutputTagMap.js.map +1 -0
- package/out/src/storage/schema/tables/TableProvenTx.d.ts +14 -0
- package/out/src/storage/schema/tables/TableProvenTx.d.ts.map +1 -0
- package/out/src/storage/schema/tables/TableProvenTx.js +3 -0
- package/out/src/storage/schema/tables/TableProvenTx.js.map +1 -0
- package/out/src/storage/schema/tables/TableProvenTxReq.d.ts +64 -0
- package/out/src/storage/schema/tables/TableProvenTxReq.d.ts.map +1 -0
- package/out/src/storage/schema/tables/TableProvenTxReq.js +3 -0
- package/out/src/storage/schema/tables/TableProvenTxReq.js.map +1 -0
- package/out/src/storage/schema/tables/TableSettings.d.ts +17 -0
- package/out/src/storage/schema/tables/TableSettings.d.ts.map +1 -0
- package/out/src/storage/schema/tables/TableSettings.js +3 -0
- package/out/src/storage/schema/tables/TableSettings.js.map +1 -0
- package/out/src/storage/schema/tables/TableSyncState.d.ts +18 -0
- package/out/src/storage/schema/tables/TableSyncState.d.ts.map +1 -0
- package/out/src/storage/schema/tables/TableSyncState.js +3 -0
- package/out/src/storage/schema/tables/TableSyncState.js.map +1 -0
- package/out/src/storage/schema/tables/TableTransaction.d.ts +37 -0
- package/out/src/storage/schema/tables/TableTransaction.d.ts.map +1 -0
- package/out/src/storage/schema/tables/TableTransaction.js +21 -0
- package/out/src/storage/schema/tables/TableTransaction.js.map +1 -0
- package/out/src/storage/schema/tables/TableTxLabel.d.ts +10 -0
- package/out/src/storage/schema/tables/TableTxLabel.d.ts.map +1 -0
- package/out/src/storage/schema/tables/TableTxLabel.js +3 -0
- package/out/src/storage/schema/tables/TableTxLabel.js.map +1 -0
- package/out/src/storage/schema/tables/TableTxLabelMap.d.ts +9 -0
- package/out/src/storage/schema/tables/TableTxLabelMap.d.ts.map +1 -0
- package/out/src/storage/schema/tables/TableTxLabelMap.js +3 -0
- package/out/src/storage/schema/tables/TableTxLabelMap.js.map +1 -0
- package/out/src/storage/schema/tables/TableUser.d.ts +16 -0
- package/out/src/storage/schema/tables/TableUser.d.ts.map +1 -0
- package/out/src/storage/schema/tables/TableUser.js +3 -0
- package/out/src/storage/schema/tables/TableUser.js.map +1 -0
- package/out/src/storage/schema/tables/index.d.ts +17 -0
- package/out/src/storage/schema/tables/index.d.ts.map +1 -0
- package/out/src/storage/schema/tables/index.js +33 -0
- package/out/src/storage/schema/tables/index.js.map +1 -0
- package/out/src/storage/sync/StorageMySQLDojoReader.d.ts +88 -0
- package/out/src/storage/sync/StorageMySQLDojoReader.d.ts.map +1 -0
- package/out/src/storage/sync/StorageMySQLDojoReader.js +612 -0
- package/out/src/storage/sync/StorageMySQLDojoReader.js.map +1 -0
- package/out/src/storage/sync/index.d.ts +2 -0
- package/out/src/storage/sync/index.d.ts.map +1 -0
- package/out/src/storage/sync/index.js +18 -0
- package/out/src/storage/sync/index.js.map +1 -0
- package/out/src/utility/Format.d.ts +14 -0
- package/out/src/utility/Format.d.ts.map +1 -0
- package/out/src/utility/Format.js +167 -0
- package/out/src/utility/Format.js.map +1 -0
- package/out/src/utility/ReaderUint8Array.d.ts +28 -0
- package/out/src/utility/ReaderUint8Array.d.ts.map +1 -0
- package/out/src/utility/ReaderUint8Array.js +166 -0
- package/out/src/utility/ReaderUint8Array.js.map +1 -0
- package/out/src/utility/ScriptTemplateBRC29.d.ts +25 -0
- package/out/src/utility/ScriptTemplateBRC29.d.ts.map +1 -0
- package/out/src/utility/ScriptTemplateBRC29.js +48 -0
- package/out/src/utility/ScriptTemplateBRC29.js.map +1 -0
- package/out/src/utility/__tests/utilityHelpers.noBuffer.test.d.ts +2 -0
- package/out/src/utility/__tests/utilityHelpers.noBuffer.test.d.ts.map +1 -0
- package/out/src/utility/__tests/utilityHelpers.noBuffer.test.js +107 -0
- package/out/src/utility/__tests/utilityHelpers.noBuffer.test.js.map +1 -0
- package/out/src/utility/aggregateResults.d.ts +8 -0
- package/out/src/utility/aggregateResults.d.ts.map +1 -0
- package/out/src/utility/aggregateResults.js +59 -0
- package/out/src/utility/aggregateResults.js.map +1 -0
- package/out/src/utility/identityUtils.d.ts +31 -0
- package/out/src/utility/identityUtils.d.ts.map +1 -0
- package/out/src/utility/identityUtils.js +116 -0
- package/out/src/utility/identityUtils.js.map +1 -0
- package/out/src/utility/index.all.d.ts +7 -0
- package/out/src/utility/index.all.d.ts.map +1 -0
- package/out/src/utility/index.all.js +23 -0
- package/out/src/utility/index.all.js.map +1 -0
- package/out/src/utility/index.client.d.ts +7 -0
- package/out/src/utility/index.client.d.ts.map +1 -0
- package/out/src/utility/index.client.js +23 -0
- package/out/src/utility/index.client.js.map +1 -0
- package/out/src/utility/parseTxScriptOffsets.d.ts +14 -0
- package/out/src/utility/parseTxScriptOffsets.d.ts.map +1 -0
- package/out/src/utility/parseTxScriptOffsets.js +26 -0
- package/out/src/utility/parseTxScriptOffsets.js.map +1 -0
- package/out/src/utility/stampLog.d.ts +18 -0
- package/out/src/utility/stampLog.d.ts.map +1 -0
- package/out/src/utility/stampLog.js +72 -0
- package/out/src/utility/stampLog.js.map +1 -0
- package/out/src/utility/tscProofToMerklePath.d.ts +8 -0
- package/out/src/utility/tscProofToMerklePath.d.ts.map +1 -0
- package/out/src/utility/tscProofToMerklePath.js +41 -0
- package/out/src/utility/tscProofToMerklePath.js.map +1 -0
- package/out/src/utility/utilityHelpers.buffer.d.ts +18 -0
- package/out/src/utility/utilityHelpers.buffer.d.ts.map +1 -0
- package/out/src/utility/utilityHelpers.buffer.js +45 -0
- package/out/src/utility/utilityHelpers.buffer.js.map +1 -0
- package/out/src/utility/utilityHelpers.d.ts +138 -0
- package/out/src/utility/utilityHelpers.d.ts.map +1 -0
- package/out/src/utility/utilityHelpers.js +294 -0
- package/out/src/utility/utilityHelpers.js.map +1 -0
- package/out/src/utility/utilityHelpers.noBuffer.d.ts +26 -0
- package/out/src/utility/utilityHelpers.noBuffer.d.ts.map +1 -0
- package/out/src/utility/utilityHelpers.noBuffer.js +64 -0
- package/out/src/utility/utilityHelpers.noBuffer.js.map +1 -0
- package/out/src/wab-client/WABClient.d.ts +49 -0
- package/out/src/wab-client/WABClient.d.ts.map +1 -0
- package/out/src/wab-client/WABClient.js +80 -0
- package/out/src/wab-client/WABClient.js.map +1 -0
- package/out/src/wab-client/__tests/WABClient.man.test.d.ts +2 -0
- package/out/src/wab-client/__tests/WABClient.man.test.d.ts.map +1 -0
- package/out/src/wab-client/__tests/WABClient.man.test.js +52 -0
- package/out/src/wab-client/__tests/WABClient.man.test.js.map +1 -0
- package/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.d.ts +34 -0
- package/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.d.ts.map +1 -0
- package/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.js +16 -0
- package/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.js.map +1 -0
- package/out/src/wab-client/auth-method-interactors/DevConsoleInteractor.d.ts +29 -0
- package/out/src/wab-client/auth-method-interactors/DevConsoleInteractor.d.ts.map +1 -0
- package/out/src/wab-client/auth-method-interactors/DevConsoleInteractor.js +70 -0
- package/out/src/wab-client/auth-method-interactors/DevConsoleInteractor.js.map +1 -0
- package/out/src/wab-client/auth-method-interactors/PersonaIDInteractor.d.ts +7 -0
- package/out/src/wab-client/auth-method-interactors/PersonaIDInteractor.d.ts.map +1 -0
- package/out/src/wab-client/auth-method-interactors/PersonaIDInteractor.js +36 -0
- package/out/src/wab-client/auth-method-interactors/PersonaIDInteractor.js.map +1 -0
- package/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.d.ts +28 -0
- package/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.d.ts.map +1 -0
- package/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.js +69 -0
- package/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.js.map +1 -0
- package/out/test/Wallet/StorageClient/storageClient.man.test.d.ts +2 -0
- package/out/test/Wallet/StorageClient/storageClient.man.test.d.ts.map +1 -0
- package/out/test/Wallet/StorageClient/storageClient.man.test.js +64 -0
- package/out/test/Wallet/StorageClient/storageClient.man.test.js.map +1 -0
- package/out/test/Wallet/action/abortAction.test.d.ts +2 -0
- package/out/test/Wallet/action/abortAction.test.d.ts.map +1 -0
- package/out/test/Wallet/action/abortAction.test.js +44 -0
- package/out/test/Wallet/action/abortAction.test.js.map +1 -0
- package/out/test/Wallet/action/createAction.test.d.ts +2 -0
- package/out/test/Wallet/action/createAction.test.d.ts.map +1 -0
- package/out/test/Wallet/action/createAction.test.js +272 -0
- package/out/test/Wallet/action/createAction.test.js.map +1 -0
- package/out/test/Wallet/action/createAction2.test.d.ts +37 -0
- package/out/test/Wallet/action/createAction2.test.d.ts.map +1 -0
- package/out/test/Wallet/action/createAction2.test.js +1143 -0
- package/out/test/Wallet/action/createAction2.test.js.map +1 -0
- package/out/test/Wallet/action/createActionToGenerateBeefs.man.test.d.ts +2 -0
- package/out/test/Wallet/action/createActionToGenerateBeefs.man.test.d.ts.map +1 -0
- package/out/test/Wallet/action/createActionToGenerateBeefs.man.test.js +273 -0
- package/out/test/Wallet/action/createActionToGenerateBeefs.man.test.js.map +1 -0
- package/out/test/Wallet/action/internalizeAction.a.test.d.ts +2 -0
- package/out/test/Wallet/action/internalizeAction.a.test.d.ts.map +1 -0
- package/out/test/Wallet/action/internalizeAction.a.test.js +243 -0
- package/out/test/Wallet/action/internalizeAction.a.test.js.map +1 -0
- package/out/test/Wallet/action/internalizeAction.test.d.ts +2 -0
- package/out/test/Wallet/action/internalizeAction.test.d.ts.map +1 -0
- package/out/test/Wallet/action/internalizeAction.test.js +608 -0
- package/out/test/Wallet/action/internalizeAction.test.js.map +1 -0
- package/out/test/Wallet/action/relinquishOutput.test.d.ts +2 -0
- package/out/test/Wallet/action/relinquishOutput.test.d.ts.map +1 -0
- package/out/test/Wallet/action/relinquishOutput.test.js +31 -0
- package/out/test/Wallet/action/relinquishOutput.test.js.map +1 -0
- package/out/test/Wallet/certificate/acquireCertificate.test.d.ts +2 -0
- package/out/test/Wallet/certificate/acquireCertificate.test.d.ts.map +1 -0
- package/out/test/Wallet/certificate/acquireCertificate.test.js +210 -0
- package/out/test/Wallet/certificate/acquireCertificate.test.js.map +1 -0
- package/out/test/Wallet/certificate/listCertificates.test.d.ts +2 -0
- package/out/test/Wallet/certificate/listCertificates.test.d.ts.map +1 -0
- package/out/test/Wallet/certificate/listCertificates.test.js +305 -0
- package/out/test/Wallet/certificate/listCertificates.test.js.map +1 -0
- package/out/test/Wallet/construct/Wallet.constructor.test.d.ts +2 -0
- package/out/test/Wallet/construct/Wallet.constructor.test.d.ts.map +1 -0
- package/out/test/Wallet/construct/Wallet.constructor.test.js +49 -0
- package/out/test/Wallet/construct/Wallet.constructor.test.js.map +1 -0
- package/out/test/Wallet/get/getHeaderForHeight.test.d.ts +2 -0
- package/out/test/Wallet/get/getHeaderForHeight.test.d.ts.map +1 -0
- package/out/test/Wallet/get/getHeaderForHeight.test.js +74 -0
- package/out/test/Wallet/get/getHeaderForHeight.test.js.map +1 -0
- package/out/test/Wallet/get/getHeight.test.d.ts +2 -0
- package/out/test/Wallet/get/getHeight.test.d.ts.map +1 -0
- package/out/test/Wallet/get/getHeight.test.js +48 -0
- package/out/test/Wallet/get/getHeight.test.js.map +1 -0
- package/out/test/Wallet/get/getKnownTxids.test.d.ts +2 -0
- package/out/test/Wallet/get/getKnownTxids.test.d.ts.map +1 -0
- package/out/test/Wallet/get/getKnownTxids.test.js +73 -0
- package/out/test/Wallet/get/getKnownTxids.test.js.map +1 -0
- package/out/test/Wallet/get/getNetwork.test.d.ts +2 -0
- package/out/test/Wallet/get/getNetwork.test.d.ts.map +1 -0
- package/out/test/Wallet/get/getNetwork.test.js +26 -0
- package/out/test/Wallet/get/getNetwork.test.js.map +1 -0
- package/out/test/Wallet/get/getVersion.test.d.ts +2 -0
- package/out/test/Wallet/get/getVersion.test.d.ts.map +1 -0
- package/out/test/Wallet/get/getVersion.test.js +25 -0
- package/out/test/Wallet/get/getVersion.test.js.map +1 -0
- package/out/test/Wallet/list/listActions.test.d.ts +2 -0
- package/out/test/Wallet/list/listActions.test.d.ts.map +1 -0
- package/out/test/Wallet/list/listActions.test.js +271 -0
- package/out/test/Wallet/list/listActions.test.js.map +1 -0
- package/out/test/Wallet/list/listActions2.test.d.ts +2 -0
- package/out/test/Wallet/list/listActions2.test.d.ts.map +1 -0
- package/out/test/Wallet/list/listActions2.test.js +1141 -0
- package/out/test/Wallet/list/listActions2.test.js.map +1 -0
- package/out/test/Wallet/list/listCertificates.test.d.ts +2 -0
- package/out/test/Wallet/list/listCertificates.test.d.ts.map +1 -0
- package/out/test/Wallet/list/listCertificates.test.js +111 -0
- package/out/test/Wallet/list/listCertificates.test.js.map +1 -0
- package/out/test/Wallet/list/listOutputs.test.d.ts +2 -0
- package/out/test/Wallet/list/listOutputs.test.d.ts.map +1 -0
- package/out/test/Wallet/list/listOutputs.test.js +424 -0
- package/out/test/Wallet/list/listOutputs.test.js.map +1 -0
- package/out/test/Wallet/live/walletLive.man.test.d.ts +26 -0
- package/out/test/Wallet/live/walletLive.man.test.d.ts.map +1 -0
- package/out/test/Wallet/live/walletLive.man.test.js +417 -0
- package/out/test/Wallet/live/walletLive.man.test.js.map +1 -0
- package/out/test/Wallet/local/localWallet.man.test.d.ts +2 -0
- package/out/test/Wallet/local/localWallet.man.test.d.ts.map +1 -0
- package/out/test/Wallet/local/localWallet.man.test.js +83 -0
- package/out/test/Wallet/local/localWallet.man.test.js.map +1 -0
- package/out/test/Wallet/local/localWallet2.man.test.d.ts +2 -0
- package/out/test/Wallet/local/localWallet2.man.test.d.ts.map +1 -0
- package/out/test/Wallet/local/localWallet2.man.test.js +284 -0
- package/out/test/Wallet/local/localWallet2.man.test.js.map +1 -0
- package/out/test/Wallet/signAction/mountaintop.man.test.d.ts +2 -0
- package/out/test/Wallet/signAction/mountaintop.man.test.d.ts.map +1 -0
- package/out/test/Wallet/signAction/mountaintop.man.test.js +109 -0
- package/out/test/Wallet/signAction/mountaintop.man.test.js.map +1 -0
- package/out/test/Wallet/specOps/specOps.man.test.d.ts +2 -0
- package/out/test/Wallet/specOps/specOps.man.test.d.ts.map +1 -0
- package/out/test/Wallet/specOps/specOps.man.test.js +163 -0
- package/out/test/Wallet/specOps/specOps.man.test.js.map +1 -0
- package/out/test/Wallet/support/janitor.man.test.d.ts +2 -0
- package/out/test/Wallet/support/janitor.man.test.d.ts.map +1 -0
- package/out/test/Wallet/support/janitor.man.test.js +38 -0
- package/out/test/Wallet/support/janitor.man.test.js.map +1 -0
- package/out/test/Wallet/support/operations.man.test.d.ts +2 -0
- package/out/test/Wallet/support/operations.man.test.d.ts.map +1 -0
- package/out/test/Wallet/support/operations.man.test.js +370 -0
- package/out/test/Wallet/support/operations.man.test.js.map +1 -0
- package/out/test/Wallet/support/reqErrorReview.2025.05.06.man.test.d.ts +2 -0
- package/out/test/Wallet/support/reqErrorReview.2025.05.06.man.test.d.ts.map +1 -0
- package/out/test/Wallet/support/reqErrorReview.2025.05.06.man.test.js +385 -0
- package/out/test/Wallet/support/reqErrorReview.2025.05.06.man.test.js.map +1 -0
- package/out/test/Wallet/sync/Wallet.sync.test.d.ts +2 -0
- package/out/test/Wallet/sync/Wallet.sync.test.d.ts.map +1 -0
- package/out/test/Wallet/sync/Wallet.sync.test.js +155 -0
- package/out/test/Wallet/sync/Wallet.sync.test.js.map +1 -0
- package/out/test/Wallet/sync/Wallet.updateWalletLegacyTestData.man.test.d.ts +2 -0
- package/out/test/Wallet/sync/Wallet.updateWalletLegacyTestData.man.test.d.ts.map +1 -0
- package/out/test/Wallet/sync/Wallet.updateWalletLegacyTestData.man.test.js +206 -0
- package/out/test/Wallet/sync/Wallet.updateWalletLegacyTestData.man.test.js.map +1 -0
- package/out/test/Wallet/sync/setActive.test.d.ts +2 -0
- package/out/test/Wallet/sync/setActive.test.d.ts.map +1 -0
- package/out/test/Wallet/sync/setActive.test.js +161 -0
- package/out/test/Wallet/sync/setActive.test.js.map +1 -0
- package/out/test/WalletClient/LocalKVStore.man.test.d.ts +2 -0
- package/out/test/WalletClient/LocalKVStore.man.test.d.ts.map +1 -0
- package/out/test/WalletClient/LocalKVStore.man.test.js +99 -0
- package/out/test/WalletClient/LocalKVStore.man.test.js.map +1 -0
- package/out/test/WalletClient/WERR.man.test.d.ts +2 -0
- package/out/test/WalletClient/WERR.man.test.d.ts.map +1 -0
- package/out/test/WalletClient/WERR.man.test.js +34 -0
- package/out/test/WalletClient/WERR.man.test.js.map +1 -0
- package/out/test/bsv-ts-sdk/LocalKVStore.test.d.ts +2 -0
- package/out/test/bsv-ts-sdk/LocalKVStore.test.d.ts.map +1 -0
- package/out/test/bsv-ts-sdk/LocalKVStore.test.js +98 -0
- package/out/test/bsv-ts-sdk/LocalKVStore.test.js.map +1 -0
- package/out/test/checkDB.d.ts +4 -0
- package/out/test/checkDB.d.ts.map +1 -0
- package/out/test/checkDB.js +55 -0
- package/out/test/checkDB.js.map +1 -0
- package/out/test/examples/backup.man.test.d.ts +14 -0
- package/out/test/examples/backup.man.test.d.ts.map +1 -0
- package/out/test/examples/backup.man.test.js +59 -0
- package/out/test/examples/backup.man.test.js.map +1 -0
- package/out/test/examples/pushdrop.test.d.ts +56 -0
- package/out/test/examples/pushdrop.test.d.ts.map +1 -0
- package/out/test/examples/pushdrop.test.js +232 -0
- package/out/test/examples/pushdrop.test.js.map +1 -0
- package/out/test/monitor/Monitor.test.d.ts +2 -0
- package/out/test/monitor/Monitor.test.d.ts.map +1 -0
- package/out/test/monitor/Monitor.test.js +560 -0
- package/out/test/monitor/Monitor.test.js.map +1 -0
- package/out/test/services/Services.test.d.ts +2 -0
- package/out/test/services/Services.test.d.ts.map +1 -0
- package/out/test/services/Services.test.js +246 -0
- package/out/test/services/Services.test.js.map +1 -0
- package/out/test/storage/KnexMigrations.test.d.ts +2 -0
- package/out/test/storage/KnexMigrations.test.d.ts.map +1 -0
- package/out/test/storage/KnexMigrations.test.js +81 -0
- package/out/test/storage/KnexMigrations.test.js.map +1 -0
- package/out/test/storage/StorageMySQLDojoReader.man.test.d.ts +2 -0
- package/out/test/storage/StorageMySQLDojoReader.man.test.d.ts.map +1 -0
- package/out/test/storage/StorageMySQLDojoReader.man.test.js +86 -0
- package/out/test/storage/StorageMySQLDojoReader.man.test.js.map +1 -0
- package/out/test/storage/count.test.d.ts +2 -0
- package/out/test/storage/count.test.d.ts.map +1 -0
- package/out/test/storage/count.test.js +142 -0
- package/out/test/storage/count.test.js.map +1 -0
- package/out/test/storage/find.test.d.ts +2 -0
- package/out/test/storage/find.test.d.ts.map +1 -0
- package/out/test/storage/find.test.js +144 -0
- package/out/test/storage/find.test.js.map +1 -0
- package/out/test/storage/findLegacy.test.d.ts +2 -0
- package/out/test/storage/findLegacy.test.d.ts.map +1 -0
- package/out/test/storage/findLegacy.test.js +52 -0
- package/out/test/storage/findLegacy.test.js.map +1 -0
- package/out/test/storage/idb/allocateChange.test.d.ts +2 -0
- package/out/test/storage/idb/allocateChange.test.d.ts.map +1 -0
- package/out/test/storage/idb/allocateChange.test.js +110 -0
- package/out/test/storage/idb/allocateChange.test.js.map +1 -0
- package/out/test/storage/idb/count.test.d.ts +2 -0
- package/out/test/storage/idb/count.test.d.ts.map +1 -0
- package/out/test/storage/idb/count.test.js +129 -0
- package/out/test/storage/idb/count.test.js.map +1 -0
- package/out/test/storage/idb/find.test.d.ts +2 -0
- package/out/test/storage/idb/find.test.d.ts.map +1 -0
- package/out/test/storage/idb/find.test.js +131 -0
- package/out/test/storage/idb/find.test.js.map +1 -0
- package/out/test/storage/idb/idbSpeed.test.d.ts +2 -0
- package/out/test/storage/idb/idbSpeed.test.d.ts.map +1 -0
- package/out/test/storage/idb/idbSpeed.test.js +30 -0
- package/out/test/storage/idb/idbSpeed.test.js.map +1 -0
- package/out/test/storage/idb/insert.test.d.ts +2 -0
- package/out/test/storage/idb/insert.test.d.ts.map +1 -0
- package/out/test/storage/idb/insert.test.js +242 -0
- package/out/test/storage/idb/insert.test.js.map +1 -0
- package/out/test/storage/idb/transactionAbort.test.d.ts +2 -0
- package/out/test/storage/idb/transactionAbort.test.d.ts.map +1 -0
- package/out/test/storage/idb/transactionAbort.test.js +97 -0
- package/out/test/storage/idb/transactionAbort.test.js.map +1 -0
- package/out/test/storage/idb/update.test.d.ts +2 -0
- package/out/test/storage/idb/update.test.d.ts.map +1 -0
- package/out/test/storage/idb/update.test.js +902 -0
- package/out/test/storage/idb/update.test.js.map +1 -0
- package/out/test/storage/insert.test.d.ts +2 -0
- package/out/test/storage/insert.test.d.ts.map +1 -0
- package/out/test/storage/insert.test.js +256 -0
- package/out/test/storage/insert.test.js.map +1 -0
- package/out/test/storage/update.test.d.ts +2 -0
- package/out/test/storage/update.test.d.ts.map +1 -0
- package/out/test/storage/update.test.js +919 -0
- package/out/test/storage/update.test.js.map +1 -0
- package/out/test/storage/update2.test.d.ts +2 -0
- package/out/test/storage/update2.test.d.ts.map +1 -0
- package/out/test/storage/update2.test.js +767 -0
- package/out/test/storage/update2.test.js.map +1 -0
- package/out/test/utils/TestUtilsWalletStorage.d.ts +523 -0
- package/out/test/utils/TestUtilsWalletStorage.d.ts.map +1 -0
- package/out/test/utils/TestUtilsWalletStorage.js +1958 -0
- package/out/test/utils/TestUtilsWalletStorage.js.map +1 -0
- package/out/test/utils/localWalletMethods.d.ts +33 -0
- package/out/test/utils/localWalletMethods.d.ts.map +1 -0
- package/out/test/utils/localWalletMethods.js +304 -0
- package/out/test/utils/localWalletMethods.js.map +1 -0
- package/out/tsconfig.all.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,959 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const sdk_1 = require("@bsv/sdk");
|
|
5
|
+
const randomValsUsed1_1 = require("./randomValsUsed1");
|
|
6
|
+
const index_client_1 = require("../../../../index.client");
|
|
7
|
+
const generateChange_1 = require("../../generateChange");
|
|
8
|
+
describe('generateChange tests', () => {
|
|
9
|
+
jest.setTimeout(99999999);
|
|
10
|
+
test('0 two outputs', async () => {
|
|
11
|
+
const params = {
|
|
12
|
+
...defParams,
|
|
13
|
+
fixedOutputs: [
|
|
14
|
+
{ satoshis: 1234, lockingScriptLength: 1739091 },
|
|
15
|
+
{ satoshis: 2, lockingScriptLength: 25 }
|
|
16
|
+
]
|
|
17
|
+
};
|
|
18
|
+
const availableChange = [...defAvailableChange()];
|
|
19
|
+
const { allocateChangeInput, releaseChangeInput } = (0, generateChange_1.generateChangeSdkMakeStorage)(availableChange);
|
|
20
|
+
const r = await (0, generateChange_1.generateChangeSdk)(params, allocateChangeInput, releaseChangeInput);
|
|
21
|
+
expect(JSON.stringify(r)).toBe('{"allocatedChangeInputs":[{"satoshis":6323,"outputId":15005,"spendable":false}],"changeOutputs":[{"satoshis":1608,"lockingScriptLength":25}],"size":1739330,"fee":3479,"satsPerKb":2}');
|
|
22
|
+
expectTransactionSize(params, r);
|
|
23
|
+
});
|
|
24
|
+
test('0a two outputs exact input', async () => {
|
|
25
|
+
const params = {
|
|
26
|
+
...defParams,
|
|
27
|
+
fixedOutputs: [
|
|
28
|
+
{ satoshis: 1234, lockingScriptLength: 1739091 },
|
|
29
|
+
{ satoshis: 2, lockingScriptLength: 25 }
|
|
30
|
+
]
|
|
31
|
+
};
|
|
32
|
+
const availableChange = [...defAvailableChange()];
|
|
33
|
+
availableChange[5].satoshis = 4715;
|
|
34
|
+
const { allocateChangeInput, releaseChangeInput } = (0, generateChange_1.generateChangeSdkMakeStorage)(availableChange);
|
|
35
|
+
const r = await (0, generateChange_1.generateChangeSdk)(params, allocateChangeInput, releaseChangeInput);
|
|
36
|
+
expect(JSON.stringify(r)).toBe('{"allocatedChangeInputs":[{"satoshis":4715,"outputId":15027,"spendable":false}],"changeOutputs":[],"size":1739296,"fee":3479,"satsPerKb":2}');
|
|
37
|
+
expectTransactionSize(params, r);
|
|
38
|
+
});
|
|
39
|
+
test('0b two outputs 666666 200 ', async () => {
|
|
40
|
+
const params = {
|
|
41
|
+
...defParams,
|
|
42
|
+
fixedOutputs: [
|
|
43
|
+
{ satoshis: 666666, lockingScriptLength: 197 },
|
|
44
|
+
{ satoshis: 200, lockingScriptLength: 25 }
|
|
45
|
+
]
|
|
46
|
+
};
|
|
47
|
+
const availableChange = [...defAvailableChange()];
|
|
48
|
+
availableChange[5].satoshis = 4715;
|
|
49
|
+
const { allocateChangeInput, releaseChangeInput } = (0, generateChange_1.generateChangeSdkMakeStorage)(availableChange);
|
|
50
|
+
const r = await (0, generateChange_1.generateChangeSdk)(params, allocateChangeInput, releaseChangeInput);
|
|
51
|
+
expect(JSON.stringify(r)).toBe('{"allocatedChangeInputs":[{"satoshis":1575097,"outputId":15101,"spendable":false}],"changeOutputs":[{"satoshis":908230,"lockingScriptLength":25}],"size":432,"fee":1,"satsPerKb":2}');
|
|
52
|
+
expectTransactionSize(params, r);
|
|
53
|
+
});
|
|
54
|
+
test('0c two outputs 666666 200 two change inputs ', async () => {
|
|
55
|
+
const params = {
|
|
56
|
+
...defParams,
|
|
57
|
+
fixedOutputs: [
|
|
58
|
+
{ satoshis: 666666, lockingScriptLength: 197 },
|
|
59
|
+
{ satoshis: 200, lockingScriptLength: 25 }
|
|
60
|
+
]
|
|
61
|
+
};
|
|
62
|
+
const availableChange = [
|
|
63
|
+
{ satoshis: 191051, outputId: 14101 },
|
|
64
|
+
{ satoshis: 129470, outputId: 14106 },
|
|
65
|
+
{ satoshis: 273356, outputId: 14110 },
|
|
66
|
+
{ satoshis: 65612, outputId: 14120 },
|
|
67
|
+
{ satoshis: 44778, outputId: 14126 },
|
|
68
|
+
{ satoshis: 58732, outputId: 14141 },
|
|
69
|
+
{ satoshis: 160865, outputId: 14142 },
|
|
70
|
+
{ satoshis: 535280, outputId: 14146 },
|
|
71
|
+
{ satoshis: 1006, outputId: 14177 },
|
|
72
|
+
{ satoshis: 1000, outputId: 14178 }
|
|
73
|
+
];
|
|
74
|
+
const { allocateChangeInput, releaseChangeInput } = (0, generateChange_1.generateChangeSdkMakeStorage)(availableChange);
|
|
75
|
+
const r = await (0, generateChange_1.generateChangeSdk)(params, allocateChangeInput, releaseChangeInput);
|
|
76
|
+
expect(JSON.stringify(r)).toBe('{"allocatedChangeInputs":[{"satoshis":535280,"outputId":14146,"spendable":false},{"satoshis":160865,"outputId":14142,"spendable":false}],"changeOutputs":[{"satoshis":29277,"lockingScriptLength":25}],"size":580,"fee":2,"satsPerKb":2}');
|
|
77
|
+
expectTransactionSize(params, r);
|
|
78
|
+
});
|
|
79
|
+
test('1 two outputs four change outputs', async () => {
|
|
80
|
+
const params = {
|
|
81
|
+
...defParams,
|
|
82
|
+
fixedOutputs: [
|
|
83
|
+
{ satoshis: 1234, lockingScriptLength: 1739091 },
|
|
84
|
+
{ satoshis: 2, lockingScriptLength: 25 }
|
|
85
|
+
],
|
|
86
|
+
targetNetCount: 4
|
|
87
|
+
};
|
|
88
|
+
const availableChange = [...defAvailableChange()];
|
|
89
|
+
const { allocateChangeInput, releaseChangeInput } = (0, generateChange_1.generateChangeSdkMakeStorage)(availableChange);
|
|
90
|
+
const r = await (0, generateChange_1.generateChangeSdk)(params, allocateChangeInput, releaseChangeInput);
|
|
91
|
+
expect(JSON.stringify(r)).toBe('{"allocatedChangeInputs":[{"satoshis":10735,"outputId":15106,"spendable":false}],"changeOutputs":[{"satoshis":1237,"lockingScriptLength":25},{"satoshis":1334,"lockingScriptLength":25},{"satoshis":1369,"lockingScriptLength":25},{"satoshis":1008,"lockingScriptLength":25},{"satoshis":1072,"lockingScriptLength":25}],"size":1739466,"fee":3479,"satsPerKb":2}');
|
|
92
|
+
expectTransactionSize(params, r);
|
|
93
|
+
});
|
|
94
|
+
test('2 WERR_INSUFFICIENT_FUNDS', async () => {
|
|
95
|
+
const params = {
|
|
96
|
+
...defParams,
|
|
97
|
+
fixedOutputs: [
|
|
98
|
+
{ satoshis: 1234, lockingScriptLength: 1739091 },
|
|
99
|
+
{ satoshis: 2, lockingScriptLength: 25 }
|
|
100
|
+
],
|
|
101
|
+
targetNetCount: 4
|
|
102
|
+
};
|
|
103
|
+
const availableChange = defAvailableChange().slice(1, 4);
|
|
104
|
+
const { allocateChangeInput, releaseChangeInput } = (0, generateChange_1.generateChangeSdkMakeStorage)(availableChange);
|
|
105
|
+
expectToThrowWERR(index_client_1.sdk.WERR_INSUFFICIENT_FUNDS, () => (0, generateChange_1.generateChangeSdk)(params, allocateChangeInput, releaseChangeInput));
|
|
106
|
+
});
|
|
107
|
+
test('2a WERR_INSUFFICIENT_FUNDS no inputs', async () => {
|
|
108
|
+
const params = {
|
|
109
|
+
...defParams,
|
|
110
|
+
fixedOutputs: [
|
|
111
|
+
{ satoshis: 1234, lockingScriptLength: 1739091 },
|
|
112
|
+
{ satoshis: 2, lockingScriptLength: 25 }
|
|
113
|
+
],
|
|
114
|
+
targetNetCount: 4
|
|
115
|
+
};
|
|
116
|
+
const availableChange = [];
|
|
117
|
+
const { allocateChangeInput, releaseChangeInput } = (0, generateChange_1.generateChangeSdkMakeStorage)(availableChange);
|
|
118
|
+
expectToThrowWERR(index_client_1.sdk.WERR_INSUFFICIENT_FUNDS, () => (0, generateChange_1.generateChangeSdk)(params, allocateChangeInput, releaseChangeInput));
|
|
119
|
+
});
|
|
120
|
+
test('3 allocate all', async () => {
|
|
121
|
+
const params = {
|
|
122
|
+
...defParams,
|
|
123
|
+
fixedOutputs: [
|
|
124
|
+
{ satoshis: 1234, lockingScriptLength: 39091 },
|
|
125
|
+
{ satoshis: 2, lockingScriptLength: 25 }
|
|
126
|
+
],
|
|
127
|
+
targetNetCount: 4
|
|
128
|
+
};
|
|
129
|
+
const availableChange = defAvailableChange().slice(1, 4);
|
|
130
|
+
const { allocateChangeInput, releaseChangeInput } = (0, generateChange_1.generateChangeSdkMakeStorage)(availableChange);
|
|
131
|
+
const r = await (0, generateChange_1.generateChangeSdk)(params, allocateChangeInput, releaseChangeInput);
|
|
132
|
+
expect(JSON.stringify(r)).toBe('{"allocatedChangeInputs":[{"satoshis":1004,"outputId":15011,"spendable":false},{"satoshis":1000,"outputId":15017,"spendable":false}],"changeOutputs":[{"satoshis":689,"lockingScriptLength":25}],"size":39476,"fee":79,"satsPerKb":2}');
|
|
133
|
+
expectTransactionSize(params, r);
|
|
134
|
+
});
|
|
135
|
+
test('4 feeModel 5 sat per kb', async () => {
|
|
136
|
+
const params = {
|
|
137
|
+
...defParams,
|
|
138
|
+
fixedOutputs: [
|
|
139
|
+
{ satoshis: 1234, lockingScriptLength: 39091 },
|
|
140
|
+
{ satoshis: 2, lockingScriptLength: 25 }
|
|
141
|
+
],
|
|
142
|
+
feeModel: { value: 5, model: 'sat/kb' },
|
|
143
|
+
targetNetCount: 4
|
|
144
|
+
};
|
|
145
|
+
const availableChange = defAvailableChange().slice(1, 4);
|
|
146
|
+
const { allocateChangeInput, releaseChangeInput } = (0, generateChange_1.generateChangeSdkMakeStorage)(availableChange);
|
|
147
|
+
const r = await (0, generateChange_1.generateChangeSdk)(params, allocateChangeInput, releaseChangeInput);
|
|
148
|
+
expect(JSON.stringify(r)).toBe('{"allocatedChangeInputs":[{"satoshis":1004,"outputId":15011,"spendable":false},{"satoshis":1000,"outputId":15017,"spendable":false}],"changeOutputs":[{"satoshis":570,"lockingScriptLength":25}],"size":39476,"fee":198,"satsPerKb":5}');
|
|
149
|
+
expectTransactionSize(params, r);
|
|
150
|
+
});
|
|
151
|
+
test('4a feeModel 1 sat per kb', async () => {
|
|
152
|
+
const params = {
|
|
153
|
+
...defParams,
|
|
154
|
+
fixedOutputs: [
|
|
155
|
+
{ satoshis: 1234, lockingScriptLength: 39091 },
|
|
156
|
+
{ satoshis: 2, lockingScriptLength: 25 }
|
|
157
|
+
],
|
|
158
|
+
feeModel: { value: 1, model: 'sat/kb' },
|
|
159
|
+
targetNetCount: 4
|
|
160
|
+
};
|
|
161
|
+
const availableChange = defAvailableChange().slice(1, 4);
|
|
162
|
+
const { allocateChangeInput, releaseChangeInput } = (0, generateChange_1.generateChangeSdkMakeStorage)(availableChange);
|
|
163
|
+
const r = await (0, generateChange_1.generateChangeSdk)(params, allocateChangeInput, releaseChangeInput);
|
|
164
|
+
expect(JSON.stringify(r)).toBe('{"allocatedChangeInputs":[{"satoshis":1004,"outputId":15011,"spendable":false},{"satoshis":1000,"outputId":15017,"spendable":false}],"changeOutputs":[{"satoshis":728,"lockingScriptLength":25}],"size":39476,"fee":40,"satsPerKb":1}');
|
|
165
|
+
expectTransactionSize(params, r);
|
|
166
|
+
});
|
|
167
|
+
test('5 one fixedInput', async () => {
|
|
168
|
+
const params = {
|
|
169
|
+
...defParams,
|
|
170
|
+
fixedInputs: [{ satoshis: 1234, unlockingScriptLength: 42 }],
|
|
171
|
+
fixedOutputs: [
|
|
172
|
+
{ satoshis: 1234, lockingScriptLength: 1739091 },
|
|
173
|
+
{ satoshis: 2, lockingScriptLength: 25 }
|
|
174
|
+
],
|
|
175
|
+
targetNetCount: 4
|
|
176
|
+
};
|
|
177
|
+
const availableChange = [...defAvailableChange()];
|
|
178
|
+
const { allocateChangeInput, releaseChangeInput } = (0, generateChange_1.generateChangeSdkMakeStorage)(availableChange);
|
|
179
|
+
const r = await (0, generateChange_1.generateChangeSdk)(params, allocateChangeInput, releaseChangeInput);
|
|
180
|
+
expect(JSON.stringify(r)).toBe('{"allocatedChangeInputs":[{"satoshis":10735,"outputId":15106,"spendable":false}],"changeOutputs":[{"satoshis":1526,"lockingScriptLength":25},{"satoshis":1738,"lockingScriptLength":25},{"satoshis":1816,"lockingScriptLength":25},{"satoshis":1016,"lockingScriptLength":25},{"satoshis":1157,"lockingScriptLength":25}],"size":1739549,"fee":3480,"satsPerKb":2}');
|
|
181
|
+
expectTransactionSize(params, r);
|
|
182
|
+
});
|
|
183
|
+
test('5a one larger fixedInput', async () => {
|
|
184
|
+
const params = {
|
|
185
|
+
...defParams,
|
|
186
|
+
fixedInputs: [{ satoshis: 1234, unlockingScriptLength: 242 }],
|
|
187
|
+
fixedOutputs: [
|
|
188
|
+
{ satoshis: 1234, lockingScriptLength: 1739091 },
|
|
189
|
+
{ satoshis: 2, lockingScriptLength: 25 }
|
|
190
|
+
],
|
|
191
|
+
targetNetCount: 4
|
|
192
|
+
};
|
|
193
|
+
const availableChange = [...defAvailableChange()];
|
|
194
|
+
const { allocateChangeInput, releaseChangeInput } = (0, generateChange_1.generateChangeSdkMakeStorage)(availableChange);
|
|
195
|
+
const r = await (0, generateChange_1.generateChangeSdk)(params, allocateChangeInput, releaseChangeInput);
|
|
196
|
+
expect(JSON.stringify(r)).toBe('{"allocatedChangeInputs":[{"satoshis":10735,"outputId":15106,"spendable":false}],"changeOutputs":[{"satoshis":1526,"lockingScriptLength":25},{"satoshis":1738,"lockingScriptLength":25},{"satoshis":1816,"lockingScriptLength":25},{"satoshis":1016,"lockingScriptLength":25},{"satoshis":1157,"lockingScriptLength":25}],"size":1739749,"fee":3480,"satsPerKb":2}');
|
|
197
|
+
expectTransactionSize(params, r);
|
|
198
|
+
});
|
|
199
|
+
test('5b one fixedInput 1001 73', async () => {
|
|
200
|
+
const params = {
|
|
201
|
+
...defParams,
|
|
202
|
+
fixedInputs: [{ satoshis: 1001, unlockingScriptLength: 73 }]
|
|
203
|
+
};
|
|
204
|
+
const availableChange = [...defAvailableChange()];
|
|
205
|
+
const { allocateChangeInput, releaseChangeInput } = (0, generateChange_1.generateChangeSdkMakeStorage)(availableChange);
|
|
206
|
+
const r = await (0, generateChange_1.generateChangeSdk)(params, allocateChangeInput, releaseChangeInput);
|
|
207
|
+
expect(JSON.stringify(r)).toBe('{"allocatedChangeInputs":[],"changeOutputs":[{"satoshis":1000,"lockingScriptLength":25}],"size":158,"fee":1,"satsPerKb":2}');
|
|
208
|
+
expectTransactionSize(params, r);
|
|
209
|
+
});
|
|
210
|
+
test('6 no fixedOutputs one fixedInput', async () => {
|
|
211
|
+
const params = {
|
|
212
|
+
...defParams,
|
|
213
|
+
fixedInputs: [{ satoshis: 1234, unlockingScriptLength: 42 }],
|
|
214
|
+
fixedOutputs: [],
|
|
215
|
+
targetNetCount: 4
|
|
216
|
+
};
|
|
217
|
+
const availableChange = [...defAvailableChange()];
|
|
218
|
+
const { allocateChangeInput, releaseChangeInput, getLog } = (0, generateChange_1.generateChangeSdkMakeStorage)(availableChange);
|
|
219
|
+
const r = await (0, generateChange_1.generateChangeSdk)(params, allocateChangeInput, releaseChangeInput);
|
|
220
|
+
//console.log(getLog())
|
|
221
|
+
expect(JSON.stringify(r)).toBe('{"allocatedChangeInputs":[{"satoshis":6323,"outputId":15005,"spendable":false}],"changeOutputs":[{"satoshis":1597,"lockingScriptLength":25},{"satoshis":1837,"lockingScriptLength":25},{"satoshis":1925,"lockingScriptLength":25},{"satoshis":1019,"lockingScriptLength":25},{"satoshis":1178,"lockingScriptLength":25}],"size":411,"fee":1,"satsPerKb":2}');
|
|
222
|
+
expectTransactionSize(params, r);
|
|
223
|
+
});
|
|
224
|
+
test('6a no fixedOutputs no fixedInput', async () => {
|
|
225
|
+
const params = {
|
|
226
|
+
...defParams,
|
|
227
|
+
fixedInputs: [],
|
|
228
|
+
fixedOutputs: [],
|
|
229
|
+
targetNetCount: 4
|
|
230
|
+
};
|
|
231
|
+
const availableChange = [...defAvailableChange()];
|
|
232
|
+
const { allocateChangeInput, releaseChangeInput } = (0, generateChange_1.generateChangeSdkMakeStorage)(availableChange);
|
|
233
|
+
const r = await (0, generateChange_1.generateChangeSdk)(params, allocateChangeInput, releaseChangeInput);
|
|
234
|
+
expect(JSON.stringify(r)).toBe('{"allocatedChangeInputs":[{"satoshis":6323,"outputId":15005,"spendable":false}],"changeOutputs":[{"satoshis":1309,"lockingScriptLength":25},{"satoshis":1433,"lockingScriptLength":25},{"satoshis":1478,"lockingScriptLength":25},{"satoshis":1009,"lockingScriptLength":25},{"satoshis":1093,"lockingScriptLength":25}],"size":328,"fee":1,"satsPerKb":2}');
|
|
235
|
+
expectTransactionSize(params, r);
|
|
236
|
+
});
|
|
237
|
+
test('7 paramsText4 d4', async () => {
|
|
238
|
+
const params = {
|
|
239
|
+
...defParams,
|
|
240
|
+
fixedOutputs: [
|
|
241
|
+
{ satoshis: 309000, lockingScriptLength: 198 },
|
|
242
|
+
{ satoshis: 2, lockingScriptLength: 25 }
|
|
243
|
+
]
|
|
244
|
+
};
|
|
245
|
+
const availableChange = [
|
|
246
|
+
{ satoshis: 7130, outputId: 15142 },
|
|
247
|
+
{ satoshis: 474866, outputId: 15332 },
|
|
248
|
+
{ satoshis: 16411, outputId: 15355 },
|
|
249
|
+
{ satoshis: 763632, outputId: 15368 },
|
|
250
|
+
{ satoshis: 18894, outputId: 15371 },
|
|
251
|
+
{ satoshis: 1574590, outputId: 15420 },
|
|
252
|
+
{ satoshis: 43207, outputId: 15480 },
|
|
253
|
+
{ satoshis: 12342, outputId: 15541 },
|
|
254
|
+
{ satoshis: 123453, outputId: 15548 },
|
|
255
|
+
{ satoshis: 7890, outputId: 16020 },
|
|
256
|
+
{ satoshis: 1073, outputId: 16026 }
|
|
257
|
+
];
|
|
258
|
+
const { allocateChangeInput, releaseChangeInput } = (0, generateChange_1.generateChangeSdkMakeStorage)(availableChange);
|
|
259
|
+
const r = await (0, generateChange_1.generateChangeSdk)(params, allocateChangeInput, releaseChangeInput);
|
|
260
|
+
expect(JSON.stringify(r)).toBe('{"allocatedChangeInputs":[{"satoshis":474866,"outputId":15332,"spendable":false}],"changeOutputs":[{"satoshis":165863,"lockingScriptLength":25}],"size":433,"fee":1,"satsPerKb":2}');
|
|
261
|
+
expectTransactionSize(params, r);
|
|
262
|
+
});
|
|
263
|
+
const d5 = {
|
|
264
|
+
p: {
|
|
265
|
+
fixedInputs: [{ satoshis: 1000, unlockingScriptLength: 72 }],
|
|
266
|
+
fixedOutputs: [{ satoshis: 200, lockingScriptLength: 25 }],
|
|
267
|
+
feeModel: { model: 'sat/kb', value: 2 },
|
|
268
|
+
changeInitialSatoshis: 1000,
|
|
269
|
+
changeFirstSatoshis: 285,
|
|
270
|
+
changeLockingScriptLength: 25,
|
|
271
|
+
changeUnlockingScriptLength: 107
|
|
272
|
+
},
|
|
273
|
+
availableChange: [
|
|
274
|
+
{ satoshis: 191051, outputId: 14101 },
|
|
275
|
+
{ satoshis: 273356, outputId: 14110 },
|
|
276
|
+
{ satoshis: 65612, outputId: 14120 },
|
|
277
|
+
{ satoshis: 44778, outputId: 14126 },
|
|
278
|
+
{ satoshis: 58732, outputId: 14141 },
|
|
279
|
+
{ satoshis: 160865, outputId: 14142 },
|
|
280
|
+
{ satoshis: 1006, outputId: 14177 },
|
|
281
|
+
{ satoshis: 1000, outputId: 14178 },
|
|
282
|
+
{ satoshis: 1000, outputId: 14180 },
|
|
283
|
+
{ satoshis: 1000, outputId: 14181 },
|
|
284
|
+
{ satoshis: 1000, outputId: 14183 },
|
|
285
|
+
{ satoshis: 1000, outputId: 14185 },
|
|
286
|
+
{ satoshis: 1000, outputId: 14186 },
|
|
287
|
+
{ satoshis: 1001, outputId: 14188 },
|
|
288
|
+
{ satoshis: 1000, outputId: 14189 },
|
|
289
|
+
{ satoshis: 1000, outputId: 14190 },
|
|
290
|
+
{ satoshis: 1001, outputId: 14192 },
|
|
291
|
+
{ satoshis: 1000, outputId: 14195 },
|
|
292
|
+
{ satoshis: 1000, outputId: 14196 },
|
|
293
|
+
{ satoshis: 1000, outputId: 14197 },
|
|
294
|
+
{ satoshis: 1000, outputId: 14198 },
|
|
295
|
+
{ satoshis: 1000, outputId: 14199 },
|
|
296
|
+
{ satoshis: 1000, outputId: 14200 },
|
|
297
|
+
{ satoshis: 1000, outputId: 14201 },
|
|
298
|
+
{ satoshis: 1000, outputId: 14202 },
|
|
299
|
+
{ satoshis: 1000, outputId: 14203 },
|
|
300
|
+
{ satoshis: 1000, outputId: 14204 },
|
|
301
|
+
{ satoshis: 1000, outputId: 14205 },
|
|
302
|
+
{ satoshis: 1000, outputId: 14206 },
|
|
303
|
+
{ satoshis: 1003, outputId: 14207 },
|
|
304
|
+
{ satoshis: 1001, outputId: 14208 },
|
|
305
|
+
{ satoshis: 1000, outputId: 14209 },
|
|
306
|
+
{ satoshis: 1000, outputId: 14210 },
|
|
307
|
+
{ satoshis: 1006, outputId: 14211 },
|
|
308
|
+
{ satoshis: 1020, outputId: 14212 },
|
|
309
|
+
{ satoshis: 1000, outputId: 14213 },
|
|
310
|
+
{ satoshis: 1000, outputId: 14214 },
|
|
311
|
+
{ satoshis: 1000, outputId: 14215 },
|
|
312
|
+
{ satoshis: 1000, outputId: 14216 },
|
|
313
|
+
{ satoshis: 1002, outputId: 14217 },
|
|
314
|
+
{ satoshis: 1046, outputId: 14218 },
|
|
315
|
+
{ satoshis: 1103, outputId: 14219 },
|
|
316
|
+
{ satoshis: 1001, outputId: 14221 },
|
|
317
|
+
{ satoshis: 1000, outputId: 14222 },
|
|
318
|
+
{ satoshis: 1000, outputId: 14223 },
|
|
319
|
+
{ satoshis: 1000, outputId: 14224 },
|
|
320
|
+
{ satoshis: 31311, outputId: 14321 },
|
|
321
|
+
{ satoshis: 1042, outputId: 14656 },
|
|
322
|
+
{ satoshis: 1099, outputId: 14661 },
|
|
323
|
+
{ satoshis: 1100, outputId: 14675 },
|
|
324
|
+
{ satoshis: 1019, outputId: 14676 },
|
|
325
|
+
{ satoshis: 1040, outputId: 14677 },
|
|
326
|
+
{ satoshis: 1000, outputId: 14679 },
|
|
327
|
+
{ satoshis: 1000, outputId: 14680 },
|
|
328
|
+
{ satoshis: 1001, outputId: 14681 },
|
|
329
|
+
{ satoshis: 1000, outputId: 14682 },
|
|
330
|
+
{ satoshis: 1001, outputId: 14683 },
|
|
331
|
+
{ satoshis: 1002, outputId: 14684 },
|
|
332
|
+
{ satoshis: 1005, outputId: 14685 },
|
|
333
|
+
{ satoshis: 1000, outputId: 14686 },
|
|
334
|
+
{ satoshis: 1007, outputId: 14687 },
|
|
335
|
+
{ satoshis: 1000, outputId: 14802 },
|
|
336
|
+
{ satoshis: 1069, outputId: 14803 },
|
|
337
|
+
{ satoshis: 1231, outputId: 15465 },
|
|
338
|
+
{ satoshis: 2386, outputId: 15468 },
|
|
339
|
+
{ satoshis: 1267, outputId: 15471 },
|
|
340
|
+
{ satoshis: 1283, outputId: 15472 },
|
|
341
|
+
{ satoshis: 1054, outputId: 15473 },
|
|
342
|
+
{ satoshis: 2031, outputId: 15475 },
|
|
343
|
+
{ satoshis: 1065, outputId: 15478 },
|
|
344
|
+
{ satoshis: 1268, outputId: 15479 },
|
|
345
|
+
{ satoshis: 1066, outputId: 15480 },
|
|
346
|
+
{ satoshis: 1065, outputId: 15481 },
|
|
347
|
+
{ satoshis: 1006, outputId: 15482 },
|
|
348
|
+
{ satoshis: 999799, outputId: 16338 },
|
|
349
|
+
{ satoshis: 2021, outputId: 16339 },
|
|
350
|
+
{ satoshis: 666465, outputId: 16340 },
|
|
351
|
+
{ satoshis: 5354, outputId: 16341 },
|
|
352
|
+
{ satoshis: 3132, outputId: 16342 }
|
|
353
|
+
]
|
|
354
|
+
};
|
|
355
|
+
const d6 = {
|
|
356
|
+
p: {
|
|
357
|
+
fixedInputs: [],
|
|
358
|
+
fixedOutputs: [
|
|
359
|
+
{ satoshis: 500, lockingScriptLength: 436 },
|
|
360
|
+
{ satoshis: 200, lockingScriptLength: 25 }
|
|
361
|
+
],
|
|
362
|
+
feeModel: { model: 'sat/kb', value: 2 },
|
|
363
|
+
changeInitialSatoshis: 1000,
|
|
364
|
+
changeFirstSatoshis: 285,
|
|
365
|
+
changeLockingScriptLength: 25,
|
|
366
|
+
changeUnlockingScriptLength: 107
|
|
367
|
+
},
|
|
368
|
+
availableChange: [
|
|
369
|
+
{ satoshis: 1040, outputId: 16345 },
|
|
370
|
+
{ satoshis: 1000, outputId: 16346 },
|
|
371
|
+
{ satoshis: 1023, outputId: 16348 },
|
|
372
|
+
{ satoshis: 1054, outputId: 16350 },
|
|
373
|
+
{ satoshis: 1118, outputId: 16353 },
|
|
374
|
+
{ satoshis: 1000, outputId: 16354 },
|
|
375
|
+
{ satoshis: 1001, outputId: 16355 },
|
|
376
|
+
{ satoshis: 1000, outputId: 16356 },
|
|
377
|
+
{ satoshis: 1005, outputId: 16360 },
|
|
378
|
+
{ satoshis: 1000, outputId: 16361 },
|
|
379
|
+
{ satoshis: 375235, outputId: 16362 },
|
|
380
|
+
{ satoshis: 1000, outputId: 16363 },
|
|
381
|
+
{ satoshis: 1000, outputId: 16364 },
|
|
382
|
+
{ satoshis: 45658, outputId: 16365 },
|
|
383
|
+
{ satoshis: 286834, outputId: 16367 },
|
|
384
|
+
{ satoshis: 1001, outputId: 16368 },
|
|
385
|
+
{ satoshis: 1001, outputId: 16369 },
|
|
386
|
+
{ satoshis: 57051, outputId: 16370 },
|
|
387
|
+
{ satoshis: 1036, outputId: 16371 },
|
|
388
|
+
{ satoshis: 16508, outputId: 16372 },
|
|
389
|
+
{ satoshis: 1000, outputId: 16373 },
|
|
390
|
+
{ satoshis: 64213, outputId: 16374 },
|
|
391
|
+
{ satoshis: 1000, outputId: 16376 },
|
|
392
|
+
{ satoshis: 1000, outputId: 16377 },
|
|
393
|
+
{ satoshis: 1154, outputId: 16378 },
|
|
394
|
+
{ satoshis: 1000, outputId: 16380 },
|
|
395
|
+
{ satoshis: 1008, outputId: 16381 },
|
|
396
|
+
{ satoshis: 1064, outputId: 16382 },
|
|
397
|
+
{ satoshis: 1234, outputId: 16383 },
|
|
398
|
+
{ satoshis: 119205, outputId: 16395 },
|
|
399
|
+
{ satoshis: 582, outputId: 16397 },
|
|
400
|
+
{ satoshis: 2384, outputId: 16399 },
|
|
401
|
+
{ satoshis: 4391, outputId: 16401 },
|
|
402
|
+
{ satoshis: 600, outputId: 16406 },
|
|
403
|
+
{ satoshis: 2599799, outputId: 16407 }
|
|
404
|
+
]
|
|
405
|
+
};
|
|
406
|
+
const d7 = {
|
|
407
|
+
p: {
|
|
408
|
+
fixedInputs: [],
|
|
409
|
+
fixedOutputs: [
|
|
410
|
+
{ satoshis: 1570, lockingScriptLength: 25 },
|
|
411
|
+
{ satoshis: 200, lockingScriptLength: 25 }
|
|
412
|
+
],
|
|
413
|
+
feeModel: { model: 'sat/kb', value: 2 },
|
|
414
|
+
changeInitialSatoshis: 1000,
|
|
415
|
+
changeFirstSatoshis: 285,
|
|
416
|
+
changeLockingScriptLength: 25,
|
|
417
|
+
changeUnlockingScriptLength: 107
|
|
418
|
+
},
|
|
419
|
+
availableChange: [
|
|
420
|
+
{ satoshis: 23082, outputId: 14734 },
|
|
421
|
+
{ satoshis: 16496, outputId: 14742 },
|
|
422
|
+
{ satoshis: 270789, outputId: 14744 },
|
|
423
|
+
{ satoshis: 81520, outputId: 14763 },
|
|
424
|
+
{ satoshis: 14759, outputId: 14770 },
|
|
425
|
+
{ satoshis: 390625, outputId: 14774 },
|
|
426
|
+
{ satoshis: 674234, outputId: 14790 },
|
|
427
|
+
{ satoshis: 999799, outputId: 14794 },
|
|
428
|
+
{ satoshis: 1000, outputId: 15583 },
|
|
429
|
+
{ satoshis: 1000, outputId: 15584 },
|
|
430
|
+
{ satoshis: 1000, outputId: 15585 },
|
|
431
|
+
{ satoshis: 1000, outputId: 15586 },
|
|
432
|
+
{ satoshis: 1000, outputId: 15587 },
|
|
433
|
+
{ satoshis: 1000, outputId: 15588 },
|
|
434
|
+
{ satoshis: 1025, outputId: 15589 },
|
|
435
|
+
{ satoshis: 1000, outputId: 15590 },
|
|
436
|
+
{ satoshis: 1000, outputId: 15591 },
|
|
437
|
+
{ satoshis: 1000, outputId: 15593 },
|
|
438
|
+
{ satoshis: 1000, outputId: 15594 },
|
|
439
|
+
{ satoshis: 1000, outputId: 15595 },
|
|
440
|
+
{ satoshis: 1000, outputId: 15596 },
|
|
441
|
+
{ satoshis: 1000, outputId: 15597 },
|
|
442
|
+
{ satoshis: 1316, outputId: 15598 },
|
|
443
|
+
{ satoshis: 1000, outputId: 15599 },
|
|
444
|
+
{ satoshis: 1000, outputId: 15600 },
|
|
445
|
+
{ satoshis: 1000, outputId: 15601 },
|
|
446
|
+
{ satoshis: 1426, outputId: 15602 },
|
|
447
|
+
{ satoshis: 1000, outputId: 15603 },
|
|
448
|
+
{ satoshis: 1000, outputId: 15604 },
|
|
449
|
+
{ satoshis: 1000, outputId: 15605 },
|
|
450
|
+
{ satoshis: 1000, outputId: 15606 },
|
|
451
|
+
{ satoshis: 1000, outputId: 15607 },
|
|
452
|
+
{ satoshis: 1000, outputId: 15608 },
|
|
453
|
+
{ satoshis: 1000, outputId: 15609 },
|
|
454
|
+
{ satoshis: 1004, outputId: 15610 },
|
|
455
|
+
{ satoshis: 1000, outputId: 15611 },
|
|
456
|
+
{ satoshis: 1013, outputId: 15612 },
|
|
457
|
+
{ satoshis: 1001, outputId: 15614 },
|
|
458
|
+
{ satoshis: 1000, outputId: 15615 },
|
|
459
|
+
{ satoshis: 1000, outputId: 15616 },
|
|
460
|
+
{ satoshis: 1000, outputId: 15617 },
|
|
461
|
+
{ satoshis: 1000, outputId: 15618 },
|
|
462
|
+
{ satoshis: 1000, outputId: 15619 },
|
|
463
|
+
{ satoshis: 1006, outputId: 15620 },
|
|
464
|
+
{ satoshis: 1000, outputId: 15621 },
|
|
465
|
+
{ satoshis: 1000, outputId: 15622 },
|
|
466
|
+
{ satoshis: 1000, outputId: 15623 },
|
|
467
|
+
{ satoshis: 1000, outputId: 15624 },
|
|
468
|
+
{ satoshis: 1032, outputId: 15625 },
|
|
469
|
+
{ satoshis: 4571, outputId: 15626 },
|
|
470
|
+
{ satoshis: 1000, outputId: 15628 },
|
|
471
|
+
{ satoshis: 1000, outputId: 15629 },
|
|
472
|
+
{ satoshis: 1087, outputId: 15630 },
|
|
473
|
+
{ satoshis: 1000, outputId: 15631 },
|
|
474
|
+
{ satoshis: 1000, outputId: 15632 },
|
|
475
|
+
{ satoshis: 1001, outputId: 15633 },
|
|
476
|
+
{ satoshis: 1001, outputId: 15634 },
|
|
477
|
+
{ satoshis: 1000, outputId: 15635 },
|
|
478
|
+
{ satoshis: 1000, outputId: 15637 },
|
|
479
|
+
{ satoshis: 1001, outputId: 15638 },
|
|
480
|
+
{ satoshis: 1000, outputId: 15639 },
|
|
481
|
+
{ satoshis: 1000, outputId: 15640 },
|
|
482
|
+
{ satoshis: 1000, outputId: 15641 },
|
|
483
|
+
{ satoshis: 1000, outputId: 15642 },
|
|
484
|
+
{ satoshis: 1000, outputId: 15643 },
|
|
485
|
+
{ satoshis: 1036, outputId: 15644 },
|
|
486
|
+
{ satoshis: 1000, outputId: 15645 },
|
|
487
|
+
{ satoshis: 1000, outputId: 15646 },
|
|
488
|
+
{ satoshis: 1000, outputId: 15647 },
|
|
489
|
+
{ satoshis: 1000, outputId: 15648 },
|
|
490
|
+
{ satoshis: 1001, outputId: 15649 },
|
|
491
|
+
{ satoshis: 1000, outputId: 15650 },
|
|
492
|
+
{ satoshis: 1050, outputId: 15651 },
|
|
493
|
+
{ satoshis: 1273, outputId: 15653 },
|
|
494
|
+
{ satoshis: 1029, outputId: 15654 },
|
|
495
|
+
{ satoshis: 1524, outputId: 15655 },
|
|
496
|
+
{ satoshis: 1817, outputId: 15658 },
|
|
497
|
+
{ satoshis: 1041, outputId: 16409 }
|
|
498
|
+
]
|
|
499
|
+
};
|
|
500
|
+
const d8 = {
|
|
501
|
+
p: {
|
|
502
|
+
fixedInputs: [],
|
|
503
|
+
fixedOutputs: [
|
|
504
|
+
{ satoshis: 1564, lockingScriptLength: 25 },
|
|
505
|
+
{ satoshis: 200, lockingScriptLength: 25 }
|
|
506
|
+
],
|
|
507
|
+
feeModel: { model: 'sat/kb', value: 2 },
|
|
508
|
+
changeInitialSatoshis: 1000,
|
|
509
|
+
changeFirstSatoshis: 285,
|
|
510
|
+
changeLockingScriptLength: 25,
|
|
511
|
+
changeUnlockingScriptLength: 107
|
|
512
|
+
},
|
|
513
|
+
availableChange: [
|
|
514
|
+
{ satoshis: 23082, outputId: 14734 },
|
|
515
|
+
{ satoshis: 16496, outputId: 14742 },
|
|
516
|
+
{ satoshis: 270789, outputId: 14744 },
|
|
517
|
+
{ satoshis: 81520, outputId: 14763 },
|
|
518
|
+
{ satoshis: 14759, outputId: 14770 },
|
|
519
|
+
{ satoshis: 390625, outputId: 14774 },
|
|
520
|
+
{ satoshis: 674234, outputId: 14790 },
|
|
521
|
+
{ satoshis: 999799, outputId: 14794 },
|
|
522
|
+
{ satoshis: 1000, outputId: 15583 },
|
|
523
|
+
{ satoshis: 1000, outputId: 15584 },
|
|
524
|
+
{ satoshis: 1000, outputId: 15585 },
|
|
525
|
+
{ satoshis: 1000, outputId: 15586 },
|
|
526
|
+
{ satoshis: 1000, outputId: 15587 },
|
|
527
|
+
{ satoshis: 1000, outputId: 15588 },
|
|
528
|
+
{ satoshis: 1025, outputId: 15589 },
|
|
529
|
+
{ satoshis: 1000, outputId: 15590 },
|
|
530
|
+
{ satoshis: 1000, outputId: 15591 },
|
|
531
|
+
{ satoshis: 1000, outputId: 15593 },
|
|
532
|
+
{ satoshis: 1000, outputId: 15594 },
|
|
533
|
+
{ satoshis: 1000, outputId: 15595 },
|
|
534
|
+
{ satoshis: 1000, outputId: 15596 },
|
|
535
|
+
{ satoshis: 1000, outputId: 15597 },
|
|
536
|
+
{ satoshis: 1316, outputId: 15598 },
|
|
537
|
+
{ satoshis: 1000, outputId: 15599 },
|
|
538
|
+
{ satoshis: 1000, outputId: 15600 },
|
|
539
|
+
{ satoshis: 1000, outputId: 15601 },
|
|
540
|
+
{ satoshis: 1426, outputId: 15602 },
|
|
541
|
+
{ satoshis: 1000, outputId: 15603 },
|
|
542
|
+
{ satoshis: 1000, outputId: 15604 },
|
|
543
|
+
{ satoshis: 1000, outputId: 15605 },
|
|
544
|
+
{ satoshis: 1000, outputId: 15606 },
|
|
545
|
+
{ satoshis: 1000, outputId: 15607 },
|
|
546
|
+
{ satoshis: 1000, outputId: 15608 },
|
|
547
|
+
{ satoshis: 1000, outputId: 15609 },
|
|
548
|
+
{ satoshis: 1004, outputId: 15610 },
|
|
549
|
+
{ satoshis: 1000, outputId: 15611 },
|
|
550
|
+
{ satoshis: 1013, outputId: 15612 },
|
|
551
|
+
{ satoshis: 1001, outputId: 15614 },
|
|
552
|
+
{ satoshis: 1000, outputId: 15615 },
|
|
553
|
+
{ satoshis: 1000, outputId: 15616 },
|
|
554
|
+
{ satoshis: 1000, outputId: 15617 },
|
|
555
|
+
{ satoshis: 1000, outputId: 15618 },
|
|
556
|
+
{ satoshis: 1000, outputId: 15619 },
|
|
557
|
+
{ satoshis: 1006, outputId: 15620 },
|
|
558
|
+
{ satoshis: 1000, outputId: 15621 },
|
|
559
|
+
{ satoshis: 1000, outputId: 15622 },
|
|
560
|
+
{ satoshis: 1000, outputId: 15623 },
|
|
561
|
+
{ satoshis: 1000, outputId: 15624 },
|
|
562
|
+
{ satoshis: 1032, outputId: 15625 },
|
|
563
|
+
{ satoshis: 4571, outputId: 15626 },
|
|
564
|
+
{ satoshis: 1000, outputId: 15628 },
|
|
565
|
+
{ satoshis: 1000, outputId: 15629 },
|
|
566
|
+
{ satoshis: 1087, outputId: 15630 },
|
|
567
|
+
{ satoshis: 1000, outputId: 15631 },
|
|
568
|
+
{ satoshis: 1000, outputId: 15632 },
|
|
569
|
+
{ satoshis: 1001, outputId: 15633 },
|
|
570
|
+
{ satoshis: 1001, outputId: 15634 },
|
|
571
|
+
{ satoshis: 1000, outputId: 15635 },
|
|
572
|
+
{ satoshis: 1000, outputId: 15637 },
|
|
573
|
+
{ satoshis: 1001, outputId: 15638 },
|
|
574
|
+
{ satoshis: 1000, outputId: 15639 },
|
|
575
|
+
{ satoshis: 1000, outputId: 15640 },
|
|
576
|
+
{ satoshis: 1000, outputId: 15641 },
|
|
577
|
+
{ satoshis: 1000, outputId: 15642 },
|
|
578
|
+
{ satoshis: 1000, outputId: 15643 },
|
|
579
|
+
{ satoshis: 1036, outputId: 15644 },
|
|
580
|
+
{ satoshis: 1000, outputId: 15645 },
|
|
581
|
+
{ satoshis: 1000, outputId: 15646 },
|
|
582
|
+
{ satoshis: 1000, outputId: 15647 },
|
|
583
|
+
{ satoshis: 1000, outputId: 15648 },
|
|
584
|
+
{ satoshis: 1001, outputId: 15649 },
|
|
585
|
+
{ satoshis: 1000, outputId: 15650 },
|
|
586
|
+
{ satoshis: 1050, outputId: 15651 },
|
|
587
|
+
{ satoshis: 1273, outputId: 15653 },
|
|
588
|
+
{ satoshis: 1029, outputId: 15654 },
|
|
589
|
+
{ satoshis: 1524, outputId: 15655 },
|
|
590
|
+
{ satoshis: 1817, outputId: 15658 },
|
|
591
|
+
{ satoshis: 1041, outputId: 16409 }
|
|
592
|
+
]
|
|
593
|
+
};
|
|
594
|
+
const d9 = {
|
|
595
|
+
p: {
|
|
596
|
+
fixedInputs: [],
|
|
597
|
+
fixedOutputs: [
|
|
598
|
+
{ satoshis: 1000, lockingScriptLength: 1136 },
|
|
599
|
+
{ satoshis: 200, lockingScriptLength: 25 }
|
|
600
|
+
],
|
|
601
|
+
feeModel: { model: 'sat/kb', value: 2 },
|
|
602
|
+
changeInitialSatoshis: 1000,
|
|
603
|
+
changeFirstSatoshis: 285,
|
|
604
|
+
changeLockingScriptLength: 25,
|
|
605
|
+
changeUnlockingScriptLength: 107
|
|
606
|
+
},
|
|
607
|
+
availableChange: [
|
|
608
|
+
{ satoshis: 23082, outputId: 14734 },
|
|
609
|
+
{ satoshis: 270789, outputId: 14744 },
|
|
610
|
+
{ satoshis: 81520, outputId: 14763 },
|
|
611
|
+
{ satoshis: 14759, outputId: 14770 },
|
|
612
|
+
{ satoshis: 390625, outputId: 14774 },
|
|
613
|
+
{ satoshis: 674234, outputId: 14790 },
|
|
614
|
+
{ satoshis: 999799, outputId: 14794 },
|
|
615
|
+
{ satoshis: 1000, outputId: 15583 },
|
|
616
|
+
{ satoshis: 1000, outputId: 15584 },
|
|
617
|
+
{ satoshis: 1000, outputId: 15585 },
|
|
618
|
+
{ satoshis: 1000, outputId: 15586 },
|
|
619
|
+
{ satoshis: 1000, outputId: 15587 },
|
|
620
|
+
{ satoshis: 1000, outputId: 15588 },
|
|
621
|
+
{ satoshis: 1000, outputId: 15590 },
|
|
622
|
+
{ satoshis: 1000, outputId: 15591 },
|
|
623
|
+
{ satoshis: 1000, outputId: 15593 },
|
|
624
|
+
{ satoshis: 1000, outputId: 15594 },
|
|
625
|
+
{ satoshis: 1000, outputId: 15595 },
|
|
626
|
+
{ satoshis: 1000, outputId: 15596 },
|
|
627
|
+
{ satoshis: 1000, outputId: 15597 },
|
|
628
|
+
{ satoshis: 1000, outputId: 15599 },
|
|
629
|
+
{ satoshis: 1000, outputId: 15600 },
|
|
630
|
+
{ satoshis: 1000, outputId: 15601 },
|
|
631
|
+
{ satoshis: 1000, outputId: 15603 },
|
|
632
|
+
{ satoshis: 1000, outputId: 15604 },
|
|
633
|
+
{ satoshis: 1000, outputId: 15605 },
|
|
634
|
+
{ satoshis: 1000, outputId: 15606 },
|
|
635
|
+
{ satoshis: 1000, outputId: 15607 },
|
|
636
|
+
{ satoshis: 1000, outputId: 15608 },
|
|
637
|
+
{ satoshis: 1000, outputId: 15609 },
|
|
638
|
+
{ satoshis: 1004, outputId: 15610 },
|
|
639
|
+
{ satoshis: 1000, outputId: 15611 },
|
|
640
|
+
{ satoshis: 1001, outputId: 15614 },
|
|
641
|
+
{ satoshis: 1000, outputId: 15615 },
|
|
642
|
+
{ satoshis: 1000, outputId: 15616 },
|
|
643
|
+
{ satoshis: 1000, outputId: 15617 },
|
|
644
|
+
{ satoshis: 1000, outputId: 15618 },
|
|
645
|
+
{ satoshis: 1000, outputId: 15619 },
|
|
646
|
+
{ satoshis: 1006, outputId: 15620 },
|
|
647
|
+
{ satoshis: 1000, outputId: 15621 },
|
|
648
|
+
{ satoshis: 1000, outputId: 15622 },
|
|
649
|
+
{ satoshis: 1000, outputId: 15623 },
|
|
650
|
+
{ satoshis: 1000, outputId: 15624 },
|
|
651
|
+
{ satoshis: 4571, outputId: 15626 },
|
|
652
|
+
{ satoshis: 1000, outputId: 15628 },
|
|
653
|
+
{ satoshis: 1000, outputId: 15629 },
|
|
654
|
+
{ satoshis: 1000, outputId: 15631 },
|
|
655
|
+
{ satoshis: 1000, outputId: 15632 },
|
|
656
|
+
{ satoshis: 1001, outputId: 15633 },
|
|
657
|
+
{ satoshis: 1001, outputId: 15634 },
|
|
658
|
+
{ satoshis: 1000, outputId: 15635 },
|
|
659
|
+
{ satoshis: 1000, outputId: 15637 },
|
|
660
|
+
{ satoshis: 1001, outputId: 15638 },
|
|
661
|
+
{ satoshis: 1000, outputId: 15639 },
|
|
662
|
+
{ satoshis: 1000, outputId: 15640 },
|
|
663
|
+
{ satoshis: 1000, outputId: 15641 },
|
|
664
|
+
{ satoshis: 1000, outputId: 15642 },
|
|
665
|
+
{ satoshis: 1000, outputId: 15643 },
|
|
666
|
+
{ satoshis: 1000, outputId: 15645 },
|
|
667
|
+
{ satoshis: 1000, outputId: 15646 },
|
|
668
|
+
{ satoshis: 1000, outputId: 15647 },
|
|
669
|
+
{ satoshis: 1000, outputId: 15648 },
|
|
670
|
+
{ satoshis: 1001, outputId: 15649 },
|
|
671
|
+
{ satoshis: 1000, outputId: 15650 },
|
|
672
|
+
{ satoshis: 604, outputId: 16421 },
|
|
673
|
+
{ satoshis: 958, outputId: 16429 },
|
|
674
|
+
{ satoshis: 724, outputId: 16431 },
|
|
675
|
+
{ satoshis: 413, outputId: 16433 },
|
|
676
|
+
{ satoshis: 915, outputId: 16439 },
|
|
677
|
+
{ satoshis: 842, outputId: 16441 },
|
|
678
|
+
{ satoshis: 348, outputId: 16451 },
|
|
679
|
+
{ satoshis: 339, outputId: 16453 },
|
|
680
|
+
{ satoshis: 334, outputId: 16455 },
|
|
681
|
+
{ satoshis: 331, outputId: 16457 },
|
|
682
|
+
{ satoshis: 330, outputId: 16459 },
|
|
683
|
+
{ satoshis: 327, outputId: 16461 },
|
|
684
|
+
{ satoshis: 323, outputId: 16463 },
|
|
685
|
+
{ satoshis: 311, outputId: 16465 }
|
|
686
|
+
]
|
|
687
|
+
};
|
|
688
|
+
const d10 = {
|
|
689
|
+
p: {
|
|
690
|
+
fixedInputs: [],
|
|
691
|
+
fixedOutputs: [
|
|
692
|
+
{ satoshis: 1, lockingScriptLength: 25 },
|
|
693
|
+
{ satoshis: 200, lockingScriptLength: 25 }
|
|
694
|
+
],
|
|
695
|
+
feeModel: { model: 'sat/kb', value: 110 },
|
|
696
|
+
changeInitialSatoshis: 1000,
|
|
697
|
+
changeFirstSatoshis: 285,
|
|
698
|
+
changeLockingScriptLength: 25,
|
|
699
|
+
changeUnlockingScriptLength: 107
|
|
700
|
+
},
|
|
701
|
+
availableChange: [
|
|
702
|
+
{ satoshis: 268076, outputId: 16671 },
|
|
703
|
+
{ satoshis: 2999799, outputId: 16677 },
|
|
704
|
+
{ satoshis: 14030, outputId: 21194 },
|
|
705
|
+
{ satoshis: 100925, outputId: 21224 }
|
|
706
|
+
]
|
|
707
|
+
};
|
|
708
|
+
const d11 = {
|
|
709
|
+
p: {
|
|
710
|
+
fixedInputs: [],
|
|
711
|
+
fixedOutputs: [
|
|
712
|
+
{ satoshis: 1, lockingScriptLength: 25 },
|
|
713
|
+
{ satoshis: 200, lockingScriptLength: 25 }
|
|
714
|
+
],
|
|
715
|
+
feeModel: { model: 'sat/kb', value: 110 },
|
|
716
|
+
changeInitialSatoshis: 1000,
|
|
717
|
+
changeFirstSatoshis: 285,
|
|
718
|
+
changeLockingScriptLength: 25,
|
|
719
|
+
changeUnlockingScriptLength: 107
|
|
720
|
+
},
|
|
721
|
+
availableChange: [
|
|
722
|
+
{ satoshis: 268076, outputId: 16671 },
|
|
723
|
+
{ satoshis: 2999799, outputId: 16677 },
|
|
724
|
+
{ satoshis: 1396, outputId: 21307 },
|
|
725
|
+
{ satoshis: 1023, outputId: 21308 },
|
|
726
|
+
{ satoshis: 1000, outputId: 21309 },
|
|
727
|
+
{ satoshis: 1000, outputId: 21310 },
|
|
728
|
+
{ satoshis: 1000, outputId: 21311 },
|
|
729
|
+
{ satoshis: 1220, outputId: 21312 },
|
|
730
|
+
{ satoshis: 5573, outputId: 21313 },
|
|
731
|
+
{ satoshis: 1000, outputId: 21314 },
|
|
732
|
+
{ satoshis: 1000, outputId: 21315 },
|
|
733
|
+
{ satoshis: 5926, outputId: 21316 },
|
|
734
|
+
{ satoshis: 30814, outputId: 21317 },
|
|
735
|
+
{ satoshis: 24441, outputId: 21318 },
|
|
736
|
+
{ satoshis: 285, outputId: 21319 },
|
|
737
|
+
{ satoshis: 1325, outputId: 21320 },
|
|
738
|
+
{ satoshis: 1000, outputId: 21321 },
|
|
739
|
+
{ satoshis: 1002, outputId: 21322 },
|
|
740
|
+
{ satoshis: 1000, outputId: 21324 },
|
|
741
|
+
{ satoshis: 1057, outputId: 21325 },
|
|
742
|
+
{ satoshis: 1000, outputId: 21326 },
|
|
743
|
+
{ satoshis: 1159, outputId: 21327 },
|
|
744
|
+
{ satoshis: 1061, outputId: 21328 },
|
|
745
|
+
{ satoshis: 1000, outputId: 21329 },
|
|
746
|
+
{ satoshis: 1000, outputId: 21330 },
|
|
747
|
+
{ satoshis: 1000, outputId: 21331 },
|
|
748
|
+
{ satoshis: 8873, outputId: 21332 },
|
|
749
|
+
{ satoshis: 1001, outputId: 21333 },
|
|
750
|
+
{ satoshis: 1011, outputId: 21334 },
|
|
751
|
+
{ satoshis: 1000, outputId: 21335 },
|
|
752
|
+
{ satoshis: 13699, outputId: 21336 }
|
|
753
|
+
]
|
|
754
|
+
};
|
|
755
|
+
const d12 = {
|
|
756
|
+
p: {
|
|
757
|
+
fixedInputs: [],
|
|
758
|
+
fixedOutputs: [
|
|
759
|
+
{ satoshis: 1, lockingScriptLength: 25 },
|
|
760
|
+
{ satoshis: 200, lockingScriptLength: 25 }
|
|
761
|
+
],
|
|
762
|
+
feeModel: { model: 'sat/kb', value: 110 },
|
|
763
|
+
changeInitialSatoshis: 1000,
|
|
764
|
+
changeFirstSatoshis: 285,
|
|
765
|
+
changeLockingScriptLength: 25,
|
|
766
|
+
changeUnlockingScriptLength: 107
|
|
767
|
+
},
|
|
768
|
+
availableChange: [
|
|
769
|
+
{ satoshis: 268076, outputId: 16671 },
|
|
770
|
+
{ satoshis: 2999799, outputId: 16677 },
|
|
771
|
+
{ satoshis: 14030, outputId: 21194 },
|
|
772
|
+
{ satoshis: 100925, outputId: 21224 }
|
|
773
|
+
]
|
|
774
|
+
};
|
|
775
|
+
const d13 = {
|
|
776
|
+
p: {
|
|
777
|
+
fixedInputs: [],
|
|
778
|
+
fixedOutputs: [
|
|
779
|
+
{ satoshis: 500, lockingScriptLength: 194 },
|
|
780
|
+
{ satoshis: 2, lockingScriptLength: 25 }
|
|
781
|
+
],
|
|
782
|
+
feeModel: { model: 'sat/kb', value: 2 },
|
|
783
|
+
changeInitialSatoshis: 1000,
|
|
784
|
+
changeFirstSatoshis: 285,
|
|
785
|
+
changeLockingScriptLength: 25,
|
|
786
|
+
changeUnlockingScriptLength: 107
|
|
787
|
+
},
|
|
788
|
+
availableChange: [
|
|
789
|
+
{ satoshis: 285, outputId: 16190 },
|
|
790
|
+
{ satoshis: 1012, outputId: 18487 },
|
|
791
|
+
{ satoshis: 1013, outputId: 18488 },
|
|
792
|
+
{ satoshis: 1000, outputId: 18489 },
|
|
793
|
+
{ satoshis: 1087, outputId: 18490 },
|
|
794
|
+
{ satoshis: 290, outputId: 18491 },
|
|
795
|
+
{ satoshis: 1034, outputId: 18492 }
|
|
796
|
+
]
|
|
797
|
+
};
|
|
798
|
+
const d14 = {
|
|
799
|
+
p: {
|
|
800
|
+
fixedInputs: [],
|
|
801
|
+
fixedOutputs: [{ satoshis: 3, lockingScriptLength: 141 }],
|
|
802
|
+
feeModel: { model: 'sat/kb', value: 2 },
|
|
803
|
+
changeInitialSatoshis: 1000,
|
|
804
|
+
changeFirstSatoshis: 285,
|
|
805
|
+
changeLockingScriptLength: 25,
|
|
806
|
+
changeUnlockingScriptLength: 107,
|
|
807
|
+
targetNetCount: 22
|
|
808
|
+
},
|
|
809
|
+
availableChange: [
|
|
810
|
+
{ satoshis: 995, outputId: 16190 },
|
|
811
|
+
{ satoshis: 1000, outputId: 18487 },
|
|
812
|
+
{ satoshis: 1000, outputId: 18488 },
|
|
813
|
+
{ satoshis: 1000, outputId: 18489 },
|
|
814
|
+
{ satoshis: 1000, outputId: 18490 },
|
|
815
|
+
{ satoshis: 1000, outputId: 18491 },
|
|
816
|
+
{ satoshis: 1000, outputId: 18492 },
|
|
817
|
+
{ satoshis: 1000, outputId: 18493 },
|
|
818
|
+
{ satoshis: 1000, outputId: 18494 },
|
|
819
|
+
{ satoshis: 1000, outputId: 18495 },
|
|
820
|
+
{ satoshis: 100, outputId: 18496 }
|
|
821
|
+
]
|
|
822
|
+
};
|
|
823
|
+
const test8Cases = [
|
|
824
|
+
{
|
|
825
|
+
n: 14,
|
|
826
|
+
d: d14,
|
|
827
|
+
er: '{"allocatedChangeInputs":[{"satoshis":1000,"outputId":18495,"spendable":false}],"changeOutputs":[{"satoshis":996,"lockingScriptLength":25}],"size":342,"fee":1,"satsPerKb":2}'
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
n: 13,
|
|
831
|
+
d: d13,
|
|
832
|
+
er: '{"allocatedChangeInputs":[{"satoshis":1000,"outputId":18489,"spendable":false}],"changeOutputs":[{"satoshis":497,"lockingScriptLength":25}],"size":429,"fee":1,"satsPerKb":2}'
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
n: 12,
|
|
836
|
+
d: d12,
|
|
837
|
+
er: '{"allocatedChangeInputs":[{"satoshis":14030,"outputId":21194,"spendable":false}],"changeOutputs":[{"satoshis":13800,"lockingScriptLength":25}],"size":260,"fee":29,"satsPerKb":110}'
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
n: 11,
|
|
841
|
+
d: d11,
|
|
842
|
+
er: '{"allocatedChangeInputs":[{"satoshis":285,"outputId":21319,"spendable":false},{"satoshis":1000,"outputId":21309,"spendable":false}],"changeOutputs":[{"satoshis":1039,"lockingScriptLength":25}],"size":408,"fee":45,"satsPerKb":110}'
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
n: 10,
|
|
846
|
+
d: d10,
|
|
847
|
+
er: '{"allocatedChangeInputs":[{"satoshis":14030,"outputId":21194,"spendable":false}],"changeOutputs":[{"satoshis":13800,"lockingScriptLength":25}],"size":260,"fee":29,"satsPerKb":110}'
|
|
848
|
+
},
|
|
849
|
+
{
|
|
850
|
+
n: 9,
|
|
851
|
+
d: d9,
|
|
852
|
+
er: '{"allocatedChangeInputs":[{"satoshis":4571,"outputId":15626,"spendable":false}],"changeOutputs":[{"satoshis":3368,"lockingScriptLength":25}],"size":1373,"fee":3,"satsPerKb":2}'
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
n: 8,
|
|
856
|
+
d: d8,
|
|
857
|
+
er: '{"allocatedChangeInputs":[{"satoshis":1817,"outputId":15658,"spendable":false}],"changeOutputs":[{"satoshis":52,"lockingScriptLength":25}],"size":260,"fee":1,"satsPerKb":2}'
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
n: 7,
|
|
861
|
+
d: d7,
|
|
862
|
+
er: '{"allocatedChangeInputs":[{"satoshis":1817,"outputId":15658,"spendable":false}],"changeOutputs":[{"satoshis":46,"lockingScriptLength":25}],"size":260,"fee":1,"satsPerKb":2}'
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
n: 6,
|
|
866
|
+
d: d6,
|
|
867
|
+
er: '{"allocatedChangeInputs":[{"satoshis":1000,"outputId":16346,"spendable":false}],"changeOutputs":[{"satoshis":298,"lockingScriptLength":25}],"size":673,"fee":2,"satsPerKb":2}'
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
n: 5,
|
|
871
|
+
d: d5,
|
|
872
|
+
er: '{"allocatedChangeInputs":[],"changeOutputs":[{"satoshis":799,"lockingScriptLength":25}],"size":191,"fee":1,"satsPerKb":2}'
|
|
873
|
+
}
|
|
874
|
+
];
|
|
875
|
+
test('8 paramsText d5 d6 d7 d8 d9 d10 d11 d12 d13 d14', async () => {
|
|
876
|
+
for (const { n, d, er } of test8Cases) {
|
|
877
|
+
const params = { ...d.p };
|
|
878
|
+
const availableChange = [...d.availableChange];
|
|
879
|
+
const { allocateChangeInput, releaseChangeInput } = (0, generateChange_1.generateChangeSdkMakeStorage)(availableChange);
|
|
880
|
+
const r = await (0, generateChange_1.generateChangeSdk)(params, allocateChangeInput, releaseChangeInput);
|
|
881
|
+
expect(JSON.stringify(r)).toBe(er);
|
|
882
|
+
expectTransactionSize(params, r);
|
|
883
|
+
}
|
|
884
|
+
});
|
|
885
|
+
});
|
|
886
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
887
|
+
async function expectToThrowWERR(expectedClass, fn) {
|
|
888
|
+
try {
|
|
889
|
+
await fn();
|
|
890
|
+
}
|
|
891
|
+
catch (eu) {
|
|
892
|
+
const e = index_client_1.sdk.WalletError.fromUnknown(eu);
|
|
893
|
+
expect(e.name).toBe(expectedClass.name);
|
|
894
|
+
expect(e.isError).toBe(true);
|
|
895
|
+
return;
|
|
896
|
+
}
|
|
897
|
+
throw new Error(`${expectedClass.name} was not thrown`);
|
|
898
|
+
}
|
|
899
|
+
function makeTransaction(params, results) {
|
|
900
|
+
const tx = new sdk_1.Transaction();
|
|
901
|
+
for (const i of params.fixedInputs) {
|
|
902
|
+
tx.inputs.push({
|
|
903
|
+
unlockingScript: sdk_1.Script.fromBinary(Array(i.unlockingScriptLength).fill(0)),
|
|
904
|
+
sourceOutputIndex: 0,
|
|
905
|
+
sourceTXID: '00'.repeat(32)
|
|
906
|
+
});
|
|
907
|
+
}
|
|
908
|
+
for (const i of results.allocatedChangeInputs) {
|
|
909
|
+
tx.inputs.push({
|
|
910
|
+
unlockingScript: sdk_1.Script.fromBinary(Array(params.changeUnlockingScriptLength).fill(0)),
|
|
911
|
+
sourceOutputIndex: 0,
|
|
912
|
+
sourceTXID: '00'.repeat(32)
|
|
913
|
+
});
|
|
914
|
+
}
|
|
915
|
+
for (const o of params.fixedOutputs) {
|
|
916
|
+
tx.outputs.push({
|
|
917
|
+
lockingScript: sdk_1.Script.fromBinary(Array(o.lockingScriptLength).fill(0)),
|
|
918
|
+
satoshis: o.satoshis
|
|
919
|
+
});
|
|
920
|
+
}
|
|
921
|
+
for (const o of results.changeOutputs) {
|
|
922
|
+
tx.outputs.push({
|
|
923
|
+
lockingScript: sdk_1.Script.fromBinary(Array(o.lockingScriptLength).fill(0)),
|
|
924
|
+
satoshis: o.satoshis
|
|
925
|
+
});
|
|
926
|
+
}
|
|
927
|
+
return tx;
|
|
928
|
+
}
|
|
929
|
+
function expectTransactionSize(params, results) {
|
|
930
|
+
const tx = makeTransaction(params, results);
|
|
931
|
+
const size = tx.toBinary().length;
|
|
932
|
+
if (size !== results.size)
|
|
933
|
+
throw new index_client_1.sdk.WERR_INTERNAL(`expectTransaction actual ${size} expected ${results.size}`);
|
|
934
|
+
}
|
|
935
|
+
const defParams = {
|
|
936
|
+
fixedInputs: [],
|
|
937
|
+
fixedOutputs: [],
|
|
938
|
+
feeModel: { model: 'sat/kb', value: 2 },
|
|
939
|
+
changeInitialSatoshis: 1000,
|
|
940
|
+
changeFirstSatoshis: 285,
|
|
941
|
+
changeLockingScriptLength: 25,
|
|
942
|
+
changeUnlockingScriptLength: 107,
|
|
943
|
+
randomVals: [...randomValsUsed1_1.randomValsUsed1]
|
|
944
|
+
};
|
|
945
|
+
const _defAvailableChange = [
|
|
946
|
+
{ satoshis: 6323, outputId: 15005 },
|
|
947
|
+
{ satoshis: 1004, outputId: 15011 },
|
|
948
|
+
{ satoshis: 1000, outputId: 15013 },
|
|
949
|
+
{ satoshis: 1000, outputId: 15017 },
|
|
950
|
+
{ satoshis: 1000, outputId: 15023 },
|
|
951
|
+
{ satoshis: 1000, outputId: 15027 },
|
|
952
|
+
{ satoshis: 1000, outputId: 15034 },
|
|
953
|
+
{ satoshis: 1575097, outputId: 15101 },
|
|
954
|
+
{ satoshis: 16417, outputId: 15103 },
|
|
955
|
+
{ satoshis: 3377, outputId: 15104 },
|
|
956
|
+
{ satoshis: 10735, outputId: 15106 }
|
|
957
|
+
];
|
|
958
|
+
const defAvailableChange = () => JSON.parse(JSON.stringify(_defAvailableChange));
|
|
959
|
+
//# sourceMappingURL=generateChangeSdk.test.js.map
|