@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,1090 @@
1
+ [
2
+ {
3
+ "type": "receive",
4
+ "stateMutability": "payable"
5
+ },
6
+ {
7
+ "type": "function",
8
+ "name": "IS_SCRIPT",
9
+ "inputs": [],
10
+ "outputs": [
11
+ {
12
+ "name": "",
13
+ "type": "bool",
14
+ "internalType": "bool"
15
+ }
16
+ ],
17
+ "stateMutability": "view"
18
+ },
19
+ {
20
+ "type": "function",
21
+ "name": "IS_TEST",
22
+ "inputs": [],
23
+ "outputs": [
24
+ {
25
+ "name": "",
26
+ "type": "bool",
27
+ "internalType": "bool"
28
+ }
29
+ ],
30
+ "stateMutability": "view"
31
+ },
32
+ {
33
+ "type": "function",
34
+ "name": "adapter",
35
+ "inputs": [],
36
+ "outputs": [
37
+ {
38
+ "name": "",
39
+ "type": "address",
40
+ "internalType": "address"
41
+ }
42
+ ],
43
+ "stateMutability": "view"
44
+ },
45
+ {
46
+ "type": "function",
47
+ "name": "cosignInValue",
48
+ "inputs": [],
49
+ "outputs": [
50
+ {
51
+ "name": "",
52
+ "type": "uint256",
53
+ "internalType": "uint256"
54
+ }
55
+ ],
56
+ "stateMutability": "view"
57
+ },
58
+ {
59
+ "type": "function",
60
+ "name": "cosignOutValue",
61
+ "inputs": [],
62
+ "outputs": [
63
+ {
64
+ "name": "",
65
+ "type": "uint256",
66
+ "internalType": "uint256"
67
+ }
68
+ ],
69
+ "stateMutability": "view"
70
+ },
71
+ {
72
+ "type": "function",
73
+ "name": "exchange",
74
+ "inputs": [],
75
+ "outputs": [
76
+ {
77
+ "name": "",
78
+ "type": "address",
79
+ "internalType": "address"
80
+ }
81
+ ],
82
+ "stateMutability": "view"
83
+ },
84
+ {
85
+ "type": "function",
86
+ "name": "excludeArtifacts",
87
+ "inputs": [],
88
+ "outputs": [
89
+ {
90
+ "name": "excludedArtifacts_",
91
+ "type": "string[]",
92
+ "internalType": "string[]"
93
+ }
94
+ ],
95
+ "stateMutability": "view"
96
+ },
97
+ {
98
+ "type": "function",
99
+ "name": "excludeContracts",
100
+ "inputs": [],
101
+ "outputs": [
102
+ {
103
+ "name": "excludedContracts_",
104
+ "type": "address[]",
105
+ "internalType": "address[]"
106
+ }
107
+ ],
108
+ "stateMutability": "view"
109
+ },
110
+ {
111
+ "type": "function",
112
+ "name": "excludeSelectors",
113
+ "inputs": [],
114
+ "outputs": [
115
+ {
116
+ "name": "excludedSelectors_",
117
+ "type": "tuple[]",
118
+ "internalType": "struct StdInvariant.FuzzSelector[]",
119
+ "components": [
120
+ {
121
+ "name": "addr",
122
+ "type": "address",
123
+ "internalType": "address"
124
+ },
125
+ {
126
+ "name": "selectors",
127
+ "type": "bytes4[]",
128
+ "internalType": "bytes4[]"
129
+ }
130
+ ]
131
+ }
132
+ ],
133
+ "stateMutability": "view"
134
+ },
135
+ {
136
+ "type": "function",
137
+ "name": "excludeSenders",
138
+ "inputs": [],
139
+ "outputs": [
140
+ {
141
+ "name": "excludedSenders_",
142
+ "type": "address[]",
143
+ "internalType": "address[]"
144
+ }
145
+ ],
146
+ "stateMutability": "view"
147
+ },
148
+ {
149
+ "type": "function",
150
+ "name": "executor",
151
+ "inputs": [],
152
+ "outputs": [
153
+ {
154
+ "name": "",
155
+ "type": "address",
156
+ "internalType": "address"
157
+ }
158
+ ],
159
+ "stateMutability": "view"
160
+ },
161
+ {
162
+ "type": "function",
163
+ "name": "failed",
164
+ "inputs": [],
165
+ "outputs": [
166
+ {
167
+ "name": "",
168
+ "type": "bool",
169
+ "internalType": "bool"
170
+ }
171
+ ],
172
+ "stateMutability": "view"
173
+ },
174
+ {
175
+ "type": "function",
176
+ "name": "feeRecipient",
177
+ "inputs": [],
178
+ "outputs": [
179
+ {
180
+ "name": "",
181
+ "type": "address",
182
+ "internalType": "address"
183
+ }
184
+ ],
185
+ "stateMutability": "view"
186
+ },
187
+ {
188
+ "type": "function",
189
+ "name": "freshness",
190
+ "inputs": [],
191
+ "outputs": [
192
+ {
193
+ "name": "",
194
+ "type": "uint32",
195
+ "internalType": "uint32"
196
+ }
197
+ ],
198
+ "stateMutability": "view"
199
+ },
200
+ {
201
+ "type": "function",
202
+ "name": "inAmount",
203
+ "inputs": [],
204
+ "outputs": [
205
+ {
206
+ "name": "",
207
+ "type": "uint256",
208
+ "internalType": "uint256"
209
+ }
210
+ ],
211
+ "stateMutability": "view"
212
+ },
213
+ {
214
+ "type": "function",
215
+ "name": "inMax",
216
+ "inputs": [],
217
+ "outputs": [
218
+ {
219
+ "name": "",
220
+ "type": "uint256",
221
+ "internalType": "uint256"
222
+ }
223
+ ],
224
+ "stateMutability": "view"
225
+ },
226
+ {
227
+ "type": "function",
228
+ "name": "inToken",
229
+ "inputs": [],
230
+ "outputs": [
231
+ {
232
+ "name": "",
233
+ "type": "address",
234
+ "internalType": "address"
235
+ }
236
+ ],
237
+ "stateMutability": "view"
238
+ },
239
+ {
240
+ "type": "function",
241
+ "name": "other",
242
+ "inputs": [],
243
+ "outputs": [
244
+ {
245
+ "name": "",
246
+ "type": "address",
247
+ "internalType": "address"
248
+ }
249
+ ],
250
+ "stateMutability": "view"
251
+ },
252
+ {
253
+ "type": "function",
254
+ "name": "outAmount",
255
+ "inputs": [],
256
+ "outputs": [
257
+ {
258
+ "name": "",
259
+ "type": "uint256",
260
+ "internalType": "uint256"
261
+ }
262
+ ],
263
+ "stateMutability": "view"
264
+ },
265
+ {
266
+ "type": "function",
267
+ "name": "outMax",
268
+ "inputs": [],
269
+ "outputs": [
270
+ {
271
+ "name": "",
272
+ "type": "uint256",
273
+ "internalType": "uint256"
274
+ }
275
+ ],
276
+ "stateMutability": "view"
277
+ },
278
+ {
279
+ "type": "function",
280
+ "name": "outToken",
281
+ "inputs": [],
282
+ "outputs": [
283
+ {
284
+ "name": "",
285
+ "type": "address",
286
+ "internalType": "address"
287
+ }
288
+ ],
289
+ "stateMutability": "view"
290
+ },
291
+ {
292
+ "type": "function",
293
+ "name": "reactor",
294
+ "inputs": [],
295
+ "outputs": [
296
+ {
297
+ "name": "",
298
+ "type": "address",
299
+ "internalType": "address"
300
+ }
301
+ ],
302
+ "stateMutability": "view"
303
+ },
304
+ {
305
+ "type": "function",
306
+ "name": "recipient",
307
+ "inputs": [],
308
+ "outputs": [
309
+ {
310
+ "name": "",
311
+ "type": "address",
312
+ "internalType": "address"
313
+ }
314
+ ],
315
+ "stateMutability": "view"
316
+ },
317
+ {
318
+ "type": "function",
319
+ "name": "repermit",
320
+ "inputs": [],
321
+ "outputs": [
322
+ {
323
+ "name": "",
324
+ "type": "address",
325
+ "internalType": "address"
326
+ }
327
+ ],
328
+ "stateMutability": "view"
329
+ },
330
+ {
331
+ "type": "function",
332
+ "name": "setUp",
333
+ "inputs": [],
334
+ "outputs": [],
335
+ "stateMutability": "nonpayable"
336
+ },
337
+ {
338
+ "type": "function",
339
+ "name": "signer",
340
+ "inputs": [],
341
+ "outputs": [
342
+ {
343
+ "name": "",
344
+ "type": "address",
345
+ "internalType": "address"
346
+ }
347
+ ],
348
+ "stateMutability": "view"
349
+ },
350
+ {
351
+ "type": "function",
352
+ "name": "signerPK",
353
+ "inputs": [],
354
+ "outputs": [
355
+ {
356
+ "name": "",
357
+ "type": "uint256",
358
+ "internalType": "uint256"
359
+ }
360
+ ],
361
+ "stateMutability": "view"
362
+ },
363
+ {
364
+ "type": "function",
365
+ "name": "slippage",
366
+ "inputs": [],
367
+ "outputs": [
368
+ {
369
+ "name": "",
370
+ "type": "uint32",
371
+ "internalType": "uint32"
372
+ }
373
+ ],
374
+ "stateMutability": "view"
375
+ },
376
+ {
377
+ "type": "function",
378
+ "name": "swapper",
379
+ "inputs": [],
380
+ "outputs": [
381
+ {
382
+ "name": "",
383
+ "type": "address",
384
+ "internalType": "address"
385
+ }
386
+ ],
387
+ "stateMutability": "view"
388
+ },
389
+ {
390
+ "type": "function",
391
+ "name": "targetArtifactSelectors",
392
+ "inputs": [],
393
+ "outputs": [
394
+ {
395
+ "name": "targetedArtifactSelectors_",
396
+ "type": "tuple[]",
397
+ "internalType": "struct StdInvariant.FuzzArtifactSelector[]",
398
+ "components": [
399
+ {
400
+ "name": "artifact",
401
+ "type": "string",
402
+ "internalType": "string"
403
+ },
404
+ {
405
+ "name": "selectors",
406
+ "type": "bytes4[]",
407
+ "internalType": "bytes4[]"
408
+ }
409
+ ]
410
+ }
411
+ ],
412
+ "stateMutability": "view"
413
+ },
414
+ {
415
+ "type": "function",
416
+ "name": "targetArtifacts",
417
+ "inputs": [],
418
+ "outputs": [
419
+ {
420
+ "name": "targetedArtifacts_",
421
+ "type": "string[]",
422
+ "internalType": "string[]"
423
+ }
424
+ ],
425
+ "stateMutability": "view"
426
+ },
427
+ {
428
+ "type": "function",
429
+ "name": "targetContracts",
430
+ "inputs": [],
431
+ "outputs": [
432
+ {
433
+ "name": "targetedContracts_",
434
+ "type": "address[]",
435
+ "internalType": "address[]"
436
+ }
437
+ ],
438
+ "stateMutability": "view"
439
+ },
440
+ {
441
+ "type": "function",
442
+ "name": "targetInterfaces",
443
+ "inputs": [],
444
+ "outputs": [
445
+ {
446
+ "name": "targetedInterfaces_",
447
+ "type": "tuple[]",
448
+ "internalType": "struct StdInvariant.FuzzInterface[]",
449
+ "components": [
450
+ {
451
+ "name": "addr",
452
+ "type": "address",
453
+ "internalType": "address"
454
+ },
455
+ {
456
+ "name": "artifacts",
457
+ "type": "string[]",
458
+ "internalType": "string[]"
459
+ }
460
+ ]
461
+ }
462
+ ],
463
+ "stateMutability": "view"
464
+ },
465
+ {
466
+ "type": "function",
467
+ "name": "targetSelectors",
468
+ "inputs": [],
469
+ "outputs": [
470
+ {
471
+ "name": "targetedSelectors_",
472
+ "type": "tuple[]",
473
+ "internalType": "struct StdInvariant.FuzzSelector[]",
474
+ "components": [
475
+ {
476
+ "name": "addr",
477
+ "type": "address",
478
+ "internalType": "address"
479
+ },
480
+ {
481
+ "name": "selectors",
482
+ "type": "bytes4[]",
483
+ "internalType": "bytes4[]"
484
+ }
485
+ ]
486
+ }
487
+ ],
488
+ "stateMutability": "view"
489
+ },
490
+ {
491
+ "type": "function",
492
+ "name": "targetSenders",
493
+ "inputs": [],
494
+ "outputs": [
495
+ {
496
+ "name": "targetedSenders_",
497
+ "type": "address[]",
498
+ "internalType": "address[]"
499
+ }
500
+ ],
501
+ "stateMutability": "view"
502
+ },
503
+ {
504
+ "type": "function",
505
+ "name": "testFuzz_settle_result_values",
506
+ "inputs": [
507
+ {
508
+ "name": "inAmount",
509
+ "type": "uint128",
510
+ "internalType": "uint128"
511
+ },
512
+ {
513
+ "name": "outAmount",
514
+ "type": "uint128",
515
+ "internalType": "uint128"
516
+ },
517
+ {
518
+ "name": "minAmountOut",
519
+ "type": "uint128",
520
+ "internalType": "uint128"
521
+ },
522
+ {
523
+ "name": "feeAmount",
524
+ "type": "uint128",
525
+ "internalType": "uint128"
526
+ }
527
+ ],
528
+ "outputs": [],
529
+ "stateMutability": "nonpayable"
530
+ },
531
+ {
532
+ "type": "function",
533
+ "name": "testReactor",
534
+ "inputs": [],
535
+ "outputs": [
536
+ {
537
+ "name": "",
538
+ "type": "address",
539
+ "internalType": "address"
540
+ }
541
+ ],
542
+ "stateMutability": "view"
543
+ },
544
+ {
545
+ "type": "function",
546
+ "name": "testSwapper",
547
+ "inputs": [],
548
+ "outputs": [
549
+ {
550
+ "name": "",
551
+ "type": "address",
552
+ "internalType": "address"
553
+ }
554
+ ],
555
+ "stateMutability": "view"
556
+ },
557
+ {
558
+ "type": "function",
559
+ "name": "test_settle_basic_functionality",
560
+ "inputs": [],
561
+ "outputs": [],
562
+ "stateMutability": "nonpayable"
563
+ },
564
+ {
565
+ "type": "function",
566
+ "name": "test_settle_handles_usdt_like_tokens",
567
+ "inputs": [],
568
+ "outputs": [],
569
+ "stateMutability": "nonpayable"
570
+ },
571
+ {
572
+ "type": "function",
573
+ "name": "test_settle_with_both_shortfall_and_fee",
574
+ "inputs": [],
575
+ "outputs": [],
576
+ "stateMutability": "nonpayable"
577
+ },
578
+ {
579
+ "type": "function",
580
+ "name": "test_settle_with_eth_gas_fee",
581
+ "inputs": [],
582
+ "outputs": [],
583
+ "stateMutability": "nonpayable"
584
+ },
585
+ {
586
+ "type": "function",
587
+ "name": "test_settle_with_gas_fee_transfer",
588
+ "inputs": [],
589
+ "outputs": [],
590
+ "stateMutability": "nonpayable"
591
+ },
592
+ {
593
+ "type": "function",
594
+ "name": "test_settle_with_min_amount_out_transfer",
595
+ "inputs": [],
596
+ "outputs": [],
597
+ "stateMutability": "nonpayable"
598
+ },
599
+ {
600
+ "type": "function",
601
+ "name": "test_settle_with_zero_gas_fee_skips_transfer",
602
+ "inputs": [],
603
+ "outputs": [],
604
+ "stateMutability": "nonpayable"
605
+ },
606
+ {
607
+ "type": "function",
608
+ "name": "token",
609
+ "inputs": [],
610
+ "outputs": [
611
+ {
612
+ "name": "",
613
+ "type": "address",
614
+ "internalType": "contract ERC20Mock"
615
+ }
616
+ ],
617
+ "stateMutability": "view"
618
+ },
619
+ {
620
+ "type": "function",
621
+ "name": "token2",
622
+ "inputs": [],
623
+ "outputs": [
624
+ {
625
+ "name": "",
626
+ "type": "address",
627
+ "internalType": "contract ERC20Mock"
628
+ }
629
+ ],
630
+ "stateMutability": "view"
631
+ },
632
+ {
633
+ "type": "function",
634
+ "name": "usdt",
635
+ "inputs": [],
636
+ "outputs": [
637
+ {
638
+ "name": "",
639
+ "type": "address",
640
+ "internalType": "contract USDTMock"
641
+ }
642
+ ],
643
+ "stateMutability": "view"
644
+ },
645
+ {
646
+ "type": "function",
647
+ "name": "wm",
648
+ "inputs": [],
649
+ "outputs": [
650
+ {
651
+ "name": "",
652
+ "type": "address",
653
+ "internalType": "address"
654
+ }
655
+ ],
656
+ "stateMutability": "view"
657
+ },
658
+ {
659
+ "type": "function",
660
+ "name": "wrapper",
661
+ "inputs": [],
662
+ "outputs": [
663
+ {
664
+ "name": "",
665
+ "type": "address",
666
+ "internalType": "contract SettlementWrapper"
667
+ }
668
+ ],
669
+ "stateMutability": "view"
670
+ },
671
+ {
672
+ "type": "event",
673
+ "name": "Settled",
674
+ "inputs": [
675
+ {
676
+ "name": "orderHash",
677
+ "type": "bytes32",
678
+ "indexed": true,
679
+ "internalType": "bytes32"
680
+ },
681
+ {
682
+ "name": "swapper",
683
+ "type": "address",
684
+ "indexed": true,
685
+ "internalType": "address"
686
+ },
687
+ {
688
+ "name": "exchange",
689
+ "type": "address",
690
+ "indexed": true,
691
+ "internalType": "address"
692
+ },
693
+ {
694
+ "name": "inputToken",
695
+ "type": "address",
696
+ "indexed": false,
697
+ "internalType": "address"
698
+ },
699
+ {
700
+ "name": "outputToken",
701
+ "type": "address",
702
+ "indexed": false,
703
+ "internalType": "address"
704
+ },
705
+ {
706
+ "name": "inputAmount",
707
+ "type": "uint256",
708
+ "indexed": false,
709
+ "internalType": "uint256"
710
+ },
711
+ {
712
+ "name": "outputAmount",
713
+ "type": "uint256",
714
+ "indexed": false,
715
+ "internalType": "uint256"
716
+ },
717
+ {
718
+ "name": "minOut",
719
+ "type": "uint256",
720
+ "indexed": false,
721
+ "internalType": "uint256"
722
+ }
723
+ ],
724
+ "anonymous": false
725
+ },
726
+ {
727
+ "type": "event",
728
+ "name": "log",
729
+ "inputs": [
730
+ {
731
+ "name": "",
732
+ "type": "string",
733
+ "indexed": false,
734
+ "internalType": "string"
735
+ }
736
+ ],
737
+ "anonymous": false
738
+ },
739
+ {
740
+ "type": "event",
741
+ "name": "log_address",
742
+ "inputs": [
743
+ {
744
+ "name": "",
745
+ "type": "address",
746
+ "indexed": false,
747
+ "internalType": "address"
748
+ }
749
+ ],
750
+ "anonymous": false
751
+ },
752
+ {
753
+ "type": "event",
754
+ "name": "log_array",
755
+ "inputs": [
756
+ {
757
+ "name": "val",
758
+ "type": "uint256[]",
759
+ "indexed": false,
760
+ "internalType": "uint256[]"
761
+ }
762
+ ],
763
+ "anonymous": false
764
+ },
765
+ {
766
+ "type": "event",
767
+ "name": "log_array",
768
+ "inputs": [
769
+ {
770
+ "name": "val",
771
+ "type": "int256[]",
772
+ "indexed": false,
773
+ "internalType": "int256[]"
774
+ }
775
+ ],
776
+ "anonymous": false
777
+ },
778
+ {
779
+ "type": "event",
780
+ "name": "log_array",
781
+ "inputs": [
782
+ {
783
+ "name": "val",
784
+ "type": "address[]",
785
+ "indexed": false,
786
+ "internalType": "address[]"
787
+ }
788
+ ],
789
+ "anonymous": false
790
+ },
791
+ {
792
+ "type": "event",
793
+ "name": "log_bytes",
794
+ "inputs": [
795
+ {
796
+ "name": "",
797
+ "type": "bytes",
798
+ "indexed": false,
799
+ "internalType": "bytes"
800
+ }
801
+ ],
802
+ "anonymous": false
803
+ },
804
+ {
805
+ "type": "event",
806
+ "name": "log_bytes32",
807
+ "inputs": [
808
+ {
809
+ "name": "",
810
+ "type": "bytes32",
811
+ "indexed": false,
812
+ "internalType": "bytes32"
813
+ }
814
+ ],
815
+ "anonymous": false
816
+ },
817
+ {
818
+ "type": "event",
819
+ "name": "log_int",
820
+ "inputs": [
821
+ {
822
+ "name": "",
823
+ "type": "int256",
824
+ "indexed": false,
825
+ "internalType": "int256"
826
+ }
827
+ ],
828
+ "anonymous": false
829
+ },
830
+ {
831
+ "type": "event",
832
+ "name": "log_named_address",
833
+ "inputs": [
834
+ {
835
+ "name": "key",
836
+ "type": "string",
837
+ "indexed": false,
838
+ "internalType": "string"
839
+ },
840
+ {
841
+ "name": "val",
842
+ "type": "address",
843
+ "indexed": false,
844
+ "internalType": "address"
845
+ }
846
+ ],
847
+ "anonymous": false
848
+ },
849
+ {
850
+ "type": "event",
851
+ "name": "log_named_array",
852
+ "inputs": [
853
+ {
854
+ "name": "key",
855
+ "type": "string",
856
+ "indexed": false,
857
+ "internalType": "string"
858
+ },
859
+ {
860
+ "name": "val",
861
+ "type": "uint256[]",
862
+ "indexed": false,
863
+ "internalType": "uint256[]"
864
+ }
865
+ ],
866
+ "anonymous": false
867
+ },
868
+ {
869
+ "type": "event",
870
+ "name": "log_named_array",
871
+ "inputs": [
872
+ {
873
+ "name": "key",
874
+ "type": "string",
875
+ "indexed": false,
876
+ "internalType": "string"
877
+ },
878
+ {
879
+ "name": "val",
880
+ "type": "int256[]",
881
+ "indexed": false,
882
+ "internalType": "int256[]"
883
+ }
884
+ ],
885
+ "anonymous": false
886
+ },
887
+ {
888
+ "type": "event",
889
+ "name": "log_named_array",
890
+ "inputs": [
891
+ {
892
+ "name": "key",
893
+ "type": "string",
894
+ "indexed": false,
895
+ "internalType": "string"
896
+ },
897
+ {
898
+ "name": "val",
899
+ "type": "address[]",
900
+ "indexed": false,
901
+ "internalType": "address[]"
902
+ }
903
+ ],
904
+ "anonymous": false
905
+ },
906
+ {
907
+ "type": "event",
908
+ "name": "log_named_bytes",
909
+ "inputs": [
910
+ {
911
+ "name": "key",
912
+ "type": "string",
913
+ "indexed": false,
914
+ "internalType": "string"
915
+ },
916
+ {
917
+ "name": "val",
918
+ "type": "bytes",
919
+ "indexed": false,
920
+ "internalType": "bytes"
921
+ }
922
+ ],
923
+ "anonymous": false
924
+ },
925
+ {
926
+ "type": "event",
927
+ "name": "log_named_bytes32",
928
+ "inputs": [
929
+ {
930
+ "name": "key",
931
+ "type": "string",
932
+ "indexed": false,
933
+ "internalType": "string"
934
+ },
935
+ {
936
+ "name": "val",
937
+ "type": "bytes32",
938
+ "indexed": false,
939
+ "internalType": "bytes32"
940
+ }
941
+ ],
942
+ "anonymous": false
943
+ },
944
+ {
945
+ "type": "event",
946
+ "name": "log_named_decimal_int",
947
+ "inputs": [
948
+ {
949
+ "name": "key",
950
+ "type": "string",
951
+ "indexed": false,
952
+ "internalType": "string"
953
+ },
954
+ {
955
+ "name": "val",
956
+ "type": "int256",
957
+ "indexed": false,
958
+ "internalType": "int256"
959
+ },
960
+ {
961
+ "name": "decimals",
962
+ "type": "uint256",
963
+ "indexed": false,
964
+ "internalType": "uint256"
965
+ }
966
+ ],
967
+ "anonymous": false
968
+ },
969
+ {
970
+ "type": "event",
971
+ "name": "log_named_decimal_uint",
972
+ "inputs": [
973
+ {
974
+ "name": "key",
975
+ "type": "string",
976
+ "indexed": false,
977
+ "internalType": "string"
978
+ },
979
+ {
980
+ "name": "val",
981
+ "type": "uint256",
982
+ "indexed": false,
983
+ "internalType": "uint256"
984
+ },
985
+ {
986
+ "name": "decimals",
987
+ "type": "uint256",
988
+ "indexed": false,
989
+ "internalType": "uint256"
990
+ }
991
+ ],
992
+ "anonymous": false
993
+ },
994
+ {
995
+ "type": "event",
996
+ "name": "log_named_int",
997
+ "inputs": [
998
+ {
999
+ "name": "key",
1000
+ "type": "string",
1001
+ "indexed": false,
1002
+ "internalType": "string"
1003
+ },
1004
+ {
1005
+ "name": "val",
1006
+ "type": "int256",
1007
+ "indexed": false,
1008
+ "internalType": "int256"
1009
+ }
1010
+ ],
1011
+ "anonymous": false
1012
+ },
1013
+ {
1014
+ "type": "event",
1015
+ "name": "log_named_string",
1016
+ "inputs": [
1017
+ {
1018
+ "name": "key",
1019
+ "type": "string",
1020
+ "indexed": false,
1021
+ "internalType": "string"
1022
+ },
1023
+ {
1024
+ "name": "val",
1025
+ "type": "string",
1026
+ "indexed": false,
1027
+ "internalType": "string"
1028
+ }
1029
+ ],
1030
+ "anonymous": false
1031
+ },
1032
+ {
1033
+ "type": "event",
1034
+ "name": "log_named_uint",
1035
+ "inputs": [
1036
+ {
1037
+ "name": "key",
1038
+ "type": "string",
1039
+ "indexed": false,
1040
+ "internalType": "string"
1041
+ },
1042
+ {
1043
+ "name": "val",
1044
+ "type": "uint256",
1045
+ "indexed": false,
1046
+ "internalType": "uint256"
1047
+ }
1048
+ ],
1049
+ "anonymous": false
1050
+ },
1051
+ {
1052
+ "type": "event",
1053
+ "name": "log_string",
1054
+ "inputs": [
1055
+ {
1056
+ "name": "",
1057
+ "type": "string",
1058
+ "indexed": false,
1059
+ "internalType": "string"
1060
+ }
1061
+ ],
1062
+ "anonymous": false
1063
+ },
1064
+ {
1065
+ "type": "event",
1066
+ "name": "log_uint",
1067
+ "inputs": [
1068
+ {
1069
+ "name": "",
1070
+ "type": "uint256",
1071
+ "indexed": false,
1072
+ "internalType": "uint256"
1073
+ }
1074
+ ],
1075
+ "anonymous": false
1076
+ },
1077
+ {
1078
+ "type": "event",
1079
+ "name": "logs",
1080
+ "inputs": [
1081
+ {
1082
+ "name": "",
1083
+ "type": "bytes",
1084
+ "indexed": false,
1085
+ "internalType": "bytes"
1086
+ }
1087
+ ],
1088
+ "anonymous": false
1089
+ }
1090
+ ]