@oceanprotocol/lib 4.3.3 → 4.3.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.
@@ -67,6 +67,11 @@ export declare class Config {
67
67
  * @type {string}
68
68
  */
69
69
  opfCommunityFeeCollector?: string;
70
+ /**
71
+ * OPFCommunityFeeCollector
72
+ * @type {string}
73
+ */
74
+ EnterpriseFeeCollector?: string;
70
75
  /**
71
76
  * SideStaking address
72
77
  * @type {string}
@@ -0,0 +1,34 @@
1
+ import { Signer } from 'ethers';
2
+ import { AbiItem } from '../@types';
3
+ import { Config } from '../config';
4
+ import { SmartContractWithAddress } from './SmartContractWithAddress';
5
+ export declare class EnterpriseFeeCollectorContract extends SmartContractWithAddress {
6
+ abi: AbiItem[];
7
+ getDefaultAbi(): AbiItem[];
8
+ /**
9
+ * Instantiate EnterpriseFeeCollectorContract class
10
+ * @param {string} address The contract address.
11
+ * @param {Signer} signer The signer object.
12
+ * @param {string | number} [network] Network id or name
13
+ * @param {Config} [config] The configuration object.
14
+ * @param {AbiItem[]} [abi] ABI array of the smart contract
15
+ */
16
+ constructor(address: string, signer: Signer, network?: string | number, config?: Config, abi?: AbiItem[]);
17
+ /**
18
+ * Check if token is allowed
19
+ * @return {Promise<any>} Boolean indicating if token is allowed
20
+ */
21
+ isTokenAllowed(token: string): Promise<boolean>;
22
+ /**
23
+ * Get Token details
24
+ * @return {Promise<any>} Token details
25
+ */
26
+ getToken(token: string): Promise<any>;
27
+ /**
28
+ * Calculate fee
29
+ * @param {string} token Token address
30
+ * @param {string} amount Amount
31
+ * @return {Promise<string>} Fee amount
32
+ */
33
+ calculateFee(token: string, amount: number): Promise<any>;
34
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oceanprotocol/lib",
3
3
  "source": "./src/index.ts",
4
- "version": "4.3.3",
4
+ "version": "4.3.4",
5
5
  "description": "JavaScript client library for Ocean Protocol",
6
6
  "main": "./dist/lib.cjs",
7
7
  "umd:main": "dist/lib.umd.js",
@@ -57,7 +57,7 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@oasisprotocol/sapphire-paratime": "^1.3.2",
60
- "@oceanprotocol/contracts": "^2.3.0",
60
+ "@oceanprotocol/contracts": "^2.4.1",
61
61
  "@oceanprotocol/ddo-js": "^0.1.2",
62
62
  "@rdfjs/dataset": "^2.0.2",
63
63
  "@rdfjs/formats-common": "^3.1.0",