@lifi/composer-sdk 0.6.3 → 0.7.1

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.
Files changed (38) hide show
  1. package/README.md +4 -0
  2. package/dist/authoring/FlowBuilderCore.cjs +17 -4
  3. package/dist/authoring/FlowBuilderCore.cjs.map +1 -1
  4. package/dist/authoring/FlowBuilderCore.d.cts +12 -4
  5. package/dist/authoring/FlowBuilderCore.d.ts +12 -4
  6. package/dist/authoring/FlowBuilderCore.js +20 -4
  7. package/dist/authoring/FlowBuilderCore.js.map +1 -1
  8. package/dist/authoring/handles.cjs.map +1 -1
  9. package/dist/authoring/handles.d.cts +35 -1
  10. package/dist/authoring/handles.d.ts +35 -1
  11. package/dist/authoring/handles.js.map +1 -1
  12. package/dist/client.cjs +1 -1
  13. package/dist/client.js +1 -1
  14. package/dist/generated/config.generated.cjs.map +1 -1
  15. package/dist/generated/config.generated.d.cts +500 -6
  16. package/dist/generated/config.generated.d.ts +500 -6
  17. package/dist/generated/operations.generated.cjs +36 -1
  18. package/dist/generated/operations.generated.cjs.map +1 -1
  19. package/dist/generated/operations.generated.d.cts +101 -5
  20. package/dist/generated/operations.generated.d.ts +101 -5
  21. package/dist/generated/operations.generated.js +36 -1
  22. package/dist/generated/operations.generated.js.map +1 -1
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.d.cts +3 -3
  25. package/dist/index.d.ts +3 -3
  26. package/dist/index.js.map +1 -1
  27. package/package.json +3 -3
  28. package/src/authoring/FlowBuilderCore.ts +59 -19
  29. package/src/authoring/handles.ts +67 -0
  30. package/src/examples/aaveBorrow.ts +129 -0
  31. package/src/examples/aaveHealthFactorExplode.ts +63 -0
  32. package/src/examples/morphoBlueBorrow.ts +94 -0
  33. package/src/examples/morphoBlueRepay.ts +133 -0
  34. package/src/examples/run.ts +30 -0
  35. package/src/examples/splitAndZap.ts +9 -8
  36. package/src/generated/config.generated.ts +516 -5
  37. package/src/generated/operations.generated.ts +211 -3
  38. package/src/index.ts +5 -1
@@ -8,6 +8,152 @@ type Between010000 = number;
8
8
  interface CoreSplitConfig {
9
9
  bps: Between010000;
10
10
  }
11
+ /**
12
+ * an array of at most 16 item(s)
13
+ *
14
+ * @minItems 2
15
+ * @maxItems 16
16
+ */
17
+ type MaxItems16 = [Between19999, Between19999] | [Between19999, Between19999, Between19999] | [Between19999, Between19999, Between19999, Between19999] | [Between19999, Between19999, Between19999, Between19999, Between19999] | [
18
+ Between19999,
19
+ Between19999,
20
+ Between19999,
21
+ Between19999,
22
+ Between19999,
23
+ Between19999
24
+ ] | [
25
+ Between19999,
26
+ Between19999,
27
+ Between19999,
28
+ Between19999,
29
+ Between19999,
30
+ Between19999,
31
+ Between19999
32
+ ] | [
33
+ Between19999,
34
+ Between19999,
35
+ Between19999,
36
+ Between19999,
37
+ Between19999,
38
+ Between19999,
39
+ Between19999,
40
+ Between19999
41
+ ] | [
42
+ Between19999,
43
+ Between19999,
44
+ Between19999,
45
+ Between19999,
46
+ Between19999,
47
+ Between19999,
48
+ Between19999,
49
+ Between19999,
50
+ Between19999
51
+ ] | [
52
+ Between19999,
53
+ Between19999,
54
+ Between19999,
55
+ Between19999,
56
+ Between19999,
57
+ Between19999,
58
+ Between19999,
59
+ Between19999,
60
+ Between19999,
61
+ Between19999
62
+ ] | [
63
+ Between19999,
64
+ Between19999,
65
+ Between19999,
66
+ Between19999,
67
+ Between19999,
68
+ Between19999,
69
+ Between19999,
70
+ Between19999,
71
+ Between19999,
72
+ Between19999,
73
+ Between19999
74
+ ] | [
75
+ Between19999,
76
+ Between19999,
77
+ Between19999,
78
+ Between19999,
79
+ Between19999,
80
+ Between19999,
81
+ Between19999,
82
+ Between19999,
83
+ Between19999,
84
+ Between19999,
85
+ Between19999,
86
+ Between19999
87
+ ] | [
88
+ Between19999,
89
+ Between19999,
90
+ Between19999,
91
+ Between19999,
92
+ Between19999,
93
+ Between19999,
94
+ Between19999,
95
+ Between19999,
96
+ Between19999,
97
+ Between19999,
98
+ Between19999,
99
+ Between19999,
100
+ Between19999
101
+ ] | [
102
+ Between19999,
103
+ Between19999,
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
+ ] | [
117
+ Between19999,
118
+ Between19999,
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
+ ] | [
133
+ Between19999,
134
+ Between19999,
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
+ ];
150
+ /**
151
+ * a number between 1 and 9999
152
+ */
153
+ type Between19999 = number;
154
+ interface CorePartitionConfig {
155
+ bps: MaxItems16;
156
+ }
11
157
  /**
12
158
  * a positive number
13
159
  */
@@ -28,6 +174,9 @@ interface LifiSwapConfig {
28
174
  chainId: Positive;
29
175
  } | {
30
176
  kind: 'erc20';
177
+ /**
178
+ * EVM address: 0x followed by 40 hex characters
179
+ */
31
180
  token: Address;
32
181
  chainId: Positive;
33
182
  };
@@ -66,6 +215,9 @@ interface LifiBridgeConfig {
66
215
  chainId: Positive;
67
216
  } | {
68
217
  kind: 'erc20';
218
+ /**
219
+ * EVM address: 0x followed by 40 hex characters
220
+ */
69
221
  token: Address;
70
222
  chainId: Positive;
71
223
  };
@@ -134,10 +286,19 @@ interface CoreBpsUpConfig {
134
286
  bps: NonNegative;
135
287
  }
136
288
  interface CoreApproveConfig {
289
+ /**
290
+ * EVM address: 0x followed by 40 hex characters
291
+ */
137
292
  spender: Address;
138
293
  }
139
294
  interface CoreBalanceOfConfig {
295
+ /**
296
+ * EVM address: 0x followed by 40 hex characters
297
+ */
140
298
  token: Address;
299
+ /**
300
+ * EVM address: 0x followed by 40 hex characters
301
+ */
141
302
  owner?: Address;
142
303
  }
143
304
  interface CoreTransferConfig {
@@ -229,33 +390,66 @@ interface CoreAsResourceConfig {
229
390
  chainId: Positive;
230
391
  } | {
231
392
  kind: 'erc20';
393
+ /**
394
+ * EVM address: 0x followed by 40 hex characters
395
+ */
232
396
  token: Address;
233
397
  chainId: Positive;
234
398
  };
235
399
  }
236
400
  interface AaveBorrowConfig {
401
+ /**
402
+ * EVM address: 0x followed by 40 hex characters
403
+ */
237
404
  pool: string;
405
+ /**
406
+ * EVM address: 0x followed by 40 hex characters
407
+ */
238
408
  asset: string;
409
+ /**
410
+ * EVM address: 0x followed by 40 hex characters
411
+ */
239
412
  variableDebtToken: string;
240
413
  amount: IntegerStringInput;
241
414
  referralId?: number;
242
415
  }
243
416
  type AaveRepayConfig = {
417
+ /**
418
+ * EVM address: 0x followed by 40 hex characters
419
+ */
244
420
  pool: string;
245
421
  mode: 'exact';
246
422
  } | {
423
+ /**
424
+ * EVM address: 0x followed by 40 hex characters
425
+ */
247
426
  pool: string;
248
427
  mode: 'max';
249
428
  };
250
429
  interface AaveRepayWithATokensConfig {
430
+ /**
431
+ * EVM address: 0x followed by 40 hex characters
432
+ */
251
433
  pool: string;
434
+ /**
435
+ * EVM address: 0x followed by 40 hex characters
436
+ */
252
437
  asset: string;
253
438
  }
254
439
  interface AaveClaimRewardsConfig {
440
+ /**
441
+ * EVM address: 0x followed by 40 hex characters
442
+ */
255
443
  rewardsController: string;
256
444
  assets: string[];
445
+ /**
446
+ * EVM address: 0x followed by 40 hex characters
447
+ */
257
448
  reward: string;
258
449
  amount?: IntegerStringInput;
450
+ /**
451
+ * EVM address: 0x followed by 40 hex characters
452
+ */
259
453
  to?: string;
260
454
  }
261
455
  /**
@@ -263,15 +457,30 @@ interface AaveClaimRewardsConfig {
263
457
  */
264
458
  type Between0255 = number;
265
459
  interface AaveSetEModeConfig {
460
+ /**
461
+ * EVM address: 0x followed by 40 hex characters
462
+ */
266
463
  pool: string;
267
464
  category: Between0255;
268
465
  }
269
466
  interface AaveGetHealthFactorConfig {
467
+ /**
468
+ * EVM address: 0x followed by 40 hex characters
469
+ */
270
470
  pool: string;
471
+ /**
472
+ * EVM address: 0x followed by 40 hex characters
473
+ */
271
474
  user?: string;
272
475
  }
273
476
  type MorphoBlueSupplyCollateralConfig = ({
477
+ /**
478
+ * EVM address: 0x followed by 40 hex characters
479
+ */
274
480
  morpho?: string;
481
+ /**
482
+ * EVM address: 0x followed by 40 hex characters
483
+ */
275
484
  onBehalfOf?: string;
276
485
  mode: 'exact';
277
486
  /**
@@ -279,18 +488,42 @@ type MorphoBlueSupplyCollateralConfig = ({
279
488
  */
280
489
  marketId: string;
281
490
  } | {
491
+ /**
492
+ * EVM address: 0x followed by 40 hex characters
493
+ */
282
494
  morpho?: string;
495
+ /**
496
+ * EVM address: 0x followed by 40 hex characters
497
+ */
283
498
  onBehalfOf?: string;
284
499
  mode: 'exact';
285
500
  marketParams: {
501
+ /**
502
+ * EVM address: 0x followed by 40 hex characters
503
+ */
286
504
  loanToken: string;
505
+ /**
506
+ * EVM address: 0x followed by 40 hex characters
507
+ */
287
508
  collateralToken: string;
509
+ /**
510
+ * EVM address: 0x followed by 40 hex characters
511
+ */
288
512
  oracle: string;
513
+ /**
514
+ * EVM address: 0x followed by 40 hex characters
515
+ */
289
516
  irm: string;
290
517
  lltv: string;
291
518
  };
292
519
  }) | ({
520
+ /**
521
+ * EVM address: 0x followed by 40 hex characters
522
+ */
293
523
  morpho?: string;
524
+ /**
525
+ * EVM address: 0x followed by 40 hex characters
526
+ */
294
527
  onBehalfOf?: string;
295
528
  mode: 'all';
296
529
  /**
@@ -298,62 +531,143 @@ type MorphoBlueSupplyCollateralConfig = ({
298
531
  */
299
532
  marketId: string;
300
533
  } | {
534
+ /**
535
+ * EVM address: 0x followed by 40 hex characters
536
+ */
301
537
  morpho?: string;
538
+ /**
539
+ * EVM address: 0x followed by 40 hex characters
540
+ */
302
541
  onBehalfOf?: string;
303
542
  mode: 'all';
304
543
  marketParams: {
544
+ /**
545
+ * EVM address: 0x followed by 40 hex characters
546
+ */
305
547
  loanToken: string;
548
+ /**
549
+ * EVM address: 0x followed by 40 hex characters
550
+ */
306
551
  collateralToken: string;
552
+ /**
553
+ * EVM address: 0x followed by 40 hex characters
554
+ */
307
555
  oracle: string;
556
+ /**
557
+ * EVM address: 0x followed by 40 hex characters
558
+ */
308
559
  irm: string;
309
560
  lltv: string;
310
561
  };
311
562
  });
312
563
  type MorphoBlueWithdrawCollateralConfig = {
564
+ /**
565
+ * EVM address: 0x followed by 40 hex characters
566
+ */
313
567
  morpho?: string;
314
568
  amount: IntegerStringInput;
569
+ /**
570
+ * EVM address: 0x followed by 40 hex characters
571
+ */
315
572
  onBehalfOf?: string;
573
+ /**
574
+ * EVM address: 0x followed by 40 hex characters
575
+ */
316
576
  receiver?: string;
317
577
  /**
318
578
  * a string matching the pattern ^0x[0-9a-fA-F]{64}$
319
579
  */
320
580
  marketId: string;
321
581
  } | {
582
+ /**
583
+ * EVM address: 0x followed by 40 hex characters
584
+ */
322
585
  morpho?: string;
323
586
  amount: IntegerStringInput;
587
+ /**
588
+ * EVM address: 0x followed by 40 hex characters
589
+ */
324
590
  onBehalfOf?: string;
591
+ /**
592
+ * EVM address: 0x followed by 40 hex characters
593
+ */
325
594
  receiver?: string;
326
595
  marketParams: {
596
+ /**
597
+ * EVM address: 0x followed by 40 hex characters
598
+ */
327
599
  loanToken: string;
600
+ /**
601
+ * EVM address: 0x followed by 40 hex characters
602
+ */
328
603
  collateralToken: string;
604
+ /**
605
+ * EVM address: 0x followed by 40 hex characters
606
+ */
329
607
  oracle: string;
608
+ /**
609
+ * EVM address: 0x followed by 40 hex characters
610
+ */
330
611
  irm: string;
331
612
  lltv: string;
332
613
  };
333
614
  };
334
615
  type MorphoBlueBorrowConfig = {
616
+ /**
617
+ * EVM address: 0x followed by 40 hex characters
618
+ */
335
619
  morpho?: string;
336
620
  amount: IntegerStringInput;
621
+ /**
622
+ * EVM address: 0x followed by 40 hex characters
623
+ */
337
624
  onBehalfOf?: string;
625
+ /**
626
+ * EVM address: 0x followed by 40 hex characters
627
+ */
338
628
  receiver?: string;
339
629
  /**
340
630
  * a string matching the pattern ^0x[0-9a-fA-F]{64}$
341
631
  */
342
632
  marketId: string;
343
633
  } | {
634
+ /**
635
+ * EVM address: 0x followed by 40 hex characters
636
+ */
344
637
  morpho?: string;
345
638
  amount: IntegerStringInput;
639
+ /**
640
+ * EVM address: 0x followed by 40 hex characters
641
+ */
346
642
  onBehalfOf?: string;
643
+ /**
644
+ * EVM address: 0x followed by 40 hex characters
645
+ */
347
646
  receiver?: string;
348
647
  marketParams: {
648
+ /**
649
+ * EVM address: 0x followed by 40 hex characters
650
+ */
349
651
  loanToken: string;
652
+ /**
653
+ * EVM address: 0x followed by 40 hex characters
654
+ */
350
655
  collateralToken: string;
656
+ /**
657
+ * EVM address: 0x followed by 40 hex characters
658
+ */
351
659
  oracle: string;
660
+ /**
661
+ * EVM address: 0x followed by 40 hex characters
662
+ */
352
663
  irm: string;
353
664
  lltv: string;
354
665
  };
355
666
  };
356
667
  type MorphoBlueRepayConfig = ({
668
+ /**
669
+ * EVM address: 0x followed by 40 hex characters
670
+ */
357
671
  morpho?: string;
358
672
  mode: 'exact';
359
673
  /**
@@ -361,16 +675,34 @@ type MorphoBlueRepayConfig = ({
361
675
  */
362
676
  marketId: string;
363
677
  } | {
678
+ /**
679
+ * EVM address: 0x followed by 40 hex characters
680
+ */
364
681
  morpho?: string;
365
682
  mode: 'exact';
366
683
  marketParams: {
684
+ /**
685
+ * EVM address: 0x followed by 40 hex characters
686
+ */
367
687
  loanToken: string;
688
+ /**
689
+ * EVM address: 0x followed by 40 hex characters
690
+ */
368
691
  collateralToken: string;
692
+ /**
693
+ * EVM address: 0x followed by 40 hex characters
694
+ */
369
695
  oracle: string;
696
+ /**
697
+ * EVM address: 0x followed by 40 hex characters
698
+ */
370
699
  irm: string;
371
700
  lltv: string;
372
701
  };
373
702
  }) | ({
703
+ /**
704
+ * EVM address: 0x followed by 40 hex characters
705
+ */
374
706
  morpho?: string;
375
707
  mode: 'max';
376
708
  /**
@@ -378,93 +710,216 @@ type MorphoBlueRepayConfig = ({
378
710
  */
379
711
  marketId: string;
380
712
  } | {
713
+ /**
714
+ * EVM address: 0x followed by 40 hex characters
715
+ */
381
716
  morpho?: string;
382
717
  mode: 'max';
383
718
  marketParams: {
719
+ /**
720
+ * EVM address: 0x followed by 40 hex characters
721
+ */
384
722
  loanToken: string;
723
+ /**
724
+ * EVM address: 0x followed by 40 hex characters
725
+ */
385
726
  collateralToken: string;
727
+ /**
728
+ * EVM address: 0x followed by 40 hex characters
729
+ */
386
730
  oracle: string;
731
+ /**
732
+ * EVM address: 0x followed by 40 hex characters
733
+ */
387
734
  irm: string;
388
735
  lltv: string;
389
736
  };
390
737
  });
391
738
  type MorphoBlueSupplyConfig = {
739
+ /**
740
+ * EVM address: 0x followed by 40 hex characters
741
+ */
392
742
  morpho?: string;
743
+ /**
744
+ * EVM address: 0x followed by 40 hex characters
745
+ */
393
746
  onBehalfOf?: string;
394
747
  /**
395
748
  * a string matching the pattern ^0x[0-9a-fA-F]{64}$
396
749
  */
397
750
  marketId: string;
398
751
  } | {
752
+ /**
753
+ * EVM address: 0x followed by 40 hex characters
754
+ */
399
755
  morpho?: string;
756
+ /**
757
+ * EVM address: 0x followed by 40 hex characters
758
+ */
400
759
  onBehalfOf?: string;
401
760
  marketParams: {
761
+ /**
762
+ * EVM address: 0x followed by 40 hex characters
763
+ */
402
764
  loanToken: string;
765
+ /**
766
+ * EVM address: 0x followed by 40 hex characters
767
+ */
403
768
  collateralToken: string;
769
+ /**
770
+ * EVM address: 0x followed by 40 hex characters
771
+ */
404
772
  oracle: string;
773
+ /**
774
+ * EVM address: 0x followed by 40 hex characters
775
+ */
405
776
  irm: string;
406
777
  lltv: string;
407
778
  };
408
779
  };
409
780
  type MorphoBlueWithdrawConfig = ({
781
+ /**
782
+ * EVM address: 0x followed by 40 hex characters
783
+ */
410
784
  morpho?: string;
411
785
  mode: 'exact';
412
786
  amount: IntegerStringInput;
787
+ /**
788
+ * EVM address: 0x followed by 40 hex characters
789
+ */
413
790
  onBehalfOf?: string;
791
+ /**
792
+ * EVM address: 0x followed by 40 hex characters
793
+ */
414
794
  receiver?: string;
415
795
  /**
416
796
  * a string matching the pattern ^0x[0-9a-fA-F]{64}$
417
797
  */
418
798
  marketId: string;
419
799
  } | {
800
+ /**
801
+ * EVM address: 0x followed by 40 hex characters
802
+ */
420
803
  morpho?: string;
421
804
  mode: 'exact';
422
805
  amount: IntegerStringInput;
806
+ /**
807
+ * EVM address: 0x followed by 40 hex characters
808
+ */
423
809
  onBehalfOf?: string;
810
+ /**
811
+ * EVM address: 0x followed by 40 hex characters
812
+ */
424
813
  receiver?: string;
425
814
  marketParams: {
815
+ /**
816
+ * EVM address: 0x followed by 40 hex characters
817
+ */
426
818
  loanToken: string;
819
+ /**
820
+ * EVM address: 0x followed by 40 hex characters
821
+ */
427
822
  collateralToken: string;
823
+ /**
824
+ * EVM address: 0x followed by 40 hex characters
825
+ */
428
826
  oracle: string;
827
+ /**
828
+ * EVM address: 0x followed by 40 hex characters
829
+ */
429
830
  irm: string;
430
831
  lltv: string;
431
832
  };
432
833
  }) | ({
834
+ /**
835
+ * EVM address: 0x followed by 40 hex characters
836
+ */
433
837
  morpho?: string;
434
838
  mode: 'max';
839
+ /**
840
+ * EVM address: 0x followed by 40 hex characters
841
+ */
435
842
  onBehalfOf?: string;
843
+ /**
844
+ * EVM address: 0x followed by 40 hex characters
845
+ */
436
846
  receiver?: string;
437
847
  /**
438
848
  * a string matching the pattern ^0x[0-9a-fA-F]{64}$
439
849
  */
440
850
  marketId: string;
441
851
  } | {
852
+ /**
853
+ * EVM address: 0x followed by 40 hex characters
854
+ */
442
855
  morpho?: string;
443
856
  mode: 'max';
857
+ /**
858
+ * EVM address: 0x followed by 40 hex characters
859
+ */
444
860
  onBehalfOf?: string;
861
+ /**
862
+ * EVM address: 0x followed by 40 hex characters
863
+ */
445
864
  receiver?: string;
446
865
  marketParams: {
866
+ /**
867
+ * EVM address: 0x followed by 40 hex characters
868
+ */
447
869
  loanToken: string;
870
+ /**
871
+ * EVM address: 0x followed by 40 hex characters
872
+ */
448
873
  collateralToken: string;
874
+ /**
875
+ * EVM address: 0x followed by 40 hex characters
876
+ */
449
877
  oracle: string;
878
+ /**
879
+ * EVM address: 0x followed by 40 hex characters
880
+ */
450
881
  irm: string;
451
882
  lltv: string;
452
883
  };
453
884
  });
454
885
  type MorphoBlueGetPositionConfig = {
886
+ /**
887
+ * EVM address: 0x followed by 40 hex characters
888
+ */
455
889
  morpho?: string;
890
+ /**
891
+ * EVM address: 0x followed by 40 hex characters
892
+ */
456
893
  user?: string;
457
894
  /**
458
895
  * a string matching the pattern ^0x[0-9a-fA-F]{64}$
459
896
  */
460
897
  marketId: string;
461
898
  } | {
899
+ /**
900
+ * EVM address: 0x followed by 40 hex characters
901
+ */
462
902
  morpho?: string;
903
+ /**
904
+ * EVM address: 0x followed by 40 hex characters
905
+ */
463
906
  user?: string;
464
907
  marketParams: {
908
+ /**
909
+ * EVM address: 0x followed by 40 hex characters
910
+ */
465
911
  loanToken: string;
912
+ /**
913
+ * EVM address: 0x followed by 40 hex characters
914
+ */
466
915
  collateralToken: string;
916
+ /**
917
+ * EVM address: 0x followed by 40 hex characters
918
+ */
467
919
  oracle: string;
920
+ /**
921
+ * EVM address: 0x followed by 40 hex characters
922
+ */
468
923
  irm: string;
469
924
  lltv: string;
470
925
  };
@@ -476,19 +931,34 @@ interface LifiFlashloanRepayConfig {
476
931
  type ContinuationAssertReadyConfig = {
477
932
  kind: 'erc20BalanceGte';
478
933
  chainId: Positive;
479
- token: StartsWith0X;
480
- owner: StartsWith0X;
934
+ /**
935
+ * EVM address: 0x followed by 40 hex characters
936
+ */
937
+ token: Address;
938
+ /**
939
+ * EVM address: 0x followed by 40 hex characters
940
+ */
941
+ owner: Address;
481
942
  minAmount: string;
482
943
  } | {
483
944
  kind: 'nativeBalanceGte';
484
945
  chainId: Positive;
485
- owner: StartsWith0X;
946
+ /**
947
+ * EVM address: 0x followed by 40 hex characters
948
+ */
949
+ owner: Address;
486
950
  minAmount: string;
487
951
  } | {
488
952
  kind: 'call';
489
953
  chainId: Positive;
490
- to: StartsWith0X;
491
- calldata: StartsWith0X;
954
+ /**
955
+ * EVM address: 0x followed by 40 hex characters
956
+ */
957
+ to: string;
958
+ /**
959
+ * Hex bytes: 0x followed by an even number of hex characters
960
+ */
961
+ calldata: string;
492
962
  comparator: 'gte' | 'eq' | 'lte';
493
963
  value: string;
494
964
  };
@@ -498,6 +968,9 @@ interface LifiZapConfig {
498
968
  chainId: Positive;
499
969
  } | {
500
970
  kind: 'erc20';
971
+ /**
972
+ * EVM address: 0x followed by 40 hex characters
973
+ */
501
974
  token: Address;
502
975
  chainId: Positive;
503
976
  };
@@ -508,6 +981,9 @@ interface LifiZapAsyncConfig {
508
981
  chainId: Positive;
509
982
  } | {
510
983
  kind: 'erc20';
984
+ /**
985
+ * EVM address: 0x followed by 40 hex characters
986
+ */
511
987
  token: Address;
512
988
  chainId: Positive;
513
989
  };
@@ -518,6 +994,9 @@ interface ParaswapBuyConfig {
518
994
  chainId: Positive;
519
995
  } | {
520
996
  kind: 'erc20';
997
+ /**
998
+ * EVM address: 0x followed by 40 hex characters
999
+ */
521
1000
  token: Address;
522
1001
  chainId: Positive;
523
1002
  };
@@ -526,6 +1005,9 @@ interface ParaswapBuyConfig {
526
1005
  destDecimals: NonNegative;
527
1006
  maxSlippageBps?: Between010000;
528
1007
  partner?: string;
1008
+ /**
1009
+ * EVM address: 0x followed by 40 hex characters
1010
+ */
529
1011
  partnerAddress?: string;
530
1012
  /**
531
1013
  * Integrator fee in basis points; non-negative integer string capped at 9000.
@@ -533,6 +1015,9 @@ interface ParaswapBuyConfig {
533
1015
  partnerFeeBps?: string;
534
1016
  }
535
1017
  interface CorePeekConfig {
1018
+ /**
1019
+ * EVM address: 0x followed by 40 hex characters
1020
+ */
536
1021
  target: Address;
537
1022
  functionSignature: string;
538
1023
  args?: string[];
@@ -551,6 +1036,9 @@ interface FlySwapConfig {
551
1036
  chainId: Positive;
552
1037
  } | {
553
1038
  kind: 'erc20';
1039
+ /**
1040
+ * EVM address: 0x followed by 40 hex characters
1041
+ */
554
1042
  token: Address;
555
1043
  chainId: Positive;
556
1044
  };
@@ -567,6 +1055,9 @@ interface CoreNumericInvariantGuardConfig {
567
1055
  threshold: IntegerStringInput;
568
1056
  }
569
1057
  interface BalanceOfMaterialiserConfig {
1058
+ /**
1059
+ * EVM address: 0x followed by 40 hex characters
1060
+ */
570
1061
  owner: Address;
571
1062
  }
572
1063
  type DirectDepositMaterialiserConfig = {
@@ -580,6 +1071,9 @@ type DirectDepositMaterialiserConfig = {
580
1071
  simAmount?: string;
581
1072
  };
582
1073
  interface CallMaterialiserConfig {
1074
+ /**
1075
+ * EVM address: 0x followed by 40 hex characters
1076
+ */
583
1077
  target: Address;
584
1078
  calldata: string;
585
1079
  }
@@ -603,4 +1097,4 @@ interface Erc20AllowancePreconditionConfig {
603
1097
  allowance: IntegerStringInput;
604
1098
  }
605
1099
 
606
- export type { AaveBorrowConfig, AaveClaimRewardsConfig, AaveGetHealthFactorConfig, AaveRepayConfig, AaveRepayWithATokensConfig, AaveSetEModeConfig, BalanceOfMaterialiserConfig, Between01, Between010000, Between0255, Between03318, Between05000, CallMaterialiserConfig, ContinuationAssertReadyConfig, CoreApproveConfig, CoreAsResourceConfig, CoreBalanceOfConfig, CoreBpsDownConfig, CoreBpsUpConfig, CoreCallConfig, CoreEmitEvent1Config, CoreEmitEvent2Config, CoreEmitEvent3Config, CoreEmitEvent4Config, CoreInvokeConfig, CoreNumericInvariantGuardConfig, CorePeekConfig, CoreRawCallConfig, CoreSplitConfig, CoreStaticCallConfig, CoreTransferConfig, DirectDepositMaterialiserConfig, Erc20AllowancePreconditionConfig, Erc20BalancePreconditionConfig, FlashloanMaterialiserConfig, FlySwapConfig, InvariantEqConfig, InvariantGtConfig, InvariantGteConfig, InvariantLtConfig, InvariantLteConfig, InvariantNeqConfig, InvariantNumericConfig, InvariantNumericInRangeConfig, LifiBridgeConfig, LifiFlashloanRepayConfig, LifiSwapConfig, LifiZapAsyncConfig, LifiZapConfig, MaxItems50, MaxLength64, MaxLength65536, MorphoBlueBorrowConfig, MorphoBlueGetPositionConfig, MorphoBlueRepayConfig, MorphoBlueSupplyCollateralConfig, MorphoBlueSupplyConfig, MorphoBlueWithdrawCollateralConfig, MorphoBlueWithdrawConfig, NativeBalancePreconditionConfig, NonNegative, ParaswapBuyConfig, Positive, SlippageGuardConfig, StartsWith0X };
1100
+ export type { AaveBorrowConfig, AaveClaimRewardsConfig, AaveGetHealthFactorConfig, AaveRepayConfig, AaveRepayWithATokensConfig, AaveSetEModeConfig, BalanceOfMaterialiserConfig, Between01, Between010000, Between0255, Between03318, Between05000, Between19999, CallMaterialiserConfig, ContinuationAssertReadyConfig, CoreApproveConfig, CoreAsResourceConfig, CoreBalanceOfConfig, CoreBpsDownConfig, CoreBpsUpConfig, CoreCallConfig, CoreEmitEvent1Config, CoreEmitEvent2Config, CoreEmitEvent3Config, CoreEmitEvent4Config, CoreInvokeConfig, CoreNumericInvariantGuardConfig, CorePartitionConfig, CorePeekConfig, CoreRawCallConfig, CoreSplitConfig, CoreStaticCallConfig, CoreTransferConfig, DirectDepositMaterialiserConfig, Erc20AllowancePreconditionConfig, Erc20BalancePreconditionConfig, FlashloanMaterialiserConfig, FlySwapConfig, InvariantEqConfig, InvariantGtConfig, InvariantGteConfig, InvariantLtConfig, InvariantLteConfig, InvariantNeqConfig, InvariantNumericConfig, InvariantNumericInRangeConfig, LifiBridgeConfig, LifiFlashloanRepayConfig, LifiSwapConfig, LifiZapAsyncConfig, LifiZapConfig, MaxItems16, MaxItems50, MaxLength64, MaxLength65536, MorphoBlueBorrowConfig, MorphoBlueGetPositionConfig, MorphoBlueRepayConfig, MorphoBlueSupplyCollateralConfig, MorphoBlueSupplyConfig, MorphoBlueWithdrawCollateralConfig, MorphoBlueWithdrawConfig, NativeBalancePreconditionConfig, NonNegative, ParaswapBuyConfig, Positive, SlippageGuardConfig, StartsWith0X };