@oceanprotocol/lib 1.0.0-next.1 → 1.0.0-next.13

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.
Files changed (103) hide show
  1. package/CHANGELOG.md +111 -1
  2. package/dist/lib.js +1 -1
  3. package/dist/lib.js.map +1 -1
  4. package/dist/lib.modern.js +1 -1
  5. package/dist/lib.modern.js.map +1 -1
  6. package/dist/lib.module.js +1 -1
  7. package/dist/lib.module.js.map +1 -1
  8. package/dist/lib.umd.js +1 -1
  9. package/dist/lib.umd.js.map +1 -1
  10. package/dist/src/@types/Asset.d.ts +119 -0
  11. package/dist/src/{src/@types → @types}/Compute.d.ts +17 -0
  12. package/dist/src/{src/@types → @types}/DDO/Credentials.d.ts +0 -0
  13. package/dist/src/@types/DDO/DDO.d.ts +58 -0
  14. package/dist/src/@types/DDO/Event.d.ts +27 -0
  15. package/dist/src/@types/DDO/Metadata.d.ts +126 -0
  16. package/dist/src/@types/DDO/Service.d.ts +124 -0
  17. package/dist/src/{src/interfaces/DispenserInterface.d.ts → @types/Dispenser.d.ts} +0 -0
  18. package/dist/src/@types/DownloadResponse.d.ts +4 -0
  19. package/dist/src/{src/interfaces/Erc20Interface.d.ts → @types/Erc20.d.ts} +0 -0
  20. package/dist/src/@types/Erc721.d.ts +12 -0
  21. package/dist/src/@types/FileMetadata.d.ts +38 -0
  22. package/dist/src/{src/interfaces/FixedRateInterface.d.ts → @types/FixedPrice.d.ts} +1 -1
  23. package/dist/src/{src/interfaces/PoolInterface.d.ts → @types/Pool.d.ts} +4 -4
  24. package/dist/src/{src/@types → @types}/Provider.d.ts +3 -2
  25. package/dist/src/@types/Router.d.ts +59 -0
  26. package/dist/src/{src/@types → @types}/index.d.ts +6 -0
  27. package/dist/src/aquarius/Aquarius.d.ts +32 -0
  28. package/dist/src/{src/aquarius → aquarius}/index.d.ts +0 -0
  29. package/dist/src/factories/NFTFactory.d.ts +273 -0
  30. package/dist/src/{src/factories → factories}/index.d.ts +0 -0
  31. package/dist/src/{src/index.d.ts → index.d.ts} +0 -1
  32. package/dist/src/models/Config.d.ts +166 -0
  33. package/dist/src/{src/models → models}/index.d.ts +0 -0
  34. package/dist/src/pools/Router.d.ts +229 -0
  35. package/dist/src/pools/balancer/Pool.d.ts +365 -0
  36. package/dist/src/{src/pools → pools}/balancer/index.d.ts +0 -0
  37. package/dist/src/pools/dispenser/Dispenser.d.ts +146 -0
  38. package/dist/src/{src/pools → pools}/dispenser/index.d.ts +0 -0
  39. package/dist/src/pools/fixedRate/FixedRateExchange.d.ts +375 -0
  40. package/dist/src/{src/pools → pools}/fixedRate/index.d.ts +0 -0
  41. package/dist/src/{src/pools → pools}/index.d.ts +0 -0
  42. package/dist/src/pools/ssContracts/SideStaking.d.ts +132 -0
  43. package/dist/src/{src/pools → pools}/ssContracts/index.d.ts +0 -0
  44. package/dist/src/provider/Provider.d.ts +147 -0
  45. package/dist/src/{src/provider → provider}/index.d.ts +0 -0
  46. package/dist/src/tokens/Datatoken.d.ts +362 -0
  47. package/dist/src/tokens/NFT.d.ts +355 -0
  48. package/dist/src/{src/tokens → tokens}/index.d.ts +0 -0
  49. package/dist/src/{src/utils → utils}/ConfigHelper.d.ts +1 -1
  50. package/dist/src/{src/utils → utils}/Constants.d.ts +1 -0
  51. package/dist/src/utils/ContractUtils.d.ts +11 -0
  52. package/dist/src/{src/utils → utils}/ConversionTypeHelper.d.ts +0 -0
  53. package/dist/src/utils/DatatokenName.d.ts +11 -0
  54. package/dist/src/{src/utils → utils}/DdoHelpers.d.ts +0 -0
  55. package/dist/src/{src/utils → utils}/FetchHelper.d.ts +3 -2
  56. package/dist/src/utils/General.d.ts +4 -0
  57. package/dist/src/{src/utils → utils}/Logger.d.ts +0 -0
  58. package/dist/src/{src/utils → utils}/SignatureUtils.d.ts +0 -0
  59. package/dist/src/utils/TokenUtils.d.ts +39 -0
  60. package/dist/src/{src/utils → utils}/index.d.ts +3 -2
  61. package/dist/src/utils/minAbi.d.ts +2 -0
  62. package/dist/{src/test → test}/TestContractHandler.d.ts +0 -0
  63. package/dist/{src/test → test}/integration/ComputeFlow.test.d.ts +0 -0
  64. package/dist/{src/test → test}/integration/Provider.test.d.ts +0 -0
  65. package/dist/{src/test → test}/integration/PublishFlows.test.d.ts +0 -0
  66. package/dist/{src/test → test}/integration/SimplePublishConsumeFlow.test.d.ts +0 -0
  67. package/dist/{src/test → test}/integration/config.d.ts +0 -0
  68. package/dist/{src/test → test}/unit/NftFactory.test.d.ts +0 -0
  69. package/dist/{src/test → test}/unit/config.d.ts +0 -0
  70. package/dist/{src/test → test}/unit/pools/Router.test.d.ts +0 -0
  71. package/dist/{src/test → test}/unit/pools/balancer/Pool.test.d.ts +0 -0
  72. package/dist/{src/test → test}/unit/pools/dispenser/Dispenser.test.d.ts +0 -0
  73. package/dist/{src/test → test}/unit/pools/fixedRate/FixedRateExchange.test.d.ts +0 -0
  74. package/dist/{src/test → test}/unit/pools/ssContracts/SideStaking.test.d.ts +0 -0
  75. package/dist/{src/test → test}/unit/tokens/Datatoken.test.d.ts +0 -0
  76. package/dist/{src/test → test}/unit/tokens/Nft.test.d.ts +0 -0
  77. package/docs/beginners_guide.md +4 -4
  78. package/docs/overview.md +100 -9
  79. package/docs/quickstart_marketplace.md +34 -33
  80. package/docs/quickstart_simple.md +18 -16
  81. package/package.json +23 -22
  82. package/dist/src/src/@types/Asset.d.ts +0 -36
  83. package/dist/src/src/@types/DDO/DDO.d.ts +0 -15
  84. package/dist/src/src/@types/DDO/Event.d.ts +0 -7
  85. package/dist/src/src/@types/DDO/Metadata.d.ts +0 -38
  86. package/dist/src/src/@types/DDO/Service.d.ts +0 -28
  87. package/dist/src/src/@types/FileMetadata.d.ts +0 -8
  88. package/dist/src/src/aquarius/Aquarius.d.ts +0 -10
  89. package/dist/src/src/factories/NFTFactory.d.ts +0 -70
  90. package/dist/src/src/interfaces/RouterInterface.d.ts +0 -12
  91. package/dist/src/src/interfaces/index.d.ts +0 -5
  92. package/dist/src/src/models/Config.d.ts +0 -34
  93. package/dist/src/src/pools/Router.d.ts +0 -46
  94. package/dist/src/src/pools/balancer/Pool.d.ts +0 -73
  95. package/dist/src/src/pools/dispenser/Dispenser.d.ts +0 -37
  96. package/dist/src/src/pools/fixedRate/FixedRateExchange.d.ts +0 -95
  97. package/dist/src/src/pools/ssContracts/SideStaking.d.ts +0 -28
  98. package/dist/src/src/provider/Provider.d.ts +0 -31
  99. package/dist/src/src/tokens/Datatoken.d.ts +0 -77
  100. package/dist/src/src/tokens/NFT.d.ts +0 -57
  101. package/dist/src/src/utils/ContractParams.d.ts +0 -4
  102. package/dist/src/src/utils/DatatokenName.d.ts +0 -7
  103. package/dist/src/src/utils/GasUtils.d.ts +0 -2
package/CHANGELOG.md CHANGED
@@ -4,8 +4,118 @@ 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
+ #### [v1.0.0-next.13](https://github.com/oceanprotocol/ocean.js/compare/v1.0.0-next.12...v1.0.0-next.13)
8
+
9
+ - Bump typescript from 4.4.4 to 4.5.5 [`#1270`](https://github.com/oceanprotocol/ocean.js/pull/1270)
10
+ - Bump mocha from 9.1.3 to 9.2.0 [`#1269`](https://github.com/oceanprotocol/ocean.js/pull/1269)
11
+ - Use v4main images [`#1267`](https://github.com/oceanprotocol/ocean.js/pull/1267)
12
+ - Bump ts-node from 10.4.0 to 10.5.0 [`#1268`](https://github.com/oceanprotocol/ocean.js/pull/1268)
13
+ - Bump @truffle/hdwallet-provider from 1.7.0 to 2.0.3 [`#1271`](https://github.com/oceanprotocol/ocean.js/pull/1271)
14
+ - Bump mock-local-storage from 1.1.19 to 1.1.20 [`#1263`](https://github.com/oceanprotocol/ocean.js/pull/1263)
15
+ - Bump cross-fetch from 3.1.4 to 3.1.5 [`#1264`](https://github.com/oceanprotocol/ocean.js/pull/1264)
16
+ - Bump auto-changelog from 2.3.0 to 2.4.0 [`#1265`](https://github.com/oceanprotocol/ocean.js/pull/1265)
17
+ - Bump @types/mocha from 9.0.0 to 9.1.0 [`#1262`](https://github.com/oceanprotocol/ocean.js/pull/1262)
18
+ - Bump follow-redirects from 1.14.6 to 1.14.8 [`#1261`](https://github.com/oceanprotocol/ocean.js/pull/1261)
19
+ - Bump simple-get from 2.8.1 to 2.8.2 [`#1260`](https://github.com/oceanprotocol/ocean.js/pull/1260)
20
+ - Bump @openzeppelin/contracts from 4.4.1 to 4.4.2 [`#1259`](https://github.com/oceanprotocol/ocean.js/pull/1259)
21
+ - Bump @types/node from 17.0.8 to 17.0.16 [`#1255`](https://github.com/oceanprotocol/ocean.js/pull/1255)
22
+ - Bump typedoc from 0.22.10 to 0.22.11 [`#1230`](https://github.com/oceanprotocol/ocean.js/pull/1230)
23
+ - npm audit fix [`92f4eb9`](https://github.com/oceanprotocol/ocean.js/commit/92f4eb96695a1e32e750f6c3c0de7774e992e4f2)
24
+
25
+ #### [v1.0.0-next.12](https://github.com/oceanprotocol/ocean.js/compare/v1.0.0-next.11...v1.0.0-next.12)
26
+
27
+ > 9 February 2022
28
+
29
+ - use compute environments [`#1258`](https://github.com/oceanprotocol/ocean.js/pull/1258)
30
+ - Bump web3 from 1.6.1 to 1.7.0 [`#1224`](https://github.com/oceanprotocol/ocean.js/pull/1224)
31
+ - Barge c2d & latest contracts bump [`#1248`](https://github.com/oceanprotocol/ocean.js/pull/1248)
32
+ - Release 1.0.0-next.12 [`022c8c7`](https://github.com/oceanprotocol/ocean.js/commit/022c8c7454a8e39fe552f68cacb6a5ec75776cdf)
33
+ - fixed version for contracts [`fbcd22e`](https://github.com/oceanprotocol/ocean.js/commit/fbcd22e714d6233d7d71f60d7eabb0cecb2fe963)
34
+ - run push builds against v4main [`9142c35`](https://github.com/oceanprotocol/ocean.js/commit/9142c354f0ba3829a31d71c2814e6bdac406d91e)
35
+
36
+ #### [v1.0.0-next.11](https://github.com/oceanprotocol/ocean.js/compare/v1.0.0-next.10...v1.0.0-next.11)
37
+
38
+ > 7 February 2022
39
+
40
+ - Moved interfaces under types and some small fixes [`#1253`](https://github.com/oceanprotocol/ocean.js/pull/1253)
41
+ - stop removing jsdocs [`#1254`](https://github.com/oceanprotocol/ocean.js/pull/1254)
42
+ - Release 1.0.0-next.11 [`8fc3773`](https://github.com/oceanprotocol/ocean.js/commit/8fc377383434a1c8a3ba68586ab8db85bc922d40)
43
+
44
+ #### [v1.0.0-next.10](https://github.com/oceanprotocol/ocean.js/compare/v1.0.0-next.9...v1.0.0-next.10)
45
+
46
+ > 28 January 2022
47
+
48
+ - remove ammount [`#1241`](https://github.com/oceanprotocol/ocean.js/pull/1241)
49
+ - update contracts [`#1244`](https://github.com/oceanprotocol/ocean.js/pull/1244)
50
+ - Release 1.0.0-next.10 [`3dda9a6`](https://github.com/oceanprotocol/ocean.js/commit/3dda9a67097ac0adc388741b506cd23ef3e2cdb1)
51
+
52
+ #### [v1.0.0-next.9](https://github.com/oceanprotocol/ocean.js/compare/v1.0.0-next.8...v1.0.0-next.9)
53
+
54
+ > 26 January 2022
55
+
56
+ - fix order, update contracts [`#1240`](https://github.com/oceanprotocol/ocean.js/pull/1240)
57
+ - Release 1.0.0-next.9 [`ef83df7`](https://github.com/oceanprotocol/ocean.js/commit/ef83df7c7248402940a25a3f5d223131c7ece82e)
58
+
59
+ #### [v1.0.0-next.8](https://github.com/oceanprotocol/ocean.js/compare/v1.0.0-next.7...v1.0.0-next.8)
60
+
61
+ > 25 January 2022
62
+
63
+ - heleper+ remove old ibs [`#1238`](https://github.com/oceanprotocol/ocean.js/pull/1238)
64
+ - Add setMetaDataAndTokenURI method [`#1234`](https://github.com/oceanprotocol/ocean.js/pull/1234)
65
+ - remove optional fetch method, add abort signal [`#1235`](https://github.com/oceanprotocol/ocean.js/pull/1235)
66
+ - Release 1.0.0-next.8 [`1b0fb28`](https://github.com/oceanprotocol/ocean.js/commit/1b0fb28e7676737f2086f5032dd9dfca85431b0b)
67
+
68
+ #### [v1.0.0-next.7](https://github.com/oceanprotocol/ocean.js/compare/v1.0.0-next.6...v1.0.0-next.7)
69
+
70
+ > 20 January 2022
71
+
72
+ - replaced local artifacts with the published ones [`#1232`](https://github.com/oceanprotocol/ocean.js/pull/1232)
73
+ - Allow users/market to set own gas contract options & configurable web3 contract params [`#1214`](https://github.com/oceanprotocol/ocean.js/pull/1214)
74
+ - Add default http function and fixes provider class [`#1212`](https://github.com/oceanprotocol/ocean.js/pull/1212)
75
+ - Feature/ split orders&fees and uniformize datatoken naming [`#1223`](https://github.com/oceanprotocol/ocean.js/pull/1223)
76
+ - added default contract options and gas in config [`4d60a16`](https://github.com/oceanprotocol/ocean.js/commit/4d60a16f6e79a89ed636b99592167c2c8f8c50ed)
77
+ - update artifacts after latest contract changes [`b4e102e`](https://github.com/oceanprotocol/ocean.js/commit/b4e102e6a6fa597fc9540d169428030db52efcad)
78
+ - update artifacts [`c5b5835`](https://github.com/oceanprotocol/ocean.js/commit/c5b583554eea28bab8a0c3af252dc70a707cdb51)
79
+
80
+ #### [v1.0.0-next.6](https://github.com/oceanprotocol/ocean.js/compare/v1.0.0-next.5...v1.0.0-next.6)
81
+
82
+ > 14 January 2022
83
+
84
+ - up [`#1219`](https://github.com/oceanprotocol/ocean.js/pull/1219)
85
+ - Release 1.0.0-next.6 [`1879315`](https://github.com/oceanprotocol/ocean.js/commit/187931531021b89bd9c735f90c7426aea65dd57b)
86
+
87
+ #### [v1.0.0-next.5](https://github.com/oceanprotocol/ocean.js/compare/v1.0.0-next.4...v1.0.0-next.5)
88
+
89
+ > 13 January 2022
90
+
91
+ - update abi/address [`#1218`](https://github.com/oceanprotocol/ocean.js/pull/1218)
92
+ - Release 1.0.0-next.5 [`672e2b1`](https://github.com/oceanprotocol/ocean.js/commit/672e2b1f4abcc16b4a747b66fa609ea4ca9b5994)
93
+
94
+ #### [v1.0.0-next.4](https://github.com/oceanprotocol/ocean.js/compare/v1.0.0-next.3...v1.0.0-next.4)
95
+
96
+ > 13 January 2022
97
+
98
+ - update addresses based on new deployment [`#1216`](https://github.com/oceanprotocol/ocean.js/pull/1216)
99
+ - Release 1.0.0-next.4 [`a85f29a`](https://github.com/oceanprotocol/ocean.js/commit/a85f29a5d2324f4b17ab45882267920f7a66e42b)
100
+
101
+ #### [v1.0.0-next.3](https://github.com/oceanprotocol/ocean.js/compare/v1.0.0-next.2...v1.0.0-next.3)
102
+
103
+ > 12 January 2022
104
+
105
+ - update addresses [`#1213`](https://github.com/oceanprotocol/ocean.js/pull/1213)
106
+ - Release 1.0.0-next.3 [`3c9ee75`](https://github.com/oceanprotocol/ocean.js/commit/3c9ee7599ba3c5a8109925cdb6e76fa9ff389fe2)
107
+
108
+ #### [v1.0.0-next.2](https://github.com/oceanprotocol/ocean.js/compare/v1.0.0-next.1...v1.0.0-next.2)
109
+
110
+ > 11 January 2022
111
+
112
+ - Release 1.0.0-next.2 [`a9c592c`](https://github.com/oceanprotocol/ocean.js/commit/a9c592c3e6f77419f9ddc13ac396063696f7eb69)
113
+ - fix dist typings path [`ae6ee6f`](https://github.com/oceanprotocol/ocean.js/commit/ae6ee6f9c71218e0bf6c7a22283dbe9d725e61f0)
114
+
7
115
  #### [v1.0.0-next.1](https://github.com/oceanprotocol/ocean.js/compare/v1.0.0-next.0...v1.0.0-next.1)
8
116
 
117
+ > 11 January 2022
118
+
9
119
  - move artifacts folder under /src [`bdfa60a`](https://github.com/oceanprotocol/ocean.js/commit/bdfa60a91b7c304ee775c5c88cc5e22b569acc74)
10
120
  - fix artifacts path in all test files [`24425fc`](https://github.com/oceanprotocol/ocean.js/commit/24425fcf8ba8f0b2f950cc5857c71e1b1d57f683)
11
121
  - make mocha pick up individual tsconfig, compile test files [`8776c1b`](https://github.com/oceanprotocol/ocean.js/commit/8776c1bb91d7136cf945179a00cf40847b9c413f)
@@ -169,7 +279,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
169
279
  - Bump prettier from 2.4.0 to 2.4.1 [`#1027`](https://github.com/oceanprotocol/ocean.js/pull/1027)
170
280
  - add catenax network config [`#1025`](https://github.com/oceanprotocol/ocean.js/pull/1025)
171
281
  - Bump @oceanprotocol/contracts from 0.6.5 to 0.6.7 [`#1024`](https://github.com/oceanprotocol/ocean.js/pull/1024)
172
- - Bump aqua queries [`3bea2aa`](https://github.com/oceanprotocol/ocean.js/commit/3bea2aaf9082bf1b61219f3d7960c14cec04fa1e)
282
+ - Bump aqua queries [`3bea2aa`](https://github.com/oceanprotocol/ocean.js/commit/3bea2aaf9082bf1b61219f3d7960c14cec04fa1e)
173
283
  - Release 0.17.4 [`2651b72`](https://github.com/oceanprotocol/ocean.js/commit/2651b72a2f02f952eb94e0b83edaf308cbb9e130)
174
284
  - Release 0.17.5 [`f893cb8`](https://github.com/oceanprotocol/ocean.js/commit/f893cb8b09e325df238be243713e07d64a158269)
175
285