@bronlabs/intents-sdk 1.0.103 → 1.0.105
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/abi/OrderEngine.json +118 -181
- package/dist/contracts.d.ts +1 -1
- package/package.json +1 -1
package/abi/OrderEngine.json
CHANGED
|
@@ -14,11 +14,6 @@
|
|
|
14
14
|
"name": "BC_INVALID_PARAMS",
|
|
15
15
|
"type": "error"
|
|
16
16
|
},
|
|
17
|
-
{
|
|
18
|
-
"inputs": [],
|
|
19
|
-
"name": "BC_TX_ALREADY_USED",
|
|
20
|
-
"type": "error"
|
|
21
|
-
},
|
|
22
17
|
{
|
|
23
18
|
"inputs": [],
|
|
24
19
|
"name": "EnforcedPause",
|
|
@@ -151,6 +146,19 @@
|
|
|
151
146
|
"stateMutability": "view",
|
|
152
147
|
"type": "function"
|
|
153
148
|
},
|
|
149
|
+
{
|
|
150
|
+
"inputs": [
|
|
151
|
+
{
|
|
152
|
+
"internalType": "string",
|
|
153
|
+
"name": "_orderId",
|
|
154
|
+
"type": "string"
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"name": "cancelOrder",
|
|
158
|
+
"outputs": [],
|
|
159
|
+
"stateMutability": "nonpayable",
|
|
160
|
+
"type": "function"
|
|
161
|
+
},
|
|
154
162
|
{
|
|
155
163
|
"inputs": [
|
|
156
164
|
{
|
|
@@ -262,6 +270,11 @@
|
|
|
262
270
|
"name": "_create",
|
|
263
271
|
"type": "tuple"
|
|
264
272
|
},
|
|
273
|
+
{
|
|
274
|
+
"internalType": "string",
|
|
275
|
+
"name": "_userSettlementFromAddress",
|
|
276
|
+
"type": "string"
|
|
277
|
+
},
|
|
265
278
|
{
|
|
266
279
|
"internalType": "uint256",
|
|
267
280
|
"name": "_frontEndFee",
|
|
@@ -357,37 +370,6 @@
|
|
|
357
370
|
"stateMutability": "nonpayable",
|
|
358
371
|
"type": "function"
|
|
359
372
|
},
|
|
360
|
-
{
|
|
361
|
-
"inputs": [
|
|
362
|
-
{
|
|
363
|
-
"internalType": "string",
|
|
364
|
-
"name": "_networkId",
|
|
365
|
-
"type": "string"
|
|
366
|
-
}
|
|
367
|
-
],
|
|
368
|
-
"name": "getNetworkSettings",
|
|
369
|
-
"outputs": [
|
|
370
|
-
{
|
|
371
|
-
"components": [
|
|
372
|
-
{
|
|
373
|
-
"internalType": "uint256",
|
|
374
|
-
"name": "userSettlementTime",
|
|
375
|
-
"type": "uint256"
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
"internalType": "uint256",
|
|
379
|
-
"name": "solverSettlementTime",
|
|
380
|
-
"type": "uint256"
|
|
381
|
-
}
|
|
382
|
-
],
|
|
383
|
-
"internalType": "struct IOrderEngine.NetworkSettings",
|
|
384
|
-
"name": "",
|
|
385
|
-
"type": "tuple"
|
|
386
|
-
}
|
|
387
|
-
],
|
|
388
|
-
"stateMutability": "view",
|
|
389
|
-
"type": "function"
|
|
390
|
-
},
|
|
391
373
|
{
|
|
392
374
|
"inputs": [
|
|
393
375
|
{
|
|
@@ -534,78 +516,28 @@
|
|
|
534
516
|
"inputs": [
|
|
535
517
|
{
|
|
536
518
|
"internalType": "string",
|
|
537
|
-
"name": "
|
|
538
|
-
"type": "string"
|
|
539
|
-
}
|
|
540
|
-
],
|
|
541
|
-
"name": "getSolverConfirmationTime",
|
|
542
|
-
"outputs": [
|
|
543
|
-
{
|
|
544
|
-
"internalType": "uint256",
|
|
545
|
-
"name": "",
|
|
546
|
-
"type": "uint256"
|
|
547
|
-
}
|
|
548
|
-
],
|
|
549
|
-
"stateMutability": "view",
|
|
550
|
-
"type": "function"
|
|
551
|
-
},
|
|
552
|
-
{
|
|
553
|
-
"inputs": [
|
|
554
|
-
{
|
|
555
|
-
"internalType": "string",
|
|
556
|
-
"name": "_networkId",
|
|
557
|
-
"type": "string"
|
|
558
|
-
}
|
|
559
|
-
],
|
|
560
|
-
"name": "getSolverSettlementTime",
|
|
561
|
-
"outputs": [
|
|
562
|
-
{
|
|
563
|
-
"internalType": "uint256",
|
|
564
|
-
"name": "",
|
|
565
|
-
"type": "uint256"
|
|
566
|
-
}
|
|
567
|
-
],
|
|
568
|
-
"stateMutability": "view",
|
|
569
|
-
"type": "function"
|
|
570
|
-
},
|
|
571
|
-
{
|
|
572
|
-
"inputs": [
|
|
573
|
-
{
|
|
574
|
-
"internalType": "string",
|
|
575
|
-
"name": "_networkId",
|
|
576
|
-
"type": "string"
|
|
577
|
-
},
|
|
578
|
-
{
|
|
579
|
-
"internalType": "string",
|
|
580
|
-
"name": "_txHash",
|
|
581
|
-
"type": "string"
|
|
582
|
-
}
|
|
583
|
-
],
|
|
584
|
-
"name": "getUsedTxHashes",
|
|
585
|
-
"outputs": [
|
|
586
|
-
{
|
|
587
|
-
"internalType": "bool",
|
|
588
|
-
"name": "",
|
|
589
|
-
"type": "bool"
|
|
590
|
-
}
|
|
591
|
-
],
|
|
592
|
-
"stateMutability": "view",
|
|
593
|
-
"type": "function"
|
|
594
|
-
},
|
|
595
|
-
{
|
|
596
|
-
"inputs": [
|
|
597
|
-
{
|
|
598
|
-
"internalType": "string",
|
|
599
|
-
"name": "_networkId",
|
|
519
|
+
"name": "_orderId",
|
|
600
520
|
"type": "string"
|
|
601
521
|
}
|
|
602
522
|
],
|
|
603
|
-
"name": "
|
|
523
|
+
"name": "getSettlementFromAddresses",
|
|
604
524
|
"outputs": [
|
|
605
525
|
{
|
|
606
|
-
"
|
|
526
|
+
"components": [
|
|
527
|
+
{
|
|
528
|
+
"internalType": "string",
|
|
529
|
+
"name": "userSettlementFromAddress",
|
|
530
|
+
"type": "string"
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"internalType": "string",
|
|
534
|
+
"name": "solverSettlementFromAddress",
|
|
535
|
+
"type": "string"
|
|
536
|
+
}
|
|
537
|
+
],
|
|
538
|
+
"internalType": "struct IOrderEngine.SettlementFromAddresses",
|
|
607
539
|
"name": "",
|
|
608
|
-
"type": "
|
|
540
|
+
"type": "tuple"
|
|
609
541
|
}
|
|
610
542
|
],
|
|
611
543
|
"stateMutability": "view",
|
|
@@ -684,26 +616,20 @@
|
|
|
684
616
|
},
|
|
685
617
|
{
|
|
686
618
|
"inputs": [],
|
|
687
|
-
"name": "
|
|
619
|
+
"name": "maxAuctionDuration",
|
|
688
620
|
"outputs": [
|
|
689
621
|
{
|
|
690
|
-
"internalType": "
|
|
622
|
+
"internalType": "uint256",
|
|
691
623
|
"name": "",
|
|
692
|
-
"type": "
|
|
624
|
+
"type": "uint256"
|
|
693
625
|
}
|
|
694
626
|
],
|
|
695
627
|
"stateMutability": "view",
|
|
696
628
|
"type": "function"
|
|
697
629
|
},
|
|
698
630
|
{
|
|
699
|
-
"inputs": [
|
|
700
|
-
|
|
701
|
-
"internalType": "string",
|
|
702
|
-
"name": "",
|
|
703
|
-
"type": "string"
|
|
704
|
-
}
|
|
705
|
-
],
|
|
706
|
-
"name": "ordersFrontEndFee",
|
|
631
|
+
"inputs": [],
|
|
632
|
+
"name": "maxUserSettlementTime",
|
|
707
633
|
"outputs": [
|
|
708
634
|
{
|
|
709
635
|
"internalType": "uint256",
|
|
@@ -716,10 +642,10 @@
|
|
|
716
642
|
},
|
|
717
643
|
{
|
|
718
644
|
"inputs": [],
|
|
719
|
-
"name": "
|
|
645
|
+
"name": "networkManager",
|
|
720
646
|
"outputs": [
|
|
721
647
|
{
|
|
722
|
-
"internalType": "
|
|
648
|
+
"internalType": "contract INetworkManager",
|
|
723
649
|
"name": "",
|
|
724
650
|
"type": "address"
|
|
725
651
|
}
|
|
@@ -729,122 +655,104 @@
|
|
|
729
655
|
},
|
|
730
656
|
{
|
|
731
657
|
"inputs": [],
|
|
732
|
-
"name": "
|
|
733
|
-
"outputs": [],
|
|
734
|
-
"stateMutability": "nonpayable",
|
|
735
|
-
"type": "function"
|
|
736
|
-
},
|
|
737
|
-
{
|
|
738
|
-
"inputs": [],
|
|
739
|
-
"name": "paused",
|
|
658
|
+
"name": "oracleAggregator",
|
|
740
659
|
"outputs": [
|
|
741
660
|
{
|
|
742
|
-
"internalType": "
|
|
661
|
+
"internalType": "contract IOracleAggregator",
|
|
743
662
|
"name": "",
|
|
744
|
-
"type": "
|
|
663
|
+
"type": "address"
|
|
745
664
|
}
|
|
746
665
|
],
|
|
747
666
|
"stateMutability": "view",
|
|
748
667
|
"type": "function"
|
|
749
668
|
},
|
|
750
|
-
{
|
|
751
|
-
"inputs": [],
|
|
752
|
-
"name": "renounceOwnership",
|
|
753
|
-
"outputs": [],
|
|
754
|
-
"stateMutability": "nonpayable",
|
|
755
|
-
"type": "function"
|
|
756
|
-
},
|
|
757
669
|
{
|
|
758
670
|
"inputs": [
|
|
759
671
|
{
|
|
760
|
-
"internalType": "
|
|
761
|
-
"name": "
|
|
762
|
-
"type": "
|
|
672
|
+
"internalType": "string",
|
|
673
|
+
"name": "",
|
|
674
|
+
"type": "string"
|
|
763
675
|
}
|
|
764
676
|
],
|
|
765
|
-
"name": "
|
|
766
|
-
"outputs": [
|
|
767
|
-
|
|
677
|
+
"name": "ordersFrontEndFee",
|
|
678
|
+
"outputs": [
|
|
679
|
+
{
|
|
680
|
+
"internalType": "uint256",
|
|
681
|
+
"name": "",
|
|
682
|
+
"type": "uint256"
|
|
683
|
+
}
|
|
684
|
+
],
|
|
685
|
+
"stateMutability": "view",
|
|
768
686
|
"type": "function"
|
|
769
687
|
},
|
|
770
688
|
{
|
|
771
689
|
"inputs": [
|
|
772
690
|
{
|
|
773
691
|
"internalType": "string",
|
|
774
|
-
"name": "
|
|
692
|
+
"name": "",
|
|
775
693
|
"type": "string"
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
"type": "uint256"
|
|
781
|
-
},
|
|
694
|
+
}
|
|
695
|
+
],
|
|
696
|
+
"name": "ordersUserSettlementTime",
|
|
697
|
+
"outputs": [
|
|
782
698
|
{
|
|
783
699
|
"internalType": "uint256",
|
|
784
|
-
"name": "
|
|
700
|
+
"name": "",
|
|
785
701
|
"type": "uint256"
|
|
786
702
|
}
|
|
787
703
|
],
|
|
788
|
-
"
|
|
789
|
-
"outputs": [],
|
|
790
|
-
"stateMutability": "nonpayable",
|
|
704
|
+
"stateMutability": "view",
|
|
791
705
|
"type": "function"
|
|
792
706
|
},
|
|
793
707
|
{
|
|
794
|
-
"inputs": [
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
"name": "_userConfirmationTime",
|
|
798
|
-
"type": "uint256"
|
|
799
|
-
},
|
|
708
|
+
"inputs": [],
|
|
709
|
+
"name": "owner",
|
|
710
|
+
"outputs": [
|
|
800
711
|
{
|
|
801
|
-
"internalType": "
|
|
802
|
-
"name": "
|
|
803
|
-
"type": "
|
|
712
|
+
"internalType": "address",
|
|
713
|
+
"name": "",
|
|
714
|
+
"type": "address"
|
|
804
715
|
}
|
|
805
716
|
],
|
|
806
|
-
"
|
|
717
|
+
"stateMutability": "view",
|
|
718
|
+
"type": "function"
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
"inputs": [],
|
|
722
|
+
"name": "pause",
|
|
807
723
|
"outputs": [],
|
|
808
724
|
"stateMutability": "nonpayable",
|
|
809
725
|
"type": "function"
|
|
810
726
|
},
|
|
811
727
|
{
|
|
812
|
-
"inputs": [
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
"name": "_userSettlementTime",
|
|
816
|
-
"type": "uint256"
|
|
817
|
-
},
|
|
728
|
+
"inputs": [],
|
|
729
|
+
"name": "paused",
|
|
730
|
+
"outputs": [
|
|
818
731
|
{
|
|
819
|
-
"internalType": "
|
|
820
|
-
"name": "
|
|
821
|
-
"type": "
|
|
732
|
+
"internalType": "bool",
|
|
733
|
+
"name": "",
|
|
734
|
+
"type": "bool"
|
|
822
735
|
}
|
|
823
736
|
],
|
|
824
|
-
"
|
|
737
|
+
"stateMutability": "view",
|
|
738
|
+
"type": "function"
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
"inputs": [],
|
|
742
|
+
"name": "renounceOwnership",
|
|
825
743
|
"outputs": [],
|
|
826
744
|
"stateMutability": "nonpayable",
|
|
827
745
|
"type": "function"
|
|
828
746
|
},
|
|
829
747
|
{
|
|
830
748
|
"inputs": [
|
|
831
|
-
{
|
|
832
|
-
"internalType": "string",
|
|
833
|
-
"name": "_networkId",
|
|
834
|
-
"type": "string"
|
|
835
|
-
},
|
|
836
|
-
{
|
|
837
|
-
"internalType": "uint256",
|
|
838
|
-
"name": "_userSettlementTime",
|
|
839
|
-
"type": "uint256"
|
|
840
|
-
},
|
|
841
749
|
{
|
|
842
750
|
"internalType": "uint256",
|
|
843
|
-
"name": "
|
|
751
|
+
"name": "_maxAuctionDuration",
|
|
844
752
|
"type": "uint256"
|
|
845
753
|
}
|
|
846
754
|
],
|
|
847
|
-
"name": "
|
|
755
|
+
"name": "setMaxAuctionDuration",
|
|
848
756
|
"outputs": [],
|
|
849
757
|
"stateMutability": "nonpayable",
|
|
850
758
|
"type": "function"
|
|
@@ -921,6 +829,30 @@
|
|
|
921
829
|
"stateMutability": "nonpayable",
|
|
922
830
|
"type": "function"
|
|
923
831
|
},
|
|
832
|
+
{
|
|
833
|
+
"inputs": [
|
|
834
|
+
{
|
|
835
|
+
"internalType": "string",
|
|
836
|
+
"name": "",
|
|
837
|
+
"type": "string"
|
|
838
|
+
}
|
|
839
|
+
],
|
|
840
|
+
"name": "settlementFromAddresses",
|
|
841
|
+
"outputs": [
|
|
842
|
+
{
|
|
843
|
+
"internalType": "string",
|
|
844
|
+
"name": "userSettlementFromAddress",
|
|
845
|
+
"type": "string"
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
"internalType": "string",
|
|
849
|
+
"name": "solverSettlementFromAddress",
|
|
850
|
+
"type": "string"
|
|
851
|
+
}
|
|
852
|
+
],
|
|
853
|
+
"stateMutability": "view",
|
|
854
|
+
"type": "function"
|
|
855
|
+
},
|
|
924
856
|
{
|
|
925
857
|
"inputs": [
|
|
926
858
|
{
|
|
@@ -933,6 +865,11 @@
|
|
|
933
865
|
"name": "_solverAddressOnBaseChain",
|
|
934
866
|
"type": "string"
|
|
935
867
|
},
|
|
868
|
+
{
|
|
869
|
+
"internalType": "string",
|
|
870
|
+
"name": "_solverSettlementFromAddress",
|
|
871
|
+
"type": "string"
|
|
872
|
+
},
|
|
936
873
|
{
|
|
937
874
|
"internalType": "uint256",
|
|
938
875
|
"name": "_price_e18",
|
package/dist/contracts.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ export interface OrderEngineContract {
|
|
|
66
66
|
}, networkParams?: NetworkParams): Promise<ethers.ContractTransactionResponse>;
|
|
67
67
|
getOrder(orderId: string): Promise<Order>;
|
|
68
68
|
getSettlementFromAddresses(orderId: string): Promise<SettlementFromAddresses>;
|
|
69
|
-
solverReact(orderId: string, solverAddressOnBaseChain: string, price: bigint, params?: NetworkParams): Promise<ethers.ContractTransactionResponse>;
|
|
69
|
+
solverReact(orderId: string, solverAddressOnBaseChain: string, solverSettlementFromAddress: string, price: bigint, params?: NetworkParams): Promise<ethers.ContractTransactionResponse>;
|
|
70
70
|
setUserTxOnBaseNetwork(orderId: string, txHash: string, params?: NetworkParams): Promise<ethers.ContractTransactionResponse>;
|
|
71
71
|
setSolverTxOnQuoteNetwork(orderId: string, txHash: string, params?: NetworkParams): Promise<ethers.ContractTransactionResponse>;
|
|
72
72
|
setOracleConfirmUserTx(orderId: string, params?: NetworkParams): Promise<ethers.ContractTransactionResponse>;
|