@dhedge/v2-sdk 1.10.10 → 1.10.12

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/config.d.ts CHANGED
@@ -14,8 +14,9 @@ export declare const MaxUint128 = "0xffffffffffffffffffffffffffffffff";
14
14
  export declare const UNISWAPV3_QUOTER_ADDRESS = "0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6";
15
15
  export declare const SYNTHETIX_TRACKING_CODE = "0x4448454447450000000000000000000000000000000000000000000000000000";
16
16
  export declare const flatMoneyContractAddresses: Readonly<Partial<Record<Network, {
17
+ OrderExecution?: string;
17
18
  DelayedOrder: string;
18
19
  FlatcoinVault: string;
19
20
  StableModule: string;
20
- RETH: string;
21
+ COLLATERAL: string;
21
22
  }>>>;
@@ -25,7 +25,7 @@ export declare class Dhedge {
25
25
  * @param {string} address Pool address
26
26
  * @returns {Pool} Loaded Pool
27
27
  */
28
- loadPool(address: string): Promise<Pool>;
28
+ loadPool(address: string, isDhedge?: boolean): Promise<Pool>;
29
29
  /**
30
30
  * Check if pool address is valid
31
31
  * @param {string} address Pool address
@@ -9,7 +9,8 @@ export declare class Pool {
9
9
  readonly address: string;
10
10
  readonly utils: Utils;
11
11
  readonly network: Network;
12
- constructor(network: Network, signer: Wallet, poolLogic: Contract, mangerLogic: Contract, utils: Utils, factory: Contract);
12
+ readonly isDhedge: boolean;
13
+ constructor(network: Network, signer: Wallet, poolLogic: Contract, mangerLogic: Contract, utils: Utils, factory: Contract, isDhedge?: boolean);
13
14
  /**
14
15
  * Return the assets with balances and deposit info of a pool
15
16
  * @returns {Promise<FundComposition[]>} Composition of assets with balance, deposit info
@@ -2,6 +2,7 @@ import { Pool, ethers } from "../..";
2
2
  export declare function getAnnounceStableDepositTxData(depositAmount: ethers.BigNumber | string, minAmountOut: ethers.BigNumber | string, keeperFee: ethers.BigNumber | string): string;
3
3
  export declare function getAnnounceStableWithdrawTxData(withdrawAmount: ethers.BigNumber | string, minAmountOut: ethers.BigNumber | string, keeperFee: ethers.BigNumber | string): string;
4
4
  export declare function getCancelExistingOrderTxData(account: string): string;
5
+ export declare function getCancelExistingOrderTxDataForV2(account: string): string;
5
6
  export declare function mintUnitViaFlatMoney(pool: Pool, depositAmount: ethers.BigNumber | string, slippage: number, // 0.5 means 0.5%
6
7
  maxKeeperFeeInUsd: number | null, options?: any, estimateGas?: boolean): Promise<any>;
7
8
  export declare function redeemUnitViaFlatMoney(pool: Pool, withdrawAmount: ethers.BigNumber | string, slippage: number, // 0.5 means 0.5%
@@ -37,6 +37,7 @@ export declare const CONTRACT_ADDRESS: {
37
37
  VELO: string;
38
38
  COMPOUNDV3_WETH: string;
39
39
  TOROS: string;
40
+ UNIT: string;
40
41
  };
41
42
  optimism: {
42
43
  USDC: string;
@@ -49,6 +50,7 @@ export declare const CONTRACT_ADDRESS: {
49
50
  uniswapV3: {
50
51
  nonfungiblePositionManager: string;
51
52
  };
53
+ UNIT: string;
52
54
  WMATIC: string;
53
55
  ARRAKIS_USDC_WETH_GAUGE: string;
54
56
  ARRAKIS_USDC_WETH_LP: string;
@@ -70,6 +72,7 @@ export declare const CONTRACT_ADDRESS: {
70
72
  uniswapV3: {
71
73
  nonfungiblePositionManager: string;
72
74
  };
75
+ UNIT: string;
73
76
  ARRAKIS_USDC_WETH_GAUGE: string;
74
77
  ARRAKIS_USDC_WETH_LP: string;
75
78
  WMATIC: string;
@@ -85,6 +88,7 @@ export declare const CONTRACT_ADDRESS: {
85
88
  WETH: string;
86
89
  WBTC: string;
87
90
  SWETH: string;
91
+ UNIT: string;
88
92
  uniswapV3: {
89
93
  nonfungiblePositionManager: string;
90
94
  };
package/dist/types.d.ts CHANGED
@@ -21,7 +21,6 @@ export declare enum Dapp {
21
21
  VELODROMEV2 = "velodromeV2",
22
22
  VELODROMECL = "velodromeCL",
23
23
  LYRA = "lyra",
24
- ZEROEX = "0x",
25
24
  RAMSES = "ramses",
26
25
  AERODROME = "aerodrome",
27
26
  AERODROMECL = "aerodromeCL",