@oceanprotocol/lib 1.0.0-next.36 → 1.0.0-next.37

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.
@@ -261,6 +261,25 @@ export declare class Datatoken {
261
261
  * @return {Promise<TransactionReceipt>} string
262
262
  */
263
263
  startOrder(dtAddress: string, address: string, consumer: string, serviceIndex: number, providerFees: ProviderFees, consumeMarketFee?: ConsumeMarketFee): Promise<TransactionReceipt>;
264
+ /** Estimate gas cost for reuseOrder method
265
+ * @param {String} dtAddress Datatoken address
266
+ * @param {String} address User address which calls
267
+ * @param {String} orderTxId previous valid order
268
+ * @param {providerFees} providerFees provider fees
269
+ * @param {Contract} contractInstance optional contract instance
270
+ * @return {Promise<any>}
271
+ */
272
+ estGasReuseOrder(dtAddress: string, address: string, orderTxId: string, providerFees: ProviderFees, contractInstance?: Contract): Promise<any>;
273
+ /** Reuse Order: called by payer or consumer having a valid order, but with expired provider access.
274
+ * Pays the provider fee again, but it will not require a new datatoken payment
275
+ * Requires previous approval of provider fee.
276
+ * @param {String} dtAddress Datatoken address
277
+ * @param {String} address User address which calls
278
+ * @param {String} orderTxId previous valid order
279
+ * @param {providerFees} providerFees provider fees
280
+ * @return {Promise<TransactionReceipt>} string
281
+ */
282
+ reuseOrder(dtAddress: string, address: string, orderTxId: string, providerFees: ProviderFees): Promise<TransactionReceipt>;
264
283
  /** Estimate gas cost for buyFromFreAndOrder method
265
284
  * @param {String} dtAddress Datatoken address
266
285
  * @param {String} address User address which calls
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oceanprotocol/lib",
3
3
  "source": "./src/index.ts",
4
- "version": "1.0.0-next.36",
4
+ "version": "1.0.0-next.37",
5
5
  "description": "JavaScript client library for Ocean Protocol",
6
6
  "main": "./dist/lib.js",
7
7
  "umd:main": "dist/lib.umd.js",
@@ -73,7 +73,7 @@
73
73
  "@types/chai-spies": "^1.0.3",
74
74
  "@types/crypto-js": "^4.1.1",
75
75
  "@types/mocha": "^9.1.0",
76
- "@types/node": "^17.0.23",
76
+ "@types/node": "^17.0.25",
77
77
  "@types/node-fetch": "^3.0.3",
78
78
  "@typescript-eslint/eslint-plugin": "^4.33.0",
79
79
  "@typescript-eslint/parser": "^4.33.0",