@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,275 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "executeWithCallback",
5
+ "inputs": [
6
+ {
7
+ "name": "co",
8
+ "type": "tuple",
9
+ "internalType": "struct CosignedOrder",
10
+ "components": [
11
+ {
12
+ "name": "order",
13
+ "type": "tuple",
14
+ "internalType": "struct Order",
15
+ "components": [
16
+ {
17
+ "name": "reactor",
18
+ "type": "address",
19
+ "internalType": "address"
20
+ },
21
+ {
22
+ "name": "executor",
23
+ "type": "address",
24
+ "internalType": "address"
25
+ },
26
+ {
27
+ "name": "exchange",
28
+ "type": "tuple",
29
+ "internalType": "struct Exchange",
30
+ "components": [
31
+ {
32
+ "name": "adapter",
33
+ "type": "address",
34
+ "internalType": "address"
35
+ },
36
+ {
37
+ "name": "ref",
38
+ "type": "address",
39
+ "internalType": "address"
40
+ },
41
+ {
42
+ "name": "share",
43
+ "type": "uint32",
44
+ "internalType": "uint32"
45
+ },
46
+ {
47
+ "name": "data",
48
+ "type": "bytes",
49
+ "internalType": "bytes"
50
+ }
51
+ ]
52
+ },
53
+ {
54
+ "name": "swapper",
55
+ "type": "address",
56
+ "internalType": "address"
57
+ },
58
+ {
59
+ "name": "nonce",
60
+ "type": "uint256",
61
+ "internalType": "uint256"
62
+ },
63
+ {
64
+ "name": "deadline",
65
+ "type": "uint256",
66
+ "internalType": "uint256"
67
+ },
68
+ {
69
+ "name": "chainid",
70
+ "type": "uint256",
71
+ "internalType": "uint256"
72
+ },
73
+ {
74
+ "name": "exclusivity",
75
+ "type": "uint32",
76
+ "internalType": "uint32"
77
+ },
78
+ {
79
+ "name": "epoch",
80
+ "type": "uint32",
81
+ "internalType": "uint32"
82
+ },
83
+ {
84
+ "name": "slippage",
85
+ "type": "uint32",
86
+ "internalType": "uint32"
87
+ },
88
+ {
89
+ "name": "freshness",
90
+ "type": "uint32",
91
+ "internalType": "uint32"
92
+ },
93
+ {
94
+ "name": "input",
95
+ "type": "tuple",
96
+ "internalType": "struct Input",
97
+ "components": [
98
+ {
99
+ "name": "token",
100
+ "type": "address",
101
+ "internalType": "address"
102
+ },
103
+ {
104
+ "name": "amount",
105
+ "type": "uint256",
106
+ "internalType": "uint256"
107
+ },
108
+ {
109
+ "name": "maxAmount",
110
+ "type": "uint256",
111
+ "internalType": "uint256"
112
+ }
113
+ ]
114
+ },
115
+ {
116
+ "name": "output",
117
+ "type": "tuple",
118
+ "internalType": "struct Output",
119
+ "components": [
120
+ {
121
+ "name": "token",
122
+ "type": "address",
123
+ "internalType": "address"
124
+ },
125
+ {
126
+ "name": "amount",
127
+ "type": "uint256",
128
+ "internalType": "uint256"
129
+ },
130
+ {
131
+ "name": "maxAmount",
132
+ "type": "uint256",
133
+ "internalType": "uint256"
134
+ },
135
+ {
136
+ "name": "recipient",
137
+ "type": "address",
138
+ "internalType": "address"
139
+ }
140
+ ]
141
+ }
142
+ ]
143
+ },
144
+ {
145
+ "name": "signature",
146
+ "type": "bytes",
147
+ "internalType": "bytes"
148
+ },
149
+ {
150
+ "name": "cosignatureData",
151
+ "type": "tuple",
152
+ "internalType": "struct Cosignature",
153
+ "components": [
154
+ {
155
+ "name": "cosigner",
156
+ "type": "address",
157
+ "internalType": "address"
158
+ },
159
+ {
160
+ "name": "reactor",
161
+ "type": "address",
162
+ "internalType": "address"
163
+ },
164
+ {
165
+ "name": "chainid",
166
+ "type": "uint256",
167
+ "internalType": "uint256"
168
+ },
169
+ {
170
+ "name": "timestamp",
171
+ "type": "uint256",
172
+ "internalType": "uint256"
173
+ },
174
+ {
175
+ "name": "input",
176
+ "type": "tuple",
177
+ "internalType": "struct CosignedValue",
178
+ "components": [
179
+ {
180
+ "name": "token",
181
+ "type": "address",
182
+ "internalType": "address"
183
+ },
184
+ {
185
+ "name": "value",
186
+ "type": "uint256",
187
+ "internalType": "uint256"
188
+ },
189
+ {
190
+ "name": "decimals",
191
+ "type": "uint8",
192
+ "internalType": "uint8"
193
+ }
194
+ ]
195
+ },
196
+ {
197
+ "name": "output",
198
+ "type": "tuple",
199
+ "internalType": "struct CosignedValue",
200
+ "components": [
201
+ {
202
+ "name": "token",
203
+ "type": "address",
204
+ "internalType": "address"
205
+ },
206
+ {
207
+ "name": "value",
208
+ "type": "uint256",
209
+ "internalType": "uint256"
210
+ },
211
+ {
212
+ "name": "decimals",
213
+ "type": "uint8",
214
+ "internalType": "uint8"
215
+ }
216
+ ]
217
+ }
218
+ ]
219
+ },
220
+ {
221
+ "name": "cosignature",
222
+ "type": "bytes",
223
+ "internalType": "bytes"
224
+ }
225
+ ]
226
+ },
227
+ {
228
+ "name": "x",
229
+ "type": "tuple",
230
+ "internalType": "struct Execution",
231
+ "components": [
232
+ {
233
+ "name": "minAmountOut",
234
+ "type": "uint256",
235
+ "internalType": "uint256"
236
+ },
237
+ {
238
+ "name": "fee",
239
+ "type": "tuple",
240
+ "internalType": "struct Output",
241
+ "components": [
242
+ {
243
+ "name": "token",
244
+ "type": "address",
245
+ "internalType": "address"
246
+ },
247
+ {
248
+ "name": "amount",
249
+ "type": "uint256",
250
+ "internalType": "uint256"
251
+ },
252
+ {
253
+ "name": "maxAmount",
254
+ "type": "uint256",
255
+ "internalType": "uint256"
256
+ },
257
+ {
258
+ "name": "recipient",
259
+ "type": "address",
260
+ "internalType": "address"
261
+ }
262
+ ]
263
+ },
264
+ {
265
+ "name": "data",
266
+ "type": "bytes",
267
+ "internalType": "bytes"
268
+ }
269
+ ]
270
+ }
271
+ ],
272
+ "outputs": [],
273
+ "stateMutability": "payable"
274
+ }
275
+ ]
@@ -0,0 +1 @@
1
+ {"abi":[{"type":"function","name":"executeWithCallback","inputs":[{"name":"co","type":"tuple","internalType":"struct CosignedOrder","components":[{"name":"order","type":"tuple","internalType":"struct Order","components":[{"name":"reactor","type":"address","internalType":"address"},{"name":"executor","type":"address","internalType":"address"},{"name":"exchange","type":"tuple","internalType":"struct Exchange","components":[{"name":"adapter","type":"address","internalType":"address"},{"name":"ref","type":"address","internalType":"address"},{"name":"share","type":"uint32","internalType":"uint32"},{"name":"data","type":"bytes","internalType":"bytes"}]},{"name":"swapper","type":"address","internalType":"address"},{"name":"nonce","type":"uint256","internalType":"uint256"},{"name":"deadline","type":"uint256","internalType":"uint256"},{"name":"chainid","type":"uint256","internalType":"uint256"},{"name":"exclusivity","type":"uint32","internalType":"uint32"},{"name":"epoch","type":"uint32","internalType":"uint32"},{"name":"slippage","type":"uint32","internalType":"uint32"},{"name":"freshness","type":"uint32","internalType":"uint32"},{"name":"input","type":"tuple","internalType":"struct Input","components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"},{"name":"maxAmount","type":"uint256","internalType":"uint256"}]},{"name":"output","type":"tuple","internalType":"struct Output","components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"},{"name":"maxAmount","type":"uint256","internalType":"uint256"},{"name":"recipient","type":"address","internalType":"address"}]}]},{"name":"signature","type":"bytes","internalType":"bytes"},{"name":"cosignatureData","type":"tuple","internalType":"struct Cosignature","components":[{"name":"cosigner","type":"address","internalType":"address"},{"name":"reactor","type":"address","internalType":"address"},{"name":"chainid","type":"uint256","internalType":"uint256"},{"name":"timestamp","type":"uint256","internalType":"uint256"},{"name":"input","type":"tuple","internalType":"struct CosignedValue","components":[{"name":"token","type":"address","internalType":"address"},{"name":"value","type":"uint256","internalType":"uint256"},{"name":"decimals","type":"uint8","internalType":"uint8"}]},{"name":"output","type":"tuple","internalType":"struct CosignedValue","components":[{"name":"token","type":"address","internalType":"address"},{"name":"value","type":"uint256","internalType":"uint256"},{"name":"decimals","type":"uint8","internalType":"uint8"}]}]},{"name":"cosignature","type":"bytes","internalType":"bytes"}]},{"name":"x","type":"tuple","internalType":"struct Execution","components":[{"name":"minAmountOut","type":"uint256","internalType":"uint256"},{"name":"fee","type":"tuple","internalType":"struct Output","components":[{"name":"token","type":"address","internalType":"address"},{"name":"amount","type":"uint256","internalType":"uint256"},{"name":"maxAmount","type":"uint256","internalType":"uint256"},{"name":"recipient","type":"address","internalType":"address"}]},{"name":"data","type":"bytes","internalType":"bytes"}]}],"outputs":[],"stateMutability":"payable"}],"bytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"deployedBytecode":{"object":"0x","sourceMap":"","linkReferences":{}},"methodIdentifiers":{"executeWithCallback(((address,address,(address,address,uint32,bytes),address,uint256,uint256,uint256,uint32,uint32,uint32,uint32,(address,uint256,uint256),(address,uint256,uint256,address)),bytes,(address,address,uint256,uint256,(address,uint256,uint8),(address,uint256,uint8)),bytes),(uint256,(address,uint256,uint256,address),bytes))":"2e4d45e1"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"reactor\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"executor\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"adapter\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"ref\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"share\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"internalType\":\"struct Exchange\",\"name\":\"exchange\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"swapper\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"chainid\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"exclusivity\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"epoch\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"slippage\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"freshness\",\"type\":\"uint32\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxAmount\",\"type\":\"uint256\"}],\"internalType\":\"struct Input\",\"name\":\"input\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"internalType\":\"struct Output\",\"name\":\"output\",\"type\":\"tuple\"}],\"internalType\":\"struct Order\",\"name\":\"order\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"cosigner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"reactor\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainid\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"decimals\",\"type\":\"uint8\"}],\"internalType\":\"struct CosignedValue\",\"name\":\"input\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"decimals\",\"type\":\"uint8\"}],\"internalType\":\"struct CosignedValue\",\"name\":\"output\",\"type\":\"tuple\"}],\"internalType\":\"struct Cosignature\",\"name\":\"cosignatureData\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"cosignature\",\"type\":\"bytes\"}],\"internalType\":\"struct CosignedOrder\",\"name\":\"co\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"minAmountOut\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"internalType\":\"struct Output\",\"name\":\"fee\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"internalType\":\"struct Execution\",\"name\":\"x\",\"type\":\"tuple\"}],\"name\":\"executeWithCallback\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"executeWithCallback(((address,address,(address,address,uint32,bytes),address,uint256,uint256,uint256,uint32,uint32,uint32,uint32,(address,uint256,uint256),(address,uint256,uint256,address)),bytes,(address,address,uint256,uint256,(address,uint256,uint8),(address,uint256,uint8)),bytes),(uint256,(address,uint256,uint256,address),bytes))\":{\"notice\":\"Execute a CosignedOrder with callback\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/interface/IReactor.sol\":\"IReactor\"},\"evmVersion\":\"shanghai\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[\":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/\",\":ds-test/=lib/forge-std/lib/ds-test/src/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/\",\":openzeppelin/=lib/openzeppelin-contracts/contracts/\"]},\"sources\":{\"src/Structs.sol\":{\"keccak256\":\"0xb8f5c5a86dd60a9160f14ff7e64868ba50a5d07278d194a107cb298fb665121d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://278d79b5b0b96e17f5ba16adf6139a1c069a186eacd84ae72e8b029f614c3911\",\"dweb:/ipfs/QmVvHhBbrNXYXJcykbxo2vLWakFiSTkGbtsQw8ZeNkxpe9\"]},\"src/interface/IReactor.sol\":{\"keccak256\":\"0x109f0ced1f3445036ebd3d6ac0df7f7897f86648e08889150521f9b7089ec3cf\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://063e741d00fe94f90da6b667cdd4ce688f248c746f7d0fc2c63ca1e67dd49065\",\"dweb:/ipfs/QmT4MET3MGBdvYLokvLvfvm2CmDD5gaSBHkTD9u89CkPL1\"]},\"src/reactor/lib/OrderLib.sol\":{\"keccak256\":\"0x9027482831f27a5babbf36b8262131358494e0ab2820e0aaa1e1c2890296e4d2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0018d195ad1957861ff1cc890ef4c937f65fd6cd21682a55f1fc823d71bce97e\",\"dweb:/ipfs/QmSSH1fL8u8QgT8zc4yvkDJ4YQE9BvKPz7dcQ28psvv9AY\"]},\"src/repermit/RePermitLib.sol\":{\"keccak256\":\"0xae647bd60b6730eb08bbca01c6b6b9a8a610ac8015943879b330fce4c26c7bd3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a9bad3638e093877d949c56c95acedbbdc39e5d098bc4df501c1ec4c88604c1e\",\"dweb:/ipfs/QmWxLsuWM44cxoh4Zq3WAFVDP5iiQok51Fn4aTYo7nQX1s\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.20+commit.a1b79de6"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"struct CosignedOrder","name":"co","type":"tuple","components":[{"internalType":"struct Order","name":"order","type":"tuple","components":[{"internalType":"address","name":"reactor","type":"address"},{"internalType":"address","name":"executor","type":"address"},{"internalType":"struct Exchange","name":"exchange","type":"tuple","components":[{"internalType":"address","name":"adapter","type":"address"},{"internalType":"address","name":"ref","type":"address"},{"internalType":"uint32","name":"share","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}]},{"internalType":"address","name":"swapper","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint256","name":"chainid","type":"uint256"},{"internalType":"uint32","name":"exclusivity","type":"uint32"},{"internalType":"uint32","name":"epoch","type":"uint32"},{"internalType":"uint32","name":"slippage","type":"uint32"},{"internalType":"uint32","name":"freshness","type":"uint32"},{"internalType":"struct Input","name":"input","type":"tuple","components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"maxAmount","type":"uint256"}]},{"internalType":"struct Output","name":"output","type":"tuple","components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"maxAmount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}]}]},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"struct Cosignature","name":"cosignatureData","type":"tuple","components":[{"internalType":"address","name":"cosigner","type":"address"},{"internalType":"address","name":"reactor","type":"address"},{"internalType":"uint256","name":"chainid","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"struct CosignedValue","name":"input","type":"tuple","components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint8","name":"decimals","type":"uint8"}]},{"internalType":"struct CosignedValue","name":"output","type":"tuple","components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint8","name":"decimals","type":"uint8"}]}]},{"internalType":"bytes","name":"cosignature","type":"bytes"}]},{"internalType":"struct Execution","name":"x","type":"tuple","components":[{"internalType":"uint256","name":"minAmountOut","type":"uint256"},{"internalType":"struct Output","name":"fee","type":"tuple","components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"maxAmount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}]},{"internalType":"bytes","name":"data","type":"bytes"}]}],"stateMutability":"payable","type":"function","name":"executeWithCallback"}],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{"executeWithCallback(((address,address,(address,address,uint32,bytes),address,uint256,uint256,uint256,uint32,uint32,uint32,uint32,(address,uint256,uint256),(address,uint256,uint256,address)),bytes,(address,address,uint256,uint256,(address,uint256,uint8),(address,uint256,uint8)),bytes),(uint256,(address,uint256,uint256,address),bytes))":{"notice":"Execute a CosignedOrder with callback"}},"version":1}},"settings":{"remappings":["@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/","ds-test/=lib/forge-std/lib/ds-test/src/","erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/","forge-std/=lib/forge-std/src/","openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/","openzeppelin/=lib/openzeppelin-contracts/contracts/"],"optimizer":{"enabled":true,"runs":1000000},"metadata":{"bytecodeHash":"ipfs"},"compilationTarget":{"src/interface/IReactor.sol":"IReactor"},"evmVersion":"shanghai","libraries":{}},"sources":{"src/Structs.sol":{"keccak256":"0xb8f5c5a86dd60a9160f14ff7e64868ba50a5d07278d194a107cb298fb665121d","urls":["bzz-raw://278d79b5b0b96e17f5ba16adf6139a1c069a186eacd84ae72e8b029f614c3911","dweb:/ipfs/QmVvHhBbrNXYXJcykbxo2vLWakFiSTkGbtsQw8ZeNkxpe9"],"license":"MIT"},"src/interface/IReactor.sol":{"keccak256":"0x109f0ced1f3445036ebd3d6ac0df7f7897f86648e08889150521f9b7089ec3cf","urls":["bzz-raw://063e741d00fe94f90da6b667cdd4ce688f248c746f7d0fc2c63ca1e67dd49065","dweb:/ipfs/QmT4MET3MGBdvYLokvLvfvm2CmDD5gaSBHkTD9u89CkPL1"],"license":"MIT"},"src/reactor/lib/OrderLib.sol":{"keccak256":"0x9027482831f27a5babbf36b8262131358494e0ab2820e0aaa1e1c2890296e4d2","urls":["bzz-raw://0018d195ad1957861ff1cc890ef4c937f65fd6cd21682a55f1fc823d71bce97e","dweb:/ipfs/QmSSH1fL8u8QgT8zc4yvkDJ4YQE9BvKPz7dcQ28psvv9AY"],"license":"MIT"},"src/repermit/RePermitLib.sol":{"keccak256":"0xae647bd60b6730eb08bbca01c6b6b9a8a610ac8015943879b330fce4c26c7bd3","urls":["bzz-raw://a9bad3638e093877d949c56c95acedbbdc39e5d098bc4df501c1ec4c88604c1e","dweb:/ipfs/QmWxLsuWM44cxoh4Zq3WAFVDP5iiQok51Fn4aTYo7nQX1s"],"license":"MIT"}},"version":1},"id":50}
@@ -0,0 +1,285 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "reactorCallback",
5
+ "inputs": [
6
+ {
7
+ "name": "hash",
8
+ "type": "bytes32",
9
+ "internalType": "bytes32"
10
+ },
11
+ {
12
+ "name": "resolvedAmountOut",
13
+ "type": "uint256",
14
+ "internalType": "uint256"
15
+ },
16
+ {
17
+ "name": "co",
18
+ "type": "tuple",
19
+ "internalType": "struct CosignedOrder",
20
+ "components": [
21
+ {
22
+ "name": "order",
23
+ "type": "tuple",
24
+ "internalType": "struct Order",
25
+ "components": [
26
+ {
27
+ "name": "reactor",
28
+ "type": "address",
29
+ "internalType": "address"
30
+ },
31
+ {
32
+ "name": "executor",
33
+ "type": "address",
34
+ "internalType": "address"
35
+ },
36
+ {
37
+ "name": "exchange",
38
+ "type": "tuple",
39
+ "internalType": "struct Exchange",
40
+ "components": [
41
+ {
42
+ "name": "adapter",
43
+ "type": "address",
44
+ "internalType": "address"
45
+ },
46
+ {
47
+ "name": "ref",
48
+ "type": "address",
49
+ "internalType": "address"
50
+ },
51
+ {
52
+ "name": "share",
53
+ "type": "uint32",
54
+ "internalType": "uint32"
55
+ },
56
+ {
57
+ "name": "data",
58
+ "type": "bytes",
59
+ "internalType": "bytes"
60
+ }
61
+ ]
62
+ },
63
+ {
64
+ "name": "swapper",
65
+ "type": "address",
66
+ "internalType": "address"
67
+ },
68
+ {
69
+ "name": "nonce",
70
+ "type": "uint256",
71
+ "internalType": "uint256"
72
+ },
73
+ {
74
+ "name": "deadline",
75
+ "type": "uint256",
76
+ "internalType": "uint256"
77
+ },
78
+ {
79
+ "name": "chainid",
80
+ "type": "uint256",
81
+ "internalType": "uint256"
82
+ },
83
+ {
84
+ "name": "exclusivity",
85
+ "type": "uint32",
86
+ "internalType": "uint32"
87
+ },
88
+ {
89
+ "name": "epoch",
90
+ "type": "uint32",
91
+ "internalType": "uint32"
92
+ },
93
+ {
94
+ "name": "slippage",
95
+ "type": "uint32",
96
+ "internalType": "uint32"
97
+ },
98
+ {
99
+ "name": "freshness",
100
+ "type": "uint32",
101
+ "internalType": "uint32"
102
+ },
103
+ {
104
+ "name": "input",
105
+ "type": "tuple",
106
+ "internalType": "struct Input",
107
+ "components": [
108
+ {
109
+ "name": "token",
110
+ "type": "address",
111
+ "internalType": "address"
112
+ },
113
+ {
114
+ "name": "amount",
115
+ "type": "uint256",
116
+ "internalType": "uint256"
117
+ },
118
+ {
119
+ "name": "maxAmount",
120
+ "type": "uint256",
121
+ "internalType": "uint256"
122
+ }
123
+ ]
124
+ },
125
+ {
126
+ "name": "output",
127
+ "type": "tuple",
128
+ "internalType": "struct Output",
129
+ "components": [
130
+ {
131
+ "name": "token",
132
+ "type": "address",
133
+ "internalType": "address"
134
+ },
135
+ {
136
+ "name": "amount",
137
+ "type": "uint256",
138
+ "internalType": "uint256"
139
+ },
140
+ {
141
+ "name": "maxAmount",
142
+ "type": "uint256",
143
+ "internalType": "uint256"
144
+ },
145
+ {
146
+ "name": "recipient",
147
+ "type": "address",
148
+ "internalType": "address"
149
+ }
150
+ ]
151
+ }
152
+ ]
153
+ },
154
+ {
155
+ "name": "signature",
156
+ "type": "bytes",
157
+ "internalType": "bytes"
158
+ },
159
+ {
160
+ "name": "cosignatureData",
161
+ "type": "tuple",
162
+ "internalType": "struct Cosignature",
163
+ "components": [
164
+ {
165
+ "name": "cosigner",
166
+ "type": "address",
167
+ "internalType": "address"
168
+ },
169
+ {
170
+ "name": "reactor",
171
+ "type": "address",
172
+ "internalType": "address"
173
+ },
174
+ {
175
+ "name": "chainid",
176
+ "type": "uint256",
177
+ "internalType": "uint256"
178
+ },
179
+ {
180
+ "name": "timestamp",
181
+ "type": "uint256",
182
+ "internalType": "uint256"
183
+ },
184
+ {
185
+ "name": "input",
186
+ "type": "tuple",
187
+ "internalType": "struct CosignedValue",
188
+ "components": [
189
+ {
190
+ "name": "token",
191
+ "type": "address",
192
+ "internalType": "address"
193
+ },
194
+ {
195
+ "name": "value",
196
+ "type": "uint256",
197
+ "internalType": "uint256"
198
+ },
199
+ {
200
+ "name": "decimals",
201
+ "type": "uint8",
202
+ "internalType": "uint8"
203
+ }
204
+ ]
205
+ },
206
+ {
207
+ "name": "output",
208
+ "type": "tuple",
209
+ "internalType": "struct CosignedValue",
210
+ "components": [
211
+ {
212
+ "name": "token",
213
+ "type": "address",
214
+ "internalType": "address"
215
+ },
216
+ {
217
+ "name": "value",
218
+ "type": "uint256",
219
+ "internalType": "uint256"
220
+ },
221
+ {
222
+ "name": "decimals",
223
+ "type": "uint8",
224
+ "internalType": "uint8"
225
+ }
226
+ ]
227
+ }
228
+ ]
229
+ },
230
+ {
231
+ "name": "cosignature",
232
+ "type": "bytes",
233
+ "internalType": "bytes"
234
+ }
235
+ ]
236
+ },
237
+ {
238
+ "name": "x",
239
+ "type": "tuple",
240
+ "internalType": "struct Execution",
241
+ "components": [
242
+ {
243
+ "name": "minAmountOut",
244
+ "type": "uint256",
245
+ "internalType": "uint256"
246
+ },
247
+ {
248
+ "name": "fee",
249
+ "type": "tuple",
250
+ "internalType": "struct Output",
251
+ "components": [
252
+ {
253
+ "name": "token",
254
+ "type": "address",
255
+ "internalType": "address"
256
+ },
257
+ {
258
+ "name": "amount",
259
+ "type": "uint256",
260
+ "internalType": "uint256"
261
+ },
262
+ {
263
+ "name": "maxAmount",
264
+ "type": "uint256",
265
+ "internalType": "uint256"
266
+ },
267
+ {
268
+ "name": "recipient",
269
+ "type": "address",
270
+ "internalType": "address"
271
+ }
272
+ ]
273
+ },
274
+ {
275
+ "name": "data",
276
+ "type": "bytes",
277
+ "internalType": "bytes"
278
+ }
279
+ ]
280
+ }
281
+ ],
282
+ "outputs": [],
283
+ "stateMutability": "nonpayable"
284
+ }
285
+ ]