@paraswap/dex-lib 2.23.4 → 2.24.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.
Files changed (62) hide show
  1. package/build/abi/algebra/AlgebraPool.abi.json +727 -0
  2. package/build/abi/algebra/AlgebraQuoter.abi.json +138 -0
  3. package/build/abi/algebra/AlgebraStateMulticall.abi.json +801 -0
  4. package/build/config.js +2 -2
  5. package/build/dex/algebra/algebra-pool.d.ts +41 -0
  6. package/build/dex/algebra/algebra-pool.js +272 -0
  7. package/build/dex/algebra/algebra-pool.js.map +1 -0
  8. package/build/dex/algebra/algebra.d.ts +53 -0
  9. package/build/dex/algebra/algebra.js +460 -0
  10. package/build/dex/algebra/algebra.js.map +1 -0
  11. package/build/dex/algebra/config.d.ts +4 -0
  12. package/build/dex/algebra/config.js +41 -0
  13. package/build/dex/algebra/config.js.map +1 -0
  14. package/build/dex/algebra/lib/AlgebraMath.d.ts +13 -0
  15. package/build/dex/algebra/lib/AlgebraMath.js +440 -0
  16. package/build/dex/algebra/lib/AlgebraMath.js.map +1 -0
  17. package/build/dex/algebra/lib/AlgebraXUniV3.d.ts +5 -0
  18. package/build/dex/algebra/lib/AlgebraXUniV3.js +45 -0
  19. package/build/dex/algebra/lib/AlgebraXUniV3.js.map +1 -0
  20. package/build/dex/algebra/lib/Constants.d.ts +5 -0
  21. package/build/dex/algebra/lib/Constants.js +10 -0
  22. package/build/dex/algebra/lib/Constants.js.map +1 -0
  23. package/build/dex/algebra/lib/DataStorage.d.ts +19 -0
  24. package/build/dex/algebra/lib/DataStorage.js +466 -0
  25. package/build/dex/algebra/lib/DataStorage.js.map +1 -0
  26. package/build/dex/algebra/lib/DataStorageOperator.d.ts +10 -0
  27. package/build/dex/algebra/lib/DataStorageOperator.js +93 -0
  28. package/build/dex/algebra/lib/DataStorageOperator.js.map +1 -0
  29. package/build/dex/algebra/lib/Sqrt.d.ts +3 -0
  30. package/build/dex/algebra/lib/Sqrt.js +60 -0
  31. package/build/dex/algebra/lib/Sqrt.js.map +1 -0
  32. package/build/dex/algebra/lib/TickManager.d.ts +10 -0
  33. package/build/dex/algebra/lib/TickManager.js +3 -0
  34. package/build/dex/algebra/lib/TickManager.js.map +1 -0
  35. package/build/dex/algebra/types.d.ts +75 -0
  36. package/build/dex/{pancakeswap-v3 → algebra}/types.js.map +1 -1
  37. package/build/dex/algebra/utils.d.ts +4 -0
  38. package/build/dex/algebra/utils.js +60 -0
  39. package/build/dex/algebra/utils.js.map +1 -0
  40. package/build/dex/uniswap-v3/config.js +15 -0
  41. package/build/dex/uniswap-v3/config.js.map +1 -1
  42. package/package.json +1 -1
  43. package/src/config.ts +2 -2
  44. package/src/dex/uniswap-v3/config.ts +16 -0
  45. package/src/dex/uniswap-v3/uniswap-v3-e2e.test.ts +86 -0
  46. package/.idea/aws.xml +0 -17
  47. package/.idea/codeStyles/Project.xml +0 -19
  48. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  49. package/.idea/misc.xml +0 -6
  50. package/.idea/modules.xml +0 -8
  51. package/.idea/paraswap-dex-lib.iml +0 -9
  52. package/.idea/vcs.xml +0 -6
  53. package/build/dex/aave-v3/tokens/arbitrum.json +0 -50
  54. package/build/dex/aave-v3/tokens/avalanche.json +0 -74
  55. package/build/dex/aave-v3/tokens/fantom.json +0 -62
  56. package/build/dex/aave-v3/tokens/optimism.json +0 -50
  57. package/build/dex/aave-v3/tokens/polygon.json +0 -116
  58. package/build/dex/pancakeswap-v3/types.d.ts +0 -14
  59. package/build/dex/solidly/forks-override/ramses.d.ts +0 -8
  60. package/build/dex/solidly/forks-override/ramses.js +0 -15
  61. package/build/dex/solidly/forks-override/ramses.js.map +0 -1
  62. /package/build/dex/{pancakeswap-v3 → algebra}/types.js +0 -0
@@ -1,62 +0,0 @@
1
- [
2
- {
3
- "aSymbol": "aFanAAVE",
4
- "aAddress": "0xf329e36c7bf6e5e86ce2150875a84ce77f477375",
5
- "address": "0x6a07a792ab2965c72a5b8088d3a069a7ac3a993b",
6
- "decimals": 18
7
- },
8
- {
9
- "aSymbol": "aFanDAI",
10
- "aAddress": "0x82e64f49ed5ec1bc6e43dad4fc8af9bb3a2312ee",
11
- "address": "0x8d11ec38a3eb5e956b052f67da8bdc9bef8abf3e",
12
- "decimals": 18
13
- },
14
- {
15
- "aSymbol": "aFanUSDT",
16
- "aAddress": "0x6ab707aca953edaefbc4fd23ba73294241490620",
17
- "address": "0x049d68029688eabf473097a2fc38ef61633a3c7a",
18
- "decimals": 6
19
- },
20
- {
21
- "aSymbol": "aFanLINK",
22
- "aAddress": "0x191c10aa4af7c30e871e70c95db0e4eb77237530",
23
- "address": "0xb3654dc3d10ea7645f8319668e8f54d2574fbdc8",
24
- "decimals": 18
25
- },
26
- {
27
- "aSymbol": "aFanWFTM",
28
- "aAddress": "0x6d80113e533a2c0fe82eabd35f1875dcea89ea97",
29
- "address": "0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83",
30
- "decimals": 18
31
- },
32
- {
33
- "aSymbol": "aFanUSDC",
34
- "aAddress": "0x625e7708f30ca75bfd92586e17077590c60eb4cd",
35
- "address": "0x04068da6c83afcfa0e13ba15a6696662335d5b75",
36
- "decimals": 6
37
- },
38
- {
39
- "aSymbol": "aFanWBTC",
40
- "aAddress": "0x078f358208685046a11c85e8ad32895ded33a249",
41
- "address": "0x321162cd933e2be498cd2267a90534a804051b11",
42
- "decimals": 8
43
- },
44
- {
45
- "aSymbol": "aFanWETH",
46
- "aAddress": "0xe50fa9b3c56ffb159cb0fca61f5c9d750e8128c8",
47
- "address": "0x74b23882a30290451a17c44f4f05243b6b58c76d",
48
- "decimals": 18
49
- },
50
- {
51
- "aSymbol": "aFanCRV",
52
- "aAddress": "0x513c7e3a9c69ca3e22550ef58ac1c0088e918fff",
53
- "address": "0x1e4f97b9f9f913c46f1632781732927b9019c68b",
54
- "decimals": 18
55
- },
56
- {
57
- "aSymbol": "aFanSUSHI",
58
- "aAddress": "0xc45a479877e1e9dfe9fcd4056c699575a1045daa",
59
- "address": "0xae75a438b2e0cb8bb01ec1e1e376de11d44477cc",
60
- "decimals": 18
61
- }
62
- ]
@@ -1,50 +0,0 @@
1
- [
2
- {
3
- "aSymbol": "aOptDAI",
4
- "aAddress": "0x82E64f49Ed5EC1bC6e43DAD4FC8Af9bb3A2312EE",
5
- "address": "0xda10009cbd5d07dd0cecc66161fc93d7c9000da1",
6
- "decimals": 18
7
- },
8
- {
9
- "aSymbol": "aOptSUSD",
10
- "aAddress": "0x6d80113e533a2C0fe82EaBD35f1875DcEA89Ea97",
11
- "address": "0x8c6f28f2f1a3c87f0f938b96d27520d9751ec8d9",
12
- "decimals": 18
13
- },
14
- {
15
- "aSymbol": "aOptUSDC",
16
- "aAddress": "0x625E7708f30cA75bfd92586e17077590C60eb4cD",
17
- "address": "0x7f5c764cbc14f9669b88837ca1490cca17c31607",
18
- "decimals": 6
19
- },
20
- {
21
- "aSymbol": "aOptUSDT",
22
- "aAddress": "0x6ab707aca953edaefbc4fd23ba73294241490620",
23
- "address": "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58",
24
- "decimals": 6
25
- },
26
- {
27
- "aSymbol": "aOptAAVE",
28
- "aAddress": "0xf329e36C7bF6E5E86ce2150875a84Ce77f477375",
29
- "address": "0x76fb31fb4af56892a25e32cfc43de717950c9278",
30
- "decimals": 18
31
- },
32
- {
33
- "aSymbol": "aOptLINK",
34
- "aAddress": "0x191c10Aa4AF7C30e871E70C95dB0E4eb77237530",
35
- "address": "0x350a791Bfc2C21F9Ed5d10980Dad2e2638ffa7f6",
36
- "decimals": 18
37
- },
38
- {
39
- "aSymbol": "aOptWBTC",
40
- "aAddress": "0x078f358208685046a11C85e8ad32895DED33A249",
41
- "address": "0x68f180fcce6836688e9084f035309e29bf0a2095",
42
- "decimals": 8
43
- },
44
- {
45
- "aSymbol": "aOptWETH",
46
- "aAddress": "0xe50fA9b3c56FfB159cB0FCA61F5c9D750e8128c8",
47
- "address": "0x4200000000000000000000000000000000000006",
48
- "decimals": 18
49
- }
50
- ]
@@ -1,116 +0,0 @@
1
- [
2
- {
3
- "aSymbol": "aPolAGEUR",
4
- "aAddress": "0x8437d7c167dfb82ed4cb79cd44b7a32a1dd95c77",
5
- "address": "0xe0b52e49357fd4daf2c15e02058dce6bc0057db4",
6
- "decimals": 18
7
- },
8
- {
9
- "aSymbol": "aPolDAI",
10
- "aAddress": "0x82e64f49ed5ec1bc6e43dad4fc8af9bb3a2312ee",
11
- "address": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063",
12
- "decimals": 18
13
- },
14
- {
15
- "aSymbol": "aPolEURS",
16
- "aAddress": "0x38d693ce1df5aadf7bc62595a37d667ad57922e5",
17
- "address": "0xe111178a87a3bff0c8d18decba5798827539ae99",
18
- "decimals": 2
19
- },
20
- {
21
- "aSymbol": "aPolJEUR",
22
- "aAddress": "0x6533afac2e7bccb20dca161449a13a32d391fb00",
23
- "address": "0x4e3decbb3645551b8a19f0ea1678079fcb33fb4c",
24
- "decimals": 18
25
- },
26
- {
27
- "aSymbol": "aPolMIMATIC",
28
- "aAddress": "0xeBe517846d0F36eCEd99C735cbF6131e1fEB775D",
29
- "address": "0xa3Fa99A148fA48D14Ed51d610c367C61876997F1",
30
- "decimals": 18
31
- },
32
- {
33
- "aSymbol": "aPolUSDC",
34
- "aAddress": "0x625e7708f30ca75bfd92586e17077590c60eb4cd",
35
- "address": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
36
- "decimals": 6
37
- },
38
- {
39
- "aSymbol": "aPolUSDT",
40
- "aAddress": "0x6ab707aca953edaefbc4fd23ba73294241490620",
41
- "address": "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
42
- "decimals": 6
43
- },
44
- {
45
- "aSymbol": "aPolAAVE",
46
- "aAddress": "0xf329e36c7bf6e5e86ce2150875a84ce77f477375",
47
- "address": "0xd6df932a45c0f255f85145f286ea0b292b21c90b",
48
- "decimals": 18
49
- },
50
- {
51
- "aSymbol": "aPolBAL",
52
- "aAddress": "0x8ffdf2de812095b1d19cb146e4c004587c0a0692",
53
- "address": "0x9a71012b13ca4d3d0cdc72a177df3ef03b0e76a3",
54
- "decimals": 18
55
- },
56
- {
57
- "aSymbol": "aPolCRV",
58
- "aAddress": "0x513c7e3a9c69ca3e22550ef58ac1c0088e918fff",
59
- "address": "0x172370d5cd63279efa6d502dab29171933a610af",
60
- "decimals": 18
61
- },
62
- {
63
- "aSymbol": "aPolDPI",
64
- "aAddress": "0x724dc807b04555b71ed48a6896b6f41593b8c637",
65
- "address": "0x85955046df4668e1dd369d2de9f3aeb98dd2a369",
66
- "decimals": 18
67
- },
68
- {
69
- "aSymbol": "aPolGHST",
70
- "aAddress": "0x8eb270e296023e9d92081fdf967ddd7878724424",
71
- "address": "0x385eeac5cb85a38a9a07a70c73e0a3271cfb54a7",
72
- "decimals": 18
73
- },
74
- {
75
- "aSymbol": "aPolLINK",
76
- "aAddress": "0x191c10aa4af7c30e871e70c95db0e4eb77237530",
77
- "address": "0x53e0bca35ec356bd5dddfebbd1fc0fd03fabad39",
78
- "decimals": 18
79
- },
80
- {
81
- "aSymbol": "aPolMATICX",
82
- "aAddress": "0x80cA0d8C38d2e2BcbaB66aA1648Bd1C7160500FE",
83
- "address": "0xfa68FB4628DFF1028CFEc22b4162FCcd0d45efb6",
84
- "decimals": 18
85
- },
86
- {
87
- "aSymbol": "aPolSTMATIC",
88
- "aAddress": "0xEA1132120ddcDDA2F119e99Fa7A27a0d036F7Ac9",
89
- "address": "0x3A58a54C066FdC0f2D55FC9C89F0415C92eBf3C4",
90
- "decimals": 18
91
- },
92
- {
93
- "aSymbol": "aPolSUSHI",
94
- "aAddress": "0xc45a479877e1e9dfe9fcd4056c699575a1045daa",
95
- "address": "0x0b3f868e0be5597d5db7feb59e1cadbb0fdda50a",
96
- "decimals": 18
97
- },
98
- {
99
- "aSymbol": "aPolWBTC",
100
- "aAddress": "0x078f358208685046a11c85e8ad32895ded33a249",
101
- "address": "0x1bfd67037b42cf73acf2047067bd4f2c47d9bfd6",
102
- "decimals": 8
103
- },
104
- {
105
- "aSymbol": "aPolWETH",
106
- "aAddress": "0xe50fa9b3c56ffb159cb0fca61f5c9d750e8128c8",
107
- "address": "0x7ceb23fd6bc0add59e62ac25578270cff1b9f619",
108
- "decimals": 18
109
- },
110
- {
111
- "aSymbol": "aPolWMATIC",
112
- "aAddress": "0x6d80113e533a2c0fe82eabd35f1875dcea89ea97",
113
- "address": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
114
- "decimals": 18
115
- }
116
- ]
@@ -1,14 +0,0 @@
1
- import { Address } from '../../types';
2
- export declare type DexParams = {
3
- router: Address;
4
- quoter: Address;
5
- factory: Address;
6
- stateMulticall: Address;
7
- uniswapMulticall: Address;
8
- supportedFees: bigint[];
9
- feeProtocols: bigint[];
10
- chunksCount: number;
11
- deployer?: Address;
12
- subgraphURL: string;
13
- initHash: string;
14
- };
@@ -1,8 +0,0 @@
1
- import { Network } from '../../../constants';
2
- import { Chronos } from './chronos';
3
- export declare class Ramses extends Chronos {
4
- static dexKeysWithNetwork: {
5
- key: string;
6
- networks: Network[];
7
- }[];
8
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Ramses = void 0;
7
- const utils_1 = require("../../../utils");
8
- const config_1 = require("../config");
9
- const lodash_1 = __importDefault(require("lodash"));
10
- const chronos_1 = require("./chronos");
11
- class Ramses extends chronos_1.Chronos {
12
- }
13
- exports.Ramses = Ramses;
14
- Ramses.dexKeysWithNetwork = (0, utils_1.getDexKeysWithNetwork)(lodash_1.default.pick(config_1.SolidlyConfig, ['Ramses']));
15
- //# sourceMappingURL=ramses.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ramses.js","sourceRoot":"","sources":["../../../../src/dex/solidly/forks-override/ramses.ts"],"names":[],"mappings":";;;;;;AACA,0CAAuD;AACvD,sCAA0C;AAC1C,oDAAuB;AACvB,uCAAoC;AAIpC,MAAa,MAAO,SAAQ,iBAAO;;AAAnC,wBAGC;AAFe,yBAAkB,GAC9B,IAAA,6BAAqB,EAAC,gBAAC,CAAC,IAAI,CAAC,sBAAa,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC"}
File without changes