@orbs-network/spot 1.9.3 → 1.9.5

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 (159) hide show
  1. package/README.md +20 -13
  2. package/{script/input/config.json → config.json} +84 -6
  3. package/index.js +8 -3
  4. package/out/00_DeployWM.s.sol/DeployWM.json +1 -1
  5. package/out/00_UpdateWMWhitelist.s.sol/UpdateWMWhitelist.json +1 -1
  6. package/out/01_DeployRepermit.s.sol/DeployRepermit.json +1 -1
  7. package/out/02_DeployCosigner.s.sol/DeployCosigner.json +1 -1
  8. package/out/03_DeployReactor.s.sol/DeployReactor.json +1 -1
  9. package/out/04_DeployExecutor.s.sol/DeployExecutor.json +1 -1
  10. package/out/05_DeployRefinery.s.sol/DeployRefinery.json +1 -1
  11. package/out/{06_DeployDefaultExchange.s.sol/DeployDefaultExchange.abi.json → 06_DeployDefaultAdapter.s.sol/DeployDefaultAdapter.abi.json} +1 -1
  12. package/out/06_DeployDefaultAdapter.s.sol/DeployDefaultAdapter.json +1 -0
  13. package/out/{06_DeployParaswapExchange.s.sol/DeployParaswapExchange.abi.json → 06_DeployDelegatingAdapter.s.sol/DeployDelegatingAdapter.abi.json} +1 -1
  14. package/out/06_DeployDelegatingAdapter.s.sol/DeployDelegatingAdapter.json +1 -0
  15. package/out/{06_DeployP2Exchange.s.sol/DeployP2Exchange.abi.json → 06_DeployP2Adapter.s.sol/DeployP2Adapter.abi.json} +1 -1
  16. package/out/06_DeployP2Adapter.s.sol/DeployP2Adapter.json +1 -0
  17. package/out/06_DeployParaswapAdapter.s.sol/DeployParaswapAdapter.abi.json +28 -0
  18. package/out/06_DeployParaswapAdapter.s.sol/DeployParaswapAdapter.json +1 -0
  19. package/out/06_DeployUniversalAdapter.s.sol/DeployUniversalAdapter.abi.json +28 -0
  20. package/out/06_DeployUniversalAdapter.s.sol/DeployUniversalAdapter.json +1 -0
  21. package/out/BaseTest.sol/BaseTest.abi.json +26 -13
  22. package/out/BaseTest.sol/BaseTest.json +1 -1
  23. package/out/Constants.sol/Constants.json +1 -1
  24. package/out/CosignatureLib.sol/CosignatureLib.abi.json +10 -0
  25. package/out/CosignatureLib.sol/CosignatureLib.json +1 -1
  26. package/out/CosignatureLib.t.sol/CosignatureLibTest.abi.json +125 -16
  27. package/out/CosignatureLib.t.sol/CosignatureLibTest.json +1 -1
  28. package/out/Cosigner.sol/Cosigner.abi.json +12 -115
  29. package/out/Cosigner.sol/Cosigner.json +1 -1
  30. package/out/Cosigner.t.sol/CosignerTest.abi.json +30 -154
  31. package/out/Cosigner.t.sol/CosignerTest.json +1 -1
  32. package/out/Cosigner.t.sol/CosignerWrapper.abi.json +12 -115
  33. package/out/Cosigner.t.sol/CosignerWrapper.json +1 -1
  34. package/out/CosignerIntegration.t.sol/CosignerIntegrationTest.abi.json +49 -33
  35. package/out/CosignerIntegration.t.sol/CosignerIntegrationTest.json +1 -1
  36. package/out/DefaultDexAdapter.sol/DefaultDexAdapter.abi.json +105 -4
  37. package/out/DefaultDexAdapter.sol/DefaultDexAdapter.json +1 -1
  38. package/out/DefaultDexAdapter.t.sol/DefaultDexAdapterTest.abi.json +33 -13
  39. package/out/DefaultDexAdapter.t.sol/DefaultDexAdapterTest.json +1 -1
  40. package/out/DelegatingAdapter.sol/DelegatingAdapter.abi.json +402 -0
  41. package/out/DelegatingAdapter.sol/DelegatingAdapter.json +1 -0
  42. package/out/DelegatingAdapter.t.sol/DelegatingAdapterTest.abi.json +916 -0
  43. package/out/DelegatingAdapter.t.sol/DelegatingAdapterTest.json +1 -0
  44. package/out/DelegatingAdapter.t.sol/MockDelegateTarget.abi.json +22 -0
  45. package/out/DelegatingAdapter.t.sol/MockDelegateTarget.json +1 -0
  46. package/out/ERC20Mock.sol/ERC20Mock.json +1 -1
  47. package/out/ERC20Mock6Decimals.sol/ERC20Mock6Decimals.json +1 -1
  48. package/out/EpochLib.sol/EpochLib.json +1 -1
  49. package/out/EpochLib.t.sol/EpochLibTest.json +1 -1
  50. package/out/ExclusivityOverrideLib.sol/ExclusivityOverrideLib.json +1 -1
  51. package/out/ExclusivityOverrideLib.t.sol/ExclusivityCaller.json +1 -1
  52. package/out/ExclusivityOverrideLib.t.sol/ExclusivityLibTest.abi.json +26 -13
  53. package/out/ExclusivityOverrideLib.t.sol/ExclusivityLibTest.json +1 -1
  54. package/out/Executor.sol/Executor.abi.json +200 -13
  55. package/out/Executor.sol/Executor.json +1 -1
  56. package/out/Executor.t.sol/ExecutorTest.abi.json +26 -13
  57. package/out/Executor.t.sol/ExecutorTest.json +1 -1
  58. package/out/FeeOnTransferERC20Mock.sol/FeeOnTransferERC20Mock.json +1 -1
  59. package/out/{07_CheckOrder.s.sol/AlwaysValid1271.abi.json → ICommitteeSync.sol/ICommitteeSync.abi.json} +9 -9
  60. package/out/ICommitteeSync.sol/ICommitteeSync.json +1 -0
  61. package/out/IEIP712.sol/IEIP712.json +1 -1
  62. package/out/IExchangeAdapter.sol/IExchangeAdapter.abi.json +105 -4
  63. package/out/IExchangeAdapter.sol/IExchangeAdapter.json +1 -1
  64. package/out/IParaswapAugustus.sol/IParaswapAugustus.json +1 -1
  65. package/out/IPermit2.sol/IPermit2.json +1 -1
  66. package/out/IReactor.sol/IReactor.abi.json +100 -4
  67. package/out/IReactor.sol/IReactor.json +1 -1
  68. package/out/IReactorCallback.sol/IReactorCallback.abi.json +100 -4
  69. package/out/IReactorCallback.sol/IReactorCallback.json +1 -1
  70. package/out/IWM.sol/IWM.json +1 -1
  71. package/out/IWrappedNative.sol/IWrappedNative.abi.json +22 -0
  72. package/out/IWrappedNative.sol/IWrappedNative.json +1 -0
  73. package/out/MockCommitteeSync.sol/MockCommitteeSync.abi.json +67 -0
  74. package/out/MockCommitteeSync.sol/MockCommitteeSync.json +1 -0
  75. package/out/MockDexRouter.sol/MockDexRouter.json +1 -1
  76. package/out/MockParaswap.sol/MockParaswapAugustus.json +1 -1
  77. package/out/MockParaswap.sol/MockTokenTransferProxy.json +1 -1
  78. package/out/MockPermit2.sol/MockPermit2.json +1 -1
  79. package/out/MockReactor.sol/MockReactor.abi.json +200 -8
  80. package/out/MockReactor.sol/MockReactor.json +1 -1
  81. package/out/Multicall3Lib.sol/Multicall3Lib.json +1 -1
  82. package/out/OrderLib.sol/OrderLib.json +1 -1
  83. package/out/OrderReactor.E2E.t.sol/OrderReactorE2ETest.abi.json +27 -14
  84. package/out/OrderReactor.E2E.t.sol/OrderReactorE2ETest.json +1 -1
  85. package/out/OrderReactor.sol/OrderReactor.abi.json +130 -14
  86. package/out/OrderReactor.sol/OrderReactor.json +1 -1
  87. package/out/OrderReactorPause.t.sol/OrderReactorPauseTest.abi.json +26 -13
  88. package/out/OrderReactorPause.t.sol/OrderReactorPauseTest.json +1 -1
  89. package/out/OrderReactorPause.t.sol/SimpleCallback.abi.json +100 -4
  90. package/out/OrderReactorPause.t.sol/SimpleCallback.json +1 -1
  91. package/out/OrderValidationLib.Fuzz.t.sol/OrderValidationLibFuzzTest.abi.json +136 -22
  92. package/out/OrderValidationLib.Fuzz.t.sol/OrderValidationLibFuzzTest.json +1 -1
  93. package/out/OrderValidationLib.sol/OrderValidationLib.abi.json +15 -5
  94. package/out/OrderValidationLib.sol/OrderValidationLib.json +1 -1
  95. package/out/OrderValidationLib.t.sol/OrderValidationLibTest.abi.json +160 -30
  96. package/out/OrderValidationLib.t.sol/OrderValidationLibTest.json +1 -1
  97. package/out/P2DexAdapter.sol/P2DexAdapter.abi.json +105 -4
  98. package/out/P2DexAdapter.sol/P2DexAdapter.json +1 -1
  99. package/out/P2DexAdapter.t.sol/P2DexAdapterTest.abi.json +33 -13
  100. package/out/P2DexAdapter.t.sol/P2DexAdapterTest.json +1 -1
  101. package/out/ParaswapDexAdapter.sol/ParaswapDexAdapter.abi.json +105 -4
  102. package/out/ParaswapDexAdapter.sol/ParaswapDexAdapter.json +1 -1
  103. package/out/ParaswapDexAdapter.t.sol/ParaswapDexAdapterTest.abi.json +33 -13
  104. package/out/ParaswapDexAdapter.t.sol/ParaswapDexAdapterTest.json +1 -1
  105. package/out/RePermit.sol/RePermit.json +1 -1
  106. package/out/RePermit.t.sol/RePermitTest.abi.json +26 -13
  107. package/out/RePermit.t.sol/RePermitTest.json +1 -1
  108. package/out/RePermitLib.sol/RePermitLib.json +1 -1
  109. package/out/Refinery.sol/Refinery.json +1 -1
  110. package/out/Refinery.t.sol/PayableTarget.json +1 -1
  111. package/out/Refinery.t.sol/RefineryTest.abi.json +26 -13
  112. package/out/Refinery.t.sol/RefineryTest.json +1 -1
  113. package/out/ResolutionLib.Fuzz.t.sol/ResolutionLibFuzzTest.abi.json +122 -18
  114. package/out/ResolutionLib.Fuzz.t.sol/ResolutionLibFuzzTest.json +1 -1
  115. package/out/ResolutionLib.sol/ResolutionLib.abi.json +1 -1
  116. package/out/ResolutionLib.sol/ResolutionLib.json +1 -1
  117. package/out/ResolutionLib.t.sol/ResolutionLibTest.abi.json +133 -20
  118. package/out/ResolutionLib.t.sol/ResolutionLibTest.json +1 -1
  119. package/out/SettlementLib.sol/SettlementLib.json +1 -1
  120. package/out/SettlementLib.t.sol/SettlementLibTest.abi.json +26 -13
  121. package/out/SettlementLib.t.sol/SettlementLibTest.json +1 -1
  122. package/out/SettlementLib.t.sol/SettlementWrapper.abi.json +100 -4
  123. package/out/SettlementLib.t.sol/SettlementWrapper.json +1 -1
  124. package/out/Settler.sol/Settler.abi.json +454 -0
  125. package/out/Settler.sol/Settler.json +1 -0
  126. package/out/Settler.t.sol/SettlerTest.abi.json +995 -0
  127. package/out/Settler.t.sol/SettlerTest.json +1 -0
  128. package/out/StdError.sol/stdError.json +1 -1
  129. package/out/SurplusLib.sol/SurplusLib.json +1 -1
  130. package/out/SurplusLib.t.sol/SurplusHarness.json +1 -1
  131. package/out/SurplusLib.t.sol/SurplusLibTest.json +1 -1
  132. package/out/SwapAdapter.sol/SwapAdapterMock.abi.json +100 -9
  133. package/out/SwapAdapter.sol/SwapAdapterMock.json +1 -1
  134. package/out/TokenLib.sol/TokenLib.json +1 -1
  135. package/out/TokenLib.t.sol/TokenLibHarness.json +1 -1
  136. package/out/TokenLib.t.sol/TokenLibTest.json +1 -1
  137. package/out/USDTMock.sol/USDTMock.json +1 -1
  138. package/out/UniversalAdapter.sol/UniversalAdapter.abi.json +429 -0
  139. package/out/UniversalAdapter.sol/UniversalAdapter.json +1 -0
  140. package/out/UniversalAdapter.t.sol/UniversalAdapterTest.abi.json +930 -0
  141. package/out/UniversalAdapter.t.sol/UniversalAdapterTest.json +1 -0
  142. package/out/WM.sol/WM.json +1 -1
  143. package/out/WM.t.sol/WMTest.abi.json +26 -13
  144. package/out/WM.t.sol/WMTest.json +1 -1
  145. package/out/WMAllowed.sol/WMAllowed.json +1 -1
  146. package/out/WrappedNativeMock.sol/WrappedNativeMock.abi.json +360 -0
  147. package/out/WrappedNativeMock.sol/WrappedNativeMock.json +1 -0
  148. package/out/build-info/{42633f5ef75c0db8.json → 621c6e28e002a5dd.json} +1 -1
  149. package/out/build-info/{a2626b343b46f44e.json → 7683d39d37ddee4a.json} +1 -1
  150. package/package.json +2 -1
  151. package/script/input/cosignature.skeleton.json +0 -1
  152. package/script/input/repermit.skeleton.json +12 -2
  153. package/out/06_DeployDefaultExchange.s.sol/DeployDefaultExchange.json +0 -1
  154. package/out/06_DeployP2Exchange.s.sol/DeployP2Exchange.json +0 -1
  155. package/out/06_DeployParaswapExchange.s.sol/DeployParaswapExchange.json +0 -1
  156. package/out/07_CheckOrder.s.sol/AlwaysValid1271.json +0 -1
  157. package/out/07_CheckOrder.s.sol/CheckOrder.abi.json +0 -78
  158. package/out/07_CheckOrder.s.sol/CheckOrder.json +0 -1
  159. package/script/input/order.json +0 -63
@@ -0,0 +1,930 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "IS_TEST",
5
+ "inputs": [],
6
+ "outputs": [
7
+ {
8
+ "name": "",
9
+ "type": "bool",
10
+ "internalType": "bool"
11
+ }
12
+ ],
13
+ "stateMutability": "view"
14
+ },
15
+ {
16
+ "type": "function",
17
+ "name": "adapter",
18
+ "inputs": [],
19
+ "outputs": [
20
+ {
21
+ "name": "",
22
+ "type": "address",
23
+ "internalType": "address"
24
+ }
25
+ ],
26
+ "stateMutability": "view"
27
+ },
28
+ {
29
+ "type": "function",
30
+ "name": "adapterUut",
31
+ "inputs": [],
32
+ "outputs": [
33
+ {
34
+ "name": "",
35
+ "type": "address",
36
+ "internalType": "contract UniversalAdapter"
37
+ }
38
+ ],
39
+ "stateMutability": "view"
40
+ },
41
+ {
42
+ "type": "function",
43
+ "name": "cosignInValue",
44
+ "inputs": [],
45
+ "outputs": [
46
+ {
47
+ "name": "",
48
+ "type": "uint256",
49
+ "internalType": "uint256"
50
+ }
51
+ ],
52
+ "stateMutability": "view"
53
+ },
54
+ {
55
+ "type": "function",
56
+ "name": "cosignOutValue",
57
+ "inputs": [],
58
+ "outputs": [
59
+ {
60
+ "name": "",
61
+ "type": "uint256",
62
+ "internalType": "uint256"
63
+ }
64
+ ],
65
+ "stateMutability": "view"
66
+ },
67
+ {
68
+ "type": "function",
69
+ "name": "excludeArtifacts",
70
+ "inputs": [],
71
+ "outputs": [
72
+ {
73
+ "name": "excludedArtifacts_",
74
+ "type": "string[]",
75
+ "internalType": "string[]"
76
+ }
77
+ ],
78
+ "stateMutability": "view"
79
+ },
80
+ {
81
+ "type": "function",
82
+ "name": "excludeContracts",
83
+ "inputs": [],
84
+ "outputs": [
85
+ {
86
+ "name": "excludedContracts_",
87
+ "type": "address[]",
88
+ "internalType": "address[]"
89
+ }
90
+ ],
91
+ "stateMutability": "view"
92
+ },
93
+ {
94
+ "type": "function",
95
+ "name": "excludeSelectors",
96
+ "inputs": [],
97
+ "outputs": [
98
+ {
99
+ "name": "excludedSelectors_",
100
+ "type": "tuple[]",
101
+ "internalType": "struct StdInvariant.FuzzSelector[]",
102
+ "components": [
103
+ {
104
+ "name": "addr",
105
+ "type": "address",
106
+ "internalType": "address"
107
+ },
108
+ {
109
+ "name": "selectors",
110
+ "type": "bytes4[]",
111
+ "internalType": "bytes4[]"
112
+ }
113
+ ]
114
+ }
115
+ ],
116
+ "stateMutability": "view"
117
+ },
118
+ {
119
+ "type": "function",
120
+ "name": "excludeSenders",
121
+ "inputs": [],
122
+ "outputs": [
123
+ {
124
+ "name": "excludedSenders_",
125
+ "type": "address[]",
126
+ "internalType": "address[]"
127
+ }
128
+ ],
129
+ "stateMutability": "view"
130
+ },
131
+ {
132
+ "type": "function",
133
+ "name": "executor",
134
+ "inputs": [],
135
+ "outputs": [
136
+ {
137
+ "name": "",
138
+ "type": "address",
139
+ "internalType": "address"
140
+ }
141
+ ],
142
+ "stateMutability": "view"
143
+ },
144
+ {
145
+ "type": "function",
146
+ "name": "failed",
147
+ "inputs": [],
148
+ "outputs": [
149
+ {
150
+ "name": "",
151
+ "type": "bool",
152
+ "internalType": "bool"
153
+ }
154
+ ],
155
+ "stateMutability": "view"
156
+ },
157
+ {
158
+ "type": "function",
159
+ "name": "freshness",
160
+ "inputs": [],
161
+ "outputs": [
162
+ {
163
+ "name": "",
164
+ "type": "uint32",
165
+ "internalType": "uint32"
166
+ }
167
+ ],
168
+ "stateMutability": "view"
169
+ },
170
+ {
171
+ "type": "function",
172
+ "name": "inAmount",
173
+ "inputs": [],
174
+ "outputs": [
175
+ {
176
+ "name": "",
177
+ "type": "uint256",
178
+ "internalType": "uint256"
179
+ }
180
+ ],
181
+ "stateMutability": "view"
182
+ },
183
+ {
184
+ "type": "function",
185
+ "name": "inMax",
186
+ "inputs": [],
187
+ "outputs": [
188
+ {
189
+ "name": "",
190
+ "type": "uint256",
191
+ "internalType": "uint256"
192
+ }
193
+ ],
194
+ "stateMutability": "view"
195
+ },
196
+ {
197
+ "type": "function",
198
+ "name": "inToken",
199
+ "inputs": [],
200
+ "outputs": [
201
+ {
202
+ "name": "",
203
+ "type": "address",
204
+ "internalType": "address"
205
+ }
206
+ ],
207
+ "stateMutability": "view"
208
+ },
209
+ {
210
+ "type": "function",
211
+ "name": "other",
212
+ "inputs": [],
213
+ "outputs": [
214
+ {
215
+ "name": "",
216
+ "type": "address",
217
+ "internalType": "address"
218
+ }
219
+ ],
220
+ "stateMutability": "view"
221
+ },
222
+ {
223
+ "type": "function",
224
+ "name": "outAmount",
225
+ "inputs": [],
226
+ "outputs": [
227
+ {
228
+ "name": "",
229
+ "type": "uint256",
230
+ "internalType": "uint256"
231
+ }
232
+ ],
233
+ "stateMutability": "view"
234
+ },
235
+ {
236
+ "type": "function",
237
+ "name": "outToken",
238
+ "inputs": [],
239
+ "outputs": [
240
+ {
241
+ "name": "",
242
+ "type": "address",
243
+ "internalType": "address"
244
+ }
245
+ ],
246
+ "stateMutability": "view"
247
+ },
248
+ {
249
+ "type": "function",
250
+ "name": "reactor",
251
+ "inputs": [],
252
+ "outputs": [
253
+ {
254
+ "name": "",
255
+ "type": "address",
256
+ "internalType": "address"
257
+ }
258
+ ],
259
+ "stateMutability": "view"
260
+ },
261
+ {
262
+ "type": "function",
263
+ "name": "recipient",
264
+ "inputs": [],
265
+ "outputs": [
266
+ {
267
+ "name": "",
268
+ "type": "address",
269
+ "internalType": "address"
270
+ }
271
+ ],
272
+ "stateMutability": "view"
273
+ },
274
+ {
275
+ "type": "function",
276
+ "name": "repermit",
277
+ "inputs": [],
278
+ "outputs": [
279
+ {
280
+ "name": "",
281
+ "type": "address",
282
+ "internalType": "address"
283
+ }
284
+ ],
285
+ "stateMutability": "view"
286
+ },
287
+ {
288
+ "type": "function",
289
+ "name": "router",
290
+ "inputs": [],
291
+ "outputs": [
292
+ {
293
+ "name": "",
294
+ "type": "address",
295
+ "internalType": "contract MockDexRouter"
296
+ }
297
+ ],
298
+ "stateMutability": "view"
299
+ },
300
+ {
301
+ "type": "function",
302
+ "name": "setUp",
303
+ "inputs": [],
304
+ "outputs": [],
305
+ "stateMutability": "nonpayable"
306
+ },
307
+ {
308
+ "type": "function",
309
+ "name": "signer",
310
+ "inputs": [],
311
+ "outputs": [
312
+ {
313
+ "name": "",
314
+ "type": "address",
315
+ "internalType": "address"
316
+ }
317
+ ],
318
+ "stateMutability": "view"
319
+ },
320
+ {
321
+ "type": "function",
322
+ "name": "signerPK",
323
+ "inputs": [],
324
+ "outputs": [
325
+ {
326
+ "name": "",
327
+ "type": "uint256",
328
+ "internalType": "uint256"
329
+ }
330
+ ],
331
+ "stateMutability": "view"
332
+ },
333
+ {
334
+ "type": "function",
335
+ "name": "slippage",
336
+ "inputs": [],
337
+ "outputs": [
338
+ {
339
+ "name": "",
340
+ "type": "uint32",
341
+ "internalType": "uint32"
342
+ }
343
+ ],
344
+ "stateMutability": "view"
345
+ },
346
+ {
347
+ "type": "function",
348
+ "name": "swapper",
349
+ "inputs": [],
350
+ "outputs": [
351
+ {
352
+ "name": "",
353
+ "type": "address",
354
+ "internalType": "address"
355
+ }
356
+ ],
357
+ "stateMutability": "view"
358
+ },
359
+ {
360
+ "type": "function",
361
+ "name": "targetArtifactSelectors",
362
+ "inputs": [],
363
+ "outputs": [
364
+ {
365
+ "name": "targetedArtifactSelectors_",
366
+ "type": "tuple[]",
367
+ "internalType": "struct StdInvariant.FuzzArtifactSelector[]",
368
+ "components": [
369
+ {
370
+ "name": "artifact",
371
+ "type": "string",
372
+ "internalType": "string"
373
+ },
374
+ {
375
+ "name": "selectors",
376
+ "type": "bytes4[]",
377
+ "internalType": "bytes4[]"
378
+ }
379
+ ]
380
+ }
381
+ ],
382
+ "stateMutability": "view"
383
+ },
384
+ {
385
+ "type": "function",
386
+ "name": "targetArtifacts",
387
+ "inputs": [],
388
+ "outputs": [
389
+ {
390
+ "name": "targetedArtifacts_",
391
+ "type": "string[]",
392
+ "internalType": "string[]"
393
+ }
394
+ ],
395
+ "stateMutability": "view"
396
+ },
397
+ {
398
+ "type": "function",
399
+ "name": "targetContracts",
400
+ "inputs": [],
401
+ "outputs": [
402
+ {
403
+ "name": "targetedContracts_",
404
+ "type": "address[]",
405
+ "internalType": "address[]"
406
+ }
407
+ ],
408
+ "stateMutability": "view"
409
+ },
410
+ {
411
+ "type": "function",
412
+ "name": "targetInterfaces",
413
+ "inputs": [],
414
+ "outputs": [
415
+ {
416
+ "name": "targetedInterfaces_",
417
+ "type": "tuple[]",
418
+ "internalType": "struct StdInvariant.FuzzInterface[]",
419
+ "components": [
420
+ {
421
+ "name": "addr",
422
+ "type": "address",
423
+ "internalType": "address"
424
+ },
425
+ {
426
+ "name": "artifacts",
427
+ "type": "string[]",
428
+ "internalType": "string[]"
429
+ }
430
+ ]
431
+ }
432
+ ],
433
+ "stateMutability": "view"
434
+ },
435
+ {
436
+ "type": "function",
437
+ "name": "targetSelectors",
438
+ "inputs": [],
439
+ "outputs": [
440
+ {
441
+ "name": "targetedSelectors_",
442
+ "type": "tuple[]",
443
+ "internalType": "struct StdInvariant.FuzzSelector[]",
444
+ "components": [
445
+ {
446
+ "name": "addr",
447
+ "type": "address",
448
+ "internalType": "address"
449
+ },
450
+ {
451
+ "name": "selectors",
452
+ "type": "bytes4[]",
453
+ "internalType": "bytes4[]"
454
+ }
455
+ ]
456
+ }
457
+ ],
458
+ "stateMutability": "view"
459
+ },
460
+ {
461
+ "type": "function",
462
+ "name": "targetSenders",
463
+ "inputs": [],
464
+ "outputs": [
465
+ {
466
+ "name": "targetedSenders_",
467
+ "type": "address[]",
468
+ "internalType": "address[]"
469
+ }
470
+ ],
471
+ "stateMutability": "view"
472
+ },
473
+ {
474
+ "type": "function",
475
+ "name": "test_swap_handles_USDT_like_tokens",
476
+ "inputs": [],
477
+ "outputs": [],
478
+ "stateMutability": "nonpayable"
479
+ },
480
+ {
481
+ "type": "function",
482
+ "name": "test_swap_reverts_invalid_target",
483
+ "inputs": [],
484
+ "outputs": [],
485
+ "stateMutability": "nonpayable"
486
+ },
487
+ {
488
+ "type": "function",
489
+ "name": "test_swap_reverts_when_target_call_fails",
490
+ "inputs": [],
491
+ "outputs": [],
492
+ "stateMutability": "nonpayable"
493
+ },
494
+ {
495
+ "type": "function",
496
+ "name": "test_swap_success",
497
+ "inputs": [],
498
+ "outputs": [],
499
+ "stateMutability": "nonpayable"
500
+ },
501
+ {
502
+ "type": "function",
503
+ "name": "token",
504
+ "inputs": [],
505
+ "outputs": [
506
+ {
507
+ "name": "",
508
+ "type": "address",
509
+ "internalType": "contract ERC20Mock"
510
+ }
511
+ ],
512
+ "stateMutability": "view"
513
+ },
514
+ {
515
+ "type": "function",
516
+ "name": "token2",
517
+ "inputs": [],
518
+ "outputs": [
519
+ {
520
+ "name": "",
521
+ "type": "address",
522
+ "internalType": "contract ERC20Mock"
523
+ }
524
+ ],
525
+ "stateMutability": "view"
526
+ },
527
+ {
528
+ "type": "function",
529
+ "name": "triggerLower",
530
+ "inputs": [],
531
+ "outputs": [
532
+ {
533
+ "name": "",
534
+ "type": "uint256",
535
+ "internalType": "uint256"
536
+ }
537
+ ],
538
+ "stateMutability": "view"
539
+ },
540
+ {
541
+ "type": "function",
542
+ "name": "triggerUpper",
543
+ "inputs": [],
544
+ "outputs": [
545
+ {
546
+ "name": "",
547
+ "type": "uint256",
548
+ "internalType": "uint256"
549
+ }
550
+ ],
551
+ "stateMutability": "view"
552
+ },
553
+ {
554
+ "type": "function",
555
+ "name": "wm",
556
+ "inputs": [],
557
+ "outputs": [
558
+ {
559
+ "name": "",
560
+ "type": "address",
561
+ "internalType": "address"
562
+ }
563
+ ],
564
+ "stateMutability": "view"
565
+ },
566
+ {
567
+ "type": "event",
568
+ "name": "log",
569
+ "inputs": [
570
+ {
571
+ "name": "",
572
+ "type": "string",
573
+ "indexed": false,
574
+ "internalType": "string"
575
+ }
576
+ ],
577
+ "anonymous": false
578
+ },
579
+ {
580
+ "type": "event",
581
+ "name": "log_address",
582
+ "inputs": [
583
+ {
584
+ "name": "",
585
+ "type": "address",
586
+ "indexed": false,
587
+ "internalType": "address"
588
+ }
589
+ ],
590
+ "anonymous": false
591
+ },
592
+ {
593
+ "type": "event",
594
+ "name": "log_array",
595
+ "inputs": [
596
+ {
597
+ "name": "val",
598
+ "type": "uint256[]",
599
+ "indexed": false,
600
+ "internalType": "uint256[]"
601
+ }
602
+ ],
603
+ "anonymous": false
604
+ },
605
+ {
606
+ "type": "event",
607
+ "name": "log_array",
608
+ "inputs": [
609
+ {
610
+ "name": "val",
611
+ "type": "int256[]",
612
+ "indexed": false,
613
+ "internalType": "int256[]"
614
+ }
615
+ ],
616
+ "anonymous": false
617
+ },
618
+ {
619
+ "type": "event",
620
+ "name": "log_array",
621
+ "inputs": [
622
+ {
623
+ "name": "val",
624
+ "type": "address[]",
625
+ "indexed": false,
626
+ "internalType": "address[]"
627
+ }
628
+ ],
629
+ "anonymous": false
630
+ },
631
+ {
632
+ "type": "event",
633
+ "name": "log_bytes",
634
+ "inputs": [
635
+ {
636
+ "name": "",
637
+ "type": "bytes",
638
+ "indexed": false,
639
+ "internalType": "bytes"
640
+ }
641
+ ],
642
+ "anonymous": false
643
+ },
644
+ {
645
+ "type": "event",
646
+ "name": "log_bytes32",
647
+ "inputs": [
648
+ {
649
+ "name": "",
650
+ "type": "bytes32",
651
+ "indexed": false,
652
+ "internalType": "bytes32"
653
+ }
654
+ ],
655
+ "anonymous": false
656
+ },
657
+ {
658
+ "type": "event",
659
+ "name": "log_int",
660
+ "inputs": [
661
+ {
662
+ "name": "",
663
+ "type": "int256",
664
+ "indexed": false,
665
+ "internalType": "int256"
666
+ }
667
+ ],
668
+ "anonymous": false
669
+ },
670
+ {
671
+ "type": "event",
672
+ "name": "log_named_address",
673
+ "inputs": [
674
+ {
675
+ "name": "key",
676
+ "type": "string",
677
+ "indexed": false,
678
+ "internalType": "string"
679
+ },
680
+ {
681
+ "name": "val",
682
+ "type": "address",
683
+ "indexed": false,
684
+ "internalType": "address"
685
+ }
686
+ ],
687
+ "anonymous": false
688
+ },
689
+ {
690
+ "type": "event",
691
+ "name": "log_named_array",
692
+ "inputs": [
693
+ {
694
+ "name": "key",
695
+ "type": "string",
696
+ "indexed": false,
697
+ "internalType": "string"
698
+ },
699
+ {
700
+ "name": "val",
701
+ "type": "uint256[]",
702
+ "indexed": false,
703
+ "internalType": "uint256[]"
704
+ }
705
+ ],
706
+ "anonymous": false
707
+ },
708
+ {
709
+ "type": "event",
710
+ "name": "log_named_array",
711
+ "inputs": [
712
+ {
713
+ "name": "key",
714
+ "type": "string",
715
+ "indexed": false,
716
+ "internalType": "string"
717
+ },
718
+ {
719
+ "name": "val",
720
+ "type": "int256[]",
721
+ "indexed": false,
722
+ "internalType": "int256[]"
723
+ }
724
+ ],
725
+ "anonymous": false
726
+ },
727
+ {
728
+ "type": "event",
729
+ "name": "log_named_array",
730
+ "inputs": [
731
+ {
732
+ "name": "key",
733
+ "type": "string",
734
+ "indexed": false,
735
+ "internalType": "string"
736
+ },
737
+ {
738
+ "name": "val",
739
+ "type": "address[]",
740
+ "indexed": false,
741
+ "internalType": "address[]"
742
+ }
743
+ ],
744
+ "anonymous": false
745
+ },
746
+ {
747
+ "type": "event",
748
+ "name": "log_named_bytes",
749
+ "inputs": [
750
+ {
751
+ "name": "key",
752
+ "type": "string",
753
+ "indexed": false,
754
+ "internalType": "string"
755
+ },
756
+ {
757
+ "name": "val",
758
+ "type": "bytes",
759
+ "indexed": false,
760
+ "internalType": "bytes"
761
+ }
762
+ ],
763
+ "anonymous": false
764
+ },
765
+ {
766
+ "type": "event",
767
+ "name": "log_named_bytes32",
768
+ "inputs": [
769
+ {
770
+ "name": "key",
771
+ "type": "string",
772
+ "indexed": false,
773
+ "internalType": "string"
774
+ },
775
+ {
776
+ "name": "val",
777
+ "type": "bytes32",
778
+ "indexed": false,
779
+ "internalType": "bytes32"
780
+ }
781
+ ],
782
+ "anonymous": false
783
+ },
784
+ {
785
+ "type": "event",
786
+ "name": "log_named_decimal_int",
787
+ "inputs": [
788
+ {
789
+ "name": "key",
790
+ "type": "string",
791
+ "indexed": false,
792
+ "internalType": "string"
793
+ },
794
+ {
795
+ "name": "val",
796
+ "type": "int256",
797
+ "indexed": false,
798
+ "internalType": "int256"
799
+ },
800
+ {
801
+ "name": "decimals",
802
+ "type": "uint256",
803
+ "indexed": false,
804
+ "internalType": "uint256"
805
+ }
806
+ ],
807
+ "anonymous": false
808
+ },
809
+ {
810
+ "type": "event",
811
+ "name": "log_named_decimal_uint",
812
+ "inputs": [
813
+ {
814
+ "name": "key",
815
+ "type": "string",
816
+ "indexed": false,
817
+ "internalType": "string"
818
+ },
819
+ {
820
+ "name": "val",
821
+ "type": "uint256",
822
+ "indexed": false,
823
+ "internalType": "uint256"
824
+ },
825
+ {
826
+ "name": "decimals",
827
+ "type": "uint256",
828
+ "indexed": false,
829
+ "internalType": "uint256"
830
+ }
831
+ ],
832
+ "anonymous": false
833
+ },
834
+ {
835
+ "type": "event",
836
+ "name": "log_named_int",
837
+ "inputs": [
838
+ {
839
+ "name": "key",
840
+ "type": "string",
841
+ "indexed": false,
842
+ "internalType": "string"
843
+ },
844
+ {
845
+ "name": "val",
846
+ "type": "int256",
847
+ "indexed": false,
848
+ "internalType": "int256"
849
+ }
850
+ ],
851
+ "anonymous": false
852
+ },
853
+ {
854
+ "type": "event",
855
+ "name": "log_named_string",
856
+ "inputs": [
857
+ {
858
+ "name": "key",
859
+ "type": "string",
860
+ "indexed": false,
861
+ "internalType": "string"
862
+ },
863
+ {
864
+ "name": "val",
865
+ "type": "string",
866
+ "indexed": false,
867
+ "internalType": "string"
868
+ }
869
+ ],
870
+ "anonymous": false
871
+ },
872
+ {
873
+ "type": "event",
874
+ "name": "log_named_uint",
875
+ "inputs": [
876
+ {
877
+ "name": "key",
878
+ "type": "string",
879
+ "indexed": false,
880
+ "internalType": "string"
881
+ },
882
+ {
883
+ "name": "val",
884
+ "type": "uint256",
885
+ "indexed": false,
886
+ "internalType": "uint256"
887
+ }
888
+ ],
889
+ "anonymous": false
890
+ },
891
+ {
892
+ "type": "event",
893
+ "name": "log_string",
894
+ "inputs": [
895
+ {
896
+ "name": "",
897
+ "type": "string",
898
+ "indexed": false,
899
+ "internalType": "string"
900
+ }
901
+ ],
902
+ "anonymous": false
903
+ },
904
+ {
905
+ "type": "event",
906
+ "name": "log_uint",
907
+ "inputs": [
908
+ {
909
+ "name": "",
910
+ "type": "uint256",
911
+ "indexed": false,
912
+ "internalType": "uint256"
913
+ }
914
+ ],
915
+ "anonymous": false
916
+ },
917
+ {
918
+ "type": "event",
919
+ "name": "logs",
920
+ "inputs": [
921
+ {
922
+ "name": "",
923
+ "type": "bytes",
924
+ "indexed": false,
925
+ "internalType": "bytes"
926
+ }
927
+ ],
928
+ "anonymous": false
929
+ }
930
+ ]