@oceanprotocol/lib 4.3.3 → 4.3.5

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,33 @@
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
+ getDefaultAbi(): AbiItem[];
7
+ /**
8
+ * Instantiate EnterpriseFeeCollectorContract class
9
+ * @param {string} address The contract address.
10
+ * @param {Signer} signer The signer object.
11
+ * @param {string | number} [network] Network id or name
12
+ * @param {Config} [config] The configuration object.
13
+ * @param {AbiItem[]} [abi] ABI array of the smart contract
14
+ */
15
+ constructor(address: string, signer: Signer, network?: string | number, config?: Config, abi?: AbiItem[]);
16
+ /**
17
+ * Check if token is allowed
18
+ * @return {Promise<any>} Boolean indicating if token is allowed
19
+ */
20
+ isTokenAllowed(token: string): Promise<boolean>;
21
+ /**
22
+ * Get Token details
23
+ * @return {Promise<any>} Token details
24
+ */
25
+ getToken(token: string): Promise<any>;
26
+ /**
27
+ * Calculate fee
28
+ * @param {string} token Token address
29
+ * @param {string} amount Amount
30
+ * @return {Promise<string>} Fee amount
31
+ */
32
+ calculateFee(token: string, amount: number): Promise<any>;
33
+ }
@@ -19,3 +19,4 @@ export * from './Datatoken4.js';
19
19
  export * from './AccessList.js';
20
20
  export * from './AccessListFactory.js';
21
21
  export * from './Escrow.js';
22
+ export * from './EnterpriseFeeCollector.js';
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.5",
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",