@hyperlane-xyz/cli 4.0.0-alpha.1 → 4.0.0-alpha.2

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 (45) hide show
  1. package/dist/cli.js +0 -0
  2. package/dist/src/commands/core.d.ts +1 -1
  3. package/dist/src/commands/core.d.ts.map +1 -1
  4. package/dist/src/commands/core.js +15 -33
  5. package/dist/src/commands/core.js.map +1 -1
  6. package/dist/src/commands/warp.d.ts +1 -1
  7. package/dist/src/commands/warp.d.ts.map +1 -1
  8. package/dist/src/commands/warp.js +12 -9
  9. package/dist/src/commands/warp.js.map +1 -1
  10. package/dist/src/config/chain.d.ts.map +1 -1
  11. package/dist/src/config/chain.js +5 -7
  12. package/dist/src/config/chain.js.map +1 -1
  13. package/dist/src/config/core.d.ts +7 -0
  14. package/dist/src/config/core.d.ts.map +1 -0
  15. package/dist/src/config/core.js +48 -0
  16. package/dist/src/config/core.js.map +1 -0
  17. package/dist/src/config/hooks.d.ts +528 -368
  18. package/dist/src/config/hooks.d.ts.map +1 -1
  19. package/dist/src/config/hooks.js +78 -75
  20. package/dist/src/config/hooks.js.map +1 -1
  21. package/dist/src/config/ism.d.ts +61 -6
  22. package/dist/src/config/ism.d.ts.map +1 -1
  23. package/dist/src/config/ism.js +81 -42
  24. package/dist/src/config/ism.js.map +1 -1
  25. package/dist/src/config/utils.d.ts +3 -0
  26. package/dist/src/config/utils.d.ts.map +1 -0
  27. package/dist/src/config/utils.js +14 -0
  28. package/dist/src/config/utils.js.map +1 -0
  29. package/dist/src/config/warp.d.ts +2 -2
  30. package/dist/src/config/warp.d.ts.map +1 -1
  31. package/dist/src/config/warp.js +33 -15
  32. package/dist/src/config/warp.js.map +1 -1
  33. package/dist/src/deploy/dry-run.js +1 -1
  34. package/dist/src/deploy/warp.d.ts.map +1 -1
  35. package/dist/src/deploy/warp.js +62 -5
  36. package/dist/src/deploy/warp.js.map +1 -1
  37. package/dist/src/utils/chains.js +1 -1
  38. package/dist/src/utils/chains.js.map +1 -1
  39. package/dist/src/utils/files.d.ts +1 -0
  40. package/dist/src/utils/files.d.ts.map +1 -1
  41. package/dist/src/utils/files.js +7 -0
  42. package/dist/src/utils/files.js.map +1 -1
  43. package/dist/src/version.d.ts +1 -1
  44. package/dist/src/version.js +1 -1
  45. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { ChainMap, ChainName, HookConfig, HookType } from '@hyperlane-xyz/sdk';
2
+ import { ChainMap, HookConfig, HookType } from '@hyperlane-xyz/sdk';
3
3
  import { Address } from '@hyperlane-xyz/utils';
4
4
  import { CommandContext } from '../context/types.js';
5
5
  declare const HooksConfigSchema: z.ZodObject<{
@@ -204,7 +204,7 @@ declare const HooksConfigSchema: z.ZodObject<{
204
204
  ownerOverrides?: Record<string, string> | undefined;
205
205
  }>, z.ZodType<import("@hyperlane-xyz/sdk").DomainRoutingHookConfig, z.ZodTypeDef, import("@hyperlane-xyz/sdk").DomainRoutingHookConfig>, z.ZodType<import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig, z.ZodTypeDef, import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig>, z.ZodType<import("@hyperlane-xyz/sdk").AggregationHookConfig, z.ZodTypeDef, import("@hyperlane-xyz/sdk").AggregationHookConfig>]>;
206
206
  }, "strip", z.ZodTypeAny, {
207
- default: string | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
207
+ default: string | {
208
208
  type: HookType.PROTOCOL_FEE;
209
209
  owner: string;
210
210
  protocolFee: string;
@@ -235,11 +235,42 @@ declare const HooksConfigSchema: z.ZodObject<{
235
235
  tokenExchangeRate: string;
236
236
  }>;
237
237
  ownerOverrides?: Record<string, string> | undefined;
238
- } | (string & {
238
+ } | import("@hyperlane-xyz/sdk").AggregationHookConfig | (string & {
239
+ type: HookType.PROTOCOL_FEE;
240
+ owner: string;
241
+ protocolFee: string;
242
+ beneficiary: string;
243
+ maxProtocolFee: string;
244
+ ownerOverrides?: Record<string, string> | undefined;
245
+ }) | (string & {
246
+ type: HookType.PAUSABLE;
247
+ owner: string;
248
+ paused: boolean;
249
+ ownerOverrides?: Record<string, string> | undefined;
250
+ }) | (string & {
251
+ type: HookType.OP_STACK;
252
+ owner: string;
253
+ nativeBridge: string;
254
+ destinationChain: string;
255
+ ownerOverrides?: Record<string, string> | undefined;
256
+ }) | (string & {
257
+ type: HookType.MERKLE_TREE;
258
+ }) | (string & {
259
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
260
+ owner: string;
261
+ beneficiary: string;
262
+ oracleKey: string;
263
+ overhead: Record<string, number>;
264
+ oracleConfig: Record<string, {
265
+ gasPrice: string;
266
+ tokenExchangeRate: string;
267
+ }>;
268
+ ownerOverrides?: Record<string, string> | undefined;
269
+ }) | (string & {
239
270
  owner: string;
240
271
  ownerOverrides?: Record<string, string> | undefined;
241
272
  } & {
242
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
273
+ domains: ChainMap<string | {
243
274
  type: HookType.PROTOCOL_FEE;
244
275
  owner: string;
245
276
  protocolFee: string;
@@ -270,14 +301,14 @@ declare const HooksConfigSchema: z.ZodObject<{
270
301
  tokenExchangeRate: string;
271
302
  }>;
272
303
  ownerOverrides?: Record<string, string> | undefined;
273
- }>;
304
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
274
305
  } & {
275
306
  type: HookType.ROUTING;
276
307
  }) | (string & {
277
308
  owner: string;
278
309
  ownerOverrides?: Record<string, string> | undefined;
279
310
  } & {
280
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
311
+ domains: ChainMap<string | {
281
312
  type: HookType.PROTOCOL_FEE;
282
313
  owner: string;
283
314
  protocolFee: string;
@@ -308,10 +339,10 @@ declare const HooksConfigSchema: z.ZodObject<{
308
339
  tokenExchangeRate: string;
309
340
  }>;
310
341
  ownerOverrides?: Record<string, string> | undefined;
311
- }>;
342
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
312
343
  } & {
313
344
  type: HookType.FALLBACK_ROUTING;
314
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
345
+ fallback: string | {
315
346
  type: HookType.PROTOCOL_FEE;
316
347
  owner: string;
317
348
  protocolFee: string;
@@ -342,28 +373,28 @@ declare const HooksConfigSchema: z.ZodObject<{
342
373
  tokenExchangeRate: string;
343
374
  }>;
344
375
  ownerOverrides?: Record<string, string> | undefined;
345
- };
346
- }) | (string & import("@hyperlane-xyz/sdk").AggregationHookConfig) | (string & {
376
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
377
+ }) | (string & import("@hyperlane-xyz/sdk").AggregationHookConfig) | ({
347
378
  type: HookType.PROTOCOL_FEE;
348
379
  owner: string;
349
380
  protocolFee: string;
350
381
  beneficiary: string;
351
382
  maxProtocolFee: string;
352
383
  ownerOverrides?: Record<string, string> | undefined;
353
- }) | (string & {
384
+ } & string) | ({
354
385
  type: HookType.PAUSABLE;
355
386
  owner: string;
356
387
  paused: boolean;
357
388
  ownerOverrides?: Record<string, string> | undefined;
358
- }) | (string & {
389
+ } & string) | ({
359
390
  type: HookType.OP_STACK;
360
391
  owner: string;
361
392
  nativeBridge: string;
362
393
  destinationChain: string;
363
394
  ownerOverrides?: Record<string, string> | undefined;
364
- }) | (string & {
395
+ } & string) | ({
365
396
  type: HookType.MERKLE_TREE;
366
- }) | (string & {
397
+ } & string) | ({
367
398
  type: HookType.INTERCHAIN_GAS_PAYMASTER;
368
399
  owner: string;
369
400
  beneficiary: string;
@@ -374,11 +405,11 @@ declare const HooksConfigSchema: z.ZodObject<{
374
405
  tokenExchangeRate: string;
375
406
  }>;
376
407
  ownerOverrides?: Record<string, string> | undefined;
377
- }) | ({
408
+ } & string) | ({
378
409
  owner: string;
379
410
  ownerOverrides?: Record<string, string> | undefined;
380
411
  } & {
381
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
412
+ domains: ChainMap<string | {
382
413
  type: HookType.PROTOCOL_FEE;
383
414
  owner: string;
384
415
  protocolFee: string;
@@ -409,14 +440,14 @@ declare const HooksConfigSchema: z.ZodObject<{
409
440
  tokenExchangeRate: string;
410
441
  }>;
411
442
  ownerOverrides?: Record<string, string> | undefined;
412
- }>;
443
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
413
444
  } & {
414
445
  type: HookType.ROUTING;
415
446
  } & string) | ({
416
447
  owner: string;
417
448
  ownerOverrides?: Record<string, string> | undefined;
418
449
  } & {
419
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
450
+ domains: ChainMap<string | {
420
451
  type: HookType.PROTOCOL_FEE;
421
452
  owner: string;
422
453
  protocolFee: string;
@@ -447,14 +478,14 @@ declare const HooksConfigSchema: z.ZodObject<{
447
478
  tokenExchangeRate: string;
448
479
  }>;
449
480
  ownerOverrides?: Record<string, string> | undefined;
450
- }>;
481
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
451
482
  } & {
452
483
  type: HookType.ROUTING;
453
484
  }) | ({
454
485
  owner: string;
455
486
  ownerOverrides?: Record<string, string> | undefined;
456
487
  } & {
457
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
488
+ domains: ChainMap<string | {
458
489
  type: HookType.PROTOCOL_FEE;
459
490
  owner: string;
460
491
  protocolFee: string;
@@ -485,10 +516,10 @@ declare const HooksConfigSchema: z.ZodObject<{
485
516
  tokenExchangeRate: string;
486
517
  }>;
487
518
  ownerOverrides?: Record<string, string> | undefined;
488
- }>;
519
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
489
520
  } & {
490
521
  type: HookType.FALLBACK_ROUTING;
491
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
522
+ fallback: string | {
492
523
  type: HookType.PROTOCOL_FEE;
493
524
  owner: string;
494
525
  protocolFee: string;
@@ -519,12 +550,12 @@ declare const HooksConfigSchema: z.ZodObject<{
519
550
  tokenExchangeRate: string;
520
551
  }>;
521
552
  ownerOverrides?: Record<string, string> | undefined;
522
- };
553
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
523
554
  } & string) | ({
524
555
  owner: string;
525
556
  ownerOverrides?: Record<string, string> | undefined;
526
557
  } & {
527
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
558
+ domains: ChainMap<string | {
528
559
  type: HookType.PROTOCOL_FEE;
529
560
  owner: string;
530
561
  protocolFee: string;
@@ -555,10 +586,10 @@ declare const HooksConfigSchema: z.ZodObject<{
555
586
  tokenExchangeRate: string;
556
587
  }>;
557
588
  ownerOverrides?: Record<string, string> | undefined;
558
- }>;
589
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
559
590
  } & {
560
591
  type: HookType.FALLBACK_ROUTING;
561
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
592
+ fallback: string | {
562
593
  type: HookType.PROTOCOL_FEE;
563
594
  owner: string;
564
595
  protocolFee: string;
@@ -589,28 +620,29 @@ declare const HooksConfigSchema: z.ZodObject<{
589
620
  tokenExchangeRate: string;
590
621
  }>;
591
622
  ownerOverrides?: Record<string, string> | undefined;
592
- };
593
- }) | (import("@hyperlane-xyz/sdk").AggregationHookConfig & string) | ({
623
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
624
+ }) | (import("@hyperlane-xyz/sdk").AggregationHookConfig & string);
625
+ required: string | {
594
626
  type: HookType.PROTOCOL_FEE;
595
627
  owner: string;
596
628
  protocolFee: string;
597
629
  beneficiary: string;
598
630
  maxProtocolFee: string;
599
631
  ownerOverrides?: Record<string, string> | undefined;
600
- } & string) | ({
632
+ } | {
601
633
  type: HookType.PAUSABLE;
602
634
  owner: string;
603
635
  paused: boolean;
604
636
  ownerOverrides?: Record<string, string> | undefined;
605
- } & string) | ({
637
+ } | {
606
638
  type: HookType.OP_STACK;
607
639
  owner: string;
608
640
  nativeBridge: string;
609
641
  destinationChain: string;
610
642
  ownerOverrides?: Record<string, string> | undefined;
611
- } & string) | ({
643
+ } | {
612
644
  type: HookType.MERKLE_TREE;
613
- } & string) | ({
645
+ } | {
614
646
  type: HookType.INTERCHAIN_GAS_PAYMASTER;
615
647
  owner: string;
616
648
  beneficiary: string;
@@ -621,28 +653,27 @@ declare const HooksConfigSchema: z.ZodObject<{
621
653
  tokenExchangeRate: string;
622
654
  }>;
623
655
  ownerOverrides?: Record<string, string> | undefined;
624
- } & string);
625
- required: string | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
656
+ } | import("@hyperlane-xyz/sdk").AggregationHookConfig | (string & {
626
657
  type: HookType.PROTOCOL_FEE;
627
658
  owner: string;
628
659
  protocolFee: string;
629
660
  beneficiary: string;
630
661
  maxProtocolFee: string;
631
662
  ownerOverrides?: Record<string, string> | undefined;
632
- } | {
663
+ }) | (string & {
633
664
  type: HookType.PAUSABLE;
634
665
  owner: string;
635
666
  paused: boolean;
636
667
  ownerOverrides?: Record<string, string> | undefined;
637
- } | {
668
+ }) | (string & {
638
669
  type: HookType.OP_STACK;
639
670
  owner: string;
640
671
  nativeBridge: string;
641
672
  destinationChain: string;
642
673
  ownerOverrides?: Record<string, string> | undefined;
643
- } | {
674
+ }) | (string & {
644
675
  type: HookType.MERKLE_TREE;
645
- } | {
676
+ }) | (string & {
646
677
  type: HookType.INTERCHAIN_GAS_PAYMASTER;
647
678
  owner: string;
648
679
  beneficiary: string;
@@ -653,11 +684,11 @@ declare const HooksConfigSchema: z.ZodObject<{
653
684
  tokenExchangeRate: string;
654
685
  }>;
655
686
  ownerOverrides?: Record<string, string> | undefined;
656
- } | (string & {
687
+ }) | (string & {
657
688
  owner: string;
658
689
  ownerOverrides?: Record<string, string> | undefined;
659
690
  } & {
660
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
691
+ domains: ChainMap<string | {
661
692
  type: HookType.PROTOCOL_FEE;
662
693
  owner: string;
663
694
  protocolFee: string;
@@ -688,14 +719,14 @@ declare const HooksConfigSchema: z.ZodObject<{
688
719
  tokenExchangeRate: string;
689
720
  }>;
690
721
  ownerOverrides?: Record<string, string> | undefined;
691
- }>;
722
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
692
723
  } & {
693
724
  type: HookType.ROUTING;
694
725
  }) | (string & {
695
726
  owner: string;
696
727
  ownerOverrides?: Record<string, string> | undefined;
697
728
  } & {
698
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
729
+ domains: ChainMap<string | {
699
730
  type: HookType.PROTOCOL_FEE;
700
731
  owner: string;
701
732
  protocolFee: string;
@@ -726,10 +757,10 @@ declare const HooksConfigSchema: z.ZodObject<{
726
757
  tokenExchangeRate: string;
727
758
  }>;
728
759
  ownerOverrides?: Record<string, string> | undefined;
729
- }>;
760
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
730
761
  } & {
731
762
  type: HookType.FALLBACK_ROUTING;
732
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
763
+ fallback: string | {
733
764
  type: HookType.PROTOCOL_FEE;
734
765
  owner: string;
735
766
  protocolFee: string;
@@ -760,28 +791,28 @@ declare const HooksConfigSchema: z.ZodObject<{
760
791
  tokenExchangeRate: string;
761
792
  }>;
762
793
  ownerOverrides?: Record<string, string> | undefined;
763
- };
764
- }) | (string & import("@hyperlane-xyz/sdk").AggregationHookConfig) | (string & {
794
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
795
+ }) | (string & import("@hyperlane-xyz/sdk").AggregationHookConfig) | ({
765
796
  type: HookType.PROTOCOL_FEE;
766
797
  owner: string;
767
798
  protocolFee: string;
768
799
  beneficiary: string;
769
800
  maxProtocolFee: string;
770
801
  ownerOverrides?: Record<string, string> | undefined;
771
- }) | (string & {
802
+ } & string) | ({
772
803
  type: HookType.PAUSABLE;
773
804
  owner: string;
774
805
  paused: boolean;
775
806
  ownerOverrides?: Record<string, string> | undefined;
776
- }) | (string & {
807
+ } & string) | ({
777
808
  type: HookType.OP_STACK;
778
809
  owner: string;
779
810
  nativeBridge: string;
780
811
  destinationChain: string;
781
812
  ownerOverrides?: Record<string, string> | undefined;
782
- }) | (string & {
813
+ } & string) | ({
783
814
  type: HookType.MERKLE_TREE;
784
- }) | (string & {
815
+ } & string) | ({
785
816
  type: HookType.INTERCHAIN_GAS_PAYMASTER;
786
817
  owner: string;
787
818
  beneficiary: string;
@@ -792,11 +823,11 @@ declare const HooksConfigSchema: z.ZodObject<{
792
823
  tokenExchangeRate: string;
793
824
  }>;
794
825
  ownerOverrides?: Record<string, string> | undefined;
795
- }) | ({
826
+ } & string) | ({
796
827
  owner: string;
797
828
  ownerOverrides?: Record<string, string> | undefined;
798
829
  } & {
799
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
830
+ domains: ChainMap<string | {
800
831
  type: HookType.PROTOCOL_FEE;
801
832
  owner: string;
802
833
  protocolFee: string;
@@ -827,14 +858,14 @@ declare const HooksConfigSchema: z.ZodObject<{
827
858
  tokenExchangeRate: string;
828
859
  }>;
829
860
  ownerOverrides?: Record<string, string> | undefined;
830
- }>;
861
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
831
862
  } & {
832
863
  type: HookType.ROUTING;
833
864
  } & string) | ({
834
865
  owner: string;
835
866
  ownerOverrides?: Record<string, string> | undefined;
836
867
  } & {
837
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
868
+ domains: ChainMap<string | {
838
869
  type: HookType.PROTOCOL_FEE;
839
870
  owner: string;
840
871
  protocolFee: string;
@@ -865,14 +896,14 @@ declare const HooksConfigSchema: z.ZodObject<{
865
896
  tokenExchangeRate: string;
866
897
  }>;
867
898
  ownerOverrides?: Record<string, string> | undefined;
868
- }>;
899
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
869
900
  } & {
870
901
  type: HookType.ROUTING;
871
902
  }) | ({
872
903
  owner: string;
873
904
  ownerOverrides?: Record<string, string> | undefined;
874
905
  } & {
875
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
906
+ domains: ChainMap<string | {
876
907
  type: HookType.PROTOCOL_FEE;
877
908
  owner: string;
878
909
  protocolFee: string;
@@ -903,10 +934,10 @@ declare const HooksConfigSchema: z.ZodObject<{
903
934
  tokenExchangeRate: string;
904
935
  }>;
905
936
  ownerOverrides?: Record<string, string> | undefined;
906
- }>;
937
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
907
938
  } & {
908
939
  type: HookType.FALLBACK_ROUTING;
909
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
940
+ fallback: string | {
910
941
  type: HookType.PROTOCOL_FEE;
911
942
  owner: string;
912
943
  protocolFee: string;
@@ -937,12 +968,12 @@ declare const HooksConfigSchema: z.ZodObject<{
937
968
  tokenExchangeRate: string;
938
969
  }>;
939
970
  ownerOverrides?: Record<string, string> | undefined;
940
- };
971
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
941
972
  } & string) | ({
942
973
  owner: string;
943
974
  ownerOverrides?: Record<string, string> | undefined;
944
975
  } & {
945
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
976
+ domains: ChainMap<string | {
946
977
  type: HookType.PROTOCOL_FEE;
947
978
  owner: string;
948
979
  protocolFee: string;
@@ -973,10 +1004,10 @@ declare const HooksConfigSchema: z.ZodObject<{
973
1004
  tokenExchangeRate: string;
974
1005
  }>;
975
1006
  ownerOverrides?: Record<string, string> | undefined;
976
- }>;
1007
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
977
1008
  } & {
978
1009
  type: HookType.FALLBACK_ROUTING;
979
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1010
+ fallback: string | {
980
1011
  type: HookType.PROTOCOL_FEE;
981
1012
  owner: string;
982
1013
  protocolFee: string;
@@ -1007,41 +1038,10 @@ declare const HooksConfigSchema: z.ZodObject<{
1007
1038
  tokenExchangeRate: string;
1008
1039
  }>;
1009
1040
  ownerOverrides?: Record<string, string> | undefined;
1010
- };
1011
- }) | (import("@hyperlane-xyz/sdk").AggregationHookConfig & string) | ({
1012
- type: HookType.PROTOCOL_FEE;
1013
- owner: string;
1014
- protocolFee: string;
1015
- beneficiary: string;
1016
- maxProtocolFee: string;
1017
- ownerOverrides?: Record<string, string> | undefined;
1018
- } & string) | ({
1019
- type: HookType.PAUSABLE;
1020
- owner: string;
1021
- paused: boolean;
1022
- ownerOverrides?: Record<string, string> | undefined;
1023
- } & string) | ({
1024
- type: HookType.OP_STACK;
1025
- owner: string;
1026
- nativeBridge: string;
1027
- destinationChain: string;
1028
- ownerOverrides?: Record<string, string> | undefined;
1029
- } & string) | ({
1030
- type: HookType.MERKLE_TREE;
1031
- } & string) | ({
1032
- type: HookType.INTERCHAIN_GAS_PAYMASTER;
1033
- owner: string;
1034
- beneficiary: string;
1035
- oracleKey: string;
1036
- overhead: Record<string, number>;
1037
- oracleConfig: Record<string, {
1038
- gasPrice: string;
1039
- tokenExchangeRate: string;
1040
- }>;
1041
- ownerOverrides?: Record<string, string> | undefined;
1042
- } & string);
1041
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
1042
+ }) | (import("@hyperlane-xyz/sdk").AggregationHookConfig & string);
1043
1043
  }, {
1044
- default: string | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1044
+ default: string | {
1045
1045
  type: HookType.PROTOCOL_FEE;
1046
1046
  owner: string;
1047
1047
  protocolFee: string;
@@ -1072,11 +1072,11 @@ declare const HooksConfigSchema: z.ZodObject<{
1072
1072
  tokenExchangeRate: string;
1073
1073
  }>;
1074
1074
  ownerOverrides?: Record<string, string> | undefined;
1075
- } | (string & {
1075
+ } | import("@hyperlane-xyz/sdk").AggregationHookConfig | (string & {
1076
1076
  owner: string;
1077
1077
  ownerOverrides?: Record<string, string> | undefined;
1078
1078
  } & {
1079
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1079
+ domains: ChainMap<string | {
1080
1080
  type: HookType.PROTOCOL_FEE;
1081
1081
  owner: string;
1082
1082
  protocolFee: string;
@@ -1107,14 +1107,14 @@ declare const HooksConfigSchema: z.ZodObject<{
1107
1107
  tokenExchangeRate: string;
1108
1108
  }>;
1109
1109
  ownerOverrides?: Record<string, string> | undefined;
1110
- }>;
1110
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
1111
1111
  } & {
1112
1112
  type: HookType.ROUTING;
1113
1113
  }) | (string & {
1114
1114
  owner: string;
1115
1115
  ownerOverrides?: Record<string, string> | undefined;
1116
1116
  } & {
1117
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1117
+ domains: ChainMap<string | {
1118
1118
  type: HookType.PROTOCOL_FEE;
1119
1119
  owner: string;
1120
1120
  protocolFee: string;
@@ -1145,10 +1145,10 @@ declare const HooksConfigSchema: z.ZodObject<{
1145
1145
  tokenExchangeRate: string;
1146
1146
  }>;
1147
1147
  ownerOverrides?: Record<string, string> | undefined;
1148
- }>;
1148
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
1149
1149
  } & {
1150
1150
  type: HookType.FALLBACK_ROUTING;
1151
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1151
+ fallback: string | {
1152
1152
  type: HookType.PROTOCOL_FEE;
1153
1153
  owner: string;
1154
1154
  protocolFee: string;
@@ -1179,12 +1179,12 @@ declare const HooksConfigSchema: z.ZodObject<{
1179
1179
  tokenExchangeRate: string;
1180
1180
  }>;
1181
1181
  ownerOverrides?: Record<string, string> | undefined;
1182
- };
1182
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
1183
1183
  }) | (string & import("@hyperlane-xyz/sdk").AggregationHookConfig) | ({
1184
1184
  owner: string;
1185
1185
  ownerOverrides?: Record<string, string> | undefined;
1186
1186
  } & {
1187
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1187
+ domains: ChainMap<string | {
1188
1188
  type: HookType.PROTOCOL_FEE;
1189
1189
  owner: string;
1190
1190
  protocolFee: string;
@@ -1215,14 +1215,14 @@ declare const HooksConfigSchema: z.ZodObject<{
1215
1215
  tokenExchangeRate: string;
1216
1216
  }>;
1217
1217
  ownerOverrides?: Record<string, string> | undefined;
1218
- }>;
1218
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
1219
1219
  } & {
1220
1220
  type: HookType.ROUTING;
1221
1221
  } & string) | ({
1222
1222
  owner: string;
1223
1223
  ownerOverrides?: Record<string, string> | undefined;
1224
1224
  } & {
1225
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1225
+ domains: ChainMap<string | {
1226
1226
  type: HookType.PROTOCOL_FEE;
1227
1227
  owner: string;
1228
1228
  protocolFee: string;
@@ -1253,14 +1253,14 @@ declare const HooksConfigSchema: z.ZodObject<{
1253
1253
  tokenExchangeRate: string;
1254
1254
  }>;
1255
1255
  ownerOverrides?: Record<string, string> | undefined;
1256
- }>;
1256
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
1257
1257
  } & {
1258
1258
  type: HookType.ROUTING;
1259
1259
  }) | ({
1260
1260
  owner: string;
1261
1261
  ownerOverrides?: Record<string, string> | undefined;
1262
1262
  } & {
1263
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1263
+ domains: ChainMap<string | {
1264
1264
  type: HookType.PROTOCOL_FEE;
1265
1265
  owner: string;
1266
1266
  protocolFee: string;
@@ -1291,10 +1291,10 @@ declare const HooksConfigSchema: z.ZodObject<{
1291
1291
  tokenExchangeRate: string;
1292
1292
  }>;
1293
1293
  ownerOverrides?: Record<string, string> | undefined;
1294
- }>;
1294
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
1295
1295
  } & {
1296
1296
  type: HookType.FALLBACK_ROUTING;
1297
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1297
+ fallback: string | {
1298
1298
  type: HookType.PROTOCOL_FEE;
1299
1299
  owner: string;
1300
1300
  protocolFee: string;
@@ -1325,12 +1325,12 @@ declare const HooksConfigSchema: z.ZodObject<{
1325
1325
  tokenExchangeRate: string;
1326
1326
  }>;
1327
1327
  ownerOverrides?: Record<string, string> | undefined;
1328
- };
1328
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
1329
1329
  } & string) | ({
1330
1330
  owner: string;
1331
1331
  ownerOverrides?: Record<string, string> | undefined;
1332
1332
  } & {
1333
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1333
+ domains: ChainMap<string | {
1334
1334
  type: HookType.PROTOCOL_FEE;
1335
1335
  owner: string;
1336
1336
  protocolFee: string;
@@ -1361,10 +1361,10 @@ declare const HooksConfigSchema: z.ZodObject<{
1361
1361
  tokenExchangeRate: string;
1362
1362
  }>;
1363
1363
  ownerOverrides?: Record<string, string> | undefined;
1364
- }>;
1364
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
1365
1365
  } & {
1366
1366
  type: HookType.FALLBACK_ROUTING;
1367
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1367
+ fallback: string | {
1368
1368
  type: HookType.PROTOCOL_FEE;
1369
1369
  owner: string;
1370
1370
  protocolFee: string;
@@ -1395,7 +1395,7 @@ declare const HooksConfigSchema: z.ZodObject<{
1395
1395
  tokenExchangeRate: string;
1396
1396
  }>;
1397
1397
  ownerOverrides?: Record<string, string> | undefined;
1398
- };
1398
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
1399
1399
  }) | (import("@hyperlane-xyz/sdk").AggregationHookConfig & string) | (string & {
1400
1400
  type: HookType.PROTOCOL_FEE;
1401
1401
  owner: string;
@@ -1459,7 +1459,7 @@ declare const HooksConfigSchema: z.ZodObject<{
1459
1459
  }>;
1460
1460
  ownerOverrides?: Record<string, string> | undefined;
1461
1461
  } & string);
1462
- required: string | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1462
+ required: string | {
1463
1463
  type: HookType.PROTOCOL_FEE;
1464
1464
  owner: string;
1465
1465
  protocolFee: string;
@@ -1490,11 +1490,11 @@ declare const HooksConfigSchema: z.ZodObject<{
1490
1490
  tokenExchangeRate: string;
1491
1491
  }>;
1492
1492
  ownerOverrides?: Record<string, string> | undefined;
1493
- } | (string & {
1493
+ } | import("@hyperlane-xyz/sdk").AggregationHookConfig | (string & {
1494
1494
  owner: string;
1495
1495
  ownerOverrides?: Record<string, string> | undefined;
1496
1496
  } & {
1497
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1497
+ domains: ChainMap<string | {
1498
1498
  type: HookType.PROTOCOL_FEE;
1499
1499
  owner: string;
1500
1500
  protocolFee: string;
@@ -1525,14 +1525,14 @@ declare const HooksConfigSchema: z.ZodObject<{
1525
1525
  tokenExchangeRate: string;
1526
1526
  }>;
1527
1527
  ownerOverrides?: Record<string, string> | undefined;
1528
- }>;
1528
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
1529
1529
  } & {
1530
1530
  type: HookType.ROUTING;
1531
1531
  }) | (string & {
1532
1532
  owner: string;
1533
1533
  ownerOverrides?: Record<string, string> | undefined;
1534
1534
  } & {
1535
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1535
+ domains: ChainMap<string | {
1536
1536
  type: HookType.PROTOCOL_FEE;
1537
1537
  owner: string;
1538
1538
  protocolFee: string;
@@ -1563,10 +1563,10 @@ declare const HooksConfigSchema: z.ZodObject<{
1563
1563
  tokenExchangeRate: string;
1564
1564
  }>;
1565
1565
  ownerOverrides?: Record<string, string> | undefined;
1566
- }>;
1566
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
1567
1567
  } & {
1568
1568
  type: HookType.FALLBACK_ROUTING;
1569
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1569
+ fallback: string | {
1570
1570
  type: HookType.PROTOCOL_FEE;
1571
1571
  owner: string;
1572
1572
  protocolFee: string;
@@ -1597,12 +1597,12 @@ declare const HooksConfigSchema: z.ZodObject<{
1597
1597
  tokenExchangeRate: string;
1598
1598
  }>;
1599
1599
  ownerOverrides?: Record<string, string> | undefined;
1600
- };
1600
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
1601
1601
  }) | (string & import("@hyperlane-xyz/sdk").AggregationHookConfig) | ({
1602
1602
  owner: string;
1603
1603
  ownerOverrides?: Record<string, string> | undefined;
1604
1604
  } & {
1605
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1605
+ domains: ChainMap<string | {
1606
1606
  type: HookType.PROTOCOL_FEE;
1607
1607
  owner: string;
1608
1608
  protocolFee: string;
@@ -1633,14 +1633,14 @@ declare const HooksConfigSchema: z.ZodObject<{
1633
1633
  tokenExchangeRate: string;
1634
1634
  }>;
1635
1635
  ownerOverrides?: Record<string, string> | undefined;
1636
- }>;
1636
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
1637
1637
  } & {
1638
1638
  type: HookType.ROUTING;
1639
1639
  } & string) | ({
1640
1640
  owner: string;
1641
1641
  ownerOverrides?: Record<string, string> | undefined;
1642
1642
  } & {
1643
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1643
+ domains: ChainMap<string | {
1644
1644
  type: HookType.PROTOCOL_FEE;
1645
1645
  owner: string;
1646
1646
  protocolFee: string;
@@ -1671,14 +1671,14 @@ declare const HooksConfigSchema: z.ZodObject<{
1671
1671
  tokenExchangeRate: string;
1672
1672
  }>;
1673
1673
  ownerOverrides?: Record<string, string> | undefined;
1674
- }>;
1674
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
1675
1675
  } & {
1676
1676
  type: HookType.ROUTING;
1677
1677
  }) | ({
1678
1678
  owner: string;
1679
1679
  ownerOverrides?: Record<string, string> | undefined;
1680
1680
  } & {
1681
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1681
+ domains: ChainMap<string | {
1682
1682
  type: HookType.PROTOCOL_FEE;
1683
1683
  owner: string;
1684
1684
  protocolFee: string;
@@ -1709,10 +1709,10 @@ declare const HooksConfigSchema: z.ZodObject<{
1709
1709
  tokenExchangeRate: string;
1710
1710
  }>;
1711
1711
  ownerOverrides?: Record<string, string> | undefined;
1712
- }>;
1712
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
1713
1713
  } & {
1714
1714
  type: HookType.FALLBACK_ROUTING;
1715
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1715
+ fallback: string | {
1716
1716
  type: HookType.PROTOCOL_FEE;
1717
1717
  owner: string;
1718
1718
  protocolFee: string;
@@ -1743,12 +1743,12 @@ declare const HooksConfigSchema: z.ZodObject<{
1743
1743
  tokenExchangeRate: string;
1744
1744
  }>;
1745
1745
  ownerOverrides?: Record<string, string> | undefined;
1746
- };
1746
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
1747
1747
  } & string) | ({
1748
1748
  owner: string;
1749
1749
  ownerOverrides?: Record<string, string> | undefined;
1750
1750
  } & {
1751
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1751
+ domains: ChainMap<string | {
1752
1752
  type: HookType.PROTOCOL_FEE;
1753
1753
  owner: string;
1754
1754
  protocolFee: string;
@@ -1779,10 +1779,10 @@ declare const HooksConfigSchema: z.ZodObject<{
1779
1779
  tokenExchangeRate: string;
1780
1780
  }>;
1781
1781
  ownerOverrides?: Record<string, string> | undefined;
1782
- }>;
1782
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
1783
1783
  } & {
1784
1784
  type: HookType.FALLBACK_ROUTING;
1785
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
1785
+ fallback: string | {
1786
1786
  type: HookType.PROTOCOL_FEE;
1787
1787
  owner: string;
1788
1788
  protocolFee: string;
@@ -1813,7 +1813,7 @@ declare const HooksConfigSchema: z.ZodObject<{
1813
1813
  tokenExchangeRate: string;
1814
1814
  }>;
1815
1815
  ownerOverrides?: Record<string, string> | undefined;
1816
- };
1816
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
1817
1817
  }) | (import("@hyperlane-xyz/sdk").AggregationHookConfig & string) | (string & {
1818
1818
  type: HookType.PROTOCOL_FEE;
1819
1819
  owner: string;
@@ -2081,7 +2081,7 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
2081
2081
  ownerOverrides?: Record<string, string> | undefined;
2082
2082
  }>, z.ZodType<import("@hyperlane-xyz/sdk").DomainRoutingHookConfig, z.ZodTypeDef, import("@hyperlane-xyz/sdk").DomainRoutingHookConfig>, z.ZodType<import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig, z.ZodTypeDef, import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig>, z.ZodType<import("@hyperlane-xyz/sdk").AggregationHookConfig, z.ZodTypeDef, import("@hyperlane-xyz/sdk").AggregationHookConfig>]>;
2083
2083
  }, "strip", z.ZodTypeAny, {
2084
- default: string | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2084
+ default: string | {
2085
2085
  type: HookType.PROTOCOL_FEE;
2086
2086
  owner: string;
2087
2087
  protocolFee: string;
@@ -2112,11 +2112,42 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
2112
2112
  tokenExchangeRate: string;
2113
2113
  }>;
2114
2114
  ownerOverrides?: Record<string, string> | undefined;
2115
- } | (string & {
2115
+ } | import("@hyperlane-xyz/sdk").AggregationHookConfig | (string & {
2116
+ type: HookType.PROTOCOL_FEE;
2117
+ owner: string;
2118
+ protocolFee: string;
2119
+ beneficiary: string;
2120
+ maxProtocolFee: string;
2121
+ ownerOverrides?: Record<string, string> | undefined;
2122
+ }) | (string & {
2123
+ type: HookType.PAUSABLE;
2124
+ owner: string;
2125
+ paused: boolean;
2126
+ ownerOverrides?: Record<string, string> | undefined;
2127
+ }) | (string & {
2128
+ type: HookType.OP_STACK;
2129
+ owner: string;
2130
+ nativeBridge: string;
2131
+ destinationChain: string;
2132
+ ownerOverrides?: Record<string, string> | undefined;
2133
+ }) | (string & {
2134
+ type: HookType.MERKLE_TREE;
2135
+ }) | (string & {
2136
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
2137
+ owner: string;
2138
+ beneficiary: string;
2139
+ oracleKey: string;
2140
+ overhead: Record<string, number>;
2141
+ oracleConfig: Record<string, {
2142
+ gasPrice: string;
2143
+ tokenExchangeRate: string;
2144
+ }>;
2145
+ ownerOverrides?: Record<string, string> | undefined;
2146
+ }) | (string & {
2116
2147
  owner: string;
2117
2148
  ownerOverrides?: Record<string, string> | undefined;
2118
2149
  } & {
2119
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2150
+ domains: ChainMap<string | {
2120
2151
  type: HookType.PROTOCOL_FEE;
2121
2152
  owner: string;
2122
2153
  protocolFee: string;
@@ -2147,14 +2178,14 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
2147
2178
  tokenExchangeRate: string;
2148
2179
  }>;
2149
2180
  ownerOverrides?: Record<string, string> | undefined;
2150
- }>;
2181
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
2151
2182
  } & {
2152
2183
  type: HookType.ROUTING;
2153
2184
  }) | (string & {
2154
2185
  owner: string;
2155
2186
  ownerOverrides?: Record<string, string> | undefined;
2156
2187
  } & {
2157
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2188
+ domains: ChainMap<string | {
2158
2189
  type: HookType.PROTOCOL_FEE;
2159
2190
  owner: string;
2160
2191
  protocolFee: string;
@@ -2185,10 +2216,10 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
2185
2216
  tokenExchangeRate: string;
2186
2217
  }>;
2187
2218
  ownerOverrides?: Record<string, string> | undefined;
2188
- }>;
2219
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
2189
2220
  } & {
2190
2221
  type: HookType.FALLBACK_ROUTING;
2191
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2222
+ fallback: string | {
2192
2223
  type: HookType.PROTOCOL_FEE;
2193
2224
  owner: string;
2194
2225
  protocolFee: string;
@@ -2219,28 +2250,28 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
2219
2250
  tokenExchangeRate: string;
2220
2251
  }>;
2221
2252
  ownerOverrides?: Record<string, string> | undefined;
2222
- };
2223
- }) | (string & import("@hyperlane-xyz/sdk").AggregationHookConfig) | (string & {
2253
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
2254
+ }) | (string & import("@hyperlane-xyz/sdk").AggregationHookConfig) | ({
2224
2255
  type: HookType.PROTOCOL_FEE;
2225
2256
  owner: string;
2226
2257
  protocolFee: string;
2227
2258
  beneficiary: string;
2228
2259
  maxProtocolFee: string;
2229
2260
  ownerOverrides?: Record<string, string> | undefined;
2230
- }) | (string & {
2261
+ } & string) | ({
2231
2262
  type: HookType.PAUSABLE;
2232
2263
  owner: string;
2233
2264
  paused: boolean;
2234
2265
  ownerOverrides?: Record<string, string> | undefined;
2235
- }) | (string & {
2266
+ } & string) | ({
2236
2267
  type: HookType.OP_STACK;
2237
2268
  owner: string;
2238
2269
  nativeBridge: string;
2239
2270
  destinationChain: string;
2240
2271
  ownerOverrides?: Record<string, string> | undefined;
2241
- }) | (string & {
2272
+ } & string) | ({
2242
2273
  type: HookType.MERKLE_TREE;
2243
- }) | (string & {
2274
+ } & string) | ({
2244
2275
  type: HookType.INTERCHAIN_GAS_PAYMASTER;
2245
2276
  owner: string;
2246
2277
  beneficiary: string;
@@ -2251,11 +2282,11 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
2251
2282
  tokenExchangeRate: string;
2252
2283
  }>;
2253
2284
  ownerOverrides?: Record<string, string> | undefined;
2254
- }) | ({
2285
+ } & string) | ({
2255
2286
  owner: string;
2256
2287
  ownerOverrides?: Record<string, string> | undefined;
2257
2288
  } & {
2258
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2289
+ domains: ChainMap<string | {
2259
2290
  type: HookType.PROTOCOL_FEE;
2260
2291
  owner: string;
2261
2292
  protocolFee: string;
@@ -2286,14 +2317,14 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
2286
2317
  tokenExchangeRate: string;
2287
2318
  }>;
2288
2319
  ownerOverrides?: Record<string, string> | undefined;
2289
- }>;
2320
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
2290
2321
  } & {
2291
2322
  type: HookType.ROUTING;
2292
2323
  } & string) | ({
2293
2324
  owner: string;
2294
2325
  ownerOverrides?: Record<string, string> | undefined;
2295
2326
  } & {
2296
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2327
+ domains: ChainMap<string | {
2297
2328
  type: HookType.PROTOCOL_FEE;
2298
2329
  owner: string;
2299
2330
  protocolFee: string;
@@ -2324,14 +2355,14 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
2324
2355
  tokenExchangeRate: string;
2325
2356
  }>;
2326
2357
  ownerOverrides?: Record<string, string> | undefined;
2327
- }>;
2358
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
2328
2359
  } & {
2329
2360
  type: HookType.ROUTING;
2330
2361
  }) | ({
2331
2362
  owner: string;
2332
2363
  ownerOverrides?: Record<string, string> | undefined;
2333
2364
  } & {
2334
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2365
+ domains: ChainMap<string | {
2335
2366
  type: HookType.PROTOCOL_FEE;
2336
2367
  owner: string;
2337
2368
  protocolFee: string;
@@ -2362,10 +2393,10 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
2362
2393
  tokenExchangeRate: string;
2363
2394
  }>;
2364
2395
  ownerOverrides?: Record<string, string> | undefined;
2365
- }>;
2396
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
2366
2397
  } & {
2367
2398
  type: HookType.FALLBACK_ROUTING;
2368
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2399
+ fallback: string | {
2369
2400
  type: HookType.PROTOCOL_FEE;
2370
2401
  owner: string;
2371
2402
  protocolFee: string;
@@ -2396,12 +2427,12 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
2396
2427
  tokenExchangeRate: string;
2397
2428
  }>;
2398
2429
  ownerOverrides?: Record<string, string> | undefined;
2399
- };
2430
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
2400
2431
  } & string) | ({
2401
2432
  owner: string;
2402
2433
  ownerOverrides?: Record<string, string> | undefined;
2403
2434
  } & {
2404
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2435
+ domains: ChainMap<string | {
2405
2436
  type: HookType.PROTOCOL_FEE;
2406
2437
  owner: string;
2407
2438
  protocolFee: string;
@@ -2432,10 +2463,10 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
2432
2463
  tokenExchangeRate: string;
2433
2464
  }>;
2434
2465
  ownerOverrides?: Record<string, string> | undefined;
2435
- }>;
2466
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
2436
2467
  } & {
2437
2468
  type: HookType.FALLBACK_ROUTING;
2438
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2469
+ fallback: string | {
2439
2470
  type: HookType.PROTOCOL_FEE;
2440
2471
  owner: string;
2441
2472
  protocolFee: string;
@@ -2466,28 +2497,29 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
2466
2497
  tokenExchangeRate: string;
2467
2498
  }>;
2468
2499
  ownerOverrides?: Record<string, string> | undefined;
2469
- };
2470
- }) | (import("@hyperlane-xyz/sdk").AggregationHookConfig & string) | ({
2500
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
2501
+ }) | (import("@hyperlane-xyz/sdk").AggregationHookConfig & string);
2502
+ required: string | {
2471
2503
  type: HookType.PROTOCOL_FEE;
2472
2504
  owner: string;
2473
2505
  protocolFee: string;
2474
2506
  beneficiary: string;
2475
2507
  maxProtocolFee: string;
2476
2508
  ownerOverrides?: Record<string, string> | undefined;
2477
- } & string) | ({
2509
+ } | {
2478
2510
  type: HookType.PAUSABLE;
2479
2511
  owner: string;
2480
2512
  paused: boolean;
2481
2513
  ownerOverrides?: Record<string, string> | undefined;
2482
- } & string) | ({
2514
+ } | {
2483
2515
  type: HookType.OP_STACK;
2484
2516
  owner: string;
2485
2517
  nativeBridge: string;
2486
2518
  destinationChain: string;
2487
2519
  ownerOverrides?: Record<string, string> | undefined;
2488
- } & string) | ({
2520
+ } | {
2489
2521
  type: HookType.MERKLE_TREE;
2490
- } & string) | ({
2522
+ } | {
2491
2523
  type: HookType.INTERCHAIN_GAS_PAYMASTER;
2492
2524
  owner: string;
2493
2525
  beneficiary: string;
@@ -2498,28 +2530,27 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
2498
2530
  tokenExchangeRate: string;
2499
2531
  }>;
2500
2532
  ownerOverrides?: Record<string, string> | undefined;
2501
- } & string);
2502
- required: string | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2533
+ } | import("@hyperlane-xyz/sdk").AggregationHookConfig | (string & {
2503
2534
  type: HookType.PROTOCOL_FEE;
2504
2535
  owner: string;
2505
2536
  protocolFee: string;
2506
2537
  beneficiary: string;
2507
2538
  maxProtocolFee: string;
2508
2539
  ownerOverrides?: Record<string, string> | undefined;
2509
- } | {
2540
+ }) | (string & {
2510
2541
  type: HookType.PAUSABLE;
2511
2542
  owner: string;
2512
2543
  paused: boolean;
2513
2544
  ownerOverrides?: Record<string, string> | undefined;
2514
- } | {
2545
+ }) | (string & {
2515
2546
  type: HookType.OP_STACK;
2516
2547
  owner: string;
2517
2548
  nativeBridge: string;
2518
2549
  destinationChain: string;
2519
2550
  ownerOverrides?: Record<string, string> | undefined;
2520
- } | {
2551
+ }) | (string & {
2521
2552
  type: HookType.MERKLE_TREE;
2522
- } | {
2553
+ }) | (string & {
2523
2554
  type: HookType.INTERCHAIN_GAS_PAYMASTER;
2524
2555
  owner: string;
2525
2556
  beneficiary: string;
@@ -2530,11 +2561,11 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
2530
2561
  tokenExchangeRate: string;
2531
2562
  }>;
2532
2563
  ownerOverrides?: Record<string, string> | undefined;
2533
- } | (string & {
2564
+ }) | (string & {
2534
2565
  owner: string;
2535
2566
  ownerOverrides?: Record<string, string> | undefined;
2536
2567
  } & {
2537
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2568
+ domains: ChainMap<string | {
2538
2569
  type: HookType.PROTOCOL_FEE;
2539
2570
  owner: string;
2540
2571
  protocolFee: string;
@@ -2565,14 +2596,14 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
2565
2596
  tokenExchangeRate: string;
2566
2597
  }>;
2567
2598
  ownerOverrides?: Record<string, string> | undefined;
2568
- }>;
2599
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
2569
2600
  } & {
2570
2601
  type: HookType.ROUTING;
2571
2602
  }) | (string & {
2572
2603
  owner: string;
2573
2604
  ownerOverrides?: Record<string, string> | undefined;
2574
2605
  } & {
2575
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2606
+ domains: ChainMap<string | {
2576
2607
  type: HookType.PROTOCOL_FEE;
2577
2608
  owner: string;
2578
2609
  protocolFee: string;
@@ -2603,10 +2634,10 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
2603
2634
  tokenExchangeRate: string;
2604
2635
  }>;
2605
2636
  ownerOverrides?: Record<string, string> | undefined;
2606
- }>;
2637
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
2607
2638
  } & {
2608
2639
  type: HookType.FALLBACK_ROUTING;
2609
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2640
+ fallback: string | {
2610
2641
  type: HookType.PROTOCOL_FEE;
2611
2642
  owner: string;
2612
2643
  protocolFee: string;
@@ -2637,28 +2668,28 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
2637
2668
  tokenExchangeRate: string;
2638
2669
  }>;
2639
2670
  ownerOverrides?: Record<string, string> | undefined;
2640
- };
2641
- }) | (string & import("@hyperlane-xyz/sdk").AggregationHookConfig) | (string & {
2671
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
2672
+ }) | (string & import("@hyperlane-xyz/sdk").AggregationHookConfig) | ({
2642
2673
  type: HookType.PROTOCOL_FEE;
2643
2674
  owner: string;
2644
2675
  protocolFee: string;
2645
2676
  beneficiary: string;
2646
2677
  maxProtocolFee: string;
2647
2678
  ownerOverrides?: Record<string, string> | undefined;
2648
- }) | (string & {
2679
+ } & string) | ({
2649
2680
  type: HookType.PAUSABLE;
2650
2681
  owner: string;
2651
2682
  paused: boolean;
2652
2683
  ownerOverrides?: Record<string, string> | undefined;
2653
- }) | (string & {
2684
+ } & string) | ({
2654
2685
  type: HookType.OP_STACK;
2655
2686
  owner: string;
2656
2687
  nativeBridge: string;
2657
2688
  destinationChain: string;
2658
2689
  ownerOverrides?: Record<string, string> | undefined;
2659
- }) | (string & {
2690
+ } & string) | ({
2660
2691
  type: HookType.MERKLE_TREE;
2661
- }) | (string & {
2692
+ } & string) | ({
2662
2693
  type: HookType.INTERCHAIN_GAS_PAYMASTER;
2663
2694
  owner: string;
2664
2695
  beneficiary: string;
@@ -2669,11 +2700,11 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
2669
2700
  tokenExchangeRate: string;
2670
2701
  }>;
2671
2702
  ownerOverrides?: Record<string, string> | undefined;
2672
- }) | ({
2703
+ } & string) | ({
2673
2704
  owner: string;
2674
2705
  ownerOverrides?: Record<string, string> | undefined;
2675
2706
  } & {
2676
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2707
+ domains: ChainMap<string | {
2677
2708
  type: HookType.PROTOCOL_FEE;
2678
2709
  owner: string;
2679
2710
  protocolFee: string;
@@ -2704,14 +2735,14 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
2704
2735
  tokenExchangeRate: string;
2705
2736
  }>;
2706
2737
  ownerOverrides?: Record<string, string> | undefined;
2707
- }>;
2738
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
2708
2739
  } & {
2709
2740
  type: HookType.ROUTING;
2710
2741
  } & string) | ({
2711
2742
  owner: string;
2712
2743
  ownerOverrides?: Record<string, string> | undefined;
2713
2744
  } & {
2714
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2745
+ domains: ChainMap<string | {
2715
2746
  type: HookType.PROTOCOL_FEE;
2716
2747
  owner: string;
2717
2748
  protocolFee: string;
@@ -2742,14 +2773,14 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
2742
2773
  tokenExchangeRate: string;
2743
2774
  }>;
2744
2775
  ownerOverrides?: Record<string, string> | undefined;
2745
- }>;
2776
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
2746
2777
  } & {
2747
2778
  type: HookType.ROUTING;
2748
2779
  }) | ({
2749
2780
  owner: string;
2750
2781
  ownerOverrides?: Record<string, string> | undefined;
2751
2782
  } & {
2752
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2783
+ domains: ChainMap<string | {
2753
2784
  type: HookType.PROTOCOL_FEE;
2754
2785
  owner: string;
2755
2786
  protocolFee: string;
@@ -2780,10 +2811,10 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
2780
2811
  tokenExchangeRate: string;
2781
2812
  }>;
2782
2813
  ownerOverrides?: Record<string, string> | undefined;
2783
- }>;
2814
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
2784
2815
  } & {
2785
2816
  type: HookType.FALLBACK_ROUTING;
2786
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2817
+ fallback: string | {
2787
2818
  type: HookType.PROTOCOL_FEE;
2788
2819
  owner: string;
2789
2820
  protocolFee: string;
@@ -2814,12 +2845,12 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
2814
2845
  tokenExchangeRate: string;
2815
2846
  }>;
2816
2847
  ownerOverrides?: Record<string, string> | undefined;
2817
- };
2848
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
2818
2849
  } & string) | ({
2819
2850
  owner: string;
2820
2851
  ownerOverrides?: Record<string, string> | undefined;
2821
2852
  } & {
2822
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2853
+ domains: ChainMap<string | {
2823
2854
  type: HookType.PROTOCOL_FEE;
2824
2855
  owner: string;
2825
2856
  protocolFee: string;
@@ -2850,10 +2881,10 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
2850
2881
  tokenExchangeRate: string;
2851
2882
  }>;
2852
2883
  ownerOverrides?: Record<string, string> | undefined;
2853
- }>;
2884
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
2854
2885
  } & {
2855
2886
  type: HookType.FALLBACK_ROUTING;
2856
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2887
+ fallback: string | {
2857
2888
  type: HookType.PROTOCOL_FEE;
2858
2889
  owner: string;
2859
2890
  protocolFee: string;
@@ -2884,41 +2915,10 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
2884
2915
  tokenExchangeRate: string;
2885
2916
  }>;
2886
2917
  ownerOverrides?: Record<string, string> | undefined;
2887
- };
2888
- }) | (import("@hyperlane-xyz/sdk").AggregationHookConfig & string) | ({
2889
- type: HookType.PROTOCOL_FEE;
2890
- owner: string;
2891
- protocolFee: string;
2892
- beneficiary: string;
2893
- maxProtocolFee: string;
2894
- ownerOverrides?: Record<string, string> | undefined;
2895
- } & string) | ({
2896
- type: HookType.PAUSABLE;
2897
- owner: string;
2898
- paused: boolean;
2899
- ownerOverrides?: Record<string, string> | undefined;
2900
- } & string) | ({
2901
- type: HookType.OP_STACK;
2902
- owner: string;
2903
- nativeBridge: string;
2904
- destinationChain: string;
2905
- ownerOverrides?: Record<string, string> | undefined;
2906
- } & string) | ({
2907
- type: HookType.MERKLE_TREE;
2908
- } & string) | ({
2909
- type: HookType.INTERCHAIN_GAS_PAYMASTER;
2910
- owner: string;
2911
- beneficiary: string;
2912
- oracleKey: string;
2913
- overhead: Record<string, number>;
2914
- oracleConfig: Record<string, {
2915
- gasPrice: string;
2916
- tokenExchangeRate: string;
2917
- }>;
2918
- ownerOverrides?: Record<string, string> | undefined;
2919
- } & string);
2918
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
2919
+ }) | (import("@hyperlane-xyz/sdk").AggregationHookConfig & string);
2920
2920
  }, {
2921
- default: string | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2921
+ default: string | {
2922
2922
  type: HookType.PROTOCOL_FEE;
2923
2923
  owner: string;
2924
2924
  protocolFee: string;
@@ -2949,11 +2949,11 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
2949
2949
  tokenExchangeRate: string;
2950
2950
  }>;
2951
2951
  ownerOverrides?: Record<string, string> | undefined;
2952
- } | (string & {
2952
+ } | import("@hyperlane-xyz/sdk").AggregationHookConfig | (string & {
2953
2953
  owner: string;
2954
2954
  ownerOverrides?: Record<string, string> | undefined;
2955
2955
  } & {
2956
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2956
+ domains: ChainMap<string | {
2957
2957
  type: HookType.PROTOCOL_FEE;
2958
2958
  owner: string;
2959
2959
  protocolFee: string;
@@ -2984,14 +2984,14 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
2984
2984
  tokenExchangeRate: string;
2985
2985
  }>;
2986
2986
  ownerOverrides?: Record<string, string> | undefined;
2987
- }>;
2987
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
2988
2988
  } & {
2989
2989
  type: HookType.ROUTING;
2990
2990
  }) | (string & {
2991
2991
  owner: string;
2992
2992
  ownerOverrides?: Record<string, string> | undefined;
2993
2993
  } & {
2994
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
2994
+ domains: ChainMap<string | {
2995
2995
  type: HookType.PROTOCOL_FEE;
2996
2996
  owner: string;
2997
2997
  protocolFee: string;
@@ -3022,10 +3022,10 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
3022
3022
  tokenExchangeRate: string;
3023
3023
  }>;
3024
3024
  ownerOverrides?: Record<string, string> | undefined;
3025
- }>;
3025
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
3026
3026
  } & {
3027
3027
  type: HookType.FALLBACK_ROUTING;
3028
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3028
+ fallback: string | {
3029
3029
  type: HookType.PROTOCOL_FEE;
3030
3030
  owner: string;
3031
3031
  protocolFee: string;
@@ -3056,12 +3056,12 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
3056
3056
  tokenExchangeRate: string;
3057
3057
  }>;
3058
3058
  ownerOverrides?: Record<string, string> | undefined;
3059
- };
3059
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
3060
3060
  }) | (string & import("@hyperlane-xyz/sdk").AggregationHookConfig) | ({
3061
3061
  owner: string;
3062
3062
  ownerOverrides?: Record<string, string> | undefined;
3063
3063
  } & {
3064
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3064
+ domains: ChainMap<string | {
3065
3065
  type: HookType.PROTOCOL_FEE;
3066
3066
  owner: string;
3067
3067
  protocolFee: string;
@@ -3092,14 +3092,14 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
3092
3092
  tokenExchangeRate: string;
3093
3093
  }>;
3094
3094
  ownerOverrides?: Record<string, string> | undefined;
3095
- }>;
3095
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
3096
3096
  } & {
3097
3097
  type: HookType.ROUTING;
3098
3098
  } & string) | ({
3099
3099
  owner: string;
3100
3100
  ownerOverrides?: Record<string, string> | undefined;
3101
3101
  } & {
3102
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3102
+ domains: ChainMap<string | {
3103
3103
  type: HookType.PROTOCOL_FEE;
3104
3104
  owner: string;
3105
3105
  protocolFee: string;
@@ -3130,14 +3130,14 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
3130
3130
  tokenExchangeRate: string;
3131
3131
  }>;
3132
3132
  ownerOverrides?: Record<string, string> | undefined;
3133
- }>;
3133
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
3134
3134
  } & {
3135
3135
  type: HookType.ROUTING;
3136
3136
  }) | ({
3137
3137
  owner: string;
3138
3138
  ownerOverrides?: Record<string, string> | undefined;
3139
3139
  } & {
3140
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3140
+ domains: ChainMap<string | {
3141
3141
  type: HookType.PROTOCOL_FEE;
3142
3142
  owner: string;
3143
3143
  protocolFee: string;
@@ -3168,10 +3168,10 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
3168
3168
  tokenExchangeRate: string;
3169
3169
  }>;
3170
3170
  ownerOverrides?: Record<string, string> | undefined;
3171
- }>;
3171
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
3172
3172
  } & {
3173
3173
  type: HookType.FALLBACK_ROUTING;
3174
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3174
+ fallback: string | {
3175
3175
  type: HookType.PROTOCOL_FEE;
3176
3176
  owner: string;
3177
3177
  protocolFee: string;
@@ -3202,12 +3202,12 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
3202
3202
  tokenExchangeRate: string;
3203
3203
  }>;
3204
3204
  ownerOverrides?: Record<string, string> | undefined;
3205
- };
3205
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
3206
3206
  } & string) | ({
3207
3207
  owner: string;
3208
3208
  ownerOverrides?: Record<string, string> | undefined;
3209
3209
  } & {
3210
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3210
+ domains: ChainMap<string | {
3211
3211
  type: HookType.PROTOCOL_FEE;
3212
3212
  owner: string;
3213
3213
  protocolFee: string;
@@ -3238,10 +3238,10 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
3238
3238
  tokenExchangeRate: string;
3239
3239
  }>;
3240
3240
  ownerOverrides?: Record<string, string> | undefined;
3241
- }>;
3241
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
3242
3242
  } & {
3243
3243
  type: HookType.FALLBACK_ROUTING;
3244
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3244
+ fallback: string | {
3245
3245
  type: HookType.PROTOCOL_FEE;
3246
3246
  owner: string;
3247
3247
  protocolFee: string;
@@ -3272,7 +3272,7 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
3272
3272
  tokenExchangeRate: string;
3273
3273
  }>;
3274
3274
  ownerOverrides?: Record<string, string> | undefined;
3275
- };
3275
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
3276
3276
  }) | (import("@hyperlane-xyz/sdk").AggregationHookConfig & string) | (string & {
3277
3277
  type: HookType.PROTOCOL_FEE;
3278
3278
  owner: string;
@@ -3336,7 +3336,7 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
3336
3336
  }>;
3337
3337
  ownerOverrides?: Record<string, string> | undefined;
3338
3338
  } & string);
3339
- required: string | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3339
+ required: string | {
3340
3340
  type: HookType.PROTOCOL_FEE;
3341
3341
  owner: string;
3342
3342
  protocolFee: string;
@@ -3367,11 +3367,11 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
3367
3367
  tokenExchangeRate: string;
3368
3368
  }>;
3369
3369
  ownerOverrides?: Record<string, string> | undefined;
3370
- } | (string & {
3370
+ } | import("@hyperlane-xyz/sdk").AggregationHookConfig | (string & {
3371
3371
  owner: string;
3372
3372
  ownerOverrides?: Record<string, string> | undefined;
3373
3373
  } & {
3374
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3374
+ domains: ChainMap<string | {
3375
3375
  type: HookType.PROTOCOL_FEE;
3376
3376
  owner: string;
3377
3377
  protocolFee: string;
@@ -3402,14 +3402,14 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
3402
3402
  tokenExchangeRate: string;
3403
3403
  }>;
3404
3404
  ownerOverrides?: Record<string, string> | undefined;
3405
- }>;
3405
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
3406
3406
  } & {
3407
3407
  type: HookType.ROUTING;
3408
3408
  }) | (string & {
3409
3409
  owner: string;
3410
3410
  ownerOverrides?: Record<string, string> | undefined;
3411
3411
  } & {
3412
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3412
+ domains: ChainMap<string | {
3413
3413
  type: HookType.PROTOCOL_FEE;
3414
3414
  owner: string;
3415
3415
  protocolFee: string;
@@ -3440,10 +3440,10 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
3440
3440
  tokenExchangeRate: string;
3441
3441
  }>;
3442
3442
  ownerOverrides?: Record<string, string> | undefined;
3443
- }>;
3443
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
3444
3444
  } & {
3445
3445
  type: HookType.FALLBACK_ROUTING;
3446
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3446
+ fallback: string | {
3447
3447
  type: HookType.PROTOCOL_FEE;
3448
3448
  owner: string;
3449
3449
  protocolFee: string;
@@ -3474,12 +3474,12 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
3474
3474
  tokenExchangeRate: string;
3475
3475
  }>;
3476
3476
  ownerOverrides?: Record<string, string> | undefined;
3477
- };
3477
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
3478
3478
  }) | (string & import("@hyperlane-xyz/sdk").AggregationHookConfig) | ({
3479
3479
  owner: string;
3480
3480
  ownerOverrides?: Record<string, string> | undefined;
3481
3481
  } & {
3482
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3482
+ domains: ChainMap<string | {
3483
3483
  type: HookType.PROTOCOL_FEE;
3484
3484
  owner: string;
3485
3485
  protocolFee: string;
@@ -3510,14 +3510,14 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
3510
3510
  tokenExchangeRate: string;
3511
3511
  }>;
3512
3512
  ownerOverrides?: Record<string, string> | undefined;
3513
- }>;
3513
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
3514
3514
  } & {
3515
3515
  type: HookType.ROUTING;
3516
3516
  } & string) | ({
3517
3517
  owner: string;
3518
3518
  ownerOverrides?: Record<string, string> | undefined;
3519
3519
  } & {
3520
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3520
+ domains: ChainMap<string | {
3521
3521
  type: HookType.PROTOCOL_FEE;
3522
3522
  owner: string;
3523
3523
  protocolFee: string;
@@ -3548,14 +3548,14 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
3548
3548
  tokenExchangeRate: string;
3549
3549
  }>;
3550
3550
  ownerOverrides?: Record<string, string> | undefined;
3551
- }>;
3551
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
3552
3552
  } & {
3553
3553
  type: HookType.ROUTING;
3554
3554
  }) | ({
3555
3555
  owner: string;
3556
3556
  ownerOverrides?: Record<string, string> | undefined;
3557
3557
  } & {
3558
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3558
+ domains: ChainMap<string | {
3559
3559
  type: HookType.PROTOCOL_FEE;
3560
3560
  owner: string;
3561
3561
  protocolFee: string;
@@ -3586,10 +3586,10 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
3586
3586
  tokenExchangeRate: string;
3587
3587
  }>;
3588
3588
  ownerOverrides?: Record<string, string> | undefined;
3589
- }>;
3589
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
3590
3590
  } & {
3591
3591
  type: HookType.FALLBACK_ROUTING;
3592
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3592
+ fallback: string | {
3593
3593
  type: HookType.PROTOCOL_FEE;
3594
3594
  owner: string;
3595
3595
  protocolFee: string;
@@ -3620,12 +3620,12 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
3620
3620
  tokenExchangeRate: string;
3621
3621
  }>;
3622
3622
  ownerOverrides?: Record<string, string> | undefined;
3623
- };
3623
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
3624
3624
  } & string) | ({
3625
3625
  owner: string;
3626
3626
  ownerOverrides?: Record<string, string> | undefined;
3627
3627
  } & {
3628
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3628
+ domains: ChainMap<string | {
3629
3629
  type: HookType.PROTOCOL_FEE;
3630
3630
  owner: string;
3631
3631
  protocolFee: string;
@@ -3656,10 +3656,10 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
3656
3656
  tokenExchangeRate: string;
3657
3657
  }>;
3658
3658
  ownerOverrides?: Record<string, string> | undefined;
3659
- }>;
3659
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
3660
3660
  } & {
3661
3661
  type: HookType.FALLBACK_ROUTING;
3662
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3662
+ fallback: string | {
3663
3663
  type: HookType.PROTOCOL_FEE;
3664
3664
  owner: string;
3665
3665
  protocolFee: string;
@@ -3690,7 +3690,7 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
3690
3690
  tokenExchangeRate: string;
3691
3691
  }>;
3692
3692
  ownerOverrides?: Record<string, string> | undefined;
3693
- };
3693
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
3694
3694
  }) | (import("@hyperlane-xyz/sdk").AggregationHookConfig & string) | (string & {
3695
3695
  type: HookType.PROTOCOL_FEE;
3696
3696
  owner: string;
@@ -3758,7 +3758,7 @@ declare const HooksConfigMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
3758
3758
  export type HooksConfigMap = z.infer<typeof HooksConfigMapSchema>;
3759
3759
  export declare function presetHookConfigs(owner: Address): HooksConfig;
3760
3760
  export declare function readHooksConfigMap(filePath: string): ChainMap<{
3761
- default: string | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3761
+ default: string | {
3762
3762
  type: HookType.PROTOCOL_FEE;
3763
3763
  owner: string;
3764
3764
  protocolFee: string;
@@ -3789,11 +3789,42 @@ export declare function readHooksConfigMap(filePath: string): ChainMap<{
3789
3789
  tokenExchangeRate: string;
3790
3790
  }>;
3791
3791
  ownerOverrides?: Record<string, string> | undefined;
3792
- } | (string & {
3792
+ } | import("@hyperlane-xyz/sdk").AggregationHookConfig | (string & {
3793
+ type: HookType.PROTOCOL_FEE;
3794
+ owner: string;
3795
+ protocolFee: string;
3796
+ beneficiary: string;
3797
+ maxProtocolFee: string;
3798
+ ownerOverrides?: Record<string, string> | undefined;
3799
+ }) | (string & {
3800
+ type: HookType.PAUSABLE;
3801
+ owner: string;
3802
+ paused: boolean;
3803
+ ownerOverrides?: Record<string, string> | undefined;
3804
+ }) | (string & {
3805
+ type: HookType.OP_STACK;
3806
+ owner: string;
3807
+ nativeBridge: string;
3808
+ destinationChain: string;
3809
+ ownerOverrides?: Record<string, string> | undefined;
3810
+ }) | (string & {
3811
+ type: HookType.MERKLE_TREE;
3812
+ }) | (string & {
3813
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
3814
+ owner: string;
3815
+ beneficiary: string;
3816
+ oracleKey: string;
3817
+ overhead: Record<string, number>;
3818
+ oracleConfig: Record<string, {
3819
+ gasPrice: string;
3820
+ tokenExchangeRate: string;
3821
+ }>;
3822
+ ownerOverrides?: Record<string, string> | undefined;
3823
+ }) | (string & {
3793
3824
  owner: string;
3794
3825
  ownerOverrides?: Record<string, string> | undefined;
3795
3826
  } & {
3796
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3827
+ domains: ChainMap<string | {
3797
3828
  type: HookType.PROTOCOL_FEE;
3798
3829
  owner: string;
3799
3830
  protocolFee: string;
@@ -3824,14 +3855,14 @@ export declare function readHooksConfigMap(filePath: string): ChainMap<{
3824
3855
  tokenExchangeRate: string;
3825
3856
  }>;
3826
3857
  ownerOverrides?: Record<string, string> | undefined;
3827
- }>;
3858
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
3828
3859
  } & {
3829
3860
  type: HookType.ROUTING;
3830
3861
  }) | (string & {
3831
3862
  owner: string;
3832
3863
  ownerOverrides?: Record<string, string> | undefined;
3833
3864
  } & {
3834
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3865
+ domains: ChainMap<string | {
3835
3866
  type: HookType.PROTOCOL_FEE;
3836
3867
  owner: string;
3837
3868
  protocolFee: string;
@@ -3862,10 +3893,10 @@ export declare function readHooksConfigMap(filePath: string): ChainMap<{
3862
3893
  tokenExchangeRate: string;
3863
3894
  }>;
3864
3895
  ownerOverrides?: Record<string, string> | undefined;
3865
- }>;
3896
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
3866
3897
  } & {
3867
3898
  type: HookType.FALLBACK_ROUTING;
3868
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3899
+ fallback: string | {
3869
3900
  type: HookType.PROTOCOL_FEE;
3870
3901
  owner: string;
3871
3902
  protocolFee: string;
@@ -3896,28 +3927,28 @@ export declare function readHooksConfigMap(filePath: string): ChainMap<{
3896
3927
  tokenExchangeRate: string;
3897
3928
  }>;
3898
3929
  ownerOverrides?: Record<string, string> | undefined;
3899
- };
3900
- }) | (string & import("@hyperlane-xyz/sdk").AggregationHookConfig) | (string & {
3930
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
3931
+ }) | (string & import("@hyperlane-xyz/sdk").AggregationHookConfig) | ({
3901
3932
  type: HookType.PROTOCOL_FEE;
3902
3933
  owner: string;
3903
3934
  protocolFee: string;
3904
3935
  beneficiary: string;
3905
3936
  maxProtocolFee: string;
3906
3937
  ownerOverrides?: Record<string, string> | undefined;
3907
- }) | (string & {
3938
+ } & string) | ({
3908
3939
  type: HookType.PAUSABLE;
3909
3940
  owner: string;
3910
3941
  paused: boolean;
3911
3942
  ownerOverrides?: Record<string, string> | undefined;
3912
- }) | (string & {
3943
+ } & string) | ({
3913
3944
  type: HookType.OP_STACK;
3914
3945
  owner: string;
3915
3946
  nativeBridge: string;
3916
3947
  destinationChain: string;
3917
3948
  ownerOverrides?: Record<string, string> | undefined;
3918
- }) | (string & {
3949
+ } & string) | ({
3919
3950
  type: HookType.MERKLE_TREE;
3920
- }) | (string & {
3951
+ } & string) | ({
3921
3952
  type: HookType.INTERCHAIN_GAS_PAYMASTER;
3922
3953
  owner: string;
3923
3954
  beneficiary: string;
@@ -3928,11 +3959,11 @@ export declare function readHooksConfigMap(filePath: string): ChainMap<{
3928
3959
  tokenExchangeRate: string;
3929
3960
  }>;
3930
3961
  ownerOverrides?: Record<string, string> | undefined;
3931
- }) | ({
3962
+ } & string) | ({
3932
3963
  owner: string;
3933
3964
  ownerOverrides?: Record<string, string> | undefined;
3934
3965
  } & {
3935
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
3966
+ domains: ChainMap<string | {
3936
3967
  type: HookType.PROTOCOL_FEE;
3937
3968
  owner: string;
3938
3969
  protocolFee: string;
@@ -3963,14 +3994,14 @@ export declare function readHooksConfigMap(filePath: string): ChainMap<{
3963
3994
  tokenExchangeRate: string;
3964
3995
  }>;
3965
3996
  ownerOverrides?: Record<string, string> | undefined;
3966
- }>;
3997
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
3967
3998
  } & {
3968
3999
  type: HookType.ROUTING;
3969
4000
  } & string) | ({
3970
4001
  owner: string;
3971
4002
  ownerOverrides?: Record<string, string> | undefined;
3972
4003
  } & {
3973
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4004
+ domains: ChainMap<string | {
3974
4005
  type: HookType.PROTOCOL_FEE;
3975
4006
  owner: string;
3976
4007
  protocolFee: string;
@@ -4001,14 +4032,14 @@ export declare function readHooksConfigMap(filePath: string): ChainMap<{
4001
4032
  tokenExchangeRate: string;
4002
4033
  }>;
4003
4034
  ownerOverrides?: Record<string, string> | undefined;
4004
- }>;
4035
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
4005
4036
  } & {
4006
4037
  type: HookType.ROUTING;
4007
4038
  }) | ({
4008
4039
  owner: string;
4009
4040
  ownerOverrides?: Record<string, string> | undefined;
4010
4041
  } & {
4011
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4042
+ domains: ChainMap<string | {
4012
4043
  type: HookType.PROTOCOL_FEE;
4013
4044
  owner: string;
4014
4045
  protocolFee: string;
@@ -4039,10 +4070,10 @@ export declare function readHooksConfigMap(filePath: string): ChainMap<{
4039
4070
  tokenExchangeRate: string;
4040
4071
  }>;
4041
4072
  ownerOverrides?: Record<string, string> | undefined;
4042
- }>;
4073
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
4043
4074
  } & {
4044
4075
  type: HookType.FALLBACK_ROUTING;
4045
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4076
+ fallback: string | {
4046
4077
  type: HookType.PROTOCOL_FEE;
4047
4078
  owner: string;
4048
4079
  protocolFee: string;
@@ -4073,12 +4104,12 @@ export declare function readHooksConfigMap(filePath: string): ChainMap<{
4073
4104
  tokenExchangeRate: string;
4074
4105
  }>;
4075
4106
  ownerOverrides?: Record<string, string> | undefined;
4076
- };
4107
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
4077
4108
  } & string) | ({
4078
4109
  owner: string;
4079
4110
  ownerOverrides?: Record<string, string> | undefined;
4080
4111
  } & {
4081
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4112
+ domains: ChainMap<string | {
4082
4113
  type: HookType.PROTOCOL_FEE;
4083
4114
  owner: string;
4084
4115
  protocolFee: string;
@@ -4109,10 +4140,10 @@ export declare function readHooksConfigMap(filePath: string): ChainMap<{
4109
4140
  tokenExchangeRate: string;
4110
4141
  }>;
4111
4142
  ownerOverrides?: Record<string, string> | undefined;
4112
- }>;
4143
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
4113
4144
  } & {
4114
4145
  type: HookType.FALLBACK_ROUTING;
4115
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4146
+ fallback: string | {
4116
4147
  type: HookType.PROTOCOL_FEE;
4117
4148
  owner: string;
4118
4149
  protocolFee: string;
@@ -4143,28 +4174,29 @@ export declare function readHooksConfigMap(filePath: string): ChainMap<{
4143
4174
  tokenExchangeRate: string;
4144
4175
  }>;
4145
4176
  ownerOverrides?: Record<string, string> | undefined;
4146
- };
4147
- }) | (import("@hyperlane-xyz/sdk").AggregationHookConfig & string) | ({
4177
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
4178
+ }) | (import("@hyperlane-xyz/sdk").AggregationHookConfig & string);
4179
+ required: string | {
4148
4180
  type: HookType.PROTOCOL_FEE;
4149
4181
  owner: string;
4150
4182
  protocolFee: string;
4151
4183
  beneficiary: string;
4152
4184
  maxProtocolFee: string;
4153
4185
  ownerOverrides?: Record<string, string> | undefined;
4154
- } & string) | ({
4186
+ } | {
4155
4187
  type: HookType.PAUSABLE;
4156
4188
  owner: string;
4157
4189
  paused: boolean;
4158
4190
  ownerOverrides?: Record<string, string> | undefined;
4159
- } & string) | ({
4191
+ } | {
4160
4192
  type: HookType.OP_STACK;
4161
4193
  owner: string;
4162
4194
  nativeBridge: string;
4163
4195
  destinationChain: string;
4164
4196
  ownerOverrides?: Record<string, string> | undefined;
4165
- } & string) | ({
4197
+ } | {
4166
4198
  type: HookType.MERKLE_TREE;
4167
- } & string) | ({
4199
+ } | {
4168
4200
  type: HookType.INTERCHAIN_GAS_PAYMASTER;
4169
4201
  owner: string;
4170
4202
  beneficiary: string;
@@ -4175,28 +4207,27 @@ export declare function readHooksConfigMap(filePath: string): ChainMap<{
4175
4207
  tokenExchangeRate: string;
4176
4208
  }>;
4177
4209
  ownerOverrides?: Record<string, string> | undefined;
4178
- } & string);
4179
- required: string | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4210
+ } | import("@hyperlane-xyz/sdk").AggregationHookConfig | (string & {
4180
4211
  type: HookType.PROTOCOL_FEE;
4181
4212
  owner: string;
4182
4213
  protocolFee: string;
4183
4214
  beneficiary: string;
4184
4215
  maxProtocolFee: string;
4185
4216
  ownerOverrides?: Record<string, string> | undefined;
4186
- } | {
4217
+ }) | (string & {
4187
4218
  type: HookType.PAUSABLE;
4188
4219
  owner: string;
4189
4220
  paused: boolean;
4190
4221
  ownerOverrides?: Record<string, string> | undefined;
4191
- } | {
4222
+ }) | (string & {
4192
4223
  type: HookType.OP_STACK;
4193
4224
  owner: string;
4194
4225
  nativeBridge: string;
4195
4226
  destinationChain: string;
4196
4227
  ownerOverrides?: Record<string, string> | undefined;
4197
- } | {
4228
+ }) | (string & {
4198
4229
  type: HookType.MERKLE_TREE;
4199
- } | {
4230
+ }) | (string & {
4200
4231
  type: HookType.INTERCHAIN_GAS_PAYMASTER;
4201
4232
  owner: string;
4202
4233
  beneficiary: string;
@@ -4207,11 +4238,11 @@ export declare function readHooksConfigMap(filePath: string): ChainMap<{
4207
4238
  tokenExchangeRate: string;
4208
4239
  }>;
4209
4240
  ownerOverrides?: Record<string, string> | undefined;
4210
- } | (string & {
4241
+ }) | (string & {
4211
4242
  owner: string;
4212
4243
  ownerOverrides?: Record<string, string> | undefined;
4213
4244
  } & {
4214
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4245
+ domains: ChainMap<string | {
4215
4246
  type: HookType.PROTOCOL_FEE;
4216
4247
  owner: string;
4217
4248
  protocolFee: string;
@@ -4242,14 +4273,14 @@ export declare function readHooksConfigMap(filePath: string): ChainMap<{
4242
4273
  tokenExchangeRate: string;
4243
4274
  }>;
4244
4275
  ownerOverrides?: Record<string, string> | undefined;
4245
- }>;
4276
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
4246
4277
  } & {
4247
4278
  type: HookType.ROUTING;
4248
4279
  }) | (string & {
4249
4280
  owner: string;
4250
4281
  ownerOverrides?: Record<string, string> | undefined;
4251
4282
  } & {
4252
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4283
+ domains: ChainMap<string | {
4253
4284
  type: HookType.PROTOCOL_FEE;
4254
4285
  owner: string;
4255
4286
  protocolFee: string;
@@ -4280,10 +4311,10 @@ export declare function readHooksConfigMap(filePath: string): ChainMap<{
4280
4311
  tokenExchangeRate: string;
4281
4312
  }>;
4282
4313
  ownerOverrides?: Record<string, string> | undefined;
4283
- }>;
4314
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
4284
4315
  } & {
4285
4316
  type: HookType.FALLBACK_ROUTING;
4286
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4317
+ fallback: string | {
4287
4318
  type: HookType.PROTOCOL_FEE;
4288
4319
  owner: string;
4289
4320
  protocolFee: string;
@@ -4314,28 +4345,28 @@ export declare function readHooksConfigMap(filePath: string): ChainMap<{
4314
4345
  tokenExchangeRate: string;
4315
4346
  }>;
4316
4347
  ownerOverrides?: Record<string, string> | undefined;
4317
- };
4318
- }) | (string & import("@hyperlane-xyz/sdk").AggregationHookConfig) | (string & {
4348
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
4349
+ }) | (string & import("@hyperlane-xyz/sdk").AggregationHookConfig) | ({
4319
4350
  type: HookType.PROTOCOL_FEE;
4320
4351
  owner: string;
4321
4352
  protocolFee: string;
4322
4353
  beneficiary: string;
4323
4354
  maxProtocolFee: string;
4324
4355
  ownerOverrides?: Record<string, string> | undefined;
4325
- }) | (string & {
4356
+ } & string) | ({
4326
4357
  type: HookType.PAUSABLE;
4327
4358
  owner: string;
4328
4359
  paused: boolean;
4329
4360
  ownerOverrides?: Record<string, string> | undefined;
4330
- }) | (string & {
4361
+ } & string) | ({
4331
4362
  type: HookType.OP_STACK;
4332
4363
  owner: string;
4333
4364
  nativeBridge: string;
4334
4365
  destinationChain: string;
4335
4366
  ownerOverrides?: Record<string, string> | undefined;
4336
- }) | (string & {
4367
+ } & string) | ({
4337
4368
  type: HookType.MERKLE_TREE;
4338
- }) | (string & {
4369
+ } & string) | ({
4339
4370
  type: HookType.INTERCHAIN_GAS_PAYMASTER;
4340
4371
  owner: string;
4341
4372
  beneficiary: string;
@@ -4346,11 +4377,11 @@ export declare function readHooksConfigMap(filePath: string): ChainMap<{
4346
4377
  tokenExchangeRate: string;
4347
4378
  }>;
4348
4379
  ownerOverrides?: Record<string, string> | undefined;
4349
- }) | ({
4380
+ } & string) | ({
4350
4381
  owner: string;
4351
4382
  ownerOverrides?: Record<string, string> | undefined;
4352
4383
  } & {
4353
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4384
+ domains: ChainMap<string | {
4354
4385
  type: HookType.PROTOCOL_FEE;
4355
4386
  owner: string;
4356
4387
  protocolFee: string;
@@ -4381,14 +4412,14 @@ export declare function readHooksConfigMap(filePath: string): ChainMap<{
4381
4412
  tokenExchangeRate: string;
4382
4413
  }>;
4383
4414
  ownerOverrides?: Record<string, string> | undefined;
4384
- }>;
4415
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
4385
4416
  } & {
4386
4417
  type: HookType.ROUTING;
4387
4418
  } & string) | ({
4388
4419
  owner: string;
4389
4420
  ownerOverrides?: Record<string, string> | undefined;
4390
4421
  } & {
4391
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4422
+ domains: ChainMap<string | {
4392
4423
  type: HookType.PROTOCOL_FEE;
4393
4424
  owner: string;
4394
4425
  protocolFee: string;
@@ -4419,14 +4450,14 @@ export declare function readHooksConfigMap(filePath: string): ChainMap<{
4419
4450
  tokenExchangeRate: string;
4420
4451
  }>;
4421
4452
  ownerOverrides?: Record<string, string> | undefined;
4422
- }>;
4453
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
4423
4454
  } & {
4424
4455
  type: HookType.ROUTING;
4425
4456
  }) | ({
4426
4457
  owner: string;
4427
4458
  ownerOverrides?: Record<string, string> | undefined;
4428
4459
  } & {
4429
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4460
+ domains: ChainMap<string | {
4430
4461
  type: HookType.PROTOCOL_FEE;
4431
4462
  owner: string;
4432
4463
  protocolFee: string;
@@ -4457,10 +4488,10 @@ export declare function readHooksConfigMap(filePath: string): ChainMap<{
4457
4488
  tokenExchangeRate: string;
4458
4489
  }>;
4459
4490
  ownerOverrides?: Record<string, string> | undefined;
4460
- }>;
4491
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
4461
4492
  } & {
4462
4493
  type: HookType.FALLBACK_ROUTING;
4463
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4494
+ fallback: string | {
4464
4495
  type: HookType.PROTOCOL_FEE;
4465
4496
  owner: string;
4466
4497
  protocolFee: string;
@@ -4491,12 +4522,12 @@ export declare function readHooksConfigMap(filePath: string): ChainMap<{
4491
4522
  tokenExchangeRate: string;
4492
4523
  }>;
4493
4524
  ownerOverrides?: Record<string, string> | undefined;
4494
- };
4525
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
4495
4526
  } & string) | ({
4496
4527
  owner: string;
4497
4528
  ownerOverrides?: Record<string, string> | undefined;
4498
4529
  } & {
4499
- domains: ChainMap<string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4530
+ domains: ChainMap<string | {
4500
4531
  type: HookType.PROTOCOL_FEE;
4501
4532
  owner: string;
4502
4533
  protocolFee: string;
@@ -4527,10 +4558,10 @@ export declare function readHooksConfigMap(filePath: string): ChainMap<{
4527
4558
  tokenExchangeRate: string;
4528
4559
  }>;
4529
4560
  ownerOverrides?: Record<string, string> | undefined;
4530
- }>;
4561
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
4531
4562
  } & {
4532
4563
  type: HookType.FALLBACK_ROUTING;
4533
- fallback: string | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig | {
4564
+ fallback: string | {
4534
4565
  type: HookType.PROTOCOL_FEE;
4535
4566
  owner: string;
4536
4567
  protocolFee: string;
@@ -4561,44 +4592,173 @@ export declare function readHooksConfigMap(filePath: string): ChainMap<{
4561
4592
  tokenExchangeRate: string;
4562
4593
  }>;
4563
4594
  ownerOverrides?: Record<string, string> | undefined;
4564
- };
4565
- }) | (import("@hyperlane-xyz/sdk").AggregationHookConfig & string) | ({
4566
- type: HookType.PROTOCOL_FEE;
4567
- owner: string;
4568
- protocolFee: string;
4569
- beneficiary: string;
4570
- maxProtocolFee: string;
4571
- ownerOverrides?: Record<string, string> | undefined;
4572
- } & string) | ({
4573
- type: HookType.PAUSABLE;
4574
- owner: string;
4575
- paused: boolean;
4576
- ownerOverrides?: Record<string, string> | undefined;
4577
- } & string) | ({
4578
- type: HookType.OP_STACK;
4579
- owner: string;
4580
- nativeBridge: string;
4581
- destinationChain: string;
4582
- ownerOverrides?: Record<string, string> | undefined;
4583
- } & string) | ({
4584
- type: HookType.MERKLE_TREE;
4585
- } & string) | ({
4586
- type: HookType.INTERCHAIN_GAS_PAYMASTER;
4587
- owner: string;
4588
- beneficiary: string;
4589
- oracleKey: string;
4590
- overhead: Record<string, number>;
4591
- oracleConfig: Record<string, {
4592
- gasPrice: string;
4593
- tokenExchangeRate: string;
4594
- }>;
4595
- ownerOverrides?: Record<string, string> | undefined;
4596
- } & string);
4595
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig;
4596
+ }) | (import("@hyperlane-xyz/sdk").AggregationHookConfig & string);
4597
4597
  }> | undefined;
4598
- export declare function createHookConfig(context: CommandContext, selectMessage?: string): Promise<HookConfig>;
4599
- export declare function createProtocolFeeConfig(): Promise<HookConfig>;
4600
- export declare function createIGPConfig(remotes: ChainName[]): Promise<HookConfig>;
4601
- export declare function createAggregationConfig(context: CommandContext): Promise<HookConfig>;
4602
- export declare function createRoutingConfig(context: CommandContext): Promise<HookConfig>;
4598
+ export declare function createHookConfig({ context, selectMessage, advanced, }: {
4599
+ context: CommandContext;
4600
+ selectMessage?: string;
4601
+ advanced?: boolean;
4602
+ }): Promise<HookConfig>;
4603
+ export declare const createMerkleTreeConfig: (...args: any[]) => Promise<string | {
4604
+ type: HookType.PROTOCOL_FEE;
4605
+ owner: string;
4606
+ protocolFee: string;
4607
+ beneficiary: string;
4608
+ maxProtocolFee: string;
4609
+ ownerOverrides?: Record<string, string> | undefined;
4610
+ } | {
4611
+ type: HookType.PAUSABLE;
4612
+ owner: string;
4613
+ paused: boolean;
4614
+ ownerOverrides?: Record<string, string> | undefined;
4615
+ } | {
4616
+ type: HookType.OP_STACK;
4617
+ owner: string;
4618
+ nativeBridge: string;
4619
+ destinationChain: string;
4620
+ ownerOverrides?: Record<string, string> | undefined;
4621
+ } | {
4622
+ type: HookType.MERKLE_TREE;
4623
+ } | {
4624
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
4625
+ owner: string;
4626
+ beneficiary: string;
4627
+ oracleKey: string;
4628
+ overhead: Record<string, number>;
4629
+ oracleConfig: Record<string, {
4630
+ gasPrice: string;
4631
+ tokenExchangeRate: string;
4632
+ }>;
4633
+ ownerOverrides?: Record<string, string> | undefined;
4634
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
4635
+ export declare const createProtocolFeeConfig: (...args: any[]) => Promise<string | {
4636
+ type: HookType.PROTOCOL_FEE;
4637
+ owner: string;
4638
+ protocolFee: string;
4639
+ beneficiary: string;
4640
+ maxProtocolFee: string;
4641
+ ownerOverrides?: Record<string, string> | undefined;
4642
+ } | {
4643
+ type: HookType.PAUSABLE;
4644
+ owner: string;
4645
+ paused: boolean;
4646
+ ownerOverrides?: Record<string, string> | undefined;
4647
+ } | {
4648
+ type: HookType.OP_STACK;
4649
+ owner: string;
4650
+ nativeBridge: string;
4651
+ destinationChain: string;
4652
+ ownerOverrides?: Record<string, string> | undefined;
4653
+ } | {
4654
+ type: HookType.MERKLE_TREE;
4655
+ } | {
4656
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
4657
+ owner: string;
4658
+ beneficiary: string;
4659
+ oracleKey: string;
4660
+ overhead: Record<string, number>;
4661
+ oracleConfig: Record<string, {
4662
+ gasPrice: string;
4663
+ tokenExchangeRate: string;
4664
+ }>;
4665
+ ownerOverrides?: Record<string, string> | undefined;
4666
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
4667
+ export declare const createIGPConfig: (...args: any[]) => Promise<string | {
4668
+ type: HookType.PROTOCOL_FEE;
4669
+ owner: string;
4670
+ protocolFee: string;
4671
+ beneficiary: string;
4672
+ maxProtocolFee: string;
4673
+ ownerOverrides?: Record<string, string> | undefined;
4674
+ } | {
4675
+ type: HookType.PAUSABLE;
4676
+ owner: string;
4677
+ paused: boolean;
4678
+ ownerOverrides?: Record<string, string> | undefined;
4679
+ } | {
4680
+ type: HookType.OP_STACK;
4681
+ owner: string;
4682
+ nativeBridge: string;
4683
+ destinationChain: string;
4684
+ ownerOverrides?: Record<string, string> | undefined;
4685
+ } | {
4686
+ type: HookType.MERKLE_TREE;
4687
+ } | {
4688
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
4689
+ owner: string;
4690
+ beneficiary: string;
4691
+ oracleKey: string;
4692
+ overhead: Record<string, number>;
4693
+ oracleConfig: Record<string, {
4694
+ gasPrice: string;
4695
+ tokenExchangeRate: string;
4696
+ }>;
4697
+ ownerOverrides?: Record<string, string> | undefined;
4698
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
4699
+ export declare const createAggregationConfig: (...args: any[]) => Promise<string | {
4700
+ type: HookType.PROTOCOL_FEE;
4701
+ owner: string;
4702
+ protocolFee: string;
4703
+ beneficiary: string;
4704
+ maxProtocolFee: string;
4705
+ ownerOverrides?: Record<string, string> | undefined;
4706
+ } | {
4707
+ type: HookType.PAUSABLE;
4708
+ owner: string;
4709
+ paused: boolean;
4710
+ ownerOverrides?: Record<string, string> | undefined;
4711
+ } | {
4712
+ type: HookType.OP_STACK;
4713
+ owner: string;
4714
+ nativeBridge: string;
4715
+ destinationChain: string;
4716
+ ownerOverrides?: Record<string, string> | undefined;
4717
+ } | {
4718
+ type: HookType.MERKLE_TREE;
4719
+ } | {
4720
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
4721
+ owner: string;
4722
+ beneficiary: string;
4723
+ oracleKey: string;
4724
+ overhead: Record<string, number>;
4725
+ oracleConfig: Record<string, {
4726
+ gasPrice: string;
4727
+ tokenExchangeRate: string;
4728
+ }>;
4729
+ ownerOverrides?: Record<string, string> | undefined;
4730
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
4731
+ export declare const createRoutingConfig: (...args: any[]) => Promise<string | {
4732
+ type: HookType.PROTOCOL_FEE;
4733
+ owner: string;
4734
+ protocolFee: string;
4735
+ beneficiary: string;
4736
+ maxProtocolFee: string;
4737
+ ownerOverrides?: Record<string, string> | undefined;
4738
+ } | {
4739
+ type: HookType.PAUSABLE;
4740
+ owner: string;
4741
+ paused: boolean;
4742
+ ownerOverrides?: Record<string, string> | undefined;
4743
+ } | {
4744
+ type: HookType.OP_STACK;
4745
+ owner: string;
4746
+ nativeBridge: string;
4747
+ destinationChain: string;
4748
+ ownerOverrides?: Record<string, string> | undefined;
4749
+ } | {
4750
+ type: HookType.MERKLE_TREE;
4751
+ } | {
4752
+ type: HookType.INTERCHAIN_GAS_PAYMASTER;
4753
+ owner: string;
4754
+ beneficiary: string;
4755
+ oracleKey: string;
4756
+ overhead: Record<string, number>;
4757
+ oracleConfig: Record<string, {
4758
+ gasPrice: string;
4759
+ tokenExchangeRate: string;
4760
+ }>;
4761
+ ownerOverrides?: Record<string, string> | undefined;
4762
+ } | import("@hyperlane-xyz/sdk").DomainRoutingHookConfig | import("@hyperlane-xyz/sdk").FallbackRoutingHookConfig | import("@hyperlane-xyz/sdk").AggregationHookConfig>;
4603
4763
  export {};
4604
4764
  //# sourceMappingURL=hooks.d.ts.map