@oceanprotocol/lib 0.19.3 → 1.0.0-next.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.
Files changed (133) hide show
  1. package/CHANGELOG.md +81 -0
  2. package/README.md +1 -1
  3. package/artifacts/ERC721Factory.sol/ERC721Factory.json +1164 -0
  4. package/artifacts/addresses/address.json +21 -0
  5. package/artifacts/communityFee/OPFCommunityFeeCollector.sol/OPFCommunityFeeCollector.json +116 -0
  6. package/artifacts/pools/FactoryRouter.sol/FactoryRouter.json +1086 -0
  7. package/artifacts/pools/balancer/BPool.sol/BPool.json +1744 -0
  8. package/artifacts/pools/dispenser/Dispenser.sol/Dispenser.json +358 -0
  9. package/artifacts/pools/fixedRate/FixedRateExchange.sol/FixedRateExchange.json +917 -0
  10. package/artifacts/pools/ssContracts/SideStaking.sol/SideStaking.json +428 -0
  11. package/artifacts/templates/ERC20Template.sol/ERC20Template.json +1382 -0
  12. package/artifacts/templates/ERC20TemplateEnterprise.sol/ERC20TemplateEnterprise.json +1530 -0
  13. package/artifacts/templates/ERC721Template.sol/ERC721Template.json +1534 -0
  14. package/artifacts/utils/mock/MockERC20.sol/MockERC20.json +302 -0
  15. package/artifacts/utils/mock/MockERC20Decimals.sol/MockERC20Decimals.json +302 -0
  16. package/dist/node/lib.js +1 -1
  17. package/dist/node/lib.js.map +1 -1
  18. package/dist/node/lib.module.js +1 -1
  19. package/dist/node/lib.module.js.map +1 -1
  20. package/dist/node/lib.umd.js +1 -1
  21. package/dist/node/lib.umd.js.map +1 -1
  22. package/dist/node/src/@types/Asset.d.ts +36 -0
  23. package/dist/node/{ocean/interfaces → src/@types}/Compute.d.ts +21 -12
  24. package/dist/node/src/@types/DDO/Credentials.d.ts +8 -0
  25. package/dist/node/src/@types/DDO/DDO.d.ts +15 -0
  26. package/dist/node/src/@types/DDO/Event.d.ts +7 -0
  27. package/dist/node/src/@types/DDO/Metadata.d.ts +38 -0
  28. package/dist/node/src/@types/DDO/Service.d.ts +28 -0
  29. package/dist/node/src/@types/FileMetadata.d.ts +8 -0
  30. package/dist/node/src/@types/Provider.d.ts +15 -0
  31. package/dist/node/src/@types/index.d.ts +8 -0
  32. package/dist/node/src/aquarius/Aquarius.d.ts +10 -0
  33. package/dist/node/src/aquarius/index.d.ts +1 -0
  34. package/dist/node/src/factories/NFTFactory.d.ts +70 -0
  35. package/dist/node/src/factories/index.d.ts +1 -0
  36. package/dist/node/src/index.d.ts +8 -0
  37. package/dist/node/src/interfaces/DispenserInterface.d.ts +7 -0
  38. package/dist/node/src/interfaces/Erc20Interface.d.ts +11 -0
  39. package/dist/node/src/interfaces/FixedRateInterface.d.ts +19 -0
  40. package/dist/node/src/interfaces/PoolInterface.d.ts +36 -0
  41. package/dist/node/src/interfaces/RouterInterface.d.ts +12 -0
  42. package/dist/node/src/interfaces/index.d.ts +5 -0
  43. package/dist/node/{models → src/models}/Config.d.ts +10 -6
  44. package/dist/node/src/models/index.d.ts +1 -0
  45. package/dist/node/src/pools/Router.d.ts +46 -0
  46. package/dist/node/src/pools/balancer/Pool.d.ts +73 -0
  47. package/dist/node/src/pools/balancer/index.d.ts +1 -0
  48. package/dist/node/src/pools/dispenser/Dispenser.d.ts +37 -0
  49. package/dist/node/src/pools/dispenser/index.d.ts +1 -0
  50. package/dist/node/src/pools/fixedRate/FixedRateExchange.d.ts +95 -0
  51. package/dist/node/src/pools/fixedRate/index.d.ts +1 -0
  52. package/dist/node/src/pools/index.d.ts +3 -0
  53. package/dist/node/src/pools/ssContracts/SideStaking.d.ts +28 -0
  54. package/dist/node/src/pools/ssContracts/index.d.ts +1 -0
  55. package/dist/node/src/provider/Provider.d.ts +31 -0
  56. package/dist/node/src/provider/index.d.ts +1 -0
  57. package/dist/node/src/tokens/Datatoken.d.ts +77 -0
  58. package/dist/node/src/tokens/NFT.d.ts +57 -0
  59. package/dist/node/src/tokens/index.d.ts +2 -0
  60. package/dist/node/src/utils/ConfigHelper.d.ts +6 -0
  61. package/dist/node/src/utils/Constants.d.ts +1 -0
  62. package/dist/node/src/utils/ContractParams.d.ts +4 -0
  63. package/dist/node/src/utils/ConversionTypeHelper.d.ts +3 -0
  64. package/dist/node/{utils/Datatokens.d.ts → src/utils/DatatokenName.d.ts} +1 -1
  65. package/dist/node/src/utils/DdoHelpers.d.ts +2 -0
  66. package/dist/node/src/utils/FetchHelper.d.ts +5 -0
  67. package/dist/node/{utils → src/utils}/GasUtils.d.ts +0 -0
  68. package/dist/node/{utils → src/utils}/Logger.d.ts +0 -0
  69. package/dist/node/src/utils/SignatureUtils.d.ts +8 -0
  70. package/dist/node/src/utils/index.d.ts +9 -0
  71. package/package.json +23 -19
  72. package/dist/node/Instantiable.abstract.d.ts +0 -25
  73. package/dist/node/balancer/OceanPool.d.ts +0 -94
  74. package/dist/node/balancer/Pool.d.ts +0 -55
  75. package/dist/node/balancer/PoolFactory.d.ts +0 -13
  76. package/dist/node/datatokens/ContractEvent.d.ts +0 -19
  77. package/dist/node/datatokens/ContractHandler.d.ts +0 -12
  78. package/dist/node/datatokens/Datatokens.d.ts +0 -42
  79. package/dist/node/datatokens/EventHandler.d.ts +0 -19
  80. package/dist/node/datatokens/Network.d.ts +0 -5
  81. package/dist/node/datatokens/Web3Provider.d.ts +0 -5
  82. package/dist/node/datatokens/contracts/ContractBase.d.ts +0 -27
  83. package/dist/node/ddo/DDO.d.ts +0 -36
  84. package/dist/node/ddo/interfaces/AdditionalInformation.d.ts +0 -16
  85. package/dist/node/ddo/interfaces/Authentication.d.ts +0 -4
  86. package/dist/node/ddo/interfaces/BestPrice.d.ts +0 -10
  87. package/dist/node/ddo/interfaces/Consumable.d.ts +0 -5
  88. package/dist/node/ddo/interfaces/Credentials.d.ts +0 -9
  89. package/dist/node/ddo/interfaces/Curation.d.ts +0 -6
  90. package/dist/node/ddo/interfaces/DataTokenInfo.d.ts +0 -10
  91. package/dist/node/ddo/interfaces/EditableMetadata.d.ts +0 -9
  92. package/dist/node/ddo/interfaces/EditableMetadataLinks.d.ts +0 -5
  93. package/dist/node/ddo/interfaces/Event.d.ts +0 -7
  94. package/dist/node/ddo/interfaces/File.d.ts +0 -13
  95. package/dist/node/ddo/interfaces/Metadata.d.ts +0 -15
  96. package/dist/node/ddo/interfaces/MetadataAlgorithm.d.ts +0 -12
  97. package/dist/node/ddo/interfaces/MetadataMain.d.ts +0 -12
  98. package/dist/node/ddo/interfaces/Proof.d.ts +0 -6
  99. package/dist/node/ddo/interfaces/PublicKey.d.ts +0 -8
  100. package/dist/node/ddo/interfaces/PurgatoryData.d.ts +0 -4
  101. package/dist/node/ddo/interfaces/Service.d.ts +0 -99
  102. package/dist/node/ddo/interfaces/ServicePrices.d.ts +0 -4
  103. package/dist/node/ddo/interfaces/Status.d.ts +0 -5
  104. package/dist/node/ddo/interfaces/index.d.ts +0 -17
  105. package/dist/node/dispenser/Dispenser.d.ts +0 -42
  106. package/dist/node/exchange/FixedRateExchange.d.ts +0 -57
  107. package/dist/node/index.d.ts +0 -1
  108. package/dist/node/lib.d.ts +0 -15
  109. package/dist/node/metadatacache/MetadataCache.d.ts +0 -41
  110. package/dist/node/metadatacache/OnChainMetaData.d.ts +0 -29
  111. package/dist/node/ocean/Account.d.ts +0 -16
  112. package/dist/node/ocean/Accounts.d.ts +0 -9
  113. package/dist/node/ocean/Assets.d.ts +0 -56
  114. package/dist/node/ocean/AssetsCredential.d.ts +0 -6
  115. package/dist/node/ocean/Compute.d.ts +0 -75
  116. package/dist/node/ocean/DID.d.ts +0 -8
  117. package/dist/node/ocean/EventAccessControl.d.ts +0 -9
  118. package/dist/node/ocean/Ocean.d.ts +0 -34
  119. package/dist/node/ocean/OceanAuth.d.ts +0 -15
  120. package/dist/node/ocean/Versions.d.ts +0 -25
  121. package/dist/node/ocean/utils/SignatureUtils.d.ts +0 -13
  122. package/dist/node/ocean/utils/Utils.d.ts +0 -8
  123. package/dist/node/ocean/utils/WebServiceConnector.d.ts +0 -15
  124. package/dist/node/provider/Provider.d.ts +0 -49
  125. package/dist/node/utils/AssetResolverHelper.d.ts +0 -8
  126. package/dist/node/utils/ConfigHelper.d.ts +0 -13
  127. package/dist/node/utils/ConversionTypeHelpers.d.ts +0 -8
  128. package/dist/node/utils/GeneratorHelpers.d.ts +0 -1
  129. package/dist/node/utils/PromiseResolver.d.ts +0 -3
  130. package/dist/node/utils/SubscribableObserver.d.ts +0 -12
  131. package/dist/node/utils/SubscribablePromise.d.ts +0 -14
  132. package/dist/node/utils/Timeout.d.ts +0 -1
  133. package/dist/node/utils/index.d.ts +0 -9
package/CHANGELOG.md CHANGED
@@ -4,8 +4,89 @@ 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.0](https://github.com/oceanprotocol/ocean.js/compare/v0.20.2...v1.0.0-next.0)
8
+
9
+ - Fix/pool_approve [`#1207`](https://github.com/oceanprotocol/ocean.js/pull/1207)
10
+ - Add ocean-contracts artifacts in root dir [`#1208`](https://github.com/oceanprotocol/ocean.js/pull/1208)
11
+ - integration tests publish all methods [`#1197`](https://github.com/oceanprotocol/ocean.js/pull/1197)
12
+ - compute start [`#1196`](https://github.com/oceanprotocol/ocean.js/pull/1196)
13
+ - publish & consume flow working [`#1192`](https://github.com/oceanprotocol/ocean.js/pull/1192)
14
+ - publish tests [`#1184`](https://github.com/oceanprotocol/ocean.js/pull/1184)
15
+ - Fix/update address [`#1174`](https://github.com/oceanprotocol/ocean.js/pull/1174)
16
+ - config and encrypt fixes [`#1173`](https://github.com/oceanprotocol/ocean.js/pull/1173)
17
+ - Function checks & provider fee updates [`#1159`](https://github.com/oceanprotocol/ocean.js/pull/1159)
18
+ - add dispenser [`#1170`](https://github.com/oceanprotocol/ocean.js/pull/1170)
19
+ - fix [`#1166`](https://github.com/oceanprotocol/ocean.js/pull/1166)
20
+ - Feature/didutils [`#1163`](https://github.com/oceanprotocol/ocean.js/pull/1163)
21
+ - fix encrypt function [`#1162`](https://github.com/oceanprotocol/ocean.js/pull/1162)
22
+ - Add setTokenURI and others [`#1151`](https://github.com/oceanprotocol/ocean.js/pull/1151)
23
+ - add provider to index [`#1150`](https://github.com/oceanprotocol/ocean.js/pull/1150)
24
+ - update config url [`#1149`](https://github.com/oceanprotocol/ocean.js/pull/1149)
25
+ - add c2d methods in provider class [`#1143`](https://github.com/oceanprotocol/ocean.js/pull/1143)
26
+ - random fixes [`#1148`](https://github.com/oceanprotocol/ocean.js/pull/1148)
27
+ - add code owner [`#1140`](https://github.com/oceanprotocol/ocean.js/pull/1140)
28
+ - Ddo updates & refactoring & structure updates [`#1130`](https://github.com/oceanprotocol/ocean.js/pull/1130)
29
+ - config [`#1139`](https://github.com/oceanprotocol/ocean.js/pull/1139)
30
+ - build fix [`#1138`](https://github.com/oceanprotocol/ocean.js/pull/1138)
31
+ - Helper class for provider interaction [`#1120`](https://github.com/oceanprotocol/ocean.js/pull/1120)
32
+ - Post audit contract updates [`#1129`](https://github.com/oceanprotocol/ocean.js/pull/1129)
33
+ - Integrate dispenser contract and post existing post audit fixes from contracts [`#1101`](https://github.com/oceanprotocol/ocean.js/pull/1101)
34
+ - DDO typings [`#1111`](https://github.com/oceanprotocol/ocean.js/pull/1111)
35
+ - Integration of Side staking and Fixed rate exchange contracts and unit tests [`#1102`](https://github.com/oceanprotocol/ocean.js/pull/1102)
36
+ - Integrate erc721 erc20 template contracts & lot of refactoring [`#1082`](https://github.com/oceanprotocol/ocean.js/pull/1082)
37
+ - Integrate pool contract and add support for multiple token decimals [`#1100`](https://github.com/oceanprotocol/ocean.js/pull/1100)
38
+ - Feature/nft factory [`#1083`](https://github.com/oceanprotocol/ocean.js/pull/1083)
39
+ - Integrated erc721factory contract methods [`#1080`](https://github.com/oceanprotocol/ocean.js/pull/1080)
40
+ - updated tsconfig [`0a9cb3d`](https://github.com/oceanprotocol/ocean.js/commit/0a9cb3d5926f29f22eabaa09d6f1c52f2f219348)
41
+ - add getMetadata function, add more tests in NFT class [`96cfa95`](https://github.com/oceanprotocol/ocean.js/commit/96cfa952e4ab48c79e3870eb56ee905f728fa22c)
42
+ - add used artifacts update imports and removed not used dependancies [`a019491`](https://github.com/oceanprotocol/ocean.js/commit/a019491ed2512c1c774d163c079c82392d9ecbf4)
43
+
44
+ #### [v0.20.2](https://github.com/oceanprotocol/ocean.js/compare/v0.20.1...v0.20.2)
45
+
46
+ > 3 January 2022
47
+
48
+ - allow custom parameters [`#1179`](https://github.com/oceanprotocol/ocean.js/pull/1179)
49
+ - Bump source-map-support from 0.5.20 to 0.5.21 [`#1127`](https://github.com/oceanprotocol/ocean.js/pull/1127)
50
+ - Bump @truffle/hdwallet-provider from 1.7.0 to 2.0.0 [`#1181`](https://github.com/oceanprotocol/ocean.js/pull/1181)
51
+ - Bump @types/node from 17.0.5 to 17.0.7 [`#1187`](https://github.com/oceanprotocol/ocean.js/pull/1187)
52
+ - Bump mock-local-storage from 1.1.18 to 1.1.19 [`#1186`](https://github.com/oceanprotocol/ocean.js/pull/1186)
53
+ - Bump typescript from 4.5.3 to 4.5.4 [`#1185`](https://github.com/oceanprotocol/ocean.js/pull/1185)
54
+ - Bump prettier from 2.4.1 to 2.5.1 [`#1180`](https://github.com/oceanprotocol/ocean.js/pull/1180)
55
+ - Bump @types/crypto-js from 4.0.2 to 4.1.0 [`#1182`](https://github.com/oceanprotocol/ocean.js/pull/1182)
56
+ - Bump typedoc from 0.22.9 to 0.22.10 [`#1126`](https://github.com/oceanprotocol/ocean.js/pull/1126)
57
+ - Bump @types/node from 16.11.7 to 17.0.5 [`#1177`](https://github.com/oceanprotocol/ocean.js/pull/1177)
58
+ - Bump @types/chai from 4.2.22 to 4.3.0 [`#1147`](https://github.com/oceanprotocol/ocean.js/pull/1147)
59
+ - Fix beginner guide [`#1157`](https://github.com/oceanprotocol/ocean.js/pull/1157)
60
+ - Fix quickstart simple [`#1158`](https://github.com/oceanprotocol/ocean.js/pull/1158)
61
+ - reuse datatoken info without getting from contract [`#1141`](https://github.com/oceanprotocol/ocean.js/pull/1141)
62
+ - Bump typescript from 4.4.4 to 4.5.3 [`#1144`](https://github.com/oceanprotocol/ocean.js/pull/1144)
63
+ - Release 0.20.2 [`62490dc`](https://github.com/oceanprotocol/ocean.js/commit/62490dcdbb734b304522f4bccf1c761ed84ab7ff)
64
+
65
+ #### [v0.20.1](https://github.com/oceanprotocol/ocean.js/compare/v0.20.0...v0.20.1)
66
+
67
+ > 10 December 2021
68
+
69
+ - required only validation on user custom parameter [`#1146`](https://github.com/oceanprotocol/ocean.js/pull/1146)
70
+ - add configurable request timeout for HTTP request [`#1145`](https://github.com/oceanprotocol/ocean.js/pull/1145)
71
+ - Release 0.20.1 [`e216090`](https://github.com/oceanprotocol/ocean.js/commit/e216090394721358ce2bf9126c94f0b8069158db)
72
+
73
+ #### [v0.20.0](https://github.com/oceanprotocol/ocean.js/compare/v0.19.3...v0.20.0)
74
+
75
+ > 29 November 2021
76
+
77
+ - Bump @truffle/hdwallet-provider from 1.6.0 to 1.7.0 [`#1123`](https://github.com/oceanprotocol/ocean.js/pull/1123)
78
+ - Bump release-it from 14.11.7 to 14.11.8 [`#1124`](https://github.com/oceanprotocol/ocean.js/pull/1124)
79
+ - Bump mock-local-storage from 1.1.17 to 1.1.18 [`#1122`](https://github.com/oceanprotocol/ocean.js/pull/1122)
80
+ - configurable web3 params [`#1112`](https://github.com/oceanprotocol/ocean.js/pull/1112)
81
+ - add compute getResult [`#983`](https://github.com/oceanprotocol/ocean.js/pull/983)
82
+ - Bump web3 from 1.6.0 to 1.6.1 [`#1115`](https://github.com/oceanprotocol/ocean.js/pull/1115)
83
+ - Bump microbundle from 0.14.1 to 0.14.2 [`#1118`](https://github.com/oceanprotocol/ocean.js/pull/1118)
84
+ - Release 0.20.0 [`f79194f`](https://github.com/oceanprotocol/ocean.js/commit/f79194faf37e447c07963c1114f0481b0b18030b)
85
+
7
86
  #### [v0.19.3](https://github.com/oceanprotocol/ocean.js/compare/v0.19.2...v0.19.3)
8
87
 
88
+ > 26 November 2021
89
+
9
90
  - Feature/issue 1060 change credential type [`#1073`](https://github.com/oceanprotocol/ocean.js/pull/1073)
10
91
  - Bump @truffle/hdwallet-provider from 1.5.1 to 1.6.0 [`#1103`](https://github.com/oceanprotocol/ocean.js/pull/1103)
11
92
  - Bump @types/node from 16.11.4 to 16.11.7 [`#1108`](https://github.com/oceanprotocol/ocean.js/pull/1108)
package/README.md CHANGED
@@ -156,7 +156,7 @@ Running all tests requires running Ocean Protocol components beforehand with [Ba
156
156
  git clone https://github.com/oceanprotocol/barge
157
157
  cd barge
158
158
 
159
- ./start_ocean.sh --with-provider2 --no-dashboard --with-rbac
159
+ ./start_ocean.sh --with-provider2 --no-dashboard
160
160
  ```
161
161
 
162
162
  You can then proceed to run in another terminal.