@bsv/wallet-toolbox-client 1.2.32 → 1.2.35

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.
Files changed (115) hide show
  1. package/out/src/Wallet.d.ts +4 -1
  2. package/out/src/Wallet.d.ts.map +1 -1
  3. package/out/src/Wallet.js +111 -51
  4. package/out/src/Wallet.js.map +1 -1
  5. package/out/src/WalletSettingsManager.d.ts +2 -9
  6. package/out/src/WalletSettingsManager.d.ts.map +1 -1
  7. package/out/src/WalletSettingsManager.js +7 -113
  8. package/out/src/WalletSettingsManager.js.map +1 -1
  9. package/out/src/index.client.d.ts +5 -6
  10. package/out/src/index.client.d.ts.map +1 -1
  11. package/out/src/index.client.js +5 -6
  12. package/out/src/index.client.js.map +1 -1
  13. package/out/src/monitor/Monitor.d.ts +4 -2
  14. package/out/src/monitor/Monitor.d.ts.map +1 -1
  15. package/out/src/monitor/Monitor.js +45 -13
  16. package/out/src/monitor/Monitor.js.map +1 -1
  17. package/out/src/monitor/tasks/TaskCheckForProofs.d.ts +1 -1
  18. package/out/src/monitor/tasks/TaskCheckForProofs.d.ts.map +1 -1
  19. package/out/src/monitor/tasks/TaskCheckForProofs.js +6 -4
  20. package/out/src/monitor/tasks/TaskCheckForProofs.js.map +1 -1
  21. package/out/src/monitor/tasks/TaskCheckNoSends.d.ts.map +1 -1
  22. package/out/src/monitor/tasks/TaskCheckNoSends.js.map +1 -1
  23. package/out/src/monitor/tasks/TaskNewHeader.d.ts +3 -3
  24. package/out/src/monitor/tasks/TaskNewHeader.d.ts.map +1 -1
  25. package/out/src/monitor/tasks/TaskNewHeader.js.map +1 -1
  26. package/out/src/monitor/tasks/TaskPurge.d.ts +2 -2
  27. package/out/src/monitor/tasks/TaskPurge.d.ts.map +1 -1
  28. package/out/src/monitor/tasks/TaskReviewStatus.d.ts.map +1 -1
  29. package/out/src/monitor/tasks/TaskReviewStatus.js.map +1 -1
  30. package/out/src/sdk/WalletServices.interfaces.d.ts +19 -18
  31. package/out/src/sdk/WalletServices.interfaces.d.ts.map +1 -1
  32. package/out/src/sdk/WalletSigner.interfaces.d.ts +2 -2
  33. package/out/src/sdk/WalletSigner.interfaces.d.ts.map +1 -1
  34. package/out/src/sdk/WalletStorage.interfaces.d.ts +57 -53
  35. package/out/src/sdk/WalletStorage.interfaces.d.ts.map +1 -1
  36. package/out/src/sdk/types.d.ts +12 -0
  37. package/out/src/sdk/types.d.ts.map +1 -1
  38. package/out/src/sdk/types.js +16 -1
  39. package/out/src/sdk/types.js.map +1 -1
  40. package/out/src/services/index.d.ts +2 -0
  41. package/out/src/services/index.d.ts.map +1 -0
  42. package/out/src/{storage/sync → services}/index.js +1 -1
  43. package/out/src/services/index.js.map +1 -0
  44. package/out/src/storage/WalletStorageManager.d.ts +3 -1
  45. package/out/src/storage/WalletStorageManager.d.ts.map +1 -1
  46. package/out/src/storage/WalletStorageManager.js +58 -23
  47. package/out/src/storage/WalletStorageManager.js.map +1 -1
  48. package/out/src/storage/methods/attemptToPostReqsToNetwork.d.ts +1 -1
  49. package/out/src/storage/methods/attemptToPostReqsToNetwork.d.ts.map +1 -1
  50. package/out/src/storage/methods/attemptToPostReqsToNetwork.js +40 -6
  51. package/out/src/storage/methods/attemptToPostReqsToNetwork.js.map +1 -1
  52. package/package.json +2 -2
  53. package/out/src/Setup.d.ts +0 -329
  54. package/out/src/Setup.d.ts.map +0 -1
  55. package/out/src/Setup.js +0 -394
  56. package/out/src/Setup.js.map +0 -1
  57. package/out/src/index.all.d.ts +0 -19
  58. package/out/src/index.all.d.ts.map +0 -1
  59. package/out/src/index.all.js +0 -58
  60. package/out/src/index.all.js.map +0 -1
  61. package/out/src/monitor/MonitorDaemon.d.ts +0 -30
  62. package/out/src/monitor/MonitorDaemon.d.ts.map +0 -1
  63. package/out/src/monitor/MonitorDaemon.js +0 -134
  64. package/out/src/monitor/MonitorDaemon.js.map +0 -1
  65. package/out/src/monitor/tasks/TaskUnFail.d.ts +0 -40
  66. package/out/src/monitor/tasks/TaskUnFail.d.ts.map +0 -1
  67. package/out/src/monitor/tasks/TaskUnFail.js +0 -145
  68. package/out/src/monitor/tasks/TaskUnFail.js.map +0 -1
  69. package/out/src/storage/StorageKnex.d.ts +0 -176
  70. package/out/src/storage/StorageKnex.d.ts.map +0 -1
  71. package/out/src/storage/StorageKnex.js +0 -1022
  72. package/out/src/storage/StorageKnex.js.map +0 -1
  73. package/out/src/storage/index.all.d.ts +0 -11
  74. package/out/src/storage/index.all.d.ts.map +0 -1
  75. package/out/src/storage/index.all.js +0 -50
  76. package/out/src/storage/index.all.js.map +0 -1
  77. package/out/src/storage/methods/listActions.d.ts +0 -5
  78. package/out/src/storage/methods/listActions.d.ts.map +0 -1
  79. package/out/src/storage/methods/listActions.js +0 -228
  80. package/out/src/storage/methods/listActions.js.map +0 -1
  81. package/out/src/storage/methods/listOutputs.d.ts +0 -5
  82. package/out/src/storage/methods/listOutputs.d.ts.map +0 -1
  83. package/out/src/storage/methods/listOutputs.js +0 -295
  84. package/out/src/storage/methods/listOutputs.js.map +0 -1
  85. package/out/src/storage/methods/purgeData.d.ts +0 -4
  86. package/out/src/storage/methods/purgeData.d.ts.map +0 -1
  87. package/out/src/storage/methods/purgeData.js +0 -207
  88. package/out/src/storage/methods/purgeData.js.map +0 -1
  89. package/out/src/storage/methods/reviewStatus.d.ts +0 -9
  90. package/out/src/storage/methods/reviewStatus.d.ts.map +0 -1
  91. package/out/src/storage/methods/reviewStatus.js +0 -73
  92. package/out/src/storage/methods/reviewStatus.js.map +0 -1
  93. package/out/src/storage/remoting/StorageServer.d.ts +0 -39
  94. package/out/src/storage/remoting/StorageServer.d.ts.map +0 -1
  95. package/out/src/storage/remoting/StorageServer.js +0 -220
  96. package/out/src/storage/remoting/StorageServer.js.map +0 -1
  97. package/out/src/storage/schema/KnexMigrations.d.ts +0 -39
  98. package/out/src/storage/schema/KnexMigrations.d.ts.map +0 -1
  99. package/out/src/storage/schema/KnexMigrations.js +0 -395
  100. package/out/src/storage/schema/KnexMigrations.js.map +0 -1
  101. package/out/src/storage/sync/StorageMySQLDojoReader.d.ts +0 -71
  102. package/out/src/storage/sync/StorageMySQLDojoReader.d.ts.map +0 -1
  103. package/out/src/storage/sync/StorageMySQLDojoReader.js +0 -609
  104. package/out/src/storage/sync/StorageMySQLDojoReader.js.map +0 -1
  105. package/out/src/storage/sync/index.d.ts +0 -2
  106. package/out/src/storage/sync/index.d.ts.map +0 -1
  107. package/out/src/storage/sync/index.js.map +0 -1
  108. package/out/src/utility/index.all.d.ts +0 -7
  109. package/out/src/utility/index.all.d.ts.map +0 -1
  110. package/out/src/utility/index.all.js +0 -23
  111. package/out/src/utility/index.all.js.map +0 -1
  112. package/out/src/utility/utilityHelpers.buffer.d.ts +0 -18
  113. package/out/src/utility/utilityHelpers.buffer.d.ts.map +0 -1
  114. package/out/src/utility/utilityHelpers.buffer.js +0 -45
  115. package/out/src/utility/utilityHelpers.buffer.js.map +0 -1
@@ -1,7 +0,0 @@
1
- export * from './stampLog';
2
- export * from './ScriptTemplateBRC29';
3
- export * from './parseTxScriptOffsets';
4
- export * from './tscProofToMerklePath';
5
- export * from './utilityHelpers';
6
- export * from './utilityHelpers.buffer';
7
- //# sourceMappingURL=index.all.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.all.d.ts","sourceRoot":"","sources":["../../../../src/utility/index.all.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,kBAAkB,CAAA;AAEhC,cAAc,yBAAyB,CAAA"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./stampLog"), exports);
18
- __exportStar(require("./ScriptTemplateBRC29"), exports);
19
- __exportStar(require("./parseTxScriptOffsets"), exports);
20
- __exportStar(require("./tscProofToMerklePath"), exports);
21
- __exportStar(require("./utilityHelpers"), exports);
22
- __exportStar(require("./utilityHelpers.buffer"), exports);
23
- //# sourceMappingURL=index.all.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.all.js","sourceRoot":"","sources":["../../../../src/utility/index.all.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,wDAAqC;AACrC,yDAAsC;AACtC,yDAAsC;AACtC,mDAAgC;AAEhC,0DAAuC"}
@@ -1,18 +0,0 @@
1
- /**
2
- * Coerce a value to Buffer if currently encoded as a string or
3
- * @param val Buffer or string or number[]. If string, encoding param applies. If number[], Buffer.from constructor is used.
4
- * @param encoding defaults to 'hex'. Only applies to val of type string
5
- * @returns input val if it is a Buffer or new Buffer from string val
6
- * @publicbody
7
- */
8
- export declare function asBuffer(val: Buffer | string | number[], encoding?: BufferEncoding): Buffer;
9
- /**
10
- * Coerce a value to an encoded string if currently a Buffer or number[]
11
- * @param val Buffer or string or number[]. If string, encoding param applies. If number[], Buffer.from constructor is used.
12
- * @param encoding defaults to 'hex'
13
- * @returns input val if it is a string; or if number[], first converted to Buffer then as Buffer; if Buffer encoded using `encoding`
14
- * @publicbody
15
- */
16
- export declare function asString(val: Buffer | string | number[], encoding?: BufferEncoding): string;
17
- export declare function asArray(val: Buffer | string | number[], encoding?: BufferEncoding): number[];
18
- //# sourceMappingURL=utilityHelpers.buffer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utilityHelpers.buffer.d.ts","sourceRoot":"","sources":["../../../../src/utility/utilityHelpers.buffer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,EAAE,QAAQ,CAAC,EAAE,cAAc,GAAG,MAAM,CAM3F;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,EAAE,QAAQ,CAAC,EAAE,cAAc,GAAG,MAAM,CAG3F;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,EAAE,QAAQ,CAAC,EAAE,cAAc,GAAG,MAAM,EAAE,CAM5F"}
@@ -1,45 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.asBuffer = asBuffer;
4
- exports.asString = asString;
5
- exports.asArray = asArray;
6
- /**
7
- * Coerce a value to Buffer if currently encoded as a string or
8
- * @param val Buffer or string or number[]. If string, encoding param applies. If number[], Buffer.from constructor is used.
9
- * @param encoding defaults to 'hex'. Only applies to val of type string
10
- * @returns input val if it is a Buffer or new Buffer from string val
11
- * @publicbody
12
- */
13
- function asBuffer(val, encoding) {
14
- let b;
15
- if (Buffer.isBuffer(val))
16
- b = val;
17
- else if (typeof val === 'string')
18
- b = Buffer.from(val, encoding !== null && encoding !== void 0 ? encoding : 'hex');
19
- else
20
- b = Buffer.from(val);
21
- return b;
22
- }
23
- /**
24
- * Coerce a value to an encoded string if currently a Buffer or number[]
25
- * @param val Buffer or string or number[]. If string, encoding param applies. If number[], Buffer.from constructor is used.
26
- * @param encoding defaults to 'hex'
27
- * @returns input val if it is a string; or if number[], first converted to Buffer then as Buffer; if Buffer encoded using `encoding`
28
- * @publicbody
29
- */
30
- function asString(val, encoding) {
31
- if (Array.isArray(val))
32
- val = Buffer.from(val);
33
- return Buffer.isBuffer(val) ? val.toString(encoding !== null && encoding !== void 0 ? encoding : 'hex') : val;
34
- }
35
- function asArray(val, encoding) {
36
- let a;
37
- if (Array.isArray(val))
38
- a = val;
39
- else if (Buffer.isBuffer(val))
40
- a = Array.from(val);
41
- else
42
- a = Array.from(Buffer.from(val, encoding || 'hex'));
43
- return a;
44
- }
45
- //# sourceMappingURL=utilityHelpers.buffer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utilityHelpers.buffer.js","sourceRoot":"","sources":["../../../../src/utility/utilityHelpers.buffer.ts"],"names":[],"mappings":";;AAOA,4BAMC;AASD,4BAGC;AAED,0BAMC;AAjCD;;;;;;GAMG;AACH,SAAgB,QAAQ,CAAC,GAA+B,EAAE,QAAyB;IACjF,IAAI,CAAS,CAAA;IACb,IAAI,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,CAAC,GAAG,GAAG,CAAA;SAC5B,IAAI,OAAO,GAAG,KAAK,QAAQ;QAAE,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,KAAK,CAAC,CAAA;;QACpE,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IACzB,OAAO,CAAC,CAAA;AACV,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,QAAQ,CAAC,GAA+B,EAAE,QAAyB;IACjF,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;QAAE,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IAC9C,OAAO,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAA;AACrE,CAAC;AAED,SAAgB,OAAO,CAAC,GAA+B,EAAE,QAAyB;IAChF,IAAI,CAAW,CAAA;IACf,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;QAAE,CAAC,GAAG,GAAG,CAAA;SAC1B,IAAI,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;;QAC7C,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,IAAI,KAAK,CAAC,CAAC,CAAA;IACxD,OAAO,CAAC,CAAA;AACV,CAAC"}