@paraswap/dex-lib 4.0.24 → 4.0.25-aaavev3-statav2-new-chains.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.
|
@@ -16,6 +16,18 @@ exports.AaveV3StataConfig = {
|
|
|
16
16
|
factoryAddresses: [aave_address_book_1.AaveV3Gnosis.STATA_FACTORY],
|
|
17
17
|
pool: aave_address_book_1.AaveV3Gnosis.POOL,
|
|
18
18
|
},
|
|
19
|
+
[constants_1.Network.OPTIMISM]: {
|
|
20
|
+
factoryAddresses: [aave_address_book_1.AaveV3Optimism.STATA_FACTORY],
|
|
21
|
+
pool: aave_address_book_1.AaveV3Optimism.POOL,
|
|
22
|
+
},
|
|
23
|
+
[constants_1.Network.ARBITRUM]: {
|
|
24
|
+
factoryAddresses: [aave_address_book_1.AaveV3Arbitrum.STATA_FACTORY],
|
|
25
|
+
pool: aave_address_book_1.AaveV3Arbitrum.POOL,
|
|
26
|
+
},
|
|
27
|
+
[constants_1.Network.BASE]: {
|
|
28
|
+
factoryAddresses: [aave_address_book_1.AaveV3Base.STATA_FACTORY],
|
|
29
|
+
pool: aave_address_book_1.AaveV3Base.POOL,
|
|
30
|
+
},
|
|
19
31
|
},
|
|
20
32
|
};
|
|
21
33
|
//# sourceMappingURL=config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/dex/aave-v3-stata-v2/config.ts"],"names":[],"mappings":";;;AAEA,+CAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/dex/aave-v3-stata-v2/config.ts"],"names":[],"mappings":";;;AAEA,+CAA0C;AAC1C,mEAOqC;AAExB,QAAA,iBAAiB,GAA4B;IACxD,aAAa,EAAE;QACb,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE;YACjB,gBAAgB,EAAE;gBAChB,kCAAc,CAAC,aAAa;gBAC5B,sCAAkB,CAAC,aAAa;aACjC;YACD,IAAI,EAAE,kCAAc,CAAC,IAAI;SAC1B;QACD,CAAC,mBAAO,CAAC,MAAM,CAAC,EAAE;YAChB,gBAAgB,EAAE,CAAC,gCAAY,CAAC,aAAa,CAAC;YAC9C,IAAI,EAAE,gCAAY,CAAC,IAAI;SACxB;QACD,CAAC,mBAAO,CAAC,QAAQ,CAAC,EAAE;YAClB,gBAAgB,EAAE,CAAC,kCAAc,CAAC,aAAa,CAAC;YAChD,IAAI,EAAE,kCAAc,CAAC,IAAI;SAC1B;QACD,CAAC,mBAAO,CAAC,QAAQ,CAAC,EAAE;YAClB,gBAAgB,EAAE,CAAC,kCAAc,CAAC,aAAa,CAAC;YAChD,IAAI,EAAE,kCAAc,CAAC,IAAI;SAC1B;QACD,CAAC,mBAAO,CAAC,IAAI,CAAC,EAAE;YACd,gBAAgB,EAAE,CAAC,8BAAU,CAAC,aAAa,CAAC;YAC5C,IAAI,EAAE,8BAAU,CAAC,IAAI;SACtB;KACF;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraswap/dex-lib",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.25-aaavev3-statav2-new-chains.0",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"types": "build/index.d.ts",
|
|
6
6
|
"repository": "https://github.com/paraswap/paraswap-dex-lib",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@0x/utils": "^4.5.2",
|
|
55
55
|
"@balancer-labs/balancer-maths": "^0.0.19",
|
|
56
56
|
"@balancer-labs/sor": "4.1.3",
|
|
57
|
-
"@bgd-labs/aave-address-book": "4.
|
|
57
|
+
"@bgd-labs/aave-address-book": "4.8.1",
|
|
58
58
|
"@ethersproject/abi": "^5.7.0",
|
|
59
59
|
"@hashflow/sdk": "^2.2.7",
|
|
60
60
|
"@hashflow/taker-js": "^0.3.7",
|
|
@@ -234,7 +234,7 @@ describe('AaveV3Stata E2E', () => {
|
|
|
234
234
|
// });
|
|
235
235
|
// });
|
|
236
236
|
|
|
237
|
-
describe
|
|
237
|
+
describe('Arbitrum', () => {
|
|
238
238
|
const network = Network.ARBITRUM;
|
|
239
239
|
|
|
240
240
|
const pairs: { name: string; amount: string; skipBuy?: boolean }[][] = [
|
|
@@ -274,7 +274,7 @@ describe('AaveV3Stata E2E', () => {
|
|
|
274
274
|
});
|
|
275
275
|
});
|
|
276
276
|
|
|
277
|
-
describe
|
|
277
|
+
describe('Optimism', () => {
|
|
278
278
|
const network = Network.OPTIMISM;
|
|
279
279
|
|
|
280
280
|
const pairs: { name: string; amount: string; skipBuy?: boolean }[][] = [
|
|
@@ -314,7 +314,7 @@ describe('AaveV3Stata E2E', () => {
|
|
|
314
314
|
});
|
|
315
315
|
});
|
|
316
316
|
|
|
317
|
-
describe
|
|
317
|
+
describe('Base', () => {
|
|
318
318
|
const network = Network.BASE;
|
|
319
319
|
|
|
320
320
|
const pairs: { name: string; amount: string; skipBuy?: boolean }[][] = [
|
|
@@ -2,9 +2,12 @@ import { DexParams } from './types';
|
|
|
2
2
|
import { DexConfigMap } from '../../types';
|
|
3
3
|
import { Network } from '../../constants';
|
|
4
4
|
import {
|
|
5
|
+
AaveV3Arbitrum,
|
|
6
|
+
AaveV3Base,
|
|
5
7
|
AaveV3Ethereum,
|
|
6
8
|
AaveV3EthereumLido,
|
|
7
9
|
AaveV3Gnosis,
|
|
10
|
+
AaveV3Optimism,
|
|
8
11
|
} from '@bgd-labs/aave-address-book';
|
|
9
12
|
|
|
10
13
|
export const AaveV3StataConfig: DexConfigMap<DexParams> = {
|
|
@@ -20,5 +23,17 @@ export const AaveV3StataConfig: DexConfigMap<DexParams> = {
|
|
|
20
23
|
factoryAddresses: [AaveV3Gnosis.STATA_FACTORY],
|
|
21
24
|
pool: AaveV3Gnosis.POOL,
|
|
22
25
|
},
|
|
26
|
+
[Network.OPTIMISM]: {
|
|
27
|
+
factoryAddresses: [AaveV3Optimism.STATA_FACTORY],
|
|
28
|
+
pool: AaveV3Optimism.POOL,
|
|
29
|
+
},
|
|
30
|
+
[Network.ARBITRUM]: {
|
|
31
|
+
factoryAddresses: [AaveV3Arbitrum.STATA_FACTORY],
|
|
32
|
+
pool: AaveV3Arbitrum.POOL,
|
|
33
|
+
},
|
|
34
|
+
[Network.BASE]: {
|
|
35
|
+
factoryAddresses: [AaveV3Base.STATA_FACTORY],
|
|
36
|
+
pool: AaveV3Base.POOL,
|
|
37
|
+
},
|
|
23
38
|
},
|
|
24
39
|
};
|