genius-intents 0.18.2 → 0.19.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 (123) hide show
  1. package/CHANGELOG.md +46 -3
  2. package/dist/genius-intents.d.ts.map +1 -1
  3. package/dist/genius-intents.js +8 -2
  4. package/dist/genius-intents.js.map +1 -1
  5. package/dist/index.d.ts +2 -0
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +3 -1
  8. package/dist/index.js.map +1 -1
  9. package/dist/lib/dex/algebra/algebra-factory.abi.d.ts +3 -0
  10. package/dist/lib/dex/algebra/algebra-factory.abi.d.ts.map +1 -0
  11. package/dist/lib/dex/algebra/algebra-factory.abi.js +34 -0
  12. package/dist/lib/dex/algebra/algebra-factory.abi.js.map +1 -0
  13. package/dist/lib/dex/algebra/algebra-quoter.abi.d.ts +3 -0
  14. package/dist/lib/dex/algebra/algebra-quoter.abi.d.ts.map +1 -0
  15. package/dist/lib/dex/algebra/algebra-quoter.abi.js +135 -0
  16. package/dist/lib/dex/algebra/algebra-quoter.abi.js.map +1 -0
  17. package/dist/lib/dex/algebra/algebra-router.abi.d.ts +3 -0
  18. package/dist/lib/dex/algebra/algebra-router.abi.d.ts.map +1 -0
  19. package/dist/lib/dex/algebra/algebra-router.abi.js +273 -0
  20. package/dist/lib/dex/algebra/algebra-router.abi.js.map +1 -0
  21. package/dist/lib/dex/uniswapv3/slipstream-quoter.abi.d.ts +3 -0
  22. package/dist/lib/dex/uniswapv3/slipstream-quoter.abi.d.ts.map +1 -0
  23. package/dist/lib/dex/uniswapv3/slipstream-quoter.abi.js +30 -0
  24. package/dist/lib/dex/uniswapv3/slipstream-quoter.abi.js.map +1 -0
  25. package/dist/lib/dex/uniswapv3/slipstream-router.abi.d.ts +3 -0
  26. package/dist/lib/dex/uniswapv3/slipstream-router.abi.d.ts.map +1 -0
  27. package/dist/lib/dex/uniswapv3/slipstream-router.abi.js +45 -0
  28. package/dist/lib/dex/uniswapv3/slipstream-router.abi.js.map +1 -0
  29. package/dist/lib/dex/ve33/aerodrome-factory.abi.d.ts +3 -0
  30. package/dist/lib/dex/ve33/aerodrome-factory.abi.d.ts.map +1 -0
  31. package/dist/lib/dex/ve33/aerodrome-factory.abi.js +17 -0
  32. package/dist/lib/dex/ve33/aerodrome-factory.abi.js.map +1 -0
  33. package/dist/lib/dex/ve33/aerodrome-router.abi.d.ts +3 -0
  34. package/dist/lib/dex/ve33/aerodrome-router.abi.d.ts.map +1 -0
  35. package/dist/lib/dex/ve33/aerodrome-router.abi.js +119 -0
  36. package/dist/lib/dex/ve33/aerodrome-router.abi.js.map +1 -0
  37. package/dist/lib/dex/ve33/blackhole-router.abi.d.ts +3 -0
  38. package/dist/lib/dex/ve33/blackhole-router.abi.d.ts.map +1 -0
  39. package/dist/lib/dex/ve33/blackhole-router.abi.js +1492 -0
  40. package/dist/lib/dex/ve33/blackhole-router.abi.js.map +1 -0
  41. package/dist/lib/dex/ve33/pharaoh-router.abi.d.ts +3 -0
  42. package/dist/lib/dex/ve33/pharaoh-router.abi.d.ts.map +1 -0
  43. package/dist/lib/dex/ve33/pharaoh-router.abi.js +502 -0
  44. package/dist/lib/dex/ve33/pharaoh-router.abi.js.map +1 -0
  45. package/dist/lib/dex/ve33/velodrome-router.abi.d.ts +3 -0
  46. package/dist/lib/dex/ve33/velodrome-router.abi.d.ts.map +1 -0
  47. package/dist/lib/dex/ve33/velodrome-router.abi.js +634 -0
  48. package/dist/lib/dex/ve33/velodrome-router.abi.js.map +1 -0
  49. package/dist/protocols/algebra/algebra.service.d.ts +61 -0
  50. package/dist/protocols/algebra/algebra.service.d.ts.map +1 -0
  51. package/dist/protocols/algebra/algebra.service.js +562 -0
  52. package/dist/protocols/algebra/algebra.service.js.map +1 -0
  53. package/dist/protocols/algebra/algebra.types.d.ts +83 -0
  54. package/dist/protocols/algebra/algebra.types.d.ts.map +1 -0
  55. package/dist/protocols/algebra/algebra.types.js +9 -0
  56. package/dist/protocols/algebra/algebra.types.js.map +1 -0
  57. package/dist/protocols/algebra/index.d.ts +3 -0
  58. package/dist/protocols/algebra/index.d.ts.map +1 -0
  59. package/dist/protocols/algebra/index.js +21 -0
  60. package/dist/protocols/algebra/index.js.map +1 -0
  61. package/dist/protocols/okx/okx.service.d.ts +9 -8
  62. package/dist/protocols/okx/okx.service.d.ts.map +1 -1
  63. package/dist/protocols/okx/okx.service.js +133 -143
  64. package/dist/protocols/okx/okx.service.js.map +1 -1
  65. package/dist/protocols/okx/okx.types.d.ts +9 -3
  66. package/dist/protocols/okx/okx.types.d.ts.map +1 -1
  67. package/dist/protocols/relay/relay.service.d.ts +3 -0
  68. package/dist/protocols/relay/relay.service.d.ts.map +1 -1
  69. package/dist/protocols/relay/relay.service.js +7 -1
  70. package/dist/protocols/relay/relay.service.js.map +1 -1
  71. package/dist/protocols/v2-dex/v2-dex.service.d.ts +0 -3
  72. package/dist/protocols/v2-dex/v2-dex.service.d.ts.map +1 -1
  73. package/dist/protocols/v2-dex/v2-dex.service.js +54 -55
  74. package/dist/protocols/v2-dex/v2-dex.service.js.map +1 -1
  75. package/dist/protocols/v2-dex/v2-dex.types.d.ts +0 -10
  76. package/dist/protocols/v2-dex/v2-dex.types.d.ts.map +1 -1
  77. package/dist/protocols/v3-dex/v3-dex.service.d.ts +50 -6
  78. package/dist/protocols/v3-dex/v3-dex.service.d.ts.map +1 -1
  79. package/dist/protocols/v3-dex/v3-dex.service.js +369 -193
  80. package/dist/protocols/v3-dex/v3-dex.service.js.map +1 -1
  81. package/dist/protocols/v3-dex/v3-dex.types.d.ts +4 -1
  82. package/dist/protocols/v3-dex/v3-dex.types.d.ts.map +1 -1
  83. package/dist/protocols/v3-dex/v3-dex.types.js +3 -0
  84. package/dist/protocols/v3-dex/v3-dex.types.js.map +1 -1
  85. package/dist/protocols/ve33/index.d.ts +3 -0
  86. package/dist/protocols/ve33/index.d.ts.map +1 -0
  87. package/dist/protocols/ve33/index.js +6 -0
  88. package/dist/protocols/ve33/index.js.map +1 -0
  89. package/dist/protocols/ve33/ve33.handlers.d.ts +3 -0
  90. package/dist/protocols/ve33/ve33.handlers.d.ts.map +1 -0
  91. package/dist/protocols/ve33/ve33.handlers.js +187 -0
  92. package/dist/protocols/ve33/ve33.handlers.js.map +1 -0
  93. package/dist/protocols/ve33/ve33.service.d.ts +26 -0
  94. package/dist/protocols/ve33/ve33.service.d.ts.map +1 -0
  95. package/dist/protocols/ve33/ve33.service.js +486 -0
  96. package/dist/protocols/ve33/ve33.service.js.map +1 -0
  97. package/dist/protocols/ve33/ve33.types.d.ts +136 -0
  98. package/dist/protocols/ve33/ve33.types.d.ts.map +1 -0
  99. package/dist/protocols/ve33/ve33.types.js +11 -0
  100. package/dist/protocols/ve33/ve33.types.js.map +1 -0
  101. package/dist/types/enums.d.ts +5 -2
  102. package/dist/types/enums.d.ts.map +1 -1
  103. package/dist/types/enums.js +3 -0
  104. package/dist/types/enums.js.map +1 -1
  105. package/dist/types/price-params.d.ts +4 -0
  106. package/dist/types/price-params.d.ts.map +1 -1
  107. package/dist/types/price-response.d.ts +4 -2
  108. package/dist/types/price-response.d.ts.map +1 -1
  109. package/dist/types/quote-response.d.ts +3 -1
  110. package/dist/types/quote-response.d.ts.map +1 -1
  111. package/dist/utils/dex-deployment-key.d.ts +14 -0
  112. package/dist/utils/dex-deployment-key.d.ts.map +1 -0
  113. package/dist/utils/dex-deployment-key.js +17 -0
  114. package/dist/utils/dex-deployment-key.js.map +1 -0
  115. package/dist/utils/min-amount-out.d.ts +12 -0
  116. package/dist/utils/min-amount-out.d.ts.map +1 -0
  117. package/dist/utils/min-amount-out.js +18 -0
  118. package/dist/utils/min-amount-out.js.map +1 -0
  119. package/dist/utils/sort-addresses.d.ts +2 -0
  120. package/dist/utils/sort-addresses.d.ts.map +1 -0
  121. package/dist/utils/sort-addresses.js +14 -0
  122. package/dist/utils/sort-addresses.js.map +1 -0
  123. package/package.json +1 -1
@@ -0,0 +1,634 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.velodromeRouterAbi = void 0;
4
+ exports.velodromeRouterAbi = [
5
+ {
6
+ inputs: [
7
+ { internalType: 'address', name: '_forwarder', type: 'address' },
8
+ { internalType: 'address', name: '_factoryRegistry', type: 'address' },
9
+ { internalType: 'address', name: '_v1Factory', type: 'address' },
10
+ { internalType: 'address', name: '_factory', type: 'address' },
11
+ { internalType: 'address', name: '_voter', type: 'address' },
12
+ { internalType: 'address', name: '_weth', type: 'address' },
13
+ ],
14
+ stateMutability: 'nonpayable',
15
+ type: 'constructor',
16
+ },
17
+ { inputs: [], name: 'ConversionFromV2ToV1VeloProhibited', type: 'error' },
18
+ { inputs: [], name: 'ETHTransferFailed', type: 'error' },
19
+ { inputs: [], name: 'Expired', type: 'error' },
20
+ { inputs: [], name: 'InsufficientAmount', type: 'error' },
21
+ { inputs: [], name: 'InsufficientAmountA', type: 'error' },
22
+ { inputs: [], name: 'InsufficientAmountADesired', type: 'error' },
23
+ { inputs: [], name: 'InsufficientAmountAOptimal', type: 'error' },
24
+ { inputs: [], name: 'InsufficientAmountB', type: 'error' },
25
+ { inputs: [], name: 'InsufficientAmountBDesired', type: 'error' },
26
+ { inputs: [], name: 'InsufficientLiquidity', type: 'error' },
27
+ { inputs: [], name: 'InsufficientOutputAmount', type: 'error' },
28
+ { inputs: [], name: 'InvalidAmountInForETHDeposit', type: 'error' },
29
+ { inputs: [], name: 'InvalidPath', type: 'error' },
30
+ { inputs: [], name: 'InvalidRouteA', type: 'error' },
31
+ { inputs: [], name: 'InvalidRouteB', type: 'error' },
32
+ { inputs: [], name: 'InvalidTokenInForETHDeposit', type: 'error' },
33
+ { inputs: [], name: 'OnlyWETH', type: 'error' },
34
+ { inputs: [], name: 'PoolDoesNotExist', type: 'error' },
35
+ { inputs: [], name: 'PoolFactoryDoesNotExist', type: 'error' },
36
+ { inputs: [], name: 'SameAddresses', type: 'error' },
37
+ { inputs: [], name: 'ZeroAddress', type: 'error' },
38
+ {
39
+ inputs: [],
40
+ name: 'ETHER',
41
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
42
+ stateMutability: 'view',
43
+ type: 'function',
44
+ },
45
+ {
46
+ inputs: [
47
+ { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' },
48
+ {
49
+ components: [
50
+ { internalType: 'address', name: 'from', type: 'address' },
51
+ { internalType: 'address', name: 'to', type: 'address' },
52
+ { internalType: 'bool', name: 'stable', type: 'bool' },
53
+ { internalType: 'address', name: 'factory', type: 'address' },
54
+ ],
55
+ internalType: 'struct IRouter.Route[]',
56
+ name: 'routes',
57
+ type: 'tuple[]',
58
+ },
59
+ { internalType: 'address', name: 'to', type: 'address' },
60
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
61
+ ],
62
+ name: 'UNSAFE_swapExactTokensForTokens',
63
+ outputs: [{ internalType: 'uint256[]', name: '', type: 'uint256[]' }],
64
+ stateMutability: 'nonpayable',
65
+ type: 'function',
66
+ },
67
+ {
68
+ inputs: [
69
+ { internalType: 'address', name: 'tokenA', type: 'address' },
70
+ { internalType: 'address', name: 'tokenB', type: 'address' },
71
+ { internalType: 'bool', name: 'stable', type: 'bool' },
72
+ { internalType: 'uint256', name: 'amountADesired', type: 'uint256' },
73
+ { internalType: 'uint256', name: 'amountBDesired', type: 'uint256' },
74
+ { internalType: 'uint256', name: 'amountAMin', type: 'uint256' },
75
+ { internalType: 'uint256', name: 'amountBMin', type: 'uint256' },
76
+ { internalType: 'address', name: 'to', type: 'address' },
77
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
78
+ ],
79
+ name: 'addLiquidity',
80
+ outputs: [
81
+ { internalType: 'uint256', name: 'amountA', type: 'uint256' },
82
+ { internalType: 'uint256', name: 'amountB', type: 'uint256' },
83
+ { internalType: 'uint256', name: 'liquidity', type: 'uint256' },
84
+ ],
85
+ stateMutability: 'nonpayable',
86
+ type: 'function',
87
+ },
88
+ {
89
+ inputs: [
90
+ { internalType: 'address', name: 'token', type: 'address' },
91
+ { internalType: 'bool', name: 'stable', type: 'bool' },
92
+ { internalType: 'uint256', name: 'amountTokenDesired', type: 'uint256' },
93
+ { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' },
94
+ { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' },
95
+ { internalType: 'address', name: 'to', type: 'address' },
96
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
97
+ ],
98
+ name: 'addLiquidityETH',
99
+ outputs: [
100
+ { internalType: 'uint256', name: 'amountToken', type: 'uint256' },
101
+ { internalType: 'uint256', name: 'amountETH', type: 'uint256' },
102
+ { internalType: 'uint256', name: 'liquidity', type: 'uint256' },
103
+ ],
104
+ stateMutability: 'payable',
105
+ type: 'function',
106
+ },
107
+ {
108
+ inputs: [],
109
+ name: 'defaultFactory',
110
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
111
+ stateMutability: 'view',
112
+ type: 'function',
113
+ },
114
+ {
115
+ inputs: [],
116
+ name: 'factoryRegistry',
117
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
118
+ stateMutability: 'view',
119
+ type: 'function',
120
+ },
121
+ {
122
+ inputs: [
123
+ { internalType: 'address', name: 'tokenA', type: 'address' },
124
+ { internalType: 'address', name: 'tokenB', type: 'address' },
125
+ { internalType: 'bool', name: 'stable', type: 'bool' },
126
+ { internalType: 'address', name: '_factory', type: 'address' },
127
+ { internalType: 'uint256', name: 'amountInA', type: 'uint256' },
128
+ { internalType: 'uint256', name: 'amountInB', type: 'uint256' },
129
+ {
130
+ components: [
131
+ { internalType: 'address', name: 'from', type: 'address' },
132
+ { internalType: 'address', name: 'to', type: 'address' },
133
+ { internalType: 'bool', name: 'stable', type: 'bool' },
134
+ { internalType: 'address', name: 'factory', type: 'address' },
135
+ ],
136
+ internalType: 'struct IRouter.Route[]',
137
+ name: 'routesA',
138
+ type: 'tuple[]',
139
+ },
140
+ {
141
+ components: [
142
+ { internalType: 'address', name: 'from', type: 'address' },
143
+ { internalType: 'address', name: 'to', type: 'address' },
144
+ { internalType: 'bool', name: 'stable', type: 'bool' },
145
+ { internalType: 'address', name: 'factory', type: 'address' },
146
+ ],
147
+ internalType: 'struct IRouter.Route[]',
148
+ name: 'routesB',
149
+ type: 'tuple[]',
150
+ },
151
+ ],
152
+ name: 'generateZapInParams',
153
+ outputs: [
154
+ { internalType: 'uint256', name: 'amountOutMinA', type: 'uint256' },
155
+ { internalType: 'uint256', name: 'amountOutMinB', type: 'uint256' },
156
+ { internalType: 'uint256', name: 'amountAMin', type: 'uint256' },
157
+ { internalType: 'uint256', name: 'amountBMin', type: 'uint256' },
158
+ ],
159
+ stateMutability: 'view',
160
+ type: 'function',
161
+ },
162
+ {
163
+ inputs: [
164
+ { internalType: 'address', name: 'tokenA', type: 'address' },
165
+ { internalType: 'address', name: 'tokenB', type: 'address' },
166
+ { internalType: 'bool', name: 'stable', type: 'bool' },
167
+ { internalType: 'address', name: '_factory', type: 'address' },
168
+ { internalType: 'uint256', name: 'liquidity', type: 'uint256' },
169
+ {
170
+ components: [
171
+ { internalType: 'address', name: 'from', type: 'address' },
172
+ { internalType: 'address', name: 'to', type: 'address' },
173
+ { internalType: 'bool', name: 'stable', type: 'bool' },
174
+ { internalType: 'address', name: 'factory', type: 'address' },
175
+ ],
176
+ internalType: 'struct IRouter.Route[]',
177
+ name: 'routesA',
178
+ type: 'tuple[]',
179
+ },
180
+ {
181
+ components: [
182
+ { internalType: 'address', name: 'from', type: 'address' },
183
+ { internalType: 'address', name: 'to', type: 'address' },
184
+ { internalType: 'bool', name: 'stable', type: 'bool' },
185
+ { internalType: 'address', name: 'factory', type: 'address' },
186
+ ],
187
+ internalType: 'struct IRouter.Route[]',
188
+ name: 'routesB',
189
+ type: 'tuple[]',
190
+ },
191
+ ],
192
+ name: 'generateZapOutParams',
193
+ outputs: [
194
+ { internalType: 'uint256', name: 'amountOutMinA', type: 'uint256' },
195
+ { internalType: 'uint256', name: 'amountOutMinB', type: 'uint256' },
196
+ { internalType: 'uint256', name: 'amountAMin', type: 'uint256' },
197
+ { internalType: 'uint256', name: 'amountBMin', type: 'uint256' },
198
+ ],
199
+ stateMutability: 'view',
200
+ type: 'function',
201
+ },
202
+ {
203
+ inputs: [
204
+ { internalType: 'uint256', name: 'amountIn', type: 'uint256' },
205
+ {
206
+ components: [
207
+ { internalType: 'address', name: 'from', type: 'address' },
208
+ { internalType: 'address', name: 'to', type: 'address' },
209
+ { internalType: 'bool', name: 'stable', type: 'bool' },
210
+ { internalType: 'address', name: 'factory', type: 'address' },
211
+ ],
212
+ internalType: 'struct IRouter.Route[]',
213
+ name: 'routes',
214
+ type: 'tuple[]',
215
+ },
216
+ ],
217
+ name: 'getAmountsOut',
218
+ outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }],
219
+ stateMutability: 'view',
220
+ type: 'function',
221
+ },
222
+ {
223
+ inputs: [
224
+ { internalType: 'address', name: 'tokenA', type: 'address' },
225
+ { internalType: 'address', name: 'tokenB', type: 'address' },
226
+ { internalType: 'bool', name: 'stable', type: 'bool' },
227
+ { internalType: 'address', name: '_factory', type: 'address' },
228
+ ],
229
+ name: 'getReserves',
230
+ outputs: [
231
+ { internalType: 'uint256', name: 'reserveA', type: 'uint256' },
232
+ { internalType: 'uint256', name: 'reserveB', type: 'uint256' },
233
+ ],
234
+ stateMutability: 'view',
235
+ type: 'function',
236
+ },
237
+ {
238
+ inputs: [{ internalType: 'address', name: 'forwarder', type: 'address' }],
239
+ name: 'isTrustedForwarder',
240
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
241
+ stateMutability: 'view',
242
+ type: 'function',
243
+ },
244
+ {
245
+ inputs: [
246
+ { internalType: 'address', name: 'tokenA', type: 'address' },
247
+ { internalType: 'address', name: 'tokenB', type: 'address' },
248
+ { internalType: 'bool', name: 'stable', type: 'bool' },
249
+ { internalType: 'address', name: '_factory', type: 'address' },
250
+ ],
251
+ name: 'pairFor',
252
+ outputs: [{ internalType: 'address', name: 'pool', type: 'address' }],
253
+ stateMutability: 'view',
254
+ type: 'function',
255
+ },
256
+ {
257
+ inputs: [
258
+ { internalType: 'address', name: 'tokenA', type: 'address' },
259
+ { internalType: 'address', name: 'tokenB', type: 'address' },
260
+ { internalType: 'bool', name: 'stable', type: 'bool' },
261
+ { internalType: 'address', name: '_factory', type: 'address' },
262
+ ],
263
+ name: 'poolFor',
264
+ outputs: [{ internalType: 'address', name: 'pool', type: 'address' }],
265
+ stateMutability: 'view',
266
+ type: 'function',
267
+ },
268
+ {
269
+ inputs: [
270
+ { internalType: 'address', name: 'tokenA', type: 'address' },
271
+ { internalType: 'address', name: 'tokenB', type: 'address' },
272
+ { internalType: 'bool', name: 'stable', type: 'bool' },
273
+ { internalType: 'address', name: '_factory', type: 'address' },
274
+ { internalType: 'uint256', name: 'amountADesired', type: 'uint256' },
275
+ { internalType: 'uint256', name: 'amountBDesired', type: 'uint256' },
276
+ ],
277
+ name: 'quoteAddLiquidity',
278
+ outputs: [
279
+ { internalType: 'uint256', name: 'amountA', type: 'uint256' },
280
+ { internalType: 'uint256', name: 'amountB', type: 'uint256' },
281
+ { internalType: 'uint256', name: 'liquidity', type: 'uint256' },
282
+ ],
283
+ stateMutability: 'view',
284
+ type: 'function',
285
+ },
286
+ {
287
+ inputs: [
288
+ { internalType: 'address', name: 'tokenA', type: 'address' },
289
+ { internalType: 'address', name: 'tokenB', type: 'address' },
290
+ { internalType: 'bool', name: 'stable', type: 'bool' },
291
+ { internalType: 'address', name: '_factory', type: 'address' },
292
+ { internalType: 'uint256', name: 'liquidity', type: 'uint256' },
293
+ ],
294
+ name: 'quoteRemoveLiquidity',
295
+ outputs: [
296
+ { internalType: 'uint256', name: 'amountA', type: 'uint256' },
297
+ { internalType: 'uint256', name: 'amountB', type: 'uint256' },
298
+ ],
299
+ stateMutability: 'view',
300
+ type: 'function',
301
+ },
302
+ {
303
+ inputs: [
304
+ { internalType: 'address', name: 'tokenA', type: 'address' },
305
+ { internalType: 'address', name: 'tokenB', type: 'address' },
306
+ { internalType: 'address', name: '_factory', type: 'address' },
307
+ ],
308
+ name: 'quoteStableLiquidityRatio',
309
+ outputs: [{ internalType: 'uint256', name: 'ratio', type: 'uint256' }],
310
+ stateMutability: 'view',
311
+ type: 'function',
312
+ },
313
+ {
314
+ inputs: [
315
+ { internalType: 'address', name: 'tokenA', type: 'address' },
316
+ { internalType: 'address', name: 'tokenB', type: 'address' },
317
+ { internalType: 'bool', name: 'stable', type: 'bool' },
318
+ { internalType: 'uint256', name: 'liquidity', type: 'uint256' },
319
+ { internalType: 'uint256', name: 'amountAMin', type: 'uint256' },
320
+ { internalType: 'uint256', name: 'amountBMin', type: 'uint256' },
321
+ { internalType: 'address', name: 'to', type: 'address' },
322
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
323
+ ],
324
+ name: 'removeLiquidity',
325
+ outputs: [
326
+ { internalType: 'uint256', name: 'amountA', type: 'uint256' },
327
+ { internalType: 'uint256', name: 'amountB', type: 'uint256' },
328
+ ],
329
+ stateMutability: 'nonpayable',
330
+ type: 'function',
331
+ },
332
+ {
333
+ inputs: [
334
+ { internalType: 'address', name: 'token', type: 'address' },
335
+ { internalType: 'bool', name: 'stable', type: 'bool' },
336
+ { internalType: 'uint256', name: 'liquidity', type: 'uint256' },
337
+ { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' },
338
+ { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' },
339
+ { internalType: 'address', name: 'to', type: 'address' },
340
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
341
+ ],
342
+ name: 'removeLiquidityETH',
343
+ outputs: [
344
+ { internalType: 'uint256', name: 'amountToken', type: 'uint256' },
345
+ { internalType: 'uint256', name: 'amountETH', type: 'uint256' },
346
+ ],
347
+ stateMutability: 'nonpayable',
348
+ type: 'function',
349
+ },
350
+ {
351
+ inputs: [
352
+ { internalType: 'address', name: 'token', type: 'address' },
353
+ { internalType: 'bool', name: 'stable', type: 'bool' },
354
+ { internalType: 'uint256', name: 'liquidity', type: 'uint256' },
355
+ { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' },
356
+ { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' },
357
+ { internalType: 'address', name: 'to', type: 'address' },
358
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
359
+ ],
360
+ name: 'removeLiquidityETHSupportingFeeOnTransferTokens',
361
+ outputs: [{ internalType: 'uint256', name: 'amountETH', type: 'uint256' }],
362
+ stateMutability: 'nonpayable',
363
+ type: 'function',
364
+ },
365
+ {
366
+ inputs: [
367
+ { internalType: 'address', name: 'tokenA', type: 'address' },
368
+ { internalType: 'address', name: 'tokenB', type: 'address' },
369
+ ],
370
+ name: 'sortTokens',
371
+ outputs: [
372
+ { internalType: 'address', name: 'token0', type: 'address' },
373
+ { internalType: 'address', name: 'token1', type: 'address' },
374
+ ],
375
+ stateMutability: 'pure',
376
+ type: 'function',
377
+ },
378
+ {
379
+ inputs: [
380
+ { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
381
+ {
382
+ components: [
383
+ { internalType: 'address', name: 'from', type: 'address' },
384
+ { internalType: 'address', name: 'to', type: 'address' },
385
+ { internalType: 'bool', name: 'stable', type: 'bool' },
386
+ { internalType: 'address', name: 'factory', type: 'address' },
387
+ ],
388
+ internalType: 'struct IRouter.Route[]',
389
+ name: 'routes',
390
+ type: 'tuple[]',
391
+ },
392
+ { internalType: 'address', name: 'to', type: 'address' },
393
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
394
+ ],
395
+ name: 'swapExactETHForTokens',
396
+ outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }],
397
+ stateMutability: 'payable',
398
+ type: 'function',
399
+ },
400
+ {
401
+ inputs: [
402
+ { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
403
+ {
404
+ components: [
405
+ { internalType: 'address', name: 'from', type: 'address' },
406
+ { internalType: 'address', name: 'to', type: 'address' },
407
+ { internalType: 'bool', name: 'stable', type: 'bool' },
408
+ { internalType: 'address', name: 'factory', type: 'address' },
409
+ ],
410
+ internalType: 'struct IRouter.Route[]',
411
+ name: 'routes',
412
+ type: 'tuple[]',
413
+ },
414
+ { internalType: 'address', name: 'to', type: 'address' },
415
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
416
+ ],
417
+ name: 'swapExactETHForTokensSupportingFeeOnTransferTokens',
418
+ outputs: [],
419
+ stateMutability: 'payable',
420
+ type: 'function',
421
+ },
422
+ {
423
+ inputs: [
424
+ { internalType: 'uint256', name: 'amountIn', type: 'uint256' },
425
+ { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
426
+ {
427
+ components: [
428
+ { internalType: 'address', name: 'from', type: 'address' },
429
+ { internalType: 'address', name: 'to', type: 'address' },
430
+ { internalType: 'bool', name: 'stable', type: 'bool' },
431
+ { internalType: 'address', name: 'factory', type: 'address' },
432
+ ],
433
+ internalType: 'struct IRouter.Route[]',
434
+ name: 'routes',
435
+ type: 'tuple[]',
436
+ },
437
+ { internalType: 'address', name: 'to', type: 'address' },
438
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
439
+ ],
440
+ name: 'swapExactTokensForETH',
441
+ outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }],
442
+ stateMutability: 'nonpayable',
443
+ type: 'function',
444
+ },
445
+ {
446
+ inputs: [
447
+ { internalType: 'uint256', name: 'amountIn', type: 'uint256' },
448
+ { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
449
+ {
450
+ components: [
451
+ { internalType: 'address', name: 'from', type: 'address' },
452
+ { internalType: 'address', name: 'to', type: 'address' },
453
+ { internalType: 'bool', name: 'stable', type: 'bool' },
454
+ { internalType: 'address', name: 'factory', type: 'address' },
455
+ ],
456
+ internalType: 'struct IRouter.Route[]',
457
+ name: 'routes',
458
+ type: 'tuple[]',
459
+ },
460
+ { internalType: 'address', name: 'to', type: 'address' },
461
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
462
+ ],
463
+ name: 'swapExactTokensForETHSupportingFeeOnTransferTokens',
464
+ outputs: [],
465
+ stateMutability: 'nonpayable',
466
+ type: 'function',
467
+ },
468
+ {
469
+ inputs: [
470
+ { internalType: 'uint256', name: 'amountIn', type: 'uint256' },
471
+ { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
472
+ {
473
+ components: [
474
+ { internalType: 'address', name: 'from', type: 'address' },
475
+ { internalType: 'address', name: 'to', type: 'address' },
476
+ { internalType: 'bool', name: 'stable', type: 'bool' },
477
+ { internalType: 'address', name: 'factory', type: 'address' },
478
+ ],
479
+ internalType: 'struct IRouter.Route[]',
480
+ name: 'routes',
481
+ type: 'tuple[]',
482
+ },
483
+ { internalType: 'address', name: 'to', type: 'address' },
484
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
485
+ ],
486
+ name: 'swapExactTokensForTokens',
487
+ outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }],
488
+ stateMutability: 'nonpayable',
489
+ type: 'function',
490
+ },
491
+ {
492
+ inputs: [
493
+ { internalType: 'uint256', name: 'amountIn', type: 'uint256' },
494
+ { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
495
+ {
496
+ components: [
497
+ { internalType: 'address', name: 'from', type: 'address' },
498
+ { internalType: 'address', name: 'to', type: 'address' },
499
+ { internalType: 'bool', name: 'stable', type: 'bool' },
500
+ { internalType: 'address', name: 'factory', type: 'address' },
501
+ ],
502
+ internalType: 'struct IRouter.Route[]',
503
+ name: 'routes',
504
+ type: 'tuple[]',
505
+ },
506
+ { internalType: 'address', name: 'to', type: 'address' },
507
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
508
+ ],
509
+ name: 'swapExactTokensForTokensSupportingFeeOnTransferTokens',
510
+ outputs: [],
511
+ stateMutability: 'nonpayable',
512
+ type: 'function',
513
+ },
514
+ {
515
+ inputs: [],
516
+ name: 'v1Factory',
517
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
518
+ stateMutability: 'view',
519
+ type: 'function',
520
+ },
521
+ {
522
+ inputs: [],
523
+ name: 'voter',
524
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
525
+ stateMutability: 'view',
526
+ type: 'function',
527
+ },
528
+ {
529
+ inputs: [],
530
+ name: 'weth',
531
+ outputs: [{ internalType: 'contract IWETH', name: '', type: 'address' }],
532
+ stateMutability: 'view',
533
+ type: 'function',
534
+ },
535
+ {
536
+ inputs: [
537
+ { internalType: 'address', name: 'tokenIn', type: 'address' },
538
+ { internalType: 'uint256', name: 'amountInA', type: 'uint256' },
539
+ { internalType: 'uint256', name: 'amountInB', type: 'uint256' },
540
+ {
541
+ components: [
542
+ { internalType: 'address', name: 'tokenA', type: 'address' },
543
+ { internalType: 'address', name: 'tokenB', type: 'address' },
544
+ { internalType: 'bool', name: 'stable', type: 'bool' },
545
+ { internalType: 'address', name: 'factory', type: 'address' },
546
+ { internalType: 'uint256', name: 'amountOutMinA', type: 'uint256' },
547
+ { internalType: 'uint256', name: 'amountOutMinB', type: 'uint256' },
548
+ { internalType: 'uint256', name: 'amountAMin', type: 'uint256' },
549
+ { internalType: 'uint256', name: 'amountBMin', type: 'uint256' },
550
+ ],
551
+ internalType: 'struct IRouter.Zap',
552
+ name: 'zapInPool',
553
+ type: 'tuple',
554
+ },
555
+ {
556
+ components: [
557
+ { internalType: 'address', name: 'from', type: 'address' },
558
+ { internalType: 'address', name: 'to', type: 'address' },
559
+ { internalType: 'bool', name: 'stable', type: 'bool' },
560
+ { internalType: 'address', name: 'factory', type: 'address' },
561
+ ],
562
+ internalType: 'struct IRouter.Route[]',
563
+ name: 'routesA',
564
+ type: 'tuple[]',
565
+ },
566
+ {
567
+ components: [
568
+ { internalType: 'address', name: 'from', type: 'address' },
569
+ { internalType: 'address', name: 'to', type: 'address' },
570
+ { internalType: 'bool', name: 'stable', type: 'bool' },
571
+ { internalType: 'address', name: 'factory', type: 'address' },
572
+ ],
573
+ internalType: 'struct IRouter.Route[]',
574
+ name: 'routesB',
575
+ type: 'tuple[]',
576
+ },
577
+ { internalType: 'address', name: 'to', type: 'address' },
578
+ { internalType: 'bool', name: 'stake', type: 'bool' },
579
+ ],
580
+ name: 'zapIn',
581
+ outputs: [{ internalType: 'uint256', name: 'liquidity', type: 'uint256' }],
582
+ stateMutability: 'payable',
583
+ type: 'function',
584
+ },
585
+ {
586
+ inputs: [
587
+ { internalType: 'address', name: 'tokenOut', type: 'address' },
588
+ { internalType: 'uint256', name: 'liquidity', type: 'uint256' },
589
+ {
590
+ components: [
591
+ { internalType: 'address', name: 'tokenA', type: 'address' },
592
+ { internalType: 'address', name: 'tokenB', type: 'address' },
593
+ { internalType: 'bool', name: 'stable', type: 'bool' },
594
+ { internalType: 'address', name: 'factory', type: 'address' },
595
+ { internalType: 'uint256', name: 'amountOutMinA', type: 'uint256' },
596
+ { internalType: 'uint256', name: 'amountOutMinB', type: 'uint256' },
597
+ { internalType: 'uint256', name: 'amountAMin', type: 'uint256' },
598
+ { internalType: 'uint256', name: 'amountBMin', type: 'uint256' },
599
+ ],
600
+ internalType: 'struct IRouter.Zap',
601
+ name: 'zapOutPool',
602
+ type: 'tuple',
603
+ },
604
+ {
605
+ components: [
606
+ { internalType: 'address', name: 'from', type: 'address' },
607
+ { internalType: 'address', name: 'to', type: 'address' },
608
+ { internalType: 'bool', name: 'stable', type: 'bool' },
609
+ { internalType: 'address', name: 'factory', type: 'address' },
610
+ ],
611
+ internalType: 'struct IRouter.Route[]',
612
+ name: 'routesA',
613
+ type: 'tuple[]',
614
+ },
615
+ {
616
+ components: [
617
+ { internalType: 'address', name: 'from', type: 'address' },
618
+ { internalType: 'address', name: 'to', type: 'address' },
619
+ { internalType: 'bool', name: 'stable', type: 'bool' },
620
+ { internalType: 'address', name: 'factory', type: 'address' },
621
+ ],
622
+ internalType: 'struct IRouter.Route[]',
623
+ name: 'routesB',
624
+ type: 'tuple[]',
625
+ },
626
+ ],
627
+ name: 'zapOut',
628
+ outputs: [],
629
+ stateMutability: 'nonpayable',
630
+ type: 'function',
631
+ },
632
+ { stateMutability: 'payable', type: 'receive' },
633
+ ];
634
+ //# sourceMappingURL=velodrome-router.abi.js.map