@paraswap/dex-lib 4.2.14 → 4.2.15

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 (104) hide show
  1. package/build/abi/BProtocol.json +1155 -0
  2. package/build/abi/Jarvis.json +1172 -0
  3. package/build/abi/MStableAsset.json +1545 -0
  4. package/build/abi/OneInchLp.json +1304 -0
  5. package/build/abi/Onebit.json +736 -0
  6. package/build/abi/Shell.json +1294 -0
  7. package/build/abi/TraderJoeV2Router.json +50 -0
  8. package/build/abi/algebra-integral/Quoter.abi.json +231 -0
  9. package/build/abi/algebra-integral/SwapRouter.abi.json +810 -0
  10. package/build/abi/wUSDM.json +757 -0
  11. package/build/abi/zrx.v2.json +1967 -0
  12. package/build/abi/zrx.v3.json +3454 -0
  13. package/build/abi/zrx.v4.json +2193 -0
  14. package/build/dex/OneInchLp.d.ts +24 -0
  15. package/build/dex/OneInchLp.js +43 -0
  16. package/build/dex/OneInchLp.js.map +1 -0
  17. package/build/dex/algebra-integral/algebra-integral.d.ts +43 -0
  18. package/build/dex/algebra-integral/algebra-integral.js +446 -0
  19. package/build/dex/algebra-integral/algebra-integral.js.map +1 -0
  20. package/build/dex/algebra-integral/config.d.ts +3 -0
  21. package/build/dex/algebra-integral/config.js +17 -0
  22. package/build/dex/algebra-integral/config.js.map +1 -0
  23. package/build/dex/algebra-integral/types.d.ts +33 -0
  24. package/build/dex/algebra-integral/types.js +10 -0
  25. package/build/dex/algebra-integral/types.js.map +1 -0
  26. package/build/dex/bProtocol/bProtocol.d.ts +15 -0
  27. package/build/dex/bProtocol/bProtocol.js +56 -0
  28. package/build/dex/bProtocol/bProtocol.js.map +1 -0
  29. package/build/dex/bProtocol/types.d.ts +11 -0
  30. package/build/dex/bProtocol/types.js +8 -0
  31. package/build/dex/bProtocol/types.js.map +1 -0
  32. package/build/dex/jarvis.d.ts +56 -0
  33. package/build/dex/jarvis.js +163 -0
  34. package/build/dex/jarvis.js.map +1 -0
  35. package/build/dex/lido/lido.d.ts +3 -2
  36. package/build/dex/lido/lido.js +8 -8
  37. package/build/dex/lido/lido.js.map +1 -1
  38. package/build/dex/mStable.d.ts +44 -0
  39. package/build/dex/mStable.js +75 -0
  40. package/build/dex/mStable.js.map +1 -0
  41. package/build/dex/onebit/onebit.d.ts +16 -0
  42. package/build/dex/onebit/onebit.js +61 -0
  43. package/build/dex/onebit/onebit.js.map +1 -0
  44. package/build/dex/onebit/types.d.ts +14 -0
  45. package/build/dex/onebit/types.js +8 -0
  46. package/build/dex/onebit/types.js.map +1 -0
  47. package/build/dex/shell.d.ts +25 -0
  48. package/build/dex/shell.js +41 -0
  49. package/build/dex/shell.js.map +1 -0
  50. package/build/dex/trader-joe-v2.d.ts +40 -0
  51. package/build/dex/trader-joe-v2.js +74 -0
  52. package/build/dex/trader-joe-v2.js.map +1 -0
  53. package/build/dex/uniswap-v3/uniswap-v3-new.d.ts +94 -0
  54. package/build/dex/uniswap-v3/uniswap-v3-new.js +923 -0
  55. package/build/dex/uniswap-v3/uniswap-v3-new.js.map +1 -0
  56. package/build/dex/{miro-migrator → usual-bond}/config.d.ts +1 -1
  57. package/build/dex/usual-bond/config.js +13 -0
  58. package/build/dex/usual-bond/config.js.map +1 -0
  59. package/build/dex/usual-bond/types.d.ts +7 -0
  60. package/build/dex/usual-bond/types.js +3 -0
  61. package/build/dex/usual-bond/types.js.map +1 -0
  62. package/build/dex/usual-bond/usual-bond.d.ts +35 -0
  63. package/build/dex/usual-bond/usual-bond.js +176 -0
  64. package/build/dex/usual-bond/usual-bond.js.map +1 -0
  65. package/build/dex/wusdm/config.d.ts +3 -0
  66. package/build/dex/wusdm/config.js +43 -0
  67. package/build/dex/wusdm/config.js.map +1 -0
  68. package/build/dex/wusdm/constants.d.ts +2 -0
  69. package/build/dex/wusdm/constants.js +6 -0
  70. package/build/dex/wusdm/constants.js.map +1 -0
  71. package/build/dex/wusdm/types.d.ts +18 -0
  72. package/build/dex/wusdm/types.js +11 -0
  73. package/build/dex/wusdm/types.js.map +1 -0
  74. package/build/dex/wusdm/wusdm-pool.d.ts +21 -0
  75. package/build/dex/wusdm/wusdm-pool.js +74 -0
  76. package/build/dex/wusdm/wusdm-pool.js.map +1 -0
  77. package/build/dex/{miro-migrator/miro-migrator.d.ts → wusdm/wusdm.d.ts} +24 -17
  78. package/build/dex/wusdm/wusdm.js +243 -0
  79. package/build/dex/wusdm/wusdm.js.map +1 -0
  80. package/build/dex/zerox/config.d.ts +2 -0
  81. package/build/dex/zerox/config.js +33 -0
  82. package/build/dex/zerox/config.js.map +1 -0
  83. package/build/dex/zerox/index.d.ts +22 -0
  84. package/build/dex/zerox/index.js +225 -0
  85. package/build/dex/zerox/index.js.map +1 -0
  86. package/build/dex/zerox/order.d.ts +88 -0
  87. package/build/dex/zerox/order.js +53 -0
  88. package/build/dex/zerox/order.js.map +1 -0
  89. package/build/dex/zerox/types.d.ts +73 -0
  90. package/build/dex/zerox/types.js +21 -0
  91. package/build/dex/zerox/types.js.map +1 -0
  92. package/build/types.d.ts +2 -1
  93. package/package.json +1 -1
  94. package/build/abi/miro-migrator/MiroMigrator.abi.json +0 -540
  95. package/build/dex/miro-migrator/config.js +0 -14
  96. package/build/dex/miro-migrator/config.js.map +0 -1
  97. package/build/dex/miro-migrator/constants.d.ts +0 -1
  98. package/build/dex/miro-migrator/constants.js +0 -5
  99. package/build/dex/miro-migrator/constants.js.map +0 -1
  100. package/build/dex/miro-migrator/miro-migrator.js +0 -152
  101. package/build/dex/miro-migrator/miro-migrator.js.map +0 -1
  102. package/build/dex/miro-migrator/types.d.ts +0 -10
  103. package/build/dex/miro-migrator/types.js +0 -8
  104. package/build/dex/miro-migrator/types.js.map +0 -1
@@ -0,0 +1,50 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ { "internalType": "uint256", "name": "_amountIn", "type": "uint256" },
5
+ { "internalType": "uint256", "name": "_amountOutMin", "type": "uint256" },
6
+ {
7
+ "internalType": "uint256[]",
8
+ "name": "_pairBinSteps",
9
+ "type": "uint256[]"
10
+ },
11
+ {
12
+ "internalType": "contract IERC20[]",
13
+ "name": "_tokenPath",
14
+ "type": "address[]"
15
+ },
16
+ { "internalType": "address", "name": "_to", "type": "address" },
17
+ { "internalType": "uint256", "name": "_deadline", "type": "uint256" }
18
+ ],
19
+ "name": "swapExactTokensForTokens",
20
+ "outputs": [
21
+ { "internalType": "uint256", "name": "amountOut", "type": "uint256" }
22
+ ],
23
+ "stateMutability": "nonpayable",
24
+ "type": "function"
25
+ },
26
+ {
27
+ "inputs": [
28
+ { "internalType": "uint256", "name": "_amountOut", "type": "uint256" },
29
+ { "internalType": "uint256", "name": "_amountInMax", "type": "uint256" },
30
+ {
31
+ "internalType": "uint256[]",
32
+ "name": "_pairBinSteps",
33
+ "type": "uint256[]"
34
+ },
35
+ {
36
+ "internalType": "contract IERC20[]",
37
+ "name": "_tokenPath",
38
+ "type": "address[]"
39
+ },
40
+ { "internalType": "address", "name": "_to", "type": "address" },
41
+ { "internalType": "uint256", "name": "_deadline", "type": "uint256" }
42
+ ],
43
+ "name": "swapTokensForExactTokens",
44
+ "outputs": [
45
+ { "internalType": "uint256[]", "name": "amountsIn", "type": "uint256[]" }
46
+ ],
47
+ "stateMutability": "nonpayable",
48
+ "type": "function"
49
+ }
50
+ ]
@@ -0,0 +1,231 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "_factory",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "address",
11
+ "name": "_WNativeToken",
12
+ "type": "address"
13
+ },
14
+ {
15
+ "internalType": "address",
16
+ "name": "_poolDeployer",
17
+ "type": "address"
18
+ }
19
+ ],
20
+ "stateMutability": "nonpayable",
21
+ "type": "constructor"
22
+ },
23
+ {
24
+ "inputs": [],
25
+ "name": "WNativeToken",
26
+ "outputs": [
27
+ {
28
+ "internalType": "address",
29
+ "name": "",
30
+ "type": "address"
31
+ }
32
+ ],
33
+ "stateMutability": "view",
34
+ "type": "function"
35
+ },
36
+ {
37
+ "inputs": [
38
+ {
39
+ "internalType": "int256",
40
+ "name": "amount0Delta",
41
+ "type": "int256"
42
+ },
43
+ {
44
+ "internalType": "int256",
45
+ "name": "amount1Delta",
46
+ "type": "int256"
47
+ },
48
+ {
49
+ "internalType": "bytes",
50
+ "name": "path",
51
+ "type": "bytes"
52
+ }
53
+ ],
54
+ "name": "algebraSwapCallback",
55
+ "outputs": [],
56
+ "stateMutability": "view",
57
+ "type": "function"
58
+ },
59
+ {
60
+ "inputs": [],
61
+ "name": "factory",
62
+ "outputs": [
63
+ {
64
+ "internalType": "address",
65
+ "name": "",
66
+ "type": "address"
67
+ }
68
+ ],
69
+ "stateMutability": "view",
70
+ "type": "function"
71
+ },
72
+ {
73
+ "inputs": [],
74
+ "name": "poolDeployer",
75
+ "outputs": [
76
+ {
77
+ "internalType": "address",
78
+ "name": "",
79
+ "type": "address"
80
+ }
81
+ ],
82
+ "stateMutability": "view",
83
+ "type": "function"
84
+ },
85
+ {
86
+ "inputs": [
87
+ {
88
+ "internalType": "bytes",
89
+ "name": "path",
90
+ "type": "bytes"
91
+ },
92
+ {
93
+ "internalType": "uint256",
94
+ "name": "amountIn",
95
+ "type": "uint256"
96
+ }
97
+ ],
98
+ "name": "quoteExactInput",
99
+ "outputs": [
100
+ {
101
+ "internalType": "uint256",
102
+ "name": "amountOut",
103
+ "type": "uint256"
104
+ },
105
+ {
106
+ "internalType": "uint16[]",
107
+ "name": "fees",
108
+ "type": "uint16[]"
109
+ }
110
+ ],
111
+ "stateMutability": "nonpayable",
112
+ "type": "function"
113
+ },
114
+ {
115
+ "inputs": [
116
+ {
117
+ "internalType": "address",
118
+ "name": "tokenIn",
119
+ "type": "address"
120
+ },
121
+ {
122
+ "internalType": "address",
123
+ "name": "tokenOut",
124
+ "type": "address"
125
+ },
126
+ {
127
+ "internalType": "address",
128
+ "name": "deployer",
129
+ "type": "address"
130
+ },
131
+ {
132
+ "internalType": "uint256",
133
+ "name": "amountIn",
134
+ "type": "uint256"
135
+ },
136
+ {
137
+ "internalType": "uint160",
138
+ "name": "limitSqrtPrice",
139
+ "type": "uint160"
140
+ }
141
+ ],
142
+ "name": "quoteExactInputSingle",
143
+ "outputs": [
144
+ {
145
+ "internalType": "uint256",
146
+ "name": "amountOut",
147
+ "type": "uint256"
148
+ },
149
+ {
150
+ "internalType": "uint16",
151
+ "name": "fee",
152
+ "type": "uint16"
153
+ }
154
+ ],
155
+ "stateMutability": "nonpayable",
156
+ "type": "function"
157
+ },
158
+ {
159
+ "inputs": [
160
+ {
161
+ "internalType": "bytes",
162
+ "name": "path",
163
+ "type": "bytes"
164
+ },
165
+ {
166
+ "internalType": "uint256",
167
+ "name": "amountOut",
168
+ "type": "uint256"
169
+ }
170
+ ],
171
+ "name": "quoteExactOutput",
172
+ "outputs": [
173
+ {
174
+ "internalType": "uint256",
175
+ "name": "amountIn",
176
+ "type": "uint256"
177
+ },
178
+ {
179
+ "internalType": "uint16[]",
180
+ "name": "fees",
181
+ "type": "uint16[]"
182
+ }
183
+ ],
184
+ "stateMutability": "nonpayable",
185
+ "type": "function"
186
+ },
187
+ {
188
+ "inputs": [
189
+ {
190
+ "internalType": "address",
191
+ "name": "tokenIn",
192
+ "type": "address"
193
+ },
194
+ {
195
+ "internalType": "address",
196
+ "name": "tokenOut",
197
+ "type": "address"
198
+ },
199
+ {
200
+ "internalType": "address",
201
+ "name": "deployer",
202
+ "type": "address"
203
+ },
204
+ {
205
+ "internalType": "uint256",
206
+ "name": "amountOut",
207
+ "type": "uint256"
208
+ },
209
+ {
210
+ "internalType": "uint160",
211
+ "name": "limitSqrtPrice",
212
+ "type": "uint160"
213
+ }
214
+ ],
215
+ "name": "quoteExactOutputSingle",
216
+ "outputs": [
217
+ {
218
+ "internalType": "uint256",
219
+ "name": "amountIn",
220
+ "type": "uint256"
221
+ },
222
+ {
223
+ "internalType": "uint16",
224
+ "name": "fee",
225
+ "type": "uint16"
226
+ }
227
+ ],
228
+ "stateMutability": "nonpayable",
229
+ "type": "function"
230
+ }
231
+ ]