@paraswap/dex-lib 3.8.12 → 3.8.13

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 (172) hide show
  1. package/build/abi/concentrator/arUSD.json +568 -0
  2. package/build/abi/{wombat/pool.json → fx-protocol/FxUSD.json} +541 -603
  3. package/build/abi/inception/inception-ineth-pool.json +1062 -0
  4. package/build/abi/inception/inception-ineth.json +609 -0
  5. package/build/abi/inception/inception-ratio-feed.json +93 -0
  6. package/build/abi/inception/inception-vault.json +991 -0
  7. package/build/abi/infusion/InfusionFactory.json +147 -0
  8. package/build/abi/infusion/InfusionPair.json +658 -0
  9. package/build/abi/infusion/InfusionRouter.json +442 -0
  10. package/build/abi/oswap/oswap.abi.json +452 -0
  11. package/build/config.js +6 -6
  12. package/build/dex/aave-v1/aave-v1.js +0 -1
  13. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  14. package/build/dex/concentrator-arusd/concentrator-arusd.d.ts +38 -0
  15. package/build/dex/concentrator-arusd/concentrator-arusd.js +184 -0
  16. package/build/dex/concentrator-arusd/concentrator-arusd.js.map +1 -0
  17. package/build/dex/concentrator-arusd/config.d.ts +4 -0
  18. package/build/dex/concentrator-arusd/config.js +18 -0
  19. package/build/dex/concentrator-arusd/config.js.map +1 -0
  20. package/build/dex/concentrator-arusd/types.d.ts +10 -0
  21. package/build/dex/concentrator-arusd/types.js +3 -0
  22. package/build/dex/concentrator-arusd/types.js.map +1 -0
  23. package/build/dex/fx-protocol-rusd/config.d.ts +4 -0
  24. package/build/dex/fx-protocol-rusd/config.js +18 -0
  25. package/build/dex/fx-protocol-rusd/config.js.map +1 -0
  26. package/build/dex/fx-protocol-rusd/fx-protocol-rusd.d.ts +39 -0
  27. package/build/dex/fx-protocol-rusd/fx-protocol-rusd.js +196 -0
  28. package/build/dex/fx-protocol-rusd/fx-protocol-rusd.js.map +1 -0
  29. package/build/dex/fx-protocol-rusd/types.d.ts +10 -0
  30. package/build/dex/fx-protocol-rusd/types.js +3 -0
  31. package/build/dex/fx-protocol-rusd/types.js.map +1 -0
  32. package/build/dex/idle-dao/idle-dao-pool.d.ts +56 -0
  33. package/build/dex/idle-dao/idle-dao-pool.js +176 -0
  34. package/build/dex/idle-dao/idle-dao-pool.js.map +1 -0
  35. package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +16 -0
  36. package/build/dex/idle-dao/idle-dao-pooling-pool.js +57 -0
  37. package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +1 -0
  38. package/build/dex/idle-dao/scripts.d.ts +9 -0
  39. package/build/dex/idle-dao/scripts.js +552 -0
  40. package/build/dex/idle-dao/scripts.js.map +1 -0
  41. package/build/dex/inception/config.d.ts +5 -0
  42. package/build/dex/inception/config.js +112 -0
  43. package/build/dex/inception/config.js.map +1 -0
  44. package/build/dex/inception/inception-event-pool.d.ts +23 -0
  45. package/build/dex/inception/inception-event-pool.js +34 -0
  46. package/build/dex/inception/inception-event-pool.js.map +1 -0
  47. package/build/dex/inception/inception-native.d.ts +43 -0
  48. package/build/dex/inception/inception-native.js +131 -0
  49. package/build/dex/inception/inception-native.js.map +1 -0
  50. package/build/dex/inception/inception-pool.d.ts +18 -0
  51. package/build/dex/inception/inception-pool.js +32 -0
  52. package/build/dex/inception/inception-pool.js.map +1 -0
  53. package/build/dex/inception/inception-price-feed.d.ts +19 -0
  54. package/build/dex/inception/inception-price-feed.js +51 -0
  55. package/build/dex/inception/inception-price-feed.js.map +1 -0
  56. package/build/dex/inception/inception.d.ts +44 -0
  57. package/build/dex/inception/inception.js +162 -0
  58. package/build/dex/inception/inception.js.map +1 -0
  59. package/build/dex/inception/tokens.d.ts +9 -0
  60. package/build/dex/inception/tokens.js +28 -0
  61. package/build/dex/inception/tokens.js.map +1 -0
  62. package/build/dex/inception/types.d.ts +22 -0
  63. package/build/dex/inception/types.js +3 -0
  64. package/build/dex/inception/types.js.map +1 -0
  65. package/build/dex/inception/utils.d.ts +7 -0
  66. package/build/dex/inception/utils.js +58 -0
  67. package/build/dex/inception/utils.js.map +1 -0
  68. package/build/dex/infusion/config.d.ts +4 -0
  69. package/build/dex/infusion/config.js +25 -0
  70. package/build/dex/infusion/config.js.map +1 -0
  71. package/build/dex/infusion/infusion-stable-pool.d.ts +4 -0
  72. package/build/dex/infusion/infusion-stable-pool.js +74 -0
  73. package/build/dex/infusion/infusion-stable-pool.js.map +1 -0
  74. package/build/dex/infusion/infusion.d.ts +54 -0
  75. package/build/dex/infusion/infusion.js +532 -0
  76. package/build/dex/infusion/infusion.js.map +1 -0
  77. package/build/dex/infusion/types.d.ts +47 -0
  78. package/build/dex/infusion/types.js +3 -0
  79. package/build/dex/infusion/types.js.map +1 -0
  80. package/build/dex/infusion/utils/isStablePair.d.ts +2 -0
  81. package/build/dex/infusion/utils/isStablePair.js +18 -0
  82. package/build/dex/infusion/utils/isStablePair.js.map +1 -0
  83. package/build/dex/oswap/config.d.ts +5 -0
  84. package/build/dex/oswap/config.js +31 -0
  85. package/build/dex/oswap/config.js.map +1 -0
  86. package/build/dex/oswap/oswap-pool.d.ts +51 -0
  87. package/build/dex/oswap/oswap-pool.js +150 -0
  88. package/build/dex/oswap/oswap-pool.js.map +1 -0
  89. package/build/dex/oswap/oswap.d.ts +46 -0
  90. package/build/dex/oswap/oswap.js +263 -0
  91. package/build/dex/oswap/oswap.js.map +1 -0
  92. package/build/dex/oswap/types.d.ts +20 -0
  93. package/build/dex/oswap/types.js +3 -0
  94. package/build/dex/oswap/types.js.map +1 -0
  95. package/build/dex/platypus/platypus.js +3 -17
  96. package/build/dex/platypus/platypus.js.map +1 -1
  97. package/build/dex/solidly-v3/config.js +39 -0
  98. package/build/dex/solidly-v3/config.js.map +1 -1
  99. package/build/dex/swaap-v1/swaap-v1.js +0 -4
  100. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  101. package/build/implementations/local-paraswap-sdk.d.ts +2 -0
  102. package/build/implementations/local-paraswap-sdk.js +7 -0
  103. package/build/implementations/local-paraswap-sdk.js.map +1 -1
  104. package/package.json +1 -1
  105. package/src/config.ts +6 -6
  106. package/src/dex/solidly-v3/config.ts +42 -0
  107. package/src/dex/solidly-v3/solidly-v3-e2e.test.ts +114 -3
  108. package/src/implementations/local-paraswap-sdk.ts +8 -0
  109. package/tests/constants-e2e.ts +1 -1
  110. package/.vscode/launch.json +0 -53
  111. package/.vscode/settings.json +0 -2
  112. package/.vscode/tasks.json +0 -15
  113. package/build/abi/maverick-v2/MaverickV2Router.json +0 -778
  114. package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +0 -52
  115. package/build/dex/aave-v2/tokens-avalanche.json +0 -44
  116. package/build/dex/aave-v2/tokens-mainnet.json +0 -188
  117. package/build/dex/aave-v2/tokens-polygon.json +0 -44
  118. package/build/dex/bProtocol.d.ts +0 -18
  119. package/build/dex/bProtocol.js +0 -39
  120. package/build/dex/bProtocol.js.map +0 -1
  121. package/build/dex/bancor.d.ts +0 -26
  122. package/build/dex/bancor.js +0 -58
  123. package/build/dex/bancor.js.map +0 -1
  124. package/build/dex/compound.d.ts +0 -18
  125. package/build/dex/compound.js +0 -46
  126. package/build/dex/compound.js.map +0 -1
  127. package/build/dex/curve-v2.d.ts +0 -58
  128. package/build/dex/curve-v2.js +0 -180
  129. package/build/dex/curve-v2.js.map +0 -1
  130. package/build/dex/dodo-v1.d.ts +0 -33
  131. package/build/dex/dodo-v1.js +0 -63
  132. package/build/dex/dodo-v1.js.map +0 -1
  133. package/build/dex/lido.d.ts +0 -19
  134. package/build/dex/lido.js +0 -42
  135. package/build/dex/lido.js.map +0 -1
  136. package/build/dex/maker-psm/scripts/gem.abi.json +0 -136
  137. package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
  138. package/build/dex/maker-psm/scripts/validate-state.js +0 -185
  139. package/build/dex/maker-psm/scripts/validate-state.js.map +0 -1
  140. package/build/dex/maker-psm/scripts/vat.abi.json +0 -243
  141. package/build/dex/onebit.d.ts +0 -25
  142. package/build/dex/onebit.js +0 -42
  143. package/build/dex/onebit.js.map +0 -1
  144. package/build/dex/smoothy.d.ts +0 -26
  145. package/build/dex/smoothy.js +0 -48
  146. package/build/dex/smoothy.js.map +0 -1
  147. package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +0 -1
  148. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +0 -53
  149. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +0 -1
  150. package/build/dex/stable-pool.d.ts +0 -28
  151. package/build/dex/stable-pool.js +0 -55
  152. package/build/dex/stable-pool.js.map +0 -1
  153. package/build/dex/trader-joe-v2.1/base.d.ts +0 -18
  154. package/build/dex/trader-joe-v2.1/base.js +0 -99
  155. package/build/dex/trader-joe-v2.1/base.js.map +0 -1
  156. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.d.ts +0 -7
  157. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js +0 -20
  158. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js.map +0 -1
  159. package/build/dex/trader-joe-v2.1/trader-joe-v2.2.d.ts +0 -7
  160. package/build/dex/trader-joe-v2.1/trader-joe-v2.2.js +0 -20
  161. package/build/dex/trader-joe-v2.1/trader-joe-v2.2.js.map +0 -1
  162. package/build/dex/trader-joe-v2.1.d.ts +0 -43
  163. package/build/dex/trader-joe-v2.1.js +0 -79
  164. package/build/dex/trader-joe-v2.1.js.map +0 -1
  165. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +0 -17
  166. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +0 -64
  167. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +0 -1
  168. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +0 -17
  169. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +0 -79
  170. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +0 -1
  171. package/config.ts +0 -1946
  172. package/src/dex/dexs.txt +0 -58
@@ -0,0 +1,147 @@
1
+ [
2
+ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" },
3
+ {
4
+ "anonymous": false,
5
+ "inputs": [
6
+ {
7
+ "indexed": true,
8
+ "internalType": "address",
9
+ "name": "token0",
10
+ "type": "address"
11
+ },
12
+ {
13
+ "indexed": true,
14
+ "internalType": "address",
15
+ "name": "token1",
16
+ "type": "address"
17
+ },
18
+ {
19
+ "indexed": false,
20
+ "internalType": "bool",
21
+ "name": "stable",
22
+ "type": "bool"
23
+ },
24
+ {
25
+ "indexed": false,
26
+ "internalType": "address",
27
+ "name": "pair",
28
+ "type": "address"
29
+ },
30
+ {
31
+ "indexed": false,
32
+ "internalType": "uint256",
33
+ "name": "",
34
+ "type": "uint256"
35
+ }
36
+ ],
37
+ "name": "PairCreated",
38
+ "type": "event"
39
+ },
40
+ {
41
+ "inputs": [],
42
+ "name": "acceptPauser",
43
+ "outputs": [],
44
+ "stateMutability": "nonpayable",
45
+ "type": "function"
46
+ },
47
+ {
48
+ "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
49
+ "name": "allPairs",
50
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
51
+ "stateMutability": "view",
52
+ "type": "function"
53
+ },
54
+ {
55
+ "inputs": [],
56
+ "name": "allPairsLength",
57
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
58
+ "stateMutability": "view",
59
+ "type": "function"
60
+ },
61
+ {
62
+ "inputs": [
63
+ { "internalType": "address", "name": "tokenA", "type": "address" },
64
+ { "internalType": "address", "name": "tokenB", "type": "address" },
65
+ { "internalType": "bool", "name": "stable", "type": "bool" }
66
+ ],
67
+ "name": "createPair",
68
+ "outputs": [
69
+ { "internalType": "address", "name": "pair", "type": "address" }
70
+ ],
71
+ "stateMutability": "nonpayable",
72
+ "type": "function"
73
+ },
74
+ {
75
+ "inputs": [],
76
+ "name": "getInitializable",
77
+ "outputs": [
78
+ { "internalType": "address", "name": "", "type": "address" },
79
+ { "internalType": "address", "name": "", "type": "address" },
80
+ { "internalType": "bool", "name": "", "type": "bool" }
81
+ ],
82
+ "stateMutability": "view",
83
+ "type": "function"
84
+ },
85
+ {
86
+ "inputs": [
87
+ { "internalType": "address", "name": "", "type": "address" },
88
+ { "internalType": "address", "name": "", "type": "address" },
89
+ { "internalType": "bool", "name": "", "type": "bool" }
90
+ ],
91
+ "name": "getPair",
92
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
93
+ "stateMutability": "view",
94
+ "type": "function"
95
+ },
96
+ {
97
+ "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
98
+ "name": "isPair",
99
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
100
+ "stateMutability": "view",
101
+ "type": "function"
102
+ },
103
+ {
104
+ "inputs": [],
105
+ "name": "isPaused",
106
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
107
+ "stateMutability": "view",
108
+ "type": "function"
109
+ },
110
+ {
111
+ "inputs": [],
112
+ "name": "pairCodeHash",
113
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
114
+ "stateMutability": "pure",
115
+ "type": "function"
116
+ },
117
+ {
118
+ "inputs": [],
119
+ "name": "pauser",
120
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
121
+ "stateMutability": "view",
122
+ "type": "function"
123
+ },
124
+ {
125
+ "inputs": [],
126
+ "name": "pendingPauser",
127
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
128
+ "stateMutability": "view",
129
+ "type": "function"
130
+ },
131
+ {
132
+ "inputs": [{ "internalType": "bool", "name": "_state", "type": "bool" }],
133
+ "name": "setPause",
134
+ "outputs": [],
135
+ "stateMutability": "nonpayable",
136
+ "type": "function"
137
+ },
138
+ {
139
+ "inputs": [
140
+ { "internalType": "address", "name": "_pauser", "type": "address" }
141
+ ],
142
+ "name": "setPauser",
143
+ "outputs": [],
144
+ "stateMutability": "nonpayable",
145
+ "type": "function"
146
+ }
147
+ ]