@orbs-network/spot 0.0.1

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 (208) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +223 -0
  3. package/out/00_DeployWM.s.sol/DeployWM.abi.json +35 -0
  4. package/out/00_DeployWM.s.sol/DeployWM.json +1 -0
  5. package/out/01_UpdateWMWhitelist.s.sol/UpdateWMWhitelist.abi.json +55 -0
  6. package/out/01_UpdateWMWhitelist.s.sol/UpdateWMWhitelist.json +1 -0
  7. package/out/02_DeployRepermit.s.sol/DeployRepermit.abi.json +35 -0
  8. package/out/02_DeployRepermit.s.sol/DeployRepermit.json +1 -0
  9. package/out/03_DeployReactor.s.sol/DeployReactor.abi.json +35 -0
  10. package/out/03_DeployReactor.s.sol/DeployReactor.json +1 -0
  11. package/out/04_DeployExecutor.s.sol/DeployExecutor.abi.json +35 -0
  12. package/out/04_DeployExecutor.s.sol/DeployExecutor.json +1 -0
  13. package/out/05_DeployDefaultExchange.s.sol/DeployDefaultExchange.abi.json +35 -0
  14. package/out/05_DeployDefaultExchange.s.sol/DeployDefaultExchange.json +1 -0
  15. package/out/06_DeployRefinery.s.sol/DeployRefinery.abi.json +35 -0
  16. package/out/06_DeployRefinery.s.sol/DeployRefinery.json +1 -0
  17. package/out/Address.sol/Address.abi.json +1 -0
  18. package/out/Address.sol/Address.json +1 -0
  19. package/out/Base.sol/CommonBase.abi.json +1 -0
  20. package/out/Base.sol/CommonBase.json +1 -0
  21. package/out/Base.sol/ScriptBase.abi.json +1 -0
  22. package/out/Base.sol/ScriptBase.json +1 -0
  23. package/out/Base.sol/TestBase.abi.json +1 -0
  24. package/out/Base.sol/TestBase.json +1 -0
  25. package/out/BaseScript.sol/BaseScript.abi.json +22 -0
  26. package/out/BaseScript.sol/BaseScript.json +1 -0
  27. package/out/BaseTest.sol/BaseTest.abi.json +876 -0
  28. package/out/BaseTest.sol/BaseTest.json +1 -0
  29. package/out/Constants.sol/Constants.abi.json +28 -0
  30. package/out/Constants.sol/Constants.json +1 -0
  31. package/out/Context.sol/Context.abi.json +1 -0
  32. package/out/Context.sol/Context.json +1 -0
  33. package/out/CosignatureLib.sol/CosignatureLib.abi.json +62 -0
  34. package/out/CosignatureLib.sol/CosignatureLib.json +1 -0
  35. package/out/CosignatureLib.t.sol/CosignatureLibTest.abi.json +1254 -0
  36. package/out/CosignatureLib.t.sol/CosignatureLibTest.json +1 -0
  37. package/out/DefaultDexAdapter.sol/DefaultDexAdapter.abi.json +309 -0
  38. package/out/DefaultDexAdapter.sol/DefaultDexAdapter.json +1 -0
  39. package/out/DefaultDexAdapter.t.sol/DefaultDexAdapterTest.abi.json +930 -0
  40. package/out/DefaultDexAdapter.t.sol/DefaultDexAdapterTest.json +1 -0
  41. package/out/ECDSA.sol/ECDSA.abi.json +1 -0
  42. package/out/ECDSA.sol/ECDSA.json +1 -0
  43. package/out/EIP712.sol/EIP712.abi.json +67 -0
  44. package/out/EIP712.sol/EIP712.json +1 -0
  45. package/out/ERC20.sol/ERC20.abi.json +288 -0
  46. package/out/ERC20.sol/ERC20.json +1 -0
  47. package/out/ERC20Mock.sol/ERC20Mock.abi.json +313 -0
  48. package/out/ERC20Mock.sol/ERC20Mock.json +1 -0
  49. package/out/EpochLib.sol/EpochLib.abi.json +7 -0
  50. package/out/EpochLib.sol/EpochLib.json +1 -0
  51. package/out/EpochLib.t.sol/EpochLibTest.abi.json +621 -0
  52. package/out/EpochLib.t.sol/EpochLibTest.json +1 -0
  53. package/out/ExclusivityOverrideLib.sol/ExclusivityOverrideLib.abi.json +7 -0
  54. package/out/ExclusivityOverrideLib.sol/ExclusivityOverrideLib.json +1 -0
  55. package/out/ExclusivityOverrideLib.t.sol/ExclusivityCaller.abi.json +36 -0
  56. package/out/ExclusivityOverrideLib.t.sol/ExclusivityCaller.json +1 -0
  57. package/out/ExclusivityOverrideLib.t.sol/ExclusivityLibTest.abi.json +910 -0
  58. package/out/ExclusivityOverrideLib.t.sol/ExclusivityLibTest.json +1 -0
  59. package/out/Executor.sol/Executor.abi.json +706 -0
  60. package/out/Executor.sol/Executor.json +1 -0
  61. package/out/Executor.t.sol/ExecutorTest.abi.json +1011 -0
  62. package/out/Executor.t.sol/ExecutorTest.json +1 -0
  63. package/out/IEIP712.sol/IEIP712.abi.json +34 -0
  64. package/out/IEIP712.sol/IEIP712.json +1 -0
  65. package/out/IERC1271.sol/IERC1271.abi.json +26 -0
  66. package/out/IERC1271.sol/IERC1271.json +1 -0
  67. package/out/IERC20.sol/IERC20.abi.json +185 -0
  68. package/out/IERC20.sol/IERC20.json +1 -0
  69. package/out/IERC20Metadata.sol/IERC20Metadata.abi.json +224 -0
  70. package/out/IERC20Metadata.sol/IERC20Metadata.json +1 -0
  71. package/out/IERC20Permit.sol/IERC20Permit.abi.json +77 -0
  72. package/out/IERC20Permit.sol/IERC20Permit.json +1 -0
  73. package/out/IERC5267.sol/IERC5267.abi.json +51 -0
  74. package/out/IERC5267.sol/IERC5267.json +1 -0
  75. package/out/IExchangeAdapter.sol/IExchangeAdapter.abi.json +285 -0
  76. package/out/IExchangeAdapter.sol/IExchangeAdapter.json +1 -0
  77. package/out/IMulticall3.sol/IMulticall3.abi.json +440 -0
  78. package/out/IMulticall3.sol/IMulticall3.json +1 -0
  79. package/out/IReactor.sol/IReactor.abi.json +275 -0
  80. package/out/IReactor.sol/IReactor.json +1 -0
  81. package/out/IReactorCallback.sol/IReactorCallback.abi.json +285 -0
  82. package/out/IReactorCallback.sol/IReactorCallback.json +1 -0
  83. package/out/IWM.sol/IWM.abi.json +21 -0
  84. package/out/IWM.sol/IWM.json +1 -0
  85. package/out/Math.sol/Math.abi.json +1 -0
  86. package/out/Math.sol/Math.json +1 -0
  87. package/out/MockDexRouter.sol/MockDexRouter.abi.json +61 -0
  88. package/out/MockDexRouter.sol/MockDexRouter.json +1 -0
  89. package/out/MockReactor.sol/MockReactor.abi.json +572 -0
  90. package/out/MockReactor.sol/MockReactor.json +1 -0
  91. package/out/Multicall3Lib.sol/Multicall3Lib.abi.json +18 -0
  92. package/out/Multicall3Lib.sol/Multicall3Lib.json +1 -0
  93. package/out/OrderLib.sol/OrderLib.abi.json +1 -0
  94. package/out/OrderLib.sol/OrderLib.json +1 -0
  95. package/out/OrderReactor.E2E.t.sol/OrderReactorE2ETest.abi.json +977 -0
  96. package/out/OrderReactor.E2E.t.sol/OrderReactorE2ETest.json +1 -0
  97. package/out/OrderReactor.sol/OrderReactor.abi.json +516 -0
  98. package/out/OrderReactor.sol/OrderReactor.json +1 -0
  99. package/out/OrderValidationLib.Fuzz.t.sol/OrderValidationLibFuzzTest.abi.json +1228 -0
  100. package/out/OrderValidationLib.Fuzz.t.sol/OrderValidationLibFuzzTest.json +1 -0
  101. package/out/OrderValidationLib.sol/OrderValidationLib.abi.json +72 -0
  102. package/out/OrderValidationLib.sol/OrderValidationLib.json +1 -0
  103. package/out/OrderValidationLib.t.sol/OrderValidationLibTest.abi.json +1280 -0
  104. package/out/OrderValidationLib.t.sol/OrderValidationLibTest.json +1 -0
  105. package/out/Ownable.sol/Ownable.abi.json +54 -0
  106. package/out/Ownable.sol/Ownable.json +1 -0
  107. package/out/Ownable2Step.sol/Ownable2Step.abi.json +93 -0
  108. package/out/Ownable2Step.sol/Ownable2Step.json +1 -0
  109. package/out/RePermit.sol/RePermit.abi.json +302 -0
  110. package/out/RePermit.sol/RePermit.json +1 -0
  111. package/out/RePermit.t.sol/RePermitTest.abi.json +1110 -0
  112. package/out/RePermit.t.sol/RePermitTest.json +1 -0
  113. package/out/RePermitLib.sol/RePermitLib.abi.json +79 -0
  114. package/out/RePermitLib.sol/RePermitLib.json +1 -0
  115. package/out/ReentrancyGuard.sol/ReentrancyGuard.abi.json +1 -0
  116. package/out/ReentrancyGuard.sol/ReentrancyGuard.json +1 -0
  117. package/out/Refinery.sol/Refinery.abi.json +147 -0
  118. package/out/Refinery.sol/Refinery.json +1 -0
  119. package/out/Refinery.t.sol/RefineryTest.abi.json +1034 -0
  120. package/out/Refinery.t.sol/RefineryTest.json +1 -0
  121. package/out/ResolutionLib.Fuzz.t.sol/ResolutionLibFuzzTest.abi.json +1154 -0
  122. package/out/ResolutionLib.Fuzz.t.sol/ResolutionLibFuzzTest.json +1 -0
  123. package/out/ResolutionLib.sol/ResolutionLib.abi.json +7 -0
  124. package/out/ResolutionLib.sol/ResolutionLib.json +1 -0
  125. package/out/ResolutionLib.t.sol/ResolutionLibTest.abi.json +1130 -0
  126. package/out/ResolutionLib.t.sol/ResolutionLibTest.json +1 -0
  127. package/out/SafeERC20.sol/SafeERC20.abi.json +1 -0
  128. package/out/SafeERC20.sol/SafeERC20.json +1 -0
  129. package/out/Script.sol/Script.abi.json +15 -0
  130. package/out/Script.sol/Script.json +1 -0
  131. package/out/SettlementLib.sol/SettlementLib.abi.json +62 -0
  132. package/out/SettlementLib.sol/SettlementLib.json +1 -0
  133. package/out/SettlementLib.t.sol/SettlementLibTest.abi.json +1090 -0
  134. package/out/SettlementLib.t.sol/SettlementLibTest.json +1 -0
  135. package/out/SettlementLib.t.sol/SettlementWrapper.abi.json +345 -0
  136. package/out/SettlementLib.t.sol/SettlementWrapper.json +1 -0
  137. package/out/ShortStrings.sol/ShortStrings.abi.json +18 -0
  138. package/out/ShortStrings.sol/ShortStrings.json +1 -0
  139. package/out/SignatureChecker.sol/SignatureChecker.abi.json +1 -0
  140. package/out/SignatureChecker.sol/SignatureChecker.json +1 -0
  141. package/out/SignedMath.sol/SignedMath.abi.json +1 -0
  142. package/out/SignedMath.sol/SignedMath.json +1 -0
  143. package/out/StdAssertions.sol/StdAssertions.abi.json +379 -0
  144. package/out/StdAssertions.sol/StdAssertions.json +1 -0
  145. package/out/StdChains.sol/StdChains.abi.json +1 -0
  146. package/out/StdChains.sol/StdChains.json +1 -0
  147. package/out/StdCheats.sol/StdCheats.abi.json +1 -0
  148. package/out/StdCheats.sol/StdCheats.json +1 -0
  149. package/out/StdCheats.sol/StdCheatsSafe.abi.json +1 -0
  150. package/out/StdCheats.sol/StdCheatsSafe.json +1 -0
  151. package/out/StdConstants.sol/StdConstants.abi.json +1 -0
  152. package/out/StdConstants.sol/StdConstants.json +1 -0
  153. package/out/StdError.sol/stdError.abi.json +119 -0
  154. package/out/StdError.sol/stdError.json +1 -0
  155. package/out/StdInvariant.sol/StdInvariant.abi.json +180 -0
  156. package/out/StdInvariant.sol/StdInvariant.json +1 -0
  157. package/out/StdJson.sol/stdJson.abi.json +1 -0
  158. package/out/StdJson.sol/stdJson.json +1 -0
  159. package/out/StdMath.sol/stdMath.abi.json +1 -0
  160. package/out/StdMath.sol/stdMath.json +1 -0
  161. package/out/StdStorage.sol/stdStorage.abi.json +1 -0
  162. package/out/StdStorage.sol/stdStorage.json +1 -0
  163. package/out/StdStorage.sol/stdStorageSafe.abi.json +52 -0
  164. package/out/StdStorage.sol/stdStorageSafe.json +1 -0
  165. package/out/StdStyle.sol/StdStyle.abi.json +1 -0
  166. package/out/StdStyle.sol/StdStyle.json +1 -0
  167. package/out/StdToml.sol/stdToml.abi.json +1 -0
  168. package/out/StdToml.sol/stdToml.json +1 -0
  169. package/out/StdUtils.sol/StdUtils.abi.json +1 -0
  170. package/out/StdUtils.sol/StdUtils.json +1 -0
  171. package/out/StorageSlot.sol/StorageSlot.abi.json +1 -0
  172. package/out/StorageSlot.sol/StorageSlot.json +1 -0
  173. package/out/Strings.sol/Strings.abi.json +1 -0
  174. package/out/Strings.sol/Strings.json +1 -0
  175. package/out/SurplusLib.sol/SurplusLib.abi.json +39 -0
  176. package/out/SurplusLib.sol/SurplusLib.json +1 -0
  177. package/out/SwapAdapter.sol/SwapAdapterMock.abi.json +290 -0
  178. package/out/SwapAdapter.sol/SwapAdapterMock.json +1 -0
  179. package/out/Test.sol/Test.abi.json +570 -0
  180. package/out/Test.sol/Test.json +1 -0
  181. package/out/TokenLib.sol/TokenLib.abi.json +1 -0
  182. package/out/TokenLib.sol/TokenLib.json +1 -0
  183. package/out/USDTMock.sol/USDTMock.abi.json +300 -0
  184. package/out/USDTMock.sol/USDTMock.json +1 -0
  185. package/out/Vm.sol/Vm.abi.json +11771 -0
  186. package/out/Vm.sol/Vm.json +1 -0
  187. package/out/Vm.sol/VmSafe.abi.json +9371 -0
  188. package/out/Vm.sol/VmSafe.json +1 -0
  189. package/out/WM.sol/WM.abi.json +160 -0
  190. package/out/WM.sol/WM.json +1 -0
  191. package/out/WM.t.sol/WMTest.abi.json +985 -0
  192. package/out/WM.t.sol/WMTest.json +1 -0
  193. package/out/build-info/363db87197fc9814c7bfdf743fe3f032.json +1 -0
  194. package/out/build-info/58edb1e201d69cafa30a8647665617e6.json +1 -0
  195. package/out/build-info/73bd7c3e9ec8bc61cee51a6d313820a9.json +1 -0
  196. package/out/build-info/77f38a2f64e07d9cd0b3e2102d7863fd.json +1 -0
  197. package/out/build-info/c14311d7870724b723128a4d397b0f4c.json +1 -0
  198. package/out/console.sol/console.abi.json +1 -0
  199. package/out/console.sol/console.json +1 -0
  200. package/out/safeconsole.sol/safeconsole.abi.json +1 -0
  201. package/out/safeconsole.sol/safeconsole.json +1 -0
  202. package/package.json +25 -0
  203. package/script/input/config.json +20 -0
  204. package/script/input/cosignature.skeleton.json +68 -0
  205. package/script/input/legacy-config.json +80 -0
  206. package/script/input/repermit.skeleton.json +185 -0
  207. package/script/input/wm.json +1003 -0
  208. package/script/input/wm2.json +13 -0
@@ -0,0 +1,930 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "IS_SCRIPT",
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": "IS_TEST",
18
+ "inputs": [],
19
+ "outputs": [
20
+ {
21
+ "name": "",
22
+ "type": "bool",
23
+ "internalType": "bool"
24
+ }
25
+ ],
26
+ "stateMutability": "view"
27
+ },
28
+ {
29
+ "type": "function",
30
+ "name": "adapter",
31
+ "inputs": [],
32
+ "outputs": [
33
+ {
34
+ "name": "",
35
+ "type": "address",
36
+ "internalType": "address"
37
+ }
38
+ ],
39
+ "stateMutability": "view"
40
+ },
41
+ {
42
+ "type": "function",
43
+ "name": "adapterUut",
44
+ "inputs": [],
45
+ "outputs": [
46
+ {
47
+ "name": "",
48
+ "type": "address",
49
+ "internalType": "contract DefaultDexAdapter"
50
+ }
51
+ ],
52
+ "stateMutability": "view"
53
+ },
54
+ {
55
+ "type": "function",
56
+ "name": "cosignInValue",
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": "cosignOutValue",
70
+ "inputs": [],
71
+ "outputs": [
72
+ {
73
+ "name": "",
74
+ "type": "uint256",
75
+ "internalType": "uint256"
76
+ }
77
+ ],
78
+ "stateMutability": "view"
79
+ },
80
+ {
81
+ "type": "function",
82
+ "name": "excludeArtifacts",
83
+ "inputs": [],
84
+ "outputs": [
85
+ {
86
+ "name": "excludedArtifacts_",
87
+ "type": "string[]",
88
+ "internalType": "string[]"
89
+ }
90
+ ],
91
+ "stateMutability": "view"
92
+ },
93
+ {
94
+ "type": "function",
95
+ "name": "excludeContracts",
96
+ "inputs": [],
97
+ "outputs": [
98
+ {
99
+ "name": "excludedContracts_",
100
+ "type": "address[]",
101
+ "internalType": "address[]"
102
+ }
103
+ ],
104
+ "stateMutability": "view"
105
+ },
106
+ {
107
+ "type": "function",
108
+ "name": "excludeSelectors",
109
+ "inputs": [],
110
+ "outputs": [
111
+ {
112
+ "name": "excludedSelectors_",
113
+ "type": "tuple[]",
114
+ "internalType": "struct StdInvariant.FuzzSelector[]",
115
+ "components": [
116
+ {
117
+ "name": "addr",
118
+ "type": "address",
119
+ "internalType": "address"
120
+ },
121
+ {
122
+ "name": "selectors",
123
+ "type": "bytes4[]",
124
+ "internalType": "bytes4[]"
125
+ }
126
+ ]
127
+ }
128
+ ],
129
+ "stateMutability": "view"
130
+ },
131
+ {
132
+ "type": "function",
133
+ "name": "excludeSenders",
134
+ "inputs": [],
135
+ "outputs": [
136
+ {
137
+ "name": "excludedSenders_",
138
+ "type": "address[]",
139
+ "internalType": "address[]"
140
+ }
141
+ ],
142
+ "stateMutability": "view"
143
+ },
144
+ {
145
+ "type": "function",
146
+ "name": "executor",
147
+ "inputs": [],
148
+ "outputs": [
149
+ {
150
+ "name": "",
151
+ "type": "address",
152
+ "internalType": "address"
153
+ }
154
+ ],
155
+ "stateMutability": "view"
156
+ },
157
+ {
158
+ "type": "function",
159
+ "name": "failed",
160
+ "inputs": [],
161
+ "outputs": [
162
+ {
163
+ "name": "",
164
+ "type": "bool",
165
+ "internalType": "bool"
166
+ }
167
+ ],
168
+ "stateMutability": "view"
169
+ },
170
+ {
171
+ "type": "function",
172
+ "name": "freshness",
173
+ "inputs": [],
174
+ "outputs": [
175
+ {
176
+ "name": "",
177
+ "type": "uint32",
178
+ "internalType": "uint32"
179
+ }
180
+ ],
181
+ "stateMutability": "view"
182
+ },
183
+ {
184
+ "type": "function",
185
+ "name": "inAmount",
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": "inMax",
199
+ "inputs": [],
200
+ "outputs": [
201
+ {
202
+ "name": "",
203
+ "type": "uint256",
204
+ "internalType": "uint256"
205
+ }
206
+ ],
207
+ "stateMutability": "view"
208
+ },
209
+ {
210
+ "type": "function",
211
+ "name": "inToken",
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": "other",
225
+ "inputs": [],
226
+ "outputs": [
227
+ {
228
+ "name": "",
229
+ "type": "address",
230
+ "internalType": "address"
231
+ }
232
+ ],
233
+ "stateMutability": "view"
234
+ },
235
+ {
236
+ "type": "function",
237
+ "name": "outAmount",
238
+ "inputs": [],
239
+ "outputs": [
240
+ {
241
+ "name": "",
242
+ "type": "uint256",
243
+ "internalType": "uint256"
244
+ }
245
+ ],
246
+ "stateMutability": "view"
247
+ },
248
+ {
249
+ "type": "function",
250
+ "name": "outMax",
251
+ "inputs": [],
252
+ "outputs": [
253
+ {
254
+ "name": "",
255
+ "type": "uint256",
256
+ "internalType": "uint256"
257
+ }
258
+ ],
259
+ "stateMutability": "view"
260
+ },
261
+ {
262
+ "type": "function",
263
+ "name": "outToken",
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": "reactor",
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": "recipient",
290
+ "inputs": [],
291
+ "outputs": [
292
+ {
293
+ "name": "",
294
+ "type": "address",
295
+ "internalType": "address"
296
+ }
297
+ ],
298
+ "stateMutability": "view"
299
+ },
300
+ {
301
+ "type": "function",
302
+ "name": "repermit",
303
+ "inputs": [],
304
+ "outputs": [
305
+ {
306
+ "name": "",
307
+ "type": "address",
308
+ "internalType": "address"
309
+ }
310
+ ],
311
+ "stateMutability": "view"
312
+ },
313
+ {
314
+ "type": "function",
315
+ "name": "router",
316
+ "inputs": [],
317
+ "outputs": [
318
+ {
319
+ "name": "",
320
+ "type": "address",
321
+ "internalType": "contract MockDexRouter"
322
+ }
323
+ ],
324
+ "stateMutability": "view"
325
+ },
326
+ {
327
+ "type": "function",
328
+ "name": "setUp",
329
+ "inputs": [],
330
+ "outputs": [],
331
+ "stateMutability": "nonpayable"
332
+ },
333
+ {
334
+ "type": "function",
335
+ "name": "signer",
336
+ "inputs": [],
337
+ "outputs": [
338
+ {
339
+ "name": "",
340
+ "type": "address",
341
+ "internalType": "address"
342
+ }
343
+ ],
344
+ "stateMutability": "view"
345
+ },
346
+ {
347
+ "type": "function",
348
+ "name": "signerPK",
349
+ "inputs": [],
350
+ "outputs": [
351
+ {
352
+ "name": "",
353
+ "type": "uint256",
354
+ "internalType": "uint256"
355
+ }
356
+ ],
357
+ "stateMutability": "view"
358
+ },
359
+ {
360
+ "type": "function",
361
+ "name": "slippage",
362
+ "inputs": [],
363
+ "outputs": [
364
+ {
365
+ "name": "",
366
+ "type": "uint32",
367
+ "internalType": "uint32"
368
+ }
369
+ ],
370
+ "stateMutability": "view"
371
+ },
372
+ {
373
+ "type": "function",
374
+ "name": "swapper",
375
+ "inputs": [],
376
+ "outputs": [
377
+ {
378
+ "name": "",
379
+ "type": "address",
380
+ "internalType": "address"
381
+ }
382
+ ],
383
+ "stateMutability": "view"
384
+ },
385
+ {
386
+ "type": "function",
387
+ "name": "targetArtifactSelectors",
388
+ "inputs": [],
389
+ "outputs": [
390
+ {
391
+ "name": "targetedArtifactSelectors_",
392
+ "type": "tuple[]",
393
+ "internalType": "struct StdInvariant.FuzzArtifactSelector[]",
394
+ "components": [
395
+ {
396
+ "name": "artifact",
397
+ "type": "string",
398
+ "internalType": "string"
399
+ },
400
+ {
401
+ "name": "selectors",
402
+ "type": "bytes4[]",
403
+ "internalType": "bytes4[]"
404
+ }
405
+ ]
406
+ }
407
+ ],
408
+ "stateMutability": "view"
409
+ },
410
+ {
411
+ "type": "function",
412
+ "name": "targetArtifacts",
413
+ "inputs": [],
414
+ "outputs": [
415
+ {
416
+ "name": "targetedArtifacts_",
417
+ "type": "string[]",
418
+ "internalType": "string[]"
419
+ }
420
+ ],
421
+ "stateMutability": "view"
422
+ },
423
+ {
424
+ "type": "function",
425
+ "name": "targetContracts",
426
+ "inputs": [],
427
+ "outputs": [
428
+ {
429
+ "name": "targetedContracts_",
430
+ "type": "address[]",
431
+ "internalType": "address[]"
432
+ }
433
+ ],
434
+ "stateMutability": "view"
435
+ },
436
+ {
437
+ "type": "function",
438
+ "name": "targetInterfaces",
439
+ "inputs": [],
440
+ "outputs": [
441
+ {
442
+ "name": "targetedInterfaces_",
443
+ "type": "tuple[]",
444
+ "internalType": "struct StdInvariant.FuzzInterface[]",
445
+ "components": [
446
+ {
447
+ "name": "addr",
448
+ "type": "address",
449
+ "internalType": "address"
450
+ },
451
+ {
452
+ "name": "artifacts",
453
+ "type": "string[]",
454
+ "internalType": "string[]"
455
+ }
456
+ ]
457
+ }
458
+ ],
459
+ "stateMutability": "view"
460
+ },
461
+ {
462
+ "type": "function",
463
+ "name": "targetSelectors",
464
+ "inputs": [],
465
+ "outputs": [
466
+ {
467
+ "name": "targetedSelectors_",
468
+ "type": "tuple[]",
469
+ "internalType": "struct StdInvariant.FuzzSelector[]",
470
+ "components": [
471
+ {
472
+ "name": "addr",
473
+ "type": "address",
474
+ "internalType": "address"
475
+ },
476
+ {
477
+ "name": "selectors",
478
+ "type": "bytes4[]",
479
+ "internalType": "bytes4[]"
480
+ }
481
+ ]
482
+ }
483
+ ],
484
+ "stateMutability": "view"
485
+ },
486
+ {
487
+ "type": "function",
488
+ "name": "targetSenders",
489
+ "inputs": [],
490
+ "outputs": [
491
+ {
492
+ "name": "targetedSenders_",
493
+ "type": "address[]",
494
+ "internalType": "address[]"
495
+ }
496
+ ],
497
+ "stateMutability": "view"
498
+ },
499
+ {
500
+ "type": "function",
501
+ "name": "test_swap_ERC20_to_ERC20_success",
502
+ "inputs": [],
503
+ "outputs": [],
504
+ "stateMutability": "nonpayable"
505
+ },
506
+ {
507
+ "type": "function",
508
+ "name": "test_swap_handles_USDT_like_tokens",
509
+ "inputs": [],
510
+ "outputs": [],
511
+ "stateMutability": "nonpayable"
512
+ },
513
+ {
514
+ "type": "function",
515
+ "name": "test_swap_reverts_invalid_data",
516
+ "inputs": [],
517
+ "outputs": [],
518
+ "stateMutability": "nonpayable"
519
+ },
520
+ {
521
+ "type": "function",
522
+ "name": "test_swap_reverts_when_router_call_fails",
523
+ "inputs": [],
524
+ "outputs": [],
525
+ "stateMutability": "nonpayable"
526
+ },
527
+ {
528
+ "type": "function",
529
+ "name": "token",
530
+ "inputs": [],
531
+ "outputs": [
532
+ {
533
+ "name": "",
534
+ "type": "address",
535
+ "internalType": "contract ERC20Mock"
536
+ }
537
+ ],
538
+ "stateMutability": "view"
539
+ },
540
+ {
541
+ "type": "function",
542
+ "name": "token2",
543
+ "inputs": [],
544
+ "outputs": [
545
+ {
546
+ "name": "",
547
+ "type": "address",
548
+ "internalType": "contract ERC20Mock"
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
+ ]