@oceanprotocol/lib 2.2.3 → 2.3.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.
@@ -27,9 +27,10 @@ export interface AssetNft {
27
27
  * 2 Deprecated (by another asset).
28
28
  * 3 Revoked by publisher.
29
29
  * 4 Ordering is temporary disabled.
30
+ * 5 Unlisted in markets.
30
31
  * @type {number}
31
32
  */
32
- state: 0 | 1 | 2 | 3 | 4;
33
+ state: 0 | 1 | 2 | 3 | 4 | 5;
33
34
  /**
34
35
  * Contains the date of NFT creation.
35
36
  * @type {string}
@@ -1,5 +1,5 @@
1
1
  import Web3 from 'web3';
2
- import { FileInfo, ComputeJob, ComputeOutput, ComputeAlgorithm, ComputeAsset, ComputeEnvironment, ProviderInitialize, ProviderComputeInitializeResults, ServiceEndpoint, UserCustomParameters } from '../@types';
2
+ import { Arweave, FileInfo, ComputeJob, ComputeOutput, ComputeAlgorithm, ComputeAsset, ComputeEnvironment, ProviderInitialize, ProviderComputeInitializeResults, ServiceEndpoint, UrlFile, UserCustomParameters } from '../@types';
3
3
  export declare class Provider {
4
4
  /**
5
5
  * Returns the provider endpoints
@@ -44,7 +44,7 @@ export declare class Provider {
44
44
  * @param {AbortSignal} signal abort signal
45
45
  * @return {Promise<FileInfo[]>} urlDetails
46
46
  */
47
- checkFileUrl(url: string, providerUri: string, signal?: AbortSignal): Promise<FileInfo[]>;
47
+ getFileInfo(file: UrlFile | Arweave, providerUri: string, signal?: AbortSignal): Promise<FileInfo[]>;
48
48
  /** Get Compute Environments
49
49
  * @return {Promise<ComputeEnvironment[]>} urlDetails
50
50
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oceanprotocol/lib",
3
3
  "source": "./src/index.ts",
4
- "version": "2.2.3",
4
+ "version": "2.3.0",
5
5
  "description": "JavaScript client library for Ocean Protocol",
6
6
  "main": "./dist/lib.js",
7
7
  "umd:main": "dist/lib.umd.js",