@orbs-network/spot 1.10.0 → 2.0.0
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.
- package/README.md +20 -13
- package/{script/input/config.json → config.json} +84 -6
- package/index.js +8 -3
- package/out/02_DeployCosigner.s.sol/DeployCosigner.json +1 -1
- package/out/03_DeployReactor.s.sol/DeployReactor.json +1 -1
- package/out/04_DeployExecutor.s.sol/DeployExecutor.json +1 -1
- package/out/BaseTest.sol/BaseTest.abi.json +26 -13
- package/out/BaseTest.sol/BaseTest.json +1 -1
- package/out/CosignatureLib.sol/CosignatureLib.abi.json +10 -0
- package/out/CosignatureLib.sol/CosignatureLib.json +1 -1
- package/out/CosignatureLib.t.sol/CosignatureLibTest.abi.json +125 -16
- package/out/CosignatureLib.t.sol/CosignatureLibTest.json +1 -1
- package/out/Cosigner.sol/Cosigner.abi.json +12 -115
- package/out/Cosigner.sol/Cosigner.json +1 -1
- package/out/Cosigner.t.sol/CosignerTest.abi.json +30 -154
- package/out/Cosigner.t.sol/CosignerTest.json +1 -1
- package/out/Cosigner.t.sol/CosignerWrapper.abi.json +12 -115
- package/out/Cosigner.t.sol/CosignerWrapper.json +1 -1
- package/out/CosignerIntegration.t.sol/CosignerIntegrationTest.abi.json +49 -33
- package/out/CosignerIntegration.t.sol/CosignerIntegrationTest.json +1 -1
- package/out/DefaultDexAdapter.sol/DefaultDexAdapter.abi.json +105 -4
- package/out/DefaultDexAdapter.sol/DefaultDexAdapter.json +1 -1
- package/out/DefaultDexAdapter.t.sol/DefaultDexAdapterTest.abi.json +33 -13
- package/out/DefaultDexAdapter.t.sol/DefaultDexAdapterTest.json +1 -1
- package/out/ExclusivityOverrideLib.t.sol/ExclusivityCaller.json +1 -1
- package/out/ExclusivityOverrideLib.t.sol/ExclusivityLibTest.abi.json +26 -13
- package/out/ExclusivityOverrideLib.t.sol/ExclusivityLibTest.json +1 -1
- package/out/Executor.sol/Executor.abi.json +200 -13
- package/out/Executor.sol/Executor.json +1 -1
- package/out/Executor.t.sol/ExecutorTest.abi.json +26 -13
- package/out/Executor.t.sol/ExecutorTest.json +1 -1
- package/out/IExchangeAdapter.sol/IExchangeAdapter.abi.json +105 -4
- package/out/IExchangeAdapter.sol/IExchangeAdapter.json +1 -1
- package/out/IReactor.sol/IReactor.abi.json +100 -4
- package/out/IReactor.sol/IReactor.json +1 -1
- package/out/IReactorCallback.sol/IReactorCallback.abi.json +100 -4
- package/out/IReactorCallback.sol/IReactorCallback.json +1 -1
- package/out/MockReactor.sol/MockReactor.abi.json +200 -8
- package/out/MockReactor.sol/MockReactor.json +1 -1
- package/out/OrderLib.sol/OrderLib.json +1 -1
- package/out/OrderReactor.E2E.t.sol/OrderReactorE2ETest.abi.json +27 -14
- package/out/OrderReactor.E2E.t.sol/OrderReactorE2ETest.json +1 -1
- package/out/OrderReactor.sol/OrderReactor.abi.json +130 -14
- package/out/OrderReactor.sol/OrderReactor.json +1 -1
- package/out/OrderReactorPause.t.sol/OrderReactorPauseTest.abi.json +26 -13
- package/out/OrderReactorPause.t.sol/OrderReactorPauseTest.json +1 -1
- package/out/OrderReactorPause.t.sol/SimpleCallback.abi.json +100 -4
- package/out/OrderReactorPause.t.sol/SimpleCallback.json +1 -1
- package/out/OrderValidationLib.Fuzz.t.sol/OrderValidationLibFuzzTest.abi.json +136 -22
- package/out/OrderValidationLib.Fuzz.t.sol/OrderValidationLibFuzzTest.json +1 -1
- package/out/OrderValidationLib.sol/OrderValidationLib.abi.json +15 -5
- package/out/OrderValidationLib.sol/OrderValidationLib.json +1 -1
- package/out/OrderValidationLib.t.sol/OrderValidationLibTest.abi.json +160 -30
- package/out/OrderValidationLib.t.sol/OrderValidationLibTest.json +1 -1
- package/out/P2DexAdapter.sol/P2DexAdapter.abi.json +105 -4
- package/out/P2DexAdapter.sol/P2DexAdapter.json +1 -1
- package/out/P2DexAdapter.t.sol/P2DexAdapterTest.abi.json +33 -13
- package/out/P2DexAdapter.t.sol/P2DexAdapterTest.json +1 -1
- package/out/ParaswapDexAdapter.sol/ParaswapDexAdapter.abi.json +105 -4
- package/out/ParaswapDexAdapter.sol/ParaswapDexAdapter.json +1 -1
- package/out/ParaswapDexAdapter.t.sol/ParaswapDexAdapterTest.abi.json +33 -13
- package/out/ParaswapDexAdapter.t.sol/ParaswapDexAdapterTest.json +1 -1
- package/out/RePermit.t.sol/RePermitTest.abi.json +26 -13
- package/out/RePermit.t.sol/RePermitTest.json +1 -1
- package/out/Refinery.t.sol/PayableTarget.json +1 -1
- package/out/Refinery.t.sol/RefineryTest.abi.json +26 -13
- package/out/Refinery.t.sol/RefineryTest.json +1 -1
- package/out/ResolutionLib.Fuzz.t.sol/ResolutionLibFuzzTest.abi.json +122 -18
- package/out/ResolutionLib.Fuzz.t.sol/ResolutionLibFuzzTest.json +1 -1
- package/out/ResolutionLib.sol/ResolutionLib.abi.json +1 -1
- package/out/ResolutionLib.sol/ResolutionLib.json +1 -1
- package/out/ResolutionLib.t.sol/ResolutionLibTest.abi.json +133 -20
- package/out/ResolutionLib.t.sol/ResolutionLibTest.json +1 -1
- package/out/SettlementLib.sol/SettlementLib.json +1 -1
- package/out/SettlementLib.t.sol/SettlementLibTest.abi.json +26 -13
- package/out/SettlementLib.t.sol/SettlementLibTest.json +1 -1
- package/out/SettlementLib.t.sol/SettlementWrapper.abi.json +100 -4
- package/out/SettlementLib.t.sol/SettlementWrapper.json +1 -1
- package/out/SwapAdapter.sol/SwapAdapterMock.abi.json +100 -9
- package/out/SwapAdapter.sol/SwapAdapterMock.json +1 -1
- package/out/WM.t.sol/WMTest.abi.json +26 -13
- package/out/WM.t.sol/WMTest.json +1 -1
- package/package.json +2 -1
- package/script/input/cosignature.skeleton.json +0 -1
- package/script/input/repermit.skeleton.json +12 -2
- package/out/06_DeployDefaultExchange.s.sol/DeployDefaultExchange.abi.json +0 -28
- package/out/06_DeployDefaultExchange.s.sol/DeployDefaultExchange.json +0 -1
- package/out/06_DeployP2Exchange.s.sol/DeployP2Exchange.abi.json +0 -28
- package/out/06_DeployP2Exchange.s.sol/DeployP2Exchange.json +0 -1
- package/out/06_DeployParaswapExchange.s.sol/DeployParaswapExchange.abi.json +0 -28
- package/out/06_DeployParaswapExchange.s.sol/DeployParaswapExchange.json +0 -1
- package/out/07_CheckOrder.s.sol/AlwaysValid1271.abi.json +0 -26
- package/out/07_CheckOrder.s.sol/AlwaysValid1271.json +0 -1
- package/out/07_CheckOrder.s.sol/CheckOrder.abi.json +0 -78
- package/out/07_CheckOrder.s.sol/CheckOrder.json +0 -1
- package/out/build-info/12dff9362aac7f9c.json +0 -1
- package/script/input/order.json +0 -63
|
@@ -60,6 +60,11 @@
|
|
|
60
60
|
"type": "uint256",
|
|
61
61
|
"internalType": "uint256"
|
|
62
62
|
},
|
|
63
|
+
{
|
|
64
|
+
"name": "start",
|
|
65
|
+
"type": "uint256",
|
|
66
|
+
"internalType": "uint256"
|
|
67
|
+
},
|
|
63
68
|
{
|
|
64
69
|
"name": "deadline",
|
|
65
70
|
"type": "uint256",
|
|
@@ -128,7 +133,12 @@
|
|
|
128
133
|
"internalType": "uint256"
|
|
129
134
|
},
|
|
130
135
|
{
|
|
131
|
-
"name": "
|
|
136
|
+
"name": "triggerLower",
|
|
137
|
+
"type": "uint256",
|
|
138
|
+
"internalType": "uint256"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "triggerUpper",
|
|
132
142
|
"type": "uint256",
|
|
133
143
|
"internalType": "uint256"
|
|
134
144
|
},
|
|
@@ -147,7 +157,78 @@
|
|
|
147
157
|
"internalType": "bytes"
|
|
148
158
|
},
|
|
149
159
|
{
|
|
150
|
-
"name": "
|
|
160
|
+
"name": "trigger",
|
|
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": "current",
|
|
151
232
|
"type": "tuple",
|
|
152
233
|
"internalType": "struct Cosignature",
|
|
153
234
|
"components": [
|
|
@@ -218,7 +299,12 @@
|
|
|
218
299
|
]
|
|
219
300
|
},
|
|
220
301
|
{
|
|
221
|
-
"name": "
|
|
302
|
+
"name": "triggerCosignature",
|
|
303
|
+
"type": "bytes",
|
|
304
|
+
"internalType": "bytes"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"name": "currentCosignature",
|
|
222
308
|
"type": "bytes",
|
|
223
309
|
"internalType": "bytes"
|
|
224
310
|
}
|
|
@@ -250,7 +336,12 @@
|
|
|
250
336
|
"internalType": "uint256"
|
|
251
337
|
},
|
|
252
338
|
{
|
|
253
|
-
"name": "
|
|
339
|
+
"name": "triggerLower",
|
|
340
|
+
"type": "uint256",
|
|
341
|
+
"internalType": "uint256"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"name": "triggerUpper",
|
|
254
345
|
"type": "uint256",
|
|
255
346
|
"internalType": "uint256"
|
|
256
347
|
},
|
|
@@ -261,6 +352,11 @@
|
|
|
261
352
|
}
|
|
262
353
|
]
|
|
263
354
|
},
|
|
355
|
+
{
|
|
356
|
+
"name": "target",
|
|
357
|
+
"type": "address",
|
|
358
|
+
"internalType": "address"
|
|
359
|
+
},
|
|
264
360
|
{
|
|
265
361
|
"name": "data",
|
|
266
362
|
"type": "bytes",
|