@dhedge/v2-sdk 2.0.1 → 2.0.3
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/dist/entities/pool.d.ts +8 -0
- package/dist/v2-sdk.cjs.development.js +486 -393
- package/dist/v2-sdk.cjs.development.js.map +1 -1
- package/dist/v2-sdk.cjs.production.min.js +1 -1
- package/dist/v2-sdk.cjs.production.min.js.map +1 -1
- package/dist/v2-sdk.esm.js +486 -393
- package/dist/v2-sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/abi/PoolManagerLogic.json +13 -0
- package/src/entities/pool.ts +22 -0
- package/src/test/flatmoney.test.ts +22 -0
- package/src/test/pool.test.ts +77 -74
- package/src/utils/contract.ts +25 -5
package/dist/entities/pool.d.ts
CHANGED
|
@@ -253,6 +253,14 @@ export declare class Pool {
|
|
|
253
253
|
* @returns {Promise<any>} Transaction
|
|
254
254
|
*/
|
|
255
255
|
setTrader(trader: string, options?: any, estimateGas?: boolean): Promise<any>;
|
|
256
|
+
/**
|
|
257
|
+
* Sets a pool private or public
|
|
258
|
+
* @param {boolean} _private True for private, false for public
|
|
259
|
+
* @param {any} options Transaction options
|
|
260
|
+
* @param {boolean} estimateGas Simulate/estimate gas
|
|
261
|
+
* @returns {Promise<any>} Transaction
|
|
262
|
+
*/
|
|
263
|
+
setPrivate(_private: boolean, options?: any, estimateGas?: boolean): Promise<any>;
|
|
256
264
|
/**
|
|
257
265
|
* Invest into a Balancer pool
|
|
258
266
|
* @param {string} poolId Balancer pool id
|