@bronlabs/intents-sdk 1.0.42 → 1.0.43

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.
@@ -0,0 +1,909 @@
1
+ [
2
+ {
3
+ "inputs": [],
4
+ "name": "InvalidInitialization",
5
+ "type": "error"
6
+ },
7
+ {
8
+ "inputs": [],
9
+ "name": "NotInitializing",
10
+ "type": "error"
11
+ },
12
+ {
13
+ "inputs": [
14
+ {
15
+ "internalType": "address",
16
+ "name": "owner",
17
+ "type": "address"
18
+ }
19
+ ],
20
+ "name": "OwnableInvalidOwner",
21
+ "type": "error"
22
+ },
23
+ {
24
+ "inputs": [
25
+ {
26
+ "internalType": "address",
27
+ "name": "account",
28
+ "type": "address"
29
+ }
30
+ ],
31
+ "name": "OwnableUnauthorizedAccount",
32
+ "type": "error"
33
+ },
34
+ {
35
+ "inputs": [],
36
+ "name": "ReentrancyGuardReentrantCall",
37
+ "type": "error"
38
+ },
39
+ {
40
+ "inputs": [],
41
+ "name": "SR_INVALID_INSURANCE_TOKEN",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [],
46
+ "name": "SR_INVALID_PARAMS",
47
+ "type": "error"
48
+ },
49
+ {
50
+ "inputs": [],
51
+ "name": "SR_INVALID_PRICE",
52
+ "type": "error"
53
+ },
54
+ {
55
+ "inputs": [],
56
+ "name": "SR_NOT_ENOUGH_OPERATION_AMOUNT",
57
+ "type": "error"
58
+ },
59
+ {
60
+ "inputs": [],
61
+ "name": "SR_NO_FEE",
62
+ "type": "error"
63
+ },
64
+ {
65
+ "inputs": [],
66
+ "name": "SR_ONLY_ORDER_ENGINE",
67
+ "type": "error"
68
+ },
69
+ {
70
+ "inputs": [],
71
+ "name": "SR_ONLY_SOLVER_OR_OWNER",
72
+ "type": "error"
73
+ },
74
+ {
75
+ "inputs": [],
76
+ "name": "SR_ORACLE_CALL_FAILED",
77
+ "type": "error"
78
+ },
79
+ {
80
+ "inputs": [],
81
+ "name": "SR_SOLVER_ALREADY_REGISTERED",
82
+ "type": "error"
83
+ },
84
+ {
85
+ "inputs": [],
86
+ "name": "SR_SOLVER_DEACTIVATION_NOT_ALLOWED",
87
+ "type": "error"
88
+ },
89
+ {
90
+ "inputs": [],
91
+ "name": "SR_SOLVER_HAS_OPERATION",
92
+ "type": "error"
93
+ },
94
+ {
95
+ "inputs": [],
96
+ "name": "SR_SOLVER_NOT_ACTIVE",
97
+ "type": "error"
98
+ },
99
+ {
100
+ "inputs": [],
101
+ "name": "SR_SOLVER_NOT_PENDING",
102
+ "type": "error"
103
+ },
104
+ {
105
+ "inputs": [
106
+ {
107
+ "internalType": "address",
108
+ "name": "token",
109
+ "type": "address"
110
+ }
111
+ ],
112
+ "name": "SafeERC20FailedOperation",
113
+ "type": "error"
114
+ },
115
+ {
116
+ "anonymous": false,
117
+ "inputs": [
118
+ {
119
+ "indexed": true,
120
+ "internalType": "address",
121
+ "name": "tokenAddress",
122
+ "type": "address"
123
+ },
124
+ {
125
+ "indexed": true,
126
+ "internalType": "uint256",
127
+ "name": "amount",
128
+ "type": "uint256"
129
+ }
130
+ ],
131
+ "name": "FeeAdded",
132
+ "type": "event"
133
+ },
134
+ {
135
+ "anonymous": false,
136
+ "inputs": [
137
+ {
138
+ "indexed": true,
139
+ "internalType": "address",
140
+ "name": "tokenAddress",
141
+ "type": "address"
142
+ },
143
+ {
144
+ "indexed": true,
145
+ "internalType": "uint256",
146
+ "name": "amount",
147
+ "type": "uint256"
148
+ },
149
+ {
150
+ "indexed": true,
151
+ "internalType": "address",
152
+ "name": "receiver",
153
+ "type": "address"
154
+ }
155
+ ],
156
+ "name": "FeeWithdrawn",
157
+ "type": "event"
158
+ },
159
+ {
160
+ "anonymous": false,
161
+ "inputs": [
162
+ {
163
+ "indexed": false,
164
+ "internalType": "uint64",
165
+ "name": "version",
166
+ "type": "uint64"
167
+ }
168
+ ],
169
+ "name": "Initialized",
170
+ "type": "event"
171
+ },
172
+ {
173
+ "anonymous": false,
174
+ "inputs": [
175
+ {
176
+ "indexed": true,
177
+ "internalType": "address",
178
+ "name": "tokenAddress",
179
+ "type": "address"
180
+ },
181
+ {
182
+ "indexed": true,
183
+ "internalType": "bool",
184
+ "name": "isAvailable",
185
+ "type": "bool"
186
+ },
187
+ {
188
+ "indexed": false,
189
+ "internalType": "uint256",
190
+ "name": "haircut",
191
+ "type": "uint256"
192
+ },
193
+ {
194
+ "indexed": false,
195
+ "internalType": "uint256",
196
+ "name": "liquidationPremium",
197
+ "type": "uint256"
198
+ },
199
+ {
200
+ "indexed": false,
201
+ "internalType": "uint256",
202
+ "name": "fee",
203
+ "type": "uint256"
204
+ },
205
+ {
206
+ "indexed": false,
207
+ "internalType": "address",
208
+ "name": "oracle",
209
+ "type": "address"
210
+ },
211
+ {
212
+ "indexed": false,
213
+ "internalType": "bytes",
214
+ "name": "oracleCallData",
215
+ "type": "bytes"
216
+ },
217
+ {
218
+ "indexed": false,
219
+ "internalType": "uint8",
220
+ "name": "priceDecimals",
221
+ "type": "uint8"
222
+ }
223
+ ],
224
+ "name": "InsuranceTokenParamsSet",
225
+ "type": "event"
226
+ },
227
+ {
228
+ "anonymous": false,
229
+ "inputs": [
230
+ {
231
+ "indexed": true,
232
+ "internalType": "address",
233
+ "name": "orderEngine",
234
+ "type": "address"
235
+ }
236
+ ],
237
+ "name": "OrderEngineUpdated",
238
+ "type": "event"
239
+ },
240
+ {
241
+ "anonymous": false,
242
+ "inputs": [
243
+ {
244
+ "indexed": true,
245
+ "internalType": "address",
246
+ "name": "previousOwner",
247
+ "type": "address"
248
+ },
249
+ {
250
+ "indexed": true,
251
+ "internalType": "address",
252
+ "name": "newOwner",
253
+ "type": "address"
254
+ }
255
+ ],
256
+ "name": "OwnershipTransferred",
257
+ "type": "event"
258
+ },
259
+ {
260
+ "anonymous": false,
261
+ "inputs": [
262
+ {
263
+ "indexed": true,
264
+ "internalType": "address",
265
+ "name": "solver",
266
+ "type": "address"
267
+ }
268
+ ],
269
+ "name": "SolverDeactivationCompleted",
270
+ "type": "event"
271
+ },
272
+ {
273
+ "anonymous": false,
274
+ "inputs": [
275
+ {
276
+ "indexed": true,
277
+ "internalType": "address",
278
+ "name": "solver",
279
+ "type": "address"
280
+ }
281
+ ],
282
+ "name": "SolverDeactivationInitiated",
283
+ "type": "event"
284
+ },
285
+ {
286
+ "anonymous": false,
287
+ "inputs": [
288
+ {
289
+ "indexed": true,
290
+ "internalType": "address",
291
+ "name": "solver",
292
+ "type": "address"
293
+ },
294
+ {
295
+ "indexed": true,
296
+ "internalType": "uint256",
297
+ "name": "amount",
298
+ "type": "uint256"
299
+ }
300
+ ],
301
+ "name": "SolverInsuranceAmountAdded",
302
+ "type": "event"
303
+ },
304
+ {
305
+ "anonymous": false,
306
+ "inputs": [
307
+ {
308
+ "indexed": true,
309
+ "internalType": "address",
310
+ "name": "solver",
311
+ "type": "address"
312
+ },
313
+ {
314
+ "indexed": true,
315
+ "internalType": "uint256",
316
+ "name": "amount",
317
+ "type": "uint256"
318
+ }
319
+ ],
320
+ "name": "SolverOperationAmountAdded",
321
+ "type": "event"
322
+ },
323
+ {
324
+ "anonymous": false,
325
+ "inputs": [
326
+ {
327
+ "indexed": true,
328
+ "internalType": "address",
329
+ "name": "solver",
330
+ "type": "address"
331
+ },
332
+ {
333
+ "indexed": true,
334
+ "internalType": "uint256",
335
+ "name": "amount",
336
+ "type": "uint256"
337
+ }
338
+ ],
339
+ "name": "SolverOperationAmountDecreased",
340
+ "type": "event"
341
+ },
342
+ {
343
+ "anonymous": false,
344
+ "inputs": [
345
+ {
346
+ "indexed": true,
347
+ "internalType": "address",
348
+ "name": "solver",
349
+ "type": "address"
350
+ },
351
+ {
352
+ "indexed": true,
353
+ "internalType": "address",
354
+ "name": "insuranceTokenAddress",
355
+ "type": "address"
356
+ },
357
+ {
358
+ "indexed": true,
359
+ "internalType": "uint256",
360
+ "name": "insuranceAmount",
361
+ "type": "uint256"
362
+ }
363
+ ],
364
+ "name": "SolverRegistered",
365
+ "type": "event"
366
+ },
367
+ {
368
+ "anonymous": false,
369
+ "inputs": [
370
+ {
371
+ "indexed": true,
372
+ "internalType": "address",
373
+ "name": "solver",
374
+ "type": "address"
375
+ }
376
+ ],
377
+ "name": "SolverRemoved",
378
+ "type": "event"
379
+ },
380
+ {
381
+ "anonymous": false,
382
+ "inputs": [
383
+ {
384
+ "indexed": true,
385
+ "internalType": "address",
386
+ "name": "solver",
387
+ "type": "address"
388
+ },
389
+ {
390
+ "indexed": true,
391
+ "internalType": "bool",
392
+ "name": "isAccepted",
393
+ "type": "bool"
394
+ }
395
+ ],
396
+ "name": "SolverResponse",
397
+ "type": "event"
398
+ },
399
+ {
400
+ "anonymous": false,
401
+ "inputs": [
402
+ {
403
+ "indexed": true,
404
+ "internalType": "address",
405
+ "name": "solver",
406
+ "type": "address"
407
+ },
408
+ {
409
+ "indexed": true,
410
+ "internalType": "uint256",
411
+ "name": "amount",
412
+ "type": "uint256"
413
+ },
414
+ {
415
+ "indexed": true,
416
+ "internalType": "address",
417
+ "name": "receiver",
418
+ "type": "address"
419
+ }
420
+ ],
421
+ "name": "SolverSlashed",
422
+ "type": "event"
423
+ },
424
+ {
425
+ "inputs": [
426
+ {
427
+ "internalType": "uint256",
428
+ "name": "_amount",
429
+ "type": "uint256"
430
+ }
431
+ ],
432
+ "name": "addSolverInsuranceAmount",
433
+ "outputs": [],
434
+ "stateMutability": "nonpayable",
435
+ "type": "function"
436
+ },
437
+ {
438
+ "inputs": [
439
+ {
440
+ "internalType": "address",
441
+ "name": "_solver",
442
+ "type": "address"
443
+ },
444
+ {
445
+ "internalType": "uint256",
446
+ "name": "_amount",
447
+ "type": "uint256"
448
+ }
449
+ ],
450
+ "name": "addSolverOperationAmount",
451
+ "outputs": [],
452
+ "stateMutability": "nonpayable",
453
+ "type": "function"
454
+ },
455
+ {
456
+ "inputs": [
457
+ {
458
+ "internalType": "address",
459
+ "name": "_solver",
460
+ "type": "address"
461
+ }
462
+ ],
463
+ "name": "deactivateSolverComplete",
464
+ "outputs": [],
465
+ "stateMutability": "nonpayable",
466
+ "type": "function"
467
+ },
468
+ {
469
+ "inputs": [
470
+ {
471
+ "internalType": "address",
472
+ "name": "_solver",
473
+ "type": "address"
474
+ }
475
+ ],
476
+ "name": "deactivateSolverInit",
477
+ "outputs": [],
478
+ "stateMutability": "nonpayable",
479
+ "type": "function"
480
+ },
481
+ {
482
+ "inputs": [
483
+ {
484
+ "internalType": "address",
485
+ "name": "_solver",
486
+ "type": "address"
487
+ },
488
+ {
489
+ "internalType": "uint256",
490
+ "name": "_amount",
491
+ "type": "uint256"
492
+ },
493
+ {
494
+ "internalType": "bool",
495
+ "name": "_withFee",
496
+ "type": "bool"
497
+ }
498
+ ],
499
+ "name": "decreaseSolverOperationAmount",
500
+ "outputs": [],
501
+ "stateMutability": "nonpayable",
502
+ "type": "function"
503
+ },
504
+ {
505
+ "inputs": [
506
+ {
507
+ "internalType": "address",
508
+ "name": "_solver",
509
+ "type": "address"
510
+ }
511
+ ],
512
+ "name": "getSolverAvailableOperationAmount",
513
+ "outputs": [
514
+ {
515
+ "internalType": "uint256",
516
+ "name": "",
517
+ "type": "uint256"
518
+ }
519
+ ],
520
+ "stateMutability": "view",
521
+ "type": "function"
522
+ },
523
+ {
524
+ "inputs": [
525
+ {
526
+ "internalType": "address",
527
+ "name": "_solver",
528
+ "type": "address"
529
+ }
530
+ ],
531
+ "name": "getSolverStatus",
532
+ "outputs": [
533
+ {
534
+ "internalType": "bool",
535
+ "name": "",
536
+ "type": "bool"
537
+ }
538
+ ],
539
+ "stateMutability": "view",
540
+ "type": "function"
541
+ },
542
+ {
543
+ "inputs": [],
544
+ "name": "getTotalSolversCount",
545
+ "outputs": [
546
+ {
547
+ "internalType": "uint256",
548
+ "name": "",
549
+ "type": "uint256"
550
+ }
551
+ ],
552
+ "stateMutability": "view",
553
+ "type": "function"
554
+ },
555
+ {
556
+ "inputs": [
557
+ {
558
+ "internalType": "address",
559
+ "name": "_orderEngine",
560
+ "type": "address"
561
+ },
562
+ {
563
+ "internalType": "address",
564
+ "name": "_owner",
565
+ "type": "address"
566
+ }
567
+ ],
568
+ "name": "initialize",
569
+ "outputs": [],
570
+ "stateMutability": "nonpayable",
571
+ "type": "function"
572
+ },
573
+ {
574
+ "inputs": [
575
+ {
576
+ "internalType": "address",
577
+ "name": "",
578
+ "type": "address"
579
+ }
580
+ ],
581
+ "name": "insuranceTokens",
582
+ "outputs": [
583
+ {
584
+ "internalType": "bool",
585
+ "name": "isAvailable",
586
+ "type": "bool"
587
+ },
588
+ {
589
+ "internalType": "uint256",
590
+ "name": "haircut",
591
+ "type": "uint256"
592
+ },
593
+ {
594
+ "internalType": "uint256",
595
+ "name": "liquidationPremium",
596
+ "type": "uint256"
597
+ },
598
+ {
599
+ "internalType": "uint256",
600
+ "name": "fee",
601
+ "type": "uint256"
602
+ },
603
+ {
604
+ "internalType": "address",
605
+ "name": "oracle",
606
+ "type": "address"
607
+ },
608
+ {
609
+ "internalType": "bytes",
610
+ "name": "oracleCallData",
611
+ "type": "bytes"
612
+ },
613
+ {
614
+ "internalType": "uint8",
615
+ "name": "priceDecimals",
616
+ "type": "uint8"
617
+ },
618
+ {
619
+ "internalType": "uint8",
620
+ "name": "decimals",
621
+ "type": "uint8"
622
+ },
623
+ {
624
+ "internalType": "uint256",
625
+ "name": "collectedFees",
626
+ "type": "uint256"
627
+ }
628
+ ],
629
+ "stateMutability": "view",
630
+ "type": "function"
631
+ },
632
+ {
633
+ "inputs": [
634
+ {
635
+ "internalType": "address",
636
+ "name": "_solver",
637
+ "type": "address"
638
+ },
639
+ {
640
+ "internalType": "uint256",
641
+ "name": "_amount",
642
+ "type": "uint256"
643
+ },
644
+ {
645
+ "internalType": "address",
646
+ "name": "_receiver",
647
+ "type": "address"
648
+ },
649
+ {
650
+ "internalType": "bool",
651
+ "name": "_isOperationAmount",
652
+ "type": "bool"
653
+ }
654
+ ],
655
+ "name": "manualSlashSolver",
656
+ "outputs": [],
657
+ "stateMutability": "nonpayable",
658
+ "type": "function"
659
+ },
660
+ {
661
+ "inputs": [],
662
+ "name": "orderEngine",
663
+ "outputs": [
664
+ {
665
+ "internalType": "address",
666
+ "name": "",
667
+ "type": "address"
668
+ }
669
+ ],
670
+ "stateMutability": "view",
671
+ "type": "function"
672
+ },
673
+ {
674
+ "inputs": [],
675
+ "name": "owner",
676
+ "outputs": [
677
+ {
678
+ "internalType": "address",
679
+ "name": "",
680
+ "type": "address"
681
+ }
682
+ ],
683
+ "stateMutability": "view",
684
+ "type": "function"
685
+ },
686
+ {
687
+ "inputs": [
688
+ {
689
+ "internalType": "address",
690
+ "name": "_insuranceTokenAddress",
691
+ "type": "address"
692
+ },
693
+ {
694
+ "internalType": "uint256",
695
+ "name": "_insuranceAmount",
696
+ "type": "uint256"
697
+ }
698
+ ],
699
+ "name": "registerSolver",
700
+ "outputs": [],
701
+ "stateMutability": "nonpayable",
702
+ "type": "function"
703
+ },
704
+ {
705
+ "inputs": [
706
+ {
707
+ "internalType": "address",
708
+ "name": "_solver",
709
+ "type": "address"
710
+ },
711
+ {
712
+ "internalType": "bool",
713
+ "name": "_isAccepted",
714
+ "type": "bool"
715
+ }
716
+ ],
717
+ "name": "registerSolverResponse",
718
+ "outputs": [],
719
+ "stateMutability": "nonpayable",
720
+ "type": "function"
721
+ },
722
+ {
723
+ "inputs": [
724
+ {
725
+ "internalType": "address",
726
+ "name": "_solver",
727
+ "type": "address"
728
+ }
729
+ ],
730
+ "name": "removeSolver",
731
+ "outputs": [],
732
+ "stateMutability": "nonpayable",
733
+ "type": "function"
734
+ },
735
+ {
736
+ "inputs": [],
737
+ "name": "renounceOwnership",
738
+ "outputs": [],
739
+ "stateMutability": "nonpayable",
740
+ "type": "function"
741
+ },
742
+ {
743
+ "inputs": [
744
+ {
745
+ "internalType": "address",
746
+ "name": "_tokenAddress",
747
+ "type": "address"
748
+ },
749
+ {
750
+ "internalType": "bool",
751
+ "name": "_isAvailable",
752
+ "type": "bool"
753
+ },
754
+ {
755
+ "internalType": "uint256",
756
+ "name": "_haircut",
757
+ "type": "uint256"
758
+ },
759
+ {
760
+ "internalType": "uint256",
761
+ "name": "_liquidationPremium",
762
+ "type": "uint256"
763
+ },
764
+ {
765
+ "internalType": "uint256",
766
+ "name": "_fee",
767
+ "type": "uint256"
768
+ },
769
+ {
770
+ "internalType": "address",
771
+ "name": "_oracle",
772
+ "type": "address"
773
+ },
774
+ {
775
+ "internalType": "bytes",
776
+ "name": "_oracleCallData",
777
+ "type": "bytes"
778
+ },
779
+ {
780
+ "internalType": "uint8",
781
+ "name": "_priceDecimals",
782
+ "type": "uint8"
783
+ }
784
+ ],
785
+ "name": "setInsuranceTokenParams",
786
+ "outputs": [],
787
+ "stateMutability": "nonpayable",
788
+ "type": "function"
789
+ },
790
+ {
791
+ "inputs": [
792
+ {
793
+ "internalType": "address",
794
+ "name": "_orderEngine",
795
+ "type": "address"
796
+ }
797
+ ],
798
+ "name": "setOrderEngine",
799
+ "outputs": [],
800
+ "stateMutability": "nonpayable",
801
+ "type": "function"
802
+ },
803
+ {
804
+ "inputs": [
805
+ {
806
+ "internalType": "address",
807
+ "name": "_solver",
808
+ "type": "address"
809
+ },
810
+ {
811
+ "internalType": "uint256",
812
+ "name": "_amount",
813
+ "type": "uint256"
814
+ },
815
+ {
816
+ "internalType": "address",
817
+ "name": "_receiver",
818
+ "type": "address"
819
+ }
820
+ ],
821
+ "name": "slashSolver",
822
+ "outputs": [],
823
+ "stateMutability": "nonpayable",
824
+ "type": "function"
825
+ },
826
+ {
827
+ "inputs": [
828
+ {
829
+ "internalType": "address",
830
+ "name": "",
831
+ "type": "address"
832
+ }
833
+ ],
834
+ "name": "solvers",
835
+ "outputs": [
836
+ {
837
+ "internalType": "enum ISolverRegister.SolverStatus",
838
+ "name": "status",
839
+ "type": "uint8"
840
+ },
841
+ {
842
+ "internalType": "address",
843
+ "name": "insuranceTokenAddress",
844
+ "type": "address"
845
+ },
846
+ {
847
+ "internalType": "uint256",
848
+ "name": "insuranceAmount",
849
+ "type": "uint256"
850
+ },
851
+ {
852
+ "internalType": "uint256",
853
+ "name": "operationAmount",
854
+ "type": "uint256"
855
+ },
856
+ {
857
+ "internalType": "uint256",
858
+ "name": "deactivationInitiatedAt",
859
+ "type": "uint256"
860
+ }
861
+ ],
862
+ "stateMutability": "view",
863
+ "type": "function"
864
+ },
865
+ {
866
+ "inputs": [],
867
+ "name": "solversCount",
868
+ "outputs": [
869
+ {
870
+ "internalType": "uint256",
871
+ "name": "",
872
+ "type": "uint256"
873
+ }
874
+ ],
875
+ "stateMutability": "view",
876
+ "type": "function"
877
+ },
878
+ {
879
+ "inputs": [
880
+ {
881
+ "internalType": "address",
882
+ "name": "newOwner",
883
+ "type": "address"
884
+ }
885
+ ],
886
+ "name": "transferOwnership",
887
+ "outputs": [],
888
+ "stateMutability": "nonpayable",
889
+ "type": "function"
890
+ },
891
+ {
892
+ "inputs": [
893
+ {
894
+ "internalType": "address",
895
+ "name": "_tokenAddress",
896
+ "type": "address"
897
+ },
898
+ {
899
+ "internalType": "address",
900
+ "name": "_receiver",
901
+ "type": "address"
902
+ }
903
+ ],
904
+ "name": "withdrawFee",
905
+ "outputs": [],
906
+ "stateMutability": "nonpayable",
907
+ "type": "function"
908
+ }
909
+ ]
@@ -75,5 +75,6 @@ export interface OracleAggregatorContract {
75
75
  }
76
76
  export declare function initOrderEngine(orderEngineAddress: string, provider: ethers.JsonRpcProvider | ethers.Signer): OrderEngineContract & ethers.Contract;
77
77
  export declare function initOracleAggregator(oracleAggregatorAddress: string, provider: ethers.JsonRpcProvider | ethers.Signer): OracleAggregatorContract & ethers.Contract;
78
+ export declare function initSolverRegister(solverRegisterAddress: string, provider: ethers.JsonRpcProvider | ethers.Signer): ethers.Contract;
78
79
  export declare function printOrder(baseParams: BaseParams, quoteParams: QuoteParams, pricingParams: PricingParams): string;
79
80
  export {};
package/dist/contracts.js CHANGED
@@ -22,6 +22,9 @@ export function initOrderEngine(orderEngineAddress, provider) {
22
22
  export function initOracleAggregator(oracleAggregatorAddress, provider) {
23
23
  return new ethers.Contract(oracleAggregatorAddress, JSON.parse(fs.readFileSync(path.join(__dirname, '../abi/OracleAggregator.json'), 'utf8')), provider);
24
24
  }
25
+ export function initSolverRegister(solverRegisterAddress, provider) {
26
+ return new ethers.Contract(solverRegisterAddress, JSON.parse(fs.readFileSync(path.join(__dirname, '../abi/SolverRegister.json'), 'utf8')), provider);
27
+ }
25
28
  export function printOrder(baseParams, quoteParams, pricingParams) {
26
29
  return JSON.stringify({
27
30
  baseParams: {
@@ -1 +1 @@
1
- {"version":3,"file":"contracts.js","sourceRoot":"","sources":["../src/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAE/D,MAAM,CAAN,IAAY,WAWX;AAXD,WAAY,WAAW;IACrB,uDAAS,CAAA;IACT,iEAAc,CAAA;IACd,2EAAmB,CAAA;IACnB,qEAAgB,CAAA;IAChB,mGAA+B,CAAA;IAC/B,yEAAkB,CAAA;IAClB,uGAAiC,CAAA;IACjC,uDAAS,CAAA;IACT,yDAAU,CAAA;IACV,uDAAS,CAAA;AACX,CAAC,EAXW,WAAW,KAAX,WAAW,QAWtB;AAiFD,MAAM,UAAU,eAAe,CAAC,kBAA0B,EAAE,QAAgD;IAC1G,OAAO,IAAI,MAAM,CAAC,QAAQ,CACxB,kBAAkB,EAClB,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,yBAAyB,CAAC,EAAE,MAAM,CAAC,CAAC,EACpF,QA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AAQ,CACxB,qBAAqB,EACrB,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,4BAA4B,CAAC,EAAE,MAAM,CAAC,CAAC,EACvF,QAAQ,CACU,CAAC;AACvB,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,UAAsB,EAAE,WAAwB,EAAE,aAA4B;IACvG,OAAO,IAAI,CAAC,SAAS,CAAC;QACpB,UAAU,EAAE;YACV,SAAS,EAAE,UAAU,CAAC,SAAS;YAC/B,YAAY,EAAE,UAAU,CAAC,YAAY;YACrC,aAAa,EAAE,UAAU,CAAC,aAAa;YACvC,UAAU,EAAE,UAAU,CAAC,UAAU;SAClC;QACD,WAAW,EAAE;YACX,SAAS,EAAE,WAAW,CAAC,SAAS;YAChC,YAAY,EAAE,WAAW,CAAC,YAAY;YACtC,WAAW,EAAE,WAAW,CAAC,WAAW;YACpC,YAAY,EAAE,WAAW,CAAC,YAAY;SACvC;QACD,aAAa,EAAE;YACb,UAAU,EAAE,aAAa,CAAC,UAAU,CAAC,QAAQ,EAAE;YAC/C,WAAW,EAAE,aAAa,CAAC,WAAW,CAAC,QAAQ,EAAE;YACjD,SAAS,EAAE,aAAa,CAAC,SAAS,CAAC,QAAQ,EAAE;YAC7C,YAAY,EAAE,aAAa,CAAC,YAAY,CAAC,QAAQ,EAAE;YACnD,eAAe,EAAE,aAAa,CAAC,eAAe,CAAC,QAAQ,EAAE;YACzD,mBAAmB,EAAE,aAAa,CAAC,mBAAmB,CAAC,QAAQ,EAAE;YACjE,mBAAmB,EAAE,aAAa,CAAC,mBAAmB;SACvD;KACF,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AACd,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bronlabs/intents-sdk",
3
- "version": "1.0.42",
3
+ "version": "1.0.43",
4
4
  "description": "SDK for Intents DeFi smart contracts",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",