@dhedge/v2-sdk 1.5.0 → 1.5.1
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 +1 -0
- package/dist/entities/pool.d.ts +8 -0
- package/dist/services/aave/assets.d.ts +2 -0
- package/dist/services/aave/incentives.d.ts +2 -0
- package/dist/test/constants.d.ts +1 -0
- package/dist/v2-sdk.cjs.development.js +2877 -78
- 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 +2875 -76
- package/dist/v2-sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/abi/IAaveV3Incentives.json +614 -0
- package/src/abi/IAaveV3LendingPool.json +1241 -0
- package/src/config.ts +16 -4
- package/src/entities/pool.ts +22 -0
- package/src/services/aave/assets.ts +26 -0
- package/src/services/aave/incentives.ts +23 -0
- package/src/services/chainLink/price.ts +3 -2
- package/src/test/aave.test.ts +40 -13
- package/src/test/constants.ts +2 -1
- package/src/test/wallet.ts +5 -5
package/dist/config.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export declare const factoryAddress: AddressNetworkMap;
|
|
|
4
4
|
export declare const routerAddress: AddressDappNetworkMap;
|
|
5
5
|
export declare const dappFactoryAddress: AddressDappNetworkMap;
|
|
6
6
|
export declare const stakingAddress: AddressDappNetworkMap;
|
|
7
|
+
export declare const aaveAddressProvider: AddressDappNetworkMap;
|
|
7
8
|
export declare const nonfungiblePositionManagerAddress: AddressNetworkMap;
|
|
8
9
|
export declare const networkChainIdMap: NetworkChainIdMap;
|
|
9
10
|
export declare const balancerSubgraph: AddressNetworkMap;
|
package/dist/entities/pool.d.ts
CHANGED
|
@@ -234,6 +234,14 @@ export declare class Pool {
|
|
|
234
234
|
* @returns {Promise<any>} Transaction
|
|
235
235
|
*/
|
|
236
236
|
harvestAaveRewards(assets: string[], options?: any): Promise<any>;
|
|
237
|
+
/**
|
|
238
|
+
* Claim rewards from Aave platform
|
|
239
|
+
* @param {string[]} assets Assets invested in Aave
|
|
240
|
+
* @param {string} rewardAssets Reward token address
|
|
241
|
+
* @param {any} options Transaction options
|
|
242
|
+
* @returns {Promise<any>} Transaction
|
|
243
|
+
*/
|
|
244
|
+
harvestAaveV3Rewards(assets: string[], rewardAsset: string, options?: any): Promise<any>;
|
|
237
245
|
/**
|
|
238
246
|
* Create UniswapV3 liquidity pool
|
|
239
247
|
* @param {string} assetA First asset
|
package/dist/test/constants.d.ts
CHANGED
|
@@ -14,4 +14,5 @@ export declare const USDC = "0x7F5c764cBc14f9669B88837ca1490cCa17c31607";
|
|
|
14
14
|
export declare const DAI = "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1";
|
|
15
15
|
export declare const USDy = "0x1ec50880101022c11530a069690f5446d1464592";
|
|
16
16
|
export declare const WBTC = "0x68f180fcCe6836688e9084f035309E29Bf0A2095";
|
|
17
|
+
export declare const OP = "4200000000000000000000000000000000000042";
|
|
17
18
|
export declare const TEST_POOL = "TEST_POOL";
|