@oceanprotocol/lib 5.0.6 → 5.1.1

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 (37) hide show
  1. package/CHANGELOG.md +36 -4
  2. package/CodeExamples.md +8 -4
  3. package/ComputeExamples.md +4 -2
  4. package/dist/lib.cjs +1 -1
  5. package/dist/lib.cjs.map +1 -1
  6. package/dist/lib.modern.js +1 -1
  7. package/dist/lib.modern.js.map +1 -1
  8. package/dist/lib.module.mjs +1 -1
  9. package/dist/lib.module.mjs.map +1 -1
  10. package/dist/lib.umd.js +1 -1
  11. package/dist/lib.umd.js.map +1 -1
  12. package/dist/types/@types/Compute.d.ts +24 -8
  13. package/dist/types/config/Config.d.ts +0 -8
  14. package/dist/types/contracts/Dispenser.d.ts +1 -1
  15. package/dist/types/contracts/EnterpriseFeeCollector.d.ts +2 -1
  16. package/dist/types/contracts/Escrow.d.ts +12 -9
  17. package/dist/types/contracts/FixedRateExchange.d.ts +0 -1
  18. package/dist/types/contracts/NFT.d.ts +1 -1
  19. package/dist/types/contracts/index.d.ts +0 -6
  20. package/dist/types/services/Aquarius.d.ts +3 -2
  21. package/dist/types/services/Provider.d.ts +5 -3
  22. package/dist/types/utils/Assets.d.ts +2 -1
  23. package/dist/types/utils/TokenUtils.d.ts +2 -1
  24. package/docs/modules.md +0 -6
  25. package/package.json +2 -2
  26. package/dist/types/contracts/df/DfRewards.d.ts +0 -31
  27. package/dist/types/contracts/df/DfStrategyV1.d.ts +0 -21
  28. package/dist/types/contracts/ve/VeAllocate.d.ts +0 -38
  29. package/dist/types/contracts/ve/VeFeeDistributor.d.ts +0 -29
  30. package/dist/types/contracts/ve/VeFeeEstimate.d.ts +0 -14
  31. package/dist/types/contracts/ve/VeOcean.d.ts +0 -68
  32. package/docs/classes/DfRewards.md +0 -345
  33. package/docs/classes/DfStrategyV1.md +0 -313
  34. package/docs/classes/VeAllocate.md +0 -372
  35. package/docs/classes/VeFeeDistributor.md +0 -325
  36. package/docs/classes/VeFeeEstimate.md +0 -281
  37. package/docs/classes/VeOcean.md +0 -513
package/CHANGELOG.md CHANGED
@@ -4,8 +4,32 @@ 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
+ #### [5.1.1](https://github.com/oceanprotocol/ocean.js/compare/5.2.0...5.1.1)
8
+
9
+ #### [5.2.0](https://github.com/oceanprotocol/ocean.js/compare/v5.1.0...5.2.0)
10
+
11
+ > 3 February 2026
12
+
13
+ - fix types [`#2036`](https://github.com/oceanprotocol/ocean.js/pull/2036)
14
+ - fix compute types [`4970cfc`](https://github.com/oceanprotocol/ocean.js/commit/4970cfc848aeb7676af27e2d450eb866bb505dd7)
15
+
16
+ #### [v5.1.0](https://github.com/oceanprotocol/ocean.js/compare/v5.0.6...v5.1.0)
17
+
18
+ > 3 February 2026
19
+
20
+ - add signature for encrypt [`#2037`](https://github.com/oceanprotocol/ocean.js/pull/2037)
21
+ - adapt createAsset to accept baseToken and baseTokenDecimals, remove h… [`#2030`](https://github.com/oceanprotocol/ocean.js/pull/2030)
22
+ - feat: cleanup unused logic [`#2031`](https://github.com/oceanprotocol/ocean.js/pull/2031)
23
+ - Bump lodash and release-it [`#2032`](https://github.com/oceanprotocol/ocean.js/pull/2032)
24
+ - add copilot instructions [`#2029`](https://github.com/oceanprotocol/ocean.js/pull/2029)
25
+ - remove legacy files [`6eac0c1`](https://github.com/oceanprotocol/ocean.js/commit/6eac0c1e0fc50c6eb35a1417f86d9be2790b174f)
26
+ - Release 5.1.0 [`e79194d`](https://github.com/oceanprotocol/ocean.js/commit/e79194d7210b022880e9eb6cd79fa60714aa765d)
27
+ - fixed conflicts [`adcd480`](https://github.com/oceanprotocol/ocean.js/commit/adcd4809dcf014fc221ba3f383ab2fda901e53a8)
28
+
7
29
  #### [v5.0.6](https://github.com/oceanprotocol/ocean.js/compare/v5.0.5...v5.0.6)
8
30
 
31
+ > 21 January 2026
32
+
9
33
  - chore: add support for others token decimals that are not 18 [`#2024`](https://github.com/oceanprotocol/ocean.js/pull/2024)
10
34
  - Revert "chore: test deposit withdraw token 6 decimals" [`#2026`](https://github.com/oceanprotocol/ocean.js/pull/2026)
11
35
  - chore: test deposit withdraw token 6 decimals [`#2025`](https://github.com/oceanprotocol/ocean.js/pull/2025)
@@ -18,9 +42,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
18
42
  - Bump min-document from 2.19.0 to 2.19.2 [`#2012`](https://github.com/oceanprotocol/ocean.js/pull/2012)
19
43
  - Bump js-yaml from 3.14.1 to 3.14.2 [`#2015`](https://github.com/oceanprotocol/ocean.js/pull/2015)
20
44
  - Bump jws from 3.2.2 to 3.2.3 [`#2019`](https://github.com/oceanprotocol/ocean.js/pull/2019)
45
+ - Release 5.0.6 [`bf893d0`](https://github.com/oceanprotocol/ocean.js/commit/bf893d09823607ac7d3a9cfff9e50a0e4796c5fe)
21
46
  - more checks [`43029b1`](https://github.com/oceanprotocol/ocean.js/commit/43029b10ec2e83c68bada4b8529226b64f94b0fb)
22
47
  - chore: call amountToUnits from smart contract to detect decimals [`306edf7`](https://github.com/oceanprotocol/ocean.js/commit/306edf777d3345bebd3073634d0e0eeb11ab6d36)
23
- - remove check [`d42a8ad`](https://github.com/oceanprotocol/ocean.js/commit/d42a8ad3f10d7bfea74513ca0598274d4491f4b2)
24
48
 
25
49
  #### [v5.0.5](https://github.com/oceanprotocol/ocean.js/compare/v5.0.4...v5.0.5)
26
50
 
@@ -131,15 +155,23 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
131
155
  - export util addrs functions [`#2017`](https://github.com/oceanprotocol/ocean.js/pull/2017)
132
156
  - Release 4.3.6 [`b28db44`](https://github.com/oceanprotocol/ocean.js/commit/b28db446144939e9ed864cc11559f718104d094b)
133
157
 
134
- #### [v4.3.5](https://github.com/oceanprotocol/ocean.js/compare/v4.3.2...v4.3.5)
158
+ #### [v4.3.5](https://github.com/oceanprotocol/ocean.js/compare/v4.3.4...v4.3.5)
135
159
 
136
160
  > 17 November 2025
137
161
 
138
162
  - V4/feature/enterprise fee collector [`#2011`](https://github.com/oceanprotocol/ocean.js/pull/2011)
139
- - add policy server endpoints [`#1974`](https://github.com/oceanprotocol/ocean.js/pull/1974)
140
163
  - Release 4.3.5 [`2953f4a`](https://github.com/oceanprotocol/ocean.js/commit/2953f4ac49d56ac8b066ad8fa7a71b6bbc0df005)
141
- - Release 4.3.3 [`6d6d4cf`](https://github.com/oceanprotocol/ocean.js/commit/6d6d4cfe57f2a3dee73b4957ff2f144c0e7ff9d7)
142
164
  - remove typo [`f199f4a`](https://github.com/oceanprotocol/ocean.js/commit/f199f4af809eb85249fe0c59303fcc3207d8e7a7)
165
+ - export EnterpriseFeeCollector [`68712a2`](https://github.com/oceanprotocol/ocean.js/commit/68712a2af17824bb8fc78824842376e35f582487)
166
+
167
+ #### [v4.3.4](https://github.com/oceanprotocol/ocean.js/compare/v4.3.2...v4.3.4)
168
+
169
+ > 15 November 2025
170
+
171
+ - add policy server endpoints [`#1974`](https://github.com/oceanprotocol/ocean.js/pull/1974)
172
+ - add EnterpriseFee [`b502882`](https://github.com/oceanprotocol/ocean.js/commit/b502882d05375eda326166608730a11e779c6f42)
173
+ - Release 4.3.4 [`e45a7de`](https://github.com/oceanprotocol/ocean.js/commit/e45a7defa239f6800eb68a13e1a9a3d9662f509d)
174
+ - Release 4.3.3 [`6d6d4cf`](https://github.com/oceanprotocol/ocean.js/commit/6d6d4cfe57f2a3dee73b4957ff2f144c0e7ff9d7)
143
175
 
144
176
  #### [v4.3.2](https://github.com/oceanprotocol/ocean.js/compare/v4.3.1...v4.3.2)
145
177
 
package/CodeExamples.md CHANGED
@@ -380,7 +380,8 @@ Next, let's encrypt the file(s) using provider
380
380
  fixedDDO.services[0].files = await ProviderInstance.encrypt(
381
381
  ASSET_URL,
382
382
  fixedDDO.chainId,
383
- providerUrl
383
+ providerUrl,
384
+ publisherAccount
384
385
  )
385
386
  fixedDDO.services[0].datatokenAddress = freDatatokenAddress
386
387
 
@@ -392,7 +393,8 @@ Now let's console log the DID to check everything is working
392
393
  const providerResponse = await ProviderInstance.encrypt(
393
394
  fixedDDO,
394
395
  fixedDDO.chainId,
395
- providerUrl
396
+ providerUrl,
397
+ publisherAccount
396
398
  )
397
399
  const encryptedDDO = await providerResponse
398
400
 
@@ -679,7 +681,8 @@ Now we need to encrypt file(s) using provider
679
681
  fixedDDO.services[0].files = await ProviderInstance.encrypt(
680
682
  ASSET_URL,
681
683
  fixedDDO.chainId,
682
- providerUrl
684
+ providerUrl,
685
+ publisherAccount
683
686
  )
684
687
  fixedDDO.services[0].datatokenAddress = dispenserDatatokenAddress
685
688
 
@@ -688,7 +691,8 @@ Now we need to encrypt file(s) using provider
688
691
  const encryptedDDO = await ProviderInstance.encrypt(
689
692
  fixedDDO,
690
693
  fixedDDO.chainId,
691
- providerUrl
694
+ providerUrl,
695
+ publisherAccount
692
696
  )
693
697
  const isAssetValid: ValidateMetadata = await aquarius.validate(
694
698
  fixedDDO,
@@ -350,7 +350,8 @@ async function createAssetHelper(
350
350
  ddo.services[0].files = await ProviderInstance.encrypt(
351
351
  assetUrl,
352
352
  Number(chainId),
353
- providerUrl
353
+ providerUrl,
354
+ owner
354
355
  )
355
356
  ddo.services[0].datatokenAddress = datatokenAddressAsset
356
357
  ddo.services[0].serviceEndpoint = providerUrl
@@ -361,7 +362,8 @@ async function createAssetHelper(
361
362
  const encryptedResponse = await ProviderInstance.encrypt(
362
363
  ddo,
363
364
  Number(chainId),
364
- providerUrl
365
+ providerUrl,
366
+ owner
365
367
  )
366
368
  const validateResult = await aquariusInstance.validate(ddo, owner, providerUrl)
367
369
  await nft.setMetadata(