@oceanprotocol/lib 0.20.1 → 1.0.0-next.2
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 +75 -0
- package/README.md +1 -1
- package/dist/lib.js +2 -0
- package/dist/lib.js.map +1 -0
- package/dist/lib.modern.js +2 -0
- package/dist/lib.modern.js.map +1 -0
- package/dist/lib.module.js +2 -0
- package/dist/lib.module.js.map +1 -0
- package/dist/lib.umd.js +2 -0
- package/dist/lib.umd.js.map +1 -0
- package/dist/src/@types/Asset.d.ts +36 -0
- package/dist/{node/ocean/interfaces → src/@types}/Compute.d.ts +13 -9
- package/dist/src/@types/DDO/Credentials.d.ts +8 -0
- package/dist/src/@types/DDO/DDO.d.ts +15 -0
- package/dist/src/@types/DDO/Event.d.ts +7 -0
- package/dist/src/@types/DDO/Metadata.d.ts +38 -0
- package/dist/src/@types/DDO/Service.d.ts +28 -0
- package/dist/src/@types/FileMetadata.d.ts +8 -0
- package/dist/src/@types/Provider.d.ts +15 -0
- package/dist/src/@types/index.d.ts +8 -0
- package/dist/src/aquarius/Aquarius.d.ts +10 -0
- package/dist/src/aquarius/index.d.ts +1 -0
- package/dist/src/factories/NFTFactory.d.ts +70 -0
- package/dist/src/factories/index.d.ts +1 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/src/interfaces/DispenserInterface.d.ts +7 -0
- package/dist/src/interfaces/Erc20Interface.d.ts +11 -0
- package/dist/src/interfaces/FixedRateInterface.d.ts +19 -0
- package/dist/src/interfaces/PoolInterface.d.ts +36 -0
- package/dist/src/interfaces/RouterInterface.d.ts +12 -0
- package/dist/src/interfaces/index.d.ts +5 -0
- package/dist/{node → src}/models/Config.d.ts +10 -7
- package/dist/src/models/index.d.ts +1 -0
- package/dist/src/pools/Router.d.ts +46 -0
- package/dist/src/pools/balancer/Pool.d.ts +73 -0
- package/dist/src/pools/balancer/index.d.ts +1 -0
- package/dist/src/pools/dispenser/Dispenser.d.ts +37 -0
- package/dist/src/pools/dispenser/index.d.ts +1 -0
- package/dist/src/pools/fixedRate/FixedRateExchange.d.ts +95 -0
- package/dist/src/pools/fixedRate/index.d.ts +1 -0
- package/dist/src/pools/index.d.ts +3 -0
- package/dist/src/pools/ssContracts/SideStaking.d.ts +28 -0
- package/dist/src/pools/ssContracts/index.d.ts +1 -0
- package/dist/src/provider/Provider.d.ts +31 -0
- package/dist/src/provider/index.d.ts +1 -0
- package/dist/src/tokens/Datatoken.d.ts +77 -0
- package/dist/src/tokens/NFT.d.ts +57 -0
- package/dist/src/tokens/index.d.ts +2 -0
- package/dist/src/utils/ConfigHelper.d.ts +6 -0
- package/dist/src/utils/Constants.d.ts +1 -0
- package/dist/src/utils/ContractParams.d.ts +4 -0
- package/dist/src/utils/ConversionTypeHelper.d.ts +3 -0
- package/dist/{node/utils/Datatokens.d.ts → src/utils/DatatokenName.d.ts} +1 -1
- package/dist/src/utils/DdoHelpers.d.ts +2 -0
- package/dist/src/utils/FetchHelper.d.ts +5 -0
- package/dist/src/utils/GasUtils.d.ts +2 -0
- package/dist/{node → src}/utils/Logger.d.ts +0 -0
- package/dist/src/utils/SignatureUtils.d.ts +8 -0
- package/dist/src/utils/index.d.ts +9 -0
- package/dist/test/TestContractHandler.d.ts +44 -0
- package/dist/test/integration/ComputeFlow.test.d.ts +1 -0
- package/dist/test/integration/Provider.test.d.ts +1 -0
- package/dist/test/integration/PublishFlows.test.d.ts +1 -0
- package/dist/test/integration/SimplePublishConsumeFlow.test.d.ts +1 -0
- package/dist/test/integration/config.d.ts +3 -0
- package/dist/test/unit/NftFactory.test.d.ts +1 -0
- package/dist/test/unit/config.d.ts +3 -0
- package/dist/test/unit/pools/Router.test.d.ts +1 -0
- package/dist/test/unit/pools/balancer/Pool.test.d.ts +1 -0
- package/dist/test/unit/pools/dispenser/Dispenser.test.d.ts +1 -0
- package/dist/test/unit/pools/fixedRate/FixedRateExchange.test.d.ts +1 -0
- package/dist/test/unit/pools/ssContracts/SideStaking.test.d.ts +1 -0
- package/dist/test/unit/tokens/Datatoken.test.d.ts +1 -0
- package/dist/test/unit/tokens/Nft.test.d.ts +1 -0
- package/package.json +34 -27
- package/dist/node/Instantiable.abstract.d.ts +0 -25
- package/dist/node/balancer/OceanPool.d.ts +0 -95
- package/dist/node/balancer/Pool.d.ts +0 -56
- package/dist/node/balancer/PoolFactory.d.ts +0 -15
- package/dist/node/datatokens/ContractEvent.d.ts +0 -19
- package/dist/node/datatokens/ContractHandler.d.ts +0 -12
- package/dist/node/datatokens/Datatokens.d.ts +0 -44
- package/dist/node/datatokens/EventHandler.d.ts +0 -19
- package/dist/node/datatokens/Network.d.ts +0 -5
- package/dist/node/datatokens/Web3Provider.d.ts +0 -5
- package/dist/node/datatokens/contracts/ContractBase.d.ts +0 -27
- package/dist/node/ddo/DDO.d.ts +0 -36
- package/dist/node/ddo/interfaces/AdditionalInformation.d.ts +0 -16
- package/dist/node/ddo/interfaces/Authentication.d.ts +0 -4
- package/dist/node/ddo/interfaces/BestPrice.d.ts +0 -10
- package/dist/node/ddo/interfaces/Consumable.d.ts +0 -5
- package/dist/node/ddo/interfaces/Credentials.d.ts +0 -9
- package/dist/node/ddo/interfaces/Curation.d.ts +0 -6
- package/dist/node/ddo/interfaces/DataTokenInfo.d.ts +0 -10
- package/dist/node/ddo/interfaces/EditableMetadata.d.ts +0 -9
- package/dist/node/ddo/interfaces/EditableMetadataLinks.d.ts +0 -5
- package/dist/node/ddo/interfaces/Event.d.ts +0 -7
- package/dist/node/ddo/interfaces/File.d.ts +0 -13
- package/dist/node/ddo/interfaces/Metadata.d.ts +0 -15
- package/dist/node/ddo/interfaces/MetadataAlgorithm.d.ts +0 -12
- package/dist/node/ddo/interfaces/MetadataMain.d.ts +0 -12
- package/dist/node/ddo/interfaces/Proof.d.ts +0 -6
- package/dist/node/ddo/interfaces/PublicKey.d.ts +0 -8
- package/dist/node/ddo/interfaces/PurgatoryData.d.ts +0 -4
- package/dist/node/ddo/interfaces/Service.d.ts +0 -99
- package/dist/node/ddo/interfaces/ServicePrices.d.ts +0 -4
- package/dist/node/ddo/interfaces/Status.d.ts +0 -5
- package/dist/node/ddo/interfaces/index.d.ts +0 -17
- package/dist/node/dispenser/Dispenser.d.ts +0 -44
- package/dist/node/exchange/FixedRateExchange.d.ts +0 -59
- package/dist/node/index.d.ts +0 -1
- package/dist/node/lib.d.ts +0 -15
- package/dist/node/lib.js +0 -2
- package/dist/node/lib.js.map +0 -1
- package/dist/node/lib.module.js +0 -2
- package/dist/node/lib.module.js.map +0 -1
- package/dist/node/lib.umd.js +0 -2
- package/dist/node/lib.umd.js.map +0 -1
- package/dist/node/metadatacache/MetadataCache.d.ts +0 -41
- package/dist/node/metadatacache/OnChainMetaData.d.ts +0 -31
- package/dist/node/ocean/Account.d.ts +0 -16
- package/dist/node/ocean/Accounts.d.ts +0 -9
- package/dist/node/ocean/Assets.d.ts +0 -56
- package/dist/node/ocean/AssetsCredential.d.ts +0 -6
- package/dist/node/ocean/Compute.d.ts +0 -75
- package/dist/node/ocean/DID.d.ts +0 -8
- package/dist/node/ocean/EventAccessControl.d.ts +0 -9
- package/dist/node/ocean/Ocean.d.ts +0 -34
- package/dist/node/ocean/OceanAuth.d.ts +0 -15
- package/dist/node/ocean/Versions.d.ts +0 -25
- package/dist/node/ocean/utils/SignatureUtils.d.ts +0 -13
- package/dist/node/ocean/utils/Utils.d.ts +0 -8
- package/dist/node/ocean/utils/WebServiceConnector.d.ts +0 -16
- package/dist/node/provider/Provider.d.ts +0 -56
- package/dist/node/utils/AssetResolverHelper.d.ts +0 -8
- package/dist/node/utils/ConfigHelper.d.ts +0 -17
- package/dist/node/utils/ContractUtils.d.ts +0 -5
- package/dist/node/utils/ConversionTypeHelpers.d.ts +0 -8
- package/dist/node/utils/GeneratorHelpers.d.ts +0 -1
- package/dist/node/utils/PromiseResolver.d.ts +0 -3
- package/dist/node/utils/SubscribableObserver.d.ts +0 -12
- package/dist/node/utils/SubscribablePromise.d.ts +0 -14
- package/dist/node/utils/Timeout.d.ts +0 -1
- package/dist/node/utils/index.d.ts +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -4,10 +4,85 @@ 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.2](https://github.com/oceanprotocol/ocean.js/compare/v1.0.0-next.1...v1.0.0-next.2)
|
|
8
|
+
|
|
9
|
+
- fix dist typings path [`ae6ee6f`](https://github.com/oceanprotocol/ocean.js/commit/ae6ee6f9c71218e0bf6c7a22283dbe9d725e61f0)
|
|
10
|
+
|
|
11
|
+
#### [v1.0.0-next.1](https://github.com/oceanprotocol/ocean.js/compare/v1.0.0-next.0...v1.0.0-next.1)
|
|
12
|
+
|
|
13
|
+
> 11 January 2022
|
|
14
|
+
|
|
15
|
+
- move artifacts folder under /src [`bdfa60a`](https://github.com/oceanprotocol/ocean.js/commit/bdfa60a91b7c304ee775c5c88cc5e22b569acc74)
|
|
16
|
+
- fix artifacts path in all test files [`24425fc`](https://github.com/oceanprotocol/ocean.js/commit/24425fcf8ba8f0b2f950cc5857c71e1b1d57f683)
|
|
17
|
+
- make mocha pick up individual tsconfig, compile test files [`8776c1b`](https://github.com/oceanprotocol/ocean.js/commit/8776c1bb91d7136cf945179a00cf40847b9c413f)
|
|
18
|
+
|
|
19
|
+
#### [v1.0.0-next.0](https://github.com/oceanprotocol/ocean.js/compare/v0.20.2...v1.0.0-next.0)
|
|
20
|
+
|
|
21
|
+
> 11 January 2022
|
|
22
|
+
|
|
23
|
+
- Fix/pool_approve [`#1207`](https://github.com/oceanprotocol/ocean.js/pull/1207)
|
|
24
|
+
- Add ocean-contracts artifacts in root dir [`#1208`](https://github.com/oceanprotocol/ocean.js/pull/1208)
|
|
25
|
+
- integration tests publish all methods [`#1197`](https://github.com/oceanprotocol/ocean.js/pull/1197)
|
|
26
|
+
- compute start [`#1196`](https://github.com/oceanprotocol/ocean.js/pull/1196)
|
|
27
|
+
- publish & consume flow working [`#1192`](https://github.com/oceanprotocol/ocean.js/pull/1192)
|
|
28
|
+
- publish tests [`#1184`](https://github.com/oceanprotocol/ocean.js/pull/1184)
|
|
29
|
+
- Fix/update address [`#1174`](https://github.com/oceanprotocol/ocean.js/pull/1174)
|
|
30
|
+
- config and encrypt fixes [`#1173`](https://github.com/oceanprotocol/ocean.js/pull/1173)
|
|
31
|
+
- Function checks & provider fee updates [`#1159`](https://github.com/oceanprotocol/ocean.js/pull/1159)
|
|
32
|
+
- add dispenser [`#1170`](https://github.com/oceanprotocol/ocean.js/pull/1170)
|
|
33
|
+
- fix [`#1166`](https://github.com/oceanprotocol/ocean.js/pull/1166)
|
|
34
|
+
- Feature/didutils [`#1163`](https://github.com/oceanprotocol/ocean.js/pull/1163)
|
|
35
|
+
- fix encrypt function [`#1162`](https://github.com/oceanprotocol/ocean.js/pull/1162)
|
|
36
|
+
- Add setTokenURI and others [`#1151`](https://github.com/oceanprotocol/ocean.js/pull/1151)
|
|
37
|
+
- add provider to index [`#1150`](https://github.com/oceanprotocol/ocean.js/pull/1150)
|
|
38
|
+
- update config url [`#1149`](https://github.com/oceanprotocol/ocean.js/pull/1149)
|
|
39
|
+
- add c2d methods in provider class [`#1143`](https://github.com/oceanprotocol/ocean.js/pull/1143)
|
|
40
|
+
- random fixes [`#1148`](https://github.com/oceanprotocol/ocean.js/pull/1148)
|
|
41
|
+
- add code owner [`#1140`](https://github.com/oceanprotocol/ocean.js/pull/1140)
|
|
42
|
+
- Ddo updates & refactoring & structure updates [`#1130`](https://github.com/oceanprotocol/ocean.js/pull/1130)
|
|
43
|
+
- config [`#1139`](https://github.com/oceanprotocol/ocean.js/pull/1139)
|
|
44
|
+
- build fix [`#1138`](https://github.com/oceanprotocol/ocean.js/pull/1138)
|
|
45
|
+
- Helper class for provider interaction [`#1120`](https://github.com/oceanprotocol/ocean.js/pull/1120)
|
|
46
|
+
- Post audit contract updates [`#1129`](https://github.com/oceanprotocol/ocean.js/pull/1129)
|
|
47
|
+
- Integrate dispenser contract and post existing post audit fixes from contracts [`#1101`](https://github.com/oceanprotocol/ocean.js/pull/1101)
|
|
48
|
+
- DDO typings [`#1111`](https://github.com/oceanprotocol/ocean.js/pull/1111)
|
|
49
|
+
- Integration of Side staking and Fixed rate exchange contracts and unit tests [`#1102`](https://github.com/oceanprotocol/ocean.js/pull/1102)
|
|
50
|
+
- Integrate erc721 erc20 template contracts & lot of refactoring [`#1082`](https://github.com/oceanprotocol/ocean.js/pull/1082)
|
|
51
|
+
- Integrate pool contract and add support for multiple token decimals [`#1100`](https://github.com/oceanprotocol/ocean.js/pull/1100)
|
|
52
|
+
- Feature/nft factory [`#1083`](https://github.com/oceanprotocol/ocean.js/pull/1083)
|
|
53
|
+
- Integrated erc721factory contract methods [`#1080`](https://github.com/oceanprotocol/ocean.js/pull/1080)
|
|
54
|
+
- updated tsconfig [`0a9cb3d`](https://github.com/oceanprotocol/ocean.js/commit/0a9cb3d5926f29f22eabaa09d6f1c52f2f219348)
|
|
55
|
+
- add getMetadata function, add more tests in NFT class [`96cfa95`](https://github.com/oceanprotocol/ocean.js/commit/96cfa952e4ab48c79e3870eb56ee905f728fa22c)
|
|
56
|
+
- add used artifacts update imports and removed not used dependancies [`a019491`](https://github.com/oceanprotocol/ocean.js/commit/a019491ed2512c1c774d163c079c82392d9ecbf4)
|
|
57
|
+
|
|
58
|
+
#### [v0.20.2](https://github.com/oceanprotocol/ocean.js/compare/v0.20.1...v0.20.2)
|
|
59
|
+
|
|
60
|
+
> 3 January 2022
|
|
61
|
+
|
|
62
|
+
- allow custom parameters [`#1179`](https://github.com/oceanprotocol/ocean.js/pull/1179)
|
|
63
|
+
- Bump source-map-support from 0.5.20 to 0.5.21 [`#1127`](https://github.com/oceanprotocol/ocean.js/pull/1127)
|
|
64
|
+
- Bump @truffle/hdwallet-provider from 1.7.0 to 2.0.0 [`#1181`](https://github.com/oceanprotocol/ocean.js/pull/1181)
|
|
65
|
+
- Bump @types/node from 17.0.5 to 17.0.7 [`#1187`](https://github.com/oceanprotocol/ocean.js/pull/1187)
|
|
66
|
+
- Bump mock-local-storage from 1.1.18 to 1.1.19 [`#1186`](https://github.com/oceanprotocol/ocean.js/pull/1186)
|
|
67
|
+
- Bump typescript from 4.5.3 to 4.5.4 [`#1185`](https://github.com/oceanprotocol/ocean.js/pull/1185)
|
|
68
|
+
- Bump prettier from 2.4.1 to 2.5.1 [`#1180`](https://github.com/oceanprotocol/ocean.js/pull/1180)
|
|
69
|
+
- Bump @types/crypto-js from 4.0.2 to 4.1.0 [`#1182`](https://github.com/oceanprotocol/ocean.js/pull/1182)
|
|
70
|
+
- Bump typedoc from 0.22.9 to 0.22.10 [`#1126`](https://github.com/oceanprotocol/ocean.js/pull/1126)
|
|
71
|
+
- Bump @types/node from 16.11.7 to 17.0.5 [`#1177`](https://github.com/oceanprotocol/ocean.js/pull/1177)
|
|
72
|
+
- Bump @types/chai from 4.2.22 to 4.3.0 [`#1147`](https://github.com/oceanprotocol/ocean.js/pull/1147)
|
|
73
|
+
- Fix beginner guide [`#1157`](https://github.com/oceanprotocol/ocean.js/pull/1157)
|
|
74
|
+
- Fix quickstart simple [`#1158`](https://github.com/oceanprotocol/ocean.js/pull/1158)
|
|
75
|
+
- reuse datatoken info without getting from contract [`#1141`](https://github.com/oceanprotocol/ocean.js/pull/1141)
|
|
76
|
+
- Bump typescript from 4.4.4 to 4.5.3 [`#1144`](https://github.com/oceanprotocol/ocean.js/pull/1144)
|
|
77
|
+
- Release 0.20.2 [`62490dc`](https://github.com/oceanprotocol/ocean.js/commit/62490dcdbb734b304522f4bccf1c761ed84ab7ff)
|
|
78
|
+
|
|
7
79
|
#### [v0.20.1](https://github.com/oceanprotocol/ocean.js/compare/v0.20.0...v0.20.1)
|
|
8
80
|
|
|
81
|
+
> 10 December 2021
|
|
82
|
+
|
|
9
83
|
- required only validation on user custom parameter [`#1146`](https://github.com/oceanprotocol/ocean.js/pull/1146)
|
|
10
84
|
- add configurable request timeout for HTTP request [`#1145`](https://github.com/oceanprotocol/ocean.js/pull/1145)
|
|
85
|
+
- Release 0.20.1 [`e216090`](https://github.com/oceanprotocol/ocean.js/commit/e216090394721358ce2bf9126c94f0b8069158db)
|
|
11
86
|
|
|
12
87
|
#### [v0.20.0](https://github.com/oceanprotocol/ocean.js/compare/v0.19.3...v0.20.0)
|
|
13
88
|
|
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
|
|
159
|
+
./start_ocean.sh --with-provider2 --no-dashboard
|
|
160
160
|
```
|
|
161
161
|
|
|
162
162
|
You can then proceed to run in another terminal.
|