@oceanprotocol/lib 2.6.1 → 2.7.0-next.0

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.
@@ -25,11 +25,12 @@ export declare class Provider {
25
25
  signProviderRequest(web3: Web3, accountId: string, message: string, password?: string): Promise<string>;
26
26
  /** Encrypt data using the Provider's own symmetric key
27
27
  * @param {string} data data in json format that needs to be sent , it can either be a DDO or a File array
28
+ * @param {number} chainId network's id so provider can choose the corresponding web3 object
28
29
  * @param {string} providerUri provider uri address
29
30
  * @param {AbortSignal} signal abort signal
30
31
  * @return {Promise<string>} urlDetails
31
32
  */
32
- encrypt(data: any, providerUri: string, signal?: AbortSignal): Promise<string>;
33
+ encrypt(data: any, chainId: number, providerUri: string, signal?: AbortSignal): Promise<string>;
33
34
  /** Get DDO File details (if possible)
34
35
  * @param {UrlFile | Arweave | Ipfs | GraphqlQuery | Smartcontract} file one of the supported file structures
35
36
  * @param {string} serviceId the id of the service for which to check the files
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oceanprotocol/lib",
3
3
  "source": "./src/index.ts",
4
- "version": "2.6.1",
4
+ "version": "2.7.0-next.0",
5
5
  "description": "JavaScript client library for Ocean Protocol",
6
6
  "main": "./dist/lib.js",
7
7
  "umd:main": "dist/lib.umd.js",