@oceanprotocol/lib 1.0.0-next.8 → 1.0.0-next.9

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.
@@ -12,6 +12,7 @@ interface Template {
12
12
  export interface TokenOrder {
13
13
  tokenAddress: string;
14
14
  consumer: string;
15
+ ammount: string;
15
16
  serviceIndex: number;
16
17
  _providerFees: ProviderFees;
17
18
  }
@@ -36,10 +36,10 @@ export declare class Router {
36
36
  addDispenserContract(address: string, tokenAddress: string): Promise<TransactionReceipt>;
37
37
  estGasRemoveDispenserContract(address: string, tokenAddress: string): Promise<any>;
38
38
  removeDispenserContract(address: string, tokenAddress: string): Promise<TransactionReceipt>;
39
- getOPFFee(baseToken: string): Promise<number>;
40
- getCurrentOPFFee(): Promise<number>;
41
- estGasUpdateOPFFee(address: string, newFee: number): Promise<any>;
42
- updateOPFFee(address: string, newFee: number): Promise<TransactionReceipt>;
39
+ getOPCFee(baseToken: string): Promise<number>;
40
+ getCurrentOPCFee(): Promise<number>;
41
+ estGasUpdateOPCFee(address: string, newSwapOceanFee: number, newSwapNonOceanFee: number, newConsumeFee: number, newProviderFee: number): Promise<any>;
42
+ updateOPCFee(address: string, newSwapOceanFee: number, newSwapNonOceanFee: number, newConsumeFee: number, newProviderFee: number): Promise<TransactionReceipt>;
43
43
  estGasAddPoolTemplate(address: string, templateAddress: string): Promise<any>;
44
44
  addPoolTemplate(address: string, templateAddress: string): Promise<TransactionReceipt>;
45
45
  estGasRemovePoolTemplate(address: string, templateAddress: string): Promise<any>;
@@ -23,7 +23,7 @@ export declare class Pool {
23
23
  getBaseToken(poolAddress: string): Promise<string>;
24
24
  getDatatoken(poolAddress: string): Promise<string>;
25
25
  getMarketFeeCollector(poolAddress: string): Promise<string>;
26
- getOPFCollector(poolAddress: string): Promise<string>;
26
+ getOPCCollector(poolAddress: string): Promise<string>;
27
27
  isBound(poolAddress: string, token: string): Promise<boolean>;
28
28
  getReserve(poolAddress: string, token: string): Promise<string>;
29
29
  isFinalized(poolAddress: string): Promise<boolean>;
@@ -33,10 +33,10 @@ export declare class Pool {
33
33
  getTotalDenormalizedWeight(poolAddress: string): Promise<string>;
34
34
  getMarketFees(poolAddress: string, token: string): Promise<string>;
35
35
  getCurrentMarketFees(poolAddress: string): Promise<CurrentFees>;
36
- getCurrentOPFFees(poolAddress: string): Promise<CurrentFees>;
36
+ getCurrentOPCFees(poolAddress: string): Promise<CurrentFees>;
37
37
  getCommunityFees(poolAddress: string, token: string): Promise<string>;
38
- estCollectOPF(address: string, poolAddress: string, contractInstance?: Contract): Promise<number>;
39
- collectOPF(address: string, poolAddress: string): Promise<TransactionReceipt>;
38
+ estCollectOPC(address: string, poolAddress: string, contractInstance?: Contract): Promise<number>;
39
+ collectOPC(address: string, poolAddress: string): Promise<TransactionReceipt>;
40
40
  estCollectMarketFee(address: string, poolAddress: string, contractInstance?: Contract): Promise<number>;
41
41
  collectMarketFee(address: string, poolAddress: string): Promise<TransactionReceipt>;
42
42
  estUpdateMarketFeeCollector(address: string, poolAddress: string, newCollector: string, contractInstance?: Contract): Promise<number>;
@@ -20,7 +20,7 @@ export interface FixedPriceExchange {
20
20
  exchangeId?: string;
21
21
  }
22
22
  export interface FeesInfo {
23
- opfFee: string;
23
+ opcFee: string;
24
24
  marketFee: string;
25
25
  marketFeeCollector: string;
26
26
  marketFeeAvailable: string;
@@ -86,7 +86,7 @@ export declare class FixedRateExchange {
86
86
  collectMarketFee(address: string, exchangeId: string): Promise<TransactionReceipt>;
87
87
  estCollectOceanFee(account: string, exchangeId: string, contractInstance?: Contract): Promise<number>;
88
88
  collectOceanFee(address: string, exchangeId: string): Promise<TransactionReceipt>;
89
- getOPFCollector(): Promise<string>;
89
+ getOPCCollector(): Promise<string>;
90
90
  getRouter(): Promise<string>;
91
91
  getExchangeOwner(exchangeId: string): Promise<string>;
92
92
  estUpdateMarketFee(account: string, exchangeId: string, newMarketFee: string, contractInstance?: Contract): Promise<number>;
@@ -13,6 +13,7 @@ interface Roles {
13
13
  export interface OrderParams {
14
14
  consumer: string;
15
15
  serviceIndex: number;
16
+ ammount: string;
16
17
  _providerFees: ProviderFees;
17
18
  }
18
19
  export interface DispenserParams {
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.8",
4
+ "version": "1.0.0-next.9",
5
5
  "description": "JavaScript client library for Ocean Protocol",
6
6
  "main": "./dist/lib.js",
7
7
  "umd:main": "dist/lib.umd.js",
@@ -57,7 +57,7 @@
57
57
  "web3": ">=1.3.5"
58
58
  },
59
59
  "dependencies": {
60
- "@oceanprotocol/contracts": "^1.0.0-alpha.1",
60
+ "@oceanprotocol/contracts": "^1.0.0-alpha.15",
61
61
  "bignumber.js": "^9.0.2",
62
62
  "cross-fetch": "^3.1.4",
63
63
  "crypto-js": "^4.0.0",
@@ -81,10 +81,10 @@
81
81
  "chai-spies": "^1.0.0",
82
82
  "cross-env": "^7.0.3",
83
83
  "eslint": "^7.17.0",
84
- "fs": "0.0.1-security",
85
84
  "eslint-config-oceanprotocol": "^1.5.0",
86
85
  "eslint-config-prettier": "^8.3.0",
87
86
  "eslint-plugin-prettier": "^4.0.0",
87
+ "fs": "0.0.1-security",
88
88
  "microbundle": "^0.14.2",
89
89
  "mocha": "^9.1.2",
90
90
  "mock-local-storage": "^1.1.17",