@oceanprotocol/lib 9.3.0-next.3 → 9.3.0-next.4

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.
@@ -1,11 +1,12 @@
1
1
  /**
2
2
  * Per-token configuration of a `OneTimeSubsidyProvider`, as returned by `getTokenConfig`.
3
- * `defaultCredit` is expressed in human-readable token units; `pctBps` is the OPTIONAL
4
- * per-job percentage ceiling in basis points (here `0` means "no per-job cap" — the whole
5
- * remaining credit may go to a single job — the inverse of `OPFSubsidyProvider`).
3
+ * `defaultCredit` is expressed in human-readable token units; `pctBps` is the REQUIRED
4
+ * per-job percentage ceiling in basis points (here `0` means "grant nothing" and `10000`
5
+ * (= `BPS`) means up to 100% of the job may be sponsored — same meaning as
6
+ * `OPFSubsidyProvider`). A token must have a non-zero `pctBps` to sponsor anything.
6
7
  */
7
8
  export interface OneTimeTokenConfig {
8
- /** Optional per-job ceiling in basis points (1% = 100 bps); `'0'` = no per-job cap. */
9
+ /** Per-job ceiling in basis points (1% = 100 bps); `'0'` = grant nothing, `'10000'` = 100% of job. */
9
10
  pctBps: string;
10
11
  /** Global one-time credit granted per user for this token, in human-readable token units. */
11
12
  defaultCredit: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oceanprotocol/lib",
3
3
  "source": "./src/index.ts",
4
- "version": "9.3.0-next.3",
4
+ "version": "9.3.0-next.4",
5
5
  "description": "JavaScript client library for Ocean Protocol",
6
6
  "module": "./dist/lib.module.mjs",
7
7
  "type": "module",
@@ -83,7 +83,7 @@
83
83
  "@libp2p/websockets": "^10.1.21",
84
84
  "@multiformats/multiaddr": "^13.0.3",
85
85
  "@oasisprotocol/sapphire-ethers-v6": "^6.0.1",
86
- "@oceanprotocol/ddo-js": "^0.4.1",
86
+ "@oceanprotocol/ddo-js": "^1.0.0",
87
87
  "bignumber.js": "^11.1.5",
88
88
  "cross-fetch": "^4.1.0",
89
89
  "crypto-js": "^4.2.0",
@@ -98,7 +98,7 @@
98
98
  "devDependencies": {
99
99
  "@eslint/js": "^10.0.1",
100
100
  "@istanbuljs/nyc-config-typescript": "^1.0.2",
101
- "@oceanprotocol/contracts": "^3.2.0-rc.0",
101
+ "@oceanprotocol/contracts": "^3.2.0-rc.1",
102
102
  "@types/chai": "^5.2.3",
103
103
  "@types/crypto-js": "^4.2.2",
104
104
  "@types/jsonwebtoken": "^9.0.10",