@lifi/composer-sdk 0.6.3 → 0.7.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.
@@ -12,6 +12,169 @@ export interface CoreSplitConfig {
12
12
  bps: Between010000;
13
13
  }
14
14
 
15
+ /**
16
+ * an array of at most 16 item(s)
17
+ *
18
+ * @minItems 2
19
+ * @maxItems 16
20
+ */
21
+ export type MaxItems16 =
22
+ | [Between19999, Between19999]
23
+ | [Between19999, Between19999, Between19999]
24
+ | [Between19999, Between19999, Between19999, Between19999]
25
+ | [Between19999, Between19999, Between19999, Between19999, Between19999]
26
+ | [
27
+ Between19999,
28
+ Between19999,
29
+ Between19999,
30
+ Between19999,
31
+ Between19999,
32
+ Between19999,
33
+ ]
34
+ | [
35
+ Between19999,
36
+ Between19999,
37
+ Between19999,
38
+ Between19999,
39
+ Between19999,
40
+ Between19999,
41
+ Between19999,
42
+ ]
43
+ | [
44
+ Between19999,
45
+ Between19999,
46
+ Between19999,
47
+ Between19999,
48
+ Between19999,
49
+ Between19999,
50
+ Between19999,
51
+ Between19999,
52
+ ]
53
+ | [
54
+ Between19999,
55
+ Between19999,
56
+ Between19999,
57
+ Between19999,
58
+ Between19999,
59
+ Between19999,
60
+ Between19999,
61
+ Between19999,
62
+ Between19999,
63
+ ]
64
+ | [
65
+ Between19999,
66
+ Between19999,
67
+ Between19999,
68
+ Between19999,
69
+ Between19999,
70
+ Between19999,
71
+ Between19999,
72
+ Between19999,
73
+ Between19999,
74
+ Between19999,
75
+ ]
76
+ | [
77
+ Between19999,
78
+ Between19999,
79
+ Between19999,
80
+ Between19999,
81
+ Between19999,
82
+ Between19999,
83
+ Between19999,
84
+ Between19999,
85
+ Between19999,
86
+ Between19999,
87
+ Between19999,
88
+ ]
89
+ | [
90
+ Between19999,
91
+ Between19999,
92
+ Between19999,
93
+ Between19999,
94
+ Between19999,
95
+ Between19999,
96
+ Between19999,
97
+ Between19999,
98
+ Between19999,
99
+ Between19999,
100
+ Between19999,
101
+ Between19999,
102
+ ]
103
+ | [
104
+ Between19999,
105
+ Between19999,
106
+ Between19999,
107
+ Between19999,
108
+ Between19999,
109
+ Between19999,
110
+ Between19999,
111
+ Between19999,
112
+ Between19999,
113
+ Between19999,
114
+ Between19999,
115
+ Between19999,
116
+ Between19999,
117
+ ]
118
+ | [
119
+ Between19999,
120
+ Between19999,
121
+ Between19999,
122
+ Between19999,
123
+ Between19999,
124
+ Between19999,
125
+ Between19999,
126
+ Between19999,
127
+ Between19999,
128
+ Between19999,
129
+ Between19999,
130
+ Between19999,
131
+ Between19999,
132
+ Between19999,
133
+ ]
134
+ | [
135
+ Between19999,
136
+ Between19999,
137
+ Between19999,
138
+ Between19999,
139
+ Between19999,
140
+ Between19999,
141
+ Between19999,
142
+ Between19999,
143
+ Between19999,
144
+ Between19999,
145
+ Between19999,
146
+ Between19999,
147
+ Between19999,
148
+ Between19999,
149
+ Between19999,
150
+ ]
151
+ | [
152
+ Between19999,
153
+ Between19999,
154
+ Between19999,
155
+ Between19999,
156
+ Between19999,
157
+ Between19999,
158
+ Between19999,
159
+ Between19999,
160
+ Between19999,
161
+ Between19999,
162
+ Between19999,
163
+ Between19999,
164
+ Between19999,
165
+ Between19999,
166
+ Between19999,
167
+ Between19999,
168
+ ];
169
+ /**
170
+ * a number between 1 and 9999
171
+ */
172
+ export type Between19999 = number;
173
+
174
+ export interface CorePartitionConfig {
175
+ bps: MaxItems16;
176
+ }
177
+
15
178
  /**
16
179
  * a positive number
17
180
  */
@@ -35,6 +198,9 @@ export interface LifiSwapConfig {
35
198
  }
36
199
  | {
37
200
  kind: 'erc20';
201
+ /**
202
+ * EVM address: 0x followed by 40 hex characters
203
+ */
38
204
  token: Address;
39
205
  chainId: Positive;
40
206
  };
@@ -77,6 +243,9 @@ export interface LifiBridgeConfig {
77
243
  }
78
244
  | {
79
245
  kind: 'erc20';
246
+ /**
247
+ * EVM address: 0x followed by 40 hex characters
248
+ */
80
249
  token: Address;
81
250
  chainId: Positive;
82
251
  };
@@ -157,11 +326,20 @@ export interface CoreBpsUpConfig {
157
326
  }
158
327
 
159
328
  export interface CoreApproveConfig {
329
+ /**
330
+ * EVM address: 0x followed by 40 hex characters
331
+ */
160
332
  spender: Address;
161
333
  }
162
334
 
163
335
  export interface CoreBalanceOfConfig {
336
+ /**
337
+ * EVM address: 0x followed by 40 hex characters
338
+ */
164
339
  token: Address;
340
+ /**
341
+ * EVM address: 0x followed by 40 hex characters
342
+ */
165
343
  owner?: Address;
166
344
  }
167
345
 
@@ -404,14 +582,26 @@ export interface CoreAsResourceConfig {
404
582
  }
405
583
  | {
406
584
  kind: 'erc20';
585
+ /**
586
+ * EVM address: 0x followed by 40 hex characters
587
+ */
407
588
  token: Address;
408
589
  chainId: Positive;
409
590
  };
410
591
  }
411
592
 
412
593
  export interface AaveBorrowConfig {
594
+ /**
595
+ * EVM address: 0x followed by 40 hex characters
596
+ */
413
597
  pool: string;
598
+ /**
599
+ * EVM address: 0x followed by 40 hex characters
600
+ */
414
601
  asset: string;
602
+ /**
603
+ * EVM address: 0x followed by 40 hex characters
604
+ */
415
605
  variableDebtToken: string;
416
606
  amount: IntegerStringInput;
417
607
  referralId?: number;
@@ -419,24 +609,45 @@ export interface AaveBorrowConfig {
419
609
 
420
610
  export type AaveRepayConfig =
421
611
  | {
612
+ /**
613
+ * EVM address: 0x followed by 40 hex characters
614
+ */
422
615
  pool: string;
423
616
  mode: 'exact';
424
617
  }
425
618
  | {
619
+ /**
620
+ * EVM address: 0x followed by 40 hex characters
621
+ */
426
622
  pool: string;
427
623
  mode: 'max';
428
624
  };
429
625
 
430
626
  export interface AaveRepayWithATokensConfig {
627
+ /**
628
+ * EVM address: 0x followed by 40 hex characters
629
+ */
431
630
  pool: string;
631
+ /**
632
+ * EVM address: 0x followed by 40 hex characters
633
+ */
432
634
  asset: string;
433
635
  }
434
636
 
435
637
  export interface AaveClaimRewardsConfig {
638
+ /**
639
+ * EVM address: 0x followed by 40 hex characters
640
+ */
436
641
  rewardsController: string;
437
642
  assets: string[];
643
+ /**
644
+ * EVM address: 0x followed by 40 hex characters
645
+ */
438
646
  reward: string;
439
647
  amount?: IntegerStringInput;
648
+ /**
649
+ * EVM address: 0x followed by 40 hex characters
650
+ */
440
651
  to?: string;
441
652
  }
442
653
 
@@ -446,19 +657,34 @@ export interface AaveClaimRewardsConfig {
446
657
  export type Between0255 = number;
447
658
 
448
659
  export interface AaveSetEModeConfig {
660
+ /**
661
+ * EVM address: 0x followed by 40 hex characters
662
+ */
449
663
  pool: string;
450
664
  category: Between0255;
451
665
  }
452
666
 
453
667
  export interface AaveGetHealthFactorConfig {
668
+ /**
669
+ * EVM address: 0x followed by 40 hex characters
670
+ */
454
671
  pool: string;
672
+ /**
673
+ * EVM address: 0x followed by 40 hex characters
674
+ */
455
675
  user?: string;
456
676
  }
457
677
 
458
678
  export type MorphoBlueSupplyCollateralConfig =
459
679
  | (
460
680
  | {
681
+ /**
682
+ * EVM address: 0x followed by 40 hex characters
683
+ */
461
684
  morpho?: string;
685
+ /**
686
+ * EVM address: 0x followed by 40 hex characters
687
+ */
462
688
  onBehalfOf?: string;
463
689
  mode: 'exact';
464
690
  /**
@@ -467,13 +693,31 @@ export type MorphoBlueSupplyCollateralConfig =
467
693
  marketId: string;
468
694
  }
469
695
  | {
696
+ /**
697
+ * EVM address: 0x followed by 40 hex characters
698
+ */
470
699
  morpho?: string;
700
+ /**
701
+ * EVM address: 0x followed by 40 hex characters
702
+ */
471
703
  onBehalfOf?: string;
472
704
  mode: 'exact';
473
705
  marketParams: {
706
+ /**
707
+ * EVM address: 0x followed by 40 hex characters
708
+ */
474
709
  loanToken: string;
710
+ /**
711
+ * EVM address: 0x followed by 40 hex characters
712
+ */
475
713
  collateralToken: string;
714
+ /**
715
+ * EVM address: 0x followed by 40 hex characters
716
+ */
476
717
  oracle: string;
718
+ /**
719
+ * EVM address: 0x followed by 40 hex characters
720
+ */
477
721
  irm: string;
478
722
  lltv: string;
479
723
  };
@@ -481,7 +725,13 @@ export type MorphoBlueSupplyCollateralConfig =
481
725
  )
482
726
  | (
483
727
  | {
728
+ /**
729
+ * EVM address: 0x followed by 40 hex characters
730
+ */
484
731
  morpho?: string;
732
+ /**
733
+ * EVM address: 0x followed by 40 hex characters
734
+ */
485
735
  onBehalfOf?: string;
486
736
  mode: 'all';
487
737
  /**
@@ -490,13 +740,31 @@ export type MorphoBlueSupplyCollateralConfig =
490
740
  marketId: string;
491
741
  }
492
742
  | {
743
+ /**
744
+ * EVM address: 0x followed by 40 hex characters
745
+ */
493
746
  morpho?: string;
747
+ /**
748
+ * EVM address: 0x followed by 40 hex characters
749
+ */
494
750
  onBehalfOf?: string;
495
751
  mode: 'all';
496
752
  marketParams: {
753
+ /**
754
+ * EVM address: 0x followed by 40 hex characters
755
+ */
497
756
  loanToken: string;
757
+ /**
758
+ * EVM address: 0x followed by 40 hex characters
759
+ */
498
760
  collateralToken: string;
761
+ /**
762
+ * EVM address: 0x followed by 40 hex characters
763
+ */
499
764
  oracle: string;
765
+ /**
766
+ * EVM address: 0x followed by 40 hex characters
767
+ */
500
768
  irm: string;
501
769
  lltv: string;
502
770
  };
@@ -505,9 +773,18 @@ export type MorphoBlueSupplyCollateralConfig =
505
773
 
506
774
  export type MorphoBlueWithdrawCollateralConfig =
507
775
  | {
776
+ /**
777
+ * EVM address: 0x followed by 40 hex characters
778
+ */
508
779
  morpho?: string;
509
780
  amount: IntegerStringInput;
781
+ /**
782
+ * EVM address: 0x followed by 40 hex characters
783
+ */
510
784
  onBehalfOf?: string;
785
+ /**
786
+ * EVM address: 0x followed by 40 hex characters
787
+ */
511
788
  receiver?: string;
512
789
  /**
513
790
  * a string matching the pattern ^0x[0-9a-fA-F]{64}$
@@ -515,14 +792,35 @@ export type MorphoBlueWithdrawCollateralConfig =
515
792
  marketId: string;
516
793
  }
517
794
  | {
795
+ /**
796
+ * EVM address: 0x followed by 40 hex characters
797
+ */
518
798
  morpho?: string;
519
799
  amount: IntegerStringInput;
800
+ /**
801
+ * EVM address: 0x followed by 40 hex characters
802
+ */
520
803
  onBehalfOf?: string;
804
+ /**
805
+ * EVM address: 0x followed by 40 hex characters
806
+ */
521
807
  receiver?: string;
522
808
  marketParams: {
809
+ /**
810
+ * EVM address: 0x followed by 40 hex characters
811
+ */
523
812
  loanToken: string;
813
+ /**
814
+ * EVM address: 0x followed by 40 hex characters
815
+ */
524
816
  collateralToken: string;
817
+ /**
818
+ * EVM address: 0x followed by 40 hex characters
819
+ */
525
820
  oracle: string;
821
+ /**
822
+ * EVM address: 0x followed by 40 hex characters
823
+ */
526
824
  irm: string;
527
825
  lltv: string;
528
826
  };
@@ -530,9 +828,18 @@ export type MorphoBlueWithdrawCollateralConfig =
530
828
 
531
829
  export type MorphoBlueBorrowConfig =
532
830
  | {
831
+ /**
832
+ * EVM address: 0x followed by 40 hex characters
833
+ */
533
834
  morpho?: string;
534
835
  amount: IntegerStringInput;
836
+ /**
837
+ * EVM address: 0x followed by 40 hex characters
838
+ */
535
839
  onBehalfOf?: string;
840
+ /**
841
+ * EVM address: 0x followed by 40 hex characters
842
+ */
536
843
  receiver?: string;
537
844
  /**
538
845
  * a string matching the pattern ^0x[0-9a-fA-F]{64}$
@@ -540,14 +847,35 @@ export type MorphoBlueBorrowConfig =
540
847
  marketId: string;
541
848
  }
542
849
  | {
850
+ /**
851
+ * EVM address: 0x followed by 40 hex characters
852
+ */
543
853
  morpho?: string;
544
854
  amount: IntegerStringInput;
855
+ /**
856
+ * EVM address: 0x followed by 40 hex characters
857
+ */
545
858
  onBehalfOf?: string;
859
+ /**
860
+ * EVM address: 0x followed by 40 hex characters
861
+ */
546
862
  receiver?: string;
547
863
  marketParams: {
864
+ /**
865
+ * EVM address: 0x followed by 40 hex characters
866
+ */
548
867
  loanToken: string;
868
+ /**
869
+ * EVM address: 0x followed by 40 hex characters
870
+ */
549
871
  collateralToken: string;
872
+ /**
873
+ * EVM address: 0x followed by 40 hex characters
874
+ */
550
875
  oracle: string;
876
+ /**
877
+ * EVM address: 0x followed by 40 hex characters
878
+ */
551
879
  irm: string;
552
880
  lltv: string;
553
881
  };
@@ -556,6 +884,9 @@ export type MorphoBlueBorrowConfig =
556
884
  export type MorphoBlueRepayConfig =
557
885
  | (
558
886
  | {
887
+ /**
888
+ * EVM address: 0x followed by 40 hex characters
889
+ */
559
890
  morpho?: string;
560
891
  mode: 'exact';
561
892
  /**
@@ -564,12 +895,27 @@ export type MorphoBlueRepayConfig =
564
895
  marketId: string;
565
896
  }
566
897
  | {
898
+ /**
899
+ * EVM address: 0x followed by 40 hex characters
900
+ */
567
901
  morpho?: string;
568
902
  mode: 'exact';
569
903
  marketParams: {
904
+ /**
905
+ * EVM address: 0x followed by 40 hex characters
906
+ */
570
907
  loanToken: string;
908
+ /**
909
+ * EVM address: 0x followed by 40 hex characters
910
+ */
571
911
  collateralToken: string;
912
+ /**
913
+ * EVM address: 0x followed by 40 hex characters
914
+ */
572
915
  oracle: string;
916
+ /**
917
+ * EVM address: 0x followed by 40 hex characters
918
+ */
573
919
  irm: string;
574
920
  lltv: string;
575
921
  };
@@ -577,6 +923,9 @@ export type MorphoBlueRepayConfig =
577
923
  )
578
924
  | (
579
925
  | {
926
+ /**
927
+ * EVM address: 0x followed by 40 hex characters
928
+ */
580
929
  morpho?: string;
581
930
  mode: 'max';
582
931
  /**
@@ -585,12 +934,27 @@ export type MorphoBlueRepayConfig =
585
934
  marketId: string;
586
935
  }
587
936
  | {
937
+ /**
938
+ * EVM address: 0x followed by 40 hex characters
939
+ */
588
940
  morpho?: string;
589
941
  mode: 'max';
590
942
  marketParams: {
943
+ /**
944
+ * EVM address: 0x followed by 40 hex characters
945
+ */
591
946
  loanToken: string;
947
+ /**
948
+ * EVM address: 0x followed by 40 hex characters
949
+ */
592
950
  collateralToken: string;
951
+ /**
952
+ * EVM address: 0x followed by 40 hex characters
953
+ */
593
954
  oracle: string;
955
+ /**
956
+ * EVM address: 0x followed by 40 hex characters
957
+ */
594
958
  irm: string;
595
959
  lltv: string;
596
960
  };
@@ -599,7 +963,13 @@ export type MorphoBlueRepayConfig =
599
963
 
600
964
  export type MorphoBlueSupplyConfig =
601
965
  | {
966
+ /**
967
+ * EVM address: 0x followed by 40 hex characters
968
+ */
602
969
  morpho?: string;
970
+ /**
971
+ * EVM address: 0x followed by 40 hex characters
972
+ */
603
973
  onBehalfOf?: string;
604
974
  /**
605
975
  * a string matching the pattern ^0x[0-9a-fA-F]{64}$
@@ -607,12 +977,30 @@ export type MorphoBlueSupplyConfig =
607
977
  marketId: string;
608
978
  }
609
979
  | {
980
+ /**
981
+ * EVM address: 0x followed by 40 hex characters
982
+ */
610
983
  morpho?: string;
984
+ /**
985
+ * EVM address: 0x followed by 40 hex characters
986
+ */
611
987
  onBehalfOf?: string;
612
988
  marketParams: {
989
+ /**
990
+ * EVM address: 0x followed by 40 hex characters
991
+ */
613
992
  loanToken: string;
993
+ /**
994
+ * EVM address: 0x followed by 40 hex characters
995
+ */
614
996
  collateralToken: string;
997
+ /**
998
+ * EVM address: 0x followed by 40 hex characters
999
+ */
615
1000
  oracle: string;
1001
+ /**
1002
+ * EVM address: 0x followed by 40 hex characters
1003
+ */
616
1004
  irm: string;
617
1005
  lltv: string;
618
1006
  };
@@ -621,10 +1009,19 @@ export type MorphoBlueSupplyConfig =
621
1009
  export type MorphoBlueWithdrawConfig =
622
1010
  | (
623
1011
  | {
1012
+ /**
1013
+ * EVM address: 0x followed by 40 hex characters
1014
+ */
624
1015
  morpho?: string;
625
1016
  mode: 'exact';
626
1017
  amount: IntegerStringInput;
1018
+ /**
1019
+ * EVM address: 0x followed by 40 hex characters
1020
+ */
627
1021
  onBehalfOf?: string;
1022
+ /**
1023
+ * EVM address: 0x followed by 40 hex characters
1024
+ */
628
1025
  receiver?: string;
629
1026
  /**
630
1027
  * a string matching the pattern ^0x[0-9a-fA-F]{64}$
@@ -632,15 +1029,36 @@ export type MorphoBlueWithdrawConfig =
632
1029
  marketId: string;
633
1030
  }
634
1031
  | {
1032
+ /**
1033
+ * EVM address: 0x followed by 40 hex characters
1034
+ */
635
1035
  morpho?: string;
636
1036
  mode: 'exact';
637
1037
  amount: IntegerStringInput;
1038
+ /**
1039
+ * EVM address: 0x followed by 40 hex characters
1040
+ */
638
1041
  onBehalfOf?: string;
1042
+ /**
1043
+ * EVM address: 0x followed by 40 hex characters
1044
+ */
639
1045
  receiver?: string;
640
1046
  marketParams: {
1047
+ /**
1048
+ * EVM address: 0x followed by 40 hex characters
1049
+ */
641
1050
  loanToken: string;
1051
+ /**
1052
+ * EVM address: 0x followed by 40 hex characters
1053
+ */
642
1054
  collateralToken: string;
1055
+ /**
1056
+ * EVM address: 0x followed by 40 hex characters
1057
+ */
643
1058
  oracle: string;
1059
+ /**
1060
+ * EVM address: 0x followed by 40 hex characters
1061
+ */
644
1062
  irm: string;
645
1063
  lltv: string;
646
1064
  };
@@ -648,9 +1066,18 @@ export type MorphoBlueWithdrawConfig =
648
1066
  )
649
1067
  | (
650
1068
  | {
1069
+ /**
1070
+ * EVM address: 0x followed by 40 hex characters
1071
+ */
651
1072
  morpho?: string;
652
1073
  mode: 'max';
1074
+ /**
1075
+ * EVM address: 0x followed by 40 hex characters
1076
+ */
653
1077
  onBehalfOf?: string;
1078
+ /**
1079
+ * EVM address: 0x followed by 40 hex characters
1080
+ */
654
1081
  receiver?: string;
655
1082
  /**
656
1083
  * a string matching the pattern ^0x[0-9a-fA-F]{64}$
@@ -658,14 +1085,35 @@ export type MorphoBlueWithdrawConfig =
658
1085
  marketId: string;
659
1086
  }
660
1087
  | {
1088
+ /**
1089
+ * EVM address: 0x followed by 40 hex characters
1090
+ */
661
1091
  morpho?: string;
662
1092
  mode: 'max';
1093
+ /**
1094
+ * EVM address: 0x followed by 40 hex characters
1095
+ */
663
1096
  onBehalfOf?: string;
1097
+ /**
1098
+ * EVM address: 0x followed by 40 hex characters
1099
+ */
664
1100
  receiver?: string;
665
1101
  marketParams: {
1102
+ /**
1103
+ * EVM address: 0x followed by 40 hex characters
1104
+ */
666
1105
  loanToken: string;
1106
+ /**
1107
+ * EVM address: 0x followed by 40 hex characters
1108
+ */
667
1109
  collateralToken: string;
1110
+ /**
1111
+ * EVM address: 0x followed by 40 hex characters
1112
+ */
668
1113
  oracle: string;
1114
+ /**
1115
+ * EVM address: 0x followed by 40 hex characters
1116
+ */
669
1117
  irm: string;
670
1118
  lltv: string;
671
1119
  };
@@ -674,7 +1122,13 @@ export type MorphoBlueWithdrawConfig =
674
1122
 
675
1123
  export type MorphoBlueGetPositionConfig =
676
1124
  | {
1125
+ /**
1126
+ * EVM address: 0x followed by 40 hex characters
1127
+ */
677
1128
  morpho?: string;
1129
+ /**
1130
+ * EVM address: 0x followed by 40 hex characters
1131
+ */
678
1132
  user?: string;
679
1133
  /**
680
1134
  * a string matching the pattern ^0x[0-9a-fA-F]{64}$
@@ -682,12 +1136,30 @@ export type MorphoBlueGetPositionConfig =
682
1136
  marketId: string;
683
1137
  }
684
1138
  | {
1139
+ /**
1140
+ * EVM address: 0x followed by 40 hex characters
1141
+ */
685
1142
  morpho?: string;
1143
+ /**
1144
+ * EVM address: 0x followed by 40 hex characters
1145
+ */
686
1146
  user?: string;
687
1147
  marketParams: {
1148
+ /**
1149
+ * EVM address: 0x followed by 40 hex characters
1150
+ */
688
1151
  loanToken: string;
1152
+ /**
1153
+ * EVM address: 0x followed by 40 hex characters
1154
+ */
689
1155
  collateralToken: string;
1156
+ /**
1157
+ * EVM address: 0x followed by 40 hex characters
1158
+ */
690
1159
  oracle: string;
1160
+ /**
1161
+ * EVM address: 0x followed by 40 hex characters
1162
+ */
691
1163
  irm: string;
692
1164
  lltv: string;
693
1165
  };
@@ -702,21 +1174,36 @@ export type ContinuationAssertReadyConfig =
702
1174
  | {
703
1175
  kind: 'erc20BalanceGte';
704
1176
  chainId: Positive;
705
- token: StartsWith0X;
706
- owner: StartsWith0X;
1177
+ /**
1178
+ * EVM address: 0x followed by 40 hex characters
1179
+ */
1180
+ token: Address;
1181
+ /**
1182
+ * EVM address: 0x followed by 40 hex characters
1183
+ */
1184
+ owner: Address;
707
1185
  minAmount: string;
708
1186
  }
709
1187
  | {
710
1188
  kind: 'nativeBalanceGte';
711
1189
  chainId: Positive;
712
- owner: StartsWith0X;
1190
+ /**
1191
+ * EVM address: 0x followed by 40 hex characters
1192
+ */
1193
+ owner: Address;
713
1194
  minAmount: string;
714
1195
  }
715
1196
  | {
716
1197
  kind: 'call';
717
1198
  chainId: Positive;
718
- to: StartsWith0X;
719
- calldata: StartsWith0X;
1199
+ /**
1200
+ * EVM address: 0x followed by 40 hex characters
1201
+ */
1202
+ to: string;
1203
+ /**
1204
+ * Hex bytes: 0x followed by an even number of hex characters
1205
+ */
1206
+ calldata: string;
720
1207
  comparator: 'gte' | 'eq' | 'lte';
721
1208
  value: string;
722
1209
  };
@@ -729,6 +1216,9 @@ export interface LifiZapConfig {
729
1216
  }
730
1217
  | {
731
1218
  kind: 'erc20';
1219
+ /**
1220
+ * EVM address: 0x followed by 40 hex characters
1221
+ */
732
1222
  token: Address;
733
1223
  chainId: Positive;
734
1224
  };
@@ -742,6 +1232,9 @@ export interface LifiZapAsyncConfig {
742
1232
  }
743
1233
  | {
744
1234
  kind: 'erc20';
1235
+ /**
1236
+ * EVM address: 0x followed by 40 hex characters
1237
+ */
745
1238
  token: Address;
746
1239
  chainId: Positive;
747
1240
  };
@@ -755,6 +1248,9 @@ export interface ParaswapBuyConfig {
755
1248
  }
756
1249
  | {
757
1250
  kind: 'erc20';
1251
+ /**
1252
+ * EVM address: 0x followed by 40 hex characters
1253
+ */
758
1254
  token: Address;
759
1255
  chainId: Positive;
760
1256
  };
@@ -763,6 +1259,9 @@ export interface ParaswapBuyConfig {
763
1259
  destDecimals: NonNegative;
764
1260
  maxSlippageBps?: Between010000;
765
1261
  partner?: string;
1262
+ /**
1263
+ * EVM address: 0x followed by 40 hex characters
1264
+ */
766
1265
  partnerAddress?: string;
767
1266
  /**
768
1267
  * Integrator fee in basis points; non-negative integer string capped at 9000.
@@ -771,6 +1270,9 @@ export interface ParaswapBuyConfig {
771
1270
  }
772
1271
 
773
1272
  export interface CorePeekConfig {
1273
+ /**
1274
+ * EVM address: 0x followed by 40 hex characters
1275
+ */
774
1276
  target: Address;
775
1277
  functionSignature: string;
776
1278
  args?: string[];
@@ -793,6 +1295,9 @@ export interface FlySwapConfig {
793
1295
  }
794
1296
  | {
795
1297
  kind: 'erc20';
1298
+ /**
1299
+ * EVM address: 0x followed by 40 hex characters
1300
+ */
796
1301
  token: Address;
797
1302
  chainId: Positive;
798
1303
  };
@@ -812,6 +1317,9 @@ export interface CoreNumericInvariantGuardConfig {
812
1317
  }
813
1318
 
814
1319
  export interface BalanceOfMaterialiserConfig {
1320
+ /**
1321
+ * EVM address: 0x followed by 40 hex characters
1322
+ */
815
1323
  owner: Address;
816
1324
  }
817
1325
 
@@ -830,6 +1338,9 @@ export type DirectDepositMaterialiserConfig =
830
1338
  };
831
1339
 
832
1340
  export interface CallMaterialiserConfig {
1341
+ /**
1342
+ * EVM address: 0x followed by 40 hex characters
1343
+ */
833
1344
  target: Address;
834
1345
  calldata: string;
835
1346
  }