@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,572 @@
1
+ [
2
+ {
3
+ "type": "receive",
4
+ "stateMutability": "payable"
5
+ },
6
+ {
7
+ "type": "function",
8
+ "name": "executeWithCallback",
9
+ "inputs": [
10
+ {
11
+ "name": "cosignedOrder",
12
+ "type": "tuple",
13
+ "internalType": "struct CosignedOrder",
14
+ "components": [
15
+ {
16
+ "name": "order",
17
+ "type": "tuple",
18
+ "internalType": "struct Order",
19
+ "components": [
20
+ {
21
+ "name": "reactor",
22
+ "type": "address",
23
+ "internalType": "address"
24
+ },
25
+ {
26
+ "name": "executor",
27
+ "type": "address",
28
+ "internalType": "address"
29
+ },
30
+ {
31
+ "name": "exchange",
32
+ "type": "tuple",
33
+ "internalType": "struct Exchange",
34
+ "components": [
35
+ {
36
+ "name": "adapter",
37
+ "type": "address",
38
+ "internalType": "address"
39
+ },
40
+ {
41
+ "name": "ref",
42
+ "type": "address",
43
+ "internalType": "address"
44
+ },
45
+ {
46
+ "name": "share",
47
+ "type": "uint32",
48
+ "internalType": "uint32"
49
+ },
50
+ {
51
+ "name": "data",
52
+ "type": "bytes",
53
+ "internalType": "bytes"
54
+ }
55
+ ]
56
+ },
57
+ {
58
+ "name": "swapper",
59
+ "type": "address",
60
+ "internalType": "address"
61
+ },
62
+ {
63
+ "name": "nonce",
64
+ "type": "uint256",
65
+ "internalType": "uint256"
66
+ },
67
+ {
68
+ "name": "deadline",
69
+ "type": "uint256",
70
+ "internalType": "uint256"
71
+ },
72
+ {
73
+ "name": "chainid",
74
+ "type": "uint256",
75
+ "internalType": "uint256"
76
+ },
77
+ {
78
+ "name": "exclusivity",
79
+ "type": "uint32",
80
+ "internalType": "uint32"
81
+ },
82
+ {
83
+ "name": "epoch",
84
+ "type": "uint32",
85
+ "internalType": "uint32"
86
+ },
87
+ {
88
+ "name": "slippage",
89
+ "type": "uint32",
90
+ "internalType": "uint32"
91
+ },
92
+ {
93
+ "name": "freshness",
94
+ "type": "uint32",
95
+ "internalType": "uint32"
96
+ },
97
+ {
98
+ "name": "input",
99
+ "type": "tuple",
100
+ "internalType": "struct Input",
101
+ "components": [
102
+ {
103
+ "name": "token",
104
+ "type": "address",
105
+ "internalType": "address"
106
+ },
107
+ {
108
+ "name": "amount",
109
+ "type": "uint256",
110
+ "internalType": "uint256"
111
+ },
112
+ {
113
+ "name": "maxAmount",
114
+ "type": "uint256",
115
+ "internalType": "uint256"
116
+ }
117
+ ]
118
+ },
119
+ {
120
+ "name": "output",
121
+ "type": "tuple",
122
+ "internalType": "struct Output",
123
+ "components": [
124
+ {
125
+ "name": "token",
126
+ "type": "address",
127
+ "internalType": "address"
128
+ },
129
+ {
130
+ "name": "amount",
131
+ "type": "uint256",
132
+ "internalType": "uint256"
133
+ },
134
+ {
135
+ "name": "maxAmount",
136
+ "type": "uint256",
137
+ "internalType": "uint256"
138
+ },
139
+ {
140
+ "name": "recipient",
141
+ "type": "address",
142
+ "internalType": "address"
143
+ }
144
+ ]
145
+ }
146
+ ]
147
+ },
148
+ {
149
+ "name": "signature",
150
+ "type": "bytes",
151
+ "internalType": "bytes"
152
+ },
153
+ {
154
+ "name": "cosignatureData",
155
+ "type": "tuple",
156
+ "internalType": "struct Cosignature",
157
+ "components": [
158
+ {
159
+ "name": "cosigner",
160
+ "type": "address",
161
+ "internalType": "address"
162
+ },
163
+ {
164
+ "name": "reactor",
165
+ "type": "address",
166
+ "internalType": "address"
167
+ },
168
+ {
169
+ "name": "chainid",
170
+ "type": "uint256",
171
+ "internalType": "uint256"
172
+ },
173
+ {
174
+ "name": "timestamp",
175
+ "type": "uint256",
176
+ "internalType": "uint256"
177
+ },
178
+ {
179
+ "name": "input",
180
+ "type": "tuple",
181
+ "internalType": "struct CosignedValue",
182
+ "components": [
183
+ {
184
+ "name": "token",
185
+ "type": "address",
186
+ "internalType": "address"
187
+ },
188
+ {
189
+ "name": "value",
190
+ "type": "uint256",
191
+ "internalType": "uint256"
192
+ },
193
+ {
194
+ "name": "decimals",
195
+ "type": "uint8",
196
+ "internalType": "uint8"
197
+ }
198
+ ]
199
+ },
200
+ {
201
+ "name": "output",
202
+ "type": "tuple",
203
+ "internalType": "struct CosignedValue",
204
+ "components": [
205
+ {
206
+ "name": "token",
207
+ "type": "address",
208
+ "internalType": "address"
209
+ },
210
+ {
211
+ "name": "value",
212
+ "type": "uint256",
213
+ "internalType": "uint256"
214
+ },
215
+ {
216
+ "name": "decimals",
217
+ "type": "uint8",
218
+ "internalType": "uint8"
219
+ }
220
+ ]
221
+ }
222
+ ]
223
+ },
224
+ {
225
+ "name": "cosignature",
226
+ "type": "bytes",
227
+ "internalType": "bytes"
228
+ }
229
+ ]
230
+ },
231
+ {
232
+ "name": "execution",
233
+ "type": "tuple",
234
+ "internalType": "struct Execution",
235
+ "components": [
236
+ {
237
+ "name": "minAmountOut",
238
+ "type": "uint256",
239
+ "internalType": "uint256"
240
+ },
241
+ {
242
+ "name": "fee",
243
+ "type": "tuple",
244
+ "internalType": "struct Output",
245
+ "components": [
246
+ {
247
+ "name": "token",
248
+ "type": "address",
249
+ "internalType": "address"
250
+ },
251
+ {
252
+ "name": "amount",
253
+ "type": "uint256",
254
+ "internalType": "uint256"
255
+ },
256
+ {
257
+ "name": "maxAmount",
258
+ "type": "uint256",
259
+ "internalType": "uint256"
260
+ },
261
+ {
262
+ "name": "recipient",
263
+ "type": "address",
264
+ "internalType": "address"
265
+ }
266
+ ]
267
+ },
268
+ {
269
+ "name": "data",
270
+ "type": "bytes",
271
+ "internalType": "bytes"
272
+ }
273
+ ]
274
+ }
275
+ ],
276
+ "outputs": [],
277
+ "stateMutability": "payable"
278
+ },
279
+ {
280
+ "type": "function",
281
+ "name": "lastExchange",
282
+ "inputs": [],
283
+ "outputs": [
284
+ {
285
+ "name": "",
286
+ "type": "address",
287
+ "internalType": "address"
288
+ }
289
+ ],
290
+ "stateMutability": "view"
291
+ },
292
+ {
293
+ "type": "function",
294
+ "name": "lastExecution",
295
+ "inputs": [],
296
+ "outputs": [
297
+ {
298
+ "name": "minAmountOut",
299
+ "type": "uint256",
300
+ "internalType": "uint256"
301
+ },
302
+ {
303
+ "name": "fee",
304
+ "type": "tuple",
305
+ "internalType": "struct Output",
306
+ "components": [
307
+ {
308
+ "name": "token",
309
+ "type": "address",
310
+ "internalType": "address"
311
+ },
312
+ {
313
+ "name": "amount",
314
+ "type": "uint256",
315
+ "internalType": "uint256"
316
+ },
317
+ {
318
+ "name": "maxAmount",
319
+ "type": "uint256",
320
+ "internalType": "uint256"
321
+ },
322
+ {
323
+ "name": "recipient",
324
+ "type": "address",
325
+ "internalType": "address"
326
+ }
327
+ ]
328
+ },
329
+ {
330
+ "name": "data",
331
+ "type": "bytes",
332
+ "internalType": "bytes"
333
+ }
334
+ ],
335
+ "stateMutability": "view"
336
+ },
337
+ {
338
+ "type": "function",
339
+ "name": "lastOrder",
340
+ "inputs": [],
341
+ "outputs": [
342
+ {
343
+ "name": "order",
344
+ "type": "tuple",
345
+ "internalType": "struct Order",
346
+ "components": [
347
+ {
348
+ "name": "reactor",
349
+ "type": "address",
350
+ "internalType": "address"
351
+ },
352
+ {
353
+ "name": "executor",
354
+ "type": "address",
355
+ "internalType": "address"
356
+ },
357
+ {
358
+ "name": "exchange",
359
+ "type": "tuple",
360
+ "internalType": "struct Exchange",
361
+ "components": [
362
+ {
363
+ "name": "adapter",
364
+ "type": "address",
365
+ "internalType": "address"
366
+ },
367
+ {
368
+ "name": "ref",
369
+ "type": "address",
370
+ "internalType": "address"
371
+ },
372
+ {
373
+ "name": "share",
374
+ "type": "uint32",
375
+ "internalType": "uint32"
376
+ },
377
+ {
378
+ "name": "data",
379
+ "type": "bytes",
380
+ "internalType": "bytes"
381
+ }
382
+ ]
383
+ },
384
+ {
385
+ "name": "swapper",
386
+ "type": "address",
387
+ "internalType": "address"
388
+ },
389
+ {
390
+ "name": "nonce",
391
+ "type": "uint256",
392
+ "internalType": "uint256"
393
+ },
394
+ {
395
+ "name": "deadline",
396
+ "type": "uint256",
397
+ "internalType": "uint256"
398
+ },
399
+ {
400
+ "name": "chainid",
401
+ "type": "uint256",
402
+ "internalType": "uint256"
403
+ },
404
+ {
405
+ "name": "exclusivity",
406
+ "type": "uint32",
407
+ "internalType": "uint32"
408
+ },
409
+ {
410
+ "name": "epoch",
411
+ "type": "uint32",
412
+ "internalType": "uint32"
413
+ },
414
+ {
415
+ "name": "slippage",
416
+ "type": "uint32",
417
+ "internalType": "uint32"
418
+ },
419
+ {
420
+ "name": "freshness",
421
+ "type": "uint32",
422
+ "internalType": "uint32"
423
+ },
424
+ {
425
+ "name": "input",
426
+ "type": "tuple",
427
+ "internalType": "struct Input",
428
+ "components": [
429
+ {
430
+ "name": "token",
431
+ "type": "address",
432
+ "internalType": "address"
433
+ },
434
+ {
435
+ "name": "amount",
436
+ "type": "uint256",
437
+ "internalType": "uint256"
438
+ },
439
+ {
440
+ "name": "maxAmount",
441
+ "type": "uint256",
442
+ "internalType": "uint256"
443
+ }
444
+ ]
445
+ },
446
+ {
447
+ "name": "output",
448
+ "type": "tuple",
449
+ "internalType": "struct Output",
450
+ "components": [
451
+ {
452
+ "name": "token",
453
+ "type": "address",
454
+ "internalType": "address"
455
+ },
456
+ {
457
+ "name": "amount",
458
+ "type": "uint256",
459
+ "internalType": "uint256"
460
+ },
461
+ {
462
+ "name": "maxAmount",
463
+ "type": "uint256",
464
+ "internalType": "uint256"
465
+ },
466
+ {
467
+ "name": "recipient",
468
+ "type": "address",
469
+ "internalType": "address"
470
+ }
471
+ ]
472
+ }
473
+ ]
474
+ },
475
+ {
476
+ "name": "signature",
477
+ "type": "bytes",
478
+ "internalType": "bytes"
479
+ },
480
+ {
481
+ "name": "cosignatureData",
482
+ "type": "tuple",
483
+ "internalType": "struct Cosignature",
484
+ "components": [
485
+ {
486
+ "name": "cosigner",
487
+ "type": "address",
488
+ "internalType": "address"
489
+ },
490
+ {
491
+ "name": "reactor",
492
+ "type": "address",
493
+ "internalType": "address"
494
+ },
495
+ {
496
+ "name": "chainid",
497
+ "type": "uint256",
498
+ "internalType": "uint256"
499
+ },
500
+ {
501
+ "name": "timestamp",
502
+ "type": "uint256",
503
+ "internalType": "uint256"
504
+ },
505
+ {
506
+ "name": "input",
507
+ "type": "tuple",
508
+ "internalType": "struct CosignedValue",
509
+ "components": [
510
+ {
511
+ "name": "token",
512
+ "type": "address",
513
+ "internalType": "address"
514
+ },
515
+ {
516
+ "name": "value",
517
+ "type": "uint256",
518
+ "internalType": "uint256"
519
+ },
520
+ {
521
+ "name": "decimals",
522
+ "type": "uint8",
523
+ "internalType": "uint8"
524
+ }
525
+ ]
526
+ },
527
+ {
528
+ "name": "output",
529
+ "type": "tuple",
530
+ "internalType": "struct CosignedValue",
531
+ "components": [
532
+ {
533
+ "name": "token",
534
+ "type": "address",
535
+ "internalType": "address"
536
+ },
537
+ {
538
+ "name": "value",
539
+ "type": "uint256",
540
+ "internalType": "uint256"
541
+ },
542
+ {
543
+ "name": "decimals",
544
+ "type": "uint8",
545
+ "internalType": "uint8"
546
+ }
547
+ ]
548
+ }
549
+ ]
550
+ },
551
+ {
552
+ "name": "cosignature",
553
+ "type": "bytes",
554
+ "internalType": "bytes"
555
+ }
556
+ ],
557
+ "stateMutability": "view"
558
+ },
559
+ {
560
+ "type": "function",
561
+ "name": "lastSender",
562
+ "inputs": [],
563
+ "outputs": [
564
+ {
565
+ "name": "",
566
+ "type": "address",
567
+ "internalType": "address"
568
+ }
569
+ ],
570
+ "stateMutability": "view"
571
+ }
572
+ ]