@oceanprotocol/lib 1.0.0-next.26 → 1.0.0-next.27
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.
- package/CHANGELOG.md +8 -0
- package/dist/src/pools/Router.d.ts +8 -8
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,19 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
#### [v1.0.0-next.27](https://github.com/oceanprotocol/ocean.js/compare/v1.0.0-next.26...v1.0.0-next.27)
|
|
8
|
+
|
|
9
|
+
- Feature/contracts alpha 22 [`#1334`](https://github.com/oceanprotocol/ocean.js/pull/1334)
|
|
10
|
+
- Bump mocha from 9.2.1 to 9.2.2 [`#1332`](https://github.com/oceanprotocol/ocean.js/pull/1332)
|
|
11
|
+
|
|
7
12
|
#### [v1.0.0-next.26](https://github.com/oceanprotocol/ocean.js/compare/v1.0.0-next.25...v1.0.0-next.26)
|
|
8
13
|
|
|
14
|
+
> 11 March 2022
|
|
15
|
+
|
|
9
16
|
- update `ServiceComputeOptions` [`#1330`](https://github.com/oceanprotocol/ocean.js/pull/1330)
|
|
10
17
|
- dispenser creation: transform maxTokens and maxBalance to wei [`#1328`](https://github.com/oceanprotocol/ocean.js/pull/1328)
|
|
11
18
|
- Bump @truffle/hdwallet-provider from 2.0.3 to 2.0.4 [`#1329`](https://github.com/oceanprotocol/ocean.js/pull/1329)
|
|
19
|
+
- Release 1.0.0-next.26 [`e9f32c7`](https://github.com/oceanprotocol/ocean.js/commit/e9f32c729abadc5985add4016d72f7647b8cecf9)
|
|
12
20
|
|
|
13
21
|
#### [v1.0.0-next.25](https://github.com/oceanprotocol/ocean.js/compare/v1.0.0-next.24...v1.0.0-next.25)
|
|
14
22
|
|
|
@@ -35,10 +35,10 @@ export declare class Router {
|
|
|
35
35
|
* @return {Promise<TransactionReceipt>} Transaction receipt
|
|
36
36
|
*/
|
|
37
37
|
buyDTBatch(address: string, operations: Operation[]): Promise<TransactionReceipt>;
|
|
38
|
-
/** Check if a token is on
|
|
38
|
+
/** Check if a token is on approved tokens list, if true opfFee is lower in pools with that token/DT
|
|
39
39
|
* @return {Promise<boolean>} true if is on the list.
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
isApprovedToken(address: string): Promise<boolean>;
|
|
42
42
|
/** Check if an address is a side staking contract.
|
|
43
43
|
* @return {Promise<boolean>} true if is a SS contract
|
|
44
44
|
*/
|
|
@@ -60,35 +60,35 @@ export declare class Router {
|
|
|
60
60
|
*/
|
|
61
61
|
isPoolTemplate(address: string): Promise<boolean>;
|
|
62
62
|
/**
|
|
63
|
-
* Estimate gas cost for
|
|
63
|
+
* Estimate gas cost for addApprovedToken
|
|
64
64
|
* @param {String} address
|
|
65
65
|
* @param {String} tokenAddress token address we want to add
|
|
66
66
|
* @param {Contract} routerContract optional contract instance
|
|
67
67
|
* @return {Promise<any>}
|
|
68
68
|
*/
|
|
69
|
-
|
|
69
|
+
estGasAddApprovedToken(address: string, tokenAddress: string, contractInstance?: Contract): Promise<any>;
|
|
70
70
|
/**
|
|
71
71
|
* Add a new token to oceanTokens list, pools with baseToken in this list have NO opf Fee
|
|
72
72
|
* @param {String} address caller address
|
|
73
73
|
* @param {String} tokenAddress token address to add
|
|
74
74
|
* @return {Promise<TransactionReceipt>}
|
|
75
75
|
*/
|
|
76
|
-
|
|
76
|
+
addApprovedToken(address: string, tokenAddress: string): Promise<TransactionReceipt>;
|
|
77
77
|
/**
|
|
78
|
-
* Estimate gas cost for
|
|
78
|
+
* Estimate gas cost for removeApprovedToken
|
|
79
79
|
* @param {String} address caller address
|
|
80
80
|
* @param {String} tokenAddress token address we want to add
|
|
81
81
|
* @param {Contract} routerContract optional contract instance
|
|
82
82
|
* @return {Promise<any>}
|
|
83
83
|
*/
|
|
84
|
-
|
|
84
|
+
estGasRemoveApprovedToken(address: string, tokenAddress: string, contractInstance?: Contract): Promise<any>;
|
|
85
85
|
/**
|
|
86
86
|
* Remove a token from oceanTokens list, pools without baseToken in this list have a opf Fee
|
|
87
87
|
* @param {String} address
|
|
88
88
|
* @param {String} tokenAddress address to remove
|
|
89
89
|
* @return {Promise<TransactionReceipt>}
|
|
90
90
|
*/
|
|
91
|
-
|
|
91
|
+
removeApprovedToken(address: string, tokenAddress: string): Promise<TransactionReceipt>;
|
|
92
92
|
/**
|
|
93
93
|
* Estimate gas cost for addSSContract method
|
|
94
94
|
* @param {String} address
|
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.
|
|
4
|
+
"version": "1.0.0-next.27",
|
|
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.7.1"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@oceanprotocol/contracts": "1.0.0-alpha.
|
|
60
|
+
"@oceanprotocol/contracts": "1.0.0-alpha.22",
|
|
61
61
|
"bignumber.js": "^9.0.2",
|
|
62
62
|
"cross-fetch": "^3.1.5",
|
|
63
63
|
"crypto-js": "^4.1.1",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"eslint-plugin-prettier": "^4.0.0",
|
|
87
87
|
"fs": "0.0.1-security",
|
|
88
88
|
"microbundle": "^0.14.2",
|
|
89
|
-
"mocha": "^9.2.
|
|
89
|
+
"mocha": "^9.2.2",
|
|
90
90
|
"mock-local-storage": "^1.1.20",
|
|
91
91
|
"nyc": "^15.1.0",
|
|
92
92
|
"ora": "5.4.1",
|