@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,706 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [
5
+ {
6
+ "name": "_reactor",
7
+ "type": "address",
8
+ "internalType": "address"
9
+ },
10
+ {
11
+ "name": "_allowed",
12
+ "type": "address",
13
+ "internalType": "address"
14
+ }
15
+ ],
16
+ "stateMutability": "nonpayable"
17
+ },
18
+ {
19
+ "type": "receive",
20
+ "stateMutability": "payable"
21
+ },
22
+ {
23
+ "type": "function",
24
+ "name": "allowed",
25
+ "inputs": [],
26
+ "outputs": [
27
+ {
28
+ "name": "",
29
+ "type": "address",
30
+ "internalType": "address"
31
+ }
32
+ ],
33
+ "stateMutability": "view"
34
+ },
35
+ {
36
+ "type": "function",
37
+ "name": "execute",
38
+ "inputs": [
39
+ {
40
+ "name": "co",
41
+ "type": "tuple",
42
+ "internalType": "struct CosignedOrder",
43
+ "components": [
44
+ {
45
+ "name": "order",
46
+ "type": "tuple",
47
+ "internalType": "struct Order",
48
+ "components": [
49
+ {
50
+ "name": "reactor",
51
+ "type": "address",
52
+ "internalType": "address"
53
+ },
54
+ {
55
+ "name": "executor",
56
+ "type": "address",
57
+ "internalType": "address"
58
+ },
59
+ {
60
+ "name": "exchange",
61
+ "type": "tuple",
62
+ "internalType": "struct Exchange",
63
+ "components": [
64
+ {
65
+ "name": "adapter",
66
+ "type": "address",
67
+ "internalType": "address"
68
+ },
69
+ {
70
+ "name": "ref",
71
+ "type": "address",
72
+ "internalType": "address"
73
+ },
74
+ {
75
+ "name": "share",
76
+ "type": "uint32",
77
+ "internalType": "uint32"
78
+ },
79
+ {
80
+ "name": "data",
81
+ "type": "bytes",
82
+ "internalType": "bytes"
83
+ }
84
+ ]
85
+ },
86
+ {
87
+ "name": "swapper",
88
+ "type": "address",
89
+ "internalType": "address"
90
+ },
91
+ {
92
+ "name": "nonce",
93
+ "type": "uint256",
94
+ "internalType": "uint256"
95
+ },
96
+ {
97
+ "name": "deadline",
98
+ "type": "uint256",
99
+ "internalType": "uint256"
100
+ },
101
+ {
102
+ "name": "chainid",
103
+ "type": "uint256",
104
+ "internalType": "uint256"
105
+ },
106
+ {
107
+ "name": "exclusivity",
108
+ "type": "uint32",
109
+ "internalType": "uint32"
110
+ },
111
+ {
112
+ "name": "epoch",
113
+ "type": "uint32",
114
+ "internalType": "uint32"
115
+ },
116
+ {
117
+ "name": "slippage",
118
+ "type": "uint32",
119
+ "internalType": "uint32"
120
+ },
121
+ {
122
+ "name": "freshness",
123
+ "type": "uint32",
124
+ "internalType": "uint32"
125
+ },
126
+ {
127
+ "name": "input",
128
+ "type": "tuple",
129
+ "internalType": "struct Input",
130
+ "components": [
131
+ {
132
+ "name": "token",
133
+ "type": "address",
134
+ "internalType": "address"
135
+ },
136
+ {
137
+ "name": "amount",
138
+ "type": "uint256",
139
+ "internalType": "uint256"
140
+ },
141
+ {
142
+ "name": "maxAmount",
143
+ "type": "uint256",
144
+ "internalType": "uint256"
145
+ }
146
+ ]
147
+ },
148
+ {
149
+ "name": "output",
150
+ "type": "tuple",
151
+ "internalType": "struct Output",
152
+ "components": [
153
+ {
154
+ "name": "token",
155
+ "type": "address",
156
+ "internalType": "address"
157
+ },
158
+ {
159
+ "name": "amount",
160
+ "type": "uint256",
161
+ "internalType": "uint256"
162
+ },
163
+ {
164
+ "name": "maxAmount",
165
+ "type": "uint256",
166
+ "internalType": "uint256"
167
+ },
168
+ {
169
+ "name": "recipient",
170
+ "type": "address",
171
+ "internalType": "address"
172
+ }
173
+ ]
174
+ }
175
+ ]
176
+ },
177
+ {
178
+ "name": "signature",
179
+ "type": "bytes",
180
+ "internalType": "bytes"
181
+ },
182
+ {
183
+ "name": "cosignatureData",
184
+ "type": "tuple",
185
+ "internalType": "struct Cosignature",
186
+ "components": [
187
+ {
188
+ "name": "cosigner",
189
+ "type": "address",
190
+ "internalType": "address"
191
+ },
192
+ {
193
+ "name": "reactor",
194
+ "type": "address",
195
+ "internalType": "address"
196
+ },
197
+ {
198
+ "name": "chainid",
199
+ "type": "uint256",
200
+ "internalType": "uint256"
201
+ },
202
+ {
203
+ "name": "timestamp",
204
+ "type": "uint256",
205
+ "internalType": "uint256"
206
+ },
207
+ {
208
+ "name": "input",
209
+ "type": "tuple",
210
+ "internalType": "struct CosignedValue",
211
+ "components": [
212
+ {
213
+ "name": "token",
214
+ "type": "address",
215
+ "internalType": "address"
216
+ },
217
+ {
218
+ "name": "value",
219
+ "type": "uint256",
220
+ "internalType": "uint256"
221
+ },
222
+ {
223
+ "name": "decimals",
224
+ "type": "uint8",
225
+ "internalType": "uint8"
226
+ }
227
+ ]
228
+ },
229
+ {
230
+ "name": "output",
231
+ "type": "tuple",
232
+ "internalType": "struct CosignedValue",
233
+ "components": [
234
+ {
235
+ "name": "token",
236
+ "type": "address",
237
+ "internalType": "address"
238
+ },
239
+ {
240
+ "name": "value",
241
+ "type": "uint256",
242
+ "internalType": "uint256"
243
+ },
244
+ {
245
+ "name": "decimals",
246
+ "type": "uint8",
247
+ "internalType": "uint8"
248
+ }
249
+ ]
250
+ }
251
+ ]
252
+ },
253
+ {
254
+ "name": "cosignature",
255
+ "type": "bytes",
256
+ "internalType": "bytes"
257
+ }
258
+ ]
259
+ },
260
+ {
261
+ "name": "x",
262
+ "type": "tuple",
263
+ "internalType": "struct Execution",
264
+ "components": [
265
+ {
266
+ "name": "minAmountOut",
267
+ "type": "uint256",
268
+ "internalType": "uint256"
269
+ },
270
+ {
271
+ "name": "fee",
272
+ "type": "tuple",
273
+ "internalType": "struct Output",
274
+ "components": [
275
+ {
276
+ "name": "token",
277
+ "type": "address",
278
+ "internalType": "address"
279
+ },
280
+ {
281
+ "name": "amount",
282
+ "type": "uint256",
283
+ "internalType": "uint256"
284
+ },
285
+ {
286
+ "name": "maxAmount",
287
+ "type": "uint256",
288
+ "internalType": "uint256"
289
+ },
290
+ {
291
+ "name": "recipient",
292
+ "type": "address",
293
+ "internalType": "address"
294
+ }
295
+ ]
296
+ },
297
+ {
298
+ "name": "data",
299
+ "type": "bytes",
300
+ "internalType": "bytes"
301
+ }
302
+ ]
303
+ }
304
+ ],
305
+ "outputs": [],
306
+ "stateMutability": "nonpayable"
307
+ },
308
+ {
309
+ "type": "function",
310
+ "name": "reactor",
311
+ "inputs": [],
312
+ "outputs": [
313
+ {
314
+ "name": "",
315
+ "type": "address",
316
+ "internalType": "address"
317
+ }
318
+ ],
319
+ "stateMutability": "view"
320
+ },
321
+ {
322
+ "type": "function",
323
+ "name": "reactorCallback",
324
+ "inputs": [
325
+ {
326
+ "name": "hash",
327
+ "type": "bytes32",
328
+ "internalType": "bytes32"
329
+ },
330
+ {
331
+ "name": "resolvedAmountOut",
332
+ "type": "uint256",
333
+ "internalType": "uint256"
334
+ },
335
+ {
336
+ "name": "co",
337
+ "type": "tuple",
338
+ "internalType": "struct CosignedOrder",
339
+ "components": [
340
+ {
341
+ "name": "order",
342
+ "type": "tuple",
343
+ "internalType": "struct Order",
344
+ "components": [
345
+ {
346
+ "name": "reactor",
347
+ "type": "address",
348
+ "internalType": "address"
349
+ },
350
+ {
351
+ "name": "executor",
352
+ "type": "address",
353
+ "internalType": "address"
354
+ },
355
+ {
356
+ "name": "exchange",
357
+ "type": "tuple",
358
+ "internalType": "struct Exchange",
359
+ "components": [
360
+ {
361
+ "name": "adapter",
362
+ "type": "address",
363
+ "internalType": "address"
364
+ },
365
+ {
366
+ "name": "ref",
367
+ "type": "address",
368
+ "internalType": "address"
369
+ },
370
+ {
371
+ "name": "share",
372
+ "type": "uint32",
373
+ "internalType": "uint32"
374
+ },
375
+ {
376
+ "name": "data",
377
+ "type": "bytes",
378
+ "internalType": "bytes"
379
+ }
380
+ ]
381
+ },
382
+ {
383
+ "name": "swapper",
384
+ "type": "address",
385
+ "internalType": "address"
386
+ },
387
+ {
388
+ "name": "nonce",
389
+ "type": "uint256",
390
+ "internalType": "uint256"
391
+ },
392
+ {
393
+ "name": "deadline",
394
+ "type": "uint256",
395
+ "internalType": "uint256"
396
+ },
397
+ {
398
+ "name": "chainid",
399
+ "type": "uint256",
400
+ "internalType": "uint256"
401
+ },
402
+ {
403
+ "name": "exclusivity",
404
+ "type": "uint32",
405
+ "internalType": "uint32"
406
+ },
407
+ {
408
+ "name": "epoch",
409
+ "type": "uint32",
410
+ "internalType": "uint32"
411
+ },
412
+ {
413
+ "name": "slippage",
414
+ "type": "uint32",
415
+ "internalType": "uint32"
416
+ },
417
+ {
418
+ "name": "freshness",
419
+ "type": "uint32",
420
+ "internalType": "uint32"
421
+ },
422
+ {
423
+ "name": "input",
424
+ "type": "tuple",
425
+ "internalType": "struct Input",
426
+ "components": [
427
+ {
428
+ "name": "token",
429
+ "type": "address",
430
+ "internalType": "address"
431
+ },
432
+ {
433
+ "name": "amount",
434
+ "type": "uint256",
435
+ "internalType": "uint256"
436
+ },
437
+ {
438
+ "name": "maxAmount",
439
+ "type": "uint256",
440
+ "internalType": "uint256"
441
+ }
442
+ ]
443
+ },
444
+ {
445
+ "name": "output",
446
+ "type": "tuple",
447
+ "internalType": "struct Output",
448
+ "components": [
449
+ {
450
+ "name": "token",
451
+ "type": "address",
452
+ "internalType": "address"
453
+ },
454
+ {
455
+ "name": "amount",
456
+ "type": "uint256",
457
+ "internalType": "uint256"
458
+ },
459
+ {
460
+ "name": "maxAmount",
461
+ "type": "uint256",
462
+ "internalType": "uint256"
463
+ },
464
+ {
465
+ "name": "recipient",
466
+ "type": "address",
467
+ "internalType": "address"
468
+ }
469
+ ]
470
+ }
471
+ ]
472
+ },
473
+ {
474
+ "name": "signature",
475
+ "type": "bytes",
476
+ "internalType": "bytes"
477
+ },
478
+ {
479
+ "name": "cosignatureData",
480
+ "type": "tuple",
481
+ "internalType": "struct Cosignature",
482
+ "components": [
483
+ {
484
+ "name": "cosigner",
485
+ "type": "address",
486
+ "internalType": "address"
487
+ },
488
+ {
489
+ "name": "reactor",
490
+ "type": "address",
491
+ "internalType": "address"
492
+ },
493
+ {
494
+ "name": "chainid",
495
+ "type": "uint256",
496
+ "internalType": "uint256"
497
+ },
498
+ {
499
+ "name": "timestamp",
500
+ "type": "uint256",
501
+ "internalType": "uint256"
502
+ },
503
+ {
504
+ "name": "input",
505
+ "type": "tuple",
506
+ "internalType": "struct CosignedValue",
507
+ "components": [
508
+ {
509
+ "name": "token",
510
+ "type": "address",
511
+ "internalType": "address"
512
+ },
513
+ {
514
+ "name": "value",
515
+ "type": "uint256",
516
+ "internalType": "uint256"
517
+ },
518
+ {
519
+ "name": "decimals",
520
+ "type": "uint8",
521
+ "internalType": "uint8"
522
+ }
523
+ ]
524
+ },
525
+ {
526
+ "name": "output",
527
+ "type": "tuple",
528
+ "internalType": "struct CosignedValue",
529
+ "components": [
530
+ {
531
+ "name": "token",
532
+ "type": "address",
533
+ "internalType": "address"
534
+ },
535
+ {
536
+ "name": "value",
537
+ "type": "uint256",
538
+ "internalType": "uint256"
539
+ },
540
+ {
541
+ "name": "decimals",
542
+ "type": "uint8",
543
+ "internalType": "uint8"
544
+ }
545
+ ]
546
+ }
547
+ ]
548
+ },
549
+ {
550
+ "name": "cosignature",
551
+ "type": "bytes",
552
+ "internalType": "bytes"
553
+ }
554
+ ]
555
+ },
556
+ {
557
+ "name": "x",
558
+ "type": "tuple",
559
+ "internalType": "struct Execution",
560
+ "components": [
561
+ {
562
+ "name": "minAmountOut",
563
+ "type": "uint256",
564
+ "internalType": "uint256"
565
+ },
566
+ {
567
+ "name": "fee",
568
+ "type": "tuple",
569
+ "internalType": "struct Output",
570
+ "components": [
571
+ {
572
+ "name": "token",
573
+ "type": "address",
574
+ "internalType": "address"
575
+ },
576
+ {
577
+ "name": "amount",
578
+ "type": "uint256",
579
+ "internalType": "uint256"
580
+ },
581
+ {
582
+ "name": "maxAmount",
583
+ "type": "uint256",
584
+ "internalType": "uint256"
585
+ },
586
+ {
587
+ "name": "recipient",
588
+ "type": "address",
589
+ "internalType": "address"
590
+ }
591
+ ]
592
+ },
593
+ {
594
+ "name": "data",
595
+ "type": "bytes",
596
+ "internalType": "bytes"
597
+ }
598
+ ]
599
+ }
600
+ ],
601
+ "outputs": [],
602
+ "stateMutability": "nonpayable"
603
+ },
604
+ {
605
+ "type": "event",
606
+ "name": "Settled",
607
+ "inputs": [
608
+ {
609
+ "name": "orderHash",
610
+ "type": "bytes32",
611
+ "indexed": true,
612
+ "internalType": "bytes32"
613
+ },
614
+ {
615
+ "name": "swapper",
616
+ "type": "address",
617
+ "indexed": true,
618
+ "internalType": "address"
619
+ },
620
+ {
621
+ "name": "exchange",
622
+ "type": "address",
623
+ "indexed": true,
624
+ "internalType": "address"
625
+ },
626
+ {
627
+ "name": "inToken",
628
+ "type": "address",
629
+ "indexed": false,
630
+ "internalType": "address"
631
+ },
632
+ {
633
+ "name": "outToken",
634
+ "type": "address",
635
+ "indexed": false,
636
+ "internalType": "address"
637
+ },
638
+ {
639
+ "name": "inAmount",
640
+ "type": "uint256",
641
+ "indexed": false,
642
+ "internalType": "uint256"
643
+ },
644
+ {
645
+ "name": "outAmount",
646
+ "type": "uint256",
647
+ "indexed": false,
648
+ "internalType": "uint256"
649
+ },
650
+ {
651
+ "name": "minOut",
652
+ "type": "uint256",
653
+ "indexed": false,
654
+ "internalType": "uint256"
655
+ }
656
+ ],
657
+ "anonymous": false
658
+ },
659
+ {
660
+ "type": "event",
661
+ "name": "Surplus",
662
+ "inputs": [
663
+ {
664
+ "name": "ref",
665
+ "type": "address",
666
+ "indexed": true,
667
+ "internalType": "address"
668
+ },
669
+ {
670
+ "name": "swapper",
671
+ "type": "address",
672
+ "indexed": false,
673
+ "internalType": "address"
674
+ },
675
+ {
676
+ "name": "token",
677
+ "type": "address",
678
+ "indexed": false,
679
+ "internalType": "address"
680
+ },
681
+ {
682
+ "name": "amount",
683
+ "type": "uint256",
684
+ "indexed": false,
685
+ "internalType": "uint256"
686
+ },
687
+ {
688
+ "name": "refshare",
689
+ "type": "uint256",
690
+ "indexed": false,
691
+ "internalType": "uint256"
692
+ }
693
+ ],
694
+ "anonymous": false
695
+ },
696
+ {
697
+ "type": "error",
698
+ "name": "InvalidOrder",
699
+ "inputs": []
700
+ },
701
+ {
702
+ "type": "error",
703
+ "name": "InvalidSender",
704
+ "inputs": []
705
+ }
706
+ ]