@oceanprotocol/lib 2.6.3 → 2.7.0-next.1
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/CHANGELOG.md +17 -0
- package/CodeExamples.md +12 -4
- package/ComputeExamples.md +2 -2
- package/dist/lib.js +1 -1
- package/dist/lib.js.map +1 -1
- package/dist/lib.modern.js +1 -1
- package/dist/lib.modern.js.map +1 -1
- package/dist/lib.module.js +1 -1
- package/dist/lib.module.js.map +1 -1
- package/dist/lib.umd.js +1 -1
- package/dist/lib.umd.js.map +1 -1
- package/dist/src/services/Provider.d.ts +2 -1
- package/package.json +1 -1
|
@@ -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