@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.
- package/README.md +2 -0
- package/dist/cjs/package.json +1 -1
- package/dist/cjs/src/identity/IdentityClient.js +3 -3
- package/dist/cjs/src/identity/IdentityClient.js.map +1 -1
- package/dist/cjs/src/identity/types/index.js +1 -1
- package/dist/cjs/src/identity/types/index.js.map +1 -1
- package/dist/cjs/src/storage/StorageUploader.js +315 -96
- package/dist/cjs/src/storage/StorageUploader.js.map +1 -1
- package/dist/cjs/src/storage/index.js +3 -1
- package/dist/cjs/src/storage/index.js.map +1 -1
- package/dist/cjs/src/wallet/WERR_REVIEW_ACTIONS.js +2 -2
- package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/esm/src/identity/IdentityClient.js +3 -3
- package/dist/esm/src/identity/IdentityClient.js.map +1 -1
- package/dist/esm/src/identity/types/index.js +1 -1
- package/dist/esm/src/identity/types/index.js.map +1 -1
- package/dist/esm/src/storage/StorageUploader.js +319 -95
- package/dist/esm/src/storage/StorageUploader.js.map +1 -1
- package/dist/esm/src/storage/index.js +1 -1
- package/dist/esm/src/storage/index.js.map +1 -1
- package/dist/esm/src/wallet/WERR_REVIEW_ACTIONS.js +2 -2
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/types/src/storage/StorageUploader.d.ts +94 -55
- package/dist/types/src/storage/StorageUploader.d.ts.map +1 -1
- package/dist/types/src/storage/index.d.ts +1 -1
- package/dist/types/src/storage/index.d.ts.map +1 -1
- package/dist/types/src/wallet/WERR_REVIEW_ACTIONS.d.ts +2 -2
- package/dist/types/src/wallet/Wallet.interfaces.d.ts +2 -2
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/dist/umd/bundle.js +4 -4
- package/dist/umd/bundle.js.map +1 -1
- package/docs/index.md +3 -1
- package/docs/reference/identity.md +1 -1
- package/docs/reference/storage.md +214 -85
- package/docs/reference/transaction.md +2 -2
- package/docs/reference/wallet.md +4 -4
- package/package.json +1 -1
- package/src/identity/IdentityClient.ts +3 -3
- package/src/identity/__tests/IdentityClient.additional.test.ts +3 -3
- package/src/identity/types/index.ts +1 -1
- package/src/storage/StorageUploader.ts +427 -105
- package/src/storage/__tests/StorageUploader.test.ts +881 -64
- package/src/storage/index.ts +1 -1
- package/src/wallet/WERR_REVIEW_ACTIONS.ts +2 -2
- package/src/wallet/Wallet.interfaces.ts +2 -2
package/src/storage/index.ts
CHANGED
|
@@ -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
|
|
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 `
|
|
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
|
|
308
|
+
* When `acceptDelayedBroadcast` is false.
|
|
309
309
|
*
|
|
310
310
|
* 'success': The action has been broadcast and accepted by the bitcoin processing network.
|
|
311
|
-
* '
|
|
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
|
*/
|