@orbs-network/spot 1.9.4 → 1.10.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 +13 -20
- package/index.js +3 -8
- 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/06_DeployDefaultExchange.s.sol/DeployDefaultExchange.abi.json +28 -0
- package/out/06_DeployDefaultExchange.s.sol/DeployDefaultExchange.json +1 -0
- package/out/06_DeployP2Exchange.s.sol/DeployP2Exchange.abi.json +28 -0
- package/out/06_DeployP2Exchange.s.sol/DeployP2Exchange.json +1 -0
- package/out/06_DeployParaswapExchange.s.sol/DeployParaswapExchange.abi.json +28 -0
- package/out/06_DeployParaswapExchange.s.sol/DeployParaswapExchange.json +1 -0
- package/out/07_CheckOrder.s.sol/AlwaysValid1271.abi.json +26 -0
- package/out/07_CheckOrder.s.sol/AlwaysValid1271.json +1 -0
- package/out/07_CheckOrder.s.sol/CheckOrder.abi.json +78 -0
- package/out/07_CheckOrder.s.sol/CheckOrder.json +1 -0
- package/out/BaseTest.sol/BaseTest.abi.json +13 -26
- package/out/BaseTest.sol/BaseTest.json +1 -1
- package/out/CosignatureLib.sol/CosignatureLib.abi.json +0 -10
- package/out/CosignatureLib.sol/CosignatureLib.json +1 -1
- package/out/CosignatureLib.t.sol/CosignatureLibTest.abi.json +16 -125
- package/out/CosignatureLib.t.sol/CosignatureLibTest.json +1 -1
- package/out/Cosigner.sol/Cosigner.abi.json +115 -12
- package/out/Cosigner.sol/Cosigner.json +1 -1
- package/out/Cosigner.t.sol/CosignerTest.abi.json +154 -30
- package/out/Cosigner.t.sol/CosignerTest.json +1 -1
- package/out/Cosigner.t.sol/CosignerWrapper.abi.json +115 -12
- package/out/Cosigner.t.sol/CosignerWrapper.json +1 -1
- package/out/CosignerIntegration.t.sol/CosignerIntegrationTest.abi.json +33 -49
- package/out/CosignerIntegration.t.sol/CosignerIntegrationTest.json +1 -1
- package/out/DefaultDexAdapter.sol/DefaultDexAdapter.abi.json +4 -105
- package/out/DefaultDexAdapter.sol/DefaultDexAdapter.json +1 -1
- package/out/DefaultDexAdapter.t.sol/DefaultDexAdapterTest.abi.json +13 -33
- 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 +13 -26
- package/out/ExclusivityOverrideLib.t.sol/ExclusivityLibTest.json +1 -1
- package/out/Executor.sol/Executor.abi.json +13 -200
- package/out/Executor.sol/Executor.json +1 -1
- package/out/Executor.t.sol/ExecutorTest.abi.json +13 -26
- package/out/Executor.t.sol/ExecutorTest.json +1 -1
- package/out/IExchangeAdapter.sol/IExchangeAdapter.abi.json +4 -105
- package/out/IExchangeAdapter.sol/IExchangeAdapter.json +1 -1
- package/out/IReactor.sol/IReactor.abi.json +4 -100
- package/out/IReactor.sol/IReactor.json +1 -1
- package/out/IReactorCallback.sol/IReactorCallback.abi.json +4 -100
- package/out/IReactorCallback.sol/IReactorCallback.json +1 -1
- package/out/MockReactor.sol/MockReactor.abi.json +8 -200
- 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 +14 -27
- package/out/OrderReactor.E2E.t.sol/OrderReactorE2ETest.json +1 -1
- package/out/OrderReactor.sol/OrderReactor.abi.json +14 -130
- package/out/OrderReactor.sol/OrderReactor.json +1 -1
- package/out/OrderReactorPause.t.sol/OrderReactorPauseTest.abi.json +13 -26
- package/out/OrderReactorPause.t.sol/OrderReactorPauseTest.json +1 -1
- package/out/OrderReactorPause.t.sol/SimpleCallback.abi.json +4 -100
- package/out/OrderReactorPause.t.sol/SimpleCallback.json +1 -1
- package/out/OrderValidationLib.Fuzz.t.sol/OrderValidationLibFuzzTest.abi.json +22 -136
- package/out/OrderValidationLib.Fuzz.t.sol/OrderValidationLibFuzzTest.json +1 -1
- package/out/OrderValidationLib.sol/OrderValidationLib.abi.json +5 -15
- package/out/OrderValidationLib.sol/OrderValidationLib.json +1 -1
- package/out/OrderValidationLib.t.sol/OrderValidationLibTest.abi.json +30 -160
- package/out/OrderValidationLib.t.sol/OrderValidationLibTest.json +1 -1
- package/out/P2DexAdapter.sol/P2DexAdapter.abi.json +4 -105
- package/out/P2DexAdapter.sol/P2DexAdapter.json +1 -1
- package/out/P2DexAdapter.t.sol/P2DexAdapterTest.abi.json +13 -33
- package/out/P2DexAdapter.t.sol/P2DexAdapterTest.json +1 -1
- package/out/ParaswapDexAdapter.sol/ParaswapDexAdapter.abi.json +4 -105
- package/out/ParaswapDexAdapter.sol/ParaswapDexAdapter.json +1 -1
- package/out/ParaswapDexAdapter.t.sol/ParaswapDexAdapterTest.abi.json +13 -33
- package/out/ParaswapDexAdapter.t.sol/ParaswapDexAdapterTest.json +1 -1
- package/out/RePermit.t.sol/RePermitTest.abi.json +13 -26
- 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 +13 -26
- package/out/Refinery.t.sol/RefineryTest.json +1 -1
- package/out/ResolutionLib.Fuzz.t.sol/ResolutionLibFuzzTest.abi.json +18 -122
- 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 +20 -133
- 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 +13 -26
- package/out/SettlementLib.t.sol/SettlementLibTest.json +1 -1
- package/out/SettlementLib.t.sol/SettlementWrapper.abi.json +4 -100
- package/out/SettlementLib.t.sol/SettlementWrapper.json +1 -1
- package/out/SwapAdapter.sol/SwapAdapterMock.abi.json +9 -100
- package/out/SwapAdapter.sol/SwapAdapterMock.json +1 -1
- package/out/WM.t.sol/WMTest.abi.json +13 -26
- package/out/WM.t.sol/WMTest.json +1 -1
- package/out/build-info/12dff9362aac7f9c.json +1 -0
- package/package.json +1 -2
- package/{config.json → script/input/config.json} +6 -18
- package/script/input/cosignature.skeleton.json +1 -0
- package/script/input/order.json +63 -0
- package/script/input/repermit.skeleton.json +2 -12
|
@@ -117,11 +117,6 @@
|
|
|
117
117
|
"type": "uint256",
|
|
118
118
|
"internalType": "uint256"
|
|
119
119
|
},
|
|
120
|
-
{
|
|
121
|
-
"name": "start",
|
|
122
|
-
"type": "uint256",
|
|
123
|
-
"internalType": "uint256"
|
|
124
|
-
},
|
|
125
120
|
{
|
|
126
121
|
"name": "deadline",
|
|
127
122
|
"type": "uint256",
|
|
@@ -190,12 +185,7 @@
|
|
|
190
185
|
"internalType": "uint256"
|
|
191
186
|
},
|
|
192
187
|
{
|
|
193
|
-
"name": "
|
|
194
|
-
"type": "uint256",
|
|
195
|
-
"internalType": "uint256"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
"name": "triggerUpper",
|
|
188
|
+
"name": "stop",
|
|
199
189
|
"type": "uint256",
|
|
200
190
|
"internalType": "uint256"
|
|
201
191
|
},
|
|
@@ -214,78 +204,7 @@
|
|
|
214
204
|
"internalType": "bytes"
|
|
215
205
|
},
|
|
216
206
|
{
|
|
217
|
-
"name": "
|
|
218
|
-
"type": "tuple",
|
|
219
|
-
"internalType": "struct Cosignature",
|
|
220
|
-
"components": [
|
|
221
|
-
{
|
|
222
|
-
"name": "cosigner",
|
|
223
|
-
"type": "address",
|
|
224
|
-
"internalType": "address"
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
"name": "reactor",
|
|
228
|
-
"type": "address",
|
|
229
|
-
"internalType": "address"
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
"name": "chainid",
|
|
233
|
-
"type": "uint256",
|
|
234
|
-
"internalType": "uint256"
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
"name": "timestamp",
|
|
238
|
-
"type": "uint256",
|
|
239
|
-
"internalType": "uint256"
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
"name": "input",
|
|
243
|
-
"type": "tuple",
|
|
244
|
-
"internalType": "struct CosignedValue",
|
|
245
|
-
"components": [
|
|
246
|
-
{
|
|
247
|
-
"name": "token",
|
|
248
|
-
"type": "address",
|
|
249
|
-
"internalType": "address"
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
"name": "value",
|
|
253
|
-
"type": "uint256",
|
|
254
|
-
"internalType": "uint256"
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
"name": "decimals",
|
|
258
|
-
"type": "uint8",
|
|
259
|
-
"internalType": "uint8"
|
|
260
|
-
}
|
|
261
|
-
]
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
"name": "output",
|
|
265
|
-
"type": "tuple",
|
|
266
|
-
"internalType": "struct CosignedValue",
|
|
267
|
-
"components": [
|
|
268
|
-
{
|
|
269
|
-
"name": "token",
|
|
270
|
-
"type": "address",
|
|
271
|
-
"internalType": "address"
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
"name": "value",
|
|
275
|
-
"type": "uint256",
|
|
276
|
-
"internalType": "uint256"
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
"name": "decimals",
|
|
280
|
-
"type": "uint8",
|
|
281
|
-
"internalType": "uint8"
|
|
282
|
-
}
|
|
283
|
-
]
|
|
284
|
-
}
|
|
285
|
-
]
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
"name": "current",
|
|
207
|
+
"name": "cosignatureData",
|
|
289
208
|
"type": "tuple",
|
|
290
209
|
"internalType": "struct Cosignature",
|
|
291
210
|
"components": [
|
|
@@ -356,12 +275,7 @@
|
|
|
356
275
|
]
|
|
357
276
|
},
|
|
358
277
|
{
|
|
359
|
-
"name": "
|
|
360
|
-
"type": "bytes",
|
|
361
|
-
"internalType": "bytes"
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
"name": "currentCosignature",
|
|
278
|
+
"name": "cosignature",
|
|
365
279
|
"type": "bytes",
|
|
366
280
|
"internalType": "bytes"
|
|
367
281
|
}
|
|
@@ -393,12 +307,7 @@
|
|
|
393
307
|
"internalType": "uint256"
|
|
394
308
|
},
|
|
395
309
|
{
|
|
396
|
-
"name": "
|
|
397
|
-
"type": "uint256",
|
|
398
|
-
"internalType": "uint256"
|
|
399
|
-
},
|
|
400
|
-
{
|
|
401
|
-
"name": "triggerUpper",
|
|
310
|
+
"name": "stop",
|
|
402
311
|
"type": "uint256",
|
|
403
312
|
"internalType": "uint256"
|
|
404
313
|
},
|
|
@@ -409,11 +318,6 @@
|
|
|
409
318
|
}
|
|
410
319
|
]
|
|
411
320
|
},
|
|
412
|
-
{
|
|
413
|
-
"name": "target",
|
|
414
|
-
"type": "address",
|
|
415
|
-
"internalType": "address"
|
|
416
|
-
},
|
|
417
321
|
{
|
|
418
322
|
"name": "data",
|
|
419
323
|
"type": "bytes",
|
|
@@ -535,6 +439,11 @@
|
|
|
535
439
|
],
|
|
536
440
|
"anonymous": false
|
|
537
441
|
},
|
|
442
|
+
{
|
|
443
|
+
"type": "error",
|
|
444
|
+
"name": "CosignedExceedsStop",
|
|
445
|
+
"inputs": []
|
|
446
|
+
},
|
|
538
447
|
{
|
|
539
448
|
"type": "error",
|
|
540
449
|
"name": "EnforcedPause",
|
|
@@ -666,6 +575,11 @@
|
|
|
666
575
|
"name": "InvalidOrderInputTokenZero",
|
|
667
576
|
"inputs": []
|
|
668
577
|
},
|
|
578
|
+
{
|
|
579
|
+
"type": "error",
|
|
580
|
+
"name": "InvalidOrderOutputLimitGtStop",
|
|
581
|
+
"inputs": []
|
|
582
|
+
},
|
|
669
583
|
{
|
|
670
584
|
"type": "error",
|
|
671
585
|
"name": "InvalidOrderOutputRecipientZero",
|
|
@@ -691,26 +605,11 @@
|
|
|
691
605
|
"name": "InvalidOrderSlippageTooHigh",
|
|
692
606
|
"inputs": []
|
|
693
607
|
},
|
|
694
|
-
{
|
|
695
|
-
"type": "error",
|
|
696
|
-
"name": "InvalidOrderStartInFuture",
|
|
697
|
-
"inputs": []
|
|
698
|
-
},
|
|
699
|
-
{
|
|
700
|
-
"type": "error",
|
|
701
|
-
"name": "InvalidOrderStartZero",
|
|
702
|
-
"inputs": []
|
|
703
|
-
},
|
|
704
608
|
{
|
|
705
609
|
"type": "error",
|
|
706
610
|
"name": "InvalidOrderSwapperZero",
|
|
707
611
|
"inputs": []
|
|
708
612
|
},
|
|
709
|
-
{
|
|
710
|
-
"type": "error",
|
|
711
|
-
"name": "InvalidOrderTriggerRange",
|
|
712
|
-
"inputs": []
|
|
713
|
-
},
|
|
714
613
|
{
|
|
715
614
|
"type": "error",
|
|
716
615
|
"name": "InvalidSender",
|
|
@@ -721,11 +620,6 @@
|
|
|
721
620
|
"name": "NotAllowed",
|
|
722
621
|
"inputs": []
|
|
723
622
|
},
|
|
724
|
-
{
|
|
725
|
-
"type": "error",
|
|
726
|
-
"name": "NotTriggered",
|
|
727
|
-
"inputs": []
|
|
728
|
-
},
|
|
729
623
|
{
|
|
730
624
|
"type": "error",
|
|
731
625
|
"name": "ReentrancyGuardReentrantCall",
|
|
@@ -746,15 +640,5 @@
|
|
|
746
640
|
"type": "error",
|
|
747
641
|
"name": "StaleCosignature",
|
|
748
642
|
"inputs": []
|
|
749
|
-
},
|
|
750
|
-
{
|
|
751
|
-
"type": "error",
|
|
752
|
-
"name": "TriggerAfterCurrent",
|
|
753
|
-
"inputs": []
|
|
754
|
-
},
|
|
755
|
-
{
|
|
756
|
-
"type": "error",
|
|
757
|
-
"name": "TriggerBeforeStart",
|
|
758
|
-
"inputs": []
|
|
759
643
|
}
|
|
760
644
|
]
|