@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
|
@@ -12,19 +12,6 @@
|
|
|
12
12
|
],
|
|
13
13
|
"stateMutability": "view"
|
|
14
14
|
},
|
|
15
|
-
{
|
|
16
|
-
"type": "function",
|
|
17
|
-
"name": "committee",
|
|
18
|
-
"inputs": [],
|
|
19
|
-
"outputs": [
|
|
20
|
-
{
|
|
21
|
-
"name": "",
|
|
22
|
-
"type": "address",
|
|
23
|
-
"internalType": "contract MockCommitteeSync"
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
"stateMutability": "view"
|
|
27
|
-
},
|
|
28
15
|
{
|
|
29
16
|
"type": "function",
|
|
30
17
|
"name": "cosigner",
|
|
@@ -115,6 +102,32 @@
|
|
|
115
102
|
],
|
|
116
103
|
"stateMutability": "view"
|
|
117
104
|
},
|
|
105
|
+
{
|
|
106
|
+
"type": "function",
|
|
107
|
+
"name": "owner",
|
|
108
|
+
"inputs": [],
|
|
109
|
+
"outputs": [
|
|
110
|
+
{
|
|
111
|
+
"name": "",
|
|
112
|
+
"type": "address",
|
|
113
|
+
"internalType": "address"
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"stateMutability": "view"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"type": "function",
|
|
120
|
+
"name": "ownerPK",
|
|
121
|
+
"inputs": [],
|
|
122
|
+
"outputs": [
|
|
123
|
+
{
|
|
124
|
+
"name": "",
|
|
125
|
+
"type": "uint256",
|
|
126
|
+
"internalType": "uint256"
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"stateMutability": "view"
|
|
130
|
+
},
|
|
118
131
|
{
|
|
119
132
|
"type": "function",
|
|
120
133
|
"name": "setUp",
|
|
@@ -321,14 +334,35 @@
|
|
|
321
334
|
},
|
|
322
335
|
{
|
|
323
336
|
"type": "function",
|
|
324
|
-
"name": "
|
|
337
|
+
"name": "test_acceptOwnership_completes_transfer",
|
|
325
338
|
"inputs": [],
|
|
326
339
|
"outputs": [],
|
|
327
340
|
"stateMutability": "nonpayable"
|
|
328
341
|
},
|
|
329
342
|
{
|
|
330
343
|
"type": "function",
|
|
331
|
-
"name": "
|
|
344
|
+
"name": "test_acceptOwnership_reverts_when_not_pending_owner",
|
|
345
|
+
"inputs": [],
|
|
346
|
+
"outputs": [],
|
|
347
|
+
"stateMutability": "nonpayable"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"type": "function",
|
|
351
|
+
"name": "test_approve_adds_signer_with_deadline",
|
|
352
|
+
"inputs": [],
|
|
353
|
+
"outputs": [],
|
|
354
|
+
"stateMutability": "nonpayable"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"type": "function",
|
|
358
|
+
"name": "test_approve_reverts_when_not_owner",
|
|
359
|
+
"inputs": [],
|
|
360
|
+
"outputs": [],
|
|
361
|
+
"stateMutability": "nonpayable"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"type": "function",
|
|
365
|
+
"name": "test_constructor_sets_initial_owner",
|
|
332
366
|
"inputs": [],
|
|
333
367
|
"outputs": [],
|
|
334
368
|
"stateMutability": "view"
|
|
@@ -349,95 +383,115 @@
|
|
|
349
383
|
},
|
|
350
384
|
{
|
|
351
385
|
"type": "function",
|
|
352
|
-
"name": "
|
|
386
|
+
"name": "test_event_OwnershipTransferStarted",
|
|
353
387
|
"inputs": [],
|
|
354
388
|
"outputs": [],
|
|
355
389
|
"stateMutability": "nonpayable"
|
|
356
390
|
},
|
|
357
391
|
{
|
|
358
392
|
"type": "function",
|
|
359
|
-
"name": "
|
|
393
|
+
"name": "test_event_OwnershipTransferred",
|
|
360
394
|
"inputs": [],
|
|
361
395
|
"outputs": [],
|
|
362
396
|
"stateMutability": "nonpayable"
|
|
363
397
|
},
|
|
364
398
|
{
|
|
365
399
|
"type": "function",
|
|
366
|
-
"name": "
|
|
400
|
+
"name": "test_isApprovedNow_returns_false_for_expired",
|
|
367
401
|
"inputs": [],
|
|
368
402
|
"outputs": [],
|
|
369
403
|
"stateMutability": "nonpayable"
|
|
370
404
|
},
|
|
371
405
|
{
|
|
372
406
|
"type": "function",
|
|
373
|
-
"name": "
|
|
407
|
+
"name": "test_isApprovedNow_returns_false_for_unapproved",
|
|
408
|
+
"inputs": [],
|
|
409
|
+
"outputs": [],
|
|
410
|
+
"stateMutability": "view"
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"type": "function",
|
|
414
|
+
"name": "test_rawSignatureValidation_accepts_approved_signer_signature",
|
|
374
415
|
"inputs": [],
|
|
375
416
|
"outputs": [],
|
|
376
417
|
"stateMutability": "nonpayable"
|
|
377
418
|
},
|
|
378
419
|
{
|
|
379
420
|
"type": "function",
|
|
380
|
-
"name": "
|
|
421
|
+
"name": "test_rawSignatureValidation_rejects_expired_signer",
|
|
381
422
|
"inputs": [],
|
|
382
423
|
"outputs": [],
|
|
383
|
-
"stateMutability": "
|
|
424
|
+
"stateMutability": "nonpayable"
|
|
384
425
|
},
|
|
385
426
|
{
|
|
386
427
|
"type": "function",
|
|
387
|
-
"name": "
|
|
428
|
+
"name": "test_rawSignatureValidation_rejects_invalid_signature",
|
|
388
429
|
"inputs": [],
|
|
389
430
|
"outputs": [],
|
|
390
431
|
"stateMutability": "nonpayable"
|
|
391
432
|
},
|
|
392
433
|
{
|
|
393
434
|
"type": "function",
|
|
394
|
-
"name": "
|
|
435
|
+
"name": "test_rawSignatureValidation_rejects_unapproved_signer",
|
|
395
436
|
"inputs": [],
|
|
396
437
|
"outputs": [],
|
|
397
438
|
"stateMutability": "view"
|
|
398
439
|
},
|
|
399
440
|
{
|
|
400
441
|
"type": "function",
|
|
401
|
-
"name": "
|
|
442
|
+
"name": "test_revokeSigner_removes_signer",
|
|
402
443
|
"inputs": [],
|
|
403
444
|
"outputs": [],
|
|
404
445
|
"stateMutability": "nonpayable"
|
|
405
446
|
},
|
|
406
447
|
{
|
|
407
448
|
"type": "function",
|
|
408
|
-
"name": "
|
|
449
|
+
"name": "test_revokeSigner_reverts_when_not_owner",
|
|
409
450
|
"inputs": [],
|
|
410
451
|
"outputs": [],
|
|
411
452
|
"stateMutability": "nonpayable"
|
|
412
453
|
},
|
|
413
454
|
{
|
|
414
455
|
"type": "function",
|
|
415
|
-
"name": "
|
|
456
|
+
"name": "test_transferOwnership_initiates_two_step_transfer",
|
|
416
457
|
"inputs": [],
|
|
417
458
|
"outputs": [],
|
|
418
459
|
"stateMutability": "nonpayable"
|
|
419
460
|
},
|
|
420
461
|
{
|
|
421
462
|
"type": "function",
|
|
422
|
-
"name": "
|
|
463
|
+
"name": "test_transferOwnership_reverts_when_not_owner",
|
|
423
464
|
"inputs": [],
|
|
424
465
|
"outputs": [],
|
|
425
466
|
"stateMutability": "nonpayable"
|
|
426
467
|
},
|
|
427
468
|
{
|
|
428
469
|
"type": "function",
|
|
429
|
-
"name": "
|
|
470
|
+
"name": "test_transferOwnership_to_zero_address_cancels_pending",
|
|
430
471
|
"inputs": [],
|
|
431
472
|
"outputs": [],
|
|
432
|
-
"stateMutability": "
|
|
473
|
+
"stateMutability": "nonpayable"
|
|
433
474
|
},
|
|
434
475
|
{
|
|
435
476
|
"type": "function",
|
|
436
|
-
"name": "
|
|
477
|
+
"name": "test_zeroAddressApproval_cannotBypassSignatureValidation",
|
|
437
478
|
"inputs": [],
|
|
438
479
|
"outputs": [],
|
|
439
480
|
"stateMutability": "nonpayable"
|
|
440
481
|
},
|
|
482
|
+
{
|
|
483
|
+
"type": "function",
|
|
484
|
+
"name": "unauthorized",
|
|
485
|
+
"inputs": [],
|
|
486
|
+
"outputs": [
|
|
487
|
+
{
|
|
488
|
+
"name": "",
|
|
489
|
+
"type": "address",
|
|
490
|
+
"internalType": "address"
|
|
491
|
+
}
|
|
492
|
+
],
|
|
493
|
+
"stateMutability": "view"
|
|
494
|
+
},
|
|
441
495
|
{
|
|
442
496
|
"type": "function",
|
|
443
497
|
"name": "wrapper",
|
|
@@ -451,6 +505,76 @@
|
|
|
451
505
|
],
|
|
452
506
|
"stateMutability": "view"
|
|
453
507
|
},
|
|
508
|
+
{
|
|
509
|
+
"type": "event",
|
|
510
|
+
"name": "OwnershipTransferStarted",
|
|
511
|
+
"inputs": [
|
|
512
|
+
{
|
|
513
|
+
"name": "previousOwner",
|
|
514
|
+
"type": "address",
|
|
515
|
+
"indexed": true,
|
|
516
|
+
"internalType": "address"
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"name": "newOwner",
|
|
520
|
+
"type": "address",
|
|
521
|
+
"indexed": true,
|
|
522
|
+
"internalType": "address"
|
|
523
|
+
}
|
|
524
|
+
],
|
|
525
|
+
"anonymous": false
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
"type": "event",
|
|
529
|
+
"name": "OwnershipTransferred",
|
|
530
|
+
"inputs": [
|
|
531
|
+
{
|
|
532
|
+
"name": "previousOwner",
|
|
533
|
+
"type": "address",
|
|
534
|
+
"indexed": true,
|
|
535
|
+
"internalType": "address"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"name": "newOwner",
|
|
539
|
+
"type": "address",
|
|
540
|
+
"indexed": true,
|
|
541
|
+
"internalType": "address"
|
|
542
|
+
}
|
|
543
|
+
],
|
|
544
|
+
"anonymous": false
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
"type": "event",
|
|
548
|
+
"name": "SignerApproved",
|
|
549
|
+
"inputs": [
|
|
550
|
+
{
|
|
551
|
+
"name": "signer",
|
|
552
|
+
"type": "address",
|
|
553
|
+
"indexed": true,
|
|
554
|
+
"internalType": "address"
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"name": "deadline",
|
|
558
|
+
"type": "uint256",
|
|
559
|
+
"indexed": false,
|
|
560
|
+
"internalType": "uint256"
|
|
561
|
+
}
|
|
562
|
+
],
|
|
563
|
+
"anonymous": false
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
"type": "event",
|
|
567
|
+
"name": "SignerRevoked",
|
|
568
|
+
"inputs": [
|
|
569
|
+
{
|
|
570
|
+
"name": "signer",
|
|
571
|
+
"type": "address",
|
|
572
|
+
"indexed": true,
|
|
573
|
+
"internalType": "address"
|
|
574
|
+
}
|
|
575
|
+
],
|
|
576
|
+
"anonymous": false
|
|
577
|
+
},
|
|
454
578
|
{
|
|
455
579
|
"type": "event",
|
|
456
580
|
"name": "log",
|