@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
|
@@ -117,6 +117,11 @@
|
|
|
117
117
|
"type": "uint256",
|
|
118
118
|
"internalType": "uint256"
|
|
119
119
|
},
|
|
120
|
+
{
|
|
121
|
+
"name": "start",
|
|
122
|
+
"type": "uint256",
|
|
123
|
+
"internalType": "uint256"
|
|
124
|
+
},
|
|
120
125
|
{
|
|
121
126
|
"name": "deadline",
|
|
122
127
|
"type": "uint256",
|
|
@@ -185,7 +190,12 @@
|
|
|
185
190
|
"internalType": "uint256"
|
|
186
191
|
},
|
|
187
192
|
{
|
|
188
|
-
"name": "
|
|
193
|
+
"name": "triggerLower",
|
|
194
|
+
"type": "uint256",
|
|
195
|
+
"internalType": "uint256"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"name": "triggerUpper",
|
|
189
199
|
"type": "uint256",
|
|
190
200
|
"internalType": "uint256"
|
|
191
201
|
},
|
|
@@ -204,7 +214,78 @@
|
|
|
204
214
|
"internalType": "bytes"
|
|
205
215
|
},
|
|
206
216
|
{
|
|
207
|
-
"name": "
|
|
217
|
+
"name": "trigger",
|
|
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",
|
|
208
289
|
"type": "tuple",
|
|
209
290
|
"internalType": "struct Cosignature",
|
|
210
291
|
"components": [
|
|
@@ -275,7 +356,12 @@
|
|
|
275
356
|
]
|
|
276
357
|
},
|
|
277
358
|
{
|
|
278
|
-
"name": "
|
|
359
|
+
"name": "triggerCosignature",
|
|
360
|
+
"type": "bytes",
|
|
361
|
+
"internalType": "bytes"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"name": "currentCosignature",
|
|
279
365
|
"type": "bytes",
|
|
280
366
|
"internalType": "bytes"
|
|
281
367
|
}
|
|
@@ -307,7 +393,12 @@
|
|
|
307
393
|
"internalType": "uint256"
|
|
308
394
|
},
|
|
309
395
|
{
|
|
310
|
-
"name": "
|
|
396
|
+
"name": "triggerLower",
|
|
397
|
+
"type": "uint256",
|
|
398
|
+
"internalType": "uint256"
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"name": "triggerUpper",
|
|
311
402
|
"type": "uint256",
|
|
312
403
|
"internalType": "uint256"
|
|
313
404
|
},
|
|
@@ -318,6 +409,11 @@
|
|
|
318
409
|
}
|
|
319
410
|
]
|
|
320
411
|
},
|
|
412
|
+
{
|
|
413
|
+
"name": "target",
|
|
414
|
+
"type": "address",
|
|
415
|
+
"internalType": "address"
|
|
416
|
+
},
|
|
321
417
|
{
|
|
322
418
|
"name": "data",
|
|
323
419
|
"type": "bytes",
|
|
@@ -439,11 +535,6 @@
|
|
|
439
535
|
],
|
|
440
536
|
"anonymous": false
|
|
441
537
|
},
|
|
442
|
-
{
|
|
443
|
-
"type": "error",
|
|
444
|
-
"name": "CosignedExceedsStop",
|
|
445
|
-
"inputs": []
|
|
446
|
-
},
|
|
447
538
|
{
|
|
448
539
|
"type": "error",
|
|
449
540
|
"name": "EnforcedPause",
|
|
@@ -575,11 +666,6 @@
|
|
|
575
666
|
"name": "InvalidOrderInputTokenZero",
|
|
576
667
|
"inputs": []
|
|
577
668
|
},
|
|
578
|
-
{
|
|
579
|
-
"type": "error",
|
|
580
|
-
"name": "InvalidOrderOutputLimitGtStop",
|
|
581
|
-
"inputs": []
|
|
582
|
-
},
|
|
583
669
|
{
|
|
584
670
|
"type": "error",
|
|
585
671
|
"name": "InvalidOrderOutputRecipientZero",
|
|
@@ -605,11 +691,26 @@
|
|
|
605
691
|
"name": "InvalidOrderSlippageTooHigh",
|
|
606
692
|
"inputs": []
|
|
607
693
|
},
|
|
694
|
+
{
|
|
695
|
+
"type": "error",
|
|
696
|
+
"name": "InvalidOrderStartInFuture",
|
|
697
|
+
"inputs": []
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
"type": "error",
|
|
701
|
+
"name": "InvalidOrderStartZero",
|
|
702
|
+
"inputs": []
|
|
703
|
+
},
|
|
608
704
|
{
|
|
609
705
|
"type": "error",
|
|
610
706
|
"name": "InvalidOrderSwapperZero",
|
|
611
707
|
"inputs": []
|
|
612
708
|
},
|
|
709
|
+
{
|
|
710
|
+
"type": "error",
|
|
711
|
+
"name": "InvalidOrderTriggerRange",
|
|
712
|
+
"inputs": []
|
|
713
|
+
},
|
|
613
714
|
{
|
|
614
715
|
"type": "error",
|
|
615
716
|
"name": "InvalidSender",
|
|
@@ -620,6 +721,11 @@
|
|
|
620
721
|
"name": "NotAllowed",
|
|
621
722
|
"inputs": []
|
|
622
723
|
},
|
|
724
|
+
{
|
|
725
|
+
"type": "error",
|
|
726
|
+
"name": "NotTriggered",
|
|
727
|
+
"inputs": []
|
|
728
|
+
},
|
|
623
729
|
{
|
|
624
730
|
"type": "error",
|
|
625
731
|
"name": "ReentrancyGuardReentrantCall",
|
|
@@ -640,5 +746,15 @@
|
|
|
640
746
|
"type": "error",
|
|
641
747
|
"name": "StaleCosignature",
|
|
642
748
|
"inputs": []
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
"type": "error",
|
|
752
|
+
"name": "TriggerAfterCurrent",
|
|
753
|
+
"inputs": []
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
"type": "error",
|
|
757
|
+
"name": "TriggerBeforeStart",
|
|
758
|
+
"inputs": []
|
|
643
759
|
}
|
|
644
760
|
]
|