@oceanprotocol/lib 2.0.1 → 2.1.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.
@@ -1,3 +1,4 @@
1
+ import { AbiItem } from 'web3-utils';
1
2
  export interface UrlFile {
2
3
  type: 'url';
3
4
  /**
@@ -33,8 +34,42 @@ export interface GraphqlQuery {
33
34
  */
34
35
  query: string;
35
36
  }
37
+ export interface Arweave {
38
+ type: 'arweave';
39
+ /**
40
+ * transactionId
41
+ * @type {string}
42
+ */
43
+ transactionId: string;
44
+ }
45
+ export interface Ipfs {
46
+ type: 'ipfs';
47
+ /**
48
+ * hash
49
+ * @type {string}
50
+ */
51
+ hash: string;
52
+ }
53
+ export interface Smartcontract {
54
+ type: 'smartcontract';
55
+ /**
56
+ * Smartcontract address
57
+ * @type {string}
58
+ */
59
+ address: string;
60
+ /**
61
+ * ChainId
62
+ * @type {number}
63
+ */
64
+ chainId: number;
65
+ /**
66
+ * Function ABI (not the entire smartcontract abi)
67
+ * @type {AbiItem}
68
+ */
69
+ abi: AbiItem;
70
+ }
36
71
  export interface Files {
37
72
  nftAddress: string;
38
73
  datatokenAddress: string;
39
- files: UrlFile[] | GraphqlQuery[];
74
+ files: UrlFile[] | GraphqlQuery[] | Arweave[] | Smartcontract[] | Ipfs[];
40
75
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oceanprotocol/lib",
3
3
  "source": "./src/index.ts",
4
- "version": "2.0.1",
4
+ "version": "2.1.0",
5
5
  "description": "JavaScript client library for Ocean Protocol",
6
6
  "main": "./dist/lib.js",
7
7
  "umd:main": "dist/lib.umd.js",
@@ -49,35 +49,35 @@
49
49
  "web3": "^1.7.4"
50
50
  },
51
51
  "dependencies": {
52
- "@oceanprotocol/contracts": "^1.1.4",
53
- "bignumber.js": "^9.0.2",
52
+ "@oceanprotocol/contracts": "^1.1.6",
53
+ "bignumber.js": "^9.1.0",
54
54
  "cross-fetch": "^3.1.5",
55
55
  "crypto-js": "^4.1.1",
56
- "decimal.js": "^10.3.1",
57
- "web3": "^1.7.4",
58
- "web3-core": "^1.7.1",
59
- "web3-eth-contract": "^1.7.1"
56
+ "decimal.js": "^10.4.1",
57
+ "web3": "^1.8.0",
58
+ "web3-core": "^1.8.0",
59
+ "web3-eth-contract": "^1.8.0"
60
60
  },
61
61
  "devDependencies": {
62
- "@truffle/hdwallet-provider": "^2.0.10",
62
+ "@truffle/hdwallet-provider": "^2.0.14",
63
63
  "@types/chai": "^4.3.1",
64
64
  "@types/chai-spies": "^1.0.3",
65
65
  "@types/crypto-js": "^4.1.1",
66
66
  "@types/mocha": "^9.1.1",
67
67
  "@types/node": "^18.0.1",
68
68
  "@types/node-fetch": "^3.0.3",
69
- "@typescript-eslint/eslint-plugin": "^5.30.5",
70
- "@typescript-eslint/parser": "^5.30.5",
69
+ "@typescript-eslint/eslint-plugin": "^5.38.0",
70
+ "@typescript-eslint/parser": "^5.38.0",
71
71
  "auto-changelog": "^2.4.0",
72
72
  "chai": "^4.3.6",
73
73
  "chai-spies": "^1.0.0",
74
74
  "cross-env": "^7.0.3",
75
- "eslint": "^8.19.0",
75
+ "eslint": "^8.23.1",
76
76
  "eslint-config-oceanprotocol": "^2.0.3",
77
77
  "eslint-config-prettier": "^8.5.0",
78
78
  "eslint-plugin-prettier": "^4.2.1",
79
79
  "fs": "0.0.1-security",
80
- "microbundle": "0.15.1",
80
+ "microbundle": "0.14.2",
81
81
  "mocha": "^10.0.0",
82
82
  "mock-local-storage": "^1.1.21",
83
83
  "nyc": "^15.1.0",
@@ -85,9 +85,9 @@
85
85
  "prettier": "^2.7.1",
86
86
  "release-it": "^15.4.0",
87
87
  "source-map-support": "^0.5.19",
88
- "ts-node": "^10.8.2",
88
+ "ts-node": "^10.9.1",
89
89
  "ts-node-register": "^1.0.0",
90
- "typedoc": "0.23.5",
90
+ "typedoc": "0.23.15",
91
91
  "typescript": "^4.7.4"
92
92
  },
93
93
  "nyc": {