@bsv/sdk 2.0.13 → 2.0.14

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 (45) hide show
  1. package/README.md +2 -0
  2. package/dist/cjs/package.json +1 -1
  3. package/dist/cjs/src/identity/IdentityClient.js +3 -3
  4. package/dist/cjs/src/identity/IdentityClient.js.map +1 -1
  5. package/dist/cjs/src/identity/types/index.js +1 -1
  6. package/dist/cjs/src/identity/types/index.js.map +1 -1
  7. package/dist/cjs/src/storage/StorageUploader.js +315 -96
  8. package/dist/cjs/src/storage/StorageUploader.js.map +1 -1
  9. package/dist/cjs/src/storage/index.js +3 -1
  10. package/dist/cjs/src/storage/index.js.map +1 -1
  11. package/dist/cjs/src/wallet/WERR_REVIEW_ACTIONS.js +2 -2
  12. package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
  13. package/dist/esm/src/identity/IdentityClient.js +3 -3
  14. package/dist/esm/src/identity/IdentityClient.js.map +1 -1
  15. package/dist/esm/src/identity/types/index.js +1 -1
  16. package/dist/esm/src/identity/types/index.js.map +1 -1
  17. package/dist/esm/src/storage/StorageUploader.js +319 -95
  18. package/dist/esm/src/storage/StorageUploader.js.map +1 -1
  19. package/dist/esm/src/storage/index.js +1 -1
  20. package/dist/esm/src/storage/index.js.map +1 -1
  21. package/dist/esm/src/wallet/WERR_REVIEW_ACTIONS.js +2 -2
  22. package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
  23. package/dist/types/src/storage/StorageUploader.d.ts +94 -55
  24. package/dist/types/src/storage/StorageUploader.d.ts.map +1 -1
  25. package/dist/types/src/storage/index.d.ts +1 -1
  26. package/dist/types/src/storage/index.d.ts.map +1 -1
  27. package/dist/types/src/wallet/WERR_REVIEW_ACTIONS.d.ts +2 -2
  28. package/dist/types/src/wallet/Wallet.interfaces.d.ts +2 -2
  29. package/dist/types/tsconfig.types.tsbuildinfo +1 -1
  30. package/dist/umd/bundle.js +4 -4
  31. package/dist/umd/bundle.js.map +1 -1
  32. package/docs/index.md +3 -1
  33. package/docs/reference/identity.md +1 -1
  34. package/docs/reference/storage.md +214 -85
  35. package/docs/reference/transaction.md +2 -2
  36. package/docs/reference/wallet.md +4 -4
  37. package/package.json +1 -1
  38. package/src/identity/IdentityClient.ts +3 -3
  39. package/src/identity/__tests/IdentityClient.additional.test.ts +3 -3
  40. package/src/identity/types/index.ts +1 -1
  41. package/src/storage/StorageUploader.ts +427 -105
  42. package/src/storage/__tests/StorageUploader.test.ts +881 -64
  43. package/src/storage/index.ts +1 -1
  44. package/src/wallet/WERR_REVIEW_ACTIONS.ts +2 -2
  45. package/src/wallet/Wallet.interfaces.ts +2 -2
@@ -1,5 +1,5 @@
1
1
  export * as StorageUtils from './StorageUtils.js'
2
2
 
3
- export { StorageUploader } from './StorageUploader.js'
3
+ export { StorageUploader, DEFAULT_UHRP_SERVERS, RenewResiliencyError } from './StorageUploader.js'
4
4
 
5
5
  export { StorageDownloader } from './StorageDownloader.js'
@@ -2,7 +2,7 @@ import { AtomicBEEF, OutpointString, ReviewActionResult, SendWithResult, TXIDHex
2
2
 
3
3
  /**
4
4
  * When a `createAction` or `signAction` is completed in undelayed mode (`acceptDelayedBroadcast`: false),
5
- * any unsucccessful result will return the results by way of this exception to ensure attention is
5
+ * any unsuccessful result will return the results by way of this exception to ensure attention is
6
6
  * paid to processing errors.
7
7
  */
8
8
  export class WERR_REVIEW_ACTIONS extends Error {
@@ -10,7 +10,7 @@ export class WERR_REVIEW_ACTIONS extends Error {
10
10
  isError: boolean = true
11
11
 
12
12
  /**
13
- * All parameters correspond to their comparable `createAction` or `signSction` results
13
+ * All parameters correspond to their comparable `createAction` or `signAction` results
14
14
  * with the exception of `reviewActionResults`;
15
15
  * which contains more details, particularly for double spend results.
16
16
  */
@@ -305,10 +305,10 @@ export interface SendWithResult {
305
305
 
306
306
  /**
307
307
  * Indicates status of a new Action following a `createAction` or `signAction` in immediate mode:
308
- * When `acceptDelayedBroadcast` is falses.
308
+ * When `acceptDelayedBroadcast` is false.
309
309
  *
310
310
  * 'success': The action has been broadcast and accepted by the bitcoin processing network.
311
- * 'doulbeSpend': The action has been confirmed to double spend one or more inputs, and by the "first-seen-rule" is the loosing transaction.
311
+ * 'doubleSpend': The action has been confirmed to double spend one or more inputs, and by the "first-seen-rule" is the losing transaction.
312
312
  * 'invalidTx': The action was rejected by the processing network as an invalid bitcoin transaction.
313
313
  * 'serviceError': The broadcast services are currently unable to reach the bitcoin network. The action is now queued for delayed retries.
314
314
  */