@dhedge/v2-sdk 2.1.2 → 2.1.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 +9 -1
- package/dist/v2-sdk.cjs.development.js +468 -381
- 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 +468 -381
- package/dist/v2-sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/abi/PoolManagerLogic.json +27 -1
- package/src/entities/pool.ts +26 -1
- package/src/test/pool.test.ts +35 -24
package/dist/entities/pool.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Contract, ethers, Wallet, BigNumber } from "ethers";
|
|
1
|
+
import { Contract, ethers, Wallet, BigNumber, BigNumberish } from "ethers";
|
|
2
2
|
import { Dapp, FundComposition, AssetEnabled, Network, LyraOptionMarket, LyraOptionType, LyraTradeType, LyraPosition, SDKOptions } from "../types";
|
|
3
3
|
import { Utils } from "./utils";
|
|
4
4
|
export declare class Pool {
|
|
@@ -261,6 +261,14 @@ export declare class Pool {
|
|
|
261
261
|
* @returns {Promise<any>} Transaction
|
|
262
262
|
*/
|
|
263
263
|
setPrivate(_private: boolean, options?: any, estimateGas?: boolean): Promise<any>;
|
|
264
|
+
/**
|
|
265
|
+
* Sets max supply cap for a pool
|
|
266
|
+
* @param {BigNumberish} _maxSupplyCapD18 Max supply cap with 18 decimals
|
|
267
|
+
* @param {any} options Transaction options
|
|
268
|
+
* @param {boolean} estimateGas Simulate/estimate gas
|
|
269
|
+
* @returns {Promise<any>} Transaction
|
|
270
|
+
*/
|
|
271
|
+
setMaxCap(_maxSupplyCapD18: BigNumberish, options?: any, estimateGas?: boolean): Promise<any>;
|
|
264
272
|
/**
|
|
265
273
|
* Invest into a Balancer pool
|
|
266
274
|
* @param {string} poolId Balancer pool id
|