@oceanprotocol/lib 3.1.0 → 3.1.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.
@@ -1,12 +1,15 @@
1
1
  import { Signer } from 'ethers';
2
- import { Datatoken, Config, Asset, ConsumeMarketFee } from '../index';
2
+ import { Datatoken, Config, Asset, ConsumeMarketFee, ProviderFees } from '../index';
3
3
  /**
4
4
  * Orders an asset based on the specified pricing schema and configuration.
5
5
  * @param {Asset} asset - The asset to be ordered.
6
6
  * @param {Signer} consumerAccount - The signer account of the consumer.
7
7
  * @param {Config} config - The configuration settings.
8
8
  * @param {Datatoken} datatoken - The Datatoken instance.
9
+ * @param {string} [providerUrl] - Optional the consumer address
10
+ * @param {string} [consumerAccount] - Optional the consumer address
9
11
  * @param {ConsumeMarketFee} [consumeMarketOrderFee] - Optional consume market fee.
12
+ * @param {ProviderFees} [providerFees] - Optional provider fees
10
13
  * @param {string} [consumeMarketFixedSwapFee='0'] - Fixed swap fee for consuming the market.
11
14
  * @param {number} [datatokenIndex=0] - Index of the datatoken within the asset.
12
15
  * @param {number} [serviceIndex=0] - Index of the service within the asset.
@@ -14,4 +17,4 @@ import { Datatoken, Config, Asset, ConsumeMarketFee } from '../index';
14
17
  * @returns {Promise<void>} - A promise that resolves when the asset order process is completed.
15
18
  * @throws {Error} If the pricing schema is not supported or if required indexes are invalid.
16
19
  */
17
- export declare function orderAsset(asset: Asset, consumerAccount: Signer, config: Config, datatoken: Datatoken, consumeMarketOrderFee?: ConsumeMarketFee, consumeMarketFixedSwapFee?: string, datatokenIndex?: number, serviceIndex?: number, fixedRateIndex?: number): Promise<import("@ethersproject/abstract-provider").TransactionResponse>;
20
+ export declare function orderAsset(asset: Asset, consumerAccount: Signer, config: Config, datatoken: Datatoken, providerUrl?: string, consumerAddress?: string, consumeMarketOrderFee?: ConsumeMarketFee, providerFees?: ProviderFees, consumeMarketFixedSwapFee?: string, datatokenIndex?: number, serviceIndex?: number, fixedRateIndex?: number): Promise<import("@ethersproject/abstract-provider").TransactionResponse>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oceanprotocol/lib",
3
3
  "source": "./src/index.ts",
4
- "version": "3.1.0",
4
+ "version": "3.1.2",
5
5
  "description": "JavaScript client library for Ocean Protocol",
6
6
  "main": "./dist/lib.js",
7
7
  "umd:main": "dist/lib.umd.js",
@@ -54,7 +54,7 @@
54
54
  },
55
55
  "dependencies": {
56
56
  "@oceanprotocol/contracts": "^1.1.14",
57
- "cross-fetch": "^3.1.5",
57
+ "cross-fetch": "^4.0.0",
58
58
  "crypto-js": "^4.1.1",
59
59
  "decimal.js": "^10.4.1",
60
60
  "ethers": "^5.7.2"
@@ -75,7 +75,7 @@
75
75
  "cross-env": "^7.0.3",
76
76
  "eslint": "^8.23.1",
77
77
  "eslint-config-oceanprotocol": "^2.0.3",
78
- "eslint-config-prettier": "^8.5.0",
78
+ "eslint-config-prettier": "^9.0.0",
79
79
  "eslint-plugin-prettier": "^4.2.1",
80
80
  "fs": "0.0.1-security",
81
81
  "microbundle": "0.14.2",
@@ -88,7 +88,7 @@
88
88
  "source-map-support": "^0.5.19",
89
89
  "ts-node": "^10.9.1",
90
90
  "ts-node-register": "^1.0.0",
91
- "typedoc": "^0.24.8",
91
+ "typedoc": "^0.25.1",
92
92
  "typedoc-plugin-markdown": "^3.15.2",
93
93
  "typescript": "^5.1.6"
94
94
  },