@oceanprotocol/lib 2.0.2 → 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.
- package/CHANGELOG.md +8 -0
- package/dist/src/@types/File.d.ts +36 -1
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -4,9 +4,17 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
#### [v2.1.0](https://github.com/oceanprotocol/ocean.js/compare/v2.0.2...v2.1.0)
|
|
8
|
+
|
|
9
|
+
- bump @oceanprotocol/contracts to v1.1.6 [`#1613`](https://github.com/oceanprotocol/ocean.js/pull/1613)
|
|
10
|
+
- add Arweave/Ipfs/Smartcontract data types [`#1612`](https://github.com/oceanprotocol/ocean.js/pull/1612)
|
|
11
|
+
|
|
7
12
|
#### [v2.0.2](https://github.com/oceanprotocol/ocean.js/compare/v2.0.1...v2.0.2)
|
|
8
13
|
|
|
14
|
+
> 13 September 2022
|
|
15
|
+
|
|
9
16
|
- rollback microbundle package [`#1611`](https://github.com/oceanprotocol/ocean.js/pull/1611)
|
|
17
|
+
- Release 2.0.2 [`192e0a7`](https://github.com/oceanprotocol/ocean.js/commit/192e0a736dd01f5475624e901f75004412a8cfcb)
|
|
10
18
|
|
|
11
19
|
#### [v2.0.1](https://github.com/oceanprotocol/ocean.js/compare/v2.0.0...v2.0.1)
|
|
12
20
|
|
|
@@ -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
|
|
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,30 +49,30 @@
|
|
|
49
49
|
"web3": "^1.7.4"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@oceanprotocol/contracts": "^1.1.
|
|
53
|
-
"bignumber.js": "^9.0
|
|
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.
|
|
57
|
-
"web3": "^1.
|
|
58
|
-
"web3-core": "^1.
|
|
59
|
-
"web3-eth-contract": "^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.
|
|
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.
|
|
70
|
-
"@typescript-eslint/parser": "^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.
|
|
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",
|
|
@@ -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.
|
|
88
|
+
"ts-node": "^10.9.1",
|
|
89
89
|
"ts-node-register": "^1.0.0",
|
|
90
|
-
"typedoc": "0.23.
|
|
90
|
+
"typedoc": "0.23.15",
|
|
91
91
|
"typescript": "^4.7.4"
|
|
92
92
|
},
|
|
93
93
|
"nyc": {
|