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