@dhedge/v2-sdk 1.10.16 → 1.11.0
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 +1 -1
- package/dist/services/uniswap/V3Liquidity.d.ts +1 -1
- package/dist/test/constants.d.ts +4 -4
- package/dist/test/wallet.d.ts +1 -1
- package/dist/types.d.ts +1 -2
- package/dist/v2-sdk.cjs.development.js +30 -1240
- 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 +30 -1240
- package/dist/v2-sdk.esm.js.map +1 -1
- package/package.json +3 -2
- package/src/config.ts +14 -17
- package/src/entities/pool.ts +48 -52
- package/src/services/uniswap/V3Liquidity.ts +5 -16
- package/src/test/constants.ts +6 -6
- package/src/test/oneInch.test.ts +16 -4
- package/src/test/wallet.ts +1 -1
- package/src/types.ts +1 -2
- package/src/abi/IShadowNonfungiblePositionManager.json +0 -697
package/dist/entities/pool.d.ts
CHANGED
|
@@ -315,7 +315,7 @@ export declare class Pool {
|
|
|
315
315
|
* @param {boolean} estimateGas Simulate/estimate gas
|
|
316
316
|
* @returns {Promise<any>} Transaction
|
|
317
317
|
*/
|
|
318
|
-
addLiquidityUniswapV3(dapp: Dapp.UNISWAPV3 | Dapp.VELODROMECL | Dapp.AERODROMECL | Dapp.RAMSESCL | Dapp.PANCAKECL
|
|
318
|
+
addLiquidityUniswapV3(dapp: Dapp.UNISWAPV3 | Dapp.VELODROMECL | Dapp.AERODROMECL | Dapp.RAMSESCL | Dapp.PANCAKECL, assetA: string, assetB: string, amountA: BigNumber | string, amountB: BigNumber | string, minPrice: number | null, maxPrice: number | null, minTick: number | null, maxTick: number | null, feeAmountOrTickSpacing: number, options?: any, estimateGas?: boolean): Promise<any>;
|
|
319
319
|
/**
|
|
320
320
|
* Remove liquidity from an UniswapV3 or Arrakis liquidity pool
|
|
321
321
|
* @param {Dapp} dapp Platform either UniswapV3 or Arrakis
|
|
@@ -4,7 +4,7 @@ import { Dapp, Pool } from "../..";
|
|
|
4
4
|
import BigNumber from "bignumber.js";
|
|
5
5
|
export declare function tryParsePrice(baseToken: Token, quoteToken: Token, value: string): Price<Token, Token>;
|
|
6
6
|
export declare function tryParseTick(baseToken: Token, quoteToken: Token, feeAmount: number, value: string): number;
|
|
7
|
-
export declare function getUniswapV3MintTxData(dapp: Dapp.UNISWAPV3 | Dapp.VELODROMECL | Dapp.AERODROMECL | Dapp.RAMSESCL | Dapp.PANCAKECL
|
|
7
|
+
export declare function getUniswapV3MintTxData(dapp: Dapp.UNISWAPV3 | Dapp.VELODROMECL | Dapp.AERODROMECL | Dapp.RAMSESCL | Dapp.PANCAKECL, pool: Pool, assetA: string, assetB: string, amountA: string | ethers.BigNumber, amountB: string | ethers.BigNumber, minPrice: number | null, maxPrice: number | null, minTick: number | null, maxTick: number | null, feeAmountOrTickSpacing: number): Promise<any>;
|
|
8
8
|
export declare function getUniswapV3Liquidity(dapp: Dapp.UNISWAPV3 | Dapp.VELODROMECL | Dapp.AERODROMECL | Dapp.RAMSESCL | Dapp, tokenId: string, pool: Pool): Promise<BigNumber>;
|
|
9
9
|
export declare function getIncreaseLiquidityTxData(pool: Pool, dapp: Dapp, tokenId: string, amountA: ethers.BigNumber | string, amountB: ethers.BigNumber | string): Promise<any>;
|
|
10
10
|
export declare function getDecreaseLiquidityTxData(pool: Pool, dapp: Dapp, tokenId: string, amount: number | undefined, isStaked: boolean): Promise<any>;
|
package/dist/test/constants.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare const TEST_POOL: {
|
|
|
18
18
|
optimism: string;
|
|
19
19
|
arbitrum: string;
|
|
20
20
|
base: string;
|
|
21
|
-
|
|
21
|
+
ethereum: string;
|
|
22
22
|
};
|
|
23
23
|
export declare const CONTRACT_ADDRESS: {
|
|
24
24
|
polygon: {
|
|
@@ -101,7 +101,7 @@ export declare const CONTRACT_ADDRESS: {
|
|
|
101
101
|
COMPOUNDV3_WETH: string;
|
|
102
102
|
TOROS: string;
|
|
103
103
|
};
|
|
104
|
-
|
|
104
|
+
ethereum: {
|
|
105
105
|
USDC: string;
|
|
106
106
|
USDT: string;
|
|
107
107
|
SUSD: string;
|
|
@@ -127,12 +127,12 @@ export declare const USDC_BALANCEOF_SLOT: {
|
|
|
127
127
|
arbitrum: number;
|
|
128
128
|
polygon: number;
|
|
129
129
|
base: number;
|
|
130
|
-
|
|
130
|
+
ethereum: number;
|
|
131
131
|
};
|
|
132
132
|
export declare const WETH_BALANCEOF_SLOT: {
|
|
133
133
|
optimism: number;
|
|
134
134
|
arbitrum: number;
|
|
135
135
|
polygon: number;
|
|
136
136
|
base: number;
|
|
137
|
-
|
|
137
|
+
ethereum: number;
|
|
138
138
|
};
|
package/dist/test/wallet.d.ts
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare enum Network {
|
|
|
5
5
|
OPTIMISM = "optimism",
|
|
6
6
|
ARBITRUM = "arbitrum",
|
|
7
7
|
BASE = "base",
|
|
8
|
-
|
|
8
|
+
ETHEREUM = "ethereum"
|
|
9
9
|
}
|
|
10
10
|
export declare enum Dapp {
|
|
11
11
|
SUSHISWAP = "sushiswap",
|
|
@@ -29,7 +29,6 @@ export declare enum Dapp {
|
|
|
29
29
|
PANCAKECL = "pancakeCL",
|
|
30
30
|
COMPOUNDV3 = "compoundV3",
|
|
31
31
|
ODOS = "odos",
|
|
32
|
-
SHADOWCL = "shadowCL",
|
|
33
32
|
PENDLE = "pendle"
|
|
34
33
|
}
|
|
35
34
|
export declare enum Transaction {
|