@orbs-network/spot 1.9.5 → 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 -84
- package/script/input/cosignature.skeleton.json +1 -0
- package/script/input/order.json +63 -0
- package/script/input/repermit.skeleton.json +2 -12
|
@@ -86,11 +86,6 @@
|
|
|
86
86
|
"type": "uint256",
|
|
87
87
|
"internalType": "uint256"
|
|
88
88
|
},
|
|
89
|
-
{
|
|
90
|
-
"name": "start",
|
|
91
|
-
"type": "uint256",
|
|
92
|
-
"internalType": "uint256"
|
|
93
|
-
},
|
|
94
89
|
{
|
|
95
90
|
"name": "deadline",
|
|
96
91
|
"type": "uint256",
|
|
@@ -159,12 +154,7 @@
|
|
|
159
154
|
"internalType": "uint256"
|
|
160
155
|
},
|
|
161
156
|
{
|
|
162
|
-
"name": "
|
|
163
|
-
"type": "uint256",
|
|
164
|
-
"internalType": "uint256"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
"name": "triggerUpper",
|
|
157
|
+
"name": "stop",
|
|
168
158
|
"type": "uint256",
|
|
169
159
|
"internalType": "uint256"
|
|
170
160
|
},
|
|
@@ -183,78 +173,7 @@
|
|
|
183
173
|
"internalType": "bytes"
|
|
184
174
|
},
|
|
185
175
|
{
|
|
186
|
-
"name": "
|
|
187
|
-
"type": "tuple",
|
|
188
|
-
"internalType": "struct Cosignature",
|
|
189
|
-
"components": [
|
|
190
|
-
{
|
|
191
|
-
"name": "cosigner",
|
|
192
|
-
"type": "address",
|
|
193
|
-
"internalType": "address"
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
"name": "reactor",
|
|
197
|
-
"type": "address",
|
|
198
|
-
"internalType": "address"
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
"name": "chainid",
|
|
202
|
-
"type": "uint256",
|
|
203
|
-
"internalType": "uint256"
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
"name": "timestamp",
|
|
207
|
-
"type": "uint256",
|
|
208
|
-
"internalType": "uint256"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
"name": "input",
|
|
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
|
-
"name": "output",
|
|
234
|
-
"type": "tuple",
|
|
235
|
-
"internalType": "struct CosignedValue",
|
|
236
|
-
"components": [
|
|
237
|
-
{
|
|
238
|
-
"name": "token",
|
|
239
|
-
"type": "address",
|
|
240
|
-
"internalType": "address"
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
"name": "value",
|
|
244
|
-
"type": "uint256",
|
|
245
|
-
"internalType": "uint256"
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
"name": "decimals",
|
|
249
|
-
"type": "uint8",
|
|
250
|
-
"internalType": "uint8"
|
|
251
|
-
}
|
|
252
|
-
]
|
|
253
|
-
}
|
|
254
|
-
]
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
"name": "current",
|
|
176
|
+
"name": "cosignatureData",
|
|
258
177
|
"type": "tuple",
|
|
259
178
|
"internalType": "struct Cosignature",
|
|
260
179
|
"components": [
|
|
@@ -325,12 +244,7 @@
|
|
|
325
244
|
]
|
|
326
245
|
},
|
|
327
246
|
{
|
|
328
|
-
"name": "
|
|
329
|
-
"type": "bytes",
|
|
330
|
-
"internalType": "bytes"
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
"name": "currentCosignature",
|
|
247
|
+
"name": "cosignature",
|
|
334
248
|
"type": "bytes",
|
|
335
249
|
"internalType": "bytes"
|
|
336
250
|
}
|
|
@@ -540,6 +454,19 @@
|
|
|
540
454
|
],
|
|
541
455
|
"stateMutability": "view"
|
|
542
456
|
},
|
|
457
|
+
{
|
|
458
|
+
"type": "function",
|
|
459
|
+
"name": "outMax",
|
|
460
|
+
"inputs": [],
|
|
461
|
+
"outputs": [
|
|
462
|
+
{
|
|
463
|
+
"name": "",
|
|
464
|
+
"type": "uint256",
|
|
465
|
+
"internalType": "uint256"
|
|
466
|
+
}
|
|
467
|
+
],
|
|
468
|
+
"stateMutability": "view"
|
|
469
|
+
},
|
|
543
470
|
{
|
|
544
471
|
"type": "function",
|
|
545
472
|
"name": "outToken",
|
|
@@ -780,12 +707,7 @@
|
|
|
780
707
|
"internalType": "uint256"
|
|
781
708
|
},
|
|
782
709
|
{
|
|
783
|
-
"name": "
|
|
784
|
-
"type": "uint256",
|
|
785
|
-
"internalType": "uint256"
|
|
786
|
-
},
|
|
787
|
-
{
|
|
788
|
-
"name": "upperTrigger",
|
|
710
|
+
"name": "maxOut",
|
|
789
711
|
"type": "uint256",
|
|
790
712
|
"internalType": "uint256"
|
|
791
713
|
},
|
|
@@ -834,32 +756,6 @@
|
|
|
834
756
|
],
|
|
835
757
|
"stateMutability": "view"
|
|
836
758
|
},
|
|
837
|
-
{
|
|
838
|
-
"type": "function",
|
|
839
|
-
"name": "triggerLower",
|
|
840
|
-
"inputs": [],
|
|
841
|
-
"outputs": [
|
|
842
|
-
{
|
|
843
|
-
"name": "",
|
|
844
|
-
"type": "uint256",
|
|
845
|
-
"internalType": "uint256"
|
|
846
|
-
}
|
|
847
|
-
],
|
|
848
|
-
"stateMutability": "view"
|
|
849
|
-
},
|
|
850
|
-
{
|
|
851
|
-
"type": "function",
|
|
852
|
-
"name": "triggerUpper",
|
|
853
|
-
"inputs": [],
|
|
854
|
-
"outputs": [
|
|
855
|
-
{
|
|
856
|
-
"name": "",
|
|
857
|
-
"type": "uint256",
|
|
858
|
-
"internalType": "uint256"
|
|
859
|
-
}
|
|
860
|
-
],
|
|
861
|
-
"stateMutability": "view"
|
|
862
|
-
},
|
|
863
759
|
{
|
|
864
760
|
"type": "function",
|
|
865
761
|
"name": "wm",
|
|
@@ -1239,7 +1135,7 @@
|
|
|
1239
1135
|
},
|
|
1240
1136
|
{
|
|
1241
1137
|
"type": "error",
|
|
1242
|
-
"name": "
|
|
1138
|
+
"name": "CosignedExceedsStop",
|
|
1243
1139
|
"inputs": []
|
|
1244
1140
|
}
|
|
1245
1141
|
]
|