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