@bsv/wallet-toolbox 1.4.3 → 1.4.5
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 +225 -79
- package/docs/monitor.md +32 -1
- package/docs/wallet.md +225 -79
- package/mobile/out/src/WalletPermissionsManager.d.ts +60 -1
- package/mobile/out/src/WalletPermissionsManager.d.ts.map +1 -1
- package/mobile/out/src/WalletPermissionsManager.js +223 -15
- package/mobile/out/src/WalletPermissionsManager.js.map +1 -1
- package/mobile/out/src/monitor/tasks/TaskCheckNoSends.d.ts.map +1 -1
- package/mobile/out/src/monitor/tasks/TaskCheckNoSends.js.map +1 -1
- package/mobile/package-lock.json +2 -2
- package/mobile/package.json +1 -1
- package/out/src/CWIStyleWalletManager.js +1 -1
- package/out/src/CWIStyleWalletManager.js.map +1 -1
- package/out/src/WalletPermissionsManager.d.ts +60 -1
- package/out/src/WalletPermissionsManager.d.ts.map +1 -1
- package/out/src/WalletPermissionsManager.js +222 -15
- package/out/src/WalletPermissionsManager.js.map +1 -1
- package/out/src/__tests/WalletPermissionsManager.initialization.test.js.map +1 -1
- package/out/src/monitor/tasks/TaskCheckNoSends.d.ts.map +1 -1
- package/out/src/monitor/tasks/TaskCheckNoSends.js.map +1 -1
- package/out/src/sdk/CertOps.d.ts +66 -0
- package/out/src/sdk/CertOps.d.ts.map +1 -0
- package/out/src/sdk/CertOps.js +198 -0
- package/out/src/sdk/CertOps.js.map +1 -0
- package/out/src/sdk/StorageSyncReader.d.ts +121 -0
- package/out/src/sdk/StorageSyncReader.d.ts.map +1 -0
- package/out/src/sdk/StorageSyncReader.js +3 -0
- package/out/src/sdk/StorageSyncReader.js.map +1 -0
- package/out/src/sdk/StorageSyncReaderWriter.d.ts +89 -0
- package/out/src/sdk/StorageSyncReaderWriter.d.ts.map +1 -0
- package/out/src/sdk/StorageSyncReaderWriter.js +3 -0
- package/out/src/sdk/StorageSyncReaderWriter.js.map +1 -0
- package/out/src/services/__tests/ARC.test.d.ts +2 -0
- package/out/src/services/__tests/ARC.test.d.ts.map +1 -0
- package/out/src/services/__tests/ARC.test.js +104 -0
- package/out/src/services/__tests/ARC.test.js.map +1 -0
- package/out/src/services/chaintracker/chaintracks/BlockHeaderApi.d.ts +98 -0
- package/out/src/services/chaintracker/chaintracks/BlockHeaderApi.d.ts.map +1 -0
- package/out/src/services/chaintracker/chaintracks/BlockHeaderApi.js +38 -0
- package/out/src/services/chaintracker/chaintracks/BlockHeaderApi.js.map +1 -0
- package/out/src/storage/methods/listActions.d.ts +5 -0
- package/out/src/storage/methods/listActions.d.ts.map +1 -0
- package/out/src/storage/methods/listActions.js +228 -0
- package/out/src/storage/methods/listActions.js.map +1 -0
- package/out/src/storage/methods/listOutputs.d.ts +5 -0
- package/out/src/storage/methods/listOutputs.d.ts.map +1 -0
- package/out/src/storage/methods/listOutputs.js +295 -0
- package/out/src/storage/methods/listOutputs.js.map +1 -0
- package/out/src/storage/schema/entities/Certificate.d.ts +43 -0
- package/out/src/storage/schema/entities/Certificate.d.ts.map +1 -0
- package/out/src/storage/schema/entities/Certificate.js +162 -0
- package/out/src/storage/schema/entities/Certificate.js.map +1 -0
- package/out/src/storage/schema/entities/CertificateField.d.ts +32 -0
- package/out/src/storage/schema/entities/CertificateField.d.ts.map +1 -0
- package/out/src/storage/schema/entities/CertificateField.js +114 -0
- package/out/src/storage/schema/entities/CertificateField.js.map +1 -0
- package/out/src/storage/schema/entities/Commission.d.ts +37 -0
- package/out/src/storage/schema/entities/Commission.d.ts.map +1 -0
- package/out/src/storage/schema/entities/Commission.js +130 -0
- package/out/src/storage/schema/entities/Commission.js.map +1 -0
- package/out/src/storage/schema/entities/Output.d.ts +67 -0
- package/out/src/storage/schema/entities/Output.d.ts.map +1 -0
- package/out/src/storage/schema/entities/Output.js +281 -0
- package/out/src/storage/schema/entities/Output.js.map +1 -0
- package/out/src/storage/schema/entities/OutputBasket.d.ts +35 -0
- package/out/src/storage/schema/entities/OutputBasket.d.ts.map +1 -0
- package/out/src/storage/schema/entities/OutputBasket.js +133 -0
- package/out/src/storage/schema/entities/OutputBasket.js.map +1 -0
- package/out/src/storage/schema/entities/OutputTag.d.ts +31 -0
- package/out/src/storage/schema/entities/OutputTag.d.ts.map +1 -0
- package/out/src/storage/schema/entities/OutputTag.js +104 -0
- package/out/src/storage/schema/entities/OutputTag.js.map +1 -0
- package/out/src/storage/schema/entities/OutputTagMap.d.ts +28 -0
- package/out/src/storage/schema/entities/OutputTagMap.d.ts.map +1 -0
- package/out/src/storage/schema/entities/OutputTagMap.js +101 -0
- package/out/src/storage/schema/entities/OutputTagMap.js.map +1 -0
- package/out/src/storage/schema/entities/ProvenTx.d.ts +84 -0
- package/out/src/storage/schema/entities/ProvenTx.d.ts.map +1 -0
- package/out/src/storage/schema/entities/ProvenTx.js +286 -0
- package/out/src/storage/schema/entities/ProvenTx.js.map +1 -0
- package/out/src/storage/schema/entities/ProvenTxReq.d.ts +135 -0
- package/out/src/storage/schema/entities/ProvenTxReq.d.ts.map +1 -0
- package/out/src/storage/schema/entities/ProvenTxReq.js +532 -0
- package/out/src/storage/schema/entities/ProvenTxReq.js.map +1 -0
- package/out/src/storage/schema/entities/SyncState.d.ts +66 -0
- package/out/src/storage/schema/entities/SyncState.d.ts.map +1 -0
- package/out/src/storage/schema/entities/SyncState.js +284 -0
- package/out/src/storage/schema/entities/SyncState.js.map +1 -0
- package/out/src/storage/schema/entities/Transaction.d.ts +67 -0
- package/out/src/storage/schema/entities/Transaction.d.ts.map +1 -0
- package/out/src/storage/schema/entities/Transaction.js +264 -0
- package/out/src/storage/schema/entities/Transaction.js.map +1 -0
- package/out/src/storage/schema/entities/TxLabel.d.ts +31 -0
- package/out/src/storage/schema/entities/TxLabel.d.ts.map +1 -0
- package/out/src/storage/schema/entities/TxLabel.js +104 -0
- package/out/src/storage/schema/entities/TxLabel.js.map +1 -0
- package/out/src/storage/schema/entities/TxLabelMap.d.ts +28 -0
- package/out/src/storage/schema/entities/TxLabelMap.d.ts.map +1 -0
- package/out/src/storage/schema/entities/TxLabelMap.js +103 -0
- package/out/src/storage/schema/entities/TxLabelMap.js.map +1 -0
- package/out/src/storage/schema/entities/User.d.ts +29 -0
- package/out/src/storage/schema/entities/User.d.ts.map +1 -0
- package/out/src/storage/schema/entities/User.js +100 -0
- package/out/src/storage/schema/entities/User.js.map +1 -0
- package/out/src/storage/schema/tables/Certificate.d.ts +20 -0
- package/out/src/storage/schema/tables/Certificate.d.ts.map +1 -0
- package/out/src/storage/schema/tables/Certificate.js +3 -0
- package/out/src/storage/schema/tables/Certificate.js.map +1 -0
- package/out/src/storage/schema/tables/CertificateField.d.ts +12 -0
- package/out/src/storage/schema/tables/CertificateField.d.ts.map +1 -0
- package/out/src/storage/schema/tables/CertificateField.js +3 -0
- package/out/src/storage/schema/tables/CertificateField.js.map +1 -0
- package/out/src/storage/schema/tables/Commission.d.ts +13 -0
- package/out/src/storage/schema/tables/Commission.d.ts.map +1 -0
- package/out/src/storage/schema/tables/Commission.js +3 -0
- package/out/src/storage/schema/tables/Commission.js.map +1 -0
- package/out/src/storage/schema/tables/MonitorEvent.d.ts +9 -0
- package/out/src/storage/schema/tables/MonitorEvent.d.ts.map +1 -0
- package/out/src/storage/schema/tables/MonitorEvent.js +3 -0
- package/out/src/storage/schema/tables/MonitorEvent.js.map +1 -0
- package/out/src/storage/schema/tables/Output.d.ts +36 -0
- package/out/src/storage/schema/tables/Output.d.ts.map +1 -0
- package/out/src/storage/schema/tables/Output.js +31 -0
- package/out/src/storage/schema/tables/Output.js.map +1 -0
- package/out/src/storage/schema/tables/OutputBasket.d.ts +12 -0
- package/out/src/storage/schema/tables/OutputBasket.d.ts.map +1 -0
- package/out/src/storage/schema/tables/OutputBasket.js +3 -0
- package/out/src/storage/schema/tables/OutputBasket.js.map +1 -0
- package/out/src/storage/schema/tables/OutputTag.d.ts +10 -0
- package/out/src/storage/schema/tables/OutputTag.d.ts.map +1 -0
- package/out/src/storage/schema/tables/OutputTag.js +3 -0
- package/out/src/storage/schema/tables/OutputTag.js.map +1 -0
- package/out/src/storage/schema/tables/OutputTagMap.d.ts +9 -0
- package/out/src/storage/schema/tables/OutputTagMap.d.ts.map +1 -0
- package/out/src/storage/schema/tables/OutputTagMap.js +3 -0
- package/out/src/storage/schema/tables/OutputTagMap.js.map +1 -0
- package/out/src/storage/schema/tables/ProvenTx.d.ts +14 -0
- package/out/src/storage/schema/tables/ProvenTx.d.ts.map +1 -0
- package/out/src/storage/schema/tables/ProvenTx.js +3 -0
- package/out/src/storage/schema/tables/ProvenTx.js.map +1 -0
- package/out/src/storage/schema/tables/ProvenTxReq.d.ts +64 -0
- package/out/src/storage/schema/tables/ProvenTxReq.d.ts.map +1 -0
- package/out/src/storage/schema/tables/ProvenTxReq.js +3 -0
- package/out/src/storage/schema/tables/ProvenTxReq.js.map +1 -0
- package/out/src/storage/schema/tables/SyncState.d.ts +18 -0
- package/out/src/storage/schema/tables/SyncState.d.ts.map +1 -0
- package/out/src/storage/schema/tables/SyncState.js +3 -0
- package/out/src/storage/schema/tables/SyncState.js.map +1 -0
- package/out/src/storage/schema/tables/Transaction.d.ts +37 -0
- package/out/src/storage/schema/tables/Transaction.d.ts.map +1 -0
- package/out/src/storage/schema/tables/Transaction.js +21 -0
- package/out/src/storage/schema/tables/Transaction.js.map +1 -0
- package/out/src/storage/schema/tables/TxLabel.d.ts +10 -0
- package/out/src/storage/schema/tables/TxLabel.d.ts.map +1 -0
- package/out/src/storage/schema/tables/TxLabel.js +3 -0
- package/out/src/storage/schema/tables/TxLabel.js.map +1 -0
- package/out/src/storage/schema/tables/TxLabelMap.d.ts +9 -0
- package/out/src/storage/schema/tables/TxLabelMap.d.ts.map +1 -0
- package/out/src/storage/schema/tables/TxLabelMap.js +3 -0
- package/out/src/storage/schema/tables/TxLabelMap.js.map +1 -0
- package/out/src/storage/schema/tables/User.d.ts +16 -0
- package/out/src/storage/schema/tables/User.d.ts.map +1 -0
- package/out/src/storage/schema/tables/User.js +3 -0
- package/out/src/storage/schema/tables/User.js.map +1 -0
- package/out/test/Wallet/action/abortAction.test.d.ts.map +1 -0
- package/out/test/{wallet → Wallet}/action/abortAction.test.js.map +1 -1
- package/out/test/Wallet/action/createAction.test.d.ts.map +1 -0
- package/out/test/{wallet → Wallet}/action/createAction.test.js.map +1 -1
- package/out/test/{wallet → Wallet}/action/createAction2.test.d.ts.map +1 -1
- package/out/test/{wallet → Wallet}/action/createAction2.test.js.map +1 -1
- package/out/test/Wallet/action/createActionToGenerateBeefs.man.test.d.ts.map +1 -0
- package/out/test/{wallet → Wallet}/action/createActionToGenerateBeefs.man.test.js.map +1 -1
- package/out/test/Wallet/action/internalizeAction.test.d.ts.map +1 -0
- package/out/test/{wallet → Wallet}/action/internalizeAction.test.js.map +1 -1
- package/out/test/Wallet/action/relinquishOutput.test.d.ts.map +1 -0
- package/out/test/{wallet → Wallet}/action/relinquishOutput.test.js.map +1 -1
- package/out/test/Wallet/construct/Wallet.constructor.test.d.ts.map +1 -0
- package/out/test/{wallet → Wallet}/construct/Wallet.constructor.test.js.map +1 -1
- package/out/test/Wallet/list/listActions.test.d.ts.map +1 -0
- package/out/test/{wallet → Wallet}/list/listActions.test.js.map +1 -1
- package/out/test/Wallet/list/listActions2.test.d.ts.map +1 -0
- package/out/test/{wallet → Wallet}/list/listActions2.test.js.map +1 -1
- package/out/test/Wallet/list/listCertificates.test.d.ts.map +1 -0
- package/out/test/{wallet → Wallet}/list/listCertificates.test.js.map +1 -1
- package/out/test/Wallet/list/listOutputs.test.d.ts.map +1 -0
- package/out/test/{wallet → Wallet}/list/listOutputs.test.js.map +1 -1
- package/out/test/Wallet/local/localWalletMethods.d.ts +28 -0
- package/out/test/Wallet/local/localWalletMethods.d.ts.map +1 -0
- package/out/test/Wallet/local/localWalletMethods.js +281 -0
- package/out/test/Wallet/local/localWalletMethods.js.map +1 -0
- package/out/test/Wallet/support/opers1.man.test.d.ts +2 -0
- package/out/test/Wallet/support/opers1.man.test.d.ts.map +1 -0
- package/out/test/Wallet/support/opers1.man.test.js +202 -0
- package/out/test/Wallet/support/opers1.man.test.js.map +1 -0
- package/out/test/Wallet/sync/Wallet.sync.test.d.ts.map +1 -0
- package/out/test/{wallet → Wallet}/sync/Wallet.sync.test.js.map +1 -1
- package/out/tsconfig.all.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/CWIStyleWalletManager.ts +1 -1
- package/src/WalletPermissionsManager.ts +317 -26
- package/src/__tests/WalletPermissionsManager.initialization.test.ts +1 -1
- package/src/monitor/tasks/TaskCheckNoSends.ts +0 -1
- package/src/monitor/tasks/TaskNewHeader.ts +1 -1
- package/out/test/wallet/action/abortAction.test.d.ts.map +0 -1
- package/out/test/wallet/action/createAction.test.d.ts.map +0 -1
- package/out/test/wallet/action/createActionToGenerateBeefs.man.test.d.ts.map +0 -1
- package/out/test/wallet/action/internalizeAction.test.d.ts.map +0 -1
- package/out/test/wallet/action/relinquishOutput.test.d.ts.map +0 -1
- package/out/test/wallet/construct/Wallet.constructor.test.d.ts.map +0 -1
- package/out/test/wallet/list/listActions.test.d.ts.map +0 -1
- package/out/test/wallet/list/listActions2.test.d.ts.map +0 -1
- package/out/test/wallet/list/listCertificates.test.d.ts.map +0 -1
- package/out/test/wallet/list/listOutputs.test.d.ts.map +0 -1
- package/out/test/wallet/sync/Wallet.sync.test.d.ts.map +0 -1
- /package/out/test/{wallet → Wallet}/action/abortAction.test.d.ts +0 -0
- /package/out/test/{wallet → Wallet}/action/abortAction.test.js +0 -0
- /package/out/test/{wallet → Wallet}/action/createAction.test.d.ts +0 -0
- /package/out/test/{wallet → Wallet}/action/createAction.test.js +0 -0
- /package/out/test/{wallet → Wallet}/action/createAction2.test.d.ts +0 -0
- /package/out/test/{wallet → Wallet}/action/createAction2.test.js +0 -0
- /package/out/test/{wallet → Wallet}/action/createActionToGenerateBeefs.man.test.d.ts +0 -0
- /package/out/test/{wallet → Wallet}/action/createActionToGenerateBeefs.man.test.js +0 -0
- /package/out/test/{wallet → Wallet}/action/internalizeAction.test.d.ts +0 -0
- /package/out/test/{wallet → Wallet}/action/internalizeAction.test.js +0 -0
- /package/out/test/{wallet → Wallet}/action/relinquishOutput.test.d.ts +0 -0
- /package/out/test/{wallet → Wallet}/action/relinquishOutput.test.js +0 -0
- /package/out/test/{wallet → Wallet}/construct/Wallet.constructor.test.d.ts +0 -0
- /package/out/test/{wallet → Wallet}/construct/Wallet.constructor.test.js +0 -0
- /package/out/test/{wallet → Wallet}/list/listActions.test.d.ts +0 -0
- /package/out/test/{wallet → Wallet}/list/listActions.test.js +0 -0
- /package/out/test/{wallet → Wallet}/list/listActions2.test.d.ts +0 -0
- /package/out/test/{wallet → Wallet}/list/listActions2.test.js +0 -0
- /package/out/test/{wallet → Wallet}/list/listCertificates.test.d.ts +0 -0
- /package/out/test/{wallet → Wallet}/list/listCertificates.test.js +0 -0
- /package/out/test/{wallet → Wallet}/list/listOutputs.test.d.ts +0 -0
- /package/out/test/{wallet → Wallet}/list/listOutputs.test.js +0 -0
- /package/out/test/{wallet → Wallet}/sync/Wallet.sync.test.d.ts +0 -0
- /package/out/test/{wallet → Wallet}/sync/Wallet.sync.test.js +0 -0
- /package/test/{wallet → Wallet}/action/abortAction.test.ts +0 -0
- /package/test/{wallet → Wallet}/action/createAction.test.ts +0 -0
- /package/test/{wallet → Wallet}/action/createAction2.test.ts +0 -0
- /package/test/{wallet → Wallet}/action/createActionToGenerateBeefs.man.test.ts +0 -0
- /package/test/{wallet → Wallet}/action/internalizeAction.test.ts +0 -0
- /package/test/{wallet → Wallet}/action/relinquishOutput.test.ts +0 -0
- /package/test/{wallet → Wallet}/construct/Wallet.constructor.test.ts +0 -0
- /package/test/{wallet → Wallet}/list/listActions.test.ts +0 -0
- /package/test/{wallet → Wallet}/list/listActions2.test.ts +0 -0
- /package/test/{wallet → Wallet}/list/listCertificates.test.ts +0 -0
- /package/test/{wallet → Wallet}/list/listOutputs.test.ts +0 -0
- /package/test/{wallet → Wallet}/sync/Wallet.sync.test.ts +0 -0
package/docs/client.md
CHANGED
|
@@ -14,71 +14,72 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
14
14
|
|
|
15
15
|
| | | |
|
|
16
16
|
| --- | --- | --- |
|
|
17
|
-
| [AdminStatsResult](#interface-adminstatsresult) | [
|
|
18
|
-
| [ArcConfig](#interface-arcconfig) | [
|
|
19
|
-
| [ArcMinerGetTxData](#interface-arcminergettxdata) | [
|
|
20
|
-
| [AuthId](#interface-authid) | [
|
|
21
|
-
| [AuthPayload](#interface-authpayload) | [
|
|
22
|
-
| [BaseBlockHeader](#interface-baseblockheader) | [
|
|
23
|
-
| [BaseBlockHeader](#interface-baseblockheader) | [
|
|
24
|
-
| [BitailsConfig](#interface-bitailsconfig) | [
|
|
25
|
-
| [BitailsMerkleProof](#interface-bitailsmerkleproof) | [
|
|
26
|
-
| [BlockHeader](#interface-blockheader) | [
|
|
27
|
-
| [BlockHeader](#interface-blockheader) | [
|
|
28
|
-
| [BsvExchangeRate](#interface-bsvexchangerate) | [
|
|
29
|
-
| [CertOpsWallet](#interface-certopswallet) | [
|
|
30
|
-
| [Certifier](#interface-certifier) | [
|
|
31
|
-
| [CommitNewTxResults](#interface-commitnewtxresults) | [
|
|
32
|
-
| [CompleteAuthResponse](#interface-completeauthresponse) | [
|
|
33
|
-
| [CreateActionResultX](#interface-createactionresultx) | [
|
|
34
|
-
| [EntitySyncMap](#interface-entitysyncmap) | [
|
|
35
|
-
| [EntityTimeStamp](#interface-entitytimestamp) | [
|
|
36
|
-
| [ExchangeRatesIoApi](#interface-exchangeratesioapi) | [
|
|
37
|
-
| [ExtendedVerifiableCertificate](#interface-extendedverifiablecertificate) | [
|
|
38
|
-
| [FiatExchangeRates](#interface-fiatexchangerates) | [
|
|
39
|
-
| [FindCertificateFieldsArgs](#interface-findcertificatefieldsargs) | [
|
|
40
|
-
| [FindCertificatesArgs](#interface-findcertificatesargs) | [
|
|
41
|
-
| [FindCommissionsArgs](#interface-findcommissionsargs) | [
|
|
42
|
-
| [FindForUserSincePagedArgs](#interface-findforusersincepagedargs) | [
|
|
17
|
+
| [AdminStatsResult](#interface-adminstatsresult) | [PendingSignAction](#interface-pendingsignaction) | [TableOutputBasket](#interface-tableoutputbasket) |
|
|
18
|
+
| [ArcConfig](#interface-arcconfig) | [PendingStorageInput](#interface-pendingstorageinput) | [TableOutputTag](#interface-tableoutputtag) |
|
|
19
|
+
| [ArcMinerGetTxData](#interface-arcminergettxdata) | [PermissionRequest](#interface-permissionrequest) | [TableOutputTagMap](#interface-tableoutputtagmap) |
|
|
20
|
+
| [AuthId](#interface-authid) | [PermissionToken](#interface-permissiontoken) | [TableOutputX](#interface-tableoutputx) |
|
|
21
|
+
| [AuthPayload](#interface-authpayload) | [PermissionsManagerConfig](#interface-permissionsmanagerconfig) | [TableProvenTx](#interface-tableproventx) |
|
|
22
|
+
| [BaseBlockHeader](#interface-baseblockheader) | [PostBeefResult](#interface-postbeefresult) | [TableProvenTxReq](#interface-tableproventxreq) |
|
|
23
|
+
| [BaseBlockHeader](#interface-baseblockheader) | [PostBeefResultForTxidApi](#interface-postbeefresultfortxidapi) | [TableProvenTxReqDynamics](#interface-tableproventxreqdynamics) |
|
|
24
|
+
| [BitailsConfig](#interface-bitailsconfig) | [PostReqsToNetworkDetails](#interface-postreqstonetworkdetails) | [TableSettings](#interface-tablesettings) |
|
|
25
|
+
| [BitailsMerkleProof](#interface-bitailsmerkleproof) | [PostReqsToNetworkResult](#interface-postreqstonetworkresult) | [TableSyncState](#interface-tablesyncstate) |
|
|
26
|
+
| [BlockHeader](#interface-blockheader) | [PostTxResultForTxid](#interface-posttxresultfortxid) | [TableTransaction](#interface-tabletransaction) |
|
|
27
|
+
| [BlockHeader](#interface-blockheader) | [PostTxResultForTxidError](#interface-posttxresultfortxiderror) | [TableTxLabel](#interface-tabletxlabel) |
|
|
28
|
+
| [BsvExchangeRate](#interface-bsvexchangerate) | [PostTxsResult](#interface-posttxsresult) | [TableTxLabelMap](#interface-tabletxlabelmap) |
|
|
29
|
+
| [CertOpsWallet](#interface-certopswallet) | [ProcessSyncChunkResult](#interface-processsyncchunkresult) | [TableUser](#interface-tableuser) |
|
|
30
|
+
| [Certifier](#interface-certifier) | [Profile](#interface-profile) | [TaskPurgeParams](#interface-taskpurgeparams) |
|
|
31
|
+
| [CommitNewTxResults](#interface-commitnewtxresults) | [ProvenOrRawTx](#interface-provenorrawtx) | [TrustSettings](#interface-trustsettings) |
|
|
32
|
+
| [CompleteAuthResponse](#interface-completeauthresponse) | [ProvenTxFromTxidResult](#interface-proventxfromtxidresult) | [TrxToken](#interface-trxtoken) |
|
|
33
|
+
| [CreateActionResultX](#interface-createactionresultx) | [ProvenTxReqHistory](#interface-proventxreqhistory) | [TscMerkleProofApi](#interface-tscmerkleproofapi) |
|
|
34
|
+
| [EntitySyncMap](#interface-entitysyncmap) | [ProvenTxReqHistorySummaryApi](#interface-proventxreqhistorysummaryapi) | [TxScriptOffsets](#interface-txscriptoffsets) |
|
|
35
|
+
| [EntityTimeStamp](#interface-entitytimestamp) | [ProvenTxReqNotify](#interface-proventxreqnotify) | [UMPToken](#interface-umptoken) |
|
|
36
|
+
| [ExchangeRatesIoApi](#interface-exchangeratesioapi) | [ProviderCallHistory](#interface-providercallhistory) | [UMPTokenInteractor](#interface-umptokeninteractor) |
|
|
37
|
+
| [ExtendedVerifiableCertificate](#interface-extendedverifiablecertificate) | [PurgeParams](#interface-purgeparams) | [UpdateProvenTxReqWithNewProvenTxArgs](#interface-updateproventxreqwithnewproventxargs) |
|
|
38
|
+
| [FiatExchangeRates](#interface-fiatexchangerates) | [PurgeResults](#interface-purgeresults) | [UpdateProvenTxReqWithNewProvenTxResult](#interface-updateproventxreqwithnewproventxresult) |
|
|
39
|
+
| [FindCertificateFieldsArgs](#interface-findcertificatefieldsargs) | [RequestSyncChunkArgs](#interface-requestsyncchunkargs) | [ValidAbortActionArgs](#interface-validabortactionargs) |
|
|
40
|
+
| [FindCertificatesArgs](#interface-findcertificatesargs) | [ReviewActionResult](#interface-reviewactionresult) | [ValidAcquireCertificateArgs](#interface-validacquirecertificateargs) |
|
|
41
|
+
| [FindCommissionsArgs](#interface-findcommissionsargs) | [ScriptTemplateParamsBRC29](#interface-scripttemplateparamsbrc29) | [ValidAcquireDirectCertificateArgs](#interface-validacquiredirectcertificateargs) |
|
|
42
|
+
| [FindForUserSincePagedArgs](#interface-findforusersincepagedargs) | [ScriptTemplateUnlock](#interface-scripttemplateunlock) | [ValidAcquireIssuanceCertificateArgs](#interface-validacquireissuancecertificateargs) |
|
|
43
43
|
| [FindMonitorEventsArgs](#interface-findmonitoreventsargs) | [ServiceCall](#interface-servicecall) | [ValidBasketInsertion](#interface-validbasketinsertion) |
|
|
44
|
-
| [FindOutputBasketsArgs](#interface-findoutputbasketsargs) | [
|
|
45
|
-
| [FindOutputTagMapsArgs](#interface-findoutputtagmapsargs) | [
|
|
46
|
-
| [FindOutputTagsArgs](#interface-findoutputtagsargs) | [
|
|
47
|
-
| [FindOutputsArgs](#interface-findoutputsargs) | [
|
|
48
|
-
| [FindPartialSincePagedArgs](#interface-findpartialsincepagedargs) | [
|
|
49
|
-
| [FindProvenTxReqsArgs](#interface-findproventxreqsargs) | [
|
|
50
|
-
| [FindProvenTxsArgs](#interface-findproventxsargs) | [
|
|
51
|
-
| [FindSincePagedArgs](#interface-findsincepagedargs) | [
|
|
52
|
-
| [FindSyncStatesArgs](#interface-findsyncstatesargs) | [
|
|
53
|
-
| [FindTransactionsArgs](#interface-findtransactionsargs) | [
|
|
54
|
-
| [FindTxLabelMapsArgs](#interface-findtxlabelmapsargs) | [
|
|
55
|
-
| [FindTxLabelsArgs](#interface-findtxlabelsargs) | [
|
|
56
|
-
| [FindUsersArgs](#interface-findusersargs) | [
|
|
57
|
-
| [GenerateChangeSdkChangeInput](#interface-generatechangesdkchangeinput) | [
|
|
58
|
-
| [GenerateChangeSdkChangeOutput](#interface-generatechangesdkchangeoutput) | [
|
|
59
|
-
| [GenerateChangeSdkInput](#interface-generatechangesdkinput) | [
|
|
60
|
-
| [GenerateChangeSdkOutput](#interface-generatechangesdkoutput) | [
|
|
61
|
-
| [GenerateChangeSdkParams](#interface-generatechangesdkparams) | [
|
|
62
|
-
| [GenerateChangeSdkResult](#interface-generatechangesdkresult) | [
|
|
63
|
-
| [GenerateChangeSdkStorageChange](#interface-generatechangesdkstoragechange) | [
|
|
64
|
-
| [GetMerklePathResult](#interface-getmerklepathresult) | [
|
|
65
|
-
| [GetRawTxResult](#interface-getrawtxresult) | [
|
|
66
|
-
| [GetReqsAndBeefDetail](#interface-getreqsandbeefdetail) | [
|
|
67
|
-
| [GetReqsAndBeefResult](#interface-getreqsandbeefresult) | [
|
|
68
|
-
| [GetScriptHashHistory](#interface-getscripthashhistory) | [
|
|
69
|
-
| [GetScriptHashHistoryResult](#interface-getscripthashhistoryresult) | [
|
|
70
|
-
| [GetStatusForTxidsResult](#interface-getstatusfortxidsresult) | [
|
|
71
|
-
| [GetUtxoStatusDetails](#interface-getutxostatusdetails) | [
|
|
72
|
-
| [GetUtxoStatusResult](#interface-getutxostatusresult) | [
|
|
73
|
-
| [
|
|
74
|
-
| [
|
|
75
|
-
| [
|
|
76
|
-
| [
|
|
77
|
-
| [
|
|
78
|
-
| [
|
|
79
|
-
| [
|
|
80
|
-
| [
|
|
81
|
-
| [
|
|
44
|
+
| [FindOutputBasketsArgs](#interface-findoutputbasketsargs) | [ServiceCall](#interface-servicecall) | [ValidCreateActionArgs](#interface-validcreateactionargs) |
|
|
45
|
+
| [FindOutputTagMapsArgs](#interface-findoutputtagmapsargs) | [ServiceCallHistory](#interface-servicecallhistory) | [ValidCreateActionInput](#interface-validcreateactioninput) |
|
|
46
|
+
| [FindOutputTagsArgs](#interface-findoutputtagsargs) | [ServiceCallHistoryCounts](#interface-servicecallhistorycounts) | [ValidCreateActionOptions](#interface-validcreateactionoptions) |
|
|
47
|
+
| [FindOutputsArgs](#interface-findoutputsargs) | [ServiceToCall](#interface-servicetocall) | [ValidCreateActionOutput](#interface-validcreateactionoutput) |
|
|
48
|
+
| [FindPartialSincePagedArgs](#interface-findpartialsincepagedargs) | [SetupClientWalletArgs](#interface-setupclientwalletargs) | [ValidDiscoverByAttributesArgs](#interface-validdiscoverbyattributesargs) |
|
|
49
|
+
| [FindProvenTxReqsArgs](#interface-findproventxreqsargs) | [SetupClientWalletClientArgs](#interface-setupclientwalletclientargs) | [ValidDiscoverByIdentityKeyArgs](#interface-validdiscoverbyidentitykeyargs) |
|
|
50
|
+
| [FindProvenTxsArgs](#interface-findproventxsargs) | [SetupWallet](#interface-setupwallet) | [ValidInternalizeActionArgs](#interface-validinternalizeactionargs) |
|
|
51
|
+
| [FindSincePagedArgs](#interface-findsincepagedargs) | [SetupWalletClient](#interface-setupwalletclient) | [ValidInternalizeOutput](#interface-validinternalizeoutput) |
|
|
52
|
+
| [FindSyncStatesArgs](#interface-findsyncstatesargs) | [SetupWalletIdb](#interface-setupwalletidb) | [ValidListActionsArgs](#interface-validlistactionsargs) |
|
|
53
|
+
| [FindTransactionsArgs](#interface-findtransactionsargs) | [SetupWalletIdbArgs](#interface-setupwalletidbargs) | [ValidListCertificatesArgs](#interface-validlistcertificatesargs) |
|
|
54
|
+
| [FindTxLabelMapsArgs](#interface-findtxlabelmapsargs) | [SignActionResultX](#interface-signactionresultx) | [ValidListOutputsArgs](#interface-validlistoutputsargs) |
|
|
55
|
+
| [FindTxLabelsArgs](#interface-findtxlabelsargs) | [StartAuthResponse](#interface-startauthresponse) | [ValidProcessActionArgs](#interface-validprocessactionargs) |
|
|
56
|
+
| [FindUsersArgs](#interface-findusersargs) | [StatusForTxidResult](#interface-statusfortxidresult) | [ValidProcessActionOptions](#interface-validprocessactionoptions) |
|
|
57
|
+
| [GenerateChangeSdkChangeInput](#interface-generatechangesdkchangeinput) | [StorageAdminStats](#interface-storageadminstats) | [ValidProveCertificateArgs](#interface-validprovecertificateargs) |
|
|
58
|
+
| [GenerateChangeSdkChangeOutput](#interface-generatechangesdkchangeoutput) | [StorageCreateActionResult](#interface-storagecreateactionresult) | [ValidRelinquishCertificateArgs](#interface-validrelinquishcertificateargs) |
|
|
59
|
+
| [GenerateChangeSdkInput](#interface-generatechangesdkinput) | [StorageCreateTransactionSdkInput](#interface-storagecreatetransactionsdkinput) | [ValidRelinquishOutputArgs](#interface-validrelinquishoutputargs) |
|
|
60
|
+
| [GenerateChangeSdkOutput](#interface-generatechangesdkoutput) | [StorageCreateTransactionSdkOutput](#interface-storagecreatetransactionsdkoutput) | [ValidSignActionArgs](#interface-validsignactionargs) |
|
|
61
|
+
| [GenerateChangeSdkParams](#interface-generatechangesdkparams) | [StorageFeeModel](#interface-storagefeemodel) | [ValidSignActionOptions](#interface-validsignactionoptions) |
|
|
62
|
+
| [GenerateChangeSdkResult](#interface-generatechangesdkresult) | [StorageGetBeefOptions](#interface-storagegetbeefoptions) | [ValidWalletPayment](#interface-validwalletpayment) |
|
|
63
|
+
| [GenerateChangeSdkStorageChange](#interface-generatechangesdkstoragechange) | [StorageIdbOptions](#interface-storageidboptions) | [ValidWalletSignerArgs](#interface-validwalletsignerargs) |
|
|
64
|
+
| [GetMerklePathResult](#interface-getmerklepathresult) | [StorageIdbSchema](#interface-storageidbschema) | [ValidateGenerateChangeSdkParamsResult](#interface-validategeneratechangesdkparamsresult) |
|
|
65
|
+
| [GetRawTxResult](#interface-getrawtxresult) | [StorageIdentity](#interface-storageidentity) | [WalletArgs](#interface-walletargs) |
|
|
66
|
+
| [GetReqsAndBeefDetail](#interface-getreqsandbeefdetail) | [StorageInternalizeActionResult](#interface-storageinternalizeactionresult) | [WalletBalance](#interface-walletbalance) |
|
|
67
|
+
| [GetReqsAndBeefResult](#interface-getreqsandbeefresult) | [StorageProcessActionArgs](#interface-storageprocessactionargs) | [WalletPermissionsManagerCallbacks](#interface-walletpermissionsmanagercallbacks) |
|
|
68
|
+
| [GetScriptHashHistory](#interface-getscripthashhistory) | [StorageProcessActionResults](#interface-storageprocessactionresults) | [WalletServices](#interface-walletservices) |
|
|
69
|
+
| [GetScriptHashHistoryResult](#interface-getscripthashhistoryresult) | [StorageProvenOrReq](#interface-storageprovenorreq) | [WalletServicesOptions](#interface-walletservicesoptions) |
|
|
70
|
+
| [GetStatusForTxidsResult](#interface-getstatusfortxidsresult) | [StorageProviderOptions](#interface-storageprovideroptions) | [WalletSettings](#interface-walletsettings) |
|
|
71
|
+
| [GetUtxoStatusDetails](#interface-getutxostatusdetails) | [StorageReaderOptions](#interface-storagereaderoptions) | [WalletSettingsManagerConfig](#interface-walletsettingsmanagerconfig) |
|
|
72
|
+
| [GetUtxoStatusResult](#interface-getutxostatusresult) | [StorageReaderWriterOptions](#interface-storagereaderwriteroptions) | [WalletSigner](#interface-walletsigner) |
|
|
73
|
+
| [GroupedPermissionRequest](#interface-groupedpermissionrequest) | [StorageSyncReaderOptions](#interface-storagesyncreaderoptions) | [WalletStorage](#interface-walletstorage) |
|
|
74
|
+
| [GroupedPermissions](#interface-groupedpermissions) | [SyncChunk](#interface-syncchunk) | [WalletStorageInfo](#interface-walletstorageinfo) |
|
|
75
|
+
| [KeyPair](#interface-keypair) | [SyncError](#interface-syncerror) | [WalletStorageProvider](#interface-walletstorageprovider) |
|
|
76
|
+
| [KeyPairAddress](#interface-keypairaddress) | [SyncMap](#interface-syncmap) | [WalletStorageReader](#interface-walletstoragereader) |
|
|
77
|
+
| [ListActionsSpecOp](#interface-listactionsspecop) | [TableCertificate](#interface-tablecertificate) | [WalletStorageSync](#interface-walletstoragesync) |
|
|
78
|
+
| [ListOutputsSpecOp](#interface-listoutputsspecop) | [TableCertificateField](#interface-tablecertificatefield) | [WalletStorageSyncReader](#interface-walletstoragesyncreader) |
|
|
79
|
+
| [LiveBlockHeader](#interface-liveblockheader) | [TableCertificateX](#interface-tablecertificatex) | [WalletStorageWriter](#interface-walletstoragewriter) |
|
|
80
|
+
| [MonitorOptions](#interface-monitoroptions) | [TableCommission](#interface-tablecommission) | [WalletTheme](#interface-wallettheme) |
|
|
81
|
+
| [OutPoint](#interface-outpoint) | [TableMonitorEvent](#interface-tablemonitorevent) | [XValidCreateActionOutput](#interface-xvalidcreateactionoutput) |
|
|
82
|
+
| [Paged](#interface-paged) | [TableOutput](#interface-tableoutput) | |
|
|
82
83
|
|
|
83
84
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
84
85
|
|
|
@@ -1388,6 +1389,56 @@ status: "success" | "error"
|
|
|
1388
1389
|
|
|
1389
1390
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
1390
1391
|
|
|
1392
|
+
---
|
|
1393
|
+
##### Interface: GroupedPermissionRequest
|
|
1394
|
+
|
|
1395
|
+
The object passed to the UI when a grouped permission is requested.
|
|
1396
|
+
|
|
1397
|
+
```ts
|
|
1398
|
+
export interface GroupedPermissionRequest {
|
|
1399
|
+
originator: string;
|
|
1400
|
+
requestID: string;
|
|
1401
|
+
permissions: GroupedPermissions;
|
|
1402
|
+
}
|
|
1403
|
+
```
|
|
1404
|
+
|
|
1405
|
+
See also: [GroupedPermissions](./client.md#interface-groupedpermissions)
|
|
1406
|
+
|
|
1407
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
1408
|
+
|
|
1409
|
+
---
|
|
1410
|
+
##### Interface: GroupedPermissions
|
|
1411
|
+
|
|
1412
|
+
Describes a group of permissions that can be requested together.
|
|
1413
|
+
This structure is based on BRC-73.
|
|
1414
|
+
|
|
1415
|
+
```ts
|
|
1416
|
+
export interface GroupedPermissions {
|
|
1417
|
+
description?: string;
|
|
1418
|
+
spendingAuthorization?: {
|
|
1419
|
+
amount: number;
|
|
1420
|
+
description: string;
|
|
1421
|
+
};
|
|
1422
|
+
protocolPermissions?: Array<{
|
|
1423
|
+
protocolID: WalletProtocol;
|
|
1424
|
+
counterparty?: string;
|
|
1425
|
+
description: string;
|
|
1426
|
+
}>;
|
|
1427
|
+
basketAccess?: Array<{
|
|
1428
|
+
basket: string;
|
|
1429
|
+
description: string;
|
|
1430
|
+
}>;
|
|
1431
|
+
certificateAccess?: Array<{
|
|
1432
|
+
type: string;
|
|
1433
|
+
fields: string[];
|
|
1434
|
+
verifierPublicKey: string;
|
|
1435
|
+
description: string;
|
|
1436
|
+
}>;
|
|
1437
|
+
}
|
|
1438
|
+
```
|
|
1439
|
+
|
|
1440
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
1441
|
+
|
|
1391
1442
|
---
|
|
1392
1443
|
##### Interface: KeyPair
|
|
1393
1444
|
|
|
@@ -1890,6 +1941,7 @@ export interface PermissionsManagerConfig {
|
|
|
1890
1941
|
seekCertificateListingPermissions?: boolean;
|
|
1891
1942
|
encryptWalletMetadata?: boolean;
|
|
1892
1943
|
seekSpendingPermissions?: boolean;
|
|
1944
|
+
seekGroupedPermission?: boolean;
|
|
1893
1945
|
differentiatePrivilegedOperations?: boolean;
|
|
1894
1946
|
}
|
|
1895
1947
|
```
|
|
@@ -1972,6 +2024,14 @@ If relinquishing a certificate (relinquishCertificate), do we require a permissi
|
|
|
1972
2024
|
seekCertificateRelinquishmentPermissions?: boolean
|
|
1973
2025
|
```
|
|
1974
2026
|
|
|
2027
|
+
###### Property seekGroupedPermission
|
|
2028
|
+
|
|
2029
|
+
If true, triggers a grouped permission request flow based on the originator's `manifest.json`.
|
|
2030
|
+
|
|
2031
|
+
```ts
|
|
2032
|
+
seekGroupedPermission?: boolean
|
|
2033
|
+
```
|
|
2034
|
+
|
|
1975
2035
|
###### Property seekPermissionWhenApplyingActionLabels
|
|
1976
2036
|
|
|
1977
2037
|
When createAction is called with labels, do we ask for "label usage" permission?
|
|
@@ -5258,10 +5318,11 @@ export interface WalletPermissionsManagerCallbacks {
|
|
|
5258
5318
|
onBasketAccessRequested?: PermissionEventHandler[];
|
|
5259
5319
|
onCertificateAccessRequested?: PermissionEventHandler[];
|
|
5260
5320
|
onSpendingAuthorizationRequested?: PermissionEventHandler[];
|
|
5321
|
+
onGroupedPermissionRequested?: GroupedPermissionEventHandler[];
|
|
5261
5322
|
}
|
|
5262
5323
|
```
|
|
5263
5324
|
|
|
5264
|
-
See also: [PermissionEventHandler](./client.md#type-permissioneventhandler)
|
|
5325
|
+
See also: [GroupedPermissionEventHandler](./client.md#type-groupedpermissioneventhandler), [PermissionEventHandler](./client.md#type-permissioneventhandler)
|
|
5265
5326
|
|
|
5266
5327
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
5267
5328
|
|
|
@@ -9710,10 +9771,22 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
9710
9771
|
---
|
|
9711
9772
|
##### Class: TaskNewHeader
|
|
9712
9773
|
|
|
9774
|
+
This task polls for new block headers performing two essential functions:
|
|
9775
|
+
1. The arrival of a new block is the right time to check for proofs for recently broadcast transactions.
|
|
9776
|
+
2. The height of the block is used to limit which proofs are accepted with the aim of avoiding re-orged proofs.
|
|
9777
|
+
|
|
9778
|
+
The most common new block orphan is one which is almost immediately orphaned.
|
|
9779
|
+
Waiting a minute before pursuing proof requests avoids almost all the re-org work that could be done.
|
|
9780
|
+
Thus this task queues new headers for one cycle.
|
|
9781
|
+
If a new header arrives during that cycle, it replaces the queued header and delays again.
|
|
9782
|
+
Only when there is an elapsed cycle without a new header does proof solicitation get triggered,
|
|
9783
|
+
with that header height as the limit for which proofs are accepted.
|
|
9784
|
+
|
|
9713
9785
|
```ts
|
|
9714
9786
|
export class TaskNewHeader extends WalletMonitorTask {
|
|
9715
9787
|
static taskName = "NewHeader";
|
|
9716
9788
|
header?: BlockHeader;
|
|
9789
|
+
queuedHeader?: BlockHeader;
|
|
9717
9790
|
constructor(monitor: Monitor, public triggerMsecs = 1 * monitor.oneMinute)
|
|
9718
9791
|
async getHeader(): Promise<BlockHeader>
|
|
9719
9792
|
trigger(nowMsecsSinceEpoch: number): {
|
|
@@ -9725,6 +9798,25 @@ export class TaskNewHeader extends WalletMonitorTask {
|
|
|
9725
9798
|
|
|
9726
9799
|
See also: [BlockHeader](./services.md#interface-blockheader), [Monitor](./monitor.md#class-monitor), [WalletMonitorTask](./monitor.md#class-walletmonitortask)
|
|
9727
9800
|
|
|
9801
|
+
###### Property header
|
|
9802
|
+
|
|
9803
|
+
This is always the most recent chain tip header returned from the chaintracker.
|
|
9804
|
+
|
|
9805
|
+
```ts
|
|
9806
|
+
header?: BlockHeader
|
|
9807
|
+
```
|
|
9808
|
+
See also: [BlockHeader](./services.md#interface-blockheader)
|
|
9809
|
+
|
|
9810
|
+
###### Property queuedHeader
|
|
9811
|
+
|
|
9812
|
+
Tracks the value of `header` except that it is set to undefined
|
|
9813
|
+
when a cycle without a new header occurs and `processNewBlockHeader` is called.
|
|
9814
|
+
|
|
9815
|
+
```ts
|
|
9816
|
+
queuedHeader?: BlockHeader
|
|
9817
|
+
```
|
|
9818
|
+
See also: [BlockHeader](./services.md#interface-blockheader)
|
|
9819
|
+
|
|
9728
9820
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
9729
9821
|
|
|
9730
9822
|
---
|
|
@@ -10729,7 +10821,7 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
10729
10821
|
```ts
|
|
10730
10822
|
export class WalletPermissionsManager implements WalletInterface {
|
|
10731
10823
|
constructor(underlyingWallet: WalletInterface, adminOriginator: string, config: PermissionsManagerConfig = {})
|
|
10732
|
-
public bindCallback(eventName: keyof WalletPermissionsManagerCallbacks, handler: PermissionEventHandler): number
|
|
10824
|
+
public bindCallback(eventName: keyof WalletPermissionsManagerCallbacks, handler: PermissionEventHandler | GroupedPermissionEventHandler): number
|
|
10733
10825
|
public unbindCallback(eventName: keyof WalletPermissionsManagerCallbacks, reference: number | Function): boolean
|
|
10734
10826
|
public async grantPermission(params: {
|
|
10735
10827
|
requestID: string;
|
|
@@ -10738,6 +10830,12 @@ export class WalletPermissionsManager implements WalletInterface {
|
|
|
10738
10830
|
amount?: number;
|
|
10739
10831
|
}): Promise<void>
|
|
10740
10832
|
public async denyPermission(requestID: string): Promise<void>
|
|
10833
|
+
public async grantGroupedPermission(params: {
|
|
10834
|
+
requestID: string;
|
|
10835
|
+
granted: Partial<GroupedPermissions>;
|
|
10836
|
+
expiry?: number;
|
|
10837
|
+
}): Promise<void>
|
|
10838
|
+
public async denyGroupedPermission(requestID: string): Promise<void>
|
|
10741
10839
|
public async ensureProtocolPermission({ originator, privileged, protocolID, counterparty, reason, seekPermission = true, usageType }: {
|
|
10742
10840
|
originator: string;
|
|
10743
10841
|
privileged: boolean;
|
|
@@ -10856,7 +10954,7 @@ export class WalletPermissionsManager implements WalletInterface {
|
|
|
10856
10954
|
}
|
|
10857
10955
|
```
|
|
10858
10956
|
|
|
10859
|
-
See also: [PermissionEventHandler](./client.md#type-permissioneventhandler), [PermissionToken](./client.md#interface-permissiontoken), [PermissionsManagerConfig](./client.md#interface-permissionsmanagerconfig), [WalletPermissionsManagerCallbacks](./client.md#interface-walletpermissionsmanagercallbacks), [createAction](./storage.md#function-createaction), [internalizeAction](./storage.md#function-internalizeaction), [listActions](./storage.md#function-listactions), [listCertificates](./storage.md#function-listcertificates), [listOutputs](./storage.md#function-listoutputs), [proveCertificate](./client.md#function-provecertificate), [signAction](./client.md#function-signaction)
|
|
10957
|
+
See also: [GroupedPermissionEventHandler](./client.md#type-groupedpermissioneventhandler), [GroupedPermissions](./client.md#interface-groupedpermissions), [PermissionEventHandler](./client.md#type-permissioneventhandler), [PermissionToken](./client.md#interface-permissiontoken), [PermissionsManagerConfig](./client.md#interface-permissionsmanagerconfig), [WalletPermissionsManagerCallbacks](./client.md#interface-walletpermissionsmanagercallbacks), [createAction](./storage.md#function-createaction), [internalizeAction](./storage.md#function-internalizeaction), [listActions](./storage.md#function-listactions), [listCertificates](./storage.md#function-listcertificates), [listOutputs](./storage.md#function-listoutputs), [proveCertificate](./client.md#function-provecertificate), [signAction](./client.md#function-signaction)
|
|
10860
10958
|
|
|
10861
10959
|
###### Constructor
|
|
10862
10960
|
|
|
@@ -10881,9 +10979,9 @@ Argument Details
|
|
|
10881
10979
|
Binds a callback function to a named event, such as `onProtocolPermissionRequested`.
|
|
10882
10980
|
|
|
10883
10981
|
```ts
|
|
10884
|
-
public bindCallback(eventName: keyof WalletPermissionsManagerCallbacks, handler: PermissionEventHandler): number
|
|
10982
|
+
public bindCallback(eventName: keyof WalletPermissionsManagerCallbacks, handler: PermissionEventHandler | GroupedPermissionEventHandler): number
|
|
10885
10983
|
```
|
|
10886
|
-
See also: [PermissionEventHandler](./client.md#type-permissioneventhandler), [WalletPermissionsManagerCallbacks](./client.md#interface-walletpermissionsmanagercallbacks)
|
|
10984
|
+
See also: [GroupedPermissionEventHandler](./client.md#type-groupedpermissioneventhandler), [PermissionEventHandler](./client.md#type-permissioneventhandler), [WalletPermissionsManagerCallbacks](./client.md#interface-walletpermissionsmanagercallbacks)
|
|
10887
10985
|
|
|
10888
10986
|
Returns
|
|
10889
10987
|
|
|
@@ -10896,6 +10994,19 @@ Argument Details
|
|
|
10896
10994
|
+ **handler**
|
|
10897
10995
|
+ A function that handles the event
|
|
10898
10996
|
|
|
10997
|
+
###### Method denyGroupedPermission
|
|
10998
|
+
|
|
10999
|
+
Denies a previously requested grouped permission.
|
|
11000
|
+
|
|
11001
|
+
```ts
|
|
11002
|
+
public async denyGroupedPermission(requestID: string): Promise<void>
|
|
11003
|
+
```
|
|
11004
|
+
|
|
11005
|
+
Argument Details
|
|
11006
|
+
|
|
11007
|
+
+ **requestID**
|
|
11008
|
+
+ The ID of the request being denied.
|
|
11009
|
+
|
|
10899
11010
|
###### Method denyPermission
|
|
10900
11011
|
|
|
10901
11012
|
Denies a previously requested permission.
|
|
@@ -10994,6 +11105,28 @@ public async ensureSpendingAuthorization({ originator, satoshis, lineItems, reas
|
|
|
10994
11105
|
}): Promise<boolean>
|
|
10995
11106
|
```
|
|
10996
11107
|
|
|
11108
|
+
###### Method grantGroupedPermission
|
|
11109
|
+
|
|
11110
|
+
Grants a previously requested grouped permission.
|
|
11111
|
+
|
|
11112
|
+
```ts
|
|
11113
|
+
public async grantGroupedPermission(params: {
|
|
11114
|
+
requestID: string;
|
|
11115
|
+
granted: Partial<GroupedPermissions>;
|
|
11116
|
+
expiry?: number;
|
|
11117
|
+
}): Promise<void>
|
|
11118
|
+
```
|
|
11119
|
+
See also: [GroupedPermissions](./client.md#interface-groupedpermissions)
|
|
11120
|
+
|
|
11121
|
+
Argument Details
|
|
11122
|
+
|
|
11123
|
+
+ **params.requestID**
|
|
11124
|
+
+ The ID of the request being granted.
|
|
11125
|
+
+ **params.granted**
|
|
11126
|
+
+ A subset of the originally requested permissions that the user has granted.
|
|
11127
|
+
+ **params.expiry**
|
|
11128
|
+
+ An optional expiry time (in seconds) for the new permission tokens.
|
|
11129
|
+
|
|
10997
11130
|
###### Method grantPermission
|
|
10998
11131
|
|
|
10999
11132
|
Grants a previously requested permission.
|
|
@@ -12109,7 +12242,7 @@ depending on chaintracks succeeding on proof verification.
|
|
|
12109
12242
|
Increments attempts if proofs where requested.
|
|
12110
12243
|
|
|
12111
12244
|
```ts
|
|
12112
|
-
export async function getProofs(task: WalletMonitorTask, reqs: TableProvenTxReq[], indent = 0, countsAsAttempt = false, ignoreStatus = false): Promise<{
|
|
12245
|
+
export async function getProofs(task: WalletMonitorTask, reqs: TableProvenTxReq[], indent = 0, countsAsAttempt = false, ignoreStatus = false, maxAcceptableHeight: number): Promise<{
|
|
12113
12246
|
proven: TableProvenTxReq[];
|
|
12114
12247
|
invalid: TableProvenTxReq[];
|
|
12115
12248
|
log: string;
|
|
@@ -13388,15 +13521,15 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
13388
13521
|
|
|
13389
13522
|
| | | |
|
|
13390
13523
|
| --- | --- | --- |
|
|
13391
|
-
| [Chain](#type-chain) | [GetUtxoStatusService](#type-getutxostatusservice) | [
|
|
13392
|
-
| [DBType](#type-dbtype) | [
|
|
13393
|
-
| [DescriptionString5to2000Bytes](#type-descriptionstring5to2000bytes) | [
|
|
13394
|
-
| [EntityStorage](#type-entitystorage) | [
|
|
13395
|
-
| [GetMerklePathService](#type-getmerklepathservice) | [
|
|
13396
|
-
| [GetRawTxService](#type-getrawtxservice) | [
|
|
13397
|
-
| [GetScriptHashHistoryService](#type-getscripthashhistoryservice) | [
|
|
13398
|
-
| [GetStatusForTxidsService](#type-getstatusfortxidsservice) | [
|
|
13399
|
-
| [GetUtxoStatusOutputFormat](#type-getutxostatusoutputformat) | [
|
|
13524
|
+
| [Chain](#type-chain) | [GetUtxoStatusService](#type-getutxostatusservice) | [ReviewActionResultStatus](#type-reviewactionresultstatus) |
|
|
13525
|
+
| [DBType](#type-dbtype) | [GroupedPermissionEventHandler](#type-groupedpermissioneventhandler) | [ScriptHashFormat](#type-scripthashformat) |
|
|
13526
|
+
| [DescriptionString5to2000Bytes](#type-descriptionstring5to2000bytes) | [MonitorStorage](#type-monitorstorage) | [ServicesCallHistory](#type-servicescallhistory) |
|
|
13527
|
+
| [EntityStorage](#type-entitystorage) | [PermissionEventHandler](#type-permissioneventhandler) | [StorageProvidedBy](#type-storageprovidedby) |
|
|
13528
|
+
| [GetMerklePathService](#type-getmerklepathservice) | [PostBeefService](#type-postbeefservice) | [SyncProtocolVersion](#type-syncprotocolversion) |
|
|
13529
|
+
| [GetRawTxService](#type-getrawtxservice) | [PostReqsToNetworkDetailsStatus](#type-postreqstonetworkdetailsstatus) | [SyncStatus](#type-syncstatus) |
|
|
13530
|
+
| [GetScriptHashHistoryService](#type-getscripthashhistoryservice) | [PostTxsService](#type-posttxsservice) | [TransactionStatus](#type-transactionstatus) |
|
|
13531
|
+
| [GetStatusForTxidsService](#type-getstatusfortxidsservice) | [ProvenTxReqStatus](#type-proventxreqstatus) | [UpdateFiatExchangeRateService](#type-updatefiatexchangerateservice) |
|
|
13532
|
+
| [GetUtxoStatusOutputFormat](#type-getutxostatusoutputformat) | [ReqHistoryNote](#type-reqhistorynote) | |
|
|
13400
13533
|
|
|
13401
13534
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
13402
13535
|
|
|
@@ -13503,6 +13636,19 @@ See also: [GetUtxoStatusOutputFormat](./client.md#type-getutxostatusoutputformat
|
|
|
13503
13636
|
|
|
13504
13637
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
13505
13638
|
|
|
13639
|
+
---
|
|
13640
|
+
##### Type: GroupedPermissionEventHandler
|
|
13641
|
+
|
|
13642
|
+
Signature for functions that handle a grouped permission request event.
|
|
13643
|
+
|
|
13644
|
+
```ts
|
|
13645
|
+
export type GroupedPermissionEventHandler = (request: GroupedPermissionRequest) => void | Promise<void>
|
|
13646
|
+
```
|
|
13647
|
+
|
|
13648
|
+
See also: [GroupedPermissionRequest](./client.md#interface-groupedpermissionrequest)
|
|
13649
|
+
|
|
13650
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
13651
|
+
|
|
13506
13652
|
---
|
|
13507
13653
|
##### Type: MonitorStorage
|
|
13508
13654
|
|
package/docs/monitor.md
CHANGED
|
@@ -436,10 +436,22 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
436
436
|
---
|
|
437
437
|
##### Class: TaskNewHeader
|
|
438
438
|
|
|
439
|
+
This task polls for new block headers performing two essential functions:
|
|
440
|
+
1. The arrival of a new block is the right time to check for proofs for recently broadcast transactions.
|
|
441
|
+
2. The height of the block is used to limit which proofs are accepted with the aim of avoiding re-orged proofs.
|
|
442
|
+
|
|
443
|
+
The most common new block orphan is one which is almost immediately orphaned.
|
|
444
|
+
Waiting a minute before pursuing proof requests avoids almost all the re-org work that could be done.
|
|
445
|
+
Thus this task queues new headers for one cycle.
|
|
446
|
+
If a new header arrives during that cycle, it replaces the queued header and delays again.
|
|
447
|
+
Only when there is an elapsed cycle without a new header does proof solicitation get triggered,
|
|
448
|
+
with that header height as the limit for which proofs are accepted.
|
|
449
|
+
|
|
439
450
|
```ts
|
|
440
451
|
export class TaskNewHeader extends WalletMonitorTask {
|
|
441
452
|
static taskName = "NewHeader";
|
|
442
453
|
header?: BlockHeader;
|
|
454
|
+
queuedHeader?: BlockHeader;
|
|
443
455
|
constructor(monitor: Monitor, public triggerMsecs = 1 * monitor.oneMinute)
|
|
444
456
|
async getHeader(): Promise<BlockHeader>
|
|
445
457
|
trigger(nowMsecsSinceEpoch: number): {
|
|
@@ -451,6 +463,25 @@ export class TaskNewHeader extends WalletMonitorTask {
|
|
|
451
463
|
|
|
452
464
|
See also: [BlockHeader](./services.md#interface-blockheader), [Monitor](./monitor.md#class-monitor), [WalletMonitorTask](./monitor.md#class-walletmonitortask)
|
|
453
465
|
|
|
466
|
+
###### Property header
|
|
467
|
+
|
|
468
|
+
This is always the most recent chain tip header returned from the chaintracker.
|
|
469
|
+
|
|
470
|
+
```ts
|
|
471
|
+
header?: BlockHeader
|
|
472
|
+
```
|
|
473
|
+
See also: [BlockHeader](./services.md#interface-blockheader)
|
|
474
|
+
|
|
475
|
+
###### Property queuedHeader
|
|
476
|
+
|
|
477
|
+
Tracks the value of `header` except that it is set to undefined
|
|
478
|
+
when a cycle without a new header occurs and `processNewBlockHeader` is called.
|
|
479
|
+
|
|
480
|
+
```ts
|
|
481
|
+
queuedHeader?: BlockHeader
|
|
482
|
+
```
|
|
483
|
+
See also: [BlockHeader](./services.md#interface-blockheader)
|
|
484
|
+
|
|
454
485
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
455
486
|
|
|
456
487
|
---
|
|
@@ -705,7 +736,7 @@ depending on chaintracks succeeding on proof verification.
|
|
|
705
736
|
Increments attempts if proofs where requested.
|
|
706
737
|
|
|
707
738
|
```ts
|
|
708
|
-
export async function getProofs(task: WalletMonitorTask, reqs: TableProvenTxReq[], indent = 0, countsAsAttempt = false, ignoreStatus = false): Promise<{
|
|
739
|
+
export async function getProofs(task: WalletMonitorTask, reqs: TableProvenTxReq[], indent = 0, countsAsAttempt = false, ignoreStatus = false, maxAcceptableHeight: number): Promise<{
|
|
709
740
|
proven: TableProvenTxReq[];
|
|
710
741
|
invalid: TableProvenTxReq[];
|
|
711
742
|
log: string;
|