@dzapio/sdk 2.0.6 → 2.0.7

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 (216) hide show
  1. package/dist/examples/chain-utils.d.ts +1 -0
  2. package/dist/examples/chain-utils.js +20 -0
  3. package/dist/examples/permit-utils.d.ts +1 -0
  4. package/dist/examples/permit-utils.js +90 -0
  5. package/dist/examples/token-utils.d.ts +1 -0
  6. package/dist/examples/token-utils.js +41 -0
  7. package/dist/examples/trade-operations.d.ts +1 -0
  8. package/dist/examples/trade-operations.js +89 -0
  9. package/dist/examples/zap-operations.d.ts +1 -0
  10. package/dist/examples/zap-operations.js +69 -0
  11. package/dist/src/api/index.d.ts +27 -0
  12. package/dist/src/api/index.js +146 -0
  13. package/dist/src/artifacts/ERC20Permit.d.ts +374 -0
  14. package/dist/src/artifacts/ERC20Permit.js +469 -0
  15. package/dist/src/artifacts/Permit2.d.ts +700 -0
  16. package/dist/src/artifacts/Permit2.js +904 -0
  17. package/dist/src/artifacts/Permit2Proxy.d.ts +416 -0
  18. package/dist/src/artifacts/Permit2Proxy.js +206 -0
  19. package/dist/src/artifacts/default/DZapCoreAbi.d.ts +2 -0
  20. package/dist/src/artifacts/default/DZapCoreAbi.js +3079 -0
  21. package/dist/src/artifacts/default/DZapCoreV2Abi.d.ts +2 -0
  22. package/dist/src/artifacts/default/DZapCoreV2Abi.js +3719 -0
  23. package/dist/src/artifacts/default/DZapDcaAbi.d.ts +2 -0
  24. package/dist/src/artifacts/default/DZapDcaAbi.js +1829 -0
  25. package/dist/src/artifacts/default/Permit2Abi.d.ts +700 -0
  26. package/dist/src/artifacts/default/Permit2Abi.js +904 -0
  27. package/dist/src/artifacts/default/erc20Abi.d.ts +165 -0
  28. package/dist/src/artifacts/default/erc20Abi.js +220 -0
  29. package/dist/src/artifacts/default/index.d.ts +6 -0
  30. package/dist/src/artifacts/default/index.js +13 -0
  31. package/dist/src/artifacts/index.d.ts +2 -0
  32. package/dist/src/artifacts/index.js +9 -0
  33. package/dist/src/artifacts/staging/DZapCoreSwapAbi.d.ts +2 -0
  34. package/dist/src/artifacts/staging/DZapCoreSwapAbi.js +3079 -0
  35. package/dist/src/artifacts/staging/index.d.ts +2 -0
  36. package/dist/src/artifacts/staging/index.js +5 -0
  37. package/dist/src/axios/baseClient.d.ts +2 -0
  38. package/dist/src/axios/baseClient.js +7 -0
  39. package/dist/src/axios/index.d.ts +8 -0
  40. package/dist/src/axios/index.js +34 -0
  41. package/dist/src/chains/definitions/arthera.d.ts +35 -0
  42. package/dist/src/chains/definitions/arthera.js +28 -0
  43. package/dist/src/chains/definitions/fiveIre.d.ts +35 -0
  44. package/dist/src/chains/definitions/fiveIre.js +28 -0
  45. package/dist/src/chains/definitions/hyperEvm.d.ts +35 -0
  46. package/dist/src/chains/definitions/hyperEvm.js +26 -0
  47. package/dist/src/chains/definitions/hyperliquid.d.ts +35 -0
  48. package/dist/src/chains/definitions/hyperliquid.js +26 -0
  49. package/dist/src/chains/definitions/stable.d.ts +36 -0
  50. package/dist/src/chains/definitions/stable.js +31 -0
  51. package/dist/src/chains/index.d.ts +179 -0
  52. package/dist/src/chains/index.js +24 -0
  53. package/dist/src/config/index.d.ts +36 -0
  54. package/dist/src/config/index.js +59 -0
  55. package/dist/src/constants/address.d.ts +13 -0
  56. package/dist/src/constants/address.js +29 -0
  57. package/dist/src/constants/approval.d.ts +7 -0
  58. package/dist/src/constants/approval.js +17 -0
  59. package/dist/src/constants/axios.d.ts +2 -0
  60. package/dist/src/constants/axios.js +5 -0
  61. package/dist/src/constants/chains.d.ts +31 -0
  62. package/dist/src/constants/chains.js +34 -0
  63. package/dist/src/constants/contract.d.ts +6 -0
  64. package/dist/src/constants/contract.js +18 -0
  65. package/dist/src/constants/erc20.d.ts +25 -0
  66. package/dist/src/constants/erc20.js +28 -0
  67. package/dist/src/constants/httpMethods.d.ts +2 -0
  68. package/dist/src/constants/httpMethods.js +5 -0
  69. package/dist/src/constants/index.d.ts +48 -0
  70. package/dist/src/constants/index.js +53 -0
  71. package/dist/src/constants/permit.d.ts +29 -0
  72. package/dist/src/constants/permit.js +33 -0
  73. package/dist/src/constants/permit2.d.ts +2 -0
  74. package/dist/src/constants/permit2.js +5 -0
  75. package/dist/src/constants/rpc.d.ts +2 -0
  76. package/dist/src/constants/rpc.js +5 -0
  77. package/dist/src/constants/urlConstants.d.ts +15 -0
  78. package/dist/src/constants/urlConstants.js +18 -0
  79. package/dist/src/dZapClient/index.d.ts +1015 -0
  80. package/dist/src/dZapClient/index.js +255 -0
  81. package/dist/src/enums/index.d.ts +46 -0
  82. package/dist/src/enums/index.js +57 -0
  83. package/dist/src/index.d.ts +17 -0
  84. package/dist/src/index.js +48 -0
  85. package/dist/src/service/cache/cacheProvider.d.ts +10 -0
  86. package/dist/src/service/cache/cacheProvider.js +72 -0
  87. package/dist/src/service/cache/constant.d.ts +2 -0
  88. package/dist/src/service/cache/constant.js +6 -0
  89. package/dist/src/service/price/index.d.ts +16 -0
  90. package/dist/src/service/price/index.js +80 -0
  91. package/dist/src/service/price/provider/coingecko/config.d.ts +6 -0
  92. package/dist/src/service/price/provider/coingecko/config.js +9 -0
  93. package/dist/src/service/price/provider/coingecko/index.d.ts +9 -0
  94. package/dist/src/service/price/provider/coingecko/index.js +66 -0
  95. package/dist/src/service/price/provider/defiLlama/config.d.ts +3 -0
  96. package/dist/src/service/price/provider/defiLlama/config.js +6 -0
  97. package/dist/src/service/price/provider/defiLlama/index.d.ts +9 -0
  98. package/dist/src/service/price/provider/defiLlama/index.js +60 -0
  99. package/dist/src/service/price/provider/defiLlama/types.d.ts +11 -0
  100. package/dist/src/service/price/provider/defiLlama/types.js +2 -0
  101. package/dist/src/service/price/provider/dzap/index.d.ts +6 -0
  102. package/dist/src/service/price/provider/dzap/index.js +22 -0
  103. package/dist/src/service/price/types/IPriceProvider.d.ts +14 -0
  104. package/dist/src/service/price/types/IPriceProvider.js +8 -0
  105. package/dist/src/transactionHandlers/generic.d.ts +24 -0
  106. package/dist/src/transactionHandlers/generic.js +48 -0
  107. package/dist/src/transactionHandlers/permit.d.ts +61 -0
  108. package/dist/src/transactionHandlers/permit.js +177 -0
  109. package/dist/src/transactionHandlers/trade.d.ts +24 -0
  110. package/dist/src/transactionHandlers/trade.js +263 -0
  111. package/dist/src/transactionHandlers/zap.d.ts +37 -0
  112. package/dist/src/transactionHandlers/zap.js +135 -0
  113. package/dist/src/types/axiosClient.d.ts +6 -0
  114. package/dist/src/types/axiosClient.js +2 -0
  115. package/dist/src/types/btc.d.ts +45 -0
  116. package/dist/src/types/btc.js +2 -0
  117. package/dist/src/types/chains.d.ts +3 -0
  118. package/dist/src/types/chains.js +2 -0
  119. package/dist/src/types/contract.d.ts +14 -0
  120. package/dist/src/types/contract.js +2 -0
  121. package/dist/src/types/eip-2612.d.ts +24 -0
  122. package/dist/src/types/eip-2612.js +58 -0
  123. package/dist/src/types/index.d.ts +489 -0
  124. package/dist/src/types/index.js +8 -0
  125. package/dist/src/types/permit.d.ts +191 -0
  126. package/dist/src/types/permit.js +54 -0
  127. package/dist/src/types/wallet.d.ts +2 -0
  128. package/dist/src/types/wallet.js +2 -0
  129. package/dist/src/types/zap/build.d.ts +44 -0
  130. package/dist/src/types/zap/build.js +2 -0
  131. package/dist/src/types/zap/index.d.ts +34 -0
  132. package/dist/src/types/zap/index.js +23 -0
  133. package/dist/src/types/zap/path.d.ts +33 -0
  134. package/dist/src/types/zap/path.js +2 -0
  135. package/dist/src/types/zap/pool.d.ts +39 -0
  136. package/dist/src/types/zap/pool.js +2 -0
  137. package/dist/src/types/zap/position.d.ts +27 -0
  138. package/dist/src/types/zap/position.js +2 -0
  139. package/dist/src/types/zap/quote.d.ts +7 -0
  140. package/dist/src/types/zap/quote.js +2 -0
  141. package/dist/src/types/zap/status.d.ts +28 -0
  142. package/dist/src/types/zap/status.js +2 -0
  143. package/dist/src/types/zap/step.d.ts +23 -0
  144. package/dist/src/types/zap/step.js +2 -0
  145. package/dist/src/utils/amount.d.ts +82 -0
  146. package/dist/src/utils/amount.js +71 -0
  147. package/dist/src/utils/axios.d.ts +13 -0
  148. package/dist/src/utils/axios.js +42 -0
  149. package/dist/src/utils/date.d.ts +1 -0
  150. package/dist/src/utils/date.js +8 -0
  151. package/dist/src/utils/decoder/swap/abis.d.ts +643 -0
  152. package/dist/src/utils/decoder/swap/abis.js +831 -0
  153. package/dist/src/utils/decoder/swap/inputDataDecoder.d.ts +14 -0
  154. package/dist/src/utils/decoder/swap/inputDataDecoder.js +124 -0
  155. package/dist/src/utils/eip-2612/eip2612Permit.d.ts +23 -0
  156. package/dist/src/utils/eip-2612/eip2612Permit.js +121 -0
  157. package/dist/src/utils/eip-5792/batchApproveTokens.d.ts +21 -0
  158. package/dist/src/utils/eip-5792/batchApproveTokens.js +49 -0
  159. package/dist/src/utils/eip-5792/index.d.ts +3 -0
  160. package/dist/src/utils/eip-5792/index.js +9 -0
  161. package/dist/src/utils/eip-5792/isBatchTxnSupportedByWallet.d.ts +6 -0
  162. package/dist/src/utils/eip-5792/isBatchTxnSupportedByWallet.js +22 -0
  163. package/dist/src/utils/eip-5792/sendBatchCalls.d.ts +10 -0
  164. package/dist/src/utils/eip-5792/sendBatchCalls.js +25 -0
  165. package/dist/src/utils/eip-5792/waitForBatchTransactionReceipt.d.ts +4 -0
  166. package/dist/src/utils/eip-5792/waitForBatchTransactionReceipt.js +26 -0
  167. package/dist/src/utils/encodeApproveCall.d.ts +6 -0
  168. package/dist/src/utils/encodeApproveCall.js +13 -0
  169. package/dist/src/utils/erc20.d.ts +65 -0
  170. package/dist/src/utils/erc20.js +153 -0
  171. package/dist/src/utils/errors.d.ts +17 -0
  172. package/dist/src/utils/errors.js +78 -0
  173. package/dist/src/utils/index.d.ts +4566 -0
  174. package/dist/src/utils/index.js +196 -0
  175. package/dist/src/utils/multicall.d.ts +14 -0
  176. package/dist/src/utils/multicall.js +25 -0
  177. package/dist/src/utils/permit2/domain.d.ts +2 -0
  178. package/dist/src/utils/permit2/domain.js +11 -0
  179. package/dist/src/utils/permit2/index.d.ts +4 -0
  180. package/dist/src/utils/permit2/index.js +97 -0
  181. package/dist/src/utils/permit2/nonce.d.ts +15 -0
  182. package/dist/src/utils/permit2/nonce.js +61 -0
  183. package/dist/src/utils/permit2/permitData.d.ts +23 -0
  184. package/dist/src/utils/permit2/permitData.js +85 -0
  185. package/dist/src/utils/permit2/values.d.ts +54 -0
  186. package/dist/src/utils/permit2/values.js +88 -0
  187. package/dist/src/utils/permit2/witnessData.d.ts +4 -0
  188. package/dist/src/utils/permit2/witnessData.js +48 -0
  189. package/dist/src/utils/signIntent/custom.d.ts +11 -0
  190. package/dist/src/utils/signIntent/custom.js +31 -0
  191. package/dist/src/utils/signIntent/gasless.d.ts +12 -0
  192. package/dist/src/utils/signIntent/gasless.js +101 -0
  193. package/dist/src/utils/signTypedData.d.ts +11 -0
  194. package/dist/src/utils/signTypedData.js +21 -0
  195. package/dist/src/utils/tokens.d.ts +8 -0
  196. package/dist/src/utils/tokens.js +73 -0
  197. package/dist/src/utils/updateQuotes.d.ts +3 -0
  198. package/dist/src/utils/updateQuotes.js +69 -0
  199. package/dist/src/zap/constants/index.d.ts +2 -0
  200. package/dist/src/zap/constants/index.js +18 -0
  201. package/dist/src/zap/constants/path.d.ts +8 -0
  202. package/dist/src/zap/constants/path.js +11 -0
  203. package/dist/src/zap/constants/step.d.ts +3 -0
  204. package/dist/src/zap/constants/step.js +6 -0
  205. package/dist/src/zap/constants/urls.d.ts +13 -0
  206. package/dist/src/zap/constants/urls.js +16 -0
  207. package/dist/test/build.test.d.ts +1 -0
  208. package/dist/test/build.test.js +65 -0
  209. package/dist/test/permit/permit2Nonce.test.d.ts +2 -0
  210. package/dist/test/permit/permit2Nonce.test.js +96 -0
  211. package/dist/test/quotes.test.d.ts +1 -0
  212. package/dist/test/quotes.test.js +59 -0
  213. package/dist/test/status.test.d.ts +1 -0
  214. package/dist/test/status.test.js +37 -0
  215. package/dist/tsconfig.tsbuildinfo +1 -0
  216. package/package.json +1 -1
@@ -0,0 +1,1829 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.abi = void 0;
4
+ exports.abi = [
5
+ {
6
+ inputs: [
7
+ {
8
+ internalType: 'address',
9
+ name: 'governor_',
10
+ type: 'address',
11
+ },
12
+ {
13
+ internalType: 'address',
14
+ name: 'wNative_',
15
+ type: 'address',
16
+ },
17
+ {
18
+ internalType: 'address',
19
+ name: 'feeVault_',
20
+ type: 'address',
21
+ },
22
+ {
23
+ internalType: 'address',
24
+ name: 'permit2_',
25
+ type: 'address',
26
+ },
27
+ {
28
+ internalType: 'uint256',
29
+ name: 'maxNoOfSwap_',
30
+ type: 'uint256',
31
+ },
32
+ ],
33
+ stateMutability: 'nonpayable',
34
+ type: 'constructor',
35
+ },
36
+ {
37
+ inputs: [],
38
+ name: 'HighFee',
39
+ type: 'error',
40
+ },
41
+ {
42
+ inputs: [],
43
+ name: 'HighPlatformFeeRatio',
44
+ type: 'error',
45
+ },
46
+ {
47
+ inputs: [],
48
+ name: 'InvalidAmount',
49
+ type: 'error',
50
+ },
51
+ {
52
+ inputs: [],
53
+ name: 'InvalidBlankSwap',
54
+ type: 'error',
55
+ },
56
+ {
57
+ inputs: [],
58
+ name: 'InvalidInterval',
59
+ type: 'error',
60
+ },
61
+ {
62
+ inputs: [],
63
+ name: 'InvalidLength',
64
+ type: 'error',
65
+ },
66
+ {
67
+ inputs: [],
68
+ name: 'InvalidMask',
69
+ type: 'error',
70
+ },
71
+ {
72
+ inputs: [],
73
+ name: 'InvalidNativeAmount',
74
+ type: 'error',
75
+ },
76
+ {
77
+ inputs: [],
78
+ name: 'InvalidNoOfSwaps',
79
+ type: 'error',
80
+ },
81
+ {
82
+ inputs: [],
83
+ name: 'InvalidPermit',
84
+ type: 'error',
85
+ },
86
+ {
87
+ inputs: [],
88
+ name: 'InvalidPermitData',
89
+ type: 'error',
90
+ },
91
+ {
92
+ inputs: [],
93
+ name: 'InvalidPosition',
94
+ type: 'error',
95
+ },
96
+ {
97
+ inputs: [],
98
+ name: 'InvalidRate',
99
+ type: 'error',
100
+ },
101
+ {
102
+ inputs: [],
103
+ name: 'InvalidReturnAmount',
104
+ type: 'error',
105
+ },
106
+ {
107
+ inputs: [],
108
+ name: 'InvalidSwapAmount',
109
+ type: 'error',
110
+ },
111
+ {
112
+ inputs: [],
113
+ name: 'InvalidToken',
114
+ type: 'error',
115
+ },
116
+ {
117
+ inputs: [],
118
+ name: 'NativeTransferFailed',
119
+ type: 'error',
120
+ },
121
+ {
122
+ inputs: [],
123
+ name: 'NoAvailableSwap',
124
+ type: 'error',
125
+ },
126
+ {
127
+ inputs: [],
128
+ name: 'NoChanges',
129
+ type: 'error',
130
+ },
131
+ {
132
+ inputs: [],
133
+ name: 'NotWNative',
134
+ type: 'error',
135
+ },
136
+ {
137
+ inputs: [],
138
+ name: 'SwapCallFailed',
139
+ type: 'error',
140
+ },
141
+ {
142
+ inputs: [],
143
+ name: 'UnauthorizedCaller',
144
+ type: 'error',
145
+ },
146
+ {
147
+ inputs: [],
148
+ name: 'UnauthorizedTokens',
149
+ type: 'error',
150
+ },
151
+ {
152
+ inputs: [],
153
+ name: 'ZeroAddress',
154
+ type: 'error',
155
+ },
156
+ {
157
+ inputs: [],
158
+ name: 'ZeroSwappedTokens',
159
+ type: 'error',
160
+ },
161
+ {
162
+ anonymous: false,
163
+ inputs: [
164
+ {
165
+ indexed: false,
166
+ internalType: 'address[]',
167
+ name: 'accounts',
168
+ type: 'address[]',
169
+ },
170
+ ],
171
+ name: 'AdminAdded',
172
+ type: 'event',
173
+ },
174
+ {
175
+ anonymous: false,
176
+ inputs: [
177
+ {
178
+ indexed: false,
179
+ internalType: 'address[]',
180
+ name: 'accounts',
181
+ type: 'address[]',
182
+ },
183
+ ],
184
+ name: 'AdminRemoved',
185
+ type: 'event',
186
+ },
187
+ {
188
+ anonymous: false,
189
+ inputs: [
190
+ {
191
+ indexed: true,
192
+ internalType: 'address',
193
+ name: 'sender',
194
+ type: 'address',
195
+ },
196
+ {
197
+ indexed: false,
198
+ internalType: 'address',
199
+ name: 'from',
200
+ type: 'address',
201
+ },
202
+ {
203
+ indexed: false,
204
+ internalType: 'address',
205
+ name: 'to',
206
+ type: 'address',
207
+ },
208
+ {
209
+ indexed: false,
210
+ internalType: 'bytes1',
211
+ name: 'interval',
212
+ type: 'bytes1',
213
+ },
214
+ ],
215
+ name: 'BlankSwapped',
216
+ type: 'event',
217
+ },
218
+ {
219
+ anonymous: false,
220
+ inputs: [
221
+ {
222
+ indexed: true,
223
+ internalType: 'address',
224
+ name: 'user',
225
+ type: 'address',
226
+ },
227
+ {
228
+ indexed: false,
229
+ internalType: 'uint256',
230
+ name: 'positionId',
231
+ type: 'uint256',
232
+ },
233
+ {
234
+ indexed: false,
235
+ internalType: 'bool',
236
+ name: 'isNative',
237
+ type: 'bool',
238
+ },
239
+ ],
240
+ name: 'Created',
241
+ type: 'event',
242
+ },
243
+ {
244
+ anonymous: false,
245
+ inputs: [
246
+ {
247
+ indexed: true,
248
+ internalType: 'address',
249
+ name: 'user',
250
+ type: 'address',
251
+ },
252
+ {
253
+ indexed: false,
254
+ internalType: 'uint256',
255
+ name: 'finalIndex',
256
+ type: 'uint256',
257
+ },
258
+ {
259
+ indexed: false,
260
+ internalType: 'uint256',
261
+ name: 'noOfPositions',
262
+ type: 'uint256',
263
+ },
264
+ {
265
+ indexed: false,
266
+ internalType: 'bool[]',
267
+ name: 'isNative',
268
+ type: 'bool[]',
269
+ },
270
+ ],
271
+ name: 'CreatedBatched',
272
+ type: 'event',
273
+ },
274
+ {
275
+ anonymous: false,
276
+ inputs: [
277
+ {
278
+ indexed: false,
279
+ internalType: 'address',
280
+ name: 'feeVault',
281
+ type: 'address',
282
+ },
283
+ ],
284
+ name: 'FeeVaultUpdated',
285
+ type: 'event',
286
+ },
287
+ {
288
+ anonymous: false,
289
+ inputs: [
290
+ {
291
+ indexed: true,
292
+ internalType: 'address',
293
+ name: 'formerGov',
294
+ type: 'address',
295
+ },
296
+ {
297
+ indexed: true,
298
+ internalType: 'address',
299
+ name: 'newGov',
300
+ type: 'address',
301
+ },
302
+ ],
303
+ name: 'GovernanceChanged',
304
+ type: 'event',
305
+ },
306
+ {
307
+ anonymous: false,
308
+ inputs: [
309
+ {
310
+ indexed: true,
311
+ internalType: 'address',
312
+ name: 'user',
313
+ type: 'address',
314
+ },
315
+ {
316
+ indexed: false,
317
+ internalType: 'uint256',
318
+ name: 'positionId',
319
+ type: 'uint256',
320
+ },
321
+ {
322
+ indexed: false,
323
+ internalType: 'uint256',
324
+ name: 'rate',
325
+ type: 'uint256',
326
+ },
327
+ {
328
+ indexed: false,
329
+ internalType: 'uint256',
330
+ name: 'startingSwap',
331
+ type: 'uint256',
332
+ },
333
+ {
334
+ indexed: false,
335
+ internalType: 'uint256',
336
+ name: 'finalSwap',
337
+ type: 'uint256',
338
+ },
339
+ {
340
+ indexed: false,
341
+ internalType: 'bool',
342
+ name: 'isNative',
343
+ type: 'bool',
344
+ },
345
+ ],
346
+ name: 'Modified',
347
+ type: 'event',
348
+ },
349
+ {
350
+ anonymous: false,
351
+ inputs: [
352
+ {
353
+ indexed: false,
354
+ internalType: 'address',
355
+ name: 'account',
356
+ type: 'address',
357
+ },
358
+ ],
359
+ name: 'Paused',
360
+ type: 'event',
361
+ },
362
+ {
363
+ anonymous: false,
364
+ inputs: [
365
+ {
366
+ indexed: false,
367
+ internalType: 'uint256',
368
+ name: 'platformFeeRatio',
369
+ type: 'uint256',
370
+ },
371
+ ],
372
+ name: 'PlatformFeeRatioUpdated',
373
+ type: 'event',
374
+ },
375
+ {
376
+ anonymous: false,
377
+ inputs: [
378
+ {
379
+ indexed: true,
380
+ internalType: 'address',
381
+ name: 'oldOwner',
382
+ type: 'address',
383
+ },
384
+ {
385
+ indexed: true,
386
+ internalType: 'address',
387
+ name: 'newOwner',
388
+ type: 'address',
389
+ },
390
+ {
391
+ indexed: false,
392
+ internalType: 'uint256',
393
+ name: 'positionId',
394
+ type: 'uint256',
395
+ },
396
+ ],
397
+ name: 'PositionOwnerUpdated',
398
+ type: 'event',
399
+ },
400
+ {
401
+ anonymous: false,
402
+ inputs: [
403
+ {
404
+ indexed: false,
405
+ internalType: 'address[]',
406
+ name: 'accounts',
407
+ type: 'address[]',
408
+ },
409
+ ],
410
+ name: 'SwapExecutorAdded',
411
+ type: 'event',
412
+ },
413
+ {
414
+ anonymous: false,
415
+ inputs: [
416
+ {
417
+ indexed: false,
418
+ internalType: 'address[]',
419
+ name: 'accounts',
420
+ type: 'address[]',
421
+ },
422
+ ],
423
+ name: 'SwapExecutorRemoved',
424
+ type: 'event',
425
+ },
426
+ {
427
+ anonymous: false,
428
+ inputs: [
429
+ {
430
+ indexed: false,
431
+ internalType: 'uint32[]',
432
+ name: 'intervals',
433
+ type: 'uint32[]',
434
+ },
435
+ {
436
+ indexed: false,
437
+ internalType: 'uint256[]',
438
+ name: 'swapFee',
439
+ type: 'uint256[]',
440
+ },
441
+ ],
442
+ name: 'SwapFeeUpdated',
443
+ type: 'event',
444
+ },
445
+ {
446
+ anonymous: false,
447
+ inputs: [
448
+ {
449
+ indexed: false,
450
+ internalType: 'uint32[]',
451
+ name: 'swapIntervals',
452
+ type: 'uint32[]',
453
+ },
454
+ ],
455
+ name: 'SwapIntervalsAdded',
456
+ type: 'event',
457
+ },
458
+ {
459
+ anonymous: false,
460
+ inputs: [
461
+ {
462
+ indexed: false,
463
+ internalType: 'uint32[]',
464
+ name: 'swapIntervals',
465
+ type: 'uint32[]',
466
+ },
467
+ ],
468
+ name: 'SwapIntervalsRemoved',
469
+ type: 'event',
470
+ },
471
+ {
472
+ anonymous: false,
473
+ inputs: [
474
+ {
475
+ indexed: false,
476
+ internalType: 'uint256',
477
+ name: 'noOfSwaps',
478
+ type: 'uint256',
479
+ },
480
+ ],
481
+ name: 'SwapLimitUpdated',
482
+ type: 'event',
483
+ },
484
+ {
485
+ anonymous: false,
486
+ inputs: [
487
+ {
488
+ indexed: false,
489
+ internalType: 'uint256',
490
+ name: 'threshold',
491
+ type: 'uint256',
492
+ },
493
+ ],
494
+ name: 'SwapThresholdUpdated',
495
+ type: 'event',
496
+ },
497
+ {
498
+ anonymous: false,
499
+ inputs: [
500
+ {
501
+ indexed: true,
502
+ internalType: 'address',
503
+ name: 'sender',
504
+ type: 'address',
505
+ },
506
+ {
507
+ indexed: true,
508
+ internalType: 'address',
509
+ name: 'rewardRecipient',
510
+ type: 'address',
511
+ },
512
+ {
513
+ components: [
514
+ {
515
+ internalType: 'address',
516
+ name: 'from',
517
+ type: 'address',
518
+ },
519
+ {
520
+ internalType: 'address',
521
+ name: 'to',
522
+ type: 'address',
523
+ },
524
+ {
525
+ internalType: 'uint256',
526
+ name: 'swappedAmount',
527
+ type: 'uint256',
528
+ },
529
+ {
530
+ internalType: 'uint256',
531
+ name: 'receivedAmount',
532
+ type: 'uint256',
533
+ },
534
+ {
535
+ internalType: 'uint256',
536
+ name: 'reward',
537
+ type: 'uint256',
538
+ },
539
+ {
540
+ internalType: 'uint256',
541
+ name: 'fee',
542
+ type: 'uint256',
543
+ },
544
+ {
545
+ internalType: 'bytes1',
546
+ name: 'intervalsInSwap',
547
+ type: 'bytes1',
548
+ },
549
+ ],
550
+ indexed: false,
551
+ internalType: 'struct SwapInfo[]',
552
+ name: 'swapInformation',
553
+ type: 'tuple[]',
554
+ },
555
+ ],
556
+ name: 'Swapped',
557
+ type: 'event',
558
+ },
559
+ {
560
+ anonymous: false,
561
+ inputs: [
562
+ {
563
+ indexed: true,
564
+ internalType: 'address',
565
+ name: 'user',
566
+ type: 'address',
567
+ },
568
+ {
569
+ indexed: true,
570
+ internalType: 'address',
571
+ name: 'recipient',
572
+ type: 'address',
573
+ },
574
+ {
575
+ indexed: false,
576
+ internalType: 'uint256',
577
+ name: 'positionId',
578
+ type: 'uint256',
579
+ },
580
+ {
581
+ indexed: false,
582
+ internalType: 'uint256',
583
+ name: 'unswapped',
584
+ type: 'uint256',
585
+ },
586
+ {
587
+ indexed: false,
588
+ internalType: 'uint256',
589
+ name: 'swapped',
590
+ type: 'uint256',
591
+ },
592
+ {
593
+ indexed: false,
594
+ internalType: 'bool',
595
+ name: 'isNative',
596
+ type: 'bool',
597
+ },
598
+ ],
599
+ name: 'Terminated',
600
+ type: 'event',
601
+ },
602
+ {
603
+ anonymous: false,
604
+ inputs: [
605
+ {
606
+ indexed: false,
607
+ internalType: 'address[]',
608
+ name: 'tokens',
609
+ type: 'address[]',
610
+ },
611
+ ],
612
+ name: 'TokensAdded',
613
+ type: 'event',
614
+ },
615
+ {
616
+ anonymous: false,
617
+ inputs: [
618
+ {
619
+ indexed: false,
620
+ internalType: 'address[]',
621
+ name: 'tokens',
622
+ type: 'address[]',
623
+ },
624
+ ],
625
+ name: 'TokensRemoved',
626
+ type: 'event',
627
+ },
628
+ {
629
+ anonymous: false,
630
+ inputs: [
631
+ {
632
+ indexed: true,
633
+ internalType: 'address',
634
+ name: 'to',
635
+ type: 'address',
636
+ },
637
+ {
638
+ indexed: true,
639
+ internalType: 'address',
640
+ name: 'token',
641
+ type: 'address',
642
+ },
643
+ {
644
+ indexed: false,
645
+ internalType: 'uint256',
646
+ name: 'amount',
647
+ type: 'uint256',
648
+ },
649
+ ],
650
+ name: 'TokensRescued',
651
+ type: 'event',
652
+ },
653
+ {
654
+ anonymous: false,
655
+ inputs: [
656
+ {
657
+ indexed: false,
658
+ internalType: 'address',
659
+ name: 'account',
660
+ type: 'address',
661
+ },
662
+ ],
663
+ name: 'Unpaused',
664
+ type: 'event',
665
+ },
666
+ {
667
+ anonymous: false,
668
+ inputs: [
669
+ {
670
+ indexed: true,
671
+ internalType: 'address',
672
+ name: 'user',
673
+ type: 'address',
674
+ },
675
+ {
676
+ indexed: true,
677
+ internalType: 'address',
678
+ name: 'recipient',
679
+ type: 'address',
680
+ },
681
+ {
682
+ indexed: false,
683
+ internalType: 'uint256',
684
+ name: 'positionId',
685
+ type: 'uint256',
686
+ },
687
+ {
688
+ indexed: false,
689
+ internalType: 'uint256',
690
+ name: 'swapped',
691
+ type: 'uint256',
692
+ },
693
+ {
694
+ indexed: false,
695
+ internalType: 'bool',
696
+ name: 'isNative',
697
+ type: 'bool',
698
+ },
699
+ ],
700
+ name: 'Withdrawn',
701
+ type: 'event',
702
+ },
703
+ {
704
+ inputs: [],
705
+ name: 'BPS_DENOMINATOR',
706
+ outputs: [
707
+ {
708
+ internalType: 'uint256',
709
+ name: '',
710
+ type: 'uint256',
711
+ },
712
+ ],
713
+ stateMutability: 'view',
714
+ type: 'function',
715
+ },
716
+ {
717
+ inputs: [],
718
+ name: 'MAX_FEE',
719
+ outputs: [
720
+ {
721
+ internalType: 'uint256',
722
+ name: '',
723
+ type: 'uint256',
724
+ },
725
+ ],
726
+ stateMutability: 'view',
727
+ type: 'function',
728
+ },
729
+ {
730
+ inputs: [],
731
+ name: 'MAX_PLATFORM_FEE_RATIO',
732
+ outputs: [
733
+ {
734
+ internalType: 'uint256',
735
+ name: '',
736
+ type: 'uint256',
737
+ },
738
+ ],
739
+ stateMutability: 'view',
740
+ type: 'function',
741
+ },
742
+ {
743
+ inputs: [],
744
+ name: 'NATIVE_TOKEN',
745
+ outputs: [
746
+ {
747
+ internalType: 'address',
748
+ name: '',
749
+ type: 'address',
750
+ },
751
+ ],
752
+ stateMutability: 'view',
753
+ type: 'function',
754
+ },
755
+ {
756
+ inputs: [],
757
+ name: 'PERMIT2',
758
+ outputs: [
759
+ {
760
+ internalType: 'address',
761
+ name: '',
762
+ type: 'address',
763
+ },
764
+ ],
765
+ stateMutability: 'view',
766
+ type: 'function',
767
+ },
768
+ {
769
+ inputs: [
770
+ {
771
+ internalType: 'address',
772
+ name: '',
773
+ type: 'address',
774
+ },
775
+ {
776
+ internalType: 'address',
777
+ name: '',
778
+ type: 'address',
779
+ },
780
+ {
781
+ internalType: 'bytes1',
782
+ name: '',
783
+ type: 'bytes1',
784
+ },
785
+ {
786
+ internalType: 'uint256',
787
+ name: '',
788
+ type: 'uint256',
789
+ },
790
+ ],
791
+ name: 'accumRatio',
792
+ outputs: [
793
+ {
794
+ internalType: 'uint256',
795
+ name: '',
796
+ type: 'uint256',
797
+ },
798
+ ],
799
+ stateMutability: 'view',
800
+ type: 'function',
801
+ },
802
+ {
803
+ inputs: [
804
+ {
805
+ internalType: 'address',
806
+ name: '',
807
+ type: 'address',
808
+ },
809
+ {
810
+ internalType: 'address',
811
+ name: '',
812
+ type: 'address',
813
+ },
814
+ ],
815
+ name: 'activeSwapIntervals',
816
+ outputs: [
817
+ {
818
+ internalType: 'bytes1',
819
+ name: '',
820
+ type: 'bytes1',
821
+ },
822
+ ],
823
+ stateMutability: 'view',
824
+ type: 'function',
825
+ },
826
+ {
827
+ inputs: [
828
+ {
829
+ internalType: 'address[]',
830
+ name: 'accounts_',
831
+ type: 'address[]',
832
+ },
833
+ ],
834
+ name: 'addAdmins',
835
+ outputs: [],
836
+ stateMutability: 'nonpayable',
837
+ type: 'function',
838
+ },
839
+ {
840
+ inputs: [
841
+ {
842
+ internalType: 'address[]',
843
+ name: 'tokens_',
844
+ type: 'address[]',
845
+ },
846
+ ],
847
+ name: 'addAllowedTokens',
848
+ outputs: [],
849
+ stateMutability: 'nonpayable',
850
+ type: 'function',
851
+ },
852
+ {
853
+ inputs: [
854
+ {
855
+ internalType: 'address[]',
856
+ name: 'executor_',
857
+ type: 'address[]',
858
+ },
859
+ ],
860
+ name: 'addSwapExecutors',
861
+ outputs: [],
862
+ stateMutability: 'nonpayable',
863
+ type: 'function',
864
+ },
865
+ {
866
+ inputs: [
867
+ {
868
+ internalType: 'uint32[]',
869
+ name: 'swapIntervals_',
870
+ type: 'uint32[]',
871
+ },
872
+ ],
873
+ name: 'addSwapIntervalsToAllowedList',
874
+ outputs: [],
875
+ stateMutability: 'nonpayable',
876
+ type: 'function',
877
+ },
878
+ {
879
+ inputs: [
880
+ {
881
+ internalType: 'address',
882
+ name: '',
883
+ type: 'address',
884
+ },
885
+ ],
886
+ name: 'admins',
887
+ outputs: [
888
+ {
889
+ internalType: 'bool',
890
+ name: '',
891
+ type: 'bool',
892
+ },
893
+ ],
894
+ stateMutability: 'view',
895
+ type: 'function',
896
+ },
897
+ {
898
+ inputs: [],
899
+ name: 'allowedSwapIntervals',
900
+ outputs: [
901
+ {
902
+ internalType: 'bytes1',
903
+ name: '',
904
+ type: 'bytes1',
905
+ },
906
+ ],
907
+ stateMutability: 'view',
908
+ type: 'function',
909
+ },
910
+ {
911
+ inputs: [
912
+ {
913
+ internalType: 'address',
914
+ name: '',
915
+ type: 'address',
916
+ },
917
+ ],
918
+ name: 'allowedTokens',
919
+ outputs: [
920
+ {
921
+ internalType: 'bool',
922
+ name: '',
923
+ type: 'bool',
924
+ },
925
+ ],
926
+ stateMutability: 'view',
927
+ type: 'function',
928
+ },
929
+ {
930
+ inputs: [
931
+ {
932
+ internalType: 'bytes[]',
933
+ name: 'data_',
934
+ type: 'bytes[]',
935
+ },
936
+ ],
937
+ name: 'batchCall',
938
+ outputs: [
939
+ {
940
+ internalType: 'bytes[]',
941
+ name: 'results',
942
+ type: 'bytes[]',
943
+ },
944
+ ],
945
+ stateMutability: 'nonpayable',
946
+ type: 'function',
947
+ },
948
+ {
949
+ inputs: [
950
+ {
951
+ internalType: 'address',
952
+ name: 'from_',
953
+ type: 'address',
954
+ },
955
+ {
956
+ internalType: 'address',
957
+ name: 'to_',
958
+ type: 'address',
959
+ },
960
+ {
961
+ internalType: 'bytes1',
962
+ name: 'maskedInterval_',
963
+ type: 'bytes1',
964
+ },
965
+ ],
966
+ name: 'blankSwap',
967
+ outputs: [],
968
+ stateMutability: 'nonpayable',
969
+ type: 'function',
970
+ },
971
+ {
972
+ inputs: [
973
+ {
974
+ internalType: 'address',
975
+ name: 'newGov',
976
+ type: 'address',
977
+ },
978
+ ],
979
+ name: 'changeGovernance',
980
+ outputs: [],
981
+ stateMutability: 'nonpayable',
982
+ type: 'function',
983
+ },
984
+ {
985
+ inputs: [
986
+ {
987
+ components: [
988
+ {
989
+ internalType: 'address',
990
+ name: 'from',
991
+ type: 'address',
992
+ },
993
+ {
994
+ internalType: 'address',
995
+ name: 'to',
996
+ type: 'address',
997
+ },
998
+ {
999
+ internalType: 'uint32',
1000
+ name: 'swapInterval',
1001
+ type: 'uint32',
1002
+ },
1003
+ {
1004
+ internalType: 'uint256',
1005
+ name: 'amount',
1006
+ type: 'uint256',
1007
+ },
1008
+ {
1009
+ internalType: 'uint256',
1010
+ name: 'noOfSwaps',
1011
+ type: 'uint256',
1012
+ },
1013
+ {
1014
+ internalType: 'bytes',
1015
+ name: 'permit',
1016
+ type: 'bytes',
1017
+ },
1018
+ ],
1019
+ internalType: 'struct CreatePositionDetails[]',
1020
+ name: 'details_',
1021
+ type: 'tuple[]',
1022
+ },
1023
+ ],
1024
+ name: 'createBatchPositions',
1025
+ outputs: [],
1026
+ stateMutability: 'payable',
1027
+ type: 'function',
1028
+ },
1029
+ {
1030
+ inputs: [
1031
+ {
1032
+ components: [
1033
+ {
1034
+ internalType: 'address',
1035
+ name: 'from',
1036
+ type: 'address',
1037
+ },
1038
+ {
1039
+ internalType: 'address',
1040
+ name: 'to',
1041
+ type: 'address',
1042
+ },
1043
+ {
1044
+ internalType: 'uint32',
1045
+ name: 'swapInterval',
1046
+ type: 'uint32',
1047
+ },
1048
+ {
1049
+ internalType: 'uint256',
1050
+ name: 'amount',
1051
+ type: 'uint256',
1052
+ },
1053
+ {
1054
+ internalType: 'uint256',
1055
+ name: 'noOfSwaps',
1056
+ type: 'uint256',
1057
+ },
1058
+ {
1059
+ internalType: 'bytes',
1060
+ name: 'permit',
1061
+ type: 'bytes',
1062
+ },
1063
+ ],
1064
+ internalType: 'struct CreatePositionDetails',
1065
+ name: 'details_',
1066
+ type: 'tuple',
1067
+ },
1068
+ ],
1069
+ name: 'createPosition',
1070
+ outputs: [],
1071
+ stateMutability: 'payable',
1072
+ type: 'function',
1073
+ },
1074
+ {
1075
+ inputs: [],
1076
+ name: 'feeVault',
1077
+ outputs: [
1078
+ {
1079
+ internalType: 'address',
1080
+ name: '',
1081
+ type: 'address',
1082
+ },
1083
+ ],
1084
+ stateMutability: 'view',
1085
+ type: 'function',
1086
+ },
1087
+ {
1088
+ inputs: [
1089
+ {
1090
+ components: [
1091
+ {
1092
+ internalType: 'address',
1093
+ name: 'from',
1094
+ type: 'address',
1095
+ },
1096
+ {
1097
+ internalType: 'address',
1098
+ name: 'to',
1099
+ type: 'address',
1100
+ },
1101
+ ],
1102
+ internalType: 'struct Pair[]',
1103
+ name: 'pairs_',
1104
+ type: 'tuple[]',
1105
+ },
1106
+ ],
1107
+ name: 'getNextSwapInfo',
1108
+ outputs: [
1109
+ {
1110
+ components: [
1111
+ {
1112
+ internalType: 'address',
1113
+ name: 'from',
1114
+ type: 'address',
1115
+ },
1116
+ {
1117
+ internalType: 'address',
1118
+ name: 'to',
1119
+ type: 'address',
1120
+ },
1121
+ {
1122
+ internalType: 'uint256',
1123
+ name: 'swappedAmount',
1124
+ type: 'uint256',
1125
+ },
1126
+ {
1127
+ internalType: 'uint256',
1128
+ name: 'receivedAmount',
1129
+ type: 'uint256',
1130
+ },
1131
+ {
1132
+ internalType: 'uint256',
1133
+ name: 'reward',
1134
+ type: 'uint256',
1135
+ },
1136
+ {
1137
+ internalType: 'uint256',
1138
+ name: 'fee',
1139
+ type: 'uint256',
1140
+ },
1141
+ {
1142
+ internalType: 'bytes1',
1143
+ name: 'intervalsInSwap',
1144
+ type: 'bytes1',
1145
+ },
1146
+ ],
1147
+ internalType: 'struct SwapInfo[]',
1148
+ name: '',
1149
+ type: 'tuple[]',
1150
+ },
1151
+ ],
1152
+ stateMutability: 'view',
1153
+ type: 'function',
1154
+ },
1155
+ {
1156
+ inputs: [
1157
+ {
1158
+ internalType: 'uint256',
1159
+ name: 'positionId_',
1160
+ type: 'uint256',
1161
+ },
1162
+ ],
1163
+ name: 'getPositionDetails',
1164
+ outputs: [
1165
+ {
1166
+ components: [
1167
+ {
1168
+ internalType: 'address',
1169
+ name: 'owner',
1170
+ type: 'address',
1171
+ },
1172
+ {
1173
+ internalType: 'address',
1174
+ name: 'from',
1175
+ type: 'address',
1176
+ },
1177
+ {
1178
+ internalType: 'address',
1179
+ name: 'to',
1180
+ type: 'address',
1181
+ },
1182
+ {
1183
+ internalType: 'uint32',
1184
+ name: 'swapInterval',
1185
+ type: 'uint32',
1186
+ },
1187
+ {
1188
+ internalType: 'uint256',
1189
+ name: 'rate',
1190
+ type: 'uint256',
1191
+ },
1192
+ {
1193
+ internalType: 'uint256',
1194
+ name: 'swapsExecuted',
1195
+ type: 'uint256',
1196
+ },
1197
+ {
1198
+ internalType: 'uint256',
1199
+ name: 'swapsLeft',
1200
+ type: 'uint256',
1201
+ },
1202
+ {
1203
+ internalType: 'uint256',
1204
+ name: 'swapped',
1205
+ type: 'uint256',
1206
+ },
1207
+ {
1208
+ internalType: 'uint256',
1209
+ name: 'unswapped',
1210
+ type: 'uint256',
1211
+ },
1212
+ ],
1213
+ internalType: 'struct PositionInfo',
1214
+ name: 'positionInfo',
1215
+ type: 'tuple',
1216
+ },
1217
+ ],
1218
+ stateMutability: 'view',
1219
+ type: 'function',
1220
+ },
1221
+ {
1222
+ inputs: [
1223
+ {
1224
+ internalType: 'uint32',
1225
+ name: 'interval_',
1226
+ type: 'uint32',
1227
+ },
1228
+ ],
1229
+ name: 'getSwapFee',
1230
+ outputs: [
1231
+ {
1232
+ internalType: 'uint256',
1233
+ name: '',
1234
+ type: 'uint256',
1235
+ },
1236
+ ],
1237
+ stateMutability: 'view',
1238
+ type: 'function',
1239
+ },
1240
+ {
1241
+ inputs: [],
1242
+ name: 'governance',
1243
+ outputs: [
1244
+ {
1245
+ internalType: 'address',
1246
+ name: '',
1247
+ type: 'address',
1248
+ },
1249
+ ],
1250
+ stateMutability: 'view',
1251
+ type: 'function',
1252
+ },
1253
+ {
1254
+ inputs: [],
1255
+ name: 'maxNoOfSwap',
1256
+ outputs: [
1257
+ {
1258
+ internalType: 'uint256',
1259
+ name: '',
1260
+ type: 'uint256',
1261
+ },
1262
+ ],
1263
+ stateMutability: 'view',
1264
+ type: 'function',
1265
+ },
1266
+ {
1267
+ inputs: [
1268
+ {
1269
+ internalType: 'uint256',
1270
+ name: 'positionId_',
1271
+ type: 'uint256',
1272
+ },
1273
+ {
1274
+ internalType: 'uint256',
1275
+ name: 'amount_',
1276
+ type: 'uint256',
1277
+ },
1278
+ {
1279
+ internalType: 'uint256',
1280
+ name: 'noOfSwaps_',
1281
+ type: 'uint256',
1282
+ },
1283
+ {
1284
+ internalType: 'bool',
1285
+ name: 'isIncrease_',
1286
+ type: 'bool',
1287
+ },
1288
+ {
1289
+ internalType: 'bool',
1290
+ name: 'isNative_',
1291
+ type: 'bool',
1292
+ },
1293
+ {
1294
+ internalType: 'bytes',
1295
+ name: 'permit_',
1296
+ type: 'bytes',
1297
+ },
1298
+ ],
1299
+ name: 'modifyPosition',
1300
+ outputs: [],
1301
+ stateMutability: 'payable',
1302
+ type: 'function',
1303
+ },
1304
+ {
1305
+ inputs: [],
1306
+ name: 'nextToNextTimeThreshold',
1307
+ outputs: [
1308
+ {
1309
+ internalType: 'uint256',
1310
+ name: '',
1311
+ type: 'uint256',
1312
+ },
1313
+ ],
1314
+ stateMutability: 'view',
1315
+ type: 'function',
1316
+ },
1317
+ {
1318
+ inputs: [],
1319
+ name: 'pause',
1320
+ outputs: [],
1321
+ stateMutability: 'nonpayable',
1322
+ type: 'function',
1323
+ },
1324
+ {
1325
+ inputs: [],
1326
+ name: 'paused',
1327
+ outputs: [
1328
+ {
1329
+ internalType: 'bool',
1330
+ name: '',
1331
+ type: 'bool',
1332
+ },
1333
+ ],
1334
+ stateMutability: 'view',
1335
+ type: 'function',
1336
+ },
1337
+ {
1338
+ inputs: [],
1339
+ name: 'platformFeeRatio',
1340
+ outputs: [
1341
+ {
1342
+ internalType: 'uint256',
1343
+ name: '',
1344
+ type: 'uint256',
1345
+ },
1346
+ ],
1347
+ stateMutability: 'view',
1348
+ type: 'function',
1349
+ },
1350
+ {
1351
+ inputs: [
1352
+ {
1353
+ internalType: 'address[]',
1354
+ name: 'accounts_',
1355
+ type: 'address[]',
1356
+ },
1357
+ ],
1358
+ name: 'removeAdmins',
1359
+ outputs: [],
1360
+ stateMutability: 'nonpayable',
1361
+ type: 'function',
1362
+ },
1363
+ {
1364
+ inputs: [
1365
+ {
1366
+ internalType: 'address[]',
1367
+ name: 'tokens_',
1368
+ type: 'address[]',
1369
+ },
1370
+ ],
1371
+ name: 'removeAllowedTokens',
1372
+ outputs: [],
1373
+ stateMutability: 'nonpayable',
1374
+ type: 'function',
1375
+ },
1376
+ {
1377
+ inputs: [
1378
+ {
1379
+ internalType: 'address[]',
1380
+ name: 'executor_',
1381
+ type: 'address[]',
1382
+ },
1383
+ ],
1384
+ name: 'removeSwapExecutors',
1385
+ outputs: [],
1386
+ stateMutability: 'nonpayable',
1387
+ type: 'function',
1388
+ },
1389
+ {
1390
+ inputs: [
1391
+ {
1392
+ internalType: 'uint32[]',
1393
+ name: 'swapIntervals_',
1394
+ type: 'uint32[]',
1395
+ },
1396
+ ],
1397
+ name: 'removeSwapIntervalsFromAllowedList',
1398
+ outputs: [],
1399
+ stateMutability: 'nonpayable',
1400
+ type: 'function',
1401
+ },
1402
+ {
1403
+ inputs: [
1404
+ {
1405
+ components: [
1406
+ {
1407
+ internalType: 'address',
1408
+ name: 'from',
1409
+ type: 'address',
1410
+ },
1411
+ {
1412
+ internalType: 'address',
1413
+ name: 'to',
1414
+ type: 'address',
1415
+ },
1416
+ ],
1417
+ internalType: 'struct Pair[]',
1418
+ name: 'pairs_',
1419
+ type: 'tuple[]',
1420
+ },
1421
+ ],
1422
+ name: 'secondsUntilNextSwap',
1423
+ outputs: [
1424
+ {
1425
+ internalType: 'uint256[]',
1426
+ name: '',
1427
+ type: 'uint256[]',
1428
+ },
1429
+ ],
1430
+ stateMutability: 'view',
1431
+ type: 'function',
1432
+ },
1433
+ {
1434
+ inputs: [
1435
+ {
1436
+ internalType: 'address',
1437
+ name: 'newVault_',
1438
+ type: 'address',
1439
+ },
1440
+ ],
1441
+ name: 'setFeeVault',
1442
+ outputs: [],
1443
+ stateMutability: 'nonpayable',
1444
+ type: 'function',
1445
+ },
1446
+ {
1447
+ inputs: [
1448
+ {
1449
+ internalType: 'uint256',
1450
+ name: 'platformFeeRatio_',
1451
+ type: 'uint256',
1452
+ },
1453
+ ],
1454
+ name: 'setPlatformFeeRatio',
1455
+ outputs: [],
1456
+ stateMutability: 'nonpayable',
1457
+ type: 'function',
1458
+ },
1459
+ {
1460
+ inputs: [
1461
+ {
1462
+ internalType: 'uint32[]',
1463
+ name: 'intervals_',
1464
+ type: 'uint32[]',
1465
+ },
1466
+ {
1467
+ internalType: 'uint256[]',
1468
+ name: 'swapFee_',
1469
+ type: 'uint256[]',
1470
+ },
1471
+ ],
1472
+ name: 'setSwapFee',
1473
+ outputs: [],
1474
+ stateMutability: 'nonpayable',
1475
+ type: 'function',
1476
+ },
1477
+ {
1478
+ inputs: [
1479
+ {
1480
+ components: [
1481
+ {
1482
+ internalType: 'address',
1483
+ name: 'executor',
1484
+ type: 'address',
1485
+ },
1486
+ {
1487
+ internalType: 'address',
1488
+ name: 'tokenProxy',
1489
+ type: 'address',
1490
+ },
1491
+ {
1492
+ internalType: 'address',
1493
+ name: 'from',
1494
+ type: 'address',
1495
+ },
1496
+ {
1497
+ internalType: 'address',
1498
+ name: 'to',
1499
+ type: 'address',
1500
+ },
1501
+ {
1502
+ internalType: 'uint256',
1503
+ name: 'amount',
1504
+ type: 'uint256',
1505
+ },
1506
+ {
1507
+ internalType: 'uint256',
1508
+ name: 'minReturnAmount',
1509
+ type: 'uint256',
1510
+ },
1511
+ {
1512
+ internalType: 'bytes',
1513
+ name: 'swapCallData',
1514
+ type: 'bytes',
1515
+ },
1516
+ ],
1517
+ internalType: 'struct SwapDetails[]',
1518
+ name: 'data_',
1519
+ type: 'tuple[]',
1520
+ },
1521
+ {
1522
+ internalType: 'address',
1523
+ name: 'rewardRecipient_',
1524
+ type: 'address',
1525
+ },
1526
+ ],
1527
+ name: 'swap',
1528
+ outputs: [],
1529
+ stateMutability: 'nonpayable',
1530
+ type: 'function',
1531
+ },
1532
+ {
1533
+ inputs: [
1534
+ {
1535
+ internalType: 'address',
1536
+ name: '',
1537
+ type: 'address',
1538
+ },
1539
+ {
1540
+ internalType: 'address',
1541
+ name: '',
1542
+ type: 'address',
1543
+ },
1544
+ {
1545
+ internalType: 'bytes1',
1546
+ name: '',
1547
+ type: 'bytes1',
1548
+ },
1549
+ {
1550
+ internalType: 'uint256',
1551
+ name: '',
1552
+ type: 'uint256',
1553
+ },
1554
+ ],
1555
+ name: 'swapAmountDelta',
1556
+ outputs: [
1557
+ {
1558
+ internalType: 'uint256',
1559
+ name: '',
1560
+ type: 'uint256',
1561
+ },
1562
+ ],
1563
+ stateMutability: 'view',
1564
+ type: 'function',
1565
+ },
1566
+ {
1567
+ inputs: [
1568
+ {
1569
+ internalType: 'address',
1570
+ name: '',
1571
+ type: 'address',
1572
+ },
1573
+ {
1574
+ internalType: 'address',
1575
+ name: '',
1576
+ type: 'address',
1577
+ },
1578
+ {
1579
+ internalType: 'bytes1',
1580
+ name: '',
1581
+ type: 'bytes1',
1582
+ },
1583
+ ],
1584
+ name: 'swapData',
1585
+ outputs: [
1586
+ {
1587
+ internalType: 'uint256',
1588
+ name: 'performedSwaps',
1589
+ type: 'uint256',
1590
+ },
1591
+ {
1592
+ internalType: 'uint256',
1593
+ name: 'nextAmountToSwap',
1594
+ type: 'uint256',
1595
+ },
1596
+ {
1597
+ internalType: 'uint256',
1598
+ name: 'nextToNextAmountToSwap',
1599
+ type: 'uint256',
1600
+ },
1601
+ {
1602
+ internalType: 'uint256',
1603
+ name: 'lastSwappedAt',
1604
+ type: 'uint256',
1605
+ },
1606
+ ],
1607
+ stateMutability: 'view',
1608
+ type: 'function',
1609
+ },
1610
+ {
1611
+ inputs: [
1612
+ {
1613
+ internalType: 'address',
1614
+ name: '',
1615
+ type: 'address',
1616
+ },
1617
+ ],
1618
+ name: 'swapExecutors',
1619
+ outputs: [
1620
+ {
1621
+ internalType: 'bool',
1622
+ name: '',
1623
+ type: 'bool',
1624
+ },
1625
+ ],
1626
+ stateMutability: 'view',
1627
+ type: 'function',
1628
+ },
1629
+ {
1630
+ inputs: [
1631
+ {
1632
+ internalType: 'uint256',
1633
+ name: 'positionId_',
1634
+ type: 'uint256',
1635
+ },
1636
+ {
1637
+ internalType: 'address',
1638
+ name: 'recipient_',
1639
+ type: 'address',
1640
+ },
1641
+ {
1642
+ internalType: 'bool',
1643
+ name: 'isNative_',
1644
+ type: 'bool',
1645
+ },
1646
+ ],
1647
+ name: 'terminatePosition',
1648
+ outputs: [],
1649
+ stateMutability: 'nonpayable',
1650
+ type: 'function',
1651
+ },
1652
+ {
1653
+ inputs: [
1654
+ {
1655
+ internalType: 'address',
1656
+ name: '',
1657
+ type: 'address',
1658
+ },
1659
+ ],
1660
+ name: 'tokenMagnitude',
1661
+ outputs: [
1662
+ {
1663
+ internalType: 'uint256',
1664
+ name: '',
1665
+ type: 'uint256',
1666
+ },
1667
+ ],
1668
+ stateMutability: 'view',
1669
+ type: 'function',
1670
+ },
1671
+ {
1672
+ inputs: [],
1673
+ name: 'totalCreatedPositions',
1674
+ outputs: [
1675
+ {
1676
+ internalType: 'uint256',
1677
+ name: '',
1678
+ type: 'uint256',
1679
+ },
1680
+ ],
1681
+ stateMutability: 'view',
1682
+ type: 'function',
1683
+ },
1684
+ {
1685
+ inputs: [
1686
+ {
1687
+ internalType: 'uint256',
1688
+ name: 'positionId_',
1689
+ type: 'uint256',
1690
+ },
1691
+ {
1692
+ internalType: 'address',
1693
+ name: 'newOwner_',
1694
+ type: 'address',
1695
+ },
1696
+ ],
1697
+ name: 'transferPositionOwnership',
1698
+ outputs: [],
1699
+ stateMutability: 'nonpayable',
1700
+ type: 'function',
1701
+ },
1702
+ {
1703
+ inputs: [],
1704
+ name: 'unpause',
1705
+ outputs: [],
1706
+ stateMutability: 'nonpayable',
1707
+ type: 'function',
1708
+ },
1709
+ {
1710
+ inputs: [
1711
+ {
1712
+ internalType: 'uint256',
1713
+ name: 'maxNoOfSwap_',
1714
+ type: 'uint256',
1715
+ },
1716
+ ],
1717
+ name: 'updateMaxSwapLimit',
1718
+ outputs: [],
1719
+ stateMutability: 'nonpayable',
1720
+ type: 'function',
1721
+ },
1722
+ {
1723
+ inputs: [
1724
+ {
1725
+ internalType: 'uint256',
1726
+ name: 'nextToNextTimeThreshold_',
1727
+ type: 'uint256',
1728
+ },
1729
+ ],
1730
+ name: 'updateSwapTimeThreshold',
1731
+ outputs: [],
1732
+ stateMutability: 'nonpayable',
1733
+ type: 'function',
1734
+ },
1735
+ {
1736
+ inputs: [
1737
+ {
1738
+ internalType: 'uint256',
1739
+ name: '',
1740
+ type: 'uint256',
1741
+ },
1742
+ ],
1743
+ name: 'userPositions',
1744
+ outputs: [
1745
+ {
1746
+ internalType: 'address',
1747
+ name: 'owner',
1748
+ type: 'address',
1749
+ },
1750
+ {
1751
+ internalType: 'address',
1752
+ name: 'from',
1753
+ type: 'address',
1754
+ },
1755
+ {
1756
+ internalType: 'address',
1757
+ name: 'to',
1758
+ type: 'address',
1759
+ },
1760
+ {
1761
+ internalType: 'bytes1',
1762
+ name: 'swapIntervalMask',
1763
+ type: 'bytes1',
1764
+ },
1765
+ {
1766
+ internalType: 'uint256',
1767
+ name: 'rate',
1768
+ type: 'uint256',
1769
+ },
1770
+ {
1771
+ internalType: 'uint256',
1772
+ name: 'swapWhereLastUpdated',
1773
+ type: 'uint256',
1774
+ },
1775
+ {
1776
+ internalType: 'uint256',
1777
+ name: 'startingSwap',
1778
+ type: 'uint256',
1779
+ },
1780
+ {
1781
+ internalType: 'uint256',
1782
+ name: 'finalSwap',
1783
+ type: 'uint256',
1784
+ },
1785
+ ],
1786
+ stateMutability: 'view',
1787
+ type: 'function',
1788
+ },
1789
+ {
1790
+ inputs: [],
1791
+ name: 'wNative',
1792
+ outputs: [
1793
+ {
1794
+ internalType: 'contract IWNative',
1795
+ name: '',
1796
+ type: 'address',
1797
+ },
1798
+ ],
1799
+ stateMutability: 'view',
1800
+ type: 'function',
1801
+ },
1802
+ {
1803
+ inputs: [
1804
+ {
1805
+ internalType: 'uint256',
1806
+ name: 'positionId_',
1807
+ type: 'uint256',
1808
+ },
1809
+ {
1810
+ internalType: 'address',
1811
+ name: 'recipient_',
1812
+ type: 'address',
1813
+ },
1814
+ {
1815
+ internalType: 'bool',
1816
+ name: 'isNative_',
1817
+ type: 'bool',
1818
+ },
1819
+ ],
1820
+ name: 'withdrawPosition',
1821
+ outputs: [],
1822
+ stateMutability: 'nonpayable',
1823
+ type: 'function',
1824
+ },
1825
+ {
1826
+ stateMutability: 'payable',
1827
+ type: 'receive',
1828
+ },
1829
+ ];