@oceanprotocol/lib 3.4.5 → 3.4.6

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.
@@ -22,13 +22,13 @@ export declare class Aquarius {
22
22
  */
23
23
  resolve(did: string, signal?: AbortSignal): Promise<Asset>;
24
24
  /**
25
- * Blocks until Aqua will cache the did (or the update for that did) or timeouts
25
+ * Blocks until Indexer will cache the did (or the update for that did) or timeouts
26
26
  * @param {string} did DID of the asset.
27
27
  * @param {string} txid used when the did exists and we expect an update with that txid.
28
28
  * @param {AbortSignal} signal abort signal
29
29
  * @return {Promise<Asset>} DDO of the asset.
30
30
  */
31
- waitForAqua(did: string, txid?: string, signal?: AbortSignal): Promise<Asset>;
31
+ waitForIndexer(did: string, txid?: string, signal?: AbortSignal, interval?: number, maxRetries?: number): Promise<Asset>;
32
32
  /**
33
33
  * Validate DDO content
34
34
  * @param {DDO} ddo DID Descriptor Object content.
@@ -18,7 +18,7 @@
18
18
  - [querySearch](Aquarius.md#querysearch)
19
19
  - [resolve](Aquarius.md#resolve)
20
20
  - [validate](Aquarius.md#validate)
21
- - [waitForAqua](Aquarius.md#waitforaqua)
21
+ - [waitForIndexer](Aquarius.md#waitForIndexer)
22
22
 
23
23
  ## Constructors
24
24
 
@@ -146,11 +146,11 @@ Validate DDO content
146
146
 
147
147
  ___
148
148
 
149
- ### waitForAqua
149
+ ### waitForIndexer
150
150
 
151
- ▸ **waitForAqua**(`did`, `txid?`, `signal?`): `Promise`<[`Asset`](../interfaces/Asset.md)\>
151
+ ▸ **waitForIndexer**(`did`, `txid?`, `signal?`, `interval=3000`,`maxRetries=100`): `Promise`<[`Asset`](../interfaces/Asset.md)\>
152
152
 
153
- Blocks until Aqua will cache the did (or the update for that did) or timeouts
153
+ Blocks until Indexer will cache the did (or the update for that did) or timeouts
154
154
 
155
155
  #### Parameters
156
156
 
@@ -159,6 +159,8 @@ Blocks until Aqua will cache the did (or the update for that did) or timeouts
159
159
  | `did` | `string` | DID of the asset. |
160
160
  | `txid?` | `string` | used when the did exists and we expect an update with that txid. |
161
161
  | `signal?` | `AbortSignal` | abort signal |
162
+ | `interval` | `number` | retry interval in miliseconds. Default is 3000 |
163
+ | `maxRetries` | `number` | max number of retries. Default is 100 |
162
164
 
163
165
  #### Returns
164
166
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oceanprotocol/lib",
3
3
  "source": "./src/index.ts",
4
- "version": "3.4.5",
4
+ "version": "3.4.6",
5
5
  "description": "JavaScript client library for Ocean Protocol",
6
6
  "main": "./dist/lib.js",
7
7
  "umd:main": "dist/lib.umd.js",