@swapkit/helpers 4.0.0-beta.33 → 4.0.0-beta.35

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 (251) hide show
  1. package/dist/api/index.js +2 -2
  2. package/dist/api/index.js.map +1 -1
  3. package/dist/{chunk-ganzk321.js → chunk-hm14bfyg.js} +3 -3
  4. package/dist/{chunk-fazw0jvt.js.map → chunk-hm14bfyg.js.map} +1 -1
  5. package/dist/chunk-vb4wtm2w.js +4 -0
  6. package/dist/{chunk-ganzk321.js.map → chunk-vb4wtm2w.js.map} +1 -1
  7. package/dist/contracts.cjs +4 -0
  8. package/dist/contracts.cjs.map +10 -0
  9. package/dist/contracts.js +4 -0
  10. package/dist/contracts.js.map +10 -0
  11. package/dist/index.cjs +3 -3
  12. package/dist/index.cjs.map +9 -9
  13. package/dist/index.js +3 -3
  14. package/dist/index.js.map +9 -9
  15. package/dist/tokens.cjs +4 -0
  16. package/dist/tokens.cjs.map +10 -0
  17. package/dist/tokens.js +4 -0
  18. package/dist/tokens.js.map +10 -0
  19. package/dist/types/api/index.d.ts +238 -0
  20. package/dist/types/api/index.d.ts.map +1 -0
  21. package/dist/types/api/microgard/endpoints.d.ts +25 -0
  22. package/dist/types/api/microgard/endpoints.d.ts.map +1 -0
  23. package/dist/types/api/microgard/types.d.ts +56 -0
  24. package/dist/types/api/microgard/types.d.ts.map +1 -0
  25. package/dist/types/api/midgard/endpoints.d.ts +35 -0
  26. package/dist/types/api/midgard/endpoints.d.ts.map +1 -0
  27. package/dist/types/api/midgard/types.d.ts +102 -0
  28. package/dist/types/api/midgard/types.d.ts.map +1 -0
  29. package/dist/types/api/swapkitApi/endpoints.d.ts +194 -0
  30. package/dist/types/api/swapkitApi/endpoints.d.ts.map +1 -0
  31. package/dist/types/api/swapkitApi/types.d.ts +7238 -0
  32. package/dist/types/api/swapkitApi/types.d.ts.map +1 -0
  33. package/dist/types/api/thornode/endpoints.d.ts +31 -0
  34. package/dist/types/api/thornode/endpoints.d.ts.map +1 -0
  35. package/dist/types/api/thornode/types.d.ts +264 -0
  36. package/dist/types/api/thornode/types.d.ts.map +1 -0
  37. package/dist/types/api/thorswapStatic/endpoints.d.ts +7 -0
  38. package/dist/types/api/thorswapStatic/endpoints.d.ts.map +1 -0
  39. package/dist/types/api/thorswapStatic/types.d.ts +22 -0
  40. package/dist/types/api/thorswapStatic/types.d.ts.map +1 -0
  41. package/dist/types/contracts.d.ts +2 -0
  42. package/dist/types/contracts.d.ts.map +1 -0
  43. package/{src/index.ts → dist/types/index.d.ts} +3 -4
  44. package/dist/types/index.d.ts.map +1 -0
  45. package/dist/types/modules/assetValue.d.ts +71 -0
  46. package/dist/types/modules/assetValue.d.ts.map +1 -0
  47. package/dist/types/modules/bigIntArithmetics.d.ts +56 -0
  48. package/dist/types/modules/bigIntArithmetics.d.ts.map +1 -0
  49. package/dist/types/modules/feeMultiplier.d.ts +45 -0
  50. package/dist/types/modules/feeMultiplier.d.ts.map +1 -0
  51. package/dist/types/modules/requestClient.d.ts +22 -0
  52. package/dist/types/modules/requestClient.d.ts.map +1 -0
  53. package/dist/types/modules/swapKitConfig.d.ts +98 -0
  54. package/dist/types/modules/swapKitConfig.d.ts.map +1 -0
  55. package/dist/types/modules/swapKitError.d.ts +829 -0
  56. package/dist/types/modules/swapKitError.d.ts.map +1 -0
  57. package/dist/types/modules/swapKitNumber.d.ts +7 -0
  58. package/dist/types/modules/swapKitNumber.d.ts.map +1 -0
  59. package/dist/types/tokens.d.ts +2 -0
  60. package/dist/types/tokens.d.ts.map +1 -0
  61. package/dist/types/types/chains.d.ts +187 -0
  62. package/dist/types/types/chains.d.ts.map +1 -0
  63. package/dist/types/types/commonTypes.d.ts +37 -0
  64. package/dist/types/types/commonTypes.d.ts.map +1 -0
  65. package/dist/types/types/derivationPath.d.ts +17 -0
  66. package/dist/types/types/derivationPath.d.ts.map +1 -0
  67. package/dist/types/types/errors/apiV1.d.ts +2 -0
  68. package/dist/types/types/errors/apiV1.d.ts.map +1 -0
  69. package/{src/types/index.ts → dist/types/types/index.d.ts} +1 -1
  70. package/dist/types/types/index.d.ts.map +1 -0
  71. package/dist/types/types/quotes.d.ts +170 -0
  72. package/dist/types/types/quotes.d.ts.map +1 -0
  73. package/dist/types/types/radix.d.ts +15 -0
  74. package/dist/types/types/radix.d.ts.map +1 -0
  75. package/dist/types/types/sdk.d.ts +35 -0
  76. package/dist/types/types/sdk.d.ts.map +1 -0
  77. package/dist/types/types/wallet.d.ts +122 -0
  78. package/dist/types/types/wallet.d.ts.map +1 -0
  79. package/dist/types/utils/asset.d.ts +40 -0
  80. package/dist/types/utils/asset.d.ts.map +1 -0
  81. package/dist/types/utils/derivationPath.d.ts +19 -0
  82. package/dist/types/utils/derivationPath.d.ts.map +1 -0
  83. package/dist/types/utils/explorerUrls.d.ts +10 -0
  84. package/dist/types/utils/explorerUrls.d.ts.map +1 -0
  85. package/dist/types/utils/liquidity.d.ts +59 -0
  86. package/dist/types/utils/liquidity.d.ts.map +1 -0
  87. package/dist/types/utils/memo.d.ts +65 -0
  88. package/dist/types/utils/memo.d.ts.map +1 -0
  89. package/dist/types/utils/others.d.ts +9 -0
  90. package/dist/types/utils/others.d.ts.map +1 -0
  91. package/dist/types/utils/validators.d.ts +3 -0
  92. package/dist/types/utils/validators.d.ts.map +1 -0
  93. package/dist/types/utils/wallets.d.ts +32 -0
  94. package/dist/types/utils/wallets.d.ts.map +1 -0
  95. package/package.json +14 -15
  96. package/dist/chunk-06q78xy3.js +0 -4
  97. package/dist/chunk-06q78xy3.js.map +0 -10
  98. package/dist/chunk-0q5vvg5c.js +0 -5
  99. package/dist/chunk-0q5vvg5c.js.map +0 -10
  100. package/dist/chunk-18bxh1n7.js +0 -5
  101. package/dist/chunk-18bxh1n7.js.map +0 -10
  102. package/dist/chunk-3qya5ng9.js +0 -4
  103. package/dist/chunk-3qya5ng9.js.map +0 -10
  104. package/dist/chunk-4yqymkbp.js +0 -5
  105. package/dist/chunk-4yqymkbp.js.map +0 -10
  106. package/dist/chunk-50gpwcq9.js +0 -4
  107. package/dist/chunk-50gpwcq9.js.map +0 -10
  108. package/dist/chunk-6atq9cs7.js +0 -4
  109. package/dist/chunk-6atq9cs7.js.map +0 -10
  110. package/dist/chunk-6m0d5pv4.js +0 -5
  111. package/dist/chunk-6m0d5pv4.js.map +0 -10
  112. package/dist/chunk-8x46g3wq.js +0 -5
  113. package/dist/chunk-8x46g3wq.js.map +0 -10
  114. package/dist/chunk-92sk0g47.js +0 -5
  115. package/dist/chunk-92sk0g47.js.map +0 -10
  116. package/dist/chunk-9f2b3enk.js +0 -5
  117. package/dist/chunk-9f2b3enk.js.map +0 -10
  118. package/dist/chunk-adrafsdk.js +0 -5
  119. package/dist/chunk-adrafsdk.js.map +0 -10
  120. package/dist/chunk-b1hang9z.js +0 -5
  121. package/dist/chunk-b1hang9z.js.map +0 -10
  122. package/dist/chunk-becdmywt.js +0 -4
  123. package/dist/chunk-becdmywt.js.map +0 -10
  124. package/dist/chunk-ehz0t9d1.js +0 -4
  125. package/dist/chunk-ehz0t9d1.js.map +0 -10
  126. package/dist/chunk-fazw0jvt.js +0 -4
  127. package/dist/chunk-fm9ycn0h.js +0 -5
  128. package/dist/chunk-fm9ycn0h.js.map +0 -10
  129. package/dist/chunk-g67e2r57.js +0 -4
  130. package/dist/chunk-g67e2r57.js.map +0 -10
  131. package/dist/chunk-he3vy8gt.js +0 -4
  132. package/dist/chunk-he3vy8gt.js.map +0 -10
  133. package/dist/chunk-jjayk2y5.js +0 -4
  134. package/dist/chunk-jjayk2y5.js.map +0 -10
  135. package/dist/chunk-mmyv2vsv.js +0 -5
  136. package/dist/chunk-mmyv2vsv.js.map +0 -10
  137. package/dist/chunk-phev7aw7.js +0 -4
  138. package/dist/chunk-phev7aw7.js.map +0 -10
  139. package/dist/chunk-rhqk87p2.js +0 -5
  140. package/dist/chunk-rhqk87p2.js.map +0 -10
  141. package/dist/chunk-rnv7fdjk.js +0 -4
  142. package/dist/chunk-rnv7fdjk.js.map +0 -10
  143. package/dist/chunk-rwh98p1c.js +0 -4
  144. package/dist/chunk-rwh98p1c.js.map +0 -10
  145. package/dist/chunk-v9zj2gsj.js +0 -5
  146. package/dist/chunk-v9zj2gsj.js.map +0 -10
  147. package/dist/chunk-vv5bgsn8.js +0 -4
  148. package/dist/chunk-vv5bgsn8.js.map +0 -10
  149. package/dist/chunk-vwh9jfxn.js +0 -5
  150. package/dist/chunk-vwh9jfxn.js.map +0 -10
  151. package/dist/chunk-x0rqy75t.js +0 -4
  152. package/dist/chunk-x0rqy75t.js.map +0 -10
  153. package/dist/contracts/index.cjs +0 -4
  154. package/dist/contracts/index.cjs.map +0 -38
  155. package/dist/contracts/index.js +0 -4
  156. package/dist/contracts/index.js.map +0 -38
  157. package/dist/tokens/index.cjs +0 -4
  158. package/dist/tokens/index.cjs.map +0 -10
  159. package/dist/tokens/index.js +0 -4
  160. package/dist/tokens/index.js.map +0 -10
  161. package/src/api/index.ts +0 -19
  162. package/src/api/microgard/endpoints.ts +0 -83
  163. package/src/api/microgard/types.ts +0 -57
  164. package/src/api/midgard/endpoints.ts +0 -90
  165. package/src/api/midgard/types.ts +0 -106
  166. package/src/api/swapkitApi/endpoints.ts +0 -193
  167. package/src/api/swapkitApi/types.ts +0 -635
  168. package/src/api/thornode/endpoints.ts +0 -116
  169. package/src/api/thornode/types.ts +0 -276
  170. package/src/api/thorswapStatic/endpoints.ts +0 -46
  171. package/src/api/thorswapStatic/types.ts +0 -18
  172. package/src/contracts/abis/avaxGeneric.ts +0 -92
  173. package/src/contracts/abis/avaxWoofi.ts +0 -145
  174. package/src/contracts/abis/bscGeneric.ts +0 -106
  175. package/src/contracts/abis/chainflipGateway.ts +0 -330
  176. package/src/contracts/abis/erc20.ts +0 -99
  177. package/src/contracts/abis/ethGeneric.ts +0 -92
  178. package/src/contracts/abis/mayaEvmVaults.ts +0 -331
  179. package/src/contracts/abis/pancakeV2.ts +0 -145
  180. package/src/contracts/abis/pangolin.ts +0 -120
  181. package/src/contracts/abis/sushiswap.ts +0 -120
  182. package/src/contracts/abis/tcEthVault.ts +0 -650
  183. package/src/contracts/abis/traderJoe.ts +0 -120
  184. package/src/contracts/abis/uniswapV2.ts +0 -120
  185. package/src/contracts/abis/uniswapV2Leg.ts +0 -128
  186. package/src/contracts/abis/uniswapV3_100.ts +0 -128
  187. package/src/contracts/abis/uniswapV3_10000.ts +0 -128
  188. package/src/contracts/abis/uniswapV3_3000.ts +0 -128
  189. package/src/contracts/abis/uniswapV3_500.ts +0 -128
  190. package/src/contracts/index.ts +0 -95
  191. package/src/contracts/routers/index.ts +0 -58
  192. package/src/contracts/routers/kyber.ts +0 -402
  193. package/src/contracts/routers/oneinch.ts +0 -2188
  194. package/src/contracts/routers/pancakeswap.ts +0 -340
  195. package/src/contracts/routers/pangolin.ts +0 -340
  196. package/src/contracts/routers/sushiswap.ts +0 -340
  197. package/src/contracts/routers/traderJoe.ts +0 -340
  198. package/src/contracts/routers/uniswapv2.ts +0 -340
  199. package/src/contracts/routers/uniswapv3.ts +0 -254
  200. package/src/contracts/routers/woofi.ts +0 -171
  201. package/src/modules/__tests__/assetValue.test.ts +0 -877
  202. package/src/modules/__tests__/bigIntArithmetics.test.ts +0 -30
  203. package/src/modules/__tests__/swapKitConfig.test.ts +0 -37
  204. package/src/modules/__tests__/swapKitNumber.test.ts +0 -560
  205. package/src/modules/assetValue.ts +0 -387
  206. package/src/modules/bigIntArithmetics.ts +0 -436
  207. package/src/modules/feeMultiplier.ts +0 -87
  208. package/src/modules/requestClient.ts +0 -83
  209. package/src/modules/swapKitConfig.ts +0 -143
  210. package/src/modules/swapKitError.ts +0 -442
  211. package/src/modules/swapKitNumber.ts +0 -16
  212. package/src/tokens/index.ts +0 -15
  213. package/src/tokens/lists/camelot_v3.ts +0 -16060
  214. package/src/tokens/lists/caviar_v1.ts +0 -1704
  215. package/src/tokens/lists/chainflip.ts +0 -104
  216. package/src/tokens/lists/index.ts +0 -14
  217. package/src/tokens/lists/jupiter.ts +0 -33563
  218. package/src/tokens/lists/mayachain.ts +0 -509
  219. package/src/tokens/lists/near.ts +0 -458
  220. package/src/tokens/lists/oneinch.ts +0 -15006
  221. package/src/tokens/lists/openocean_v2.ts +0 -12434
  222. package/src/tokens/lists/pancakeswap.ts +0 -6136
  223. package/src/tokens/lists/pangolin_v1.ts +0 -75
  224. package/src/tokens/lists/sushiswap_v2.ts +0 -595
  225. package/src/tokens/lists/thorchain.ts +0 -748
  226. package/src/tokens/lists/traderjoe_v2.ts +0 -594
  227. package/src/tokens/lists/uniswap_v2.ts +0 -11484
  228. package/src/tokens/lists/uniswap_v3.ts +0 -19424
  229. package/src/types/chains.ts +0 -555
  230. package/src/types/commonTypes.ts +0 -58
  231. package/src/types/derivationPath.ts +0 -58
  232. package/src/types/errors/apiV1.ts +0 -0
  233. package/src/types/quotes.ts +0 -172
  234. package/src/types/radix.ts +0 -14
  235. package/src/types/sdk.ts +0 -42
  236. package/src/types/tokens.ts +0 -17
  237. package/src/types/wallet.ts +0 -166
  238. package/src/utils/__tests__/asset.test.ts +0 -193
  239. package/src/utils/__tests__/derivationPath.test.ts +0 -16
  240. package/src/utils/__tests__/memo.test.ts +0 -103
  241. package/src/utils/__tests__/others.test.ts +0 -88
  242. package/src/utils/__tests__/validators.test.ts +0 -24
  243. package/src/utils/asset.ts +0 -231
  244. package/src/utils/derivationPath.ts +0 -98
  245. package/src/utils/liquidity.ts +0 -179
  246. package/src/utils/memo.ts +0 -143
  247. package/src/utils/others.ts +0 -86
  248. package/src/utils/plugin.ts +0 -13
  249. package/src/utils/tokens.ts +0 -73
  250. package/src/utils/validators.ts +0 -32
  251. package/src/utils/wallets.ts +0 -276
@@ -1,402 +0,0 @@
1
- export const kyberRouter = [
2
- {
3
- inputs: [{ internalType: "address", name: "_WETH", type: "address" }],
4
- stateMutability: "nonpayable",
5
- type: "constructor",
6
- },
7
- {
8
- anonymous: false,
9
- inputs: [
10
- {
11
- indexed: false,
12
- internalType: "bytes",
13
- name: "clientData",
14
- type: "bytes",
15
- },
16
- ],
17
- name: "ClientData",
18
- type: "event",
19
- },
20
- {
21
- anonymous: false,
22
- inputs: [
23
- {
24
- indexed: false,
25
- internalType: "string",
26
- name: "reason",
27
- type: "string",
28
- },
29
- ],
30
- name: "Error",
31
- type: "event",
32
- },
33
- {
34
- anonymous: false,
35
- inputs: [
36
- {
37
- indexed: false,
38
- internalType: "address",
39
- name: "pair",
40
- type: "address",
41
- },
42
- {
43
- indexed: false,
44
- internalType: "uint256",
45
- name: "amountOut",
46
- type: "uint256",
47
- },
48
- {
49
- indexed: false,
50
- internalType: "address",
51
- name: "output",
52
- type: "address",
53
- },
54
- ],
55
- name: "Exchange",
56
- type: "event",
57
- },
58
- {
59
- anonymous: false,
60
- inputs: [
61
- {
62
- indexed: false,
63
- internalType: "address",
64
- name: "token",
65
- type: "address",
66
- },
67
- {
68
- indexed: false,
69
- internalType: "uint256",
70
- name: "totalAmount",
71
- type: "uint256",
72
- },
73
- {
74
- indexed: false,
75
- internalType: "uint256",
76
- name: "totalFee",
77
- type: "uint256",
78
- },
79
- {
80
- indexed: false,
81
- internalType: "address[]",
82
- name: "recipients",
83
- type: "address[]",
84
- },
85
- {
86
- indexed: false,
87
- internalType: "uint256[]",
88
- name: "amounts",
89
- type: "uint256[]",
90
- },
91
- { indexed: false, internalType: "bool", name: "isBps", type: "bool" },
92
- ],
93
- name: "Fee",
94
- type: "event",
95
- },
96
- {
97
- anonymous: false,
98
- inputs: [
99
- {
100
- indexed: true,
101
- internalType: "address",
102
- name: "previousOwner",
103
- type: "address",
104
- },
105
- {
106
- indexed: true,
107
- internalType: "address",
108
- name: "newOwner",
109
- type: "address",
110
- },
111
- ],
112
- name: "OwnershipTransferred",
113
- type: "event",
114
- },
115
- {
116
- anonymous: false,
117
- inputs: [
118
- {
119
- indexed: false,
120
- internalType: "address",
121
- name: "sender",
122
- type: "address",
123
- },
124
- {
125
- indexed: false,
126
- internalType: "contract IERC20",
127
- name: "srcToken",
128
- type: "address",
129
- },
130
- {
131
- indexed: false,
132
- internalType: "contract IERC20",
133
- name: "dstToken",
134
- type: "address",
135
- },
136
- {
137
- indexed: false,
138
- internalType: "address",
139
- name: "dstReceiver",
140
- type: "address",
141
- },
142
- {
143
- indexed: false,
144
- internalType: "uint256",
145
- name: "spentAmount",
146
- type: "uint256",
147
- },
148
- {
149
- indexed: false,
150
- internalType: "uint256",
151
- name: "returnAmount",
152
- type: "uint256",
153
- },
154
- ],
155
- name: "Swapped",
156
- type: "event",
157
- },
158
- {
159
- inputs: [],
160
- name: "WETH",
161
- outputs: [{ internalType: "address", name: "", type: "address" }],
162
- stateMutability: "view",
163
- type: "function",
164
- },
165
- {
166
- inputs: [{ internalType: "address", name: "", type: "address" }],
167
- name: "isWhitelist",
168
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
169
- stateMutability: "view",
170
- type: "function",
171
- },
172
- {
173
- inputs: [],
174
- name: "owner",
175
- outputs: [{ internalType: "address", name: "", type: "address" }],
176
- stateMutability: "view",
177
- type: "function",
178
- },
179
- {
180
- inputs: [],
181
- name: "renounceOwnership",
182
- outputs: [],
183
- stateMutability: "nonpayable",
184
- type: "function",
185
- },
186
- {
187
- inputs: [
188
- { internalType: "address", name: "token", type: "address" },
189
- { internalType: "uint256", name: "amount", type: "uint256" },
190
- ],
191
- name: "rescueFunds",
192
- outputs: [],
193
- stateMutability: "nonpayable",
194
- type: "function",
195
- },
196
- {
197
- inputs: [
198
- {
199
- components: [
200
- { internalType: "address", name: "callTarget", type: "address" },
201
- { internalType: "address", name: "approveTarget", type: "address" },
202
- { internalType: "bytes", name: "targetData", type: "bytes" },
203
- {
204
- components: [
205
- {
206
- internalType: "contract IERC20",
207
- name: "srcToken",
208
- type: "address",
209
- },
210
- {
211
- internalType: "contract IERC20",
212
- name: "dstToken",
213
- type: "address",
214
- },
215
- {
216
- internalType: "address[]",
217
- name: "srcReceivers",
218
- type: "address[]",
219
- },
220
- {
221
- internalType: "uint256[]",
222
- name: "srcAmounts",
223
- type: "uint256[]",
224
- },
225
- {
226
- internalType: "address[]",
227
- name: "feeReceivers",
228
- type: "address[]",
229
- },
230
- {
231
- internalType: "uint256[]",
232
- name: "feeAmounts",
233
- type: "uint256[]",
234
- },
235
- { internalType: "address", name: "dstReceiver", type: "address" },
236
- { internalType: "uint256", name: "amount", type: "uint256" },
237
- {
238
- internalType: "uint256",
239
- name: "minReturnAmount",
240
- type: "uint256",
241
- },
242
- { internalType: "uint256", name: "flags", type: "uint256" },
243
- { internalType: "bytes", name: "permit", type: "bytes" },
244
- ],
245
- internalType: "struct MetaAggregationRouterV2.SwapDescriptionV2",
246
- name: "desc",
247
- type: "tuple",
248
- },
249
- { internalType: "bytes", name: "clientData", type: "bytes" },
250
- ],
251
- internalType: "struct MetaAggregationRouterV2.SwapExecutionParams",
252
- name: "execution",
253
- type: "tuple",
254
- },
255
- ],
256
- name: "swap",
257
- outputs: [
258
- { internalType: "uint256", name: "returnAmount", type: "uint256" },
259
- { internalType: "uint256", name: "gasUsed", type: "uint256" },
260
- ],
261
- stateMutability: "payable",
262
- type: "function",
263
- },
264
- {
265
- inputs: [
266
- {
267
- components: [
268
- { internalType: "address", name: "callTarget", type: "address" },
269
- { internalType: "address", name: "approveTarget", type: "address" },
270
- { internalType: "bytes", name: "targetData", type: "bytes" },
271
- {
272
- components: [
273
- {
274
- internalType: "contract IERC20",
275
- name: "srcToken",
276
- type: "address",
277
- },
278
- {
279
- internalType: "contract IERC20",
280
- name: "dstToken",
281
- type: "address",
282
- },
283
- {
284
- internalType: "address[]",
285
- name: "srcReceivers",
286
- type: "address[]",
287
- },
288
- {
289
- internalType: "uint256[]",
290
- name: "srcAmounts",
291
- type: "uint256[]",
292
- },
293
- {
294
- internalType: "address[]",
295
- name: "feeReceivers",
296
- type: "address[]",
297
- },
298
- {
299
- internalType: "uint256[]",
300
- name: "feeAmounts",
301
- type: "uint256[]",
302
- },
303
- { internalType: "address", name: "dstReceiver", type: "address" },
304
- { internalType: "uint256", name: "amount", type: "uint256" },
305
- {
306
- internalType: "uint256",
307
- name: "minReturnAmount",
308
- type: "uint256",
309
- },
310
- { internalType: "uint256", name: "flags", type: "uint256" },
311
- { internalType: "bytes", name: "permit", type: "bytes" },
312
- ],
313
- internalType: "struct MetaAggregationRouterV2.SwapDescriptionV2",
314
- name: "desc",
315
- type: "tuple",
316
- },
317
- { internalType: "bytes", name: "clientData", type: "bytes" },
318
- ],
319
- internalType: "struct MetaAggregationRouterV2.SwapExecutionParams",
320
- name: "execution",
321
- type: "tuple",
322
- },
323
- ],
324
- name: "swapGeneric",
325
- outputs: [
326
- { internalType: "uint256", name: "returnAmount", type: "uint256" },
327
- { internalType: "uint256", name: "gasUsed", type: "uint256" },
328
- ],
329
- stateMutability: "payable",
330
- type: "function",
331
- },
332
- {
333
- inputs: [
334
- {
335
- internalType: "contract IAggregationExecutor",
336
- name: "caller",
337
- type: "address",
338
- },
339
- {
340
- components: [
341
- {
342
- internalType: "contract IERC20",
343
- name: "srcToken",
344
- type: "address",
345
- },
346
- {
347
- internalType: "contract IERC20",
348
- name: "dstToken",
349
- type: "address",
350
- },
351
- {
352
- internalType: "address[]",
353
- name: "srcReceivers",
354
- type: "address[]",
355
- },
356
- { internalType: "uint256[]", name: "srcAmounts", type: "uint256[]" },
357
- {
358
- internalType: "address[]",
359
- name: "feeReceivers",
360
- type: "address[]",
361
- },
362
- { internalType: "uint256[]", name: "feeAmounts", type: "uint256[]" },
363
- { internalType: "address", name: "dstReceiver", type: "address" },
364
- { internalType: "uint256", name: "amount", type: "uint256" },
365
- { internalType: "uint256", name: "minReturnAmount", type: "uint256" },
366
- { internalType: "uint256", name: "flags", type: "uint256" },
367
- { internalType: "bytes", name: "permit", type: "bytes" },
368
- ],
369
- internalType: "struct MetaAggregationRouterV2.SwapDescriptionV2",
370
- name: "desc",
371
- type: "tuple",
372
- },
373
- { internalType: "bytes", name: "executorData", type: "bytes" },
374
- { internalType: "bytes", name: "clientData", type: "bytes" },
375
- ],
376
- name: "swapSimpleMode",
377
- outputs: [
378
- { internalType: "uint256", name: "returnAmount", type: "uint256" },
379
- { internalType: "uint256", name: "gasUsed", type: "uint256" },
380
- ],
381
- stateMutability: "nonpayable",
382
- type: "function",
383
- },
384
- {
385
- inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
386
- name: "transferOwnership",
387
- outputs: [],
388
- stateMutability: "nonpayable",
389
- type: "function",
390
- },
391
- {
392
- inputs: [
393
- { internalType: "address[]", name: "addr", type: "address[]" },
394
- { internalType: "bool[]", name: "value", type: "bool[]" },
395
- ],
396
- name: "updateWhitelist",
397
- outputs: [],
398
- stateMutability: "nonpayable",
399
- type: "function",
400
- },
401
- { stateMutability: "payable", type: "receive" },
402
- ];