@bsv/wallet-toolbox 1.1.6 → 1.1.8
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/docs/client.md +499 -900
- package/docs/monitor.md +29 -69
- package/docs/services.md +22 -40
- package/docs/setup.md +23 -65
- package/docs/storage.md +2163 -489
- package/docs/wallet.md +499 -900
- package/out/src/monitor/tasks/TaskCheckForProofs.d.ts +4 -4
- package/out/src/monitor/tasks/TaskCheckForProofs.d.ts.map +1 -1
- package/out/src/monitor/tasks/TaskCheckForProofs.js +2 -2
- package/out/src/monitor/tasks/TaskCheckForProofs.js.map +1 -1
- package/out/src/monitor/tasks/TaskSendWaiting.d.ts +2 -2
- package/out/src/monitor/tasks/TaskSendWaiting.d.ts.map +1 -1
- package/out/src/monitor/tasks/TaskSendWaiting.js +2 -2
- package/out/src/monitor/tasks/TaskSendWaiting.js.map +1 -1
- package/out/src/sdk/StorageSyncReader.d.ts +30 -30
- package/out/src/sdk/StorageSyncReader.d.ts.map +1 -1
- package/out/src/sdk/StorageSyncReaderWriter.d.ts +60 -60
- package/out/src/sdk/StorageSyncReaderWriter.d.ts.map +1 -1
- package/out/src/sdk/WalletStorage.interfaces.d.ts +36 -36
- package/out/src/sdk/WalletStorage.interfaces.d.ts.map +1 -1
- package/out/src/signer/methods/acquireDirectCertificate.d.ts.map +1 -1
- package/out/src/signer/methods/acquireDirectCertificate.js.map +1 -1
- package/out/src/storage/StorageKnex.d.ts +61 -61
- package/out/src/storage/StorageKnex.d.ts.map +1 -1
- package/out/src/storage/StorageKnex.js +2 -2
- package/out/src/storage/StorageKnex.js.map +1 -1
- package/out/src/storage/StorageProvider.d.ts +16 -15
- package/out/src/storage/StorageProvider.d.ts.map +1 -1
- package/out/src/storage/StorageProvider.js +8 -8
- package/out/src/storage/StorageProvider.js.map +1 -1
- package/out/src/storage/StorageReader.d.ts +21 -21
- package/out/src/storage/StorageReader.d.ts.map +1 -1
- package/out/src/storage/StorageReader.js.map +1 -1
- package/out/src/storage/StorageReaderWriter.d.ts +60 -60
- package/out/src/storage/StorageReaderWriter.d.ts.map +1 -1
- package/out/src/storage/StorageReaderWriter.js.map +1 -1
- package/out/src/storage/StorageSyncReader.d.ts +17 -17
- package/out/src/storage/StorageSyncReader.d.ts.map +1 -1
- package/out/src/storage/StorageSyncReader.js.map +1 -1
- package/out/src/storage/WalletStorageManager.d.ts +9 -9
- package/out/src/storage/WalletStorageManager.d.ts.map +1 -1
- package/out/src/storage/WalletStorageManager.js +2 -2
- package/out/src/storage/WalletStorageManager.js.map +1 -1
- package/out/src/storage/index.all.d.ts +2 -2
- package/out/src/storage/index.all.d.ts.map +1 -1
- package/out/src/storage/index.all.js +3 -3
- package/out/src/storage/index.all.js.map +1 -1
- package/out/src/storage/index.client.d.ts +2 -2
- package/out/src/storage/index.client.d.ts.map +1 -1
- package/out/src/storage/index.client.js +2 -25
- package/out/src/storage/index.client.js.map +1 -1
- package/out/src/storage/methods/attemptToPostReqsToNetwork.d.ts +3 -3
- package/out/src/storage/methods/attemptToPostReqsToNetwork.d.ts.map +1 -1
- package/out/src/storage/methods/attemptToPostReqsToNetwork.js.map +1 -1
- package/out/src/storage/methods/createAction.d.ts.map +1 -1
- package/out/src/storage/methods/createAction.js +1 -1
- package/out/src/storage/methods/createAction.js.map +1 -1
- package/out/src/storage/methods/getBeefForTransaction.js +2 -2
- package/out/src/storage/methods/getBeefForTransaction.js.map +1 -1
- package/out/src/storage/methods/getSyncChunk.d.ts.map +1 -1
- package/out/src/storage/methods/getSyncChunk.js.map +1 -1
- package/out/src/storage/methods/internalizeAction.d.ts.map +1 -1
- package/out/src/storage/methods/internalizeAction.js +1 -1
- package/out/src/storage/methods/internalizeAction.js.map +1 -1
- package/out/src/storage/methods/listActions.js.map +1 -1
- package/out/src/storage/methods/listCertificates.d.ts.map +1 -1
- package/out/src/storage/methods/listCertificates.js.map +1 -1
- package/out/src/storage/methods/listOutputs.js.map +1 -1
- package/out/src/storage/methods/processAction.d.ts +4 -4
- package/out/src/storage/methods/processAction.d.ts.map +1 -1
- package/out/src/storage/methods/processAction.js +2 -2
- package/out/src/storage/methods/processAction.js.map +1 -1
- package/out/src/storage/methods/purgeData.d.ts.map +1 -1
- package/out/src/storage/methods/purgeData.js +4 -2
- package/out/src/storage/methods/purgeData.js.map +1 -1
- package/out/src/storage/methods/reviewStatus.js +1 -1
- package/out/src/storage/methods/reviewStatus.js.map +1 -1
- package/out/src/storage/remoting/StorageClient.d.ts +11 -11
- package/out/src/storage/remoting/StorageClient.d.ts.map +1 -1
- package/out/src/storage/remoting/StorageClient.js.map +1 -1
- package/out/src/storage/schema/entities/Certificate.d.ts +9 -9
- package/out/src/storage/schema/entities/Certificate.d.ts.map +1 -1
- package/out/src/storage/schema/entities/Certificate.js +5 -5
- package/out/src/storage/schema/entities/Certificate.js.map +1 -1
- package/out/src/storage/schema/entities/CertificateField.d.ts +9 -9
- package/out/src/storage/schema/entities/CertificateField.d.ts.map +1 -1
- package/out/src/storage/schema/entities/CertificateField.js +5 -5
- package/out/src/storage/schema/entities/CertificateField.js.map +1 -1
- package/out/src/storage/schema/entities/Commission.d.ts +9 -9
- package/out/src/storage/schema/entities/Commission.d.ts.map +1 -1
- package/out/src/storage/schema/entities/Commission.js +5 -5
- package/out/src/storage/schema/entities/Commission.js.map +1 -1
- package/out/src/storage/schema/entities/EntityBase.d.ts +1 -1
- package/out/src/storage/schema/entities/MergeEntity.d.ts +6 -7
- package/out/src/storage/schema/entities/MergeEntity.d.ts.map +1 -1
- package/out/src/storage/schema/entities/MergeEntity.js.map +1 -1
- package/out/src/storage/schema/entities/Output.d.ts +9 -9
- package/out/src/storage/schema/entities/Output.d.ts.map +1 -1
- package/out/src/storage/schema/entities/Output.js +5 -5
- package/out/src/storage/schema/entities/Output.js.map +1 -1
- package/out/src/storage/schema/entities/OutputBasket.d.ts +9 -9
- package/out/src/storage/schema/entities/OutputBasket.d.ts.map +1 -1
- package/out/src/storage/schema/entities/OutputBasket.js +5 -5
- package/out/src/storage/schema/entities/OutputBasket.js.map +1 -1
- package/out/src/storage/schema/entities/OutputTag.d.ts +9 -9
- package/out/src/storage/schema/entities/OutputTag.d.ts.map +1 -1
- package/out/src/storage/schema/entities/OutputTag.js +5 -5
- package/out/src/storage/schema/entities/OutputTag.js.map +1 -1
- package/out/src/storage/schema/entities/OutputTagMap.d.ts +9 -9
- package/out/src/storage/schema/entities/OutputTagMap.d.ts.map +1 -1
- package/out/src/storage/schema/entities/OutputTagMap.js +5 -5
- package/out/src/storage/schema/entities/OutputTagMap.js.map +1 -1
- package/out/src/storage/schema/entities/ProvenTx.d.ts +11 -11
- package/out/src/storage/schema/entities/ProvenTx.d.ts.map +1 -1
- package/out/src/storage/schema/entities/ProvenTx.js +11 -11
- package/out/src/storage/schema/entities/ProvenTx.js.map +1 -1
- package/out/src/storage/schema/entities/ProvenTxReq.d.ts +19 -19
- package/out/src/storage/schema/entities/ProvenTxReq.d.ts.map +1 -1
- package/out/src/storage/schema/entities/ProvenTxReq.js +13 -13
- package/out/src/storage/schema/entities/ProvenTxReq.js.map +1 -1
- package/out/src/storage/schema/entities/SyncState.d.ts +11 -11
- package/out/src/storage/schema/entities/SyncState.d.ts.map +1 -1
- package/out/src/storage/schema/entities/SyncState.js +27 -27
- package/out/src/storage/schema/entities/SyncState.js.map +1 -1
- package/out/src/storage/schema/entities/Transaction.d.ts +11 -11
- package/out/src/storage/schema/entities/Transaction.d.ts.map +1 -1
- package/out/src/storage/schema/entities/Transaction.js +6 -6
- package/out/src/storage/schema/entities/Transaction.js.map +1 -1
- package/out/src/storage/schema/entities/TxLabel.d.ts +9 -9
- package/out/src/storage/schema/entities/TxLabel.d.ts.map +1 -1
- package/out/src/storage/schema/entities/TxLabel.js +5 -5
- package/out/src/storage/schema/entities/TxLabel.js.map +1 -1
- package/out/src/storage/schema/entities/TxLabelMap.d.ts +9 -9
- package/out/src/storage/schema/entities/TxLabelMap.d.ts.map +1 -1
- package/out/src/storage/schema/entities/TxLabelMap.js +5 -5
- package/out/src/storage/schema/entities/TxLabelMap.js.map +1 -1
- package/out/src/storage/schema/entities/User.d.ts +9 -9
- package/out/src/storage/schema/entities/User.d.ts.map +1 -1
- package/out/src/storage/schema/entities/User.js +5 -5
- package/out/src/storage/schema/entities/User.js.map +1 -1
- package/out/src/storage/schema/entities/__tests/CertificateFieldTests.test.js +20 -307
- package/out/src/storage/schema/entities/__tests/CertificateFieldTests.test.js.map +1 -1
- package/out/src/storage/schema/entities/__tests/CertificateTests.test.js +17 -158
- package/out/src/storage/schema/entities/__tests/CertificateTests.test.js.map +1 -1
- package/out/src/storage/schema/entities/__tests/CommissionTests.test.js +23 -309
- package/out/src/storage/schema/entities/__tests/CommissionTests.test.js.map +1 -1
- package/out/src/storage/schema/entities/__tests/OutputBasketTests.test.js +19 -306
- package/out/src/storage/schema/entities/__tests/OutputBasketTests.test.js.map +1 -1
- package/out/src/storage/schema/entities/__tests/OutputTagMapTests.test.js +19 -306
- package/out/src/storage/schema/entities/__tests/OutputTagMapTests.test.js.map +1 -1
- package/out/src/storage/schema/entities/__tests/OutputTagTests.test.js +23 -237
- package/out/src/storage/schema/entities/__tests/OutputTagTests.test.js.map +1 -1
- package/out/src/storage/schema/entities/__tests/OutputTests.test.js +20 -233
- package/out/src/storage/schema/entities/__tests/OutputTests.test.js.map +1 -1
- package/out/src/storage/schema/entities/__tests/ProvenTxReqTests.test.js +27 -98
- package/out/src/storage/schema/entities/__tests/ProvenTxReqTests.test.js.map +1 -1
- package/out/src/storage/schema/entities/__tests/ProvenTxTests.test.js +25 -241
- package/out/src/storage/schema/entities/__tests/ProvenTxTests.test.js.map +1 -1
- package/out/src/storage/schema/entities/__tests/SyncStateTests.test.js +38 -112
- package/out/src/storage/schema/entities/__tests/SyncStateTests.test.js.map +1 -1
- package/out/src/storage/schema/entities/__tests/TransactionTests.test.js +39 -323
- package/out/src/storage/schema/entities/__tests/TransactionTests.test.js.map +1 -1
- package/out/src/storage/schema/entities/__tests/TxLabelMapTests.test.js +31 -169
- package/out/src/storage/schema/entities/__tests/TxLabelMapTests.test.js.map +1 -1
- package/out/src/storage/schema/entities/__tests/TxLabelTests.test.js +16 -159
- package/out/src/storage/schema/entities/__tests/TxLabelTests.test.js.map +1 -1
- package/out/src/storage/schema/entities/__tests/usersTests.test.js +21 -168
- package/out/src/storage/schema/entities/__tests/usersTests.test.js.map +1 -1
- package/out/src/storage/schema/tables/Certificate.d.ts +4 -4
- package/out/src/storage/schema/tables/Certificate.d.ts.map +1 -1
- package/out/src/storage/schema/tables/CertificateField.d.ts +1 -1
- package/out/src/storage/schema/tables/CertificateField.d.ts.map +1 -1
- package/out/src/storage/schema/tables/Commission.d.ts +1 -1
- package/out/src/storage/schema/tables/Commission.d.ts.map +1 -1
- package/out/src/storage/schema/tables/MonitorEvent.d.ts +1 -1
- package/out/src/storage/schema/tables/MonitorEvent.d.ts.map +1 -1
- package/out/src/storage/schema/tables/Output.d.ts +5 -5
- package/out/src/storage/schema/tables/Output.d.ts.map +1 -1
- package/out/src/storage/schema/tables/OutputBasket.d.ts +1 -1
- package/out/src/storage/schema/tables/OutputBasket.d.ts.map +1 -1
- package/out/src/storage/schema/tables/OutputTag.d.ts +1 -1
- package/out/src/storage/schema/tables/OutputTag.d.ts.map +1 -1
- package/out/src/storage/schema/tables/OutputTagMap.d.ts +1 -1
- package/out/src/storage/schema/tables/OutputTagMap.d.ts.map +1 -1
- package/out/src/storage/schema/tables/ProvenTx.d.ts +1 -1
- package/out/src/storage/schema/tables/ProvenTx.d.ts.map +1 -1
- package/out/src/storage/schema/tables/ProvenTxReq.d.ts +2 -2
- package/out/src/storage/schema/tables/ProvenTxReq.d.ts.map +1 -1
- package/out/src/storage/schema/tables/SyncState.d.ts +1 -1
- package/out/src/storage/schema/tables/SyncState.d.ts.map +1 -1
- package/out/src/storage/schema/tables/{Settings.d.ts → TableSettings.d.ts} +2 -2
- package/out/src/storage/schema/tables/TableSettings.d.ts.map +1 -0
- package/out/src/storage/schema/tables/{Settings.js → TableSettings.js} +1 -1
- package/out/src/storage/schema/tables/TableSettings.js.map +1 -0
- package/out/src/storage/schema/tables/Transaction.d.ts +1 -1
- package/out/src/storage/schema/tables/Transaction.d.ts.map +1 -1
- package/out/src/storage/schema/tables/TxLabel.d.ts +1 -1
- package/out/src/storage/schema/tables/TxLabel.d.ts.map +1 -1
- package/out/src/storage/schema/tables/TxLabelMap.d.ts +1 -1
- package/out/src/storage/schema/tables/TxLabelMap.d.ts.map +1 -1
- package/out/src/storage/schema/tables/User.d.ts +1 -1
- package/out/src/storage/schema/tables/User.d.ts.map +1 -1
- package/out/src/storage/schema/tables/index.d.ts +1 -1
- package/out/src/storage/schema/tables/index.d.ts.map +1 -1
- package/out/src/storage/schema/tables/index.js +1 -1
- package/out/src/storage/schema/tables/index.js.map +1 -1
- package/out/src/storage/sync/StorageMySQLDojoReader.d.ts +17 -17
- package/out/src/storage/sync/StorageMySQLDojoReader.d.ts.map +1 -1
- package/out/src/storage/sync/StorageMySQLDojoReader.js +2 -2
- package/out/src/storage/sync/StorageMySQLDojoReader.js.map +1 -1
- package/out/test/Wallet/certificate/listCertificates.test.js.map +1 -1
- package/out/test/Wallet/live/walletLive.man.test.d.ts.map +1 -1
- package/out/test/Wallet/live/walletLive.man.test.js +35 -1
- package/out/test/Wallet/live/walletLive.man.test.js.map +1 -1
- package/out/test/monitor/Monitor.test.js +7 -7
- package/out/test/monitor/Monitor.test.js.map +1 -1
- package/out/test/storage/StorageMySQLDojoReader.man.test.js +1 -1
- package/out/test/storage/StorageMySQLDojoReader.man.test.js.map +1 -1
- package/out/test/storage/insert.test.js.map +1 -1
- package/out/test/storage/update.test.js.map +1 -1
- package/out/test/storage/update2.test.js.map +1 -1
- package/out/test/utils/TestUtilsWalletStorage.d.ts +56 -56
- package/out/test/utils/TestUtilsWalletStorage.d.ts.map +1 -1
- package/out/test/utils/TestUtilsWalletStorage.js +11 -4
- package/out/test/utils/TestUtilsWalletStorage.js.map +1 -1
- package/out/test/wallet/action/createActionToGenerateBeefs.man.test.js.map +1 -1
- package/out/tsconfig.all.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/monitor/tasks/TaskCheckForProofs.ts +11 -10
- package/src/monitor/tasks/TaskSendWaiting.ts +5 -5
- package/src/sdk/StorageSyncReader.ts +47 -30
- package/src/sdk/StorageSyncReaderWriter.ts +77 -63
- package/src/sdk/WalletStorage.interfaces.ts +55 -36
- package/src/signer/methods/acquireDirectCertificate.ts +2 -2
- package/src/storage/StorageKnex.ts +124 -104
- package/src/storage/StorageProvider.ts +43 -30
- package/src/storage/StorageReader.ts +36 -21
- package/src/storage/StorageReaderWriter.ts +78 -65
- package/src/storage/StorageSyncReader.ts +34 -17
- package/src/storage/WalletStorageManager.ts +17 -12
- package/src/storage/index.all.ts +2 -2
- package/src/storage/index.client.ts +2 -2
- package/src/storage/methods/attemptToPostReqsToNetwork.ts +3 -3
- package/src/storage/methods/createAction.ts +29 -26
- package/src/storage/methods/getBeefForTransaction.ts +3 -3
- package/src/storage/methods/getSyncChunk.ts +28 -13
- package/src/storage/methods/internalizeAction.ts +19 -17
- package/src/storage/methods/listActions.ts +5 -5
- package/src/storage/methods/listCertificates.ts +2 -2
- package/src/storage/methods/listOutputs.ts +5 -5
- package/src/storage/methods/processAction.ts +21 -17
- package/src/storage/methods/purgeData.ts +20 -12
- package/src/storage/methods/reviewStatus.ts +5 -5
- package/src/storage/remoting/StorageClient.ts +28 -18
- package/src/storage/schema/entities/Certificate.ts +16 -17
- package/src/storage/schema/entities/CertificateField.ts +17 -18
- package/src/storage/schema/entities/Commission.ts +16 -20
- package/src/storage/schema/entities/EntityBase.ts +1 -1
- package/src/storage/schema/entities/MergeEntity.ts +7 -7
- package/src/storage/schema/entities/Output.ts +16 -20
- package/src/storage/schema/entities/OutputBasket.ts +16 -17
- package/src/storage/schema/entities/OutputTag.ts +16 -20
- package/src/storage/schema/entities/OutputTagMap.ts +17 -18
- package/src/storage/schema/entities/ProvenTx.ts +24 -28
- package/src/storage/schema/entities/ProvenTxReq.ts +42 -45
- package/src/storage/schema/entities/SyncState.ts +61 -38
- package/src/storage/schema/entities/Transaction.ts +23 -23
- package/src/storage/schema/entities/TxLabel.ts +16 -17
- package/src/storage/schema/entities/TxLabelMap.ts +16 -20
- package/src/storage/schema/entities/User.ts +15 -19
- package/src/storage/schema/entities/__tests/CertificateFieldTests.test.ts +39 -318
- package/src/storage/schema/entities/__tests/CertificateTests.test.ts +29 -169
- package/src/storage/schema/entities/__tests/CommissionTests.test.ts +47 -325
- package/src/storage/schema/entities/__tests/OutputBasketTests.test.ts +35 -316
- package/src/storage/schema/entities/__tests/OutputTagMapTests.test.ts +38 -318
- package/src/storage/schema/entities/__tests/OutputTagTests.test.ts +36 -249
- package/src/storage/schema/entities/__tests/OutputTests.test.ts +30 -244
- package/src/storage/schema/entities/__tests/ProvenTxReqTests.test.ts +35 -101
- package/src/storage/schema/entities/__tests/ProvenTxTests.test.ts +27 -243
- package/src/storage/schema/entities/__tests/SyncStateTests.test.ts +54 -122
- package/src/storage/schema/entities/__tests/TransactionTests.test.ts +53 -333
- package/src/storage/schema/entities/__tests/TxLabelMapTests.test.ts +44 -177
- package/src/storage/schema/entities/__tests/TxLabelTests.test.ts +19 -163
- package/src/storage/schema/entities/__tests/usersTests.test.ts +31 -179
- package/src/storage/schema/tables/Certificate.ts +4 -4
- package/src/storage/schema/tables/CertificateField.ts +1 -1
- package/src/storage/schema/tables/Commission.ts +1 -1
- package/src/storage/schema/tables/MonitorEvent.ts +1 -1
- package/src/storage/schema/tables/Output.ts +5 -5
- package/src/storage/schema/tables/OutputBasket.ts +1 -1
- package/src/storage/schema/tables/OutputTag.ts +1 -1
- package/src/storage/schema/tables/OutputTagMap.ts +1 -1
- package/src/storage/schema/tables/ProvenTx.ts +1 -1
- package/src/storage/schema/tables/ProvenTxReq.ts +2 -2
- package/src/storage/schema/tables/SyncState.ts +1 -1
- package/src/storage/schema/tables/{Settings.ts → TableSettings.ts} +3 -1
- package/src/storage/schema/tables/Transaction.ts +1 -1
- package/src/storage/schema/tables/TxLabel.ts +1 -1
- package/src/storage/schema/tables/TxLabelMap.ts +1 -1
- package/src/storage/schema/tables/User.ts +1 -1
- package/src/storage/schema/tables/index.ts +1 -1
- package/src/storage/sync/StorageMySQLDojoReader.ts +67 -50
- package/test/Wallet/certificate/listCertificates.test.ts +12 -8
- package/test/Wallet/live/walletLive.man.test.ts +46 -6
- package/test/monitor/Monitor.test.ts +8 -8
- package/test/storage/StorageMySQLDojoReader.man.test.ts +1 -1
- package/test/storage/insert.test.ts +2 -2
- package/test/storage/update.test.ts +30 -30
- package/test/storage/update2.test.ts +23 -24
- package/test/utils/TestUtilsWalletStorage.ts +103 -82
- package/test/wallet/action/createActionToGenerateBeefs.man.test.ts +1 -2
- package/ts2md.json +12 -6
- package/out/src/storage/index.db.d.ts +0 -1
- package/out/src/storage/index.db.d.ts.map +0 -1
- package/out/src/storage/index.db.js +0 -2
- package/out/src/storage/index.db.js.map +0 -1
- package/out/src/storage/schema/tables/Settings.d.ts.map +0 -1
- package/out/src/storage/schema/tables/Settings.js.map +0 -1
- package/src/storage/index.db.ts +0 -0
|
@@ -2,17 +2,16 @@
|
|
|
2
2
|
import { MerklePath } from '@bsv/sdk'
|
|
3
3
|
import {
|
|
4
4
|
arraysEqual,
|
|
5
|
-
entity,
|
|
6
5
|
optionalArraysEqual,
|
|
7
6
|
sdk,
|
|
8
|
-
|
|
7
|
+
TableOutput,
|
|
9
8
|
verifyId,
|
|
10
9
|
verifyOneOrNone
|
|
11
10
|
} from '../../../index.client'
|
|
12
|
-
import { EntityBase } from '.'
|
|
11
|
+
import { EntityBase, EntityStorage, SyncMap } from '.'
|
|
13
12
|
|
|
14
|
-
export class
|
|
15
|
-
constructor(api?:
|
|
13
|
+
export class EntityOutput extends EntityBase<TableOutput> {
|
|
14
|
+
constructor(api?: TableOutput) {
|
|
16
15
|
const now = new Date()
|
|
17
16
|
super(
|
|
18
17
|
api || {
|
|
@@ -202,16 +201,13 @@ export class Output extends EntityBase<table.Output> {
|
|
|
202
201
|
this.api.outputId = v
|
|
203
202
|
}
|
|
204
203
|
override get entityName(): string {
|
|
205
|
-
return '
|
|
204
|
+
return 'output'
|
|
206
205
|
}
|
|
207
206
|
override get entityTable(): string {
|
|
208
207
|
return 'outputs'
|
|
209
208
|
}
|
|
210
209
|
|
|
211
|
-
override equals(
|
|
212
|
-
ei: table.Output,
|
|
213
|
-
syncMap?: entity.SyncMap | undefined
|
|
214
|
-
): boolean {
|
|
210
|
+
override equals(ei: TableOutput, syncMap?: SyncMap | undefined): boolean {
|
|
215
211
|
if (
|
|
216
212
|
this.transactionId !==
|
|
217
213
|
(syncMap
|
|
@@ -249,12 +245,12 @@ export class Output extends EntityBase<table.Output> {
|
|
|
249
245
|
}
|
|
250
246
|
|
|
251
247
|
static async mergeFind(
|
|
252
|
-
storage:
|
|
248
|
+
storage: EntityStorage,
|
|
253
249
|
userId: number,
|
|
254
|
-
ei:
|
|
255
|
-
syncMap:
|
|
250
|
+
ei: TableOutput,
|
|
251
|
+
syncMap: SyncMap,
|
|
256
252
|
trx?: sdk.TrxToken
|
|
257
|
-
): Promise<{ found: boolean; eo:
|
|
253
|
+
): Promise<{ found: boolean; eo: EntityOutput; eiId: number }> {
|
|
258
254
|
const transactionId = syncMap.transaction.idMap[ei.transactionId]
|
|
259
255
|
const basketId = ei.basketId
|
|
260
256
|
? syncMap.outputBasket.idMap[ei.basketId]
|
|
@@ -267,15 +263,15 @@ export class Output extends EntityBase<table.Output> {
|
|
|
267
263
|
)
|
|
268
264
|
return {
|
|
269
265
|
found: !!ef,
|
|
270
|
-
eo: new
|
|
266
|
+
eo: new EntityOutput(ef || { ...ei }),
|
|
271
267
|
eiId: verifyId(ei.outputId)
|
|
272
268
|
}
|
|
273
269
|
}
|
|
274
270
|
|
|
275
271
|
override async mergeNew(
|
|
276
|
-
storage:
|
|
272
|
+
storage: EntityStorage,
|
|
277
273
|
userId: number,
|
|
278
|
-
syncMap:
|
|
274
|
+
syncMap: SyncMap,
|
|
279
275
|
trx?: sdk.TrxToken
|
|
280
276
|
): Promise<void> {
|
|
281
277
|
this.userId = userId
|
|
@@ -291,10 +287,10 @@ export class Output extends EntityBase<table.Output> {
|
|
|
291
287
|
}
|
|
292
288
|
|
|
293
289
|
override async mergeExisting(
|
|
294
|
-
storage:
|
|
290
|
+
storage: EntityStorage,
|
|
295
291
|
since: Date | undefined,
|
|
296
|
-
ei:
|
|
297
|
-
syncMap:
|
|
292
|
+
ei: TableOutput,
|
|
293
|
+
syncMap: SyncMap,
|
|
298
294
|
trx?: sdk.TrxToken
|
|
299
295
|
): Promise<boolean> {
|
|
300
296
|
let wasMerged = false
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { MerklePath } from '@bsv/sdk'
|
|
2
2
|
import {
|
|
3
3
|
arraysEqual,
|
|
4
|
-
entity,
|
|
5
4
|
sdk,
|
|
6
|
-
|
|
5
|
+
TableOutputBasket,
|
|
7
6
|
verifyId,
|
|
8
7
|
verifyOneOrNone
|
|
9
8
|
} from '../../../index.client'
|
|
10
|
-
import { EntityBase } from '.'
|
|
9
|
+
import { EntityBase, EntityStorage, SyncMap } from '.'
|
|
11
10
|
|
|
12
|
-
export class
|
|
13
|
-
constructor(api?:
|
|
11
|
+
export class EntityOutputBasket extends EntityBase<TableOutputBasket> {
|
|
12
|
+
constructor(api?: TableOutputBasket) {
|
|
14
13
|
const now = new Date()
|
|
15
14
|
super(
|
|
16
15
|
api || {
|
|
@@ -82,7 +81,7 @@ export class OutputBasket extends EntityBase<table.OutputBasket> {
|
|
|
82
81
|
this.api.basketId = v
|
|
83
82
|
}
|
|
84
83
|
override get entityName(): string {
|
|
85
|
-
return '
|
|
84
|
+
return 'outputBasket'
|
|
86
85
|
}
|
|
87
86
|
override get entityTable(): string {
|
|
88
87
|
return 'output_baskets'
|
|
@@ -92,7 +91,7 @@ export class OutputBasket extends EntityBase<table.OutputBasket> {
|
|
|
92
91
|
/* nothing needed yet... */
|
|
93
92
|
}
|
|
94
93
|
|
|
95
|
-
override equals(ei:
|
|
94
|
+
override equals(ei: TableOutputBasket, syncMap?: SyncMap): boolean {
|
|
96
95
|
const eo = this.api
|
|
97
96
|
if (
|
|
98
97
|
eo.name != ei.name ||
|
|
@@ -110,12 +109,12 @@ export class OutputBasket extends EntityBase<table.OutputBasket> {
|
|
|
110
109
|
}
|
|
111
110
|
|
|
112
111
|
static async mergeFind(
|
|
113
|
-
storage:
|
|
112
|
+
storage: EntityStorage,
|
|
114
113
|
userId: number,
|
|
115
|
-
ei:
|
|
116
|
-
syncMap:
|
|
114
|
+
ei: TableOutputBasket,
|
|
115
|
+
syncMap: SyncMap,
|
|
117
116
|
trx?: sdk.TrxToken
|
|
118
|
-
): Promise<{ found: boolean; eo:
|
|
117
|
+
): Promise<{ found: boolean; eo: EntityOutputBasket; eiId: number }> {
|
|
119
118
|
const ef = verifyOneOrNone(
|
|
120
119
|
await storage.findOutputBaskets({
|
|
121
120
|
partial: { name: ei.name, userId },
|
|
@@ -124,16 +123,16 @@ export class OutputBasket extends EntityBase<table.OutputBasket> {
|
|
|
124
123
|
)
|
|
125
124
|
return {
|
|
126
125
|
found: !!ef,
|
|
127
|
-
eo: new
|
|
126
|
+
eo: new EntityOutputBasket(ef || { ...ei }),
|
|
128
127
|
eiId: verifyId(ei.basketId)
|
|
129
128
|
}
|
|
130
129
|
}
|
|
131
130
|
|
|
132
131
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
133
132
|
override async mergeNew(
|
|
134
|
-
storage:
|
|
133
|
+
storage: EntityStorage,
|
|
135
134
|
userId: number,
|
|
136
|
-
syncMap:
|
|
135
|
+
syncMap: SyncMap,
|
|
137
136
|
trx?: sdk.TrxToken
|
|
138
137
|
): Promise<void> {
|
|
139
138
|
this.userId = userId
|
|
@@ -144,10 +143,10 @@ export class OutputBasket extends EntityBase<table.OutputBasket> {
|
|
|
144
143
|
|
|
145
144
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
146
145
|
override async mergeExisting(
|
|
147
|
-
storage:
|
|
146
|
+
storage: EntityStorage,
|
|
148
147
|
since: Date | undefined,
|
|
149
|
-
ei:
|
|
150
|
-
syncMap:
|
|
148
|
+
ei: TableOutputBasket,
|
|
149
|
+
syncMap: SyncMap,
|
|
151
150
|
trx?: sdk.TrxToken
|
|
152
151
|
): Promise<boolean> {
|
|
153
152
|
let wasMerged = false
|
|
@@ -2,16 +2,15 @@
|
|
|
2
2
|
import { MerklePath } from '@bsv/sdk'
|
|
3
3
|
import {
|
|
4
4
|
arraysEqual,
|
|
5
|
-
entity,
|
|
6
5
|
sdk,
|
|
7
|
-
|
|
6
|
+
TableOutputTag,
|
|
8
7
|
verifyId,
|
|
9
8
|
verifyOneOrNone
|
|
10
9
|
} from '../../../index.client'
|
|
11
|
-
import { EntityBase } from '.'
|
|
10
|
+
import { EntityBase, EntityStorage, SyncMap } from '.'
|
|
12
11
|
|
|
13
|
-
export class
|
|
14
|
-
constructor(api?:
|
|
12
|
+
export class EntityOutputTag extends EntityBase<TableOutputTag> {
|
|
13
|
+
constructor(api?: TableOutputTag) {
|
|
15
14
|
const now = new Date()
|
|
16
15
|
super(
|
|
17
16
|
api || {
|
|
@@ -73,16 +72,13 @@ export class OutputTag extends EntityBase<table.OutputTag> {
|
|
|
73
72
|
this.api.outputTagId = v
|
|
74
73
|
}
|
|
75
74
|
override get entityName(): string {
|
|
76
|
-
return '
|
|
75
|
+
return 'outputTag'
|
|
77
76
|
}
|
|
78
77
|
override get entityTable(): string {
|
|
79
78
|
return 'output_tags'
|
|
80
79
|
}
|
|
81
80
|
|
|
82
|
-
override equals(
|
|
83
|
-
ei: table.OutputTag,
|
|
84
|
-
syncMap?: entity.SyncMap | undefined
|
|
85
|
-
): boolean {
|
|
81
|
+
override equals(ei: TableOutputTag, syncMap?: SyncMap | undefined): boolean {
|
|
86
82
|
const eo = this.toApi()
|
|
87
83
|
if (eo.tag != ei.tag || eo.isDeleted != ei.isDeleted) return false
|
|
88
84
|
if (!syncMap) {
|
|
@@ -92,26 +88,26 @@ export class OutputTag extends EntityBase<table.OutputTag> {
|
|
|
92
88
|
}
|
|
93
89
|
|
|
94
90
|
static async mergeFind(
|
|
95
|
-
storage:
|
|
91
|
+
storage: EntityStorage,
|
|
96
92
|
userId: number,
|
|
97
|
-
ei:
|
|
98
|
-
syncMap:
|
|
93
|
+
ei: TableOutputTag,
|
|
94
|
+
syncMap: SyncMap,
|
|
99
95
|
trx?: sdk.TrxToken
|
|
100
|
-
): Promise<{ found: boolean; eo:
|
|
96
|
+
): Promise<{ found: boolean; eo: EntityOutputTag; eiId: number }> {
|
|
101
97
|
const ef = verifyOneOrNone(
|
|
102
98
|
await storage.findOutputTags({ partial: { tag: ei.tag, userId }, trx })
|
|
103
99
|
)
|
|
104
100
|
return {
|
|
105
101
|
found: !!ef,
|
|
106
|
-
eo: new
|
|
102
|
+
eo: new EntityOutputTag(ef || { ...ei }),
|
|
107
103
|
eiId: verifyId(ei.outputTagId)
|
|
108
104
|
}
|
|
109
105
|
}
|
|
110
106
|
|
|
111
107
|
override async mergeNew(
|
|
112
|
-
storage:
|
|
108
|
+
storage: EntityStorage,
|
|
113
109
|
userId: number,
|
|
114
|
-
syncMap:
|
|
110
|
+
syncMap: SyncMap,
|
|
115
111
|
trx?: sdk.TrxToken
|
|
116
112
|
): Promise<void> {
|
|
117
113
|
this.userId = userId
|
|
@@ -120,10 +116,10 @@ export class OutputTag extends EntityBase<table.OutputTag> {
|
|
|
120
116
|
}
|
|
121
117
|
|
|
122
118
|
override async mergeExisting(
|
|
123
|
-
storage:
|
|
119
|
+
storage: EntityStorage,
|
|
124
120
|
since: Date | undefined,
|
|
125
|
-
ei:
|
|
126
|
-
syncMap:
|
|
121
|
+
ei: TableOutputTag,
|
|
122
|
+
syncMap: SyncMap,
|
|
127
123
|
trx?: sdk.TrxToken
|
|
128
124
|
): Promise<boolean> {
|
|
129
125
|
let wasMerged = false
|
|
@@ -2,16 +2,15 @@
|
|
|
2
2
|
import { MerklePath } from '@bsv/sdk'
|
|
3
3
|
import {
|
|
4
4
|
arraysEqual,
|
|
5
|
-
entity,
|
|
6
5
|
sdk,
|
|
7
|
-
|
|
6
|
+
TableOutputTagMap,
|
|
8
7
|
verifyId,
|
|
9
8
|
verifyOneOrNone
|
|
10
9
|
} from '../../../index.client'
|
|
11
|
-
import { EntityBase } from '.'
|
|
10
|
+
import { EntityBase, EntityStorage, SyncMap } from '.'
|
|
12
11
|
|
|
13
|
-
export class
|
|
14
|
-
constructor(api?:
|
|
12
|
+
export class EntityOutputTagMap extends EntityBase<TableOutputTagMap> {
|
|
13
|
+
constructor(api?: TableOutputTagMap) {
|
|
15
14
|
const now = new Date()
|
|
16
15
|
super(
|
|
17
16
|
api || {
|
|
@@ -63,15 +62,15 @@ export class OutputTagMap extends EntityBase<table.OutputTagMap> {
|
|
|
63
62
|
throw new sdk.WERR_INVALID_OPERATION('entity has no "id" value')
|
|
64
63
|
}
|
|
65
64
|
override get entityName(): string {
|
|
66
|
-
return '
|
|
65
|
+
return 'outputTagMap'
|
|
67
66
|
}
|
|
68
67
|
override get entityTable(): string {
|
|
69
68
|
return 'output_tags_map'
|
|
70
69
|
}
|
|
71
70
|
|
|
72
71
|
override equals(
|
|
73
|
-
ei:
|
|
74
|
-
syncMap?:
|
|
72
|
+
ei: TableOutputTagMap,
|
|
73
|
+
syncMap?: SyncMap | undefined
|
|
75
74
|
): boolean {
|
|
76
75
|
const eo = this.toApi()
|
|
77
76
|
|
|
@@ -90,12 +89,12 @@ export class OutputTagMap extends EntityBase<table.OutputTagMap> {
|
|
|
90
89
|
}
|
|
91
90
|
|
|
92
91
|
static async mergeFind(
|
|
93
|
-
storage:
|
|
92
|
+
storage: EntityStorage,
|
|
94
93
|
userId: number,
|
|
95
|
-
ei:
|
|
96
|
-
syncMap:
|
|
94
|
+
ei: TableOutputTagMap,
|
|
95
|
+
syncMap: SyncMap,
|
|
97
96
|
trx?: sdk.TrxToken
|
|
98
|
-
): Promise<{ found: boolean; eo:
|
|
97
|
+
): Promise<{ found: boolean; eo: EntityOutputTagMap; eiId: number }> {
|
|
99
98
|
const outputId = syncMap.output.idMap[ei.outputId]
|
|
100
99
|
const outputTagId = syncMap.outputTag.idMap[ei.outputTagId]
|
|
101
100
|
const ef = verifyOneOrNone(
|
|
@@ -106,15 +105,15 @@ export class OutputTagMap extends EntityBase<table.OutputTagMap> {
|
|
|
106
105
|
)
|
|
107
106
|
return {
|
|
108
107
|
found: !!ef,
|
|
109
|
-
eo: new
|
|
108
|
+
eo: new EntityOutputTagMap(ef || { ...ei }),
|
|
110
109
|
eiId: -1
|
|
111
110
|
}
|
|
112
111
|
}
|
|
113
112
|
|
|
114
113
|
override async mergeNew(
|
|
115
|
-
storage:
|
|
114
|
+
storage: EntityStorage,
|
|
116
115
|
userId: number,
|
|
117
|
-
syncMap:
|
|
116
|
+
syncMap: SyncMap,
|
|
118
117
|
trx?: sdk.TrxToken
|
|
119
118
|
): Promise<void> {
|
|
120
119
|
this.outputId = syncMap.output.idMap[this.outputId]
|
|
@@ -123,10 +122,10 @@ export class OutputTagMap extends EntityBase<table.OutputTagMap> {
|
|
|
123
122
|
}
|
|
124
123
|
|
|
125
124
|
override async mergeExisting(
|
|
126
|
-
storage:
|
|
125
|
+
storage: EntityStorage,
|
|
127
126
|
since: Date | undefined,
|
|
128
|
-
ei:
|
|
129
|
-
syncMap:
|
|
127
|
+
ei: TableOutputTagMap,
|
|
128
|
+
syncMap: SyncMap,
|
|
130
129
|
trx?: sdk.TrxToken
|
|
131
130
|
): Promise<boolean> {
|
|
132
131
|
let wasMerged = false
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { MerklePath } from '@bsv/sdk'
|
|
2
2
|
import {
|
|
3
3
|
arraysEqual,
|
|
4
|
-
entity,
|
|
5
4
|
sdk,
|
|
6
|
-
|
|
5
|
+
TableProvenTx,
|
|
7
6
|
verifyId,
|
|
8
7
|
verifyOneOrNone
|
|
9
8
|
} from '../../../index.client'
|
|
10
|
-
import { EntityBase } from '.'
|
|
9
|
+
import { EntityBase, EntityProvenTxReq, EntityStorage, SyncMap } from '.'
|
|
11
10
|
|
|
12
|
-
export class
|
|
11
|
+
export class EntityProvenTx extends EntityBase<TableProvenTx> {
|
|
13
12
|
/**
|
|
14
13
|
* Given a txid and optionally its rawTx, create a new ProvenTx object.
|
|
15
14
|
*
|
|
@@ -48,7 +47,7 @@ export class ProvenTx extends EntityBase<table.ProvenTx> {
|
|
|
48
47
|
if (gmpr.merklePath && gmpr.header) {
|
|
49
48
|
const index = gmpr.merklePath.path[0].find(l => l.hash === txid)?.offset
|
|
50
49
|
if (index !== undefined) {
|
|
51
|
-
const api:
|
|
50
|
+
const api: TableProvenTx = {
|
|
52
51
|
created_at: new Date(),
|
|
53
52
|
updated_at: new Date(),
|
|
54
53
|
provenTxId: 0,
|
|
@@ -60,14 +59,14 @@ export class ProvenTx extends EntityBase<table.ProvenTx> {
|
|
|
60
59
|
blockHash: gmpr.header.hash,
|
|
61
60
|
merkleRoot: gmpr.header.merkleRoot
|
|
62
61
|
}
|
|
63
|
-
r.proven = new
|
|
62
|
+
r.proven = new EntityProvenTx(api)
|
|
64
63
|
}
|
|
65
64
|
}
|
|
66
65
|
|
|
67
66
|
return r
|
|
68
67
|
}
|
|
69
68
|
|
|
70
|
-
constructor(api?:
|
|
69
|
+
constructor(api?: TableProvenTx) {
|
|
71
70
|
const now = new Date()
|
|
72
71
|
super(
|
|
73
72
|
api || {
|
|
@@ -165,16 +164,13 @@ export class ProvenTx extends EntityBase<table.ProvenTx> {
|
|
|
165
164
|
this.api.provenTxId = v
|
|
166
165
|
}
|
|
167
166
|
override get entityName(): string {
|
|
168
|
-
return '
|
|
167
|
+
return 'provenTx'
|
|
169
168
|
}
|
|
170
169
|
override get entityTable(): string {
|
|
171
170
|
return 'proven_txs'
|
|
172
171
|
}
|
|
173
172
|
|
|
174
|
-
override equals(
|
|
175
|
-
ei: table.ProvenTx,
|
|
176
|
-
syncMap?: entity.SyncMap | undefined
|
|
177
|
-
): boolean {
|
|
173
|
+
override equals(ei: TableProvenTx, syncMap?: SyncMap | undefined): boolean {
|
|
178
174
|
const eo = this.toApi()
|
|
179
175
|
if (
|
|
180
176
|
eo.txid != ei.txid ||
|
|
@@ -198,26 +194,26 @@ export class ProvenTx extends EntityBase<table.ProvenTx> {
|
|
|
198
194
|
}
|
|
199
195
|
|
|
200
196
|
static async mergeFind(
|
|
201
|
-
storage:
|
|
197
|
+
storage: EntityStorage,
|
|
202
198
|
userId: number,
|
|
203
|
-
ei:
|
|
204
|
-
syncMap:
|
|
199
|
+
ei: TableProvenTx,
|
|
200
|
+
syncMap: SyncMap,
|
|
205
201
|
trx?: sdk.TrxToken
|
|
206
|
-
): Promise<{ found: boolean; eo:
|
|
202
|
+
): Promise<{ found: boolean; eo: EntityProvenTx; eiId: number }> {
|
|
207
203
|
const ef = verifyOneOrNone(
|
|
208
204
|
await storage.findProvenTxs({ partial: { txid: ei.txid }, trx })
|
|
209
205
|
)
|
|
210
206
|
return {
|
|
211
207
|
found: !!ef,
|
|
212
|
-
eo: new
|
|
208
|
+
eo: new EntityProvenTx(ef || { ...ei }),
|
|
213
209
|
eiId: verifyId(ei.provenTxId)
|
|
214
210
|
}
|
|
215
211
|
}
|
|
216
212
|
|
|
217
213
|
override async mergeNew(
|
|
218
|
-
storage:
|
|
214
|
+
storage: EntityStorage,
|
|
219
215
|
userId: number,
|
|
220
|
-
syncMap:
|
|
216
|
+
syncMap: SyncMap,
|
|
221
217
|
trx?: sdk.TrxToken
|
|
222
218
|
): Promise<void> {
|
|
223
219
|
this.provenTxId = 0
|
|
@@ -226,10 +222,10 @@ export class ProvenTx extends EntityBase<table.ProvenTx> {
|
|
|
226
222
|
}
|
|
227
223
|
|
|
228
224
|
override async mergeExisting(
|
|
229
|
-
storage:
|
|
225
|
+
storage: EntityStorage,
|
|
230
226
|
since: Date | undefined,
|
|
231
|
-
ei:
|
|
232
|
-
syncMap:
|
|
227
|
+
ei: TableProvenTx,
|
|
228
|
+
syncMap: SyncMap,
|
|
233
229
|
trx?: sdk.TrxToken
|
|
234
230
|
): Promise<boolean> {
|
|
235
231
|
// ProvenTxs are never updated.
|
|
@@ -256,10 +252,10 @@ export class ProvenTx extends EntityBase<table.ProvenTx> {
|
|
|
256
252
|
* @returns
|
|
257
253
|
*/
|
|
258
254
|
static async fromReq(
|
|
259
|
-
req:
|
|
255
|
+
req: EntityProvenTxReq,
|
|
260
256
|
gmpResult: sdk.GetMerklePathResult,
|
|
261
257
|
countsAsAttempt: boolean
|
|
262
|
-
): Promise<
|
|
258
|
+
): Promise<EntityProvenTx | undefined> {
|
|
263
259
|
if (!req.txid) throw new sdk.WERR_MISSING_PARAMETER('req.txid')
|
|
264
260
|
if (!req.rawTx) throw new sdk.WERR_MISSING_PARAMETER('req.rawTx')
|
|
265
261
|
|
|
@@ -285,8 +281,8 @@ export class ProvenTx extends EntityBase<table.ProvenTx> {
|
|
|
285
281
|
)
|
|
286
282
|
|
|
287
283
|
if (
|
|
288
|
-
req.attempts >
|
|
289
|
-
reqAgeInMinutes >
|
|
284
|
+
req.attempts > EntityProvenTx.getProofAttemptsLimit &&
|
|
285
|
+
reqAgeInMinutes > EntityProvenTx.getProofMinutes
|
|
290
286
|
) {
|
|
291
287
|
// Start the process of setting transactions to 'failed'
|
|
292
288
|
req.addHistoryNote({
|
|
@@ -318,7 +314,7 @@ export class ProvenTx extends EntityBase<table.ProvenTx> {
|
|
|
318
314
|
'merkle path does not contain leaf for txid'
|
|
319
315
|
)
|
|
320
316
|
|
|
321
|
-
const proven = new
|
|
317
|
+
const proven = new EntityProvenTx({
|
|
322
318
|
created_at: now,
|
|
323
319
|
updated_at: now,
|
|
324
320
|
provenTxId: 0,
|
|
@@ -344,6 +340,6 @@ export class ProvenTx extends EntityBase<table.ProvenTx> {
|
|
|
344
340
|
}
|
|
345
341
|
|
|
346
342
|
export interface ProvenTxFromTxidResult {
|
|
347
|
-
proven?:
|
|
343
|
+
proven?: EntityProvenTx
|
|
348
344
|
rawTx?: number[]
|
|
349
345
|
}
|