@dhedge/v2-sdk 1.10.6 → 1.10.7
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/services/compound/rewards.d.ts +2 -0
- package/dist/types.d.ts +2 -1
- package/dist/v2-sdk.cjs.development.js +806 -327
- 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 +806 -327
- package/dist/v2-sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/abi/compound/ICometRewards.json +241 -0
- package/src/config.ts +5 -2
- package/src/entities/pool.ts +26 -0
- package/src/services/compound/rewards.ts +9 -0
- package/src/test/compoundV3.test.ts +4 -0
- package/src/types.ts +2 -1
package/dist/entities/pool.d.ts
CHANGED
|
@@ -290,6 +290,14 @@ export declare class Pool {
|
|
|
290
290
|
* @returns {Promise<any>} Transaction
|
|
291
291
|
*/
|
|
292
292
|
harvestAaveV3Rewards(assets: string[], rewardAsset: string, options?: any, estimateGas?: boolean): Promise<any>;
|
|
293
|
+
/**
|
|
294
|
+
* Claim rewards from CompoundV3
|
|
295
|
+
* @param {string} asset Compound lending asset
|
|
296
|
+
* @param {any} options Transaction options
|
|
297
|
+
* @param {boolean} estimateGas Simulate/estimate gas
|
|
298
|
+
* @returns {Promise<any>} Transaction
|
|
299
|
+
*/
|
|
300
|
+
harvestCompoundV3Rewards(asset: string, options?: any, estimateGas?: boolean): Promise<any>;
|
|
293
301
|
/**
|
|
294
302
|
* Create UniswapV3 liquidity pool
|
|
295
303
|
* @param {dapp} Platform UniswapV3, VelodromeCL, AerodromeCL or RamesesCL
|
package/dist/types.d.ts
CHANGED
|
@@ -25,7 +25,8 @@ export declare enum Dapp {
|
|
|
25
25
|
RAMSES = "ramses",
|
|
26
26
|
AERODROME = "aerodrome",
|
|
27
27
|
AERODROMECL = "aerodromeCL",
|
|
28
|
-
RAMSESCL = "ramsesCL"
|
|
28
|
+
RAMSESCL = "ramsesCL",
|
|
29
|
+
COMPOUNDV3 = "compoundV3"
|
|
29
30
|
}
|
|
30
31
|
export declare enum Transaction {
|
|
31
32
|
SWAP = "swapExactTokensForTokens",
|