@paraswap/dex-lib 3.11.0-bebop → 3.11.0-bebop.2

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 (111) hide show
  1. package/build/abi/Balancer.json +257 -0
  2. package/build/abi/BalancerV2.json +1179 -0
  3. package/build/abi/RamsesV2Pool.abi.json +1554 -0
  4. package/build/abi/RamsesV2Quoter.abi.json +274 -0
  5. package/build/abi/UniswapV2Router.json +397 -0
  6. package/build/abi/angle-transmuter/ChainlinkAccessControlledOffchainAggregator.json +1246 -0
  7. package/build/abi/angle-transmuter/ChainlinkEACAggregatorProxy.json +509 -0
  8. package/build/abi/curve-v1/CurveBUSDv2.abi.json +1356 -0
  9. package/build/abi/curve-v1/CurveTokenV1.json +305 -0
  10. package/build/abi/curve-v1/CurveTokenV2.json +318 -0
  11. package/build/abi/curve-v1/CurveV1StableNg.json +1452 -0
  12. package/build/abi/curve-v1/CurveV2Swap.json +700 -0
  13. package/build/abi/curve-v1/FactoryCryptoRegistry.json +316 -0
  14. package/build/abi/curve-v1/FactoryRegistry.json +508 -0
  15. package/build/abi/curve-v1/StableSwapAave.json +1152 -0
  16. package/build/abi/curve-v1/StableSwapBUSD.json +814 -0
  17. package/build/abi/curve-v1/StableSwapCompound.json +814 -0
  18. package/build/abi/curve-v1/StableSwapIDLE.json +1253 -0
  19. package/build/abi/curve-v1/StableSwapPax.json +865 -0
  20. package/build/abi/curve-v1/StableSwapSnow.json +900 -0
  21. package/build/abi/curve-v1/StableSwapUSDN.json +1004 -0
  22. package/build/abi/curve-v1/StableSwapUSDT.json +814 -0
  23. package/build/abi/curve-v1/StableSwapY.json +814 -0
  24. package/build/abi/kyberdmm/kyber-storage.abi.json +824 -0
  25. package/build/abi/kyberdmm.abi.json +1148 -0
  26. package/build/abi/maverick-v2/MaverickV2Quoter.json +278 -0
  27. package/build/abi/nerve/nerve-metapool.json +790 -0
  28. package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +193 -0
  29. package/build/abi/velodrome-slipstream/VelodromeSlipstreamQuoterV2.abi.json +267 -0
  30. package/build/dex/balancer-v1/balancer-pools.json +33333 -0
  31. package/build/dex/bebop/bebop.json +72 -0
  32. package/build/dex/bebop/validators.js +5 -1
  33. package/build/dex/bebop/validators.js.map +1 -1
  34. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +16 -0
  35. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +16 -0
  36. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +16 -0
  37. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +16 -0
  38. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-dai-usdc-eth.json +16 -0
  39. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-eth-usdc-dai.json +16 -0
  40. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +16 -0
  41. package/build/executor/fixtures/executor01/exchange-params/price-route-multiswap-sushiv3-usdt-usdc-dai.json +16 -0
  42. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-eth-usdc.json +9 -0
  43. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-eth.json +9 -0
  44. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-balancerv1-usdc-wbtc.json +9 -0
  45. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-eth-steth.json +9 -0
  46. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-steth-eth.json +9 -0
  47. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-curvev1-usdc-usdt.json +9 -0
  48. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-eth-usdc.json +9 -0
  49. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-eth.json +9 -0
  50. package/build/executor/fixtures/executor01/exchange-params/price-route-simpleSwap-univ3-usdc-usdt.json +9 -0
  51. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +12 -0
  52. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +7 -0
  53. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +7 -0
  54. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-dai-usdc-eth.json +7 -0
  55. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-eth-usdc-dai.json +7 -0
  56. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +12 -0
  57. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-eth-usdc.json +7 -0
  58. package/build/executor/fixtures/executor01/maybe-weth-calldata/price-route-simpleSwap-univ3-usdc-eth.json +7 -0
  59. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-curvev1-eth-usdc-gusd.json +78 -0
  60. package/build/executor/fixtures/executor01/routes/price-route-multiswap-balancerv1-sushiv3-wbtc-eth-sushi.json +81 -0
  61. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-eth-usdc-gusd.json +78 -0
  62. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-curvev1-gusd-usdc-eth.json +78 -0
  63. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-dai-usdc-eth.json +81 -0
  64. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-eth-usdc-dai.json +81 -0
  65. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdc-eth-wbtc.json +81 -0
  66. package/build/executor/fixtures/executor01/routes/price-route-multiswap-sushiv3-usdt-usdc-dai.json +81 -0
  67. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-eth-usdc.json +64 -0
  68. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-eth.json +85 -0
  69. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-balancerv1-usdc-wbtc.json +64 -0
  70. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-eth-steth.json +52 -0
  71. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-steth-eth.json +52 -0
  72. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-curvev1-usdc-usdt.json +52 -0
  73. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-eth-usdc.json +55 -0
  74. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-eth.json +55 -0
  75. package/build/executor/fixtures/executor01/routes/price-route-simpleSwap-univ3-usdc-usdt.json +55 -0
  76. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +23 -0
  77. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +37 -0
  78. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +23 -0
  79. package/build/executor/fixtures/executor02/exchange-params/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +23 -0
  80. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +51 -0
  81. package/build/executor/fixtures/executor02/exchange-params/price-route-multiswap-univ3-usdt-dai-eth.json +58 -0
  82. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +23 -0
  83. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +23 -0
  84. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +9 -0
  85. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +16 -0
  86. package/build/executor/fixtures/executor02/exchange-params/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +23 -0
  87. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +12 -0
  88. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +7 -0
  89. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +12 -0
  90. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +12 -0
  91. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +7 -0
  92. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-multiswap-univ3-usdt-dai-eth.json +7 -0
  93. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +7 -0
  94. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +7 -0
  95. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +7 -0
  96. package/build/executor/fixtures/executor02/maybe-weth-calldata/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +7 -0
  97. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-balancerv1-sushiv3-univ3-bal-eth-sushi.json +130 -0
  98. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-maverickv1-sushiv3-univ3-eth-usdc-mav.json +136 -0
  99. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-sushi-eth-wbtc.json +100 -0
  100. package/build/executor/fixtures/executor02/routes/price-route-multiSwap-univ3-sushiv3-wbtc-eth-sushi.json +100 -0
  101. package/build/executor/fixtures/executor02/routes/price-route-multiswap-curvev1-univ3-dai-usdc-eth.json +166 -0
  102. package/build/executor/fixtures/executor02/routes/price-route-multiswap-univ3-usdt-dai-eth.json +190 -0
  103. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-eth-usdc.json +114 -0
  104. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-balancerv1-usdc-eth.json +114 -0
  105. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-eth-sushi.json +55 -0
  106. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-sushiv3-univ3-sushi-eth.json +73 -0
  107. package/build/executor/fixtures/executor02/routes/price-route-simpleSwap-univ3-curvev1-usdt-dai.json +82 -0
  108. package/package.json +1 -1
  109. package/src/dex/bebop/bebop.json +72 -0
  110. package/src/dex/bebop/validators.ts +6 -1
  111. package/tsconfig.json +1 -1
@@ -0,0 +1,274 @@
1
+ [
2
+ {
3
+ "inputs": [],
4
+ "stateMutability": "nonpayable",
5
+ "type": "constructor"
6
+ },
7
+ {
8
+ "inputs": [],
9
+ "name": "WETH9",
10
+ "outputs": [
11
+ {
12
+ "internalType": "address",
13
+ "name": "",
14
+ "type": "address"
15
+ }
16
+ ],
17
+ "stateMutability": "view",
18
+ "type": "function"
19
+ },
20
+ {
21
+ "inputs": [],
22
+ "name": "factory",
23
+ "outputs": [
24
+ {
25
+ "internalType": "address",
26
+ "name": "",
27
+ "type": "address"
28
+ }
29
+ ],
30
+ "stateMutability": "view",
31
+ "type": "function"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "address",
37
+ "name": "_factory",
38
+ "type": "address"
39
+ },
40
+ {
41
+ "internalType": "address",
42
+ "name": "_WETH9",
43
+ "type": "address"
44
+ }
45
+ ],
46
+ "name": "initialize",
47
+ "outputs": [],
48
+ "stateMutability": "nonpayable",
49
+ "type": "function"
50
+ },
51
+ {
52
+ "inputs": [
53
+ {
54
+ "internalType": "bytes",
55
+ "name": "path",
56
+ "type": "bytes"
57
+ },
58
+ {
59
+ "internalType": "uint256",
60
+ "name": "amountIn",
61
+ "type": "uint256"
62
+ }
63
+ ],
64
+ "name": "quoteExactInput",
65
+ "outputs": [
66
+ {
67
+ "internalType": "uint256",
68
+ "name": "amountOut",
69
+ "type": "uint256"
70
+ },
71
+ {
72
+ "internalType": "uint160[]",
73
+ "name": "sqrtPriceX96AfterList",
74
+ "type": "uint160[]"
75
+ },
76
+ {
77
+ "internalType": "uint32[]",
78
+ "name": "initializedTicksCrossedList",
79
+ "type": "uint32[]"
80
+ },
81
+ {
82
+ "internalType": "uint256",
83
+ "name": "gasEstimate",
84
+ "type": "uint256"
85
+ }
86
+ ],
87
+ "stateMutability": "nonpayable",
88
+ "type": "function"
89
+ },
90
+ {
91
+ "inputs": [
92
+ {
93
+ "components": [
94
+ {
95
+ "internalType": "address",
96
+ "name": "tokenIn",
97
+ "type": "address"
98
+ },
99
+ {
100
+ "internalType": "address",
101
+ "name": "tokenOut",
102
+ "type": "address"
103
+ },
104
+ {
105
+ "internalType": "uint256",
106
+ "name": "amountIn",
107
+ "type": "uint256"
108
+ },
109
+ {
110
+ "internalType": "uint24",
111
+ "name": "fee",
112
+ "type": "uint24"
113
+ },
114
+ {
115
+ "internalType": "uint160",
116
+ "name": "sqrtPriceLimitX96",
117
+ "type": "uint160"
118
+ }
119
+ ],
120
+ "internalType": "struct IQuoterV2.QuoteExactInputSingleParams",
121
+ "name": "params",
122
+ "type": "tuple"
123
+ }
124
+ ],
125
+ "name": "quoteExactInputSingle",
126
+ "outputs": [
127
+ {
128
+ "internalType": "uint256",
129
+ "name": "amountOut",
130
+ "type": "uint256"
131
+ },
132
+ {
133
+ "internalType": "uint160",
134
+ "name": "sqrtPriceX96After",
135
+ "type": "uint160"
136
+ },
137
+ {
138
+ "internalType": "uint32",
139
+ "name": "initializedTicksCrossed",
140
+ "type": "uint32"
141
+ },
142
+ {
143
+ "internalType": "uint256",
144
+ "name": "gasEstimate",
145
+ "type": "uint256"
146
+ }
147
+ ],
148
+ "stateMutability": "nonpayable",
149
+ "type": "function"
150
+ },
151
+ {
152
+ "inputs": [
153
+ {
154
+ "internalType": "bytes",
155
+ "name": "path",
156
+ "type": "bytes"
157
+ },
158
+ {
159
+ "internalType": "uint256",
160
+ "name": "amountOut",
161
+ "type": "uint256"
162
+ }
163
+ ],
164
+ "name": "quoteExactOutput",
165
+ "outputs": [
166
+ {
167
+ "internalType": "uint256",
168
+ "name": "amountIn",
169
+ "type": "uint256"
170
+ },
171
+ {
172
+ "internalType": "uint160[]",
173
+ "name": "sqrtPriceX96AfterList",
174
+ "type": "uint160[]"
175
+ },
176
+ {
177
+ "internalType": "uint32[]",
178
+ "name": "initializedTicksCrossedList",
179
+ "type": "uint32[]"
180
+ },
181
+ {
182
+ "internalType": "uint256",
183
+ "name": "gasEstimate",
184
+ "type": "uint256"
185
+ }
186
+ ],
187
+ "stateMutability": "nonpayable",
188
+ "type": "function"
189
+ },
190
+ {
191
+ "inputs": [
192
+ {
193
+ "components": [
194
+ {
195
+ "internalType": "address",
196
+ "name": "tokenIn",
197
+ "type": "address"
198
+ },
199
+ {
200
+ "internalType": "address",
201
+ "name": "tokenOut",
202
+ "type": "address"
203
+ },
204
+ {
205
+ "internalType": "uint256",
206
+ "name": "amount",
207
+ "type": "uint256"
208
+ },
209
+ {
210
+ "internalType": "uint24",
211
+ "name": "fee",
212
+ "type": "uint24"
213
+ },
214
+ {
215
+ "internalType": "uint160",
216
+ "name": "sqrtPriceLimitX96",
217
+ "type": "uint160"
218
+ }
219
+ ],
220
+ "internalType": "struct IQuoterV2.QuoteExactOutputSingleParams",
221
+ "name": "params",
222
+ "type": "tuple"
223
+ }
224
+ ],
225
+ "name": "quoteExactOutputSingle",
226
+ "outputs": [
227
+ {
228
+ "internalType": "uint256",
229
+ "name": "amountIn",
230
+ "type": "uint256"
231
+ },
232
+ {
233
+ "internalType": "uint160",
234
+ "name": "sqrtPriceX96After",
235
+ "type": "uint160"
236
+ },
237
+ {
238
+ "internalType": "uint32",
239
+ "name": "initializedTicksCrossed",
240
+ "type": "uint32"
241
+ },
242
+ {
243
+ "internalType": "uint256",
244
+ "name": "gasEstimate",
245
+ "type": "uint256"
246
+ }
247
+ ],
248
+ "stateMutability": "nonpayable",
249
+ "type": "function"
250
+ },
251
+ {
252
+ "inputs": [
253
+ {
254
+ "internalType": "int256",
255
+ "name": "amount0Delta",
256
+ "type": "int256"
257
+ },
258
+ {
259
+ "internalType": "int256",
260
+ "name": "amount1Delta",
261
+ "type": "int256"
262
+ },
263
+ {
264
+ "internalType": "bytes",
265
+ "name": "path",
266
+ "type": "bytes"
267
+ }
268
+ ],
269
+ "name": "ramsesV2SwapCallback",
270
+ "outputs": [],
271
+ "stateMutability": "view",
272
+ "type": "function"
273
+ }
274
+ ]
@@ -0,0 +1,397 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "_factory",
7
+ "type": "address"
8
+ },
9
+ {
10
+ "internalType": "address",
11
+ "name": "_weth",
12
+ "type": "address"
13
+ },
14
+ {
15
+ "internalType": "address",
16
+ "name": "_eth",
17
+ "type": "address"
18
+ },
19
+ {
20
+ "internalType": "bytes32",
21
+ "name": "_initCode",
22
+ "type": "bytes32"
23
+ },
24
+ {
25
+ "internalType": "uint256",
26
+ "name": "_fee",
27
+ "type": "uint256"
28
+ },
29
+ {
30
+ "internalType": "uint256",
31
+ "name": "_feeFactor",
32
+ "type": "uint256"
33
+ }
34
+ ],
35
+ "stateMutability": "nonpayable",
36
+ "type": "constructor"
37
+ },
38
+ {
39
+ "anonymous": false,
40
+ "inputs": [
41
+ {
42
+ "indexed": false,
43
+ "internalType": "address",
44
+ "name": "initiator",
45
+ "type": "address"
46
+ },
47
+ {
48
+ "indexed": true,
49
+ "internalType": "address",
50
+ "name": "beneficiary",
51
+ "type": "address"
52
+ },
53
+ {
54
+ "indexed": true,
55
+ "internalType": "address",
56
+ "name": "srcToken",
57
+ "type": "address"
58
+ },
59
+ {
60
+ "indexed": true,
61
+ "internalType": "address",
62
+ "name": "destToken",
63
+ "type": "address"
64
+ },
65
+ {
66
+ "indexed": false,
67
+ "internalType": "uint256",
68
+ "name": "srcAmount",
69
+ "type": "uint256"
70
+ },
71
+ {
72
+ "indexed": false,
73
+ "internalType": "uint256",
74
+ "name": "receivedAmount",
75
+ "type": "uint256"
76
+ }
77
+ ],
78
+ "name": "Bought",
79
+ "type": "event"
80
+ },
81
+ {
82
+ "anonymous": false,
83
+ "inputs": [
84
+ {
85
+ "indexed": false,
86
+ "internalType": "uint256",
87
+ "name": "fee",
88
+ "type": "uint256"
89
+ },
90
+ {
91
+ "indexed": false,
92
+ "internalType": "uint256",
93
+ "name": "partnerShare",
94
+ "type": "uint256"
95
+ },
96
+ {
97
+ "indexed": false,
98
+ "internalType": "uint256",
99
+ "name": "paraswapShare",
100
+ "type": "uint256"
101
+ }
102
+ ],
103
+ "name": "FeeTaken",
104
+ "type": "event"
105
+ },
106
+ {
107
+ "anonymous": false,
108
+ "inputs": [
109
+ {
110
+ "indexed": false,
111
+ "internalType": "address",
112
+ "name": "initiator",
113
+ "type": "address"
114
+ },
115
+ {
116
+ "indexed": true,
117
+ "internalType": "address",
118
+ "name": "beneficiary",
119
+ "type": "address"
120
+ },
121
+ {
122
+ "indexed": true,
123
+ "internalType": "address",
124
+ "name": "srcToken",
125
+ "type": "address"
126
+ },
127
+ {
128
+ "indexed": true,
129
+ "internalType": "address",
130
+ "name": "destToken",
131
+ "type": "address"
132
+ },
133
+ {
134
+ "indexed": false,
135
+ "internalType": "uint256",
136
+ "name": "srcAmount",
137
+ "type": "uint256"
138
+ },
139
+ {
140
+ "indexed": false,
141
+ "internalType": "uint256",
142
+ "name": "receivedAmount",
143
+ "type": "uint256"
144
+ },
145
+ {
146
+ "indexed": false,
147
+ "internalType": "uint256",
148
+ "name": "expectedAmount",
149
+ "type": "uint256"
150
+ }
151
+ ],
152
+ "name": "Swapped",
153
+ "type": "event"
154
+ },
155
+ {
156
+ "inputs": [],
157
+ "name": "ETH_IDENTIFIER",
158
+ "outputs": [
159
+ {
160
+ "internalType": "address",
161
+ "name": "",
162
+ "type": "address"
163
+ }
164
+ ],
165
+ "stateMutability": "view",
166
+ "type": "function"
167
+ },
168
+ {
169
+ "inputs": [],
170
+ "name": "FEE",
171
+ "outputs": [
172
+ {
173
+ "internalType": "uint256",
174
+ "name": "",
175
+ "type": "uint256"
176
+ }
177
+ ],
178
+ "stateMutability": "view",
179
+ "type": "function"
180
+ },
181
+ {
182
+ "inputs": [],
183
+ "name": "FEE_FACTOR",
184
+ "outputs": [
185
+ {
186
+ "internalType": "uint256",
187
+ "name": "",
188
+ "type": "uint256"
189
+ }
190
+ ],
191
+ "stateMutability": "view",
192
+ "type": "function"
193
+ },
194
+ {
195
+ "inputs": [],
196
+ "name": "ROUTER_ROLE",
197
+ "outputs": [
198
+ {
199
+ "internalType": "bytes32",
200
+ "name": "",
201
+ "type": "bytes32"
202
+ }
203
+ ],
204
+ "stateMutability": "view",
205
+ "type": "function"
206
+ },
207
+ {
208
+ "inputs": [],
209
+ "name": "UNISWAP_FACTORY",
210
+ "outputs": [
211
+ {
212
+ "internalType": "address",
213
+ "name": "",
214
+ "type": "address"
215
+ }
216
+ ],
217
+ "stateMutability": "view",
218
+ "type": "function"
219
+ },
220
+ {
221
+ "inputs": [],
222
+ "name": "UNISWAP_INIT_CODE",
223
+ "outputs": [
224
+ {
225
+ "internalType": "bytes32",
226
+ "name": "",
227
+ "type": "bytes32"
228
+ }
229
+ ],
230
+ "stateMutability": "view",
231
+ "type": "function"
232
+ },
233
+ {
234
+ "inputs": [],
235
+ "name": "WETH",
236
+ "outputs": [
237
+ {
238
+ "internalType": "address",
239
+ "name": "",
240
+ "type": "address"
241
+ }
242
+ ],
243
+ "stateMutability": "view",
244
+ "type": "function"
245
+ },
246
+ {
247
+ "inputs": [],
248
+ "name": "WHITELISTED_ROLE",
249
+ "outputs": [
250
+ {
251
+ "internalType": "bytes32",
252
+ "name": "",
253
+ "type": "bytes32"
254
+ }
255
+ ],
256
+ "stateMutability": "view",
257
+ "type": "function"
258
+ },
259
+ {
260
+ "inputs": [
261
+ {
262
+ "internalType": "uint256",
263
+ "name": "amountInMax",
264
+ "type": "uint256"
265
+ },
266
+ {
267
+ "internalType": "uint256",
268
+ "name": "amountOut",
269
+ "type": "uint256"
270
+ },
271
+ {
272
+ "internalType": "address[]",
273
+ "name": "path",
274
+ "type": "address[]"
275
+ }
276
+ ],
277
+ "name": "buyOnUniswap",
278
+ "outputs": [],
279
+ "stateMutability": "payable",
280
+ "type": "function"
281
+ },
282
+ {
283
+ "inputs": [
284
+ {
285
+ "internalType": "address",
286
+ "name": "factory",
287
+ "type": "address"
288
+ },
289
+ {
290
+ "internalType": "bytes32",
291
+ "name": "initCode",
292
+ "type": "bytes32"
293
+ },
294
+ {
295
+ "internalType": "uint256",
296
+ "name": "amountInMax",
297
+ "type": "uint256"
298
+ },
299
+ {
300
+ "internalType": "uint256",
301
+ "name": "amountOut",
302
+ "type": "uint256"
303
+ },
304
+ {
305
+ "internalType": "address[]",
306
+ "name": "path",
307
+ "type": "address[]"
308
+ }
309
+ ],
310
+ "name": "buyOnUniswapFork",
311
+ "outputs": [],
312
+ "stateMutability": "payable",
313
+ "type": "function"
314
+ },
315
+ {
316
+ "inputs": [],
317
+ "name": "getKey",
318
+ "outputs": [
319
+ {
320
+ "internalType": "bytes32",
321
+ "name": "",
322
+ "type": "bytes32"
323
+ }
324
+ ],
325
+ "stateMutability": "pure",
326
+ "type": "function"
327
+ },
328
+ {
329
+ "inputs": [
330
+ {
331
+ "internalType": "bytes",
332
+ "name": "data",
333
+ "type": "bytes"
334
+ }
335
+ ],
336
+ "name": "initialize",
337
+ "outputs": [],
338
+ "stateMutability": "nonpayable",
339
+ "type": "function"
340
+ },
341
+ {
342
+ "inputs": [
343
+ {
344
+ "internalType": "uint256",
345
+ "name": "amountIn",
346
+ "type": "uint256"
347
+ },
348
+ {
349
+ "internalType": "uint256",
350
+ "name": "amountOutMin",
351
+ "type": "uint256"
352
+ },
353
+ {
354
+ "internalType": "address[]",
355
+ "name": "path",
356
+ "type": "address[]"
357
+ }
358
+ ],
359
+ "name": "swapOnUniswap",
360
+ "outputs": [],
361
+ "stateMutability": "payable",
362
+ "type": "function"
363
+ },
364
+ {
365
+ "inputs": [
366
+ {
367
+ "internalType": "address",
368
+ "name": "factory",
369
+ "type": "address"
370
+ },
371
+ {
372
+ "internalType": "bytes32",
373
+ "name": "initCode",
374
+ "type": "bytes32"
375
+ },
376
+ {
377
+ "internalType": "uint256",
378
+ "name": "amountIn",
379
+ "type": "uint256"
380
+ },
381
+ {
382
+ "internalType": "uint256",
383
+ "name": "amountOutMin",
384
+ "type": "uint256"
385
+ },
386
+ {
387
+ "internalType": "address[]",
388
+ "name": "path",
389
+ "type": "address[]"
390
+ }
391
+ ],
392
+ "name": "swapOnUniswapFork",
393
+ "outputs": [],
394
+ "stateMutability": "payable",
395
+ "type": "function"
396
+ }
397
+ ]