@orbs-network/spot 1.10.0 → 2.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 (103) hide show
  1. package/README.md +20 -13
  2. package/{script/input/config.json → config.json} +54 -6
  3. package/index.js +8 -3
  4. package/out/02_DeployCosigner.s.sol/DeployCosigner.json +1 -1
  5. package/out/03_DeployReactor.s.sol/DeployReactor.json +1 -1
  6. package/out/04_DeployExecutor.s.sol/DeployExecutor.json +1 -1
  7. package/out/06_DeployDefaultAdapter.s.sol/DeployDefaultAdapter.json +1 -1
  8. package/out/06_DeployDelegatingAdapter.s.sol/DeployDelegatingAdapter.json +1 -1
  9. package/out/06_DeployP2Adapter.s.sol/DeployP2Adapter.json +1 -1
  10. package/out/06_DeployParaswapAdapter.s.sol/DeployParaswapAdapter.json +1 -1
  11. package/out/06_DeployUniversalAdapter.s.sol/DeployUniversalAdapter.json +1 -1
  12. package/out/BaseTest.sol/BaseTest.abi.json +26 -13
  13. package/out/BaseTest.sol/BaseTest.json +1 -1
  14. package/out/CosignatureLib.sol/CosignatureLib.abi.json +10 -0
  15. package/out/CosignatureLib.sol/CosignatureLib.json +1 -1
  16. package/out/CosignatureLib.t.sol/CosignatureLibTest.abi.json +125 -16
  17. package/out/CosignatureLib.t.sol/CosignatureLibTest.json +1 -1
  18. package/out/Cosigner.sol/Cosigner.abi.json +12 -115
  19. package/out/Cosigner.sol/Cosigner.json +1 -1
  20. package/out/Cosigner.t.sol/CosignerTest.abi.json +30 -154
  21. package/out/Cosigner.t.sol/CosignerTest.json +1 -1
  22. package/out/Cosigner.t.sol/CosignerWrapper.abi.json +12 -115
  23. package/out/Cosigner.t.sol/CosignerWrapper.json +1 -1
  24. package/out/CosignerIntegration.t.sol/CosignerIntegrationTest.abi.json +49 -33
  25. package/out/CosignerIntegration.t.sol/CosignerIntegrationTest.json +1 -1
  26. package/out/DefaultDexAdapter.sol/DefaultDexAdapter.abi.json +105 -4
  27. package/out/DefaultDexAdapter.sol/DefaultDexAdapter.json +1 -1
  28. package/out/DefaultDexAdapter.t.sol/DefaultDexAdapterTest.abi.json +33 -13
  29. package/out/DefaultDexAdapter.t.sol/DefaultDexAdapterTest.json +1 -1
  30. package/out/DelegatingAdapter.sol/DelegatingAdapter.json +1 -1
  31. package/out/DelegatingAdapter.t.sol/DelegatingAdapterTest.json +1 -1
  32. package/out/DelegatingAdapter.t.sol/MockDelegateTarget.json +1 -1
  33. package/out/ExclusivityOverrideLib.t.sol/ExclusivityCaller.json +1 -1
  34. package/out/ExclusivityOverrideLib.t.sol/ExclusivityLibTest.abi.json +26 -13
  35. package/out/ExclusivityOverrideLib.t.sol/ExclusivityLibTest.json +1 -1
  36. package/out/Executor.sol/Executor.abi.json +200 -13
  37. package/out/Executor.sol/Executor.json +1 -1
  38. package/out/Executor.t.sol/ExecutorTest.abi.json +26 -13
  39. package/out/Executor.t.sol/ExecutorTest.json +1 -1
  40. package/out/ICommitteeSync.sol/ICommitteeSync.json +1 -1
  41. package/out/IExchangeAdapter.sol/IExchangeAdapter.abi.json +105 -4
  42. package/out/IExchangeAdapter.sol/IExchangeAdapter.json +1 -1
  43. package/out/IReactor.sol/IReactor.abi.json +100 -4
  44. package/out/IReactor.sol/IReactor.json +1 -1
  45. package/out/IReactorCallback.sol/IReactorCallback.abi.json +100 -4
  46. package/out/IReactorCallback.sol/IReactorCallback.json +1 -1
  47. package/out/IWrappedNative.sol/IWrappedNative.json +1 -1
  48. package/out/MockCommitteeSync.sol/MockCommitteeSync.json +1 -1
  49. package/out/MockReactor.sol/MockReactor.abi.json +200 -8
  50. package/out/MockReactor.sol/MockReactor.json +1 -1
  51. package/out/OrderLib.sol/OrderLib.json +1 -1
  52. package/out/OrderReactor.E2E.t.sol/OrderReactorE2ETest.abi.json +27 -14
  53. package/out/OrderReactor.E2E.t.sol/OrderReactorE2ETest.json +1 -1
  54. package/out/OrderReactor.sol/OrderReactor.abi.json +130 -14
  55. package/out/OrderReactor.sol/OrderReactor.json +1 -1
  56. package/out/OrderReactorPause.t.sol/OrderReactorPauseTest.abi.json +26 -13
  57. package/out/OrderReactorPause.t.sol/OrderReactorPauseTest.json +1 -1
  58. package/out/OrderReactorPause.t.sol/SimpleCallback.abi.json +100 -4
  59. package/out/OrderReactorPause.t.sol/SimpleCallback.json +1 -1
  60. package/out/OrderValidationLib.Fuzz.t.sol/OrderValidationLibFuzzTest.abi.json +136 -22
  61. package/out/OrderValidationLib.Fuzz.t.sol/OrderValidationLibFuzzTest.json +1 -1
  62. package/out/OrderValidationLib.sol/OrderValidationLib.abi.json +15 -5
  63. package/out/OrderValidationLib.sol/OrderValidationLib.json +1 -1
  64. package/out/OrderValidationLib.t.sol/OrderValidationLibTest.abi.json +160 -30
  65. package/out/OrderValidationLib.t.sol/OrderValidationLibTest.json +1 -1
  66. package/out/P2DexAdapter.sol/P2DexAdapter.abi.json +105 -4
  67. package/out/P2DexAdapter.sol/P2DexAdapter.json +1 -1
  68. package/out/P2DexAdapter.t.sol/P2DexAdapterTest.abi.json +33 -13
  69. package/out/P2DexAdapter.t.sol/P2DexAdapterTest.json +1 -1
  70. package/out/ParaswapDexAdapter.sol/ParaswapDexAdapter.abi.json +105 -4
  71. package/out/ParaswapDexAdapter.sol/ParaswapDexAdapter.json +1 -1
  72. package/out/ParaswapDexAdapter.t.sol/ParaswapDexAdapterTest.abi.json +33 -13
  73. package/out/ParaswapDexAdapter.t.sol/ParaswapDexAdapterTest.json +1 -1
  74. package/out/RePermit.t.sol/RePermitTest.abi.json +26 -13
  75. package/out/RePermit.t.sol/RePermitTest.json +1 -1
  76. package/out/Refinery.t.sol/PayableTarget.json +1 -1
  77. package/out/Refinery.t.sol/RefineryTest.abi.json +26 -13
  78. package/out/Refinery.t.sol/RefineryTest.json +1 -1
  79. package/out/ResolutionLib.Fuzz.t.sol/ResolutionLibFuzzTest.abi.json +122 -18
  80. package/out/ResolutionLib.Fuzz.t.sol/ResolutionLibFuzzTest.json +1 -1
  81. package/out/ResolutionLib.sol/ResolutionLib.abi.json +1 -1
  82. package/out/ResolutionLib.sol/ResolutionLib.json +1 -1
  83. package/out/ResolutionLib.t.sol/ResolutionLibTest.abi.json +133 -20
  84. package/out/ResolutionLib.t.sol/ResolutionLibTest.json +1 -1
  85. package/out/SettlementLib.sol/SettlementLib.json +1 -1
  86. package/out/SettlementLib.t.sol/SettlementLibTest.abi.json +26 -13
  87. package/out/SettlementLib.t.sol/SettlementLibTest.json +1 -1
  88. package/out/SettlementLib.t.sol/SettlementWrapper.abi.json +100 -4
  89. package/out/SettlementLib.t.sol/SettlementWrapper.json +1 -1
  90. package/out/Settler.sol/Settler.json +1 -1
  91. package/out/Settler.t.sol/SettlerTest.json +1 -1
  92. package/out/SwapAdapter.sol/SwapAdapterMock.abi.json +100 -9
  93. package/out/SwapAdapter.sol/SwapAdapterMock.json +1 -1
  94. package/out/UniversalAdapter.sol/UniversalAdapter.json +1 -1
  95. package/out/UniversalAdapter.t.sol/UniversalAdapterTest.json +1 -1
  96. package/out/WM.t.sol/WMTest.abi.json +26 -13
  97. package/out/WM.t.sol/WMTest.json +1 -1
  98. package/out/WrappedNativeMock.sol/WrappedNativeMock.json +1 -1
  99. package/out/build-info/{12dff9362aac7f9c.json → 4e40b5549a3a794d.json} +1 -1
  100. package/package.json +2 -1
  101. package/script/input/cosignature.skeleton.json +0 -1
  102. package/script/input/repermit.skeleton.json +12 -2
  103. package/script/input/order.json +0 -63
@@ -64,6 +64,11 @@
64
64
  "type": "uint256",
65
65
  "internalType": "uint256"
66
66
  },
67
+ {
68
+ "name": "start",
69
+ "type": "uint256",
70
+ "internalType": "uint256"
71
+ },
67
72
  {
68
73
  "name": "deadline",
69
74
  "type": "uint256",
@@ -132,7 +137,12 @@
132
137
  "internalType": "uint256"
133
138
  },
134
139
  {
135
- "name": "stop",
140
+ "name": "triggerLower",
141
+ "type": "uint256",
142
+ "internalType": "uint256"
143
+ },
144
+ {
145
+ "name": "triggerUpper",
136
146
  "type": "uint256",
137
147
  "internalType": "uint256"
138
148
  },
@@ -151,7 +161,78 @@
151
161
  "internalType": "bytes"
152
162
  },
153
163
  {
154
- "name": "cosignatureData",
164
+ "name": "trigger",
165
+ "type": "tuple",
166
+ "internalType": "struct Cosignature",
167
+ "components": [
168
+ {
169
+ "name": "cosigner",
170
+ "type": "address",
171
+ "internalType": "address"
172
+ },
173
+ {
174
+ "name": "reactor",
175
+ "type": "address",
176
+ "internalType": "address"
177
+ },
178
+ {
179
+ "name": "chainid",
180
+ "type": "uint256",
181
+ "internalType": "uint256"
182
+ },
183
+ {
184
+ "name": "timestamp",
185
+ "type": "uint256",
186
+ "internalType": "uint256"
187
+ },
188
+ {
189
+ "name": "input",
190
+ "type": "tuple",
191
+ "internalType": "struct CosignedValue",
192
+ "components": [
193
+ {
194
+ "name": "token",
195
+ "type": "address",
196
+ "internalType": "address"
197
+ },
198
+ {
199
+ "name": "value",
200
+ "type": "uint256",
201
+ "internalType": "uint256"
202
+ },
203
+ {
204
+ "name": "decimals",
205
+ "type": "uint8",
206
+ "internalType": "uint8"
207
+ }
208
+ ]
209
+ },
210
+ {
211
+ "name": "output",
212
+ "type": "tuple",
213
+ "internalType": "struct CosignedValue",
214
+ "components": [
215
+ {
216
+ "name": "token",
217
+ "type": "address",
218
+ "internalType": "address"
219
+ },
220
+ {
221
+ "name": "value",
222
+ "type": "uint256",
223
+ "internalType": "uint256"
224
+ },
225
+ {
226
+ "name": "decimals",
227
+ "type": "uint8",
228
+ "internalType": "uint8"
229
+ }
230
+ ]
231
+ }
232
+ ]
233
+ },
234
+ {
235
+ "name": "current",
155
236
  "type": "tuple",
156
237
  "internalType": "struct Cosignature",
157
238
  "components": [
@@ -222,7 +303,12 @@
222
303
  ]
223
304
  },
224
305
  {
225
- "name": "cosignature",
306
+ "name": "triggerCosignature",
307
+ "type": "bytes",
308
+ "internalType": "bytes"
309
+ },
310
+ {
311
+ "name": "currentCosignature",
226
312
  "type": "bytes",
227
313
  "internalType": "bytes"
228
314
  }
@@ -254,7 +340,12 @@
254
340
  "internalType": "uint256"
255
341
  },
256
342
  {
257
- "name": "stop",
343
+ "name": "triggerLower",
344
+ "type": "uint256",
345
+ "internalType": "uint256"
346
+ },
347
+ {
348
+ "name": "triggerUpper",
258
349
  "type": "uint256",
259
350
  "internalType": "uint256"
260
351
  },
@@ -265,6 +356,11 @@
265
356
  }
266
357
  ]
267
358
  },
359
+ {
360
+ "name": "target",
361
+ "type": "address",
362
+ "internalType": "address"
363
+ },
268
364
  {
269
365
  "name": "data",
270
366
  "type": "bytes",
@@ -320,7 +416,12 @@
320
416
  "internalType": "uint256"
321
417
  },
322
418
  {
323
- "name": "stop",
419
+ "name": "triggerLower",
420
+ "type": "uint256",
421
+ "internalType": "uint256"
422
+ },
423
+ {
424
+ "name": "triggerUpper",
324
425
  "type": "uint256",
325
426
  "internalType": "uint256"
326
427
  },
@@ -331,6 +432,11 @@
331
432
  }
332
433
  ]
333
434
  },
435
+ {
436
+ "name": "target",
437
+ "type": "address",
438
+ "internalType": "address"
439
+ },
334
440
  {
335
441
  "name": "data",
336
442
  "type": "bytes",
@@ -398,6 +504,11 @@
398
504
  "type": "uint256",
399
505
  "internalType": "uint256"
400
506
  },
507
+ {
508
+ "name": "start",
509
+ "type": "uint256",
510
+ "internalType": "uint256"
511
+ },
401
512
  {
402
513
  "name": "deadline",
403
514
  "type": "uint256",
@@ -466,7 +577,12 @@
466
577
  "internalType": "uint256"
467
578
  },
468
579
  {
469
- "name": "stop",
580
+ "name": "triggerLower",
581
+ "type": "uint256",
582
+ "internalType": "uint256"
583
+ },
584
+ {
585
+ "name": "triggerUpper",
470
586
  "type": "uint256",
471
587
  "internalType": "uint256"
472
588
  },
@@ -485,7 +601,78 @@
485
601
  "internalType": "bytes"
486
602
  },
487
603
  {
488
- "name": "cosignatureData",
604
+ "name": "trigger",
605
+ "type": "tuple",
606
+ "internalType": "struct Cosignature",
607
+ "components": [
608
+ {
609
+ "name": "cosigner",
610
+ "type": "address",
611
+ "internalType": "address"
612
+ },
613
+ {
614
+ "name": "reactor",
615
+ "type": "address",
616
+ "internalType": "address"
617
+ },
618
+ {
619
+ "name": "chainid",
620
+ "type": "uint256",
621
+ "internalType": "uint256"
622
+ },
623
+ {
624
+ "name": "timestamp",
625
+ "type": "uint256",
626
+ "internalType": "uint256"
627
+ },
628
+ {
629
+ "name": "input",
630
+ "type": "tuple",
631
+ "internalType": "struct CosignedValue",
632
+ "components": [
633
+ {
634
+ "name": "token",
635
+ "type": "address",
636
+ "internalType": "address"
637
+ },
638
+ {
639
+ "name": "value",
640
+ "type": "uint256",
641
+ "internalType": "uint256"
642
+ },
643
+ {
644
+ "name": "decimals",
645
+ "type": "uint8",
646
+ "internalType": "uint8"
647
+ }
648
+ ]
649
+ },
650
+ {
651
+ "name": "output",
652
+ "type": "tuple",
653
+ "internalType": "struct CosignedValue",
654
+ "components": [
655
+ {
656
+ "name": "token",
657
+ "type": "address",
658
+ "internalType": "address"
659
+ },
660
+ {
661
+ "name": "value",
662
+ "type": "uint256",
663
+ "internalType": "uint256"
664
+ },
665
+ {
666
+ "name": "decimals",
667
+ "type": "uint8",
668
+ "internalType": "uint8"
669
+ }
670
+ ]
671
+ }
672
+ ]
673
+ },
674
+ {
675
+ "name": "current",
489
676
  "type": "tuple",
490
677
  "internalType": "struct Cosignature",
491
678
  "components": [
@@ -556,7 +743,12 @@
556
743
  ]
557
744
  },
558
745
  {
559
- "name": "cosignature",
746
+ "name": "triggerCosignature",
747
+ "type": "bytes",
748
+ "internalType": "bytes"
749
+ },
750
+ {
751
+ "name": "currentCosignature",
560
752
  "type": "bytes",
561
753
  "internalType": "bytes"
562
754
  }